88a09b210aef95f7257a0d224805664c42e2ad66
[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: 2010-12-31 08:37+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:72 ../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:1011
922 #: ../src/guestfs.pod:1015 ../src/guestfs.pod:1019 ../src/guestfs.pod:1024
923 #: ../src/guestfs.pod:1032 ../src/guestfs.pod:1051 ../src/guestfs.pod:1059
924 #: ../src/guestfs.pod:1081 ../src/guestfs.pod:1085 ../src/guestfs.pod:1089
925 #: ../src/guestfs.pod:1093 ../src/guestfs.pod:1097 ../src/guestfs.pod:1101
926 #: ../src/guestfs.pod:1583 ../src/guestfs.pod:1588 ../src/guestfs.pod:1592
927 #: ../src/guestfs.pod:1702 ../src/guestfs.pod:1707 ../src/guestfs.pod:1711
928 #: ../src/guestfs.pod:2063 ../src/guestfs.pod:2069 ../src/guestfs.pod:2074
929 #: ../src/guestfs.pod:2080 ../src/guestfs.pod:2534 ../src/guestfs.pod:2538
930 #: ../src/guestfs.pod:2542 ../src/guestfs.pod:2546
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:1204 ../src/guestfs.pod:1335
1104 #: ../src/guestfs.pod:2108
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:1208 ../src/guestfs.pod:1339
1126 #: ../src/guestfs.pod:2133
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:1345
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:720
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 #. type: textblock
1302 #: ../src/guestfs.pod:552
1303 msgid ""
1304 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1305 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1306 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1307 "frequently used part of this library has been rewritten in C and moved into "
1308 "the core code)."
1309 msgstr ""
1310
1311 # type: textblock
1312 #. type: textblock
1313 #: ../src/guestfs.pod:558
1314 msgid ""
1315 "Add all disks belonging to the unknown virtual machine and call L</"
1316 "guestfs_launch> in the usual way."
1317 msgstr ""
1318
1319 # type: textblock
1320 #. type: textblock
1321 #: ../src/guestfs.pod:561
1322 msgid ""
1323 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1324 "and certain heuristics, and returns a list of operating systems that were "
1325 "found.  An empty list means none were found.  A single element is the root "
1326 "filesystem of the operating system.  For dual- or multi-boot guests, "
1327 "multiple roots can be returned, each one corresponding to a separate "
1328 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1329 "world of virtualization, but since this scenario can happen, we have built "
1330 "libguestfs to deal with it.)"
1331 msgstr ""
1332
1333 # type: textblock
1334 #. type: textblock
1335 #: ../src/guestfs.pod:570
1336 msgid ""
1337 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1338 "to get additional details about that operating system.  For example, call L</"
1339 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1340 "Windows and Linux-based operating systems respectively."
1341 msgstr ""
1342
1343 # type: textblock
1344 #. type: textblock
1345 #: ../src/guestfs.pod:576
1346 msgid ""
1347 "Un*x-like and Linux-based operating systems usually consist of several "
1348 "filesystems which are mounted at boot time (for example, a separate boot "
1349 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1350 "filesystems correspond to mount points.  Call "
1351 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1352 "hash table like this example:"
1353 msgstr ""
1354
1355 # type: verbatim
1356 #. type: verbatim
1357 #: ../src/guestfs.pod:583
1358 #, no-wrap
1359 msgid ""
1360 " /boot => /dev/sda1\n"
1361 " /     => /dev/vg_guest/lv_root\n"
1362 " /usr  => /dev/vg_guest/lv_usr\n"
1363 "\n"
1364 msgstr ""
1365
1366 # type: textblock
1367 #. type: textblock
1368 #: ../src/guestfs.pod:587
1369 msgid ""
1370 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1371 "filesystems as suggested."
1372 msgstr ""
1373
1374 # type: textblock
1375 #. type: textblock
1376 #: ../src/guestfs.pod:590
1377 msgid ""
1378 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1379 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1380 msgstr ""
1381
1382 # type: textblock
1383 #. type: textblock
1384 #: ../src/guestfs.pod:594
1385 msgid ""
1386 "Inspection currently only works for some common operating systems.  "
1387 "Contributors are welcome to send patches for other operating systems that we "
1388 "currently cannot detect."
1389 msgstr ""
1390
1391 # type: textblock
1392 #. type: textblock
1393 #: ../src/guestfs.pod:598
1394 msgid ""
1395 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1396 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1397 "encrypted devices."
1398 msgstr ""
1399
1400 # type: textblock
1401 #. type: textblock
1402 #: ../src/guestfs.pod:602
1403 msgid ""
1404 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1405 "inspection and caches the results in the guest handle.  Subsequent calls to "
1406 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1407 "read the disks.  If you change the content of the guest disks, you can redo "
1408 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1409 "guestfs_inspect_list_applications> works a little differently from the other "
1410 "calls and does read the disks.  See documentation for that function for "
1411 "details)."
1412 msgstr ""
1413
1414 # type: =head2
1415 #. type: =head2
1416 #: ../src/guestfs.pod:611
1417 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1418 msgstr ""
1419
1420 # type: textblock
1421 #. type: textblock
1422 #: ../src/guestfs.pod:613
1423 msgid ""
1424 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1425 "ntfs-3g.org/> driver."
1426 msgstr ""
1427
1428 # type: =head3
1429 #. type: =head3
1430 #: ../src/guestfs.pod:616
1431 msgid "DRIVE LETTERS AND PATHS"
1432 msgstr ""
1433
1434 # type: textblock
1435 #. type: textblock
1436 #: ../src/guestfs.pod:618
1437 msgid ""
1438 "DOS and Windows still use drive letters, and the filesystems are always "
1439 "treated as case insensitive by Windows itself, and therefore you might find "
1440 "a Windows configuration file referring to a path like C<c:\\windows"
1441 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1442 "might be referred to as C</WINDOWS/System32>."
1443 msgstr ""
1444
1445 # type: textblock
1446 #. type: textblock
1447 #: ../src/guestfs.pod:624
1448 msgid ""
1449 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1450 "libguestfs to read the appropriate Windows Registry and configuration files, "
1451 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1452 "inspector(1)>)."
1453 msgstr ""
1454
1455 # type: textblock
1456 #. type: textblock
1457 #: ../src/guestfs.pod:629
1458 msgid ""
1459 "Replacing backslash characters with forward slash characters is also outside "
1460 "the scope of libguestfs, but something that you can easily do."
1461 msgstr ""
1462
1463 # type: textblock
1464 #. type: textblock
1465 #: ../src/guestfs.pod:632
1466 msgid ""
1467 "Where we can help is in resolving the case insensitivity of paths.  For "
1468 "this, call L</guestfs_case_sensitive_path>."
1469 msgstr ""
1470
1471 # type: =head3
1472 #. type: =head3
1473 #: ../src/guestfs.pod:635
1474 msgid "ACCESSING THE WINDOWS REGISTRY"
1475 msgstr ""
1476
1477 # type: textblock
1478 #. type: textblock
1479 #: ../src/guestfs.pod:637
1480 msgid ""
1481 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1482 "files, through the library C<hivex> which is part of the libguestfs project "
1483 "although ships as a separate tarball.  You have to locate and download the "
1484 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1485 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1486 "reg(1)> for more help on this issue."
1487 msgstr ""
1488
1489 # type: =head3
1490 #. type: =head3
1491 #: ../src/guestfs.pod:645
1492 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1493 msgstr ""
1494
1495 # type: textblock
1496 #. type: textblock
1497 #: ../src/guestfs.pod:647
1498 msgid ""
1499 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1500 "provide something which looks like a Linux symlink.  The way it tries to do "
1501 "the rewriting is described here:"
1502 msgstr ""
1503
1504 # type: textblock
1505 #. type: textblock
1506 #: ../src/guestfs.pod:651
1507 msgid ""
1508 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1509 "symbolic-links/>"
1510 msgstr ""
1511
1512 # type: textblock
1513 #. type: textblock
1514 #: ../src/guestfs.pod:653
1515 msgid ""
1516 "The essential problem is that ntfs-3g simply does not have enough "
1517 "information to do a correct job.  NTFS links can contain drive letters and "
1518 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1519 "It is almost certainly the case that libguestfs callers should ignore what "
1520 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1521 msgstr ""
1522
1523 # type: textblock
1524 #. type: textblock
1525 #: ../src/guestfs.pod:660
1526 msgid ""
1527 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1528 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1529 "attribute, and read the raw reparse data from that (you can find the format "
1530 "documented in various places around the web)."
1531 msgstr ""
1532
1533 # type: =head3
1534 #. type: =head3
1535 #: ../src/guestfs.pod:665
1536 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1537 msgstr ""
1538
1539 # type: textblock
1540 #. type: textblock
1541 #: ../src/guestfs.pod:667
1542 msgid ""
1543 "There are other useful extended attributes that can be read from ntfs-3g "
1544 "filesystems (using L</guestfs_getxattr>).  See:"
1545 msgstr ""
1546
1547 # type: textblock
1548 #. type: textblock
1549 #: ../src/guestfs.pod:670
1550 msgid ""
1551 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1552 msgstr ""
1553
1554 # type: =head2
1555 #. type: =head2
1556 #: ../src/guestfs.pod:672
1557 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1558 msgstr ""
1559
1560 # type: textblock
1561 #. type: textblock
1562 #: ../src/guestfs.pod:674
1563 msgid ""
1564 "Although we don't want to discourage you from using the C API, we will "
1565 "mention here that the same API is also available in other languages."
1566 msgstr ""
1567
1568 #. type: textblock
1569 #: ../src/guestfs.pod:677
1570 msgid ""
1571 "The API is broadly identical in all supported languages.  This means that "
1572 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1573 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1574 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1575 "each language."
1576 msgstr ""
1577
1578 # type: textblock
1579 #. type: textblock
1580 #: ../src/guestfs.pod:683
1581 msgid ""
1582 "Error messages are automatically transformed into exceptions if the language "
1583 "supports it."
1584 msgstr ""
1585
1586 # type: textblock
1587 #. type: textblock
1588 #: ../src/guestfs.pod:686
1589 msgid ""
1590 "We don't try to \"object orientify\" parts of the API in OO languages, "
1591 "although contributors are welcome to write higher level APIs above what we "
1592 "provide in their favourite languages if they wish."
1593 msgstr ""
1594
1595 # type: =item
1596 #. type: =item
1597 #: ../src/guestfs.pod:692
1598 msgid "B<C++>"
1599 msgstr ""
1600
1601 # type: textblock
1602 #. type: textblock
1603 #: ../src/guestfs.pod:694
1604 msgid ""
1605 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1606 "identical to the C API.  C++ classes and exceptions are not used."
1607 msgstr ""
1608
1609 # type: =item
1610 #. type: =item
1611 #: ../src/guestfs.pod:698
1612 msgid "B<C#>"
1613 msgstr ""
1614
1615 # type: textblock
1616 #. type: textblock
1617 #: ../src/guestfs.pod:700
1618 msgid ""
1619 "The C# bindings are highly experimental.  Please read the warnings at the "
1620 "top of C<csharp/Libguestfs.cs>."
1621 msgstr ""
1622
1623 # type: =item
1624 #. type: =item
1625 #: ../src/guestfs.pod:703
1626 msgid "B<Haskell>"
1627 msgstr ""
1628
1629 # type: textblock
1630 #. type: textblock
1631 #: ../src/guestfs.pod:705
1632 msgid ""
1633 "This is the only language binding that is working but incomplete.  Only "
1634 "calls which return simple integers have been bound in Haskell, and we are "
1635 "looking for help to complete this binding."
1636 msgstr ""
1637
1638 # type: =item
1639 #. type: =item
1640 #: ../src/guestfs.pod:709
1641 msgid "B<Java>"
1642 msgstr ""
1643
1644 # type: textblock
1645 #. type: textblock
1646 #: ../src/guestfs.pod:711
1647 msgid ""
1648 "Full documentation is contained in the Javadoc which is distributed with "
1649 "libguestfs."
1650 msgstr ""
1651
1652 # type: =item
1653 #. type: =item
1654 #: ../src/guestfs.pod:714
1655 msgid "B<OCaml>"
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../src/guestfs.pod:716
1660 msgid "See L<guestfs-ocaml(3)>."
1661 msgstr ""
1662
1663 # type: =item
1664 #. type: =item
1665 #: ../src/guestfs.pod:718
1666 msgid "B<Perl>"
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../src/guestfs.pod:720
1671 msgid "See L<Sys::Guestfs(3)>."
1672 msgstr ""
1673
1674 # type: =item
1675 #. type: =item
1676 #: ../src/guestfs.pod:722
1677 msgid "B<PHP>"
1678 msgstr ""
1679
1680 # type: textblock
1681 #. type: textblock
1682 #: ../src/guestfs.pod:724
1683 msgid ""
1684 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1685 "the php-libguestfs package for your distribution."
1686 msgstr ""
1687
1688 # type: textblock
1689 #. type: textblock
1690 #: ../src/guestfs.pod:727
1691 msgid "The PHP binding only works correctly on 64 bit machines."
1692 msgstr ""
1693
1694 # type: =item
1695 #. type: =item
1696 #: ../src/guestfs.pod:729
1697 msgid "B<Python>"
1698 msgstr ""
1699
1700 #. type: textblock
1701 #: ../src/guestfs.pod:731
1702 msgid "See L<guestfs-python(3)>."
1703 msgstr ""
1704
1705 # type: =item
1706 #. type: =item
1707 #: ../src/guestfs.pod:733
1708 msgid "B<Ruby>"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../src/guestfs.pod:735
1713 msgid "See L<guestfs-ruby(3)>."
1714 msgstr ""
1715
1716 # type: =item
1717 #. type: =item
1718 #: ../src/guestfs.pod:737
1719 msgid "B<shell scripts>"
1720 msgstr ""
1721
1722 #. type: textblock
1723 #: ../src/guestfs.pod:739
1724 msgid "See L<guestfish(1)>."
1725 msgstr ""
1726
1727 # type: =head2
1728 #. type: =head2
1729 #: ../src/guestfs.pod:743
1730 msgid "LIBGUESTFS GOTCHAS"
1731 msgstr ""
1732
1733 # type: textblock
1734 #. type: textblock
1735 #: ../src/guestfs.pod:745
1736 msgid ""
1737 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1738 "system [...] that works in the way it is documented but is counterintuitive "
1739 "and almost invites mistakes.\""
1740 msgstr ""
1741
1742 # type: textblock
1743 #. type: textblock
1744 #: ../src/guestfs.pod:749
1745 msgid ""
1746 "Since we developed libguestfs and the associated tools, there are several "
1747 "things we would have designed differently, but are now stuck with for "
1748 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1749 "release, you can expect these to change.  Beware of them."
1750 msgstr ""
1751
1752 # type: =item
1753 #. type: =item
1754 #: ../src/guestfs.pod:757
1755 msgid "Autosync / forgetting to sync."
1756 msgstr ""
1757
1758 # type: textblock
1759 #. type: textblock
1760 #: ../src/guestfs.pod:759
1761 msgid ""
1762 "When modifying a filesystem from C or another language, you B<must> unmount "
1763 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1764 "libguestfs handle.  You can also call:"
1765 msgstr ""
1766
1767 # type: verbatim
1768 #. type: verbatim
1769 #: ../src/guestfs.pod:763
1770 #, no-wrap
1771 msgid ""
1772 " guestfs_set_autosync (g, 1);\n"
1773 "\n"
1774 msgstr ""
1775
1776 # type: textblock
1777 #. type: textblock
1778 #: ../src/guestfs.pod:765
1779 msgid ""
1780 "to have the unmount/sync done automatically for you when the handle 'g' is "
1781 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1782 msgstr ""
1783
1784 # type: textblock
1785 #. type: textblock
1786 #: ../src/guestfs.pod:769
1787 msgid ""
1788 "If you forget to do this, then it is entirely possible that your changes "
1789 "won't be written out, or will be partially written, or (very rarely) that "
1790 "you'll get disk corruption."
1791 msgstr ""
1792
1793 # type: textblock
1794 #. type: textblock
1795 #: ../src/guestfs.pod:773
1796 msgid ""
1797 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1798 "guestfish scripts that forget to sync will work just fine, which can make "
1799 "this very puzzling if you are trying to debug a problem."
1800 msgstr ""
1801
1802 # type: textblock
1803 #. type: textblock
1804 #: ../src/guestfs.pod:777
1805 msgid ""
1806 "Update: Autosync is enabled by default for all API users starting from "
1807 "libguestfs 1.5.24."
1808 msgstr ""
1809
1810 # type: =item
1811 #. type: =item
1812 #: ../src/guestfs.pod:780
1813 msgid "Mount option C<-o sync> should not be the default."
1814 msgstr ""
1815
1816 # type: textblock
1817 #. type: textblock
1818 #: ../src/guestfs.pod:782
1819 msgid ""
1820 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1821 "However C<-o sync> does not add any reliability benefit, but does have a "
1822 "very large performance impact."
1823 msgstr ""
1824
1825 # type: textblock
1826 #. type: textblock
1827 #: ../src/guestfs.pod:786
1828 msgid ""
1829 "The work around is to use L</guestfs_mount_options> and set the mount "
1830 "options that you actually want to use."
1831 msgstr ""
1832
1833 # type: =item
1834 #. type: =item
1835 #: ../src/guestfs.pod:789
1836 msgid "Read-only should be the default."
1837 msgstr ""
1838
1839 # type: textblock
1840 #. type: textblock
1841 #: ../src/guestfs.pod:791
1842 msgid ""
1843 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1844 "specify I<--rw> if you want to make changes to the image."
1845 msgstr ""
1846
1847 # type: textblock
1848 #. type: textblock
1849 #: ../src/guestfs.pod:794
1850 msgid "This would reduce the potential to corrupt live VM images."
1851 msgstr ""
1852
1853 # type: textblock
1854 #. type: textblock
1855 #: ../src/guestfs.pod:796
1856 msgid ""
1857 "Note that many filesystems change the disk when you just mount and unmount, "
1858 "even if you didn't perform any writes.  You need to use L</"
1859 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1860 msgstr ""
1861
1862 # type: =item
1863 #. type: =item
1864 #: ../src/guestfs.pod:800
1865 msgid "guestfish command line is hard to use."
1866 msgstr ""
1867
1868 # type: textblock
1869 #. type: textblock
1870 #: ../src/guestfs.pod:802
1871 msgid ""
1872 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1873 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1874 "exist, so it fails.  In earlier versions of guestfish the error message was "
1875 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1876 "we should have used C<guestfish -c command> to run commands."
1877 msgstr ""
1878
1879 # type: =item
1880 #. type: =item
1881 #: ../src/guestfs.pod:809
1882 msgid "guestfish megabyte modifiers don't work right on all commands"
1883 msgstr ""
1884
1885 # type: textblock
1886 #. type: textblock
1887 #: ../src/guestfs.pod:811
1888 msgid ""
1889 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1890 "other modifiers).  What guestfish actually does is to multiply the number "
1891 "part by the modifier part and pass the result to the C API.  However this "
1892 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1893 "expecting some other unit (eg. megabytes)."
1894 msgstr ""
1895
1896 # type: textblock
1897 #. type: textblock
1898 #: ../src/guestfs.pod:818
1899 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1900 msgstr ""
1901
1902 # type: verbatim
1903 #. type: verbatim
1904 #: ../src/guestfs.pod:820
1905 #, no-wrap
1906 msgid ""
1907 " lvcreate LV VG 100M\n"
1908 "\n"
1909 msgstr ""
1910
1911 # type: textblock
1912 #. type: textblock
1913 #: ../src/guestfs.pod:822
1914 msgid ""
1915 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1916 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1917 "megabytes * megabytes) logical volume.  The error message you get from this "
1918 "is also a little obscure."
1919 msgstr ""
1920
1921 # type: textblock
1922 #. type: textblock
1923 #: ../src/guestfs.pod:827
1924 msgid ""
1925 "This could be fixed in the generator by specially marking parameters and "
1926 "return values which take bytes or other units."
1927 msgstr ""
1928
1929 # type: =item
1930 #. type: =item
1931 #: ../src/guestfs.pod:830
1932 msgid "Ambiguity between devices and paths"
1933 msgstr ""
1934
1935 # type: textblock
1936 #. type: textblock
1937 #: ../src/guestfs.pod:832
1938 msgid ""
1939 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1940 "sdb2>) and a similar pathname.  A file might just happen to be called "
1941 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1942 msgstr ""
1943
1944 # type: textblock
1945 #. type: textblock
1946 #: ../src/guestfs.pod:837
1947 msgid ""
1948 "In the current API we usually resolve this ambiguity by having two separate "
1949 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1950 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1951 "detecting if the path supplied begins with C</dev/>."
1952 msgstr ""
1953
1954 # type: textblock
1955 #. type: textblock
1956 #: ../src/guestfs.pod:843
1957 msgid ""
1958 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1959 "make paths/devices into structured names.  One way to do this would be to "
1960 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1961 "aspect of grub.  Another way would be to use a structured type, equivalent "
1962 "to this OCaml type:"
1963 msgstr ""
1964
1965 # type: verbatim
1966 #. type: verbatim
1967 #: ../src/guestfs.pod:849
1968 #, no-wrap
1969 msgid ""
1970 " type path = Path of string | Device of int | Partition of int * int\n"
1971 "\n"
1972 msgstr ""
1973
1974 # type: textblock
1975 #. type: textblock
1976 #: ../src/guestfs.pod:851
1977 msgid "which would allow you to pass arguments like:"
1978 msgstr ""
1979
1980 # type: verbatim
1981 #. type: verbatim
1982 #: ../src/guestfs.pod:853
1983 #, no-wrap
1984 msgid ""
1985 " Path \"/foo/bar\"\n"
1986 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1987 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1988 " Path \"/dev/sdb2\"    (* not a device *)\n"
1989 "\n"
1990 msgstr ""
1991
1992 # type: textblock
1993 #. type: textblock
1994 #: ../src/guestfs.pod:858
1995 msgid ""
1996 "As you can see there are still problems to resolve even with this "
1997 "representation.  Also consider how it might work in guestfish."
1998 msgstr ""
1999
2000 # type: =head2
2001 #. type: =head2
2002 #: ../src/guestfs.pod:863
2003 msgid "PROTOCOL LIMITS"
2004 msgstr ""
2005
2006 # type: textblock
2007 #. type: textblock
2008 #: ../src/guestfs.pod:865
2009 msgid ""
2010 "Internally libguestfs uses a message-based protocol to pass API calls and "
2011 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2012 "plenty more detail about this).  The maximum message size used by the "
2013 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2014 "aware of this limit.  The API calls which may be affected are individually "
2015 "documented, with a link back to this section of the documentation."
2016 msgstr ""
2017
2018 # type: textblock
2019 #. type: textblock
2020 #: ../src/guestfs.pod:873
2021 msgid ""
2022 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2023 "a simple string.  Because this string is at some point internally encoded as "
2024 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2025 "the requested file is larger than this then you will get an error."
2026 msgstr ""
2027
2028 # type: textblock
2029 #. type: textblock
2030 #: ../src/guestfs.pod:879
2031 msgid ""
2032 "In order to transfer large files into and out of the guest filesystem, you "
2033 "need to use particular calls that support this.  The sections L</UPLOADING> "
2034 "and L</DOWNLOADING> document how to do this."
2035 msgstr ""
2036
2037 # type: textblock
2038 #. type: textblock
2039 #: ../src/guestfs.pod:883
2040 msgid ""
2041 "You might also consider mounting the disk image using our FUSE filesystem "
2042 "support (L<guestmount(1)>)."
2043 msgstr ""
2044
2045 # type: =head2
2046 #. type: =head2
2047 #: ../src/guestfs.pod:886
2048 msgid "KEYS AND PASSPHRASES"
2049 msgstr ""
2050
2051 # type: textblock
2052 #. type: textblock
2053 #: ../src/guestfs.pod:888
2054 msgid ""
2055 "Certain libguestfs calls take a parameter that contains sensitive key "
2056 "material, passed in as a C string."
2057 msgstr ""
2058
2059 # type: textblock
2060 #. type: textblock
2061 #: ../src/guestfs.pod:891
2062 msgid ""
2063 "In the future we would hope to change the libguestfs implementation so that "
2064 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2065 "swap.  However this is I<not> done at the moment, because of the complexity "
2066 "of such an implementation."
2067 msgstr ""
2068
2069 # type: textblock
2070 #. type: textblock
2071 #: ../src/guestfs.pod:896
2072 msgid ""
2073 "Therefore you should be aware that any key parameter you pass to libguestfs "
2074 "might end up being written out to the swap partition.  If this is a concern, "
2075 "scrub the swap partition or don't use libguestfs on encrypted devices."
2076 msgstr ""
2077
2078 # type: =head1
2079 #. type: =head2
2080 #: ../src/guestfs.pod:901
2081 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2082 msgstr ""
2083
2084 # type: textblock
2085 #. type: textblock
2086 #: ../src/guestfs.pod:903
2087 msgid ""
2088 "All high-level libguestfs actions are synchronous.  If you want to use "
2089 "libguestfs asynchronously then you must create a thread."
2090 msgstr ""
2091
2092 # type: textblock
2093 #. type: textblock
2094 #: ../src/guestfs.pod:906
2095 msgid ""
2096 "Only use the handle from a single thread.  Either use the handle exclusively "
2097 "from one thread, or provide your own mutex so that two threads cannot issue "
2098 "calls on the same handle at the same time."
2099 msgstr ""
2100
2101 # type: textblock
2102 #. type: textblock
2103 #: ../src/guestfs.pod:910
2104 msgid ""
2105 "See the graphical program guestfs-browser for one possible architecture for "
2106 "multithreaded programs using libvirt and libguestfs."
2107 msgstr ""
2108
2109 # type: =head1
2110 #. type: =head2
2111 #: ../src/guestfs.pod:913
2112 msgid "PATH"
2113 msgstr ""
2114
2115 # type: textblock
2116 #. type: textblock
2117 #: ../src/guestfs.pod:915
2118 msgid ""
2119 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2120 "internal path."
2121 msgstr ""
2122
2123 # type: textblock
2124 #. type: textblock
2125 #: ../src/guestfs.pod:918
2126 msgid ""
2127 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2128 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2129 msgstr ""
2130
2131 # type: textblock
2132 #. type: textblock
2133 #: ../src/guestfs.pod:921
2134 msgid ""
2135 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2136 "to change the directories that libguestfs will search in.  The value is a "
2137 "colon-separated list of paths.  The current directory is I<not> searched "
2138 "unless the path contains an empty element or C<.>.  For example "
2139 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2140 "then C</usr/lib/guestfs>."
2141 msgstr ""
2142
2143 # type: =head1
2144 #. type: =head2
2145 #: ../src/guestfs.pod:928
2146 msgid "QEMU WRAPPERS"
2147 msgstr ""
2148
2149 # type: textblock
2150 #. type: textblock
2151 #: ../src/guestfs.pod:930
2152 msgid ""
2153 "If you want to compile your own qemu, run qemu from a non-standard location, "
2154 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2155 "around qemu."
2156 msgstr ""
2157
2158 # type: textblock
2159 #. type: textblock
2160 #: ../src/guestfs.pod:934
2161 msgid ""
2162 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2163 "last command in the shell script (so that qemu replaces the shell and "
2164 "becomes the direct child of the libguestfs-using program).  If you don't do "
2165 "this, then the qemu process won't be cleaned up correctly."
2166 msgstr ""
2167
2168 # type: textblock
2169 #. type: textblock
2170 #: ../src/guestfs.pod:939
2171 msgid ""
2172 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2173 "source:"
2174 msgstr ""
2175
2176 # type: verbatim
2177 #. type: verbatim
2178 #: ../src/guestfs.pod:942
2179 #, no-wrap
2180 msgid ""
2181 " #!/bin/sh -\n"
2182 " qemudir=/home/rjones/d/qemu\n"
2183 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2184 "\n"
2185 msgstr ""
2186
2187 # type: textblock
2188 #. type: textblock
2189 #: ../src/guestfs.pod:946
2190 msgid ""
2191 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2192 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2193 "example:"
2194 msgstr ""
2195
2196 # type: verbatim
2197 #. type: verbatim
2198 #: ../src/guestfs.pod:950
2199 #, no-wrap
2200 msgid ""
2201 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2202 "\n"
2203 msgstr ""
2204
2205 # type: textblock
2206 #. type: textblock
2207 #: ../src/guestfs.pod:952
2208 msgid ""
2209 "Note that libguestfs also calls qemu with the -help and -version options in "
2210 "order to determine features."
2211 msgstr ""
2212
2213 # type: =head2
2214 #. type: =head2
2215 #: ../src/guestfs.pod:955
2216 msgid "ABI GUARANTEE"
2217 msgstr ""
2218
2219 # type: textblock
2220 #. type: textblock
2221 #: ../src/guestfs.pod:957
2222 msgid ""
2223 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2224 "actions as outlined in this section.  Although we will deprecate some "
2225 "actions, for example if they get replaced by newer calls, we will keep the "
2226 "old actions forever.  This allows you the developer to program in confidence "
2227 "against the libguestfs API."
2228 msgstr ""
2229
2230 # type: =head1
2231 #. type: =head2
2232 #: ../src/guestfs.pod:963
2233 msgid "BLOCK DEVICE NAMING"
2234 msgstr ""
2235
2236 # type: textblock
2237 #. type: textblock
2238 #: ../src/guestfs.pod:965
2239 msgid ""
2240 "In the kernel there is now quite a profusion of schemata for naming block "
2241 "devices (in this context, by I<block device> I mean a physical or virtual "
2242 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2243 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2244 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2245 "for the old IDE driver (particularly for SATA devices) those devices also "
2246 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2247 "paravirtualized drivers.  This has created several different naming systems, "
2248 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2249 msgstr ""
2250
2251 # type: textblock
2252 #. type: textblock
2253 #: ../src/guestfs.pod:977
2254 msgid ""
2255 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2256 "Linux kernel to access block devices.  We can run a variety of appliances "
2257 "based on a variety of Linux kernels."
2258 msgstr ""
2259
2260 # type: textblock
2261 #. type: textblock
2262 #: ../src/guestfs.pod:981
2263 msgid ""
2264 "This causes a problem for libguestfs because many API calls use device or "
2265 "partition names.  Working scripts and the recipe (example) scripts that we "
2266 "make available over the internet could fail if the naming scheme changes."
2267 msgstr ""
2268
2269 # type: textblock
2270 #. type: textblock
2271 #: ../src/guestfs.pod:986
2272 msgid ""
2273 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2274 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2275 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2276 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2277 msgstr ""
2278
2279 # type: textblock
2280 #. type: textblock
2281 #: ../src/guestfs.pod:992
2282 msgid ""
2283 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2284 "L</guestfs_list_partitions> and similar calls return the true names of the "
2285 "devices and partitions as known to the appliance."
2286 msgstr ""
2287
2288 # type: =head2
2289 #. type: =head3
2290 #: ../src/guestfs.pod:997
2291 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2292 msgstr ""
2293
2294 # type: textblock
2295 #. type: textblock
2296 #: ../src/guestfs.pod:999
2297 msgid ""
2298 "Usually this translation is transparent.  However in some (very rare)  cases "
2299 "you may need to know the exact algorithm.  Such cases include where you use "
2300 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2301 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2302 msgstr ""
2303
2304 # type: textblock
2305 #. type: textblock
2306 #: ../src/guestfs.pod:1005
2307 msgid ""
2308 "The algorithm is applied only to I<parameters> which are known to be either "
2309 "device or partition names.  Return values from functions such as L</"
2310 "guestfs_list_devices> are never changed."
2311 msgstr ""
2312
2313 # type: textblock
2314 #. type: textblock
2315 #: ../src/guestfs.pod:1013
2316 msgid "Is the string a parameter which is a device or partition name?"
2317 msgstr ""
2318
2319 # type: textblock
2320 #. type: textblock
2321 #: ../src/guestfs.pod:1017
2322 msgid "Does the string begin with C</dev/sd>?"
2323 msgstr ""
2324
2325 # type: textblock
2326 #. type: textblock
2327 #: ../src/guestfs.pod:1021
2328 msgid ""
2329 "Does the named device exist? If so, we use that device.  However if I<not> "
2330 "then we continue with this algorithm."
2331 msgstr ""
2332
2333 # type: textblock
2334 #. type: textblock
2335 #: ../src/guestfs.pod:1026
2336 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2337 msgstr ""
2338
2339 # type: textblock
2340 #. type: textblock
2341 #: ../src/guestfs.pod:1028
2342 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2343 msgstr ""
2344
2345 # type: textblock
2346 #. type: textblock
2347 #: ../src/guestfs.pod:1030
2348 msgid "If that named device exists, use it.  If not, continue."
2349 msgstr ""
2350
2351 # type: textblock
2352 #. type: textblock
2353 #: ../src/guestfs.pod:1034
2354 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2355 msgstr ""
2356
2357 # type: textblock
2358 #. type: textblock
2359 #: ../src/guestfs.pod:1036
2360 msgid "If that named device exists, use it.  If not, return an error."
2361 msgstr ""
2362
2363 # type: =head3
2364 #. type: =head3
2365 #: ../src/guestfs.pod:1040
2366 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2367 msgstr ""
2368
2369 # type: textblock
2370 #. type: textblock
2371 #: ../src/guestfs.pod:1042
2372 msgid ""
2373 "Although the standard naming scheme and automatic translation is useful for "
2374 "simple programs and guestfish scripts, for larger programs it is best not to "
2375 "rely on this mechanism."
2376 msgstr ""
2377
2378 # type: textblock
2379 #. type: textblock
2380 #: ../src/guestfs.pod:1046
2381 msgid ""
2382 "Where possible for maximum future portability programs using libguestfs "
2383 "should use these future-proof techniques:"
2384 msgstr ""
2385
2386 # type: textblock
2387 #. type: textblock
2388 #: ../src/guestfs.pod:1053
2389 msgid ""
2390 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2391 "device names, and then use those names directly."
2392 msgstr ""
2393
2394 # type: textblock
2395 #. type: textblock
2396 #: ../src/guestfs.pod:1056
2397 msgid ""
2398 "Since those device names exist by definition, they will never be translated."
2399 msgstr ""
2400
2401 # type: textblock
2402 #. type: textblock
2403 #: ../src/guestfs.pod:1061
2404 msgid ""
2405 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2406 "filesystem labels."
2407 msgstr ""
2408
2409 # type: =head1
2410 #. type: =head1
2411 #: ../src/guestfs.pod:1066
2412 msgid "SECURITY"
2413 msgstr ""
2414
2415 # type: textblock
2416 #. type: textblock
2417 #: ../src/guestfs.pod:1068
2418 msgid ""
2419 "This section discusses security implications of using libguestfs, "
2420 "particularly with untrusted or malicious guests or disk images."
2421 msgstr ""
2422
2423 # type: =head2
2424 #. type: =head2
2425 #: ../src/guestfs.pod:1071
2426 msgid "GENERAL SECURITY CONSIDERATIONS"
2427 msgstr ""
2428
2429 # type: textblock
2430 #. type: textblock
2431 #: ../src/guestfs.pod:1073
2432 msgid ""
2433 "Be careful with any files or data that you download from a guest (by "
2434 "\"download\" we mean not just the L</guestfs_download> command but any "
2435 "command that reads files, filenames, directories or anything else from a "
2436 "disk image).  An attacker could manipulate the data to fool your program "
2437 "into doing the wrong thing.  Consider cases such as:"
2438 msgstr ""
2439
2440 # type: textblock
2441 #. type: textblock
2442 #: ../src/guestfs.pod:1083
2443 msgid "the data (file etc) not being present"
2444 msgstr ""
2445
2446 # type: textblock
2447 #. type: textblock
2448 #: ../src/guestfs.pod:1087
2449 msgid "being present but empty"
2450 msgstr ""
2451
2452 # type: textblock
2453 #. type: textblock
2454 #: ../src/guestfs.pod:1091
2455 msgid "being much larger than normal"
2456 msgstr ""
2457
2458 # type: textblock
2459 #. type: textblock
2460 #: ../src/guestfs.pod:1095
2461 msgid "containing arbitrary 8 bit data"
2462 msgstr ""
2463
2464 # type: textblock
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1099
2467 msgid "being in an unexpected character encoding"
2468 msgstr ""
2469
2470 # type: textblock
2471 #. type: textblock
2472 #: ../src/guestfs.pod:1103
2473 msgid "containing homoglyphs."
2474 msgstr ""
2475
2476 # type: =head2
2477 #. type: =head2
2478 #: ../src/guestfs.pod:1107
2479 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2480 msgstr ""
2481
2482 # type: textblock
2483 #. type: textblock
2484 #: ../src/guestfs.pod:1109
2485 msgid ""
2486 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2487 "(VFS) module can sometimes be escalated into exploits by deliberately "
2488 "creating a malicious, malformed filesystem.  These exploits are very severe "
2489 "for two reasons.  Firstly there are very many filesystem drivers in the "
2490 "kernel, and many of them are infrequently used and not much developer "
2491 "attention has been paid to the code.  Linux userspace helps potential "
2492 "crackers by detecting the filesystem type and automatically choosing the "
2493 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2494 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2495 "exploit (worse in some ways), giving immediate and total access to the "
2496 "system right down to the hardware level."
2497 msgstr ""
2498
2499 # type: textblock
2500 #. type: textblock
2501 #: ../src/guestfs.pod:1122
2502 msgid ""
2503 "That explains why you should never mount a filesystem from an untrusted "
2504 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2505 "inside a qemu virtual machine, usually running as a non-root user.  The "
2506 "attacker would need to write a filesystem which first exploited the kernel, "
2507 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2508 "the libguestfs protocol, and finally to be as serious as the host kernel "
2509 "exploit it would need to escalate its privileges to root.  This multi-step "
2510 "escalation, performed by a static piece of data, is thought to be extremely "
2511 "hard to do, although we never say 'never' about security issues."
2512 msgstr ""
2513
2514 # type: textblock
2515 #. type: textblock
2516 #: ../src/guestfs.pod:1133
2517 msgid ""
2518 "In any case callers can reduce the attack surface by forcing the filesystem "
2519 "type when mounting (use L</guestfs_mount_vfs>)."
2520 msgstr ""
2521
2522 # type: =head2
2523 #. type: =head2
2524 #: ../src/guestfs.pod:1136
2525 msgid "PROTOCOL SECURITY"
2526 msgstr ""
2527
2528 # type: textblock
2529 #. type: textblock
2530 #: ../src/guestfs.pod:1138
2531 msgid ""
2532 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2533 "defined upper message size.  However a program that uses libguestfs must "
2534 "also take care - for example you can write a program that downloads a binary "
2535 "from a disk image and executes it locally, and no amount of protocol "
2536 "security will save you from the consequences."
2537 msgstr ""
2538
2539 # type: =head2
2540 #. type: =head2
2541 #: ../src/guestfs.pod:1144
2542 msgid "INSPECTION SECURITY"
2543 msgstr ""
2544
2545 # type: textblock
2546 #. type: textblock
2547 #: ../src/guestfs.pod:1146
2548 msgid ""
2549 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2550 "directly from the guest, and these could contain any 8 bit data.  Callers "
2551 "should be careful to escape these before printing them to a structured file "
2552 "(for example, use HTML escaping if creating a web page)."
2553 msgstr ""
2554
2555 # type: textblock
2556 #. type: textblock
2557 #: ../src/guestfs.pod:1152
2558 msgid ""
2559 "Guest configuration may be altered in unusual ways by the administrator of "
2560 "the virtual machine, and may not reflect reality (particularly for untrusted "
2561 "or actively malicious guests).  For example we parse the hostname from "
2562 "configuration files like C</etc/sysconfig/network> that we find in the "
2563 "guest, but the guest administrator can easily manipulate these files to "
2564 "provide the wrong hostname."
2565 msgstr ""
2566
2567 # type: textblock
2568 #. type: textblock
2569 #: ../src/guestfs.pod:1160
2570 msgid ""
2571 "The inspection API parses guest configuration using two external libraries: "
2572 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2573 "designed to be robust in the face of malicious data, although denial of "
2574 "service attacks are still possible, for example with oversized configuration "
2575 "files."
2576 msgstr ""
2577
2578 # type: =head2
2579 #. type: =head2
2580 #: ../src/guestfs.pod:1166
2581 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2582 msgstr ""
2583
2584 # type: textblock
2585 #. type: textblock
2586 #: ../src/guestfs.pod:1168
2587 msgid ""
2588 "Be very cautious about running commands from the guest.  By running a "
2589 "command in the guest, you are giving CPU time to a binary that you do not "
2590 "control, under the same user account as the library, albeit wrapped in qemu "
2591 "virtualization.  More information and alternatives can be found in the "
2592 "section L</RUNNING COMMANDS>."
2593 msgstr ""
2594
2595 # type: =head2
2596 #. type: =head2
2597 #: ../src/guestfs.pod:1174
2598 msgid "CVE-2010-3851"
2599 msgstr ""
2600
2601 # type: textblock
2602 #. type: textblock
2603 #: ../src/guestfs.pod:1176
2604 msgid "https://bugzilla.redhat.com/642934"
2605 msgstr ""
2606
2607 # type: textblock
2608 #. type: textblock
2609 #: ../src/guestfs.pod:1178
2610 msgid ""
2611 "This security bug concerns the automatic disk format detection that qemu "
2612 "does on disk images."
2613 msgstr ""
2614
2615 # type: textblock
2616 #. type: textblock
2617 #: ../src/guestfs.pod:1181
2618 msgid ""
2619 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2620 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2621 "for one of the known headers, and if none is found then assuming the disk "
2622 "image must be raw."
2623 msgstr ""
2624
2625 # type: textblock
2626 #. type: textblock
2627 #: ../src/guestfs.pod:1186
2628 msgid ""
2629 "This allows a guest which has been given a raw disk image to write some "
2630 "other header.  At next boot (or when the disk image is accessed by "
2631 "libguestfs) qemu would do autodetection and think the disk image format was, "
2632 "say, qcow2 based on the header written by the guest."
2633 msgstr ""
2634
2635 # type: textblock
2636 #. type: textblock
2637 #: ../src/guestfs.pod:1191
2638 msgid ""
2639 "This in itself would not be a problem, but qcow2 offers many features, one "
2640 "of which is to allow a disk image to refer to another image (called the "
2641 "\"backing disk\").  It does this by placing the path to the backing disk "
2642 "into the qcow2 header.  This path is not validated and could point to any "
2643 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2644 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2645 "control of the attacker."
2646 msgstr ""
2647
2648 # type: textblock
2649 #. type: textblock
2650 #: ../src/guestfs.pod:1199
2651 msgid ""
2652 "In libguestfs this is rather hard to exploit except under two circumstances:"
2653 msgstr ""
2654
2655 # type: textblock
2656 #. type: textblock
2657 #: ../src/guestfs.pod:1206
2658 msgid "You have enabled the network or have opened the disk in write mode."
2659 msgstr ""
2660
2661 # type: textblock
2662 #. type: textblock
2663 #: ../src/guestfs.pod:1210
2664 msgid ""
2665 "You are also running untrusted code from the guest (see L</RUNNING "
2666 "COMMANDS>)."
2667 msgstr ""
2668
2669 # type: textblock
2670 #. type: textblock
2671 #: ../src/guestfs.pod:1215
2672 msgid ""
2673 "The way to avoid this is to specify the expected disk format when adding "
2674 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2675 "should always do this if the disk is raw format, and it's a good idea for "
2676 "other cases too."
2677 msgstr ""
2678
2679 # type: textblock
2680 #. type: textblock
2681 #: ../src/guestfs.pod:1220
2682 msgid ""
2683 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2684 "format is fetched from libvirt and passed through."
2685 msgstr ""
2686
2687 # type: textblock
2688 #. type: textblock
2689 #: ../src/guestfs.pod:1223
2690 msgid ""
2691 "For libguestfs tools, use the I<--format> command line parameter as "
2692 "appropriate."
2693 msgstr ""
2694
2695 # type: =head1
2696 #. type: =head1
2697 #: ../src/guestfs.pod:1226
2698 msgid "CONNECTION MANAGEMENT"
2699 msgstr ""
2700
2701 # type: =head2
2702 #. type: =head2
2703 #: ../src/guestfs.pod:1228
2704 msgid "guestfs_h *"
2705 msgstr ""
2706
2707 # type: textblock
2708 #. type: textblock
2709 #: ../src/guestfs.pod:1230
2710 msgid ""
2711 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2712 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2713 "handle and release all resources used."
2714 msgstr ""
2715
2716 # type: textblock
2717 #. type: textblock
2718 #: ../src/guestfs.pod:1234
2719 msgid ""
2720 "For information on using multiple handles and threads, see the section L</"
2721 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2722 msgstr ""
2723
2724 # type: =head2
2725 #. type: =head2
2726 #: ../src/guestfs.pod:1237
2727 msgid "guestfs_create"
2728 msgstr ""
2729
2730 # type: verbatim
2731 #. type: verbatim
2732 #: ../src/guestfs.pod:1239
2733 #, no-wrap
2734 msgid ""
2735 " guestfs_h *guestfs_create (void);\n"
2736 "\n"
2737 msgstr ""
2738
2739 # type: textblock
2740 #. type: textblock
2741 #: ../src/guestfs.pod:1241
2742 msgid "Create a connection handle."
2743 msgstr ""
2744
2745 # type: textblock
2746 #. type: textblock
2747 #: ../src/guestfs.pod:1243
2748 msgid ""
2749 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2750 "on the handle at least once."
2751 msgstr ""
2752
2753 # type: textblock
2754 #. type: textblock
2755 #: ../src/guestfs.pod:1246
2756 msgid ""
2757 "This function returns a non-NULL pointer to a handle on success or NULL on "
2758 "error."
2759 msgstr ""
2760
2761 # type: textblock
2762 #. type: textblock
2763 #: ../src/guestfs.pod:1249
2764 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2765 msgstr ""
2766
2767 # type: textblock
2768 #. type: textblock
2769 #: ../src/guestfs.pod:1251
2770 msgid ""
2771 "You may also want to configure error handling for the handle.  See L</ERROR "
2772 "HANDLING> section below."
2773 msgstr ""
2774
2775 # type: =head2
2776 #. type: =head2
2777 #: ../src/guestfs.pod:1254
2778 msgid "guestfs_close"
2779 msgstr ""
2780
2781 # type: verbatim
2782 #. type: verbatim
2783 #: ../src/guestfs.pod:1256
2784 #, no-wrap
2785 msgid ""
2786 " void guestfs_close (guestfs_h *g);\n"
2787 "\n"
2788 msgstr ""
2789
2790 # type: textblock
2791 #. type: textblock
2792 #: ../src/guestfs.pod:1258
2793 msgid "This closes the connection handle and frees up all resources used."
2794 msgstr ""
2795
2796 # type: =head1
2797 #. type: =head1
2798 #: ../src/guestfs.pod:1260
2799 msgid "ERROR HANDLING"
2800 msgstr ""
2801
2802 # type: textblock
2803 #. type: textblock
2804 #: ../src/guestfs.pod:1262
2805 msgid ""
2806 "API functions can return errors.  For example, almost all functions that "
2807 "return C<int> will return C<-1> to indicate an error."
2808 msgstr ""
2809
2810 # type: textblock
2811 #. type: textblock
2812 #: ../src/guestfs.pod:1265
2813 msgid ""
2814 "Additional information is available for errors: an error message string and "
2815 "optionally an error number (errno) if the thing that failed was a system "
2816 "call."
2817 msgstr ""
2818
2819 # type: textblock
2820 #. type: textblock
2821 #: ../src/guestfs.pod:1269
2822 msgid ""
2823 "You can get at the additional information about the last error on the handle "
2824 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2825 "up an error handler with L</guestfs_set_error_handler>."
2826 msgstr ""
2827
2828 # type: textblock
2829 #. type: textblock
2830 #: ../src/guestfs.pod:1274
2831 msgid ""
2832 "When the handle is created, a default error handler is installed which "
2833 "prints the error message string to C<stderr>.  For small short-running "
2834 "command line programs it is sufficient to do:"
2835 msgstr ""
2836
2837 # type: verbatim
2838 #. type: verbatim
2839 #: ../src/guestfs.pod:1278
2840 #, no-wrap
2841 msgid ""
2842 " if (guestfs_launch (g) == -1)\n"
2843 "   exit (EXIT_FAILURE);\n"
2844 "\n"
2845 msgstr ""
2846
2847 # type: textblock
2848 #. type: textblock
2849 #: ../src/guestfs.pod:1281
2850 msgid ""
2851 "since the default error handler will ensure that an error message has been "
2852 "printed to C<stderr> before the program exits."
2853 msgstr ""
2854
2855 # type: textblock
2856 #. type: textblock
2857 #: ../src/guestfs.pod:1284
2858 msgid ""
2859 "For other programs the caller will almost certainly want to install an "
2860 "alternate error handler or do error handling in-line like this:"
2861 msgstr ""
2862
2863 # type: verbatim
2864 #. type: verbatim
2865 #: ../src/guestfs.pod:1287
2866 #, no-wrap
2867 msgid ""
2868 " g = guestfs_create ();\n"
2869 " \n"
2870 msgstr ""
2871
2872 # type: verbatim
2873 #. type: verbatim
2874 #: ../src/guestfs.pod:1289
2875 #, no-wrap
2876 msgid ""
2877 " /* This disables the default behaviour of printing errors\n"
2878 "    on stderr. */\n"
2879 " guestfs_set_error_handler (g, NULL, NULL);\n"
2880 " \n"
2881 msgstr ""
2882
2883 # type: verbatim
2884 #. type: verbatim
2885 #: ../src/guestfs.pod:1293
2886 #, no-wrap
2887 msgid ""
2888 " if (guestfs_launch (g) == -1) {\n"
2889 "   /* Examine the error message and print it etc. */\n"
2890 "   char *msg = guestfs_last_error (g);\n"
2891 "   int errnum = guestfs_last_errno (g);\n"
2892 "   fprintf (stderr, \"%s\\n\", msg);\n"
2893 "   /* ... */\n"
2894 "  }\n"
2895 "\n"
2896 msgstr ""
2897
2898 # type: textblock
2899 #. type: textblock
2900 #: ../src/guestfs.pod:1301
2901 msgid ""
2902 "Out of memory errors are handled differently.  The default action is to call "
2903 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2904 "guestfs_set_out_of_memory_handler>."
2905 msgstr ""
2906
2907 # type: textblock
2908 #. type: textblock
2909 #: ../src/guestfs.pod:1305
2910 msgid ""
2911 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2912 "because there is no handle if this happens there is no way to get additional "
2913 "error information.  However L</guestfs_create> is supposed to be a "
2914 "lightweight operation which can only fail because of insufficient memory (it "
2915 "returns NULL in this case)."
2916 msgstr ""
2917
2918 # type: =head2
2919 #. type: =head2
2920 #: ../src/guestfs.pod:1311
2921 msgid "guestfs_last_error"
2922 msgstr ""
2923
2924 # type: verbatim
2925 #. type: verbatim
2926 #: ../src/guestfs.pod:1313
2927 #, no-wrap
2928 msgid ""
2929 " const char *guestfs_last_error (guestfs_h *g);\n"
2930 "\n"
2931 msgstr ""
2932
2933 # type: textblock
2934 #. type: textblock
2935 #: ../src/guestfs.pod:1315
2936 msgid ""
2937 "This returns the last error message that happened on C<g>.  If there has not "
2938 "been an error since the handle was created, then this returns C<NULL>."
2939 msgstr ""
2940
2941 # type: textblock
2942 #. type: textblock
2943 #: ../src/guestfs.pod:1319
2944 msgid ""
2945 "The lifetime of the returned string is until the next error occurs, or L</"
2946 "guestfs_close> is called."
2947 msgstr ""
2948
2949 # type: =head2
2950 #. type: =head2
2951 #: ../src/guestfs.pod:1322
2952 msgid "guestfs_last_errno"
2953 msgstr ""
2954
2955 # type: verbatim
2956 #. type: verbatim
2957 #: ../src/guestfs.pod:1324
2958 #, no-wrap
2959 msgid ""
2960 " int guestfs_last_errno (guestfs_h *g);\n"
2961 "\n"
2962 msgstr ""
2963
2964 # type: textblock
2965 #. type: textblock
2966 #: ../src/guestfs.pod:1326
2967 msgid "This returns the last error number (errno) that happened on C<g>."
2968 msgstr ""
2969
2970 # type: textblock
2971 #. type: textblock
2972 #: ../src/guestfs.pod:1328
2973 msgid "If successful, an errno integer not equal to zero is returned."
2974 msgstr ""
2975
2976 # type: textblock
2977 #. type: textblock
2978 #: ../src/guestfs.pod:1330
2979 msgid ""
2980 "If no error, this returns 0.  This call can return 0 in three situations:"
2981 msgstr ""
2982
2983 # type: textblock
2984 #. type: textblock
2985 #: ../src/guestfs.pod:1337
2986 msgid "There has not been any error on the handle."
2987 msgstr ""
2988
2989 # type: textblock
2990 #. type: textblock
2991 #: ../src/guestfs.pod:1341
2992 msgid ""
2993 "There has been an error but the errno was meaningless.  This corresponds to "
2994 "the case where the error did not come from a failed system call, but for "
2995 "some other reason."
2996 msgstr ""
2997
2998 # type: textblock
2999 #. type: textblock
3000 #: ../src/guestfs.pod:1347
3001 msgid ""
3002 "There was an error from a failed system call, but for some reason the errno "
3003 "was not captured and returned.  This usually indicates a bug in libguestfs."
3004 msgstr ""
3005
3006 # type: textblock
3007 #. type: textblock
3008 #: ../src/guestfs.pod:1353
3009 msgid ""
3010 "Libguestfs tries to convert the errno from inside the applicance into a "
3011 "corresponding errno for the caller (not entirely trivial: the appliance "
3012 "might be running a completely different operating system from the library "
3013 "and error numbers are not standardized across Un*xen).  If this could not be "
3014 "done, then the error is translated to C<EINVAL>.  In practice this should "
3015 "only happen in very rare circumstances."
3016 msgstr ""
3017
3018 # type: =head2
3019 #. type: =head2
3020 #: ../src/guestfs.pod:1361
3021 msgid "guestfs_set_error_handler"
3022 msgstr ""
3023
3024 # type: verbatim
3025 #. type: verbatim
3026 #: ../src/guestfs.pod:1363
3027 #, no-wrap
3028 msgid ""
3029 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3030 "                                           void *opaque,\n"
3031 "                                           const char *msg);\n"
3032 " void guestfs_set_error_handler (guestfs_h *g,\n"
3033 "                                 guestfs_error_handler_cb cb,\n"
3034 "                                 void *opaque);\n"
3035 "\n"
3036 msgstr ""
3037
3038 # type: textblock
3039 #. type: textblock
3040 #: ../src/guestfs.pod:1370
3041 msgid ""
3042 "The callback C<cb> will be called if there is an error.  The parameters "
3043 "passed to the callback are an opaque data pointer and the error message "
3044 "string."
3045 msgstr ""
3046
3047 # type: textblock
3048 #. type: textblock
3049 #: ../src/guestfs.pod:1374
3050 msgid ""
3051 "C<errno> is not passed to the callback.  To get that the callback must call "
3052 "L</guestfs_last_errno>."
3053 msgstr ""
3054
3055 # type: textblock
3056 #. type: textblock
3057 #: ../src/guestfs.pod:1377
3058 msgid ""
3059 "Note that the message string C<msg> is freed as soon as the callback "
3060 "function returns, so if you want to stash it somewhere you must make your "
3061 "own copy."
3062 msgstr ""
3063
3064 # type: textblock
3065 #. type: textblock
3066 #: ../src/guestfs.pod:1381
3067 msgid "The default handler prints messages on C<stderr>."
3068 msgstr ""
3069
3070 # type: textblock
3071 #. type: textblock
3072 #: ../src/guestfs.pod:1383
3073 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3074 msgstr ""
3075
3076 # type: =head2
3077 #. type: =head2
3078 #: ../src/guestfs.pod:1385
3079 msgid "guestfs_get_error_handler"
3080 msgstr ""
3081
3082 # type: verbatim
3083 #. type: verbatim
3084 #: ../src/guestfs.pod:1387
3085 #, no-wrap
3086 msgid ""
3087 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3088 "                                                     void **opaque_rtn);\n"
3089 "\n"
3090 msgstr ""
3091
3092 # type: textblock
3093 #. type: textblock
3094 #: ../src/guestfs.pod:1390
3095 msgid "Returns the current error handler callback."
3096 msgstr ""
3097
3098 # type: =head2
3099 #. type: =head2
3100 #: ../src/guestfs.pod:1392
3101 msgid "guestfs_set_out_of_memory_handler"
3102 msgstr ""
3103
3104 # type: verbatim
3105 #. type: verbatim
3106 #: ../src/guestfs.pod:1394
3107 #, no-wrap
3108 msgid ""
3109 " typedef void (*guestfs_abort_cb) (void);\n"
3110 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3111 "                                        guestfs_abort_cb);\n"
3112 "\n"
3113 msgstr ""
3114
3115 # type: textblock
3116 #. type: textblock
3117 #: ../src/guestfs.pod:1398
3118 msgid ""
3119 "The callback C<cb> will be called if there is an out of memory situation.  "
3120 "I<Note this callback must not return>."
3121 msgstr ""
3122
3123 # type: textblock
3124 #. type: textblock
3125 #: ../src/guestfs.pod:1401
3126 msgid "The default is to call L<abort(3)>."
3127 msgstr ""
3128
3129 # type: textblock
3130 #. type: textblock
3131 #: ../src/guestfs.pod:1403
3132 msgid ""
3133 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3134 msgstr ""
3135
3136 # type: =head2
3137 #. type: =head2
3138 #: ../src/guestfs.pod:1406
3139 msgid "guestfs_get_out_of_memory_handler"
3140 msgstr ""
3141
3142 # type: verbatim
3143 #. type: verbatim
3144 #: ../src/guestfs.pod:1408
3145 #, no-wrap
3146 msgid ""
3147 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3148 "\n"
3149 msgstr ""
3150
3151 # type: textblock
3152 #. type: textblock
3153 #: ../src/guestfs.pod:1410
3154 msgid "This returns the current out of memory handler."
3155 msgstr ""
3156
3157 # type: =head1
3158 #. type: =head1
3159 #: ../src/guestfs.pod:1412
3160 msgid "API CALLS"
3161 msgstr ""
3162
3163 # type: textblock
3164 #. type: textblock
3165 #: ../src/guestfs.pod:1414 ../fish/guestfish.pod:958
3166 msgid "@ACTIONS@"
3167 msgstr ""
3168
3169 # type: =head1
3170 #. type: =head1
3171 #: ../src/guestfs.pod:1416
3172 msgid "STRUCTURES"
3173 msgstr ""
3174
3175 # type: textblock
3176 #. type: textblock
3177 #: ../src/guestfs.pod:1418
3178 msgid "@STRUCTS@"
3179 msgstr ""
3180
3181 # type: =head1
3182 #. type: =head1
3183 #: ../src/guestfs.pod:1420
3184 msgid "AVAILABILITY"
3185 msgstr ""
3186
3187 # type: =head2
3188 #. type: =head2
3189 #: ../src/guestfs.pod:1422
3190 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3191 msgstr ""
3192
3193 # type: textblock
3194 #. type: textblock
3195 #: ../src/guestfs.pod:1424
3196 msgid ""
3197 "Using L</guestfs_available> you can test availability of the following "
3198 "groups of functions.  This test queries the appliance to see if the "
3199 "appliance you are currently using supports the functionality."
3200 msgstr ""
3201
3202 # type: textblock
3203 #. type: textblock
3204 #: ../src/guestfs.pod:1429
3205 msgid "@AVAILABILITY@"
3206 msgstr ""
3207
3208 # type: =head2
3209 #. type: =head2
3210 #: ../src/guestfs.pod:1431
3211 msgid "GUESTFISH supported COMMAND"
3212 msgstr ""
3213
3214 # type: textblock
3215 #. type: textblock
3216 #: ../src/guestfs.pod:1433
3217 msgid ""
3218 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3219 "prints out the available groups and whether they are supported by this build "
3220 "of libguestfs.  Note however that you have to do C<run> first."
3221 msgstr ""
3222
3223 # type: =head2
3224 #. type: =head2
3225 #: ../src/guestfs.pod:1438
3226 msgid "SINGLE CALLS AT COMPILE TIME"
3227 msgstr ""
3228
3229 # type: textblock
3230 #. type: textblock
3231 #: ../src/guestfs.pod:1440
3232 msgid ""
3233 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3234 "function, such as:"
3235 msgstr ""
3236
3237 # type: verbatim
3238 #. type: verbatim
3239 #: ../src/guestfs.pod:1443
3240 #, no-wrap
3241 msgid ""
3242 " #define LIBGUESTFS_HAVE_DD 1\n"
3243 "\n"
3244 msgstr ""
3245
3246 # type: textblock
3247 #. type: textblock
3248 #: ../src/guestfs.pod:1445
3249 msgid "if L</guestfs_dd> is available."
3250 msgstr ""
3251
3252 # type: textblock
3253 #. type: textblock
3254 #: ../src/guestfs.pod:1447
3255 msgid ""
3256 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3257 "function is available at compile time, we recommended using build tools such "
3258 "as autoconf or cmake.  For example in autotools you could use:"
3259 msgstr ""
3260
3261 # type: verbatim
3262 #. type: verbatim
3263 #: ../src/guestfs.pod:1452
3264 #, no-wrap
3265 msgid ""
3266 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3267 " AC_CHECK_FUNCS([guestfs_dd])\n"
3268 "\n"
3269 msgstr ""
3270
3271 # type: textblock
3272 #. type: textblock
3273 #: ../src/guestfs.pod:1455
3274 msgid ""
3275 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3276 "in your program."
3277 msgstr ""
3278
3279 # type: =head2
3280 #. type: =head2
3281 #: ../src/guestfs.pod:1458
3282 msgid "SINGLE CALLS AT RUN TIME"
3283 msgstr ""
3284
3285 # type: textblock
3286 #. type: textblock
3287 #: ../src/guestfs.pod:1460
3288 msgid ""
3289 "Testing at compile time doesn't guarantee that a function really exists in "
3290 "the library.  The reason is that you might be dynamically linked against a "
3291 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3292 "This situation unfortunately results in a segmentation fault, which is a "
3293 "shortcoming of the C dynamic linking system itself."
3294 msgstr ""
3295
3296 # type: textblock
3297 #. type: textblock
3298 #: ../src/guestfs.pod:1467
3299 msgid ""
3300 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3301 "in this example program (note that you still need the compile time check as "
3302 "well):"
3303 msgstr ""
3304
3305 # type: verbatim
3306 #. type: verbatim
3307 #: ../src/guestfs.pod:1471
3308 #, no-wrap
3309 msgid ""
3310 " #include <stdio.h>\n"
3311 " #include <stdlib.h>\n"
3312 " #include <unistd.h>\n"
3313 " #include <dlfcn.h>\n"
3314 " #include <guestfs.h>\n"
3315 " \n"
3316 msgstr ""
3317
3318 # type: verbatim
3319 #. type: verbatim
3320 #: ../src/guestfs.pod:1477
3321 #, no-wrap
3322 msgid ""
3323 " main ()\n"
3324 " {\n"
3325 " #ifdef LIBGUESTFS_HAVE_DD\n"
3326 "   void *dl;\n"
3327 "   int has_function;\n"
3328 " \n"
3329 msgstr ""
3330
3331 # type: verbatim
3332 #. type: verbatim
3333 #: ../src/guestfs.pod:1483
3334 #, no-wrap
3335 msgid ""
3336 "   /* Test if the function guestfs_dd is really available. */\n"
3337 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3338 "   if (!dl) {\n"
3339 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3340 "     exit (EXIT_FAILURE);\n"
3341 "   }\n"
3342 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3343 "   dlclose (dl);\n"
3344 " \n"
3345 msgstr ""
3346
3347 # type: verbatim
3348 #. type: verbatim
3349 #: ../src/guestfs.pod:1492
3350 #, no-wrap
3351 msgid ""
3352 "   if (!has_function)\n"
3353 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3354 "   else {\n"
3355 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3356 "     /* Now it's safe to call\n"
3357 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3358 "     */\n"
3359 "   }\n"
3360 " #else\n"
3361 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3362 " #endif\n"
3363 "  }\n"
3364 "\n"
3365 msgstr ""
3366
3367 # type: textblock
3368 #. type: textblock
3369 #: ../src/guestfs.pod:1505
3370 msgid ""
3371 "You may think the above is an awful lot of hassle, and it is.  There are "
3372 "other ways outside of the C linking system to ensure that this kind of "
3373 "incompatibility never arises, such as using package versioning:"
3374 msgstr ""
3375
3376 # type: verbatim
3377 #. type: verbatim
3378 #: ../src/guestfs.pod:1510
3379 #, no-wrap
3380 msgid ""
3381 " Requires: libguestfs >= 1.0.80\n"
3382 "\n"
3383 msgstr ""
3384
3385 # type: =head1
3386 #. type: =head1
3387 #: ../src/guestfs.pod:1512
3388 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3389 msgstr ""
3390
3391 # type: textblock
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1514
3394 msgid ""
3395 "A recent feature of the API is the introduction of calls which take optional "
3396 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3397 "takes variable arguments (ie. C<...>), as in this example:"
3398 msgstr ""
3399
3400 # type: verbatim
3401 #. type: verbatim
3402 #: ../src/guestfs.pod:1519
3403 #, no-wrap
3404 msgid ""
3405 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3406 "\n"
3407 msgstr ""
3408
3409 # type: textblock
3410 #. type: textblock
3411 #: ../src/guestfs.pod:1521
3412 msgid ""
3413 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3414 "call with no optional arguments specified:"
3415 msgstr ""
3416
3417 # type: verbatim
3418 #. type: verbatim
3419 #: ../src/guestfs.pod:1524
3420 #, no-wrap
3421 msgid ""
3422 " guestfs_add_drive_opts (g, filename, -1);\n"
3423 "\n"
3424 msgstr ""
3425
3426 # type: textblock
3427 #. type: textblock
3428 #: ../src/guestfs.pod:1526
3429 msgid "With a single optional argument:"
3430 msgstr ""
3431
3432 # type: verbatim
3433 #. type: verbatim
3434 #: ../src/guestfs.pod:1528
3435 #, no-wrap
3436 msgid ""
3437 " guestfs_add_drive_opts (g, filename,\n"
3438 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3439 "                         -1);\n"
3440 "\n"
3441 msgstr ""
3442
3443 # type: textblock
3444 #. type: textblock
3445 #: ../src/guestfs.pod:1532
3446 msgid "With two:"
3447 msgstr ""
3448
3449 # type: verbatim
3450 #. type: verbatim
3451 #: ../src/guestfs.pod:1534
3452 #, no-wrap
3453 msgid ""
3454 " guestfs_add_drive_opts (g, filename,\n"
3455 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3456 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3457 "                         -1);\n"
3458 "\n"
3459 msgstr ""
3460
3461 # type: textblock
3462 #. type: textblock
3463 #: ../src/guestfs.pod:1539
3464 msgid ""
3465 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3466 "happen!"
3467 msgstr ""
3468
3469 # type: =head2
3470 #. type: =head2
3471 #: ../src/guestfs.pod:1542
3472 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3473 msgstr ""
3474
3475 # type: textblock
3476 #. type: textblock
3477 #: ../src/guestfs.pod:1544
3478 msgid ""
3479 "The second variant has the same name with the suffix C<_va>, which works the "
3480 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3481 "example function, this is declared:"
3482 msgstr ""
3483
3484 # type: verbatim
3485 #. type: verbatim
3486 #: ../src/guestfs.pod:1548
3487 #, no-wrap
3488 msgid ""
3489 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3490 "                                va_list args);\n"
3491 "\n"
3492 msgstr ""
3493
3494 # type: =head2
3495 #. type: =head2
3496 #: ../src/guestfs.pod:1551
3497 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3498 msgstr ""
3499
3500 # type: textblock
3501 #. type: textblock
3502 #: ../src/guestfs.pod:1553
3503 msgid ""
3504 "The third variant is useful where you need to construct these calls.  You "
3505 "pass in a structure where you fill in the optional fields.  The structure "
3506 "has a bitmask as the first element which you must set to indicate which "
3507 "fields you have filled in.  For our example function the structure and call "
3508 "are declared:"
3509 msgstr ""
3510
3511 # type: verbatim
3512 #. type: verbatim
3513 #: ../src/guestfs.pod:1559
3514 #, no-wrap
3515 msgid ""
3516 " struct guestfs_add_drive_opts_argv {\n"
3517 "   uint64_t bitmask;\n"
3518 "   int readonly;\n"
3519 "   const char *format;\n"
3520 "   /* ... */\n"
3521 " };\n"
3522 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3523 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3524 "\n"
3525 msgstr ""
3526
3527 # type: textblock
3528 #. type: textblock
3529 #: ../src/guestfs.pod:1568
3530 msgid "You could call it like this:"
3531 msgstr ""
3532
3533 # type: verbatim
3534 #. type: verbatim
3535 #: ../src/guestfs.pod:1570
3536 #, no-wrap
3537 msgid ""
3538 " struct guestfs_add_drive_opts_argv optargs = {\n"
3539 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3540 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3541 "   .readonly = 1,\n"
3542 "   .format = \"qcow2\"\n"
3543 " };\n"
3544 " \n"
3545 msgstr ""
3546
3547 # type: verbatim
3548 #. type: verbatim
3549 #: ../src/guestfs.pod:1577
3550 #, no-wrap
3551 msgid ""
3552 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3553 "\n"
3554 msgstr ""
3555
3556 # type: textblock
3557 #. type: textblock
3558 #: ../src/guestfs.pod:1579 ../src/guestfs-actions.pod:11
3559 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3560 #: ../fish/guestfish-actions.pod:1253 ../tools/virt-win-reg.pl:532
3561 msgid "Notes:"
3562 msgstr ""
3563
3564 # type: textblock
3565 #. type: textblock
3566 #: ../src/guestfs.pod:1585
3567 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3568 msgstr ""
3569
3570 # type: textblock
3571 #. type: textblock
3572 #: ../src/guestfs.pod:1590
3573 msgid "You do not need to fill in all fields of the structure."
3574 msgstr ""
3575
3576 # type: textblock
3577 #. type: textblock
3578 #: ../src/guestfs.pod:1594
3579 msgid ""
3580 "There must be a one-to-one correspondence between fields of the structure "
3581 "that are filled in, and bits set in the bitmask."
3582 msgstr ""
3583
3584 # type: =head2
3585 #. type: =head2
3586 #: ../src/guestfs.pod:1599
3587 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3588 msgstr ""
3589
3590 # type: textblock
3591 #. type: textblock
3592 #: ../src/guestfs.pod:1601
3593 msgid ""
3594 "In other languages, optional arguments are expressed in the way that is "
3595 "natural for that language.  We refer you to the language-specific "
3596 "documentation for more details on that."
3597 msgstr ""
3598
3599 # type: textblock
3600 #. type: textblock
3601 #: ../src/guestfs.pod:1605
3602 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3603 msgstr ""
3604
3605 # type: =head2
3606 #. type: =head2
3607 #: ../src/guestfs.pod:1607
3608 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3609 msgstr ""
3610
3611 # type: textblock
3612 #. type: textblock
3613 #: ../src/guestfs.pod:1609
3614 msgid ""
3615 "The child process generates events in some situations.  Current events "
3616 "include: receiving a log message, the child process exits."
3617 msgstr ""
3618
3619 # type: textblock
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1612
3622 msgid ""
3623 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3624 "types of events."
3625 msgstr ""
3626
3627 # type: textblock
3628 #. type: textblock
3629 #: ../src/guestfs.pod:1615
3630 msgid ""
3631 "Only I<one callback of each type> can be registered for each handle.  "
3632 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3633 "that type.  Cancel all callbacks of this type by calling this function with "
3634 "C<cb> set to C<NULL>."
3635 msgstr ""
3636
3637 # type: =head2
3638 #. type: =head2
3639 #: ../src/guestfs.pod:1620
3640 msgid "guestfs_set_log_message_callback"
3641 msgstr ""
3642
3643 # type: verbatim
3644 #. type: verbatim
3645 #: ../src/guestfs.pod:1622
3646 #, no-wrap
3647 msgid ""
3648 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3649 "                                         char *buf, int len);\n"
3650 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3651 "                                        guestfs_log_message_cb cb,\n"
3652 "                                        void *opaque);\n"
3653 "\n"
3654 msgstr ""
3655
3656 # type: textblock
3657 #. type: textblock
3658 #: ../src/guestfs.pod:1628
3659 msgid ""
3660 "The callback function C<cb> will be called whenever qemu or the guest writes "
3661 "anything to the console."
3662 msgstr ""
3663
3664 # type: textblock
3665 #. type: textblock
3666 #: ../src/guestfs.pod:1631
3667 msgid "Use this function to capture kernel messages and similar."
3668 msgstr ""
3669
3670 # type: textblock
3671 #. type: textblock
3672 #: ../src/guestfs.pod:1633
3673 msgid ""
3674 "Normally there is no log message handler, and log messages are just "
3675 "discarded."
3676 msgstr ""
3677
3678 # type: =head2
3679 #. type: =head2
3680 #: ../src/guestfs.pod:1636
3681 msgid "guestfs_set_subprocess_quit_callback"
3682 msgstr ""
3683
3684 # type: verbatim
3685 #. type: verbatim
3686 #: ../src/guestfs.pod:1638
3687 #, no-wrap
3688 msgid ""
3689 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3690 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3691 "                                            guestfs_subprocess_quit_cb cb,\n"
3692 "                                            void *opaque);\n"
3693 "\n"
3694 msgstr ""
3695
3696 # type: textblock
3697 #. type: textblock
3698 #: ../src/guestfs.pod:1643
3699 msgid ""
3700 "The callback function C<cb> will be called when the child process quits, "
3701 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3702 "corresponds to a transition from any state to the CONFIG state)."
3703 msgstr ""
3704
3705 # type: =head2
3706 #. type: =head2
3707 #: ../src/guestfs.pod:1648
3708 msgid "guestfs_set_launch_done_callback"
3709 msgstr ""
3710
3711 # type: verbatim
3712 #. type: verbatim
3713 #: ../src/guestfs.pod:1650
3714 #, no-wrap
3715 msgid ""
3716 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3717 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3718 "                                        guestfs_launch_done_cb cb,\n"
3719 "                                        void *opaque);\n"
3720 "\n"
3721 msgstr ""
3722
3723 # type: textblock
3724 #. type: textblock
3725 #: ../src/guestfs.pod:1655
3726 msgid ""
3727 "The callback function C<cb> will be called when the child process becomes "
3728 "ready first time after it has been launched.  (This corresponds to a "
3729 "transition from LAUNCHING to the READY state)."
3730 msgstr ""
3731
3732 # type: =head2
3733 #. type: =head2
3734 #: ../src/guestfs.pod:1659
3735 msgid "guestfs_set_close_callback"
3736 msgstr ""
3737
3738 # type: verbatim
3739 #. type: verbatim
3740 #: ../src/guestfs.pod:1661
3741 #, no-wrap
3742 msgid ""
3743 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3744 " void guestfs_set_close_callback (guestfs_h *g,\n"
3745 "                                  guestfs_close_cb cb,\n"
3746 "                                  void *opaque);\n"
3747 "\n"
3748 msgstr ""
3749
3750 # type: textblock
3751 #. type: textblock
3752 #: ../src/guestfs.pod:1666
3753 msgid ""
3754 "The callback function C<cb> will be called while the handle is being closed "
3755 "(synchronously from L</guestfs_close>)."
3756 msgstr ""
3757
3758 # type: textblock
3759 #. type: textblock
3760 #: ../src/guestfs.pod:1669
3761 msgid ""
3762 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3763 "handles that are open when the program exits.  This means that this callback "
3764 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3765 "problems in higher-level languages (eg. if your HLL interpreter has already "
3766 "been cleaned up by the time this is called, and if your callback then jumps "
3767 "into some HLL function)."
3768 msgstr ""
3769
3770 # type: =head2
3771 #. type: =head2
3772 #: ../src/guestfs.pod:1677
3773 msgid "guestfs_set_progress_callback"
3774 msgstr ""
3775
3776 # type: verbatim
3777 #. type: verbatim
3778 #: ../src/guestfs.pod:1679
3779 #, no-wrap
3780 msgid ""
3781 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3782 "                                      int proc_nr, int serial,\n"
3783 "                                      uint64_t position, uint64_t total);\n"
3784 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3785 "                                     guestfs_progress_cb cb,\n"
3786 "                                     void *opaque);\n"
3787 "\n"
3788 msgstr ""
3789
3790 # type: textblock
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1686
3793 msgid ""
3794 "Some long-running operations can generate progress messages.  If this "
3795 "callback is registered, then it will be called each time a progress message "
3796 "is generated (usually two seconds after the operation started, and three "
3797 "times per second thereafter until it completes, although the frequency may "
3798 "change in future versions)."
3799 msgstr ""
3800
3801 # type: textblock
3802 #. type: textblock
3803 #: ../src/guestfs.pod:1692
3804 msgid ""
3805 "The callback receives two numbers: C<position> and C<total>.  The units of "
3806 "C<total> are not defined, although for some operations C<total> may relate "
3807 "in some way to the amount of data to be transferred (eg. in bytes or "
3808 "megabytes), and C<position> may be the portion which has been transferred."
3809 msgstr ""
3810
3811 # type: textblock
3812 #. type: textblock
3813 #: ../src/guestfs.pod:1698
3814 msgid "The only defined and stable parts of the API are:"
3815 msgstr ""
3816
3817 # type: textblock
3818 #. type: textblock
3819 #: ../src/guestfs.pod:1704
3820 msgid ""
3821 "The callback can display to the user some type of progress bar or indicator "
3822 "which shows the ratio of C<position>:C<total>."
3823 msgstr ""
3824
3825 # type: textblock
3826 #. type: textblock
3827 #: ../src/guestfs.pod:1709
3828 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3829 msgstr ""
3830
3831 # type: textblock
3832 #. type: textblock
3833 #: ../src/guestfs.pod:1713
3834 msgid ""
3835 "If any progress notification is sent during a call, then a final progress "
3836 "notification is always sent when C<position> = C<total>."
3837 msgstr ""
3838
3839 # type: textblock
3840 #. type: textblock
3841 #: ../src/guestfs.pod:1716
3842 msgid ""
3843 "This is to simplify caller code, so callers can easily set the progress "
3844 "indicator to \"100%\" at the end of the operation, without requiring special "
3845 "code to detect this case."
3846 msgstr ""
3847
3848 # type: textblock
3849 #. type: textblock
3850 #: ../src/guestfs.pod:1722
3851 msgid ""
3852 "The callback also receives the procedure number and serial number of the "
3853 "call.  These are only useful for debugging protocol issues, and the callback "
3854 "can normally ignore them.  The callback may want to print these numbers in "
3855 "error messages or debugging messages."
3856 msgstr ""
3857
3858 # type: =head1
3859 #. type: =head1
3860 #: ../src/guestfs.pod:1727
3861 msgid "PRIVATE DATA AREA"
3862 msgstr ""
3863
3864 # type: textblock
3865 #. type: textblock
3866 #: ../src/guestfs.pod:1729
3867 msgid ""
3868 "You can attach named pieces of private data to the libguestfs handle, and "
3869 "fetch them by name for the lifetime of the handle.  This is called the "
3870 "private data area and is only available from the C API."
3871 msgstr ""
3872
3873 # type: textblock
3874 #. type: textblock
3875 #: ../src/guestfs.pod:1733
3876 msgid "To attach a named piece of data, use the following call:"
3877 msgstr ""
3878
3879 # type: verbatim
3880 #. type: verbatim
3881 #: ../src/guestfs.pod:1735
3882 #, no-wrap
3883 msgid ""
3884 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3885 "\n"
3886 msgstr ""
3887
3888 # type: textblock
3889 #. type: textblock
3890 #: ../src/guestfs.pod:1737
3891 msgid ""
3892 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3893 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3894 "overwritten."
3895 msgstr ""
3896
3897 # type: textblock
3898 #. type: textblock
3899 #: ../src/guestfs.pod:1741
3900 msgid ""
3901 "You can use any C<key> you want, but names beginning with an underscore "
3902 "character are reserved for internal libguestfs purposes (for implementing "
3903 "language bindings).  It is recommended to prefix the name with some unique "
3904 "string to avoid collisions with other users."
3905 msgstr ""
3906
3907 # type: textblock
3908 #. type: textblock
3909 #: ../src/guestfs.pod:1746
3910 msgid "To retrieve the pointer, use:"
3911 msgstr ""
3912
3913 # type: verbatim
3914 #. type: verbatim
3915 #: ../src/guestfs.pod:1748
3916 #, no-wrap
3917 msgid ""
3918 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3919 "\n"
3920 msgstr ""
3921
3922 # type: textblock
3923 #. type: textblock
3924 #: ../src/guestfs.pod:1750
3925 msgid ""
3926 "This function returns C<NULL> if either no data is found associated with "
3927 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3928 "C<NULL>."
3929 msgstr ""
3930
3931 # type: textblock
3932 #. type: textblock
3933 #: ../src/guestfs.pod:1754
3934 msgid ""
3935 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3936 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3937 "all.  In particular, libguestfs does I<not> try to free the data when the "
3938 "handle is closed.  If the data must be freed, then the caller must either "
3939 "free it before calling L</guestfs_close> or must set up a close callback to "
3940 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3941 "can be registered for a handle)."
3942 msgstr ""
3943
3944 # type: textblock
3945 #. type: textblock
3946 #: ../src/guestfs.pod:1762
3947 msgid ""
3948 "The private data area is implemented using a hash table, and should be "
3949 "reasonably efficient for moderate numbers of keys."
3950 msgstr ""
3951
3952 # type: =end
3953 #. type: =end
3954 #: ../src/guestfs.pod:1765 ../src/guestfs.pod:1770
3955 msgid "html"
3956 msgstr ""
3957
3958 # type: textblock
3959 #. type: textblock
3960 #: ../src/guestfs.pod:1767
3961 msgid ""
3962 "<!-- old anchor for the next section --> <a name="
3963 "\"state_machine_and_low_level_event_api\"/>"
3964 msgstr ""
3965
3966 # type: =head1
3967 #. type: =head1
3968 #: ../src/guestfs.pod:1772
3969 msgid "ARCHITECTURE"
3970 msgstr ""
3971
3972 # type: textblock
3973 #. type: textblock
3974 #: ../src/guestfs.pod:1774
3975 msgid ""
3976 "Internally, libguestfs is implemented by running an appliance (a special "
3977 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3978 "process of the main program."
3979 msgstr ""
3980
3981 # type: verbatim
3982 #. type: verbatim
3983 #: ../src/guestfs.pod:1778
3984 #, no-wrap
3985 msgid ""
3986 "  ___________________\n"
3987 " /                   \\\n"
3988 " | main program      |\n"
3989 " |                   |\n"
3990 " |                   |           child process / appliance\n"
3991 " |                   |           __________________________\n"
3992 " |                   |          / qemu                     \\\n"
3993 " +-------------------+   RPC    |      +-----------------+ |\n"
3994 " | libguestfs     <--------------------> guestfsd        | |\n"
3995 " |                   |          |      +-----------------+ |\n"
3996 " \\___________________/          |      | Linux kernel    | |\n"
3997 "                                |      +--^--------------+ |\n"
3998 "                                \\_________|________________/\n"
3999 "                                          |\n"
4000 "                                   _______v______\n"
4001 "                                  /              \\\n"
4002 "                                  | Device or    |\n"
4003 "                                  | disk image   |\n"
4004 "                                  \\______________/\n"
4005 "\n"
4006 msgstr ""
4007
4008 # type: textblock
4009 #. type: textblock
4010 #: ../src/guestfs.pod:1798
4011 msgid ""
4012 "The library, linked to the main program, creates the child process and hence "
4013 "the appliance in the L</guestfs_launch> function."
4014 msgstr ""
4015
4016 # type: textblock
4017 #. type: textblock
4018 #: ../src/guestfs.pod:1801
4019 msgid ""
4020 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4021 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4022 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4023 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4024 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4025 "attached to the qemu process which translates device access by the "
4026 "appliance's Linux kernel into accesses to the image."
4027 msgstr ""
4028
4029 # type: textblock
4030 #. type: textblock
4031 #: ../src/guestfs.pod:1810
4032 msgid ""
4033 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4034 "Although the disk image you are attached to might also be used by some "
4035 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4036 "care if both libguestfs's qemu process and your virtual machine are trying "
4037 "to update the disk image at the same time, since these usually results in "
4038 "massive disk corruption)."
4039 msgstr ""
4040
4041 # type: =head1
4042 #. type: =head1
4043 #: ../src/guestfs.pod:1817
4044 msgid "STATE MACHINE"
4045 msgstr ""
4046
4047 # type: textblock
4048 #. type: textblock
4049 #: ../src/guestfs.pod:1819
4050 msgid "libguestfs uses a state machine to model the child process:"
4051 msgstr ""
4052
4053 # type: verbatim
4054 #. type: verbatim
4055 #: ../src/guestfs.pod:1821
4056 #, no-wrap
4057 msgid ""
4058 "                         |\n"
4059 "                    guestfs_create\n"
4060 "                         |\n"
4061 "                         |\n"
4062 "                     ____V_____\n"
4063 "                    /          \\\n"
4064 "                    |  CONFIG  |\n"
4065 "                    \\__________/\n"
4066 "                     ^ ^   ^  \\\n"
4067 "                    /  |    \\  \\ guestfs_launch\n"
4068 "                   /   |    _\\__V______\n"
4069 "                  /    |   /           \\\n"
4070 "                 /     |   | LAUNCHING |\n"
4071 "                /      |   \\___________/\n"
4072 "               /       |       /\n"
4073 "              /        |  guestfs_launch\n"
4074 "             /         |     /\n"
4075 "    ______  /        __|____V\n"
4076 "   /      \\ ------> /        \\\n"
4077 "   | BUSY |         | READY  |\n"
4078 "   \\______/ <------ \\________/\n"
4079 "\n"
4080 msgstr ""
4081
4082 # type: textblock
4083 #. type: textblock
4084 #: ../src/guestfs.pod:1843
4085 msgid ""
4086 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4087 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4088 "(3) alternating between READY and BUSY as commands are issued to, and "
4089 "carried out by, the child process."
4090 msgstr ""
4091
4092 # type: textblock
4093 #. type: textblock
4094 #: ../src/guestfs.pod:1848
4095 msgid ""
4096 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4097 "asynchronously at any time (eg. due to some internal error), and that causes "
4098 "the state to transition back to CONFIG."
4099 msgstr ""
4100
4101 # type: textblock
4102 #. type: textblock
4103 #: ../src/guestfs.pod:1852
4104 msgid ""
4105 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4106 "issued when in the CONFIG state."
4107 msgstr ""
4108
4109 # type: textblock
4110 #. type: textblock
4111 #: ../src/guestfs.pod:1855
4112 msgid ""
4113 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4114 "L</guestfs_launch> blocks until the child process is READY to accept "
4115 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4116 "moves the state from CONFIG to LAUNCHING while it is running."
4117 msgstr ""
4118
4119 # type: textblock
4120 #. type: textblock
4121 #: ../src/guestfs.pod:1861
4122 msgid ""
4123 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4124 "state.  These API calls block waiting for the command to be carried out (ie. "
4125 "the state to transition to BUSY and then back to READY).  There are no non-"
4126 "blocking versions, and no way to issue more than one command per handle at "
4127 "the same time."
4128 msgstr ""
4129
4130 # type: textblock
4131 #. type: textblock
4132 #: ../src/guestfs.pod:1867
4133 msgid ""
4134 "Finally, the child process sends asynchronous messages back to the main "
4135 "program, such as kernel log messages.  You can register a callback to "
4136 "receive these messages."
4137 msgstr ""
4138
4139 # type: =head1
4140 #. type: =head1
4141 #: ../src/guestfs.pod:1871
4142 msgid "INTERNALS"
4143 msgstr ""
4144
4145 # type: =head2
4146 #. type: =head2
4147 #: ../src/guestfs.pod:1873
4148 msgid "COMMUNICATION PROTOCOL"
4149 msgstr ""
4150
4151 # type: textblock
4152 #. type: textblock
4153 #: ../src/guestfs.pod:1875
4154 msgid ""
4155 "Don't rely on using this protocol directly.  This section documents how it "
4156 "currently works, but it may change at any time."
4157 msgstr ""
4158
4159 # type: textblock
4160 #. type: textblock
4161 #: ../src/guestfs.pod:1878
4162 msgid ""
4163 "The protocol used to talk between the library and the daemon running inside "
4164 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4165 "1014, RFC 1832, RFC 4506)."
4166 msgstr ""
4167
4168 # type: textblock
4169 #. type: textblock
4170 #: ../src/guestfs.pod:1882
4171 msgid ""
4172 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4173 "this file is automatically generated)."
4174 msgstr ""
4175
4176 # type: textblock
4177 #. type: textblock
4178 #: ../src/guestfs.pod:1885
4179 msgid ""
4180 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4181 "and C<FileOut> parameters, which are handled with very simple request/reply "
4182 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4183 "parameters, which use the same request and reply messages, but they may also "
4184 "be followed by files sent using a chunked encoding."
4185 msgstr ""
4186
4187 # type: =head3
4188 #. type: =head3
4189 #: ../src/guestfs.pod:1892
4190 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4191 msgstr ""
4192
4193 # type: textblock
4194 #. type: textblock
4195 #: ../src/guestfs.pod:1894
4196 msgid "For ordinary functions, the request message is:"
4197 msgstr ""
4198
4199 # type: verbatim
4200 #. type: verbatim
4201 #: ../src/guestfs.pod:1896
4202 #, no-wrap
4203 msgid ""
4204 " total length (header + arguments,\n"
4205 "      but not including the length word itself)\n"
4206 " struct guestfs_message_header (encoded as XDR)\n"
4207 " struct guestfs_<foo>_args (encoded as XDR)\n"
4208 "\n"
4209 msgstr ""
4210
4211 # type: textblock
4212 #. type: textblock
4213 #: ../src/guestfs.pod:1901
4214 msgid ""
4215 "The total length field allows the daemon to allocate a fixed size buffer "
4216 "into which it slurps the rest of the message.  As a result, the total length "
4217 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4218 "effective size of any request is limited to somewhere under this size."
4219 msgstr ""
4220
4221 # type: textblock
4222 #. type: textblock
4223 #: ../src/guestfs.pod:1907
4224 msgid ""
4225 "Note also that many functions don't take any arguments, in which case the "
4226 "C<guestfs_I<foo>_args> is completely omitted."
4227 msgstr ""
4228
4229 # type: textblock
4230 #. type: textblock
4231 #: ../src/guestfs.pod:1910
4232 msgid ""
4233 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4234 "receiver knows what type of args structure to expect, or none at all."
4235 msgstr ""
4236
4237 # type: textblock
4238 #. type: textblock
4239 #: ../src/guestfs.pod:1914
4240 msgid ""
4241 "For functions that take optional arguments, the optional arguments are "
4242 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4243 "arguments.  A bitmask in the header indicates which optional arguments are "
4244 "meaningful.  The bitmask is also checked to see if it contains bits set "
4245 "which the daemon does not know about (eg. if more optional arguments were "
4246 "added in a later version of the library), and this causes the call to be "
4247 "rejected."
4248 msgstr ""
4249
4250 # type: textblock
4251 #. type: textblock
4252 #: ../src/guestfs.pod:1922
4253 msgid "The reply message for ordinary functions is:"
4254 msgstr ""
4255
4256 # type: verbatim
4257 #. type: verbatim
4258 #: ../src/guestfs.pod:1924
4259 #, no-wrap
4260 msgid ""
4261 " total length (header + ret,\n"
4262 "      but not including the length word itself)\n"
4263 " struct guestfs_message_header (encoded as XDR)\n"
4264 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4265 "\n"
4266 msgstr ""
4267
4268 # type: textblock
4269 #. type: textblock
4270 #: ../src/guestfs.pod:1929
4271 msgid ""
4272 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4273 "functions that return no formal return values."
4274 msgstr ""
4275
4276 # type: textblock
4277 #. type: textblock
4278 #: ../src/guestfs.pod:1932
4279 msgid ""
4280 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4281 msgstr ""
4282
4283 # type: textblock
4284 #. type: textblock
4285 #: ../src/guestfs.pod:1935
4286 msgid ""
4287 "In the case of an error, a flag is set in the header, and the reply message "
4288 "is slightly changed:"
4289 msgstr ""
4290
4291 # type: verbatim
4292 #. type: verbatim
4293 #: ../src/guestfs.pod:1938
4294 #, no-wrap
4295 msgid ""
4296 " total length (header + error,\n"
4297 "      but not including the length word itself)\n"
4298 " struct guestfs_message_header (encoded as XDR)\n"
4299 " struct guestfs_message_error (encoded as XDR)\n"
4300 "\n"
4301 msgstr ""
4302
4303 # type: textblock
4304 #. type: textblock
4305 #: ../src/guestfs.pod:1943
4306 msgid ""
4307 "The C<guestfs_message_error> structure contains the error message as a "
4308 "string."
4309 msgstr ""
4310
4311 # type: =head3
4312 #. type: =head3
4313 #: ../src/guestfs.pod:1946
4314 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4315 msgstr ""
4316
4317 # type: textblock
4318 #. type: textblock
4319 #: ../src/guestfs.pod:1948
4320 msgid ""
4321 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4322 "The normal request message is sent (see above).  However this is followed by "
4323 "a sequence of file chunks."
4324 msgstr ""
4325
4326 # type: verbatim
4327 #. type: verbatim
4328 #: ../src/guestfs.pod:1952
4329 #, no-wrap
4330 msgid ""
4331 " total length (header + arguments,\n"
4332 "      but not including the length word itself,\n"
4333 "      and not including the chunks)\n"
4334 " struct guestfs_message_header (encoded as XDR)\n"
4335 " struct guestfs_<foo>_args (encoded as XDR)\n"
4336 " sequence of chunks for FileIn param #0\n"
4337 " sequence of chunks for FileIn param #1 etc.\n"
4338 "\n"
4339 msgstr ""
4340
4341 # type: textblock
4342 #. type: textblock
4343 #: ../src/guestfs.pod:1960
4344 msgid "The \"sequence of chunks\" is:"
4345 msgstr ""
4346
4347 # type: verbatim
4348 #. type: verbatim
4349 #: ../src/guestfs.pod:1962
4350 #, no-wrap
4351 msgid ""
4352 " length of chunk (not including length word itself)\n"
4353 " struct guestfs_chunk (encoded as XDR)\n"
4354 " length of chunk\n"
4355 " struct guestfs_chunk (encoded as XDR)\n"
4356 "   ...\n"
4357 " length of chunk\n"
4358 " struct guestfs_chunk (with data.data_len == 0)\n"
4359 "\n"
4360 msgstr ""
4361
4362 # type: textblock
4363 #. type: textblock
4364 #: ../src/guestfs.pod:1970
4365 msgid ""
4366 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4367 "is set in the final chunk to indicate either successful completion or early "
4368 "cancellation."
4369 msgstr ""
4370
4371 # type: textblock
4372 #. type: textblock
4373 #: ../src/guestfs.pod:1974
4374 msgid ""
4375 "At time of writing there are no functions that have more than one FileIn "
4376 "parameter.  However this is (theoretically) supported, by sending the "
4377 "sequence of chunks for each FileIn parameter one after another (from left to "
4378 "right)."
4379 msgstr ""
4380
4381 # type: textblock
4382 #. type: textblock
4383 #: ../src/guestfs.pod:1979
4384 msgid ""
4385 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4386 "transfer.  The library does this by sending a chunk with a special flag set "
4387 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4388 "RPC, does I<not> send any reply, and goes back to reading the next request."
4389 msgstr ""
4390
4391 # type: textblock
4392 #. type: textblock
4393 #: ../src/guestfs.pod:1985
4394 msgid ""
4395 "The daemon may also cancel.  It does this by writing a special word "
4396 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4397 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4398 "cancel chunk).  The special word is chosen so that even if cancellation "
4399 "happens right at the end of the transfer (after the library has finished "
4400 "writing and has started listening for the reply), the \"spurious\" cancel "
4401 "flag will not be confused with the reply message."
4402 msgstr ""
4403
4404 # type: textblock
4405 #. type: textblock
4406 #: ../src/guestfs.pod:1994
4407 msgid ""
4408 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4409 "limit), and also files where the size is not known in advance (eg. from "
4410 "pipes or sockets).  However the chunks are rather small "
4411 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4412 "to keep much in memory."
4413 msgstr ""
4414
4415 # type: =head3
4416 #. type: =head3
4417 #: ../src/guestfs.pod:2000
4418 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4419 msgstr ""
4420
4421 # type: textblock
4422 #. type: textblock
4423 #: ../src/guestfs.pod:2002
4424 msgid ""
4425 "The protocol for FileOut parameters is exactly the same as for FileIn "
4426 "parameters, but with the roles of daemon and library reversed."
4427 msgstr ""
4428
4429 # type: verbatim
4430 #. type: verbatim
4431 #: ../src/guestfs.pod:2005
4432 #, no-wrap
4433 msgid ""
4434 " total length (header + ret,\n"
4435 "      but not including the length word itself,\n"
4436 "      and not including the chunks)\n"
4437 " struct guestfs_message_header (encoded as XDR)\n"
4438 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4439 " sequence of chunks for FileOut param #0\n"
4440 " sequence of chunks for FileOut param #1 etc.\n"
4441 "\n"
4442 msgstr ""
4443
4444 # type: =head3
4445 #. type: =head3
4446 #: ../src/guestfs.pod:2013
4447 msgid "INITIAL MESSAGE"
4448 msgstr ""
4449
4450 # type: textblock
4451 #. type: textblock
4452 #: ../src/guestfs.pod:2015
4453 msgid ""
4454 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4455 "which indicates that the guest and daemon is alive.  This is what L</"
4456 "guestfs_launch> waits for."
4457 msgstr ""
4458
4459 # type: =head3
4460 #. type: =head3
4461 #: ../src/guestfs.pod:2019
4462 msgid "PROGRESS NOTIFICATION MESSAGES"
4463 msgstr ""
4464
4465 # type: textblock
4466 #. type: textblock
4467 #: ../src/guestfs.pod:2021
4468 msgid ""
4469 "The daemon may send progress notification messages at any time.  These are "
4470 "distinguished by the normal length word being replaced by "
4471 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4472 msgstr ""
4473
4474 # type: textblock
4475 #. type: textblock
4476 #: ../src/guestfs.pod:2025
4477 msgid ""
4478 "The library turns them into progress callbacks (see "
4479 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
4480 "discards them if not."
4481 msgstr ""
4482
4483 # type: textblock
4484 #. type: textblock
4485 #: ../src/guestfs.pod:2029
4486 msgid ""
4487 "The daemon self-limits the frequency of progress messages it sends (see "
4488 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4489 "messages."
4490 msgstr ""
4491
4492 # type: =head1
4493 #. type: =head1
4494 #: ../src/guestfs.pod:2033
4495 msgid "LIBGUESTFS VERSION NUMBERS"
4496 msgstr ""
4497
4498 # type: textblock
4499 #. type: textblock
4500 #: ../src/guestfs.pod:2035
4501 msgid ""
4502 "Since April 2010, libguestfs has started to make separate development and "
4503 "stable releases, along with corresponding branches in our git repository.  "
4504 "These separate releases can be identified by version number:"
4505 msgstr ""
4506
4507 # type: verbatim
4508 #. type: verbatim
4509 #: ../src/guestfs.pod:2040
4510 #, no-wrap
4511 msgid ""
4512 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4513 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4514 "       |\n"
4515 "       v\n"
4516 " 1  .  3  .  5\n"
4517 " ^           ^\n"
4518 " |           |\n"
4519 " |           `-------- sub-version\n"
4520 " |\n"
4521 " `------ always '1' because we don't change the ABI\n"
4522 "\n"
4523 msgstr ""
4524
4525 # type: textblock
4526 #. type: textblock
4527 #: ../src/guestfs.pod:2051
4528 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4529 msgstr ""
4530
4531 # type: textblock
4532 #. type: textblock
4533 #: ../src/guestfs.pod:2053
4534 msgid ""
4535 "As time passes we cherry pick fixes from the development branch and backport "
4536 "those into the stable branch, the effect being that the stable branch should "
4537 "get more stable and less buggy over time.  So the stable releases are ideal "
4538 "for people who don't need new features but would just like the software to "
4539 "work."
4540 msgstr ""
4541
4542 # type: textblock
4543 #. type: textblock
4544 #: ../src/guestfs.pod:2059
4545 msgid "Our criteria for backporting changes are:"
4546 msgstr ""
4547
4548 # type: textblock
4549 #. type: textblock
4550 #: ../src/guestfs.pod:2065
4551 msgid ""
4552 "Documentation changes which don't affect any code are backported unless the "
4553 "documentation refers to a future feature which is not in stable."
4554 msgstr ""
4555
4556 # type: textblock
4557 #. type: textblock
4558 #: ../src/guestfs.pod:2071
4559 msgid ""
4560 "Bug fixes which are not controversial, fix obvious problems, and have been "
4561 "well tested are backported."
4562 msgstr ""
4563
4564 # type: textblock
4565 #. type: textblock
4566 #: ../src/guestfs.pod:2076
4567 msgid ""
4568 "Simple rearrangements of code which shouldn't affect how it works get "
4569 "backported.  This is so that the code in the two branches doesn't get too "
4570 "far out of step, allowing us to backport future fixes more easily."
4571 msgstr ""
4572
4573 # type: textblock
4574 #. type: textblock
4575 #: ../src/guestfs.pod:2082
4576 msgid ""
4577 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4578 "exceptional case: the new feature is required in order to implement an "
4579 "important bug fix."
4580 msgstr ""
4581
4582 # type: textblock
4583 #. type: textblock
4584 #: ../src/guestfs.pod:2088
4585 msgid ""
4586 "A new stable branch starts when we think the new features in development are "
4587 "substantial and compelling enough over the current stable branch to warrant "
4588 "it.  When that happens we create new stable and development versions 1.N.0 "
4589 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4590 "stable at this point, but by backporting fixes from development, that branch "
4591 "will stabilize over time."
4592 msgstr ""
4593
4594 #. type: =head1
4595 #: ../src/guestfs.pod:2096
4596 msgid "EXTENDING LIBGUESTFS"
4597 msgstr ""
4598
4599 #. type: =head2
4600 #: ../src/guestfs.pod:2098
4601 msgid "ADDING A NEW API ACTION"
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../src/guestfs.pod:2100
4606 msgid ""
4607 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4608 "documentation) are generated, and this makes it easy to extend the "
4609 "libguestfs API."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../src/guestfs.pod:2104
4614 msgid "To add a new API action there are two changes:"
4615 msgstr ""
4616
4617 #. type: textblock
4618 #: ../src/guestfs.pod:2110
4619 msgid ""
4620 "You need to add a description of the call (name, parameters, return type, "
4621 "tests, documentation) to C<generator/generator_actions.ml>."
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../src/guestfs.pod:2113
4626 msgid ""
4627 "There are two sorts of API action, depending on whether the call goes "
4628 "through to the daemon in the appliance, or is serviced entirely by the "
4629 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4630 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4631 "an example of the latter, since a trace flag is maintained in the handle and "
4632 "all tracing is done on the library side."
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../src/guestfs.pod:2121
4637 msgid ""
4638 "Most new actions are of the first type, and get added to the "
4639 "C<daemon_functions> list.  Each function has a unique procedure number used "
4640 "in the RPC protocol which is assigned to that action when we publish "
4641 "libguestfs and cannot be reused.  Take the latest procedure number and "
4642 "increment it."
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../src/guestfs.pod:2127
4647 msgid ""
4648 "For library-only actions of the second type, add to the "
4649 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4650 "library and do not travel over the RPC mechanism to the daemon, these "
4651 "functions do not need a procedure number, and so the procedure number is set "
4652 "to C<-1>."
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../src/guestfs.pod:2135
4657 msgid "Implement the action (in C):"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../src/guestfs.pod:2137
4662 msgid ""
4663 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4664 "C<daemon/> directory."
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../src/guestfs.pod:2140
4669 msgid ""
4670 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4671 "(note: double underscore) in the C<src/> directory."
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../src/guestfs.pod:2143
4676 msgid "In either case, use another function as an example of what to do."
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../src/guestfs.pod:2147
4681 msgid "After making these changes, use C<make> to compile."
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2149
4686 msgid ""
4687 "Note that you don't need to implement the RPC, language bindings, manual "
4688 "pages or anything else.  It's all automatically generated from the OCaml "
4689 "description."
4690 msgstr ""
4691
4692 #. type: =head2
4693 #: ../src/guestfs.pod:2153
4694 msgid "ADDING TESTS FOR AN API ACTION"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../src/guestfs.pod:2155
4699 msgid ""
4700 "You can supply zero or as many tests as you want per API call.  The tests "
4701 "can either be added as part of the API description (C<generator/"
4702 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4703 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4704 "slower, so if possible use the first method."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2161
4709 msgid ""
4710 "The following describes the test environment used when you add an API test "
4711 "in C<generator_actions.ml>."
4712 msgstr ""
4713
4714 #. type: textblock
4715 #: ../src/guestfs.pod:2164
4716 msgid "The test environment has 4 block devices:"
4717 msgstr ""
4718
4719 #. type: =item
4720 #: ../src/guestfs.pod:2168
4721 msgid "C</dev/sda> 500MB"
4722 msgstr ""
4723
4724 #. type: textblock
4725 #: ../src/guestfs.pod:2170
4726 msgid "General block device for testing."
4727 msgstr ""
4728
4729 #. type: =item
4730 #: ../src/guestfs.pod:2172
4731 msgid "C</dev/sdb> 50MB"
4732 msgstr ""
4733
4734 #. type: textblock
4735 #: ../src/guestfs.pod:2174
4736 msgid ""
4737 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4738 "operations."
4739 msgstr ""
4740
4741 #. type: =item
4742 #: ../src/guestfs.pod:2177
4743 msgid "C</dev/sdc> 10MB"
4744 msgstr ""
4745
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2179
4748 msgid "Used in a few tests where two block devices are needed."
4749 msgstr ""
4750
4751 #. type: =item
4752 #: ../src/guestfs.pod:2181
4753 msgid "C</dev/sdd>"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../src/guestfs.pod:2183
4758 msgid "ISO with fixed content (see C<images/test.iso>)."
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../src/guestfs.pod:2187
4763 msgid ""
4764 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4765 "appliance and block devices are reused between tests.  So don't try testing "
4766 "L</guestfs_kill_subprocess> :-x"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../src/guestfs.pod:2191
4771 msgid ""
4772 "Each test starts with an initial scenario, selected using one of the "
4773 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4774 "initialize the disks mentioned above in a particular way as documented in "
4775 "C<generator_types.ml>.  You should not assume anything about the previous "
4776 "contents of other disks that are not initialized."
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../src/guestfs.pod:2197
4781 msgid ""
4782 "You can add a prerequisite clause to any individual test.  This is a run-"
4783 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4784 "testing a command which might not work on all variations of libguestfs "
4785 "builds.  A test that has prerequisite of C<Always> means to run "
4786 "unconditionally."
4787 msgstr ""
4788
4789 #. type: textblock
4790 #: ../src/guestfs.pod:2203
4791 msgid ""
4792 "In addition, packagers can skip individual tests by setting environment "
4793 "variables before running C<make check>."
4794 msgstr ""
4795
4796 #. type: verbatim
4797 #: ../src/guestfs.pod:2206
4798 #, no-wrap
4799 msgid ""
4800 " SKIP_TEST_<CMD>_<NUM>=1\n"
4801 "\n"
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../src/guestfs.pod:2208
4806 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4807 msgstr ""
4808
4809 #. type: textblock
4810 #: ../src/guestfs.pod:2210
4811 msgid "or:"
4812 msgstr ""
4813
4814 #. type: verbatim
4815 #: ../src/guestfs.pod:2212
4816 #, no-wrap
4817 msgid ""
4818 " SKIP_TEST_<CMD>=1\n"
4819 "\n"
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../src/guestfs.pod:2214
4824 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../src/guestfs.pod:2216
4829 msgid "Packagers can run only certain tests by setting for example:"
4830 msgstr ""
4831
4832 #. type: verbatim
4833 #: ../src/guestfs.pod:2218
4834 #, no-wrap
4835 msgid ""
4836 " TEST_ONLY=\"vfs_type zerofree\"\n"
4837 "\n"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../src/guestfs.pod:2220
4842 msgid ""
4843 "See C<capitests/tests.c> for more details of how these environment variables "
4844 "work."
4845 msgstr ""
4846
4847 #. type: =head2
4848 #: ../src/guestfs.pod:2223
4849 msgid "DEBUGGING NEW API ACTIONS"
4850 msgstr ""
4851
4852 #. type: textblock
4853 #: ../src/guestfs.pod:2225
4854 msgid "Test new actions work before submitting them."
4855 msgstr ""
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2227
4859 msgid "You can use guestfish to try out new commands."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2229
4864 msgid ""
4865 "Debugging the daemon is a problem because it runs inside a minimal "
4866 "environment.  However you can fprintf messages in the daemon to stderr, and "
4867 "they will show up if you use C<guestfish -v>."
4868 msgstr ""
4869
4870 #. type: =head2
4871 #: ../src/guestfs.pod:2233
4872 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../src/guestfs.pod:2235
4877 msgid ""
4878 "Our C source code generally adheres to some basic code-formatting "
4879 "conventions.  The existing code base is not totally consistent on this "
4880 "front, but we do prefer that contributed code be formatted similarly.  In "
4881 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4882 "indentation level, and other than that, follow the K&R style."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../src/guestfs.pod:2241
4887 msgid ""
4888 "If you use Emacs, add the following to one of one of your start-up files (e."
4889 "g., ~/.emacs), to help ensure that you get indentation right:"
4890 msgstr ""
4891
4892 #. type: verbatim
4893 #: ../src/guestfs.pod:2244
4894 #, no-wrap
4895 msgid ""
4896 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4897 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4898 " (add-hook 'find-file-hook\n"
4899 "     '(lambda () (if (and buffer-file-name\n"
4900 "                          (string-match \"/libguestfs\\\\>\"\n"
4901 "                              (buffer-file-name))\n"
4902 "                          (not (string-equal mode-name \"Change Log\"))\n"
4903 "                          (not (string-equal mode-name \"Makefile\")))\n"
4904 "                     (setq indent-tabs-mode nil))))\n"
4905 " \n"
4906 msgstr ""
4907
4908 #. type: verbatim
4909 #: ../src/guestfs.pod:2254
4910 #, no-wrap
4911 msgid ""
4912 " ;;; When editing C sources in libguestfs, use this style.\n"
4913 " (defun libguestfs-c-mode ()\n"
4914 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4915 "   (interactive)\n"
4916 "   (c-set-style \"K&R\")\n"
4917 "   (setq c-indent-level 2)\n"
4918 "   (setq c-basic-offset 2))\n"
4919 " (add-hook 'c-mode-hook\n"
4920 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4921 "                               (buffer-file-name))\n"
4922 "                           (libguestfs-c-mode))))\n"
4923 "\n"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../src/guestfs.pod:2266
4928 msgid "Enable warnings when compiling (and fix any problems this finds):"
4929 msgstr ""
4930
4931 #. type: verbatim
4932 #: ../src/guestfs.pod:2269
4933 #, no-wrap
4934 msgid ""
4935 " ./configure --enable-gcc-warnings\n"
4936 "\n"
4937 msgstr ""
4938
4939 #. type: textblock
4940 #: ../src/guestfs.pod:2271
4941 msgid "Useful targets are:"
4942 msgstr ""
4943
4944 #. type: verbatim
4945 #: ../src/guestfs.pod:2273
4946 #, no-wrap
4947 msgid ""
4948 " make syntax-check  # checks the syntax of the C code\n"
4949 " make check         # runs the test suite\n"
4950 "\n"
4951 msgstr ""
4952
4953 #. type: =head2
4954 #: ../src/guestfs.pod:2276
4955 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../src/guestfs.pod:2278
4960 msgid ""
4961 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4962 "which are used to do shell quoting."
4963 msgstr ""
4964
4965 #. type: =item
4966 #: ../src/guestfs.pod:2283
4967 msgid "%Q"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../src/guestfs.pod:2285
4972 msgid ""
4973 "Simple shell quoted string.  Any spaces or other shell characters are "
4974 "escaped for you."
4975 msgstr ""
4976
4977 #. type: =item
4978 #: ../src/guestfs.pod:2288
4979 msgid "%R"
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../src/guestfs.pod:2290
4984 msgid ""
4985 "Same as C<%Q> except the string is treated as a path which is prefixed by "
4986 "the sysroot."
4987 msgstr ""
4988
4989 # type: textblock
4990 #. type: textblock
4991 #: ../src/guestfs.pod:2295 ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
4992 msgid "For example:"
4993 msgstr ""
4994
4995 #. type: verbatim
4996 #: ../src/guestfs.pod:2297
4997 #, no-wrap
4998 msgid ""
4999 " asprintf (&cmd, \"cat %R\", path);\n"
5000 "\n"
5001 msgstr ""
5002
5003 #. type: textblock
5004 #: ../src/guestfs.pod:2299
5005 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../src/guestfs.pod:2301
5010 msgid ""
5011 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5012 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5013 "they are not passed via the shell (instead, straight to exec).  You probably "
5014 "want to use the C<sysroot_path()> function however."
5015 msgstr ""
5016
5017 #. type: =head2
5018 #: ../src/guestfs.pod:2307
5019 msgid "SUBMITTING YOUR NEW API ACTIONS"
5020 msgstr ""
5021
5022 #. type: textblock
5023 #: ../src/guestfs.pod:2309
5024 msgid ""
5025 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5026 "libguestfs> and CC to L<rjones@redhat.com>."
5027 msgstr ""
5028
5029 #. type: =head2
5030 #: ../src/guestfs.pod:2313
5031 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5032 msgstr ""
5033
5034 #. type: textblock
5035 #: ../src/guestfs.pod:2315
5036 msgid "We support i18n (gettext anyhow) in the library."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../src/guestfs.pod:2317
5041 msgid ""
5042 "However many messages come from the daemon, and we don't translate those at "
5043 "the moment.  One reason is that the appliance generally has all locale files "
5044 "removed from it, because they take up a lot of space.  So we'd have to readd "
5045 "some of those, as well as copying our PO files into the appliance."
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../src/guestfs.pod:2323
5050 msgid ""
5051 "Debugging messages are never translated, since they are intended for the "
5052 "programmers."
5053 msgstr ""
5054
5055 #. type: =head2
5056 #: ../src/guestfs.pod:2326
5057 msgid "SOURCE CODE SUBDIRECTORIES"
5058 msgstr ""
5059
5060 #. type: =item
5061 #: ../src/guestfs.pod:2330
5062 msgid "C<appliance>"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../src/guestfs.pod:2332
5067 msgid "The libguestfs appliance, build scripts and so on."
5068 msgstr ""
5069
5070 #. type: =item
5071 #: ../src/guestfs.pod:2334
5072 msgid "C<capitests>"
5073 msgstr ""
5074
5075 #. type: textblock
5076 #: ../src/guestfs.pod:2336
5077 msgid "Automated tests of the C API."
5078 msgstr ""
5079
5080 #. type: =item
5081 #: ../src/guestfs.pod:2338
5082 msgid "C<cat>"
5083 msgstr ""
5084
5085 #. type: textblock
5086 #: ../src/guestfs.pod:2340
5087 msgid ""
5088 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5089 "documentation."
5090 msgstr ""
5091
5092 #. type: =item
5093 #: ../src/guestfs.pod:2343
5094 msgid "C<contrib>"
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../src/guestfs.pod:2345
5099 msgid "Outside contributions, experimental parts."
5100 msgstr ""
5101
5102 #. type: =item
5103 #: ../src/guestfs.pod:2347
5104 msgid "C<daemon>"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../src/guestfs.pod:2349
5109 msgid ""
5110 "The daemon that runs inside the libguestfs appliance and carries out actions."
5111 msgstr ""
5112
5113 #. type: =item
5114 #: ../src/guestfs.pod:2352
5115 msgid "C<df>"
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../src/guestfs.pod:2354
5120 msgid "L<virt-df(1)> command and documentation."
5121 msgstr ""
5122
5123 #. type: =item
5124 #: ../src/guestfs.pod:2356
5125 msgid "C<examples>"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../src/guestfs.pod:2358
5130 msgid "C API example code."
5131 msgstr ""
5132
5133 #. type: =item
5134 #: ../src/guestfs.pod:2360
5135 msgid "C<fish>"
5136 msgstr ""
5137
5138 #. type: textblock
5139 #: ../src/guestfs.pod:2362
5140 msgid "L<guestfish(1)>, the command-line shell."
5141 msgstr ""
5142
5143 #. type: =item
5144 #: ../src/guestfs.pod:2364
5145 msgid "C<fuse>"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../src/guestfs.pod:2366
5150 msgid ""
5151 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5152 msgstr ""
5153
5154 #. type: =item
5155 #: ../src/guestfs.pod:2368
5156 msgid "C<generator>"
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../src/guestfs.pod:2370
5161 msgid ""
5162 "The crucially important generator, used to automatically generate large "
5163 "amounts of boilerplate C code for things like RPC and bindings."
5164 msgstr ""
5165
5166 #. type: =item
5167 #: ../src/guestfs.pod:2373
5168 msgid "C<images>"
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../src/guestfs.pod:2375
5173 msgid "Files used by the test suite."
5174 msgstr ""
5175
5176 #. type: textblock
5177 #: ../src/guestfs.pod:2377
5178 msgid "Some \"phony\" guest images which we test against."
5179 msgstr ""
5180
5181 #. type: =item
5182 #: ../src/guestfs.pod:2379
5183 msgid "C<inspector>"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2381
5188 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5189 msgstr ""
5190
5191 #. type: =item
5192 #: ../src/guestfs.pod:2383
5193 msgid "C<m4>"
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../src/guestfs.pod:2385
5198 msgid "M4 macros used by autoconf."
5199 msgstr ""
5200
5201 #. type: =item
5202 #: ../src/guestfs.pod:2387
5203 msgid "C<po>"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../src/guestfs.pod:2389
5208 msgid "Translations of simple gettext strings."
5209 msgstr ""
5210
5211 #. type: =item
5212 #: ../src/guestfs.pod:2391
5213 msgid "C<po-docs>"
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../src/guestfs.pod:2393
5218 msgid ""
5219 "The build infrastructure and PO files for translations of manpages and POD "
5220 "files.  Eventually this will be combined with the C<po> directory, but that "
5221 "is rather complicated."
5222 msgstr ""
5223
5224 #. type: =item
5225 #: ../src/guestfs.pod:2397
5226 msgid "C<regressions>"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2399
5231 msgid "Regression tests."
5232 msgstr ""
5233
5234 #. type: =item
5235 #: ../src/guestfs.pod:2401
5236 msgid "C<rescue>"
5237 msgstr ""
5238
5239 #. type: textblock
5240 #: ../src/guestfs.pod:2403
5241 msgid "L<virt-rescue(1)> command and documentation."
5242 msgstr ""
5243
5244 #. type: =item
5245 #: ../src/guestfs.pod:2405
5246 msgid "C<src>"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../src/guestfs.pod:2407
5251 msgid "Source code to the C library."
5252 msgstr ""
5253
5254 #. type: =item
5255 #: ../src/guestfs.pod:2409
5256 msgid "C<tools>"
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../src/guestfs.pod:2411
5261 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5262 msgstr ""
5263
5264 #. type: =item
5265 #: ../src/guestfs.pod:2413
5266 msgid "C<test-tool>"
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../src/guestfs.pod:2415
5271 msgid ""
5272 "Test tool for end users to test if their qemu/kernel combination will work "
5273 "with libguestfs."
5274 msgstr ""
5275
5276 #. type: =item
5277 #: ../src/guestfs.pod:2418
5278 msgid "C<csharp>"
5279 msgstr ""
5280
5281 #. type: =item
5282 #: ../src/guestfs.pod:2420
5283 msgid "C<haskell>"
5284 msgstr ""
5285
5286 #. type: =item
5287 #: ../src/guestfs.pod:2422
5288 msgid "C<java>"
5289 msgstr ""
5290
5291 #. type: =item
5292 #: ../src/guestfs.pod:2424
5293 msgid "C<ocaml>"
5294 msgstr ""
5295
5296 #. type: =item
5297 #: ../src/guestfs.pod:2426
5298 msgid "C<php>"
5299 msgstr ""
5300
5301 #. type: =item
5302 #: ../src/guestfs.pod:2428
5303 msgid "C<perl>"
5304 msgstr ""
5305
5306 #. type: =item
5307 #: ../src/guestfs.pod:2430
5308 msgid "C<python>"
5309 msgstr ""
5310
5311 #. type: =item
5312 #: ../src/guestfs.pod:2432
5313 msgid "C<ruby>"
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../src/guestfs.pod:2434
5318 msgid "Language bindings."
5319 msgstr ""
5320
5321 # type: =head1
5322 #. type: =head1
5323 #: ../src/guestfs.pod:2438 ../fish/guestfish.pod:965
5324 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5325 msgid "ENVIRONMENT VARIABLES"
5326 msgstr ""
5327
5328 # type: =item
5329 #. type: =item
5330 #: ../src/guestfs.pod:2442 ../fish/guestfish.pod:991
5331 msgid "LIBGUESTFS_APPEND"
5332 msgstr ""
5333
5334 # type: textblock
5335 #. type: textblock
5336 #: ../src/guestfs.pod:2444 ../fish/guestfish.pod:993
5337 msgid "Pass additional options to the guest kernel."
5338 msgstr ""
5339
5340 # type: =item
5341 #. type: =item
5342 #: ../src/guestfs.pod:2446 ../fish/guestfish.pod:995
5343 msgid "LIBGUESTFS_DEBUG"
5344 msgstr ""
5345
5346 # type: textblock
5347 #. type: textblock
5348 #: ../src/guestfs.pod:2448
5349 msgid ""
5350 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5351 "effect as calling C<guestfs_set_verbose (g, 1)>."
5352 msgstr ""
5353
5354 # type: =item
5355 #. type: =item
5356 #: ../src/guestfs.pod:2451 ../fish/guestfish.pod:1000
5357 msgid "LIBGUESTFS_MEMSIZE"
5358 msgstr ""
5359
5360 # type: textblock
5361 #. type: textblock
5362 #: ../src/guestfs.pod:2453 ../fish/guestfish.pod:1002
5363 msgid ""
5364 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5365 msgstr ""
5366
5367 # type: verbatim
5368 #. type: verbatim
5369 #: ../src/guestfs.pod:2456 ../fish/guestfish.pod:1005
5370 #, no-wrap
5371 msgid ""
5372 " LIBGUESTFS_MEMSIZE=700\n"
5373 "\n"
5374 msgstr ""
5375
5376 # type: =item
5377 #. type: =item
5378 #: ../src/guestfs.pod:2458 ../fish/guestfish.pod:1007
5379 msgid "LIBGUESTFS_PATH"
5380 msgstr ""
5381
5382 # type: textblock
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2460
5385 msgid ""
5386 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
5387 "the discussion of paths in section PATH above."
5388 msgstr ""
5389
5390 # type: =item
5391 #. type: =item
5392 #: ../src/guestfs.pod:2463 ../fish/guestfish.pod:1012
5393 msgid "LIBGUESTFS_QEMU"
5394 msgstr ""
5395
5396 # type: textblock
5397 #. type: textblock
5398 #: ../src/guestfs.pod:2465 ../fish/guestfish.pod:1014
5399 msgid ""
5400 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5401 "which was found at compile time by the configure script is used."
5402 msgstr ""
5403
5404 # type: textblock
5405 #. type: textblock
5406 #: ../src/guestfs.pod:2469
5407 msgid "See also L</QEMU WRAPPERS> above."
5408 msgstr ""
5409
5410 # type: =item
5411 #. type: =item
5412 #: ../src/guestfs.pod:2471 ../fish/guestfish.pod:1018
5413 msgid "LIBGUESTFS_TRACE"
5414 msgstr ""
5415
5416 # type: textblock
5417 #. type: textblock
5418 #: ../src/guestfs.pod:2473
5419 msgid ""
5420 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5421 "effect as calling C<guestfs_set_trace (g, 1)>."
5422 msgstr ""
5423
5424 # type: =item
5425 #. type: =item
5426 #: ../src/guestfs.pod:2476 ../fish/guestfish.pod:1027
5427 msgid "TMPDIR"
5428 msgstr ""
5429
5430 # type: textblock
5431 #. type: textblock
5432 #: ../src/guestfs.pod:2478 ../fish/guestfish.pod:1029
5433 msgid "Location of temporary directory, defaults to C</tmp>."
5434 msgstr ""
5435
5436 # type: textblock
5437 #. type: textblock
5438 #: ../src/guestfs.pod:2480 ../fish/guestfish.pod:1031
5439 msgid ""
5440 "If libguestfs was compiled to use the supermin appliance then the real "
5441 "appliance is cached in this directory, shared between all handles belonging "
5442 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5443 "use in case C</tmp> is not large enough."
5444 msgstr ""
5445
5446 # type: =head1
5447 #. type: =head1
5448 #: ../src/guestfs.pod:2488 ../fish/guestfish.pod:1089
5449 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
5450 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5451 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
5452 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
5453 #: ../tools/virt-list-partitions.pl:257
5454 msgid "SEE ALSO"
5455 msgstr ""
5456
5457 # type: textblock
5458 #. type: textblock
5459 #: ../src/guestfs.pod:2490
5460 msgid ""
5461 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5462 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
5463 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
5464 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
5465 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
5466 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5467 msgstr ""
5468
5469 # type: textblock
5470 #. type: textblock
5471 #: ../src/guestfs.pod:2513
5472 msgid ""
5473 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5474 "(8)>, L<disktype(1)>."
5475 msgstr ""
5476
5477 # type: =head1
5478 #. type: =head1
5479 #: ../src/guestfs.pod:2520 ../tools/virt-win-reg.pl:587
5480 #: ../tools/virt-make-fs.pl:548
5481 msgid "BUGS"
5482 msgstr ""
5483
5484 # type: textblock
5485 #. type: textblock
5486 #: ../src/guestfs.pod:2522
5487 msgid "To get a list of bugs against libguestfs use this link:"
5488 msgstr ""
5489
5490 # type: textblock
5491 #. type: textblock
5492 #: ../src/guestfs.pod:2524
5493 msgid ""
5494 "L<https://bugzilla.redhat.com/buglist.cgi?"
5495 "component=libguestfs&product=Virtualization+Tools>"
5496 msgstr ""
5497
5498 # type: textblock
5499 #. type: textblock
5500 #: ../src/guestfs.pod:2526
5501 msgid "To report a new bug against libguestfs use this link:"
5502 msgstr ""
5503
5504 # type: textblock
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2528
5507 msgid ""
5508 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5509 "component=libguestfs&product=Virtualization+Tools>"
5510 msgstr ""
5511
5512 # type: textblock
5513 #. type: textblock
5514 #: ../src/guestfs.pod:2530
5515 msgid "When reporting a bug, please check:"
5516 msgstr ""
5517
5518 # type: textblock
5519 #. type: textblock
5520 #: ../src/guestfs.pod:2536
5521 msgid "That the bug hasn't been reported already."
5522 msgstr ""
5523
5524 # type: textblock
5525 #. type: textblock
5526 #: ../src/guestfs.pod:2540
5527 msgid "That you are testing a recent version."
5528 msgstr ""
5529
5530 # type: textblock
5531 #. type: textblock
5532 #: ../src/guestfs.pod:2544
5533 msgid "Describe the bug accurately, and give a way to reproduce it."
5534 msgstr ""
5535
5536 # type: textblock
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2548
5539 msgid ""
5540 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5541 "bug report."
5542 msgstr ""
5543
5544 # type: =head1
5545 #. type: =head1
5546 #: ../src/guestfs.pod:2553 ../fish/guestfish.pod:1108
5547 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
5548 msgid "AUTHORS"
5549 msgstr ""
5550
5551 # type: textblock
5552 #. type: textblock
5553 #: ../src/guestfs.pod:2555 ../fish/guestfish.pod:1110
5554 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
5555 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5556 msgstr ""
5557
5558 # type: =head1
5559 #. type: =head1
5560 #: ../src/guestfs.pod:2557 ../fish/guestfish.pod:1112
5561 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
5562 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:602
5563 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
5564 #: ../tools/virt-tar.pl:296 ../tools/virt-make-fs.pl:563
5565 #: ../tools/virt-list-partitions.pl:273
5566 msgid "COPYRIGHT"
5567 msgstr ""
5568
5569 # type: textblock
5570 #. type: textblock
5571 #: ../src/guestfs.pod:2559 ../fish/guestfish.pod:1114
5572 #: ../fuse/guestmount.pod:250
5573 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
5574 msgstr ""
5575
5576 # type: textblock
5577 #. type: textblock
5578 #: ../src/guestfs.pod:2562
5579 msgid ""
5580 "This library is free software; you can redistribute it and/or modify it "
5581 "under the terms of the GNU Lesser General Public License as published by the "
5582 "Free Software Foundation; either version 2 of the License, or (at your "
5583 "option) any later version."
5584 msgstr ""
5585
5586 # type: textblock
5587 #. type: textblock
5588 #: ../src/guestfs.pod:2567
5589 msgid ""
5590 "This library is distributed in the hope that it will be useful, but WITHOUT "
5591 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5592 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5593 "for more details."
5594 msgstr ""
5595
5596 # type: textblock
5597 #. type: textblock
5598 #: ../src/guestfs.pod:2572
5599 msgid ""
5600 "You should have received a copy of the GNU Lesser General Public License "
5601 "along with this library; if not, write to the Free Software Foundation, "
5602 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5603 msgstr ""
5604
5605 # type: =head2
5606 #. type: =head2
5607 #: ../src/guestfs-actions.pod:1
5608 msgid "guestfs_add_cdrom"
5609 msgstr ""
5610
5611 # type: verbatim
5612 #. type: verbatim
5613 #: ../src/guestfs-actions.pod:3
5614 #, no-wrap
5615 msgid ""
5616 " int\n"
5617 " guestfs_add_cdrom (guestfs_h *g,\n"
5618 "                    const char *filename);\n"
5619 "\n"
5620 msgstr ""
5621
5622 # type: textblock
5623 #. type: textblock
5624 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5625 msgid "This function adds a virtual CD-ROM disk image to the guest."
5626 msgstr ""
5627
5628 # type: textblock
5629 #. type: textblock
5630 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5631 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5632 msgstr ""
5633
5634 # type: textblock
5635 #. type: textblock
5636 #: ../src/guestfs-actions.pod:17
5637 msgid ""
5638 "This call checks for the existence of C<filename>.  This stops you from "
5639 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5640 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5641 "instead."
5642 msgstr ""
5643
5644 # type: textblock
5645 #. type: textblock
5646 #: ../src/guestfs-actions.pod:24
5647 msgid ""
5648 "If you just want to add an ISO file (often you use this as an efficient way "
5649 "to transfer large files into the guest), then you should probably use "
5650 "C<guestfs_add_drive_ro> instead."
5651 msgstr ""
5652
5653 # type: textblock
5654 #. type: textblock
5655 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
5656 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
5657 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
5658 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
5659 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
5660 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
5661 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
5662 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
5663 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
5664 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5665 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5666 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
5667 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
5668 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
5669 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
5670 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
5671 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
5672 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
5673 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
5674 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2243
5675 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
5676 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3222
5677 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3257
5678 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3426
5679 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3453
5680 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3504
5681 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3596
5682 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3636
5683 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3691
5684 #: ../src/guestfs-actions.pod:3710 ../src/guestfs-actions.pod:3729
5685 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3776
5686 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3828
5687 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:3856
5688 #: ../src/guestfs-actions.pod:3873 ../src/guestfs-actions.pod:3966
5689 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:3999
5690 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4068
5691 #: ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102
5692 #: ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:4130
5693 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4162
5694 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4226
5695 #: ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:4330
5696 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4368
5697 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:4397
5698 #: ../src/guestfs-actions.pod:4410 ../src/guestfs-actions.pod:4425
5699 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4475
5700 #: ../src/guestfs-actions.pod:4490 ../src/guestfs-actions.pod:4510
5701 #: ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4541
5702 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4627
5703 #: ../src/guestfs-actions.pod:4641 ../src/guestfs-actions.pod:4669
5704 #: ../src/guestfs-actions.pod:4686 ../src/guestfs-actions.pod:4704
5705 #: ../src/guestfs-actions.pod:4838 ../src/guestfs-actions.pod:4895
5706 #: ../src/guestfs-actions.pod:4917 ../src/guestfs-actions.pod:4935
5707 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:5033
5708 #: ../src/guestfs-actions.pod:5050 ../src/guestfs-actions.pod:5063
5709 #: ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5366
5710 #: ../src/guestfs-actions.pod:5385 ../src/guestfs-actions.pod:5399
5711 #: ../src/guestfs-actions.pod:5411 ../src/guestfs-actions.pod:5425
5712 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5451
5713 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5488
5714 #: ../src/guestfs-actions.pod:5507 ../src/guestfs-actions.pod:5526
5715 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5567
5716 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5604
5717 #: ../src/guestfs-actions.pod:5625 ../src/guestfs-actions.pod:5644
5718 #: ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:5689
5719 #: ../src/guestfs-actions.pod:5713 ../src/guestfs-actions.pod:5732
5720 #: ../src/guestfs-actions.pod:5756 ../src/guestfs-actions.pod:5771
5721 #: ../src/guestfs-actions.pod:5786 ../src/guestfs-actions.pod:5805
5722 #: ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:5865
5723 #: ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:5999
5724 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6132
5725 #: ../src/guestfs-actions.pod:6145 ../src/guestfs-actions.pod:6158
5726 #: ../src/guestfs-actions.pod:6180 ../src/guestfs-actions.pod:6193
5727 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6219
5728 #: ../src/guestfs-actions.pod:6234 ../src/guestfs-actions.pod:6293
5729 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6326
5730 #: ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359
5731 #: ../src/guestfs-actions.pod:6372 ../src/guestfs-actions.pod:6392
5732 #: ../src/guestfs-actions.pod:6428 ../src/guestfs-actions.pod:6442
5733 #: ../src/guestfs-actions.pod:6483 ../src/guestfs-actions.pod:6496
5734 #: ../src/guestfs-actions.pod:6514 ../src/guestfs-actions.pod:6548
5735 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-actions.pod:6703
5736 #: ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6735
5737 #: ../src/guestfs-actions.pod:6790 ../src/guestfs-actions.pod:6803
5738 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:6881
5739 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6961
5740 #: ../src/guestfs-actions.pod:7027 ../src/guestfs-actions.pod:7046
5741 #: ../src/guestfs-actions.pod:7075
5742 msgid "This function returns 0 on success or -1 on error."
5743 msgstr ""
5744
5745 # type: textblock
5746 #. type: textblock
5747 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
5748 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
5749 #: ../fish/guestfish-actions.pod:151 ../fish/guestfish-actions.pod:165
5750 msgid ""
5751 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5752 "instead."
5753 msgstr ""
5754
5755 # type: textblock
5756 #. type: textblock
5757 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
5758 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
5759 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
5760 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:6969
5761 #: ../src/guestfs-actions.pod:7138 ../fish/guestfish-actions.pod:31
5762 #: ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:168
5763 #: ../fish/guestfish-actions.pod:949 ../fish/guestfish-actions.pod:1306
5764 #: ../fish/guestfish-actions.pod:1320 ../fish/guestfish-actions.pod:2816
5765 #: ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:4715
5766 msgid ""
5767 "Deprecated functions will not be removed from the API, but the fact that "
5768 "they are deprecated indicates that there are problems with correct use of "
5769 "these functions."
5770 msgstr ""
5771
5772 # type: textblock
5773 #. type: textblock
5774 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
5775 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
5776 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
5777 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
5778 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5546
5779 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5773
5780 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6361
5781 #: ../src/guestfs-actions.pod:6883
5782 msgid "(Added in 0.3)"
5783 msgstr ""
5784
5785 # type: =head2
5786 #. type: =head2
5787 #: ../src/guestfs-actions.pod:41
5788 msgid "guestfs_add_domain"
5789 msgstr ""
5790
5791 # type: verbatim
5792 #. type: verbatim
5793 #: ../src/guestfs-actions.pod:43
5794 #, no-wrap
5795 msgid ""
5796 " int\n"
5797 " guestfs_add_domain (guestfs_h *g,\n"
5798 "                     const char *dom,\n"
5799 "                     ...);\n"
5800 "\n"
5801 msgstr ""
5802
5803 # type: textblock
5804 #. type: textblock
5805 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
5806 #: ../src/guestfs-actions.pod:4201
5807 msgid ""
5808 "You may supply a list of optional arguments to this call.  Use zero or more "
5809 "of the following pairs of parameters, and terminate the list with C<-1> on "
5810 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5811 msgstr ""
5812
5813 # type: verbatim
5814 #. type: verbatim
5815 #: ../src/guestfs-actions.pod:53
5816 #, no-wrap
5817 msgid ""
5818 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5819 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5820 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5821 "\n"
5822 msgstr ""
5823
5824 # type: textblock
5825 #. type: textblock
5826 #: ../src/guestfs-actions.pod:57
5827 msgid ""
5828 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5829 "It works by connecting to libvirt, requesting the domain and domain XML from "
5830 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5831 "one."
5832 msgstr ""
5833
5834 # type: textblock
5835 #. type: textblock
5836 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
5837 msgid ""
5838 "The number of disks added is returned.  This operation is atomic: if an "
5839 "error is returned, then no disks are added."
5840 msgstr ""
5841
5842 # type: textblock
5843 #. type: textblock
5844 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
5845 msgid ""
5846 "This function does some minimal checks to make sure the libvirt domain is "
5847 "not running (unless C<readonly> is true).  In a future version we will try "
5848 "to acquire the libvirt lock on each disk."
5849 msgstr ""
5850
5851 # type: textblock
5852 #. type: textblock
5853 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
5854 msgid ""
5855 "Disks must be accessible locally.  This often means that adding disks from a "
5856 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5857 "unless those disks are accessible via the same device path locally too."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:58
5862 msgid ""
5863 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5864 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5865 "libvirt URI (or one set through an environment variable, see the libvirt "
5866 "documentation for full details)."
5867 msgstr ""
5868
5869 # type: textblock
5870 #. type: textblock
5871 #: ../src/guestfs-actions.pod:80
5872 msgid ""
5873 "The other optional parameters are passed directly through to "
5874 "C<guestfs_add_drive_opts>."
5875 msgstr ""
5876
5877 # type: textblock
5878 #. type: textblock
5879 #: ../src/guestfs-actions.pod:83 ../src/guestfs-actions.pod:336
5880 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
5881 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
5882 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
5883 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
5884 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
5885 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
5886 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2662
5887 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4613
5888 #: ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:5147
5889 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:6469
5890 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
5891 #: ../src/guestfs-actions.pod:6920
5892 msgid "On error this function returns -1."
5893 msgstr ""
5894
5895 # type: textblock
5896 #. type: textblock
5897 #: ../src/guestfs-actions.pod:85
5898 msgid "(Added in 1.7.4)"
5899 msgstr ""
5900
5901 # type: =head2
5902 #. type: =head2
5903 #: ../src/guestfs-actions.pod:87
5904 msgid "guestfs_add_domain_va"
5905 msgstr ""
5906
5907 # type: verbatim
5908 #. type: verbatim
5909 #: ../src/guestfs-actions.pod:89
5910 #, no-wrap
5911 msgid ""
5912 " int\n"
5913 " guestfs_add_domain_va (guestfs_h *g,\n"
5914 "                        const char *dom,\n"
5915 "                        va_list args);\n"
5916 "\n"
5917 msgstr ""
5918
5919 # type: textblock
5920 #. type: textblock
5921 #: ../src/guestfs-actions.pod:94
5922 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5923 msgstr ""
5924
5925 # type: textblock
5926 #. type: textblock
5927 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
5928 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
5929 #: ../src/guestfs-actions.pod:4240 ../src/guestfs-actions.pod:4252
5930 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5931 msgstr ""
5932
5933 # type: =head2
5934 #. type: =head2
5935 #: ../src/guestfs-actions.pod:98
5936 msgid "guestfs_add_domain_argv"
5937 msgstr ""
5938
5939 # type: verbatim
5940 #. type: verbatim
5941 #: ../src/guestfs-actions.pod:100
5942 #, no-wrap
5943 msgid ""
5944 " int\n"
5945 " guestfs_add_domain_argv (guestfs_h *g,\n"
5946 "                          const char *dom,\n"
5947 "                          const struct guestfs_add_domain_argv *optargs);\n"
5948 "\n"
5949 msgstr ""
5950
5951 # type: textblock
5952 #. type: textblock
5953 #: ../src/guestfs-actions.pod:105
5954 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
5955 msgstr ""
5956
5957 # type: =head2
5958 #. type: =head2
5959 #: ../src/guestfs-actions.pod:109
5960 msgid "guestfs_add_drive"
5961 msgstr ""
5962
5963 # type: verbatim
5964 #. type: verbatim
5965 #: ../src/guestfs-actions.pod:111
5966 #, no-wrap
5967 msgid ""
5968 " int\n"
5969 " guestfs_add_drive (guestfs_h *g,\n"
5970 "                    const char *filename);\n"
5971 "\n"
5972 msgstr ""
5973
5974 # type: textblock
5975 #. type: textblock
5976 #: ../src/guestfs-actions.pod:115
5977 msgid ""
5978 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
5979 "optional parameters, so the disk is added writable, with the format being "
5980 "detected automatically."
5981 msgstr ""
5982
5983 # type: textblock
5984 #. type: textblock
5985 #: ../src/guestfs-actions.pod:119
5986 msgid ""
5987 "Automatic detection of the format opens you up to a potential security hole "
5988 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5989 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5990 "you should think about replacing calls to this function with calls to "
5991 "C<guestfs_add_drive_opts>, and specifying the format."
5992 msgstr ""
5993
5994 # type: =head2
5995 #. type: =head2
5996 #: ../src/guestfs-actions.pod:130
5997 msgid "guestfs_add_drive_opts"
5998 msgstr ""
5999
6000 # type: verbatim
6001 #. type: verbatim
6002 #: ../src/guestfs-actions.pod:132
6003 #, no-wrap
6004 msgid ""
6005 " int\n"
6006 " guestfs_add_drive_opts (guestfs_h *g,\n"
6007 "                         const char *filename,\n"
6008 "                         ...);\n"
6009 "\n"
6010 msgstr ""
6011
6012 # type: verbatim
6013 #. type: verbatim
6014 #: ../src/guestfs-actions.pod:142
6015 #, no-wrap
6016 msgid ""
6017 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6018 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6019 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6020 "\n"
6021 msgstr ""
6022
6023 # type: textblock
6024 #. type: textblock
6025 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:90
6026 msgid ""
6027 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6028 "The first time you call this function, the disk appears as C</dev/sda>, the "
6029 "second time as C</dev/sdb>, and so on."
6030 msgstr ""
6031
6032 # type: textblock
6033 #. type: textblock
6034 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:95
6035 msgid ""
6036 "You don't necessarily need to be root when using libguestfs.  However you "
6037 "obviously do need sufficient permissions to access the filename for whatever "
6038 "operations you want to perform (ie. read access if you just want to read the "
6039 "image or write access if you want to modify the image)."
6040 msgstr ""
6041
6042 # type: textblock
6043 #. type: textblock
6044 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:101
6045 msgid "This call checks that C<filename> exists."
6046 msgstr ""
6047
6048 # type: textblock
6049 #. type: textblock
6050 #: ../src/guestfs-actions.pod:159 ../src/guestfs-actions.pod:4211
6051 #: ../fish/guestfish-actions.pod:103 ../fish/guestfish-actions.pod:2827
6052 msgid "The optional arguments are:"
6053 msgstr ""
6054
6055 # type: =item
6056 #. type: =item
6057 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:107
6058 msgid "C<readonly>"
6059 msgstr ""
6060
6061 # type: textblock
6062 #. type: textblock
6063 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
6064 msgid ""
6065 "If true then the image is treated as read-only.  Writes are still allowed, "
6066 "but they are stored in a temporary snapshot overlay which is discarded at "
6067 "the end.  The disk that you add is not modified."
6068 msgstr ""
6069
6070 # type: =item
6071 #. type: =item
6072 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:113
6073 msgid "C<format>"
6074 msgstr ""
6075
6076 # type: textblock
6077 #. type: textblock
6078 #: ../src/guestfs-actions.pod:171
6079 msgid ""
6080 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6081 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6082 "Possible formats include C<raw> and C<qcow2>."
6083 msgstr ""
6084
6085 # type: textblock
6086 #. type: textblock
6087 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:119
6088 msgid ""
6089 "Automatic detection of the format opens you up to a potential security hole "
6090 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6091 "RHBZ#642934.  Specifying the format closes this security hole."
6092 msgstr ""
6093
6094 # type: =item
6095 #. type: =item
6096 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:124
6097 msgid "C<iface>"
6098 msgstr ""
6099
6100 # type: textblock
6101 #. type: textblock
6102 #: ../src/guestfs-actions.pod:182
6103 msgid ""
6104 "This rarely-used option lets you emulate the behaviour of the deprecated "
6105 "C<guestfs_add_drive_with_if> call (q.v.)"
6106 msgstr ""
6107
6108 # type: textblock
6109 #. type: textblock
6110 #: ../src/guestfs-actions.pod:189
6111 msgid "(Added in 1.5.23)"
6112 msgstr ""
6113
6114 # type: =head2
6115 #. type: =head2
6116 #: ../src/guestfs-actions.pod:191
6117 msgid "guestfs_add_drive_opts_va"
6118 msgstr ""
6119
6120 # type: verbatim
6121 #. type: verbatim
6122 #: ../src/guestfs-actions.pod:193
6123 #, no-wrap
6124 msgid ""
6125 " int\n"
6126 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6127 "                            const char *filename,\n"
6128 "                            va_list args);\n"
6129 "\n"
6130 msgstr ""
6131
6132 # type: textblock
6133 #. type: textblock
6134 #: ../src/guestfs-actions.pod:198
6135 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6136 msgstr ""
6137
6138 # type: =head2
6139 #. type: =head2
6140 #: ../src/guestfs-actions.pod:202
6141 msgid "guestfs_add_drive_opts_argv"
6142 msgstr ""
6143
6144 # type: verbatim
6145 #. type: verbatim
6146 #: ../src/guestfs-actions.pod:204
6147 #, no-wrap
6148 msgid ""
6149 " int\n"
6150 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6151 "                              const char *filename,\n"
6152 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6153 "\n"
6154 msgstr ""
6155
6156 # type: textblock
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:209
6159 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6160 msgstr ""
6161
6162 # type: =head2
6163 #. type: =head2
6164 #: ../src/guestfs-actions.pod:213
6165 msgid "guestfs_add_drive_ro"
6166 msgstr ""
6167
6168 # type: verbatim
6169 #. type: verbatim
6170 #: ../src/guestfs-actions.pod:215
6171 #, no-wrap
6172 msgid ""
6173 " int\n"
6174 " guestfs_add_drive_ro (guestfs_h *g,\n"
6175 "                       const char *filename);\n"
6176 "\n"
6177 msgstr ""
6178
6179 # type: textblock
6180 #. type: textblock
6181 #: ../src/guestfs-actions.pod:219
6182 msgid ""
6183 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6184 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6185 "disk is added read-only, with the format being detected automatically."
6186 msgstr ""
6187
6188 # type: textblock
6189 #. type: textblock
6190 #: ../src/guestfs-actions.pod:226
6191 msgid "(Added in 1.0.38)"
6192 msgstr ""
6193
6194 # type: =head2
6195 #. type: =head2
6196 #: ../src/guestfs-actions.pod:228
6197 msgid "guestfs_add_drive_ro_with_if"
6198 msgstr ""
6199
6200 # type: verbatim
6201 #. type: verbatim
6202 #: ../src/guestfs-actions.pod:230
6203 #, no-wrap
6204 msgid ""
6205 " int\n"
6206 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6207 "                               const char *filename,\n"
6208 "                               const char *iface);\n"
6209 "\n"
6210 msgstr ""
6211
6212 # type: textblock
6213 #. type: textblock
6214 #: ../src/guestfs-actions.pod:235
6215 msgid ""
6216 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6217 "QEMU interface emulation to use at run time."
6218 msgstr ""
6219
6220 # type: textblock
6221 #. type: textblock
6222 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
6223 #: ../src/guestfs-actions.pod:2333
6224 msgid "(Added in 1.0.84)"
6225 msgstr ""
6226
6227 # type: =head2
6228 #. type: =head2
6229 #: ../src/guestfs-actions.pod:249
6230 msgid "guestfs_add_drive_with_if"
6231 msgstr ""
6232
6233 # type: verbatim
6234 #. type: verbatim
6235 #: ../src/guestfs-actions.pod:251
6236 #, no-wrap
6237 msgid ""
6238 " int\n"
6239 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6240 "                            const char *filename,\n"
6241 "                            const char *iface);\n"
6242 "\n"
6243 msgstr ""
6244
6245 # type: textblock
6246 #. type: textblock
6247 #: ../src/guestfs-actions.pod:256
6248 msgid ""
6249 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6250 "QEMU interface emulation to use at run time."
6251 msgstr ""
6252
6253 # type: =head2
6254 #. type: =head2
6255 #: ../src/guestfs-actions.pod:270
6256 msgid "guestfs_aug_clear"
6257 msgstr ""
6258
6259 # type: verbatim
6260 #. type: verbatim
6261 #: ../src/guestfs-actions.pod:272
6262 #, no-wrap
6263 msgid ""
6264 " int\n"
6265 " guestfs_aug_clear (guestfs_h *g,\n"
6266 "                    const char *augpath);\n"
6267 "\n"
6268 msgstr ""
6269
6270 # type: textblock
6271 #. type: textblock
6272 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:176
6273 msgid ""
6274 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6275 "L<augtool(1)> C<clear> command."
6276 msgstr ""
6277
6278 # type: textblock
6279 #. type: textblock
6280 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
6281 msgid "(Added in 1.3.4)"
6282 msgstr ""
6283
6284 # type: =head2
6285 #. type: =head2
6286 #: ../src/guestfs-actions.pod:283
6287 msgid "guestfs_aug_close"
6288 msgstr ""
6289
6290 # type: verbatim
6291 #. type: verbatim
6292 #: ../src/guestfs-actions.pod:285
6293 #, no-wrap
6294 msgid ""
6295 " int\n"
6296 " guestfs_aug_close (guestfs_h *g);\n"
6297 "\n"
6298 msgstr ""
6299
6300 # type: textblock
6301 #. type: textblock
6302 #: ../src/guestfs-actions.pod:288
6303 msgid ""
6304 "Close the current Augeas handle and free up any resources used by it.  After "
6305 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6306 "any other Augeas functions."
6307 msgstr ""
6308
6309 # type: textblock
6310 #. type: textblock
6311 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
6312 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
6313 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
6314 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
6315 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
6316 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
6317 #: ../src/guestfs-actions.pod:5224
6318 msgid "(Added in 0.7)"
6319 msgstr ""
6320
6321 # type: =head2
6322 #. type: =head2
6323 #: ../src/guestfs-actions.pod:297
6324 msgid "guestfs_aug_defnode"
6325 msgstr ""
6326
6327 # type: verbatim
6328 #. type: verbatim
6329 #: ../src/guestfs-actions.pod:299
6330 #, no-wrap
6331 msgid ""
6332 " struct guestfs_int_bool *\n"
6333 " guestfs_aug_defnode (guestfs_h *g,\n"
6334 "                      const char *name,\n"
6335 "                      const char *expr,\n"
6336 "                      const char *val);\n"
6337 "\n"
6338 msgstr ""
6339
6340 # type: textblock
6341 #. type: textblock
6342 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:192
6343 msgid ""
6344 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6345 msgstr ""
6346
6347 # type: textblock
6348 #. type: textblock
6349 #: ../src/guestfs-actions.pod:308
6350 msgid ""
6351 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6352 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6353 "containing that single node."
6354 msgstr ""
6355
6356 # type: textblock
6357 #. type: textblock
6358 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:199
6359 msgid ""
6360 "On success this returns a pair containing the number of nodes in the "
6361 "nodeset, and a boolean flag if a node was created."
6362 msgstr ""
6363
6364 # type: textblock
6365 #. type: textblock
6366 #: ../src/guestfs-actions.pod:316
6367 msgid ""
6368 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6369 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6370 msgstr ""
6371
6372 # type: =head2
6373 #. type: =head2
6374 #: ../src/guestfs-actions.pod:322
6375 msgid "guestfs_aug_defvar"
6376 msgstr ""
6377
6378 # type: verbatim
6379 #. type: verbatim
6380 #: ../src/guestfs-actions.pod:324
6381 #, no-wrap
6382 msgid ""
6383 " int\n"
6384 " guestfs_aug_defvar (guestfs_h *g,\n"
6385 "                     const char *name,\n"
6386 "                     const char *expr);\n"
6387 "\n"
6388 msgstr ""
6389
6390 # type: textblock
6391 #. type: textblock
6392 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:207
6393 msgid ""
6394 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6395 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6396 msgstr ""
6397
6398 # type: textblock
6399 #. type: textblock
6400 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:211
6401 msgid ""
6402 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6403 "evaluates to something which is not a nodeset."
6404 msgstr ""
6405
6406 # type: =head2
6407 #. type: =head2
6408 #: ../src/guestfs-actions.pod:340
6409 msgid "guestfs_aug_get"
6410 msgstr ""
6411
6412 # type: verbatim
6413 #. type: verbatim
6414 #: ../src/guestfs-actions.pod:342
6415 #, no-wrap
6416 msgid ""
6417 " char *\n"
6418 " guestfs_aug_get (guestfs_h *g,\n"
6419 "                  const char *augpath);\n"
6420 "\n"
6421 msgstr ""
6422
6423 # type: textblock
6424 #. type: textblock
6425 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:218
6426 msgid ""
6427 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6428 "node, the C<value> is returned."
6429 msgstr ""
6430
6431 # type: textblock
6432 #. type: textblock
6433 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
6434 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
6435 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
6436 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
6437 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
6438 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
6439 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
6440 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
6441 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2298
6442 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
6443 #: ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2744
6444 #: ../src/guestfs-actions.pod:2775 ../src/guestfs-actions.pod:2799
6445 #: ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:2884
6446 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3748
6447 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:4028
6448 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:4952
6449 #: ../src/guestfs-actions.pod:5122 ../src/guestfs-actions.pod:5300
6450 #: ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:5912
6451 #: ../src/guestfs-actions.pod:5928 ../src/guestfs-actions.pod:5945
6452 #: ../src/guestfs-actions.pod:5969 ../src/guestfs-actions.pod:6643
6453 #: ../src/guestfs-actions.pod:6662 ../src/guestfs-actions.pod:6680
6454 #: ../src/guestfs-actions.pod:6860 ../src/guestfs-actions.pod:7132
6455 msgid ""
6456 "This function returns a string, or NULL on error.  I<The caller must free "
6457 "the returned string after use>."
6458 msgstr ""
6459
6460 # type: =head2
6461 #. type: =head2
6462 #: ../src/guestfs-actions.pod:354
6463 msgid "guestfs_aug_init"
6464 msgstr ""
6465
6466 # type: verbatim
6467 #. type: verbatim
6468 #: ../src/guestfs-actions.pod:356
6469 #, no-wrap
6470 msgid ""
6471 " int\n"
6472 " guestfs_aug_init (guestfs_h *g,\n"
6473 "                   const char *root,\n"
6474 "                   int flags);\n"
6475 "\n"
6476 msgstr ""
6477
6478 # type: textblock
6479 #. type: textblock
6480 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:225
6481 msgid ""
6482 "Create a new Augeas handle for editing configuration files.  If there was "
6483 "any previous Augeas handle associated with this guestfs session, then it is "
6484 "closed."
6485 msgstr ""
6486
6487 # type: textblock
6488 #. type: textblock
6489 #: ../src/guestfs-actions.pod:365
6490 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6491 msgstr ""
6492
6493 # type: textblock
6494 #. type: textblock
6495 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:232
6496 msgid ""
6497 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6498 msgstr ""
6499
6500 # type: textblock
6501 #. type: textblock
6502 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:235
6503 msgid ""
6504 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6505 "logical I<or> of the following integers:"
6506 msgstr ""
6507
6508 # type: =item
6509 #. type: =item
6510 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:241
6511 msgid "C<AUG_SAVE_BACKUP> = 1"
6512 msgstr ""
6513
6514 # type: textblock
6515 #. type: textblock
6516 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
6517 msgid "Keep the original file with a C<.augsave> extension."
6518 msgstr ""
6519
6520 # type: =item
6521 #. type: =item
6522 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
6523 msgid "C<AUG_SAVE_NEWFILE> = 2"
6524 msgstr ""
6525
6526 # type: textblock
6527 #. type: textblock
6528 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
6529 msgid ""
6530 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6531 "original.  Overrides C<AUG_SAVE_BACKUP>."
6532 msgstr ""
6533
6534 # type: =item
6535 #. type: =item
6536 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:250
6537 msgid "C<AUG_TYPE_CHECK> = 4"
6538 msgstr ""
6539
6540 # type: textblock
6541 #. type: textblock
6542 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
6543 msgid "Typecheck lenses (can be expensive)."
6544 msgstr ""
6545
6546 # type: =item
6547 #. type: =item
6548 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
6549 msgid "C<AUG_NO_STDINC> = 8"
6550 msgstr ""
6551
6552 # type: textblock
6553 #. type: textblock
6554 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
6555 msgid "Do not use standard load path for modules."
6556 msgstr ""
6557
6558 # type: =item
6559 #. type: =item
6560 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
6561 msgid "C<AUG_SAVE_NOOP> = 16"
6562 msgstr ""
6563
6564 # type: textblock
6565 #. type: textblock
6566 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
6567 msgid "Make save a no-op, just record what would have been changed."
6568 msgstr ""
6569
6570 # type: =item
6571 #. type: =item
6572 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
6573 msgid "C<AUG_NO_LOAD> = 32"
6574 msgstr ""
6575
6576 # type: textblock
6577 #. type: textblock
6578 #: ../src/guestfs-actions.pod:400
6579 msgid "Do not load the tree in C<guestfs_aug_init>."
6580 msgstr ""
6581
6582 # type: textblock
6583 #. type: textblock
6584 #: ../src/guestfs-actions.pod:404
6585 msgid "To close the handle, you can call C<guestfs_aug_close>."
6586 msgstr ""
6587
6588 # type: textblock
6589 #. type: textblock
6590 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:270
6591 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6592 msgstr ""
6593
6594 # type: =head2
6595 #. type: =head2
6596 #: ../src/guestfs-actions.pod:412
6597 msgid "guestfs_aug_insert"
6598 msgstr ""
6599
6600 # type: verbatim
6601 #. type: verbatim
6602 #: ../src/guestfs-actions.pod:414
6603 #, no-wrap
6604 msgid ""
6605 " int\n"
6606 " guestfs_aug_insert (guestfs_h *g,\n"
6607 "                     const char *augpath,\n"
6608 "                     const char *label,\n"
6609 "                     int before);\n"
6610 "\n"
6611 msgstr ""
6612
6613 # type: textblock
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:276
6616 msgid ""
6617 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6618 "or after C<path> (depending on the boolean flag C<before>)."
6619 msgstr ""
6620
6621 # type: textblock
6622 #. type: textblock
6623 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:280
6624 msgid ""
6625 "C<path> must match exactly one existing node in the tree, and C<label> must "
6626 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6627 msgstr ""
6628
6629 # type: =head2
6630 #. type: =head2
6631 #: ../src/guestfs-actions.pod:432
6632 msgid "guestfs_aug_load"
6633 msgstr ""
6634
6635 # type: verbatim
6636 #. type: verbatim
6637 #: ../src/guestfs-actions.pod:434
6638 #, no-wrap
6639 msgid ""
6640 " int\n"
6641 " guestfs_aug_load (guestfs_h *g);\n"
6642 "\n"
6643 msgstr ""
6644
6645 # type: textblock
6646 #. type: textblock
6647 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:288
6648 msgid "Load files into the tree."
6649 msgstr ""
6650
6651 # type: textblock
6652 #. type: textblock
6653 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
6654 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6655 msgstr ""
6656
6657 # type: =head2
6658 #. type: =head2
6659 #: ../src/guestfs-actions.pod:446
6660 msgid "guestfs_aug_ls"
6661 msgstr ""
6662
6663 # type: verbatim
6664 #. type: verbatim
6665 #: ../src/guestfs-actions.pod:448
6666 #, no-wrap
6667 msgid ""
6668 " char **\n"
6669 " guestfs_aug_ls (guestfs_h *g,\n"
6670 "                 const char *augpath);\n"
6671 "\n"
6672 msgstr ""
6673
6674 # type: textblock
6675 #. type: textblock
6676 #: ../src/guestfs-actions.pod:452
6677 msgid ""
6678 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6679 "sorting the resulting nodes into alphabetical order."
6680 msgstr ""
6681
6682 # type: textblock
6683 #. type: textblock
6684 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
6685 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
6686 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
6687 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
6688 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2178
6689 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
6690 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
6691 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
6692 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2818
6693 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3318
6694 #: ../src/guestfs-actions.pod:3380 ../src/guestfs-actions.pod:3485
6695 #: ../src/guestfs-actions.pod:3890 ../src/guestfs-actions.pod:4574
6696 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5220
6697 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5985
6698 #: ../src/guestfs-actions.pod:6046 ../src/guestfs-actions.pod:6101
6699 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6271
6700 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6773
6701 #: ../src/guestfs-actions.pod:6820 ../src/guestfs-actions.pod:6985
6702 #: ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7089
6703 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7154
6704 #: ../src/guestfs-actions.pod:7173
6705 msgid ""
6706 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6707 ">), or NULL if there was an error.  I<The caller must free the strings and "
6708 "the array after use>."
6709 msgstr ""
6710
6711 # type: textblock
6712 #. type: textblock
6713 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
6714 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
6715 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
6716 #: ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:3781
6717 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:4001
6718 #: ../src/guestfs-actions.pod:4164 ../src/guestfs-actions.pod:4578
6719 #: ../src/guestfs-actions.pod:5035 ../src/guestfs-actions.pod:5413
6720 #: ../src/guestfs-actions.pod:5427 ../src/guestfs-actions.pod:5439
6721 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:6485
6722 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6737
6723 #: ../src/guestfs-actions.pod:6973
6724 msgid "(Added in 0.8)"
6725 msgstr ""
6726
6727 # type: =head2
6728 #. type: =head2
6729 #: ../src/guestfs-actions.pod:461
6730 msgid "guestfs_aug_match"
6731 msgstr ""
6732
6733 # type: verbatim
6734 #. type: verbatim
6735 #: ../src/guestfs-actions.pod:463
6736 #, no-wrap
6737 msgid ""
6738 " char **\n"
6739 " guestfs_aug_match (guestfs_h *g,\n"
6740 "                    const char *augpath);\n"
6741 "\n"
6742 msgstr ""
6743
6744 # type: textblock
6745 #. type: textblock
6746 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:304
6747 msgid ""
6748 "Returns a list of paths which match the path expression C<path>.  The "
6749 "returned paths are sufficiently qualified so that they match exactly one "
6750 "node in the current tree."
6751 msgstr ""
6752
6753 # type: =head2
6754 #. type: =head2
6755 #: ../src/guestfs-actions.pod:477
6756 msgid "guestfs_aug_mv"
6757 msgstr ""
6758
6759 # type: verbatim
6760 #. type: verbatim
6761 #: ../src/guestfs-actions.pod:479
6762 #, no-wrap
6763 msgid ""
6764 " int\n"
6765 " guestfs_aug_mv (guestfs_h *g,\n"
6766 "                 const char *src,\n"
6767 "                 const char *dest);\n"
6768 "\n"
6769 msgstr ""
6770
6771 # type: textblock
6772 #. type: textblock
6773 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:312
6774 msgid ""
6775 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6776 "C<dest> is overwritten if it exists."
6777 msgstr ""
6778
6779 # type: =head2
6780 #. type: =head2
6781 #: ../src/guestfs-actions.pod:491
6782 msgid "guestfs_aug_rm"
6783 msgstr ""
6784
6785 # type: verbatim
6786 #. type: verbatim
6787 #: ../src/guestfs-actions.pod:493
6788 #, no-wrap
6789 msgid ""
6790 " int\n"
6791 " guestfs_aug_rm (guestfs_h *g,\n"
6792 "                 const char *augpath);\n"
6793 "\n"
6794 msgstr ""
6795
6796 # type: textblock
6797 #. type: textblock
6798 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:319
6799 msgid "Remove C<path> and all of its children."
6800 msgstr ""
6801
6802 # type: textblock
6803 #. type: textblock
6804 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
6805 msgid "On success this returns the number of entries which were removed."
6806 msgstr ""
6807
6808 # type: =head2
6809 #. type: =head2
6810 #: ../src/guestfs-actions.pod:505
6811 msgid "guestfs_aug_save"
6812 msgstr ""
6813
6814 # type: verbatim
6815 #. type: verbatim
6816 #: ../src/guestfs-actions.pod:507
6817 #, no-wrap
6818 msgid ""
6819 " int\n"
6820 " guestfs_aug_save (guestfs_h *g);\n"
6821 "\n"
6822 msgstr ""
6823
6824 # type: textblock
6825 #. type: textblock
6826 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:327
6827 msgid "This writes all pending changes to disk."
6828 msgstr ""
6829
6830 # type: textblock
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:512
6833 msgid ""
6834 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6835 "are saved."
6836 msgstr ""
6837
6838 # type: =head2
6839 #. type: =head2
6840 #: ../src/guestfs-actions.pod:519
6841 msgid "guestfs_aug_set"
6842 msgstr ""
6843
6844 # type: verbatim
6845 #. type: verbatim
6846 #: ../src/guestfs-actions.pod:521
6847 #, no-wrap
6848 msgid ""
6849 " int\n"
6850 " guestfs_aug_set (guestfs_h *g,\n"
6851 "                  const char *augpath,\n"
6852 "                  const char *val);\n"
6853 "\n"
6854 msgstr ""
6855
6856 # type: textblock
6857 #. type: textblock
6858 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:336
6859 msgid "Set the value associated with C<path> to C<val>."
6860 msgstr ""
6861
6862 # type: textblock
6863 #. type: textblock
6864 #: ../src/guestfs-actions.pod:528
6865 msgid ""
6866 "In the Augeas API, it is possible to clear a node by setting the value to "
6867 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6868 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6869 msgstr ""
6870
6871 # type: =head2
6872 #. type: =head2
6873 #: ../src/guestfs-actions.pod:537
6874 msgid "guestfs_available"
6875 msgstr ""
6876
6877 # type: verbatim
6878 #. type: verbatim
6879 #: ../src/guestfs-actions.pod:539
6880 #, no-wrap
6881 msgid ""
6882 " int\n"
6883 " guestfs_available (guestfs_h *g,\n"
6884 "                    char *const *groups);\n"
6885 "\n"
6886 msgstr ""
6887
6888 # type: textblock
6889 #. type: textblock
6890 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:347
6891 msgid ""
6892 "This command is used to check the availability of some groups of "
6893 "functionality in the appliance, which not all builds of the libguestfs "
6894 "appliance will be able to provide."
6895 msgstr ""
6896
6897 # type: textblock
6898 #. type: textblock
6899 #: ../src/guestfs-actions.pod:547
6900 msgid ""
6901 "The libguestfs groups, and the functions that those groups correspond to, "
6902 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6903 "runtime by calling C<guestfs_available_all_groups>."
6904 msgstr ""
6905
6906 # type: textblock
6907 #. type: textblock
6908 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:356
6909 msgid ""
6910 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6911 "\"]> would check for the availability of the Linux inotify functions and "
6912 "Augeas (configuration file editing) functions."
6913 msgstr ""
6914
6915 # type: textblock
6916 #. type: textblock
6917 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:361
6918 msgid "The command returns no error if I<all> requested groups are available."
6919 msgstr ""
6920
6921 # type: textblock
6922 #. type: textblock
6923 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
6924 msgid ""
6925 "It fails with an error if one or more of the requested groups is unavailable "
6926 "in the appliance."
6927 msgstr ""
6928
6929 # type: textblock
6930 #. type: textblock
6931 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:366
6932 msgid ""
6933 "If an unknown group name is included in the list of groups then an error is "
6934 "always returned."
6935 msgstr ""
6936
6937 # type: textblock
6938 #. type: textblock
6939 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:369
6940 msgid "I<Notes:>"
6941 msgstr ""
6942
6943 # type: textblock
6944 #. type: textblock
6945 #: ../src/guestfs-actions.pod:571
6946 msgid "You must call C<guestfs_launch> before calling this function."
6947 msgstr ""
6948
6949 # type: textblock
6950 #. type: textblock
6951 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:377
6952 msgid ""
6953 "The reason is because we don't know what groups are supported by the "
6954 "appliance/daemon until it is running and can be queried."
6955 msgstr ""
6956
6957 # type: textblock
6958 #. type: textblock
6959 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:383
6960 msgid ""
6961 "If a group of functions is available, this does not necessarily mean that "
6962 "they will work.  You still have to check for errors when calling individual "
6963 "API functions even if they are available."
6964 msgstr ""
6965
6966 # type: textblock
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:390
6969 msgid ""
6970 "It is usually the job of distro packagers to build complete functionality "
6971 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6972 "with all requirements satisfied, will support everything."
6973 msgstr ""
6974
6975 # type: textblock
6976 #. type: textblock
6977 #: ../src/guestfs-actions.pod:593
6978 msgid ""
6979 "This call was added in version C<1.0.80>.  In previous versions of "
6980 "libguestfs all you could do would be to speculatively execute a command to "
6981 "find out if the daemon implemented it.  See also C<guestfs_version>."
6982 msgstr ""
6983
6984 # type: textblock
6985 #. type: textblock
6986 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
6987 msgid "(Added in 1.0.80)"
6988 msgstr ""
6989
6990 # type: =head2
6991 #. type: =head2
6992 #: ../src/guestfs-actions.pod:604
6993 msgid "guestfs_available_all_groups"
6994 msgstr ""
6995
6996 # type: verbatim
6997 #. type: verbatim
6998 #: ../src/guestfs-actions.pod:606
6999 #, no-wrap
7000 msgid ""
7001 " char **\n"
7002 " guestfs_available_all_groups (guestfs_h *g);\n"
7003 "\n"
7004 msgstr ""
7005
7006 # type: textblock
7007 #. type: textblock
7008 #: ../src/guestfs-actions.pod:609
7009 msgid ""
7010 "This command returns a list of all optional groups that this daemon knows "
7011 "about.  Note this returns both supported and unsupported groups.  To find "
7012 "out which ones the daemon can actually support you have to call "
7013 "C<guestfs_available> on each member of the returned list."
7014 msgstr ""
7015
7016 # type: textblock
7017 #. type: textblock
7018 #: ../src/guestfs-actions.pod:615
7019 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7020 msgstr ""
7021
7022 # type: textblock
7023 #. type: textblock
7024 #: ../src/guestfs-actions.pod:621
7025 msgid "(Added in 1.3.15)"
7026 msgstr ""
7027
7028 # type: =head2
7029 #. type: =head2
7030 #: ../src/guestfs-actions.pod:623
7031 msgid "guestfs_base64_in"
7032 msgstr ""
7033
7034 # type: verbatim
7035 #. type: verbatim
7036 #: ../src/guestfs-actions.pod:625
7037 #, no-wrap
7038 msgid ""
7039 " int\n"
7040 " guestfs_base64_in (guestfs_h *g,\n"
7041 "                    const char *base64file,\n"
7042 "                    const char *filename);\n"
7043 "\n"
7044 msgstr ""
7045
7046 # type: textblock
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:420
7049 msgid ""
7050 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7051 msgstr ""
7052
7053 # type: textblock
7054 #. type: textblock
7055 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
7056 msgid "(Added in 1.3.5)"
7057 msgstr ""
7058
7059 # type: =head2
7060 #. type: =head2
7061 #: ../src/guestfs-actions.pod:637
7062 msgid "guestfs_base64_out"
7063 msgstr ""
7064
7065 # type: verbatim
7066 #. type: verbatim
7067 #: ../src/guestfs-actions.pod:639
7068 #, no-wrap
7069 msgid ""
7070 " int\n"
7071 " guestfs_base64_out (guestfs_h *g,\n"
7072 "                     const char *filename,\n"
7073 "                     const char *base64file);\n"
7074 "\n"
7075 msgstr ""
7076
7077 # type: textblock
7078 #. type: textblock
7079 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:429
7080 msgid ""
7081 "This command downloads the contents of C<filename>, writing it out to local "
7082 "file C<base64file> encoded as base64."
7083 msgstr ""
7084
7085 # type: =head2
7086 #. type: =head2
7087 #: ../src/guestfs-actions.pod:651
7088 msgid "guestfs_blockdev_flushbufs"
7089 msgstr ""
7090
7091 # type: verbatim
7092 #. type: verbatim
7093 #: ../src/guestfs-actions.pod:653
7094 #, no-wrap
7095 msgid ""
7096 " int\n"
7097 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7098 "                             const char *device);\n"
7099 "\n"
7100 msgstr ""
7101
7102 # type: textblock
7103 #. type: textblock
7104 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:438
7105 msgid ""
7106 "This tells the kernel to flush internal buffers associated with C<device>."
7107 msgstr ""
7108
7109 # type: textblock
7110 #. type: textblock
7111 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
7112 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
7113 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
7114 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
7115 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
7116 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:452
7117 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:471
7118 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:496
7119 #: ../fish/guestfish-actions.pod:504 ../fish/guestfish-actions.pod:515
7120 #: ../fish/guestfish-actions.pod:523 ../fish/guestfish-actions.pod:531
7121 msgid "This uses the L<blockdev(8)> command."
7122 msgstr ""
7123
7124 # type: textblock
7125 #. type: textblock
7126 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
7127 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
7128 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
7129 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
7130 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
7131 msgid "(Added in 0.9.3)"
7132 msgstr ""
7133
7134 # type: =head2
7135 #. type: =head2
7136 #: ../src/guestfs-actions.pod:666
7137 msgid "guestfs_blockdev_getbsz"
7138 msgstr ""
7139
7140 # type: verbatim
7141 #. type: verbatim
7142 #: ../src/guestfs-actions.pod:668
7143 #, no-wrap
7144 msgid ""
7145 " int\n"
7146 " guestfs_blockdev_getbsz (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:672 ../fish/guestfish-actions.pod:447
7154 msgid "This returns the block size of a device."
7155 msgstr ""
7156
7157 # type: textblock
7158 #. type: textblock
7159 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
7160 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:512
7161 msgid ""
7162 "(Note this is different from both I<size in blocks> and I<filesystem block "
7163 "size>)."
7164 msgstr ""
7165
7166 # type: =head2
7167 #. type: =head2
7168 #: ../src/guestfs-actions.pod:683
7169 msgid "guestfs_blockdev_getro"
7170 msgstr ""
7171
7172 # type: verbatim
7173 #. type: verbatim
7174 #: ../src/guestfs-actions.pod:685
7175 #, no-wrap
7176 msgid ""
7177 " int\n"
7178 " guestfs_blockdev_getro (guestfs_h *g,\n"
7179 "                         const char *device);\n"
7180 "\n"
7181 msgstr ""
7182
7183 # type: textblock
7184 #. type: textblock
7185 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:458
7186 msgid ""
7187 "Returns a boolean indicating if the block device is read-only (true if read-"
7188 "only, false if not)."
7189 msgstr ""
7190
7191 # type: textblock
7192 #. type: textblock
7193 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
7194 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
7195 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
7196 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
7197 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
7198 #: ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3064
7199 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3093
7200 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3124
7201 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3154
7202 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3181
7203 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
7204 #: ../src/guestfs-actions.pod:4723
7205 msgid "This function returns a C truth value on success or -1 on error."
7206 msgstr ""
7207
7208 # type: =head2
7209 #. type: =head2
7210 #: ../src/guestfs-actions.pod:698
7211 msgid "guestfs_blockdev_getsize64"
7212 msgstr ""
7213
7214 # type: verbatim
7215 #. type: verbatim
7216 #: ../src/guestfs-actions.pod:700
7217 #, no-wrap
7218 msgid ""
7219 " int64_t\n"
7220 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7221 "                             const char *device);\n"
7222 "\n"
7223 msgstr ""
7224
7225 # type: textblock
7226 #. type: textblock
7227 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:467
7228 msgid "This returns the size of the device in bytes."
7229 msgstr ""
7230
7231 # type: textblock
7232 #. type: textblock
7233 #: ../src/guestfs-actions.pod:706
7234 msgid "See also C<guestfs_blockdev_getsz>."
7235 msgstr ""
7236
7237 # type: =head2
7238 #. type: =head2
7239 #: ../src/guestfs-actions.pod:714
7240 msgid "guestfs_blockdev_getss"
7241 msgstr ""
7242
7243 # type: verbatim
7244 #. type: verbatim
7245 #: ../src/guestfs-actions.pod:716
7246 #, no-wrap
7247 msgid ""
7248 " int\n"
7249 " guestfs_blockdev_getss (guestfs_h *g,\n"
7250 "                         const char *device);\n"
7251 "\n"
7252 msgstr ""
7253
7254 # type: textblock
7255 #. type: textblock
7256 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:477
7257 msgid ""
7258 "This returns the size of sectors on a block device.  Usually 512, but can be "
7259 "larger for modern devices."
7260 msgstr ""
7261
7262 # type: textblock
7263 #. type: textblock
7264 #: ../src/guestfs-actions.pod:723
7265 msgid ""
7266 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7267 "that)."
7268 msgstr ""
7269
7270 # type: =head2
7271 #. type: =head2
7272 #: ../src/guestfs-actions.pod:732
7273 msgid "guestfs_blockdev_getsz"
7274 msgstr ""
7275
7276 # type: verbatim
7277 #. type: verbatim
7278 #: ../src/guestfs-actions.pod:734
7279 #, no-wrap
7280 msgid ""
7281 " int64_t\n"
7282 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7283 "                         const char *device);\n"
7284 "\n"
7285 msgstr ""
7286
7287 # type: textblock
7288 #. type: textblock
7289 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:489
7290 msgid ""
7291 "This returns the size of the device in units of 512-byte sectors (even if "
7292 "the sectorsize isn't 512 bytes ... weird)."
7293 msgstr ""
7294
7295 # type: textblock
7296 #. type: textblock
7297 #: ../src/guestfs-actions.pod:741
7298 msgid ""
7299 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7300 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7301 msgstr ""
7302
7303 # type: =head2
7304 #. type: =head2
7305 #: ../src/guestfs-actions.pod:751
7306 msgid "guestfs_blockdev_rereadpt"
7307 msgstr ""
7308
7309 # type: verbatim
7310 #. type: verbatim
7311 #: ../src/guestfs-actions.pod:753
7312 #, no-wrap
7313 msgid ""
7314 " int\n"
7315 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7316 "                            const char *device);\n"
7317 "\n"
7318 msgstr ""
7319
7320 # type: textblock
7321 #. type: textblock
7322 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:502
7323 msgid "Reread the partition table on C<device>."
7324 msgstr ""
7325
7326 # type: =head2
7327 #. type: =head2
7328 #: ../src/guestfs-actions.pod:765
7329 msgid "guestfs_blockdev_setbsz"
7330 msgstr ""
7331
7332 # type: verbatim
7333 #. type: verbatim
7334 #: ../src/guestfs-actions.pod:767
7335 #, no-wrap
7336 msgid ""
7337 " int\n"
7338 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7339 "                          const char *device,\n"
7340 "                          int blocksize);\n"
7341 "\n"
7342 msgstr ""
7343
7344 # type: textblock
7345 #. type: textblock
7346 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:510
7347 msgid "This sets the block size of a device."
7348 msgstr ""
7349
7350 # type: =head2
7351 #. type: =head2
7352 #: ../src/guestfs-actions.pod:783
7353 msgid "guestfs_blockdev_setro"
7354 msgstr ""
7355
7356 # type: verbatim
7357 #. type: verbatim
7358 #: ../src/guestfs-actions.pod:785
7359 #, no-wrap
7360 msgid ""
7361 " int\n"
7362 " guestfs_blockdev_setro (guestfs_h *g,\n"
7363 "                         const char *device);\n"
7364 "\n"
7365 msgstr ""
7366
7367 # type: textblock
7368 #. type: textblock
7369 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:521
7370 msgid "Sets the block device named C<device> to read-only."
7371 msgstr ""
7372
7373 # type: =head2
7374 #. type: =head2
7375 #: ../src/guestfs-actions.pod:797
7376 msgid "guestfs_blockdev_setrw"
7377 msgstr ""
7378
7379 # type: verbatim
7380 #. type: verbatim
7381 #: ../src/guestfs-actions.pod:799
7382 #, no-wrap
7383 msgid ""
7384 " int\n"
7385 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7386 "                         const char *device);\n"
7387 "\n"
7388 msgstr ""
7389
7390 # type: textblock
7391 #. type: textblock
7392 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:529
7393 msgid "Sets the block device named C<device> to read-write."
7394 msgstr ""
7395
7396 # type: =head2
7397 #. type: =head2
7398 #: ../src/guestfs-actions.pod:811
7399 msgid "guestfs_case_sensitive_path"
7400 msgstr ""
7401
7402 # type: verbatim
7403 #. type: verbatim
7404 #: ../src/guestfs-actions.pod:813
7405 #, no-wrap
7406 msgid ""
7407 " char *\n"
7408 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7409 "                              const char *path);\n"
7410 "\n"
7411 msgstr ""
7412
7413 # type: textblock
7414 #. type: textblock
7415 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:537
7416 msgid ""
7417 "This can be used to resolve case insensitive paths on a filesystem which is "
7418 "case sensitive.  The use case is to resolve paths which you have read from "
7419 "Windows configuration files or the Windows Registry, to the true path."
7420 msgstr ""
7421
7422 # type: textblock
7423 #. type: textblock
7424 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:542
7425 msgid ""
7426 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7427 "(and probably others), which is that although the underlying filesystem is "
7428 "case-insensitive, the driver exports the filesystem to Linux as case-"
7429 "sensitive."
7430 msgstr ""
7431
7432 # type: textblock
7433 #. type: textblock
7434 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:547
7435 msgid ""
7436 "One consequence of this is that special directories such as C<c:\\windows> "
7437 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7438 "precise details of how they were created.  In Windows itself this would not "
7439 "be a problem."
7440 msgstr ""
7441
7442 # type: textblock
7443 #. type: textblock
7444 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:553
7445 msgid ""
7446 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7447 "#posixfilenames1>"
7448 msgstr ""
7449
7450 # type: textblock
7451 #. type: textblock
7452 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:556
7453 msgid ""
7454 "This function resolves the true case of each element in the path and returns "
7455 "the case-sensitive path."
7456 msgstr ""
7457
7458 # type: textblock
7459 #. type: textblock
7460 #: ../src/guestfs-actions.pod:839
7461 msgid ""
7462 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7463 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7464 "how the directories were originally created under Windows)."
7465 msgstr ""
7466
7467 # type: textblock
7468 #. type: textblock
7469 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:564
7470 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7471 msgstr ""
7472
7473 # type: textblock
7474 #. type: textblock
7475 #: ../src/guestfs-actions.pod:847
7476 msgid "See also C<guestfs_realpath>."
7477 msgstr ""
7478
7479 # type: textblock
7480 #. type: textblock
7481 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6665
7482 msgid "(Added in 1.0.75)"
7483 msgstr ""
7484
7485 # type: =head2
7486 #. type: =head2
7487 #: ../src/guestfs-actions.pod:854
7488 msgid "guestfs_cat"
7489 msgstr ""
7490
7491 # type: verbatim
7492 #. type: verbatim
7493 #: ../src/guestfs-actions.pod:856
7494 #, no-wrap
7495 msgid ""
7496 " char *\n"
7497 " guestfs_cat (guestfs_h *g,\n"
7498 "              const char *path);\n"
7499 "\n"
7500 msgstr ""
7501
7502 # type: textblock
7503 #. type: textblock
7504 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5210
7505 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3462
7506 msgid "Return the contents of the file named C<path>."
7507 msgstr ""
7508
7509 # type: textblock
7510 #. type: textblock
7511 #: ../src/guestfs-actions.pod:862
7512 msgid ""
7513 "Note that this function cannot correctly handle binary files (specifically, "
7514 "files containing C<\\0> character which is treated as end of string).  For "
7515 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7516 "functions which have a more complex interface."
7517 msgstr ""
7518
7519 # type: textblock
7520 #. type: textblock
7521 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
7522 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
7523 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
7524 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
7525 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
7526 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
7527 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
7528 #: ../src/guestfs-actions.pod:4992 ../src/guestfs-actions.pod:5018
7529 #: ../src/guestfs-actions.pod:5149 ../src/guestfs-actions.pod:5175
7530 #: ../src/guestfs-actions.pod:5199 ../src/guestfs-actions.pod:6050
7531 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6251
7532 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6937
7533 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6989
7534 #: ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7093
7535 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7158
7536 #: ../src/guestfs-actions.pod:7177 ../fish/guestfish-actions.pod:580
7537 #: ../fish/guestfish-actions.pod:715 ../fish/guestfish-actions.pod:727
7538 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:913
7539 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990
7540 #: ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1480
7541 #: ../fish/guestfish-actions.pod:1490 ../fish/guestfish-actions.pod:1518
7542 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:1543
7543 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:3332
7544 #: ../fish/guestfish-actions.pod:3347 ../fish/guestfish-actions.pod:3423
7545 #: ../fish/guestfish-actions.pod:3440 ../fish/guestfish-actions.pod:3455
7546 #: ../fish/guestfish-actions.pod:4038 ../fish/guestfish-actions.pod:4084
7547 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4184
7548 #: ../fish/guestfish-actions.pod:4594 ../fish/guestfish-actions.pod:4612
7549 #: ../fish/guestfish-actions.pod:4629 ../fish/guestfish-actions.pod:4639
7550 #: ../fish/guestfish-actions.pod:4687 ../fish/guestfish-actions.pod:4697
7551 #: ../fish/guestfish-actions.pod:4726 ../fish/guestfish-actions.pod:4736
7552 msgid ""
7553 "Because of the message protocol, there is a transfer limit of somewhere "
7554 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7555 msgstr ""
7556
7557 # type: textblock
7558 #. type: textblock
7559 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3322
7560 #: ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:3401
7561 #: ../src/guestfs-actions.pod:3489 ../src/guestfs-actions.pod:3894
7562 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:5098
7563 #: ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:6824
7564 #: ../src/guestfs-actions.pod:6838
7565 msgid "(Added in 0.4)"
7566 msgstr ""
7567
7568 # type: =head2
7569 #. type: =head2
7570 #: ../src/guestfs-actions.pod:875
7571 msgid "guestfs_checksum"
7572 msgstr ""
7573
7574 # type: verbatim
7575 #. type: verbatim
7576 #: ../src/guestfs-actions.pod:877
7577 #, no-wrap
7578 msgid ""
7579 " char *\n"
7580 " guestfs_checksum (guestfs_h *g,\n"
7581 "                   const char *csumtype,\n"
7582 "                   const char *path);\n"
7583 "\n"
7584 msgstr ""
7585
7586 # type: textblock
7587 #. type: textblock
7588 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:587
7589 msgid ""
7590 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7591 msgstr ""
7592
7593 # type: textblock
7594 #. type: textblock
7595 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:590
7596 msgid ""
7597 "The type of checksum to compute is given by the C<csumtype> parameter which "
7598 "must have one of the following values:"
7599 msgstr ""
7600
7601 # type: =item
7602 #. type: =item
7603 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:595
7604 msgid "C<crc>"
7605 msgstr ""
7606
7607 # type: textblock
7608 #. type: textblock
7609 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
7610 msgid ""
7611 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7612 "C<cksum> command."
7613 msgstr ""
7614
7615 # type: =item
7616 #. type: =item
7617 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:600
7618 msgid "C<md5>"
7619 msgstr ""
7620
7621 # type: textblock
7622 #. type: textblock
7623 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
7624 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7625 msgstr ""
7626
7627 # type: =item
7628 #. type: =item
7629 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
7630 msgid "C<sha1>"
7631 msgstr ""
7632
7633 # type: textblock
7634 #. type: textblock
7635 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
7636 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7637 msgstr ""
7638
7639 # type: =item
7640 #. type: =item
7641 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
7642 msgid "C<sha224>"
7643 msgstr ""
7644
7645 # type: textblock
7646 #. type: textblock
7647 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
7648 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7649 msgstr ""
7650
7651 # type: =item
7652 #. type: =item
7653 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
7654 msgid "C<sha256>"
7655 msgstr ""
7656
7657 # type: textblock
7658 #. type: textblock
7659 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
7660 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7661 msgstr ""
7662
7663 # type: =item
7664 #. type: =item
7665 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
7666 msgid "C<sha384>"
7667 msgstr ""
7668
7669 # type: textblock
7670 #. type: textblock
7671 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
7672 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7673 msgstr ""
7674
7675 # type: =item
7676 #. type: =item
7677 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
7678 msgid "C<sha512>"
7679 msgstr ""
7680
7681 # type: textblock
7682 #. type: textblock
7683 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
7684 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7685 msgstr ""
7686
7687 # type: textblock
7688 #. type: textblock
7689 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:626
7690 msgid "The checksum is returned as a printable string."
7691 msgstr ""
7692
7693 # type: textblock
7694 #. type: textblock
7695 #: ../src/guestfs-actions.pod:923
7696 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7697 msgstr ""
7698
7699 # type: textblock
7700 #. type: textblock
7701 #: ../src/guestfs-actions.pod:925
7702 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7703 msgstr ""
7704
7705 # type: textblock
7706 #. type: textblock
7707 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
7708 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3066
7709 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156
7710 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:6521
7711 msgid "(Added in 1.0.2)"
7712 msgstr ""
7713
7714 # type: =head2
7715 #. type: =head2
7716 #: ../src/guestfs-actions.pod:932
7717 msgid "guestfs_checksum_device"
7718 msgstr ""
7719
7720 # type: verbatim
7721 #. type: verbatim
7722 #: ../src/guestfs-actions.pod:934
7723 #, no-wrap
7724 msgid ""
7725 " char *\n"
7726 " guestfs_checksum_device (guestfs_h *g,\n"
7727 "                          const char *csumtype,\n"
7728 "                          const char *device);\n"
7729 "\n"
7730 msgstr ""
7731
7732 # type: textblock
7733 #. type: textblock
7734 #: ../src/guestfs-actions.pod:939
7735 msgid ""
7736 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7737 "device named C<device>.  For the types of checksums supported see the "
7738 "C<guestfs_checksum> command."
7739 msgstr ""
7740
7741 # type: textblock
7742 #. type: textblock
7743 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4629
7744 #: ../src/guestfs-actions.pod:4688 ../src/guestfs-actions.pod:4725
7745 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4919
7746 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6444
7747 #: ../src/guestfs-actions.pod:6850
7748 msgid "(Added in 1.3.2)"
7749 msgstr ""
7750
7751 # type: =head2
7752 #. type: =head2
7753 #: ../src/guestfs-actions.pod:948
7754 msgid "guestfs_checksums_out"
7755 msgstr ""
7756
7757 # type: verbatim
7758 #. type: verbatim
7759 #: ../src/guestfs-actions.pod:950
7760 #, no-wrap
7761 msgid ""
7762 " int\n"
7763 " guestfs_checksums_out (guestfs_h *g,\n"
7764 "                        const char *csumtype,\n"
7765 "                        const char *directory,\n"
7766 "                        const char *sumsfile);\n"
7767 "\n"
7768 msgstr ""
7769
7770 # type: textblock
7771 #. type: textblock
7772 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:644
7773 msgid ""
7774 "This command computes the checksums of all regular files in C<directory> and "
7775 "then emits a list of those checksums to the local output file C<sumsfile>."
7776 msgstr ""
7777
7778 # type: textblock
7779 #. type: textblock
7780 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:648
7781 msgid ""
7782 "This can be used for verifying the integrity of a virtual machine.  However "
7783 "to be properly secure you should pay attention to the output of the checksum "
7784 "command (it uses the ones from GNU coreutils).  In particular when the "
7785 "filename is not printable, coreutils uses a special backslash syntax.  For "
7786 "more information, see the GNU coreutils info file."
7787 msgstr ""
7788
7789 # type: textblock
7790 #. type: textblock
7791 #: ../src/guestfs-actions.pod:970
7792 msgid "(Added in 1.3.7)"
7793 msgstr ""
7794
7795 # type: =head2
7796 #. type: =head2
7797 #: ../src/guestfs-actions.pod:972
7798 msgid "guestfs_chmod"
7799 msgstr ""
7800
7801 # type: verbatim
7802 #. type: verbatim
7803 #: ../src/guestfs-actions.pod:974
7804 #, no-wrap
7805 msgid ""
7806 " int\n"
7807 " guestfs_chmod (guestfs_h *g,\n"
7808 "                int mode,\n"
7809 "                const char *path);\n"
7810 "\n"
7811 msgstr ""
7812
7813 # type: textblock
7814 #. type: textblock
7815 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:662
7816 msgid ""
7817 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7818 "supported."
7819 msgstr ""
7820
7821 # type: textblock
7822 #. type: textblock
7823 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:665
7824 msgid ""
7825 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7826 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7827 "C<700>."
7828 msgstr ""
7829
7830 # type: textblock
7831 #. type: textblock
7832 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4145
7833 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4347
7834 #: ../src/guestfs-actions.pod:4366 ../fish/guestfish-actions.pod:669
7835 #: ../fish/guestfish-actions.pod:2791 ../fish/guestfish-actions.pod:2907
7836 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2927
7837 msgid "The mode actually set is affected by the umask."
7838 msgstr ""
7839
7840 # type: =head2
7841 #. type: =head2
7842 #: ../src/guestfs-actions.pod:992
7843 msgid "guestfs_chown"
7844 msgstr ""
7845
7846 # type: verbatim
7847 #. type: verbatim
7848 #: ../src/guestfs-actions.pod:994
7849 #, no-wrap
7850 msgid ""
7851 " int\n"
7852 " guestfs_chown (guestfs_h *g,\n"
7853 "                int owner,\n"
7854 "                int group,\n"
7855 "                const char *path);\n"
7856 "\n"
7857 msgstr ""
7858
7859 # type: textblock
7860 #. type: textblock
7861 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:675
7862 msgid "Change the file owner to C<owner> and group to C<group>."
7863 msgstr ""
7864
7865 # type: textblock
7866 #. type: textblock
7867 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3253
7868 #: ../fish/guestfish-actions.pod:677 ../fish/guestfish-actions.pod:2249
7869 msgid ""
7870 "Only numeric uid and gid are supported.  If you want to use names, you will "
7871 "need to locate and parse the password file yourself (Augeas support makes "
7872 "this relatively easy)."
7873 msgstr ""
7874
7875 # type: =head2
7876 #. type: =head2
7877 #: ../src/guestfs-actions.pod:1010
7878 msgid "guestfs_command"
7879 msgstr ""
7880
7881 # type: verbatim
7882 #. type: verbatim
7883 #: ../src/guestfs-actions.pod:1012
7884 #, no-wrap
7885 msgid ""
7886 " char *\n"
7887 " guestfs_command (guestfs_h *g,\n"
7888 "                  char *const *arguments);\n"
7889 "\n"
7890 msgstr ""
7891
7892 # type: textblock
7893 #. type: textblock
7894 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:685
7895 msgid ""
7896 "This call runs a command from the guest filesystem.  The filesystem must be "
7897 "mounted, and must contain a compatible operating system (ie. something "
7898 "Linux, with the same or compatible processor architecture)."
7899 msgstr ""
7900
7901 # type: textblock
7902 #. type: textblock
7903 #: ../src/guestfs-actions.pod:1021
7904 msgid ""
7905 "The single parameter is an argv-style list of arguments.  The first element "
7906 "is the name of the program to run.  Subsequent elements are parameters.  The "
7907 "list must be non-empty (ie. must contain a program name).  Note that the "
7908 "command runs directly, and is I<not> invoked via the shell (see "
7909 "C<guestfs_sh>)."
7910 msgstr ""
7911
7912 # type: textblock
7913 #. type: textblock
7914 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:697
7915 msgid "The return value is anything printed to I<stdout> by the command."
7916 msgstr ""
7917
7918 # type: textblock
7919 #. type: textblock
7920 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:700
7921 msgid ""
7922 "If the command returns a non-zero exit status, then this function returns an "
7923 "error message.  The error message string is the content of I<stderr> from "
7924 "the command."
7925 msgstr ""
7926
7927 # type: textblock
7928 #. type: textblock
7929 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:704
7930 msgid ""
7931 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7932 "bin>.  If you require a program from another location, you should provide "
7933 "the full path in the first parameter."
7934 msgstr ""
7935
7936 # type: textblock
7937 #. type: textblock
7938 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:709
7939 msgid ""
7940 "Shared libraries and data files required by the program must be available on "
7941 "filesystems which are mounted in the correct places.  It is the caller's "
7942 "responsibility to ensure all filesystems that are needed are mounted at the "
7943 "right locations."
7944 msgstr ""
7945
7946 # type: textblock
7947 #. type: textblock
7948 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
7949 #: ../src/guestfs-actions.pod:1535
7950 msgid "(Added in 0.9.1)"
7951 msgstr ""
7952
7953 # type: =head2
7954 #. type: =head2
7955 #: ../src/guestfs-actions.pod:1054
7956 msgid "guestfs_command_lines"
7957 msgstr ""
7958
7959 # type: verbatim
7960 #. type: verbatim
7961 #: ../src/guestfs-actions.pod:1056
7962 #, no-wrap
7963 msgid ""
7964 " char **\n"
7965 " guestfs_command_lines (guestfs_h *g,\n"
7966 "                        char *const *arguments);\n"
7967 "\n"
7968 msgstr ""
7969
7970 # type: textblock
7971 #. type: textblock
7972 #: ../src/guestfs-actions.pod:1060
7973 msgid ""
7974 "This is the same as C<guestfs_command>, but splits the result into a list of "
7975 "lines."
7976 msgstr ""
7977
7978 # type: textblock
7979 #. type: textblock
7980 #: ../src/guestfs-actions.pod:1063
7981 msgid "See also: C<guestfs_sh_lines>"
7982 msgstr ""
7983
7984 # type: =head2
7985 #. type: =head2
7986 #: ../src/guestfs-actions.pod:1074
7987 msgid "guestfs_config"
7988 msgstr ""
7989
7990 # type: verbatim
7991 #. type: verbatim
7992 #: ../src/guestfs-actions.pod:1076
7993 #, no-wrap
7994 msgid ""
7995 " int\n"
7996 " guestfs_config (guestfs_h *g,\n"
7997 "                 const char *qemuparam,\n"
7998 "                 const char *qemuvalue);\n"
7999 "\n"
8000 msgstr ""
8001
8002 # type: textblock
8003 #. type: textblock
8004 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:734
8005 msgid ""
8006 "This can be used to add arbitrary qemu command line parameters of the form "
8007 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8008 "setting some parameters which would interfere with parameters that we use."
8009 msgstr ""
8010
8011 # type: textblock
8012 #. type: textblock
8013 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:739
8014 msgid "The first character of C<param> string must be a C<-> (dash)."
8015 msgstr ""
8016
8017 # type: textblock
8018 #. type: textblock
8019 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
8020 msgid "C<value> can be NULL."
8021 msgstr ""
8022
8023 # type: =head2
8024 #. type: =head2
8025 #: ../src/guestfs-actions.pod:1094
8026 msgid "guestfs_copy_size"
8027 msgstr ""
8028
8029 # type: verbatim
8030 #. type: verbatim
8031 #: ../src/guestfs-actions.pod:1096
8032 #, no-wrap
8033 msgid ""
8034 " int\n"
8035 " guestfs_copy_size (guestfs_h *g,\n"
8036 "                    const char *src,\n"
8037 "                    const char *dest,\n"
8038 "                    int64_t size);\n"
8039 "\n"
8040 msgstr ""
8041
8042 # type: textblock
8043 #. type: textblock
8044 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:747
8045 msgid ""
8046 "This command copies exactly C<size> bytes from one source device or file "
8047 "C<src> to another destination device or file C<dest>."
8048 msgstr ""
8049
8050 # type: textblock
8051 #. type: textblock
8052 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:750
8053 msgid ""
8054 "Note this will fail if the source is too short or if the destination is not "
8055 "large enough."
8056 msgstr ""
8057
8058 # type: textblock
8059 #. type: textblock
8060 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
8061 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
8062 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6516
8063 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:7029
8064 #: ../src/guestfs-actions.pod:7048
8065 msgid ""
8066 "This long-running command can generate progress notification messages so "
8067 "that the caller can display a progress bar or indicator.  To receive these "
8068 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8069 "guestfs_set_progress_callback>."
8070 msgstr ""
8071
8072 # type: textblock
8073 #. type: textblock
8074 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3921
8075 #: ../src/guestfs-actions.pod:5125 ../src/guestfs-actions.pod:6757
8076 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6863
8077 msgid "(Added in 1.0.87)"
8078 msgstr ""
8079
8080 # type: =head2
8081 #. type: =head2
8082 #: ../src/guestfs-actions.pod:1117
8083 msgid "guestfs_cp"
8084 msgstr ""
8085
8086 # type: verbatim
8087 #. type: verbatim
8088 #: ../src/guestfs-actions.pod:1119
8089 #, no-wrap
8090 msgid ""
8091 " int\n"
8092 " guestfs_cp (guestfs_h *g,\n"
8093 "             const char *src,\n"
8094 "             const char *dest);\n"
8095 "\n"
8096 msgstr ""
8097
8098 # type: textblock
8099 #. type: textblock
8100 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:757
8101 msgid ""
8102 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8103 "destination filename or destination directory."
8104 msgstr ""
8105
8106 # type: textblock
8107 #. type: textblock
8108 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
8109 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
8110 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4592
8111 #: ../src/guestfs-actions.pod:4969
8112 msgid "(Added in 1.0.18)"
8113 msgstr ""
8114
8115 # type: =head2
8116 #. type: =head2
8117 #: ../src/guestfs-actions.pod:1131
8118 msgid "guestfs_cp_a"
8119 msgstr ""
8120
8121 # type: verbatim
8122 #. type: verbatim
8123 #: ../src/guestfs-actions.pod:1133
8124 #, no-wrap
8125 msgid ""
8126 " int\n"
8127 " guestfs_cp_a (guestfs_h *g,\n"
8128 "               const char *src,\n"
8129 "               const char *dest);\n"
8130 "\n"
8131 msgstr ""
8132
8133 # type: textblock
8134 #. type: textblock
8135 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:764
8136 msgid ""
8137 "This copies a file or directory from C<src> to C<dest> recursively using the "
8138 "C<cp -a> command."
8139 msgstr ""
8140
8141 # type: =head2
8142 #. type: =head2
8143 #: ../src/guestfs-actions.pod:1145
8144 msgid "guestfs_dd"
8145 msgstr ""
8146
8147 # type: verbatim
8148 #. type: verbatim
8149 #: ../src/guestfs-actions.pod:1147
8150 #, no-wrap
8151 msgid ""
8152 " int\n"
8153 " guestfs_dd (guestfs_h *g,\n"
8154 "             const char *src,\n"
8155 "             const char *dest);\n"
8156 "\n"
8157 msgstr ""
8158
8159 # type: textblock
8160 #. type: textblock
8161 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
8162 msgid ""
8163 "This command copies from one source device or file C<src> to another "
8164 "destination device or file C<dest>.  Normally you would use this to copy to "
8165 "or from a device or partition, for example to duplicate a filesystem."
8166 msgstr ""
8167
8168 # type: textblock
8169 #. type: textblock
8170 #: ../src/guestfs-actions.pod:1157
8171 msgid ""
8172 "If the destination is a device, it must be as large or larger than the "
8173 "source file or device, otherwise the copy will fail.  This command cannot do "
8174 "partial copies (see C<guestfs_copy_size>)."
8175 msgstr ""
8176
8177 # type: =head2
8178 #. type: =head2
8179 #: ../src/guestfs-actions.pod:1165
8180 msgid "guestfs_df"
8181 msgstr ""
8182
8183 # type: verbatim
8184 #. type: verbatim
8185 #: ../src/guestfs-actions.pod:1167
8186 #, no-wrap
8187 msgid ""
8188 " char *\n"
8189 " guestfs_df (guestfs_h *g);\n"
8190 "\n"
8191 msgstr ""
8192
8193 # type: textblock
8194 #. type: textblock
8195 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:784
8196 msgid "This command runs the C<df> command to report disk space used."
8197 msgstr ""
8198
8199 # type: textblock
8200 #. type: textblock
8201 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
8202 msgid ""
8203 "This command is mostly useful for interactive sessions.  It is I<not> "
8204 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8205 "from programs."
8206 msgstr ""
8207
8208 # type: textblock
8209 #. type: textblock
8210 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
8211 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2263
8212 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
8213 #: ../src/guestfs-actions.pod:4031 ../src/guestfs-actions.pod:4492
8214 #: ../src/guestfs-actions.pod:6254 ../src/guestfs-actions.pod:6278
8215 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909
8216 #: ../src/guestfs-actions.pod:6922
8217 msgid "(Added in 1.0.54)"
8218 msgstr ""
8219
8220 # type: =head2
8221 #. type: =head2
8222 #: ../src/guestfs-actions.pod:1181
8223 msgid "guestfs_df_h"
8224 msgstr ""
8225
8226 # type: verbatim
8227 #. type: verbatim
8228 #: ../src/guestfs-actions.pod:1183
8229 #, no-wrap
8230 msgid ""
8231 " char *\n"
8232 " guestfs_df_h (guestfs_h *g);\n"
8233 "\n"
8234 msgstr ""
8235
8236 # type: textblock
8237 #. type: textblock
8238 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:794
8239 msgid ""
8240 "This command runs the C<df -h> command to report disk space used in human-"
8241 "readable format."
8242 msgstr ""
8243
8244 # type: =head2
8245 #. type: =head2
8246 #: ../src/guestfs-actions.pod:1198
8247 msgid "guestfs_dmesg"
8248 msgstr ""
8249
8250 # type: verbatim
8251 #. type: verbatim
8252 #: ../src/guestfs-actions.pod:1200
8253 #, no-wrap
8254 msgid ""
8255 " char *\n"
8256 " guestfs_dmesg (guestfs_h *g);\n"
8257 "\n"
8258 msgstr ""
8259
8260 # type: textblock
8261 #. type: textblock
8262 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:805
8263 msgid ""
8264 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8265 "This is sometimes useful for extended debugging of problems."
8266 msgstr ""
8267
8268 # type: textblock
8269 #. type: textblock
8270 #: ../src/guestfs-actions.pod:1207
8271 msgid ""
8272 "Another way to get the same information is to enable verbose messages with "
8273 "C<guestfs_set_verbose> or by setting the environment variable "
8274 "C<LIBGUESTFS_DEBUG=1> before running the program."
8275 msgstr ""
8276
8277 # type: =head2
8278 #. type: =head2
8279 #: ../src/guestfs-actions.pod:1217
8280 msgid "guestfs_download"
8281 msgstr ""
8282
8283 # type: verbatim
8284 #. type: verbatim
8285 #: ../src/guestfs-actions.pod:1219
8286 #, no-wrap
8287 msgid ""
8288 " int\n"
8289 " guestfs_download (guestfs_h *g,\n"
8290 "                   const char *remotefilename,\n"
8291 "                   const char *filename);\n"
8292 "\n"
8293 msgstr ""
8294
8295 # type: textblock
8296 #. type: textblock
8297 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
8298 #: ../fish/guestfish-actions.pod:818 ../fish/guestfish-actions.pod:831
8299 msgid ""
8300 "Download file C<remotefilename> and save it as C<filename> on the local "
8301 "machine."
8302 msgstr ""
8303
8304 # type: textblock
8305 #. type: textblock
8306 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6510
8307 #: ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4342
8308 msgid "C<filename> can also be a named pipe."
8309 msgstr ""
8310
8311 # type: textblock
8312 #. type: textblock
8313 #: ../src/guestfs-actions.pod:1229
8314 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8315 msgstr ""
8316
8317 # type: =head2
8318 #. type: =head2
8319 #: ../src/guestfs-actions.pod:1240
8320 msgid "guestfs_download_offset"
8321 msgstr ""
8322
8323 # type: verbatim
8324 #. type: verbatim
8325 #: ../src/guestfs-actions.pod:1242
8326 #, no-wrap
8327 msgid ""
8328 " int\n"
8329 " guestfs_download_offset (guestfs_h *g,\n"
8330 "                          const char *remotefilename,\n"
8331 "                          const char *filename,\n"
8332 "                          int64_t offset,\n"
8333 "                          int64_t size);\n"
8334 "\n"
8335 msgstr ""
8336
8337 # type: textblock
8338 #. type: textblock
8339 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:834
8340 msgid ""
8341 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8342 "region must be within the file or device)."
8343 msgstr ""
8344
8345 # type: textblock
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:1255
8348 msgid ""
8349 "Note that there is no limit on the amount of data that can be downloaded "
8350 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8351 "full amount unless an error occurs."
8352 msgstr ""
8353
8354 # type: textblock
8355 #. type: textblock
8356 #: ../src/guestfs-actions.pod:1260
8357 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8358 msgstr ""
8359
8360 # type: textblock
8361 #. type: textblock
8362 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6555
8363 msgid "(Added in 1.5.17)"
8364 msgstr ""
8365
8366 # type: =head2
8367 #. type: =head2
8368 #: ../src/guestfs-actions.pod:1271
8369 msgid "guestfs_drop_caches"
8370 msgstr ""
8371
8372 # type: verbatim
8373 #. type: verbatim
8374 #: ../src/guestfs-actions.pod:1273
8375 #, no-wrap
8376 msgid ""
8377 " int\n"
8378 " guestfs_drop_caches (guestfs_h *g,\n"
8379 "                      int whattodrop);\n"
8380 "\n"
8381 msgstr ""
8382
8383 # type: textblock
8384 #. type: textblock
8385 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:850
8386 msgid ""
8387 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8388 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8389 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8390 msgstr ""
8391
8392 # type: textblock
8393 #. type: textblock
8394 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:855
8395 msgid "Setting C<whattodrop> to 3 should drop everything."
8396 msgstr ""
8397
8398 # type: textblock
8399 #. type: textblock
8400 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
8401 msgid ""
8402 "This automatically calls L<sync(2)> before the operation, so that the "
8403 "maximum guest memory is freed."
8404 msgstr ""
8405
8406 # type: =head2
8407 #. type: =head2
8408 #: ../src/guestfs-actions.pod:1291
8409 msgid "guestfs_du"
8410 msgstr ""
8411
8412 # type: verbatim
8413 #. type: verbatim
8414 #: ../src/guestfs-actions.pod:1293
8415 #, no-wrap
8416 msgid ""
8417 " int64_t\n"
8418 " guestfs_du (guestfs_h *g,\n"
8419 "             const char *path);\n"
8420 "\n"
8421 msgstr ""
8422
8423 # type: textblock
8424 #. type: textblock
8425 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:864
8426 msgid ""
8427 "This command runs the C<du -s> command to estimate file space usage for "
8428 "C<path>."
8429 msgstr ""
8430
8431 # type: textblock
8432 #. type: textblock
8433 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:867
8434 msgid ""
8435 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8436 "estimate includes the contents of the directory and all subdirectories "
8437 "(recursively)."
8438 msgstr ""
8439
8440 # type: textblock
8441 #. type: textblock
8442 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:871
8443 msgid ""
8444 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8445 msgstr ""
8446
8447 # type: =head2
8448 #. type: =head2
8449 #: ../src/guestfs-actions.pod:1311
8450 msgid "guestfs_e2fsck_f"
8451 msgstr ""
8452
8453 # type: verbatim
8454 #. type: verbatim
8455 #: ../src/guestfs-actions.pod:1313
8456 #, no-wrap
8457 msgid ""
8458 " int\n"
8459 " guestfs_e2fsck_f (guestfs_h *g,\n"
8460 "                   const char *device);\n"
8461 "\n"
8462 msgstr ""
8463
8464 # type: textblock
8465 #. type: textblock
8466 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:878
8467 msgid ""
8468 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8469 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
8470 "clean (C<-f>)."
8471 msgstr ""
8472
8473 # type: textblock
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1321
8476 msgid ""
8477 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8478 "Normally you should use C<guestfs_fsck>."
8479 msgstr ""
8480
8481 # type: textblock
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:1326
8484 msgid "(Added in 1.0.29)"
8485 msgstr ""
8486
8487 # type: =head2
8488 #. type: =head2
8489 #: ../src/guestfs-actions.pod:1328
8490 msgid "guestfs_echo_daemon"
8491 msgstr ""
8492
8493 # type: verbatim
8494 #. type: verbatim
8495 #: ../src/guestfs-actions.pod:1330
8496 #, no-wrap
8497 msgid ""
8498 " char *\n"
8499 " guestfs_echo_daemon (guestfs_h *g,\n"
8500 "                      char *const *words);\n"
8501 "\n"
8502 msgstr ""
8503
8504 # type: textblock
8505 #. type: textblock
8506 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:889
8507 msgid ""
8508 "This command concatenates the list of C<words> passed with single spaces "
8509 "between them and returns the resulting string."
8510 msgstr ""
8511
8512 # type: textblock
8513 #. type: textblock
8514 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:892
8515 msgid "You can use this command to test the connection through to the daemon."
8516 msgstr ""
8517
8518 # type: textblock
8519 #. type: textblock
8520 #: ../src/guestfs-actions.pod:1339
8521 msgid "See also C<guestfs_ping_daemon>."
8522 msgstr ""
8523
8524 # type: textblock
8525 #. type: textblock
8526 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
8527 #: ../src/guestfs-actions.pod:5758
8528 msgid "(Added in 1.0.69)"
8529 msgstr ""
8530
8531 # type: =head2
8532 #. type: =head2
8533 #: ../src/guestfs-actions.pod:1346
8534 msgid "guestfs_egrep"
8535 msgstr ""
8536
8537 # type: verbatim
8538 #. type: verbatim
8539 #: ../src/guestfs-actions.pod:1348
8540 #, no-wrap
8541 msgid ""
8542 " char **\n"
8543 " guestfs_egrep (guestfs_h *g,\n"
8544 "                const char *regex,\n"
8545 "                const char *path);\n"
8546 "\n"
8547 msgstr ""
8548
8549 # type: textblock
8550 #. type: textblock
8551 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:900
8552 msgid ""
8553 "This calls the external C<egrep> program and returns the matching lines."
8554 msgstr ""
8555
8556 # type: textblock
8557 #. type: textblock
8558 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
8559 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
8560 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2201
8561 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
8562 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
8563 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
8564 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3414
8565 #: ../src/guestfs-actions.pod:3428 ../src/guestfs-actions.pod:3441
8566 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:4427
8567 #: ../src/guestfs-actions.pod:5303 ../src/guestfs-actions.pod:5352
8568 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6134
8569 #: ../src/guestfs-actions.pod:6147 ../src/guestfs-actions.pod:6160
8570 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6195
8571 #: ../src/guestfs-actions.pod:6208 ../src/guestfs-actions.pod:6221
8572 #: ../src/guestfs-actions.pod:6992 ../src/guestfs-actions.pod:7011
8573 #: ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7115
8574 #: ../src/guestfs-actions.pod:7161 ../src/guestfs-actions.pod:7180
8575 msgid "(Added in 1.0.66)"
8576 msgstr ""
8577
8578 # type: =head2
8579 #. type: =head2
8580 #: ../src/guestfs-actions.pod:1365
8581 msgid "guestfs_egrepi"
8582 msgstr ""
8583
8584 # type: verbatim
8585 #. type: verbatim
8586 #: ../src/guestfs-actions.pod:1367
8587 #, no-wrap
8588 msgid ""
8589 " char **\n"
8590 " guestfs_egrepi (guestfs_h *g,\n"
8591 "                 const char *regex,\n"
8592 "                 const char *path);\n"
8593 "\n"
8594 msgstr ""
8595
8596 # type: textblock
8597 #. type: textblock
8598 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:910
8599 msgid ""
8600 "This calls the external C<egrep -i> program and returns the matching lines."
8601 msgstr ""
8602
8603 # type: =head2
8604 #. type: =head2
8605 #: ../src/guestfs-actions.pod:1384
8606 msgid "guestfs_equal"
8607 msgstr ""
8608
8609 # type: verbatim
8610 #. type: verbatim
8611 #: ../src/guestfs-actions.pod:1386
8612 #, no-wrap
8613 msgid ""
8614 " int\n"
8615 " guestfs_equal (guestfs_h *g,\n"
8616 "                const char *file1,\n"
8617 "                const char *file2);\n"
8618 "\n"
8619 msgstr ""
8620
8621 # type: textblock
8622 #. type: textblock
8623 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:920
8624 msgid ""
8625 "This compares the two files C<file1> and C<file2> and returns true if their "
8626 "content is exactly equal, or false otherwise."
8627 msgstr ""
8628
8629 # type: textblock
8630 #. type: textblock
8631 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:923
8632 msgid "The external L<cmp(1)> program is used for the comparison."
8633 msgstr ""
8634
8635 # type: =head2
8636 #. type: =head2
8637 #: ../src/guestfs-actions.pod:1400
8638 msgid "guestfs_exists"
8639 msgstr ""
8640
8641 # type: verbatim
8642 #. type: verbatim
8643 #: ../src/guestfs-actions.pod:1402
8644 #, no-wrap
8645 msgid ""
8646 " int\n"
8647 " guestfs_exists (guestfs_h *g,\n"
8648 "                 const char *path);\n"
8649 "\n"
8650 msgstr ""
8651
8652 # type: textblock
8653 #. type: textblock
8654 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:929
8655 msgid ""
8656 "This returns C<true> if and only if there is a file, directory (or anything) "
8657 "with the given C<path> name."
8658 msgstr ""
8659
8660 # type: textblock
8661 #. type: textblock
8662 #: ../src/guestfs-actions.pod:1409
8663 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8664 msgstr ""
8665
8666 # type: =head2
8667 #. type: =head2
8668 #: ../src/guestfs-actions.pod:1415
8669 msgid "guestfs_fallocate"
8670 msgstr ""
8671
8672 # type: verbatim
8673 #. type: verbatim
8674 #: ../src/guestfs-actions.pod:1417
8675 #, no-wrap
8676 msgid ""
8677 " int\n"
8678 " guestfs_fallocate (guestfs_h *g,\n"
8679 "                    const char *path,\n"
8680 "                    int len);\n"
8681 "\n"
8682 msgstr ""
8683
8684 # type: textblock
8685 #. type: textblock
8686 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
8687 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:957
8688 msgid ""
8689 "This command preallocates a file (containing zero bytes) named C<path> of "
8690 "size C<len> bytes.  If the file exists already, it is overwritten."
8691 msgstr ""
8692
8693 # type: textblock
8694 #. type: textblock
8695 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:942
8696 msgid ""
8697 "Do not confuse this with the guestfish-specific C<alloc> command which "
8698 "allocates a file in the host and attaches it as a device."
8699 msgstr ""
8700
8701 # type: textblock
8702 #. type: textblock
8703 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:946
8704 msgid ""
8705 "This function is deprecated.  In new code, use the C<fallocate64> call "
8706 "instead."
8707 msgstr ""
8708
8709 # type: =head2
8710 #. type: =head2
8711 #: ../src/guestfs-actions.pod:1441
8712 msgid "guestfs_fallocate64"
8713 msgstr ""
8714
8715 # type: verbatim
8716 #. type: verbatim
8717 #: ../src/guestfs-actions.pod:1443
8718 #, no-wrap
8719 msgid ""
8720 " int\n"
8721 " guestfs_fallocate64 (guestfs_h *g,\n"
8722 "                      const char *path,\n"
8723 "                      int64_t len);\n"
8724 "\n"
8725 msgstr ""
8726
8727 # type: textblock
8728 #. type: textblock
8729 #: ../src/guestfs-actions.pod:1452
8730 msgid ""
8731 "Note that this call allocates disk blocks for the file.  To create a sparse "
8732 "file use C<guestfs_truncate_size> instead."
8733 msgstr ""
8734
8735 # type: textblock
8736 #. type: textblock
8737 #: ../src/guestfs-actions.pod:1455
8738 msgid ""
8739 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8740 "oversight it only allowed 30 bit lengths to be specified, effectively "
8741 "limiting the maximum size of files created through that call to 1GB."
8742 msgstr ""
8743
8744 # type: textblock
8745 #. type: textblock
8746 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:969
8747 msgid ""
8748 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8749 "commands which create a file in the host and attach it as a device."
8750 msgstr ""
8751
8752 # type: textblock
8753 #. type: textblock
8754 #: ../src/guestfs-actions.pod:1466
8755 msgid "(Added in 1.3.17)"
8756 msgstr ""
8757
8758 # type: =head2
8759 #. type: =head2
8760 #: ../src/guestfs-actions.pod:1468
8761 msgid "guestfs_fgrep"
8762 msgstr ""
8763
8764 # type: verbatim
8765 #. type: verbatim
8766 #: ../src/guestfs-actions.pod:1470
8767 #, no-wrap
8768 msgid ""
8769 " char **\n"
8770 " guestfs_fgrep (guestfs_h *g,\n"
8771 "                const char *pattern,\n"
8772 "                const char *path);\n"
8773 "\n"
8774 msgstr ""
8775
8776 # type: textblock
8777 #. type: textblock
8778 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:977
8779 msgid ""
8780 "This calls the external C<fgrep> program and returns the matching lines."
8781 msgstr ""
8782
8783 # type: =head2
8784 #. type: =head2
8785 #: ../src/guestfs-actions.pod:1487
8786 msgid "guestfs_fgrepi"
8787 msgstr ""
8788
8789 # type: verbatim
8790 #. type: verbatim
8791 #: ../src/guestfs-actions.pod:1489
8792 #, no-wrap
8793 msgid ""
8794 " char **\n"
8795 " guestfs_fgrepi (guestfs_h *g,\n"
8796 "                 const char *pattern,\n"
8797 "                 const char *path);\n"
8798 "\n"
8799 msgstr ""
8800
8801 # type: textblock
8802 #. type: textblock
8803 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:987
8804 msgid ""
8805 "This calls the external C<fgrep -i> program and returns the matching lines."
8806 msgstr ""
8807
8808 # type: =head2
8809 #. type: =head2
8810 #: ../src/guestfs-actions.pod:1506
8811 msgid "guestfs_file"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #. type: verbatim
8816 #: ../src/guestfs-actions.pod:1508
8817 #, no-wrap
8818 msgid ""
8819 " char *\n"
8820 " guestfs_file (guestfs_h *g,\n"
8821 "               const char *path);\n"
8822 "\n"
8823 msgstr ""
8824
8825 # type: textblock
8826 #. type: textblock
8827 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:997
8828 msgid ""
8829 "This call uses the standard L<file(1)> command to determine the type or "
8830 "contents of the file."
8831 msgstr ""
8832
8833 # type: textblock
8834 #. type: textblock
8835 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1000
8836 msgid ""
8837 "This call will also transparently look inside various types of compressed "
8838 "file."
8839 msgstr ""
8840
8841 # type: textblock
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1003
8844 msgid ""
8845 "The exact command which runs is C<file -zb path>.  Note in particular that "
8846 "the filename is not prepended to the output (the C<-b> option)."
8847 msgstr ""
8848
8849 # type: textblock
8850 #. type: textblock
8851 #: ../src/guestfs-actions.pod:1522
8852 msgid ""
8853 "This command can also be used on C</dev/> devices (and partitions, LV "
8854 "names).  You can for example use this to determine if a device contains a "
8855 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8856 msgstr ""
8857
8858 # type: textblock
8859 #. type: textblock
8860 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1012
8861 msgid ""
8862 "If the C<path> does not begin with C</dev/> then this command only works for "
8863 "the content of regular files.  For other file types (directory, symbolic "
8864 "link etc) it will just return the string C<directory> etc."
8865 msgstr ""
8866
8867 # type: =head2
8868 #. type: =head2
8869 #: ../src/guestfs-actions.pod:1537
8870 msgid "guestfs_file_architecture"
8871 msgstr ""
8872
8873 # type: verbatim
8874 #. type: verbatim
8875 #: ../src/guestfs-actions.pod:1539
8876 #, no-wrap
8877 msgid ""
8878 " char *\n"
8879 " guestfs_file_architecture (guestfs_h *g,\n"
8880 "                            const char *filename);\n"
8881 "\n"
8882 msgstr ""
8883
8884 # type: textblock
8885 #. type: textblock
8886 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1021
8887 msgid ""
8888 "This detects the architecture of the binary C<filename>, and returns it if "
8889 "known."
8890 msgstr ""
8891
8892 # type: textblock
8893 #. type: textblock
8894 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8895 msgid "Currently defined architectures are:"
8896 msgstr ""
8897
8898 # type: =item
8899 #. type: =item
8900 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1028
8901 msgid "\"i386\""
8902 msgstr ""
8903
8904 # type: textblock
8905 #. type: textblock
8906 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
8907 msgid ""
8908 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8909 "irrespective of the precise processor requirements of the binary."
8910 msgstr ""
8911
8912 # type: =item
8913 #. type: =item
8914 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1033
8915 msgid "\"x86_64\""
8916 msgstr ""
8917
8918 # type: textblock
8919 #. type: textblock
8920 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
8921 msgid "64 bit x86-64."
8922 msgstr ""
8923
8924 # type: =item
8925 #. type: =item
8926 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
8927 msgid "\"sparc\""
8928 msgstr ""
8929
8930 # type: textblock
8931 #. type: textblock
8932 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
8933 msgid "32 bit SPARC."
8934 msgstr ""
8935
8936 # type: =item
8937 #. type: =item
8938 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
8939 msgid "\"sparc64\""
8940 msgstr ""
8941
8942 # type: textblock
8943 #. type: textblock
8944 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
8945 msgid "64 bit SPARC V9 and above."
8946 msgstr ""
8947
8948 # type: =item
8949 #. type: =item
8950 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
8951 msgid "\"ia64\""
8952 msgstr ""
8953
8954 # type: textblock
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
8957 msgid "Intel Itanium."
8958 msgstr ""
8959
8960 # type: =item
8961 #. type: =item
8962 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
8963 msgid "\"ppc\""
8964 msgstr ""
8965
8966 # type: textblock
8967 #. type: textblock
8968 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
8969 msgid "32 bit Power PC."
8970 msgstr ""
8971
8972 # type: =item
8973 #. type: =item
8974 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
8975 msgid "\"ppc64\""
8976 msgstr ""
8977
8978 # type: textblock
8979 #. type: textblock
8980 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
8981 msgid "64 bit Power PC."
8982 msgstr ""
8983
8984 # type: textblock
8985 #. type: textblock
8986 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1059
8987 msgid "Libguestfs may return other architecture strings in future."
8988 msgstr ""
8989
8990 # type: textblock
8991 #. type: textblock
8992 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
8993 msgid "The function works on at least the following types of files:"
8994 msgstr ""
8995
8996 # type: textblock
8997 #. type: textblock
8998 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1067
8999 msgid "many types of Un*x and Linux binary"
9000 msgstr ""
9001
9002 # type: textblock
9003 #. type: textblock
9004 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1071
9005 msgid "many types of Un*x and Linux shared library"
9006 msgstr ""
9007
9008 # type: textblock
9009 #. type: textblock
9010 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1075
9011 msgid "Windows Win32 and Win64 binaries"
9012 msgstr ""
9013
9014 # type: textblock
9015 #. type: textblock
9016 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1079
9017 msgid "Windows Win32 and Win64 DLLs"
9018 msgstr ""
9019
9020 # type: textblock
9021 #. type: textblock
9022 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
9023 msgid "Win32 binaries and DLLs return C<i386>."
9024 msgstr ""
9025
9026 # type: textblock
9027 #. type: textblock
9028 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
9029 msgid "Win64 binaries and DLLs return C<x86_64>."
9030 msgstr ""
9031
9032 # type: textblock
9033 #. type: textblock
9034 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1087
9035 msgid "Linux kernel modules"
9036 msgstr ""
9037
9038 # type: textblock
9039 #. type: textblock
9040 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1091
9041 msgid "Linux new-style initrd images"
9042 msgstr ""
9043
9044 # type: textblock
9045 #. type: textblock
9046 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1095
9047 msgid "some non-x86 Linux vmlinuz kernels"
9048 msgstr ""
9049
9050 # type: textblock
9051 #. type: textblock
9052 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1099
9053 msgid "What it can't do currently:"
9054 msgstr ""
9055
9056 # type: textblock
9057 #. type: textblock
9058 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1105
9059 msgid "static libraries (libfoo.a)"
9060 msgstr ""
9061
9062 # type: textblock
9063 #. type: textblock
9064 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1109
9065 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9066 msgstr ""
9067
9068 # type: textblock
9069 #. type: textblock
9070 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1113
9071 msgid "x86 Linux vmlinuz kernels"
9072 msgstr ""
9073
9074 # type: textblock
9075 #. type: textblock
9076 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
9077 msgid ""
9078 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9079 "compressed code, and are horribly hard to unpack.  If you want to find the "
9080 "architecture of a kernel, use the architecture of the associated initrd or "
9081 "kernel module(s) instead."
9082 msgstr ""
9083
9084 # type: textblock
9085 #. type: textblock
9086 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
9087 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2508
9088 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
9089 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685
9090 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2802
9091 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3037
9092 #: ../src/guestfs-actions.pod:3169
9093 msgid "(Added in 1.5.3)"
9094 msgstr ""
9095
9096 # type: =head2
9097 #. type: =head2
9098 #: ../src/guestfs-actions.pod:1649
9099 msgid "guestfs_filesize"
9100 msgstr ""
9101
9102 # type: verbatim
9103 #. type: verbatim
9104 #: ../src/guestfs-actions.pod:1651
9105 #, no-wrap
9106 msgid ""
9107 " int64_t\n"
9108 " guestfs_filesize (guestfs_h *g,\n"
9109 "                   const char *file);\n"
9110 "\n"
9111 msgstr ""
9112
9113 # type: textblock
9114 #. type: textblock
9115 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1126
9116 msgid "This command returns the size of C<file> in bytes."
9117 msgstr ""
9118
9119 # type: textblock
9120 #. type: textblock
9121 #: ../src/guestfs-actions.pod:1657
9122 msgid ""
9123 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9124 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9125 "devices, use C<guestfs_blockdev_getsize64>."
9126 msgstr ""
9127
9128 # type: textblock
9129 #. type: textblock
9130 #: ../src/guestfs-actions.pod:1663
9131 msgid "(Added in 1.0.82)"
9132 msgstr ""
9133
9134 # type: =head2
9135 #. type: =head2
9136 #: ../src/guestfs-actions.pod:1665
9137 msgid "guestfs_fill"
9138 msgstr ""
9139
9140 # type: verbatim
9141 #. type: verbatim
9142 #: ../src/guestfs-actions.pod:1667
9143 #, no-wrap
9144 msgid ""
9145 " int\n"
9146 " guestfs_fill (guestfs_h *g,\n"
9147 "               int c,\n"
9148 "               int len,\n"
9149 "               const char *path);\n"
9150 "\n"
9151 msgstr ""
9152
9153 # type: textblock
9154 #. type: textblock
9155 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1136
9156 msgid ""
9157 "This command creates a new file called C<path>.  The initial content of the "
9158 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9159 "[0..255]>."
9160 msgstr ""
9161
9162 # type: textblock
9163 #. type: textblock
9164 #: ../src/guestfs-actions.pod:1677
9165 msgid ""
9166 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9167 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9168 "bytes use C<guestfs_fill_pattern>."
9169 msgstr ""
9170
9171 # type: textblock
9172 #. type: textblock
9173 #: ../src/guestfs-actions.pod:1689
9174 msgid "(Added in 1.0.79)"
9175 msgstr ""
9176
9177 # type: =head2
9178 #. type: =head2
9179 #: ../src/guestfs-actions.pod:1691
9180 msgid "guestfs_fill_pattern"
9181 msgstr ""
9182
9183 # type: verbatim
9184 #. type: verbatim
9185 #: ../src/guestfs-actions.pod:1693
9186 #, no-wrap
9187 msgid ""
9188 " int\n"
9189 " guestfs_fill_pattern (guestfs_h *g,\n"
9190 "                       const char *pattern,\n"
9191 "                       int len,\n"
9192 "                       const char *path);\n"
9193 "\n"
9194 msgstr ""
9195
9196 # type: textblock
9197 #. type: textblock
9198 #: ../src/guestfs-actions.pod:1699
9199 msgid ""
9200 "This function is like C<guestfs_fill> except that it creates a new file of "
9201 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9202 "pattern is truncated if necessary to ensure the length of the file is "
9203 "exactly C<len> bytes."
9204 msgstr ""
9205
9206 # type: textblock
9207 #. type: textblock
9208 #: ../src/guestfs-actions.pod:1711
9209 msgid "(Added in 1.3.12)"
9210 msgstr ""
9211
9212 # type: =head2
9213 #. type: =head2
9214 #: ../src/guestfs-actions.pod:1713
9215 msgid "guestfs_find"
9216 msgstr ""
9217
9218 # type: verbatim
9219 #. type: verbatim
9220 #: ../src/guestfs-actions.pod:1715
9221 #, no-wrap
9222 msgid ""
9223 " char **\n"
9224 " guestfs_find (guestfs_h *g,\n"
9225 "               const char *directory);\n"
9226 "\n"
9227 msgstr ""
9228
9229 # type: textblock
9230 #. type: textblock
9231 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1158
9232 msgid ""
9233 "This command lists out all files and directories, recursively, starting at "
9234 "C<directory>.  It is essentially equivalent to running the shell command "
9235 "C<find directory -print> but some post-processing happens on the output, "
9236 "described below."
9237 msgstr ""
9238
9239 # type: textblock
9240 #. type: textblock
9241 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1163
9242 msgid ""
9243 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9244 "structure was:"
9245 msgstr ""
9246
9247 # type: verbatim
9248 #. type: verbatim
9249 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1166
9250 #, no-wrap
9251 msgid ""
9252 " /tmp/a\n"
9253 " /tmp/b\n"
9254 " /tmp/c/d\n"
9255 "\n"
9256 msgstr ""
9257
9258 # type: textblock
9259 #. type: textblock
9260 #: ../src/guestfs-actions.pod:1731
9261 msgid ""
9262 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9263 msgstr ""
9264
9265 # type: verbatim
9266 #. type: verbatim
9267 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1173
9268 #, no-wrap
9269 msgid ""
9270 " a\n"
9271 " b\n"
9272 " c\n"
9273 " c/d\n"
9274 "\n"
9275 msgstr ""
9276
9277 # type: textblock
9278 #. type: textblock
9279 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1178
9280 msgid "If C<directory> is not a directory, then this command returns an error."
9281 msgstr ""
9282
9283 # type: textblock
9284 #. type: textblock
9285 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1181
9286 msgid "The returned list is sorted."
9287 msgstr ""
9288
9289 # type: textblock
9290 #. type: textblock
9291 #: ../src/guestfs-actions.pod:1744
9292 msgid "See also C<guestfs_find0>."
9293 msgstr ""
9294
9295 # type: textblock
9296 #. type: textblock
9297 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3858
9298 #: ../src/guestfs-actions.pod:5387
9299 msgid "(Added in 1.0.27)"
9300 msgstr ""
9301
9302 # type: =head2
9303 #. type: =head2
9304 #: ../src/guestfs-actions.pod:1755
9305 msgid "guestfs_find0"
9306 msgstr ""
9307
9308 # type: verbatim
9309 #. type: verbatim
9310 #: ../src/guestfs-actions.pod:1757
9311 #, no-wrap
9312 msgid ""
9313 " int\n"
9314 " guestfs_find0 (guestfs_h *g,\n"
9315 "                const char *directory,\n"
9316 "                const char *files);\n"
9317 "\n"
9318 msgstr ""
9319
9320 # type: textblock
9321 #. type: textblock
9322 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1192
9323 msgid ""
9324 "This command lists out all files and directories, recursively, starting at "
9325 "C<directory>, placing the resulting list in the external file called "
9326 "C<files>."
9327 msgstr ""
9328
9329 # type: textblock
9330 #. type: textblock
9331 #: ../src/guestfs-actions.pod:1766
9332 msgid ""
9333 "This command works the same way as C<guestfs_find> with the following "
9334 "exceptions:"
9335 msgstr ""
9336
9337 # type: textblock
9338 #. type: textblock
9339 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1203
9340 msgid "The resulting list is written to an external file."
9341 msgstr ""
9342
9343 # type: textblock
9344 #. type: textblock
9345 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1207
9346 msgid ""
9347 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9348 "L<find(1)> option I<-print0>."
9349 msgstr ""
9350
9351 # type: textblock
9352 #. type: textblock
9353 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1212
9354 msgid "This command is not limited in the number of names that it can return."
9355 msgstr ""
9356
9357 # type: textblock
9358 #. type: textblock
9359 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1217
9360 msgid "The result list is not sorted."
9361 msgstr ""
9362
9363 # type: textblock
9364 #. type: textblock
9365 #: ../src/guestfs-actions.pod:1793
9366 msgid "(Added in 1.0.74)"
9367 msgstr ""
9368
9369 # type: =head2
9370 #. type: =head2
9371 #: ../src/guestfs-actions.pod:1795
9372 msgid "guestfs_findfs_label"
9373 msgstr ""
9374
9375 # type: verbatim
9376 #. type: verbatim
9377 #: ../src/guestfs-actions.pod:1797
9378 #, no-wrap
9379 msgid ""
9380 " char *\n"
9381 " guestfs_findfs_label (guestfs_h *g,\n"
9382 "                       const char *label);\n"
9383 "\n"
9384 msgstr ""
9385
9386 # type: textblock
9387 #. type: textblock
9388 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1227
9389 msgid ""
9390 "This command searches the filesystems and returns the one which has the "
9391 "given label.  An error is returned if no such filesystem can be found."
9392 msgstr ""
9393
9394 # type: textblock
9395 #. type: textblock
9396 #: ../src/guestfs-actions.pod:1805
9397 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9398 msgstr ""
9399
9400 # type: =head2
9401 #. type: =head2
9402 #: ../src/guestfs-actions.pod:1812
9403 msgid "guestfs_findfs_uuid"
9404 msgstr ""
9405
9406 # type: verbatim
9407 #. type: verbatim
9408 #: ../src/guestfs-actions.pod:1814
9409 #, no-wrap
9410 msgid ""
9411 " char *\n"
9412 " guestfs_findfs_uuid (guestfs_h *g,\n"
9413 "                      const char *uuid);\n"
9414 "\n"
9415 msgstr ""
9416
9417 # type: textblock
9418 #. type: textblock
9419 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1237
9420 msgid ""
9421 "This command searches the filesystems and returns the one which has the "
9422 "given UUID.  An error is returned if no such filesystem can be found."
9423 msgstr ""
9424
9425 # type: textblock
9426 #. type: textblock
9427 #: ../src/guestfs-actions.pod:1822
9428 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9429 msgstr ""
9430
9431 # type: =head2
9432 #. type: =head2
9433 #: ../src/guestfs-actions.pod:1829
9434 msgid "guestfs_fsck"
9435 msgstr ""
9436
9437 # type: verbatim
9438 #. type: verbatim
9439 #: ../src/guestfs-actions.pod:1831
9440 #, no-wrap
9441 msgid ""
9442 " int\n"
9443 " guestfs_fsck (guestfs_h *g,\n"
9444 "               const char *fstype,\n"
9445 "               const char *device);\n"
9446 "\n"
9447 msgstr ""
9448
9449 # type: textblock
9450 #. type: textblock
9451 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1247
9452 msgid ""
9453 "This runs the filesystem checker (fsck) on C<device> which should have "
9454 "filesystem type C<fstype>."
9455 msgstr ""
9456
9457 # type: textblock
9458 #. type: textblock
9459 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1250
9460 msgid ""
9461 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9462 "codes from C<fsck>."
9463 msgstr ""
9464
9465 # type: textblock
9466 #. type: textblock
9467 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1259
9468 msgid "Multiple status codes can be summed together."
9469 msgstr ""
9470
9471 # type: textblock
9472 #. type: textblock
9473 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1263
9474 msgid ""
9475 "A non-zero return code can mean \"success\", for example if errors have been "
9476 "corrected on the filesystem."
9477 msgstr ""
9478
9479 # type: textblock
9480 #. type: textblock
9481 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1268
9482 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9483 msgstr ""
9484
9485 # type: textblock
9486 #. type: textblock
9487 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1273
9488 msgid ""
9489 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9490 msgstr ""
9491
9492 # type: textblock
9493 #. type: textblock
9494 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:7034
9495 msgid "(Added in 1.0.16)"
9496 msgstr ""
9497
9498 # type: =head2
9499 #. type: =head2
9500 #: ../src/guestfs-actions.pod:1868
9501 msgid "guestfs_get_append"
9502 msgstr ""
9503
9504 # type: verbatim
9505 #. type: verbatim
9506 #: ../src/guestfs-actions.pod:1870
9507 #, no-wrap
9508 msgid ""
9509 " const char *\n"
9510 " guestfs_get_append (guestfs_h *g);\n"
9511 "\n"
9512 msgstr ""
9513
9514 # type: textblock
9515 #. type: textblock
9516 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1279
9517 msgid ""
9518 "Return the additional kernel options which are added to the guest kernel "
9519 "command line."
9520 msgstr ""
9521
9522 # type: textblock
9523 #. type: textblock
9524 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1282
9525 msgid "If C<NULL> then no options are added."
9526 msgstr ""
9527
9528 # type: textblock
9529 #. type: textblock
9530 #: ../src/guestfs-actions.pod:1878
9531 msgid ""
9532 "This function returns a string which may be NULL.  There is no way to return "
9533 "an error from this function.  The string is owned by the guest handle and "
9534 "must I<not> be freed."
9535 msgstr ""
9536
9537 # type: textblock
9538 #. type: textblock
9539 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:5065
9540 #: ../src/guestfs-actions.pod:5528 ../src/guestfs-actions.pod:5896
9541 #: ../src/guestfs-actions.pod:5915 ../src/guestfs-actions.pod:5931
9542 #: ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:6705
9543 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:7077
9544 msgid "(Added in 1.0.26)"
9545 msgstr ""
9546
9547 # type: =head2
9548 #. type: =head2
9549 #: ../src/guestfs-actions.pod:1884
9550 msgid "guestfs_get_autosync"
9551 msgstr ""
9552
9553 # type: verbatim
9554 #. type: verbatim
9555 #: ../src/guestfs-actions.pod:1886
9556 #, no-wrap
9557 msgid ""
9558 " int\n"
9559 " guestfs_get_autosync (guestfs_h *g);\n"
9560 "\n"
9561 msgstr ""
9562
9563 # type: textblock
9564 #. type: textblock
9565 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9566 msgid "Get the autosync flag."
9567 msgstr ""
9568
9569 # type: =head2
9570 #. type: =head2
9571 #: ../src/guestfs-actions.pod:1895
9572 msgid "guestfs_get_direct"
9573 msgstr ""
9574
9575 # type: verbatim
9576 #. type: verbatim
9577 #: ../src/guestfs-actions.pod:1897
9578 #, no-wrap
9579 msgid ""
9580 " int\n"
9581 " guestfs_get_direct (guestfs_h *g);\n"
9582 "\n"
9583 msgstr ""
9584
9585 # type: textblock
9586 #. type: textblock
9587 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1294
9588 msgid "Return the direct appliance mode flag."
9589 msgstr ""
9590
9591 # type: textblock
9592 #. type: textblock
9593 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5569
9594 msgid "(Added in 1.0.72)"
9595 msgstr ""
9596
9597 # type: =head2
9598 #. type: =head2
9599 #: ../src/guestfs-actions.pod:1906
9600 msgid "guestfs_get_e2label"
9601 msgstr ""
9602
9603 # type: verbatim
9604 #. type: verbatim
9605 #: ../src/guestfs-actions.pod:1908
9606 #, no-wrap
9607 msgid ""
9608 " char *\n"
9609 " guestfs_get_e2label (guestfs_h *g,\n"
9610 "                      const char *device);\n"
9611 "\n"
9612 msgstr ""
9613
9614 # type: textblock
9615 #. type: textblock
9616 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1300
9617 msgid ""
9618 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9619 msgstr ""
9620
9621 # type: textblock
9622 #. type: textblock
9623 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1303
9624 msgid ""
9625 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9626 msgstr ""
9627
9628 # type: textblock
9629 #. type: textblock
9630 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
9631 #: ../src/guestfs-actions.pod:5587 ../src/guestfs-actions.pod:5606
9632 msgid "(Added in 1.0.15)"
9633 msgstr ""
9634
9635 # type: =head2
9636 #. type: =head2
9637 #: ../src/guestfs-actions.pod:1927
9638 msgid "guestfs_get_e2uuid"
9639 msgstr ""
9640
9641 # type: verbatim
9642 #. type: verbatim
9643 #: ../src/guestfs-actions.pod:1929
9644 #, no-wrap
9645 msgid ""
9646 " char *\n"
9647 " guestfs_get_e2uuid (guestfs_h *g,\n"
9648 "                     const char *device);\n"
9649 "\n"
9650 msgstr ""
9651
9652 # type: textblock
9653 #. type: textblock
9654 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1314
9655 msgid ""
9656 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9657 msgstr ""
9658
9659 # type: textblock
9660 #. type: textblock
9661 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1317
9662 msgid ""
9663 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9664 msgstr ""
9665
9666 # type: =head2
9667 #. type: =head2
9668 #: ../src/guestfs-actions.pod:1948
9669 msgid "guestfs_get_memsize"
9670 msgstr ""
9671
9672 # type: verbatim
9673 #. type: verbatim
9674 #: ../src/guestfs-actions.pod:1950
9675 #, no-wrap
9676 msgid ""
9677 " int\n"
9678 " guestfs_get_memsize (guestfs_h *g);\n"
9679 "\n"
9680 msgstr ""
9681
9682 # type: textblock
9683 #. type: textblock
9684 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1328
9685 msgid ""
9686 "This gets the memory size in megabytes allocated to the qemu subprocess."
9687 msgstr ""
9688
9689 # type: textblock
9690 #. type: textblock
9691 #: ../src/guestfs-actions.pod:1956
9692 msgid ""
9693 "If C<guestfs_set_memsize> was not called on this handle, and if "
9694 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9695 "value for memsize."
9696 msgstr ""
9697
9698 # type: textblock
9699 #. type: textblock
9700 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
9701 #: ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5729
9702 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386
9703 #: ../fish/guestfish-actions.pod:3749 ../fish/guestfish-actions.pod:3836
9704 msgid ""
9705 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9706 msgstr ""
9707
9708 # type: textblock
9709 #. type: textblock
9710 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4149
9711 #: ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4351
9712 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4382
9713 #: ../src/guestfs-actions.pod:4399 ../src/guestfs-actions.pod:4412
9714 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5627
9715 #: ../src/guestfs-actions.pod:5870 ../src/guestfs-actions.pod:6471
9716 msgid "(Added in 1.0.55)"
9717 msgstr ""
9718
9719 # type: =head2
9720 #. type: =head2
9721 #: ../src/guestfs-actions.pod:1967
9722 msgid "guestfs_get_network"
9723 msgstr ""
9724
9725 # type: verbatim
9726 #. type: verbatim
9727 #: ../src/guestfs-actions.pod:1969
9728 #, no-wrap
9729 msgid ""
9730 " int\n"
9731 " guestfs_get_network (guestfs_h *g);\n"
9732 "\n"
9733 msgstr ""
9734
9735 # type: textblock
9736 #. type: textblock
9737 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1342
9738 msgid "This returns the enable network flag."
9739 msgstr ""
9740
9741 # type: textblock
9742 #. type: textblock
9743 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5646
9744 msgid "(Added in 1.5.4)"
9745 msgstr ""
9746
9747 # type: =head2
9748 #. type: =head2
9749 #: ../src/guestfs-actions.pod:1978
9750 msgid "guestfs_get_path"
9751 msgstr ""
9752
9753 # type: verbatim
9754 #. type: verbatim
9755 #: ../src/guestfs-actions.pod:1980
9756 #, no-wrap
9757 msgid ""
9758 " const char *\n"
9759 " guestfs_get_path (guestfs_h *g);\n"
9760 "\n"
9761 msgstr ""
9762
9763 # type: textblock
9764 #. type: textblock
9765 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1348
9766 msgid "Return the current search path."
9767 msgstr ""
9768
9769 # type: textblock
9770 #. type: textblock
9771 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
9772 msgid ""
9773 "This is always non-NULL.  If it wasn't set already, then this will return "
9774 "the default path."
9775 msgstr ""
9776
9777 # type: textblock
9778 #. type: textblock
9779 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
9780 msgid ""
9781 "This function returns a string, or NULL on error.  The string is owned by "
9782 "the guest handle and must I<not> be freed."
9783 msgstr ""
9784
9785 # type: =head2
9786 #. type: =head2
9787 #: ../src/guestfs-actions.pod:1993
9788 msgid "guestfs_get_pid"
9789 msgstr ""
9790
9791 # type: verbatim
9792 #. type: verbatim
9793 #: ../src/guestfs-actions.pod:1995
9794 #, no-wrap
9795 msgid ""
9796 " int\n"
9797 " guestfs_get_pid (guestfs_h *g);\n"
9798 "\n"
9799 msgstr ""
9800
9801 # type: textblock
9802 #. type: textblock
9803 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1359
9804 msgid ""
9805 "Return the process ID of the qemu subprocess.  If there is no qemu "
9806 "subprocess, then this will return an error."
9807 msgstr ""
9808
9809 # type: textblock
9810 #. type: textblock
9811 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1362
9812 msgid "This is an internal call used for debugging and testing."
9813 msgstr ""
9814
9815 # type: textblock
9816 #. type: textblock
9817 #: ../src/guestfs-actions.pod:2005
9818 msgid "(Added in 1.0.56)"
9819 msgstr ""
9820
9821 # type: =head2
9822 #. type: =head2
9823 #: ../src/guestfs-actions.pod:2007
9824 msgid "guestfs_get_qemu"
9825 msgstr ""
9826
9827 # type: verbatim
9828 #. type: verbatim
9829 #: ../src/guestfs-actions.pod:2009
9830 #, no-wrap
9831 msgid ""
9832 " const char *\n"
9833 " guestfs_get_qemu (guestfs_h *g);\n"
9834 "\n"
9835 msgstr ""
9836
9837 # type: textblock
9838 #. type: textblock
9839 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1368
9840 msgid "Return the current qemu binary."
9841 msgstr ""
9842
9843 # type: textblock
9844 #. type: textblock
9845 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
9846 msgid ""
9847 "This is always non-NULL.  If it wasn't set already, then this will return "
9848 "the default qemu binary name."
9849 msgstr ""
9850
9851 # type: textblock
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5691
9854 msgid "(Added in 1.0.6)"
9855 msgstr ""
9856
9857 # type: =head2
9858 #. type: =head2
9859 #: ../src/guestfs-actions.pod:2022
9860 msgid "guestfs_get_recovery_proc"
9861 msgstr ""
9862
9863 # type: verbatim
9864 #. type: verbatim
9865 #: ../src/guestfs-actions.pod:2024
9866 #, no-wrap
9867 msgid ""
9868 " int\n"
9869 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9870 "\n"
9871 msgstr ""
9872
9873 # type: textblock
9874 #. type: textblock
9875 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9876 msgid "Return the recovery process enabled flag."
9877 msgstr ""
9878
9879 # type: textblock
9880 #. type: textblock
9881 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3259
9882 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3956
9883 #: ../src/guestfs-actions.pod:3988 ../src/guestfs-actions.pod:4995
9884 #: ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5715
9885 #: ../src/guestfs-actions.pod:6374 ../src/guestfs-actions.pod:6394
9886 #: ../src/guestfs-actions.pod:6586
9887 msgid "(Added in 1.0.77)"
9888 msgstr ""
9889
9890 # type: =head2
9891 #. type: =head2
9892 #: ../src/guestfs-actions.pod:2033
9893 msgid "guestfs_get_selinux"
9894 msgstr ""
9895
9896 # type: verbatim
9897 #. type: verbatim
9898 #: ../src/guestfs-actions.pod:2035
9899 #, no-wrap
9900 msgid ""
9901 " int\n"
9902 " guestfs_get_selinux (guestfs_h *g);\n"
9903 "\n"
9904 msgstr ""
9905
9906 # type: textblock
9907 #. type: textblock
9908 #: ../src/guestfs-actions.pod:2038
9909 msgid ""
9910 "This returns the current setting of the selinux flag which is passed to the "
9911 "appliance at boot time.  See C<guestfs_set_selinux>."
9912 msgstr ""
9913
9914 # type: textblock
9915 #. type: textblock
9916 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
9917 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5788
9918 msgid "(Added in 1.0.67)"
9919 msgstr ""
9920
9921 # type: =head2
9922 #. type: =head2
9923 #: ../src/guestfs-actions.pod:2048
9924 msgid "guestfs_get_state"
9925 msgstr ""
9926
9927 # type: verbatim
9928 #. type: verbatim
9929 #: ../src/guestfs-actions.pod:2050
9930 #, no-wrap
9931 msgid ""
9932 " int\n"
9933 " guestfs_get_state (guestfs_h *g);\n"
9934 "\n"
9935 msgstr ""
9936
9937 # type: textblock
9938 #. type: textblock
9939 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1393
9940 msgid ""
9941 "This returns the current state as an opaque integer.  This is only useful "
9942 "for printing debug and internal error messages."
9943 msgstr ""
9944
9945 # type: textblock
9946 #. type: textblock
9947 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3062
9948 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3152
9949 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:1396
9950 #: ../fish/guestfish-actions.pod:2131 ../fish/guestfish-actions.pod:2149
9951 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2203
9952 msgid "For more information on states, see L<guestfs(3)>."
9953 msgstr ""
9954
9955 # type: =head2
9956 #. type: =head2
9957 #: ../src/guestfs-actions.pod:2062
9958 msgid "guestfs_get_trace"
9959 msgstr ""
9960
9961 # type: verbatim
9962 #. type: verbatim
9963 #: ../src/guestfs-actions.pod:2064
9964 #, no-wrap
9965 msgid ""
9966 " int\n"
9967 " guestfs_get_trace (guestfs_h *g);\n"
9968 "\n"
9969 msgstr ""
9970
9971 # type: textblock
9972 #. type: textblock
9973 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1402
9974 msgid "Return the command trace flag."
9975 msgstr ""
9976
9977 # type: =head2
9978 #. type: =head2
9979 #: ../src/guestfs-actions.pod:2073
9980 msgid "guestfs_get_umask"
9981 msgstr ""
9982
9983 # type: verbatim
9984 #. type: verbatim
9985 #: ../src/guestfs-actions.pod:2075
9986 #, no-wrap
9987 msgid ""
9988 " int\n"
9989 " guestfs_get_umask (guestfs_h *g);\n"
9990 "\n"
9991 msgstr ""
9992
9993 # type: textblock
9994 #. type: textblock
9995 #: ../src/guestfs-actions.pod:2078
9996 msgid ""
9997 "Return the current umask.  By default the umask is C<022> unless it has been "
9998 "set by calling C<guestfs_umask>."
9999 msgstr ""
10000
10001 # type: =head2
10002 #. type: =head2
10003 #: ../src/guestfs-actions.pod:2085
10004 msgid "guestfs_get_verbose"
10005 msgstr ""
10006
10007 # type: verbatim
10008 #. type: verbatim
10009 #: ../src/guestfs-actions.pod:2087
10010 #, no-wrap
10011 msgid ""
10012 " int\n"
10013 " guestfs_get_verbose (guestfs_h *g);\n"
10014 "\n"
10015 msgstr ""
10016
10017 # type: textblock
10018 #. type: textblock
10019 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10020 msgid "This returns the verbose messages flag."
10021 msgstr ""
10022
10023 # type: =head2
10024 #. type: =head2
10025 #: ../src/guestfs-actions.pod:2096
10026 msgid "guestfs_getcon"
10027 msgstr ""
10028
10029 # type: verbatim
10030 #. type: verbatim
10031 #: ../src/guestfs-actions.pod:2098
10032 #, no-wrap
10033 msgid ""
10034 " char *\n"
10035 " guestfs_getcon (guestfs_h *g);\n"
10036 "\n"
10037 msgstr ""
10038
10039 # type: textblock
10040 #. type: textblock
10041 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1421
10042 msgid "This gets the SELinux security context of the daemon."
10043 msgstr ""
10044
10045 # type: textblock
10046 #. type: textblock
10047 #: ../src/guestfs-actions.pod:2103
10048 msgid ""
10049 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10050 msgstr ""
10051
10052 # type: =head2
10053 #. type: =head2
10054 #: ../src/guestfs-actions.pod:2111
10055 msgid "guestfs_getxattr"
10056 msgstr ""
10057
10058 # type: verbatim
10059 #. type: verbatim
10060 #: ../src/guestfs-actions.pod:2113
10061 #, no-wrap
10062 msgid ""
10063 " char *\n"
10064 " guestfs_getxattr (guestfs_h *g,\n"
10065 "                   const char *path,\n"
10066 "                   const char *name,\n"
10067 "                   size_t *size_r);\n"
10068 "\n"
10069 msgstr ""
10070
10071 # type: textblock
10072 #. type: textblock
10073 #: ../src/guestfs-actions.pod:2119
10074 msgid ""
10075 "Get a single extended attribute from file C<path> named C<name>.  This call "
10076 "follows symlinks.  If you want to lookup an extended attribute for the "
10077 "symlink itself, use C<guestfs_lgetxattr>."
10078 msgstr ""
10079
10080 # type: textblock
10081 #. type: textblock
10082 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:3273
10083 msgid ""
10084 "Normally it is better to get all extended attributes from a file in one go "
10085 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10086 "implementations are buggy and do not provide a way to list out attributes.  "
10087 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10088 "extended attributes you want in advance and call this function."
10089 msgstr ""
10090
10091 # type: textblock
10092 #. type: textblock
10093 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:3280
10094 #: ../fish/guestfish-actions.pod:1441 ../fish/guestfish-actions.pod:2268
10095 msgid ""
10096 "Extended attribute values are blobs of binary data.  If there is no extended "
10097 "attribute named C<name>, this returns an error."
10098 msgstr ""
10099
10100 # type: textblock
10101 #. type: textblock
10102 #: ../src/guestfs-actions.pod:2133
10103 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10104 msgstr ""
10105
10106 # type: textblock
10107 #. type: textblock
10108 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:2326
10109 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:4988
10110 #: ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5195
10111 msgid ""
10112 "This function returns a buffer, or NULL on error.  The size of the returned "
10113 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10114 "after use>."
10115 msgstr ""
10116
10117 #. type: textblock
10118 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:3289
10119 msgid "(Added in 1.7.24)"
10120 msgstr ""
10121
10122 # type: =head2
10123 #. type: =head2
10124 #: ../src/guestfs-actions.pod:2141
10125 msgid "guestfs_getxattrs"
10126 msgstr ""
10127
10128 # type: verbatim
10129 #. type: verbatim
10130 #: ../src/guestfs-actions.pod:2143
10131 #, no-wrap
10132 msgid ""
10133 " struct guestfs_xattr_list *\n"
10134 " guestfs_getxattrs (guestfs_h *g,\n"
10135 "                    const char *path);\n"
10136 "\n"
10137 msgstr ""
10138
10139 # type: textblock
10140 #. type: textblock
10141 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1450
10142 msgid ""
10143 "This call lists the extended attributes of the file or directory C<path>."
10144 msgstr ""
10145
10146 # type: textblock
10147 #. type: textblock
10148 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1453
10149 msgid ""
10150 "At the system call level, this is a combination of the L<listxattr(2)> and "
10151 "L<getxattr(2)> calls."
10152 msgstr ""
10153
10154 # type: textblock
10155 #. type: textblock
10156 #: ../src/guestfs-actions.pod:2153
10157 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10158 msgstr ""
10159
10160 # type: textblock
10161 #. type: textblock
10162 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3301
10163 #: ../src/guestfs-actions.pod:3952
10164 msgid ""
10165 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10166 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10167 msgstr ""
10168
10169 # type: textblock
10170 #. type: textblock
10171 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3305
10172 #: ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3506
10173 #: ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:5807
10174 #: ../src/guestfs-actions.pod:7142
10175 msgid "(Added in 1.0.59)"
10176 msgstr ""
10177
10178 # type: =head2
10179 #. type: =head2
10180 #: ../src/guestfs-actions.pod:2161
10181 msgid "guestfs_glob_expand"
10182 msgstr ""
10183
10184 # type: verbatim
10185 #. type: verbatim
10186 #: ../src/guestfs-actions.pod:2163
10187 #, no-wrap
10188 msgid ""
10189 " char **\n"
10190 " guestfs_glob_expand (guestfs_h *g,\n"
10191 "                      const char *pattern);\n"
10192 "\n"
10193 msgstr ""
10194
10195 # type: textblock
10196 #. type: textblock
10197 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1462
10198 msgid ""
10199 "This command searches for all the pathnames matching C<pattern> according to "
10200 "the wildcard expansion rules used by the shell."
10201 msgstr ""
10202
10203 # type: textblock
10204 #. type: textblock
10205 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1466
10206 msgid ""
10207 "If no paths match, then this returns an empty list (note: not an error)."
10208 msgstr ""
10209
10210 # type: textblock
10211 #. type: textblock
10212 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1469
10213 msgid ""
10214 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10215 "GLOB_BRACE>.  See that manual page for more details."
10216 msgstr ""
10217
10218 # type: textblock
10219 #. type: textblock
10220 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5972
10221 #: ../src/guestfs-actions.pod:5989
10222 msgid "(Added in 1.0.50)"
10223 msgstr ""
10224
10225 # type: =head2
10226 #. type: =head2
10227 #: ../src/guestfs-actions.pod:2184
10228 msgid "guestfs_grep"
10229 msgstr ""
10230
10231 # type: verbatim
10232 #. type: verbatim
10233 #: ../src/guestfs-actions.pod:2186
10234 #, no-wrap
10235 msgid ""
10236 " char **\n"
10237 " guestfs_grep (guestfs_h *g,\n"
10238 "               const char *regex,\n"
10239 "               const char *path);\n"
10240 "\n"
10241 msgstr ""
10242
10243 # type: textblock
10244 #. type: textblock
10245 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1477
10246 msgid "This calls the external C<grep> program and returns the matching lines."
10247 msgstr ""
10248
10249 # type: =head2
10250 #. type: =head2
10251 #: ../src/guestfs-actions.pod:2203
10252 msgid "guestfs_grepi"
10253 msgstr ""
10254
10255 # type: verbatim
10256 #. type: verbatim
10257 #: ../src/guestfs-actions.pod:2205
10258 #, no-wrap
10259 msgid ""
10260 " char **\n"
10261 " guestfs_grepi (guestfs_h *g,\n"
10262 "                const char *regex,\n"
10263 "                const char *path);\n"
10264 "\n"
10265 msgstr ""
10266
10267 # type: textblock
10268 #. type: textblock
10269 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1487
10270 msgid ""
10271 "This calls the external C<grep -i> program and returns the matching lines."
10272 msgstr ""
10273
10274 # type: =head2
10275 #. type: =head2
10276 #: ../src/guestfs-actions.pod:2222
10277 msgid "guestfs_grub_install"
10278 msgstr ""
10279
10280 # type: verbatim
10281 #. type: verbatim
10282 #: ../src/guestfs-actions.pod:2224
10283 #, no-wrap
10284 msgid ""
10285 " int\n"
10286 " guestfs_grub_install (guestfs_h *g,\n"
10287 "                       const char *root,\n"
10288 "                       const char *device);\n"
10289 "\n"
10290 msgstr ""
10291
10292 # type: textblock
10293 #. type: textblock
10294 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1497
10295 msgid ""
10296 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10297 "the root directory being C<root>."
10298 msgstr ""
10299
10300 # type: textblock
10301 #. type: textblock
10302 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1500
10303 msgid ""
10304 "Note: If grub-install reports the error \"No suitable drive was found in the "
10305 "generated device map.\" it may be that you need to create a C</boot/grub/"
10306 "device.map> file first that contains the mapping between grub device names "
10307 "and Linux device names.  It is usually sufficient to create a file "
10308 "containing:"
10309 msgstr ""
10310
10311 # type: verbatim
10312 #. type: verbatim
10313 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1507
10314 #, no-wrap
10315 msgid ""
10316 " (hd0) /dev/vda\n"
10317 "\n"
10318 msgstr ""
10319
10320 # type: textblock
10321 #. type: textblock
10322 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1509
10323 msgid "replacing C</dev/vda> with the name of the installation device."
10324 msgstr ""
10325
10326 # type: textblock
10327 #. type: textblock
10328 #: ../src/guestfs-actions.pod:2245
10329 msgid "(Added in 1.0.17)"
10330 msgstr ""
10331
10332 # type: =head2
10333 #. type: =head2
10334 #: ../src/guestfs-actions.pod:2247
10335 msgid "guestfs_head"
10336 msgstr ""
10337
10338 # type: verbatim
10339 #. type: verbatim
10340 #: ../src/guestfs-actions.pod:2249
10341 #, no-wrap
10342 msgid ""
10343 " char **\n"
10344 " guestfs_head (guestfs_h *g,\n"
10345 "               const char *path);\n"
10346 "\n"
10347 msgstr ""
10348
10349 # type: textblock
10350 #. type: textblock
10351 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1515
10352 msgid ""
10353 "This command returns up to the first 10 lines of a file as a list of strings."
10354 msgstr ""
10355
10356 # type: =head2
10357 #. type: =head2
10358 #: ../src/guestfs-actions.pod:2265
10359 msgid "guestfs_head_n"
10360 msgstr ""
10361
10362 # type: verbatim
10363 #. type: verbatim
10364 #: ../src/guestfs-actions.pod:2267
10365 #, no-wrap
10366 msgid ""
10367 " char **\n"
10368 " guestfs_head_n (guestfs_h *g,\n"
10369 "                 int nrlines,\n"
10370 "                 const char *path);\n"
10371 "\n"
10372 msgstr ""
10373
10374 # type: textblock
10375 #. type: textblock
10376 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1525
10377 msgid ""
10378 "If the parameter C<nrlines> is a positive number, this returns the first "
10379 "C<nrlines> lines of the file C<path>."
10380 msgstr ""
10381
10382 # type: textblock
10383 #. type: textblock
10384 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1528
10385 msgid ""
10386 "If the parameter C<nrlines> is a negative number, this returns lines from "
10387 "the file C<path>, excluding the last C<nrlines> lines."
10388 msgstr ""
10389
10390 # type: textblock
10391 #. type: textblock
10392 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6269
10393 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4182
10394 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10395 msgstr ""
10396
10397 # type: =head2
10398 #. type: =head2
10399 #: ../src/guestfs-actions.pod:2289
10400 msgid "guestfs_hexdump"
10401 msgstr ""
10402
10403 # type: verbatim
10404 #. type: verbatim
10405 #: ../src/guestfs-actions.pod:2291
10406 #, no-wrap
10407 msgid ""
10408 " char *\n"
10409 " guestfs_hexdump (guestfs_h *g,\n"
10410 "                  const char *path);\n"
10411 "\n"
10412 msgstr ""
10413
10414 # type: textblock
10415 #. type: textblock
10416 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1540
10417 msgid ""
10418 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10419 "readable, canonical hex dump of the file."
10420 msgstr ""
10421
10422 # type: textblock
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6053
10425 #: ../src/guestfs-actions.pod:6108
10426 msgid "(Added in 1.0.22)"
10427 msgstr ""
10428
10429 # type: =head2
10430 #. type: =head2
10431 #: ../src/guestfs-actions.pod:2306
10432 msgid "guestfs_initrd_cat"
10433 msgstr ""
10434
10435 # type: verbatim
10436 #. type: verbatim
10437 #: ../src/guestfs-actions.pod:2308
10438 #, no-wrap
10439 msgid ""
10440 " char *\n"
10441 " guestfs_initrd_cat (guestfs_h *g,\n"
10442 "                     const char *initrdpath,\n"
10443 "                     const char *filename,\n"
10444 "                     size_t *size_r);\n"
10445 "\n"
10446 msgstr ""
10447
10448 # type: textblock
10449 #. type: textblock
10450 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1550
10451 msgid ""
10452 "This command unpacks the file C<filename> from the initrd file called "
10453 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10454 "character."
10455 msgstr ""
10456
10457 # type: textblock
10458 #. type: textblock
10459 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1554
10460 msgid ""
10461 "For example, in guestfish you could use the following command to examine the "
10462 "boot script (usually called C</init>)  contained in a Linux initrd or "
10463 "initramfs image:"
10464 msgstr ""
10465
10466 # type: verbatim
10467 #. type: verbatim
10468 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1558
10469 #, no-wrap
10470 msgid ""
10471 " initrd-cat /boot/initrd-<version>.img init\n"
10472 "\n"
10473 msgstr ""
10474
10475 # type: textblock
10476 #. type: textblock
10477 #: ../src/guestfs-actions.pod:2324
10478 msgid "See also C<guestfs_initrd_list>."
10479 msgstr ""
10480
10481 # type: =head2
10482 #. type: =head2
10483 #: ../src/guestfs-actions.pod:2335
10484 msgid "guestfs_initrd_list"
10485 msgstr ""
10486
10487 # type: verbatim
10488 #. type: verbatim
10489 #: ../src/guestfs-actions.pod:2337
10490 #, no-wrap
10491 msgid ""
10492 " char **\n"
10493 " guestfs_initrd_list (guestfs_h *g,\n"
10494 "                      const char *path);\n"
10495 "\n"
10496 msgstr ""
10497
10498 # type: textblock
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1569
10501 msgid "This command lists out files contained in an initrd."
10502 msgstr ""
10503
10504 # type: textblock
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1571
10507 msgid ""
10508 "The files are listed without any initial C</> character.  The files are "
10509 "listed in the order they appear (not necessarily alphabetical).  Directory "
10510 "names are listed as separate items."
10511 msgstr ""
10512
10513 # type: textblock
10514 #. type: textblock
10515 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1575
10516 msgid ""
10517 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10518 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10519 "files)."
10520 msgstr ""
10521
10522 # type: =head2
10523 #. type: =head2
10524 #: ../src/guestfs-actions.pod:2357
10525 msgid "guestfs_inotify_add_watch"
10526 msgstr ""
10527
10528 # type: verbatim
10529 #. type: verbatim
10530 #: ../src/guestfs-actions.pod:2359
10531 #, no-wrap
10532 msgid ""
10533 " int64_t\n"
10534 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10535 "                            const char *path,\n"
10536 "                            int mask);\n"
10537 "\n"
10538 msgstr ""
10539
10540 # type: textblock
10541 #. type: textblock
10542 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1583
10543 msgid "Watch C<path> for the events listed in C<mask>."
10544 msgstr ""
10545
10546 # type: textblock
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1585
10549 msgid ""
10550 "Note that if C<path> is a directory then events within that directory are "
10551 "watched, but this does I<not> happen recursively (in subdirectories)."
10552 msgstr ""
10553
10554 # type: textblock
10555 #. type: textblock
10556 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1589
10557 msgid ""
10558 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10559 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10560 msgstr ""
10561
10562 # type: =head2
10563 #. type: =head2
10564 #: ../src/guestfs-actions.pod:2378
10565 msgid "guestfs_inotify_close"
10566 msgstr ""
10567
10568 # type: verbatim
10569 #. type: verbatim
10570 #: ../src/guestfs-actions.pod:2380
10571 #, no-wrap
10572 msgid ""
10573 " int\n"
10574 " guestfs_inotify_close (guestfs_h *g);\n"
10575 "\n"
10576 msgstr ""
10577
10578 # type: textblock
10579 #. type: textblock
10580 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1597
10581 msgid ""
10582 "This closes the inotify handle which was previously opened by inotify_init.  "
10583 "It removes all watches, throws away any pending events, and deallocates all "
10584 "resources."
10585 msgstr ""
10586
10587 # type: =head2
10588 #. type: =head2
10589 #: ../src/guestfs-actions.pod:2391
10590 msgid "guestfs_inotify_files"
10591 msgstr ""
10592
10593 # type: verbatim
10594 #. type: verbatim
10595 #: ../src/guestfs-actions.pod:2393
10596 #, no-wrap
10597 msgid ""
10598 " char **\n"
10599 " guestfs_inotify_files (guestfs_h *g);\n"
10600 "\n"
10601 msgstr ""
10602
10603 # type: textblock
10604 #. type: textblock
10605 #: ../src/guestfs-actions.pod:2396
10606 msgid ""
10607 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10608 "returns a list of pathnames of objects that were touched.  The returned "
10609 "pathnames are sorted and deduplicated."
10610 msgstr ""
10611
10612 # type: =head2
10613 #. type: =head2
10614 #: ../src/guestfs-actions.pod:2406
10615 msgid "guestfs_inotify_init"
10616 msgstr ""
10617
10618 # type: verbatim
10619 #. type: verbatim
10620 #: ../src/guestfs-actions.pod:2408
10621 #, no-wrap
10622 msgid ""
10623 " int\n"
10624 " guestfs_inotify_init (guestfs_h *g,\n"
10625 "                       int maxevents);\n"
10626 "\n"
10627 msgstr ""
10628
10629 # type: textblock
10630 #. type: textblock
10631 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1613
10632 msgid ""
10633 "This command creates a new inotify handle.  The inotify subsystem can be "
10634 "used to notify events which happen to objects in the guest filesystem."
10635 msgstr ""
10636
10637 # type: textblock
10638 #. type: textblock
10639 #: ../src/guestfs-actions.pod:2416
10640 msgid ""
10641 "C<maxevents> is the maximum number of events which will be queued up between "
10642 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10643 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10644 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10645 "throws away events, but records the fact that it threw them away by setting "
10646 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10647 "C<guestfs_inotify_read>)."
10648 msgstr ""
10649
10650 # type: textblock
10651 #. type: textblock
10652 #: ../src/guestfs-actions.pod:2426
10653 msgid ""
10654 "Before any events are generated, you have to add some watches to the "
10655 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10656 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10657 msgstr ""
10658
10659 # type: textblock
10660 #. type: textblock
10661 #: ../src/guestfs-actions.pod:2432
10662 msgid ""
10663 "Queued up events should be read periodically by calling "
10664 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10665 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10666 "often enough then you risk the internal queue overflowing."
10667 msgstr ""
10668
10669 # type: textblock
10670 #. type: textblock
10671 #: ../src/guestfs-actions.pod:2439
10672 msgid ""
10673 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10674 "This also removes any watches automatically."
10675 msgstr ""
10676
10677 # type: textblock
10678 #. type: textblock
10679 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1644
10680 msgid ""
10681 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10682 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10683 "that there is one global inotify handle per libguestfs instance."
10684 msgstr ""
10685
10686 # type: =head2
10687 #. type: =head2
10688 #: ../src/guestfs-actions.pod:2452
10689 msgid "guestfs_inotify_read"
10690 msgstr ""
10691
10692 # type: verbatim
10693 #. type: verbatim
10694 #: ../src/guestfs-actions.pod:2454
10695 #, no-wrap
10696 msgid ""
10697 " struct guestfs_inotify_event_list *\n"
10698 " guestfs_inotify_read (guestfs_h *g);\n"
10699 "\n"
10700 msgstr ""
10701
10702 # type: textblock
10703 #. type: textblock
10704 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1653
10705 msgid ""
10706 "Return the complete queue of events that have happened since the previous "
10707 "read call."
10708 msgstr ""
10709
10710 # type: textblock
10711 #. type: textblock
10712 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1656
10713 msgid "If no events have happened, this returns an empty list."
10714 msgstr ""
10715
10716 # type: textblock
10717 #. type: textblock
10718 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1658
10719 msgid ""
10720 "I<Note>: In order to make sure that all events have been read, you must call "
10721 "this function repeatedly until it returns an empty list.  The reason is that "
10722 "the call will read events up to the maximum appliance-to-host message size "
10723 "and leave remaining events in the queue."
10724 msgstr ""
10725
10726 # type: textblock
10727 #. type: textblock
10728 #: ../src/guestfs-actions.pod:2468
10729 msgid ""
10730 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10731 "there was an error.  I<The caller must call "
10732 "C<guestfs_free_inotify_event_list> after use>."
10733 msgstr ""
10734
10735 # type: =head2
10736 #. type: =head2
10737 #: ../src/guestfs-actions.pod:2474
10738 msgid "guestfs_inotify_rm_watch"
10739 msgstr ""
10740
10741 # type: verbatim
10742 #. type: verbatim
10743 #: ../src/guestfs-actions.pod:2476
10744 #, no-wrap
10745 msgid ""
10746 " int\n"
10747 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10748 "                           int wd);\n"
10749 "\n"
10750 msgstr ""
10751
10752 # type: textblock
10753 #. type: textblock
10754 #: ../src/guestfs-actions.pod:2480
10755 msgid ""
10756 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10757 msgstr ""
10758
10759 # type: =head2
10760 #. type: =head2
10761 #: ../src/guestfs-actions.pod:2487
10762 msgid "guestfs_inspect_get_arch"
10763 msgstr ""
10764
10765 # type: verbatim
10766 #. type: verbatim
10767 #: ../src/guestfs-actions.pod:2489
10768 #, no-wrap
10769 msgid ""
10770 " char *\n"
10771 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10772 "                           const char *root);\n"
10773 "\n"
10774 msgstr ""
10775
10776 # type: textblock
10777 #. type: textblock
10778 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
10779 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
10780 #: ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672
10781 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2726
10782 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2786
10783 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2872
10784 #: ../src/guestfs-actions.pod:2895
10785 msgid ""
10786 "This function should only be called with a root device string as returned by "
10787 "C<guestfs_inspect_os>."
10788 msgstr ""
10789
10790 # type: textblock
10791 #. type: textblock
10792 #: ../src/guestfs-actions.pod:2496
10793 msgid ""
10794 "This returns the architecture of the inspected operating system.  The "
10795 "possible return values are listed under C<guestfs_file_architecture>."
10796 msgstr ""
10797
10798 # type: textblock
10799 #. type: textblock
10800 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1682
10801 msgid ""
10802 "If the architecture could not be determined, then the string C<unknown> is "
10803 "returned."
10804 msgstr ""
10805
10806 # type: textblock
10807 #. type: textblock
10808 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
10809 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660
10810 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2773
10811 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816
10812 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2882
10813 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3029
10814 #: ../fish/guestfish-actions.pod:1685 ../fish/guestfish-actions.pod:1759
10815 #: ../fish/guestfish-actions.pod:1792 ../fish/guestfish-actions.pod:1813
10816 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1897
10817 #: ../fish/guestfish-actions.pod:1914 ../fish/guestfish-actions.pod:1927
10818 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1978
10819 #: ../fish/guestfish-actions.pod:2077 ../fish/guestfish-actions.pod:2111
10820 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10821 msgstr ""
10822
10823 # type: =head2
10824 #. type: =head2
10825 #: ../src/guestfs-actions.pod:2510
10826 msgid "guestfs_inspect_get_distro"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #. type: verbatim
10831 #: ../src/guestfs-actions.pod:2512
10832 #, no-wrap
10833 msgid ""
10834 " char *\n"
10835 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10836 "                             const char *root);\n"
10837 "\n"
10838 msgstr ""
10839
10840 # type: textblock
10841 #. type: textblock
10842 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1694
10843 msgid ""
10844 "This returns the distro (distribution) of the inspected operating system."
10845 msgstr ""
10846
10847 # type: textblock
10848 #. type: textblock
10849 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1697
10850 msgid "Currently defined distros are:"
10851 msgstr ""
10852
10853 # type: =item
10854 #. type: =item
10855 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1701
10856 msgid "\"archlinux\""
10857 msgstr ""
10858
10859 # type: textblock
10860 #. type: textblock
10861 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1703
10862 msgid "Arch Linux."
10863 msgstr ""
10864
10865 # type: =item
10866 #. type: =item
10867 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1705
10868 msgid "\"debian\""
10869 msgstr ""
10870
10871 # type: textblock
10872 #. type: textblock
10873 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1707
10874 msgid "Debian."
10875 msgstr ""
10876
10877 # type: =item
10878 #. type: =item
10879 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1709
10880 msgid "\"fedora\""
10881 msgstr ""
10882
10883 # type: textblock
10884 #. type: textblock
10885 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1711
10886 msgid "Fedora."
10887 msgstr ""
10888
10889 # type: =item
10890 #. type: =item
10891 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1713
10892 msgid "\"gentoo\""
10893 msgstr ""
10894
10895 # type: textblock
10896 #. type: textblock
10897 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1715
10898 msgid "Gentoo."
10899 msgstr ""
10900
10901 # type: =item
10902 #. type: =item
10903 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1717
10904 msgid "\"linuxmint\""
10905 msgstr ""
10906
10907 # type: textblock
10908 #. type: textblock
10909 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1719
10910 msgid "Linux Mint."
10911 msgstr ""
10912
10913 # type: =item
10914 #. type: =item
10915 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1721
10916 msgid "\"mandriva\""
10917 msgstr ""
10918
10919 # type: textblock
10920 #. type: textblock
10921 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1723
10922 msgid "Mandriva."
10923 msgstr ""
10924
10925 # type: =item
10926 #. type: =item
10927 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1725
10928 msgid "\"meego\""
10929 msgstr ""
10930
10931 # type: textblock
10932 #. type: textblock
10933 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1727
10934 msgid "MeeGo."
10935 msgstr ""
10936
10937 # type: =item
10938 #. type: =item
10939 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1729
10940 msgid "\"pardus\""
10941 msgstr ""
10942
10943 # type: textblock
10944 #. type: textblock
10945 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1731
10946 msgid "Pardus."
10947 msgstr ""
10948
10949 # type: =item
10950 #. type: =item
10951 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1733
10952 msgid "\"redhat-based\""
10953 msgstr ""
10954
10955 # type: textblock
10956 #. type: textblock
10957 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1735
10958 msgid "Some Red Hat-derived distro."
10959 msgstr ""
10960
10961 # type: =item
10962 #. type: =item
10963 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1737
10964 msgid "\"rhel\""
10965 msgstr ""
10966
10967 # type: textblock
10968 #. type: textblock
10969 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1739
10970 msgid "Red Hat Enterprise Linux and some derivatives."
10971 msgstr ""
10972
10973 # type: =item
10974 #. type: =item
10975 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1741
10976 msgid "\"ubuntu\""
10977 msgstr ""
10978
10979 # type: textblock
10980 #. type: textblock
10981 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1743
10982 msgid "Ubuntu."
10983 msgstr ""
10984
10985 # type: =item
10986 #. type: =item
10987 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850
10988 #: ../fish/guestfish-actions.pod:1745 ../fish/guestfish-actions.pod:1953
10989 msgid "\"unknown\""
10990 msgstr ""
10991
10992 # type: textblock
10993 #. type: textblock
10994 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1747
10995 msgid "The distro could not be determined."
10996 msgstr ""
10997
10998 # type: =item
10999 #. type: =item
11000 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842
11001 #: ../fish/guestfish-actions.pod:1749 ../fish/guestfish-actions.pod:1945
11002 msgid "\"windows\""
11003 msgstr ""
11004
11005 # type: textblock
11006 #. type: textblock
11007 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1751
11008 msgid ""
11009 "Windows does not have distributions.  This string is returned if the OS type "
11010 "is Windows."
11011 msgstr ""
11012
11013 # type: textblock
11014 #. type: textblock
11015 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856
11016 #: ../fish/guestfish-actions.pod:1756 ../fish/guestfish-actions.pod:1959
11017 msgid ""
11018 "Future versions of libguestfs may return other strings here.  The caller "
11019 "should be prepared to handle any string."
11020 msgstr ""
11021
11022 # type: =head2
11023 #. type: =head2
11024 #: ../src/guestfs-actions.pod:2591
11025 msgid "guestfs_inspect_get_filesystems"
11026 msgstr ""
11027
11028 # type: verbatim
11029 #. type: verbatim
11030 #: ../src/guestfs-actions.pod:2593
11031 #, no-wrap
11032 msgid ""
11033 " char **\n"
11034 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11035 "                                  const char *root);\n"
11036 "\n"
11037 msgstr ""
11038
11039 # type: textblock
11040 #. type: textblock
11041 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1768
11042 msgid ""
11043 "This returns a list of all the filesystems that we think are associated with "
11044 "this operating system.  This includes the root filesystem, other ordinary "
11045 "filesystems, and non-mounted devices like swap partitions."
11046 msgstr ""
11047
11048 # type: textblock
11049 #. type: textblock
11050 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1773
11051 msgid ""
11052 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11053 "to be shared between operating systems."
11054 msgstr ""
11055
11056 # type: textblock
11057 #. type: textblock
11058 #: ../src/guestfs-actions.pod:2608
11059 msgid ""
11060 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11061 "C<guestfs_inspect_get_mountpoints>."
11062 msgstr ""
11063
11064 # type: =head2
11065 #. type: =head2
11066 #: ../src/guestfs-actions.pod:2617
11067 msgid "guestfs_inspect_get_hostname"
11068 msgstr ""
11069
11070 # type: verbatim
11071 #. type: verbatim
11072 #: ../src/guestfs-actions.pod:2619
11073 #, no-wrap
11074 msgid ""
11075 " char *\n"
11076 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11077 "                               const char *root);\n"
11078 "\n"
11079 msgstr ""
11080
11081 # type: textblock
11082 #. type: textblock
11083 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1786
11084 msgid ""
11085 "This function returns the hostname of the operating system as found by "
11086 "inspection of the guest's configuration files."
11087 msgstr ""
11088
11089 # type: textblock
11090 #. type: textblock
11091 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1789
11092 msgid ""
11093 "If the hostname could not be determined, then the string C<unknown> is "
11094 "returned."
11095 msgstr ""
11096
11097 # type: textblock
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2637
11100 msgid "(Added in 1.7.9)"
11101 msgstr ""
11102
11103 # type: =head2
11104 #. type: =head2
11105 #: ../src/guestfs-actions.pod:2639
11106 msgid "guestfs_inspect_get_major_version"
11107 msgstr ""
11108
11109 # type: verbatim
11110 #. type: verbatim
11111 #: ../src/guestfs-actions.pod:2641
11112 #, no-wrap
11113 msgid ""
11114 " int\n"
11115 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11116 "                                    const char *root);\n"
11117 "\n"
11118 msgstr ""
11119
11120 # type: textblock
11121 #. type: textblock
11122 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1801
11123 msgid ""
11124 "This returns the major version number of the inspected operating system."
11125 msgstr ""
11126
11127 # type: textblock
11128 #. type: textblock
11129 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1804
11130 msgid ""
11131 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11132 "popular public names used by the operating system.  Notably the operating "
11133 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11134 "1).  You can find out the real versions corresponding to releases of Windows "
11135 "by consulting Wikipedia or MSDN."
11136 msgstr ""
11137
11138 # type: textblock
11139 #. type: textblock
11140 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678
11141 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1825
11142 msgid "If the version could not be determined, then C<0> is returned."
11143 msgstr ""
11144
11145 # type: =head2
11146 #. type: =head2
11147 #: ../src/guestfs-actions.pod:2666
11148 msgid "guestfs_inspect_get_minor_version"
11149 msgstr ""
11150
11151 # type: verbatim
11152 #. type: verbatim
11153 #: ../src/guestfs-actions.pod:2668
11154 #, no-wrap
11155 msgid ""
11156 " int\n"
11157 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11158 "                                    const char *root);\n"
11159 "\n"
11160 msgstr ""
11161
11162 # type: textblock
11163 #. type: textblock
11164 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1822
11165 msgid ""
11166 "This returns the minor version number of the inspected operating system."
11167 msgstr ""
11168
11169 # type: textblock
11170 #. type: textblock
11171 #: ../src/guestfs-actions.pod:2680
11172 msgid ""
11173 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11174 "C<guestfs_inspect_get_major_version>."
11175 msgstr ""
11176
11177 # type: =head2
11178 #. type: =head2
11179 #: ../src/guestfs-actions.pod:2687
11180 msgid "guestfs_inspect_get_mountpoints"
11181 msgstr ""
11182
11183 # type: verbatim
11184 #. type: verbatim
11185 #: ../src/guestfs-actions.pod:2689
11186 #, no-wrap
11187 msgid ""
11188 " char **\n"
11189 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11190 "                                  const char *root);\n"
11191 "\n"
11192 msgstr ""
11193
11194 # type: textblock
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1837
11197 msgid ""
11198 "This returns a hash of where we think the filesystems associated with this "
11199 "operating system should be mounted.  Callers should note that this is at "
11200 "best an educated guess made by reading configuration files such as C</etc/"
11201 "fstab>."
11202 msgstr ""
11203
11204 # type: textblock
11205 #. type: textblock
11206 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1842
11207 msgid ""
11208 "Each element in the returned hashtable has a key which is the path of the "
11209 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11210 "mounted there (eg. C</dev/sda1>)."
11211 msgstr ""
11212
11213 # type: textblock
11214 #. type: textblock
11215 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1847
11216 msgid ""
11217 "Non-mounted devices such as swap devices are I<not> returned in this list."
11218 msgstr ""
11219
11220 # type: textblock
11221 #. type: textblock
11222 #: ../src/guestfs-actions.pod:2709
11223 msgid ""
11224 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11225 "C<guestfs_inspect_get_filesystems>."
11226 msgstr ""
11227
11228 # type: textblock
11229 #. type: textblock
11230 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3358
11231 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:6410
11232 msgid ""
11233 "This function returns a NULL-terminated array of strings, or NULL if there "
11234 "was an error.  The array of strings will always have length C<2n+1>, where "
11235 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11236 "caller must free the strings and the array after use>."
11237 msgstr ""
11238
11239 # type: =head2
11240 #. type: =head2
11241 #: ../src/guestfs-actions.pod:2720
11242 msgid "guestfs_inspect_get_package_format"
11243 msgstr ""
11244
11245 # type: verbatim
11246 #. type: verbatim
11247 #: ../src/guestfs-actions.pod:2722
11248 #, no-wrap
11249 msgid ""
11250 " char *\n"
11251 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11252 "                                     const char *root);\n"
11253 "\n"
11254 msgstr ""
11255
11256 # type: textblock
11257 #. type: textblock
11258 #: ../src/guestfs-actions.pod:2729
11259 msgid ""
11260 "This function and C<guestfs_inspect_get_package_management> return the "
11261 "package format and package management tool used by the inspected operating "
11262 "system.  For example for Fedora these functions would return C<rpm> (package "
11263 "format) and C<yum> (package management)."
11264 msgstr ""
11265
11266 # type: textblock
11267 #. type: textblock
11268 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1866
11269 msgid ""
11270 "This returns the string C<unknown> if we could not determine the package "
11271 "format I<or> if the operating system does not have a real packaging system "
11272 "(eg. Windows)."
11273 msgstr ""
11274
11275 # type: textblock
11276 #. type: textblock
11277 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1870
11278 msgid ""
11279 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11280 "Future versions of libguestfs may return other strings."
11281 msgstr ""
11282
11283 # type: textblock
11284 #. type: textblock
11285 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
11286 msgid "(Added in 1.7.5)"
11287 msgstr ""
11288
11289 # type: =head2
11290 #. type: =head2
11291 #: ../src/guestfs-actions.pod:2749
11292 msgid "guestfs_inspect_get_package_management"
11293 msgstr ""
11294
11295 # type: verbatim
11296 #. type: verbatim
11297 #: ../src/guestfs-actions.pod:2751
11298 #, no-wrap
11299 msgid ""
11300 " char *\n"
11301 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11302 "                                         const char *root);\n"
11303 "\n"
11304 msgstr ""
11305
11306 # type: textblock
11307 #. type: textblock
11308 #: ../src/guestfs-actions.pod:2758
11309 msgid ""
11310 "C<guestfs_inspect_get_package_format> and this function return the package "
11311 "format and package management tool used by the inspected operating system.  "
11312 "For example for Fedora these functions would return C<rpm> (package format) "
11313 "and C<yum> (package management)."
11314 msgstr ""
11315
11316 # type: textblock
11317 #. type: textblock
11318 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1888
11319 msgid ""
11320 "This returns the string C<unknown> if we could not determine the package "
11321 "management tool I<or> if the operating system does not have a real packaging "
11322 "system (eg. Windows)."
11323 msgstr ""
11324
11325 # type: textblock
11326 #. type: textblock
11327 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1892
11328 msgid ""
11329 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11330 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11331 "libguestfs may return other strings."
11332 msgstr ""
11333
11334 # type: =head2
11335 #. type: =head2
11336 #: ../src/guestfs-actions.pod:2780
11337 msgid "guestfs_inspect_get_product_name"
11338 msgstr ""
11339
11340 # type: verbatim
11341 #. type: verbatim
11342 #: ../src/guestfs-actions.pod:2782
11343 #, no-wrap
11344 msgid ""
11345 " char *\n"
11346 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11347 "                                   const char *root);\n"
11348 "\n"
11349 msgstr ""
11350
11351 # type: textblock
11352 #. type: textblock
11353 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1906
11354 msgid ""
11355 "This returns the product name of the inspected operating system.  The "
11356 "product name is generally some freeform string which can be displayed to the "
11357 "user, but should not be parsed by programs."
11358 msgstr ""
11359
11360 # type: textblock
11361 #. type: textblock
11362 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1911
11363 msgid ""
11364 "If the product name could not be determined, then the string C<unknown> is "
11365 "returned."
11366 msgstr ""
11367
11368 # type: =head2
11369 #. type: =head2
11370 #: ../src/guestfs-actions.pod:2804
11371 msgid "guestfs_inspect_get_roots"
11372 msgstr ""
11373
11374 # type: verbatim
11375 #. type: verbatim
11376 #: ../src/guestfs-actions.pod:2806
11377 #, no-wrap
11378 msgid ""
11379 " char **\n"
11380 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11381 "\n"
11382 msgstr ""
11383
11384 # type: textblock
11385 #. type: textblock
11386 #: ../src/guestfs-actions.pod:2809
11387 msgid ""
11388 "This function is a convenient way to get the list of root devices, as "
11389 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11390 "the whole inspection process."
11391 msgstr ""
11392
11393 # type: textblock
11394 #. type: textblock
11395 #: ../src/guestfs-actions.pod:2813
11396 msgid ""
11397 "This returns an empty list if either no root devices were found or the "
11398 "caller has not called C<guestfs_inspect_os>."
11399 msgstr ""
11400
11401 # type: textblock
11402 #. type: textblock
11403 #: ../src/guestfs-actions.pod:2822
11404 msgid "(Added in 1.7.3)"
11405 msgstr ""
11406
11407 # type: =head2
11408 #. type: =head2
11409 #: ../src/guestfs-actions.pod:2824
11410 msgid "guestfs_inspect_get_type"
11411 msgstr ""
11412
11413 # type: verbatim
11414 #. type: verbatim
11415 #: ../src/guestfs-actions.pod:2826
11416 #, no-wrap
11417 msgid ""
11418 " char *\n"
11419 " guestfs_inspect_get_type (guestfs_h *g,\n"
11420 "                           const char *root);\n"
11421 "\n"
11422 msgstr ""
11423
11424 # type: textblock
11425 #. type: textblock
11426 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1936
11427 msgid ""
11428 "This returns the type of the inspected operating system.  Currently defined "
11429 "types are:"
11430 msgstr ""
11431
11432 # type: =item
11433 #. type: =item
11434 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1941
11435 msgid "\"linux\""
11436 msgstr ""
11437
11438 # type: textblock
11439 #. type: textblock
11440 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1943
11441 msgid "Any Linux-based operating system."
11442 msgstr ""
11443
11444 # type: textblock
11445 #. type: textblock
11446 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1947
11447 msgid "Any Microsoft Windows operating system."
11448 msgstr ""
11449
11450 # type: =item
11451 #. type: =item
11452 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1949
11453 msgid "\"freebsd\""
11454 msgstr ""
11455
11456 # type: textblock
11457 #. type: textblock
11458 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1951
11459 msgid "FreeBSD."
11460 msgstr ""
11461
11462 # type: textblock
11463 #. type: textblock
11464 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1955
11465 msgid "The operating system type could not be determined."
11466 msgstr ""
11467
11468 # type: =head2
11469 #. type: =head2
11470 #: ../src/guestfs-actions.pod:2866
11471 msgid "guestfs_inspect_get_windows_systemroot"
11472 msgstr ""
11473
11474 # type: verbatim
11475 #. type: verbatim
11476 #: ../src/guestfs-actions.pod:2868
11477 #, no-wrap
11478 msgid ""
11479 " char *\n"
11480 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11481 "                                         const char *root);\n"
11482 "\n"
11483 msgstr ""
11484
11485 # type: textblock
11486 #. type: textblock
11487 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1971
11488 msgid ""
11489 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11490 "is a directory path such as C</WINDOWS>."
11491 msgstr ""
11492
11493 # type: textblock
11494 #. type: textblock
11495 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1974
11496 msgid ""
11497 "This call assumes that the guest is Windows and that the systemroot could be "
11498 "determined by inspection.  If this is not the case then an error is returned."
11499 msgstr ""
11500
11501 # type: textblock
11502 #. type: textblock
11503 #: ../src/guestfs-actions.pod:2887
11504 msgid "(Added in 1.5.25)"
11505 msgstr ""
11506
11507 # type: =head2
11508 #. type: =head2
11509 #: ../src/guestfs-actions.pod:2889
11510 msgid "guestfs_inspect_list_applications"
11511 msgstr ""
11512
11513 # type: verbatim
11514 #. type: verbatim
11515 #: ../src/guestfs-actions.pod:2891
11516 #, no-wrap
11517 msgid ""
11518 " struct guestfs_application_list *\n"
11519 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11520 "                                    const char *root);\n"
11521 "\n"
11522 msgstr ""
11523
11524 # type: textblock
11525 #. type: textblock
11526 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1987
11527 msgid "Return the list of applications installed in the operating system."
11528 msgstr ""
11529
11530 # type: textblock
11531 #. type: textblock
11532 #: ../src/guestfs-actions.pod:2900
11533 msgid ""
11534 "I<Note:> This call works differently from other parts of the inspection "
11535 "API.  You have to call C<guestfs_inspect_os>, then "
11536 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11537 "this.  Listing applications is a significantly more difficult operation "
11538 "which requires access to the full filesystem.  Also note that unlike the "
11539 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11540 "the libguestfs handle, this call actually reads parts of the mounted "
11541 "filesystems during the call."
11542 msgstr ""
11543
11544 # type: textblock
11545 #. type: textblock
11546 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:1999
11547 msgid ""
11548 "This returns an empty list if the inspection code was not able to determine "
11549 "the list of applications."
11550 msgstr ""
11551
11552 # type: textblock
11553 #. type: textblock
11554 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2002
11555 msgid "The application structure contains the following fields:"
11556 msgstr ""
11557
11558 # type: =item
11559 #. type: =item
11560 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2006
11561 msgid "C<app_name>"
11562 msgstr ""
11563
11564 # type: textblock
11565 #. type: textblock
11566 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2008
11567 msgid ""
11568 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11569 "guests, this is the package name."
11570 msgstr ""
11571
11572 # type: =item
11573 #. type: =item
11574 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2011
11575 msgid "C<app_display_name>"
11576 msgstr ""
11577
11578 # type: textblock
11579 #. type: textblock
11580 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2013
11581 msgid ""
11582 "The display name of the application, sometimes localized to the install "
11583 "language of the guest operating system."
11584 msgstr ""
11585
11586 # type: textblock
11587 #. type: textblock
11588 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2016
11589 msgid ""
11590 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11591 "to display something can use C<app_name> instead."
11592 msgstr ""
11593
11594 # type: =item
11595 #. type: =item
11596 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2019
11597 msgid "C<app_epoch>"
11598 msgstr ""
11599
11600 # type: textblock
11601 #. type: textblock
11602 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2021
11603 msgid ""
11604 "For package managers which use epochs, this contains the epoch of the "
11605 "package (an integer).  If unavailable, this is returned as C<0>."
11606 msgstr ""
11607
11608 # type: =item
11609 #. type: =item
11610 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2024
11611 msgid "C<app_version>"
11612 msgstr ""
11613
11614 # type: textblock
11615 #. type: textblock
11616 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2026
11617 msgid ""
11618 "The version string of the application or package.  If unavailable this is "
11619 "returned as an empty string C<\"\">."
11620 msgstr ""
11621
11622 # type: =item
11623 #. type: =item
11624 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2029
11625 msgid "C<app_release>"
11626 msgstr ""
11627
11628 # type: textblock
11629 #. type: textblock
11630 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2031
11631 msgid ""
11632 "The release string of the application or package, for package managers that "
11633 "use this.  If unavailable this is returned as an empty string C<\"\">."
11634 msgstr ""
11635
11636 # type: =item
11637 #. type: =item
11638 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2035
11639 msgid "C<app_install_path>"
11640 msgstr ""
11641
11642 # type: textblock
11643 #. type: textblock
11644 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2037
11645 msgid ""
11646 "The installation path of the application (on operating systems such as "
11647 "Windows which use installation paths).  This path is in the format used by "
11648 "the guest operating system, it is not a libguestfs path."
11649 msgstr ""
11650
11651 # type: textblock
11652 #. type: textblock
11653 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2042
11654 msgid "If unavailable this is returned as an empty string C<\"\">."
11655 msgstr ""
11656
11657 # type: =item
11658 #. type: =item
11659 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2044
11660 msgid "C<app_trans_path>"
11661 msgstr ""
11662
11663 # type: textblock
11664 #. type: textblock
11665 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2046
11666 msgid ""
11667 "The install path translated into a libguestfs path.  If unavailable this is "
11668 "returned as an empty string C<\"\">."
11669 msgstr ""
11670
11671 # type: =item
11672 #. type: =item
11673 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2049
11674 msgid "C<app_publisher>"
11675 msgstr ""
11676
11677 # type: textblock
11678 #. type: textblock
11679 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2051
11680 msgid ""
11681 "The name of the publisher of the application, for package managers that use "
11682 "this.  If unavailable this is returned as an empty string C<\"\">."
11683 msgstr ""
11684
11685 # type: =item
11686 #. type: =item
11687 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2055
11688 msgid "C<app_url>"
11689 msgstr ""
11690
11691 # type: textblock
11692 #. type: textblock
11693 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2057
11694 msgid ""
11695 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11696 "returned as an empty string C<\"\">."
11697 msgstr ""
11698
11699 # type: =item
11700 #. type: =item
11701 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2060
11702 msgid "C<app_source_package>"
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2062
11708 msgid ""
11709 "For packaging systems which support this, the name of the source package.  "
11710 "If unavailable this is returned as an empty string C<\"\">."
11711 msgstr ""
11712
11713 # type: =item
11714 #. type: =item
11715 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2065
11716 msgid "C<app_summary>"
11717 msgstr ""
11718
11719 # type: textblock
11720 #. type: textblock
11721 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2067
11722 msgid ""
11723 "A short (usually one line) description of the application or package.  If "
11724 "unavailable this is returned as an empty string C<\"\">."
11725 msgstr ""
11726
11727 # type: =item
11728 #. type: =item
11729 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2070
11730 msgid "C<app_description>"
11731 msgstr ""
11732
11733 # type: textblock
11734 #. type: textblock
11735 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2072
11736 msgid ""
11737 "A longer description of the application or package.  If unavailable this is "
11738 "returned as an empty string C<\"\">."
11739 msgstr ""
11740
11741 # type: textblock
11742 #. type: textblock
11743 #: ../src/guestfs-actions.pod:2990
11744 msgid ""
11745 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11746 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11747 "after use>."
11748 msgstr ""
11749
11750 # type: textblock
11751 #. type: textblock
11752 #: ../src/guestfs-actions.pod:2994
11753 msgid "(Added in 1.7.8)"
11754 msgstr ""
11755
11756 # type: =head2
11757 #. type: =head2
11758 #: ../src/guestfs-actions.pod:2996
11759 msgid "guestfs_inspect_os"
11760 msgstr ""
11761
11762 # type: verbatim
11763 #. type: verbatim
11764 #: ../src/guestfs-actions.pod:2998
11765 #, no-wrap
11766 msgid ""
11767 " char **\n"
11768 " guestfs_inspect_os (guestfs_h *g);\n"
11769 "\n"
11770 msgstr ""
11771
11772 # type: textblock
11773 #. type: textblock
11774 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2083
11775 msgid ""
11776 "This function uses other libguestfs functions and certain heuristics to "
11777 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11778 "for operating systems."
11779 msgstr ""
11780
11781 # type: textblock
11782 #. type: textblock
11783 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2087
11784 msgid "The list returned is empty if no operating systems were found."
11785 msgstr ""
11786
11787 # type: textblock
11788 #. type: textblock
11789 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2089
11790 msgid ""
11791 "If one operating system was found, then this returns a list with a single "
11792 "element, which is the name of the root filesystem of this operating system.  "
11793 "It is also possible for this function to return a list containing more than "
11794 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11795 "element being the root filesystem of one of the operating systems."
11796 msgstr ""
11797
11798 # type: textblock
11799 #. type: textblock
11800 #: ../src/guestfs-actions.pod:3014
11801 msgid ""
11802 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11803 "functions in order to query further information about each operating system, "
11804 "such as the name and version."
11805 msgstr ""
11806
11807 # type: textblock
11808 #. type: textblock
11809 #: ../src/guestfs-actions.pod:3019
11810 msgid ""
11811 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11812 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11813 "the contents.  This should be called with no disks currently mounted.  The "
11814 "function may also use Augeas, so any existing Augeas handle will be closed."
11815 msgstr ""
11816
11817 # type: textblock
11818 #. type: textblock
11819 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2107
11820 msgid ""
11821 "This function cannot decrypt encrypted disks.  The caller must do that first "
11822 "(supplying the necessary keys) if the disk is encrypted."
11823 msgstr ""
11824
11825 # type: textblock
11826 #. type: textblock
11827 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3316
11828 #: ../src/guestfs-actions.pod:3378
11829 msgid "See also C<guestfs_list_filesystems>."
11830 msgstr ""
11831
11832 # type: =head2
11833 #. type: =head2
11834 #: ../src/guestfs-actions.pod:3039
11835 msgid "guestfs_is_blockdev"
11836 msgstr ""
11837
11838 # type: verbatim
11839 #. type: verbatim
11840 #: ../src/guestfs-actions.pod:3041
11841 #, no-wrap
11842 msgid ""
11843 " int\n"
11844 " guestfs_is_blockdev (guestfs_h *g,\n"
11845 "                      const char *path);\n"
11846 "\n"
11847 msgstr ""
11848
11849 # type: textblock
11850 #. type: textblock
11851 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2119
11852 msgid ""
11853 "This returns C<true> if and only if there is a block device with the given "
11854 "C<path> name."
11855 msgstr ""
11856
11857 # type: textblock
11858 #. type: textblock
11859 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3077
11860 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3122
11861 #: ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3194
11862 #: ../src/guestfs-actions.pod:3209
11863 msgid "See also C<guestfs_stat>."
11864 msgstr ""
11865
11866 # type: textblock
11867 #. type: textblock
11868 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081
11869 #: ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3198
11870 #: ../src/guestfs-actions.pod:3213
11871 msgid "(Added in 1.5.10)"
11872 msgstr ""
11873
11874 # type: =head2
11875 #. type: =head2
11876 #: ../src/guestfs-actions.pod:3054
11877 msgid "guestfs_is_busy"
11878 msgstr ""
11879
11880 # type: verbatim
11881 #. type: verbatim
11882 #: ../src/guestfs-actions.pod:3056
11883 #, no-wrap
11884 msgid ""
11885 " int\n"
11886 " guestfs_is_busy (guestfs_h *g);\n"
11887 "\n"
11888 msgstr ""
11889
11890 # type: textblock
11891 #. type: textblock
11892 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2128
11893 msgid ""
11894 "This returns true iff this handle is busy processing a command (in the "
11895 "C<BUSY> state)."
11896 msgstr ""
11897
11898 # type: =head2
11899 #. type: =head2
11900 #: ../src/guestfs-actions.pod:3068
11901 msgid "guestfs_is_chardev"
11902 msgstr ""
11903
11904 # type: verbatim
11905 #. type: verbatim
11906 #: ../src/guestfs-actions.pod:3070
11907 #, no-wrap
11908 msgid ""
11909 " int\n"
11910 " guestfs_is_chardev (guestfs_h *g,\n"
11911 "                     const char *path);\n"
11912 "\n"
11913 msgstr ""
11914
11915 # type: textblock
11916 #. type: textblock
11917 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2137
11918 msgid ""
11919 "This returns C<true> if and only if there is a character device with the "
11920 "given C<path> name."
11921 msgstr ""
11922
11923 # type: =head2
11924 #. type: =head2
11925 #: ../src/guestfs-actions.pod:3083
11926 msgid "guestfs_is_config"
11927 msgstr ""
11928
11929 # type: verbatim
11930 #. type: verbatim
11931 #: ../src/guestfs-actions.pod:3085
11932 #, no-wrap
11933 msgid ""
11934 " int\n"
11935 " guestfs_is_config (guestfs_h *g);\n"
11936 "\n"
11937 msgstr ""
11938
11939 # type: textblock
11940 #. type: textblock
11941 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2146
11942 msgid ""
11943 "This returns true iff this handle is being configured (in the C<CONFIG> "
11944 "state)."
11945 msgstr ""
11946
11947 # type: =head2
11948 #. type: =head2
11949 #: ../src/guestfs-actions.pod:3097
11950 msgid "guestfs_is_dir"
11951 msgstr ""
11952
11953 # type: verbatim
11954 #. type: verbatim
11955 #: ../src/guestfs-actions.pod:3099
11956 #, no-wrap
11957 msgid ""
11958 " int\n"
11959 " guestfs_is_dir (guestfs_h *g,\n"
11960 "                 const char *path);\n"
11961 "\n"
11962 msgstr ""
11963
11964 # type: textblock
11965 #. type: textblock
11966 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2155
11967 msgid ""
11968 "This returns C<true> if and only if there is a directory with the given "
11969 "C<path> name.  Note that it returns false for other objects like files."
11970 msgstr ""
11971
11972 # type: =head2
11973 #. type: =head2
11974 #: ../src/guestfs-actions.pod:3113
11975 msgid "guestfs_is_fifo"
11976 msgstr ""
11977
11978 # type: verbatim
11979 #. type: verbatim
11980 #: ../src/guestfs-actions.pod:3115
11981 #, no-wrap
11982 msgid ""
11983 " int\n"
11984 " guestfs_is_fifo (guestfs_h *g,\n"
11985 "                  const char *path);\n"
11986 "\n"
11987 msgstr ""
11988
11989 # type: textblock
11990 #. type: textblock
11991 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2165
11992 msgid ""
11993 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11994 "given C<path> name."
11995 msgstr ""
11996
11997 # type: =head2
11998 #. type: =head2
11999 #: ../src/guestfs-actions.pod:3128
12000 msgid "guestfs_is_file"
12001 msgstr ""
12002
12003 # type: verbatim
12004 #. type: verbatim
12005 #: ../src/guestfs-actions.pod:3130
12006 #, no-wrap
12007 msgid ""
12008 " int\n"
12009 " guestfs_is_file (guestfs_h *g,\n"
12010 "                  const char *path);\n"
12011 "\n"
12012 msgstr ""
12013
12014 # type: textblock
12015 #. type: textblock
12016 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2174
12017 msgid ""
12018 "This returns C<true> if and only if there is a regular file with the given "
12019 "C<path> name.  Note that it returns false for other objects like directories."
12020 msgstr ""
12021
12022 # type: =head2
12023 #. type: =head2
12024 #: ../src/guestfs-actions.pod:3144
12025 msgid "guestfs_is_launching"
12026 msgstr ""
12027
12028 # type: verbatim
12029 #. type: verbatim
12030 #: ../src/guestfs-actions.pod:3146
12031 #, no-wrap
12032 msgid ""
12033 " int\n"
12034 " guestfs_is_launching (guestfs_h *g);\n"
12035 "\n"
12036 msgstr ""
12037
12038 # type: textblock
12039 #. type: textblock
12040 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2184
12041 msgid ""
12042 "This returns true iff this handle is launching the subprocess (in the "
12043 "C<LAUNCHING> state)."
12044 msgstr ""
12045
12046 # type: =head2
12047 #. type: =head2
12048 #: ../src/guestfs-actions.pod:3158
12049 msgid "guestfs_is_lv"
12050 msgstr ""
12051
12052 # type: verbatim
12053 #. type: verbatim
12054 #: ../src/guestfs-actions.pod:3160
12055 #, no-wrap
12056 msgid ""
12057 " int\n"
12058 " guestfs_is_lv (guestfs_h *g,\n"
12059 "                const char *device);\n"
12060 "\n"
12061 msgstr ""
12062
12063 # type: textblock
12064 #. type: textblock
12065 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2193
12066 msgid ""
12067 "This command tests whether C<device> is a logical volume, and returns true "
12068 "iff this is the case."
12069 msgstr ""
12070
12071 # type: =head2
12072 #. type: =head2
12073 #: ../src/guestfs-actions.pod:3171
12074 msgid "guestfs_is_ready"
12075 msgstr ""
12076
12077 # type: verbatim
12078 #. type: verbatim
12079 #: ../src/guestfs-actions.pod:3173
12080 #, no-wrap
12081 msgid ""
12082 " int\n"
12083 " guestfs_is_ready (guestfs_h *g);\n"
12084 "\n"
12085 msgstr ""
12086
12087 # type: textblock
12088 #. type: textblock
12089 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2200
12090 msgid ""
12091 "This returns true iff this handle is ready to accept commands (in the "
12092 "C<READY> state)."
12093 msgstr ""
12094
12095 # type: =head2
12096 #. type: =head2
12097 #: ../src/guestfs-actions.pod:3185
12098 msgid "guestfs_is_socket"
12099 msgstr ""
12100
12101 # type: verbatim
12102 #. type: verbatim
12103 #: ../src/guestfs-actions.pod:3187
12104 #, no-wrap
12105 msgid ""
12106 " int\n"
12107 " guestfs_is_socket (guestfs_h *g,\n"
12108 "                    const char *path);\n"
12109 "\n"
12110 msgstr ""
12111
12112 # type: textblock
12113 #. type: textblock
12114 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2209
12115 msgid ""
12116 "This returns C<true> if and only if there is a Unix domain socket with the "
12117 "given C<path> name."
12118 msgstr ""
12119
12120 # type: =head2
12121 #. type: =head2
12122 #: ../src/guestfs-actions.pod:3200
12123 msgid "guestfs_is_symlink"
12124 msgstr ""
12125
12126 # type: verbatim
12127 #. type: verbatim
12128 #: ../src/guestfs-actions.pod:3202
12129 #, no-wrap
12130 msgid ""
12131 " int\n"
12132 " guestfs_is_symlink (guestfs_h *g,\n"
12133 "                     const char *path);\n"
12134 "\n"
12135 msgstr ""
12136
12137 # type: textblock
12138 #. type: textblock
12139 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2218
12140 msgid ""
12141 "This returns C<true> if and only if there is a symbolic link with the given "
12142 "C<path> name."
12143 msgstr ""
12144
12145 # type: =head2
12146 #. type: =head2
12147 #: ../src/guestfs-actions.pod:3215
12148 msgid "guestfs_kill_subprocess"
12149 msgstr ""
12150
12151 # type: verbatim
12152 #. type: verbatim
12153 #: ../src/guestfs-actions.pod:3217
12154 #, no-wrap
12155 msgid ""
12156 " int\n"
12157 " guestfs_kill_subprocess (guestfs_h *g);\n"
12158 "\n"
12159 msgstr ""
12160
12161 # type: textblock
12162 #. type: textblock
12163 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2227
12164 msgid "This kills the qemu subprocess.  You should never need to call this."
12165 msgstr ""
12166
12167 # type: =head2
12168 #. type: =head2
12169 #: ../src/guestfs-actions.pod:3226
12170 msgid "guestfs_launch"
12171 msgstr ""
12172
12173 # type: verbatim
12174 #. type: verbatim
12175 #: ../src/guestfs-actions.pod:3228
12176 #, no-wrap
12177 msgid ""
12178 " int\n"
12179 " guestfs_launch (guestfs_h *g);\n"
12180 "\n"
12181 msgstr ""
12182
12183 # type: textblock
12184 #. type: textblock
12185 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2235
12186 msgid ""
12187 "Internally libguestfs is implemented by running a virtual machine using "
12188 "L<qemu(1)>."
12189 msgstr ""
12190
12191 # type: textblock
12192 #. type: textblock
12193 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2238
12194 msgid ""
12195 "You should call this after configuring the handle (eg. adding drives) but "
12196 "before performing any actions."
12197 msgstr ""
12198
12199 # type: =head2
12200 #. type: =head2
12201 #: ../src/guestfs-actions.pod:3241
12202 msgid "guestfs_lchown"
12203 msgstr ""
12204
12205 # type: verbatim
12206 #. type: verbatim
12207 #: ../src/guestfs-actions.pod:3243
12208 #, no-wrap
12209 msgid ""
12210 " int\n"
12211 " guestfs_lchown (guestfs_h *g,\n"
12212 "                 int owner,\n"
12213 "                 int group,\n"
12214 "                 const char *path);\n"
12215 "\n"
12216 msgstr ""
12217
12218 # type: textblock
12219 #. type: textblock
12220 #: ../src/guestfs-actions.pod:3249
12221 msgid ""
12222 "Change the file owner to C<owner> and group to C<group>.  This is like "
12223 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12224 "changed, not the target."
12225 msgstr ""
12226
12227 # type: =head2
12228 #. type: =head2
12229 #: ../src/guestfs-actions.pod:3261
12230 msgid "guestfs_lgetxattr"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #. type: verbatim
12235 #: ../src/guestfs-actions.pod:3263
12236 #, no-wrap
12237 msgid ""
12238 " char *\n"
12239 " guestfs_lgetxattr (guestfs_h *g,\n"
12240 "                    const char *path,\n"
12241 "                    const char *name,\n"
12242 "                    size_t *size_r);\n"
12243 "\n"
12244 msgstr ""
12245
12246 # type: textblock
12247 #. type: textblock
12248 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2257
12249 msgid ""
12250 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12251 "is a symlink, then this call returns an extended attribute from the symlink."
12252 msgstr ""
12253
12254 # type: textblock
12255 #. type: textblock
12256 #: ../src/guestfs-actions.pod:3283
12257 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12258 msgstr ""
12259
12260 # type: =head2
12261 #. type: =head2
12262 #: ../src/guestfs-actions.pod:3291
12263 msgid "guestfs_lgetxattrs"
12264 msgstr ""
12265
12266 # type: verbatim
12267 #. type: verbatim
12268 #: ../src/guestfs-actions.pod:3293
12269 #, no-wrap
12270 msgid ""
12271 " struct guestfs_xattr_list *\n"
12272 " guestfs_lgetxattrs (guestfs_h *g,\n"
12273 "                     const char *path);\n"
12274 "\n"
12275 msgstr ""
12276
12277 # type: textblock
12278 #. type: textblock
12279 #: ../src/guestfs-actions.pod:3297
12280 msgid ""
12281 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12282 "then it returns the extended attributes of the link itself."
12283 msgstr ""
12284
12285 # type: =head2
12286 #. type: =head2
12287 #: ../src/guestfs-actions.pod:3307
12288 msgid "guestfs_list_devices"
12289 msgstr ""
12290
12291 # type: verbatim
12292 #. type: verbatim
12293 #: ../src/guestfs-actions.pod:3309
12294 #, no-wrap
12295 msgid ""
12296 " char **\n"
12297 " guestfs_list_devices (guestfs_h *g);\n"
12298 "\n"
12299 msgstr ""
12300
12301 # type: textblock
12302 #. type: textblock
12303 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2285
12304 msgid "List all the block devices."
12305 msgstr ""
12306
12307 # type: textblock
12308 #. type: textblock
12309 #: ../src/guestfs-actions.pod:3314 ../fish/guestfish-actions.pod:2287
12310 msgid "The full block device names are returned, eg. C</dev/sda>."
12311 msgstr ""
12312
12313 # type: =head2
12314 #. type: =head2
12315 #: ../src/guestfs-actions.pod:3324
12316 msgid "guestfs_list_filesystems"
12317 msgstr ""
12318
12319 # type: verbatim
12320 #. type: verbatim
12321 #: ../src/guestfs-actions.pod:3326
12322 #, no-wrap
12323 msgid ""
12324 " char **\n"
12325 " guestfs_list_filesystems (guestfs_h *g);\n"
12326 "\n"
12327 msgstr ""
12328
12329 # type: textblock
12330 #. type: textblock
12331 #: ../src/guestfs-actions.pod:3329 ../fish/guestfish-actions.pod:2295
12332 msgid ""
12333 "This inspection command looks for filesystems on partitions, block devices "
12334 "and logical volumes, returning a list of devices containing filesystems and "
12335 "their type."
12336 msgstr ""
12337
12338 # type: textblock
12339 #. type: textblock
12340 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2299
12341 msgid ""
12342 "The return value is a hash, where the keys are the devices containing "
12343 "filesystems, and the values are the filesystem types.  For example:"
12344 msgstr ""
12345
12346 # type: verbatim
12347 #. type: verbatim
12348 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2303
12349 #, no-wrap
12350 msgid ""
12351 " \"/dev/sda1\" => \"ntfs\"\n"
12352 " \"/dev/sda2\" => \"ext2\"\n"
12353 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12354 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12355 "\n"
12356 msgstr ""
12357
12358 # type: textblock
12359 #. type: textblock
12360 #: ../src/guestfs-actions.pod:3342 ../fish/guestfish-actions.pod:2308
12361 msgid ""
12362 "The value can have the special value \"unknown\", meaning the content of the "
12363 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12364 msgstr ""
12365
12366 # type: textblock
12367 #. type: textblock
12368 #: ../src/guestfs-actions.pod:3346
12369 msgid ""
12370 "This command runs other libguestfs commands, which might include "
12371 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12372 "soon after launch and only when nothing is mounted."
12373 msgstr ""
12374
12375 # type: textblock
12376 #. type: textblock
12377 #: ../src/guestfs-actions.pod:3350
12378 msgid ""
12379 "Not all of the filesystems returned will be mountable.  In particular, swap "
12380 "partitions are returned in the list.  Also this command does not check that "
12381 "each filesystem found is valid and mountable, and some filesystems might be "
12382 "mountable but require special options.  Filesystems may not all belong to a "
12383 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12384 msgstr ""
12385
12386 # type: textblock
12387 #. type: textblock
12388 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:4955
12389 msgid "(Added in 1.5.15)"
12390 msgstr ""
12391
12392 # type: =head2
12393 #. type: =head2
12394 #: ../src/guestfs-actions.pod:3366
12395 msgid "guestfs_list_partitions"
12396 msgstr ""
12397
12398 # type: verbatim
12399 #. type: verbatim
12400 #: ../src/guestfs-actions.pod:3368
12401 #, no-wrap
12402 msgid ""
12403 " char **\n"
12404 " guestfs_list_partitions (guestfs_h *g);\n"
12405 "\n"
12406 msgstr ""
12407
12408 # type: textblock
12409 #. type: textblock
12410 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2328
12411 msgid "List all the partitions detected on all block devices."
12412 msgstr ""
12413
12414 # type: textblock
12415 #. type: textblock
12416 #: ../src/guestfs-actions.pod:3373 ../fish/guestfish-actions.pod:2330
12417 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12418 msgstr ""
12419
12420 # type: textblock
12421 #. type: textblock
12422 #: ../src/guestfs-actions.pod:3375
12423 msgid ""
12424 "This does not return logical volumes.  For that you will need to call "
12425 "C<guestfs_lvs>."
12426 msgstr ""
12427
12428 # type: =head2
12429 #. type: =head2
12430 #: ../src/guestfs-actions.pod:3386
12431 msgid "guestfs_ll"
12432 msgstr ""
12433
12434 # type: verbatim
12435 #. type: verbatim
12436 #: ../src/guestfs-actions.pod:3388
12437 #, no-wrap
12438 msgid ""
12439 " char *\n"
12440 " guestfs_ll (guestfs_h *g,\n"
12441 "             const char *directory);\n"
12442 "\n"
12443 msgstr ""
12444
12445 # type: textblock
12446 #. type: textblock
12447 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2341
12448 msgid ""
12449 "List the files in C<directory> (relative to the root directory, there is no "
12450 "cwd) in the format of 'ls -la'."
12451 msgstr ""
12452
12453 # type: textblock
12454 #. type: textblock
12455 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2344
12456 msgid ""
12457 "This command is mostly useful for interactive sessions.  It is I<not> "
12458 "intended that you try to parse the output string."
12459 msgstr ""
12460
12461 # type: =head2
12462 #. type: =head2
12463 #: ../src/guestfs-actions.pod:3403
12464 msgid "guestfs_ln"
12465 msgstr ""
12466
12467 # type: verbatim
12468 #. type: verbatim
12469 #: ../src/guestfs-actions.pod:3405
12470 #, no-wrap
12471 msgid ""
12472 " int\n"
12473 " guestfs_ln (guestfs_h *g,\n"
12474 "             const char *target,\n"
12475 "             const char *linkname);\n"
12476 "\n"
12477 msgstr ""
12478
12479 # type: textblock
12480 #. type: textblock
12481 #: ../src/guestfs-actions.pod:3410 ../fish/guestfish-actions.pod:2351
12482 msgid "This command creates a hard link using the C<ln> command."
12483 msgstr ""
12484
12485 # type: =head2
12486 #. type: =head2
12487 #: ../src/guestfs-actions.pod:3416
12488 msgid "guestfs_ln_f"
12489 msgstr ""
12490
12491 # type: verbatim
12492 #. type: verbatim
12493 #: ../src/guestfs-actions.pod:3418
12494 #, no-wrap
12495 msgid ""
12496 " int\n"
12497 " guestfs_ln_f (guestfs_h *g,\n"
12498 "               const char *target,\n"
12499 "               const char *linkname);\n"
12500 "\n"
12501 msgstr ""
12502
12503 # type: textblock
12504 #. type: textblock
12505 #: ../src/guestfs-actions.pod:3423 ../fish/guestfish-actions.pod:2357
12506 msgid ""
12507 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
12508 "option removes the link (C<linkname>) if it exists already."
12509 msgstr ""
12510
12511 # type: =head2
12512 #. type: =head2
12513 #: ../src/guestfs-actions.pod:3430
12514 msgid "guestfs_ln_s"
12515 msgstr ""
12516
12517 # type: verbatim
12518 #. type: verbatim
12519 #: ../src/guestfs-actions.pod:3432
12520 #, no-wrap
12521 msgid ""
12522 " int\n"
12523 " guestfs_ln_s (guestfs_h *g,\n"
12524 "               const char *target,\n"
12525 "               const char *linkname);\n"
12526 "\n"
12527 msgstr ""
12528
12529 # type: textblock
12530 #. type: textblock
12531 #: ../src/guestfs-actions.pod:3437 ../fish/guestfish-actions.pod:2364
12532 msgid "This command creates a symbolic link using the C<ln -s> command."
12533 msgstr ""
12534
12535 # type: =head2
12536 #. type: =head2
12537 #: ../src/guestfs-actions.pod:3443
12538 msgid "guestfs_ln_sf"
12539 msgstr ""
12540
12541 # type: verbatim
12542 #. type: verbatim
12543 #: ../src/guestfs-actions.pod:3445
12544 #, no-wrap
12545 msgid ""
12546 " int\n"
12547 " guestfs_ln_sf (guestfs_h *g,\n"
12548 "                const char *target,\n"
12549 "                const char *linkname);\n"
12550 "\n"
12551 msgstr ""
12552
12553 # type: textblock
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:3450 ../fish/guestfish-actions.pod:2370
12556 msgid ""
12557 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
12558 "option removes the link (C<linkname>) if it exists already."
12559 msgstr ""
12560
12561 # type: =head2
12562 #. type: =head2
12563 #: ../src/guestfs-actions.pod:3457
12564 msgid "guestfs_lremovexattr"
12565 msgstr ""
12566
12567 # type: verbatim
12568 #. type: verbatim
12569 #: ../src/guestfs-actions.pod:3459
12570 #, no-wrap
12571 msgid ""
12572 " int\n"
12573 " guestfs_lremovexattr (guestfs_h *g,\n"
12574 "                       const char *xattr,\n"
12575 "                       const char *path);\n"
12576 "\n"
12577 msgstr ""
12578
12579 # type: textblock
12580 #. type: textblock
12581 #: ../src/guestfs-actions.pod:3464
12582 msgid ""
12583 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12584 "link, then it removes an extended attribute of the link itself."
12585 msgstr ""
12586
12587 # type: =head2
12588 #. type: =head2
12589 #: ../src/guestfs-actions.pod:3472
12590 msgid "guestfs_ls"
12591 msgstr ""
12592
12593 # type: verbatim
12594 #. type: verbatim
12595 #: ../src/guestfs-actions.pod:3474
12596 #, no-wrap
12597 msgid ""
12598 " char **\n"
12599 " guestfs_ls (guestfs_h *g,\n"
12600 "             const char *directory);\n"
12601 "\n"
12602 msgstr ""
12603
12604 # type: textblock
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2385
12607 msgid ""
12608 "List the files in C<directory> (relative to the root directory, there is no "
12609 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12610 msgstr ""
12611
12612 # type: textblock
12613 #. type: textblock
12614 #: ../src/guestfs-actions.pod:3482
12615 msgid ""
12616 "This command is mostly useful for interactive sessions.  Programs should "
12617 "probably use C<guestfs_readdir> instead."
12618 msgstr ""
12619
12620 # type: =head2
12621 #. type: =head2
12622 #: ../src/guestfs-actions.pod:3491
12623 msgid "guestfs_lsetxattr"
12624 msgstr ""
12625
12626 # type: verbatim
12627 #. type: verbatim
12628 #: ../src/guestfs-actions.pod:3493
12629 #, no-wrap
12630 msgid ""
12631 " int\n"
12632 " guestfs_lsetxattr (guestfs_h *g,\n"
12633 "                    const char *xattr,\n"
12634 "                    const char *val,\n"
12635 "                    int vallen,\n"
12636 "                    const char *path);\n"
12637 "\n"
12638 msgstr ""
12639
12640 # type: textblock
12641 #. type: textblock
12642 #: ../src/guestfs-actions.pod:3500
12643 msgid ""
12644 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12645 "then it sets an extended attribute of the link itself."
12646 msgstr ""
12647
12648 # type: =head2
12649 #. type: =head2
12650 #: ../src/guestfs-actions.pod:3508
12651 msgid "guestfs_lstat"
12652 msgstr ""
12653
12654 # type: verbatim
12655 #. type: verbatim
12656 #: ../src/guestfs-actions.pod:3510
12657 #, no-wrap
12658 msgid ""
12659 " struct guestfs_stat *\n"
12660 " guestfs_lstat (guestfs_h *g,\n"
12661 "                const char *path);\n"
12662 "\n"
12663 msgstr ""
12664
12665 # type: textblock
12666 #. type: textblock
12667 #: ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:6009
12668 #: ../fish/guestfish-actions.pod:2404 ../fish/guestfish-actions.pod:4017
12669 msgid "Returns file information for the given C<path>."
12670 msgstr ""
12671
12672 # type: textblock
12673 #. type: textblock
12674 #: ../src/guestfs-actions.pod:3516
12675 msgid ""
12676 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12677 "link, then the link is stat-ed, not the file it refers to."
12678 msgstr ""
12679
12680 # type: textblock
12681 #. type: textblock
12682 #: ../src/guestfs-actions.pod:3520 ../fish/guestfish-actions.pod:2410
12683 msgid "This is the same as the C<lstat(2)> system call."
12684 msgstr ""
12685
12686 # type: textblock
12687 #. type: textblock
12688 #: ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:6013
12689 msgid ""
12690 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12691 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12692 msgstr ""
12693
12694 # type: textblock
12695 #. type: textblock
12696 #: ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:6017
12697 #: ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6416
12698 msgid "(Added in 0.9.2)"
12699 msgstr ""
12700
12701 # type: =head2
12702 #. type: =head2
12703 #: ../src/guestfs-actions.pod:3528
12704 msgid "guestfs_lstatlist"
12705 msgstr ""
12706
12707 # type: verbatim
12708 #. type: verbatim
12709 #: ../src/guestfs-actions.pod:3530
12710 #, no-wrap
12711 msgid ""
12712 " struct guestfs_stat_list *\n"
12713 " guestfs_lstatlist (guestfs_h *g,\n"
12714 "                    const char *path,\n"
12715 "                    char *const *names);\n"
12716 "\n"
12717 msgstr ""
12718
12719 # type: textblock
12720 #. type: textblock
12721 #: ../src/guestfs-actions.pod:3535
12722 msgid ""
12723 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12724 "files, where all files are in the directory C<path>.  C<names> is the list "
12725 "of files from this directory."
12726 msgstr ""
12727
12728 # type: textblock
12729 #. type: textblock
12730 #: ../src/guestfs-actions.pod:3539 ../fish/guestfish-actions.pod:2420
12731 msgid ""
12732 "On return you get a list of stat structs, with a one-to-one correspondence "
12733 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12734 "then the C<ino> field of that structure is set to C<-1>."
12735 msgstr ""
12736
12737 # type: textblock
12738 #. type: textblock
12739 #: ../src/guestfs-actions.pod:3544
12740 msgid ""
12741 "This call is intended for programs that want to efficiently list a directory "
12742 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12743 "for a similarly efficient call for getting extended attributes.  Very long "
12744 "directory listings might cause the protocol message size to be exceeded, "
12745 "causing this call to fail.  The caller must split up such requests into "
12746 "smaller groups of names."
12747 msgstr ""
12748
12749 # type: textblock
12750 #. type: textblock
12751 #: ../src/guestfs-actions.pod:3552
12752 msgid ""
12753 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12754 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12755 msgstr ""
12756
12757 # type: =head2
12758 #. type: =head2
12759 #: ../src/guestfs-actions.pod:3558
12760 msgid "guestfs_luks_add_key"
12761 msgstr ""
12762
12763 # type: verbatim
12764 #. type: verbatim
12765 #: ../src/guestfs-actions.pod:3560
12766 #, no-wrap
12767 msgid ""
12768 " int\n"
12769 " guestfs_luks_add_key (guestfs_h *g,\n"
12770 "                       const char *device,\n"
12771 "                       const char *key,\n"
12772 "                       const char *newkey,\n"
12773 "                       int keyslot);\n"
12774 "\n"
12775 msgstr ""
12776
12777 # type: textblock
12778 #. type: textblock
12779 #: ../src/guestfs-actions.pod:3567 ../fish/guestfish-actions.pod:2437
12780 msgid ""
12781 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12782 "existing key, and is used to access the device.  C<newkey> is the new key to "
12783 "add.  C<keyslot> is the key slot that will be replaced."
12784 msgstr ""
12785
12786 # type: textblock
12787 #. type: textblock
12788 #: ../src/guestfs-actions.pod:3572
12789 msgid ""
12790 "Note that if C<keyslot> already contains a key, then this command will "
12791 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12792 msgstr ""
12793
12794 # type: textblock
12795 #. type: textblock
12796 #: ../src/guestfs-actions.pod:3578 ../src/guestfs-actions.pod:3618
12797 #: ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3661
12798 #: ../src/guestfs-actions.pod:3693 ../src/guestfs-actions.pod:3712
12799 msgid ""
12800 "This function takes a key or passphrase parameter which could contain "
12801 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12802 "information."
12803 msgstr ""
12804
12805 # type: textblock
12806 #. type: textblock
12807 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:3622
12808 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3665
12809 msgid "(Added in 1.5.2)"
12810 msgstr ""
12811
12812 # type: =head2
12813 #. type: =head2
12814 #: ../src/guestfs-actions.pod:3584
12815 msgid "guestfs_luks_close"
12816 msgstr ""
12817
12818 # type: verbatim
12819 #. type: verbatim
12820 #: ../src/guestfs-actions.pod:3586
12821 #, no-wrap
12822 msgid ""
12823 " int\n"
12824 " guestfs_luks_close (guestfs_h *g,\n"
12825 "                     const char *device);\n"
12826 "\n"
12827 msgstr ""
12828
12829 # type: textblock
12830 #. type: textblock
12831 #: ../src/guestfs-actions.pod:3590
12832 msgid ""
12833 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12834 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12835 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12836 "underlying block device."
12837 msgstr ""
12838
12839 # type: textblock
12840 #. type: textblock
12841 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3697
12842 #: ../src/guestfs-actions.pod:3716 ../src/guestfs-actions.pod:3766
12843 #: ../src/guestfs-actions.pod:3814
12844 msgid "(Added in 1.5.1)"
12845 msgstr ""
12846
12847 # type: =head2
12848 #. type: =head2
12849 #: ../src/guestfs-actions.pod:3600
12850 msgid "guestfs_luks_format"
12851 msgstr ""
12852
12853 # type: verbatim
12854 #. type: verbatim
12855 #: ../src/guestfs-actions.pod:3602
12856 #, no-wrap
12857 msgid ""
12858 " int\n"
12859 " guestfs_luks_format (guestfs_h *g,\n"
12860 "                      const char *device,\n"
12861 "                      const char *key,\n"
12862 "                      int keyslot);\n"
12863 "\n"
12864 msgstr ""
12865
12866 # type: textblock
12867 #. type: textblock
12868 #: ../src/guestfs-actions.pod:3608 ../fish/guestfish-actions.pod:2463
12869 msgid ""
12870 "This command erases existing data on C<device> and formats the device as a "
12871 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12872 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12873 msgstr ""
12874
12875 # type: textblock
12876 #. type: textblock
12877 #: ../src/guestfs-actions.pod:3615 ../src/guestfs-actions.pod:3638
12878 #: ../src/guestfs-actions.pod:3778 ../src/guestfs-actions.pod:4706
12879 #: ../src/guestfs-actions.pod:5469 ../src/guestfs-actions.pod:5844
12880 #: ../src/guestfs-actions.pod:5867 ../src/guestfs-actions.pod:5893
12881 #: ../src/guestfs-actions.pod:7053 ../fish/guestfish-actions.pod:2471
12882 #: ../fish/guestfish-actions.pod:2484 ../fish/guestfish-actions.pod:2568
12883 #: ../fish/guestfish-actions.pod:3129 ../fish/guestfish-actions.pod:3636
12884 #: ../fish/guestfish-actions.pod:3916 ../fish/guestfish-actions.pod:3932
12885 #: ../fish/guestfish-actions.pod:3947 ../fish/guestfish-actions.pod:4662
12886 msgid ""
12887 "B<This command is dangerous.  Without careful use you can easily destroy all "
12888 "your data>."
12889 msgstr ""
12890
12891 # type: =head2
12892 #. type: =head2
12893 #: ../src/guestfs-actions.pod:3624
12894 msgid "guestfs_luks_format_cipher"
12895 msgstr ""
12896
12897 # type: verbatim
12898 #. type: verbatim
12899 #: ../src/guestfs-actions.pod:3626
12900 #, no-wrap
12901 msgid ""
12902 " int\n"
12903 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12904 "                             const char *device,\n"
12905 "                             const char *key,\n"
12906 "                             int keyslot,\n"
12907 "                             const char *cipher);\n"
12908 "\n"
12909 msgstr ""
12910
12911 # type: textblock
12912 #. type: textblock
12913 #: ../src/guestfs-actions.pod:3633
12914 msgid ""
12915 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12916 "set the C<cipher> used."
12917 msgstr ""
12918
12919 # type: =head2
12920 #. type: =head2
12921 #: ../src/guestfs-actions.pod:3647
12922 msgid "guestfs_luks_kill_slot"
12923 msgstr ""
12924
12925 # type: verbatim
12926 #. type: verbatim
12927 #: ../src/guestfs-actions.pod:3649
12928 #, no-wrap
12929 msgid ""
12930 " int\n"
12931 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12932 "                         const char *device,\n"
12933 "                         const char *key,\n"
12934 "                         int keyslot);\n"
12935 "\n"
12936 msgstr ""
12937
12938 # type: textblock
12939 #. type: textblock
12940 #: ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:2491
12941 msgid ""
12942 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12943 "device C<device>.  C<key> must be one of the I<other> keys."
12944 msgstr ""
12945
12946 # type: =head2
12947 #. type: =head2
12948 #: ../src/guestfs-actions.pod:3667
12949 msgid "guestfs_luks_open"
12950 msgstr ""
12951
12952 # type: verbatim
12953 #. type: verbatim
12954 #: ../src/guestfs-actions.pod:3669
12955 #, no-wrap
12956 msgid ""
12957 " int\n"
12958 " guestfs_luks_open (guestfs_h *g,\n"
12959 "                    const char *device,\n"
12960 "                    const char *key,\n"
12961 "                    const char *mapname);\n"
12962 "\n"
12963 msgstr ""
12964
12965 # type: textblock
12966 #. type: textblock
12967 #: ../src/guestfs-actions.pod:3675 ../fish/guestfish-actions.pod:2502
12968 msgid ""
12969 "This command opens a block device which has been encrypted according to the "
12970 "Linux Unified Key Setup (LUKS) standard."
12971 msgstr ""
12972
12973 # type: textblock
12974 #. type: textblock
12975 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2505
12976 msgid "C<device> is the encrypted block device or partition."
12977 msgstr ""
12978
12979 # type: textblock
12980 #. type: textblock
12981 #: ../src/guestfs-actions.pod:3680 ../fish/guestfish-actions.pod:2507
12982 msgid ""
12983 "The caller must supply one of the keys associated with the LUKS block "
12984 "device, in the C<key> parameter."
12985 msgstr ""
12986
12987 # type: textblock
12988 #. type: textblock
12989 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2510
12990 msgid ""
12991 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12992 "writes to this block device are decrypted from and encrypted to the "
12993 "underlying C<device> respectively."
12994 msgstr ""
12995
12996 # type: textblock
12997 #. type: textblock
12998 #: ../src/guestfs-actions.pod:3687
12999 msgid ""
13000 "If this block device contains LVM volume groups, then calling "
13001 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13002 "visible."
13003 msgstr ""
13004
13005 # type: =head2
13006 #. type: =head2
13007 #: ../src/guestfs-actions.pod:3699
13008 msgid "guestfs_luks_open_ro"
13009 msgstr ""
13010
13011 # type: verbatim
13012 #. type: verbatim
13013 #: ../src/guestfs-actions.pod:3701
13014 #, no-wrap
13015 msgid ""
13016 " int\n"
13017 " guestfs_luks_open_ro (guestfs_h *g,\n"
13018 "                       const char *device,\n"
13019 "                       const char *key,\n"
13020 "                       const char *mapname);\n"
13021 "\n"
13022 msgstr ""
13023
13024 # type: textblock
13025 #. type: textblock
13026 #: ../src/guestfs-actions.pod:3707
13027 msgid ""
13028 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13029 "created."
13030 msgstr ""
13031
13032 # type: =head2
13033 #. type: =head2
13034 #: ../src/guestfs-actions.pod:3718
13035 msgid "guestfs_lvcreate"
13036 msgstr ""
13037
13038 # type: verbatim
13039 #. type: verbatim
13040 #: ../src/guestfs-actions.pod:3720
13041 #, no-wrap
13042 msgid ""
13043 " int\n"
13044 " guestfs_lvcreate (guestfs_h *g,\n"
13045 "                   const char *logvol,\n"
13046 "                   const char *volgroup,\n"
13047 "                   int mbytes);\n"
13048 "\n"
13049 msgstr ""
13050
13051 # type: textblock
13052 #. type: textblock
13053 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2535
13054 msgid ""
13055 "This creates an LVM logical volume called C<logvol> on the volume group "
13056 "C<volgroup>, with C<size> megabytes."
13057 msgstr ""
13058
13059 # type: =head2
13060 #. type: =head2
13061 #: ../src/guestfs-actions.pod:3733
13062 msgid "guestfs_lvm_canonical_lv_name"
13063 msgstr ""
13064
13065 # type: verbatim
13066 #. type: verbatim
13067 #: ../src/guestfs-actions.pod:3735
13068 #, no-wrap
13069 msgid ""
13070 " char *\n"
13071 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13072 "                                const char *lvname);\n"
13073 "\n"
13074 msgstr ""
13075
13076 # type: textblock
13077 #. type: textblock
13078 #: ../src/guestfs-actions.pod:3739 ../fish/guestfish-actions.pod:2542
13079 msgid ""
13080 "This converts alternative naming schemes for LVs that you might find to the "
13081 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13082 "LV>."
13083 msgstr ""
13084
13085 # type: textblock
13086 #. type: textblock
13087 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2546
13088 msgid ""
13089 "This command returns an error if the C<lvname> parameter does not refer to a "
13090 "logical volume."
13091 msgstr ""
13092
13093 # type: textblock
13094 #. type: textblock
13095 #: ../src/guestfs-actions.pod:3746
13096 msgid "See also C<guestfs_is_lv>."
13097 msgstr ""
13098
13099 # type: textblock
13100 #. type: textblock
13101 #: ../src/guestfs-actions.pod:3751
13102 msgid "(Added in 1.5.24)"
13103 msgstr ""
13104
13105 # type: =head2
13106 #. type: =head2
13107 #: ../src/guestfs-actions.pod:3753
13108 msgid "guestfs_lvm_clear_filter"
13109 msgstr ""
13110
13111 # type: verbatim
13112 #. type: verbatim
13113 #: ../src/guestfs-actions.pod:3755
13114 #, no-wrap
13115 msgid ""
13116 " int\n"
13117 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13118 "\n"
13119 msgstr ""
13120
13121 # type: textblock
13122 #. type: textblock
13123 #: ../src/guestfs-actions.pod:3758
13124 msgid ""
13125 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13126 "see every block device."
13127 msgstr ""
13128
13129 # type: textblock
13130 #. type: textblock
13131 #: ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3803
13132 #: ../fish/guestfish-actions.pod:2558 ../fish/guestfish-actions.pod:2589
13133 msgid ""
13134 "This command also clears the LVM cache and performs a volume group scan."
13135 msgstr ""
13136
13137 # type: =head2
13138 #. type: =head2
13139 #: ../src/guestfs-actions.pod:3768
13140 msgid "guestfs_lvm_remove_all"
13141 msgstr ""
13142
13143 # type: verbatim
13144 #. type: verbatim
13145 #: ../src/guestfs-actions.pod:3770
13146 #, no-wrap
13147 msgid ""
13148 " int\n"
13149 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13150 "\n"
13151 msgstr ""
13152
13153 # type: textblock
13154 #. type: textblock
13155 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2565
13156 msgid ""
13157 "This command removes all LVM logical volumes, volume groups and physical "
13158 "volumes."
13159 msgstr ""
13160
13161 # type: =head2
13162 #. type: =head2
13163 #: ../src/guestfs-actions.pod:3783
13164 msgid "guestfs_lvm_set_filter"
13165 msgstr ""
13166
13167 # type: verbatim
13168 #. type: verbatim
13169 #: ../src/guestfs-actions.pod:3785
13170 #, no-wrap
13171 msgid ""
13172 " int\n"
13173 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13174 "                         char *const *devices);\n"
13175 "\n"
13176 msgstr ""
13177
13178 # type: textblock
13179 #. type: textblock
13180 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2575
13181 msgid ""
13182 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13183 "block devices in the list C<devices>, and will ignore all other attached "
13184 "block devices."
13185 msgstr ""
13186
13187 # type: textblock
13188 #. type: textblock
13189 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2579
13190 msgid ""
13191 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13192 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13193 "there are two types of duplication possible: either cloned PVs/VGs which "
13194 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13195 "same name.  In normal operation you cannot create this situation, but you "
13196 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13197 "inside the LVM metadata."
13198 msgstr ""
13199
13200 # type: textblock
13201 #. type: textblock
13202 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2592
13203 msgid "You can filter whole block devices or individual partitions."
13204 msgstr ""
13205
13206 # type: textblock
13207 #. type: textblock
13208 #: ../src/guestfs-actions.pod:3808 ../fish/guestfish-actions.pod:2594
13209 msgid ""
13210 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13211 "filesystem), even if you are not filtering out that VG."
13212 msgstr ""
13213
13214 # type: =head2
13215 #. type: =head2
13216 #: ../src/guestfs-actions.pod:3816
13217 msgid "guestfs_lvremove"
13218 msgstr ""
13219
13220 # type: verbatim
13221 #. type: verbatim
13222 #: ../src/guestfs-actions.pod:3818
13223 #, no-wrap
13224 msgid ""
13225 " int\n"
13226 " guestfs_lvremove (guestfs_h *g,\n"
13227 "                   const char *device);\n"
13228 "\n"
13229 msgstr ""
13230
13231 # type: textblock
13232 #. type: textblock
13233 #: ../src/guestfs-actions.pod:3822 ../fish/guestfish-actions.pod:2602
13234 msgid ""
13235 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13236 "LV, such as C</dev/VG/LV>."
13237 msgstr ""
13238
13239 # type: textblock
13240 #. type: textblock
13241 #: ../src/guestfs-actions.pod:3825 ../fish/guestfish-actions.pod:2605
13242 msgid ""
13243 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13244 "dev/VG>."
13245 msgstr ""
13246
13247 # type: textblock
13248 #. type: textblock
13249 #: ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:5052
13250 #: ../src/guestfs-actions.pod:6792
13251 msgid "(Added in 1.0.13)"
13252 msgstr ""
13253
13254 # type: =head2
13255 #. type: =head2
13256 #: ../src/guestfs-actions.pod:3832
13257 msgid "guestfs_lvrename"
13258 msgstr ""
13259
13260 # type: verbatim
13261 #. type: verbatim
13262 #: ../src/guestfs-actions.pod:3834
13263 #, no-wrap
13264 msgid ""
13265 " int\n"
13266 " guestfs_lvrename (guestfs_h *g,\n"
13267 "                   const char *logvol,\n"
13268 "                   const char *newlogvol);\n"
13269 "\n"
13270 msgstr ""
13271
13272 # type: textblock
13273 #. type: textblock
13274 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2612
13275 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13276 msgstr ""
13277
13278 # type: textblock
13279 #. type: textblock
13280 #: ../src/guestfs-actions.pod:3843 ../src/guestfs-actions.pod:6805
13281 msgid "(Added in 1.0.83)"
13282 msgstr ""
13283
13284 # type: =head2
13285 #. type: =head2
13286 #: ../src/guestfs-actions.pod:3845
13287 msgid "guestfs_lvresize"
13288 msgstr ""
13289
13290 # type: verbatim
13291 #. type: verbatim
13292 #: ../src/guestfs-actions.pod:3847
13293 #, no-wrap
13294 msgid ""
13295 " int\n"
13296 " guestfs_lvresize (guestfs_h *g,\n"
13297 "                   const char *device,\n"
13298 "                   int mbytes);\n"
13299 "\n"
13300 msgstr ""
13301
13302 # type: textblock
13303 #. type: textblock
13304 #: ../src/guestfs-actions.pod:3852 ../fish/guestfish-actions.pod:2618
13305 msgid ""
13306 "This resizes (expands or shrinks) an existing LVM logical volume to "
13307 "C<mbytes>.  When reducing, data in the reduced part is lost."
13308 msgstr ""
13309
13310 # type: =head2
13311 #. type: =head2
13312 #: ../src/guestfs-actions.pod:3860
13313 msgid "guestfs_lvresize_free"
13314 msgstr ""
13315
13316 # type: verbatim
13317 #. type: verbatim
13318 #: ../src/guestfs-actions.pod:3862
13319 #, no-wrap
13320 msgid ""
13321 " int\n"
13322 " guestfs_lvresize_free (guestfs_h *g,\n"
13323 "                        const char *lv,\n"
13324 "                        int percent);\n"
13325 "\n"
13326 msgstr ""
13327
13328 # type: textblock
13329 #. type: textblock
13330 #: ../src/guestfs-actions.pod:3867 ../fish/guestfish-actions.pod:2626
13331 msgid ""
13332 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13333 "remaining free space in the volume group.  Commonly you would call this with "
13334 "pc = 100 which expands the logical volume as much as possible, using all "
13335 "remaining free space in the volume group."
13336 msgstr ""
13337
13338 # type: textblock
13339 #. type: textblock
13340 #: ../src/guestfs-actions.pod:3875
13341 msgid "(Added in 1.3.3)"
13342 msgstr ""
13343
13344 # type: =head2
13345 #. type: =head2
13346 #: ../src/guestfs-actions.pod:3877
13347 msgid "guestfs_lvs"
13348 msgstr ""
13349
13350 # type: verbatim
13351 #. type: verbatim
13352 #: ../src/guestfs-actions.pod:3879
13353 #, no-wrap
13354 msgid ""
13355 " char **\n"
13356 " guestfs_lvs (guestfs_h *g);\n"
13357 "\n"
13358 msgstr ""
13359
13360 # type: textblock
13361 #. type: textblock
13362 #: ../src/guestfs-actions.pod:3882 ../fish/guestfish-actions.pod:2636
13363 msgid ""
13364 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13365 "(8)> command."
13366 msgstr ""
13367
13368 # type: textblock
13369 #. type: textblock
13370 #: ../src/guestfs-actions.pod:3885 ../fish/guestfish-actions.pod:2639
13371 msgid ""
13372 "This returns a list of the logical volume device names (eg. C</dev/"
13373 "VolGroup00/LogVol00>)."
13374 msgstr ""
13375
13376 # type: textblock
13377 #. type: textblock
13378 #: ../src/guestfs-actions.pod:3888
13379 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13380 msgstr ""
13381
13382 # type: =head2
13383 #. type: =head2
13384 #: ../src/guestfs-actions.pod:3896
13385 msgid "guestfs_lvs_full"
13386 msgstr ""
13387
13388 # type: verbatim
13389 #. type: verbatim
13390 #: ../src/guestfs-actions.pod:3898
13391 #, no-wrap
13392 msgid ""
13393 " struct guestfs_lvm_lv_list *\n"
13394 " guestfs_lvs_full (guestfs_h *g);\n"
13395 "\n"
13396 msgstr ""
13397
13398 # type: textblock
13399 #. type: textblock
13400 #: ../src/guestfs-actions.pod:3901 ../fish/guestfish-actions.pod:2648
13401 msgid ""
13402 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13403 "(8)> command.  The \"full\" version includes all fields."
13404 msgstr ""
13405
13406 # type: textblock
13407 #. type: textblock
13408 #: ../src/guestfs-actions.pod:3904
13409 msgid ""
13410 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13411 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13412 msgstr ""
13413
13414 # type: =head2
13415 #. type: =head2
13416 #: ../src/guestfs-actions.pod:3910
13417 msgid "guestfs_lvuuid"
13418 msgstr ""
13419
13420 # type: verbatim
13421 #. type: verbatim
13422 #: ../src/guestfs-actions.pod:3912
13423 #, no-wrap
13424 msgid ""
13425 " char *\n"
13426 " guestfs_lvuuid (guestfs_h *g,\n"
13427 "                 const char *device);\n"
13428 "\n"
13429 msgstr ""
13430
13431 # type: textblock
13432 #. type: textblock
13433 #: ../src/guestfs-actions.pod:3916 ../fish/guestfish-actions.pod:2655
13434 msgid "This command returns the UUID of the LVM LV C<device>."
13435 msgstr ""
13436
13437 # type: =head2
13438 #. type: =head2
13439 #: ../src/guestfs-actions.pod:3923
13440 msgid "guestfs_lxattrlist"
13441 msgstr ""
13442
13443 # type: verbatim
13444 #. type: verbatim
13445 #: ../src/guestfs-actions.pod:3925
13446 #, no-wrap
13447 msgid ""
13448 " struct guestfs_xattr_list *\n"
13449 " guestfs_lxattrlist (guestfs_h *g,\n"
13450 "                     const char *path,\n"
13451 "                     char *const *names);\n"
13452 "\n"
13453 msgstr ""
13454
13455 # type: textblock
13456 #. type: textblock
13457 #: ../src/guestfs-actions.pod:3930 ../fish/guestfish-actions.pod:2661
13458 msgid ""
13459 "This call allows you to get the extended attributes of multiple files, where "
13460 "all files are in the directory C<path>.  C<names> is the list of files from "
13461 "this directory."
13462 msgstr ""
13463
13464 # type: textblock
13465 #. type: textblock
13466 #: ../src/guestfs-actions.pod:3934 ../fish/guestfish-actions.pod:2665
13467 msgid ""
13468 "On return you get a flat list of xattr structs which must be interpreted "
13469 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13470 "C<attrval> in this struct is zero-length to indicate there was an error "
13471 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13472 "number (the number of following attributes for this file, which could be C<"
13473 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13474 "for the first named file.  This repeats for the second and subsequent files."
13475 msgstr ""
13476
13477 # type: textblock
13478 #. type: textblock
13479 #: ../src/guestfs-actions.pod:3944
13480 msgid ""
13481 "This call is intended for programs that want to efficiently list a directory "
13482 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13483 "a similarly efficient call for getting standard stats.  Very long directory "
13484 "listings might cause the protocol message size to be exceeded, causing this "
13485 "call to fail.  The caller must split up such requests into smaller groups of "
13486 "names."
13487 msgstr ""
13488
13489 # type: =head2
13490 #. type: =head2
13491 #: ../src/guestfs-actions.pod:3958
13492 msgid "guestfs_mkdir"
13493 msgstr ""
13494
13495 # type: verbatim
13496 #. type: verbatim
13497 #: ../src/guestfs-actions.pod:3960
13498 #, no-wrap
13499 msgid ""
13500 " int\n"
13501 " guestfs_mkdir (guestfs_h *g,\n"
13502 "                const char *path);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #. type: textblock
13508 #: ../src/guestfs-actions.pod:3964 ../fish/guestfish-actions.pod:2687
13509 msgid "Create a directory named C<path>."
13510 msgstr ""
13511
13512 # type: =head2
13513 #. type: =head2
13514 #: ../src/guestfs-actions.pod:3970
13515 msgid "guestfs_mkdir_mode"
13516 msgstr ""
13517
13518 # type: verbatim
13519 #. type: verbatim
13520 #: ../src/guestfs-actions.pod:3972
13521 #, no-wrap
13522 msgid ""
13523 " int\n"
13524 " guestfs_mkdir_mode (guestfs_h *g,\n"
13525 "                     const char *path,\n"
13526 "                     int mode);\n"
13527 "\n"
13528 msgstr ""
13529
13530 # type: textblock
13531 #. type: textblock
13532 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:2693
13533 msgid ""
13534 "This command creates a directory, setting the initial permissions of the "
13535 "directory to C<mode>."
13536 msgstr ""
13537
13538 # type: textblock
13539 #. type: textblock
13540 #: ../src/guestfs-actions.pod:3980 ../fish/guestfish-actions.pod:2696
13541 msgid ""
13542 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13543 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13544 "other ways."
13545 msgstr ""
13546
13547 # type: textblock
13548 #. type: textblock
13549 #: ../src/guestfs-actions.pod:3984
13550 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13551 msgstr ""
13552
13553 # type: =head2
13554 #. type: =head2
13555 #: ../src/guestfs-actions.pod:3990
13556 msgid "guestfs_mkdir_p"
13557 msgstr ""
13558
13559 # type: verbatim
13560 #. type: verbatim
13561 #: ../src/guestfs-actions.pod:3992
13562 #, no-wrap
13563 msgid ""
13564 " int\n"
13565 " guestfs_mkdir_p (guestfs_h *g,\n"
13566 "                  const char *path);\n"
13567 "\n"
13568 msgstr ""
13569
13570 # type: textblock
13571 #. type: textblock
13572 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2706
13573 msgid ""
13574 "Create a directory named C<path>, creating any parent directories as "
13575 "necessary.  This is like the C<mkdir -p> shell command."
13576 msgstr ""
13577
13578 # type: =head2
13579 #. type: =head2
13580 #: ../src/guestfs-actions.pod:4003
13581 msgid "guestfs_mkdtemp"
13582 msgstr ""
13583
13584 # type: verbatim
13585 #. type: verbatim
13586 #: ../src/guestfs-actions.pod:4005
13587 #, no-wrap
13588 msgid ""
13589 " char *\n"
13590 " guestfs_mkdtemp (guestfs_h *g,\n"
13591 "                  const char *template);\n"
13592 "\n"
13593 msgstr ""
13594
13595 # type: textblock
13596 #. type: textblock
13597 #: ../src/guestfs-actions.pod:4009 ../fish/guestfish-actions.pod:2713
13598 msgid ""
13599 "This command creates a temporary directory.  The C<template> parameter "
13600 "should be a full pathname for the temporary directory name with the final "
13601 "six characters being \"XXXXXX\"."
13602 msgstr ""
13603
13604 # type: textblock
13605 #. type: textblock
13606 #: ../src/guestfs-actions.pod:4014 ../fish/guestfish-actions.pod:2718
13607 msgid ""
13608 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13609 "being suitable for Windows filesystems."
13610 msgstr ""
13611
13612 # type: textblock
13613 #. type: textblock
13614 #: ../src/guestfs-actions.pod:4017 ../fish/guestfish-actions.pod:2721
13615 msgid "The name of the temporary directory that was created is returned."
13616 msgstr ""
13617
13618 # type: textblock
13619 #. type: textblock
13620 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2724
13621 msgid "The temporary directory is created with mode 0700 and is owned by root."
13622 msgstr ""
13623
13624 # type: textblock
13625 #. type: textblock
13626 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2727
13627 msgid ""
13628 "The caller is responsible for deleting the temporary directory and its "
13629 "contents after use."
13630 msgstr ""
13631
13632 # type: textblock
13633 #. type: textblock
13634 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2730
13635 msgid "See also: L<mkdtemp(3)>"
13636 msgstr ""
13637
13638 # type: =head2
13639 #. type: =head2
13640 #: ../src/guestfs-actions.pod:4033
13641 msgid "guestfs_mke2fs_J"
13642 msgstr ""
13643
13644 # type: verbatim
13645 #. type: verbatim
13646 #: ../src/guestfs-actions.pod:4035
13647 #, no-wrap
13648 msgid ""
13649 " int\n"
13650 " guestfs_mke2fs_J (guestfs_h *g,\n"
13651 "                   const char *fstype,\n"
13652 "                   int blocksize,\n"
13653 "                   const char *device,\n"
13654 "                   const char *journal);\n"
13655 "\n"
13656 msgstr ""
13657
13658 # type: textblock
13659 #. type: textblock
13660 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2736
13661 msgid ""
13662 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13663 "C<journal>.  It is equivalent to the command:"
13664 msgstr ""
13665
13666 # type: verbatim
13667 #. type: verbatim
13668 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2740
13669 #, no-wrap
13670 msgid ""
13671 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13672 "\n"
13673 msgstr ""
13674
13675 # type: textblock
13676 #. type: textblock
13677 #: ../src/guestfs-actions.pod:4048
13678 msgid "See also C<guestfs_mke2journal>."
13679 msgstr ""
13680
13681 # type: textblock
13682 #. type: textblock
13683 #: ../src/guestfs-actions.pod:4052 ../src/guestfs-actions.pod:4070
13684 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4104
13685 #: ../src/guestfs-actions.pod:4118 ../src/guestfs-actions.pod:4132
13686 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4442
13687 msgid "(Added in 1.0.68)"
13688 msgstr ""
13689
13690 # type: =head2
13691 #. type: =head2
13692 #: ../src/guestfs-actions.pod:4054
13693 msgid "guestfs_mke2fs_JL"
13694 msgstr ""
13695
13696 # type: verbatim
13697 #. type: verbatim
13698 #: ../src/guestfs-actions.pod:4056
13699 #, no-wrap
13700 msgid ""
13701 " int\n"
13702 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13703 "                    const char *fstype,\n"
13704 "                    int blocksize,\n"
13705 "                    const char *device,\n"
13706 "                    const char *label);\n"
13707 "\n"
13708 msgstr ""
13709
13710 # type: textblock
13711 #. type: textblock
13712 #: ../src/guestfs-actions.pod:4063 ../fish/guestfish-actions.pod:2748
13713 msgid ""
13714 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13715 "the journal labeled C<label>."
13716 msgstr ""
13717
13718 # type: textblock
13719 #. type: textblock
13720 #: ../src/guestfs-actions.pod:4066
13721 msgid "See also C<guestfs_mke2journal_L>."
13722 msgstr ""
13723
13724 # type: =head2
13725 #. type: =head2
13726 #: ../src/guestfs-actions.pod:4072
13727 msgid "guestfs_mke2fs_JU"
13728 msgstr ""
13729
13730 # type: verbatim
13731 #. type: verbatim
13732 #: ../src/guestfs-actions.pod:4074
13733 #, no-wrap
13734 msgid ""
13735 " int\n"
13736 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13737 "                    const char *fstype,\n"
13738 "                    int blocksize,\n"
13739 "                    const char *device,\n"
13740 "                    const char *uuid);\n"
13741 "\n"
13742 msgstr ""
13743
13744 # type: textblock
13745 #. type: textblock
13746 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:2757
13747 msgid ""
13748 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13749 "the journal with UUID C<uuid>."
13750 msgstr ""
13751
13752 # type: textblock
13753 #. type: textblock
13754 #: ../src/guestfs-actions.pod:4084
13755 msgid "See also C<guestfs_mke2journal_U>."
13756 msgstr ""
13757
13758 # type: =head2
13759 #. type: =head2
13760 #: ../src/guestfs-actions.pod:4090
13761 msgid "guestfs_mke2journal"
13762 msgstr ""
13763
13764 # type: verbatim
13765 #. type: verbatim
13766 #: ../src/guestfs-actions.pod:4092
13767 #, no-wrap
13768 msgid ""
13769 " int\n"
13770 " guestfs_mke2journal (guestfs_h *g,\n"
13771 "                      int blocksize,\n"
13772 "                      const char *device);\n"
13773 "\n"
13774 msgstr ""
13775
13776 # type: textblock
13777 #. type: textblock
13778 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2766
13779 msgid ""
13780 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13781 "command:"
13782 msgstr ""
13783
13784 # type: verbatim
13785 #. type: verbatim
13786 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2769
13787 #, no-wrap
13788 msgid ""
13789 " mke2fs -O journal_dev -b blocksize device\n"
13790 "\n"
13791 msgstr ""
13792
13793 # type: =head2
13794 #. type: =head2
13795 #: ../src/guestfs-actions.pod:4106
13796 msgid "guestfs_mke2journal_L"
13797 msgstr ""
13798
13799 # type: verbatim
13800 #. type: verbatim
13801 #: ../src/guestfs-actions.pod:4108
13802 #, no-wrap
13803 msgid ""
13804 " int\n"
13805 " guestfs_mke2journal_L (guestfs_h *g,\n"
13806 "                        int blocksize,\n"
13807 "                        const char *label,\n"
13808 "                        const char *device);\n"
13809 "\n"
13810 msgstr ""
13811
13812 # type: textblock
13813 #. type: textblock
13814 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2775
13815 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13816 msgstr ""
13817
13818 # type: =head2
13819 #. type: =head2
13820 #: ../src/guestfs-actions.pod:4120
13821 msgid "guestfs_mke2journal_U"
13822 msgstr ""
13823
13824 # type: verbatim
13825 #. type: verbatim
13826 #: ../src/guestfs-actions.pod:4122
13827 #, no-wrap
13828 msgid ""
13829 " int\n"
13830 " guestfs_mke2journal_U (guestfs_h *g,\n"
13831 "                        int blocksize,\n"
13832 "                        const char *uuid,\n"
13833 "                        const char *device);\n"
13834 "\n"
13835 msgstr ""
13836
13837 # type: textblock
13838 #. type: textblock
13839 #: ../src/guestfs-actions.pod:4128 ../fish/guestfish-actions.pod:2781
13840 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13841 msgstr ""
13842
13843 # type: =head2
13844 #. type: =head2
13845 #: ../src/guestfs-actions.pod:4134
13846 msgid "guestfs_mkfifo"
13847 msgstr ""
13848
13849 # type: verbatim
13850 #. type: verbatim
13851 #: ../src/guestfs-actions.pod:4136
13852 #, no-wrap
13853 msgid ""
13854 " int\n"
13855 " guestfs_mkfifo (guestfs_h *g,\n"
13856 "                 int mode,\n"
13857 "                 const char *path);\n"
13858 "\n"
13859 msgstr ""
13860
13861 # type: textblock
13862 #. type: textblock
13863 #: ../src/guestfs-actions.pod:4141
13864 msgid ""
13865 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13866 "is just a convenient wrapper around C<guestfs_mknod>."
13867 msgstr ""
13868
13869 # type: =head2
13870 #. type: =head2
13871 #: ../src/guestfs-actions.pod:4151
13872 msgid "guestfs_mkfs"
13873 msgstr ""
13874
13875 # type: verbatim
13876 #. type: verbatim
13877 #: ../src/guestfs-actions.pod:4153
13878 #, no-wrap
13879 msgid ""
13880 " int\n"
13881 " guestfs_mkfs (guestfs_h *g,\n"
13882 "               const char *fstype,\n"
13883 "               const char *device);\n"
13884 "\n"
13885 msgstr ""
13886
13887 # type: textblock
13888 #. type: textblock
13889 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:2797
13890 msgid ""
13891 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13892 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13893 msgstr ""
13894
13895 # type: =head2
13896 #. type: =head2
13897 #: ../src/guestfs-actions.pod:4166
13898 msgid "guestfs_mkfs_b"
13899 msgstr ""
13900
13901 # type: verbatim
13902 #. type: verbatim
13903 #: ../src/guestfs-actions.pod:4168
13904 #, no-wrap
13905 msgid ""
13906 " int\n"
13907 " guestfs_mkfs_b (guestfs_h *g,\n"
13908 "                 const char *fstype,\n"
13909 "                 int blocksize,\n"
13910 "                 const char *device);\n"
13911 "\n"
13912 msgstr ""
13913
13914 # type: textblock
13915 #. type: textblock
13916 #: ../src/guestfs-actions.pod:4174
13917 msgid ""
13918 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13919 "block size of the resulting filesystem.  Supported block sizes depend on the "
13920 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13921 msgstr ""
13922
13923 # type: textblock
13924 #. type: textblock
13925 #: ../src/guestfs-actions.pod:4179 ../src/guestfs-actions.pod:4221
13926 #: ../fish/guestfish-actions.pod:2810 ../fish/guestfish-actions.pod:2837
13927 msgid ""
13928 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13929 "cluster size."
13930 msgstr ""
13931
13932 # type: textblock
13933 #. type: textblock
13934 #: ../src/guestfs-actions.pod:4184 ../fish/guestfish-actions.pod:2813
13935 msgid ""
13936 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13937 msgstr ""
13938
13939 # type: =head2
13940 #. type: =head2
13941 #: ../src/guestfs-actions.pod:4193
13942 msgid "guestfs_mkfs_opts"
13943 msgstr ""
13944
13945 # type: verbatim
13946 #. type: verbatim
13947 #: ../src/guestfs-actions.pod:4195
13948 #, no-wrap
13949 msgid ""
13950 " int\n"
13951 " guestfs_mkfs_opts (guestfs_h *g,\n"
13952 "                    const char *fstype,\n"
13953 "                    const char *device,\n"
13954 "                    ...);\n"
13955 "\n"
13956 msgstr ""
13957
13958 # type: verbatim
13959 #. type: verbatim
13960 #: ../src/guestfs-actions.pod:4206
13961 #, no-wrap
13962 msgid ""
13963 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13964 "\n"
13965 msgstr ""
13966
13967 # type: textblock
13968 #. type: textblock
13969 #: ../src/guestfs-actions.pod:4208 ../fish/guestfish-actions.pod:2824
13970 msgid ""
13971 "This function creates a filesystem on C<device>.  The filesystem type is "
13972 "C<fstype>, for example C<ext3>."
13973 msgstr ""
13974
13975 # type: =item
13976 #. type: =item
13977 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2831
13978 msgid "C<blocksize>"
13979 msgstr ""
13980
13981 # type: textblock
13982 #. type: textblock
13983 #: ../src/guestfs-actions.pod:4217 ../fish/guestfish-actions.pod:2833
13984 msgid ""
13985 "The filesystem block size.  Supported block sizes depend on the filesystem "
13986 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13987 "filesystems."
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../src/guestfs-actions.pod:4228
13992 msgid "(Added in 1.7.19)"
13993 msgstr ""
13994
13995 # type: =head2
13996 #. type: =head2
13997 #: ../src/guestfs-actions.pod:4230
13998 msgid "guestfs_mkfs_opts_va"
13999 msgstr ""
14000
14001 # type: verbatim
14002 #. type: verbatim
14003 #: ../src/guestfs-actions.pod:4232
14004 #, no-wrap
14005 msgid ""
14006 " int\n"
14007 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14008 "                       const char *fstype,\n"
14009 "                       const char *device,\n"
14010 "                       va_list args);\n"
14011 "\n"
14012 msgstr ""
14013
14014 # type: textblock
14015 #. type: textblock
14016 #: ../src/guestfs-actions.pod:4238
14017 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14018 msgstr ""
14019
14020 # type: =head2
14021 #. type: =head2
14022 #: ../src/guestfs-actions.pod:4242
14023 msgid "guestfs_mkfs_opts_argv"
14024 msgstr ""
14025
14026 # type: verbatim
14027 #. type: verbatim
14028 #: ../src/guestfs-actions.pod:4244
14029 #, no-wrap
14030 msgid ""
14031 " int\n"
14032 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14033 "                         const char *fstype,\n"
14034 "                         const char *device,\n"
14035 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14036 "\n"
14037 msgstr ""
14038
14039 # type: textblock
14040 #. type: textblock
14041 #: ../src/guestfs-actions.pod:4250
14042 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14043 msgstr ""
14044
14045 # type: =head2
14046 #. type: =head2
14047 #: ../src/guestfs-actions.pod:4254
14048 msgid "guestfs_mkmountpoint"
14049 msgstr ""
14050
14051 # type: verbatim
14052 #. type: verbatim
14053 #: ../src/guestfs-actions.pod:4256
14054 #, no-wrap
14055 msgid ""
14056 " int\n"
14057 " guestfs_mkmountpoint (guestfs_h *g,\n"
14058 "                       const char *exemptpath);\n"
14059 "\n"
14060 msgstr ""
14061
14062 # type: textblock
14063 #. type: textblock
14064 #: ../src/guestfs-actions.pod:4260
14065 msgid ""
14066 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14067 "that can be used to create extra mountpoints before mounting the first "
14068 "filesystem."
14069 msgstr ""
14070
14071 # type: textblock
14072 #. type: textblock
14073 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2852
14074 msgid ""
14075 "These calls are I<only> necessary in some very limited circumstances, mainly "
14076 "the case where you want to mount a mix of unrelated and/or read-only "
14077 "filesystems together."
14078 msgstr ""
14079
14080 # type: textblock
14081 #. type: textblock
14082 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2856
14083 msgid ""
14084 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14085 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14086 "inside that.  You can unpack this as follows in guestfish:"
14087 msgstr ""
14088
14089 # type: verbatim
14090 #. type: verbatim
14091 #: ../src/guestfs-actions.pod:4273 ../fish/guestfish-actions.pod:2861
14092 #, no-wrap
14093 msgid ""
14094 " add-ro Fedora-11-i686-Live.iso\n"
14095 " run\n"
14096 " mkmountpoint /cd\n"
14097 " mkmountpoint /sqsh\n"
14098 " mkmountpoint /ext3fs\n"
14099 " mount /dev/sda /cd\n"
14100 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14101 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14102 "\n"
14103 msgstr ""
14104
14105 # type: textblock
14106 #. type: textblock
14107 #: ../src/guestfs-actions.pod:4282 ../fish/guestfish-actions.pod:2870
14108 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14109 msgstr ""
14110
14111 # type: textblock
14112 #. type: textblock
14113 #: ../src/guestfs-actions.pod:4284
14114 msgid ""
14115 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14116 "may get unexpected errors if you try to mix these calls.  It is safest to "
14117 "manually unmount filesystems and remove mountpoints after use."
14118 msgstr ""
14119
14120 # type: textblock
14121 #. type: textblock
14122 #: ../src/guestfs-actions.pod:4288
14123 msgid ""
14124 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14125 "first, so for this to work for manual mountpoints, you must ensure that the "
14126 "innermost mountpoints have the longest pathnames, as in the example code "
14127 "above."
14128 msgstr ""
14129
14130 # type: textblock
14131 #. type: textblock
14132 #: ../src/guestfs-actions.pod:4293 ../fish/guestfish-actions.pod:2881
14133 msgid ""
14134 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14135 msgstr ""
14136
14137 # type: textblock
14138 #. type: textblock
14139 #: ../src/guestfs-actions.pod:4295
14140 msgid ""
14141 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14142 "means that C<guestfs_umount_all> is called when the handle is closed which "
14143 "can also trigger these issues."
14144 msgstr ""
14145
14146 # type: textblock
14147 #. type: textblock
14148 #: ../src/guestfs-actions.pod:4301 ../src/guestfs-actions.pod:4560
14149 #: ../src/guestfs-actions.pod:5453
14150 msgid "(Added in 1.0.62)"
14151 msgstr ""
14152
14153 # type: =head2
14154 #. type: =head2
14155 #: ../src/guestfs-actions.pod:4303
14156 msgid "guestfs_mknod"
14157 msgstr ""
14158
14159 # type: verbatim
14160 #. type: verbatim
14161 #: ../src/guestfs-actions.pod:4305
14162 #, no-wrap
14163 msgid ""
14164 " int\n"
14165 " guestfs_mknod (guestfs_h *g,\n"
14166 "                int mode,\n"
14167 "                int devmajor,\n"
14168 "                int devminor,\n"
14169 "                const char *path);\n"
14170 "\n"
14171 msgstr ""
14172
14173 # type: textblock
14174 #. type: textblock
14175 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:2891
14176 msgid ""
14177 "This call creates block or character special devices, or named pipes (FIFOs)."
14178 msgstr ""
14179
14180 # type: textblock
14181 #. type: textblock
14182 #: ../src/guestfs-actions.pod:4315 ../fish/guestfish-actions.pod:2894
14183 msgid ""
14184 "The C<mode> parameter should be the mode, using the standard constants.  "
14185 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14186 "used when creating block and character special devices."
14187 msgstr ""
14188
14189 # type: textblock
14190 #. type: textblock
14191 #: ../src/guestfs-actions.pod:4320
14192 msgid ""
14193 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14194 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14195 "regular file).  These constants are available in the standard Linux header "
14196 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14197 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14198 "the appropriate constant for you."
14199 msgstr ""
14200
14201 # type: =head2
14202 #. type: =head2
14203 #: ../src/guestfs-actions.pod:4334
14204 msgid "guestfs_mknod_b"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #. type: verbatim
14209 #: ../src/guestfs-actions.pod:4336
14210 #, no-wrap
14211 msgid ""
14212 " int\n"
14213 " guestfs_mknod_b (guestfs_h *g,\n"
14214 "                  int mode,\n"
14215 "                  int devmajor,\n"
14216 "                  int devminor,\n"
14217 "                  const char *path);\n"
14218 "\n"
14219 msgstr ""
14220
14221 # type: textblock
14222 #. type: textblock
14223 #: ../src/guestfs-actions.pod:4343
14224 msgid ""
14225 "This call creates a block device node called C<path> with mode C<mode> and "
14226 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14227 "wrapper around C<guestfs_mknod>."
14228 msgstr ""
14229
14230 # type: =head2
14231 #. type: =head2
14232 #: ../src/guestfs-actions.pod:4353
14233 msgid "guestfs_mknod_c"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #. type: verbatim
14238 #: ../src/guestfs-actions.pod:4355
14239 #, no-wrap
14240 msgid ""
14241 " int\n"
14242 " guestfs_mknod_c (guestfs_h *g,\n"
14243 "                  int mode,\n"
14244 "                  int devmajor,\n"
14245 "                  int devminor,\n"
14246 "                  const char *path);\n"
14247 "\n"
14248 msgstr ""
14249
14250 # type: textblock
14251 #. type: textblock
14252 #: ../src/guestfs-actions.pod:4362
14253 msgid ""
14254 "This call creates a char device node called C<path> with mode C<mode> and "
14255 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14256 "wrapper around C<guestfs_mknod>."
14257 msgstr ""
14258
14259 # type: =head2
14260 #. type: =head2
14261 #: ../src/guestfs-actions.pod:4372
14262 msgid "guestfs_mkswap"
14263 msgstr ""
14264
14265 # type: verbatim
14266 #. type: verbatim
14267 #: ../src/guestfs-actions.pod:4374
14268 #, no-wrap
14269 msgid ""
14270 " int\n"
14271 " guestfs_mkswap (guestfs_h *g,\n"
14272 "                 const char *device);\n"
14273 "\n"
14274 msgstr ""
14275
14276 # type: textblock
14277 #. type: textblock
14278 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2933
14279 msgid "Create a swap partition on C<device>."
14280 msgstr ""
14281
14282 # type: =head2
14283 #. type: =head2
14284 #: ../src/guestfs-actions.pod:4384
14285 msgid "guestfs_mkswap_L"
14286 msgstr ""
14287
14288 # type: verbatim
14289 #. type: verbatim
14290 #: ../src/guestfs-actions.pod:4386
14291 #, no-wrap
14292 msgid ""
14293 " int\n"
14294 " guestfs_mkswap_L (guestfs_h *g,\n"
14295 "                   const char *label,\n"
14296 "                   const char *device);\n"
14297 "\n"
14298 msgstr ""
14299
14300 # type: textblock
14301 #. type: textblock
14302 #: ../src/guestfs-actions.pod:4391 ../fish/guestfish-actions.pod:2939
14303 msgid "Create a swap partition on C<device> with label C<label>."
14304 msgstr ""
14305
14306 # type: textblock
14307 #. type: textblock
14308 #: ../src/guestfs-actions.pod:4393 ../fish/guestfish-actions.pod:2941
14309 msgid ""
14310 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14311 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14312 "or swap tools."
14313 msgstr ""
14314
14315 # type: =head2
14316 #. type: =head2
14317 #: ../src/guestfs-actions.pod:4401
14318 msgid "guestfs_mkswap_U"
14319 msgstr ""
14320
14321 # type: verbatim
14322 #. type: verbatim
14323 #: ../src/guestfs-actions.pod:4403
14324 #, no-wrap
14325 msgid ""
14326 " int\n"
14327 " guestfs_mkswap_U (guestfs_h *g,\n"
14328 "                   const char *uuid,\n"
14329 "                   const char *device);\n"
14330 "\n"
14331 msgstr ""
14332
14333 # type: textblock
14334 #. type: textblock
14335 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:2949
14336 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14337 msgstr ""
14338
14339 # type: =head2
14340 #. type: =head2
14341 #: ../src/guestfs-actions.pod:4414
14342 msgid "guestfs_mkswap_file"
14343 msgstr ""
14344
14345 # type: verbatim
14346 #. type: verbatim
14347 #: ../src/guestfs-actions.pod:4416
14348 #, no-wrap
14349 msgid ""
14350 " int\n"
14351 " guestfs_mkswap_file (guestfs_h *g,\n"
14352 "                      const char *path);\n"
14353 "\n"
14354 msgstr ""
14355
14356 # type: textblock
14357 #. type: textblock
14358 #: ../src/guestfs-actions.pod:4420 ../fish/guestfish-actions.pod:2955
14359 msgid "Create a swap file."
14360 msgstr ""
14361
14362 # type: textblock
14363 #. type: textblock
14364 #: ../src/guestfs-actions.pod:4422
14365 msgid ""
14366 "This command just writes a swap file signature to an existing file.  To "
14367 "create the file itself, use something like C<guestfs_fallocate>."
14368 msgstr ""
14369
14370 # type: =head2
14371 #. type: =head2
14372 #: ../src/guestfs-actions.pod:4429
14373 msgid "guestfs_modprobe"
14374 msgstr ""
14375
14376 # type: verbatim
14377 #. type: verbatim
14378 #: ../src/guestfs-actions.pod:4431
14379 #, no-wrap
14380 msgid ""
14381 " int\n"
14382 " guestfs_modprobe (guestfs_h *g,\n"
14383 "                   const char *modulename);\n"
14384 "\n"
14385 msgstr ""
14386
14387 # type: textblock
14388 #. type: textblock
14389 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2964
14390 msgid "This loads a kernel module in the appliance."
14391 msgstr ""
14392
14393 # type: textblock
14394 #. type: textblock
14395 #: ../src/guestfs-actions.pod:4437 ../fish/guestfish-actions.pod:2966
14396 msgid ""
14397 "The kernel module must have been whitelisted when libguestfs was built (see "
14398 "C<appliance/kmod.whitelist.in> in the source)."
14399 msgstr ""
14400
14401 # type: =head2
14402 #. type: =head2
14403 #: ../src/guestfs-actions.pod:4444
14404 msgid "guestfs_mount"
14405 msgstr ""
14406
14407 # type: verbatim
14408 #. type: verbatim
14409 #: ../src/guestfs-actions.pod:4446
14410 #, no-wrap
14411 msgid ""
14412 " int\n"
14413 " guestfs_mount (guestfs_h *g,\n"
14414 "                const char *device,\n"
14415 "                const char *mountpoint);\n"
14416 "\n"
14417 msgstr ""
14418
14419 # type: textblock
14420 #. type: textblock
14421 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:2973
14422 msgid ""
14423 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14424 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14425 "those block devices contain partitions, they will have the usual names (eg. "
14426 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14427 msgstr ""
14428
14429 # type: textblock
14430 #. type: textblock
14431 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:2979
14432 msgid ""
14433 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14434 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14435 "mounted on directories which already exist."
14436 msgstr ""
14437
14438 # type: textblock
14439 #. type: textblock
14440 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2984
14441 msgid ""
14442 "The mounted filesystem is writable, if we have sufficient permissions on the "
14443 "underlying device."
14444 msgstr ""
14445
14446 # type: textblock
14447 #. type: textblock
14448 #: ../src/guestfs-actions.pod:4465
14449 msgid ""
14450 "B<Important note:> When you use this call, the filesystem options C<sync> "
14451 "and C<noatime> are set implicitly.  This was originally done because we "
14452 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14453 "very large negative performance impact and negligible effect on "
14454 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14455 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14456 "(use an empty string for the first parameter if you don't want any options)."
14457 msgstr ""
14458
14459 # type: =head2
14460 #. type: =head2
14461 #: ../src/guestfs-actions.pod:4479
14462 msgid "guestfs_mount_loop"
14463 msgstr ""
14464
14465 # type: verbatim
14466 #. type: verbatim
14467 #: ../src/guestfs-actions.pod:4481
14468 #, no-wrap
14469 msgid ""
14470 " int\n"
14471 " guestfs_mount_loop (guestfs_h *g,\n"
14472 "                     const char *file,\n"
14473 "                     const char *mountpoint);\n"
14474 "\n"
14475 msgstr ""
14476
14477 # type: textblock
14478 #. type: textblock
14479 #: ../src/guestfs-actions.pod:4486 ../fish/guestfish-actions.pod:3001
14480 msgid ""
14481 "This command lets you mount C<file> (a filesystem image in a file) on a "
14482 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14483 "mountpoint>."
14484 msgstr ""
14485
14486 # type: =head2
14487 #. type: =head2
14488 #: ../src/guestfs-actions.pod:4494
14489 msgid "guestfs_mount_options"
14490 msgstr ""
14491
14492 # type: verbatim
14493 #. type: verbatim
14494 #: ../src/guestfs-actions.pod:4496
14495 #, no-wrap
14496 msgid ""
14497 " int\n"
14498 " guestfs_mount_options (guestfs_h *g,\n"
14499 "                        const char *options,\n"
14500 "                        const char *device,\n"
14501 "                        const char *mountpoint);\n"
14502 "\n"
14503 msgstr ""
14504
14505 # type: textblock
14506 #. type: textblock
14507 #: ../src/guestfs-actions.pod:4502
14508 msgid ""
14509 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14510 "the mount options as for the L<mount(8)> I<-o> flag."
14511 msgstr ""
14512
14513 # type: textblock
14514 #. type: textblock
14515 #: ../src/guestfs-actions.pod:4506 ../fish/guestfish-actions.pod:3013
14516 msgid ""
14517 "If the C<options> parameter is an empty string, then no options are passed "
14518 "(all options default to whatever the filesystem uses)."
14519 msgstr ""
14520
14521 # type: textblock
14522 #. type: textblock
14523 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4526
14524 #: ../src/guestfs-actions.pod:4543
14525 msgid "(Added in 1.0.10)"
14526 msgstr ""
14527
14528 # type: =head2
14529 #. type: =head2
14530 #: ../src/guestfs-actions.pod:4514
14531 msgid "guestfs_mount_ro"
14532 msgstr ""
14533
14534 # type: verbatim
14535 #. type: verbatim
14536 #: ../src/guestfs-actions.pod:4516
14537 #, no-wrap
14538 msgid ""
14539 " int\n"
14540 " guestfs_mount_ro (guestfs_h *g,\n"
14541 "                   const char *device,\n"
14542 "                   const char *mountpoint);\n"
14543 "\n"
14544 msgstr ""
14545
14546 # type: textblock
14547 #. type: textblock
14548 #: ../src/guestfs-actions.pod:4521
14549 msgid ""
14550 "This is the same as the C<guestfs_mount> command, but it mounts the "
14551 "filesystem with the read-only (I<-o ro>) flag."
14552 msgstr ""
14553
14554 # type: =head2
14555 #. type: =head2
14556 #: ../src/guestfs-actions.pod:4528
14557 msgid "guestfs_mount_vfs"
14558 msgstr ""
14559
14560 # type: verbatim
14561 #. type: verbatim
14562 #: ../src/guestfs-actions.pod:4530
14563 #, no-wrap
14564 msgid ""
14565 " int\n"
14566 " guestfs_mount_vfs (guestfs_h *g,\n"
14567 "                    const char *options,\n"
14568 "                    const char *vfstype,\n"
14569 "                    const char *device,\n"
14570 "                    const char *mountpoint);\n"
14571 "\n"
14572 msgstr ""
14573
14574 # type: textblock
14575 #. type: textblock
14576 #: ../src/guestfs-actions.pod:4537
14577 msgid ""
14578 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14579 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14580 "t> flags."
14581 msgstr ""
14582
14583 # type: =head2
14584 #. type: =head2
14585 #: ../src/guestfs-actions.pod:4545
14586 msgid "guestfs_mountpoints"
14587 msgstr ""
14588
14589 # type: verbatim
14590 #. type: verbatim
14591 #: ../src/guestfs-actions.pod:4547
14592 #, no-wrap
14593 msgid ""
14594 " char **\n"
14595 " guestfs_mountpoints (guestfs_h *g);\n"
14596 "\n"
14597 msgstr ""
14598
14599 # type: textblock
14600 #. type: textblock
14601 #: ../src/guestfs-actions.pod:4550
14602 msgid ""
14603 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14604 "devices.  This one returns a hash table (map) of device name to directory "
14605 "where the device is mounted."
14606 msgstr ""
14607
14608 # type: =head2
14609 #. type: =head2
14610 #: ../src/guestfs-actions.pod:4562
14611 msgid "guestfs_mounts"
14612 msgstr ""
14613
14614 # type: verbatim
14615 #. type: verbatim
14616 #: ../src/guestfs-actions.pod:4564
14617 #, no-wrap
14618 msgid ""
14619 " char **\n"
14620 " guestfs_mounts (guestfs_h *g);\n"
14621 "\n"
14622 msgstr ""
14623
14624 # type: textblock
14625 #. type: textblock
14626 #: ../src/guestfs-actions.pod:4567 ../fish/guestfish-actions.pod:3044
14627 msgid ""
14628 "This returns the list of currently mounted filesystems.  It returns the list "
14629 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14630 msgstr ""
14631
14632 # type: textblock
14633 #. type: textblock
14634 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3047
14635 msgid "Some internal mounts are not shown."
14636 msgstr ""
14637
14638 # type: textblock
14639 #. type: textblock
14640 #: ../src/guestfs-actions.pod:4572
14641 msgid "See also: C<guestfs_mountpoints>"
14642 msgstr ""
14643
14644 # type: =head2
14645 #. type: =head2
14646 #: ../src/guestfs-actions.pod:4580
14647 msgid "guestfs_mv"
14648 msgstr ""
14649
14650 # type: verbatim
14651 #. type: verbatim
14652 #: ../src/guestfs-actions.pod:4582
14653 #, no-wrap
14654 msgid ""
14655 " int\n"
14656 " guestfs_mv (guestfs_h *g,\n"
14657 "             const char *src,\n"
14658 "             const char *dest);\n"
14659 "\n"
14660 msgstr ""
14661
14662 # type: textblock
14663 #. type: textblock
14664 #: ../src/guestfs-actions.pod:4587 ../fish/guestfish-actions.pod:3055
14665 msgid ""
14666 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14667 "destination filename or destination directory."
14668 msgstr ""
14669
14670 # type: =head2
14671 #. type: =head2
14672 #: ../src/guestfs-actions.pod:4594
14673 msgid "guestfs_ntfs_3g_probe"
14674 msgstr ""
14675
14676 # type: verbatim
14677 #. type: verbatim
14678 #: ../src/guestfs-actions.pod:4596
14679 #, no-wrap
14680 msgid ""
14681 " int\n"
14682 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14683 "                        int rw,\n"
14684 "                        const char *device);\n"
14685 "\n"
14686 msgstr ""
14687
14688 # type: textblock
14689 #. type: textblock
14690 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3062
14691 msgid ""
14692 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14693 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14694 "write, and some cannot be mounted at all)."
14695 msgstr ""
14696
14697 # type: textblock
14698 #. type: textblock
14699 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3066
14700 msgid ""
14701 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14702 "can be mounted read-write.  Set it to false if you want to test if the "
14703 "volume can be mounted read-only."
14704 msgstr ""
14705
14706 # type: textblock
14707 #. type: textblock
14708 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3070
14709 msgid ""
14710 "The return value is an integer which C<0> if the operation would succeed, or "
14711 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14712 msgstr ""
14713
14714 # type: textblock
14715 #. type: textblock
14716 #: ../src/guestfs-actions.pod:4615
14717 msgid "(Added in 1.0.43)"
14718 msgstr ""
14719
14720 # type: =head2
14721 #. type: =head2
14722 #: ../src/guestfs-actions.pod:4617
14723 msgid "guestfs_ntfsresize"
14724 msgstr ""
14725
14726 # type: verbatim
14727 #. type: verbatim
14728 #: ../src/guestfs-actions.pod:4619
14729 #, no-wrap
14730 msgid ""
14731 " int\n"
14732 " guestfs_ntfsresize (guestfs_h *g,\n"
14733 "                     const char *device);\n"
14734 "\n"
14735 msgstr ""
14736
14737 # type: textblock
14738 #. type: textblock
14739 #: ../src/guestfs-actions.pod:4623 ../fish/guestfish-actions.pod:3078
14740 msgid ""
14741 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14742 "size of the underlying device.  See also L<ntfsresize(8)>."
14743 msgstr ""
14744
14745 # type: =head2
14746 #. type: =head2
14747 #: ../src/guestfs-actions.pod:4631
14748 msgid "guestfs_ntfsresize_size"
14749 msgstr ""
14750
14751 # type: verbatim
14752 #. type: verbatim
14753 #: ../src/guestfs-actions.pod:4633
14754 #, no-wrap
14755 msgid ""
14756 " int\n"
14757 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14758 "                          const char *device,\n"
14759 "                          int64_t size);\n"
14760 "\n"
14761 msgstr ""
14762
14763 # type: textblock
14764 #. type: textblock
14765 #: ../src/guestfs-actions.pod:4638
14766 msgid ""
14767 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14768 "to specify the new size (in bytes) explicitly."
14769 msgstr ""
14770
14771 # type: textblock
14772 #. type: textblock
14773 #: ../src/guestfs-actions.pod:4643 ../src/guestfs-actions.pod:5079
14774 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5401
14775 #: ../src/guestfs-actions.pod:6940
14776 msgid "(Added in 1.3.14)"
14777 msgstr ""
14778
14779 # type: =head2
14780 #. type: =head2
14781 #: ../src/guestfs-actions.pod:4645
14782 msgid "guestfs_part_add"
14783 msgstr ""
14784
14785 # type: verbatim
14786 #. type: verbatim
14787 #: ../src/guestfs-actions.pod:4647
14788 #, no-wrap
14789 msgid ""
14790 " int\n"
14791 " guestfs_part_add (guestfs_h *g,\n"
14792 "                   const char *device,\n"
14793 "                   const char *prlogex,\n"
14794 "                   int64_t startsect,\n"
14795 "                   int64_t endsect);\n"
14796 "\n"
14797 msgstr ""
14798
14799 # type: textblock
14800 #. type: textblock
14801 #: ../src/guestfs-actions.pod:4654
14802 msgid ""
14803 "This command adds a partition to C<device>.  If there is no partition table "
14804 "on the device, call C<guestfs_part_init> first."
14805 msgstr ""
14806
14807 # type: textblock
14808 #. type: textblock
14809 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3096
14810 msgid ""
14811 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14812 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14813 "C<logical>) and C<e> (or C<extended>) partition types."
14814 msgstr ""
14815
14816 # type: textblock
14817 #. type: textblock
14818 #: ../src/guestfs-actions.pod:4662 ../fish/guestfish-actions.pod:3101
14819 msgid ""
14820 "C<startsect> and C<endsect> are the start and end of the partition in "
14821 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14822 "from the end of the disk (C<-1> is the last sector)."
14823 msgstr ""
14824
14825 # type: textblock
14826 #. type: textblock
14827 #: ../src/guestfs-actions.pod:4666
14828 msgid ""
14829 "Creating a partition which covers the whole disk is not so easy.  Use "
14830 "C<guestfs_part_disk> to do that."
14831 msgstr ""
14832
14833 # type: textblock
14834 #. type: textblock
14835 #: ../src/guestfs-actions.pod:4671 ../src/guestfs-actions.pod:4709
14836 #: ../src/guestfs-actions.pod:4762 ../src/guestfs-actions.pod:4840
14837 #: ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:4897
14838 #: ../src/guestfs-actions.pod:4937
14839 msgid "(Added in 1.0.78)"
14840 msgstr ""
14841
14842 # type: =head2
14843 #. type: =head2
14844 #: ../src/guestfs-actions.pod:4673
14845 msgid "guestfs_part_del"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #. type: verbatim
14850 #: ../src/guestfs-actions.pod:4675
14851 #, no-wrap
14852 msgid ""
14853 " int\n"
14854 " guestfs_part_del (guestfs_h *g,\n"
14855 "                   const char *device,\n"
14856 "                   int partnum);\n"
14857 "\n"
14858 msgstr ""
14859
14860 # type: textblock
14861 #. type: textblock
14862 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3112
14863 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14864 msgstr ""
14865
14866 # type: textblock
14867 #. type: textblock
14868 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3114
14869 msgid ""
14870 "Note that in the case of MBR partitioning, deleting an extended partition "
14871 "also deletes any logical partitions it contains."
14872 msgstr ""
14873
14874 # type: =head2
14875 #. type: =head2
14876 #: ../src/guestfs-actions.pod:4690
14877 msgid "guestfs_part_disk"
14878 msgstr ""
14879
14880 # type: verbatim
14881 #. type: verbatim
14882 #: ../src/guestfs-actions.pod:4692
14883 #, no-wrap
14884 msgid ""
14885 " int\n"
14886 " guestfs_part_disk (guestfs_h *g,\n"
14887 "                    const char *device,\n"
14888 "                    const char *parttype);\n"
14889 "\n"
14890 msgstr ""
14891
14892 # type: textblock
14893 #. type: textblock
14894 #: ../src/guestfs-actions.pod:4697
14895 msgid ""
14896 "This command is simply a combination of C<guestfs_part_init> followed by "
14897 "C<guestfs_part_add> to create a single primary partition covering the whole "
14898 "disk."
14899 msgstr ""
14900
14901 # type: textblock
14902 #. type: textblock
14903 #: ../src/guestfs-actions.pod:4701
14904 msgid ""
14905 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14906 "possible values are described in C<guestfs_part_init>."
14907 msgstr ""
14908
14909 # type: =head2
14910 #. type: =head2
14911 #: ../src/guestfs-actions.pod:4711
14912 msgid "guestfs_part_get_bootable"
14913 msgstr ""
14914
14915 # type: verbatim
14916 #. type: verbatim
14917 #: ../src/guestfs-actions.pod:4713
14918 #, no-wrap
14919 msgid ""
14920 " int\n"
14921 " guestfs_part_get_bootable (guestfs_h *g,\n"
14922 "                            const char *device,\n"
14923 "                            int partnum);\n"
14924 "\n"
14925 msgstr ""
14926
14927 # type: textblock
14928 #. type: textblock
14929 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3136
14930 msgid ""
14931 "This command returns true if the partition C<partnum> on C<device> has the "
14932 "bootable flag set."
14933 msgstr ""
14934
14935 # type: textblock
14936 #. type: textblock
14937 #: ../src/guestfs-actions.pod:4721
14938 msgid "See also C<guestfs_part_set_bootable>."
14939 msgstr ""
14940
14941 # type: =head2
14942 #. type: =head2
14943 #: ../src/guestfs-actions.pod:4727
14944 msgid "guestfs_part_get_mbr_id"
14945 msgstr ""
14946
14947 # type: verbatim
14948 #. type: verbatim
14949 #: ../src/guestfs-actions.pod:4729
14950 #, no-wrap
14951 msgid ""
14952 " int\n"
14953 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14954 "                          const char *device,\n"
14955 "                          int partnum);\n"
14956 "\n"
14957 msgstr ""
14958
14959 # type: textblock
14960 #. type: textblock
14961 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3145
14962 msgid ""
14963 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14964 "partition C<partnum>."
14965 msgstr ""
14966
14967 # type: textblock
14968 #. type: textblock
14969 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4913
14970 msgid ""
14971 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14972 "undefined results for other partition table types (see "
14973 "C<guestfs_part_get_parttype>)."
14974 msgstr ""
14975
14976 # type: =head2
14977 #. type: =head2
14978 #: ../src/guestfs-actions.pod:4745
14979 msgid "guestfs_part_get_parttype"
14980 msgstr ""
14981
14982 # type: verbatim
14983 #. type: verbatim
14984 #: ../src/guestfs-actions.pod:4747
14985 #, no-wrap
14986 msgid ""
14987 " char *\n"
14988 " guestfs_part_get_parttype (guestfs_h *g,\n"
14989 "                            const char *device);\n"
14990 "\n"
14991 msgstr ""
14992
14993 # type: textblock
14994 #. type: textblock
14995 #: ../src/guestfs-actions.pod:4751 ../fish/guestfish-actions.pod:3156
14996 msgid ""
14997 "This command examines the partition table on C<device> and returns the "
14998 "partition table type (format) being used."
14999 msgstr ""
15000
15001 # type: textblock
15002 #. type: textblock
15003 #: ../src/guestfs-actions.pod:4754
15004 msgid ""
15005 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15006 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15007 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15008 msgstr ""
15009
15010 # type: =head2
15011 #. type: =head2
15012 #: ../src/guestfs-actions.pod:4764
15013 msgid "guestfs_part_init"
15014 msgstr ""
15015
15016 # type: verbatim
15017 #. type: verbatim
15018 #: ../src/guestfs-actions.pod:4766
15019 #, no-wrap
15020 msgid ""
15021 " int\n"
15022 " guestfs_part_init (guestfs_h *g,\n"
15023 "                    const char *device,\n"
15024 "                    const char *parttype);\n"
15025 "\n"
15026 msgstr ""
15027
15028 # type: textblock
15029 #. type: textblock
15030 #: ../src/guestfs-actions.pod:4771 ../fish/guestfish-actions.pod:3168
15031 msgid ""
15032 "This creates an empty partition table on C<device> of one of the partition "
15033 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15034 "(for large disks)."
15035 msgstr ""
15036
15037 # type: textblock
15038 #. type: textblock
15039 #: ../src/guestfs-actions.pod:4775
15040 msgid ""
15041 "Initially there are no partitions.  Following this, you should call "
15042 "C<guestfs_part_add> for each partition required."
15043 msgstr ""
15044
15045 # type: textblock
15046 #. type: textblock
15047 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3175
15048 msgid "Possible values for C<parttype> are:"
15049 msgstr ""
15050
15051 # type: =item
15052 #. type: =item
15053 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3179
15054 msgid "B<efi> | B<gpt>"
15055 msgstr ""
15056
15057 # type: textblock
15058 #. type: textblock
15059 #: ../src/guestfs-actions.pod:4784 ../fish/guestfish-actions.pod:3181
15060 msgid "Intel EFI / GPT partition table."
15061 msgstr ""
15062
15063 # type: textblock
15064 #. type: textblock
15065 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3183
15066 msgid ""
15067 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15068 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15069 "the C<mbr> format."
15070 msgstr ""
15071
15072 # type: =item
15073 #. type: =item
15074 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3187
15075 msgid "B<mbr> | B<msdos>"
15076 msgstr ""
15077
15078 # type: textblock
15079 #. type: textblock
15080 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3189
15081 msgid ""
15082 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15083 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15084 "TB.  For large disks we recommend using C<gpt>."
15085 msgstr ""
15086
15087 # type: textblock
15088 #. type: textblock
15089 #: ../src/guestfs-actions.pod:4799 ../fish/guestfish-actions.pod:3196
15090 msgid ""
15091 "Other partition table types that may work but are not supported include:"
15092 msgstr ""
15093
15094 # type: =item
15095 #. type: =item
15096 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3201
15097 msgid "B<aix>"
15098 msgstr ""
15099
15100 # type: textblock
15101 #. type: textblock
15102 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3203
15103 msgid "AIX disk labels."
15104 msgstr ""
15105
15106 # type: =item
15107 #. type: =item
15108 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3205
15109 msgid "B<amiga> | B<rdb>"
15110 msgstr ""
15111
15112 # type: textblock
15113 #. type: textblock
15114 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3207
15115 msgid "Amiga \"Rigid Disk Block\" format."
15116 msgstr ""
15117
15118 # type: =item
15119 #. type: =item
15120 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3209
15121 msgid "B<bsd>"
15122 msgstr ""
15123
15124 # type: textblock
15125 #. type: textblock
15126 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3211
15127 msgid "BSD disk labels."
15128 msgstr ""
15129
15130 # type: =item
15131 #. type: =item
15132 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3213
15133 msgid "B<dasd>"
15134 msgstr ""
15135
15136 # type: textblock
15137 #. type: textblock
15138 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3215
15139 msgid "DASD, used on IBM mainframes."
15140 msgstr ""
15141
15142 # type: =item
15143 #. type: =item
15144 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3217
15145 msgid "B<dvh>"
15146 msgstr ""
15147
15148 # type: textblock
15149 #. type: textblock
15150 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3219
15151 msgid "MIPS/SGI volumes."
15152 msgstr ""
15153
15154 # type: =item
15155 #. type: =item
15156 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3221
15157 msgid "B<mac>"
15158 msgstr ""
15159
15160 # type: textblock
15161 #. type: textblock
15162 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3223
15163 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15164 msgstr ""
15165
15166 # type: =item
15167 #. type: =item
15168 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3225
15169 msgid "B<pc98>"
15170 msgstr ""
15171
15172 # type: textblock
15173 #. type: textblock
15174 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3227
15175 msgid "NEC PC-98 format, common in Japan apparently."
15176 msgstr ""
15177
15178 # type: =item
15179 #. type: =item
15180 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3229
15181 msgid "B<sun>"
15182 msgstr ""
15183
15184 # type: textblock
15185 #. type: textblock
15186 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3231
15187 msgid "Sun disk labels."
15188 msgstr ""
15189
15190 # type: =head2
15191 #. type: =head2
15192 #: ../src/guestfs-actions.pod:4842
15193 msgid "guestfs_part_list"
15194 msgstr ""
15195
15196 # type: verbatim
15197 #. type: verbatim
15198 #: ../src/guestfs-actions.pod:4844
15199 #, no-wrap
15200 msgid ""
15201 " struct guestfs_partition_list *\n"
15202 " guestfs_part_list (guestfs_h *g,\n"
15203 "                    const char *device);\n"
15204 "\n"
15205 msgstr ""
15206
15207 # type: textblock
15208 #. type: textblock
15209 #: ../src/guestfs-actions.pod:4848 ../fish/guestfish-actions.pod:3239
15210 msgid ""
15211 "This command parses the partition table on C<device> and returns the list of "
15212 "partitions found."
15213 msgstr ""
15214
15215 # type: textblock
15216 #. type: textblock
15217 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3242
15218 msgid "The fields in the returned structure are:"
15219 msgstr ""
15220
15221 # type: =item
15222 #. type: =item
15223 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3246
15224 msgid "B<part_num>"
15225 msgstr ""
15226
15227 # type: textblock
15228 #. type: textblock
15229 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3248
15230 msgid "Partition number, counting from 1."
15231 msgstr ""
15232
15233 # type: =item
15234 #. type: =item
15235 #: ../src/guestfs-actions.pod:4859 ../fish/guestfish-actions.pod:3250
15236 msgid "B<part_start>"
15237 msgstr ""
15238
15239 # type: textblock
15240 #. type: textblock
15241 #: ../src/guestfs-actions.pod:4861
15242 msgid ""
15243 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15244 "the device's sector size, see C<guestfs_blockdev_getss>."
15245 msgstr ""
15246
15247 # type: =item
15248 #. type: =item
15249 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3255
15250 msgid "B<part_end>"
15251 msgstr ""
15252
15253 # type: textblock
15254 #. type: textblock
15255 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3257
15256 msgid "End of the partition in bytes."
15257 msgstr ""
15258
15259 # type: =item
15260 #. type: =item
15261 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3259
15262 msgid "B<part_size>"
15263 msgstr ""
15264
15265 # type: textblock
15266 #. type: textblock
15267 #: ../src/guestfs-actions.pod:4870 ../fish/guestfish-actions.pod:3261
15268 msgid "Size of the partition in bytes."
15269 msgstr ""
15270
15271 # type: textblock
15272 #. type: textblock
15273 #: ../src/guestfs-actions.pod:4874
15274 msgid ""
15275 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15276 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15277 "use>."
15278 msgstr ""
15279
15280 # type: =head2
15281 #. type: =head2
15282 #: ../src/guestfs-actions.pod:4880
15283 msgid "guestfs_part_set_bootable"
15284 msgstr ""
15285
15286 # type: verbatim
15287 #. type: verbatim
15288 #: ../src/guestfs-actions.pod:4882
15289 #, no-wrap
15290 msgid ""
15291 " int\n"
15292 " guestfs_part_set_bootable (guestfs_h *g,\n"
15293 "                            const char *device,\n"
15294 "                            int partnum,\n"
15295 "                            int bootable);\n"
15296 "\n"
15297 msgstr ""
15298
15299 # type: textblock
15300 #. type: textblock
15301 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3269
15302 msgid ""
15303 "This sets the bootable flag on partition numbered C<partnum> on device "
15304 "C<device>.  Note that partitions are numbered from 1."
15305 msgstr ""
15306
15307 # type: textblock
15308 #. type: textblock
15309 #: ../src/guestfs-actions.pod:4891 ../fish/guestfish-actions.pod:3272
15310 msgid ""
15311 "The bootable flag is used by some operating systems (notably Windows) to "
15312 "determine which partition to boot from.  It is by no means universally "
15313 "recognized."
15314 msgstr ""
15315
15316 # type: =head2
15317 #. type: =head2
15318 #: ../src/guestfs-actions.pod:4899
15319 msgid "guestfs_part_set_mbr_id"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #. type: verbatim
15324 #: ../src/guestfs-actions.pod:4901
15325 #, no-wrap
15326 msgid ""
15327 " int\n"
15328 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15329 "                          const char *device,\n"
15330 "                          int partnum,\n"
15331 "                          int idbyte);\n"
15332 "\n"
15333 msgstr ""
15334
15335 # type: textblock
15336 #. type: textblock
15337 #: ../src/guestfs-actions.pod:4907 ../fish/guestfish-actions.pod:3280
15338 msgid ""
15339 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15340 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15341 "documentation are in fact hexadecimal numbers, but usually documented "
15342 "without any leading \"0x\" which might be confusing."
15343 msgstr ""
15344
15345 # type: =head2
15346 #. type: =head2
15347 #: ../src/guestfs-actions.pod:4921
15348 msgid "guestfs_part_set_name"
15349 msgstr ""
15350
15351 # type: verbatim
15352 #. type: verbatim
15353 #: ../src/guestfs-actions.pod:4923
15354 #, no-wrap
15355 msgid ""
15356 " int\n"
15357 " guestfs_part_set_name (guestfs_h *g,\n"
15358 "                        const char *device,\n"
15359 "                        int partnum,\n"
15360 "                        const char *name);\n"
15361 "\n"
15362 msgstr ""
15363
15364 # type: textblock
15365 #. type: textblock
15366 #: ../src/guestfs-actions.pod:4929 ../fish/guestfish-actions.pod:3294
15367 msgid ""
15368 "This sets the partition name on partition numbered C<partnum> on device "
15369 "C<device>.  Note that partitions are numbered from 1."
15370 msgstr ""
15371
15372 # type: textblock
15373 #. type: textblock
15374 #: ../src/guestfs-actions.pod:4932 ../fish/guestfish-actions.pod:3297
15375 msgid ""
15376 "The partition name can only be set on certain types of partition table.  "
15377 "This works on C<gpt> but not on C<mbr> partitions."
15378 msgstr ""
15379
15380 # type: =head2
15381 #. type: =head2
15382 #: ../src/guestfs-actions.pod:4939
15383 msgid "guestfs_part_to_dev"
15384 msgstr ""
15385
15386 # type: verbatim
15387 #. type: verbatim
15388 #: ../src/guestfs-actions.pod:4941
15389 #, no-wrap
15390 msgid ""
15391 " char *\n"
15392 " guestfs_part_to_dev (guestfs_h *g,\n"
15393 "                      const char *partition);\n"
15394 "\n"
15395 msgstr ""
15396
15397 # type: textblock
15398 #. type: textblock
15399 #: ../src/guestfs-actions.pod:4945 ../fish/guestfish-actions.pod:3304
15400 msgid ""
15401 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15402 "partition number, returning the device name (eg. \"/dev/sdb\")."
15403 msgstr ""
15404
15405 # type: textblock
15406 #. type: textblock
15407 #: ../src/guestfs-actions.pod:4949
15408 msgid ""
15409 "The named partition must exist, for example as a string returned from "
15410 "C<guestfs_list_partitions>."
15411 msgstr ""
15412
15413 # type: =head2
15414 #. type: =head2
15415 #: ../src/guestfs-actions.pod:4957
15416 msgid "guestfs_ping_daemon"
15417 msgstr ""
15418
15419 # type: verbatim
15420 #. type: verbatim
15421 #: ../src/guestfs-actions.pod:4959
15422 #, no-wrap
15423 msgid ""
15424 " int\n"
15425 " guestfs_ping_daemon (guestfs_h *g);\n"
15426 "\n"
15427 msgstr ""
15428
15429 # type: textblock
15430 #. type: textblock
15431 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3315
15432 msgid ""
15433 "This is a test probe into the guestfs daemon running inside the qemu "
15434 "subprocess.  Calling this function checks that the daemon responds to the "
15435 "ping message, without affecting the daemon or attached block device(s) in "
15436 "any other way."
15437 msgstr ""
15438
15439 # type: =head2
15440 #. type: =head2
15441 #: ../src/guestfs-actions.pod:4971
15442 msgid "guestfs_pread"
15443 msgstr ""
15444
15445 # type: verbatim
15446 #. type: verbatim
15447 #: ../src/guestfs-actions.pod:4973
15448 #, no-wrap
15449 msgid ""
15450 " char *\n"
15451 " guestfs_pread (guestfs_h *g,\n"
15452 "                const char *path,\n"
15453 "                int count,\n"
15454 "                int64_t offset,\n"
15455 "                size_t *size_r);\n"
15456 "\n"
15457 msgstr ""
15458
15459 # type: textblock
15460 #. type: textblock
15461 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3324
15462 msgid ""
15463 "This command lets you read part of a file.  It reads C<count> bytes of the "
15464 "file, starting at C<offset>, from file C<path>."
15465 msgstr ""
15466
15467 # type: textblock
15468 #. type: textblock
15469 #: ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5009
15470 #: ../fish/guestfish-actions.pod:3327 ../fish/guestfish-actions.pod:3342
15471 msgid ""
15472 "This may read fewer bytes than requested.  For further details see the "
15473 "L<pread(2)> system call."
15474 msgstr ""
15475
15476 # type: textblock
15477 #. type: textblock
15478 #: ../src/guestfs-actions.pod:4986
15479 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15480 msgstr ""
15481
15482 # type: =head2
15483 #. type: =head2
15484 #: ../src/guestfs-actions.pod:4997
15485 msgid "guestfs_pread_device"
15486 msgstr ""
15487
15488 # type: verbatim
15489 #. type: verbatim
15490 #: ../src/guestfs-actions.pod:4999
15491 #, no-wrap
15492 msgid ""
15493 " char *\n"
15494 " guestfs_pread_device (guestfs_h *g,\n"
15495 "                       const char *device,\n"
15496 "                       int count,\n"
15497 "                       int64_t offset,\n"
15498 "                       size_t *size_r);\n"
15499 "\n"
15500 msgstr ""
15501
15502 # type: textblock
15503 #. type: textblock
15504 #: ../src/guestfs-actions.pod:5006 ../fish/guestfish-actions.pod:3339
15505 msgid ""
15506 "This command lets you read part of a file.  It reads C<count> bytes of "
15507 "C<device>, starting at C<offset>."
15508 msgstr ""
15509
15510 # type: textblock
15511 #. type: textblock
15512 #: ../src/guestfs-actions.pod:5012
15513 msgid "See also C<guestfs_pread>."
15514 msgstr ""
15515
15516 # type: textblock
15517 #. type: textblock
15518 #: ../src/guestfs-actions.pod:5021
15519 msgid "(Added in 1.5.21)"
15520 msgstr ""
15521
15522 # type: =head2
15523 #. type: =head2
15524 #: ../src/guestfs-actions.pod:5023
15525 msgid "guestfs_pvcreate"
15526 msgstr ""
15527
15528 # type: verbatim
15529 #. type: verbatim
15530 #: ../src/guestfs-actions.pod:5025
15531 #, no-wrap
15532 msgid ""
15533 " int\n"
15534 " guestfs_pvcreate (guestfs_h *g,\n"
15535 "                   const char *device);\n"
15536 "\n"
15537 msgstr ""
15538
15539 # type: textblock
15540 #. type: textblock
15541 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3354
15542 msgid ""
15543 "This creates an LVM physical volume on the named C<device>, where C<device> "
15544 "should usually be a partition name such as C</dev/sda1>."
15545 msgstr ""
15546
15547 # type: =head2
15548 #. type: =head2
15549 #: ../src/guestfs-actions.pod:5037
15550 msgid "guestfs_pvremove"
15551 msgstr ""
15552
15553 # type: verbatim
15554 #. type: verbatim
15555 #: ../src/guestfs-actions.pod:5039
15556 #, no-wrap
15557 msgid ""
15558 " int\n"
15559 " guestfs_pvremove (guestfs_h *g,\n"
15560 "                   const char *device);\n"
15561 "\n"
15562 msgstr ""
15563
15564 # type: textblock
15565 #. type: textblock
15566 #: ../src/guestfs-actions.pod:5043 ../fish/guestfish-actions.pod:3362
15567 msgid ""
15568 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15569 "it."
15570 msgstr ""
15571
15572 # type: textblock
15573 #. type: textblock
15574 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3365
15575 msgid ""
15576 "The implementation uses the C<pvremove> command which refuses to wipe "
15577 "physical volumes that contain any volume groups, so you have to remove those "
15578 "first."
15579 msgstr ""
15580
15581 # type: =head2
15582 #. type: =head2
15583 #: ../src/guestfs-actions.pod:5054
15584 msgid "guestfs_pvresize"
15585 msgstr ""
15586
15587 # type: verbatim
15588 #. type: verbatim
15589 #: ../src/guestfs-actions.pod:5056
15590 #, no-wrap
15591 msgid ""
15592 " int\n"
15593 " guestfs_pvresize (guestfs_h *g,\n"
15594 "                   const char *device);\n"
15595 "\n"
15596 msgstr ""
15597
15598 # type: textblock
15599 #. type: textblock
15600 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3373
15601 msgid ""
15602 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15603 "the new size of the underlying device."
15604 msgstr ""
15605
15606 # type: =head2
15607 #. type: =head2
15608 #: ../src/guestfs-actions.pod:5067
15609 msgid "guestfs_pvresize_size"
15610 msgstr ""
15611
15612 # type: verbatim
15613 #. type: verbatim
15614 #: ../src/guestfs-actions.pod:5069
15615 #, no-wrap
15616 msgid ""
15617 " int\n"
15618 " guestfs_pvresize_size (guestfs_h *g,\n"
15619 "                        const char *device,\n"
15620 "                        int64_t size);\n"
15621 "\n"
15622 msgstr ""
15623
15624 # type: textblock
15625 #. type: textblock
15626 #: ../src/guestfs-actions.pod:5074
15627 msgid ""
15628 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15629 "specify the new size (in bytes) explicitly."
15630 msgstr ""
15631
15632 # type: =head2
15633 #. type: =head2
15634 #: ../src/guestfs-actions.pod:5081
15635 msgid "guestfs_pvs"
15636 msgstr ""
15637
15638 # type: verbatim
15639 #. type: verbatim
15640 #: ../src/guestfs-actions.pod:5083
15641 #, no-wrap
15642 msgid ""
15643 " char **\n"
15644 " guestfs_pvs (guestfs_h *g);\n"
15645 "\n"
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3387
15651 msgid ""
15652 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15653 "(8)> command."
15654 msgstr ""
15655
15656 # type: textblock
15657 #. type: textblock
15658 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3390
15659 msgid ""
15660 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15661 "sda2>)."
15662 msgstr ""
15663
15664 # type: textblock
15665 #. type: textblock
15666 #: ../src/guestfs-actions.pod:5092
15667 msgid "See also C<guestfs_pvs_full>."
15668 msgstr ""
15669
15670 # type: =head2
15671 #. type: =head2
15672 #: ../src/guestfs-actions.pod:5100
15673 msgid "guestfs_pvs_full"
15674 msgstr ""
15675
15676 # type: verbatim
15677 #. type: verbatim
15678 #: ../src/guestfs-actions.pod:5102
15679 #, no-wrap
15680 msgid ""
15681 " struct guestfs_lvm_pv_list *\n"
15682 " guestfs_pvs_full (guestfs_h *g);\n"
15683 "\n"
15684 msgstr ""
15685
15686 # type: textblock
15687 #. type: textblock
15688 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3399
15689 msgid ""
15690 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15691 "(8)> command.  The \"full\" version includes all fields."
15692 msgstr ""
15693
15694 # type: textblock
15695 #. type: textblock
15696 #: ../src/guestfs-actions.pod:5108
15697 msgid ""
15698 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15699 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15700 msgstr ""
15701
15702 # type: =head2
15703 #. type: =head2
15704 #: ../src/guestfs-actions.pod:5114
15705 msgid "guestfs_pvuuid"
15706 msgstr ""
15707
15708 # type: verbatim
15709 #. type: verbatim
15710 #: ../src/guestfs-actions.pod:5116
15711 #, no-wrap
15712 msgid ""
15713 " char *\n"
15714 " guestfs_pvuuid (guestfs_h *g,\n"
15715 "                 const char *device);\n"
15716 "\n"
15717 msgstr ""
15718
15719 # type: textblock
15720 #. type: textblock
15721 #: ../src/guestfs-actions.pod:5120 ../fish/guestfish-actions.pod:3406
15722 msgid "This command returns the UUID of the LVM PV C<device>."
15723 msgstr ""
15724
15725 # type: =head2
15726 #. type: =head2
15727 #: ../src/guestfs-actions.pod:5127
15728 msgid "guestfs_pwrite"
15729 msgstr ""
15730
15731 # type: verbatim
15732 #. type: verbatim
15733 #: ../src/guestfs-actions.pod:5129
15734 #, no-wrap
15735 msgid ""
15736 " int\n"
15737 " guestfs_pwrite (guestfs_h *g,\n"
15738 "                 const char *path,\n"
15739 "                 const char *content,\n"
15740 "                 size_t content_size,\n"
15741 "                 int64_t offset);\n"
15742 "\n"
15743 msgstr ""
15744
15745 # type: textblock
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5136 ../fish/guestfish-actions.pod:3412
15748 msgid ""
15749 "This command writes to part of a file.  It writes the data buffer C<content> "
15750 "to the file C<path> starting at offset C<offset>."
15751 msgstr ""
15752
15753 # type: textblock
15754 #. type: textblock
15755 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3415
15756 msgid ""
15757 "This command implements the L<pwrite(2)> system call, and like that system "
15758 "call it may not write the full data requested.  The return value is the "
15759 "number of bytes that were actually written to the file.  This could even be "
15760 "0, although short writes are unlikely for regular files in ordinary "
15761 "circumstances."
15762 msgstr ""
15763
15764 # type: textblock
15765 #. type: textblock
15766 #: ../src/guestfs-actions.pod:5145
15767 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15768 msgstr ""
15769
15770 # type: =head2
15771 #. type: =head2
15772 #: ../src/guestfs-actions.pod:5154
15773 msgid "guestfs_pwrite_device"
15774 msgstr ""
15775
15776 # type: verbatim
15777 #. type: verbatim
15778 #: ../src/guestfs-actions.pod:5156
15779 #, no-wrap
15780 msgid ""
15781 " int\n"
15782 " guestfs_pwrite_device (guestfs_h *g,\n"
15783 "                        const char *device,\n"
15784 "                        const char *content,\n"
15785 "                        size_t content_size,\n"
15786 "                        int64_t offset);\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: textblock
15791 #. type: textblock
15792 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3430
15793 msgid ""
15794 "This command writes to part of a device.  It writes the data buffer "
15795 "C<content> to C<device> starting at offset C<offset>."
15796 msgstr ""
15797
15798 # type: textblock
15799 #. type: textblock
15800 #: ../src/guestfs-actions.pod:5166 ../fish/guestfish-actions.pod:3433
15801 msgid ""
15802 "This command implements the L<pwrite(2)> system call, and like that system "
15803 "call it may not write the full data requested (although short writes to disk "
15804 "devices and partitions are probably impossible with standard Linux kernels)."
15805 msgstr ""
15806
15807 # type: textblock
15808 #. type: textblock
15809 #: ../src/guestfs-actions.pod:5171
15810 msgid "See also C<guestfs_pwrite>."
15811 msgstr ""
15812
15813 # type: textblock
15814 #. type: textblock
15815 #: ../src/guestfs-actions.pod:5178
15816 msgid "(Added in 1.5.20)"
15817 msgstr ""
15818
15819 # type: =head2
15820 #. type: =head2
15821 #: ../src/guestfs-actions.pod:5180
15822 msgid "guestfs_read_file"
15823 msgstr ""
15824
15825 # type: verbatim
15826 #. type: verbatim
15827 #: ../src/guestfs-actions.pod:5182
15828 #, no-wrap
15829 msgid ""
15830 " char *\n"
15831 " guestfs_read_file (guestfs_h *g,\n"
15832 "                    const char *path,\n"
15833 "                    size_t *size_r);\n"
15834 "\n"
15835 msgstr ""
15836
15837 # type: textblock
15838 #. type: textblock
15839 #: ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:3447
15840 msgid "This calls returns the contents of the file C<path> as a buffer."
15841 msgstr ""
15842
15843 # type: textblock
15844 #. type: textblock
15845 #: ../src/guestfs-actions.pod:5190
15846 msgid ""
15847 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15848 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15849 "function is limited in the total size of file that can be handled."
15850 msgstr ""
15851
15852 # type: textblock
15853 #. type: textblock
15854 #: ../src/guestfs-actions.pod:5202
15855 msgid "(Added in 1.0.63)"
15856 msgstr ""
15857
15858 # type: =head2
15859 #. type: =head2
15860 #: ../src/guestfs-actions.pod:5204
15861 msgid "guestfs_read_lines"
15862 msgstr ""
15863
15864 # type: verbatim
15865 #. type: verbatim
15866 #: ../src/guestfs-actions.pod:5206
15867 #, no-wrap
15868 msgid ""
15869 " char **\n"
15870 " guestfs_read_lines (guestfs_h *g,\n"
15871 "                     const char *path);\n"
15872 "\n"
15873 msgstr ""
15874
15875 # type: textblock
15876 #. type: textblock
15877 #: ../src/guestfs-actions.pod:5212 ../fish/guestfish-actions.pod:3464
15878 msgid ""
15879 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15880 "C<CRLF> character sequences are I<not> returned."
15881 msgstr ""
15882
15883 # type: textblock
15884 #. type: textblock
15885 #: ../src/guestfs-actions.pod:5215
15886 msgid ""
15887 "Note that this function cannot correctly handle binary files (specifically, "
15888 "files containing C<\\0> character which is treated as end of line).  For "
15889 "those you need to use the C<guestfs_read_file> function which has a more "
15890 "complex interface."
15891 msgstr ""
15892
15893 # type: =head2
15894 #. type: =head2
15895 #: ../src/guestfs-actions.pod:5226
15896 msgid "guestfs_readdir"
15897 msgstr ""
15898
15899 # type: verbatim
15900 #. type: verbatim
15901 #: ../src/guestfs-actions.pod:5228
15902 #, no-wrap
15903 msgid ""
15904 " struct guestfs_dirent_list *\n"
15905 " guestfs_readdir (guestfs_h *g,\n"
15906 "                  const char *dir);\n"
15907 "\n"
15908 msgstr ""
15909
15910 # type: textblock
15911 #. type: textblock
15912 #: ../src/guestfs-actions.pod:5232 ../fish/guestfish-actions.pod:3476
15913 msgid "This returns the list of directory entries in directory C<dir>."
15914 msgstr ""
15915
15916 # type: textblock
15917 #. type: textblock
15918 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3478
15919 msgid ""
15920 "All entries in the directory are returned, including C<.> and C<..>.  The "
15921 "entries are I<not> sorted, but returned in the same order as the underlying "
15922 "filesystem."
15923 msgstr ""
15924
15925 # type: textblock
15926 #. type: textblock
15927 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3482
15928 msgid ""
15929 "Also this call returns basic file type information about each file.  The "
15930 "C<ftyp> field will contain one of the following characters:"
15931 msgstr ""
15932
15933 # type: =item
15934 #. type: =item
15935 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3487
15936 msgid "'b'"
15937 msgstr ""
15938
15939 # type: textblock
15940 #. type: textblock
15941 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3489
15942 msgid "Block special"
15943 msgstr ""
15944
15945 # type: =item
15946 #. type: =item
15947 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3491
15948 msgid "'c'"
15949 msgstr ""
15950
15951 # type: textblock
15952 #. type: textblock
15953 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3493
15954 msgid "Char special"
15955 msgstr ""
15956
15957 # type: =item
15958 #. type: =item
15959 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3495
15960 msgid "'d'"
15961 msgstr ""
15962
15963 # type: textblock
15964 #. type: textblock
15965 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3497
15966 msgid "Directory"
15967 msgstr ""
15968
15969 # type: =item
15970 #. type: =item
15971 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3499
15972 msgid "'f'"
15973 msgstr ""
15974
15975 # type: textblock
15976 #. type: textblock
15977 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3501
15978 msgid "FIFO (named pipe)"
15979 msgstr ""
15980
15981 # type: =item
15982 #. type: =item
15983 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3503
15984 msgid "'l'"
15985 msgstr ""
15986
15987 # type: textblock
15988 #. type: textblock
15989 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3505
15990 msgid "Symbolic link"
15991 msgstr ""
15992
15993 # type: =item
15994 #. type: =item
15995 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3507
15996 msgid "'r'"
15997 msgstr ""
15998
15999 # type: textblock
16000 #. type: textblock
16001 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3509
16002 msgid "Regular file"
16003 msgstr ""
16004
16005 # type: =item
16006 #. type: =item
16007 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3511
16008 msgid "'s'"
16009 msgstr ""
16010
16011 # type: textblock
16012 #. type: textblock
16013 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3513
16014 msgid "Socket"
16015 msgstr ""
16016
16017 # type: =item
16018 #. type: =item
16019 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3515
16020 msgid "'u'"
16021 msgstr ""
16022
16023 # type: textblock
16024 #. type: textblock
16025 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3517
16026 msgid "Unknown file type"
16027 msgstr ""
16028
16029 # type: =item
16030 #. type: =item
16031 #: ../src/guestfs-actions.pod:5275 ../fish/guestfish-actions.pod:3519
16032 msgid "'?'"
16033 msgstr ""
16034
16035 # type: textblock
16036 #. type: textblock
16037 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3521
16038 msgid ""
16039 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16040 msgstr ""
16041
16042 # type: textblock
16043 #. type: textblock
16044 #: ../src/guestfs-actions.pod:5282
16045 msgid ""
16046 "This function is primarily intended for use by programs.  To get a simple "
16047 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16048 "consumption, use C<guestfs_ll>."
16049 msgstr ""
16050
16051 # type: textblock
16052 #. type: textblock
16053 #: ../src/guestfs-actions.pod:5286
16054 msgid ""
16055 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16056 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16057 msgstr ""
16058
16059 # type: =head2
16060 #. type: =head2
16061 #: ../src/guestfs-actions.pod:5292
16062 msgid "guestfs_readlink"
16063 msgstr ""
16064
16065 # type: verbatim
16066 #. type: verbatim
16067 #: ../src/guestfs-actions.pod:5294
16068 #, no-wrap
16069 msgid ""
16070 " char *\n"
16071 " guestfs_readlink (guestfs_h *g,\n"
16072 "                   const char *path);\n"
16073 "\n"
16074 msgstr ""
16075
16076 # type: textblock
16077 #. type: textblock
16078 #: ../src/guestfs-actions.pod:5298 ../fish/guestfish-actions.pod:3534
16079 msgid "This command reads the target of a symbolic link."
16080 msgstr ""
16081
16082 # type: =head2
16083 #. type: =head2
16084 #: ../src/guestfs-actions.pod:5305
16085 msgid "guestfs_readlinklist"
16086 msgstr ""
16087
16088 # type: verbatim
16089 #. type: verbatim
16090 #: ../src/guestfs-actions.pod:5307
16091 #, no-wrap
16092 msgid ""
16093 " char **\n"
16094 " guestfs_readlinklist (guestfs_h *g,\n"
16095 "                       const char *path,\n"
16096 "                       char *const *names);\n"
16097 "\n"
16098 msgstr ""
16099
16100 # type: textblock
16101 #. type: textblock
16102 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3540
16103 msgid ""
16104 "This call allows you to do a C<readlink> operation on multiple files, where "
16105 "all files are in the directory C<path>.  C<names> is the list of files from "
16106 "this directory."
16107 msgstr ""
16108
16109 # type: textblock
16110 #. type: textblock
16111 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
16112 msgid ""
16113 "On return you get a list of strings, with a one-to-one correspondence to the "
16114 "C<names> list.  Each string is the value of the symbolic link."
16115 msgstr ""
16116
16117 # type: textblock
16118 #. type: textblock
16119 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:3548
16120 msgid ""
16121 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16122 "result string is the empty string C<\"\">.  However the whole operation is "
16123 "completed even if there were C<readlink(2)> errors, and so you can call this "
16124 "function with names where you don't know if they are symbolic links already "
16125 "(albeit slightly less efficient)."
16126 msgstr ""
16127
16128 # type: textblock
16129 #. type: textblock
16130 #: ../src/guestfs-actions.pod:5327 ../fish/guestfish-actions.pod:3555
16131 msgid ""
16132 "This call is intended for programs that want to efficiently list a directory "
16133 "contents without making many round-trips.  Very long directory listings "
16134 "might cause the protocol message size to be exceeded, causing this call to "
16135 "fail.  The caller must split up such requests into smaller groups of names."
16136 msgstr ""
16137
16138 # type: =head2
16139 #. type: =head2
16140 #: ../src/guestfs-actions.pod:5340
16141 msgid "guestfs_realpath"
16142 msgstr ""
16143
16144 # type: verbatim
16145 #. type: verbatim
16146 #: ../src/guestfs-actions.pod:5342
16147 #, no-wrap
16148 msgid ""
16149 " char *\n"
16150 " guestfs_realpath (guestfs_h *g,\n"
16151 "                   const char *path);\n"
16152 "\n"
16153 msgstr ""
16154
16155 # type: textblock
16156 #. type: textblock
16157 #: ../src/guestfs-actions.pod:5346 ../fish/guestfish-actions.pod:3566
16158 msgid ""
16159 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16160 "has no C<.>, C<..> or symbolic link path elements."
16161 msgstr ""
16162
16163 # type: =head2
16164 #. type: =head2
16165 #: ../src/guestfs-actions.pod:5354
16166 msgid "guestfs_removexattr"
16167 msgstr ""
16168
16169 # type: verbatim
16170 #. type: verbatim
16171 #: ../src/guestfs-actions.pod:5356
16172 #, no-wrap
16173 msgid ""
16174 " int\n"
16175 " guestfs_removexattr (guestfs_h *g,\n"
16176 "                      const char *xattr,\n"
16177 "                      const char *path);\n"
16178 "\n"
16179 msgstr ""
16180
16181 # type: textblock
16182 #. type: textblock
16183 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3573
16184 msgid ""
16185 "This call removes the extended attribute named C<xattr> of the file C<path>."
16186 msgstr ""
16187
16188 # type: textblock
16189 #. type: textblock
16190 #: ../src/guestfs-actions.pod:5364
16191 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16192 msgstr ""
16193
16194 # type: =head2
16195 #. type: =head2
16196 #: ../src/guestfs-actions.pod:5370
16197 msgid "guestfs_resize2fs"
16198 msgstr ""
16199
16200 # type: verbatim
16201 #. type: verbatim
16202 #: ../src/guestfs-actions.pod:5372
16203 #, no-wrap
16204 msgid ""
16205 " int\n"
16206 " guestfs_resize2fs (guestfs_h *g,\n"
16207 "                    const char *device);\n"
16208 "\n"
16209 msgstr ""
16210
16211 # type: textblock
16212 #. type: textblock
16213 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3582
16214 msgid ""
16215 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16216 "underlying device."
16217 msgstr ""
16218
16219 # type: textblock
16220 #. type: textblock
16221 #: ../src/guestfs-actions.pod:5379
16222 msgid ""
16223 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16224 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16225 "sometimes gives an error about this and sometimes not.  In any case, it is "
16226 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16227 msgstr ""
16228
16229 # type: =head2
16230 #. type: =head2
16231 #: ../src/guestfs-actions.pod:5389
16232 msgid "guestfs_resize2fs_size"
16233 msgstr ""
16234
16235 # type: verbatim
16236 #. type: verbatim
16237 #: ../src/guestfs-actions.pod:5391
16238 #, no-wrap
16239 msgid ""
16240 " int\n"
16241 " guestfs_resize2fs_size (guestfs_h *g,\n"
16242 "                         const char *device,\n"
16243 "                         int64_t size);\n"
16244 "\n"
16245 msgstr ""
16246
16247 # type: textblock
16248 #. type: textblock
16249 #: ../src/guestfs-actions.pod:5396
16250 msgid ""
16251 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16252 "to specify the new size (in bytes) explicitly."
16253 msgstr ""
16254
16255 # type: =head2
16256 #. type: =head2
16257 #: ../src/guestfs-actions.pod:5403
16258 msgid "guestfs_rm"
16259 msgstr ""
16260
16261 # type: verbatim
16262 #. type: verbatim
16263 #: ../src/guestfs-actions.pod:5405
16264 #, no-wrap
16265 msgid ""
16266 " int\n"
16267 " guestfs_rm (guestfs_h *g,\n"
16268 "             const char *path);\n"
16269 "\n"
16270 msgstr ""
16271
16272 # type: textblock
16273 #. type: textblock
16274 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:3602
16275 msgid "Remove the single file C<path>."
16276 msgstr ""
16277
16278 # type: =head2
16279 #. type: =head2
16280 #: ../src/guestfs-actions.pod:5415
16281 msgid "guestfs_rm_rf"
16282 msgstr ""
16283
16284 # type: verbatim
16285 #. type: verbatim
16286 #: ../src/guestfs-actions.pod:5417
16287 #, no-wrap
16288 msgid ""
16289 " int\n"
16290 " guestfs_rm_rf (guestfs_h *g,\n"
16291 "                const char *path);\n"
16292 "\n"
16293 msgstr ""
16294
16295 # type: textblock
16296 #. type: textblock
16297 #: ../src/guestfs-actions.pod:5421 ../fish/guestfish-actions.pod:3608
16298 msgid ""
16299 "Remove the file or directory C<path>, recursively removing the contents if "
16300 "its a directory.  This is like the C<rm -rf> shell command."
16301 msgstr ""
16302
16303 # type: =head2
16304 #. type: =head2
16305 #: ../src/guestfs-actions.pod:5429
16306 msgid "guestfs_rmdir"
16307 msgstr ""
16308
16309 # type: verbatim
16310 #. type: verbatim
16311 #: ../src/guestfs-actions.pod:5431
16312 #, no-wrap
16313 msgid ""
16314 " int\n"
16315 " guestfs_rmdir (guestfs_h *g,\n"
16316 "                const char *path);\n"
16317 "\n"
16318 msgstr ""
16319
16320 # type: textblock
16321 #. type: textblock
16322 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3616
16323 msgid "Remove the single directory C<path>."
16324 msgstr ""
16325
16326 # type: =head2
16327 #. type: =head2
16328 #: ../src/guestfs-actions.pod:5441
16329 msgid "guestfs_rmmountpoint"
16330 msgstr ""
16331
16332 # type: verbatim
16333 #. type: verbatim
16334 #: ../src/guestfs-actions.pod:5443
16335 #, no-wrap
16336 msgid ""
16337 " int\n"
16338 " guestfs_rmmountpoint (guestfs_h *g,\n"
16339 "                       const char *exemptpath);\n"
16340 "\n"
16341 msgstr ""
16342
16343 # type: textblock
16344 #. type: textblock
16345 #: ../src/guestfs-actions.pod:5447
16346 msgid ""
16347 "This calls removes a mountpoint that was previously created with "
16348 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16349 msgstr ""
16350
16351 # type: =head2
16352 #. type: =head2
16353 #: ../src/guestfs-actions.pod:5455
16354 msgid "guestfs_scrub_device"
16355 msgstr ""
16356
16357 # type: verbatim
16358 #. type: verbatim
16359 #: ../src/guestfs-actions.pod:5457
16360 #, no-wrap
16361 msgid ""
16362 " int\n"
16363 " guestfs_scrub_device (guestfs_h *g,\n"
16364 "                       const char *device);\n"
16365 "\n"
16366 msgstr ""
16367
16368 # type: textblock
16369 #. type: textblock
16370 #: ../src/guestfs-actions.pod:5461 ../fish/guestfish-actions.pod:3630
16371 msgid ""
16372 "This command writes patterns over C<device> to make data retrieval more "
16373 "difficult."
16374 msgstr ""
16375
16376 # type: textblock
16377 #. type: textblock
16378 #: ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5485
16379 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:3633
16380 #: ../fish/guestfish-actions.pod:3648 ../fish/guestfish-actions.pod:3661
16381 msgid ""
16382 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16383 "more details."
16384 msgstr ""
16385
16386 # type: textblock
16387 #. type: textblock
16388 #: ../src/guestfs-actions.pod:5472 ../src/guestfs-actions.pod:5490
16389 #: ../src/guestfs-actions.pod:5509
16390 msgid "(Added in 1.0.52)"
16391 msgstr ""
16392
16393 # type: =head2
16394 #. type: =head2
16395 #: ../src/guestfs-actions.pod:5474
16396 msgid "guestfs_scrub_file"
16397 msgstr ""
16398
16399 # type: verbatim
16400 #. type: verbatim
16401 #: ../src/guestfs-actions.pod:5476
16402 #, no-wrap
16403 msgid ""
16404 " int\n"
16405 " guestfs_scrub_file (guestfs_h *g,\n"
16406 "                     const char *file);\n"
16407 "\n"
16408 msgstr ""
16409
16410 # type: textblock
16411 #. type: textblock
16412 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3643
16413 msgid ""
16414 "This command writes patterns over a file to make data retrieval more "
16415 "difficult."
16416 msgstr ""
16417
16418 # type: textblock
16419 #. type: textblock
16420 #: ../src/guestfs-actions.pod:5483 ../fish/guestfish-actions.pod:3646
16421 msgid "The file is I<removed> after scrubbing."
16422 msgstr ""
16423
16424 # type: =head2
16425 #. type: =head2
16426 #: ../src/guestfs-actions.pod:5492
16427 msgid "guestfs_scrub_freespace"
16428 msgstr ""
16429
16430 # type: verbatim
16431 #. type: verbatim
16432 #: ../src/guestfs-actions.pod:5494
16433 #, no-wrap
16434 msgid ""
16435 " int\n"
16436 " guestfs_scrub_freespace (guestfs_h *g,\n"
16437 "                          const char *dir);\n"
16438 "\n"
16439 msgstr ""
16440
16441 # type: textblock
16442 #. type: textblock
16443 #: ../src/guestfs-actions.pod:5498
16444 msgid ""
16445 "This command creates the directory C<dir> and then fills it with files until "
16446 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16447 "and deletes them.  The intention is to scrub any free space on the partition "
16448 "containing C<dir>."
16449 msgstr ""
16450
16451 # type: =head2
16452 #. type: =head2
16453 #: ../src/guestfs-actions.pod:5511
16454 msgid "guestfs_set_append"
16455 msgstr ""
16456
16457 # type: verbatim
16458 #. type: verbatim
16459 #: ../src/guestfs-actions.pod:5513
16460 #, no-wrap
16461 msgid ""
16462 " int\n"
16463 " guestfs_set_append (guestfs_h *g,\n"
16464 "                     const char *append);\n"
16465 "\n"
16466 msgstr ""
16467
16468 # type: textblock
16469 #. type: textblock
16470 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3670
16471 msgid ""
16472 "This function is used to add additional options to the guest kernel command "
16473 "line."
16474 msgstr ""
16475
16476 # type: textblock
16477 #. type: textblock
16478 #: ../src/guestfs-actions.pod:5520 ../fish/guestfish-actions.pod:3673
16479 msgid ""
16480 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16481 "environment variable."
16482 msgstr ""
16483
16484 # type: textblock
16485 #. type: textblock
16486 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3676
16487 msgid ""
16488 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16489 "(libguestfs always adds a few of its own)."
16490 msgstr ""
16491
16492 # type: =head2
16493 #. type: =head2
16494 #: ../src/guestfs-actions.pod:5530
16495 msgid "guestfs_set_autosync"
16496 msgstr ""
16497
16498 # type: verbatim
16499 #. type: verbatim
16500 #: ../src/guestfs-actions.pod:5532
16501 #, no-wrap
16502 msgid ""
16503 " int\n"
16504 " guestfs_set_autosync (guestfs_h *g,\n"
16505 "                       int autosync);\n"
16506 "\n"
16507 msgstr ""
16508
16509 # type: textblock
16510 #. type: textblock
16511 #: ../src/guestfs-actions.pod:5536
16512 msgid ""
16513 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16514 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
16515 "the handle is closed (also if the program exits without closing handles)."
16516 msgstr ""
16517
16518 # type: textblock
16519 #. type: textblock
16520 #: ../src/guestfs-actions.pod:5541 ../fish/guestfish-actions.pod:3690
16521 msgid ""
16522 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16523 "disabled by default)."
16524 msgstr ""
16525
16526 # type: =head2
16527 #. type: =head2
16528 #: ../src/guestfs-actions.pod:5548
16529 msgid "guestfs_set_direct"
16530 msgstr ""
16531
16532 # type: verbatim
16533 #. type: verbatim
16534 #: ../src/guestfs-actions.pod:5550
16535 #, no-wrap
16536 msgid ""
16537 " int\n"
16538 " guestfs_set_direct (guestfs_h *g,\n"
16539 "                     int direct);\n"
16540 "\n"
16541 msgstr ""
16542
16543 # type: textblock
16544 #. type: textblock
16545 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3699
16546 msgid ""
16547 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16548 "passed directly through to the appliance once it is launched."
16549 msgstr ""
16550
16551 # type: textblock
16552 #. type: textblock
16553 #: ../src/guestfs-actions.pod:5558
16554 msgid ""
16555 "One consequence of this is that log messages aren't caught by the library "
16556 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16557 "stdout."
16558 msgstr ""
16559
16560 # type: textblock
16561 #. type: textblock
16562 #: ../src/guestfs-actions.pod:5562 ../fish/guestfish-actions.pod:3707
16563 msgid "You probably don't want to use this unless you know what you are doing."
16564 msgstr ""
16565
16566 # type: textblock
16567 #. type: textblock
16568 #: ../src/guestfs-actions.pod:5565 ../fish/guestfish-actions.pod:3710
16569 msgid "The default is disabled."
16570 msgstr ""
16571
16572 # type: =head2
16573 #. type: =head2
16574 #: ../src/guestfs-actions.pod:5571
16575 msgid "guestfs_set_e2label"
16576 msgstr ""
16577
16578 # type: verbatim
16579 #. type: verbatim
16580 #: ../src/guestfs-actions.pod:5573
16581 #, no-wrap
16582 msgid ""
16583 " int\n"
16584 " guestfs_set_e2label (guestfs_h *g,\n"
16585 "                      const char *device,\n"
16586 "                      const char *label);\n"
16587 "\n"
16588 msgstr ""
16589
16590 # type: textblock
16591 #. type: textblock
16592 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3716
16593 msgid ""
16594 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16595 "C<label>.  Filesystem labels are limited to 16 characters."
16596 msgstr ""
16597
16598 # type: textblock
16599 #. type: textblock
16600 #: ../src/guestfs-actions.pod:5582
16601 msgid ""
16602 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16603 "the existing label on a filesystem."
16604 msgstr ""
16605
16606 # type: =head2
16607 #. type: =head2
16608 #: ../src/guestfs-actions.pod:5589
16609 msgid "guestfs_set_e2uuid"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #. type: verbatim
16614 #: ../src/guestfs-actions.pod:5591
16615 #, no-wrap
16616 msgid ""
16617 " int\n"
16618 " guestfs_set_e2uuid (guestfs_h *g,\n"
16619 "                     const char *device,\n"
16620 "                     const char *uuid);\n"
16621 "\n"
16622 msgstr ""
16623
16624 # type: textblock
16625 #. type: textblock
16626 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3727
16627 msgid ""
16628 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16629 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16630 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16631 msgstr ""
16632
16633 # type: textblock
16634 #. type: textblock
16635 #: ../src/guestfs-actions.pod:5601
16636 msgid ""
16637 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16638 "the existing UUID of a filesystem."
16639 msgstr ""
16640
16641 # type: =head2
16642 #. type: =head2
16643 #: ../src/guestfs-actions.pod:5608
16644 msgid "guestfs_set_memsize"
16645 msgstr ""
16646
16647 # type: verbatim
16648 #. type: verbatim
16649 #: ../src/guestfs-actions.pod:5610
16650 #, no-wrap
16651 msgid ""
16652 " int\n"
16653 " guestfs_set_memsize (guestfs_h *g,\n"
16654 "                      int memsize);\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: textblock
16659 #. type: textblock
16660 #: ../src/guestfs-actions.pod:5614
16661 msgid ""
16662 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16663 "This only has any effect if called before C<guestfs_launch>."
16664 msgstr ""
16665
16666 # type: textblock
16667 #. type: textblock
16668 #: ../src/guestfs-actions.pod:5618 ../fish/guestfish-actions.pod:3745
16669 msgid ""
16670 "You can also change this by setting the environment variable "
16671 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16672 msgstr ""
16673
16674 # type: =head2
16675 #. type: =head2
16676 #: ../src/guestfs-actions.pod:5629
16677 msgid "guestfs_set_network"
16678 msgstr ""
16679
16680 # type: verbatim
16681 #. type: verbatim
16682 #: ../src/guestfs-actions.pod:5631
16683 #, no-wrap
16684 msgid ""
16685 " int\n"
16686 " guestfs_set_network (guestfs_h *g,\n"
16687 "                      int network);\n"
16688 "\n"
16689 msgstr ""
16690
16691 # type: textblock
16692 #. type: textblock
16693 #: ../src/guestfs-actions.pod:5635 ../fish/guestfish-actions.pod:3758
16694 msgid ""
16695 "If C<network> is true, then the network is enabled in the libguestfs "
16696 "appliance.  The default is false."
16697 msgstr ""
16698
16699 # type: textblock
16700 #. type: textblock
16701 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:3761
16702 msgid ""
16703 "This affects whether commands are able to access the network (see L<guestfs"
16704 "(3)/RUNNING COMMANDS>)."
16705 msgstr ""
16706
16707 # type: textblock
16708 #. type: textblock
16709 #: ../src/guestfs-actions.pod:5641
16710 msgid ""
16711 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16712 "effect."
16713 msgstr ""
16714
16715 # type: =head2
16716 #. type: =head2
16717 #: ../src/guestfs-actions.pod:5648
16718 msgid "guestfs_set_path"
16719 msgstr ""
16720
16721 # type: verbatim
16722 #. type: verbatim
16723 #: ../src/guestfs-actions.pod:5650
16724 #, no-wrap
16725 msgid ""
16726 " int\n"
16727 " guestfs_set_path (guestfs_h *g,\n"
16728 "                   const char *searchpath);\n"
16729 "\n"
16730 msgstr ""
16731
16732 # type: textblock
16733 #. type: textblock
16734 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3773
16735 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16736 msgstr ""
16737
16738 # type: textblock
16739 #. type: textblock
16740 #: ../src/guestfs-actions.pod:5656 ../fish/guestfish-actions.pod:3775
16741 msgid ""
16742 "The default is C<$libdir/guestfs> unless overridden by setting "
16743 "C<LIBGUESTFS_PATH> environment variable."
16744 msgstr ""
16745
16746 # type: textblock
16747 #. type: textblock
16748 #: ../src/guestfs-actions.pod:5659 ../fish/guestfish-actions.pod:3778
16749 msgid "Setting C<path> to C<NULL> restores the default path."
16750 msgstr ""
16751
16752 # type: =head2
16753 #. type: =head2
16754 #: ../src/guestfs-actions.pod:5665
16755 msgid "guestfs_set_qemu"
16756 msgstr ""
16757
16758 # type: verbatim
16759 #. type: verbatim
16760 #: ../src/guestfs-actions.pod:5667
16761 #, no-wrap
16762 msgid ""
16763 " int\n"
16764 " guestfs_set_qemu (guestfs_h *g,\n"
16765 "                   const char *qemu);\n"
16766 "\n"
16767 msgstr ""
16768
16769 # type: textblock
16770 #. type: textblock
16771 #: ../src/guestfs-actions.pod:5671 ../fish/guestfish-actions.pod:3786
16772 msgid "Set the qemu binary that we will use."
16773 msgstr ""
16774
16775 # type: textblock
16776 #. type: textblock
16777 #: ../src/guestfs-actions.pod:5673 ../fish/guestfish-actions.pod:3788
16778 msgid ""
16779 "The default is chosen when the library was compiled by the configure script."
16780 msgstr ""
16781
16782 # type: textblock
16783 #. type: textblock
16784 #: ../src/guestfs-actions.pod:5676 ../fish/guestfish-actions.pod:3791
16785 msgid ""
16786 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16787 "variable."
16788 msgstr ""
16789
16790 # type: textblock
16791 #. type: textblock
16792 #: ../src/guestfs-actions.pod:5679 ../fish/guestfish-actions.pod:3794
16793 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16794 msgstr ""
16795
16796 # type: textblock
16797 #. type: textblock
16798 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3796
16799 msgid ""
16800 "Note that you should call this function as early as possible after creating "
16801 "the handle.  This is because some pre-launch operations depend on testing "
16802 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16803 "don't retest features, and so you might see inconsistent results.  Using the "
16804 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16805 "the qemu binary at the same time as the handle is created."
16806 msgstr ""
16807
16808 # type: =head2
16809 #. type: =head2
16810 #: ../src/guestfs-actions.pod:5693
16811 msgid "guestfs_set_recovery_proc"
16812 msgstr ""
16813
16814 # type: verbatim
16815 #. type: verbatim
16816 #: ../src/guestfs-actions.pod:5695
16817 #, no-wrap
16818 msgid ""
16819 " int\n"
16820 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16821 "                            int recoveryproc);\n"
16822 "\n"
16823 msgstr ""
16824
16825 # type: textblock
16826 #. type: textblock
16827 #: ../src/guestfs-actions.pod:5699
16828 msgid ""
16829 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16830 "not create a recovery process.  The purpose of the recovery process is to "
16831 "stop runaway qemu processes in the case where the main program aborts "
16832 "abruptly."
16833 msgstr ""
16834
16835 # type: textblock
16836 #. type: textblock
16837 #: ../src/guestfs-actions.pod:5704
16838 msgid ""
16839 "This only has any effect if called before C<guestfs_launch>, and the default "
16840 "is true."
16841 msgstr ""
16842
16843 # type: textblock
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:5707 ../fish/guestfish-actions.pod:3818
16846 msgid ""
16847 "About the only time when you would want to disable this is if the main "
16848 "process will fork itself into the background (\"daemonize\" itself).  In "
16849 "this case the recovery process thinks that the main program has disappeared "
16850 "and so kills qemu, which is not very helpful."
16851 msgstr ""
16852
16853 # type: =head2
16854 #. type: =head2
16855 #: ../src/guestfs-actions.pod:5717
16856 msgid "guestfs_set_selinux"
16857 msgstr ""
16858
16859 # type: verbatim
16860 #. type: verbatim
16861 #: ../src/guestfs-actions.pod:5719
16862 #, no-wrap
16863 msgid ""
16864 " int\n"
16865 " guestfs_set_selinux (guestfs_h *g,\n"
16866 "                      int selinux);\n"
16867 "\n"
16868 msgstr ""
16869
16870 # type: textblock
16871 #. type: textblock
16872 #: ../src/guestfs-actions.pod:5723 ../fish/guestfish-actions.pod:3830
16873 msgid ""
16874 "This sets the selinux flag that is passed to the appliance at boot time.  "
16875 "The default is C<selinux=0> (disabled)."
16876 msgstr ""
16877
16878 # type: textblock
16879 #. type: textblock
16880 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3833
16881 msgid ""
16882 "Note that if SELinux is enabled, it is always in Permissive mode "
16883 "(C<enforcing=0>)."
16884 msgstr ""
16885
16886 # type: =head2
16887 #. type: =head2
16888 #: ../src/guestfs-actions.pod:5736
16889 msgid "guestfs_set_trace"
16890 msgstr ""
16891
16892 # type: verbatim
16893 #. type: verbatim
16894 #: ../src/guestfs-actions.pod:5738
16895 #, no-wrap
16896 msgid ""
16897 " int\n"
16898 " guestfs_set_trace (guestfs_h *g,\n"
16899 "                    int trace);\n"
16900 "\n"
16901 msgstr ""
16902
16903 # type: textblock
16904 #. type: textblock
16905 #: ../src/guestfs-actions.pod:5742 ../fish/guestfish-actions.pod:3845
16906 msgid ""
16907 "If the command trace flag is set to 1, then commands are printed on stderr "
16908 "before they are executed in a format which is very similar to the one used "
16909 "by guestfish.  In other words, you can run a program with this enabled, and "
16910 "you will get out a script which you can feed to guestfish to perform the "
16911 "same set of actions."
16912 msgstr ""
16913
16914 # type: textblock
16915 #. type: textblock
16916 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3852
16917 msgid ""
16918 "If you want to trace C API calls into libguestfs (and other libraries) then "
16919 "possibly a better way is to use the external ltrace(1) command."
16920 msgstr ""
16921
16922 # type: textblock
16923 #. type: textblock
16924 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3856
16925 msgid ""
16926 "Command traces are disabled unless the environment variable "
16927 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16928 msgstr ""
16929
16930 # type: =head2
16931 #. type: =head2
16932 #: ../src/guestfs-actions.pod:5760
16933 msgid "guestfs_set_verbose"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #. type: verbatim
16938 #: ../src/guestfs-actions.pod:5762
16939 #, no-wrap
16940 msgid ""
16941 " int\n"
16942 " guestfs_set_verbose (guestfs_h *g,\n"
16943 "                      int verbose);\n"
16944 "\n"
16945 msgstr ""
16946
16947 # type: textblock
16948 #. type: textblock
16949 #: ../src/guestfs-actions.pod:5766 ../fish/guestfish-actions.pod:3865
16950 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
16951 msgstr ""
16952
16953 # type: textblock
16954 #. type: textblock
16955 #: ../src/guestfs-actions.pod:5768 ../fish/guestfish-actions.pod:3867
16956 msgid ""
16957 "Verbose messages are disabled unless the environment variable "
16958 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16959 msgstr ""
16960
16961 # type: =head2
16962 #. type: =head2
16963 #: ../src/guestfs-actions.pod:5775
16964 msgid "guestfs_setcon"
16965 msgstr ""
16966
16967 # type: verbatim
16968 #. type: verbatim
16969 #: ../src/guestfs-actions.pod:5777
16970 #, no-wrap
16971 msgid ""
16972 " int\n"
16973 " guestfs_setcon (guestfs_h *g,\n"
16974 "                 const char *context);\n"
16975 "\n"
16976 msgstr ""
16977
16978 # type: textblock
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:5781 ../fish/guestfish-actions.pod:3874
16981 msgid ""
16982 "This sets the SELinux security context of the daemon to the string "
16983 "C<context>."
16984 msgstr ""
16985
16986 # type: textblock
16987 #. type: textblock
16988 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3877
16989 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16990 msgstr ""
16991
16992 # type: =head2
16993 #. type: =head2
16994 #: ../src/guestfs-actions.pod:5790
16995 msgid "guestfs_setxattr"
16996 msgstr ""
16997
16998 # type: verbatim
16999 #. type: verbatim
17000 #: ../src/guestfs-actions.pod:5792
17001 #, no-wrap
17002 msgid ""
17003 " int\n"
17004 " guestfs_setxattr (guestfs_h *g,\n"
17005 "                   const char *xattr,\n"
17006 "                   const char *val,\n"
17007 "                   int vallen,\n"
17008 "                   const char *path);\n"
17009 "\n"
17010 msgstr ""
17011
17012 # type: textblock
17013 #. type: textblock
17014 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3883
17015 msgid ""
17016 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17017 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17018 msgstr ""
17019
17020 # type: textblock
17021 #. type: textblock
17022 #: ../src/guestfs-actions.pod:5803
17023 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17024 msgstr ""
17025
17026 # type: =head2
17027 #. type: =head2
17028 #: ../src/guestfs-actions.pod:5809
17029 msgid "guestfs_sfdisk"
17030 msgstr ""
17031
17032 # type: verbatim
17033 #. type: verbatim
17034 #: ../src/guestfs-actions.pod:5811
17035 #, no-wrap
17036 msgid ""
17037 " int\n"
17038 " guestfs_sfdisk (guestfs_h *g,\n"
17039 "                 const char *device,\n"
17040 "                 int cyls,\n"
17041 "                 int heads,\n"
17042 "                 int sectors,\n"
17043 "                 char *const *lines);\n"
17044 "\n"
17045 msgstr ""
17046
17047 # type: textblock
17048 #. type: textblock
17049 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3893
17050 msgid ""
17051 "This is a direct interface to the L<sfdisk(8)> program for creating "
17052 "partitions on block devices."
17053 msgstr ""
17054
17055 # type: textblock
17056 #. type: textblock
17057 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3896
17058 msgid "C<device> should be a block device, for example C</dev/sda>."
17059 msgstr ""
17060
17061 # type: textblock
17062 #. type: textblock
17063 #: ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:3898
17064 msgid ""
17065 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17066 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17067 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17068 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17069 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17070 "the kernel) cannot work out the right geometry and you will need to tell it."
17071 msgstr ""
17072
17073 # type: textblock
17074 #. type: textblock
17075 #: ../src/guestfs-actions.pod:5832 ../fish/guestfish-actions.pod:3906
17076 msgid ""
17077 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17078 "refer to the L<sfdisk(8)> manpage."
17079 msgstr ""
17080
17081 # type: textblock
17082 #. type: textblock
17083 #: ../src/guestfs-actions.pod:5835 ../fish/guestfish-actions.pod:3909
17084 msgid ""
17085 "To create a single partition occupying the whole disk, you would pass "
17086 "C<lines> as a single element list, when the single element being the string "
17087 "C<,> (comma)."
17088 msgstr ""
17089
17090 # type: textblock
17091 #. type: textblock
17092 #: ../src/guestfs-actions.pod:5839
17093 msgid ""
17094 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17095 msgstr ""
17096
17097 # type: =head2
17098 #. type: =head2
17099 #: ../src/guestfs-actions.pod:5849
17100 msgid "guestfs_sfdiskM"
17101 msgstr ""
17102
17103 # type: verbatim
17104 #. type: verbatim
17105 #: ../src/guestfs-actions.pod:5851
17106 #, no-wrap
17107 msgid ""
17108 " int\n"
17109 " guestfs_sfdiskM (guestfs_h *g,\n"
17110 "                  const char *device,\n"
17111 "                  char *const *lines);\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: textblock
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:5856
17118 msgid ""
17119 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17120 "partition sizes are specified in megabytes only (rounded to the nearest "
17121 "cylinder) and you don't need to specify the cyls, heads and sectors "
17122 "parameters which were rarely if ever used anyway."
17123 msgstr ""
17124
17125 # type: textblock
17126 #. type: textblock
17127 #: ../src/guestfs-actions.pod:5862
17128 msgid ""
17129 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17130 "C<guestfs_part_disk>"
17131 msgstr ""
17132
17133 # type: =head2
17134 #. type: =head2
17135 #: ../src/guestfs-actions.pod:5872
17136 msgid "guestfs_sfdisk_N"
17137 msgstr ""
17138
17139 # type: verbatim
17140 #. type: verbatim
17141 #: ../src/guestfs-actions.pod:5874
17142 #, no-wrap
17143 msgid ""
17144 " int\n"
17145 " guestfs_sfdisk_N (guestfs_h *g,\n"
17146 "                   const char *device,\n"
17147 "                   int partnum,\n"
17148 "                   int cyls,\n"
17149 "                   int heads,\n"
17150 "                   int sectors,\n"
17151 "                   const char *line);\n"
17152 "\n"
17153 msgstr ""
17154
17155 # type: textblock
17156 #. type: textblock
17157 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3939
17158 msgid ""
17159 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17160 "(note: C<n> counts from 1)."
17161 msgstr ""
17162
17163 # type: textblock
17164 #. type: textblock
17165 #: ../src/guestfs-actions.pod:5886
17166 msgid ""
17167 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17168 "for the cyls/heads/sectors parameters."
17169 msgstr ""
17170
17171 # type: textblock
17172 #. type: textblock
17173 #: ../src/guestfs-actions.pod:5889
17174 msgid "See also: C<guestfs_part_add>"
17175 msgstr ""
17176
17177 # type: =head2
17178 #. type: =head2
17179 #: ../src/guestfs-actions.pod:5898
17180 msgid "guestfs_sfdisk_disk_geometry"
17181 msgstr ""
17182
17183 # type: verbatim
17184 #. type: verbatim
17185 #: ../src/guestfs-actions.pod:5900
17186 #, no-wrap
17187 msgid ""
17188 " char *\n"
17189 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17190 "                               const char *device);\n"
17191 "\n"
17192 msgstr ""
17193
17194 # type: textblock
17195 #. type: textblock
17196 #: ../src/guestfs-actions.pod:5904
17197 msgid ""
17198 "This displays the disk geometry of C<device> read from the partition table.  "
17199 "Especially in the case where the underlying block device has been resized, "
17200 "this can be different from the kernel's idea of the geometry (see "
17201 "C<guestfs_sfdisk_kernel_geometry>)."
17202 msgstr ""
17203
17204 # type: textblock
17205 #. type: textblock
17206 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:5925
17207 #: ../fish/guestfish-actions.pod:3959 ../fish/guestfish-actions.pod:3968
17208 msgid "The result is in human-readable format, and not designed to be parsed."
17209 msgstr ""
17210
17211 # type: =head2
17212 #. type: =head2
17213 #: ../src/guestfs-actions.pod:5917
17214 msgid "guestfs_sfdisk_kernel_geometry"
17215 msgstr ""
17216
17217 # type: verbatim
17218 #. type: verbatim
17219 #: ../src/guestfs-actions.pod:5919
17220 #, no-wrap
17221 msgid ""
17222 " char *\n"
17223 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17224 "                                 const char *device);\n"
17225 "\n"
17226 msgstr ""
17227
17228 # type: textblock
17229 #. type: textblock
17230 #: ../src/guestfs-actions.pod:5923 ../fish/guestfish-actions.pod:3966
17231 msgid "This displays the kernel's idea of the geometry of C<device>."
17232 msgstr ""
17233
17234 # type: =head2
17235 #. type: =head2
17236 #: ../src/guestfs-actions.pod:5933
17237 msgid "guestfs_sfdisk_l"
17238 msgstr ""
17239
17240 # type: verbatim
17241 #. type: verbatim
17242 #: ../src/guestfs-actions.pod:5935
17243 #, no-wrap
17244 msgid ""
17245 " char *\n"
17246 " guestfs_sfdisk_l (guestfs_h *g,\n"
17247 "                   const char *device);\n"
17248 "\n"
17249 msgstr ""
17250
17251 # type: textblock
17252 #. type: textblock
17253 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:3975
17254 msgid ""
17255 "This displays the partition table on C<device>, in the human-readable output "
17256 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17257 msgstr ""
17258
17259 # type: textblock
17260 #. type: textblock
17261 #: ../src/guestfs-actions.pod:5943
17262 msgid "See also: C<guestfs_part_list>"
17263 msgstr ""
17264
17265 # type: =head2
17266 #. type: =head2
17267 #: ../src/guestfs-actions.pod:5950
17268 msgid "guestfs_sh"
17269 msgstr ""
17270
17271 # type: verbatim
17272 #. type: verbatim
17273 #: ../src/guestfs-actions.pod:5952
17274 #, no-wrap
17275 msgid ""
17276 " char *\n"
17277 " guestfs_sh (guestfs_h *g,\n"
17278 "             const char *command);\n"
17279 "\n"
17280 msgstr ""
17281
17282 # type: textblock
17283 #. type: textblock
17284 #: ../src/guestfs-actions.pod:5956 ../fish/guestfish-actions.pod:3985
17285 msgid ""
17286 "This call runs a command from the guest filesystem via the guest's C</bin/"
17287 "sh>."
17288 msgstr ""
17289
17290 # type: textblock
17291 #. type: textblock
17292 #: ../src/guestfs-actions.pod:5959
17293 msgid "This is like C<guestfs_command>, but passes the command to:"
17294 msgstr ""
17295
17296 # type: verbatim
17297 #. type: verbatim
17298 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:3990
17299 #, no-wrap
17300 msgid ""
17301 " /bin/sh -c \"command\"\n"
17302 "\n"
17303 msgstr ""
17304
17305 # type: textblock
17306 #. type: textblock
17307 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:3992
17308 msgid ""
17309 "Depending on the guest's shell, this usually results in wildcards being "
17310 "expanded, shell expressions being interpolated and so on."
17311 msgstr ""
17312
17313 # type: textblock
17314 #. type: textblock
17315 #: ../src/guestfs-actions.pod:5967
17316 msgid "All the provisos about C<guestfs_command> apply to this call."
17317 msgstr ""
17318
17319 # type: =head2
17320 #. type: =head2
17321 #: ../src/guestfs-actions.pod:5974
17322 msgid "guestfs_sh_lines"
17323 msgstr ""
17324
17325 # type: verbatim
17326 #. type: verbatim
17327 #: ../src/guestfs-actions.pod:5976
17328 #, no-wrap
17329 msgid ""
17330 " char **\n"
17331 " guestfs_sh_lines (guestfs_h *g,\n"
17332 "                   const char *command);\n"
17333 "\n"
17334 msgstr ""
17335
17336 # type: textblock
17337 #. type: textblock
17338 #: ../src/guestfs-actions.pod:5980
17339 msgid ""
17340 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17341 "lines."
17342 msgstr ""
17343
17344 # type: textblock
17345 #. type: textblock
17346 #: ../src/guestfs-actions.pod:5983
17347 msgid "See also: C<guestfs_command_lines>"
17348 msgstr ""
17349
17350 # type: =head2
17351 #. type: =head2
17352 #: ../src/guestfs-actions.pod:5991
17353 msgid "guestfs_sleep"
17354 msgstr ""
17355
17356 # type: verbatim
17357 #. type: verbatim
17358 #: ../src/guestfs-actions.pod:5993
17359 #, no-wrap
17360 msgid ""
17361 " int\n"
17362 " guestfs_sleep (guestfs_h *g,\n"
17363 "                int secs);\n"
17364 "\n"
17365 msgstr ""
17366
17367 # type: textblock
17368 #. type: textblock
17369 #: ../src/guestfs-actions.pod:5997 ../fish/guestfish-actions.pod:4011
17370 msgid "Sleep for C<secs> seconds."
17371 msgstr ""
17372
17373 # type: textblock
17374 #. type: textblock
17375 #: ../src/guestfs-actions.pod:6001
17376 msgid "(Added in 1.0.41)"
17377 msgstr ""
17378
17379 # type: =head2
17380 #. type: =head2
17381 #: ../src/guestfs-actions.pod:6003 ../src/guestfs-structs.pod:109
17382 msgid "guestfs_stat"
17383 msgstr ""
17384
17385 # type: verbatim
17386 #. type: verbatim
17387 #: ../src/guestfs-actions.pod:6005
17388 #, no-wrap
17389 msgid ""
17390 " struct guestfs_stat *\n"
17391 " guestfs_stat (guestfs_h *g,\n"
17392 "               const char *path);\n"
17393 "\n"
17394 msgstr ""
17395
17396 # type: textblock
17397 #. type: textblock
17398 #: ../src/guestfs-actions.pod:6011 ../fish/guestfish-actions.pod:4019
17399 msgid "This is the same as the C<stat(2)> system call."
17400 msgstr ""
17401
17402 # type: =head2
17403 #. type: =head2
17404 #: ../src/guestfs-actions.pod:6019 ../src/guestfs-structs.pod:135
17405 msgid "guestfs_statvfs"
17406 msgstr ""
17407
17408 # type: verbatim
17409 #. type: verbatim
17410 #: ../src/guestfs-actions.pod:6021
17411 #, no-wrap
17412 msgid ""
17413 " struct guestfs_statvfs *\n"
17414 " guestfs_statvfs (guestfs_h *g,\n"
17415 "                  const char *path);\n"
17416 "\n"
17417 msgstr ""
17418
17419 # type: textblock
17420 #. type: textblock
17421 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4025
17422 msgid ""
17423 "Returns file system statistics for any mounted file system.  C<path> should "
17424 "be a file or directory in the mounted file system (typically it is the mount "
17425 "point itself, but it doesn't need to be)."
17426 msgstr ""
17427
17428 # type: textblock
17429 #. type: textblock
17430 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4029
17431 msgid "This is the same as the C<statvfs(2)> system call."
17432 msgstr ""
17433
17434 # type: textblock
17435 #. type: textblock
17436 #: ../src/guestfs-actions.pod:6031
17437 msgid ""
17438 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17439 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17440 msgstr ""
17441
17442 # type: =head2
17443 #. type: =head2
17444 #: ../src/guestfs-actions.pod:6037
17445 msgid "guestfs_strings"
17446 msgstr ""
17447
17448 # type: verbatim
17449 #. type: verbatim
17450 #: ../src/guestfs-actions.pod:6039
17451 #, no-wrap
17452 msgid ""
17453 " char **\n"
17454 " guestfs_strings (guestfs_h *g,\n"
17455 "                  const char *path);\n"
17456 "\n"
17457 msgstr ""
17458
17459 # type: textblock
17460 #. type: textblock
17461 #: ../src/guestfs-actions.pod:6043 ../fish/guestfish-actions.pod:4035
17462 msgid ""
17463 "This runs the L<strings(1)> command on a file and returns the list of "
17464 "printable strings found."
17465 msgstr ""
17466
17467 # type: =head2
17468 #. type: =head2
17469 #: ../src/guestfs-actions.pod:6055
17470 msgid "guestfs_strings_e"
17471 msgstr ""
17472
17473 # type: verbatim
17474 #. type: verbatim
17475 #: ../src/guestfs-actions.pod:6057
17476 #, no-wrap
17477 msgid ""
17478 " char **\n"
17479 " guestfs_strings_e (guestfs_h *g,\n"
17480 "                    const char *encoding,\n"
17481 "                    const char *path);\n"
17482 "\n"
17483 msgstr ""
17484
17485 # type: textblock
17486 #. type: textblock
17487 #: ../src/guestfs-actions.pod:6062
17488 msgid ""
17489 "This is like the C<guestfs_strings> command, but allows you to specify the "
17490 "encoding of strings that are looked for in the source file C<path>."
17491 msgstr ""
17492
17493 # type: textblock
17494 #. type: textblock
17495 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4049
17496 msgid "Allowed encodings are:"
17497 msgstr ""
17498
17499 # type: =item
17500 #. type: =item
17501 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4053
17502 msgid "s"
17503 msgstr ""
17504
17505 # type: textblock
17506 #. type: textblock
17507 #: ../src/guestfs-actions.pod:6072
17508 msgid ""
17509 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17510 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17511 msgstr ""
17512
17513 # type: =item
17514 #. type: =item
17515 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4058
17516 msgid "S"
17517 msgstr ""
17518
17519 # type: textblock
17520 #. type: textblock
17521 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4060
17522 msgid "Single 8-bit-byte characters."
17523 msgstr ""
17524
17525 # type: =item
17526 #. type: =item
17527 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4062
17528 msgid "b"
17529 msgstr ""
17530
17531 # type: textblock
17532 #. type: textblock
17533 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4064
17534 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17535 msgstr ""
17536
17537 # type: =item
17538 #. type: =item
17539 #: ../src/guestfs-actions.pod:6084 ../fish/guestfish-actions.pod:4067
17540 msgid "l (lower case letter L)"
17541 msgstr ""
17542
17543 # type: textblock
17544 #. type: textblock
17545 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4069
17546 msgid ""
17547 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17548 "examining binaries in Windows guests."
17549 msgstr ""
17550
17551 # type: =item
17552 #. type: =item
17553 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4072
17554 msgid "B"
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4074
17560 msgid "32-bit big endian such as UCS-4BE."
17561 msgstr ""
17562
17563 # type: =item
17564 #. type: =item
17565 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4076
17566 msgid "L"
17567 msgstr ""
17568
17569 # type: textblock
17570 #. type: textblock
17571 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4078
17572 msgid "32-bit little endian such as UCS-4LE."
17573 msgstr ""
17574
17575 # type: textblock
17576 #. type: textblock
17577 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4082
17578 msgid "The returned strings are transcoded to UTF-8."
17579 msgstr ""
17580
17581 # type: =head2
17582 #. type: =head2
17583 #: ../src/guestfs-actions.pod:6110
17584 msgid "guestfs_swapoff_device"
17585 msgstr ""
17586
17587 # type: verbatim
17588 #. type: verbatim
17589 #: ../src/guestfs-actions.pod:6112
17590 #, no-wrap
17591 msgid ""
17592 " int\n"
17593 " guestfs_swapoff_device (guestfs_h *g,\n"
17594 "                         const char *device);\n"
17595 "\n"
17596 msgstr ""
17597
17598 # type: textblock
17599 #. type: textblock
17600 #: ../src/guestfs-actions.pod:6116
17601 msgid ""
17602 "This command disables the libguestfs appliance swap device or partition "
17603 "named C<device>.  See C<guestfs_swapon_device>."
17604 msgstr ""
17605
17606 # type: =head2
17607 #. type: =head2
17608 #: ../src/guestfs-actions.pod:6124
17609 msgid "guestfs_swapoff_file"
17610 msgstr ""
17611
17612 # type: verbatim
17613 #. type: verbatim
17614 #: ../src/guestfs-actions.pod:6126
17615 #, no-wrap
17616 msgid ""
17617 " int\n"
17618 " guestfs_swapoff_file (guestfs_h *g,\n"
17619 "                       const char *file);\n"
17620 "\n"
17621 msgstr ""
17622
17623 # type: textblock
17624 #. type: textblock
17625 #: ../src/guestfs-actions.pod:6130 ../fish/guestfish-actions.pod:4099
17626 msgid "This command disables the libguestfs appliance swap on file."
17627 msgstr ""
17628
17629 # type: =head2
17630 #. type: =head2
17631 #: ../src/guestfs-actions.pod:6136
17632 msgid "guestfs_swapoff_label"
17633 msgstr ""
17634
17635 # type: verbatim
17636 #. type: verbatim
17637 #: ../src/guestfs-actions.pod:6138
17638 #, no-wrap
17639 msgid ""
17640 " int\n"
17641 " guestfs_swapoff_label (guestfs_h *g,\n"
17642 "                        const char *label);\n"
17643 "\n"
17644 msgstr ""
17645
17646 # type: textblock
17647 #. type: textblock
17648 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4105
17649 msgid ""
17650 "This command disables the libguestfs appliance swap on labeled swap "
17651 "partition."
17652 msgstr ""
17653
17654 # type: =head2
17655 #. type: =head2
17656 #: ../src/guestfs-actions.pod:6149
17657 msgid "guestfs_swapoff_uuid"
17658 msgstr ""
17659
17660 # type: verbatim
17661 #. type: verbatim
17662 #: ../src/guestfs-actions.pod:6151
17663 #, no-wrap
17664 msgid ""
17665 " int\n"
17666 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17667 "                       const char *uuid);\n"
17668 "\n"
17669 msgstr ""
17670
17671 # type: textblock
17672 #. type: textblock
17673 #: ../src/guestfs-actions.pod:6155 ../fish/guestfish-actions.pod:4112
17674 msgid ""
17675 "This command disables the libguestfs appliance swap partition with the given "
17676 "UUID."
17677 msgstr ""
17678
17679 # type: =head2
17680 #. type: =head2
17681 #: ../src/guestfs-actions.pod:6162
17682 msgid "guestfs_swapon_device"
17683 msgstr ""
17684
17685 # type: verbatim
17686 #. type: verbatim
17687 #: ../src/guestfs-actions.pod:6164
17688 #, no-wrap
17689 msgid ""
17690 " int\n"
17691 " guestfs_swapon_device (guestfs_h *g,\n"
17692 "                        const char *device);\n"
17693 "\n"
17694 msgstr ""
17695
17696 # type: textblock
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:6168
17699 msgid ""
17700 "This command enables the libguestfs appliance to use the swap device or "
17701 "partition named C<device>.  The increased memory is made available for all "
17702 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17703 msgstr ""
17704
17705 # type: textblock
17706 #. type: textblock
17707 #: ../src/guestfs-actions.pod:6173 ../fish/guestfish-actions.pod:4124
17708 msgid ""
17709 "Note that you should not swap to existing guest swap partitions unless you "
17710 "know what you are doing.  They may contain hibernation information, or other "
17711 "information that the guest doesn't want you to trash.  You also risk leaking "
17712 "information about the host to the guest this way.  Instead, attach a new "
17713 "host device to the guest and swap on that."
17714 msgstr ""
17715
17716 # type: =head2
17717 #. type: =head2
17718 #: ../src/guestfs-actions.pod:6184
17719 msgid "guestfs_swapon_file"
17720 msgstr ""
17721
17722 # type: verbatim
17723 #. type: verbatim
17724 #: ../src/guestfs-actions.pod:6186
17725 #, no-wrap
17726 msgid ""
17727 " int\n"
17728 " guestfs_swapon_file (guestfs_h *g,\n"
17729 "                      const char *file);\n"
17730 "\n"
17731 msgstr ""
17732
17733 # type: textblock
17734 #. type: textblock
17735 #: ../src/guestfs-actions.pod:6190
17736 msgid ""
17737 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17738 "notes."
17739 msgstr ""
17740
17741 # type: =head2
17742 #. type: =head2
17743 #: ../src/guestfs-actions.pod:6197
17744 msgid "guestfs_swapon_label"
17745 msgstr ""
17746
17747 # type: verbatim
17748 #. type: verbatim
17749 #: ../src/guestfs-actions.pod:6199
17750 #, no-wrap
17751 msgid ""
17752 " int\n"
17753 " guestfs_swapon_label (guestfs_h *g,\n"
17754 "                       const char *label);\n"
17755 "\n"
17756 msgstr ""
17757
17758 # type: textblock
17759 #. type: textblock
17760 #: ../src/guestfs-actions.pod:6203
17761 msgid ""
17762 "This command enables swap to a labeled swap partition.  See "
17763 "C<guestfs_swapon_device> for other notes."
17764 msgstr ""
17765
17766 # type: =head2
17767 #. type: =head2
17768 #: ../src/guestfs-actions.pod:6210
17769 msgid "guestfs_swapon_uuid"
17770 msgstr ""
17771
17772 # type: verbatim
17773 #. type: verbatim
17774 #: ../src/guestfs-actions.pod:6212
17775 #, no-wrap
17776 msgid ""
17777 " int\n"
17778 " guestfs_swapon_uuid (guestfs_h *g,\n"
17779 "                      const char *uuid);\n"
17780 "\n"
17781 msgstr ""
17782
17783 # type: textblock
17784 #. type: textblock
17785 #: ../src/guestfs-actions.pod:6216
17786 msgid ""
17787 "This command enables swap to a swap partition with the given UUID.  See "
17788 "C<guestfs_swapon_device> for other notes."
17789 msgstr ""
17790
17791 # type: =head2
17792 #. type: =head2
17793 #: ../src/guestfs-actions.pod:6223
17794 msgid "guestfs_sync"
17795 msgstr ""
17796
17797 # type: verbatim
17798 #. type: verbatim
17799 #: ../src/guestfs-actions.pod:6225
17800 #, no-wrap
17801 msgid ""
17802 " int\n"
17803 " guestfs_sync (guestfs_h *g);\n"
17804 "\n"
17805 msgstr ""
17806
17807 # type: textblock
17808 #. type: textblock
17809 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4156
17810 msgid ""
17811 "This syncs the disk, so that any writes are flushed through to the "
17812 "underlying disk image."
17813 msgstr ""
17814
17815 # type: textblock
17816 #. type: textblock
17817 #: ../src/guestfs-actions.pod:6231 ../fish/guestfish-actions.pod:4159
17818 msgid ""
17819 "You should always call this if you have modified a disk image, before "
17820 "closing the handle."
17821 msgstr ""
17822
17823 # type: =head2
17824 #. type: =head2
17825 #: ../src/guestfs-actions.pod:6238
17826 msgid "guestfs_tail"
17827 msgstr ""
17828
17829 # type: verbatim
17830 #. type: verbatim
17831 #: ../src/guestfs-actions.pod:6240
17832 #, no-wrap
17833 msgid ""
17834 " char **\n"
17835 " guestfs_tail (guestfs_h *g,\n"
17836 "               const char *path);\n"
17837 "\n"
17838 msgstr ""
17839
17840 # type: textblock
17841 #. type: textblock
17842 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4166
17843 msgid ""
17844 "This command returns up to the last 10 lines of a file as a list of strings."
17845 msgstr ""
17846
17847 # type: =head2
17848 #. type: =head2
17849 #: ../src/guestfs-actions.pod:6256
17850 msgid "guestfs_tail_n"
17851 msgstr ""
17852
17853 # type: verbatim
17854 #. type: verbatim
17855 #: ../src/guestfs-actions.pod:6258
17856 #, no-wrap
17857 msgid ""
17858 " char **\n"
17859 " guestfs_tail_n (guestfs_h *g,\n"
17860 "                 int nrlines,\n"
17861 "                 const char *path);\n"
17862 "\n"
17863 msgstr ""
17864
17865 # type: textblock
17866 #. type: textblock
17867 #: ../src/guestfs-actions.pod:6263 ../fish/guestfish-actions.pod:4176
17868 msgid ""
17869 "If the parameter C<nrlines> is a positive number, this returns the last "
17870 "C<nrlines> lines of the file C<path>."
17871 msgstr ""
17872
17873 # type: textblock
17874 #. type: textblock
17875 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4179
17876 msgid ""
17877 "If the parameter C<nrlines> is a negative number, this returns lines from "
17878 "the file C<path>, starting with the C<-nrlines>th line."
17879 msgstr ""
17880
17881 # type: =head2
17882 #. type: =head2
17883 #: ../src/guestfs-actions.pod:6280
17884 msgid "guestfs_tar_in"
17885 msgstr ""
17886
17887 # type: verbatim
17888 #. type: verbatim
17889 #: ../src/guestfs-actions.pod:6282
17890 #, no-wrap
17891 msgid ""
17892 " int\n"
17893 " guestfs_tar_in (guestfs_h *g,\n"
17894 "                 const char *tarfile,\n"
17895 "                 const char *directory);\n"
17896 "\n"
17897 msgstr ""
17898
17899 # type: textblock
17900 #. type: textblock
17901 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4191
17902 msgid ""
17903 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17904 "tar file) into C<directory>."
17905 msgstr ""
17906
17907 # type: textblock
17908 #. type: textblock
17909 #: ../src/guestfs-actions.pod:6290
17910 msgid ""
17911 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17912 msgstr ""
17913
17914 # type: textblock
17915 #. type: textblock
17916 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6312
17917 #: ../src/guestfs-actions.pod:6328 ../src/guestfs-actions.pod:6344
17918 msgid "(Added in 1.0.3)"
17919 msgstr ""
17920
17921 # type: =head2
17922 #. type: =head2
17923 #: ../src/guestfs-actions.pod:6297
17924 msgid "guestfs_tar_out"
17925 msgstr ""
17926
17927 # type: verbatim
17928 #. type: verbatim
17929 #: ../src/guestfs-actions.pod:6299
17930 #, no-wrap
17931 msgid ""
17932 " int\n"
17933 " guestfs_tar_out (guestfs_h *g,\n"
17934 "                  const char *directory,\n"
17935 "                  const char *tarfile);\n"
17936 "\n"
17937 msgstr ""
17938
17939 # type: textblock
17940 #. type: textblock
17941 #: ../src/guestfs-actions.pod:6304 ../fish/guestfish-actions.pod:4203
17942 msgid ""
17943 "This command packs the contents of C<directory> and downloads it to local "
17944 "file C<tarfile>."
17945 msgstr ""
17946
17947 # type: textblock
17948 #. type: textblock
17949 #: ../src/guestfs-actions.pod:6307
17950 msgid ""
17951 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17952 "C<guestfs_txz_out>."
17953 msgstr ""
17954
17955 # type: =head2
17956 #. type: =head2
17957 #: ../src/guestfs-actions.pod:6314
17958 msgid "guestfs_tgz_in"
17959 msgstr ""
17960
17961 # type: verbatim
17962 #. type: verbatim
17963 #: ../src/guestfs-actions.pod:6316
17964 #, no-wrap
17965 msgid ""
17966 " int\n"
17967 " guestfs_tgz_in (guestfs_h *g,\n"
17968 "                 const char *tarball,\n"
17969 "                 const char *directory);\n"
17970 "\n"
17971 msgstr ""
17972
17973 # type: textblock
17974 #. type: textblock
17975 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4215
17976 msgid ""
17977 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17978 "tar file) into C<directory>."
17979 msgstr ""
17980
17981 # type: textblock
17982 #. type: textblock
17983 #: ../src/guestfs-actions.pod:6324
17984 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17985 msgstr ""
17986
17987 # type: =head2
17988 #. type: =head2
17989 #: ../src/guestfs-actions.pod:6330
17990 msgid "guestfs_tgz_out"
17991 msgstr ""
17992
17993 # type: verbatim
17994 #. type: verbatim
17995 #: ../src/guestfs-actions.pod:6332
17996 #, no-wrap
17997 msgid ""
17998 " int\n"
17999 " guestfs_tgz_out (guestfs_h *g,\n"
18000 "                  const char *directory,\n"
18001 "                  const char *tarball);\n"
18002 "\n"
18003 msgstr ""
18004
18005 # type: textblock
18006 #. type: textblock
18007 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4226
18008 msgid ""
18009 "This command packs the contents of C<directory> and downloads it to local "
18010 "file C<tarball>."
18011 msgstr ""
18012
18013 # type: textblock
18014 #. type: textblock
18015 #: ../src/guestfs-actions.pod:6340
18016 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18017 msgstr ""
18018
18019 # type: =head2
18020 #. type: =head2
18021 #: ../src/guestfs-actions.pod:6346
18022 msgid "guestfs_touch"
18023 msgstr ""
18024
18025 # type: verbatim
18026 #. type: verbatim
18027 #: ../src/guestfs-actions.pod:6348
18028 #, no-wrap
18029 msgid ""
18030 " int\n"
18031 " guestfs_touch (guestfs_h *g,\n"
18032 "                const char *path);\n"
18033 "\n"
18034 msgstr ""
18035
18036 # type: textblock
18037 #. type: textblock
18038 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4237
18039 msgid ""
18040 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18041 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18042 "length file."
18043 msgstr ""
18044
18045 # type: textblock
18046 #. type: textblock
18047 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4241
18048 msgid ""
18049 "This command only works on regular files, and will fail on other file types "
18050 "such as directories, symbolic links, block special etc."
18051 msgstr ""
18052
18053 # type: =head2
18054 #. type: =head2
18055 #: ../src/guestfs-actions.pod:6363
18056 msgid "guestfs_truncate"
18057 msgstr ""
18058
18059 # type: verbatim
18060 #. type: verbatim
18061 #: ../src/guestfs-actions.pod:6365
18062 #, no-wrap
18063 msgid ""
18064 " int\n"
18065 " guestfs_truncate (guestfs_h *g,\n"
18066 "                   const char *path);\n"
18067 "\n"
18068 msgstr ""
18069
18070 # type: textblock
18071 #. type: textblock
18072 #: ../src/guestfs-actions.pod:6369 ../fish/guestfish-actions.pod:4248
18073 msgid ""
18074 "This command truncates C<path> to a zero-length file.  The file must exist "
18075 "already."
18076 msgstr ""
18077
18078 # type: =head2
18079 #. type: =head2
18080 #: ../src/guestfs-actions.pod:6376
18081 msgid "guestfs_truncate_size"
18082 msgstr ""
18083
18084 # type: verbatim
18085 #. type: verbatim
18086 #: ../src/guestfs-actions.pod:6378
18087 #, no-wrap
18088 msgid ""
18089 " int\n"
18090 " guestfs_truncate_size (guestfs_h *g,\n"
18091 "                        const char *path,\n"
18092 "                        int64_t size);\n"
18093 "\n"
18094 msgstr ""
18095
18096 # type: textblock
18097 #. type: textblock
18098 #: ../src/guestfs-actions.pod:6383 ../fish/guestfish-actions.pod:4255
18099 msgid ""
18100 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18101 "already."
18102 msgstr ""
18103
18104 # type: textblock
18105 #. type: textblock
18106 #: ../src/guestfs-actions.pod:6386
18107 msgid ""
18108 "If the current file size is less than C<size> then the file is extended to "
18109 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18110 "blocks are not allocated for the file until you write to it).  To create a "
18111 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18112 msgstr ""
18113
18114 # type: =head2
18115 #. type: =head2
18116 #: ../src/guestfs-actions.pod:6396
18117 msgid "guestfs_tune2fs_l"
18118 msgstr ""
18119
18120 # type: verbatim
18121 #. type: verbatim
18122 #: ../src/guestfs-actions.pod:6398
18123 #, no-wrap
18124 msgid ""
18125 " char **\n"
18126 " guestfs_tune2fs_l (guestfs_h *g,\n"
18127 "                    const char *device);\n"
18128 "\n"
18129 msgstr ""
18130
18131 # type: textblock
18132 #. type: textblock
18133 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4268
18134 msgid ""
18135 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18136 "C<device>."
18137 msgstr ""
18138
18139 # type: textblock
18140 #. type: textblock
18141 #: ../src/guestfs-actions.pod:6405 ../fish/guestfish-actions.pod:4271
18142 msgid ""
18143 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18144 "for more details.  The list of fields returned isn't clearly defined, and "
18145 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18146 "and the filesystem itself."
18147 msgstr ""
18148
18149 # type: =head2
18150 #. type: =head2
18151 #: ../src/guestfs-actions.pod:6418
18152 msgid "guestfs_txz_in"
18153 msgstr ""
18154
18155 # type: verbatim
18156 #. type: verbatim
18157 #: ../src/guestfs-actions.pod:6420
18158 #, no-wrap
18159 msgid ""
18160 " int\n"
18161 " guestfs_txz_in (guestfs_h *g,\n"
18162 "                 const char *tarball,\n"
18163 "                 const char *directory);\n"
18164 "\n"
18165 msgstr ""
18166
18167 # type: textblock
18168 #. type: textblock
18169 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4280
18170 msgid ""
18171 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18172 "tar file) into C<directory>."
18173 msgstr ""
18174
18175 # type: =head2
18176 #. type: =head2
18177 #: ../src/guestfs-actions.pod:6432
18178 msgid "guestfs_txz_out"
18179 msgstr ""
18180
18181 # type: verbatim
18182 #. type: verbatim
18183 #: ../src/guestfs-actions.pod:6434
18184 #, no-wrap
18185 msgid ""
18186 " int\n"
18187 " guestfs_txz_out (guestfs_h *g,\n"
18188 "                  const char *directory,\n"
18189 "                  const char *tarball);\n"
18190 "\n"
18191 msgstr ""
18192
18193 # type: textblock
18194 #. type: textblock
18195 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4289
18196 msgid ""
18197 "This command packs the contents of C<directory> and downloads it to local "
18198 "file C<tarball> (as an xz compressed tar archive)."
18199 msgstr ""
18200
18201 # type: =head2
18202 #. type: =head2
18203 #: ../src/guestfs-actions.pod:6446
18204 msgid "guestfs_umask"
18205 msgstr ""
18206
18207 # type: verbatim
18208 #. type: verbatim
18209 #: ../src/guestfs-actions.pod:6448
18210 #, no-wrap
18211 msgid ""
18212 " int\n"
18213 " guestfs_umask (guestfs_h *g,\n"
18214 "                int mask);\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: textblock
18219 #. type: textblock
18220 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4298
18221 msgid ""
18222 "This function sets the mask used for creating new files and device nodes to "
18223 "C<mask & 0777>."
18224 msgstr ""
18225
18226 # type: textblock
18227 #. type: textblock
18228 #: ../src/guestfs-actions.pod:6455 ../fish/guestfish-actions.pod:4301
18229 msgid ""
18230 "Typical umask values would be C<022> which creates new files with "
18231 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18232 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18233 msgstr ""
18234
18235 # type: textblock
18236 #. type: textblock
18237 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4306
18238 msgid ""
18239 "The default umask is C<022>.  This is important because it means that "
18240 "directories and device nodes will be created with C<0644> or C<0755> mode "
18241 "even if you specify C<0777>."
18242 msgstr ""
18243
18244 # type: textblock
18245 #. type: textblock
18246 #: ../src/guestfs-actions.pod:6464
18247 msgid ""
18248 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18249 "C<guestfs_mkdir>."
18250 msgstr ""
18251
18252 # type: textblock
18253 #. type: textblock
18254 #: ../src/guestfs-actions.pod:6467 ../fish/guestfish-actions.pod:4313
18255 msgid "This call returns the previous umask."
18256 msgstr ""
18257
18258 # type: =head2
18259 #. type: =head2
18260 #: ../src/guestfs-actions.pod:6473
18261 msgid "guestfs_umount"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #. type: verbatim
18266 #: ../src/guestfs-actions.pod:6475
18267 #, no-wrap
18268 msgid ""
18269 " int\n"
18270 " guestfs_umount (guestfs_h *g,\n"
18271 "                 const char *pathordevice);\n"
18272 "\n"
18273 msgstr ""
18274
18275 # type: textblock
18276 #. type: textblock
18277 #: ../src/guestfs-actions.pod:6479 ../fish/guestfish-actions.pod:4321
18278 msgid ""
18279 "This unmounts the given filesystem.  The filesystem may be specified either "
18280 "by its mountpoint (path) or the device which contains the filesystem."
18281 msgstr ""
18282
18283 # type: =head2
18284 #. type: =head2
18285 #: ../src/guestfs-actions.pod:6487
18286 msgid "guestfs_umount_all"
18287 msgstr ""
18288
18289 # type: verbatim
18290 #. type: verbatim
18291 #: ../src/guestfs-actions.pod:6489
18292 #, no-wrap
18293 msgid ""
18294 " int\n"
18295 " guestfs_umount_all (guestfs_h *g);\n"
18296 "\n"
18297 msgstr ""
18298
18299 # type: textblock
18300 #. type: textblock
18301 #: ../src/guestfs-actions.pod:6492 ../fish/guestfish-actions.pod:4331
18302 msgid "This unmounts all mounted filesystems."
18303 msgstr ""
18304
18305 # type: textblock
18306 #. type: textblock
18307 #: ../src/guestfs-actions.pod:6494 ../fish/guestfish-actions.pod:4333
18308 msgid "Some internal mounts are not unmounted by this call."
18309 msgstr ""
18310
18311 # type: =head2
18312 #. type: =head2
18313 #: ../src/guestfs-actions.pod:6500
18314 msgid "guestfs_upload"
18315 msgstr ""
18316
18317 # type: verbatim
18318 #. type: verbatim
18319 #: ../src/guestfs-actions.pod:6502
18320 #, no-wrap
18321 msgid ""
18322 " int\n"
18323 " guestfs_upload (guestfs_h *g,\n"
18324 "                 const char *filename,\n"
18325 "                 const char *remotefilename);\n"
18326 "\n"
18327 msgstr ""
18328
18329 # type: textblock
18330 #. type: textblock
18331 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6531
18332 #: ../fish/guestfish-actions.pod:4339 ../fish/guestfish-actions.pod:4352
18333 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6512
18339 msgid "See also C<guestfs_download>."
18340 msgstr ""
18341
18342 # type: =head2
18343 #. type: =head2
18344 #: ../src/guestfs-actions.pod:6523
18345 msgid "guestfs_upload_offset"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #. type: verbatim
18350 #: ../src/guestfs-actions.pod:6525
18351 #, no-wrap
18352 msgid ""
18353 " int\n"
18354 " guestfs_upload_offset (guestfs_h *g,\n"
18355 "                        const char *filename,\n"
18356 "                        const char *remotefilename,\n"
18357 "                        int64_t offset);\n"
18358 "\n"
18359 msgstr ""
18360
18361 # type: textblock
18362 #. type: textblock
18363 #: ../src/guestfs-actions.pod:6534 ../fish/guestfish-actions.pod:4355
18364 msgid ""
18365 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18366 "The intention is to overwrite parts of existing files or devices, although "
18367 "if a non-existant file is specified then it is created with a \"hole\" "
18368 "before C<offset>.  The size of the data written is implicit in the size of "
18369 "the source C<filename>."
18370 msgstr ""
18371
18372 # type: textblock
18373 #. type: textblock
18374 #: ../src/guestfs-actions.pod:6541
18375 msgid ""
18376 "Note that there is no limit on the amount of data that can be uploaded with "
18377 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18378 "full amount unless an error occurs."
18379 msgstr ""
18380
18381 # type: textblock
18382 #. type: textblock
18383 #: ../src/guestfs-actions.pod:6546
18384 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18385 msgstr ""
18386
18387 # type: =head2
18388 #. type: =head2
18389 #: ../src/guestfs-actions.pod:6557
18390 msgid "guestfs_utimens"
18391 msgstr ""
18392
18393 # type: verbatim
18394 #. type: verbatim
18395 #: ../src/guestfs-actions.pod:6559
18396 #, no-wrap
18397 msgid ""
18398 " int\n"
18399 " guestfs_utimens (guestfs_h *g,\n"
18400 "                  const char *path,\n"
18401 "                  int64_t atsecs,\n"
18402 "                  int64_t atnsecs,\n"
18403 "                  int64_t mtsecs,\n"
18404 "                  int64_t mtnsecs);\n"
18405 "\n"
18406 msgstr ""
18407
18408 # type: textblock
18409 #. type: textblock
18410 #: ../src/guestfs-actions.pod:6567 ../fish/guestfish-actions.pod:4375
18411 msgid "This command sets the timestamps of a file with nanosecond precision."
18412 msgstr ""
18413
18414 # type: textblock
18415 #. type: textblock
18416 #: ../src/guestfs-actions.pod:6570 ../fish/guestfish-actions.pod:4378
18417 msgid ""
18418 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18419 "from the epoch."
18420 msgstr ""
18421
18422 # type: textblock
18423 #. type: textblock
18424 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4381
18425 msgid ""
18426 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18427 "nanoseconds from the epoch."
18428 msgstr ""
18429
18430 # type: textblock
18431 #. type: textblock
18432 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4384
18433 msgid ""
18434 "If the C<*nsecs> field contains the special value C<-1> then the "
18435 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18436 "ignored in this case)."
18437 msgstr ""
18438
18439 # type: textblock
18440 #. type: textblock
18441 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4388
18442 msgid ""
18443 "If the C<*nsecs> field contains the special value C<-2> then the "
18444 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18445 "in this case)."
18446 msgstr ""
18447
18448 # type: =head2
18449 #. type: =head2
18450 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-structs.pod:175
18451 msgid "guestfs_version"
18452 msgstr ""
18453
18454 # type: verbatim
18455 #. type: verbatim
18456 #: ../src/guestfs-actions.pod:6590
18457 #, no-wrap
18458 msgid ""
18459 " struct guestfs_version *\n"
18460 " guestfs_version (guestfs_h *g);\n"
18461 "\n"
18462 msgstr ""
18463
18464 # type: textblock
18465 #. type: textblock
18466 #: ../src/guestfs-actions.pod:6593 ../fish/guestfish-actions.pod:4396
18467 msgid ""
18468 "Return the libguestfs version number that the program is linked against."
18469 msgstr ""
18470
18471 # type: textblock
18472 #. type: textblock
18473 #: ../src/guestfs-actions.pod:6596 ../fish/guestfish-actions.pod:4399
18474 msgid ""
18475 "Note that because of dynamic linking this is not necessarily the version of "
18476 "libguestfs that you compiled against.  You can compile the program, and then "
18477 "at runtime dynamically link against a completely different C<libguestfs.so> "
18478 "library."
18479 msgstr ""
18480
18481 # type: textblock
18482 #. type: textblock
18483 #: ../src/guestfs-actions.pod:6601 ../fish/guestfish-actions.pod:4404
18484 msgid ""
18485 "This call was added in version C<1.0.58>.  In previous versions of "
18486 "libguestfs there was no way to get the version number.  From C code you can "
18487 "use dynamic linker functions to find out if this symbol exists (if it "
18488 "doesn't, then it's an earlier version)."
18489 msgstr ""
18490
18491 # type: textblock
18492 #. type: textblock
18493 #: ../src/guestfs-actions.pod:6607 ../fish/guestfish-actions.pod:4410
18494 msgid ""
18495 "The call returns a structure with four elements.  The first three (C<major>, "
18496 "C<minor> and C<release>) are numbers and correspond to the usual version "
18497 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18498 "but may be used for distro-specific information."
18499 msgstr ""
18500
18501 # type: textblock
18502 #. type: textblock
18503 #: ../src/guestfs-actions.pod:6613 ../fish/guestfish-actions.pod:4416
18504 msgid ""
18505 "To construct the original version string: C<$major.$minor.$release$extra>"
18506 msgstr ""
18507
18508 # type: textblock
18509 #. type: textblock
18510 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4419
18511 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18512 msgstr ""
18513
18514 # type: textblock
18515 #. type: textblock
18516 #: ../src/guestfs-actions.pod:6618
18517 msgid ""
18518 "I<Note:> Don't use this call to test for availability of features.  In "
18519 "enterprise distributions we backport features from later versions into "
18520 "earlier versions, making this an unreliable way to test for features.  Use "
18521 "C<guestfs_available> instead."
18522 msgstr ""
18523
18524 # type: textblock
18525 #. type: textblock
18526 #: ../src/guestfs-actions.pod:6624
18527 msgid ""
18528 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18529 "error.  I<The caller must call C<guestfs_free_version> after use>."
18530 msgstr ""
18531
18532 # type: textblock
18533 #. type: textblock
18534 #: ../src/guestfs-actions.pod:6628
18535 msgid "(Added in 1.0.58)"
18536 msgstr ""
18537
18538 # type: =head2
18539 #. type: =head2
18540 #: ../src/guestfs-actions.pod:6630
18541 msgid "guestfs_vfs_label"
18542 msgstr ""
18543
18544 # type: verbatim
18545 #. type: verbatim
18546 #: ../src/guestfs-actions.pod:6632
18547 #, no-wrap
18548 msgid ""
18549 " char *\n"
18550 " guestfs_vfs_label (guestfs_h *g,\n"
18551 "                    const char *device);\n"
18552 "\n"
18553 msgstr ""
18554
18555 # type: textblock
18556 #. type: textblock
18557 #: ../src/guestfs-actions.pod:6636 ../fish/guestfish-actions.pod:4431
18558 msgid "This returns the filesystem label of the filesystem on C<device>."
18559 msgstr ""
18560
18561 # type: textblock
18562 #. type: textblock
18563 #: ../src/guestfs-actions.pod:6639 ../fish/guestfish-actions.pod:4434
18564 msgid "If the filesystem is unlabeled, this returns the empty string."
18565 msgstr ""
18566
18567 # type: textblock
18568 #. type: textblock
18569 #: ../src/guestfs-actions.pod:6641
18570 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18571 msgstr ""
18572
18573 # type: textblock
18574 #. type: textblock
18575 #: ../src/guestfs-actions.pod:6646 ../src/guestfs-actions.pod:6683
18576 msgid "(Added in 1.3.18)"
18577 msgstr ""
18578
18579 # type: =head2
18580 #. type: =head2
18581 #: ../src/guestfs-actions.pod:6648
18582 msgid "guestfs_vfs_type"
18583 msgstr ""
18584
18585 # type: verbatim
18586 #. type: verbatim
18587 #: ../src/guestfs-actions.pod:6650
18588 #, no-wrap
18589 msgid ""
18590 " char *\n"
18591 " guestfs_vfs_type (guestfs_h *g,\n"
18592 "                   const char *device);\n"
18593 "\n"
18594 msgstr ""
18595
18596 # type: textblock
18597 #. type: textblock
18598 #: ../src/guestfs-actions.pod:6654 ../fish/guestfish-actions.pod:4442
18599 msgid ""
18600 "This command gets the filesystem type corresponding to the filesystem on "
18601 "C<device>."
18602 msgstr ""
18603
18604 # type: textblock
18605 #. type: textblock
18606 #: ../src/guestfs-actions.pod:6657 ../fish/guestfish-actions.pod:4445
18607 msgid ""
18608 "For most filesystems, the result is the name of the Linux VFS module which "
18609 "would be used to mount this filesystem if you mounted it without specifying "
18610 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18611 msgstr ""
18612
18613 # type: =head2
18614 #. type: =head2
18615 #: ../src/guestfs-actions.pod:6667
18616 msgid "guestfs_vfs_uuid"
18617 msgstr ""
18618
18619 # type: verbatim
18620 #. type: verbatim
18621 #: ../src/guestfs-actions.pod:6669
18622 #, no-wrap
18623 msgid ""
18624 " char *\n"
18625 " guestfs_vfs_uuid (guestfs_h *g,\n"
18626 "                   const char *device);\n"
18627 "\n"
18628 msgstr ""
18629
18630 # type: textblock
18631 #. type: textblock
18632 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4454
18633 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18634 msgstr ""
18635
18636 # type: textblock
18637 #. type: textblock
18638 #: ../src/guestfs-actions.pod:6676 ../fish/guestfish-actions.pod:4457
18639 msgid "If the filesystem does not have a UUID, this returns the empty string."
18640 msgstr ""
18641
18642 # type: textblock
18643 #. type: textblock
18644 #: ../src/guestfs-actions.pod:6678
18645 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18646 msgstr ""
18647
18648 # type: =head2
18649 #. type: =head2
18650 #: ../src/guestfs-actions.pod:6685
18651 msgid "guestfs_vg_activate"
18652 msgstr ""
18653
18654 # type: verbatim
18655 #. type: verbatim
18656 #: ../src/guestfs-actions.pod:6687
18657 #, no-wrap
18658 msgid ""
18659 " int\n"
18660 " guestfs_vg_activate (guestfs_h *g,\n"
18661 "                      int activate,\n"
18662 "                      char *const *volgroups);\n"
18663 "\n"
18664 msgstr ""
18665
18666 # type: textblock
18667 #. type: textblock
18668 #: ../src/guestfs-actions.pod:6692 ../fish/guestfish-actions.pod:4465
18669 msgid ""
18670 "This command activates or (if C<activate> is false) deactivates all logical "
18671 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18672 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18673 "deactivated, then those devices disappear."
18674 msgstr ""
18675
18676 # type: textblock
18677 #. type: textblock
18678 #: ../src/guestfs-actions.pod:6698 ../fish/guestfish-actions.pod:4471
18679 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18680 msgstr ""
18681
18682 # type: textblock
18683 #. type: textblock
18684 #: ../src/guestfs-actions.pod:6700 ../fish/guestfish-actions.pod:4473
18685 msgid ""
18686 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18687 "activated or deactivated."
18688 msgstr ""
18689
18690 # type: =head2
18691 #. type: =head2
18692 #: ../src/guestfs-actions.pod:6707
18693 msgid "guestfs_vg_activate_all"
18694 msgstr ""
18695
18696 # type: verbatim
18697 #. type: verbatim
18698 #: ../src/guestfs-actions.pod:6709
18699 #, no-wrap
18700 msgid ""
18701 " int\n"
18702 " guestfs_vg_activate_all (guestfs_h *g,\n"
18703 "                          int activate);\n"
18704 "\n"
18705 msgstr ""
18706
18707 # type: textblock
18708 #. type: textblock
18709 #: ../src/guestfs-actions.pod:6713 ../fish/guestfish-actions.pod:4480
18710 msgid ""
18711 "This command activates or (if C<activate> is false) deactivates all logical "
18712 "volumes in all volume groups.  If activated, then they are made known to the "
18713 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18714 "those devices disappear."
18715 msgstr ""
18716
18717 # type: textblock
18718 #. type: textblock
18719 #: ../src/guestfs-actions.pod:6719 ../fish/guestfish-actions.pod:4486
18720 msgid "This command is the same as running C<vgchange -a y|n>"
18721 msgstr ""
18722
18723 # type: =head2
18724 #. type: =head2
18725 #: ../src/guestfs-actions.pod:6725
18726 msgid "guestfs_vgcreate"
18727 msgstr ""
18728
18729 # type: verbatim
18730 #. type: verbatim
18731 #: ../src/guestfs-actions.pod:6727
18732 #, no-wrap
18733 msgid ""
18734 " int\n"
18735 " guestfs_vgcreate (guestfs_h *g,\n"
18736 "                   const char *volgroup,\n"
18737 "                   char *const *physvols);\n"
18738 "\n"
18739 msgstr ""
18740
18741 # type: textblock
18742 #. type: textblock
18743 #: ../src/guestfs-actions.pod:6732 ../fish/guestfish-actions.pod:4492
18744 msgid ""
18745 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18746 "of physical volumes C<physvols>."
18747 msgstr ""
18748
18749 # type: =head2
18750 #. type: =head2
18751 #: ../src/guestfs-actions.pod:6739
18752 msgid "guestfs_vglvuuids"
18753 msgstr ""
18754
18755 # type: verbatim
18756 #. type: verbatim
18757 #: ../src/guestfs-actions.pod:6741
18758 #, no-wrap
18759 msgid ""
18760 " char **\n"
18761 " guestfs_vglvuuids (guestfs_h *g,\n"
18762 "                    const char *vgname);\n"
18763 "\n"
18764 msgstr ""
18765
18766 # type: textblock
18767 #. type: textblock
18768 #: ../src/guestfs-actions.pod:6745 ../fish/guestfish-actions.pod:4499
18769 msgid ""
18770 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18771 "volumes created in this volume group."
18772 msgstr ""
18773
18774 # type: textblock
18775 #. type: textblock
18776 #: ../src/guestfs-actions.pod:6748
18777 msgid ""
18778 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18779 "associate logical volumes and volume groups."
18780 msgstr ""
18781
18782 # type: textblock
18783 #. type: textblock
18784 #: ../src/guestfs-actions.pod:6751
18785 msgid "See also C<guestfs_vgpvuuids>."
18786 msgstr ""
18787
18788 # type: =head2
18789 #. type: =head2
18790 #: ../src/guestfs-actions.pod:6759
18791 msgid "guestfs_vgpvuuids"
18792 msgstr ""
18793
18794 # type: verbatim
18795 #. type: verbatim
18796 #: ../src/guestfs-actions.pod:6761
18797 #, no-wrap
18798 msgid ""
18799 " char **\n"
18800 " guestfs_vgpvuuids (guestfs_h *g,\n"
18801 "                    const char *vgname);\n"
18802 "\n"
18803 msgstr ""
18804
18805 # type: textblock
18806 #. type: textblock
18807 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4511
18808 msgid ""
18809 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18810 "volumes that this volume group resides on."
18811 msgstr ""
18812
18813 # type: textblock
18814 #. type: textblock
18815 #: ../src/guestfs-actions.pod:6768
18816 msgid ""
18817 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18818 "associate physical volumes and volume groups."
18819 msgstr ""
18820
18821 # type: textblock
18822 #. type: textblock
18823 #: ../src/guestfs-actions.pod:6771
18824 msgid "See also C<guestfs_vglvuuids>."
18825 msgstr ""
18826
18827 # type: =head2
18828 #. type: =head2
18829 #: ../src/guestfs-actions.pod:6779
18830 msgid "guestfs_vgremove"
18831 msgstr ""
18832
18833 # type: verbatim
18834 #. type: verbatim
18835 #: ../src/guestfs-actions.pod:6781
18836 #, no-wrap
18837 msgid ""
18838 " int\n"
18839 " guestfs_vgremove (guestfs_h *g,\n"
18840 "                   const char *vgname);\n"
18841 "\n"
18842 msgstr ""
18843
18844 # type: textblock
18845 #. type: textblock
18846 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4523
18847 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18848 msgstr ""
18849
18850 # type: textblock
18851 #. type: textblock
18852 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4525
18853 msgid ""
18854 "This also forcibly removes all logical volumes in the volume group (if any)."
18855 msgstr ""
18856
18857 # type: =head2
18858 #. type: =head2
18859 #: ../src/guestfs-actions.pod:6794
18860 msgid "guestfs_vgrename"
18861 msgstr ""
18862
18863 # type: verbatim
18864 #. type: verbatim
18865 #: ../src/guestfs-actions.pod:6796
18866 #, no-wrap
18867 msgid ""
18868 " int\n"
18869 " guestfs_vgrename (guestfs_h *g,\n"
18870 "                   const char *volgroup,\n"
18871 "                   const char *newvolgroup);\n"
18872 "\n"
18873 msgstr ""
18874
18875 # type: textblock
18876 #. type: textblock
18877 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4532
18878 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18879 msgstr ""
18880
18881 # type: =head2
18882 #. type: =head2
18883 #: ../src/guestfs-actions.pod:6807
18884 msgid "guestfs_vgs"
18885 msgstr ""
18886
18887 # type: verbatim
18888 #. type: verbatim
18889 #: ../src/guestfs-actions.pod:6809
18890 #, no-wrap
18891 msgid ""
18892 " char **\n"
18893 " guestfs_vgs (guestfs_h *g);\n"
18894 "\n"
18895 msgstr ""
18896
18897 # type: textblock
18898 #. type: textblock
18899 #: ../src/guestfs-actions.pod:6812 ../fish/guestfish-actions.pod:4538
18900 msgid ""
18901 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18902 "> command."
18903 msgstr ""
18904
18905 # type: textblock
18906 #. type: textblock
18907 #: ../src/guestfs-actions.pod:6815 ../fish/guestfish-actions.pod:4541
18908 msgid ""
18909 "This returns a list of just the volume group names that were detected (eg. "
18910 "C<VolGroup00>)."
18911 msgstr ""
18912
18913 # type: textblock
18914 #. type: textblock
18915 #: ../src/guestfs-actions.pod:6818
18916 msgid "See also C<guestfs_vgs_full>."
18917 msgstr ""
18918
18919 # type: =head2
18920 #. type: =head2
18921 #: ../src/guestfs-actions.pod:6826
18922 msgid "guestfs_vgs_full"
18923 msgstr ""
18924
18925 # type: verbatim
18926 #. type: verbatim
18927 #: ../src/guestfs-actions.pod:6828
18928 #, no-wrap
18929 msgid ""
18930 " struct guestfs_lvm_vg_list *\n"
18931 " guestfs_vgs_full (guestfs_h *g);\n"
18932 "\n"
18933 msgstr ""
18934
18935 # type: textblock
18936 #. type: textblock
18937 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4550
18938 msgid ""
18939 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18940 "> command.  The \"full\" version includes all fields."
18941 msgstr ""
18942
18943 # type: textblock
18944 #. type: textblock
18945 #: ../src/guestfs-actions.pod:6834
18946 msgid ""
18947 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18948 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18949 msgstr ""
18950
18951 # type: =head2
18952 #. type: =head2
18953 #: ../src/guestfs-actions.pod:6840
18954 msgid "guestfs_vgscan"
18955 msgstr ""
18956
18957 # type: verbatim
18958 #. type: verbatim
18959 #: ../src/guestfs-actions.pod:6842
18960 #, no-wrap
18961 msgid ""
18962 " int\n"
18963 " guestfs_vgscan (guestfs_h *g);\n"
18964 "\n"
18965 msgstr ""
18966
18967 # type: textblock
18968 #. type: textblock
18969 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4557
18970 msgid ""
18971 "This rescans all block devices and rebuilds the list of LVM physical "
18972 "volumes, volume groups and logical volumes."
18973 msgstr ""
18974
18975 # type: =head2
18976 #. type: =head2
18977 #: ../src/guestfs-actions.pod:6852
18978 msgid "guestfs_vguuid"
18979 msgstr ""
18980
18981 # type: verbatim
18982 #. type: verbatim
18983 #: ../src/guestfs-actions.pod:6854
18984 #, no-wrap
18985 msgid ""
18986 " char *\n"
18987 " guestfs_vguuid (guestfs_h *g,\n"
18988 "                 const char *vgname);\n"
18989 "\n"
18990 msgstr ""
18991
18992 # type: textblock
18993 #. type: textblock
18994 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4564
18995 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18996 msgstr ""
18997
18998 # type: =head2
18999 #. type: =head2
19000 #: ../src/guestfs-actions.pod:6865
19001 msgid "guestfs_wait_ready"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #. type: verbatim
19006 #: ../src/guestfs-actions.pod:6867
19007 #, no-wrap
19008 msgid ""
19009 " int\n"
19010 " guestfs_wait_ready (guestfs_h *g);\n"
19011 "\n"
19012 msgstr ""
19013
19014 # type: textblock
19015 #. type: textblock
19016 #: ../src/guestfs-actions.pod:6870
19017 msgid "This function is a no op."
19018 msgstr ""
19019
19020 # type: textblock
19021 #. type: textblock
19022 #: ../src/guestfs-actions.pod:6872
19023 msgid ""
19024 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19025 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19026 "is no longer necessary because C<guestfs_launch> now does the waiting."
19027 msgstr ""
19028
19029 # type: textblock
19030 #. type: textblock
19031 #: ../src/guestfs-actions.pod:6877
19032 msgid ""
19033 "If you see any calls to this function in code then you can just remove them, "
19034 "unless you want to retain compatibility with older versions of the API."
19035 msgstr ""
19036
19037 # type: =head2
19038 #. type: =head2
19039 #: ../src/guestfs-actions.pod:6885
19040 msgid "guestfs_wc_c"
19041 msgstr ""
19042
19043 # type: verbatim
19044 #. type: verbatim
19045 #: ../src/guestfs-actions.pod:6887
19046 #, no-wrap
19047 msgid ""
19048 " int\n"
19049 " guestfs_wc_c (guestfs_h *g,\n"
19050 "               const char *path);\n"
19051 "\n"
19052 msgstr ""
19053
19054 # type: textblock
19055 #. type: textblock
19056 #: ../src/guestfs-actions.pod:6891 ../fish/guestfish-actions.pod:4570
19057 msgid ""
19058 "This command counts the characters in a file, using the C<wc -c> external "
19059 "command."
19060 msgstr ""
19061
19062 # type: =head2
19063 #. type: =head2
19064 #: ../src/guestfs-actions.pod:6898
19065 msgid "guestfs_wc_l"
19066 msgstr ""
19067
19068 # type: verbatim
19069 #. type: verbatim
19070 #: ../src/guestfs-actions.pod:6900
19071 #, no-wrap
19072 msgid ""
19073 " int\n"
19074 " guestfs_wc_l (guestfs_h *g,\n"
19075 "               const char *path);\n"
19076 "\n"
19077 msgstr ""
19078
19079 # type: textblock
19080 #. type: textblock
19081 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4577
19082 msgid ""
19083 "This command counts the lines in a file, using the C<wc -l> external command."
19084 msgstr ""
19085
19086 # type: =head2
19087 #. type: =head2
19088 #: ../src/guestfs-actions.pod:6911
19089 msgid "guestfs_wc_w"
19090 msgstr ""
19091
19092 # type: verbatim
19093 #. type: verbatim
19094 #: ../src/guestfs-actions.pod:6913
19095 #, no-wrap
19096 msgid ""
19097 " int\n"
19098 " guestfs_wc_w (guestfs_h *g,\n"
19099 "               const char *path);\n"
19100 "\n"
19101 msgstr ""
19102
19103 # type: textblock
19104 #. type: textblock
19105 #: ../src/guestfs-actions.pod:6917 ../fish/guestfish-actions.pod:4584
19106 msgid ""
19107 "This command counts the words in a file, using the C<wc -w> external command."
19108 msgstr ""
19109
19110 # type: =head2
19111 #. type: =head2
19112 #: ../src/guestfs-actions.pod:6924
19113 msgid "guestfs_write"
19114 msgstr ""
19115
19116 # type: verbatim
19117 #. type: verbatim
19118 #: ../src/guestfs-actions.pod:6926
19119 #, no-wrap
19120 msgid ""
19121 " int\n"
19122 " guestfs_write (guestfs_h *g,\n"
19123 "                const char *path,\n"
19124 "                const char *content,\n"
19125 "                size_t content_size);\n"
19126 "\n"
19127 msgstr ""
19128
19129 # type: textblock
19130 #. type: textblock
19131 #: ../src/guestfs-actions.pod:6932 ../fish/guestfish-actions.pod:4591
19132 msgid ""
19133 "This call creates a file called C<path>.  The content of the file is the "
19134 "string C<content> (which can contain any 8 bit data)."
19135 msgstr ""
19136
19137 # type: =head2
19138 #. type: =head2
19139 #: ../src/guestfs-actions.pod:6942
19140 msgid "guestfs_write_file"
19141 msgstr ""
19142
19143 # type: verbatim
19144 #. type: verbatim
19145 #: ../src/guestfs-actions.pod:6944
19146 #, no-wrap
19147 msgid ""
19148 " int\n"
19149 " guestfs_write_file (guestfs_h *g,\n"
19150 "                     const char *path,\n"
19151 "                     const char *content,\n"
19152 "                     int size);\n"
19153 "\n"
19154 msgstr ""
19155
19156 # type: textblock
19157 #. type: textblock
19158 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4601
19159 msgid ""
19160 "This call creates a file called C<path>.  The contents of the file is the "
19161 "string C<content> (which can contain any 8 bit data), with length C<size>."
19162 msgstr ""
19163
19164 # type: textblock
19165 #. type: textblock
19166 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4605
19167 msgid ""
19168 "As a special case, if C<size> is C<0> then the length is calculated using "
19169 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19170 msgstr ""
19171
19172 # type: textblock
19173 #. type: textblock
19174 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4609
19175 msgid ""
19176 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19177 "I<not> work, even if the length is specified."
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6966 ../fish/guestfish-actions.pod:4615
19183 msgid ""
19184 "This function is deprecated.  In new code, use the C<write> call instead."
19185 msgstr ""
19186
19187 # type: =head2
19188 #. type: =head2
19189 #: ../src/guestfs-actions.pod:6975
19190 msgid "guestfs_zegrep"
19191 msgstr ""
19192
19193 # type: verbatim
19194 #. type: verbatim
19195 #: ../src/guestfs-actions.pod:6977
19196 #, no-wrap
19197 msgid ""
19198 " char **\n"
19199 " guestfs_zegrep (guestfs_h *g,\n"
19200 "                 const char *regex,\n"
19201 "                 const char *path);\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #. type: textblock
19207 #: ../src/guestfs-actions.pod:6982 ../fish/guestfish-actions.pod:4626
19208 msgid ""
19209 "This calls the external C<zegrep> program and returns the matching lines."
19210 msgstr ""
19211
19212 # type: =head2
19213 #. type: =head2
19214 #: ../src/guestfs-actions.pod:6994
19215 msgid "guestfs_zegrepi"
19216 msgstr ""
19217
19218 # type: verbatim
19219 #. type: verbatim
19220 #: ../src/guestfs-actions.pod:6996
19221 #, no-wrap
19222 msgid ""
19223 " char **\n"
19224 " guestfs_zegrepi (guestfs_h *g,\n"
19225 "                  const char *regex,\n"
19226 "                  const char *path);\n"
19227 "\n"
19228 msgstr ""
19229
19230 # type: textblock
19231 #. type: textblock
19232 #: ../src/guestfs-actions.pod:7001 ../fish/guestfish-actions.pod:4636
19233 msgid ""
19234 "This calls the external C<zegrep -i> program and returns the matching lines."
19235 msgstr ""
19236
19237 # type: =head2
19238 #. type: =head2
19239 #: ../src/guestfs-actions.pod:7013
19240 msgid "guestfs_zero"
19241 msgstr ""
19242
19243 # type: verbatim
19244 #. type: verbatim
19245 #: ../src/guestfs-actions.pod:7015
19246 #, no-wrap
19247 msgid ""
19248 " int\n"
19249 " guestfs_zero (guestfs_h *g,\n"
19250 "               const char *device);\n"
19251 "\n"
19252 msgstr ""
19253
19254 # type: textblock
19255 #. type: textblock
19256 #: ../src/guestfs-actions.pod:7019 ../fish/guestfish-actions.pod:4646
19257 msgid "This command writes zeroes over the first few blocks of C<device>."
19258 msgstr ""
19259
19260 # type: textblock
19261 #. type: textblock
19262 #: ../src/guestfs-actions.pod:7021 ../fish/guestfish-actions.pod:4648
19263 msgid ""
19264 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19265 "securely wipe the device).  It should be sufficient to remove any partition "
19266 "tables, filesystem superblocks and so on."
19267 msgstr ""
19268
19269 # type: textblock
19270 #. type: textblock
19271 #: ../src/guestfs-actions.pod:7025
19272 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
19273 msgstr ""
19274
19275 # type: =head2
19276 #. type: =head2
19277 #: ../src/guestfs-actions.pod:7036
19278 msgid "guestfs_zero_device"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #. type: verbatim
19283 #: ../src/guestfs-actions.pod:7038
19284 #, no-wrap
19285 msgid ""
19286 " int\n"
19287 " guestfs_zero_device (guestfs_h *g,\n"
19288 "                      const char *device);\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #. type: textblock
19294 #: ../src/guestfs-actions.pod:7042
19295 msgid ""
19296 "This command writes zeroes over the entire C<device>.  Compare with "
19297 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19298 msgstr ""
19299
19300 # type: textblock
19301 #. type: textblock
19302 #: ../src/guestfs-actions.pod:7056
19303 msgid "(Added in 1.3.1)"
19304 msgstr ""
19305
19306 # type: =head2
19307 #. type: =head2
19308 #: ../src/guestfs-actions.pod:7058
19309 msgid "guestfs_zerofree"
19310 msgstr ""
19311
19312 # type: verbatim
19313 #. type: verbatim
19314 #: ../src/guestfs-actions.pod:7060
19315 #, no-wrap
19316 msgid ""
19317 " int\n"
19318 " guestfs_zerofree (guestfs_h *g,\n"
19319 "                   const char *device);\n"
19320 "\n"
19321 msgstr ""
19322
19323 # type: textblock
19324 #. type: textblock
19325 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4669
19326 msgid ""
19327 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19328 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19329 "possible to compress the filesystem more effectively."
19330 msgstr ""
19331
19332 # type: textblock
19333 #. type: textblock
19334 #: ../src/guestfs-actions.pod:7069 ../fish/guestfish-actions.pod:4674
19335 msgid "You should B<not> run this program if the filesystem is mounted."
19336 msgstr ""
19337
19338 # type: textblock
19339 #. type: textblock
19340 #: ../src/guestfs-actions.pod:7072 ../fish/guestfish-actions.pod:4677
19341 msgid ""
19342 "It is possible that using this program can damage the filesystem or data on "
19343 "the filesystem."
19344 msgstr ""
19345
19346 # type: =head2
19347 #. type: =head2
19348 #: ../src/guestfs-actions.pod:7079
19349 msgid "guestfs_zfgrep"
19350 msgstr ""
19351
19352 # type: verbatim
19353 #. type: verbatim
19354 #: ../src/guestfs-actions.pod:7081
19355 #, no-wrap
19356 msgid ""
19357 " char **\n"
19358 " guestfs_zfgrep (guestfs_h *g,\n"
19359 "                 const char *pattern,\n"
19360 "                 const char *path);\n"
19361 "\n"
19362 msgstr ""
19363
19364 # type: textblock
19365 #. type: textblock
19366 #: ../src/guestfs-actions.pod:7086 ../fish/guestfish-actions.pod:4684
19367 msgid ""
19368 "This calls the external C<zfgrep> program and returns the matching lines."
19369 msgstr ""
19370
19371 # type: =head2
19372 #. type: =head2
19373 #: ../src/guestfs-actions.pod:7098
19374 msgid "guestfs_zfgrepi"
19375 msgstr ""
19376
19377 # type: verbatim
19378 #. type: verbatim
19379 #: ../src/guestfs-actions.pod:7100
19380 #, no-wrap
19381 msgid ""
19382 " char **\n"
19383 " guestfs_zfgrepi (guestfs_h *g,\n"
19384 "                  const char *pattern,\n"
19385 "                  const char *path);\n"
19386 "\n"
19387 msgstr ""
19388
19389 # type: textblock
19390 #. type: textblock
19391 #: ../src/guestfs-actions.pod:7105 ../fish/guestfish-actions.pod:4694
19392 msgid ""
19393 "This calls the external C<zfgrep -i> program and returns the matching lines."
19394 msgstr ""
19395
19396 # type: =head2
19397 #. type: =head2
19398 #: ../src/guestfs-actions.pod:7117
19399 msgid "guestfs_zfile"
19400 msgstr ""
19401
19402 # type: verbatim
19403 #. type: verbatim
19404 #: ../src/guestfs-actions.pod:7119
19405 #, no-wrap
19406 msgid ""
19407 " char *\n"
19408 " guestfs_zfile (guestfs_h *g,\n"
19409 "                const char *meth,\n"
19410 "                const char *path);\n"
19411 "\n"
19412 msgstr ""
19413
19414 # type: textblock
19415 #. type: textblock
19416 #: ../src/guestfs-actions.pod:7124 ../fish/guestfish-actions.pod:4704
19417 msgid ""
19418 "This command runs C<file> after first decompressing C<path> using C<method>."
19419 msgstr ""
19420
19421 # type: textblock
19422 #. type: textblock
19423 #: ../src/guestfs-actions.pod:7127 ../fish/guestfish-actions.pod:4707
19424 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19425 msgstr ""
19426
19427 # type: textblock
19428 #. type: textblock
19429 #: ../src/guestfs-actions.pod:7129
19430 msgid ""
19431 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19432 "files."
19433 msgstr ""
19434
19435 # type: textblock
19436 #. type: textblock
19437 #: ../src/guestfs-actions.pod:7135 ../fish/guestfish-actions.pod:4712
19438 msgid ""
19439 "This function is deprecated.  In new code, use the C<file> call instead."
19440 msgstr ""
19441
19442 # type: =head2
19443 #. type: =head2
19444 #: ../src/guestfs-actions.pod:7144
19445 msgid "guestfs_zgrep"
19446 msgstr ""
19447
19448 # type: verbatim
19449 #. type: verbatim
19450 #: ../src/guestfs-actions.pod:7146
19451 #, no-wrap
19452 msgid ""
19453 " char **\n"
19454 " guestfs_zgrep (guestfs_h *g,\n"
19455 "                const char *regex,\n"
19456 "                const char *path);\n"
19457 "\n"
19458 msgstr ""
19459
19460 # type: textblock
19461 #. type: textblock
19462 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4723
19463 msgid ""
19464 "This calls the external C<zgrep> program and returns the matching lines."
19465 msgstr ""
19466
19467 # type: =head2
19468 #. type: =head2
19469 #: ../src/guestfs-actions.pod:7163
19470 msgid "guestfs_zgrepi"
19471 msgstr ""
19472
19473 # type: verbatim
19474 #. type: verbatim
19475 #: ../src/guestfs-actions.pod:7165
19476 #, no-wrap
19477 msgid ""
19478 " char **\n"
19479 " guestfs_zgrepi (guestfs_h *g,\n"
19480 "                 const char *regex,\n"
19481 "                 const char *path);\n"
19482 "\n"
19483 msgstr ""
19484
19485 # type: textblock
19486 #. type: textblock
19487 #: ../src/guestfs-actions.pod:7170 ../fish/guestfish-actions.pod:4733
19488 msgid ""
19489 "This calls the external C<zgrep -i> program and returns the matching lines."
19490 msgstr ""
19491
19492 # type: =item
19493 #. type: =item
19494 #: ../src/guestfs-availability.pod:3
19495 msgid "B<augeas>"
19496 msgstr ""
19497
19498 # type: textblock
19499 #. type: textblock
19500 #: ../src/guestfs-availability.pod:5
19501 msgid ""
19502 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
19503 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
19504 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
19505 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
19506 "L</guestfs_aug_save> L</guestfs_aug_set>"
19507 msgstr ""
19508
19509 # type: =item
19510 #. type: =item
19511 #: ../src/guestfs-availability.pod:21
19512 msgid "B<inotify>"
19513 msgstr ""
19514
19515 # type: textblock
19516 #. type: textblock
19517 #: ../src/guestfs-availability.pod:23
19518 msgid ""
19519 "The following functions: L</guestfs_inotify_add_watch> L</"
19520 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
19521 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19522 msgstr ""
19523
19524 # type: =item
19525 #. type: =item
19526 #: ../src/guestfs-availability.pod:31
19527 msgid "B<linuxfsuuid>"
19528 msgstr ""
19529
19530 # type: textblock
19531 #. type: textblock
19532 #: ../src/guestfs-availability.pod:33
19533 msgid ""
19534 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
19535 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19536 msgstr ""
19537
19538 # type: =item
19539 #. type: =item
19540 #: ../src/guestfs-availability.pod:40
19541 msgid "B<linuxmodules>"
19542 msgstr ""
19543
19544 # type: textblock
19545 #. type: textblock
19546 #: ../src/guestfs-availability.pod:42
19547 msgid "The following functions: L</guestfs_modprobe>"
19548 msgstr ""
19549
19550 # type: =item
19551 #. type: =item
19552 #: ../src/guestfs-availability.pod:45
19553 msgid "B<linuxxattrs>"
19554 msgstr ""
19555
19556 # type: textblock
19557 #. type: textblock
19558 #: ../src/guestfs-availability.pod:47
19559 msgid ""
19560 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
19561 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
19562 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
19563 "guestfs_setxattr>"
19564 msgstr ""
19565
19566 # type: =item
19567 #. type: =item
19568 #: ../src/guestfs-availability.pod:58
19569 msgid "B<luks>"
19570 msgstr ""
19571
19572 # type: textblock
19573 #. type: textblock
19574 #: ../src/guestfs-availability.pod:60
19575 msgid ""
19576 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
19577 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
19578 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
19579 msgstr ""
19580
19581 # type: =item
19582 #. type: =item
19583 #: ../src/guestfs-availability.pod:69
19584 msgid "B<lvm2>"
19585 msgstr ""
19586
19587 # type: textblock
19588 #. type: textblock
19589 #: ../src/guestfs-availability.pod:71
19590 msgid ""
19591 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
19592 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
19593 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
19594 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
19595 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
19596 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
19597 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
19598 msgstr ""
19599
19600 # type: =item
19601 #. type: =item
19602 #: ../src/guestfs-availability.pod:94
19603 msgid "B<mknod>"
19604 msgstr ""
19605
19606 # type: textblock
19607 #. type: textblock
19608 #: ../src/guestfs-availability.pod:96
19609 msgid ""
19610 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19611 "guestfs_mknod_b> L</guestfs_mknod_c>"
19612 msgstr ""
19613
19614 # type: =item
19615 #. type: =item
19616 #: ../src/guestfs-availability.pod:102
19617 msgid "B<ntfs3g>"
19618 msgstr ""
19619
19620 # type: textblock
19621 #. type: textblock
19622 #: ../src/guestfs-availability.pod:104
19623 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19624 msgstr ""
19625
19626 # type: =item
19627 #. type: =item
19628 #: ../src/guestfs-availability.pod:107
19629 msgid "B<ntfsprogs>"
19630 msgstr ""
19631
19632 # type: textblock
19633 #. type: textblock
19634 #: ../src/guestfs-availability.pod:109
19635 msgid ""
19636 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19637 msgstr ""
19638
19639 # type: =item
19640 #. type: =item
19641 #: ../src/guestfs-availability.pod:113
19642 msgid "B<realpath>"
19643 msgstr ""
19644
19645 # type: textblock
19646 #. type: textblock
19647 #: ../src/guestfs-availability.pod:115
19648 msgid "The following functions: L</guestfs_realpath>"
19649 msgstr ""
19650
19651 # type: =item
19652 #. type: =item
19653 #: ../src/guestfs-availability.pod:118
19654 msgid "B<scrub>"
19655 msgstr ""
19656
19657 # type: textblock
19658 #. type: textblock
19659 #: ../src/guestfs-availability.pod:120
19660 msgid ""
19661 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19662 "guestfs_scrub_freespace>"
19663 msgstr ""
19664
19665 # type: =item
19666 #. type: =item
19667 #: ../src/guestfs-availability.pod:125
19668 msgid "B<selinux>"
19669 msgstr ""
19670
19671 # type: textblock
19672 #. type: textblock
19673 #: ../src/guestfs-availability.pod:127
19674 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19675 msgstr ""
19676
19677 # type: =item
19678 #. type: =item
19679 #: ../src/guestfs-availability.pod:131
19680 msgid "B<xz>"
19681 msgstr ""
19682
19683 # type: textblock
19684 #. type: textblock
19685 #: ../src/guestfs-availability.pod:133
19686 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19687 msgstr ""
19688
19689 # type: =item
19690 #. type: =item
19691 #: ../src/guestfs-availability.pod:137
19692 msgid "B<zerofree>"
19693 msgstr ""
19694
19695 # type: textblock
19696 #. type: textblock
19697 #: ../src/guestfs-availability.pod:139
19698 msgid "The following functions: L</guestfs_zerofree>"
19699 msgstr ""
19700
19701 # type: =head2
19702 #. type: =head2
19703 #: ../src/guestfs-structs.pod:1
19704 msgid "guestfs_int_bool"
19705 msgstr ""
19706
19707 # type: verbatim
19708 #. type: verbatim
19709 #: ../src/guestfs-structs.pod:3
19710 #, no-wrap
19711 msgid ""
19712 " struct guestfs_int_bool {\n"
19713 "   int32_t i;\n"
19714 "   int32_t b;\n"
19715 " };\n"
19716 " \n"
19717 msgstr ""
19718
19719 # type: verbatim
19720 #. type: verbatim
19721 #: ../src/guestfs-structs.pod:8
19722 #, no-wrap
19723 msgid ""
19724 " struct guestfs_int_bool_list {\n"
19725 "   uint32_t len; /* Number of elements in list. */\n"
19726 "   struct guestfs_int_bool *val; /* Elements. */\n"
19727 " };\n"
19728 " \n"
19729 msgstr ""
19730
19731 # type: verbatim
19732 #. type: verbatim
19733 #: ../src/guestfs-structs.pod:13
19734 #, no-wrap
19735 msgid ""
19736 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19737 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19738 "\n"
19739 msgstr ""
19740
19741 # type: =head2
19742 #. type: =head2
19743 #: ../src/guestfs-structs.pod:16
19744 msgid "guestfs_lvm_pv"
19745 msgstr ""
19746
19747 # type: verbatim
19748 #. type: verbatim
19749 #: ../src/guestfs-structs.pod:18
19750 #, no-wrap
19751 msgid ""
19752 " struct guestfs_lvm_pv {\n"
19753 "   char *pv_name;\n"
19754 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19755 "   char pv_uuid[32];\n"
19756 "   char *pv_fmt;\n"
19757 "   uint64_t pv_size;\n"
19758 "   uint64_t dev_size;\n"
19759 "   uint64_t pv_free;\n"
19760 "   uint64_t pv_used;\n"
19761 "   char *pv_attr;\n"
19762 "   int64_t pv_pe_count;\n"
19763 "   int64_t pv_pe_alloc_count;\n"
19764 "   char *pv_tags;\n"
19765 "   uint64_t pe_start;\n"
19766 "   int64_t pv_mda_count;\n"
19767 "   uint64_t pv_mda_free;\n"
19768 " };\n"
19769 " \n"
19770 msgstr ""
19771
19772 # type: verbatim
19773 #. type: verbatim
19774 #: ../src/guestfs-structs.pod:36
19775 #, no-wrap
19776 msgid ""
19777 " struct guestfs_lvm_pv_list {\n"
19778 "   uint32_t len; /* Number of elements in list. */\n"
19779 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19780 " };\n"
19781 " \n"
19782 msgstr ""
19783
19784 # type: verbatim
19785 #. type: verbatim
19786 #: ../src/guestfs-structs.pod:41
19787 #, no-wrap
19788 msgid ""
19789 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
19790 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
19791 "\n"
19792 msgstr ""
19793
19794 # type: =head2
19795 #. type: =head2
19796 #: ../src/guestfs-structs.pod:44
19797 msgid "guestfs_lvm_vg"
19798 msgstr ""
19799
19800 # type: verbatim
19801 #. type: verbatim
19802 #: ../src/guestfs-structs.pod:46
19803 #, no-wrap
19804 msgid ""
19805 " struct guestfs_lvm_vg {\n"
19806 "   char *vg_name;\n"
19807 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19808 "   char vg_uuid[32];\n"
19809 "   char *vg_fmt;\n"
19810 "   char *vg_attr;\n"
19811 "   uint64_t vg_size;\n"
19812 "   uint64_t vg_free;\n"
19813 "   char *vg_sysid;\n"
19814 "   uint64_t vg_extent_size;\n"
19815 "   int64_t vg_extent_count;\n"
19816 "   int64_t vg_free_count;\n"
19817 "   int64_t max_lv;\n"
19818 "   int64_t max_pv;\n"
19819 "   int64_t pv_count;\n"
19820 "   int64_t lv_count;\n"
19821 "   int64_t snap_count;\n"
19822 "   int64_t vg_seqno;\n"
19823 "   char *vg_tags;\n"
19824 "   int64_t vg_mda_count;\n"
19825 "   uint64_t vg_mda_free;\n"
19826 " };\n"
19827 " \n"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #. type: verbatim
19832 #: ../src/guestfs-structs.pod:69
19833 #, no-wrap
19834 msgid ""
19835 " struct guestfs_lvm_vg_list {\n"
19836 "   uint32_t len; /* Number of elements in list. */\n"
19837 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
19838 " };\n"
19839 " \n"
19840 msgstr ""
19841
19842 # type: verbatim
19843 #. type: verbatim
19844 #: ../src/guestfs-structs.pod:74
19845 #, no-wrap
19846 msgid ""
19847 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
19848 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
19849 "\n"
19850 msgstr ""
19851
19852 # type: =head2
19853 #. type: =head2
19854 #: ../src/guestfs-structs.pod:77
19855 msgid "guestfs_lvm_lv"
19856 msgstr ""
19857
19858 # type: verbatim
19859 #. type: verbatim
19860 #: ../src/guestfs-structs.pod:79
19861 #, no-wrap
19862 msgid ""
19863 " struct guestfs_lvm_lv {\n"
19864 "   char *lv_name;\n"
19865 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19866 "   char lv_uuid[32];\n"
19867 "   char *lv_attr;\n"
19868 "   int64_t lv_major;\n"
19869 "   int64_t lv_minor;\n"
19870 "   int64_t lv_kernel_major;\n"
19871 "   int64_t lv_kernel_minor;\n"
19872 "   uint64_t lv_size;\n"
19873 "   int64_t seg_count;\n"
19874 "   char *origin;\n"
19875 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19876 "   float snap_percent;\n"
19877 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19878 "   float copy_percent;\n"
19879 "   char *move_pv;\n"
19880 "   char *lv_tags;\n"
19881 "   char *mirror_log;\n"
19882 "   char *modules;\n"
19883 " };\n"
19884 " \n"
19885 msgstr ""
19886
19887 # type: verbatim
19888 #. type: verbatim
19889 #: ../src/guestfs-structs.pod:101
19890 #, no-wrap
19891 msgid ""
19892 " struct guestfs_lvm_lv_list {\n"
19893 "   uint32_t len; /* Number of elements in list. */\n"
19894 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
19895 " };\n"
19896 " \n"
19897 msgstr ""
19898
19899 # type: verbatim
19900 #. type: verbatim
19901 #: ../src/guestfs-structs.pod:106
19902 #, no-wrap
19903 msgid ""
19904 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
19905 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
19906 "\n"
19907 msgstr ""
19908
19909 # type: verbatim
19910 #. type: verbatim
19911 #: ../src/guestfs-structs.pod:111
19912 #, no-wrap
19913 msgid ""
19914 " struct guestfs_stat {\n"
19915 "   int64_t dev;\n"
19916 "   int64_t ino;\n"
19917 "   int64_t mode;\n"
19918 "   int64_t nlink;\n"
19919 "   int64_t uid;\n"
19920 "   int64_t gid;\n"
19921 "   int64_t rdev;\n"
19922 "   int64_t size;\n"
19923 "   int64_t blksize;\n"
19924 "   int64_t blocks;\n"
19925 "   int64_t atime;\n"
19926 "   int64_t mtime;\n"
19927 "   int64_t ctime;\n"
19928 " };\n"
19929 " \n"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #. type: verbatim
19934 #: ../src/guestfs-structs.pod:127
19935 #, no-wrap
19936 msgid ""
19937 " struct guestfs_stat_list {\n"
19938 "   uint32_t len; /* Number of elements in list. */\n"
19939 "   struct guestfs_stat *val; /* Elements. */\n"
19940 " };\n"
19941 " \n"
19942 msgstr ""
19943
19944 # type: verbatim
19945 #. type: verbatim
19946 #: ../src/guestfs-structs.pod:132
19947 #, no-wrap
19948 msgid ""
19949 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19950 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19951 "\n"
19952 msgstr ""
19953
19954 # type: verbatim
19955 #. type: verbatim
19956 #: ../src/guestfs-structs.pod:137
19957 #, no-wrap
19958 msgid ""
19959 " struct guestfs_statvfs {\n"
19960 "   int64_t bsize;\n"
19961 "   int64_t frsize;\n"
19962 "   int64_t blocks;\n"
19963 "   int64_t bfree;\n"
19964 "   int64_t bavail;\n"
19965 "   int64_t files;\n"
19966 "   int64_t ffree;\n"
19967 "   int64_t favail;\n"
19968 "   int64_t fsid;\n"
19969 "   int64_t flag;\n"
19970 "   int64_t namemax;\n"
19971 " };\n"
19972 " \n"
19973 msgstr ""
19974
19975 # type: verbatim
19976 #. type: verbatim
19977 #: ../src/guestfs-structs.pod:151
19978 #, no-wrap
19979 msgid ""
19980 " struct guestfs_statvfs_list {\n"
19981 "   uint32_t len; /* Number of elements in list. */\n"
19982 "   struct guestfs_statvfs *val; /* Elements. */\n"
19983 " };\n"
19984 " \n"
19985 msgstr ""
19986
19987 # type: verbatim
19988 #. type: verbatim
19989 #: ../src/guestfs-structs.pod:156
19990 #, no-wrap
19991 msgid ""
19992 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19993 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19994 "\n"
19995 msgstr ""
19996
19997 # type: =head2
19998 #. type: =head2
19999 #: ../src/guestfs-structs.pod:159
20000 msgid "guestfs_dirent"
20001 msgstr ""
20002
20003 # type: verbatim
20004 #. type: verbatim
20005 #: ../src/guestfs-structs.pod:161
20006 #, no-wrap
20007 msgid ""
20008 " struct guestfs_dirent {\n"
20009 "   int64_t ino;\n"
20010 "   char ftyp;\n"
20011 "   char *name;\n"
20012 " };\n"
20013 " \n"
20014 msgstr ""
20015
20016 # type: verbatim
20017 #. type: verbatim
20018 #: ../src/guestfs-structs.pod:167
20019 #, no-wrap
20020 msgid ""
20021 " struct guestfs_dirent_list {\n"
20022 "   uint32_t len; /* Number of elements in list. */\n"
20023 "   struct guestfs_dirent *val; /* Elements. */\n"
20024 " };\n"
20025 " \n"
20026 msgstr ""
20027
20028 # type: verbatim
20029 #. type: verbatim
20030 #: ../src/guestfs-structs.pod:172
20031 #, no-wrap
20032 msgid ""
20033 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20034 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20035 "\n"
20036 msgstr ""
20037
20038 # type: verbatim
20039 #. type: verbatim
20040 #: ../src/guestfs-structs.pod:177
20041 #, no-wrap
20042 msgid ""
20043 " struct guestfs_version {\n"
20044 "   int64_t major;\n"
20045 "   int64_t minor;\n"
20046 "   int64_t release;\n"
20047 "   char *extra;\n"
20048 " };\n"
20049 " \n"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #. type: verbatim
20054 #: ../src/guestfs-structs.pod:184
20055 #, no-wrap
20056 msgid ""
20057 " struct guestfs_version_list {\n"
20058 "   uint32_t len; /* Number of elements in list. */\n"
20059 "   struct guestfs_version *val; /* Elements. */\n"
20060 " };\n"
20061 " \n"
20062 msgstr ""
20063
20064 # type: verbatim
20065 #. type: verbatim
20066 #: ../src/guestfs-structs.pod:189
20067 #, no-wrap
20068 msgid ""
20069 " void guestfs_free_version (struct guestfs_free_version *);\n"
20070 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20071 "\n"
20072 msgstr ""
20073
20074 # type: =head2
20075 #. type: =head2
20076 #: ../src/guestfs-structs.pod:192
20077 msgid "guestfs_xattr"
20078 msgstr ""
20079
20080 # type: verbatim
20081 #. type: verbatim
20082 #: ../src/guestfs-structs.pod:194
20083 #, no-wrap
20084 msgid ""
20085 " struct guestfs_xattr {\n"
20086 "   char *attrname;\n"
20087 "   /* The next two fields describe a byte array. */\n"
20088 "   uint32_t attrval_len;\n"
20089 "   char *attrval;\n"
20090 " };\n"
20091 " \n"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #. type: verbatim
20096 #: ../src/guestfs-structs.pod:201
20097 #, no-wrap
20098 msgid ""
20099 " struct guestfs_xattr_list {\n"
20100 "   uint32_t len; /* Number of elements in list. */\n"
20101 "   struct guestfs_xattr *val; /* Elements. */\n"
20102 " };\n"
20103 " \n"
20104 msgstr ""
20105
20106 # type: verbatim
20107 #. type: verbatim
20108 #: ../src/guestfs-structs.pod:206
20109 #, no-wrap
20110 msgid ""
20111 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20112 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20113 "\n"
20114 msgstr ""
20115
20116 # type: =head2
20117 #. type: =head2
20118 #: ../src/guestfs-structs.pod:209
20119 msgid "guestfs_inotify_event"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #. type: verbatim
20124 #: ../src/guestfs-structs.pod:211
20125 #, no-wrap
20126 msgid ""
20127 " struct guestfs_inotify_event {\n"
20128 "   int64_t in_wd;\n"
20129 "   uint32_t in_mask;\n"
20130 "   uint32_t in_cookie;\n"
20131 "   char *in_name;\n"
20132 " };\n"
20133 " \n"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #. type: verbatim
20138 #: ../src/guestfs-structs.pod:218
20139 #, no-wrap
20140 msgid ""
20141 " struct guestfs_inotify_event_list {\n"
20142 "   uint32_t len; /* Number of elements in list. */\n"
20143 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20144 " };\n"
20145 " \n"
20146 msgstr ""
20147
20148 # type: verbatim
20149 #. type: verbatim
20150 #: ../src/guestfs-structs.pod:223
20151 #, no-wrap
20152 msgid ""
20153 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20154 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20155 "\n"
20156 msgstr ""
20157
20158 # type: =head2
20159 #. type: =head2
20160 #: ../src/guestfs-structs.pod:226
20161 msgid "guestfs_partition"
20162 msgstr ""
20163
20164 # type: verbatim
20165 #. type: verbatim
20166 #: ../src/guestfs-structs.pod:228
20167 #, no-wrap
20168 msgid ""
20169 " struct guestfs_partition {\n"
20170 "   int32_t part_num;\n"
20171 "   uint64_t part_start;\n"
20172 "   uint64_t part_end;\n"
20173 "   uint64_t part_size;\n"
20174 " };\n"
20175 " \n"
20176 msgstr ""
20177
20178 # type: verbatim
20179 #. type: verbatim
20180 #: ../src/guestfs-structs.pod:235
20181 #, no-wrap
20182 msgid ""
20183 " struct guestfs_partition_list {\n"
20184 "   uint32_t len; /* Number of elements in list. */\n"
20185 "   struct guestfs_partition *val; /* Elements. */\n"
20186 " };\n"
20187 " \n"
20188 msgstr ""
20189
20190 # type: verbatim
20191 #. type: verbatim
20192 #: ../src/guestfs-structs.pod:240
20193 #, no-wrap
20194 msgid ""
20195 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20196 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: =head2
20201 #. type: =head2
20202 #: ../src/guestfs-structs.pod:243
20203 msgid "guestfs_application"
20204 msgstr ""
20205
20206 # type: verbatim
20207 #. type: verbatim
20208 #: ../src/guestfs-structs.pod:245
20209 #, no-wrap
20210 msgid ""
20211 " struct guestfs_application {\n"
20212 "   char *app_name;\n"
20213 "   char *app_display_name;\n"
20214 "   int32_t app_epoch;\n"
20215 "   char *app_version;\n"
20216 "   char *app_release;\n"
20217 "   char *app_install_path;\n"
20218 "   char *app_trans_path;\n"
20219 "   char *app_publisher;\n"
20220 "   char *app_url;\n"
20221 "   char *app_source_package;\n"
20222 "   char *app_summary;\n"
20223 "   char *app_description;\n"
20224 " };\n"
20225 " \n"
20226 msgstr ""
20227
20228 # type: verbatim
20229 #. type: verbatim
20230 #: ../src/guestfs-structs.pod:260
20231 #, no-wrap
20232 msgid ""
20233 " struct guestfs_application_list {\n"
20234 "   uint32_t len; /* Number of elements in list. */\n"
20235 "   struct guestfs_application *val; /* Elements. */\n"
20236 " };\n"
20237 " \n"
20238 msgstr ""
20239
20240 # type: verbatim
20241 #. type: verbatim
20242 #: ../src/guestfs-structs.pod:265
20243 #, no-wrap
20244 msgid ""
20245 " void guestfs_free_application (struct guestfs_free_application *);\n"
20246 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20247 "\n"
20248 msgstr ""
20249
20250 # type: textblock
20251 #. type: textblock
20252 #: ../fish/guestfish.pod:5
20253 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #. type: verbatim
20258 #: ../fish/guestfish.pod:9
20259 #, no-wrap
20260 msgid ""
20261 " guestfish [--options] [commands]\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: verbatim
20266 #. type: verbatim
20267 #: ../fish/guestfish.pod:11
20268 #, no-wrap
20269 msgid ""
20270 " guestfish\n"
20271 "\n"
20272 msgstr ""
20273
20274 # type: verbatim
20275 #. type: verbatim
20276 #: ../fish/guestfish.pod:13
20277 #, no-wrap
20278 msgid ""
20279 " guestfish [--ro|--rw] -a disk.img\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: verbatim
20284 #. type: verbatim
20285 #: ../fish/guestfish.pod:15
20286 #, no-wrap
20287 msgid ""
20288 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20289 "\n"
20290 msgstr ""
20291
20292 # type: verbatim
20293 #. type: verbatim
20294 #: ../fish/guestfish.pod:17
20295 #, no-wrap
20296 msgid ""
20297 " guestfish -d libvirt-domain\n"
20298 "\n"
20299 msgstr ""
20300
20301 # type: verbatim
20302 #. type: verbatim
20303 #: ../fish/guestfish.pod:19
20304 #, no-wrap
20305 msgid ""
20306 " guestfish [--ro|--rw] -a disk.img -i\n"
20307 "\n"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #. type: verbatim
20312 #: ../fish/guestfish.pod:21
20313 #, no-wrap
20314 msgid ""
20315 " guestfish -d libvirt-domain -i\n"
20316 "\n"
20317 msgstr ""
20318
20319 # type: =head1
20320 #. type: =head1
20321 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
20322 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:59
20323 msgid "WARNING"
20324 msgstr ""
20325
20326 # type: textblock
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:25
20329 msgid ""
20330 "Using guestfish in read/write mode on live virtual machines can be "
20331 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20332 "option to use guestfish safely if the disk image or virtual machine might be "
20333 "live."
20334 msgstr ""
20335
20336 # type: textblock
20337 #. type: textblock
20338 #: ../fish/guestfish.pod:32
20339 msgid ""
20340 "Guestfish is a shell and command-line tool for examining and modifying "
20341 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20342 "functionality of the guestfs API, see L<guestfs(3)>."
20343 msgstr ""
20344
20345 # type: textblock
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:36
20348 msgid ""
20349 "Guestfish gives you structured access to the libguestfs API, from shell "
20350 "scripts or the command line or interactively.  If you want to rescue a "
20351 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20352 "command."
20353 msgstr ""
20354
20355 # type: =head1
20356 #. type: =head1
20357 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
20358 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
20359 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:45
20360 msgid "EXAMPLES"
20361 msgstr ""
20362
20363 # type: =head2
20364 #. type: =head2
20365 #: ../fish/guestfish.pod:43
20366 msgid "As an interactive shell"
20367 msgstr ""
20368
20369 # type: verbatim
20370 #. type: verbatim
20371 #: ../fish/guestfish.pod:45
20372 #, no-wrap
20373 msgid ""
20374 " $ guestfish\n"
20375 " \n"
20376 msgstr ""
20377
20378 # type: verbatim
20379 #. type: verbatim
20380 #: ../fish/guestfish.pod:47
20381 #, no-wrap
20382 msgid ""
20383 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20384 " editing virtual machine filesystems.\n"
20385 " \n"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #. type: verbatim
20390 #: ../fish/guestfish.pod:50
20391 #, no-wrap
20392 msgid ""
20393 " Type: 'help' for a list of commands\n"
20394 "       'man' to read the manual\n"
20395 "       'quit' to quit the shell\n"
20396 " \n"
20397 msgstr ""
20398
20399 # type: verbatim
20400 #. type: verbatim
20401 #: ../fish/guestfish.pod:54
20402 #, no-wrap
20403 msgid ""
20404 " ><fs> add-ro disk.img\n"
20405 " ><fs> run\n"
20406 " ><fs> list-filesystems\n"
20407 " /dev/sda1: ext4\n"
20408 " /dev/vg_guest/lv_root: ext4\n"
20409 " /dev/vg_guest/lv_swap: swap\n"
20410 " ><fs> mount /dev/vg_guest/lv_root /\n"
20411 " ><fs> cat /etc/fstab\n"
20412 " # /etc/fstab\n"
20413 " # Created by anaconda\n"
20414 " [...]\n"
20415 " ><fs> exit\n"
20416 "\n"
20417 msgstr ""
20418
20419 # type: =head2
20420 #. type: =head2
20421 #: ../fish/guestfish.pod:67
20422 msgid "From shell scripts"
20423 msgstr ""
20424
20425 # type: textblock
20426 #. type: textblock
20427 #: ../fish/guestfish.pod:69
20428 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20429 msgstr ""
20430
20431 # type: verbatim
20432 #. type: verbatim
20433 #: ../fish/guestfish.pod:71
20434 #, no-wrap
20435 msgid ""
20436 " guestfish <<_EOF_\n"
20437 " add disk.img\n"
20438 " run\n"
20439 " mount /dev/vg_guest/lv_root /\n"
20440 " write /etc/motd \"Welcome, new users\"\n"
20441 " _EOF_\n"
20442 "\n"
20443 msgstr ""
20444
20445 # type: textblock
20446 #. type: textblock
20447 #: ../fish/guestfish.pod:78
20448 msgid "List the LVM logical volumes in a disk image:"
20449 msgstr ""
20450
20451 # type: verbatim
20452 #. type: verbatim
20453 #: ../fish/guestfish.pod:80
20454 #, no-wrap
20455 msgid ""
20456 " guestfish -a disk.img --ro <<_EOF_\n"
20457 " run\n"
20458 " lvs\n"
20459 " _EOF_\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: textblock
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:85
20466 msgid "List all the filesystems in a disk image:"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #. type: verbatim
20471 #: ../fish/guestfish.pod:87
20472 #, no-wrap
20473 msgid ""
20474 " guestfish -a disk.img --ro <<_EOF_\n"
20475 " run\n"
20476 " list-filesystems\n"
20477 " _EOF_\n"
20478 "\n"
20479 msgstr ""
20480
20481 # type: =head2
20482 #. type: =head2
20483 #: ../fish/guestfish.pod:92
20484 msgid "On one command line"
20485 msgstr ""
20486
20487 # type: textblock
20488 #. type: textblock
20489 #: ../fish/guestfish.pod:94
20490 msgid "Update C</etc/resolv.conf> in a guest:"
20491 msgstr ""
20492
20493 # type: verbatim
20494 #. type: verbatim
20495 #: ../fish/guestfish.pod:96
20496 #, no-wrap
20497 msgid ""
20498 " guestfish \\\n"
20499 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20500 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20501 "\n"
20502 msgstr ""
20503
20504 # type: textblock
20505 #. type: textblock
20506 #: ../fish/guestfish.pod:100
20507 msgid "Edit C</boot/grub/grub.conf> interactively:"
20508 msgstr ""
20509
20510 # type: verbatim
20511 #. type: verbatim
20512 #: ../fish/guestfish.pod:102
20513 #, no-wrap
20514 msgid ""
20515 " guestfish --rw --add disk.img \\\n"
20516 "   --mount /dev/vg_guest/lv_root \\\n"
20517 "   --mount /dev/sda1:/boot \\\n"
20518 "   edit /boot/grub/grub.conf\n"
20519 "\n"
20520 msgstr ""
20521
20522 # type: =head2
20523 #. type: =head2
20524 #: ../fish/guestfish.pod:107
20525 msgid "Mount disks automatically"
20526 msgstr ""
20527
20528 # type: textblock
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:109
20531 msgid ""
20532 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20533 msgstr ""
20534
20535 # type: verbatim
20536 #. type: verbatim
20537 #: ../fish/guestfish.pod:112
20538 #, no-wrap
20539 msgid ""
20540 " guestfish --ro -a disk.img -i cat /etc/group\n"
20541 "\n"
20542 msgstr ""
20543
20544 # type: verbatim
20545 #. type: verbatim
20546 #: ../fish/guestfish.pod:114
20547 #, no-wrap
20548 msgid ""
20549 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20550 "\n"
20551 msgstr ""
20552
20553 # type: textblock
20554 #. type: textblock
20555 #: ../fish/guestfish.pod:116
20556 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20557 msgstr ""
20558
20559 # type: verbatim
20560 #. type: verbatim
20561 #: ../fish/guestfish.pod:118
20562 #, no-wrap
20563 msgid ""
20564 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20565 "\n"
20566 msgstr ""
20567
20568 # type: =head2
20569 #. type: =head2
20570 #: ../fish/guestfish.pod:120
20571 msgid "As a script interpreter"
20572 msgstr ""
20573
20574 # type: textblock
20575 #. type: textblock
20576 #: ../fish/guestfish.pod:122
20577 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20578 msgstr ""
20579
20580 # type: verbatim
20581 #. type: verbatim
20582 #: ../fish/guestfish.pod:124
20583 #, no-wrap
20584 msgid ""
20585 " #!/usr/bin/guestfish -f\n"
20586 " sparse test1.img 100M\n"
20587 " run\n"
20588 " part-disk /dev/sda mbr\n"
20589 " mkfs ext2 /dev/sda1\n"
20590 "\n"
20591 msgstr ""
20592
20593 # type: =head2
20594 #. type: =head2
20595 #: ../fish/guestfish.pod:130
20596 msgid "Start with a prepared disk"
20597 msgstr ""
20598
20599 # type: textblock
20600 #. type: textblock
20601 #: ../fish/guestfish.pod:132
20602 msgid ""
20603 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20604 "single ext2-formatted partition:"
20605 msgstr ""
20606
20607 # type: verbatim
20608 #. type: verbatim
20609 #: ../fish/guestfish.pod:135
20610 #, no-wrap
20611 msgid ""
20612 " guestfish -N fs\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: textblock
20617 #. type: textblock
20618 #: ../fish/guestfish.pod:137
20619 msgid "To list what is available do:"
20620 msgstr ""
20621
20622 # type: verbatim
20623 #. type: verbatim
20624 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
20625 #, no-wrap
20626 msgid ""
20627 " guestfish -N help | less\n"
20628 "\n"
20629 msgstr ""
20630
20631 # type: =head2
20632 #. type: =head2
20633 #: ../fish/guestfish.pod:141
20634 msgid "Remote control"
20635 msgstr ""
20636
20637 # type: verbatim
20638 #. type: verbatim
20639 #: ../fish/guestfish.pod:143
20640 #, no-wrap
20641 msgid ""
20642 " eval \"`guestfish --listen`\"\n"
20643 " guestfish --remote add-ro disk.img\n"
20644 " guestfish --remote run\n"
20645 " guestfish --remote lvs\n"
20646 "\n"
20647 msgstr ""
20648
20649 # type: =head1
20650 #. type: =head1
20651 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20652 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
20653 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
20654 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:98
20655 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20656 msgid "OPTIONS"
20657 msgstr ""
20658
20659 # type: =item
20660 #. type: =item
20661 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
20662 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
20663 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
20664 #: ../tools/virt-tar.pl:106 ../tools/virt-make-fs.pl:161
20665 #: ../tools/virt-list-partitions.pl:62
20666 msgid "B<--help>"
20667 msgstr ""
20668
20669 # type: textblock
20670 #. type: textblock
20671 #: ../fish/guestfish.pod:154
20672 msgid "Displays general help on options."
20673 msgstr ""
20674
20675 # type: =item
20676 #. type: =item
20677 #: ../fish/guestfish.pod:156
20678 msgid "B<-h>"
20679 msgstr ""
20680
20681 # type: =item
20682 #. type: =item
20683 #: ../fish/guestfish.pod:158
20684 msgid "B<--cmd-help>"
20685 msgstr ""
20686
20687 # type: textblock
20688 #. type: textblock
20689 #: ../fish/guestfish.pod:160
20690 msgid "Lists all available guestfish commands."
20691 msgstr ""
20692
20693 # type: =item
20694 #. type: =item
20695 #: ../fish/guestfish.pod:162
20696 msgid "B<-h cmd>"
20697 msgstr ""
20698
20699 # type: =item
20700 #. type: =item
20701 #: ../fish/guestfish.pod:164
20702 msgid "B<--cmd-help cmd>"
20703 msgstr ""
20704
20705 # type: textblock
20706 #. type: textblock
20707 #: ../fish/guestfish.pod:166
20708 msgid "Displays detailed help on a single command C<cmd>."
20709 msgstr ""
20710
20711 # type: =item
20712 #. type: =item
20713 #: ../fish/guestfish.pod:168
20714 msgid "B<-a image>"
20715 msgstr ""
20716
20717 # type: =item
20718 #. type: =item
20719 #: ../fish/guestfish.pod:170
20720 msgid "B<--add image>"
20721 msgstr ""
20722
20723 # type: textblock
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:172
20726 msgid "Add a block device or virtual machine image to the shell."
20727 msgstr ""
20728
20729 # type: textblock
20730 #. type: textblock
20731 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
20732 msgid ""
20733 "The format of the disk image is auto-detected.  To override this and force a "
20734 "particular format use the I<--format=..> option."
20735 msgstr ""
20736
20737 # type: textblock
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:177
20740 msgid ""
20741 "Using this flag is mostly equivalent to using the C<add> command, with "
20742 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20743 "the I<--format:...> flag was given."
20744 msgstr ""
20745
20746 # type: =item
20747 #. type: =item
20748 #: ../fish/guestfish.pod:181
20749 msgid "B<-c URI>"
20750 msgstr ""
20751
20752 # type: =item
20753 #. type: =item
20754 #: ../fish/guestfish.pod:183
20755 msgid "B<--connect URI>"
20756 msgstr ""
20757
20758 # type: textblock
20759 #. type: textblock
20760 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
20761 msgid ""
20762 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20763 "URI to use.  The default is to use the default libvirt connection."
20764 msgstr ""
20765
20766 # type: =item
20767 #. type: =item
20768 #: ../fish/guestfish.pod:189
20769 msgid "B<--csh>"
20770 msgstr ""
20771
20772 # type: textblock
20773 #. type: textblock
20774 #: ../fish/guestfish.pod:191
20775 msgid ""
20776 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20777 "section L</REMOTE CONTROL AND CSH> below."
20778 msgstr ""
20779
20780 # type: =item
20781 #. type: =item
20782 #: ../fish/guestfish.pod:194
20783 msgid "B<-d libvirt-domain>"
20784 msgstr ""
20785
20786 # type: =item
20787 #. type: =item
20788 #: ../fish/guestfish.pod:196
20789 msgid "B<--domain libvirt-domain>"
20790 msgstr ""
20791
20792 # type: textblock
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
20795 msgid ""
20796 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20797 "used, then any libvirt domain can be used.  However in write mode, only "
20798 "libvirt domains which are shut down can be named here."
20799 msgstr ""
20800
20801 # type: textblock
20802 #. type: textblock
20803 #: ../fish/guestfish.pod:202
20804 msgid ""
20805 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20806 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20807 "if the I<--format:...> flag was given."
20808 msgstr ""
20809
20810 # type: =item
20811 #. type: =item
20812 #: ../fish/guestfish.pod:206
20813 msgid "B<-D>"
20814 msgstr ""
20815
20816 # type: =item
20817 #. type: =item
20818 #: ../fish/guestfish.pod:208
20819 msgid "B<--no-dest-paths>"
20820 msgstr ""
20821
20822 # type: textblock
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:210
20825 msgid ""
20826 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20827 "to hit the tab key to complete paths on the guest filesystem, but this "
20828 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20829 "allow this feature to be disabled."
20830 msgstr ""
20831
20832 # type: =item
20833 #. type: =item
20834 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
20835 msgid "B<--echo-keys>"
20836 msgstr ""
20837
20838 # type: textblock
20839 #. type: textblock
20840 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
20841 msgid ""
20842 "When prompting for keys and passphrases, guestfish normally turns echoing "
20843 "off so you cannot see what you are typing.  If you are not worried about "
20844 "Tempest attacks and there is no one else in the room you can specify this "
20845 "flag to see what you are typing."
20846 msgstr ""
20847
20848 # type: =item
20849 #. type: =item
20850 #: ../fish/guestfish.pod:222
20851 msgid "B<-f file>"
20852 msgstr ""
20853
20854 # type: =item
20855 #. type: =item
20856 #: ../fish/guestfish.pod:224
20857 msgid "B<--file file>"
20858 msgstr ""
20859
20860 # type: textblock
20861 #. type: textblock
20862 #: ../fish/guestfish.pod:226
20863 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20864 msgstr ""
20865
20866 # type: verbatim
20867 #. type: verbatim
20868 #: ../fish/guestfish.pod:229
20869 #, no-wrap
20870 msgid ""
20871 " #!/usr/bin/guestfish -f\n"
20872 "\n"
20873 msgstr ""
20874
20875 # type: =item
20876 #. type: =item
20877 #: ../fish/guestfish.pod:231
20878 msgid "B<--format=raw|qcow2|..>"
20879 msgstr ""
20880
20881 # type: =item
20882 #. type: =item
20883 #: ../fish/guestfish.pod:233
20884 msgid "B<--format>"
20885 msgstr ""
20886
20887 # type: textblock
20888 #. type: textblock
20889 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
20890 msgid ""
20891 "The default for the I<-a> option is to auto-detect the format of the disk "
20892 "image.  Using this forces the disk format for I<-a> options which follow on "
20893 "the command line.  Using I<--format> with no argument switches back to auto-"
20894 "detection for subsequent I<-a> options."
20895 msgstr ""
20896
20897 # type: verbatim
20898 #. type: verbatim
20899 #: ../fish/guestfish.pod:242
20900 #, no-wrap
20901 msgid ""
20902 " guestfish --format=raw -a disk.img\n"
20903 "\n"
20904 msgstr ""
20905
20906 # type: textblock
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:244
20909 msgid "forces raw format (no auto-detection) for C<disk.img>."
20910 msgstr ""
20911
20912 # type: verbatim
20913 #. type: verbatim
20914 #: ../fish/guestfish.pod:246
20915 #, no-wrap
20916 msgid ""
20917 " guestfish --format=raw -a disk.img --format -a another.img\n"
20918 "\n"
20919 msgstr ""
20920
20921 # type: textblock
20922 #. type: textblock
20923 #: ../fish/guestfish.pod:248
20924 msgid ""
20925 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
20926 "detection for C<another.img>."
20927 msgstr ""
20928
20929 # type: textblock
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:251
20932 msgid ""
20933 "If you have untrusted raw-format guest disk images, you should use this "
20934 "option to specify the disk format.  This avoids a possible security problem "
20935 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20936 msgstr ""
20937
20938 # type: =item
20939 #. type: =item
20940 #: ../fish/guestfish.pod:256
20941 msgid "B<-i>"
20942 msgstr ""
20943
20944 # type: =item
20945 #. type: =item
20946 #: ../fish/guestfish.pod:258
20947 msgid "B<--inspector>"
20948 msgstr ""
20949
20950 # type: textblock
20951 #. type: textblock
20952 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
20953 msgid ""
20954 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20955 "system and mount filesystems as they would be mounted on the real virtual "
20956 "machine."
20957 msgstr ""
20958
20959 # type: textblock
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:264
20962 msgid "Typical usage is either:"
20963 msgstr ""
20964
20965 # type: verbatim
20966 #. type: verbatim
20967 #: ../fish/guestfish.pod:266
20968 #, no-wrap
20969 msgid ""
20970 " guestfish -d myguest -i\n"
20971 "\n"
20972 msgstr ""
20973
20974 # type: textblock
20975 #. type: textblock
20976 #: ../fish/guestfish.pod:268
20977 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20978 msgstr ""
20979
20980 # type: verbatim
20981 #. type: verbatim
20982 #: ../fish/guestfish.pod:270
20983 #, no-wrap
20984 msgid ""
20985 " guestfish --ro -d myguest -i\n"
20986 "\n"
20987 msgstr ""
20988
20989 # type: textblock
20990 #. type: textblock
20991 #: ../fish/guestfish.pod:272
20992 msgid "(for active domains, readonly), or specify the block device directly:"
20993 msgstr ""
20994
20995 # type: verbatim
20996 #. type: verbatim
20997 #: ../fish/guestfish.pod:274
20998 #, no-wrap
20999 msgid ""
21000 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: textblock
21005 #. type: textblock
21006 #: ../fish/guestfish.pod:276
21007 msgid ""
21008 "Note that the command line syntax changed slightly over older versions of "
21009 "guestfish.  You can still use the old syntax:"
21010 msgstr ""
21011
21012 # type: verbatim
21013 #. type: verbatim
21014 #: ../fish/guestfish.pod:279
21015 #, no-wrap
21016 msgid ""
21017 " guestfish [--ro] -i disk.img\n"
21018 "\n"
21019 msgstr ""
21020
21021 # type: verbatim
21022 #. type: verbatim
21023 #: ../fish/guestfish.pod:281
21024 #, no-wrap
21025 msgid ""
21026 " guestfish [--ro] -i libvirt-domain\n"
21027 "\n"
21028 msgstr ""
21029
21030 # type: textblock
21031 #. type: textblock
21032 #: ../fish/guestfish.pod:283
21033 msgid ""
21034 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21035 "then using other commands to mount the filesystems that were found."
21036 msgstr ""
21037
21038 # type: =item
21039 #. type: =item
21040 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21041 msgid "B<--keys-from-stdin>"
21042 msgstr ""
21043
21044 # type: textblock
21045 #. type: textblock
21046 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21047 msgid ""
21048 "Read key or passphrase parameters from stdin.  The default is to try to read "
21049 "passphrases from the user by opening C</dev/tty>."
21050 msgstr ""
21051
21052 # type: =item
21053 #. type: =item
21054 #: ../fish/guestfish.pod:292
21055 msgid "B<--listen>"
21056 msgstr ""
21057
21058 # type: textblock
21059 #. type: textblock
21060 #: ../fish/guestfish.pod:294
21061 msgid ""
21062 "Fork into the background and listen for remote commands.  See section L</"
21063 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21064 msgstr ""
21065
21066 # type: =item
21067 #. type: =item
21068 #: ../fish/guestfish.pod:297
21069 msgid "B<-m dev[:mountpoint]>"
21070 msgstr ""
21071
21072 # type: =item
21073 #. type: =item
21074 #: ../fish/guestfish.pod:299
21075 msgid "B<--mount dev[:mountpoint]>"
21076 msgstr ""
21077
21078 # type: textblock
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:301
21081 msgid "Mount the named partition or logical volume on the given mountpoint."
21082 msgstr ""
21083
21084 # type: textblock
21085 #. type: textblock
21086 #: ../fish/guestfish.pod:303
21087 msgid "If the mountpoint is omitted, it defaults to C</>."
21088 msgstr ""
21089
21090 # type: textblock
21091 #. type: textblock
21092 #: ../fish/guestfish.pod:305
21093 msgid "You have to mount something on C</> before most commands will work."
21094 msgstr ""
21095
21096 # type: textblock
21097 #. type: textblock
21098 #: ../fish/guestfish.pod:307
21099 msgid ""
21100 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21101 "launched."
21102 msgstr ""
21103
21104 # type: textblock
21105 #. type: textblock
21106 #: ../fish/guestfish.pod:310
21107 msgid ""
21108 "If you don't know what filesystems a disk image contains, you can either run "
21109 "guestfish without this option, then list the partitions, filesystems and LVs "
21110 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21111 "commands), or you can use the L<virt-filesystems(1)> program."
21112 msgstr ""
21113
21114 # type: textblock
21115 #. type: textblock
21116 #: ../fish/guestfish.pod:316
21117 msgid ""
21118 "Using this flag is mostly equivalent to using the C<mount-options> command "
21119 "or the C<mount-ro> command if the I<--ro> flag was given."
21120 msgstr ""
21121
21122 # type: =item
21123 #. type: =item
21124 #: ../fish/guestfish.pod:319
21125 msgid "B<-n>"
21126 msgstr ""
21127
21128 # type: =item
21129 #. type: =item
21130 #: ../fish/guestfish.pod:321
21131 msgid "B<--no-sync>"
21132 msgstr ""
21133
21134 # type: textblock
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:323
21137 msgid ""
21138 "Disable autosync.  This is enabled by default.  See the discussion of "
21139 "autosync in the L<guestfs(3)> manpage."
21140 msgstr ""
21141
21142 # type: =item
21143 #. type: =item
21144 #: ../fish/guestfish.pod:326
21145 msgid "B<-N type>"
21146 msgstr ""
21147
21148 # type: =item
21149 #. type: =item
21150 #: ../fish/guestfish.pod:328
21151 msgid "B<--new type>"
21152 msgstr ""
21153
21154 # type: =item
21155 #. type: =item
21156 #: ../fish/guestfish.pod:330
21157 msgid "B<-N help>"
21158 msgstr ""
21159
21160 # type: textblock
21161 #. type: textblock
21162 #: ../fish/guestfish.pod:332
21163 msgid ""
21164 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
21165 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21166 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21167 "IMAGES> below."
21168 msgstr ""
21169
21170 # type: =item
21171 #. type: =item
21172 #: ../fish/guestfish.pod:337
21173 msgid "B<--progress-bars>"
21174 msgstr ""
21175
21176 # type: textblock
21177 #. type: textblock
21178 #: ../fish/guestfish.pod:339
21179 msgid "Enable progress bars, even when guestfish is used non-interactively."
21180 msgstr ""
21181
21182 # type: textblock
21183 #. type: textblock
21184 #: ../fish/guestfish.pod:341
21185 msgid ""
21186 "Progress bars are enabled by default when guestfish is used as an "
21187 "interactive shell."
21188 msgstr ""
21189
21190 # type: =item
21191 #. type: =item
21192 #: ../fish/guestfish.pod:344
21193 msgid "B<--no-progress-bars>"
21194 msgstr ""
21195
21196 # type: textblock
21197 #. type: textblock
21198 #: ../fish/guestfish.pod:346
21199 msgid "Disable progress bars."
21200 msgstr ""
21201
21202 # type: =item
21203 #. type: =item
21204 #: ../fish/guestfish.pod:348
21205 msgid "B<--remote[=pid]>"
21206 msgstr ""
21207
21208 # type: textblock
21209 #. type: textblock
21210 #: ../fish/guestfish.pod:350
21211 msgid ""
21212 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21213 "CONTROL GUESTFISH OVER A SOCKET> below."
21214 msgstr ""
21215
21216 # type: =item
21217 #. type: =item
21218 #: ../fish/guestfish.pod:353
21219 msgid "B<-r>"
21220 msgstr ""
21221
21222 # type: =item
21223 #. type: =item
21224 #: ../fish/guestfish.pod:355
21225 msgid "B<--ro>"
21226 msgstr ""
21227
21228 # type: textblock
21229 #. type: textblock
21230 #: ../fish/guestfish.pod:357
21231 msgid ""
21232 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21233 "mounts are done read-only."
21234 msgstr ""
21235
21236 # type: textblock
21237 #. type: textblock
21238 #: ../fish/guestfish.pod:360
21239 msgid ""
21240 "The option must always be used if the disk image or virtual machine might be "
21241 "running, and is generally recommended in cases where you don't need write "
21242 "access to the disk."
21243 msgstr ""
21244
21245 # type: textblock
21246 #. type: textblock
21247 #: ../fish/guestfish.pod:364
21248 msgid ""
21249 "Note that prepared disk images created with I<-N> are not affected by this "
21250 "option.  Also commands like C<add> are not affected - you have to specify "
21251 "the C<readonly:true> option explicitly if you need it."
21252 msgstr ""
21253
21254 # type: textblock
21255 #. type: textblock
21256 #: ../fish/guestfish.pod:368
21257 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21258 msgstr ""
21259
21260 # type: =item
21261 #. type: =item
21262 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
21263 msgid "B<--selinux>"
21264 msgstr ""
21265
21266 # type: textblock
21267 #. type: textblock
21268 #: ../fish/guestfish.pod:372
21269 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21270 msgstr ""
21271
21272 # type: =item
21273 #. type: =item
21274 #: ../fish/guestfish.pod:374
21275 msgid "B<-v>"
21276 msgstr ""
21277
21278 # type: =item
21279 #. type: =item
21280 #: ../fish/guestfish.pod:376
21281 msgid "B<--verbose>"
21282 msgstr ""
21283
21284 # type: textblock
21285 #. type: textblock
21286 #: ../fish/guestfish.pod:378
21287 msgid ""
21288 "Enable very verbose messages.  This is particularly useful if you find a bug."
21289 msgstr ""
21290
21291 # type: =item
21292 #. type: =item
21293 #: ../fish/guestfish.pod:381
21294 msgid "B<-V>"
21295 msgstr ""
21296
21297 # type: =item
21298 #. type: =item
21299 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
21300 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
21301 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:114
21302 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21303 msgid "B<--version>"
21304 msgstr ""
21305
21306 # type: textblock
21307 #. type: textblock
21308 #: ../fish/guestfish.pod:385
21309 msgid "Display the guestfish / libguestfs version number and exit."
21310 msgstr ""
21311
21312 # type: =item
21313 #. type: =item
21314 #: ../fish/guestfish.pod:387
21315 msgid "B<-w>"
21316 msgstr ""
21317
21318 # type: =item
21319 #. type: =item
21320 #: ../fish/guestfish.pod:389
21321 msgid "B<--rw>"
21322 msgstr ""
21323
21324 # type: textblock
21325 #. type: textblock
21326 #: ../fish/guestfish.pod:391
21327 msgid ""
21328 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
21329 "WRITE> below."
21330 msgstr ""
21331
21332 # type: =item
21333 #. type: =item
21334 #: ../fish/guestfish.pod:394
21335 msgid "B<-x>"
21336 msgstr ""
21337
21338 # type: textblock
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:396
21341 msgid "Echo each command before executing it."
21342 msgstr ""
21343
21344 # type: =head1
21345 #. type: =head1
21346 #: ../fish/guestfish.pod:400
21347 msgid "COMMANDS ON COMMAND LINE"
21348 msgstr ""
21349
21350 # type: textblock
21351 #. type: textblock
21352 #: ../fish/guestfish.pod:402
21353 msgid ""
21354 "Any additional (non-option) arguments are treated as commands to execute."
21355 msgstr ""
21356
21357 # type: textblock
21358 #. type: textblock
21359 #: ../fish/guestfish.pod:405
21360 msgid ""
21361 "Commands to execute should be separated by a colon (C<:>), where the colon "
21362 "is a separate parameter.  Thus:"
21363 msgstr ""
21364
21365 # type: verbatim
21366 #. type: verbatim
21367 #: ../fish/guestfish.pod:408
21368 #, no-wrap
21369 msgid ""
21370 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21371 "\n"
21372 msgstr ""
21373
21374 # type: textblock
21375 #. type: textblock
21376 #: ../fish/guestfish.pod:410
21377 msgid ""
21378 "If there are no additional arguments, then we enter a shell, either an "
21379 "interactive shell with a prompt (if the input is a terminal) or a non-"
21380 "interactive shell."
21381 msgstr ""
21382
21383 # type: textblock
21384 #. type: textblock
21385 #: ../fish/guestfish.pod:414
21386 msgid ""
21387 "In either command line mode or non-interactive shell, the first command that "
21388 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21389 "prompt) if a command fails, you can continue to enter commands."
21390 msgstr ""
21391
21392 # type: =head1
21393 #. type: =head1
21394 #: ../fish/guestfish.pod:419
21395 msgid "USING launch (OR run)"
21396 msgstr ""
21397
21398 # type: textblock
21399 #. type: textblock
21400 #: ../fish/guestfish.pod:421
21401 msgid ""
21402 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21403 "then launch it, then mount any disks you need, and finally issue actions/"
21404 "commands.  So the general order of the day is:"
21405 msgstr ""
21406
21407 # type: textblock
21408 #. type: textblock
21409 #: ../fish/guestfish.pod:429
21410 msgid "add or -a/--add"
21411 msgstr ""
21412
21413 # type: textblock
21414 #. type: textblock
21415 #: ../fish/guestfish.pod:433
21416 msgid "launch (aka run)"
21417 msgstr ""
21418
21419 # type: textblock
21420 #. type: textblock
21421 #: ../fish/guestfish.pod:437
21422 msgid "mount or -m/--mount"
21423 msgstr ""
21424
21425 # type: textblock
21426 #. type: textblock
21427 #: ../fish/guestfish.pod:441
21428 msgid "any other commands"
21429 msgstr ""
21430
21431 # type: textblock
21432 #. type: textblock
21433 #: ../fish/guestfish.pod:445
21434 msgid ""
21435 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21436 "guest before mounting or performing any other commands."
21437 msgstr ""
21438
21439 # type: textblock
21440 #. type: textblock
21441 #: ../fish/guestfish.pod:448
21442 msgid ""
21443 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21444 "I<--new> options were given then C<run> is done automatically, simply "
21445 "because guestfish can't perform the action you asked for without doing this."
21446 msgstr ""
21447
21448 # type: =head1
21449 #. type: =head1
21450 #: ../fish/guestfish.pod:453
21451 msgid "OPENING DISKS FOR READ AND WRITE"
21452 msgstr ""
21453
21454 # type: textblock
21455 #. type: textblock
21456 #: ../fish/guestfish.pod:455
21457 msgid ""
21458 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
21459 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
21460 "open disk images read-only or for writing."
21461 msgstr ""
21462
21463 # type: textblock
21464 #. type: textblock
21465 #: ../fish/guestfish.pod:459
21466 msgid ""
21467 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
21468 "disk images supplied on the command line for write.  To open a disk image "
21469 "read-only you have to do I<-a image --ro>."
21470 msgstr ""
21471
21472 # type: textblock
21473 #. type: textblock
21474 #: ../fish/guestfish.pod:463
21475 msgid ""
21476 "This matters: If you accidentally open a live VM disk image writable then "
21477 "you will cause irreversible disk corruption."
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../fish/guestfish.pod:466
21482 msgid ""
21483 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
21484 "images will be opened read-only.  You will have to either specify "
21485 "I<guestfish --rw> or change a configuration file in order to get write "
21486 "access for disk images specified by those other command line options."
21487 msgstr ""
21488
21489 # type: textblock
21490 #. type: textblock
21491 #: ../fish/guestfish.pod:471
21492 msgid ""
21493 "This version of guestfish has a I<--rw> option which does nothing (it is "
21494 "already the default).  However it is highly recommended that you use this "
21495 "option to indicate that guestfish needs write access, and to prepare your "
21496 "scripts for the day when this option will be required for write access."
21497 msgstr ""
21498
21499 # type: textblock
21500 #. type: textblock
21501 #: ../fish/guestfish.pod:477
21502 msgid ""
21503 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21504 "other libguestfs program apart from guestfish and guestmount."
21505 msgstr ""
21506
21507 # type: =head1
21508 #. type: =head1
21509 #: ../fish/guestfish.pod:480
21510 msgid "QUOTING"
21511 msgstr ""
21512
21513 # type: textblock
21514 #. type: textblock
21515 #: ../fish/guestfish.pod:482
21516 msgid ""
21517 "You can quote ordinary parameters using either single or double quotes.  For "
21518 "example:"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #. type: verbatim
21523 #: ../fish/guestfish.pod:485
21524 #, no-wrap
21525 msgid ""
21526 " add \"file with a space.img\"\n"
21527 "\n"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #. type: verbatim
21532 #: ../fish/guestfish.pod:487
21533 #, no-wrap
21534 msgid ""
21535 " rm '/file name'\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: verbatim
21540 #. type: verbatim
21541 #: ../fish/guestfish.pod:489
21542 #, no-wrap
21543 msgid ""
21544 " rm '/\"'\n"
21545 "\n"
21546 msgstr ""
21547
21548 # type: textblock
21549 #. type: textblock
21550 #: ../fish/guestfish.pod:491
21551 msgid ""
21552 "A few commands require a list of strings to be passed.  For these, use a "
21553 "whitespace-separated list, enclosed in quotes.  Strings containing "
21554 "whitespace to be passed through must be enclosed in single quotes.  A "
21555 "literal single quote must be escaped with a backslash."
21556 msgstr ""
21557
21558 # type: verbatim
21559 #. type: verbatim
21560 #: ../fish/guestfish.pod:496
21561 #, no-wrap
21562 msgid ""
21563 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21564 " command \"/bin/echo 'foo      bar'\"\n"
21565 " command \"/bin/echo \\'foo\\'\"\n"
21566 "\n"
21567 msgstr ""
21568
21569 # type: =head1
21570 #. type: =head1
21571 #: ../fish/guestfish.pod:500
21572 msgid "OPTIONAL ARGUMENTS"
21573 msgstr ""
21574
21575 # type: textblock
21576 #. type: textblock
21577 #: ../fish/guestfish.pod:502
21578 msgid ""
21579 "Some commands take optional arguments.  These arguments appear in this "
21580 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21581 msgstr ""
21582
21583 # type: verbatim
21584 #. type: verbatim
21585 #: ../fish/guestfish.pod:506
21586 #, no-wrap
21587 msgid ""
21588 " add-drive-opts filename\n"
21589 "\n"
21590 msgstr ""
21591
21592 # type: verbatim
21593 #. type: verbatim
21594 #: ../fish/guestfish.pod:508
21595 #, no-wrap
21596 msgid ""
21597 " add-drive-opts filename readonly:true\n"
21598 "\n"
21599 msgstr ""
21600
21601 # type: verbatim
21602 #. type: verbatim
21603 #: ../fish/guestfish.pod:510
21604 #, no-wrap
21605 msgid ""
21606 " add-drive-opts filename format:qcow2 readonly:false\n"
21607 "\n"
21608 msgstr ""
21609
21610 # type: textblock
21611 #. type: textblock
21612 #: ../fish/guestfish.pod:512
21613 msgid ""
21614 "Each optional argument can appear at most once.  All optional arguments must "
21615 "appear after the required ones."
21616 msgstr ""
21617
21618 # type: =head1
21619 #. type: =head1
21620 #: ../fish/guestfish.pod:515
21621 msgid "NUMBERS"
21622 msgstr ""
21623
21624 # type: textblock
21625 #. type: textblock
21626 #: ../fish/guestfish.pod:517
21627 msgid ""
21628 "This section applies to all commands which can take integers as parameters."
21629 msgstr ""
21630
21631 # type: =head2
21632 #. type: =head2
21633 #: ../fish/guestfish.pod:520
21634 msgid "SIZE SUFFIX"
21635 msgstr ""
21636
21637 # type: textblock
21638 #. type: textblock
21639 #: ../fish/guestfish.pod:522
21640 msgid ""
21641 "When the command takes a parameter measured in bytes, you can use one of the "
21642 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21643 msgstr ""
21644
21645 # type: =item
21646 #. type: =item
21647 #: ../fish/guestfish.pod:528
21648 msgid "B<k> or B<K> or B<KiB>"
21649 msgstr ""
21650
21651 # type: textblock
21652 #. type: textblock
21653 #: ../fish/guestfish.pod:530
21654 msgid "The size in kilobytes (multiplied by 1024)."
21655 msgstr ""
21656
21657 # type: =item
21658 #. type: =item
21659 #: ../fish/guestfish.pod:532
21660 msgid "B<KB>"
21661 msgstr ""
21662
21663 # type: textblock
21664 #. type: textblock
21665 #: ../fish/guestfish.pod:534
21666 msgid "The size in SI 1000 byte units."
21667 msgstr ""
21668
21669 # type: =item
21670 #. type: =item
21671 #: ../fish/guestfish.pod:536
21672 msgid "B<M> or B<MiB>"
21673 msgstr ""
21674
21675 # type: textblock
21676 #. type: textblock
21677 #: ../fish/guestfish.pod:538
21678 msgid "The size in megabytes (multiplied by 1048576)."
21679 msgstr ""
21680
21681 # type: =item
21682 #. type: =item
21683 #: ../fish/guestfish.pod:540
21684 msgid "B<MB>"
21685 msgstr ""
21686
21687 # type: textblock
21688 #. type: textblock
21689 #: ../fish/guestfish.pod:542
21690 msgid "The size in SI 1000000 byte units."
21691 msgstr ""
21692
21693 # type: =item
21694 #. type: =item
21695 #: ../fish/guestfish.pod:544
21696 msgid "B<G> or B<GiB>"
21697 msgstr ""
21698
21699 # type: textblock
21700 #. type: textblock
21701 #: ../fish/guestfish.pod:546
21702 msgid "The size in gigabytes (multiplied by 2**30)."
21703 msgstr ""
21704
21705 # type: =item
21706 #. type: =item
21707 #: ../fish/guestfish.pod:548
21708 msgid "B<GB>"
21709 msgstr ""
21710
21711 # type: textblock
21712 #. type: textblock
21713 #: ../fish/guestfish.pod:550
21714 msgid "The size in SI 10**9 byte units."
21715 msgstr ""
21716
21717 # type: =item
21718 #. type: =item
21719 #: ../fish/guestfish.pod:552
21720 msgid "B<T> or B<TiB>"
21721 msgstr ""
21722
21723 # type: textblock
21724 #. type: textblock
21725 #: ../fish/guestfish.pod:554
21726 msgid "The size in terabytes (multiplied by 2**40)."
21727 msgstr ""
21728
21729 # type: =item
21730 #. type: =item
21731 #: ../fish/guestfish.pod:556
21732 msgid "B<TB>"
21733 msgstr ""
21734
21735 # type: textblock
21736 #. type: textblock
21737 #: ../fish/guestfish.pod:558
21738 msgid "The size in SI 10**12 byte units."
21739 msgstr ""
21740
21741 # type: =item
21742 #. type: =item
21743 #: ../fish/guestfish.pod:560
21744 msgid "B<P> or B<PiB>"
21745 msgstr ""
21746
21747 # type: textblock
21748 #. type: textblock
21749 #: ../fish/guestfish.pod:562
21750 msgid "The size in petabytes (multiplied by 2**50)."
21751 msgstr ""
21752
21753 # type: =item
21754 #. type: =item
21755 #: ../fish/guestfish.pod:564
21756 msgid "B<PB>"
21757 msgstr ""
21758
21759 # type: textblock
21760 #. type: textblock
21761 #: ../fish/guestfish.pod:566
21762 msgid "The size in SI 10**15 byte units."
21763 msgstr ""
21764
21765 # type: =item
21766 #. type: =item
21767 #: ../fish/guestfish.pod:568
21768 msgid "B<E> or B<EiB>"
21769 msgstr ""
21770
21771 # type: textblock
21772 #. type: textblock
21773 #: ../fish/guestfish.pod:570
21774 msgid "The size in exabytes (multiplied by 2**60)."
21775 msgstr ""
21776
21777 # type: =item
21778 #. type: =item
21779 #: ../fish/guestfish.pod:572
21780 msgid "B<EB>"
21781 msgstr ""
21782
21783 # type: textblock
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:574
21786 msgid "The size in SI 10**18 byte units."
21787 msgstr ""
21788
21789 # type: =item
21790 #. type: =item
21791 #: ../fish/guestfish.pod:576
21792 msgid "B<Z> or B<ZiB>"
21793 msgstr ""
21794
21795 # type: textblock
21796 #. type: textblock
21797 #: ../fish/guestfish.pod:578
21798 msgid "The size in zettabytes (multiplied by 2**70)."
21799 msgstr ""
21800
21801 # type: =item
21802 #. type: =item
21803 #: ../fish/guestfish.pod:580
21804 msgid "B<ZB>"
21805 msgstr ""
21806
21807 # type: textblock
21808 #. type: textblock
21809 #: ../fish/guestfish.pod:582
21810 msgid "The size in SI 10**21 byte units."
21811 msgstr ""
21812
21813 # type: =item
21814 #. type: =item
21815 #: ../fish/guestfish.pod:584
21816 msgid "B<Y> or B<YiB>"
21817 msgstr ""
21818
21819 # type: textblock
21820 #. type: textblock
21821 #: ../fish/guestfish.pod:586
21822 msgid "The size in yottabytes (multiplied by 2**80)."
21823 msgstr ""
21824
21825 # type: =item
21826 #. type: =item
21827 #: ../fish/guestfish.pod:588
21828 msgid "B<YB>"
21829 msgstr ""
21830
21831 # type: textblock
21832 #. type: textblock
21833 #: ../fish/guestfish.pod:590
21834 msgid "The size in SI 10**24 byte units."
21835 msgstr ""
21836
21837 # type: verbatim
21838 #. type: verbatim
21839 #: ../fish/guestfish.pod:596
21840 #, no-wrap
21841 msgid ""
21842 " truncate-size /file 1G\n"
21843 "\n"
21844 msgstr ""
21845
21846 # type: textblock
21847 #. type: textblock
21848 #: ../fish/guestfish.pod:598
21849 msgid "would truncate the file to 1 gigabyte."
21850 msgstr ""
21851
21852 # type: textblock
21853 #. type: textblock
21854 #: ../fish/guestfish.pod:600
21855 msgid ""
21856 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21857 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21858 "suffix will probably not do what you expect."
21859 msgstr ""
21860
21861 # type: =head2
21862 #. type: =head2
21863 #: ../fish/guestfish.pod:604
21864 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21865 msgstr ""
21866
21867 # type: textblock
21868 #. type: textblock
21869 #: ../fish/guestfish.pod:606
21870 msgid ""
21871 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21872 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21873 msgstr ""
21874
21875 # type: verbatim
21876 #. type: verbatim
21877 #: ../fish/guestfish.pod:609
21878 #, no-wrap
21879 msgid ""
21880 " 1234      decimal number 1234\n"
21881 " 02322     octal number, equivalent to decimal 1234\n"
21882 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21883 "\n"
21884 msgstr ""
21885
21886 # type: textblock
21887 #. type: textblock
21888 #: ../fish/guestfish.pod:613
21889 msgid ""
21890 "When using the C<chmod> command, you almost always want to specify an octal "
21891 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21892 "L<chmod(1)> program):"
21893 msgstr ""
21894
21895 # type: verbatim
21896 #. type: verbatim
21897 #: ../fish/guestfish.pod:617
21898 #, no-wrap
21899 msgid ""
21900 " chmod 0777 /public  # OK\n"
21901 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: textblock
21906 #. type: textblock
21907 #: ../fish/guestfish.pod:620
21908 msgid ""
21909 "Commands that return numbers usually print them in decimal, but some "
21910 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21911 "octal, preceeded by C<0>)."
21912 msgstr ""
21913
21914 # type: =head1
21915 #. type: =head1
21916 #: ../fish/guestfish.pod:624
21917 msgid "WILDCARDS AND GLOBBING"
21918 msgstr ""
21919
21920 # type: textblock
21921 #. type: textblock
21922 #: ../fish/guestfish.pod:626
21923 msgid ""
21924 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21925 "(globbing) by default.  So for example the following will not do what you "
21926 "expect:"
21927 msgstr ""
21928
21929 # type: verbatim
21930 #. type: verbatim
21931 #: ../fish/guestfish.pod:630
21932 #, no-wrap
21933 msgid ""
21934 " rm-rf /home/*\n"
21935 "\n"
21936 msgstr ""
21937
21938 # type: textblock
21939 #. type: textblock
21940 #: ../fish/guestfish.pod:632
21941 msgid ""
21942 "Assuming you don't have a directory called literally C</home/*> then the "
21943 "above command will return an error."
21944 msgstr ""
21945
21946 # type: textblock
21947 #. type: textblock
21948 #: ../fish/guestfish.pod:635
21949 msgid "To perform wildcard expansion, use the C<glob> command."
21950 msgstr ""
21951
21952 # type: verbatim
21953 #. type: verbatim
21954 #: ../fish/guestfish.pod:637
21955 #, no-wrap
21956 msgid ""
21957 " glob rm-rf /home/*\n"
21958 "\n"
21959 msgstr ""
21960
21961 # type: textblock
21962 #. type: textblock
21963 #: ../fish/guestfish.pod:639
21964 msgid ""
21965 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21966 "many times), equivalent to:"
21967 msgstr ""
21968
21969 # type: verbatim
21970 #. type: verbatim
21971 #: ../fish/guestfish.pod:642
21972 #, no-wrap
21973 msgid ""
21974 " rm-rf /home/jim\n"
21975 " rm-rf /home/joe\n"
21976 " rm-rf /home/mary\n"
21977 "\n"
21978 msgstr ""
21979
21980 # type: textblock
21981 #. type: textblock
21982 #: ../fish/guestfish.pod:646
21983 msgid "C<glob> only works on simple guest paths and not on device names."
21984 msgstr ""
21985
21986 # type: textblock
21987 #. type: textblock
21988 #: ../fish/guestfish.pod:648
21989 msgid ""
21990 "If you have several parameters, each containing a wildcard, then glob will "
21991 "perform a Cartesian product."
21992 msgstr ""
21993
21994 # type: =head1
21995 #. type: =head1
21996 #: ../fish/guestfish.pod:651
21997 msgid "COMMENTS"
21998 msgstr ""
21999
22000 # type: textblock
22001 #. type: textblock
22002 #: ../fish/guestfish.pod:653
22003 msgid ""
22004 "Any line which starts with a I<#> character is treated as a comment and "
22005 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22006 "a command.  For example:"
22007 msgstr ""
22008
22009 # type: verbatim
22010 #. type: verbatim
22011 #: ../fish/guestfish.pod:657
22012 #, no-wrap
22013 msgid ""
22014 " # this is a comment\n"
22015 "         # this is a comment\n"
22016 " foo # NOT a comment\n"
22017 "\n"
22018 msgstr ""
22019
22020 # type: textblock
22021 #. type: textblock
22022 #: ../fish/guestfish.pod:661
22023 msgid "Blank lines are also ignored."
22024 msgstr ""
22025
22026 # type: =head1
22027 #. type: =head1
22028 #: ../fish/guestfish.pod:663
22029 msgid "RUNNING COMMANDS LOCALLY"
22030 msgstr ""
22031
22032 # type: textblock
22033 #. type: textblock
22034 #: ../fish/guestfish.pod:665
22035 msgid ""
22036 "Any line which starts with a I<!> character is treated as a command sent to "
22037 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22038 msgstr ""
22039
22040 # type: verbatim
22041 #. type: verbatim
22042 #: ../fish/guestfish.pod:669
22043 #, no-wrap
22044 msgid ""
22045 " !mkdir local\n"
22046 " tgz-out /remote local/remote-data.tar.gz\n"
22047 "\n"
22048 msgstr ""
22049
22050 # type: textblock
22051 #. type: textblock
22052 #: ../fish/guestfish.pod:672
22053 msgid ""
22054 "will create a directory C<local> on the host, and then export the contents "
22055 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22056 "(See C<tgz-out>)."
22057 msgstr ""
22058
22059 # type: textblock
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:676
22062 msgid ""
22063 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22064 "effect, due to the way that subprocesses work in Unix."
22065 msgstr ""
22066
22067 # type: =head1
22068 #. type: =head1
22069 #: ../fish/guestfish.pod:679
22070 msgid "PIPES"
22071 msgstr ""
22072
22073 # type: textblock
22074 #. type: textblock
22075 #: ../fish/guestfish.pod:681
22076 msgid ""
22077 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22078 "command (a guestfish command) to the second command (any host command).  For "
22079 "example:"
22080 msgstr ""
22081
22082 # type: verbatim
22083 #. type: verbatim
22084 #: ../fish/guestfish.pod:685
22085 #, no-wrap
22086 msgid ""
22087 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22088 "\n"
22089 msgstr ""
22090
22091 # type: textblock
22092 #. type: textblock
22093 #: ../fish/guestfish.pod:687
22094 msgid ""
22095 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22096 "program).  The above command would list all accounts in the guest filesystem "
22097 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22098 msgstr ""
22099
22100 # type: verbatim
22101 #. type: verbatim
22102 #: ../fish/guestfish.pod:692
22103 #, no-wrap
22104 msgid ""
22105 " hexdump /bin/ls | head\n"
22106 " list-devices | tail -1\n"
22107 " tgz-out / - | tar ztf -\n"
22108 "\n"
22109 msgstr ""
22110
22111 # type: textblock
22112 #. type: textblock
22113 #: ../fish/guestfish.pod:696
22114 msgid ""
22115 "The space before the pipe symbol is required, any space after the pipe "
22116 "symbol is optional.  Everything after the pipe symbol is just passed "
22117 "straight to the host shell, so it can contain redirections, globs and "
22118 "anything else that makes sense on the host side."
22119 msgstr ""
22120
22121 # type: textblock
22122 #. type: textblock
22123 #: ../fish/guestfish.pod:701
22124 msgid ""
22125 "To use a literal argument which begins with a pipe symbol, you have to quote "
22126 "it, eg:"
22127 msgstr ""
22128
22129 # type: verbatim
22130 #. type: verbatim
22131 #: ../fish/guestfish.pod:704
22132 #, no-wrap
22133 msgid ""
22134 " echo \"|\"\n"
22135 "\n"
22136 msgstr ""
22137
22138 # type: =head1
22139 #. type: =head1
22140 #: ../fish/guestfish.pod:706
22141 msgid "HOME DIRECTORIES"
22142 msgstr ""
22143
22144 # type: textblock
22145 #. type: textblock
22146 #: ../fish/guestfish.pod:708
22147 msgid ""
22148 "If a parameter starts with the character C<~> then the tilde may be expanded "
22149 "as a home directory path (either C<~> for the current user's home directory, "
22150 "or C<~user> for another user)."
22151 msgstr ""
22152
22153 # type: textblock
22154 #. type: textblock
22155 #: ../fish/guestfish.pod:712
22156 msgid ""
22157 "Note that home directory expansion happens for users known I<on the host>, "
22158 "not in the guest filesystem."
22159 msgstr ""
22160
22161 # type: textblock
22162 #. type: textblock
22163 #: ../fish/guestfish.pod:715
22164 msgid ""
22165 "To use a literal argument which begins with a tilde, you have to quote it, "
22166 "eg:"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #. type: verbatim
22171 #: ../fish/guestfish.pod:718
22172 #, no-wrap
22173 msgid ""
22174 " echo \"~\"\n"
22175 "\n"
22176 msgstr ""
22177
22178 # type: textblock
22179 #. type: textblock
22180 #: ../fish/guestfish.pod:722
22181 msgid ""
22182 "Libguestfs has some support for Linux guests encrypted according to the "
22183 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22184 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22185 "LUKS is supported."
22186 msgstr ""
22187
22188 # type: textblock
22189 #. type: textblock
22190 #: ../fish/guestfish.pod:727
22191 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22192 msgstr ""
22193
22194 # type: verbatim
22195 #. type: verbatim
22196 #: ../fish/guestfish.pod:729
22197 #, no-wrap
22198 msgid ""
22199 " ><fs> vfs-type /dev/sda2\n"
22200 " crypto_LUKS\n"
22201 "\n"
22202 msgstr ""
22203
22204 # type: textblock
22205 #. type: textblock
22206 #: ../fish/guestfish.pod:732
22207 msgid ""
22208 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22209 "device called C</dev/mapper/luksdev>."
22210 msgstr ""
22211
22212 # type: verbatim
22213 #. type: verbatim
22214 #: ../fish/guestfish.pod:735
22215 #, no-wrap
22216 msgid ""
22217 " ><fs> luks-open /dev/sda2 luksdev\n"
22218 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22219 "\n"
22220 msgstr ""
22221
22222 # type: textblock
22223 #. type: textblock
22224 #: ../fish/guestfish.pod:738
22225 msgid ""
22226 "Finally you have to tell LVM to scan for volume groups on the newly created "
22227 "mapper device:"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #. type: verbatim
22232 #: ../fish/guestfish.pod:741
22233 #, no-wrap
22234 msgid ""
22235 " vgscan\n"
22236 " vg-activate-all true\n"
22237 "\n"
22238 msgstr ""
22239
22240 # type: textblock
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:744
22243 msgid "The logical volume(s) can now be mounted in the usual way."
22244 msgstr ""
22245
22246 # type: textblock
22247 #. type: textblock
22248 #: ../fish/guestfish.pod:746
22249 msgid ""
22250 "Before closing a LUKS device you must unmount any logical volumes on it and "
22251 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22252 "one.  Then you can close the mapper device:"
22253 msgstr ""
22254
22255 # type: verbatim
22256 #. type: verbatim
22257 #: ../fish/guestfish.pod:750
22258 #, no-wrap
22259 msgid ""
22260 " vg-activate false /dev/VG\n"
22261 " luks-close /dev/mapper/luksdev\n"
22262 "\n"
22263 msgstr ""
22264
22265 # type: =head1
22266 #. type: =head1
22267 #: ../fish/guestfish.pod:753
22268 msgid "WINDOWS PATHS"
22269 msgstr ""
22270
22271 # type: textblock
22272 #. type: textblock
22273 #: ../fish/guestfish.pod:755
22274 msgid ""
22275 "If a path is prefixed with C<win:> then you can use Windows-style paths "
22276 "(with some limitations).  The following commands are equivalent:"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #. type: verbatim
22281 #: ../fish/guestfish.pod:758
22282 #, no-wrap
22283 msgid ""
22284 " file /WINDOWS/system32/config/system.LOG\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: verbatim
22289 #. type: verbatim
22290 #: ../fish/guestfish.pod:760
22291 #, no-wrap
22292 msgid ""
22293 " file win:/windows/system32/config/system.log\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: verbatim
22298 #. type: verbatim
22299 #: ../fish/guestfish.pod:762
22300 #, no-wrap
22301 msgid ""
22302 " file win:\\windows\\system32\\config\\system.log\n"
22303 "\n"
22304 msgstr ""
22305
22306 # type: verbatim
22307 #. type: verbatim
22308 #: ../fish/guestfish.pod:764
22309 #, no-wrap
22310 msgid ""
22311 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
22312 "\n"
22313 msgstr ""
22314
22315 # type: textblock
22316 #. type: textblock
22317 #: ../fish/guestfish.pod:766
22318 msgid ""
22319 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
22320 "handles case insensitivity like Windows would.  This only works in argument "
22321 "positions that expect a path."
22322 msgstr ""
22323
22324 # type: =head1
22325 #. type: =head1
22326 #: ../fish/guestfish.pod:770
22327 msgid "UPLOADING AND DOWNLOADING FILES"
22328 msgstr ""
22329
22330 # type: textblock
22331 #. type: textblock
22332 #: ../fish/guestfish.pod:772
22333 msgid ""
22334 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22335 "others which upload from or download to a local file, you can use the "
22336 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22337 msgstr ""
22338
22339 # type: verbatim
22340 #. type: verbatim
22341 #: ../fish/guestfish.pod:776
22342 #, no-wrap
22343 msgid ""
22344 " upload - /foo\n"
22345 "\n"
22346 msgstr ""
22347
22348 # type: textblock
22349 #. type: textblock
22350 #: ../fish/guestfish.pod:778
22351 msgid ""
22352 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22353 msgstr ""
22354
22355 # type: verbatim
22356 #. type: verbatim
22357 #: ../fish/guestfish.pod:781
22358 #, no-wrap
22359 msgid ""
22360 " tar-out /etc - | tar tf -\n"
22361 "\n"
22362 msgstr ""
22363
22364 # type: textblock
22365 #. type: textblock
22366 #: ../fish/guestfish.pod:783
22367 msgid ""
22368 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22369 "command (see L</PIPES>)."
22370 msgstr ""
22371
22372 # type: textblock
22373 #. type: textblock
22374 #: ../fish/guestfish.pod:786
22375 msgid ""
22376 "When using C<-> to read from stdin, the input is read up to the end of "
22377 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22378 "some arbitrary end marker:"
22379 msgstr ""
22380
22381 # type: verbatim
22382 #. type: verbatim
22383 #: ../fish/guestfish.pod:790
22384 #, no-wrap
22385 msgid ""
22386 " upload -<<END /foo\n"
22387 " input line 1\n"
22388 " input line 2\n"
22389 " input line 3\n"
22390 " END\n"
22391 "\n"
22392 msgstr ""
22393
22394 # type: textblock
22395 #. type: textblock
22396 #: ../fish/guestfish.pod:796
22397 msgid ""
22398 "Any string of characters can be used instead of C<END>.  The end marker must "
22399 "appear on a line of its own, without any preceeding or following characters "
22400 "(not even spaces)."
22401 msgstr ""
22402
22403 # type: textblock
22404 #. type: textblock
22405 #: ../fish/guestfish.pod:800
22406 msgid ""
22407 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22408 "upload local files (so-called \"FileIn\" parameters in the generator)."
22409 msgstr ""
22410
22411 # type: =head1
22412 #. type: =head1
22413 #: ../fish/guestfish.pod:803
22414 msgid "EXIT ON ERROR BEHAVIOUR"
22415 msgstr ""
22416
22417 # type: textblock
22418 #. type: textblock
22419 #: ../fish/guestfish.pod:805
22420 msgid ""
22421 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22422 "taking commands from a human over a tty), and will exit on the first error "
22423 "in non-interactive mode (scripts, commands given on the command line)."
22424 msgstr ""
22425
22426 # type: textblock
22427 #. type: textblock
22428 #: ../fish/guestfish.pod:810
22429 msgid ""
22430 "If you prefix a command with a I<-> character, then that command will not "
22431 "cause guestfish to exit, even if that (one) command returns an error."
22432 msgstr ""
22433
22434 # type: =head1
22435 #. type: =head1
22436 #: ../fish/guestfish.pod:814
22437 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22438 msgstr ""
22439
22440 # type: textblock
22441 #. type: textblock
22442 #: ../fish/guestfish.pod:816
22443 msgid ""
22444 "Guestfish can be remote-controlled over a socket.  This is useful "
22445 "particularly in shell scripts where you want to make several different "
22446 "changes to a filesystem, but you don't want the overhead of starting up a "
22447 "guestfish process each time."
22448 msgstr ""
22449
22450 # type: textblock
22451 #. type: textblock
22452 #: ../fish/guestfish.pod:821
22453 msgid "Start a guestfish server process using:"
22454 msgstr ""
22455
22456 # type: verbatim
22457 #. type: verbatim
22458 #: ../fish/guestfish.pod:823
22459 #, no-wrap
22460 msgid ""
22461 " eval \"`guestfish --listen`\"\n"
22462 "\n"
22463 msgstr ""
22464
22465 # type: textblock
22466 #. type: textblock
22467 #: ../fish/guestfish.pod:825
22468 msgid "and then send it commands by doing:"
22469 msgstr ""
22470
22471 # type: verbatim
22472 #. type: verbatim
22473 #: ../fish/guestfish.pod:827
22474 #, no-wrap
22475 msgid ""
22476 " guestfish --remote cmd [...]\n"
22477 "\n"
22478 msgstr ""
22479
22480 # type: textblock
22481 #. type: textblock
22482 #: ../fish/guestfish.pod:829
22483 msgid "To cause the server to exit, send it the exit command:"
22484 msgstr ""
22485
22486 # type: verbatim
22487 #. type: verbatim
22488 #: ../fish/guestfish.pod:831
22489 #, no-wrap
22490 msgid ""
22491 " guestfish --remote exit\n"
22492 "\n"
22493 msgstr ""
22494
22495 # type: textblock
22496 #. type: textblock
22497 #: ../fish/guestfish.pod:833
22498 msgid ""
22499 "Note that the server will normally exit if there is an error in a command.  "
22500 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22501 "BEHAVIOUR>."
22502 msgstr ""
22503
22504 # type: =head2
22505 #. type: =head2
22506 #: ../fish/guestfish.pod:837
22507 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22508 msgstr ""
22509
22510 # type: textblock
22511 #. type: textblock
22512 #: ../fish/guestfish.pod:839
22513 msgid ""
22514 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22515 "is how the I<--remote> option knows where to send the commands.  You can "
22516 "have several guestfish listener processes running using:"
22517 msgstr ""
22518
22519 # type: verbatim
22520 #. type: verbatim
22521 #: ../fish/guestfish.pod:843
22522 #, no-wrap
22523 msgid ""
22524 " eval \"`guestfish --listen`\"\n"
22525 " pid1=$GUESTFISH_PID\n"
22526 " eval \"`guestfish --listen`\"\n"
22527 " pid2=$GUESTFISH_PID\n"
22528 " ...\n"
22529 " guestfish --remote=$pid1 cmd\n"
22530 " guestfish --remote=$pid2 cmd\n"
22531 "\n"
22532 msgstr ""
22533
22534 # type: =head2
22535 #. type: =head2
22536 #: ../fish/guestfish.pod:851
22537 msgid "REMOTE CONTROL AND CSH"
22538 msgstr ""
22539
22540 # type: textblock
22541 #. type: textblock
22542 #: ../fish/guestfish.pod:853
22543 msgid ""
22544 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22545 "option:"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #. type: verbatim
22550 #: ../fish/guestfish.pod:856
22551 #, no-wrap
22552 msgid ""
22553 " eval \"`guestfish --listen --csh`\"\n"
22554 "\n"
22555 msgstr ""
22556
22557 # type: =head2
22558 #. type: =head2
22559 #: ../fish/guestfish.pod:858
22560 msgid "REMOTE CONTROL DETAILS"
22561 msgstr ""
22562
22563 # type: textblock
22564 #. type: textblock
22565 #: ../fish/guestfish.pod:860
22566 msgid ""
22567 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22568 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22569 "and C<$PID> is the process ID of the server."
22570 msgstr ""
22571
22572 # type: textblock
22573 #. type: textblock
22574 #: ../fish/guestfish.pod:864
22575 msgid "Guestfish client and server versions must match exactly."
22576 msgstr ""
22577
22578 # type: =head1
22579 #. type: =head1
22580 #: ../fish/guestfish.pod:866
22581 msgid "PREPARED DISK IMAGES"
22582 msgstr ""
22583
22584 # type: textblock
22585 #. type: textblock
22586 #: ../fish/guestfish.pod:868
22587 msgid ""
22588 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22589 "preformatted disk images that guestfish can make for you to save typing.  "
22590 "This is particularly useful for testing purposes.  This option is used "
22591 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22592 "can be mixed with I<-a>)."
22593 msgstr ""
22594
22595 # type: textblock
22596 #. type: textblock
22597 #: ../fish/guestfish.pod:874
22598 msgid ""
22599 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22600 "the second and so on.  Existing files in the current directory are "
22601 "I<overwritten>."
22602 msgstr ""
22603
22604 # type: textblock
22605 #. type: textblock
22606 #: ../fish/guestfish.pod:878
22607 msgid ""
22608 "The type briefly describes how the disk should be sized, partitioned, how "
22609 "filesystem(s) should be created, and how content should be added.  "
22610 "Optionally the type can be followed by extra parameters, separated by C<:> "
22611 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22612 "allocated disk, containing a single partition, with the partition formatted "
22613 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22614 "disk instead."
22615 msgstr ""
22616
22617 # type: textblock
22618 #. type: textblock
22619 #: ../fish/guestfish.pod:886
22620 msgid "To list the available types and any extra parameters they take, run:"
22621 msgstr ""
22622
22623 # type: textblock
22624 #. type: textblock
22625 #: ../fish/guestfish.pod:890
22626 msgid ""
22627 "Note that the prepared filesystem is not mounted.  You would usually have to "
22628 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22629 msgstr ""
22630
22631 # type: textblock
22632 #. type: textblock
22633 #: ../fish/guestfish.pod:894
22634 msgid ""
22635 "If any I<-N> or I<--new> options are given, the guest is automatically "
22636 "launched."
22637 msgstr ""
22638
22639 # type: textblock
22640 #. type: textblock
22641 #: ../fish/guestfish.pod:899
22642 msgid "Create a 100MB disk with an ext4-formatted partition:"
22643 msgstr ""
22644
22645 # type: verbatim
22646 #. type: verbatim
22647 #: ../fish/guestfish.pod:901
22648 #, no-wrap
22649 msgid ""
22650 " guestfish -N fs:ext4\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: textblock
22655 #. type: textblock
22656 #: ../fish/guestfish.pod:903
22657 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22658 msgstr ""
22659
22660 # type: verbatim
22661 #. type: verbatim
22662 #: ../fish/guestfish.pod:905
22663 #, no-wrap
22664 msgid ""
22665 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22666 "\n"
22667 msgstr ""
22668
22669 # type: textblock
22670 #. type: textblock
22671 #: ../fish/guestfish.pod:907
22672 msgid "Create a blank 200MB disk:"
22673 msgstr ""
22674
22675 # type: verbatim
22676 #. type: verbatim
22677 #: ../fish/guestfish.pod:909
22678 #, no-wrap
22679 msgid ""
22680 " guestfish -N disk:200M\n"
22681 "\n"
22682 msgstr ""
22683
22684 # type: =head1
22685 #. type: =head1
22686 #: ../fish/guestfish.pod:911
22687 msgid "PROGRESS BARS"
22688 msgstr ""
22689
22690 # type: textblock
22691 #. type: textblock
22692 #: ../fish/guestfish.pod:913
22693 msgid ""
22694 "Some (not all) long-running commands send progress notification messages as "
22695 "they are running.  Guestfish turns these messages into progress bars."
22696 msgstr ""
22697
22698 # type: textblock
22699 #. type: textblock
22700 #: ../fish/guestfish.pod:917
22701 msgid ""
22702 "When a command that supports progress bars takes longer than two seconds to "
22703 "run, and if progress bars are enabled, then you will see one appearing below "
22704 "the command:"
22705 msgstr ""
22706
22707 # type: verbatim
22708 #. type: verbatim
22709 #: ../fish/guestfish.pod:921
22710 #, no-wrap
22711 msgid ""
22712 " ><fs> copy-size /large-file /another-file 2048M\n"
22713 " / 10% [#####-----------------------------------------] 00:30\n"
22714 "\n"
22715 msgstr ""
22716
22717 # type: textblock
22718 #. type: textblock
22719 #: ../fish/guestfish.pod:924
22720 msgid ""
22721 "The spinner on the left hand side moves round once for every progress "
22722 "notification received from the backend.  This is a (reasonably) golden "
22723 "assurance that the command is \"doing something\" even if the progress bar "
22724 "is not moving, because the command is able to send the progress "
22725 "notifications.  When the bar reaches 100% and the command finishes, the "
22726 "spinner disappears."
22727 msgstr ""
22728
22729 # type: textblock
22730 #. type: textblock
22731 #: ../fish/guestfish.pod:931
22732 msgid ""
22733 "Progress bars are enabled by default when guestfish is used interactively.  "
22734 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22735 "and you can disable them completely using I<--no-progress-bars>."
22736 msgstr ""
22737
22738 # type: =head1
22739 #. type: =head1
22740 #: ../fish/guestfish.pod:936
22741 msgid "GUESTFISH COMMANDS"
22742 msgstr ""
22743
22744 # type: textblock
22745 #. type: textblock
22746 #: ../fish/guestfish.pod:938
22747 msgid ""
22748 "The commands in this section are guestfish convenience commands, in other "
22749 "words, they are not part of the L<guestfs(3)> API."
22750 msgstr ""
22751
22752 # type: =head2
22753 #. type: =head2
22754 #: ../fish/guestfish.pod:941
22755 msgid "help"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #. type: verbatim
22760 #: ../fish/guestfish.pod:943
22761 #, no-wrap
22762 msgid ""
22763 " help\n"
22764 " help cmd\n"
22765 "\n"
22766 msgstr ""
22767
22768 # type: textblock
22769 #. type: textblock
22770 #: ../fish/guestfish.pod:946
22771 msgid "Without any parameter, this provides general help."
22772 msgstr ""
22773
22774 # type: textblock
22775 #. type: textblock
22776 #: ../fish/guestfish.pod:948
22777 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22778 msgstr ""
22779
22780 # type: =head2
22781 #. type: =head2
22782 #: ../fish/guestfish.pod:950
22783 msgid "quit | exit"
22784 msgstr ""
22785
22786 # type: textblock
22787 #. type: textblock
22788 #: ../fish/guestfish.pod:952
22789 msgid "This exits guestfish.  You can also use C<^D> key."
22790 msgstr ""
22791
22792 # type: textblock
22793 #. type: textblock
22794 #: ../fish/guestfish.pod:954
22795 msgid "@FISH_COMMANDS@"
22796 msgstr ""
22797
22798 # type: =head1
22799 #. type: =head1
22800 #: ../fish/guestfish.pod:956
22801 msgid "COMMANDS"
22802 msgstr ""
22803
22804 # type: =head1
22805 #. type: =head1
22806 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
22807 msgid "EXIT CODE"
22808 msgstr ""
22809
22810 # type: textblock
22811 #. type: textblock
22812 #: ../fish/guestfish.pod:962
22813 msgid ""
22814 "guestfish returns 0 if the commands completed without error, or 1 if there "
22815 "was an error."
22816 msgstr ""
22817
22818 # type: =item
22819 #. type: =item
22820 #: ../fish/guestfish.pod:969
22821 msgid "EDITOR"
22822 msgstr ""
22823
22824 # type: textblock
22825 #. type: textblock
22826 #: ../fish/guestfish.pod:971
22827 msgid ""
22828 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
22829 "C<vi>."
22830 msgstr ""
22831
22832 # type: =item
22833 #. type: =item
22834 #: ../fish/guestfish.pod:974
22835 msgid "GUESTFISH_PID"
22836 msgstr ""
22837
22838 # type: textblock
22839 #. type: textblock
22840 #: ../fish/guestfish.pod:976
22841 msgid ""
22842 "Used with the I<--remote> option to specify the remote guestfish process to "
22843 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22844 msgstr ""
22845
22846 # type: =item
22847 #. type: =item
22848 #: ../fish/guestfish.pod:980
22849 msgid "HEXEDITOR"
22850 msgstr ""
22851
22852 # type: textblock
22853 #. type: textblock
22854 #: ../fish/guestfish.pod:982
22855 msgid ""
22856 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22857 "not specified, the external L<hexedit(1)> program is used."
22858 msgstr ""
22859
22860 # type: =item
22861 #. type: =item
22862 #: ../fish/guestfish.pod:986
22863 msgid "HOME"
22864 msgstr ""
22865
22866 # type: textblock
22867 #. type: textblock
22868 #: ../fish/guestfish.pod:988
22869 msgid ""
22870 "If compiled with GNU readline support, various files in the home directory "
22871 "can be used.  See L</FILES>."
22872 msgstr ""
22873
22874 # type: textblock
22875 #. type: textblock
22876 #: ../fish/guestfish.pod:997
22877 msgid ""
22878 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22879 "effect as using the B<-v> option."
22880 msgstr ""
22881
22882 # type: textblock
22883 #. type: textblock
22884 #: ../fish/guestfish.pod:1009
22885 msgid ""
22886 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22887 "the discussion of paths in L<guestfs(3)>."
22888 msgstr ""
22889
22890 # type: textblock
22891 #. type: textblock
22892 #: ../fish/guestfish.pod:1020
22893 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22894 msgstr ""
22895
22896 # type: =item
22897 #. type: =item
22898 #: ../fish/guestfish.pod:1022
22899 msgid "PAGER"
22900 msgstr ""
22901
22902 # type: textblock
22903 #. type: textblock
22904 #: ../fish/guestfish.pod:1024
22905 msgid ""
22906 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22907 "C<more>."
22908 msgstr ""
22909
22910 # type: =head1
22911 #. type: =head1
22912 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
22913 msgid "FILES"
22914 msgstr ""
22915
22916 # type: =item
22917 #. type: =item
22918 #: ../fish/guestfish.pod:1043
22919 msgid "$HOME/.guestfish"
22920 msgstr ""
22921
22922 # type: textblock
22923 #. type: textblock
22924 #: ../fish/guestfish.pod:1045
22925 msgid ""
22926 "If compiled with GNU readline support, then the command history is saved in "
22927 "this file."
22928 msgstr ""
22929
22930 # type: =item
22931 #. type: =item
22932 #: ../fish/guestfish.pod:1048
22933 msgid "$HOME/.inputrc"
22934 msgstr ""
22935
22936 # type: =item
22937 #. type: =item
22938 #: ../fish/guestfish.pod:1050
22939 msgid "/etc/inputrc"
22940 msgstr ""
22941
22942 # type: textblock
22943 #. type: textblock
22944 #: ../fish/guestfish.pod:1052
22945 msgid ""
22946 "If compiled with GNU readline support, then these files can be used to "
22947 "configure readline.  For further information, please see L<readline(3)/"
22948 "INITIALIZATION FILE>."
22949 msgstr ""
22950
22951 # type: textblock
22952 #. type: textblock
22953 #: ../fish/guestfish.pod:1056
22954 msgid "To write rules which only apply to guestfish, use:"
22955 msgstr ""
22956
22957 # type: verbatim
22958 #. type: verbatim
22959 #: ../fish/guestfish.pod:1058
22960 #, no-wrap
22961 msgid ""
22962 " $if guestfish\n"
22963 " ...\n"
22964 " $endif\n"
22965 "\n"
22966 msgstr ""
22967
22968 # type: textblock
22969 #. type: textblock
22970 #: ../fish/guestfish.pod:1062
22971 msgid ""
22972 "Variables that you can set in inputrc that change the behaviour of guestfish "
22973 "in useful ways include:"
22974 msgstr ""
22975
22976 # type: =item
22977 #. type: =item
22978 #: ../fish/guestfish.pod:1067
22979 msgid "completion-ignore-case (default: on)"
22980 msgstr ""
22981
22982 # type: textblock
22983 #. type: textblock
22984 #: ../fish/guestfish.pod:1069
22985 msgid ""
22986 "By default, guestfish will ignore case when tab-completing paths on the "
22987 "disk.  Use:"
22988 msgstr ""
22989
22990 # type: verbatim
22991 #. type: verbatim
22992 #: ../fish/guestfish.pod:1072
22993 #, no-wrap
22994 msgid ""
22995 " set completion-ignore-case off\n"
22996 "\n"
22997 msgstr ""
22998
22999 # type: textblock
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:1074
23002 msgid "to make guestfish case sensitive."
23003 msgstr ""
23004
23005 # type: =item
23006 #. type: =item
23007 #: ../fish/guestfish.pod:1078
23008 msgid "test1.img"
23009 msgstr ""
23010
23011 # type: =item
23012 #. type: =item
23013 #: ../fish/guestfish.pod:1080
23014 msgid "test2.img (etc)"
23015 msgstr ""
23016
23017 # type: textblock
23018 #. type: textblock
23019 #: ../fish/guestfish.pod:1082
23020 msgid ""
23021 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23022 "will be created in the file C<test1.img> in the current directory.  The "
23023 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23024 "the same name will be overwritten."
23025 msgstr ""
23026
23027 # type: textblock
23028 #. type: textblock
23029 #: ../fish/guestfish.pod:1091
23030 msgid ""
23031 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
23032 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
23033 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
23034 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
23035 "L<hexedit(1)>."
23036 msgstr ""
23037
23038 # type: textblock
23039 #. type: textblock
23040 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124
23041 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:370
23042 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
23043 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:300
23044 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
23045 msgid ""
23046 "This program is free software; you can redistribute it and/or modify it "
23047 "under the terms of the GNU General Public License as published by the Free "
23048 "Software Foundation; either version 2 of the License, or (at your option) "
23049 "any later version."
23050 msgstr ""
23051
23052 # type: textblock
23053 #. type: textblock
23054 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129
23055 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:375
23056 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
23057 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:305
23058 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
23059 msgid ""
23060 "This program is distributed in the hope that it will be useful, but WITHOUT "
23061 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23062 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23063 "more details."
23064 msgstr ""
23065
23066 # type: textblock
23067 #. type: textblock
23068 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134
23069 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:380
23070 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
23071 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:310
23072 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
23073 msgid ""
23074 "You should have received a copy of the GNU General Public License along with "
23075 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23076 "Ave, Cambridge, MA 02139, USA."
23077 msgstr ""
23078
23079 # type: =head2
23080 #. type: =head2
23081 #: ../fish/guestfish-actions.pod:1
23082 msgid "add-cdrom"
23083 msgstr ""
23084
23085 # type: verbatim
23086 #. type: verbatim
23087 #: ../fish/guestfish-actions.pod:3
23088 #, no-wrap
23089 msgid ""
23090 " add-cdrom filename\n"
23091 "\n"
23092 msgstr ""
23093
23094 # type: textblock
23095 #. type: textblock
23096 #: ../fish/guestfish-actions.pod:15
23097 msgid ""
23098 "This call checks for the existence of C<filename>.  This stops you from "
23099 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23100 "and C<http:> URLs.  To specify those, use the general L</config> call "
23101 "instead."
23102 msgstr ""
23103
23104 # type: textblock
23105 #. type: textblock
23106 #: ../fish/guestfish-actions.pod:22
23107 msgid ""
23108 "If you just want to add an ISO file (often you use this as an efficient way "
23109 "to transfer large files into the guest), then you should probably use L</add-"
23110 "drive-ro> instead."
23111 msgstr ""
23112
23113 # type: =head2
23114 #. type: =head2
23115 #: ../fish/guestfish-actions.pod:35
23116 msgid "add-domain"
23117 msgstr ""
23118
23119 # type: =head2
23120 #. type: =head2
23121 #: ../fish/guestfish-actions.pod:37
23122 msgid "domain"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #. type: verbatim
23127 #: ../fish/guestfish-actions.pod:39
23128 #, no-wrap
23129 msgid ""
23130 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
23131 "\n"
23132 msgstr ""
23133
23134 # type: textblock
23135 #. type: textblock
23136 #: ../fish/guestfish-actions.pod:41
23137 msgid ""
23138 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23139 "It works by connecting to libvirt, requesting the domain and domain XML from "
23140 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
23141 msgstr ""
23142
23143 # type: textblock
23144 #. type: textblock
23145 #: ../fish/guestfish-actions.pod:64
23146 msgid ""
23147 "The other optional parameters are passed directly through to L</add-drive-"
23148 "opts>."
23149 msgstr ""
23150
23151 # type: textblock
23152 #. type: textblock
23153 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131
23154 #: ../fish/guestfish-actions.pod:2842
23155 msgid ""
23156 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
23157 msgstr ""
23158
23159 # type: =head2
23160 #. type: =head2
23161 #: ../fish/guestfish-actions.pod:69
23162 msgid "add-drive"
23163 msgstr ""
23164
23165 # type: verbatim
23166 #. type: verbatim
23167 #: ../fish/guestfish-actions.pod:71
23168 #, no-wrap
23169 msgid ""
23170 " add-drive filename\n"
23171 "\n"
23172 msgstr ""
23173
23174 # type: textblock
23175 #. type: textblock
23176 #: ../fish/guestfish-actions.pod:73
23177 msgid ""
23178 "This function is the equivalent of calling L</add-drive-opts> with no "
23179 "optional parameters, so the disk is added writable, with the format being "
23180 "detected automatically."
23181 msgstr ""
23182
23183 # type: textblock
23184 #. type: textblock
23185 #: ../fish/guestfish-actions.pod:77
23186 msgid ""
23187 "Automatic detection of the format opens you up to a potential security hole "
23188 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23189 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23190 "you should think about replacing calls to this function with calls to L</add-"
23191 "drive-opts>, and specifying the format."
23192 msgstr ""
23193
23194 # type: =head2
23195 #. type: =head2
23196 #: ../fish/guestfish-actions.pod:84
23197 msgid "add-drive-opts"
23198 msgstr ""
23199
23200 # type: =head2
23201 #. type: =head2
23202 #: ../fish/guestfish-actions.pod:86
23203 msgid "add"
23204 msgstr ""
23205
23206 # type: verbatim
23207 #. type: verbatim
23208 #: ../fish/guestfish-actions.pod:88
23209 #, no-wrap
23210 msgid ""
23211 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23212 "\n"
23213 msgstr ""
23214
23215 # type: textblock
23216 #. type: textblock
23217 #: ../fish/guestfish-actions.pod:115
23218 msgid ""
23219 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
23220 "add-drive-ro>) then the format is automatically detected.  Possible formats "
23221 "include C<raw> and C<qcow2>."
23222 msgstr ""
23223
23224 # type: textblock
23225 #. type: textblock
23226 #: ../fish/guestfish-actions.pod:126
23227 msgid ""
23228 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
23229 "add-drive-with-if> call (q.v.)"
23230 msgstr ""
23231
23232 # type: =head2
23233 #. type: =head2
23234 #: ../fish/guestfish-actions.pod:133
23235 msgid "add-drive-ro"
23236 msgstr ""
23237
23238 # type: =head2
23239 #. type: =head2
23240 #: ../fish/guestfish-actions.pod:135
23241 msgid "add-ro"
23242 msgstr ""
23243
23244 # type: verbatim
23245 #. type: verbatim
23246 #: ../fish/guestfish-actions.pod:137
23247 #, no-wrap
23248 msgid ""
23249 " add-drive-ro filename\n"
23250 "\n"
23251 msgstr ""
23252
23253 # type: textblock
23254 #. type: textblock
23255 #: ../fish/guestfish-actions.pod:139
23256 msgid ""
23257 "This function is the equivalent of calling L</add-drive-opts> with the "
23258 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23259 "is added read-only, with the format being detected automatically."
23260 msgstr ""
23261
23262 # type: =head2
23263 #. type: =head2
23264 #: ../fish/guestfish-actions.pod:144
23265 msgid "add-drive-ro-with-if"
23266 msgstr ""
23267
23268 # type: verbatim
23269 #. type: verbatim
23270 #: ../fish/guestfish-actions.pod:146
23271 #, no-wrap
23272 msgid ""
23273 " add-drive-ro-with-if filename iface\n"
23274 "\n"
23275 msgstr ""
23276
23277 # type: textblock
23278 #. type: textblock
23279 #: ../fish/guestfish-actions.pod:148
23280 msgid ""
23281 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23282 "interface emulation to use at run time."
23283 msgstr ""
23284
23285 # type: =head2
23286 #. type: =head2
23287 #: ../fish/guestfish-actions.pod:158
23288 msgid "add-drive-with-if"
23289 msgstr ""
23290
23291 # type: verbatim
23292 #. type: verbatim
23293 #: ../fish/guestfish-actions.pod:160
23294 #, no-wrap
23295 msgid ""
23296 " add-drive-with-if filename iface\n"
23297 "\n"
23298 msgstr ""
23299
23300 # type: textblock
23301 #. type: textblock
23302 #: ../fish/guestfish-actions.pod:162
23303 msgid ""
23304 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23305 "interface emulation to use at run time."
23306 msgstr ""
23307
23308 # type: =head2
23309 #. type: =head2
23310 #: ../fish/guestfish-actions.pod:172
23311 msgid "aug-clear"
23312 msgstr ""
23313
23314 # type: verbatim
23315 #. type: verbatim
23316 #: ../fish/guestfish-actions.pod:174
23317 #, no-wrap
23318 msgid ""
23319 " aug-clear augpath\n"
23320 "\n"
23321 msgstr ""
23322
23323 # type: =head2
23324 #. type: =head2
23325 #: ../fish/guestfish-actions.pod:179
23326 msgid "aug-close"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #. type: verbatim
23331 #: ../fish/guestfish-actions.pod:181
23332 #, no-wrap
23333 msgid ""
23334 " aug-close\n"
23335 "\n"
23336 msgstr ""
23337
23338 # type: textblock
23339 #. type: textblock
23340 #: ../fish/guestfish-actions.pod:183
23341 msgid ""
23342 "Close the current Augeas handle and free up any resources used by it.  After "
23343 "calling this, you have to call L</aug-init> again before you can use any "
23344 "other Augeas functions."
23345 msgstr ""
23346
23347 # type: =head2
23348 #. type: =head2
23349 #: ../fish/guestfish-actions.pod:188
23350 msgid "aug-defnode"
23351 msgstr ""
23352
23353 # type: verbatim
23354 #. type: verbatim
23355 #: ../fish/guestfish-actions.pod:190
23356 #, no-wrap
23357 msgid ""
23358 " aug-defnode name expr val\n"
23359 "\n"
23360 msgstr ""
23361
23362 # type: textblock
23363 #. type: textblock
23364 #: ../fish/guestfish-actions.pod:195
23365 msgid ""
23366 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23367 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23368 "containing that single node."
23369 msgstr ""
23370
23371 # type: =head2
23372 #. type: =head2
23373 #: ../fish/guestfish-actions.pod:203
23374 msgid "aug-defvar"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #. type: verbatim
23379 #: ../fish/guestfish-actions.pod:205
23380 #, no-wrap
23381 msgid ""
23382 " aug-defvar name expr\n"
23383 "\n"
23384 msgstr ""
23385
23386 # type: =head2
23387 #. type: =head2
23388 #: ../fish/guestfish-actions.pod:214
23389 msgid "aug-get"
23390 msgstr ""
23391
23392 # type: verbatim
23393 #. type: verbatim
23394 #: ../fish/guestfish-actions.pod:216
23395 #, no-wrap
23396 msgid ""
23397 " aug-get augpath\n"
23398 "\n"
23399 msgstr ""
23400
23401 # type: =head2
23402 #. type: =head2
23403 #: ../fish/guestfish-actions.pod:221
23404 msgid "aug-init"
23405 msgstr ""
23406
23407 # type: verbatim
23408 #. type: verbatim
23409 #: ../fish/guestfish-actions.pod:223
23410 #, no-wrap
23411 msgid ""
23412 " aug-init root flags\n"
23413 "\n"
23414 msgstr ""
23415
23416 # type: textblock
23417 #. type: textblock
23418 #: ../fish/guestfish-actions.pod:229
23419 msgid "You must call this before using any other L</aug-*> commands."
23420 msgstr ""
23421
23422 # type: textblock
23423 #. type: textblock
23424 #: ../fish/guestfish-actions.pod:264
23425 msgid "Do not load the tree in L</aug-init>."
23426 msgstr ""
23427
23428 # type: textblock
23429 #. type: textblock
23430 #: ../fish/guestfish-actions.pod:268
23431 msgid "To close the handle, you can call L</aug-close>."
23432 msgstr ""
23433
23434 # type: =head2
23435 #. type: =head2
23436 #: ../fish/guestfish-actions.pod:272
23437 msgid "aug-insert"
23438 msgstr ""
23439
23440 # type: verbatim
23441 #. type: verbatim
23442 #: ../fish/guestfish-actions.pod:274
23443 #, no-wrap
23444 msgid ""
23445 " aug-insert augpath label true|false\n"
23446 "\n"
23447 msgstr ""
23448
23449 # type: =head2
23450 #. type: =head2
23451 #: ../fish/guestfish-actions.pod:284
23452 msgid "aug-load"
23453 msgstr ""
23454
23455 # type: verbatim
23456 #. type: verbatim
23457 #: ../fish/guestfish-actions.pod:286
23458 #, no-wrap
23459 msgid ""
23460 " aug-load\n"
23461 "\n"
23462 msgstr ""
23463
23464 # type: =head2
23465 #. type: =head2
23466 #: ../fish/guestfish-actions.pod:293
23467 msgid "aug-ls"
23468 msgstr ""
23469
23470 # type: verbatim
23471 #. type: verbatim
23472 #: ../fish/guestfish-actions.pod:295
23473 #, no-wrap
23474 msgid ""
23475 " aug-ls augpath\n"
23476 "\n"
23477 msgstr ""
23478
23479 # type: textblock
23480 #. type: textblock
23481 #: ../fish/guestfish-actions.pod:297
23482 msgid ""
23483 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23484 "resulting nodes into alphabetical order."
23485 msgstr ""
23486
23487 # type: =head2
23488 #. type: =head2
23489 #: ../fish/guestfish-actions.pod:300
23490 msgid "aug-match"
23491 msgstr ""
23492
23493 # type: verbatim
23494 #. type: verbatim
23495 #: ../fish/guestfish-actions.pod:302
23496 #, no-wrap
23497 msgid ""
23498 " aug-match augpath\n"
23499 "\n"
23500 msgstr ""
23501
23502 # type: =head2
23503 #. type: =head2
23504 #: ../fish/guestfish-actions.pod:308
23505 msgid "aug-mv"
23506 msgstr ""
23507
23508 # type: verbatim
23509 #. type: verbatim
23510 #: ../fish/guestfish-actions.pod:310
23511 #, no-wrap
23512 msgid ""
23513 " aug-mv src dest\n"
23514 "\n"
23515 msgstr ""
23516
23517 # type: =head2
23518 #. type: =head2
23519 #: ../fish/guestfish-actions.pod:315
23520 msgid "aug-rm"
23521 msgstr ""
23522
23523 # type: verbatim
23524 #. type: verbatim
23525 #: ../fish/guestfish-actions.pod:317
23526 #, no-wrap
23527 msgid ""
23528 " aug-rm augpath\n"
23529 "\n"
23530 msgstr ""
23531
23532 # type: =head2
23533 #. type: =head2
23534 #: ../fish/guestfish-actions.pod:323
23535 msgid "aug-save"
23536 msgstr ""
23537
23538 # type: verbatim
23539 #. type: verbatim
23540 #: ../fish/guestfish-actions.pod:325
23541 #, no-wrap
23542 msgid ""
23543 " aug-save\n"
23544 "\n"
23545 msgstr ""
23546
23547 # type: textblock
23548 #. type: textblock
23549 #: ../fish/guestfish-actions.pod:329
23550 msgid ""
23551 "The flags which were passed to L</aug-init> affect exactly how files are "
23552 "saved."
23553 msgstr ""
23554
23555 # type: =head2
23556 #. type: =head2
23557 #: ../fish/guestfish-actions.pod:332
23558 msgid "aug-set"
23559 msgstr ""
23560
23561 # type: verbatim
23562 #. type: verbatim
23563 #: ../fish/guestfish-actions.pod:334
23564 #, no-wrap
23565 msgid ""
23566 " aug-set augpath val\n"
23567 "\n"
23568 msgstr ""
23569
23570 # type: textblock
23571 #. type: textblock
23572 #: ../fish/guestfish-actions.pod:338
23573 msgid ""
23574 "In the Augeas API, it is possible to clear a node by setting the value to "
23575 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23576 "this call.  Instead you must use the L</aug-clear> call."
23577 msgstr ""
23578
23579 # type: =head2
23580 #. type: =head2
23581 #: ../fish/guestfish-actions.pod:343
23582 msgid "available"
23583 msgstr ""
23584
23585 # type: verbatim
23586 #. type: verbatim
23587 #: ../fish/guestfish-actions.pod:345
23588 #, no-wrap
23589 msgid ""
23590 " available 'groups ...'\n"
23591 "\n"
23592 msgstr ""
23593
23594 # type: textblock
23595 #. type: textblock
23596 #: ../fish/guestfish-actions.pod:351
23597 msgid ""
23598 "The libguestfs groups, and the functions that those groups correspond to, "
23599 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23600 "runtime by calling L</available-all-groups>."
23601 msgstr ""
23602
23603 # type: textblock
23604 #. type: textblock
23605 #: ../fish/guestfish-actions.pod:375
23606 msgid "You must call L</launch> before calling this function."
23607 msgstr ""
23608
23609 # type: textblock
23610 #. type: textblock
23611 #: ../fish/guestfish-actions.pod:397
23612 msgid ""
23613 "This call was added in version C<1.0.80>.  In previous versions of "
23614 "libguestfs all you could do would be to speculatively execute a command to "
23615 "find out if the daemon implemented it.  See also L</version>."
23616 msgstr ""
23617
23618 # type: =head2
23619 #. type: =head2
23620 #: ../fish/guestfish-actions.pod:404
23621 msgid "available-all-groups"
23622 msgstr ""
23623
23624 # type: verbatim
23625 #. type: verbatim
23626 #: ../fish/guestfish-actions.pod:406
23627 #, no-wrap
23628 msgid ""
23629 " available-all-groups\n"
23630 "\n"
23631 msgstr ""
23632
23633 # type: textblock
23634 #. type: textblock
23635 #: ../fish/guestfish-actions.pod:408
23636 msgid ""
23637 "This command returns a list of all optional groups that this daemon knows "
23638 "about.  Note this returns both supported and unsupported groups.  To find "
23639 "out which ones the daemon can actually support you have to call L</"
23640 "available> on each member of the returned list."
23641 msgstr ""
23642
23643 # type: textblock
23644 #. type: textblock
23645 #: ../fish/guestfish-actions.pod:414
23646 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23647 msgstr ""
23648
23649 # type: =head2
23650 #. type: =head2
23651 #: ../fish/guestfish-actions.pod:416
23652 msgid "base64-in"
23653 msgstr ""
23654
23655 # type: verbatim
23656 #. type: verbatim
23657 #: ../fish/guestfish-actions.pod:418
23658 #, no-wrap
23659 msgid ""
23660 " base64-in (base64file|-) filename\n"
23661 "\n"
23662 msgstr ""
23663
23664 # type: textblock
23665 #. type: textblock
23666 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432
23667 #: ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825
23668 #: ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221
23669 #: ../fish/guestfish-actions.pod:4197 ../fish/guestfish-actions.pod:4209
23670 #: ../fish/guestfish-actions.pod:4220 ../fish/guestfish-actions.pod:4231
23671 #: ../fish/guestfish-actions.pod:4283 ../fish/guestfish-actions.pod:4292
23672 #: ../fish/guestfish-actions.pod:4346 ../fish/guestfish-actions.pod:4369
23673 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23674 msgstr ""
23675
23676 # type: =head2
23677 #. type: =head2
23678 #: ../fish/guestfish-actions.pod:425
23679 msgid "base64-out"
23680 msgstr ""
23681
23682 # type: verbatim
23683 #. type: verbatim
23684 #: ../fish/guestfish-actions.pod:427
23685 #, no-wrap
23686 msgid ""
23687 " base64-out filename (base64file|-)\n"
23688 "\n"
23689 msgstr ""
23690
23691 # type: =head2
23692 #. type: =head2
23693 #: ../fish/guestfish-actions.pod:434
23694 msgid "blockdev-flushbufs"
23695 msgstr ""
23696
23697 # type: verbatim
23698 #. type: verbatim
23699 #: ../fish/guestfish-actions.pod:436
23700 #, no-wrap
23701 msgid ""
23702 " blockdev-flushbufs device\n"
23703 "\n"
23704 msgstr ""
23705
23706 # type: =head2
23707 #. type: =head2
23708 #: ../fish/guestfish-actions.pod:443
23709 msgid "blockdev-getbsz"
23710 msgstr ""
23711
23712 # type: verbatim
23713 #. type: verbatim
23714 #: ../fish/guestfish-actions.pod:445
23715 #, no-wrap
23716 msgid ""
23717 " blockdev-getbsz device\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: =head2
23722 #. type: =head2
23723 #: ../fish/guestfish-actions.pod:454
23724 msgid "blockdev-getro"
23725 msgstr ""
23726
23727 # type: verbatim
23728 #. type: verbatim
23729 #: ../fish/guestfish-actions.pod:456
23730 #, no-wrap
23731 msgid ""
23732 " blockdev-getro device\n"
23733 "\n"
23734 msgstr ""
23735
23736 # type: =head2
23737 #. type: =head2
23738 #: ../fish/guestfish-actions.pod:463
23739 msgid "blockdev-getsize64"
23740 msgstr ""
23741
23742 # type: verbatim
23743 #. type: verbatim
23744 #: ../fish/guestfish-actions.pod:465
23745 #, no-wrap
23746 msgid ""
23747 " blockdev-getsize64 device\n"
23748 "\n"
23749 msgstr ""
23750
23751 # type: textblock
23752 #. type: textblock
23753 #: ../fish/guestfish-actions.pod:469
23754 msgid "See also L</blockdev-getsz>."
23755 msgstr ""
23756
23757 # type: =head2
23758 #. type: =head2
23759 #: ../fish/guestfish-actions.pod:473
23760 msgid "blockdev-getss"
23761 msgstr ""
23762
23763 # type: verbatim
23764 #. type: verbatim
23765 #: ../fish/guestfish-actions.pod:475
23766 #, no-wrap
23767 msgid ""
23768 " blockdev-getss device\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #. type: textblock
23774 #: ../fish/guestfish-actions.pod:480
23775 msgid ""
23776 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
23777 msgstr ""
23778
23779 # type: =head2
23780 #. type: =head2
23781 #: ../fish/guestfish-actions.pod:485
23782 msgid "blockdev-getsz"
23783 msgstr ""
23784
23785 # type: verbatim
23786 #. type: verbatim
23787 #: ../fish/guestfish-actions.pod:487
23788 #, no-wrap
23789 msgid ""
23790 " blockdev-getsz device\n"
23791 "\n"
23792 msgstr ""
23793
23794 # type: textblock
23795 #. type: textblock
23796 #: ../fish/guestfish-actions.pod:492
23797 msgid ""
23798 "See also L</blockdev-getss> for the real sector size of the device, and L</"
23799 "blockdev-getsize64> for the more useful I<size in bytes>."
23800 msgstr ""
23801
23802 # type: =head2
23803 #. type: =head2
23804 #: ../fish/guestfish-actions.pod:498
23805 msgid "blockdev-rereadpt"
23806 msgstr ""
23807
23808 # type: verbatim
23809 #. type: verbatim
23810 #: ../fish/guestfish-actions.pod:500
23811 #, no-wrap
23812 msgid ""
23813 " blockdev-rereadpt device\n"
23814 "\n"
23815 msgstr ""
23816
23817 # type: =head2
23818 #. type: =head2
23819 #: ../fish/guestfish-actions.pod:506
23820 msgid "blockdev-setbsz"
23821 msgstr ""
23822
23823 # type: verbatim
23824 #. type: verbatim
23825 #: ../fish/guestfish-actions.pod:508
23826 #, no-wrap
23827 msgid ""
23828 " blockdev-setbsz device blocksize\n"
23829 "\n"
23830 msgstr ""
23831
23832 # type: =head2
23833 #. type: =head2
23834 #: ../fish/guestfish-actions.pod:517
23835 msgid "blockdev-setro"
23836 msgstr ""
23837
23838 # type: verbatim
23839 #. type: verbatim
23840 #: ../fish/guestfish-actions.pod:519
23841 #, no-wrap
23842 msgid ""
23843 " blockdev-setro device\n"
23844 "\n"
23845 msgstr ""
23846
23847 # type: =head2
23848 #. type: =head2
23849 #: ../fish/guestfish-actions.pod:525
23850 msgid "blockdev-setrw"
23851 msgstr ""
23852
23853 # type: verbatim
23854 #. type: verbatim
23855 #: ../fish/guestfish-actions.pod:527
23856 #, no-wrap
23857 msgid ""
23858 " blockdev-setrw device\n"
23859 "\n"
23860 msgstr ""
23861
23862 # type: =head2
23863 #. type: =head2
23864 #: ../fish/guestfish-actions.pod:533
23865 msgid "case-sensitive-path"
23866 msgstr ""
23867
23868 # type: verbatim
23869 #. type: verbatim
23870 #: ../fish/guestfish-actions.pod:535
23871 #, no-wrap
23872 msgid ""
23873 " case-sensitive-path path\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #. type: textblock
23879 #: ../fish/guestfish-actions.pod:559
23880 msgid ""
23881 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
23882 "WINDOWS/system32\"> (the exact return value would depend on details of how "
23883 "the directories were originally created under Windows)."
23884 msgstr ""
23885
23886 # type: textblock
23887 #. type: textblock
23888 #: ../fish/guestfish-actions.pod:567
23889 msgid "See also L</realpath>."
23890 msgstr ""
23891
23892 # type: =head2
23893 #. type: =head2
23894 #: ../fish/guestfish-actions.pod:569
23895 msgid "cat"
23896 msgstr ""
23897
23898 # type: verbatim
23899 #. type: verbatim
23900 #: ../fish/guestfish-actions.pod:571
23901 #, no-wrap
23902 msgid ""
23903 " cat path\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: textblock
23908 #. type: textblock
23909 #: ../fish/guestfish-actions.pod:575
23910 msgid ""
23911 "Note that this function cannot correctly handle binary files (specifically, "
23912 "files containing C<\\0> character which is treated as end of string).  For "
23913 "those you need to use the L</read-file> or L</download> functions which have "
23914 "a more complex interface."
23915 msgstr ""
23916
23917 # type: =head2
23918 #. type: =head2
23919 #: ../fish/guestfish-actions.pod:583
23920 msgid "checksum"
23921 msgstr ""
23922
23923 # type: verbatim
23924 #. type: verbatim
23925 #: ../fish/guestfish-actions.pod:585
23926 #, no-wrap
23927 msgid ""
23928 " checksum csumtype path\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: textblock
23933 #. type: textblock
23934 #: ../fish/guestfish-actions.pod:628
23935 msgid "To get the checksum for a device, use L</checksum-device>."
23936 msgstr ""
23937
23938 # type: textblock
23939 #. type: textblock
23940 #: ../fish/guestfish-actions.pod:630
23941 msgid "To get the checksums for many files, use L</checksums-out>."
23942 msgstr ""
23943
23944 # type: =head2
23945 #. type: =head2
23946 #: ../fish/guestfish-actions.pod:632
23947 msgid "checksum-device"
23948 msgstr ""
23949
23950 # type: verbatim
23951 #. type: verbatim
23952 #: ../fish/guestfish-actions.pod:634
23953 #, no-wrap
23954 msgid ""
23955 " checksum-device csumtype device\n"
23956 "\n"
23957 msgstr ""
23958
23959 # type: textblock
23960 #. type: textblock
23961 #: ../fish/guestfish-actions.pod:636
23962 msgid ""
23963 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23964 "device named C<device>.  For the types of checksums supported see the L</"
23965 "checksum> command."
23966 msgstr ""
23967
23968 # type: =head2
23969 #. type: =head2
23970 #: ../fish/guestfish-actions.pod:640
23971 msgid "checksums-out"
23972 msgstr ""
23973
23974 # type: verbatim
23975 #. type: verbatim
23976 #: ../fish/guestfish-actions.pod:642
23977 #, no-wrap
23978 msgid ""
23979 " checksums-out csumtype directory (sumsfile|-)\n"
23980 "\n"
23981 msgstr ""
23982
23983 # type: =head2
23984 #. type: =head2
23985 #: ../fish/guestfish-actions.pod:658
23986 msgid "chmod"
23987 msgstr ""
23988
23989 # type: verbatim
23990 #. type: verbatim
23991 #: ../fish/guestfish-actions.pod:660
23992 #, no-wrap
23993 msgid ""
23994 " chmod mode path\n"
23995 "\n"
23996 msgstr ""
23997
23998 # type: =head2
23999 #. type: =head2
24000 #: ../fish/guestfish-actions.pod:671
24001 msgid "chown"
24002 msgstr ""
24003
24004 # type: verbatim
24005 #. type: verbatim
24006 #: ../fish/guestfish-actions.pod:673
24007 #, no-wrap
24008 msgid ""
24009 " chown owner group path\n"
24010 "\n"
24011 msgstr ""
24012
24013 # type: =head2
24014 #. type: =head2
24015 #: ../fish/guestfish-actions.pod:681
24016 msgid "command"
24017 msgstr ""
24018
24019 # type: verbatim
24020 #. type: verbatim
24021 #: ../fish/guestfish-actions.pod:683
24022 #, no-wrap
24023 msgid ""
24024 " command 'arguments ...'\n"
24025 "\n"
24026 msgstr ""
24027
24028 # type: textblock
24029 #. type: textblock
24030 #: ../fish/guestfish-actions.pod:690
24031 msgid ""
24032 "The single parameter is an argv-style list of arguments.  The first element "
24033 "is the name of the program to run.  Subsequent elements are parameters.  The "
24034 "list must be non-empty (ie. must contain a program name).  Note that the "
24035 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24036 msgstr ""
24037
24038 # type: =head2
24039 #. type: =head2
24040 #: ../fish/guestfish-actions.pod:718
24041 msgid "command-lines"
24042 msgstr ""
24043
24044 # type: verbatim
24045 #. type: verbatim
24046 #: ../fish/guestfish-actions.pod:720
24047 #, no-wrap
24048 msgid ""
24049 " command-lines 'arguments ...'\n"
24050 "\n"
24051 msgstr ""
24052
24053 # type: textblock
24054 #. type: textblock
24055 #: ../fish/guestfish-actions.pod:722
24056 msgid ""
24057 "This is the same as L</command>, but splits the result into a list of lines."
24058 msgstr ""
24059
24060 # type: textblock
24061 #. type: textblock
24062 #: ../fish/guestfish-actions.pod:725
24063 msgid "See also: L</sh-lines>"
24064 msgstr ""
24065
24066 # type: =head2
24067 #. type: =head2
24068 #: ../fish/guestfish-actions.pod:730
24069 msgid "config"
24070 msgstr ""
24071
24072 # type: verbatim
24073 #. type: verbatim
24074 #: ../fish/guestfish-actions.pod:732
24075 #, no-wrap
24076 msgid ""
24077 " config qemuparam qemuvalue\n"
24078 "\n"
24079 msgstr ""
24080
24081 # type: =head2
24082 #. type: =head2
24083 #: ../fish/guestfish-actions.pod:743
24084 msgid "copy-size"
24085 msgstr ""
24086
24087 # type: verbatim
24088 #. type: verbatim
24089 #: ../fish/guestfish-actions.pod:745
24090 #, no-wrap
24091 msgid ""
24092 " copy-size src dest size\n"
24093 "\n"
24094 msgstr ""
24095
24096 # type: =head2
24097 #. type: =head2
24098 #: ../fish/guestfish-actions.pod:753
24099 msgid "cp"
24100 msgstr ""
24101
24102 # type: verbatim
24103 #. type: verbatim
24104 #: ../fish/guestfish-actions.pod:755
24105 #, no-wrap
24106 msgid ""
24107 " cp src dest\n"
24108 "\n"
24109 msgstr ""
24110
24111 # type: =head2
24112 #. type: =head2
24113 #: ../fish/guestfish-actions.pod:760
24114 msgid "cp-a"
24115 msgstr ""
24116
24117 # type: verbatim
24118 #. type: verbatim
24119 #: ../fish/guestfish-actions.pod:762
24120 #, no-wrap
24121 msgid ""
24122 " cp-a src dest\n"
24123 "\n"
24124 msgstr ""
24125
24126 # type: =head2
24127 #. type: =head2
24128 #: ../fish/guestfish-actions.pod:767
24129 msgid "dd"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #. type: verbatim
24134 #: ../fish/guestfish-actions.pod:769
24135 #, no-wrap
24136 msgid ""
24137 " dd src dest\n"
24138 "\n"
24139 msgstr ""
24140
24141 # type: textblock
24142 #. type: textblock
24143 #: ../fish/guestfish-actions.pod:776
24144 msgid ""
24145 "If the destination is a device, it must be as large or larger than the "
24146 "source file or device, otherwise the copy will fail.  This command cannot do "
24147 "partial copies (see L</copy-size>)."
24148 msgstr ""
24149
24150 # type: =head2
24151 #. type: =head2
24152 #: ../fish/guestfish-actions.pod:780
24153 msgid "df"
24154 msgstr ""
24155
24156 # type: verbatim
24157 #. type: verbatim
24158 #: ../fish/guestfish-actions.pod:782
24159 #, no-wrap
24160 msgid ""
24161 " df\n"
24162 "\n"
24163 msgstr ""
24164
24165 # type: textblock
24166 #. type: textblock
24167 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
24168 msgid ""
24169 "This command is mostly useful for interactive sessions.  It is I<not> "
24170 "intended that you try to parse the output string.  Use L</statvfs> from "
24171 "programs."
24172 msgstr ""
24173
24174 # type: =head2
24175 #. type: =head2
24176 #: ../fish/guestfish-actions.pod:790
24177 msgid "df-h"
24178 msgstr ""
24179
24180 # type: verbatim
24181 #. type: verbatim
24182 #: ../fish/guestfish-actions.pod:792
24183 #, no-wrap
24184 msgid ""
24185 " df-h\n"
24186 "\n"
24187 msgstr ""
24188
24189 # type: =head2
24190 #. type: =head2
24191 #: ../fish/guestfish-actions.pod:801
24192 msgid "dmesg"
24193 msgstr ""
24194
24195 # type: verbatim
24196 #. type: verbatim
24197 #: ../fish/guestfish-actions.pod:803
24198 #, no-wrap
24199 msgid ""
24200 " dmesg\n"
24201 "\n"
24202 msgstr ""
24203
24204 # type: textblock
24205 #. type: textblock
24206 #: ../fish/guestfish-actions.pod:809
24207 msgid ""
24208 "Another way to get the same information is to enable verbose messages with "
24209 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24210 "before running the program."
24211 msgstr ""
24212
24213 # type: =head2
24214 #. type: =head2
24215 #: ../fish/guestfish-actions.pod:814
24216 msgid "download"
24217 msgstr ""
24218
24219 # type: verbatim
24220 #. type: verbatim
24221 #: ../fish/guestfish-actions.pod:816
24222 #, no-wrap
24223 msgid ""
24224 " download remotefilename (filename|-)\n"
24225 "\n"
24226 msgstr ""
24227
24228 # type: textblock
24229 #. type: textblock
24230 #: ../fish/guestfish-actions.pod:823
24231 msgid "See also L</upload>, L</cat>."
24232 msgstr ""
24233
24234 # type: =head2
24235 #. type: =head2
24236 #: ../fish/guestfish-actions.pod:827
24237 msgid "download-offset"
24238 msgstr ""
24239
24240 # type: verbatim
24241 #. type: verbatim
24242 #: ../fish/guestfish-actions.pod:829
24243 #, no-wrap
24244 msgid ""
24245 " download-offset remotefilename (filename|-) offset size\n"
24246 "\n"
24247 msgstr ""
24248
24249 # type: textblock
24250 #. type: textblock
24251 #: ../fish/guestfish-actions.pod:837
24252 msgid ""
24253 "Note that there is no limit on the amount of data that can be downloaded "
24254 "with this call, unlike with L</pread>, and this call always reads the full "
24255 "amount unless an error occurs."
24256 msgstr ""
24257
24258 # type: textblock
24259 #. type: textblock
24260 #: ../fish/guestfish-actions.pod:842
24261 msgid "See also L</download>, L</pread>."
24262 msgstr ""
24263
24264 # type: =head2
24265 #. type: =head2
24266 #: ../fish/guestfish-actions.pod:846
24267 msgid "drop-caches"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #. type: verbatim
24272 #: ../fish/guestfish-actions.pod:848
24273 #, no-wrap
24274 msgid ""
24275 " drop-caches whattodrop\n"
24276 "\n"
24277 msgstr ""
24278
24279 # type: =head2
24280 #. type: =head2
24281 #: ../fish/guestfish-actions.pod:860
24282 msgid "du"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #. type: verbatim
24287 #: ../fish/guestfish-actions.pod:862
24288 #, no-wrap
24289 msgid ""
24290 " du path\n"
24291 "\n"
24292 msgstr ""
24293
24294 # type: =head2
24295 #. type: =head2
24296 #: ../fish/guestfish-actions.pod:874
24297 msgid "e2fsck-f"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #. type: verbatim
24302 #: ../fish/guestfish-actions.pod:876
24303 #, no-wrap
24304 msgid ""
24305 " e2fsck-f device\n"
24306 "\n"
24307 msgstr ""
24308
24309 # type: textblock
24310 #. type: textblock
24311 #: ../fish/guestfish-actions.pod:882
24312 msgid ""
24313 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24314 "should use L</fsck>."
24315 msgstr ""
24316
24317 # type: =head2
24318 #. type: =head2
24319 #: ../fish/guestfish-actions.pod:885
24320 msgid "echo-daemon"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #. type: verbatim
24325 #: ../fish/guestfish-actions.pod:887
24326 #, no-wrap
24327 msgid ""
24328 " echo-daemon 'words ...'\n"
24329 "\n"
24330 msgstr ""
24331
24332 # type: textblock
24333 #. type: textblock
24334 #: ../fish/guestfish-actions.pod:894
24335 msgid "See also L</ping-daemon>."
24336 msgstr ""
24337
24338 # type: =head2
24339 #. type: =head2
24340 #: ../fish/guestfish-actions.pod:896
24341 msgid "egrep"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #. type: verbatim
24346 #: ../fish/guestfish-actions.pod:898
24347 #, no-wrap
24348 msgid ""
24349 " egrep regex path\n"
24350 "\n"
24351 msgstr ""
24352
24353 # type: =head2
24354 #. type: =head2
24355 #: ../fish/guestfish-actions.pod:906
24356 msgid "egrepi"
24357 msgstr ""
24358
24359 # type: verbatim
24360 #. type: verbatim
24361 #: ../fish/guestfish-actions.pod:908
24362 #, no-wrap
24363 msgid ""
24364 " egrepi regex path\n"
24365 "\n"
24366 msgstr ""
24367
24368 # type: =head2
24369 #. type: =head2
24370 #: ../fish/guestfish-actions.pod:916
24371 msgid "equal"
24372 msgstr ""
24373
24374 # type: verbatim
24375 #. type: verbatim
24376 #: ../fish/guestfish-actions.pod:918
24377 #, no-wrap
24378 msgid ""
24379 " equal file1 file2\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: =head2
24384 #. type: =head2
24385 #: ../fish/guestfish-actions.pod:925
24386 msgid "exists"
24387 msgstr ""
24388
24389 # type: verbatim
24390 #. type: verbatim
24391 #: ../fish/guestfish-actions.pod:927
24392 #, no-wrap
24393 msgid ""
24394 " exists path\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: textblock
24399 #. type: textblock
24400 #: ../fish/guestfish-actions.pod:932
24401 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24402 msgstr ""
24403
24404 # type: =head2
24405 #. type: =head2
24406 #: ../fish/guestfish-actions.pod:934
24407 msgid "fallocate"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #. type: verbatim
24412 #: ../fish/guestfish-actions.pod:936
24413 #, no-wrap
24414 msgid ""
24415 " fallocate path len\n"
24416 "\n"
24417 msgstr ""
24418
24419 # type: =head2
24420 #. type: =head2
24421 #: ../fish/guestfish-actions.pod:953
24422 msgid "fallocate64"
24423 msgstr ""
24424
24425 # type: verbatim
24426 #. type: verbatim
24427 #: ../fish/guestfish-actions.pod:955
24428 #, no-wrap
24429 msgid ""
24430 " fallocate64 path len\n"
24431 "\n"
24432 msgstr ""
24433
24434 # type: textblock
24435 #. type: textblock
24436 #: ../fish/guestfish-actions.pod:961
24437 msgid ""
24438 "Note that this call allocates disk blocks for the file.  To create a sparse "
24439 "file use L</truncate-size> instead."
24440 msgstr ""
24441
24442 # type: textblock
24443 #. type: textblock
24444 #: ../fish/guestfish-actions.pod:964
24445 msgid ""
24446 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24447 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24448 "maximum size of files created through that call to 1GB."
24449 msgstr ""
24450
24451 # type: =head2
24452 #. type: =head2
24453 #: ../fish/guestfish-actions.pod:973
24454 msgid "fgrep"
24455 msgstr ""
24456
24457 # type: verbatim
24458 #. type: verbatim
24459 #: ../fish/guestfish-actions.pod:975
24460 #, no-wrap
24461 msgid ""
24462 " fgrep pattern path\n"
24463 "\n"
24464 msgstr ""
24465
24466 # type: =head2
24467 #. type: =head2
24468 #: ../fish/guestfish-actions.pod:983
24469 msgid "fgrepi"
24470 msgstr ""
24471
24472 # type: verbatim
24473 #. type: verbatim
24474 #: ../fish/guestfish-actions.pod:985
24475 #, no-wrap
24476 msgid ""
24477 " fgrepi pattern path\n"
24478 "\n"
24479 msgstr ""
24480
24481 # type: =head2
24482 #. type: =head2
24483 #: ../fish/guestfish-actions.pod:993
24484 msgid "file"
24485 msgstr ""
24486
24487 # type: verbatim
24488 #. type: verbatim
24489 #: ../fish/guestfish-actions.pod:995
24490 #, no-wrap
24491 msgid ""
24492 " file path\n"
24493 "\n"
24494 msgstr ""
24495
24496 # type: textblock
24497 #. type: textblock
24498 #: ../fish/guestfish-actions.pod:1007
24499 msgid ""
24500 "This command can also be used on C</dev/> devices (and partitions, LV "
24501 "names).  You can for example use this to determine if a device contains a "
24502 "filesystem, although it's usually better to use L</vfs-type>."
24503 msgstr ""
24504
24505 # type: =head2
24506 #. type: =head2
24507 #: ../fish/guestfish-actions.pod:1017
24508 msgid "file-architecture"
24509 msgstr ""
24510
24511 # type: verbatim
24512 #. type: verbatim
24513 #: ../fish/guestfish-actions.pod:1019
24514 #, no-wrap
24515 msgid ""
24516 " file-architecture filename\n"
24517 "\n"
24518 msgstr ""
24519
24520 # type: =head2
24521 #. type: =head2
24522 #: ../fish/guestfish-actions.pod:1122
24523 msgid "filesize"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #. type: verbatim
24528 #: ../fish/guestfish-actions.pod:1124
24529 #, no-wrap
24530 msgid ""
24531 " filesize file\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: textblock
24536 #. type: textblock
24537 #: ../fish/guestfish-actions.pod:1128
24538 msgid ""
24539 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24540 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24541 msgstr ""
24542
24543 # type: =head2
24544 #. type: =head2
24545 #: ../fish/guestfish-actions.pod:1132
24546 msgid "fill"
24547 msgstr ""
24548
24549 # type: verbatim
24550 #. type: verbatim
24551 #: ../fish/guestfish-actions.pod:1134
24552 #, no-wrap
24553 msgid ""
24554 " fill c len path\n"
24555 "\n"
24556 msgstr ""
24557
24558 # type: textblock
24559 #. type: textblock
24560 #: ../fish/guestfish-actions.pod:1140
24561 msgid ""
24562 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24563 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
24564 "L</fill-pattern>."
24565 msgstr ""
24566
24567 # type: =head2
24568 #. type: =head2
24569 #: ../fish/guestfish-actions.pod:1145
24570 msgid "fill-pattern"
24571 msgstr ""
24572
24573 # type: verbatim
24574 #. type: verbatim
24575 #: ../fish/guestfish-actions.pod:1147
24576 #, no-wrap
24577 msgid ""
24578 " fill-pattern pattern len path\n"
24579 "\n"
24580 msgstr ""
24581
24582 # type: textblock
24583 #. type: textblock
24584 #: ../fish/guestfish-actions.pod:1149
24585 msgid ""
24586 "This function is like L</fill> except that it creates a new file of length "
24587 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
24588 "is truncated if necessary to ensure the length of the file is exactly C<len> "
24589 "bytes."
24590 msgstr ""
24591
24592 # type: =head2
24593 #. type: =head2
24594 #: ../fish/guestfish-actions.pod:1154
24595 msgid "find"
24596 msgstr ""
24597
24598 # type: verbatim
24599 #. type: verbatim
24600 #: ../fish/guestfish-actions.pod:1156
24601 #, no-wrap
24602 msgid ""
24603 " find directory\n"
24604 "\n"
24605 msgstr ""
24606
24607 # type: textblock
24608 #. type: textblock
24609 #: ../fish/guestfish-actions.pod:1170
24610 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24611 msgstr ""
24612
24613 # type: textblock
24614 #. type: textblock
24615 #: ../fish/guestfish-actions.pod:1183
24616 msgid "See also L</find0>."
24617 msgstr ""
24618
24619 # type: =head2
24620 #. type: =head2
24621 #: ../fish/guestfish-actions.pod:1188
24622 msgid "find0"
24623 msgstr ""
24624
24625 # type: verbatim
24626 #. type: verbatim
24627 #: ../fish/guestfish-actions.pod:1190
24628 #, no-wrap
24629 msgid ""
24630 " find0 directory (files|-)\n"
24631 "\n"
24632 msgstr ""
24633
24634 # type: textblock
24635 #. type: textblock
24636 #: ../fish/guestfish-actions.pod:1196
24637 msgid ""
24638 "This command works the same way as L</find> with the following exceptions:"
24639 msgstr ""
24640
24641 # type: =head2
24642 #. type: =head2
24643 #: ../fish/guestfish-actions.pod:1223
24644 msgid "findfs-label"
24645 msgstr ""
24646
24647 # type: verbatim
24648 #. type: verbatim
24649 #: ../fish/guestfish-actions.pod:1225
24650 #, no-wrap
24651 msgid ""
24652 " findfs-label label\n"
24653 "\n"
24654 msgstr ""
24655
24656 # type: textblock
24657 #. type: textblock
24658 #: ../fish/guestfish-actions.pod:1231
24659 msgid "To find the label of a filesystem, use L</vfs-label>."
24660 msgstr ""
24661
24662 # type: =head2
24663 #. type: =head2
24664 #: ../fish/guestfish-actions.pod:1233
24665 msgid "findfs-uuid"
24666 msgstr ""
24667
24668 # type: verbatim
24669 #. type: verbatim
24670 #: ../fish/guestfish-actions.pod:1235
24671 #, no-wrap
24672 msgid ""
24673 " findfs-uuid uuid\n"
24674 "\n"
24675 msgstr ""
24676
24677 # type: textblock
24678 #. type: textblock
24679 #: ../fish/guestfish-actions.pod:1241
24680 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24681 msgstr ""
24682
24683 # type: =head2
24684 #. type: =head2
24685 #: ../fish/guestfish-actions.pod:1243
24686 msgid "fsck"
24687 msgstr ""
24688
24689 # type: verbatim
24690 #. type: verbatim
24691 #: ../fish/guestfish-actions.pod:1245
24692 #, no-wrap
24693 msgid ""
24694 " fsck fstype device\n"
24695 "\n"
24696 msgstr ""
24697
24698 # type: =head2
24699 #. type: =head2
24700 #: ../fish/guestfish-actions.pod:1275
24701 msgid "get-append"
24702 msgstr ""
24703
24704 # type: verbatim
24705 #. type: verbatim
24706 #: ../fish/guestfish-actions.pod:1277
24707 #, no-wrap
24708 msgid ""
24709 " get-append\n"
24710 "\n"
24711 msgstr ""
24712
24713 # type: =head2
24714 #. type: =head2
24715 #: ../fish/guestfish-actions.pod:1284
24716 msgid "get-autosync"
24717 msgstr ""
24718
24719 # type: verbatim
24720 #. type: verbatim
24721 #: ../fish/guestfish-actions.pod:1286
24722 #, no-wrap
24723 msgid ""
24724 " get-autosync\n"
24725 "\n"
24726 msgstr ""
24727
24728 # type: =head2
24729 #. type: =head2
24730 #: ../fish/guestfish-actions.pod:1290
24731 msgid "get-direct"
24732 msgstr ""
24733
24734 # type: verbatim
24735 #. type: verbatim
24736 #: ../fish/guestfish-actions.pod:1292
24737 #, no-wrap
24738 msgid ""
24739 " get-direct\n"
24740 "\n"
24741 msgstr ""
24742
24743 # type: =head2
24744 #. type: =head2
24745 #: ../fish/guestfish-actions.pod:1296
24746 msgid "get-e2label"
24747 msgstr ""
24748
24749 # type: verbatim
24750 #. type: verbatim
24751 #: ../fish/guestfish-actions.pod:1298
24752 #, no-wrap
24753 msgid ""
24754 " get-e2label device\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: =head2
24759 #. type: =head2
24760 #: ../fish/guestfish-actions.pod:1310
24761 msgid "get-e2uuid"
24762 msgstr ""
24763
24764 # type: verbatim
24765 #. type: verbatim
24766 #: ../fish/guestfish-actions.pod:1312
24767 #, no-wrap
24768 msgid ""
24769 " get-e2uuid device\n"
24770 "\n"
24771 msgstr ""
24772
24773 # type: =head2
24774 #. type: =head2
24775 #: ../fish/guestfish-actions.pod:1324
24776 msgid "get-memsize"
24777 msgstr ""
24778
24779 # type: verbatim
24780 #. type: verbatim
24781 #: ../fish/guestfish-actions.pod:1326
24782 #, no-wrap
24783 msgid ""
24784 " get-memsize\n"
24785 "\n"
24786 msgstr ""
24787
24788 # type: textblock
24789 #. type: textblock
24790 #: ../fish/guestfish-actions.pod:1331
24791 msgid ""
24792 "If L</set-memsize> was not called on this handle, and if "
24793 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24794 "value for memsize."
24795 msgstr ""
24796
24797 # type: =head2
24798 #. type: =head2
24799 #: ../fish/guestfish-actions.pod:1338
24800 msgid "get-network"
24801 msgstr ""
24802
24803 # type: verbatim
24804 #. type: verbatim
24805 #: ../fish/guestfish-actions.pod:1340
24806 #, no-wrap
24807 msgid ""
24808 " get-network\n"
24809 "\n"
24810 msgstr ""
24811
24812 # type: =head2
24813 #. type: =head2
24814 #: ../fish/guestfish-actions.pod:1344
24815 msgid "get-path"
24816 msgstr ""
24817
24818 # type: verbatim
24819 #. type: verbatim
24820 #: ../fish/guestfish-actions.pod:1346
24821 #, no-wrap
24822 msgid ""
24823 " get-path\n"
24824 "\n"
24825 msgstr ""
24826
24827 # type: =head2
24828 #. type: =head2
24829 #: ../fish/guestfish-actions.pod:1353
24830 msgid "get-pid"
24831 msgstr ""
24832
24833 # type: =head2
24834 #. type: =head2
24835 #: ../fish/guestfish-actions.pod:1355
24836 msgid "pid"
24837 msgstr ""
24838
24839 # type: verbatim
24840 #. type: verbatim
24841 #: ../fish/guestfish-actions.pod:1357
24842 #, no-wrap
24843 msgid ""
24844 " get-pid\n"
24845 "\n"
24846 msgstr ""
24847
24848 # type: =head2
24849 #. type: =head2
24850 #: ../fish/guestfish-actions.pod:1364
24851 msgid "get-qemu"
24852 msgstr ""
24853
24854 # type: verbatim
24855 #. type: verbatim
24856 #: ../fish/guestfish-actions.pod:1366
24857 #, no-wrap
24858 msgid ""
24859 " get-qemu\n"
24860 "\n"
24861 msgstr ""
24862
24863 # type: =head2
24864 #. type: =head2
24865 #: ../fish/guestfish-actions.pod:1373
24866 msgid "get-recovery-proc"
24867 msgstr ""
24868
24869 # type: verbatim
24870 #. type: verbatim
24871 #: ../fish/guestfish-actions.pod:1375
24872 #, no-wrap
24873 msgid ""
24874 " get-recovery-proc\n"
24875 "\n"
24876 msgstr ""
24877
24878 # type: =head2
24879 #. type: =head2
24880 #: ../fish/guestfish-actions.pod:1379
24881 msgid "get-selinux"
24882 msgstr ""
24883
24884 # type: verbatim
24885 #. type: verbatim
24886 #: ../fish/guestfish-actions.pod:1381
24887 #, no-wrap
24888 msgid ""
24889 " get-selinux\n"
24890 "\n"
24891 msgstr ""
24892
24893 # type: textblock
24894 #. type: textblock
24895 #: ../fish/guestfish-actions.pod:1383
24896 msgid ""
24897 "This returns the current setting of the selinux flag which is passed to the "
24898 "appliance at boot time.  See L</set-selinux>."
24899 msgstr ""
24900
24901 # type: =head2
24902 #. type: =head2
24903 #: ../fish/guestfish-actions.pod:1389
24904 msgid "get-state"
24905 msgstr ""
24906
24907 # type: verbatim
24908 #. type: verbatim
24909 #: ../fish/guestfish-actions.pod:1391
24910 #, no-wrap
24911 msgid ""
24912 " get-state\n"
24913 "\n"
24914 msgstr ""
24915
24916 # type: =head2
24917 #. type: =head2
24918 #: ../fish/guestfish-actions.pod:1398
24919 msgid "get-trace"
24920 msgstr ""
24921
24922 # type: verbatim
24923 #. type: verbatim
24924 #: ../fish/guestfish-actions.pod:1400
24925 #, no-wrap
24926 msgid ""
24927 " get-trace\n"
24928 "\n"
24929 msgstr ""
24930
24931 # type: =head2
24932 #. type: =head2
24933 #: ../fish/guestfish-actions.pod:1404
24934 msgid "get-umask"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #. type: verbatim
24939 #: ../fish/guestfish-actions.pod:1406
24940 #, no-wrap
24941 msgid ""
24942 " get-umask\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: textblock
24947 #. type: textblock
24948 #: ../fish/guestfish-actions.pod:1408
24949 msgid ""
24950 "Return the current umask.  By default the umask is C<022> unless it has been "
24951 "set by calling L</umask>."
24952 msgstr ""
24953
24954 # type: =head2
24955 #. type: =head2
24956 #: ../fish/guestfish-actions.pod:1411
24957 msgid "get-verbose"
24958 msgstr ""
24959
24960 # type: verbatim
24961 #. type: verbatim
24962 #: ../fish/guestfish-actions.pod:1413
24963 #, no-wrap
24964 msgid ""
24965 " get-verbose\n"
24966 "\n"
24967 msgstr ""
24968
24969 # type: =head2
24970 #. type: =head2
24971 #: ../fish/guestfish-actions.pod:1417
24972 msgid "getcon"
24973 msgstr ""
24974
24975 # type: verbatim
24976 #. type: verbatim
24977 #: ../fish/guestfish-actions.pod:1419
24978 #, no-wrap
24979 msgid ""
24980 " getcon\n"
24981 "\n"
24982 msgstr ""
24983
24984 # type: textblock
24985 #. type: textblock
24986 #: ../fish/guestfish-actions.pod:1423
24987 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
24988 msgstr ""
24989
24990 # type: =head2
24991 #. type: =head2
24992 #: ../fish/guestfish-actions.pod:1426
24993 msgid "getxattr"
24994 msgstr ""
24995
24996 # type: verbatim
24997 #. type: verbatim
24998 #: ../fish/guestfish-actions.pod:1428
24999 #, no-wrap
25000 msgid ""
25001 " getxattr path name\n"
25002 "\n"
25003 msgstr ""
25004
25005 # type: textblock
25006 #. type: textblock
25007 #: ../fish/guestfish-actions.pod:1430
25008 msgid ""
25009 "Get a single extended attribute from file C<path> named C<name>.  This call "
25010 "follows symlinks.  If you want to lookup an extended attribute for the "
25011 "symlink itself, use L</lgetxattr>."
25012 msgstr ""
25013
25014 # type: textblock
25015 #. type: textblock
25016 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2261
25017 msgid ""
25018 "Normally it is better to get all extended attributes from a file in one go "
25019 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25020 "buggy and do not provide a way to list out attributes.  For these "
25021 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25022 "attributes you want in advance and call this function."
25023 msgstr ""
25024
25025 # type: textblock
25026 #. type: textblock
25027 #: ../fish/guestfish-actions.pod:1444
25028 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25029 msgstr ""
25030
25031 # type: =head2
25032 #. type: =head2
25033 #: ../fish/guestfish-actions.pod:1446
25034 msgid "getxattrs"
25035 msgstr ""
25036
25037 # type: verbatim
25038 #. type: verbatim
25039 #: ../fish/guestfish-actions.pod:1448
25040 #, no-wrap
25041 msgid ""
25042 " getxattrs path\n"
25043 "\n"
25044 msgstr ""
25045
25046 # type: textblock
25047 #. type: textblock
25048 #: ../fish/guestfish-actions.pod:1456
25049 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25050 msgstr ""
25051
25052 # type: =head2
25053 #. type: =head2
25054 #: ../fish/guestfish-actions.pod:1458
25055 msgid "glob-expand"
25056 msgstr ""
25057
25058 # type: verbatim
25059 #. type: verbatim
25060 #: ../fish/guestfish-actions.pod:1460
25061 #, no-wrap
25062 msgid ""
25063 " glob-expand pattern\n"
25064 "\n"
25065 msgstr ""
25066
25067 # type: =head2
25068 #. type: =head2
25069 #: ../fish/guestfish-actions.pod:1473
25070 msgid "grep"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #. type: verbatim
25075 #: ../fish/guestfish-actions.pod:1475
25076 #, no-wrap
25077 msgid ""
25078 " grep regex path\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: =head2
25083 #. type: =head2
25084 #: ../fish/guestfish-actions.pod:1483
25085 msgid "grepi"
25086 msgstr ""
25087
25088 # type: verbatim
25089 #. type: verbatim
25090 #: ../fish/guestfish-actions.pod:1485
25091 #, no-wrap
25092 msgid ""
25093 " grepi regex path\n"
25094 "\n"
25095 msgstr ""
25096
25097 # type: =head2
25098 #. type: =head2
25099 #: ../fish/guestfish-actions.pod:1493
25100 msgid "grub-install"
25101 msgstr ""
25102
25103 # type: verbatim
25104 #. type: verbatim
25105 #: ../fish/guestfish-actions.pod:1495
25106 #, no-wrap
25107 msgid ""
25108 " grub-install root device\n"
25109 "\n"
25110 msgstr ""
25111
25112 # type: =head2
25113 #. type: =head2
25114 #: ../fish/guestfish-actions.pod:1511
25115 msgid "head"
25116 msgstr ""
25117
25118 # type: verbatim
25119 #. type: verbatim
25120 #: ../fish/guestfish-actions.pod:1513
25121 #, no-wrap
25122 msgid ""
25123 " head path\n"
25124 "\n"
25125 msgstr ""
25126
25127 # type: =head2
25128 #. type: =head2
25129 #: ../fish/guestfish-actions.pod:1521
25130 msgid "head-n"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #. type: verbatim
25135 #: ../fish/guestfish-actions.pod:1523
25136 #, no-wrap
25137 msgid ""
25138 " head-n nrlines path\n"
25139 "\n"
25140 msgstr ""
25141
25142 # type: =head2
25143 #. type: =head2
25144 #: ../fish/guestfish-actions.pod:1536
25145 msgid "hexdump"
25146 msgstr ""
25147
25148 # type: verbatim
25149 #. type: verbatim
25150 #: ../fish/guestfish-actions.pod:1538
25151 #, no-wrap
25152 msgid ""
25153 " hexdump path\n"
25154 "\n"
25155 msgstr ""
25156
25157 # type: =head2
25158 #. type: =head2
25159 #: ../fish/guestfish-actions.pod:1546
25160 msgid "initrd-cat"
25161 msgstr ""
25162
25163 # type: verbatim
25164 #. type: verbatim
25165 #: ../fish/guestfish-actions.pod:1548
25166 #, no-wrap
25167 msgid ""
25168 " initrd-cat initrdpath filename\n"
25169 "\n"
25170 msgstr ""
25171
25172 # type: textblock
25173 #. type: textblock
25174 #: ../fish/guestfish-actions.pod:1560
25175 msgid "See also L</initrd-list>."
25176 msgstr ""
25177
25178 # type: =head2
25179 #. type: =head2
25180 #: ../fish/guestfish-actions.pod:1565
25181 msgid "initrd-list"
25182 msgstr ""
25183
25184 # type: verbatim
25185 #. type: verbatim
25186 #: ../fish/guestfish-actions.pod:1567
25187 #, no-wrap
25188 msgid ""
25189 " initrd-list path\n"
25190 "\n"
25191 msgstr ""
25192
25193 # type: =head2
25194 #. type: =head2
25195 #: ../fish/guestfish-actions.pod:1579
25196 msgid "inotify-add-watch"
25197 msgstr ""
25198
25199 # type: verbatim
25200 #. type: verbatim
25201 #: ../fish/guestfish-actions.pod:1581
25202 #, no-wrap
25203 msgid ""
25204 " inotify-add-watch path mask\n"
25205 "\n"
25206 msgstr ""
25207
25208 # type: =head2
25209 #. type: =head2
25210 #: ../fish/guestfish-actions.pod:1593
25211 msgid "inotify-close"
25212 msgstr ""
25213
25214 # type: verbatim
25215 #. type: verbatim
25216 #: ../fish/guestfish-actions.pod:1595
25217 #, no-wrap
25218 msgid ""
25219 " inotify-close\n"
25220 "\n"
25221 msgstr ""
25222
25223 # type: =head2
25224 #. type: =head2
25225 #: ../fish/guestfish-actions.pod:1601
25226 msgid "inotify-files"
25227 msgstr ""
25228
25229 # type: verbatim
25230 #. type: verbatim
25231 #: ../fish/guestfish-actions.pod:1603
25232 #, no-wrap
25233 msgid ""
25234 " inotify-files\n"
25235 "\n"
25236 msgstr ""
25237
25238 # type: textblock
25239 #. type: textblock
25240 #: ../fish/guestfish-actions.pod:1605
25241 msgid ""
25242 "This function is a helpful wrapper around L</inotify-read> which just "
25243 "returns a list of pathnames of objects that were touched.  The returned "
25244 "pathnames are sorted and deduplicated."
25245 msgstr ""
25246
25247 # type: =head2
25248 #. type: =head2
25249 #: ../fish/guestfish-actions.pod:1609
25250 msgid "inotify-init"
25251 msgstr ""
25252
25253 # type: verbatim
25254 #. type: verbatim
25255 #: ../fish/guestfish-actions.pod:1611
25256 #, no-wrap
25257 msgid ""
25258 " inotify-init maxevents\n"
25259 "\n"
25260 msgstr ""
25261
25262 # type: textblock
25263 #. type: textblock
25264 #: ../fish/guestfish-actions.pod:1617
25265 msgid ""
25266 "C<maxevents> is the maximum number of events which will be queued up between "
25267 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
25268 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
25269 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
25270 "but records the fact that it threw them away by setting a flag "
25271 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25272 msgstr ""
25273
25274 # type: textblock
25275 #. type: textblock
25276 #: ../fish/guestfish-actions.pod:1627
25277 msgid ""
25278 "Before any events are generated, you have to add some watches to the "
25279 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
25280 "L</inotify-watch-all>."
25281 msgstr ""
25282
25283 # type: textblock
25284 #. type: textblock
25285 #: ../fish/guestfish-actions.pod:1633
25286 msgid ""
25287 "Queued up events should be read periodically by calling L</inotify-read> (or "
25288 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
25289 "If you don't read the events out often enough then you risk the internal "
25290 "queue overflowing."
25291 msgstr ""
25292
25293 # type: textblock
25294 #. type: textblock
25295 #: ../fish/guestfish-actions.pod:1640
25296 msgid ""
25297 "The handle should be closed after use by calling L</inotify-close>.  This "
25298 "also removes any watches automatically."
25299 msgstr ""
25300
25301 # type: =head2
25302 #. type: =head2
25303 #: ../fish/guestfish-actions.pod:1649
25304 msgid "inotify-read"
25305 msgstr ""
25306
25307 # type: verbatim
25308 #. type: verbatim
25309 #: ../fish/guestfish-actions.pod:1651
25310 #, no-wrap
25311 msgid ""
25312 " inotify-read\n"
25313 "\n"
25314 msgstr ""
25315
25316 # type: =head2
25317 #. type: =head2
25318 #: ../fish/guestfish-actions.pod:1664
25319 msgid "inotify-rm-watch"
25320 msgstr ""
25321
25322 # type: verbatim
25323 #. type: verbatim
25324 #: ../fish/guestfish-actions.pod:1666
25325 #, no-wrap
25326 msgid ""
25327 " inotify-rm-watch wd\n"
25328 "\n"
25329 msgstr ""
25330
25331 # type: textblock
25332 #. type: textblock
25333 #: ../fish/guestfish-actions.pod:1668
25334 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25335 msgstr ""
25336
25337 # type: =head2
25338 #. type: =head2
25339 #: ../fish/guestfish-actions.pod:1671
25340 msgid "inspect-get-arch"
25341 msgstr ""
25342
25343 # type: verbatim
25344 #. type: verbatim
25345 #: ../fish/guestfish-actions.pod:1673
25346 #, no-wrap
25347 msgid ""
25348 " inspect-get-arch root\n"
25349 "\n"
25350 msgstr ""
25351
25352 # type: textblock
25353 #. type: textblock
25354 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691
25355 #: ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783
25356 #: ../fish/guestfish-actions.pod:1798 ../fish/guestfish-actions.pod:1819
25357 #: ../fish/guestfish-actions.pod:1834 ../fish/guestfish-actions.pod:1857
25358 #: ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1903
25359 #: ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1968
25360 #: ../fish/guestfish-actions.pod:1984
25361 msgid ""
25362 "This function should only be called with a root device string as returned by "
25363 "L</inspect-os>."
25364 msgstr ""
25365
25366 # type: textblock
25367 #. type: textblock
25368 #: ../fish/guestfish-actions.pod:1678
25369 msgid ""
25370 "This returns the architecture of the inspected operating system.  The "
25371 "possible return values are listed under L</file-architecture>."
25372 msgstr ""
25373
25374 # type: =head2
25375 #. type: =head2
25376 #: ../fish/guestfish-actions.pod:1687
25377 msgid "inspect-get-distro"
25378 msgstr ""
25379
25380 # type: verbatim
25381 #. type: verbatim
25382 #: ../fish/guestfish-actions.pod:1689
25383 #, no-wrap
25384 msgid ""
25385 " inspect-get-distro root\n"
25386 "\n"
25387 msgstr ""
25388
25389 # type: =head2
25390 #. type: =head2
25391 #: ../fish/guestfish-actions.pod:1761
25392 msgid "inspect-get-filesystems"
25393 msgstr ""
25394
25395 # type: verbatim
25396 #. type: verbatim
25397 #: ../fish/guestfish-actions.pod:1763
25398 #, no-wrap
25399 msgid ""
25400 " inspect-get-filesystems root\n"
25401 "\n"
25402 msgstr ""
25403
25404 # type: textblock
25405 #. type: textblock
25406 #: ../fish/guestfish-actions.pod:1776
25407 msgid ""
25408 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25409 "get-mountpoints>."
25410 msgstr ""
25411
25412 # type: =head2
25413 #. type: =head2
25414 #: ../fish/guestfish-actions.pod:1779
25415 msgid "inspect-get-hostname"
25416 msgstr ""
25417
25418 # type: verbatim
25419 #. type: verbatim
25420 #: ../fish/guestfish-actions.pod:1781
25421 #, no-wrap
25422 msgid ""
25423 " inspect-get-hostname root\n"
25424 "\n"
25425 msgstr ""
25426
25427 # type: =head2
25428 #. type: =head2
25429 #: ../fish/guestfish-actions.pod:1794
25430 msgid "inspect-get-major-version"
25431 msgstr ""
25432
25433 # type: verbatim
25434 #. type: verbatim
25435 #: ../fish/guestfish-actions.pod:1796
25436 #, no-wrap
25437 msgid ""
25438 " inspect-get-major-version root\n"
25439 "\n"
25440 msgstr ""
25441
25442 # type: =head2
25443 #. type: =head2
25444 #: ../fish/guestfish-actions.pod:1815
25445 msgid "inspect-get-minor-version"
25446 msgstr ""
25447
25448 # type: verbatim
25449 #. type: verbatim
25450 #: ../fish/guestfish-actions.pod:1817
25451 #, no-wrap
25452 msgid ""
25453 " inspect-get-minor-version root\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #. type: textblock
25459 #: ../fish/guestfish-actions.pod:1827
25460 msgid ""
25461 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25462 "get-major-version>."
25463 msgstr ""
25464
25465 # type: =head2
25466 #. type: =head2
25467 #: ../fish/guestfish-actions.pod:1830
25468 msgid "inspect-get-mountpoints"
25469 msgstr ""
25470
25471 # type: verbatim
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:1832
25474 #, no-wrap
25475 msgid ""
25476 " inspect-get-mountpoints root\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: textblock
25481 #. type: textblock
25482 #: ../fish/guestfish-actions.pod:1850
25483 msgid ""
25484 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25485 "get-filesystems>."
25486 msgstr ""
25487
25488 # type: =head2
25489 #. type: =head2
25490 #: ../fish/guestfish-actions.pod:1853
25491 msgid "inspect-get-package-format"
25492 msgstr ""
25493
25494 # type: verbatim
25495 #. type: verbatim
25496 #: ../fish/guestfish-actions.pod:1855
25497 #, no-wrap
25498 msgid ""
25499 " inspect-get-package-format root\n"
25500 "\n"
25501 msgstr ""
25502
25503 # type: textblock
25504 #. type: textblock
25505 #: ../fish/guestfish-actions.pod:1860
25506 msgid ""
25507 "This function and L</inspect-get-package-management> return the package "
25508 "format and package management tool used by the inspected operating system.  "
25509 "For example for Fedora these functions would return C<rpm> (package format) "
25510 "and C<yum> (package management)."
25511 msgstr ""
25512
25513 # type: =head2
25514 #. type: =head2
25515 #: ../fish/guestfish-actions.pod:1875
25516 msgid "inspect-get-package-management"
25517 msgstr ""
25518
25519 # type: verbatim
25520 #. type: verbatim
25521 #: ../fish/guestfish-actions.pod:1877
25522 #, no-wrap
25523 msgid ""
25524 " inspect-get-package-management root\n"
25525 "\n"
25526 msgstr ""
25527
25528 # type: textblock
25529 #. type: textblock
25530 #: ../fish/guestfish-actions.pod:1882
25531 msgid ""
25532 "L</inspect-get-package-format> and this function return the package format "
25533 "and package management tool used by the inspected operating system.  For "
25534 "example for Fedora these functions would return C<rpm> (package format) and "
25535 "C<yum> (package management)."
25536 msgstr ""
25537
25538 # type: =head2
25539 #. type: =head2
25540 #: ../fish/guestfish-actions.pod:1899
25541 msgid "inspect-get-product-name"
25542 msgstr ""
25543
25544 # type: verbatim
25545 #. type: verbatim
25546 #: ../fish/guestfish-actions.pod:1901
25547 #, no-wrap
25548 msgid ""
25549 " inspect-get-product-name root\n"
25550 "\n"
25551 msgstr ""
25552
25553 # type: =head2
25554 #. type: =head2
25555 #: ../fish/guestfish-actions.pod:1916
25556 msgid "inspect-get-roots"
25557 msgstr ""
25558
25559 # type: verbatim
25560 #. type: verbatim
25561 #: ../fish/guestfish-actions.pod:1918
25562 #, no-wrap
25563 msgid ""
25564 " inspect-get-roots\n"
25565 "\n"
25566 msgstr ""
25567
25568 # type: textblock
25569 #. type: textblock
25570 #: ../fish/guestfish-actions.pod:1920
25571 msgid ""
25572 "This function is a convenient way to get the list of root devices, as "
25573 "returned from a previous call to L</inspect-os>, but without redoing the "
25574 "whole inspection process."
25575 msgstr ""
25576
25577 # type: textblock
25578 #. type: textblock
25579 #: ../fish/guestfish-actions.pod:1924
25580 msgid ""
25581 "This returns an empty list if either no root devices were found or the "
25582 "caller has not called L</inspect-os>."
25583 msgstr ""
25584
25585 # type: =head2
25586 #. type: =head2
25587 #: ../fish/guestfish-actions.pod:1929
25588 msgid "inspect-get-type"
25589 msgstr ""
25590
25591 # type: verbatim
25592 #. type: verbatim
25593 #: ../fish/guestfish-actions.pod:1931
25594 #, no-wrap
25595 msgid ""
25596 " inspect-get-type root\n"
25597 "\n"
25598 msgstr ""
25599
25600 # type: =head2
25601 #. type: =head2
25602 #: ../fish/guestfish-actions.pod:1964
25603 msgid "inspect-get-windows-systemroot"
25604 msgstr ""
25605
25606 # type: verbatim
25607 #. type: verbatim
25608 #: ../fish/guestfish-actions.pod:1966
25609 #, no-wrap
25610 msgid ""
25611 " inspect-get-windows-systemroot root\n"
25612 "\n"
25613 msgstr ""
25614
25615 # type: =head2
25616 #. type: =head2
25617 #: ../fish/guestfish-actions.pod:1980
25618 msgid "inspect-list-applications"
25619 msgstr ""
25620
25621 # type: verbatim
25622 #. type: verbatim
25623 #: ../fish/guestfish-actions.pod:1982
25624 #, no-wrap
25625 msgid ""
25626 " inspect-list-applications root\n"
25627 "\n"
25628 msgstr ""
25629
25630 # type: textblock
25631 #. type: textblock
25632 #: ../fish/guestfish-actions.pod:1989
25633 msgid ""
25634 "I<Note:> This call works differently from other parts of the inspection "
25635 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
25636 "then mount up the disks, before calling this.  Listing applications is a "
25637 "significantly more difficult operation which requires access to the full "
25638 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
25639 "are just returning data cached in the libguestfs handle, this call actually "
25640 "reads parts of the mounted filesystems during the call."
25641 msgstr ""
25642
25643 # type: =head2
25644 #. type: =head2
25645 #: ../fish/guestfish-actions.pod:2079
25646 msgid "inspect-os"
25647 msgstr ""
25648
25649 # type: verbatim
25650 #. type: verbatim
25651 #: ../fish/guestfish-actions.pod:2081
25652 #, no-wrap
25653 msgid ""
25654 " inspect-os\n"
25655 "\n"
25656 msgstr ""
25657
25658 # type: textblock
25659 #. type: textblock
25660 #: ../fish/guestfish-actions.pod:2096
25661 msgid ""
25662 "You can pass the root string(s) returned to other L</inspect-get-*> "
25663 "functions in order to query further information about each operating system, "
25664 "such as the name and version."
25665 msgstr ""
25666
25667 # type: textblock
25668 #. type: textblock
25669 #: ../fish/guestfish-actions.pod:2101
25670 msgid ""
25671 "This function uses other libguestfs features such as L</mount-ro> and L</"
25672 "umount-all> in order to mount and unmount filesystems and look at the "
25673 "contents.  This should be called with no disks currently mounted.  The "
25674 "function may also use Augeas, so any existing Augeas handle will be closed."
25675 msgstr ""
25676
25677 # type: textblock
25678 #. type: textblock
25679 #: ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2289
25680 #: ../fish/guestfish-actions.pod:2335
25681 msgid "See also L</list-filesystems>."
25682 msgstr ""
25683
25684 # type: =head2
25685 #. type: =head2
25686 #: ../fish/guestfish-actions.pod:2115
25687 msgid "is-blockdev"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #. type: verbatim
25692 #: ../fish/guestfish-actions.pod:2117
25693 #, no-wrap
25694 msgid ""
25695 " is-blockdev path\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: textblock
25700 #. type: textblock
25701 #: ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2140
25702 #: ../fish/guestfish-actions.pod:2159 ../fish/guestfish-actions.pod:2168
25703 #: ../fish/guestfish-actions.pod:2178 ../fish/guestfish-actions.pod:2212
25704 #: ../fish/guestfish-actions.pod:2221
25705 msgid "See also L</stat>."
25706 msgstr ""
25707
25708 # type: =head2
25709 #. type: =head2
25710 #: ../fish/guestfish-actions.pod:2124
25711 msgid "is-busy"
25712 msgstr ""
25713
25714 # type: verbatim
25715 #. type: verbatim
25716 #: ../fish/guestfish-actions.pod:2126
25717 #, no-wrap
25718 msgid ""
25719 " is-busy\n"
25720 "\n"
25721 msgstr ""
25722
25723 # type: =head2
25724 #. type: =head2
25725 #: ../fish/guestfish-actions.pod:2133
25726 msgid "is-chardev"
25727 msgstr ""
25728
25729 # type: verbatim
25730 #. type: verbatim
25731 #: ../fish/guestfish-actions.pod:2135
25732 #, no-wrap
25733 msgid ""
25734 " is-chardev path\n"
25735 "\n"
25736 msgstr ""
25737
25738 # type: =head2
25739 #. type: =head2
25740 #: ../fish/guestfish-actions.pod:2142
25741 msgid "is-config"
25742 msgstr ""
25743
25744 # type: verbatim
25745 #. type: verbatim
25746 #: ../fish/guestfish-actions.pod:2144
25747 #, no-wrap
25748 msgid ""
25749 " is-config\n"
25750 "\n"
25751 msgstr ""
25752
25753 # type: =head2
25754 #. type: =head2
25755 #: ../fish/guestfish-actions.pod:2151
25756 msgid "is-dir"
25757 msgstr ""
25758
25759 # type: verbatim
25760 #. type: verbatim
25761 #: ../fish/guestfish-actions.pod:2153
25762 #, no-wrap
25763 msgid ""
25764 " is-dir path\n"
25765 "\n"
25766 msgstr ""
25767
25768 # type: =head2
25769 #. type: =head2
25770 #: ../fish/guestfish-actions.pod:2161
25771 msgid "is-fifo"
25772 msgstr ""
25773
25774 # type: verbatim
25775 #. type: verbatim
25776 #: ../fish/guestfish-actions.pod:2163
25777 #, no-wrap
25778 msgid ""
25779 " is-fifo path\n"
25780 "\n"
25781 msgstr ""
25782
25783 # type: =head2
25784 #. type: =head2
25785 #: ../fish/guestfish-actions.pod:2170
25786 msgid "is-file"
25787 msgstr ""
25788
25789 # type: verbatim
25790 #. type: verbatim
25791 #: ../fish/guestfish-actions.pod:2172
25792 #, no-wrap
25793 msgid ""
25794 " is-file path\n"
25795 "\n"
25796 msgstr ""
25797
25798 # type: =head2
25799 #. type: =head2
25800 #: ../fish/guestfish-actions.pod:2180
25801 msgid "is-launching"
25802 msgstr ""
25803
25804 # type: verbatim
25805 #. type: verbatim
25806 #: ../fish/guestfish-actions.pod:2182
25807 #, no-wrap
25808 msgid ""
25809 " is-launching\n"
25810 "\n"
25811 msgstr ""
25812
25813 # type: =head2
25814 #. type: =head2
25815 #: ../fish/guestfish-actions.pod:2189
25816 msgid "is-lv"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #. type: verbatim
25821 #: ../fish/guestfish-actions.pod:2191
25822 #, no-wrap
25823 msgid ""
25824 " is-lv device\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: =head2
25829 #. type: =head2
25830 #: ../fish/guestfish-actions.pod:2196
25831 msgid "is-ready"
25832 msgstr ""
25833
25834 # type: verbatim
25835 #. type: verbatim
25836 #: ../fish/guestfish-actions.pod:2198
25837 #, no-wrap
25838 msgid ""
25839 " is-ready\n"
25840 "\n"
25841 msgstr ""
25842
25843 # type: =head2
25844 #. type: =head2
25845 #: ../fish/guestfish-actions.pod:2205
25846 msgid "is-socket"
25847 msgstr ""
25848
25849 # type: verbatim
25850 #. type: verbatim
25851 #: ../fish/guestfish-actions.pod:2207
25852 #, no-wrap
25853 msgid ""
25854 " is-socket path\n"
25855 "\n"
25856 msgstr ""
25857
25858 # type: =head2
25859 #. type: =head2
25860 #: ../fish/guestfish-actions.pod:2214
25861 msgid "is-symlink"
25862 msgstr ""
25863
25864 # type: verbatim
25865 #. type: verbatim
25866 #: ../fish/guestfish-actions.pod:2216
25867 #, no-wrap
25868 msgid ""
25869 " is-symlink path\n"
25870 "\n"
25871 msgstr ""
25872
25873 # type: =head2
25874 #. type: =head2
25875 #: ../fish/guestfish-actions.pod:2223
25876 msgid "kill-subprocess"
25877 msgstr ""
25878
25879 # type: verbatim
25880 #. type: verbatim
25881 #: ../fish/guestfish-actions.pod:2225
25882 #, no-wrap
25883 msgid ""
25884 " kill-subprocess\n"
25885 "\n"
25886 msgstr ""
25887
25888 # type: =head2
25889 #. type: =head2
25890 #: ../fish/guestfish-actions.pod:2229
25891 msgid "launch"
25892 msgstr ""
25893
25894 # type: =head2
25895 #. type: =head2
25896 #: ../fish/guestfish-actions.pod:2231
25897 msgid "run"
25898 msgstr ""
25899
25900 # type: verbatim
25901 #. type: verbatim
25902 #: ../fish/guestfish-actions.pod:2233
25903 #, no-wrap
25904 msgid ""
25905 " launch\n"
25906 "\n"
25907 msgstr ""
25908
25909 # type: =head2
25910 #. type: =head2
25911 #: ../fish/guestfish-actions.pod:2241
25912 msgid "lchown"
25913 msgstr ""
25914
25915 # type: verbatim
25916 #. type: verbatim
25917 #: ../fish/guestfish-actions.pod:2243
25918 #, no-wrap
25919 msgid ""
25920 " lchown owner group path\n"
25921 "\n"
25922 msgstr ""
25923
25924 # type: textblock
25925 #. type: textblock
25926 #: ../fish/guestfish-actions.pod:2245
25927 msgid ""
25928 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
25929 "chown> but if C<path> is a symlink then the link itself is changed, not the "
25930 "target."
25931 msgstr ""
25932
25933 # type: =head2
25934 #. type: =head2
25935 #: ../fish/guestfish-actions.pod:2253
25936 msgid "lgetxattr"
25937 msgstr ""
25938
25939 # type: verbatim
25940 #. type: verbatim
25941 #: ../fish/guestfish-actions.pod:2255
25942 #, no-wrap
25943 msgid ""
25944 " lgetxattr path name\n"
25945 "\n"
25946 msgstr ""
25947
25948 # type: textblock
25949 #. type: textblock
25950 #: ../fish/guestfish-actions.pod:2271
25951 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
25952 msgstr ""
25953
25954 # type: =head2
25955 #. type: =head2
25956 #: ../fish/guestfish-actions.pod:2273
25957 msgid "lgetxattrs"
25958 msgstr ""
25959
25960 # type: verbatim
25961 #. type: verbatim
25962 #: ../fish/guestfish-actions.pod:2275
25963 #, no-wrap
25964 msgid ""
25965 " lgetxattrs path\n"
25966 "\n"
25967 msgstr ""
25968
25969 # type: textblock
25970 #. type: textblock
25971 #: ../fish/guestfish-actions.pod:2277
25972 msgid ""
25973 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
25974 "it returns the extended attributes of the link itself."
25975 msgstr ""
25976
25977 # type: =head2
25978 #. type: =head2
25979 #: ../fish/guestfish-actions.pod:2281
25980 msgid "list-devices"
25981 msgstr ""
25982
25983 # type: verbatim
25984 #. type: verbatim
25985 #: ../fish/guestfish-actions.pod:2283
25986 #, no-wrap
25987 msgid ""
25988 " list-devices\n"
25989 "\n"
25990 msgstr ""
25991
25992 # type: =head2
25993 #. type: =head2
25994 #: ../fish/guestfish-actions.pod:2291
25995 msgid "list-filesystems"
25996 msgstr ""
25997
25998 # type: verbatim
25999 #. type: verbatim
26000 #: ../fish/guestfish-actions.pod:2293
26001 #, no-wrap
26002 msgid ""
26003 " list-filesystems\n"
26004 "\n"
26005 msgstr ""
26006
26007 # type: textblock
26008 #. type: textblock
26009 #: ../fish/guestfish-actions.pod:2312
26010 msgid ""
26011 "This command runs other libguestfs commands, which might include L</mount> "
26012 "and L</umount>, and therefore you should use this soon after launch and only "
26013 "when nothing is mounted."
26014 msgstr ""
26015
26016 # type: textblock
26017 #. type: textblock
26018 #: ../fish/guestfish-actions.pod:2316
26019 msgid ""
26020 "Not all of the filesystems returned will be mountable.  In particular, swap "
26021 "partitions are returned in the list.  Also this command does not check that "
26022 "each filesystem found is valid and mountable, and some filesystems might be "
26023 "mountable but require special options.  Filesystems may not all belong to a "
26024 "single logical operating system (use L</inspect-os> to look for OSes)."
26025 msgstr ""
26026
26027 # type: =head2
26028 #. type: =head2
26029 #: ../fish/guestfish-actions.pod:2324
26030 msgid "list-partitions"
26031 msgstr ""
26032
26033 # type: verbatim
26034 #. type: verbatim
26035 #: ../fish/guestfish-actions.pod:2326
26036 #, no-wrap
26037 msgid ""
26038 " list-partitions\n"
26039 "\n"
26040 msgstr ""
26041
26042 # type: textblock
26043 #. type: textblock
26044 #: ../fish/guestfish-actions.pod:2332
26045 msgid ""
26046 "This does not return logical volumes.  For that you will need to call L</"
26047 "lvs>."
26048 msgstr ""
26049
26050 # type: =head2
26051 #. type: =head2
26052 #: ../fish/guestfish-actions.pod:2337
26053 msgid "ll"
26054 msgstr ""
26055
26056 # type: verbatim
26057 #. type: verbatim
26058 #: ../fish/guestfish-actions.pod:2339
26059 #, no-wrap
26060 msgid ""
26061 " ll directory\n"
26062 "\n"
26063 msgstr ""
26064
26065 # type: =head2
26066 #. type: =head2
26067 #: ../fish/guestfish-actions.pod:2347
26068 msgid "ln"
26069 msgstr ""
26070
26071 # type: verbatim
26072 #. type: verbatim
26073 #: ../fish/guestfish-actions.pod:2349
26074 #, no-wrap
26075 msgid ""
26076 " ln target linkname\n"
26077 "\n"
26078 msgstr ""
26079
26080 # type: =head2
26081 #. type: =head2
26082 #: ../fish/guestfish-actions.pod:2353
26083 msgid "ln-f"
26084 msgstr ""
26085
26086 # type: verbatim
26087 #. type: verbatim
26088 #: ../fish/guestfish-actions.pod:2355
26089 #, no-wrap
26090 msgid ""
26091 " ln-f target linkname\n"
26092 "\n"
26093 msgstr ""
26094
26095 # type: =head2
26096 #. type: =head2
26097 #: ../fish/guestfish-actions.pod:2360
26098 msgid "ln-s"
26099 msgstr ""
26100
26101 # type: verbatim
26102 #. type: verbatim
26103 #: ../fish/guestfish-actions.pod:2362
26104 #, no-wrap
26105 msgid ""
26106 " ln-s target linkname\n"
26107 "\n"
26108 msgstr ""
26109
26110 # type: =head2
26111 #. type: =head2
26112 #: ../fish/guestfish-actions.pod:2366
26113 msgid "ln-sf"
26114 msgstr ""
26115
26116 # type: verbatim
26117 #. type: verbatim
26118 #: ../fish/guestfish-actions.pod:2368
26119 #, no-wrap
26120 msgid ""
26121 " ln-sf target linkname\n"
26122 "\n"
26123 msgstr ""
26124
26125 # type: =head2
26126 #. type: =head2
26127 #: ../fish/guestfish-actions.pod:2373
26128 msgid "lremovexattr"
26129 msgstr ""
26130
26131 # type: verbatim
26132 #. type: verbatim
26133 #: ../fish/guestfish-actions.pod:2375
26134 #, no-wrap
26135 msgid ""
26136 " lremovexattr xattr path\n"
26137 "\n"
26138 msgstr ""
26139
26140 # type: textblock
26141 #. type: textblock
26142 #: ../fish/guestfish-actions.pod:2377
26143 msgid ""
26144 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
26145 "it removes an extended attribute of the link itself."
26146 msgstr ""
26147
26148 # type: =head2
26149 #. type: =head2
26150 #: ../fish/guestfish-actions.pod:2381
26151 msgid "ls"
26152 msgstr ""
26153
26154 # type: verbatim
26155 #. type: verbatim
26156 #: ../fish/guestfish-actions.pod:2383
26157 #, no-wrap
26158 msgid ""
26159 " ls directory\n"
26160 "\n"
26161 msgstr ""
26162
26163 # type: textblock
26164 #. type: textblock
26165 #: ../fish/guestfish-actions.pod:2389
26166 msgid ""
26167 "This command is mostly useful for interactive sessions.  Programs should "
26168 "probably use L</readdir> instead."
26169 msgstr ""
26170
26171 # type: =head2
26172 #. type: =head2
26173 #: ../fish/guestfish-actions.pod:2392
26174 msgid "lsetxattr"
26175 msgstr ""
26176
26177 # type: verbatim
26178 #. type: verbatim
26179 #: ../fish/guestfish-actions.pod:2394
26180 #, no-wrap
26181 msgid ""
26182 " lsetxattr xattr val vallen path\n"
26183 "\n"
26184 msgstr ""
26185
26186 # type: textblock
26187 #. type: textblock
26188 #: ../fish/guestfish-actions.pod:2396
26189 msgid ""
26190 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
26191 "sets an extended attribute of the link itself."
26192 msgstr ""
26193
26194 # type: =head2
26195 #. type: =head2
26196 #: ../fish/guestfish-actions.pod:2400
26197 msgid "lstat"
26198 msgstr ""
26199
26200 # type: verbatim
26201 #. type: verbatim
26202 #: ../fish/guestfish-actions.pod:2402
26203 #, no-wrap
26204 msgid ""
26205 " lstat path\n"
26206 "\n"
26207 msgstr ""
26208
26209 # type: textblock
26210 #. type: textblock
26211 #: ../fish/guestfish-actions.pod:2406
26212 msgid ""
26213 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
26214 "the link is stat-ed, not the file it refers to."
26215 msgstr ""
26216
26217 # type: =head2
26218 #. type: =head2
26219 #: ../fish/guestfish-actions.pod:2412
26220 msgid "lstatlist"
26221 msgstr ""
26222
26223 # type: verbatim
26224 #. type: verbatim
26225 #: ../fish/guestfish-actions.pod:2414
26226 #, no-wrap
26227 msgid ""
26228 " lstatlist path 'names ...'\n"
26229 "\n"
26230 msgstr ""
26231
26232 # type: textblock
26233 #. type: textblock
26234 #: ../fish/guestfish-actions.pod:2416
26235 msgid ""
26236 "This call allows you to perform the L</lstat> operation on multiple files, "
26237 "where all files are in the directory C<path>.  C<names> is the list of files "
26238 "from this directory."
26239 msgstr ""
26240
26241 # type: textblock
26242 #. type: textblock
26243 #: ../fish/guestfish-actions.pod:2425
26244 msgid ""
26245 "This call is intended for programs that want to efficiently list a directory "
26246 "contents without making many round-trips.  See also L</lxattrlist> for a "
26247 "similarly efficient call for getting extended attributes.  Very long "
26248 "directory listings might cause the protocol message size to be exceeded, "
26249 "causing this call to fail.  The caller must split up such requests into "
26250 "smaller groups of names."
26251 msgstr ""
26252
26253 # type: =head2
26254 #. type: =head2
26255 #: ../fish/guestfish-actions.pod:2433
26256 msgid "luks-add-key"
26257 msgstr ""
26258
26259 # type: verbatim
26260 #. type: verbatim
26261 #: ../fish/guestfish-actions.pod:2435
26262 #, no-wrap
26263 msgid ""
26264 " luks-add-key device keyslot\n"
26265 "\n"
26266 msgstr ""
26267
26268 # type: textblock
26269 #. type: textblock
26270 #: ../fish/guestfish-actions.pod:2442
26271 msgid ""
26272 "Note that if C<keyslot> already contains a key, then this command will "
26273 "fail.  You have to use L</luks-kill-slot> first to remove that key."
26274 msgstr ""
26275
26276 # type: textblock
26277 #. type: textblock
26278 #: ../fish/guestfish-actions.pod:2446 ../fish/guestfish-actions.pod:2468
26279 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2495
26280 #: ../fish/guestfish-actions.pod:2518 ../fish/guestfish-actions.pod:2528
26281 msgid ""
26282 "This command has one or more key or passphrase parameters.  Guestfish will "
26283 "prompt for these separately."
26284 msgstr ""
26285
26286 # type: =head2
26287 #. type: =head2
26288 #: ../fish/guestfish-actions.pod:2449
26289 msgid "luks-close"
26290 msgstr ""
26291
26292 # type: verbatim
26293 #. type: verbatim
26294 #: ../fish/guestfish-actions.pod:2451
26295 #, no-wrap
26296 msgid ""
26297 " luks-close device\n"
26298 "\n"
26299 msgstr ""
26300
26301 # type: textblock
26302 #. type: textblock
26303 #: ../fish/guestfish-actions.pod:2453
26304 msgid ""
26305 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
26306 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
26307 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
26308 "block device."
26309 msgstr ""
26310
26311 # type: =head2
26312 #. type: =head2
26313 #: ../fish/guestfish-actions.pod:2459
26314 msgid "luks-format"
26315 msgstr ""
26316
26317 # type: verbatim
26318 #. type: verbatim
26319 #: ../fish/guestfish-actions.pod:2461
26320 #, no-wrap
26321 msgid ""
26322 " luks-format device keyslot\n"
26323 "\n"
26324 msgstr ""
26325
26326 # type: =head2
26327 #. type: =head2
26328 #: ../fish/guestfish-actions.pod:2474
26329 msgid "luks-format-cipher"
26330 msgstr ""
26331
26332 # type: verbatim
26333 #. type: verbatim
26334 #: ../fish/guestfish-actions.pod:2476
26335 #, no-wrap
26336 msgid ""
26337 " luks-format-cipher device keyslot cipher\n"
26338 "\n"
26339 msgstr ""
26340
26341 # type: textblock
26342 #. type: textblock
26343 #: ../fish/guestfish-actions.pod:2478
26344 msgid ""
26345 "This command is the same as L</luks-format> but it also allows you to set "
26346 "the C<cipher> used."
26347 msgstr ""
26348
26349 # type: =head2
26350 #. type: =head2
26351 #: ../fish/guestfish-actions.pod:2487
26352 msgid "luks-kill-slot"
26353 msgstr ""
26354
26355 # type: verbatim
26356 #. type: verbatim
26357 #: ../fish/guestfish-actions.pod:2489
26358 #, no-wrap
26359 msgid ""
26360 " luks-kill-slot device keyslot\n"
26361 "\n"
26362 msgstr ""
26363
26364 # type: =head2
26365 #. type: =head2
26366 #: ../fish/guestfish-actions.pod:2498
26367 msgid "luks-open"
26368 msgstr ""
26369
26370 # type: verbatim
26371 #. type: verbatim
26372 #: ../fish/guestfish-actions.pod:2500
26373 #, no-wrap
26374 msgid ""
26375 " luks-open device mapname\n"
26376 "\n"
26377 msgstr ""
26378
26379 # type: textblock
26380 #. type: textblock
26381 #: ../fish/guestfish-actions.pod:2514
26382 msgid ""
26383 "If this block device contains LVM volume groups, then calling L</vgscan> "
26384 "followed by L</vg-activate-all> will make them visible."
26385 msgstr ""
26386
26387 # type: =head2
26388 #. type: =head2
26389 #: ../fish/guestfish-actions.pod:2521
26390 msgid "luks-open-ro"
26391 msgstr ""
26392
26393 # type: verbatim
26394 #. type: verbatim
26395 #: ../fish/guestfish-actions.pod:2523
26396 #, no-wrap
26397 msgid ""
26398 " luks-open-ro device mapname\n"
26399 "\n"
26400 msgstr ""
26401
26402 # type: textblock
26403 #. type: textblock
26404 #: ../fish/guestfish-actions.pod:2525
26405 msgid ""
26406 "This is the same as L</luks-open> except that a read-only mapping is created."
26407 msgstr ""
26408
26409 # type: =head2
26410 #. type: =head2
26411 #: ../fish/guestfish-actions.pod:2531
26412 msgid "lvcreate"
26413 msgstr ""
26414
26415 # type: verbatim
26416 #. type: verbatim
26417 #: ../fish/guestfish-actions.pod:2533
26418 #, no-wrap
26419 msgid ""
26420 " lvcreate logvol volgroup mbytes\n"
26421 "\n"
26422 msgstr ""
26423
26424 # type: =head2
26425 #. type: =head2
26426 #: ../fish/guestfish-actions.pod:2538
26427 msgid "lvm-canonical-lv-name"
26428 msgstr ""
26429
26430 # type: verbatim
26431 #. type: verbatim
26432 #: ../fish/guestfish-actions.pod:2540
26433 #, no-wrap
26434 msgid ""
26435 " lvm-canonical-lv-name lvname\n"
26436 "\n"
26437 msgstr ""
26438
26439 # type: textblock
26440 #. type: textblock
26441 #: ../fish/guestfish-actions.pod:2549
26442 msgid "See also L</is-lv>."
26443 msgstr ""
26444
26445 # type: =head2
26446 #. type: =head2
26447 #: ../fish/guestfish-actions.pod:2551
26448 msgid "lvm-clear-filter"
26449 msgstr ""
26450
26451 # type: verbatim
26452 #. type: verbatim
26453 #: ../fish/guestfish-actions.pod:2553
26454 #, no-wrap
26455 msgid ""
26456 " lvm-clear-filter\n"
26457 "\n"
26458 msgstr ""
26459
26460 # type: textblock
26461 #. type: textblock
26462 #: ../fish/guestfish-actions.pod:2555
26463 msgid ""
26464 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
26465 "block device."
26466 msgstr ""
26467
26468 # type: =head2
26469 #. type: =head2
26470 #: ../fish/guestfish-actions.pod:2561
26471 msgid "lvm-remove-all"
26472 msgstr ""
26473
26474 # type: verbatim
26475 #. type: verbatim
26476 #: ../fish/guestfish-actions.pod:2563
26477 #, no-wrap
26478 msgid ""
26479 " lvm-remove-all\n"
26480 "\n"
26481 msgstr ""
26482
26483 # type: =head2
26484 #. type: =head2
26485 #: ../fish/guestfish-actions.pod:2571
26486 msgid "lvm-set-filter"
26487 msgstr ""
26488
26489 # type: verbatim
26490 #. type: verbatim
26491 #: ../fish/guestfish-actions.pod:2573
26492 #, no-wrap
26493 msgid ""
26494 " lvm-set-filter 'devices ...'\n"
26495 "\n"
26496 msgstr ""
26497
26498 # type: =head2
26499 #. type: =head2
26500 #: ../fish/guestfish-actions.pod:2598
26501 msgid "lvremove"
26502 msgstr ""
26503
26504 # type: verbatim
26505 #. type: verbatim
26506 #: ../fish/guestfish-actions.pod:2600
26507 #, no-wrap
26508 msgid ""
26509 " lvremove device\n"
26510 "\n"
26511 msgstr ""
26512
26513 # type: =head2
26514 #. type: =head2
26515 #: ../fish/guestfish-actions.pod:2608
26516 msgid "lvrename"
26517 msgstr ""
26518
26519 # type: verbatim
26520 #. type: verbatim
26521 #: ../fish/guestfish-actions.pod:2610
26522 #, no-wrap
26523 msgid ""
26524 " lvrename logvol newlogvol\n"
26525 "\n"
26526 msgstr ""
26527
26528 # type: =head2
26529 #. type: =head2
26530 #: ../fish/guestfish-actions.pod:2614
26531 msgid "lvresize"
26532 msgstr ""
26533
26534 # type: verbatim
26535 #. type: verbatim
26536 #: ../fish/guestfish-actions.pod:2616
26537 #, no-wrap
26538 msgid ""
26539 " lvresize device mbytes\n"
26540 "\n"
26541 msgstr ""
26542
26543 # type: =head2
26544 #. type: =head2
26545 #: ../fish/guestfish-actions.pod:2622
26546 msgid "lvresize-free"
26547 msgstr ""
26548
26549 # type: verbatim
26550 #. type: verbatim
26551 #: ../fish/guestfish-actions.pod:2624
26552 #, no-wrap
26553 msgid ""
26554 " lvresize-free lv percent\n"
26555 "\n"
26556 msgstr ""
26557
26558 # type: =head2
26559 #. type: =head2
26560 #: ../fish/guestfish-actions.pod:2632
26561 msgid "lvs"
26562 msgstr ""
26563
26564 # type: verbatim
26565 #. type: verbatim
26566 #: ../fish/guestfish-actions.pod:2634
26567 #, no-wrap
26568 msgid ""
26569 " lvs\n"
26570 "\n"
26571 msgstr ""
26572
26573 # type: textblock
26574 #. type: textblock
26575 #: ../fish/guestfish-actions.pod:2642
26576 msgid "See also L</lvs-full>, L</list-filesystems>."
26577 msgstr ""
26578
26579 # type: =head2
26580 #. type: =head2
26581 #: ../fish/guestfish-actions.pod:2644
26582 msgid "lvs-full"
26583 msgstr ""
26584
26585 # type: verbatim
26586 #. type: verbatim
26587 #: ../fish/guestfish-actions.pod:2646
26588 #, no-wrap
26589 msgid ""
26590 " lvs-full\n"
26591 "\n"
26592 msgstr ""
26593
26594 # type: =head2
26595 #. type: =head2
26596 #: ../fish/guestfish-actions.pod:2651
26597 msgid "lvuuid"
26598 msgstr ""
26599
26600 # type: verbatim
26601 #. type: verbatim
26602 #: ../fish/guestfish-actions.pod:2653
26603 #, no-wrap
26604 msgid ""
26605 " lvuuid device\n"
26606 "\n"
26607 msgstr ""
26608
26609 # type: =head2
26610 #. type: =head2
26611 #: ../fish/guestfish-actions.pod:2657
26612 msgid "lxattrlist"
26613 msgstr ""
26614
26615 # type: verbatim
26616 #. type: verbatim
26617 #: ../fish/guestfish-actions.pod:2659
26618 #, no-wrap
26619 msgid ""
26620 " lxattrlist path 'names ...'\n"
26621 "\n"
26622 msgstr ""
26623
26624 # type: textblock
26625 #. type: textblock
26626 #: ../fish/guestfish-actions.pod:2675
26627 msgid ""
26628 "This call is intended for programs that want to efficiently list a directory "
26629 "contents without making many round-trips.  See also L</lstatlist> for a "
26630 "similarly efficient call for getting standard stats.  Very long directory "
26631 "listings might cause the protocol message size to be exceeded, causing this "
26632 "call to fail.  The caller must split up such requests into smaller groups of "
26633 "names."
26634 msgstr ""
26635
26636 # type: =head2
26637 #. type: =head2
26638 #: ../fish/guestfish-actions.pod:2683
26639 msgid "mkdir"
26640 msgstr ""
26641
26642 # type: verbatim
26643 #. type: verbatim
26644 #: ../fish/guestfish-actions.pod:2685
26645 #, no-wrap
26646 msgid ""
26647 " mkdir path\n"
26648 "\n"
26649 msgstr ""
26650
26651 # type: =head2
26652 #. type: =head2
26653 #: ../fish/guestfish-actions.pod:2689
26654 msgid "mkdir-mode"
26655 msgstr ""
26656
26657 # type: verbatim
26658 #. type: verbatim
26659 #: ../fish/guestfish-actions.pod:2691
26660 #, no-wrap
26661 msgid ""
26662 " mkdir-mode path mode\n"
26663 "\n"
26664 msgstr ""
26665
26666 # type: textblock
26667 #. type: textblock
26668 #: ../fish/guestfish-actions.pod:2700
26669 msgid "See also L</mkdir>, L</umask>"
26670 msgstr ""
26671
26672 # type: =head2
26673 #. type: =head2
26674 #: ../fish/guestfish-actions.pod:2702
26675 msgid "mkdir-p"
26676 msgstr ""
26677
26678 # type: verbatim
26679 #. type: verbatim
26680 #: ../fish/guestfish-actions.pod:2704
26681 #, no-wrap
26682 msgid ""
26683 " mkdir-p path\n"
26684 "\n"
26685 msgstr ""
26686
26687 # type: =head2
26688 #. type: =head2
26689 #: ../fish/guestfish-actions.pod:2709
26690 msgid "mkdtemp"
26691 msgstr ""
26692
26693 # type: verbatim
26694 #. type: verbatim
26695 #: ../fish/guestfish-actions.pod:2711
26696 #, no-wrap
26697 msgid ""
26698 " mkdtemp template\n"
26699 "\n"
26700 msgstr ""
26701
26702 # type: =head2
26703 #. type: =head2
26704 #: ../fish/guestfish-actions.pod:2732
26705 msgid "mke2fs-J"
26706 msgstr ""
26707
26708 # type: verbatim
26709 #. type: verbatim
26710 #: ../fish/guestfish-actions.pod:2734
26711 #, no-wrap
26712 msgid ""
26713 " mke2fs-J fstype blocksize device journal\n"
26714 "\n"
26715 msgstr ""
26716
26717 # type: textblock
26718 #. type: textblock
26719 #: ../fish/guestfish-actions.pod:2742
26720 msgid "See also L</mke2journal>."
26721 msgstr ""
26722
26723 # type: =head2
26724 #. type: =head2
26725 #: ../fish/guestfish-actions.pod:2744
26726 msgid "mke2fs-JL"
26727 msgstr ""
26728
26729 # type: verbatim
26730 #. type: verbatim
26731 #: ../fish/guestfish-actions.pod:2746
26732 #, no-wrap
26733 msgid ""
26734 " mke2fs-JL fstype blocksize device label\n"
26735 "\n"
26736 msgstr ""
26737
26738 # type: textblock
26739 #. type: textblock
26740 #: ../fish/guestfish-actions.pod:2751
26741 msgid "See also L</mke2journal-L>."
26742 msgstr ""
26743
26744 # type: =head2
26745 #. type: =head2
26746 #: ../fish/guestfish-actions.pod:2753
26747 msgid "mke2fs-JU"
26748 msgstr ""
26749
26750 # type: verbatim
26751 #. type: verbatim
26752 #: ../fish/guestfish-actions.pod:2755
26753 #, no-wrap
26754 msgid ""
26755 " mke2fs-JU fstype blocksize device uuid\n"
26756 "\n"
26757 msgstr ""
26758
26759 # type: textblock
26760 #. type: textblock
26761 #: ../fish/guestfish-actions.pod:2760
26762 msgid "See also L</mke2journal-U>."
26763 msgstr ""
26764
26765 # type: =head2
26766 #. type: =head2
26767 #: ../fish/guestfish-actions.pod:2762
26768 msgid "mke2journal"
26769 msgstr ""
26770
26771 # type: verbatim
26772 #. type: verbatim
26773 #: ../fish/guestfish-actions.pod:2764
26774 #, no-wrap
26775 msgid ""
26776 " mke2journal blocksize device\n"
26777 "\n"
26778 msgstr ""
26779
26780 # type: =head2
26781 #. type: =head2
26782 #: ../fish/guestfish-actions.pod:2771
26783 msgid "mke2journal-L"
26784 msgstr ""
26785
26786 # type: verbatim
26787 #. type: verbatim
26788 #: ../fish/guestfish-actions.pod:2773
26789 #, no-wrap
26790 msgid ""
26791 " mke2journal-L blocksize label device\n"
26792 "\n"
26793 msgstr ""
26794
26795 # type: =head2
26796 #. type: =head2
26797 #: ../fish/guestfish-actions.pod:2777
26798 msgid "mke2journal-U"
26799 msgstr ""
26800
26801 # type: verbatim
26802 #. type: verbatim
26803 #: ../fish/guestfish-actions.pod:2779
26804 #, no-wrap
26805 msgid ""
26806 " mke2journal-U blocksize uuid device\n"
26807 "\n"
26808 msgstr ""
26809
26810 # type: =head2
26811 #. type: =head2
26812 #: ../fish/guestfish-actions.pod:2783
26813 msgid "mkfifo"
26814 msgstr ""
26815
26816 # type: verbatim
26817 #. type: verbatim
26818 #: ../fish/guestfish-actions.pod:2785
26819 #, no-wrap
26820 msgid ""
26821 " mkfifo mode path\n"
26822 "\n"
26823 msgstr ""
26824
26825 # type: textblock
26826 #. type: textblock
26827 #: ../fish/guestfish-actions.pod:2787
26828 msgid ""
26829 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26830 "is just a convenient wrapper around L</mknod>."
26831 msgstr ""
26832
26833 # type: =head2
26834 #. type: =head2
26835 #: ../fish/guestfish-actions.pod:2793
26836 msgid "mkfs"
26837 msgstr ""
26838
26839 # type: verbatim
26840 #. type: verbatim
26841 #: ../fish/guestfish-actions.pod:2795
26842 #, no-wrap
26843 msgid ""
26844 " mkfs fstype device\n"
26845 "\n"
26846 msgstr ""
26847
26848 # type: =head2
26849 #. type: =head2
26850 #: ../fish/guestfish-actions.pod:2801
26851 msgid "mkfs-b"
26852 msgstr ""
26853
26854 # type: verbatim
26855 #. type: verbatim
26856 #: ../fish/guestfish-actions.pod:2803
26857 #, no-wrap
26858 msgid ""
26859 " mkfs-b fstype blocksize device\n"
26860 "\n"
26861 msgstr ""
26862
26863 # type: textblock
26864 #. type: textblock
26865 #: ../fish/guestfish-actions.pod:2805
26866 msgid ""
26867 "This call is similar to L</mkfs>, but it allows you to control the block "
26868 "size of the resulting filesystem.  Supported block sizes depend on the "
26869 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26870 msgstr ""
26871
26872 # type: =head2
26873 #. type: =head2
26874 #: ../fish/guestfish-actions.pod:2820
26875 msgid "mkfs-opts"
26876 msgstr ""
26877
26878 # type: verbatim
26879 #. type: verbatim
26880 #: ../fish/guestfish-actions.pod:2822
26881 #, no-wrap
26882 msgid ""
26883 " mkfs-opts fstype device [blocksize:..]\n"
26884 "\n"
26885 msgstr ""
26886
26887 # type: =head2
26888 #. type: =head2
26889 #: ../fish/guestfish-actions.pod:2844
26890 msgid "mkmountpoint"
26891 msgstr ""
26892
26893 # type: verbatim
26894 #. type: verbatim
26895 #: ../fish/guestfish-actions.pod:2846
26896 #, no-wrap
26897 msgid ""
26898 " mkmountpoint exemptpath\n"
26899 "\n"
26900 msgstr ""
26901
26902 # type: textblock
26903 #. type: textblock
26904 #: ../fish/guestfish-actions.pod:2848
26905 msgid ""
26906 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
26907 "to create extra mountpoints before mounting the first filesystem."
26908 msgstr ""
26909
26910 # type: textblock
26911 #. type: textblock
26912 #: ../fish/guestfish-actions.pod:2872
26913 msgid ""
26914 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
26915 "unexpected errors if you try to mix these calls.  It is safest to manually "
26916 "unmount filesystems and remove mountpoints after use."
26917 msgstr ""
26918
26919 # type: textblock
26920 #. type: textblock
26921 #: ../fish/guestfish-actions.pod:2876
26922 msgid ""
26923 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
26924 "for this to work for manual mountpoints, you must ensure that the innermost "
26925 "mountpoints have the longest pathnames, as in the example code above."
26926 msgstr ""
26927
26928 # type: textblock
26929 #. type: textblock
26930 #: ../fish/guestfish-actions.pod:2883
26931 msgid ""
26932 "Autosync [see L</set-autosync>, this is set by default on handles] means "
26933 "that L</umount-all> is called when the handle is closed which can also "
26934 "trigger these issues."
26935 msgstr ""
26936
26937 # type: =head2
26938 #. type: =head2
26939 #: ../fish/guestfish-actions.pod:2887
26940 msgid "mknod"
26941 msgstr ""
26942
26943 # type: verbatim
26944 #. type: verbatim
26945 #: ../fish/guestfish-actions.pod:2889
26946 #, no-wrap
26947 msgid ""
26948 " mknod mode devmajor devminor path\n"
26949 "\n"
26950 msgstr ""
26951
26952 # type: textblock
26953 #. type: textblock
26954 #: ../fish/guestfish-actions.pod:2899
26955 msgid ""
26956 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26957 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26958 "regular file).  These constants are available in the standard Linux header "
26959 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
26960 "wrappers around this command which bitwise OR in the appropriate constant "
26961 "for you."
26962 msgstr ""
26963
26964 # type: =head2
26965 #. type: =head2
26966 #: ../fish/guestfish-actions.pod:2909
26967 msgid "mknod-b"
26968 msgstr ""
26969
26970 # type: verbatim
26971 #. type: verbatim
26972 #: ../fish/guestfish-actions.pod:2911
26973 #, no-wrap
26974 msgid ""
26975 " mknod-b mode devmajor devminor path\n"
26976 "\n"
26977 msgstr ""
26978
26979 # type: textblock
26980 #. type: textblock
26981 #: ../fish/guestfish-actions.pod:2913
26982 msgid ""
26983 "This call creates a block device node called C<path> with mode C<mode> and "
26984 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26985 "wrapper around L</mknod>."
26986 msgstr ""
26987
26988 # type: =head2
26989 #. type: =head2
26990 #: ../fish/guestfish-actions.pod:2919
26991 msgid "mknod-c"
26992 msgstr ""
26993
26994 # type: verbatim
26995 #. type: verbatim
26996 #: ../fish/guestfish-actions.pod:2921
26997 #, no-wrap
26998 msgid ""
26999 " mknod-c mode devmajor devminor path\n"
27000 "\n"
27001 msgstr ""
27002
27003 # type: textblock
27004 #. type: textblock
27005 #: ../fish/guestfish-actions.pod:2923
27006 msgid ""
27007 "This call creates a char device node called C<path> with mode C<mode> and "
27008 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27009 "wrapper around L</mknod>."
27010 msgstr ""
27011
27012 # type: =head2
27013 #. type: =head2
27014 #: ../fish/guestfish-actions.pod:2929
27015 msgid "mkswap"
27016 msgstr ""
27017
27018 # type: verbatim
27019 #. type: verbatim
27020 #: ../fish/guestfish-actions.pod:2931
27021 #, no-wrap
27022 msgid ""
27023 " mkswap device\n"
27024 "\n"
27025 msgstr ""
27026
27027 # type: =head2
27028 #. type: =head2
27029 #: ../fish/guestfish-actions.pod:2935
27030 msgid "mkswap-L"
27031 msgstr ""
27032
27033 # type: verbatim
27034 #. type: verbatim
27035 #: ../fish/guestfish-actions.pod:2937
27036 #, no-wrap
27037 msgid ""
27038 " mkswap-L label device\n"
27039 "\n"
27040 msgstr ""
27041
27042 # type: =head2
27043 #. type: =head2
27044 #: ../fish/guestfish-actions.pod:2945
27045 msgid "mkswap-U"
27046 msgstr ""
27047
27048 # type: verbatim
27049 #. type: verbatim
27050 #: ../fish/guestfish-actions.pod:2947
27051 #, no-wrap
27052 msgid ""
27053 " mkswap-U uuid device\n"
27054 "\n"
27055 msgstr ""
27056
27057 # type: =head2
27058 #. type: =head2
27059 #: ../fish/guestfish-actions.pod:2951
27060 msgid "mkswap-file"
27061 msgstr ""
27062
27063 # type: verbatim
27064 #. type: verbatim
27065 #: ../fish/guestfish-actions.pod:2953
27066 #, no-wrap
27067 msgid ""
27068 " mkswap-file path\n"
27069 "\n"
27070 msgstr ""
27071
27072 # type: textblock
27073 #. type: textblock
27074 #: ../fish/guestfish-actions.pod:2957
27075 msgid ""
27076 "This command just writes a swap file signature to an existing file.  To "
27077 "create the file itself, use something like L</fallocate>."
27078 msgstr ""
27079
27080 # type: =head2
27081 #. type: =head2
27082 #: ../fish/guestfish-actions.pod:2960
27083 msgid "modprobe"
27084 msgstr ""
27085
27086 # type: verbatim
27087 #. type: verbatim
27088 #: ../fish/guestfish-actions.pod:2962
27089 #, no-wrap
27090 msgid ""
27091 " modprobe modulename\n"
27092 "\n"
27093 msgstr ""
27094
27095 # type: =head2
27096 #. type: =head2
27097 #: ../fish/guestfish-actions.pod:2969
27098 msgid "mount"
27099 msgstr ""
27100
27101 # type: verbatim
27102 #. type: verbatim
27103 #: ../fish/guestfish-actions.pod:2971
27104 #, no-wrap
27105 msgid ""
27106 " mount device mountpoint\n"
27107 "\n"
27108 msgstr ""
27109
27110 # type: textblock
27111 #. type: textblock
27112 #: ../fish/guestfish-actions.pod:2987
27113 msgid ""
27114 "B<Important note:> When you use this call, the filesystem options C<sync> "
27115 "and C<noatime> are set implicitly.  This was originally done because we "
27116 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27117 "very large negative performance impact and negligible effect on "
27118 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27119 "code that needs performance, and instead use L</mount-options> (use an empty "
27120 "string for the first parameter if you don't want any options)."
27121 msgstr ""
27122
27123 # type: =head2
27124 #. type: =head2
27125 #: ../fish/guestfish-actions.pod:2997
27126 msgid "mount-loop"
27127 msgstr ""
27128
27129 # type: verbatim
27130 #. type: verbatim
27131 #: ../fish/guestfish-actions.pod:2999
27132 #, no-wrap
27133 msgid ""
27134 " mount-loop file mountpoint\n"
27135 "\n"
27136 msgstr ""
27137
27138 # type: =head2
27139 #. type: =head2
27140 #: ../fish/guestfish-actions.pod:3005
27141 msgid "mount-options"
27142 msgstr ""
27143
27144 # type: verbatim
27145 #. type: verbatim
27146 #: ../fish/guestfish-actions.pod:3007
27147 #, no-wrap
27148 msgid ""
27149 " mount-options options device mountpoint\n"
27150 "\n"
27151 msgstr ""
27152
27153 # type: textblock
27154 #. type: textblock
27155 #: ../fish/guestfish-actions.pod:3009
27156 msgid ""
27157 "This is the same as the L</mount> command, but it allows you to set the "
27158 "mount options as for the L<mount(8)> I<-o> flag."
27159 msgstr ""
27160
27161 # type: =head2
27162 #. type: =head2
27163 #: ../fish/guestfish-actions.pod:3017
27164 msgid "mount-ro"
27165 msgstr ""
27166
27167 # type: verbatim
27168 #. type: verbatim
27169 #: ../fish/guestfish-actions.pod:3019
27170 #, no-wrap
27171 msgid ""
27172 " mount-ro device mountpoint\n"
27173 "\n"
27174 msgstr ""
27175
27176 # type: textblock
27177 #. type: textblock
27178 #: ../fish/guestfish-actions.pod:3021
27179 msgid ""
27180 "This is the same as the L</mount> command, but it mounts the filesystem with "
27181 "the read-only (I<-o ro>) flag."
27182 msgstr ""
27183
27184 # type: =head2
27185 #. type: =head2
27186 #: ../fish/guestfish-actions.pod:3024
27187 msgid "mount-vfs"
27188 msgstr ""
27189
27190 # type: verbatim
27191 #. type: verbatim
27192 #: ../fish/guestfish-actions.pod:3026
27193 #, no-wrap
27194 msgid ""
27195 " mount-vfs options vfstype device mountpoint\n"
27196 "\n"
27197 msgstr ""
27198
27199 # type: textblock
27200 #. type: textblock
27201 #: ../fish/guestfish-actions.pod:3028
27202 msgid ""
27203 "This is the same as the L</mount> command, but it allows you to set both the "
27204 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27205 msgstr ""
27206
27207 # type: =head2
27208 #. type: =head2
27209 #: ../fish/guestfish-actions.pod:3032
27210 msgid "mountpoints"
27211 msgstr ""
27212
27213 # type: verbatim
27214 #. type: verbatim
27215 #: ../fish/guestfish-actions.pod:3034
27216 #, no-wrap
27217 msgid ""
27218 " mountpoints\n"
27219 "\n"
27220 msgstr ""
27221
27222 # type: textblock
27223 #. type: textblock
27224 #: ../fish/guestfish-actions.pod:3036
27225 msgid ""
27226 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27227 "This one returns a hash table (map) of device name to directory where the "
27228 "device is mounted."
27229 msgstr ""
27230
27231 # type: =head2
27232 #. type: =head2
27233 #: ../fish/guestfish-actions.pod:3040
27234 msgid "mounts"
27235 msgstr ""
27236
27237 # type: verbatim
27238 #. type: verbatim
27239 #: ../fish/guestfish-actions.pod:3042
27240 #, no-wrap
27241 msgid ""
27242 " mounts\n"
27243 "\n"
27244 msgstr ""
27245
27246 # type: textblock
27247 #. type: textblock
27248 #: ../fish/guestfish-actions.pod:3049
27249 msgid "See also: L</mountpoints>"
27250 msgstr ""
27251
27252 # type: =head2
27253 #. type: =head2
27254 #: ../fish/guestfish-actions.pod:3051
27255 msgid "mv"
27256 msgstr ""
27257
27258 # type: verbatim
27259 #. type: verbatim
27260 #: ../fish/guestfish-actions.pod:3053
27261 #, no-wrap
27262 msgid ""
27263 " mv src dest\n"
27264 "\n"
27265 msgstr ""
27266
27267 # type: =head2
27268 #. type: =head2
27269 #: ../fish/guestfish-actions.pod:3058
27270 msgid "ntfs-3g-probe"
27271 msgstr ""
27272
27273 # type: verbatim
27274 #. type: verbatim
27275 #: ../fish/guestfish-actions.pod:3060
27276 #, no-wrap
27277 msgid ""
27278 " ntfs-3g-probe true|false device\n"
27279 "\n"
27280 msgstr ""
27281
27282 # type: =head2
27283 #. type: =head2
27284 #: ../fish/guestfish-actions.pod:3074
27285 msgid "ntfsresize"
27286 msgstr ""
27287
27288 # type: verbatim
27289 #. type: verbatim
27290 #: ../fish/guestfish-actions.pod:3076
27291 #, no-wrap
27292 msgid ""
27293 " ntfsresize device\n"
27294 "\n"
27295 msgstr ""
27296
27297 # type: =head2
27298 #. type: =head2
27299 #: ../fish/guestfish-actions.pod:3082
27300 msgid "ntfsresize-size"
27301 msgstr ""
27302
27303 # type: verbatim
27304 #. type: verbatim
27305 #: ../fish/guestfish-actions.pod:3084
27306 #, no-wrap
27307 msgid ""
27308 " ntfsresize-size device size\n"
27309 "\n"
27310 msgstr ""
27311
27312 # type: textblock
27313 #. type: textblock
27314 #: ../fish/guestfish-actions.pod:3086
27315 msgid ""
27316 "This command is the same as L</ntfsresize> except that it allows you to "
27317 "specify the new size (in bytes) explicitly."
27318 msgstr ""
27319
27320 # type: =head2
27321 #. type: =head2
27322 #: ../fish/guestfish-actions.pod:3089
27323 msgid "part-add"
27324 msgstr ""
27325
27326 # type: verbatim
27327 #. type: verbatim
27328 #: ../fish/guestfish-actions.pod:3091
27329 #, no-wrap
27330 msgid ""
27331 " part-add device prlogex startsect endsect\n"
27332 "\n"
27333 msgstr ""
27334
27335 # type: textblock
27336 #. type: textblock
27337 #: ../fish/guestfish-actions.pod:3093
27338 msgid ""
27339 "This command adds a partition to C<device>.  If there is no partition table "
27340 "on the device, call L</part-init> first."
27341 msgstr ""
27342
27343 # type: textblock
27344 #. type: textblock
27345 #: ../fish/guestfish-actions.pod:3105
27346 msgid ""
27347 "Creating a partition which covers the whole disk is not so easy.  Use L</"
27348 "part-disk> to do that."
27349 msgstr ""
27350
27351 # type: =head2
27352 #. type: =head2
27353 #: ../fish/guestfish-actions.pod:3108
27354 msgid "part-del"
27355 msgstr ""
27356
27357 # type: verbatim
27358 #. type: verbatim
27359 #: ../fish/guestfish-actions.pod:3110
27360 #, no-wrap
27361 msgid ""
27362 " part-del device partnum\n"
27363 "\n"
27364 msgstr ""
27365
27366 # type: =head2
27367 #. type: =head2
27368 #: ../fish/guestfish-actions.pod:3118
27369 msgid "part-disk"
27370 msgstr ""
27371
27372 # type: verbatim
27373 #. type: verbatim
27374 #: ../fish/guestfish-actions.pod:3120
27375 #, no-wrap
27376 msgid ""
27377 " part-disk device parttype\n"
27378 "\n"
27379 msgstr ""
27380
27381 # type: textblock
27382 #. type: textblock
27383 #: ../fish/guestfish-actions.pod:3122
27384 msgid ""
27385 "This command is simply a combination of L</part-init> followed by L</part-"
27386 "add> to create a single primary partition covering the whole disk."
27387 msgstr ""
27388
27389 # type: textblock
27390 #. type: textblock
27391 #: ../fish/guestfish-actions.pod:3126
27392 msgid ""
27393 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27394 "possible values are described in L</part-init>."
27395 msgstr ""
27396
27397 # type: =head2
27398 #. type: =head2
27399 #: ../fish/guestfish-actions.pod:3132
27400 msgid "part-get-bootable"
27401 msgstr ""
27402
27403 # type: verbatim
27404 #. type: verbatim
27405 #: ../fish/guestfish-actions.pod:3134
27406 #, no-wrap
27407 msgid ""
27408 " part-get-bootable device partnum\n"
27409 "\n"
27410 msgstr ""
27411
27412 # type: textblock
27413 #. type: textblock
27414 #: ../fish/guestfish-actions.pod:3139
27415 msgid "See also L</part-set-bootable>."
27416 msgstr ""
27417
27418 # type: =head2
27419 #. type: =head2
27420 #: ../fish/guestfish-actions.pod:3141
27421 msgid "part-get-mbr-id"
27422 msgstr ""
27423
27424 # type: verbatim
27425 #. type: verbatim
27426 #: ../fish/guestfish-actions.pod:3143
27427 #, no-wrap
27428 msgid ""
27429 " part-get-mbr-id device partnum\n"
27430 "\n"
27431 msgstr ""
27432
27433 # type: textblock
27434 #. type: textblock
27435 #: ../fish/guestfish-actions.pod:3148 ../fish/guestfish-actions.pod:3286
27436 msgid ""
27437 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27438 "undefined results for other partition table types (see L</part-get-"
27439 "parttype>)."
27440 msgstr ""
27441
27442 # type: =head2
27443 #. type: =head2
27444 #: ../fish/guestfish-actions.pod:3152
27445 msgid "part-get-parttype"
27446 msgstr ""
27447
27448 # type: verbatim
27449 #. type: verbatim
27450 #: ../fish/guestfish-actions.pod:3154
27451 #, no-wrap
27452 msgid ""
27453 " part-get-parttype device\n"
27454 "\n"
27455 msgstr ""
27456
27457 # type: textblock
27458 #. type: textblock
27459 #: ../fish/guestfish-actions.pod:3159
27460 msgid ""
27461 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27462 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27463 "possible, although unusual.  See L</part-init> for a full list."
27464 msgstr ""
27465
27466 # type: =head2
27467 #. type: =head2
27468 #: ../fish/guestfish-actions.pod:3164
27469 msgid "part-init"
27470 msgstr ""
27471
27472 # type: verbatim
27473 #. type: verbatim
27474 #: ../fish/guestfish-actions.pod:3166
27475 #, no-wrap
27476 msgid ""
27477 " part-init device parttype\n"
27478 "\n"
27479 msgstr ""
27480
27481 # type: textblock
27482 #. type: textblock
27483 #: ../fish/guestfish-actions.pod:3172
27484 msgid ""
27485 "Initially there are no partitions.  Following this, you should call L</part-"
27486 "add> for each partition required."
27487 msgstr ""
27488
27489 # type: =head2
27490 #. type: =head2
27491 #: ../fish/guestfish-actions.pod:3235
27492 msgid "part-list"
27493 msgstr ""
27494
27495 # type: verbatim
27496 #. type: verbatim
27497 #: ../fish/guestfish-actions.pod:3237
27498 #, no-wrap
27499 msgid ""
27500 " part-list device\n"
27501 "\n"
27502 msgstr ""
27503
27504 # type: textblock
27505 #. type: textblock
27506 #: ../fish/guestfish-actions.pod:3252
27507 msgid ""
27508 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27509 "the device's sector size, see L</blockdev-getss>."
27510 msgstr ""
27511
27512 # type: =head2
27513 #. type: =head2
27514 #: ../fish/guestfish-actions.pod:3265
27515 msgid "part-set-bootable"
27516 msgstr ""
27517
27518 # type: verbatim
27519 #. type: verbatim
27520 #: ../fish/guestfish-actions.pod:3267
27521 #, no-wrap
27522 msgid ""
27523 " part-set-bootable device partnum true|false\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: =head2
27528 #. type: =head2
27529 #: ../fish/guestfish-actions.pod:3276
27530 msgid "part-set-mbr-id"
27531 msgstr ""
27532
27533 # type: verbatim
27534 #. type: verbatim
27535 #: ../fish/guestfish-actions.pod:3278
27536 #, no-wrap
27537 msgid ""
27538 " part-set-mbr-id device partnum idbyte\n"
27539 "\n"
27540 msgstr ""
27541
27542 # type: =head2
27543 #. type: =head2
27544 #: ../fish/guestfish-actions.pod:3290
27545 msgid "part-set-name"
27546 msgstr ""
27547
27548 # type: verbatim
27549 #. type: verbatim
27550 #: ../fish/guestfish-actions.pod:3292
27551 #, no-wrap
27552 msgid ""
27553 " part-set-name device partnum name\n"
27554 "\n"
27555 msgstr ""
27556
27557 # type: =head2
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:3300
27560 msgid "part-to-dev"
27561 msgstr ""
27562
27563 # type: verbatim
27564 #. type: verbatim
27565 #: ../fish/guestfish-actions.pod:3302
27566 #, no-wrap
27567 msgid ""
27568 " part-to-dev partition\n"
27569 "\n"
27570 msgstr ""
27571
27572 # type: textblock
27573 #. type: textblock
27574 #: ../fish/guestfish-actions.pod:3308
27575 msgid ""
27576 "The named partition must exist, for example as a string returned from L</"
27577 "list-partitions>."
27578 msgstr ""
27579
27580 # type: =head2
27581 #. type: =head2
27582 #: ../fish/guestfish-actions.pod:3311
27583 msgid "ping-daemon"
27584 msgstr ""
27585
27586 # type: verbatim
27587 #. type: verbatim
27588 #: ../fish/guestfish-actions.pod:3313
27589 #, no-wrap
27590 msgid ""
27591 " ping-daemon\n"
27592 "\n"
27593 msgstr ""
27594
27595 # type: =head2
27596 #. type: =head2
27597 #: ../fish/guestfish-actions.pod:3320
27598 msgid "pread"
27599 msgstr ""
27600
27601 # type: verbatim
27602 #. type: verbatim
27603 #: ../fish/guestfish-actions.pod:3322
27604 #, no-wrap
27605 msgid ""
27606 " pread path count offset\n"
27607 "\n"
27608 msgstr ""
27609
27610 # type: textblock
27611 #. type: textblock
27612 #: ../fish/guestfish-actions.pod:3330
27613 msgid "See also L</pwrite>, L</pread-device>."
27614 msgstr ""
27615
27616 # type: =head2
27617 #. type: =head2
27618 #: ../fish/guestfish-actions.pod:3335
27619 msgid "pread-device"
27620 msgstr ""
27621
27622 # type: verbatim
27623 #. type: verbatim
27624 #: ../fish/guestfish-actions.pod:3337
27625 #, no-wrap
27626 msgid ""
27627 " pread-device device count offset\n"
27628 "\n"
27629 msgstr ""
27630
27631 # type: textblock
27632 #. type: textblock
27633 #: ../fish/guestfish-actions.pod:3345
27634 msgid "See also L</pread>."
27635 msgstr ""
27636
27637 # type: =head2
27638 #. type: =head2
27639 #: ../fish/guestfish-actions.pod:3350
27640 msgid "pvcreate"
27641 msgstr ""
27642
27643 # type: verbatim
27644 #. type: verbatim
27645 #: ../fish/guestfish-actions.pod:3352
27646 #, no-wrap
27647 msgid ""
27648 " pvcreate device\n"
27649 "\n"
27650 msgstr ""
27651
27652 # type: =head2
27653 #. type: =head2
27654 #: ../fish/guestfish-actions.pod:3358
27655 msgid "pvremove"
27656 msgstr ""
27657
27658 # type: verbatim
27659 #. type: verbatim
27660 #: ../fish/guestfish-actions.pod:3360
27661 #, no-wrap
27662 msgid ""
27663 " pvremove device\n"
27664 "\n"
27665 msgstr ""
27666
27667 # type: =head2
27668 #. type: =head2
27669 #: ../fish/guestfish-actions.pod:3369
27670 msgid "pvresize"
27671 msgstr ""
27672
27673 # type: verbatim
27674 #. type: verbatim
27675 #: ../fish/guestfish-actions.pod:3371
27676 #, no-wrap
27677 msgid ""
27678 " pvresize device\n"
27679 "\n"
27680 msgstr ""
27681
27682 # type: =head2
27683 #. type: =head2
27684 #: ../fish/guestfish-actions.pod:3376
27685 msgid "pvresize-size"
27686 msgstr ""
27687
27688 # type: verbatim
27689 #. type: verbatim
27690 #: ../fish/guestfish-actions.pod:3378
27691 #, no-wrap
27692 msgid ""
27693 " pvresize-size device size\n"
27694 "\n"
27695 msgstr ""
27696
27697 # type: textblock
27698 #. type: textblock
27699 #: ../fish/guestfish-actions.pod:3380
27700 msgid ""
27701 "This command is the same as L</pvresize> except that it allows you to "
27702 "specify the new size (in bytes) explicitly."
27703 msgstr ""
27704
27705 # type: =head2
27706 #. type: =head2
27707 #: ../fish/guestfish-actions.pod:3383
27708 msgid "pvs"
27709 msgstr ""
27710
27711 # type: verbatim
27712 #. type: verbatim
27713 #: ../fish/guestfish-actions.pod:3385
27714 #, no-wrap
27715 msgid ""
27716 " pvs\n"
27717 "\n"
27718 msgstr ""
27719
27720 # type: textblock
27721 #. type: textblock
27722 #: ../fish/guestfish-actions.pod:3393
27723 msgid "See also L</pvs-full>."
27724 msgstr ""
27725
27726 # type: =head2
27727 #. type: =head2
27728 #: ../fish/guestfish-actions.pod:3395
27729 msgid "pvs-full"
27730 msgstr ""
27731
27732 # type: verbatim
27733 #. type: verbatim
27734 #: ../fish/guestfish-actions.pod:3397
27735 #, no-wrap
27736 msgid ""
27737 " pvs-full\n"
27738 "\n"
27739 msgstr ""
27740
27741 # type: =head2
27742 #. type: =head2
27743 #: ../fish/guestfish-actions.pod:3402
27744 msgid "pvuuid"
27745 msgstr ""
27746
27747 # type: verbatim
27748 #. type: verbatim
27749 #: ../fish/guestfish-actions.pod:3404
27750 #, no-wrap
27751 msgid ""
27752 " pvuuid device\n"
27753 "\n"
27754 msgstr ""
27755
27756 # type: =head2
27757 #. type: =head2
27758 #: ../fish/guestfish-actions.pod:3408
27759 msgid "pwrite"
27760 msgstr ""
27761
27762 # type: verbatim
27763 #. type: verbatim
27764 #: ../fish/guestfish-actions.pod:3410
27765 #, no-wrap
27766 msgid ""
27767 " pwrite path content offset\n"
27768 "\n"
27769 msgstr ""
27770
27771 # type: textblock
27772 #. type: textblock
27773 #: ../fish/guestfish-actions.pod:3421
27774 msgid "See also L</pread>, L</pwrite-device>."
27775 msgstr ""
27776
27777 # type: =head2
27778 #. type: =head2
27779 #: ../fish/guestfish-actions.pod:3426
27780 msgid "pwrite-device"
27781 msgstr ""
27782
27783 # type: verbatim
27784 #. type: verbatim
27785 #: ../fish/guestfish-actions.pod:3428
27786 #, no-wrap
27787 msgid ""
27788 " pwrite-device device content offset\n"
27789 "\n"
27790 msgstr ""
27791
27792 # type: textblock
27793 #. type: textblock
27794 #: ../fish/guestfish-actions.pod:3438
27795 msgid "See also L</pwrite>."
27796 msgstr ""
27797
27798 # type: =head2
27799 #. type: =head2
27800 #: ../fish/guestfish-actions.pod:3443
27801 msgid "read-file"
27802 msgstr ""
27803
27804 # type: verbatim
27805 #. type: verbatim
27806 #: ../fish/guestfish-actions.pod:3445
27807 #, no-wrap
27808 msgid ""
27809 " read-file path\n"
27810 "\n"
27811 msgstr ""
27812
27813 # type: textblock
27814 #. type: textblock
27815 #: ../fish/guestfish-actions.pod:3450
27816 msgid ""
27817 "Unlike L</cat>, this function can correctly handle files that contain "
27818 "embedded ASCII NUL characters.  However unlike L</download>, this function "
27819 "is limited in the total size of file that can be handled."
27820 msgstr ""
27821
27822 # type: =head2
27823 #. type: =head2
27824 #: ../fish/guestfish-actions.pod:3458
27825 msgid "read-lines"
27826 msgstr ""
27827
27828 # type: verbatim
27829 #. type: verbatim
27830 #: ../fish/guestfish-actions.pod:3460
27831 #, no-wrap
27832 msgid ""
27833 " read-lines path\n"
27834 "\n"
27835 msgstr ""
27836
27837 # type: textblock
27838 #. type: textblock
27839 #: ../fish/guestfish-actions.pod:3467
27840 msgid ""
27841 "Note that this function cannot correctly handle binary files (specifically, "
27842 "files containing C<\\0> character which is treated as end of line).  For "
27843 "those you need to use the L</read-file> function which has a more complex "
27844 "interface."
27845 msgstr ""
27846
27847 # type: =head2
27848 #. type: =head2
27849 #: ../fish/guestfish-actions.pod:3472
27850 msgid "readdir"
27851 msgstr ""
27852
27853 # type: verbatim
27854 #. type: verbatim
27855 #: ../fish/guestfish-actions.pod:3474
27856 #, no-wrap
27857 msgid ""
27858 " readdir dir\n"
27859 "\n"
27860 msgstr ""
27861
27862 # type: textblock
27863 #. type: textblock
27864 #: ../fish/guestfish-actions.pod:3526
27865 msgid ""
27866 "This function is primarily intended for use by programs.  To get a simple "
27867 "list of names, use L</ls>.  To get a printable directory for human "
27868 "consumption, use L</ll>."
27869 msgstr ""
27870
27871 # type: =head2
27872 #. type: =head2
27873 #: ../fish/guestfish-actions.pod:3530
27874 msgid "readlink"
27875 msgstr ""
27876
27877 # type: verbatim
27878 #. type: verbatim
27879 #: ../fish/guestfish-actions.pod:3532
27880 #, no-wrap
27881 msgid ""
27882 " readlink path\n"
27883 "\n"
27884 msgstr ""
27885
27886 # type: =head2
27887 #. type: =head2
27888 #: ../fish/guestfish-actions.pod:3536
27889 msgid "readlinklist"
27890 msgstr ""
27891
27892 # type: verbatim
27893 #. type: verbatim
27894 #: ../fish/guestfish-actions.pod:3538
27895 #, no-wrap
27896 msgid ""
27897 " readlinklist path 'names ...'\n"
27898 "\n"
27899 msgstr ""
27900
27901 # type: =head2
27902 #. type: =head2
27903 #: ../fish/guestfish-actions.pod:3562
27904 msgid "realpath"
27905 msgstr ""
27906
27907 # type: verbatim
27908 #. type: verbatim
27909 #: ../fish/guestfish-actions.pod:3564
27910 #, no-wrap
27911 msgid ""
27912 " realpath path\n"
27913 "\n"
27914 msgstr ""
27915
27916 # type: =head2
27917 #. type: =head2
27918 #: ../fish/guestfish-actions.pod:3569
27919 msgid "removexattr"
27920 msgstr ""
27921
27922 # type: verbatim
27923 #. type: verbatim
27924 #: ../fish/guestfish-actions.pod:3571
27925 #, no-wrap
27926 msgid ""
27927 " removexattr xattr path\n"
27928 "\n"
27929 msgstr ""
27930
27931 # type: textblock
27932 #. type: textblock
27933 #: ../fish/guestfish-actions.pod:3576
27934 msgid "See also: L</lremovexattr>, L<attr(5)>."
27935 msgstr ""
27936
27937 # type: =head2
27938 #. type: =head2
27939 #: ../fish/guestfish-actions.pod:3578
27940 msgid "resize2fs"
27941 msgstr ""
27942
27943 # type: verbatim
27944 #. type: verbatim
27945 #: ../fish/guestfish-actions.pod:3580
27946 #, no-wrap
27947 msgid ""
27948 " resize2fs device\n"
27949 "\n"
27950 msgstr ""
27951
27952 # type: textblock
27953 #. type: textblock
27954 #: ../fish/guestfish-actions.pod:3585
27955 msgid ""
27956 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
27957 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
27958 "gives an error about this and sometimes not.  In any case, it is always safe "
27959 "to call L</e2fsck-f> before calling this function."
27960 msgstr ""
27961
27962 # type: =head2
27963 #. type: =head2
27964 #: ../fish/guestfish-actions.pod:3591
27965 msgid "resize2fs-size"
27966 msgstr ""
27967
27968 # type: verbatim
27969 #. type: verbatim
27970 #: ../fish/guestfish-actions.pod:3593
27971 #, no-wrap
27972 msgid ""
27973 " resize2fs-size device size\n"
27974 "\n"
27975 msgstr ""
27976
27977 # type: textblock
27978 #. type: textblock
27979 #: ../fish/guestfish-actions.pod:3595
27980 msgid ""
27981 "This command is the same as L</resize2fs> except that it allows you to "
27982 "specify the new size (in bytes) explicitly."
27983 msgstr ""
27984
27985 # type: =head2
27986 #. type: =head2
27987 #: ../fish/guestfish-actions.pod:3598
27988 msgid "rm"
27989 msgstr ""
27990
27991 # type: verbatim
27992 #. type: verbatim
27993 #: ../fish/guestfish-actions.pod:3600
27994 #, no-wrap
27995 msgid ""
27996 " rm path\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: =head2
28001 #. type: =head2
28002 #: ../fish/guestfish-actions.pod:3604
28003 msgid "rm-rf"
28004 msgstr ""
28005
28006 # type: verbatim
28007 #. type: verbatim
28008 #: ../fish/guestfish-actions.pod:3606
28009 #, no-wrap
28010 msgid ""
28011 " rm-rf path\n"
28012 "\n"
28013 msgstr ""
28014
28015 # type: =head2
28016 #. type: =head2
28017 #: ../fish/guestfish-actions.pod:3612
28018 msgid "rmdir"
28019 msgstr ""
28020
28021 # type: verbatim
28022 #. type: verbatim
28023 #: ../fish/guestfish-actions.pod:3614
28024 #, no-wrap
28025 msgid ""
28026 " rmdir path\n"
28027 "\n"
28028 msgstr ""
28029
28030 # type: =head2
28031 #. type: =head2
28032 #: ../fish/guestfish-actions.pod:3618
28033 msgid "rmmountpoint"
28034 msgstr ""
28035
28036 # type: verbatim
28037 #. type: verbatim
28038 #: ../fish/guestfish-actions.pod:3620
28039 #, no-wrap
28040 msgid ""
28041 " rmmountpoint exemptpath\n"
28042 "\n"
28043 msgstr ""
28044
28045 # type: textblock
28046 #. type: textblock
28047 #: ../fish/guestfish-actions.pod:3622
28048 msgid ""
28049 "This calls removes a mountpoint that was previously created with L</"
28050 "mkmountpoint>.  See L</mkmountpoint> for full details."
28051 msgstr ""
28052
28053 # type: =head2
28054 #. type: =head2
28055 #: ../fish/guestfish-actions.pod:3626
28056 msgid "scrub-device"
28057 msgstr ""
28058
28059 # type: verbatim
28060 #. type: verbatim
28061 #: ../fish/guestfish-actions.pod:3628
28062 #, no-wrap
28063 msgid ""
28064 " scrub-device device\n"
28065 "\n"
28066 msgstr ""
28067
28068 # type: =head2
28069 #. type: =head2
28070 #: ../fish/guestfish-actions.pod:3639
28071 msgid "scrub-file"
28072 msgstr ""
28073
28074 # type: verbatim
28075 #. type: verbatim
28076 #: ../fish/guestfish-actions.pod:3641
28077 #, no-wrap
28078 msgid ""
28079 " scrub-file file\n"
28080 "\n"
28081 msgstr ""
28082
28083 # type: =head2
28084 #. type: =head2
28085 #: ../fish/guestfish-actions.pod:3651
28086 msgid "scrub-freespace"
28087 msgstr ""
28088
28089 # type: verbatim
28090 #. type: verbatim
28091 #: ../fish/guestfish-actions.pod:3653
28092 #, no-wrap
28093 msgid ""
28094 " scrub-freespace dir\n"
28095 "\n"
28096 msgstr ""
28097
28098 # type: textblock
28099 #. type: textblock
28100 #: ../fish/guestfish-actions.pod:3655
28101 msgid ""
28102 "This command creates the directory C<dir> and then fills it with files until "
28103 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28104 "deletes them.  The intention is to scrub any free space on the partition "
28105 "containing C<dir>."
28106 msgstr ""
28107
28108 # type: =head2
28109 #. type: =head2
28110 #: ../fish/guestfish-actions.pod:3664
28111 msgid "set-append"
28112 msgstr ""
28113
28114 # type: =head2
28115 #. type: =head2
28116 #: ../fish/guestfish-actions.pod:3666
28117 msgid "append"
28118 msgstr ""
28119
28120 # type: verbatim
28121 #. type: verbatim
28122 #: ../fish/guestfish-actions.pod:3668
28123 #, no-wrap
28124 msgid ""
28125 " set-append append\n"
28126 "\n"
28127 msgstr ""
28128
28129 # type: =head2
28130 #. type: =head2
28131 #: ../fish/guestfish-actions.pod:3679
28132 msgid "set-autosync"
28133 msgstr ""
28134
28135 # type: =head2
28136 #. type: =head2
28137 #: ../fish/guestfish-actions.pod:3681
28138 msgid "autosync"
28139 msgstr ""
28140
28141 # type: verbatim
28142 #. type: verbatim
28143 #: ../fish/guestfish-actions.pod:3683
28144 #, no-wrap
28145 msgid ""
28146 " set-autosync true|false\n"
28147 "\n"
28148 msgstr ""
28149
28150 # type: textblock
28151 #. type: textblock
28152 #: ../fish/guestfish-actions.pod:3685
28153 msgid ""
28154 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
28155 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
28156 "closed (also if the program exits without closing handles)."
28157 msgstr ""
28158
28159 # type: =head2
28160 #. type: =head2
28161 #: ../fish/guestfish-actions.pod:3693
28162 msgid "set-direct"
28163 msgstr ""
28164
28165 # type: =head2
28166 #. type: =head2
28167 #: ../fish/guestfish-actions.pod:3695
28168 msgid "direct"
28169 msgstr ""
28170
28171 # type: verbatim
28172 #. type: verbatim
28173 #: ../fish/guestfish-actions.pod:3697
28174 #, no-wrap
28175 msgid ""
28176 " set-direct true|false\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: textblock
28181 #. type: textblock
28182 #: ../fish/guestfish-actions.pod:3703
28183 msgid ""
28184 "One consequence of this is that log messages aren't caught by the library "
28185 "and handled by L</set-log-message-callback>, but go straight to stdout."
28186 msgstr ""
28187
28188 # type: =head2
28189 #. type: =head2
28190 #: ../fish/guestfish-actions.pod:3712
28191 msgid "set-e2label"
28192 msgstr ""
28193
28194 # type: verbatim
28195 #. type: verbatim
28196 #: ../fish/guestfish-actions.pod:3714
28197 #, no-wrap
28198 msgid ""
28199 " set-e2label device label\n"
28200 "\n"
28201 msgstr ""
28202
28203 # type: textblock
28204 #. type: textblock
28205 #: ../fish/guestfish-actions.pod:3720
28206 msgid ""
28207 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28208 "label on a filesystem."
28209 msgstr ""
28210
28211 # type: =head2
28212 #. type: =head2
28213 #: ../fish/guestfish-actions.pod:3723
28214 msgid "set-e2uuid"
28215 msgstr ""
28216
28217 # type: verbatim
28218 #. type: verbatim
28219 #: ../fish/guestfish-actions.pod:3725
28220 #, no-wrap
28221 msgid ""
28222 " set-e2uuid device uuid\n"
28223 "\n"
28224 msgstr ""
28225
28226 # type: textblock
28227 #. type: textblock
28228 #: ../fish/guestfish-actions.pod:3732
28229 msgid ""
28230 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28231 "UUID of a filesystem."
28232 msgstr ""
28233
28234 # type: =head2
28235 #. type: =head2
28236 #: ../fish/guestfish-actions.pod:3735
28237 msgid "set-memsize"
28238 msgstr ""
28239
28240 # type: =head2
28241 #. type: =head2
28242 #: ../fish/guestfish-actions.pod:3737
28243 msgid "memsize"
28244 msgstr ""
28245
28246 # type: verbatim
28247 #. type: verbatim
28248 #: ../fish/guestfish-actions.pod:3739
28249 #, no-wrap
28250 msgid ""
28251 " set-memsize memsize\n"
28252 "\n"
28253 msgstr ""
28254
28255 # type: textblock
28256 #. type: textblock
28257 #: ../fish/guestfish-actions.pod:3741
28258 msgid ""
28259 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28260 "This only has any effect if called before L</launch>."
28261 msgstr ""
28262
28263 # type: =head2
28264 #. type: =head2
28265 #: ../fish/guestfish-actions.pod:3752
28266 msgid "set-network"
28267 msgstr ""
28268
28269 # type: =head2
28270 #. type: =head2
28271 #: ../fish/guestfish-actions.pod:3754
28272 msgid "network"
28273 msgstr ""
28274
28275 # type: verbatim
28276 #. type: verbatim
28277 #: ../fish/guestfish-actions.pod:3756
28278 #, no-wrap
28279 msgid ""
28280 " set-network true|false\n"
28281 "\n"
28282 msgstr ""
28283
28284 # type: textblock
28285 #. type: textblock
28286 #: ../fish/guestfish-actions.pod:3764
28287 msgid ""
28288 "You must call this before calling L</launch>, otherwise it has no effect."
28289 msgstr ""
28290
28291 # type: =head2
28292 #. type: =head2
28293 #: ../fish/guestfish-actions.pod:3767
28294 msgid "set-path"
28295 msgstr ""
28296
28297 # type: =head2
28298 #. type: =head2
28299 #: ../fish/guestfish-actions.pod:3769
28300 msgid "path"
28301 msgstr ""
28302
28303 # type: verbatim
28304 #. type: verbatim
28305 #: ../fish/guestfish-actions.pod:3771
28306 #, no-wrap
28307 msgid ""
28308 " set-path searchpath\n"
28309 "\n"
28310 msgstr ""
28311
28312 # type: =head2
28313 #. type: =head2
28314 #: ../fish/guestfish-actions.pod:3780
28315 msgid "set-qemu"
28316 msgstr ""
28317
28318 # type: =head2
28319 #. type: =head2
28320 #: ../fish/guestfish-actions.pod:3782
28321 msgid "qemu"
28322 msgstr ""
28323
28324 # type: verbatim
28325 #. type: verbatim
28326 #: ../fish/guestfish-actions.pod:3784
28327 #, no-wrap
28328 msgid ""
28329 " set-qemu qemu\n"
28330 "\n"
28331 msgstr ""
28332
28333 # type: =head2
28334 #. type: =head2
28335 #: ../fish/guestfish-actions.pod:3804
28336 msgid "set-recovery-proc"
28337 msgstr ""
28338
28339 # type: =head2
28340 #. type: =head2
28341 #: ../fish/guestfish-actions.pod:3806
28342 msgid "recovery-proc"
28343 msgstr ""
28344
28345 # type: verbatim
28346 #. type: verbatim
28347 #: ../fish/guestfish-actions.pod:3808
28348 #, no-wrap
28349 msgid ""
28350 " set-recovery-proc true|false\n"
28351 "\n"
28352 msgstr ""
28353
28354 # type: textblock
28355 #. type: textblock
28356 #: ../fish/guestfish-actions.pod:3810
28357 msgid ""
28358 "If this is called with the parameter C<false> then L</launch> does not "
28359 "create a recovery process.  The purpose of the recovery process is to stop "
28360 "runaway qemu processes in the case where the main program aborts abruptly."
28361 msgstr ""
28362
28363 # type: textblock
28364 #. type: textblock
28365 #: ../fish/guestfish-actions.pod:3815
28366 msgid ""
28367 "This only has any effect if called before L</launch>, and the default is "
28368 "true."
28369 msgstr ""
28370
28371 # type: =head2
28372 #. type: =head2
28373 #: ../fish/guestfish-actions.pod:3824
28374 msgid "set-selinux"
28375 msgstr ""
28376
28377 # type: =head2
28378 #. type: =head2
28379 #: ../fish/guestfish-actions.pod:3826
28380 msgid "selinux"
28381 msgstr ""
28382
28383 # type: verbatim
28384 #. type: verbatim
28385 #: ../fish/guestfish-actions.pod:3828
28386 #, no-wrap
28387 msgid ""
28388 " set-selinux true|false\n"
28389 "\n"
28390 msgstr ""
28391
28392 # type: =head2
28393 #. type: =head2
28394 #: ../fish/guestfish-actions.pod:3839
28395 msgid "set-trace"
28396 msgstr ""
28397
28398 # type: =head2
28399 #. type: =head2
28400 #: ../fish/guestfish-actions.pod:3841
28401 msgid "trace"
28402 msgstr ""
28403
28404 # type: verbatim
28405 #. type: verbatim
28406 #: ../fish/guestfish-actions.pod:3843
28407 #, no-wrap
28408 msgid ""
28409 " set-trace true|false\n"
28410 "\n"
28411 msgstr ""
28412
28413 # type: =head2
28414 #. type: =head2
28415 #: ../fish/guestfish-actions.pod:3859
28416 msgid "set-verbose"
28417 msgstr ""
28418
28419 # type: =head2
28420 #. type: =head2
28421 #: ../fish/guestfish-actions.pod:3861
28422 msgid "verbose"
28423 msgstr ""
28424
28425 # type: verbatim
28426 #. type: verbatim
28427 #: ../fish/guestfish-actions.pod:3863
28428 #, no-wrap
28429 msgid ""
28430 " set-verbose true|false\n"
28431 "\n"
28432 msgstr ""
28433
28434 # type: =head2
28435 #. type: =head2
28436 #: ../fish/guestfish-actions.pod:3870
28437 msgid "setcon"
28438 msgstr ""
28439
28440 # type: verbatim
28441 #. type: verbatim
28442 #: ../fish/guestfish-actions.pod:3872
28443 #, no-wrap
28444 msgid ""
28445 " setcon context\n"
28446 "\n"
28447 msgstr ""
28448
28449 # type: =head2
28450 #. type: =head2
28451 #: ../fish/guestfish-actions.pod:3879
28452 msgid "setxattr"
28453 msgstr ""
28454
28455 # type: verbatim
28456 #. type: verbatim
28457 #: ../fish/guestfish-actions.pod:3881
28458 #, no-wrap
28459 msgid ""
28460 " setxattr xattr val vallen path\n"
28461 "\n"
28462 msgstr ""
28463
28464 # type: textblock
28465 #. type: textblock
28466 #: ../fish/guestfish-actions.pod:3887
28467 msgid "See also: L</lsetxattr>, L<attr(5)>."
28468 msgstr ""
28469
28470 # type: =head2
28471 #. type: =head2
28472 #: ../fish/guestfish-actions.pod:3889
28473 msgid "sfdisk"
28474 msgstr ""
28475
28476 # type: verbatim
28477 #. type: verbatim
28478 #: ../fish/guestfish-actions.pod:3891
28479 #, no-wrap
28480 msgid ""
28481 " sfdisk device cyls heads sectors 'lines ...'\n"
28482 "\n"
28483 msgstr ""
28484
28485 # type: textblock
28486 #. type: textblock
28487 #: ../fish/guestfish-actions.pod:3913
28488 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28489 msgstr ""
28490
28491 # type: =head2
28492 #. type: =head2
28493 #: ../fish/guestfish-actions.pod:3919
28494 msgid "sfdiskM"
28495 msgstr ""
28496
28497 # type: verbatim
28498 #. type: verbatim
28499 #: ../fish/guestfish-actions.pod:3921
28500 #, no-wrap
28501 msgid ""
28502 " sfdiskM device 'lines ...'\n"
28503 "\n"
28504 msgstr ""
28505
28506 # type: textblock
28507 #. type: textblock
28508 #: ../fish/guestfish-actions.pod:3923
28509 msgid ""
28510 "This is a simplified interface to the L</sfdisk> command, where partition "
28511 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28512 "you don't need to specify the cyls, heads and sectors parameters which were "
28513 "rarely if ever used anyway."
28514 msgstr ""
28515
28516 # type: textblock
28517 #. type: textblock
28518 #: ../fish/guestfish-actions.pod:3929
28519 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28520 msgstr ""
28521
28522 # type: =head2
28523 #. type: =head2
28524 #: ../fish/guestfish-actions.pod:3935
28525 msgid "sfdisk-N"
28526 msgstr ""
28527
28528 # type: verbatim
28529 #. type: verbatim
28530 #: ../fish/guestfish-actions.pod:3937
28531 #, no-wrap
28532 msgid ""
28533 " sfdisk-N device partnum cyls heads sectors line\n"
28534 "\n"
28535 msgstr ""
28536
28537 # type: textblock
28538 #. type: textblock
28539 #: ../fish/guestfish-actions.pod:3942
28540 msgid ""
28541 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28542 "cyls/heads/sectors parameters."
28543 msgstr ""
28544
28545 # type: textblock
28546 #. type: textblock
28547 #: ../fish/guestfish-actions.pod:3945
28548 msgid "See also: L</part-add>"
28549 msgstr ""
28550
28551 # type: =head2
28552 #. type: =head2
28553 #: ../fish/guestfish-actions.pod:3950
28554 msgid "sfdisk-disk-geometry"
28555 msgstr ""
28556
28557 # type: verbatim
28558 #. type: verbatim
28559 #: ../fish/guestfish-actions.pod:3952
28560 #, no-wrap
28561 msgid ""
28562 " sfdisk-disk-geometry device\n"
28563 "\n"
28564 msgstr ""
28565
28566 # type: textblock
28567 #. type: textblock
28568 #: ../fish/guestfish-actions.pod:3954
28569 msgid ""
28570 "This displays the disk geometry of C<device> read from the partition table.  "
28571 "Especially in the case where the underlying block device has been resized, "
28572 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
28573 "kernel-geometry>)."
28574 msgstr ""
28575
28576 # type: =head2
28577 #. type: =head2
28578 #: ../fish/guestfish-actions.pod:3962
28579 msgid "sfdisk-kernel-geometry"
28580 msgstr ""
28581
28582 # type: verbatim
28583 #. type: verbatim
28584 #: ../fish/guestfish-actions.pod:3964
28585 #, no-wrap
28586 msgid ""
28587 " sfdisk-kernel-geometry device\n"
28588 "\n"
28589 msgstr ""
28590
28591 # type: =head2
28592 #. type: =head2
28593 #: ../fish/guestfish-actions.pod:3971
28594 msgid "sfdisk-l"
28595 msgstr ""
28596
28597 # type: verbatim
28598 #. type: verbatim
28599 #: ../fish/guestfish-actions.pod:3973
28600 #, no-wrap
28601 msgid ""
28602 " sfdisk-l device\n"
28603 "\n"
28604 msgstr ""
28605
28606 # type: textblock
28607 #. type: textblock
28608 #: ../fish/guestfish-actions.pod:3979
28609 msgid "See also: L</part-list>"
28610 msgstr ""
28611
28612 # type: =head2
28613 #. type: =head2
28614 #: ../fish/guestfish-actions.pod:3981
28615 msgid "sh"
28616 msgstr ""
28617
28618 # type: verbatim
28619 #. type: verbatim
28620 #: ../fish/guestfish-actions.pod:3983
28621 #, no-wrap
28622 msgid ""
28623 " sh command\n"
28624 "\n"
28625 msgstr ""
28626
28627 # type: textblock
28628 #. type: textblock
28629 #: ../fish/guestfish-actions.pod:3988
28630 msgid "This is like L</command>, but passes the command to:"
28631 msgstr ""
28632
28633 # type: textblock
28634 #. type: textblock
28635 #: ../fish/guestfish-actions.pod:3996
28636 msgid "All the provisos about L</command> apply to this call."
28637 msgstr ""
28638
28639 # type: =head2
28640 #. type: =head2
28641 #: ../fish/guestfish-actions.pod:3998
28642 msgid "sh-lines"
28643 msgstr ""
28644
28645 # type: verbatim
28646 #. type: verbatim
28647 #: ../fish/guestfish-actions.pod:4000
28648 #, no-wrap
28649 msgid ""
28650 " sh-lines command\n"
28651 "\n"
28652 msgstr ""
28653
28654 # type: textblock
28655 #. type: textblock
28656 #: ../fish/guestfish-actions.pod:4002
28657 msgid "This is the same as L</sh>, but splits the result into a list of lines."
28658 msgstr ""
28659
28660 # type: textblock
28661 #. type: textblock
28662 #: ../fish/guestfish-actions.pod:4005
28663 msgid "See also: L</command-lines>"
28664 msgstr ""
28665
28666 # type: =head2
28667 #. type: =head2
28668 #: ../fish/guestfish-actions.pod:4007
28669 msgid "sleep"
28670 msgstr ""
28671
28672 # type: verbatim
28673 #. type: verbatim
28674 #: ../fish/guestfish-actions.pod:4009
28675 #, no-wrap
28676 msgid ""
28677 " sleep secs\n"
28678 "\n"
28679 msgstr ""
28680
28681 # type: =head2
28682 #. type: =head2
28683 #: ../fish/guestfish-actions.pod:4013
28684 msgid "stat"
28685 msgstr ""
28686
28687 # type: verbatim
28688 #. type: verbatim
28689 #: ../fish/guestfish-actions.pod:4015
28690 #, no-wrap
28691 msgid ""
28692 " stat path\n"
28693 "\n"
28694 msgstr ""
28695
28696 # type: =head2
28697 #. type: =head2
28698 #: ../fish/guestfish-actions.pod:4021
28699 msgid "statvfs"
28700 msgstr ""
28701
28702 # type: verbatim
28703 #. type: verbatim
28704 #: ../fish/guestfish-actions.pod:4023
28705 #, no-wrap
28706 msgid ""
28707 " statvfs path\n"
28708 "\n"
28709 msgstr ""
28710
28711 # type: =head2
28712 #. type: =head2
28713 #: ../fish/guestfish-actions.pod:4031
28714 msgid "strings"
28715 msgstr ""
28716
28717 # type: verbatim
28718 #. type: verbatim
28719 #: ../fish/guestfish-actions.pod:4033
28720 #, no-wrap
28721 msgid ""
28722 " strings path\n"
28723 "\n"
28724 msgstr ""
28725
28726 # type: =head2
28727 #. type: =head2
28728 #: ../fish/guestfish-actions.pod:4041
28729 msgid "strings-e"
28730 msgstr ""
28731
28732 # type: verbatim
28733 #. type: verbatim
28734 #: ../fish/guestfish-actions.pod:4043
28735 #, no-wrap
28736 msgid ""
28737 " strings-e encoding path\n"
28738 "\n"
28739 msgstr ""
28740
28741 # type: textblock
28742 #. type: textblock
28743 #: ../fish/guestfish-actions.pod:4045
28744 msgid ""
28745 "This is like the L</strings> command, but allows you to specify the encoding "
28746 "of strings that are looked for in the source file C<path>."
28747 msgstr ""
28748
28749 # type: textblock
28750 #. type: textblock
28751 #: ../fish/guestfish-actions.pod:4055
28752 msgid ""
28753 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28754 "ISO-8859-X (this is what L</strings> uses)."
28755 msgstr ""
28756
28757 # type: =head2
28758 #. type: =head2
28759 #: ../fish/guestfish-actions.pod:4087
28760 msgid "swapoff-device"
28761 msgstr ""
28762
28763 # type: verbatim
28764 #. type: verbatim
28765 #: ../fish/guestfish-actions.pod:4089
28766 #, no-wrap
28767 msgid ""
28768 " swapoff-device device\n"
28769 "\n"
28770 msgstr ""
28771
28772 # type: textblock
28773 #. type: textblock
28774 #: ../fish/guestfish-actions.pod:4091
28775 msgid ""
28776 "This command disables the libguestfs appliance swap device or partition "
28777 "named C<device>.  See L</swapon-device>."
28778 msgstr ""
28779
28780 # type: =head2
28781 #. type: =head2
28782 #: ../fish/guestfish-actions.pod:4095
28783 msgid "swapoff-file"
28784 msgstr ""
28785
28786 # type: verbatim
28787 #. type: verbatim
28788 #: ../fish/guestfish-actions.pod:4097
28789 #, no-wrap
28790 msgid ""
28791 " swapoff-file file\n"
28792 "\n"
28793 msgstr ""
28794
28795 # type: =head2
28796 #. type: =head2
28797 #: ../fish/guestfish-actions.pod:4101
28798 msgid "swapoff-label"
28799 msgstr ""
28800
28801 # type: verbatim
28802 #. type: verbatim
28803 #: ../fish/guestfish-actions.pod:4103
28804 #, no-wrap
28805 msgid ""
28806 " swapoff-label label\n"
28807 "\n"
28808 msgstr ""
28809
28810 # type: =head2
28811 #. type: =head2
28812 #: ../fish/guestfish-actions.pod:4108
28813 msgid "swapoff-uuid"
28814 msgstr ""
28815
28816 # type: verbatim
28817 #. type: verbatim
28818 #: ../fish/guestfish-actions.pod:4110
28819 #, no-wrap
28820 msgid ""
28821 " swapoff-uuid uuid\n"
28822 "\n"
28823 msgstr ""
28824
28825 # type: =head2
28826 #. type: =head2
28827 #: ../fish/guestfish-actions.pod:4115
28828 msgid "swapon-device"
28829 msgstr ""
28830
28831 # type: verbatim
28832 #. type: verbatim
28833 #: ../fish/guestfish-actions.pod:4117
28834 #, no-wrap
28835 msgid ""
28836 " swapon-device device\n"
28837 "\n"
28838 msgstr ""
28839
28840 # type: textblock
28841 #. type: textblock
28842 #: ../fish/guestfish-actions.pod:4119
28843 msgid ""
28844 "This command enables the libguestfs appliance to use the swap device or "
28845 "partition named C<device>.  The increased memory is made available for all "
28846 "commands, for example those run using L</command> or L</sh>."
28847 msgstr ""
28848
28849 # type: =head2
28850 #. type: =head2
28851 #: ../fish/guestfish-actions.pod:4131
28852 msgid "swapon-file"
28853 msgstr ""
28854
28855 # type: verbatim
28856 #. type: verbatim
28857 #: ../fish/guestfish-actions.pod:4133
28858 #, no-wrap
28859 msgid ""
28860 " swapon-file file\n"
28861 "\n"
28862 msgstr ""
28863
28864 # type: textblock
28865 #. type: textblock
28866 #: ../fish/guestfish-actions.pod:4135
28867 msgid ""
28868 "This command enables swap to a file.  See L</swapon-device> for other notes."
28869 msgstr ""
28870
28871 # type: =head2
28872 #. type: =head2
28873 #: ../fish/guestfish-actions.pod:4138
28874 msgid "swapon-label"
28875 msgstr ""
28876
28877 # type: verbatim
28878 #. type: verbatim
28879 #: ../fish/guestfish-actions.pod:4140
28880 #, no-wrap
28881 msgid ""
28882 " swapon-label label\n"
28883 "\n"
28884 msgstr ""
28885
28886 # type: textblock
28887 #. type: textblock
28888 #: ../fish/guestfish-actions.pod:4142
28889 msgid ""
28890 "This command enables swap to a labeled swap partition.  See L</swapon-"
28891 "device> for other notes."
28892 msgstr ""
28893
28894 # type: =head2
28895 #. type: =head2
28896 #: ../fish/guestfish-actions.pod:4145
28897 msgid "swapon-uuid"
28898 msgstr ""
28899
28900 # type: verbatim
28901 #. type: verbatim
28902 #: ../fish/guestfish-actions.pod:4147
28903 #, no-wrap
28904 msgid ""
28905 " swapon-uuid uuid\n"
28906 "\n"
28907 msgstr ""
28908
28909 # type: textblock
28910 #. type: textblock
28911 #: ../fish/guestfish-actions.pod:4149
28912 msgid ""
28913 "This command enables swap to a swap partition with the given UUID.  See L</"
28914 "swapon-device> for other notes."
28915 msgstr ""
28916
28917 # type: =head2
28918 #. type: =head2
28919 #: ../fish/guestfish-actions.pod:4152
28920 msgid "sync"
28921 msgstr ""
28922
28923 # type: verbatim
28924 #. type: verbatim
28925 #: ../fish/guestfish-actions.pod:4154
28926 #, no-wrap
28927 msgid ""
28928 " sync\n"
28929 "\n"
28930 msgstr ""
28931
28932 # type: =head2
28933 #. type: =head2
28934 #: ../fish/guestfish-actions.pod:4162
28935 msgid "tail"
28936 msgstr ""
28937
28938 # type: verbatim
28939 #. type: verbatim
28940 #: ../fish/guestfish-actions.pod:4164
28941 #, no-wrap
28942 msgid ""
28943 " tail path\n"
28944 "\n"
28945 msgstr ""
28946
28947 # type: =head2
28948 #. type: =head2
28949 #: ../fish/guestfish-actions.pod:4172
28950 msgid "tail-n"
28951 msgstr ""
28952
28953 # type: verbatim
28954 #. type: verbatim
28955 #: ../fish/guestfish-actions.pod:4174
28956 #, no-wrap
28957 msgid ""
28958 " tail-n nrlines path\n"
28959 "\n"
28960 msgstr ""
28961
28962 # type: =head2
28963 #. type: =head2
28964 #: ../fish/guestfish-actions.pod:4187
28965 msgid "tar-in"
28966 msgstr ""
28967
28968 # type: verbatim
28969 #. type: verbatim
28970 #: ../fish/guestfish-actions.pod:4189
28971 #, no-wrap
28972 msgid ""
28973 " tar-in (tarfile|-) directory\n"
28974 "\n"
28975 msgstr ""
28976
28977 # type: textblock
28978 #. type: textblock
28979 #: ../fish/guestfish-actions.pod:4194
28980 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
28981 msgstr ""
28982
28983 # type: =head2
28984 #. type: =head2
28985 #: ../fish/guestfish-actions.pod:4199
28986 msgid "tar-out"
28987 msgstr ""
28988
28989 # type: verbatim
28990 #. type: verbatim
28991 #: ../fish/guestfish-actions.pod:4201
28992 #, no-wrap
28993 msgid ""
28994 " tar-out directory (tarfile|-)\n"
28995 "\n"
28996 msgstr ""
28997
28998 # type: textblock
28999 #. type: textblock
29000 #: ../fish/guestfish-actions.pod:4206
29001 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29002 msgstr ""
29003
29004 # type: =head2
29005 #. type: =head2
29006 #: ../fish/guestfish-actions.pod:4211
29007 msgid "tgz-in"
29008 msgstr ""
29009
29010 # type: verbatim
29011 #. type: verbatim
29012 #: ../fish/guestfish-actions.pod:4213
29013 #, no-wrap
29014 msgid ""
29015 " tgz-in (tarball|-) directory\n"
29016 "\n"
29017 msgstr ""
29018
29019 # type: textblock
29020 #. type: textblock
29021 #: ../fish/guestfish-actions.pod:4218
29022 msgid "To upload an uncompressed tarball, use L</tar-in>."
29023 msgstr ""
29024
29025 # type: =head2
29026 #. type: =head2
29027 #: ../fish/guestfish-actions.pod:4222
29028 msgid "tgz-out"
29029 msgstr ""
29030
29031 # type: verbatim
29032 #. type: verbatim
29033 #: ../fish/guestfish-actions.pod:4224
29034 #, no-wrap
29035 msgid ""
29036 " tgz-out directory (tarball|-)\n"
29037 "\n"
29038 msgstr ""
29039
29040 # type: textblock
29041 #. type: textblock
29042 #: ../fish/guestfish-actions.pod:4229
29043 msgid "To download an uncompressed tarball, use L</tar-out>."
29044 msgstr ""
29045
29046 # type: =head2
29047 #. type: =head2
29048 #: ../fish/guestfish-actions.pod:4233
29049 msgid "touch"
29050 msgstr ""
29051
29052 # type: verbatim
29053 #. type: verbatim
29054 #: ../fish/guestfish-actions.pod:4235
29055 #, no-wrap
29056 msgid ""
29057 " touch path\n"
29058 "\n"
29059 msgstr ""
29060
29061 # type: =head2
29062 #. type: =head2
29063 #: ../fish/guestfish-actions.pod:4244
29064 msgid "truncate"
29065 msgstr ""
29066
29067 # type: verbatim
29068 #. type: verbatim
29069 #: ../fish/guestfish-actions.pod:4246
29070 #, no-wrap
29071 msgid ""
29072 " truncate path\n"
29073 "\n"
29074 msgstr ""
29075
29076 # type: =head2
29077 #. type: =head2
29078 #: ../fish/guestfish-actions.pod:4251
29079 msgid "truncate-size"
29080 msgstr ""
29081
29082 # type: verbatim
29083 #. type: verbatim
29084 #: ../fish/guestfish-actions.pod:4253
29085 #, no-wrap
29086 msgid ""
29087 " truncate-size path size\n"
29088 "\n"
29089 msgstr ""
29090
29091 # type: textblock
29092 #. type: textblock
29093 #: ../fish/guestfish-actions.pod:4258
29094 msgid ""
29095 "If the current file size is less than C<size> then the file is extended to "
29096 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29097 "blocks are not allocated for the file until you write to it).  To create a "
29098 "non-sparse file of zeroes, use L</fallocate64> instead."
29099 msgstr ""
29100
29101 # type: =head2
29102 #. type: =head2
29103 #: ../fish/guestfish-actions.pod:4264
29104 msgid "tune2fs-l"
29105 msgstr ""
29106
29107 # type: verbatim
29108 #. type: verbatim
29109 #: ../fish/guestfish-actions.pod:4266
29110 #, no-wrap
29111 msgid ""
29112 " tune2fs-l device\n"
29113 "\n"
29114 msgstr ""
29115
29116 # type: =head2
29117 #. type: =head2
29118 #: ../fish/guestfish-actions.pod:4276
29119 msgid "txz-in"
29120 msgstr ""
29121
29122 # type: verbatim
29123 #. type: verbatim
29124 #: ../fish/guestfish-actions.pod:4278
29125 #, no-wrap
29126 msgid ""
29127 " txz-in (tarball|-) directory\n"
29128 "\n"
29129 msgstr ""
29130
29131 # type: =head2
29132 #. type: =head2
29133 #: ../fish/guestfish-actions.pod:4285
29134 msgid "txz-out"
29135 msgstr ""
29136
29137 # type: verbatim
29138 #. type: verbatim
29139 #: ../fish/guestfish-actions.pod:4287
29140 #, no-wrap
29141 msgid ""
29142 " txz-out directory (tarball|-)\n"
29143 "\n"
29144 msgstr ""
29145
29146 # type: =head2
29147 #. type: =head2
29148 #: ../fish/guestfish-actions.pod:4294
29149 msgid "umask"
29150 msgstr ""
29151
29152 # type: verbatim
29153 #. type: verbatim
29154 #: ../fish/guestfish-actions.pod:4296
29155 #, no-wrap
29156 msgid ""
29157 " umask mask\n"
29158 "\n"
29159 msgstr ""
29160
29161 # type: textblock
29162 #. type: textblock
29163 #: ../fish/guestfish-actions.pod:4310
29164 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29165 msgstr ""
29166
29167 # type: =head2
29168 #. type: =head2
29169 #: ../fish/guestfish-actions.pod:4315
29170 msgid "umount"
29171 msgstr ""
29172
29173 # type: =head2
29174 #. type: =head2
29175 #: ../fish/guestfish-actions.pod:4317
29176 msgid "unmount"
29177 msgstr ""
29178
29179 # type: verbatim
29180 #. type: verbatim
29181 #: ../fish/guestfish-actions.pod:4319
29182 #, no-wrap
29183 msgid ""
29184 " umount pathordevice\n"
29185 "\n"
29186 msgstr ""
29187
29188 # type: =head2
29189 #. type: =head2
29190 #: ../fish/guestfish-actions.pod:4325
29191 msgid "umount-all"
29192 msgstr ""
29193
29194 # type: =head2
29195 #. type: =head2
29196 #: ../fish/guestfish-actions.pod:4327
29197 msgid "unmount-all"
29198 msgstr ""
29199
29200 # type: verbatim
29201 #. type: verbatim
29202 #: ../fish/guestfish-actions.pod:4329
29203 #, no-wrap
29204 msgid ""
29205 " umount-all\n"
29206 "\n"
29207 msgstr ""
29208
29209 # type: =head2
29210 #. type: =head2
29211 #: ../fish/guestfish-actions.pod:4335
29212 msgid "upload"
29213 msgstr ""
29214
29215 # type: verbatim
29216 #. type: verbatim
29217 #: ../fish/guestfish-actions.pod:4337
29218 #, no-wrap
29219 msgid ""
29220 " upload (filename|-) remotefilename\n"
29221 "\n"
29222 msgstr ""
29223
29224 # type: textblock
29225 #. type: textblock
29226 #: ../fish/guestfish-actions.pod:4344
29227 msgid "See also L</download>."
29228 msgstr ""
29229
29230 # type: =head2
29231 #. type: =head2
29232 #: ../fish/guestfish-actions.pod:4348
29233 msgid "upload-offset"
29234 msgstr ""
29235
29236 # type: verbatim
29237 #. type: verbatim
29238 #: ../fish/guestfish-actions.pod:4350
29239 #, no-wrap
29240 msgid ""
29241 " upload-offset (filename|-) remotefilename offset\n"
29242 "\n"
29243 msgstr ""
29244
29245 # type: textblock
29246 #. type: textblock
29247 #: ../fish/guestfish-actions.pod:4362
29248 msgid ""
29249 "Note that there is no limit on the amount of data that can be uploaded with "
29250 "this call, unlike with L</pwrite>, and this call always writes the full "
29251 "amount unless an error occurs."
29252 msgstr ""
29253
29254 # type: textblock
29255 #. type: textblock
29256 #: ../fish/guestfish-actions.pod:4367
29257 msgid "See also L</upload>, L</pwrite>."
29258 msgstr ""
29259
29260 # type: =head2
29261 #. type: =head2
29262 #: ../fish/guestfish-actions.pod:4371
29263 msgid "utimens"
29264 msgstr ""
29265
29266 # type: verbatim
29267 #. type: verbatim
29268 #: ../fish/guestfish-actions.pod:4373
29269 #, no-wrap
29270 msgid ""
29271 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29272 "\n"
29273 msgstr ""
29274
29275 # type: =head2
29276 #. type: =head2
29277 #: ../fish/guestfish-actions.pod:4392
29278 msgid "version"
29279 msgstr ""
29280
29281 # type: verbatim
29282 #. type: verbatim
29283 #: ../fish/guestfish-actions.pod:4394
29284 #, no-wrap
29285 msgid ""
29286 " version\n"
29287 "\n"
29288 msgstr ""
29289
29290 # type: textblock
29291 #. type: textblock
29292 #: ../fish/guestfish-actions.pod:4421
29293 msgid ""
29294 "I<Note:> Don't use this call to test for availability of features.  In "
29295 "enterprise distributions we backport features from later versions into "
29296 "earlier versions, making this an unreliable way to test for features.  Use "
29297 "L</available> instead."
29298 msgstr ""
29299
29300 # type: =head2
29301 #. type: =head2
29302 #: ../fish/guestfish-actions.pod:4427
29303 msgid "vfs-label"
29304 msgstr ""
29305
29306 # type: verbatim
29307 #. type: verbatim
29308 #: ../fish/guestfish-actions.pod:4429
29309 #, no-wrap
29310 msgid ""
29311 " vfs-label device\n"
29312 "\n"
29313 msgstr ""
29314
29315 # type: textblock
29316 #. type: textblock
29317 #: ../fish/guestfish-actions.pod:4436
29318 msgid "To find a filesystem from the label, use L</findfs-label>."
29319 msgstr ""
29320
29321 # type: =head2
29322 #. type: =head2
29323 #: ../fish/guestfish-actions.pod:4438
29324 msgid "vfs-type"
29325 msgstr ""
29326
29327 # type: verbatim
29328 #. type: verbatim
29329 #: ../fish/guestfish-actions.pod:4440
29330 #, no-wrap
29331 msgid ""
29332 " vfs-type device\n"
29333 "\n"
29334 msgstr ""
29335
29336 # type: =head2
29337 #. type: =head2
29338 #: ../fish/guestfish-actions.pod:4450
29339 msgid "vfs-uuid"
29340 msgstr ""
29341
29342 # type: verbatim
29343 #. type: verbatim
29344 #: ../fish/guestfish-actions.pod:4452
29345 #, no-wrap
29346 msgid ""
29347 " vfs-uuid device\n"
29348 "\n"
29349 msgstr ""
29350
29351 # type: textblock
29352 #. type: textblock
29353 #: ../fish/guestfish-actions.pod:4459
29354 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29355 msgstr ""
29356
29357 # type: =head2
29358 #. type: =head2
29359 #: ../fish/guestfish-actions.pod:4461
29360 msgid "vg-activate"
29361 msgstr ""
29362
29363 # type: verbatim
29364 #. type: verbatim
29365 #: ../fish/guestfish-actions.pod:4463
29366 #, no-wrap
29367 msgid ""
29368 " vg-activate true|false 'volgroups ...'\n"
29369 "\n"
29370 msgstr ""
29371
29372 # type: =head2
29373 #. type: =head2
29374 #: ../fish/guestfish-actions.pod:4476
29375 msgid "vg-activate-all"
29376 msgstr ""
29377
29378 # type: verbatim
29379 #. type: verbatim
29380 #: ../fish/guestfish-actions.pod:4478
29381 #, no-wrap
29382 msgid ""
29383 " vg-activate-all true|false\n"
29384 "\n"
29385 msgstr ""
29386
29387 # type: =head2
29388 #. type: =head2
29389 #: ../fish/guestfish-actions.pod:4488
29390 msgid "vgcreate"
29391 msgstr ""
29392
29393 # type: verbatim
29394 #. type: verbatim
29395 #: ../fish/guestfish-actions.pod:4490
29396 #, no-wrap
29397 msgid ""
29398 " vgcreate volgroup 'physvols ...'\n"
29399 "\n"
29400 msgstr ""
29401
29402 # type: =head2
29403 #. type: =head2
29404 #: ../fish/guestfish-actions.pod:4495
29405 msgid "vglvuuids"
29406 msgstr ""
29407
29408 # type: verbatim
29409 #. type: verbatim
29410 #: ../fish/guestfish-actions.pod:4497
29411 #, no-wrap
29412 msgid ""
29413 " vglvuuids vgname\n"
29414 "\n"
29415 msgstr ""
29416
29417 # type: textblock
29418 #. type: textblock
29419 #: ../fish/guestfish-actions.pod:4502
29420 msgid ""
29421 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29422 "logical volumes and volume groups."
29423 msgstr ""
29424
29425 # type: textblock
29426 #. type: textblock
29427 #: ../fish/guestfish-actions.pod:4505
29428 msgid "See also L</vgpvuuids>."
29429 msgstr ""
29430
29431 # type: =head2
29432 #. type: =head2
29433 #: ../fish/guestfish-actions.pod:4507
29434 msgid "vgpvuuids"
29435 msgstr ""
29436
29437 # type: verbatim
29438 #. type: verbatim
29439 #: ../fish/guestfish-actions.pod:4509
29440 #, no-wrap
29441 msgid ""
29442 " vgpvuuids vgname\n"
29443 "\n"
29444 msgstr ""
29445
29446 # type: textblock
29447 #. type: textblock
29448 #: ../fish/guestfish-actions.pod:4514
29449 msgid ""
29450 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29451 "physical volumes and volume groups."
29452 msgstr ""
29453
29454 # type: textblock
29455 #. type: textblock
29456 #: ../fish/guestfish-actions.pod:4517
29457 msgid "See also L</vglvuuids>."
29458 msgstr ""
29459
29460 # type: =head2
29461 #. type: =head2
29462 #: ../fish/guestfish-actions.pod:4519
29463 msgid "vgremove"
29464 msgstr ""
29465
29466 # type: verbatim
29467 #. type: verbatim
29468 #: ../fish/guestfish-actions.pod:4521
29469 #, no-wrap
29470 msgid ""
29471 " vgremove vgname\n"
29472 "\n"
29473 msgstr ""
29474
29475 # type: =head2
29476 #. type: =head2
29477 #: ../fish/guestfish-actions.pod:4528
29478 msgid "vgrename"
29479 msgstr ""
29480
29481 # type: verbatim
29482 #. type: verbatim
29483 #: ../fish/guestfish-actions.pod:4530
29484 #, no-wrap
29485 msgid ""
29486 " vgrename volgroup newvolgroup\n"
29487 "\n"
29488 msgstr ""
29489
29490 # type: =head2
29491 #. type: =head2
29492 #: ../fish/guestfish-actions.pod:4534
29493 msgid "vgs"
29494 msgstr ""
29495
29496 # type: verbatim
29497 #. type: verbatim
29498 #: ../fish/guestfish-actions.pod:4536
29499 #, no-wrap
29500 msgid ""
29501 " vgs\n"
29502 "\n"
29503 msgstr ""
29504
29505 # type: textblock
29506 #. type: textblock
29507 #: ../fish/guestfish-actions.pod:4544
29508 msgid "See also L</vgs-full>."
29509 msgstr ""
29510
29511 # type: =head2
29512 #. type: =head2
29513 #: ../fish/guestfish-actions.pod:4546
29514 msgid "vgs-full"
29515 msgstr ""
29516
29517 # type: verbatim
29518 #. type: verbatim
29519 #: ../fish/guestfish-actions.pod:4548
29520 #, no-wrap
29521 msgid ""
29522 " vgs-full\n"
29523 "\n"
29524 msgstr ""
29525
29526 # type: =head2
29527 #. type: =head2
29528 #: ../fish/guestfish-actions.pod:4553
29529 msgid "vgscan"
29530 msgstr ""
29531
29532 # type: verbatim
29533 #. type: verbatim
29534 #: ../fish/guestfish-actions.pod:4555
29535 #, no-wrap
29536 msgid ""
29537 " vgscan\n"
29538 "\n"
29539 msgstr ""
29540
29541 # type: =head2
29542 #. type: =head2
29543 #: ../fish/guestfish-actions.pod:4560
29544 msgid "vguuid"
29545 msgstr ""
29546
29547 # type: verbatim
29548 #. type: verbatim
29549 #: ../fish/guestfish-actions.pod:4562
29550 #, no-wrap
29551 msgid ""
29552 " vguuid vgname\n"
29553 "\n"
29554 msgstr ""
29555
29556 # type: =head2
29557 #. type: =head2
29558 #: ../fish/guestfish-actions.pod:4566
29559 msgid "wc-c"
29560 msgstr ""
29561
29562 # type: verbatim
29563 #. type: verbatim
29564 #: ../fish/guestfish-actions.pod:4568
29565 #, no-wrap
29566 msgid ""
29567 " wc-c path\n"
29568 "\n"
29569 msgstr ""
29570
29571 # type: =head2
29572 #. type: =head2
29573 #: ../fish/guestfish-actions.pod:4573
29574 msgid "wc-l"
29575 msgstr ""
29576
29577 # type: verbatim
29578 #. type: verbatim
29579 #: ../fish/guestfish-actions.pod:4575
29580 #, no-wrap
29581 msgid ""
29582 " wc-l path\n"
29583 "\n"
29584 msgstr ""
29585
29586 # type: =head2
29587 #. type: =head2
29588 #: ../fish/guestfish-actions.pod:4580
29589 msgid "wc-w"
29590 msgstr ""
29591
29592 # type: verbatim
29593 #. type: verbatim
29594 #: ../fish/guestfish-actions.pod:4582
29595 #, no-wrap
29596 msgid ""
29597 " wc-w path\n"
29598 "\n"
29599 msgstr ""
29600
29601 # type: =head2
29602 #. type: =head2
29603 #: ../fish/guestfish-actions.pod:4587
29604 msgid "write"
29605 msgstr ""
29606
29607 # type: verbatim
29608 #. type: verbatim
29609 #: ../fish/guestfish-actions.pod:4589
29610 #, no-wrap
29611 msgid ""
29612 " write path content\n"
29613 "\n"
29614 msgstr ""
29615
29616 # type: =head2
29617 #. type: =head2
29618 #: ../fish/guestfish-actions.pod:4597
29619 msgid "write-file"
29620 msgstr ""
29621
29622 # type: verbatim
29623 #. type: verbatim
29624 #: ../fish/guestfish-actions.pod:4599
29625 #, no-wrap
29626 msgid ""
29627 " write-file path content size\n"
29628 "\n"
29629 msgstr ""
29630
29631 # type: =head2
29632 #. type: =head2
29633 #: ../fish/guestfish-actions.pod:4622
29634 msgid "zegrep"
29635 msgstr ""
29636
29637 # type: verbatim
29638 #. type: verbatim
29639 #: ../fish/guestfish-actions.pod:4624
29640 #, no-wrap
29641 msgid ""
29642 " zegrep regex path\n"
29643 "\n"
29644 msgstr ""
29645
29646 # type: =head2
29647 #. type: =head2
29648 #: ../fish/guestfish-actions.pod:4632
29649 msgid "zegrepi"
29650 msgstr ""
29651
29652 # type: verbatim
29653 #. type: verbatim
29654 #: ../fish/guestfish-actions.pod:4634
29655 #, no-wrap
29656 msgid ""
29657 " zegrepi regex path\n"
29658 "\n"
29659 msgstr ""
29660
29661 # type: =head2
29662 #. type: =head2
29663 #: ../fish/guestfish-actions.pod:4642
29664 msgid "zero"
29665 msgstr ""
29666
29667 # type: verbatim
29668 #. type: verbatim
29669 #: ../fish/guestfish-actions.pod:4644
29670 #, no-wrap
29671 msgid ""
29672 " zero device\n"
29673 "\n"
29674 msgstr ""
29675
29676 # type: textblock
29677 #. type: textblock
29678 #: ../fish/guestfish-actions.pod:4652
29679 msgid "See also: L</zero-device>, L</scrub-device>."
29680 msgstr ""
29681
29682 # type: =head2
29683 #. type: =head2
29684 #: ../fish/guestfish-actions.pod:4654
29685 msgid "zero-device"
29686 msgstr ""
29687
29688 # type: verbatim
29689 #. type: verbatim
29690 #: ../fish/guestfish-actions.pod:4656
29691 #, no-wrap
29692 msgid ""
29693 " zero-device device\n"
29694 "\n"
29695 msgstr ""
29696
29697 # type: textblock
29698 #. type: textblock
29699 #: ../fish/guestfish-actions.pod:4658
29700 msgid ""
29701 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
29702 "which just zeroes the first few blocks of a device."
29703 msgstr ""
29704
29705 # type: =head2
29706 #. type: =head2
29707 #: ../fish/guestfish-actions.pod:4665
29708 msgid "zerofree"
29709 msgstr ""
29710
29711 # type: verbatim
29712 #. type: verbatim
29713 #: ../fish/guestfish-actions.pod:4667
29714 #, no-wrap
29715 msgid ""
29716 " zerofree device\n"
29717 "\n"
29718 msgstr ""
29719
29720 # type: =head2
29721 #. type: =head2
29722 #: ../fish/guestfish-actions.pod:4680
29723 msgid "zfgrep"
29724 msgstr ""
29725
29726 # type: verbatim
29727 #. type: verbatim
29728 #: ../fish/guestfish-actions.pod:4682
29729 #, no-wrap
29730 msgid ""
29731 " zfgrep pattern path\n"
29732 "\n"
29733 msgstr ""
29734
29735 # type: =head2
29736 #. type: =head2
29737 #: ../fish/guestfish-actions.pod:4690
29738 msgid "zfgrepi"
29739 msgstr ""
29740
29741 # type: verbatim
29742 #. type: verbatim
29743 #: ../fish/guestfish-actions.pod:4692
29744 #, no-wrap
29745 msgid ""
29746 " zfgrepi pattern path\n"
29747 "\n"
29748 msgstr ""
29749
29750 # type: =head2
29751 #. type: =head2
29752 #: ../fish/guestfish-actions.pod:4700
29753 msgid "zfile"
29754 msgstr ""
29755
29756 # type: verbatim
29757 #. type: verbatim
29758 #: ../fish/guestfish-actions.pod:4702
29759 #, no-wrap
29760 msgid ""
29761 " zfile meth path\n"
29762 "\n"
29763 msgstr ""
29764
29765 # type: textblock
29766 #. type: textblock
29767 #: ../fish/guestfish-actions.pod:4709
29768 msgid ""
29769 "Since 1.0.63, use L</file> instead which can now process compressed files."
29770 msgstr ""
29771
29772 # type: =head2
29773 #. type: =head2
29774 #: ../fish/guestfish-actions.pod:4719
29775 msgid "zgrep"
29776 msgstr ""
29777
29778 # type: verbatim
29779 #. type: verbatim
29780 #: ../fish/guestfish-actions.pod:4721
29781 #, no-wrap
29782 msgid ""
29783 " zgrep regex path\n"
29784 "\n"
29785 msgstr ""
29786
29787 # type: =head2
29788 #. type: =head2
29789 #: ../fish/guestfish-actions.pod:4729
29790 msgid "zgrepi"
29791 msgstr ""
29792
29793 # type: verbatim
29794 #. type: verbatim
29795 #: ../fish/guestfish-actions.pod:4731
29796 #, no-wrap
29797 msgid ""
29798 " zgrepi regex path\n"
29799 "\n"
29800 msgstr ""
29801
29802 # type: =head2
29803 #. type: =head2
29804 #: ../fish/guestfish-commands.pod:1
29805 msgid "alloc"
29806 msgstr ""
29807
29808 # type: =head2
29809 #. type: =head2
29810 #: ../fish/guestfish-commands.pod:3
29811 msgid "allocate"
29812 msgstr ""
29813
29814 # type: verbatim
29815 #. type: verbatim
29816 #: ../fish/guestfish-commands.pod:5
29817 #, no-wrap
29818 msgid ""
29819 " alloc filename size\n"
29820 "\n"
29821 msgstr ""
29822
29823 # type: textblock
29824 #. type: textblock
29825 #: ../fish/guestfish-commands.pod:7
29826 msgid ""
29827 "This creates an empty (zeroed) file of the given size, and then adds so it "
29828 "can be further examined."
29829 msgstr ""
29830
29831 # type: textblock
29832 #. type: textblock
29833 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
29834 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
29835 msgstr ""
29836
29837 # type: textblock
29838 #. type: textblock
29839 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
29840 msgid "Size can be specified using standard suffixes, eg. C<1M>."
29841 msgstr ""
29842
29843 # type: textblock
29844 #. type: textblock
29845 #: ../fish/guestfish-commands.pod:14
29846 msgid ""
29847 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
29848 "image, see L</PREPARED DISK IMAGES>."
29849 msgstr ""
29850
29851 # type: =head2
29852 #. type: =head2
29853 #: ../fish/guestfish-commands.pod:17
29854 msgid "copy-in"
29855 msgstr ""
29856
29857 # type: verbatim
29858 #. type: verbatim
29859 #: ../fish/guestfish-commands.pod:19
29860 #, no-wrap
29861 msgid ""
29862 " copy-in local [local ...] /remotedir\n"
29863 "\n"
29864 msgstr ""
29865
29866 # type: textblock
29867 #. type: textblock
29868 #: ../fish/guestfish-commands.pod:21
29869 msgid ""
29870 "C<copy-in> copies local files or directories recursively into the disk "
29871 "image, placing them in the directory called C</remotedir> (which must "
29872 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
29873 "other commands as necessary."
29874 msgstr ""
29875
29876 # type: textblock
29877 #. type: textblock
29878 #: ../fish/guestfish-commands.pod:26
29879 msgid ""
29880 "Multiple local files and directories can be specified, but the last "
29881 "parameter must always be a remote directory.  Wildcards cannot be used."
29882 msgstr ""
29883
29884 # type: =head2
29885 #. type: =head2
29886 #: ../fish/guestfish-commands.pod:30
29887 msgid "copy-out"
29888 msgstr ""
29889
29890 # type: verbatim
29891 #. type: verbatim
29892 #: ../fish/guestfish-commands.pod:32
29893 #, no-wrap
29894 msgid ""
29895 " copy-out remote [remote ...] localdir\n"
29896 "\n"
29897 msgstr ""
29898
29899 # type: textblock
29900 #. type: textblock
29901 #: ../fish/guestfish-commands.pod:34
29902 msgid ""
29903 "C<copy-out> copies remote files or directories recursively out of the disk "
29904 "image, placing them on the host disk in a local directory called C<localdir> "
29905 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
29906 "download>, L</tar-out> and other commands as necessary."
29907 msgstr ""
29908
29909 # type: textblock
29910 #. type: textblock
29911 #: ../fish/guestfish-commands.pod:40
29912 msgid ""
29913 "Multiple remote files and directories can be specified, but the last "
29914 "parameter must always be a local directory.  To download to the current "
29915 "directory, use C<.> as in:"
29916 msgstr ""
29917
29918 # type: verbatim
29919 #. type: verbatim
29920 #: ../fish/guestfish-commands.pod:44
29921 #, no-wrap
29922 msgid ""
29923 " copy-out /home .\n"
29924 "\n"
29925 msgstr ""
29926
29927 # type: textblock
29928 #. type: textblock
29929 #: ../fish/guestfish-commands.pod:46
29930 msgid ""
29931 "Wildcards cannot be used in the ordinary command, but you can use them with "
29932 "the help of L</glob> like this:"
29933 msgstr ""
29934
29935 # type: verbatim
29936 #. type: verbatim
29937 #: ../fish/guestfish-commands.pod:49
29938 #, no-wrap
29939 msgid ""
29940 " glob copy-out /home/* .\n"
29941 "\n"
29942 msgstr ""
29943
29944 # type: =head2
29945 #. type: =head2
29946 #: ../fish/guestfish-commands.pod:51
29947 msgid "echo"
29948 msgstr ""
29949
29950 # type: verbatim
29951 #. type: verbatim
29952 #: ../fish/guestfish-commands.pod:53
29953 #, no-wrap
29954 msgid ""
29955 " echo [params ...]\n"
29956 "\n"
29957 msgstr ""
29958
29959 # type: textblock
29960 #. type: textblock
29961 #: ../fish/guestfish-commands.pod:55
29962 msgid "This echos the parameters to the terminal."
29963 msgstr ""
29964
29965 # type: =head2
29966 #. type: =head2
29967 #: ../fish/guestfish-commands.pod:57
29968 msgid "edit"
29969 msgstr ""
29970
29971 # type: =head2
29972 #. type: =head2
29973 #: ../fish/guestfish-commands.pod:59
29974 msgid "vi"
29975 msgstr ""
29976
29977 # type: =head2
29978 #. type: =head2
29979 #: ../fish/guestfish-commands.pod:61
29980 msgid "emacs"
29981 msgstr ""
29982
29983 # type: verbatim
29984 #. type: verbatim
29985 #: ../fish/guestfish-commands.pod:63
29986 #, no-wrap
29987 msgid ""
29988 " edit filename\n"
29989 "\n"
29990 msgstr ""
29991
29992 # type: textblock
29993 #. type: textblock
29994 #: ../fish/guestfish-commands.pod:65
29995 msgid ""
29996 "This is used to edit a file.  It downloads the file, edits it locally using "
29997 "your editor, then uploads the result."
29998 msgstr ""
29999
30000 # type: textblock
30001 #. type: textblock
30002 #: ../fish/guestfish-commands.pod:68
30003 msgid ""
30004 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30005 "or C<emacs> you will get those corresponding editors."
30006 msgstr ""
30007
30008 # type: =head2
30009 #. type: =head2
30010 #: ../fish/guestfish-commands.pod:72
30011 msgid "glob"
30012 msgstr ""
30013
30014 # type: verbatim
30015 #. type: verbatim
30016 #: ../fish/guestfish-commands.pod:74
30017 #, no-wrap
30018 msgid ""
30019 " glob command args...\n"
30020 "\n"
30021 msgstr ""
30022
30023 # type: textblock
30024 #. type: textblock
30025 #: ../fish/guestfish-commands.pod:76
30026 msgid ""
30027 "Expand wildcards in any paths in the args list, and run C<command> "
30028 "repeatedly on each matching path."
30029 msgstr ""
30030
30031 # type: textblock
30032 #. type: textblock
30033 #: ../fish/guestfish-commands.pod:79
30034 msgid "See L</WILDCARDS AND GLOBBING>."
30035 msgstr ""
30036
30037 # type: =head2
30038 #. type: =head2
30039 #: ../fish/guestfish-commands.pod:81
30040 msgid "hexedit"
30041 msgstr ""
30042
30043 # type: verbatim
30044 #. type: verbatim
30045 #: ../fish/guestfish-commands.pod:83
30046 #, no-wrap
30047 msgid ""
30048 " hexedit <filename|device>\n"
30049 " hexedit <filename|device> <max>\n"
30050 " hexedit <filename|device> <start> <max>\n"
30051 "\n"
30052 msgstr ""
30053
30054 # type: textblock
30055 #. type: textblock
30056 #: ../fish/guestfish-commands.pod:87
30057 msgid ""
30058 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30059 "device."
30060 msgstr ""
30061
30062 # type: textblock
30063 #. type: textblock
30064 #: ../fish/guestfish-commands.pod:90
30065 msgid ""
30066 "This command works by downloading potentially the whole file or device, "
30067 "editing it locally, then uploading it.  If the file or device is large, you "
30068 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30069 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30070 "usual modifiers allowed such as C<1M> (1 megabyte)."
30071 msgstr ""
30072
30073 # type: textblock
30074 #. type: textblock
30075 #: ../fish/guestfish-commands.pod:97
30076 msgid "For example to edit the first few sectors of a disk you might do:"
30077 msgstr ""
30078
30079 # type: verbatim
30080 #. type: verbatim
30081 #: ../fish/guestfish-commands.pod:100
30082 #, no-wrap
30083 msgid ""
30084 " hexedit /dev/sda 1M\n"
30085 "\n"
30086 msgstr ""
30087
30088 # type: textblock
30089 #. type: textblock
30090 #: ../fish/guestfish-commands.pod:102
30091 msgid ""
30092 "which would allow you to edit anywhere within the first megabyte of the disk."
30093 msgstr ""
30094
30095 # type: textblock
30096 #. type: textblock
30097 #: ../fish/guestfish-commands.pod:105
30098 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30099 msgstr ""
30100
30101 # type: verbatim
30102 #. type: verbatim
30103 #: ../fish/guestfish-commands.pod:107
30104 #, no-wrap
30105 msgid ""
30106 " hexedit /dev/sda1 0x400 0x400\n"
30107 "\n"
30108 msgstr ""
30109
30110 # type: textblock
30111 #. type: textblock
30112 #: ../fish/guestfish-commands.pod:109
30113 msgid "(assuming the superblock is in the standard location)."
30114 msgstr ""
30115
30116 # type: textblock
30117 #. type: textblock
30118 #: ../fish/guestfish-commands.pod:111
30119 msgid ""
30120 "This command requires the external L<hexedit(1)> program.  You can specify "
30121 "another program to use by setting the C<HEXEDITOR> environment variable."
30122 msgstr ""
30123
30124 # type: textblock
30125 #. type: textblock
30126 #: ../fish/guestfish-commands.pod:115
30127 msgid "See also L</hexdump>."
30128 msgstr ""
30129
30130 # type: =head2
30131 #. type: =head2
30132 #: ../fish/guestfish-commands.pod:117
30133 msgid "lcd"
30134 msgstr ""
30135
30136 # type: verbatim
30137 #. type: verbatim
30138 #: ../fish/guestfish-commands.pod:119
30139 #, no-wrap
30140 msgid ""
30141 " lcd directory\n"
30142 "\n"
30143 msgstr ""
30144
30145 # type: textblock
30146 #. type: textblock
30147 #: ../fish/guestfish-commands.pod:121
30148 msgid ""
30149 "Change the local directory, ie. the current directory of guestfish itself."
30150 msgstr ""
30151
30152 # type: textblock
30153 #. type: textblock
30154 #: ../fish/guestfish-commands.pod:124
30155 msgid "Note that C<!cd> won't do what you might expect."
30156 msgstr ""
30157
30158 # type: =head2
30159 #. type: =head2
30160 #: ../fish/guestfish-commands.pod:126
30161 msgid "man"
30162 msgstr ""
30163
30164 # type: =head2
30165 #. type: =head2
30166 #: ../fish/guestfish-commands.pod:128
30167 msgid "manual"
30168 msgstr ""
30169
30170 # type: verbatim
30171 #. type: verbatim
30172 #: ../fish/guestfish-commands.pod:130
30173 #, no-wrap
30174 msgid ""
30175 "  man\n"
30176 "\n"
30177 msgstr ""
30178
30179 # type: textblock
30180 #. type: textblock
30181 #: ../fish/guestfish-commands.pod:132
30182 msgid "Opens the manual page for guestfish."
30183 msgstr ""
30184
30185 # type: =head2
30186 #. type: =head2
30187 #: ../fish/guestfish-commands.pod:134
30188 msgid "more"
30189 msgstr ""
30190
30191 # type: =head2
30192 #. type: =head2
30193 #: ../fish/guestfish-commands.pod:136
30194 msgid "less"
30195 msgstr ""
30196
30197 # type: verbatim
30198 #. type: verbatim
30199 #: ../fish/guestfish-commands.pod:138
30200 #, no-wrap
30201 msgid ""
30202 " more filename\n"
30203 "\n"
30204 msgstr ""
30205
30206 # type: verbatim
30207 #. type: verbatim
30208 #: ../fish/guestfish-commands.pod:140
30209 #, no-wrap
30210 msgid ""
30211 " less filename\n"
30212 "\n"
30213 msgstr ""
30214
30215 # type: textblock
30216 #. type: textblock
30217 #: ../fish/guestfish-commands.pod:142
30218 msgid "This is used to view a file."
30219 msgstr ""
30220
30221 # type: textblock
30222 #. type: textblock
30223 #: ../fish/guestfish-commands.pod:144
30224 msgid ""
30225 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30226 "C<less> you will get the C<less> command specifically."
30227 msgstr ""
30228
30229 # type: =head2
30230 #. type: =head2
30231 #: ../fish/guestfish-commands.pod:147
30232 msgid "reopen"
30233 msgstr ""
30234
30235 # type: verbatim
30236 #. type: verbatim
30237 #: ../fish/guestfish-commands.pod:149
30238 #, no-wrap
30239 msgid ""
30240 "  reopen\n"
30241 "\n"
30242 msgstr ""
30243
30244 # type: textblock
30245 #. type: textblock
30246 #: ../fish/guestfish-commands.pod:151
30247 msgid ""
30248 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30249 "normally, because the handle is closed properly when guestfish exits.  "
30250 "However this is occasionally useful for testing."
30251 msgstr ""
30252
30253 # type: =head2
30254 #. type: =head2
30255 #: ../fish/guestfish-commands.pod:155
30256 msgid "sparse"
30257 msgstr ""
30258
30259 # type: verbatim
30260 #. type: verbatim
30261 #: ../fish/guestfish-commands.pod:157
30262 #, no-wrap
30263 msgid ""
30264 " sparse filename size\n"
30265 "\n"
30266 msgstr ""
30267
30268 # type: textblock
30269 #. type: textblock
30270 #: ../fish/guestfish-commands.pod:159
30271 msgid ""
30272 "This creates an empty sparse file of the given size, and then adds so it can "
30273 "be further examined."
30274 msgstr ""
30275
30276 # type: textblock
30277 #. type: textblock
30278 #: ../fish/guestfish-commands.pod:162
30279 msgid ""
30280 "In all respects it works the same as the L</alloc> command, except that the "
30281 "image file is allocated sparsely, which means that disk blocks are not "
30282 "assigned to the file until they are needed.  Sparse disk files only use "
30283 "space when written to, but they are slower and there is a danger you could "
30284 "run out of real disk space during a write operation."
30285 msgstr ""
30286
30287 # type: =head2
30288 #. type: =head2
30289 #: ../fish/guestfish-commands.pod:172
30290 msgid "supported"
30291 msgstr ""
30292
30293 # type: verbatim
30294 #. type: verbatim
30295 #: ../fish/guestfish-commands.pod:174
30296 #, no-wrap
30297 msgid ""
30298 " supported\n"
30299 "\n"
30300 msgstr ""
30301
30302 # type: textblock
30303 #. type: textblock
30304 #: ../fish/guestfish-commands.pod:176
30305 msgid ""
30306 "This command returns a list of the optional groups known to the daemon, and "
30307 "indicates which ones are supported by this build of the libguestfs appliance."
30308 msgstr ""
30309
30310 # type: textblock
30311 #. type: textblock
30312 #: ../fish/guestfish-commands.pod:180
30313 msgid "See also L<guestfs(3)/AVAILABILITY>."
30314 msgstr ""
30315
30316 # type: =head2
30317 #. type: =head2
30318 #: ../fish/guestfish-commands.pod:182
30319 msgid "time"
30320 msgstr ""
30321
30322 # type: verbatim
30323 #. type: verbatim
30324 #: ../fish/guestfish-commands.pod:184
30325 #, no-wrap
30326 msgid ""
30327 " time command args...\n"
30328 "\n"
30329 msgstr ""
30330
30331 # type: textblock
30332 #. type: textblock
30333 #: ../fish/guestfish-commands.pod:186
30334 msgid ""
30335 "Run the command as usual, but print the elapsed time afterwards.  This can "
30336 "be useful for benchmarking operations."
30337 msgstr ""
30338
30339 # type: textblock
30340 #. type: textblock
30341 #: ../test-tool/libguestfs-test-tool.pod:5
30342 msgid "libguestfs-test-tool - End user tests for libguestfs"
30343 msgstr ""
30344
30345 # type: verbatim
30346 #. type: verbatim
30347 #: ../test-tool/libguestfs-test-tool.pod:9
30348 #, no-wrap
30349 msgid ""
30350 " libguestfs-test-tool [--options]\n"
30351 "\n"
30352 msgstr ""
30353
30354 # type: textblock
30355 #. type: textblock
30356 #: ../test-tool/libguestfs-test-tool.pod:13
30357 msgid ""
30358 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30359 "and developers, to allow them to check basic libguestfs functionality is "
30360 "working.  This is needed because libguestfs occasionally breaks for reasons "
30361 "beyond our control: usually because of changes in the underlying qemu or "
30362 "kernel packages, or the host environment."
30363 msgstr ""
30364
30365 # type: textblock
30366 #. type: textblock
30367 #: ../test-tool/libguestfs-test-tool.pod:20
30368 msgid "If you suspect a problem in libguestfs, then just run:"
30369 msgstr ""
30370
30371 # type: verbatim
30372 #. type: verbatim
30373 #: ../test-tool/libguestfs-test-tool.pod:22
30374 #, no-wrap
30375 msgid ""
30376 " libguestfs-test-tool\n"
30377 "\n"
30378 msgstr ""
30379
30380 # type: textblock
30381 #. type: textblock
30382 #: ../test-tool/libguestfs-test-tool.pod:24
30383 msgid "It will print lots of diagnostic messages."
30384 msgstr ""
30385
30386 # type: textblock
30387 #. type: textblock
30388 #: ../test-tool/libguestfs-test-tool.pod:26
30389 msgid "If it runs to completion successfully, you will see this near the end:"
30390 msgstr ""
30391
30392 # type: verbatim
30393 #. type: verbatim
30394 #: ../test-tool/libguestfs-test-tool.pod:28
30395 #, no-wrap
30396 msgid ""
30397 " ===== TEST FINISHED OK =====\n"
30398 "\n"
30399 msgstr ""
30400
30401 # type: textblock
30402 #. type: textblock
30403 #: ../test-tool/libguestfs-test-tool.pod:30
30404 msgid "and the test tool will exit with code 0."
30405 msgstr ""
30406
30407 # type: textblock
30408 #. type: textblock
30409 #: ../test-tool/libguestfs-test-tool.pod:32
30410 msgid ""
30411 "If it fails (and/or exits with non-zero error code), please paste the "
30412 "B<complete, unedited> output of the test tool into a bug report.  More "
30413 "information about reporting bugs can be found on the L<http://libguestfs.org/"
30414 "> website."
30415 msgstr ""
30416
30417 # type: =item
30418 #. type: =item
30419 #: ../test-tool/libguestfs-test-tool.pod:41
30420 msgid "I<--help>"
30421 msgstr ""
30422
30423 # type: textblock
30424 #. type: textblock
30425 #: ../test-tool/libguestfs-test-tool.pod:43
30426 msgid "Display short usage information and exit."
30427 msgstr ""
30428
30429 # type: =item
30430 #. type: =item
30431 #: ../test-tool/libguestfs-test-tool.pod:45
30432 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
30433 msgstr ""
30434
30435 # type: textblock
30436 #. type: textblock
30437 #: ../test-tool/libguestfs-test-tool.pod:47
30438 msgid ""
30439 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
30440 "normally look in the C<$libexec> directory that was configured when the tool "
30441 "was built."
30442 msgstr ""
30443
30444 # type: =item
30445 #. type: =item
30446 #: ../test-tool/libguestfs-test-tool.pod:51
30447 msgid "I<--qemu qemu_binary>"
30448 msgstr ""
30449
30450 # type: textblock
30451 #. type: textblock
30452 #: ../test-tool/libguestfs-test-tool.pod:53
30453 msgid ""
30454 "If you have downloaded another qemu binary, point this option at the full "
30455 "path of the binary to try it."
30456 msgstr ""
30457
30458 # type: =item
30459 #. type: =item
30460 #: ../test-tool/libguestfs-test-tool.pod:56
30461 msgid "I<--qemudir qemu_source_dir>"
30462 msgstr ""
30463
30464 # type: textblock
30465 #. type: textblock
30466 #: ../test-tool/libguestfs-test-tool.pod:58
30467 msgid ""
30468 "If you have compiled qemu from source, point this option at the source "
30469 "directory to try it."
30470 msgstr ""
30471
30472 # type: =item
30473 #. type: =item
30474 #: ../test-tool/libguestfs-test-tool.pod:61
30475 msgid "I<--timeout N>"
30476 msgstr ""
30477
30478 # type: textblock
30479 #. type: textblock
30480 #: ../test-tool/libguestfs-test-tool.pod:63
30481 msgid ""
30482 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30483 "does not usually need to be adjusted unless your machine is very slow."
30484 msgstr ""
30485
30486 # type: =head1
30487 #. type: =head1
30488 #: ../test-tool/libguestfs-test-tool.pod:69
30489 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30490 msgstr ""
30491
30492 # type: textblock
30493 #. type: textblock
30494 #: ../test-tool/libguestfs-test-tool.pod:71
30495 msgid ""
30496 "If you have compiled another version of qemu from source and would like to "
30497 "try that, then you can use the I<--qemudir> option to point to the qemu "
30498 "source directory."
30499 msgstr ""
30500
30501 # type: textblock
30502 #. type: textblock
30503 #: ../test-tool/libguestfs-test-tool.pod:75
30504 msgid ""
30505 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30506 "option to point to the binary."
30507 msgstr ""
30508
30509 # type: textblock
30510 #. type: textblock
30511 #: ../test-tool/libguestfs-test-tool.pod:78
30512 msgid ""
30513 "When using an alternate qemu with libguestfs, usually you would need to "
30514 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
30515 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
30516 "use either of the I<--qemudir> or I<--qemu> options."
30517 msgstr ""
30518
30519 # type: textblock
30520 #. type: textblock
30521 #: ../test-tool/libguestfs-test-tool.pod:85
30522 msgid ""
30523 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30524 "I<1> if there was an error."
30525 msgstr ""
30526
30527 # type: =item
30528 #. type: =item
30529 #: ../test-tool/libguestfs-test-tool.pod:92
30530 msgid "/usr/libexec/libguestfs-test-tool-helper"
30531 msgstr ""
30532
30533 # type: textblock
30534 #. type: textblock
30535 #: ../test-tool/libguestfs-test-tool.pod:94
30536 msgid ""
30537 "This helper program is run inside the appliance and provides additional "
30538 "tests."
30539 msgstr ""
30540
30541 # type: =item
30542 #. type: =item
30543 #: ../test-tool/libguestfs-test-tool.pod:97
30544 msgid "/usr/bin/mkisofs"
30545 msgstr ""
30546
30547 # type: textblock
30548 #. type: textblock
30549 #: ../test-tool/libguestfs-test-tool.pod:99
30550 msgid ""
30551 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
30552 "which is used as part of the tests."
30553 msgstr ""
30554
30555 # type: textblock
30556 #. type: textblock
30557 #: ../test-tool/libguestfs-test-tool.pod:106
30558 msgid ""
30559 "For the full list of environment variables which may affect libguestfs, "
30560 "please see the L<guestfs(3)> manual page."
30561 msgstr ""
30562
30563 # type: textblock
30564 #. type: textblock
30565 #: ../test-tool/libguestfs-test-tool.pod:111
30566 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30567 msgstr ""
30568
30569 # type: textblock
30570 #. type: textblock
30571 #: ../test-tool/libguestfs-test-tool.pod:121
30572 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
30573 msgstr ""
30574
30575 # type: textblock
30576 #. type: textblock
30577 #: ../fuse/guestmount.pod:5
30578 msgid ""
30579 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30580 msgstr ""
30581
30582 # type: verbatim
30583 #. type: verbatim
30584 #: ../fuse/guestmount.pod:9
30585 #, no-wrap
30586 msgid ""
30587 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30588 "\n"
30589 msgstr ""
30590
30591 # type: verbatim
30592 #. type: verbatim
30593 #: ../fuse/guestmount.pod:11
30594 #, no-wrap
30595 msgid ""
30596 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30597 "\n"
30598 msgstr ""
30599
30600 # type: verbatim
30601 #. type: verbatim
30602 #: ../fuse/guestmount.pod:13
30603 #, no-wrap
30604 msgid ""
30605 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30606 "\n"
30607 msgstr ""
30608
30609 # type: textblock
30610 #. type: textblock
30611 #: ../fuse/guestmount.pod:17
30612 msgid ""
30613 "You must I<not> use C<guestmount> in read-write mode on live virtual "
30614 "machines.  If you do this, you risk disk corruption in the VM."
30615 msgstr ""
30616
30617 # type: textblock
30618 #. type: textblock
30619 #: ../fuse/guestmount.pod:22
30620 msgid ""
30621 "The guestmount program can be used to mount virtual machine filesystems and "
30622 "other disk images on the host.  It uses libguestfs for access to the guest "
30623 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
30624 "a mountable device."
30625 msgstr ""
30626
30627 # type: textblock
30628 #. type: textblock
30629 #: ../fuse/guestmount.pod:27
30630 msgid ""
30631 "Along with other options, you have to give at least one device (I<-a> "
30632 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
30633 "option) or use the I<-i> inspection option.  How this works is better "
30634 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
30635 "below."
30636 msgstr ""
30637
30638 # type: textblock
30639 #. type: textblock
30640 #: ../fuse/guestmount.pod:33
30641 msgid ""
30642 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
30643 "by you, and the filesystem will not be visible to any other users unless you "
30644 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
30645 "the filesystem, use the C<fusermount -u> command."
30646 msgstr ""
30647
30648 # type: textblock
30649 #. type: textblock
30650 #: ../fuse/guestmount.pod:41
30651 msgid ""
30652 "For a typical Windows guest which has its main filesystem on the first "
30653 "partition:"
30654 msgstr ""
30655
30656 # type: verbatim
30657 #. type: verbatim
30658 #: ../fuse/guestmount.pod:44
30659 #, no-wrap
30660 msgid ""
30661 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
30662 "\n"
30663 msgstr ""
30664
30665 # type: textblock
30666 #. type: textblock
30667 #: ../fuse/guestmount.pod:46
30668 msgid ""
30669 "For a typical Linux guest which has a /boot filesystem on the first "
30670 "partition, and the root filesystem on a logical volume:"
30671 msgstr ""
30672
30673 # type: verbatim
30674 #. type: verbatim
30675 #: ../fuse/guestmount.pod:49
30676 #, no-wrap
30677 msgid ""
30678 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
30679 "\n"
30680 msgstr ""
30681
30682 # type: textblock
30683 #. type: textblock
30684 #: ../fuse/guestmount.pod:51
30685 msgid "To get libguestfs to detect guest mountpoints for you:"
30686 msgstr ""
30687
30688 # type: verbatim
30689 #. type: verbatim
30690 #: ../fuse/guestmount.pod:53
30691 #, no-wrap
30692 msgid ""
30693 " guestmount -a guest.img -i --ro /mnt\n"
30694 "\n"
30695 msgstr ""
30696
30697 # type: textblock
30698 #. type: textblock
30699 #: ../fuse/guestmount.pod:55
30700 msgid "For a libvirt guest called \"Guest\" you could do:"
30701 msgstr ""
30702
30703 # type: verbatim
30704 #. type: verbatim
30705 #: ../fuse/guestmount.pod:57
30706 #, no-wrap
30707 msgid ""
30708 " guestmount -d Guest -i --ro /mnt\n"
30709 "\n"
30710 msgstr ""
30711
30712 # type: textblock
30713 #. type: textblock
30714 #: ../fuse/guestmount.pod:59
30715 msgid ""
30716 "If you don't know what filesystems are contained in a guest or disk image, "
30717 "use L<virt-filesystems(1)> first:"
30718 msgstr ""
30719
30720 # type: verbatim
30721 #. type: verbatim
30722 #: ../fuse/guestmount.pod:62
30723 #, no-wrap
30724 msgid ""
30725 " virt-filesystems MyGuest\n"
30726 "\n"
30727 msgstr ""
30728
30729 # type: textblock
30730 #. type: textblock
30731 #: ../fuse/guestmount.pod:64
30732 msgid ""
30733 "If you want to trace the libguestfs calls but without excessive debugging "
30734 "information, we recommend:"
30735 msgstr ""
30736
30737 # type: verbatim
30738 #. type: verbatim
30739 #: ../fuse/guestmount.pod:67
30740 #, no-wrap
30741 msgid ""
30742 " guestmount [...] --trace /mnt\n"
30743 "\n"
30744 msgstr ""
30745
30746 # type: textblock
30747 #. type: textblock
30748 #: ../fuse/guestmount.pod:69
30749 msgid "If you want to debug the program, we recommend:"
30750 msgstr ""
30751
30752 # type: verbatim
30753 #. type: verbatim
30754 #: ../fuse/guestmount.pod:71
30755 #, no-wrap
30756 msgid ""
30757 " guestmount [...] --trace --verbose /mnt\n"
30758 "\n"
30759 msgstr ""
30760
30761 # type: =item
30762 #. type: =item
30763 #: ../fuse/guestmount.pod:77
30764 msgid "B<-a image> | B<--add image>"
30765 msgstr ""
30766
30767 # type: textblock
30768 #. type: textblock
30769 #: ../fuse/guestmount.pod:79
30770 msgid "Add a block device or virtual machine image."
30771 msgstr ""
30772
30773 # type: =item
30774 #. type: =item
30775 #: ../fuse/guestmount.pod:84
30776 msgid "B<-c URI> | B<--connect URI>"
30777 msgstr ""
30778
30779 # type: =item
30780 #. type: =item
30781 #: ../fuse/guestmount.pod:90
30782 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
30783 msgstr ""
30784
30785 # type: =item
30786 #. type: =item
30787 #: ../fuse/guestmount.pod:96
30788 msgid "B<--dir-cache-timeout N>"
30789 msgstr ""
30790
30791 # type: textblock
30792 #. type: textblock
30793 #: ../fuse/guestmount.pod:98
30794 msgid ""
30795 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
30796 "seconds.  The readdir cache [actually, there are several semi-independent "
30797 "caches] is populated after a readdir(2) call with the stat and extended "
30798 "attributes of the files in the directory, in anticipation that they will be "
30799 "requested soon after."
30800 msgstr ""
30801
30802 # type: textblock
30803 #. type: textblock
30804 #: ../fuse/guestmount.pod:104
30805 msgid ""
30806 "There is also a different attribute cache implemented by FUSE (see the FUSE "
30807 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
30808 "requests, only cache existing ones."
30809 msgstr ""
30810
30811 # type: =item
30812 #. type: =item
30813 #: ../fuse/guestmount.pod:115
30814 msgid "B<--format=raw|qcow2|..> | B<--format>"
30815 msgstr ""
30816
30817 # type: textblock
30818 #. type: textblock
30819 #: ../fuse/guestmount.pod:122
30820 msgid ""
30821 "If you have untrusted raw-format guest disk images, you should use this "
30822 "option to specify the disk format.  This avoids a possible security problem "
30823 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
30824 "guestfs_add_drive_opts>."
30825 msgstr ""
30826
30827 # type: =item
30828 #. type: =item
30829 #: ../fuse/guestmount.pod:127
30830 msgid "B<--fuse-help>"
30831 msgstr ""
30832
30833 # type: textblock
30834 #. type: textblock
30835 #: ../fuse/guestmount.pod:129
30836 msgid "Display help on special FUSE options (see I<-o> below)."
30837 msgstr ""
30838
30839 # type: textblock
30840 #. type: textblock
30841 #: ../fuse/guestmount.pod:133
30842 msgid "Display brief help and exit."
30843 msgstr ""
30844
30845 # type: =item
30846 #. type: =item
30847 #: ../fuse/guestmount.pod:135
30848 msgid "B<-i> | B<--inspector>"
30849 msgstr ""
30850
30851 # type: =item
30852 #. type: =item
30853 #: ../fuse/guestmount.pod:146
30854 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
30855 msgstr ""
30856
30857 # type: textblock
30858 #. type: textblock
30859 #: ../fuse/guestmount.pod:148
30860 msgid ""
30861 "Mount the named partition or logical volume on the given mountpoint B<in the "
30862 "guest> (this has nothing to do with mountpoints in the host)."
30863 msgstr ""
30864
30865 # type: textblock
30866 #. type: textblock
30867 #: ../fuse/guestmount.pod:151
30868 msgid ""
30869 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
30870 "something on C</>."
30871 msgstr ""
30872
30873 # type: =item
30874 #. type: =item
30875 #: ../fuse/guestmount.pod:154
30876 msgid "B<-n> | B<--no-sync>"
30877 msgstr ""
30878
30879 # type: textblock
30880 #. type: textblock
30881 #: ../fuse/guestmount.pod:156
30882 msgid ""
30883 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
30884 "unmounted.  If you specify this option, then we don't attempt to sync the "
30885 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
30886 msgstr ""
30887
30888 # type: =item
30889 #. type: =item
30890 #: ../fuse/guestmount.pod:161
30891 msgid "B<-o option> | B<--option option>"
30892 msgstr ""
30893
30894 # type: textblock
30895 #. type: textblock
30896 #: ../fuse/guestmount.pod:163
30897 msgid "Pass extra options to FUSE."
30898 msgstr ""
30899
30900 # type: textblock
30901 #. type: textblock
30902 #: ../fuse/guestmount.pod:165
30903 msgid ""
30904 "To get a list of all the extra options supported by FUSE, use the command "
30905 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
30906 "of them are a good idea."
30907 msgstr ""
30908
30909 # type: verbatim
30910 #. type: verbatim
30911 #: ../fuse/guestmount.pod:169
30912 #, no-wrap
30913 msgid ""
30914 " guestmount --fuse-help\n"
30915 "\n"
30916 msgstr ""
30917
30918 # type: textblock
30919 #. type: textblock
30920 #: ../fuse/guestmount.pod:171
30921 msgid "Some potentially useful FUSE options:"
30922 msgstr ""
30923
30924 # type: =item
30925 #. type: =item
30926 #: ../fuse/guestmount.pod:175
30927 msgid "B<-o allow_other>"
30928 msgstr ""
30929
30930 # type: textblock
30931 #. type: textblock
30932 #: ../fuse/guestmount.pod:177
30933 msgid "Allow other users to see the filesystem."
30934 msgstr ""
30935
30936 # type: =item
30937 #. type: =item
30938 #: ../fuse/guestmount.pod:179
30939 msgid "B<-o attr_timeout=N>"
30940 msgstr ""
30941
30942 # type: textblock
30943 #. type: textblock
30944 #: ../fuse/guestmount.pod:181
30945 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
30946 msgstr ""
30947
30948 # type: =item
30949 #. type: =item
30950 #: ../fuse/guestmount.pod:183
30951 msgid "B<-o kernel_cache>"
30952 msgstr ""
30953
30954 # type: textblock
30955 #. type: textblock
30956 #: ../fuse/guestmount.pod:185
30957 msgid ""
30958 "Allow the kernel to cache files (reduces the number of reads that have to go "
30959 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
30960 "afford the extra memory usage."
30961 msgstr ""
30962
30963 # type: =item
30964 #. type: =item
30965 #: ../fuse/guestmount.pod:189
30966 msgid "B<-o uid=N> B<-o gid=N>"
30967 msgstr ""
30968
30969 # type: textblock
30970 #. type: textblock
30971 #: ../fuse/guestmount.pod:191
30972 msgid ""
30973 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
30974 "the chosen values."
30975 msgstr ""
30976
30977 # type: =item
30978 #. type: =item
30979 #: ../fuse/guestmount.pod:196
30980 msgid "B<-r> | B<--ro>"
30981 msgstr ""
30982
30983 # type: textblock
30984 #. type: textblock
30985 #: ../fuse/guestmount.pod:198
30986 msgid ""
30987 "Add devices and mount everything read-only.  Also disallow writes and make "
30988 "the disk appear read-only to FUSE."
30989 msgstr ""
30990
30991 # type: textblock
30992 #. type: textblock
30993 #: ../fuse/guestmount.pod:201
30994 msgid ""
30995 "This is highly recommended if you are not going to edit the guest disk.  If "
30996 "the guest is running and this option is I<not> supplied, then there is a "
30997 "strong risk of disk corruption in the guest.  We try to prevent this from "
30998 "happening, but it is not always possible."
30999 msgstr ""
31000
31001 # type: textblock
31002 #. type: textblock
31003 #: ../fuse/guestmount.pod:206
31004 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31005 msgstr ""
31006
31007 # type: textblock
31008 #. type: textblock
31009 #: ../fuse/guestmount.pod:210
31010 msgid "Enable SELinux support for the guest."
31011 msgstr ""
31012
31013 # type: =item
31014 #. type: =item
31015 #: ../fuse/guestmount.pod:212
31016 msgid "B<-v> | B<--verbose>"
31017 msgstr ""
31018
31019 # type: textblock
31020 #. type: textblock
31021 #: ../fuse/guestmount.pod:214
31022 msgid "Enable verbose messages from underlying libguestfs."
31023 msgstr ""
31024
31025 # type: =item
31026 #. type: =item
31027 #: ../fuse/guestmount.pod:216
31028 msgid "B<-V> | B<--version>"
31029 msgstr ""
31030
31031 # type: textblock
31032 #. type: textblock
31033 #: ../fuse/guestmount.pod:218
31034 msgid "Display the program version and exit."
31035 msgstr ""
31036
31037 # type: =item
31038 #. type: =item
31039 #: ../fuse/guestmount.pod:220
31040 msgid "B<-w> | B<--rw>"
31041 msgstr ""
31042
31043 # type: textblock
31044 #. type: textblock
31045 #: ../fuse/guestmount.pod:222
31046 msgid ""
31047 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
31048 "FOR READ AND WRITE>."
31049 msgstr ""
31050
31051 # type: =item
31052 #. type: =item
31053 #: ../fuse/guestmount.pod:225
31054 msgid "B<-x> | B<--trace>"
31055 msgstr ""
31056
31057 # type: textblock
31058 #. type: textblock
31059 #: ../fuse/guestmount.pod:227
31060 msgid "Trace libguestfs calls and entry into each FUSE function."
31061 msgstr ""
31062
31063 # type: textblock
31064 #. type: textblock
31065 #: ../fuse/guestmount.pod:229
31066 msgid "This also stops the daemon from forking into the background."
31067 msgstr ""
31068
31069 # type: textblock
31070 #. type: textblock
31071 #: ../fuse/guestmount.pod:235
31072 msgid ""
31073 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
31074 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
31075 "net/>."
31076 msgstr ""
31077
31078 # type: textblock
31079 #. type: textblock
31080 #: ../tools/virt-edit.pl:34
31081 msgid "virt-edit - Edit a file in a virtual machine"
31082 msgstr ""
31083
31084 # type: verbatim
31085 #. type: verbatim
31086 #: ../tools/virt-edit.pl:38
31087 #, no-wrap
31088 msgid ""
31089 " virt-edit [--options] domname file\n"
31090 "\n"
31091 msgstr ""
31092
31093 # type: verbatim
31094 #. type: verbatim
31095 #: ../tools/virt-edit.pl:40
31096 #, no-wrap
31097 msgid ""
31098 " virt-edit [--options] disk.img [disk.img ...] file\n"
31099 "\n"
31100 msgstr ""
31101
31102 # type: verbatim
31103 #. type: verbatim
31104 #: ../tools/virt-edit.pl:42
31105 #, no-wrap
31106 msgid ""
31107 " virt-edit [domname|disk.img] file -e 'expr'\n"
31108 "\n"
31109 msgstr ""
31110
31111 # type: textblock
31112 #. type: textblock
31113 #: ../tools/virt-edit.pl:46
31114 msgid ""
31115 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
31116 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
31117 "doing this, but doesn't catch all cases."
31118 msgstr ""
31119
31120 # type: textblock
31121 #. type: textblock
31122 #: ../tools/virt-edit.pl:52
31123 msgid ""
31124 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
31125 "the named virtual machine (or disk image)."
31126 msgstr ""
31127
31128 # type: textblock
31129 #. type: textblock
31130 #: ../tools/virt-edit.pl:55
31131 msgid ""
31132 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
31133 "you should look at the L<guestfish(1)> tool."
31134 msgstr ""
31135
31136 # type: textblock
31137 #. type: textblock
31138 #: ../tools/virt-edit.pl:60
31139 msgid "Edit the named files interactively:"
31140 msgstr ""
31141
31142 # type: verbatim
31143 #. type: verbatim
31144 #: ../tools/virt-edit.pl:62
31145 #, no-wrap
31146 msgid ""
31147 " virt-edit mydomain /boot/grub/grub.conf\n"
31148 "\n"
31149 msgstr ""
31150
31151 # type: verbatim
31152 #. type: verbatim
31153 #: ../tools/virt-edit.pl:64
31154 #, no-wrap
31155 msgid ""
31156 " virt-edit mydomain /etc/passwd\n"
31157 "\n"
31158 msgstr ""
31159
31160 # type: textblock
31161 #. type: textblock
31162 #: ../tools/virt-edit.pl:66
31163 msgid ""
31164 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
31165 "below).  To change the init default level to 5:"
31166 msgstr ""
31167
31168 # type: verbatim
31169 #. type: verbatim
31170 #: ../tools/virt-edit.pl:70
31171 #, no-wrap
31172 msgid ""
31173 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
31174 "\n"
31175 msgstr ""
31176
31177 # type: textblock
31178 #. type: textblock
31179 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
31180 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:108
31181 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
31182 msgid "Display brief help."
31183 msgstr ""
31184
31185 # type: textblock
31186 #. type: textblock
31187 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
31188 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
31189 #: ../tools/virt-tar.pl:116 ../tools/virt-make-fs.pl:171
31190 #: ../tools/virt-list-partitions.pl:72
31191 msgid "Display version number and exit."
31192 msgstr ""
31193
31194 # type: =item
31195 #. type: =item
31196 #: ../tools/virt-edit.pl:96
31197 msgid "B<--backup extension> | B<-b extension>"
31198 msgstr ""
31199
31200 # type: textblock
31201 #. type: textblock
31202 #: ../tools/virt-edit.pl:98
31203 msgid ""
31204 "Create a backup of the original file I<in the guest disk image>.  The backup "
31205 "has the original filename with C<extension> added."
31206 msgstr ""
31207
31208 # type: textblock
31209 #. type: textblock
31210 #: ../tools/virt-edit.pl:101
31211 msgid ""
31212 "Usually the first character of C<extension> would be a dot C<.> so you would "
31213 "write:"
31214 msgstr ""
31215
31216 # type: verbatim
31217 #. type: verbatim
31218 #: ../tools/virt-edit.pl:104
31219 #, no-wrap
31220 msgid ""
31221 " virt-edit -b .orig [etc]\n"
31222 "\n"
31223 msgstr ""
31224
31225 # type: textblock
31226 #. type: textblock
31227 #: ../tools/virt-edit.pl:106
31228 msgid "By default, no backup file is made."
31229 msgstr ""
31230
31231 # type: =item
31232 #. type: =item
31233 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
31234 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:122
31235 #: ../tools/virt-list-partitions.pl:78
31236 msgid "B<--connect URI> | B<-c URI>"
31237 msgstr ""
31238
31239 # type: textblock
31240 #. type: textblock
31241 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
31242 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:124
31243 #: ../tools/virt-list-partitions.pl:80
31244 msgid ""
31245 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31246 "to the default libvirt hypervisor."
31247 msgstr ""
31248
31249 # type: textblock
31250 #. type: textblock
31251 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
31252 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:127
31253 #: ../tools/virt-list-partitions.pl:83
31254 msgid ""
31255 "If you specify guest block devices directly, then libvirt is not used at all."
31256 msgstr ""
31257
31258 # type: =item
31259 #. type: =item
31260 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
31261 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
31262 #: ../tools/virt-tar.pl:134 ../tools/virt-list-partitions.pl:90
31263 msgid "B<--format> raw"
31264 msgstr ""
31265
31266 # type: textblock
31267 #. type: textblock
31268 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
31269 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:136
31270 #: ../tools/virt-list-partitions.pl:92
31271 msgid ""
31272 "Specify the format of disk images given on the command line.  If this is "
31273 "omitted then the format is autodetected from the content of the disk image."
31274 msgstr ""
31275
31276 # type: textblock
31277 #. type: textblock
31278 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
31279 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:140
31280 #: ../tools/virt-list-partitions.pl:96
31281 msgid ""
31282 "If disk images are requested from libvirt, then this program asks libvirt "
31283 "for this information.  In this case, the value of the format parameter is "
31284 "ignored."
31285 msgstr ""
31286
31287 # type: textblock
31288 #. type: textblock
31289 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
31290 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
31291 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:144
31292 #: ../tools/virt-list-partitions.pl:100
31293 msgid ""
31294 "If working with untrusted raw-format guest disk images, you should ensure "
31295 "the format is always specified."
31296 msgstr ""
31297
31298 # type: =item
31299 #. type: =item
31300 #: ../tools/virt-edit.pl:141
31301 msgid "B<--expr EXPR> | B<-e EXPR>"
31302 msgstr ""
31303
31304 # type: textblock
31305 #. type: textblock
31306 #: ../tools/virt-edit.pl:143
31307 msgid ""
31308 "Instead of launching the external editor, non-interactively apply the Perl "
31309 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
31310 "EDITING> below."
31311 msgstr ""
31312
31313 # type: textblock
31314 #. type: textblock
31315 #: ../tools/virt-edit.pl:147
31316 msgid ""
31317 "Be careful to properly quote the expression to prevent it from being altered "
31318 "by the shell."
31319 msgstr ""
31320
31321 # type: =head1
31322 #. type: =head1
31323 #: ../tools/virt-edit.pl:268
31324 msgid "NON-INTERACTIVE EDITING"
31325 msgstr ""
31326
31327 # type: textblock
31328 #. type: textblock
31329 #: ../tools/virt-edit.pl:270
31330 msgid ""
31331 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
31332 "administrator can interactively edit the file."
31333 msgstr ""
31334
31335 # type: textblock
31336 #. type: textblock
31337 #: ../tools/virt-edit.pl:273
31338 msgid ""
31339 "There are two ways also to use C<virt-edit> from scripts in order to make "
31340 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
31341 "like this, it's less error-prone to write scripts directly using the "
31342 "libguestfs API and Augeas for configuration file editing.)"
31343 msgstr ""
31344
31345 # type: textblock
31346 #. type: textblock
31347 #: ../tools/virt-edit.pl:279
31348 msgid ""
31349 "The first method is to temporarily set C<$EDITOR> to any script or program "
31350 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
31351 "update C<tmpfile> in place however it likes."
31352 msgstr ""
31353
31354 # type: textblock
31355 #. type: textblock
31356 #: ../tools/virt-edit.pl:283
31357 msgid ""
31358 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
31359 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
31360 "instances of C<foo> with C<bar> in a file:"
31361 msgstr ""
31362
31363 # type: verbatim
31364 #. type: verbatim
31365 #: ../tools/virt-edit.pl:287
31366 #, no-wrap
31367 msgid ""
31368 " virt-edit domname filename -e 's/foo/bar/'\n"
31369 "\n"
31370 msgstr ""
31371
31372 # type: textblock
31373 #. type: textblock
31374 #: ../tools/virt-edit.pl:289
31375 msgid ""
31376 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
31377 "For example to delete root's password you could do:"
31378 msgstr ""
31379
31380 # type: verbatim
31381 #. type: verbatim
31382 #: ../tools/virt-edit.pl:292
31383 #, no-wrap
31384 msgid ""
31385 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
31386 "\n"
31387 msgstr ""
31388
31389 # type: textblock
31390 #. type: textblock
31391 #: ../tools/virt-edit.pl:294
31392 msgid ""
31393 "What really happens is that the snippet is evaluated as a Perl expression "
31394 "for each line of the file.  The line, including the final C<\\n>, is passed "
31395 "in C<$_> and the expression should update C<$_> or leave it unchanged."
31396 msgstr ""
31397
31398 # type: textblock
31399 #. type: textblock
31400 #: ../tools/virt-edit.pl:299
31401 msgid ""
31402 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
31403 "C<apache> user account from the password file you can do:"
31404 msgstr ""
31405
31406 # type: verbatim
31407 #. type: verbatim
31408 #: ../tools/virt-edit.pl:302
31409 #, no-wrap
31410 msgid ""
31411 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
31412 "\n"
31413 msgstr ""
31414
31415 # type: textblock
31416 #. type: textblock
31417 #: ../tools/virt-edit.pl:304
31418 msgid ""
31419 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
31420 "the end of the file is rather difficult this way since there is no concept "
31421 "of \"last line of the file\" - your expression just doesn't get called "
31422 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
31423 "want to do this."
31424 msgstr ""
31425
31426 # type: textblock
31427 #. type: textblock
31428 #: ../tools/virt-edit.pl:310
31429 msgid ""
31430 "The variable C<$lineno> contains the current line number.  As is "
31431 "traditional, the first line in the file is number C<1>."
31432 msgstr ""
31433
31434 # type: textblock
31435 #. type: textblock
31436 #: ../tools/virt-edit.pl:313
31437 msgid ""
31438 "The return value from the expression is ignored, but the expression may call "
31439 "C<die> in order to abort the whole program, leaving the original file "
31440 "untouched."
31441 msgstr ""
31442
31443 # type: textblock
31444 #. type: textblock
31445 #: ../tools/virt-edit.pl:317
31446 msgid ""
31447 "Remember when matching the end of a line that C<$_> may contain the final C<"
31448 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
31449 "newline then neither of these.  Thus to match or substitute some text at the "
31450 "end of a line, use this regular expression:"
31451 msgstr ""
31452
31453 # type: verbatim
31454 #. type: verbatim
31455 #: ../tools/virt-edit.pl:322
31456 #, no-wrap
31457 msgid ""
31458 " /some text(\\r?\\n)?$/\n"
31459 "\n"
31460 msgstr ""
31461
31462 # type: textblock
31463 #. type: textblock
31464 #: ../tools/virt-edit.pl:324
31465 msgid ""
31466 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
31467 "$_> itself (since that would remove all newlines from the file):"
31468 msgstr ""
31469
31470 # type: verbatim
31471 #. type: verbatim
31472 #: ../tools/virt-edit.pl:328
31473 #, no-wrap
31474 msgid ""
31475 " my $m = $_; chomp $m; $m =~ /some text$/\n"
31476 "\n"
31477 msgstr ""
31478
31479 # type: =item
31480 #. type: =item
31481 #: ../tools/virt-edit.pl:334
31482 msgid "C<EDITOR>"
31483 msgstr ""
31484
31485 # type: textblock
31486 #. type: textblock
31487 #: ../tools/virt-edit.pl:336
31488 msgid ""
31489 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
31490 "\"emacs -nw\">"
31491 msgstr ""
31492
31493 # type: textblock
31494 #. type: textblock
31495 #: ../tools/virt-edit.pl:339
31496 msgid "If not set, C<vi> is used."
31497 msgstr ""
31498
31499 # type: =head2
31500 #. type: =head1
31501 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
31502 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
31503 #: ../tools/virt-tar.pl:274 ../tools/virt-make-fs.pl:527
31504 #: ../tools/virt-list-partitions.pl:250
31505 msgid "SHELL QUOTING"
31506 msgstr ""
31507
31508 # type: textblock
31509 #. type: textblock
31510 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
31511 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
31512 #: ../tools/virt-tar.pl:276 ../tools/virt-make-fs.pl:529
31513 #: ../tools/virt-list-partitions.pl:252
31514 msgid ""
31515 "Libvirt guest names can contain arbitrary characters, some of which have "
31516 "meaning to the shell such as C<#> and space.  You may need to quote or "
31517 "escape these characters on the command line.  See the shell manual page L<sh"
31518 "(1)> for details."
31519 msgstr ""
31520
31521 # type: textblock
31522 #. type: textblock
31523 #: ../tools/virt-edit.pl:352
31524 msgid ""
31525 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::"
31526 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, "
31527 "L<perlre(1)>."
31528 msgstr ""
31529
31530 # type: =head1
31531 #. type: =head1
31532 #: ../tools/virt-edit.pl:362 ../tools/virt-win-reg.pl:598
31533 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
31534 #: ../tools/virt-tar.pl:292 ../tools/virt-make-fs.pl:559
31535 #: ../tools/virt-list-partitions.pl:269
31536 msgid "AUTHOR"
31537 msgstr ""
31538
31539 # type: textblock
31540 #. type: textblock
31541 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:600
31542 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
31543 #: ../tools/virt-tar.pl:294 ../tools/virt-make-fs.pl:561
31544 #: ../tools/virt-list-partitions.pl:271
31545 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31546 msgstr ""
31547
31548 # type: textblock
31549 #. type: textblock
31550 #: ../tools/virt-edit.pl:368 ../tools/virt-list-partitions.pl:275
31551 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31552 msgstr ""
31553
31554 # type: textblock
31555 #. type: textblock
31556 #: ../tools/virt-win-reg.pl:37
31557 msgid ""
31558 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
31559 msgstr ""
31560
31561 # type: verbatim
31562 #. type: verbatim
31563 #: ../tools/virt-win-reg.pl:41
31564 #, no-wrap
31565 msgid ""
31566 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31567 "\n"
31568 msgstr ""
31569
31570 # type: verbatim
31571 #. type: verbatim
31572 #: ../tools/virt-win-reg.pl:43
31573 #, no-wrap
31574 msgid ""
31575 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31576 "\n"
31577 msgstr ""
31578
31579 # type: verbatim
31580 #. type: verbatim
31581 #: ../tools/virt-win-reg.pl:45
31582 #, no-wrap
31583 msgid ""
31584 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31585 "\n"
31586 msgstr ""
31587
31588 # type: verbatim
31589 #. type: verbatim
31590 #: ../tools/virt-win-reg.pl:47
31591 #, no-wrap
31592 msgid ""
31593 " virt-win-reg --merge domname [input.reg ...]\n"
31594 "\n"
31595 msgstr ""
31596
31597 # type: verbatim
31598 #. type: verbatim
31599 #: ../tools/virt-win-reg.pl:49
31600 #, no-wrap
31601 msgid ""
31602 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31603 "\n"
31604 msgstr ""
31605
31606 # type: textblock
31607 #. type: textblock
31608 #: ../tools/virt-win-reg.pl:53
31609 msgid ""
31610 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
31611 "virtual machines.  If you do this, you I<will> get irreversible disk "
31612 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
31613 "but doesn't catch all cases."
31614 msgstr ""
31615
31616 # type: textblock
31617 #. type: textblock
31618 #: ../tools/virt-win-reg.pl:58
31619 msgid ""
31620 "Modifying the Windows Registry is an inherently risky operation.  The format "
31621 "is deliberately obscure and undocumented, and Registry changes can leave the "
31622 "system unbootable.  Therefore when using the C<--merge> option, make sure "
31623 "you have a reliable backup first."
31624 msgstr ""
31625
31626 # type: textblock
31627 #. type: textblock
31628 #: ../tools/virt-win-reg.pl:65
31629 msgid ""
31630 "This program can export and merge Windows Registry entries from a Windows "
31631 "guest."
31632 msgstr ""
31633
31634 # type: textblock
31635 #. type: textblock
31636 #: ../tools/virt-win-reg.pl:68
31637 msgid ""
31638 "The first parameter is the libvirt guest name or the raw disk image of a "
31639 "Windows guest."
31640 msgstr ""
31641
31642 # type: textblock
31643 #. type: textblock
31644 #: ../tools/virt-win-reg.pl:71
31645 msgid ""
31646 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
31647 "exported (recursively).  For example:"
31648 msgstr ""
31649
31650 # type: verbatim
31651 #. type: verbatim
31652 #: ../tools/virt-win-reg.pl:74
31653 #, no-wrap
31654 msgid ""
31655 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
31656 "\n"
31657 msgstr ""
31658
31659 # type: textblock
31660 #. type: textblock
31661 #: ../tools/virt-win-reg.pl:76
31662 msgid ""
31663 "You can also display single values from within registry keys, for example:"
31664 msgstr ""
31665
31666 # type: verbatim
31667 #. type: verbatim
31668 #: ../tools/virt-win-reg.pl:79
31669 #, no-wrap
31670 msgid ""
31671 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
31672 " $ virt-win-reg Windows7 $cvkey ProductName\n"
31673 " Windows 7 Enterprise\n"
31674 "\n"
31675 msgstr ""
31676
31677 # type: textblock
31678 #. type: textblock
31679 #: ../tools/virt-win-reg.pl:83
31680 msgid ""
31681 "With C<--merge>, you can merge a textual regedit file into the Windows "
31682 "Registry:"
31683 msgstr ""
31684
31685 # type: verbatim
31686 #. type: verbatim
31687 #: ../tools/virt-win-reg.pl:86
31688 #, no-wrap
31689 msgid ""
31690 " $ virt-win-reg --merge Windows7 changes.reg\n"
31691 "\n"
31692 msgstr ""
31693
31694 # type: =head2
31695 #. type: =head2
31696 #: ../tools/virt-win-reg.pl:88
31697 msgid "NOTE"
31698 msgstr ""
31699
31700 # type: textblock
31701 #. type: textblock
31702 #: ../tools/virt-win-reg.pl:90
31703 msgid ""
31704 "This program is only meant for simple access to the registry.  If you want "
31705 "to do complicated things with the registry, we suggest you download the "
31706 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
31707 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
31708 "L<hivexregedit(1)>."
31709 msgstr ""
31710
31711 # type: =item
31712 #. type: =item
31713 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
31714 msgid "B<--debug>"
31715 msgstr ""
31716
31717 # type: textblock
31718 #. type: textblock
31719 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
31720 msgid "Enable debugging messages."
31721 msgstr ""
31722
31723 # type: =item
31724 #. type: =item
31725 #: ../tools/virt-win-reg.pl:157
31726 msgid "B<--merge>"
31727 msgstr ""
31728
31729 # type: textblock
31730 #. type: textblock
31731 #: ../tools/virt-win-reg.pl:159
31732 msgid ""
31733 "In merge mode, this merges a textual regedit file into the Windows Registry "
31734 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
31735 "displays or exports Registry entries instead."
31736 msgstr ""
31737
31738 # type: textblock
31739 #. type: textblock
31740 #: ../tools/virt-win-reg.pl:163
31741 msgid ""
31742 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
31743 "result in disk corruption.  However exporting (without this flag)  is always "
31744 "safe."
31745 msgstr ""
31746
31747 # type: =item
31748 #. type: =item
31749 #: ../tools/virt-win-reg.pl:171
31750 msgid "B<--encoding> UTF-16LE|ASCII"
31751 msgstr ""
31752
31753 # type: textblock
31754 #. type: textblock
31755 #: ../tools/virt-win-reg.pl:173
31756 msgid ""
31757 "When merging (only), you may need to specify the encoding for strings to be "
31758 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
31759 "(3)/ENCODING STRINGS>."
31760 msgstr ""
31761
31762 # type: textblock
31763 #. type: textblock
31764 #: ../tools/virt-win-reg.pl:177
31765 msgid ""
31766 "The default is to use UTF-16LE, which should work with recent versions of "
31767 "Windows."
31768 msgstr ""
31769
31770 # type: =head2
31771 #. type: =head1
31772 #: ../tools/virt-win-reg.pl:402
31773 msgid "SUPPORTED SYSTEMS"
31774 msgstr ""
31775
31776 # type: textblock
31777 #. type: textblock
31778 #: ../tools/virt-win-reg.pl:404
31779 msgid ""
31780 "The program currently supports Windows NT-derived guests starting with "
31781 "Windows XP through to at least Windows 7."
31782 msgstr ""
31783
31784 # type: textblock
31785 #. type: textblock
31786 #: ../tools/virt-win-reg.pl:407
31787 msgid ""
31788 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
31789 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
31790 "and C<HKEY_USERS\\.DEFAULT>."
31791 msgstr ""
31792
31793 # type: textblock
31794 #. type: textblock
31795 #: ../tools/virt-win-reg.pl:411
31796 msgid ""
31797 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
31798 "C<HKEY_USERS>."
31799 msgstr ""
31800
31801 # type: textblock
31802 #. type: textblock
31803 #: ../tools/virt-win-reg.pl:414
31804 msgid ""
31805 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
31806 "time."
31807 msgstr ""
31808
31809 # type: =head2
31810 #. type: =head1
31811 #: ../tools/virt-win-reg.pl:417
31812 msgid "ENCODING"
31813 msgstr ""
31814
31815 # type: textblock
31816 #. type: textblock
31817 #: ../tools/virt-win-reg.pl:419
31818 msgid ""
31819 "C<virt-win-reg> expects that regedit files have already been reencoded in "
31820 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
31821 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
31822 "Windows-style line endings, you may need to reencode the whole file before "
31823 "or after processing."
31824 msgstr ""
31825
31826 # type: textblock
31827 #. type: textblock
31828 #: ../tools/virt-win-reg.pl:425
31829 msgid ""
31830 "To reencode a file from Windows format to Linux (before processing it with "
31831 "the C<--merge> option), you would do something like this:"
31832 msgstr ""
31833
31834 # type: verbatim
31835 #. type: verbatim
31836 #: ../tools/virt-win-reg.pl:428
31837 #, no-wrap
31838 msgid ""
31839 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
31840 "\n"
31841 msgstr ""
31842
31843 # type: textblock
31844 #. type: textblock
31845 #: ../tools/virt-win-reg.pl:430
31846 msgid ""
31847 "To go in the opposite direction, after exporting and before sending the file "
31848 "to a Windows user, do something like this:"
31849 msgstr ""
31850
31851 # type: verbatim
31852 #. type: verbatim
31853 #: ../tools/virt-win-reg.pl:433
31854 #, no-wrap
31855 msgid ""
31856 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
31857 "\n"
31858 msgstr ""
31859
31860 # type: textblock
31861 #. type: textblock
31862 #: ../tools/virt-win-reg.pl:435
31863 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
31864 msgstr ""
31865
31866 # type: textblock
31867 #. type: textblock
31868 #: ../tools/virt-win-reg.pl:437
31869 msgid ""
31870 "If you are unsure about the current encoding, use the L<file(1)> command.  "
31871 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
31872 "style (CRLF) line endings, like this:"
31873 msgstr ""
31874
31875 # type: verbatim
31876 #. type: verbatim
31877 #: ../tools/virt-win-reg.pl:441
31878 #, no-wrap
31879 msgid ""
31880 " $ file software.reg\n"
31881 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
31882 " with CRLF line terminators\n"
31883 "\n"
31884 msgstr ""
31885
31886 # type: textblock
31887 #. type: textblock
31888 #: ../tools/virt-win-reg.pl:445
31889 msgid "This file would need conversion before you could C<--merge> it."
31890 msgstr ""
31891
31892 # type: =head2
31893 #. type: =head1
31894 #: ../tools/virt-win-reg.pl:447
31895 msgid "CurrentControlSet etc."
31896 msgstr ""
31897
31898 # type: textblock
31899 #. type: textblock
31900 #: ../tools/virt-win-reg.pl:449
31901 msgid ""
31902 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
31903 "Registry at the level of the hive file, and therefore you cannot modify "
31904 "these."
31905 msgstr ""
31906
31907 # type: textblock
31908 #. type: textblock
31909 #: ../tools/virt-win-reg.pl:453
31910 msgid ""
31911 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
31912 "circumstances it might refer to another control set.  The way to find out is "
31913 "to look at the C<HKLM\\SYSTEM\\Select> key:"
31914 msgstr ""
31915
31916 # type: verbatim
31917 #. type: verbatim
31918 #: ../tools/virt-win-reg.pl:457
31919 #, no-wrap
31920 msgid ""
31921 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
31922 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
31923 " \"Current\"=dword:00000001\n"
31924 " \"Default\"=dword:00000001\n"
31925 " \"Failed\"=dword:00000000\n"
31926 " \"LastKnownGood\"=dword:00000002\n"
31927 "\n"
31928 msgstr ""
31929
31930 # type: textblock
31931 #. type: textblock
31932 #: ../tools/virt-win-reg.pl:464
31933 msgid "\"Current\" is the one which Windows will choose when it boots."
31934 msgstr ""
31935
31936 # type: textblock
31937 #. type: textblock
31938 #: ../tools/virt-win-reg.pl:466
31939 msgid ""
31940 "Similarly, other C<Current...> keys in the path may need to be replaced."
31941 msgstr ""
31942
31943 # type: =head1
31944 #. type: =head1
31945 #: ../tools/virt-win-reg.pl:469
31946 msgid "WINDOWS TIPS"
31947 msgstr ""
31948
31949 # type: textblock
31950 #. type: textblock
31951 #: ../tools/virt-win-reg.pl:471
31952 msgid ""
31953 "Note that some of these tips modify the guest disk image.  The guest I<must> "
31954 "be shut off, else you will get disk corruption."
31955 msgstr ""
31956
31957 # type: =head2
31958 #. type: =head2
31959 #: ../tools/virt-win-reg.pl:474
31960 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
31961 msgstr ""
31962
31963 # type: textblock
31964 #. type: textblock
31965 #: ../tools/virt-win-reg.pl:476
31966 msgid ""
31967 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
31968 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
31969 "is uploaded into C<C:\\>:"
31970 msgstr ""
31971
31972 # type: verbatim
31973 #. type: verbatim
31974 #: ../tools/virt-win-reg.pl:480
31975 #, no-wrap
31976 msgid ""
31977 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
31978 "\n"
31979 msgstr ""
31980
31981 # type: textblock
31982 #. type: textblock
31983 #: ../tools/virt-win-reg.pl:482
31984 msgid "Prepare a regedit file containing the registry change:"
31985 msgstr ""
31986
31987 # type: verbatim
31988 #. type: verbatim
31989 #: ../tools/virt-win-reg.pl:484
31990 #, no-wrap
31991 msgid ""
31992 " cat > test.reg <<'EOF'\n"
31993 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
31994 " \"Test\"=\"c:\\\\test.bat\"\n"
31995 " EOF\n"
31996 "\n"
31997 msgstr ""
31998
31999 # type: textblock
32000 #. type: textblock
32001 #: ../tools/virt-win-reg.pl:489
32002 msgid ""
32003 "In this example we use the key C<RunOnce> which means that the script will "
32004 "run precisely once when the first user logs in.  If you want it to run every "
32005 "time a user logs in, replace C<RunOnce> with C<Run>."
32006 msgstr ""
32007
32008 # type: textblock
32009 #. type: textblock
32010 #: ../tools/virt-win-reg.pl:493
32011 msgid "Now update the registry:"
32012 msgstr ""
32013
32014 # type: verbatim
32015 #. type: verbatim
32016 #: ../tools/virt-win-reg.pl:495
32017 #, no-wrap
32018 msgid ""
32019 " virt-win-reg --merge WindowsGuest test.reg\n"
32020 "\n"
32021 msgstr ""
32022
32023 # type: =head2
32024 #. type: =head2
32025 #: ../tools/virt-win-reg.pl:497
32026 msgid "INSTALLING A SERVICE"
32027 msgstr ""
32028
32029 # type: textblock
32030 #. type: textblock
32031 #: ../tools/virt-win-reg.pl:499
32032 msgid ""
32033 "This section assumes you are familiar with Windows services, and you either "
32034 "have a program which handles the Windows Service Control Protocol directly "
32035 "or you want to run any program using a service wrapper like SrvAny or the "
32036 "free RHSrvAny."
32037 msgstr ""
32038
32039 # type: textblock
32040 #. type: textblock
32041 #: ../tools/virt-win-reg.pl:504
32042 msgid ""
32043 "First upload the program and optionally the service wrapper.  In this case "
32044 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
32045 msgstr ""
32046
32047 # type: verbatim
32048 #. type: verbatim
32049 #: ../tools/virt-win-reg.pl:508
32050 #, no-wrap
32051 msgid ""
32052 " guestfish -i -d WindowsGuest <<EOF\n"
32053 "   upload rhsrvany.exe /rhsrvany.exe\n"
32054 "   upload test.exe /test.exe\n"
32055 " EOF\n"
32056 "\n"
32057 msgstr ""
32058
32059 # type: textblock
32060 #. type: textblock
32061 #: ../tools/virt-win-reg.pl:513
32062 msgid ""
32063 "Prepare a regedit file containing the registry changes.  In this example, "
32064 "the first registry change is needed for the service itself or the service "
32065 "wrapper (if used).  The second registry change is only needed because I am "
32066 "using the RHSrvAny service wrapper."
32067 msgstr ""
32068
32069 # type: verbatim
32070 #. type: verbatim
32071 #: ../tools/virt-win-reg.pl:518
32072 #, no-wrap
32073 msgid ""
32074 " cat > service.reg <<'EOF'\n"
32075 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
32076 " \"Type\"=dword:00000010\n"
32077 " \"Start\"=dword:00000002\n"
32078 " \"ErrorControl\"=dword:00000001\n"
32079 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
32080 " \"DisplayName\"=\"RHSrvAny\"\n"
32081 " \"ObjectName\"=\"NetworkService\"\n"
32082 " \n"
32083 msgstr ""
32084
32085 # type: verbatim
32086 #. type: verbatim
32087 #: ../tools/virt-win-reg.pl:527
32088 #, no-wrap
32089 msgid ""
32090 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
32091 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
32092 " \"PWD\"=\"c:\\\\Temp\"\n"
32093 " EOF\n"
32094 "\n"
32095 msgstr ""
32096
32097 # type: textblock
32098 #. type: textblock
32099 #: ../tools/virt-win-reg.pl:538
32100 msgid ""
32101 "For use of C<ControlSet001> see the section above in this manual page.  You "
32102 "may need to adjust this according to the control set that is in use by the "
32103 "guest."
32104 msgstr ""
32105
32106 # type: textblock
32107 #. type: textblock
32108 #: ../tools/virt-win-reg.pl:544
32109 msgid ""
32110 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
32111 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
32112 "privileged account."
32113 msgstr ""
32114
32115 # type: textblock
32116 #. type: textblock
32117 #: ../tools/virt-win-reg.pl:550
32118 msgid ""
32119 "For the meaning of the magic numbers, see this Microsoft KB article: "
32120 "L<http://support.microsoft.com/kb/103000>."
32121 msgstr ""
32122
32123 # type: textblock
32124 #. type: textblock
32125 #: ../tools/virt-win-reg.pl:555
32126 msgid "Update the registry:"
32127 msgstr ""
32128
32129 # type: verbatim
32130 #. type: verbatim
32131 #: ../tools/virt-win-reg.pl:557
32132 #, no-wrap
32133 msgid ""
32134 " virt-win-reg --merge WindowsGuest service.reg\n"
32135 "\n"
32136 msgstr ""
32137
32138 # type: textblock
32139 #. type: textblock
32140 #: ../tools/virt-win-reg.pl:561
32141 msgid ""
32142 "Be careful when passing parameters containing C<\\> (backslash) in the "
32143 "shell.  Usually you will have to use 'single quotes' or double backslashes "
32144 "(but not both) to protect them from the shell."
32145 msgstr ""
32146
32147 # type: textblock
32148 #. type: textblock
32149 #: ../tools/virt-win-reg.pl:565
32150 msgid "Paths and value names are case-insensitive."
32151 msgstr ""
32152
32153 # type: textblock
32154 #. type: textblock
32155 #: ../tools/virt-win-reg.pl:574
32156 msgid ""
32157 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
32158 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
32159 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32160 msgstr ""
32161
32162 # type: textblock
32163 #. type: textblock
32164 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
32165 msgid ""
32166 "When reporting bugs, please enable debugging and capture the I<complete> "
32167 "output:"
32168 msgstr ""
32169
32170 # type: verbatim
32171 #. type: verbatim
32172 #: ../tools/virt-win-reg.pl:592
32173 #, no-wrap
32174 msgid ""
32175 " export LIBGUESTFS_DEBUG=1\n"
32176 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
32177 "\n"
32178 msgstr ""
32179
32180 # type: textblock
32181 #. type: textblock
32182 #: ../tools/virt-win-reg.pl:595
32183 msgid ""
32184 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
32185 "redhat.com/>"
32186 msgstr ""
32187
32188 # type: textblock
32189 #. type: textblock
32190 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
32191 #: ../tools/virt-make-fs.pl:565
32192 msgid "Copyright (C) 2010 Red Hat Inc."
32193 msgstr ""
32194
32195 # type: textblock
32196 #. type: textblock
32197 #: ../tools/virt-resize.pl:42
32198 msgid "virt-resize - Resize a virtual machine disk"
32199 msgstr ""
32200
32201 # type: verbatim
32202 #. type: verbatim
32203 #: ../tools/virt-resize.pl:46
32204 #, no-wrap
32205 msgid ""
32206 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
32207 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
32208 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
32209 "\n"
32210 msgstr ""
32211
32212 # type: textblock
32213 #. type: textblock
32214 #: ../tools/virt-resize.pl:52
32215 msgid ""
32216 "Virt-resize is a tool which can resize a virtual machine disk, making it "
32217 "larger or smaller overall, and resizing or deleting any partitions contained "
32218 "within."
32219 msgstr ""
32220
32221 # type: textblock
32222 #. type: textblock
32223 #: ../tools/virt-resize.pl:56
32224 msgid ""
32225 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
32226 "not> be used on live virtual machines - for consistent results, shut the "
32227 "virtual machine down before resizing it."
32228 msgstr ""
32229
32230 # type: textblock
32231 #. type: textblock
32232 #: ../tools/virt-resize.pl:60
32233 msgid ""
32234 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
32235 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
32236 msgstr ""
32237
32238 # type: textblock
32239 #. type: textblock
32240 #: ../tools/virt-resize.pl:66
32241 msgid ""
32242 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
32243 "fill the extra 5GB of space."
32244 msgstr ""
32245
32246 # type: verbatim
32247 #. type: verbatim
32248 #: ../tools/virt-resize.pl:69
32249 #, no-wrap
32250 msgid ""
32251 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
32252 " virt-filesystems --long --h --all -a olddisk\n"
32253 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
32254 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
32255 "\n"
32256 msgstr ""
32257
32258 # type: textblock
32259 #. type: textblock
32260 #: ../tools/virt-resize.pl:74
32261 msgid ""
32262 "As above, but make the /boot partition 200MB bigger, while giving the "
32263 "remaining space to /dev/sda2:"
32264 msgstr ""
32265
32266 # type: verbatim
32267 #. type: verbatim
32268 #: ../tools/virt-resize.pl:77
32269 #, no-wrap
32270 msgid ""
32271 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
32272 "\n"
32273 msgstr ""
32274
32275 # type: textblock
32276 #. type: textblock
32277 #: ../tools/virt-resize.pl:79
32278 msgid "As above, but the output format will be uncompressed qcow2:"
32279 msgstr ""
32280
32281 # type: verbatim
32282 #. type: verbatim
32283 #: ../tools/virt-resize.pl:81
32284 #, no-wrap
32285 msgid ""
32286 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
32287 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
32288 "\n"
32289 msgstr ""
32290
32291 # type: =head1
32292 #. type: =head1
32293 #: ../tools/virt-resize.pl:84
32294 msgid "DETAILED USAGE"
32295 msgstr ""
32296
32297 # type: =head2
32298 #. type: =head2
32299 #: ../tools/virt-resize.pl:86
32300 msgid "EXPANDING A VIRTUAL MACHINE DISK"
32301 msgstr ""
32302
32303 # type: =item
32304 #. type: =item
32305 #: ../tools/virt-resize.pl:90
32306 msgid "1. Shut down the virtual machine"
32307 msgstr ""
32308
32309 # type: =item
32310 #. type: =item
32311 #: ../tools/virt-resize.pl:92
32312 msgid "2. Locate input disk image"
32313 msgstr ""
32314
32315 # type: textblock
32316 #. type: textblock
32317 #: ../tools/virt-resize.pl:94
32318 msgid ""
32319 "Locate the input disk image (ie. the file or device on the host containing "
32320 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
32321 "dumpxml> like this to find the disk image name:"
32322 msgstr ""
32323
32324 # type: verbatim
32325 #. type: verbatim
32326 #: ../tools/virt-resize.pl:98
32327 #, no-wrap
32328 msgid ""
32329 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
32330 " Found 1 nodes:\n"
32331 " -- NODE --\n"
32332 " <source dev=\"/dev/vg/lv_guest\" />\n"
32333 "\n"
32334 msgstr ""
32335
32336 # type: =item
32337 #. type: =item
32338 #: ../tools/virt-resize.pl:103
32339 msgid "3. Look at current sizing"
32340 msgstr ""
32341
32342 # type: textblock
32343 #. type: textblock
32344 #: ../tools/virt-resize.pl:105
32345 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
32346 msgstr ""
32347
32348 # type: verbatim
32349 #. type: verbatim
32350 #: ../tools/virt-resize.pl:108
32351 #, no-wrap
32352 msgid ""
32353 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
32354 " Name       Type       Size  Parent\n"
32355 " /dev/sda1  partition  101M  /dev/sda\n"
32356 " /dev/sda2  partition  7.9G  /dev/sda\n"
32357 " /dev/sda   device     8.0G  -\n"
32358 "\n"
32359 msgstr ""
32360
32361 # type: textblock
32362 #. type: textblock
32363 #: ../tools/virt-resize.pl:114
32364 msgid ""
32365 "(This example is a virtual machine with an 8 GB disk which we would like to "
32366 "expand up to 10 GB)."
32367 msgstr ""
32368
32369 # type: =item
32370 #. type: =item
32371 #: ../tools/virt-resize.pl:117
32372 msgid "4. Create output disk"
32373 msgstr ""
32374
32375 # type: textblock
32376 #. type: textblock
32377 #: ../tools/virt-resize.pl:119
32378 msgid ""
32379 "Virt-resize cannot do in-place disk modifications.  You have to have space "
32380 "to store the resized output disk."
32381 msgstr ""
32382
32383 # type: textblock
32384 #. type: textblock
32385 #: ../tools/virt-resize.pl:122
32386 msgid ""
32387 "To store the resized disk image in a file, create a file of a suitable size:"
32388 msgstr ""
32389
32390 # type: verbatim
32391 #. type: verbatim
32392 #: ../tools/virt-resize.pl:125
32393 #, no-wrap
32394 msgid ""
32395 " # rm -f outdisk\n"
32396 " # truncate -s 10G outdisk\n"
32397 "\n"
32398 msgstr ""
32399
32400 # type: textblock
32401 #. type: textblock
32402 #: ../tools/virt-resize.pl:128
32403 msgid "Or use L<lvcreate(1)> to create a logical volume:"
32404 msgstr ""
32405
32406 # type: verbatim
32407 #. type: verbatim
32408 #: ../tools/virt-resize.pl:130
32409 #, no-wrap
32410 msgid ""
32411 " # lvcreate -L 10G -n lv_name vg_name\n"
32412 "\n"
32413 msgstr ""
32414
32415 # type: textblock
32416 #. type: textblock
32417 #: ../tools/virt-resize.pl:132
32418 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
32419 msgstr ""
32420
32421 # type: verbatim
32422 #. type: verbatim
32423 #: ../tools/virt-resize.pl:134
32424 #, no-wrap
32425 msgid ""
32426 " # virsh pool-list\n"
32427 " # virsh vol-create-as poolname newvol 10G\n"
32428 "\n"
32429 msgstr ""
32430
32431 # type: =item
32432 #. type: =item
32433 #: ../tools/virt-resize.pl:137
32434 msgid "5. Resize"
32435 msgstr ""
32436
32437 # type: textblock
32438 #. type: textblock
32439 #: ../tools/virt-resize.pl:139
32440 msgid ""
32441 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
32442 "file) and the output disk.  The output disk is the one created in the "
32443 "previous step."
32444 msgstr ""
32445
32446 # type: verbatim
32447 #. type: verbatim
32448 #: ../tools/virt-resize.pl:143
32449 #, no-wrap
32450 msgid ""
32451 " # virt-resize indisk outdisk\n"
32452 "\n"
32453 msgstr ""
32454
32455 # type: textblock
32456 #. type: textblock
32457 #: ../tools/virt-resize.pl:145
32458 msgid ""
32459 "This command just copies disk image C<indisk> to disk image C<outdisk> "
32460 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
32461 "larger, then an extra, empty partition is created at the end of the disk "
32462 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
32463 "error."
32464 msgstr ""
32465
32466 # type: textblock
32467 #. type: textblock
32468 #: ../tools/virt-resize.pl:151
32469 msgid ""
32470 "More realistically you'd want to expand existing partitions in the disk "
32471 "image by passing extra options (for the full list see the L</OPTIONS> "
32472 "section below)."
32473 msgstr ""
32474
32475 # type: textblock
32476 #. type: textblock
32477 #: ../tools/virt-resize.pl:155
32478 msgid ""
32479 "L</--expand> is the most useful option.  It expands the named partition "
32480 "within the disk to fill any extra space:"
32481 msgstr ""
32482
32483 # type: verbatim
32484 #. type: verbatim
32485 #: ../tools/virt-resize.pl:158
32486 #, no-wrap
32487 msgid ""
32488 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
32489 "\n"
32490 msgstr ""
32491
32492 # type: textblock
32493 #. type: textblock
32494 #: ../tools/virt-resize.pl:160
32495 msgid ""
32496 "(In this case, an extra partition is I<not> created at the end of the disk, "
32497 "because there will be no unused space)."
32498 msgstr ""
32499
32500 # type: textblock
32501 #. type: textblock
32502 #: ../tools/virt-resize.pl:163
32503 msgid ""
32504 "L</--resize> is the other commonly used option.  The following would "
32505 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
32506 "rest of the available space:"
32507 msgstr ""
32508
32509 # type: verbatim
32510 #. type: verbatim
32511 #: ../tools/virt-resize.pl:167
32512 #, no-wrap
32513 msgid ""
32514 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
32515 "     indisk outdisk\n"
32516 "\n"
32517 msgstr ""
32518
32519 # type: textblock
32520 #. type: textblock
32521 #: ../tools/virt-resize.pl:170
32522 msgid ""
32523 "If the expanded partition in the image contains a filesystem or LVM PV, then "
32524 "if virt-resize knows how, it will resize the contents, the equivalent of "
32525 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
32526 ">.  However virt-resize does not know how to resize some filesystems, so you "
32527 "would have to online resize them after booting the guest."
32528 msgstr ""
32529
32530 # type: textblock
32531 #. type: textblock
32532 #: ../tools/virt-resize.pl:177
32533 msgid "Other options are covered below."
32534 msgstr ""
32535
32536 # type: =item
32537 #. type: =item
32538 #: ../tools/virt-resize.pl:179
32539 msgid "6. Test"
32540 msgstr ""
32541
32542 # type: textblock
32543 #. type: textblock
32544 #: ../tools/virt-resize.pl:181
32545 msgid "Thoroughly test the new disk image I<before> discarding the old one."
32546 msgstr ""
32547
32548 # type: textblock
32549 #. type: textblock
32550 #: ../tools/virt-resize.pl:183
32551 msgid "If you are using libvirt, edit the XML to point at the new disk:"
32552 msgstr ""
32553
32554 # type: verbatim
32555 #. type: verbatim
32556 #: ../tools/virt-resize.pl:185
32557 #, no-wrap
32558 msgid ""
32559 " # virsh edit guestname\n"
32560 "\n"
32561 msgstr ""
32562
32563 # type: textblock
32564 #. type: textblock
32565 #: ../tools/virt-resize.pl:187
32566 msgid ""
32567 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
32568 "html#elementsDisks>"
32569 msgstr ""
32570
32571 # type: textblock
32572 #. type: textblock
32573 #: ../tools/virt-resize.pl:190
32574 msgid "Then start up the domain with the new, resized disk:"
32575 msgstr ""
32576
32577 # type: verbatim
32578 #. type: verbatim
32579 #: ../tools/virt-resize.pl:192
32580 #, no-wrap
32581 msgid ""
32582 " # virsh start guestname\n"
32583 "\n"
32584 msgstr ""
32585
32586 # type: textblock
32587 #. type: textblock
32588 #: ../tools/virt-resize.pl:194
32589 msgid ""
32590 "and check that it still works.  See also the L</NOTES> section below for "
32591 "additional information."
32592 msgstr ""
32593
32594 # type: =item
32595 #. type: =item
32596 #: ../tools/virt-resize.pl:197
32597 msgid "7. Resize LVs etc inside the guest"
32598 msgstr ""
32599
32600 # type: textblock
32601 #. type: textblock
32602 #: ../tools/virt-resize.pl:199
32603 msgid "(This can also be done offline using L<guestfish(1)>)"
32604 msgstr ""
32605
32606 # type: textblock
32607 #. type: textblock
32608 #: ../tools/virt-resize.pl:201
32609 msgid ""
32610 "Once the guest has booted you should see the new space available, at least "
32611 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
32612 "may need to resize LVs inside PVs, and also resize filesystem types that "
32613 "virt-resize does not know how to expand."
32614 msgstr ""
32615
32616 # type: =head2
32617 #. type: =head2
32618 #: ../tools/virt-resize.pl:208
32619 msgid "SHRINKING A VIRTUAL MACHINE DISK"
32620 msgstr ""
32621
32622 # type: textblock
32623 #. type: textblock
32624 #: ../tools/virt-resize.pl:210
32625 msgid ""
32626 "Shrinking is somewhat more complex than expanding, and only an overview is "
32627 "given here."
32628 msgstr ""
32629
32630 # type: textblock
32631 #. type: textblock
32632 #: ../tools/virt-resize.pl:213
32633 msgid ""
32634 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
32635 "filesystems).  The user has to shrink content before passing the disk image "
32636 "to virt-resize, and virt-resize will check that the content has been shrunk "
32637 "properly."
32638 msgstr ""
32639
32640 # type: textblock
32641 #. type: textblock
32642 #: ../tools/virt-resize.pl:218
32643 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
32644 msgstr ""
32645
32646 # type: textblock
32647 #. type: textblock
32648 #: ../tools/virt-resize.pl:220
32649 msgid ""
32650 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
32651 "steps 3 and 4 above to allocate a new disk image."
32652 msgstr ""
32653
32654 # type: textblock
32655 #. type: textblock
32656 #: ../tools/virt-resize.pl:223
32657 msgid ""
32658 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
32659 msgstr ""
32660
32661 # type: =head2
32662 #. type: =head2
32663 #: ../tools/virt-resize.pl:226
32664 msgid "IGNORING OR DELETING PARTITIONS"
32665 msgstr ""
32666
32667 # type: textblock
32668 #. type: textblock
32669 #: ../tools/virt-resize.pl:228
32670 msgid ""
32671 "virt-resize also gives a convenient way to ignore or delete partitions when "
32672 "copying from the input disk to the output disk.  Ignoring a partition speeds "
32673 "up the copy where you don't care about the existing contents of a "
32674 "partition.  Deleting a partition removes it completely, but note that it "
32675 "also renumbers any partitions after the one which is deleted, which can "
32676 "leave some guests unbootable."
32677 msgstr ""
32678
32679 # type: =head2
32680 #. type: =head2
32681 #: ../tools/virt-resize.pl:235
32682 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
32683 msgstr ""
32684
32685 # type: textblock
32686 #. type: textblock
32687 #: ../tools/virt-resize.pl:237
32688 msgid ""
32689 "If the input disk is in qcow2 format, then you may prefer that the output is "
32690 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
32691 "the fly.  The output format is simply determined by the format of the empty "
32692 "output container that you provide.  Thus to create qcow2 output, use:"
32693 msgstr ""
32694
32695 # type: verbatim
32696 #. type: verbatim
32697 #: ../tools/virt-resize.pl:243
32698 #, no-wrap
32699 msgid ""
32700 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
32701 "\n"
32702 msgstr ""
32703
32704 # type: textblock
32705 #. type: textblock
32706 #: ../tools/virt-resize.pl:245
32707 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
32708 msgstr ""
32709
32710 # type: textblock
32711 #. type: textblock
32712 #: ../tools/virt-resize.pl:247
32713 msgid "Similarly, to get non-sparse raw output use:"
32714 msgstr ""
32715
32716 # type: verbatim
32717 #. type: verbatim
32718 #: ../tools/virt-resize.pl:249
32719 #, no-wrap
32720 msgid ""
32721 " fallocate -l size outdisk\n"
32722 "\n"
32723 msgstr ""
32724
32725 # type: textblock
32726 #. type: textblock
32727 #: ../tools/virt-resize.pl:251
32728 msgid ""
32729 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
32730 "dev/zero of=outdisk bs=1M count=..>)"
32731 msgstr ""
32732
32733 # type: textblock
32734 #. type: textblock
32735 #: ../tools/virt-resize.pl:264
32736 msgid "Display help."
32737 msgstr ""
32738
32739 # type: =item
32740 #. type: =item
32741 #: ../tools/virt-resize.pl:278
32742 msgid "B<--resize part=size>"
32743 msgstr ""
32744
32745 # type: textblock
32746 #. type: textblock
32747 #: ../tools/virt-resize.pl:280
32748 msgid ""
32749 "Resize the named partition (expanding or shrinking it) so that it has the "
32750 "given size."
32751 msgstr ""
32752
32753 # type: textblock
32754 #. type: textblock
32755 #: ../tools/virt-resize.pl:283
32756 msgid ""
32757 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
32758 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
32759 "Exabytes; or as a percentage of the current size; or as a relative number or "
32760 "percentage.  For example:"
32761 msgstr ""
32762
32763 # type: verbatim
32764 #. type: verbatim
32765 #: ../tools/virt-resize.pl:288
32766 #, no-wrap
32767 msgid ""
32768 " --resize /dev/sda2=10G\n"
32769 "\n"
32770 msgstr ""
32771
32772 # type: verbatim
32773 #. type: verbatim
32774 #: ../tools/virt-resize.pl:290
32775 #, no-wrap
32776 msgid ""
32777 " --resize /dev/sda4=90%\n"
32778 "\n"
32779 msgstr ""
32780
32781 # type: verbatim
32782 #. type: verbatim
32783 #: ../tools/virt-resize.pl:292
32784 #, no-wrap
32785 msgid ""
32786 " --resize /dev/sda2=+1G\n"
32787 "\n"
32788 msgstr ""
32789
32790 # type: verbatim
32791 #. type: verbatim
32792 #: ../tools/virt-resize.pl:294
32793 #, no-wrap
32794 msgid ""
32795 " --resize /dev/sda2=-200M\n"
32796 "\n"
32797 msgstr ""
32798
32799 # type: verbatim
32800 #. type: verbatim
32801 #: ../tools/virt-resize.pl:296
32802 #, no-wrap
32803 msgid ""
32804 " --resize /dev/sda1=+128K\n"
32805 "\n"
32806 msgstr ""
32807
32808 # type: verbatim
32809 #. type: verbatim
32810 #: ../tools/virt-resize.pl:298
32811 #, no-wrap
32812 msgid ""
32813 " --resize /dev/sda1=+10%\n"
32814 "\n"
32815 msgstr ""
32816
32817 # type: verbatim
32818 #. type: verbatim
32819 #: ../tools/virt-resize.pl:300
32820 #, no-wrap
32821 msgid ""
32822 " --resize /dev/sda1=-10%\n"
32823 "\n"
32824 msgstr ""
32825
32826 # type: textblock
32827 #. type: textblock
32828 #: ../tools/virt-resize.pl:302
32829 msgid ""
32830 "You can increase the size of any partition.  Virt-resize will expand the "
32831 "direct content of the partition if it knows how (see C<--expand> below)."
32832 msgstr ""
32833
32834 # type: textblock
32835 #. type: textblock
32836 #: ../tools/virt-resize.pl:306
32837 msgid ""
32838 "You can only I<decrease> the size of partitions that contain filesystems or "
32839 "PVs which have already been shrunk.  Virt-resize will check this has been "
32840 "done before proceeding, or else will print an error (see also C<--resize-"
32841 "force>)."
32842 msgstr ""
32843
32844 # type: textblock
32845 #. type: textblock
32846 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
32847 #: ../tools/virt-resize.pl:420
32848 msgid "You can give this option multiple times."
32849 msgstr ""
32850
32851 # type: =item
32852 #. type: =item
32853 #: ../tools/virt-resize.pl:317
32854 msgid "B<--resize-force part=size>"
32855 msgstr ""
32856
32857 # type: textblock
32858 #. type: textblock
32859 #: ../tools/virt-resize.pl:319
32860 msgid ""
32861 "This is the same as C<--resize> except that it will let you decrease the "
32862 "size of any partition.  Generally this means you will lose any data which "
32863 "was at the end of the partition you shrink, but you may not care about that "
32864 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
32865 "as a swap partition)."
32866 msgstr ""
32867
32868 # type: textblock
32869 #. type: textblock
32870 #: ../tools/virt-resize.pl:325
32871 msgid "See also the C<--ignore> option."
32872 msgstr ""
32873
32874 # type: =item
32875 #. type: =item
32876 #: ../tools/virt-resize.pl:331
32877 msgid "B<--expand part>"
32878 msgstr ""
32879
32880 # type: textblock
32881 #. type: textblock
32882 #: ../tools/virt-resize.pl:333
32883 msgid ""
32884 "Expand the named partition so it uses up all extra space (space left over "
32885 "after any other resize changes that you request have been done)."
32886 msgstr ""
32887
32888 # type: textblock
32889 #. type: textblock
32890 #: ../tools/virt-resize.pl:336
32891 msgid ""
32892 "If virt-resize knows how, it will expand the direct content of the "
32893 "partition.  For example, if the partition is an LVM PV, it will expand the "
32894 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
32895 "content it doesn't know about alone."
32896 msgstr ""
32897
32898 # type: textblock
32899 #. type: textblock
32900 #: ../tools/virt-resize.pl:341
32901 msgid "Currently virt-resize can resize:"
32902 msgstr ""
32903
32904 # type: textblock
32905 #. type: textblock
32906 #: ../tools/virt-resize.pl:347
32907 msgid ""
32908 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
32909 "partition."
32910 msgstr ""
32911
32912 # type: textblock
32913 #. type: textblock
32914 #: ../tools/virt-resize.pl:352
32915 msgid ""
32916 "NTFS filesystems contained directly in a partition, if libguestfs was "
32917 "compiled with support for NTFS."
32918 msgstr ""
32919
32920 # type: textblock
32921 #. type: textblock
32922 #: ../tools/virt-resize.pl:355
32923 msgid ""
32924 "The filesystem must have been shut down consistently last time it was used.  "
32925 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
32926 "consistency check, so at the first boot after resizing Windows will check "
32927 "the disk."
32928 msgstr ""
32929
32930 # type: textblock
32931 #. type: textblock
32932 #: ../tools/virt-resize.pl:362
32933 msgid ""
32934 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
32935 "inside the PV, but see the C<--LV-expand> option.  The user could also "
32936 "resize LVs as desired after boot."
32937 msgstr ""
32938
32939 # type: textblock
32940 #. type: textblock
32941 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
32942 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
32943 msgstr ""
32944
32945 # type: =item
32946 #. type: =item
32947 #: ../tools/virt-resize.pl:374
32948 msgid "B<--shrink part>"
32949 msgstr ""
32950
32951 # type: textblock
32952 #. type: textblock
32953 #: ../tools/virt-resize.pl:376
32954 msgid ""
32955 "Shrink the named partition until the overall disk image fits in the "
32956 "destination.  The named partition B<must> contain a filesystem or PV which "
32957 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
32958 "online tools).  Virt-resize will check this and give an error if it has not "
32959 "been done."
32960 msgstr ""
32961
32962 # type: textblock
32963 #. type: textblock
32964 #: ../tools/virt-resize.pl:382
32965 msgid ""
32966 "The amount by which the overall disk must be shrunk (after carrying out all "
32967 "other operations requested by the user) is called the \"deficit\".  For "
32968 "example, a straight copy (assume no other operations)  from a 5GB disk image "
32969 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
32970 "would give an error unless the user specified a partition to shrink and that "
32971 "partition had more than a gigabyte of free space."
32972 msgstr ""
32973
32974 # type: =item
32975 #. type: =item
32976 #: ../tools/virt-resize.pl:396
32977 msgid "B<--ignore part>"
32978 msgstr ""
32979
32980 # type: textblock
32981 #. type: textblock
32982 #: ../tools/virt-resize.pl:398
32983 msgid ""
32984 "Ignore the named partition.  Effectively this means the partition is "
32985 "allocated on the destination disk, but the content is not copied across from "
32986 "the source disk.  The content of the partition will be blank (all zero "
32987 "bytes)."
32988 msgstr ""
32989
32990 # type: =item
32991 #. type: =item
32992 #: ../tools/virt-resize.pl:409
32993 msgid "B<--delete part>"
32994 msgstr ""
32995
32996 # type: textblock
32997 #. type: textblock
32998 #: ../tools/virt-resize.pl:411
32999 msgid ""
33000 "Delete the named partition.  It would be more accurate to describe this as "
33001 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
33002 "the original disk image is left intact."
33003 msgstr ""
33004
33005 # type: textblock
33006 #. type: textblock
33007 #: ../tools/virt-resize.pl:415
33008 msgid ""
33009 "Note that when you delete a partition, then anything contained in the "
33010 "partition is also deleted.  Furthermore, this causes any partitions that "
33011 "come after to be I<renumbered>, which can easily make your guest unbootable."
33012 msgstr ""
33013
33014 # type: =item
33015 #. type: =item
33016 #: ../tools/virt-resize.pl:426
33017 msgid "B<--LV-expand logvol>"
33018 msgstr ""
33019
33020 # type: textblock
33021 #. type: textblock
33022 #: ../tools/virt-resize.pl:428
33023 msgid ""
33024 "This takes the logical volume and, as a final step, expands it to fill all "
33025 "the space available in its volume group.  A typical usage, assuming a Linux "
33026 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
33027 "lv_root> would be:"
33028 msgstr ""
33029
33030 # type: verbatim
33031 #. type: verbatim
33032 #: ../tools/virt-resize.pl:433
33033 #, no-wrap
33034 msgid ""
33035 " virt-resize indisk outdisk \\\n"
33036 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
33037 "\n"
33038 msgstr ""
33039
33040 # type: textblock
33041 #. type: textblock
33042 #: ../tools/virt-resize.pl:436
33043 msgid ""
33044 "This would first expand the partition (and PV), and then expand the root "
33045 "device to fill the extra space in the PV."
33046 msgstr ""
33047
33048 # type: textblock
33049 #. type: textblock
33050 #: ../tools/virt-resize.pl:439
33051 msgid ""
33052 "The contents of the LV are also resized if virt-resize knows how to do "
33053 "that.  You can stop virt-resize from trying to expand the content by using "
33054 "the option C<--no-expand-content>."
33055 msgstr ""
33056
33057 # type: textblock
33058 #. type: textblock
33059 #: ../tools/virt-resize.pl:443
33060 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
33061 msgstr ""
33062
33063 # type: textblock
33064 #. type: textblock
33065 #: ../tools/virt-resize.pl:446
33066 msgid ""
33067 "You can give this option multiple times, I<but> it doesn't make sense to do "
33068 "this unless the logical volumes you specify are all in different volume "
33069 "groups."
33070 msgstr ""
33071
33072 # type: =item
33073 #. type: =item
33074 #: ../tools/virt-resize.pl:454
33075 msgid "B<--no-copy-boot-loader>"
33076 msgstr ""
33077
33078 # type: textblock
33079 #. type: textblock
33080 #: ../tools/virt-resize.pl:456
33081 msgid ""
33082 "By default, virt-resize copies over some sectors at the start of the disk "
33083 "(up to the beginning of the first partition).  Commonly these sectors "
33084 "contain the Master Boot Record (MBR) and the boot loader, and are required "
33085 "in order for the guest to boot correctly."
33086 msgstr ""
33087
33088 # type: textblock
33089 #. type: textblock
33090 #: ../tools/virt-resize.pl:461
33091 msgid ""
33092 "If you specify this flag, then this initial copy is not done.  You may need "
33093 "to reinstall the boot loader in this case."
33094 msgstr ""
33095
33096 # type: =item
33097 #. type: =item
33098 #: ../tools/virt-resize.pl:469
33099 msgid "B<--no-extra-partition>"
33100 msgstr ""
33101
33102 # type: textblock
33103 #. type: textblock
33104 #: ../tools/virt-resize.pl:471
33105 msgid ""
33106 "By default, virt-resize creates an extra partition if there is any extra, "
33107 "unused space after all resizing has happened.  Use this option to prevent "
33108 "the extra partition from being created.  If you do this then the extra space "
33109 "will be inaccessible until you run fdisk, parted, or some other partitioning "
33110 "tool in the guest."
33111 msgstr ""
33112
33113 # type: textblock
33114 #. type: textblock
33115 #: ../tools/virt-resize.pl:477
33116 msgid ""
33117 "Note that if the surplus space is smaller than 10 MB, no extra partition "
33118 "will be created."
33119 msgstr ""
33120
33121 # type: =item
33122 #. type: =item
33123 #: ../tools/virt-resize.pl:484
33124 msgid "B<--no-expand-content>"
33125 msgstr ""
33126
33127 # type: textblock
33128 #. type: textblock
33129 #: ../tools/virt-resize.pl:486
33130 msgid ""
33131 "By default, virt-resize will try to expand the direct contents of "
33132 "partitions, if it knows how (see C<--expand> option above)."
33133 msgstr ""
33134
33135 # type: textblock
33136 #. type: textblock
33137 #: ../tools/virt-resize.pl:489
33138 msgid ""
33139 "If you give the C<--no-expand-content> option then virt-resize will not "
33140 "attempt this."
33141 msgstr ""
33142
33143 # type: =item
33144 #. type: =item
33145 #: ../tools/virt-resize.pl:496
33146 msgid "B<-d> | B<--debug>"
33147 msgstr ""
33148
33149 # type: =item
33150 #. type: =item
33151 #: ../tools/virt-resize.pl:504
33152 msgid "B<-n> | B<--dryrun>"
33153 msgstr ""
33154
33155 # type: textblock
33156 #. type: textblock
33157 #: ../tools/virt-resize.pl:506
33158 msgid "Print a summary of what would be done, but don't do anything."
33159 msgstr ""
33160
33161 # type: =item
33162 #. type: =item
33163 #: ../tools/virt-resize.pl:512
33164 msgid "B<-q> | B<--quiet>"
33165 msgstr ""
33166
33167 # type: textblock
33168 #. type: textblock
33169 #: ../tools/virt-resize.pl:514
33170 msgid "Don't print the summary."
33171 msgstr ""
33172
33173 # type: textblock
33174 #. type: textblock
33175 #: ../tools/virt-resize.pl:522
33176 msgid ""
33177 "Specify the format of the input disk image.  If this flag is not given then "
33178 "it is auto-detected from the image itself."
33179 msgstr ""
33180
33181 # type: textblock
33182 #. type: textblock
33183 #: ../tools/virt-resize.pl:528
33184 msgid ""
33185 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
33186 "AND NON-SPARSE RAW FORMATS>."
33187 msgstr ""
33188
33189 # type: =item
33190 #. type: =item
33191 #: ../tools/virt-resize.pl:535
33192 msgid "B<--output-format> raw"
33193 msgstr ""
33194
33195 # type: textblock
33196 #. type: textblock
33197 #: ../tools/virt-resize.pl:537
33198 msgid ""
33199 "Specify the format of the output disk image.  If this flag is not given then "
33200 "it is auto-detected from the image itself."
33201 msgstr ""
33202
33203 # type: textblock
33204 #. type: textblock
33205 #: ../tools/virt-resize.pl:543
33206 msgid ""
33207 "Note that you still need to create the output disk with the right format.  "
33208 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
33209 msgstr ""
33210
33211 # type: =head1
33212 #. type: =head1
33213 #: ../tools/virt-resize.pl:1419
33214 msgid "NOTES"
33215 msgstr ""
33216
33217 # type: =head2
33218 #. type: =head2
33219 #: ../tools/virt-resize.pl:1421
33220 msgid "\"Partition 1 does not end on cylinder boundary.\""
33221 msgstr ""
33222
33223 # type: textblock
33224 #. type: textblock
33225 #: ../tools/virt-resize.pl:1423
33226 msgid ""
33227 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
33228 "means the partitions will not be aligned to the ancient CHS geometry.  "
33229 "However CHS geometry is meaningless for disks manufactured since the early "
33230 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
33231 "cylinders is not required by any modern operating system."
33232 msgstr ""
33233
33234 # type: =head2
33235 #. type: =head2
33236 #: ../tools/virt-resize.pl:1430
33237 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
33238 msgstr ""
33239
33240 # type: textblock
33241 #. type: textblock
33242 #: ../tools/virt-resize.pl:1432
33243 msgid ""
33244 "In Windows Vista and later versions, Microsoft switched to using a separate "
33245 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
33246 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
33247 "the boot partition.  Doing so seems to break the guest completely.  However "
33248 "expanding the second partition (ie. C: drive) should work."
33249 msgstr ""
33250
33251 # type: textblock
33252 #. type: textblock
33253 #: ../tools/virt-resize.pl:1439
33254 msgid ""
33255 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
33256 "NTFS partitions have been expanded.  This is just a safety check and (unless "
33257 "it find errors) is nothing to worry about."
33258 msgstr ""
33259
33260 # type: =head2
33261 #. type: =head2
33262 #: ../tools/virt-resize.pl:1443
33263 msgid "GUEST BOOT STUCK AT \"GRUB\""
33264 msgstr ""
33265
33266 # type: textblock
33267 #. type: textblock
33268 #: ../tools/virt-resize.pl:1445
33269 msgid ""
33270 "If a Linux guest does not boot after resizing, and the boot is stuck after "
33271 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
33272 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
33273 "although we think is to do with partition alignment."
33274 msgstr ""
33275
33276 # type: verbatim
33277 #. type: verbatim
33278 #: ../tools/virt-resize.pl:1450
33279 #, no-wrap
33280 msgid ""
33281 " guestfish -i -a newdisk\n"
33282 " ><fs> cat /boot/grub/device.map\n"
33283 " # check the contents of this file are sensible or\n"
33284 " # edit the file if necessary\n"
33285 " ><fs> grub-install / /dev/vda\n"
33286 " ><fs> exit\n"
33287 "\n"
33288 msgstr ""
33289
33290 # type: textblock
33291 #. type: textblock
33292 #: ../tools/virt-resize.pl:1457
33293 msgid ""
33294 "For more flexible guest reconfiguration, including if you need to specify "
33295 "other parameters to grub-install, use L<virt-rescue(1)>."
33296 msgstr ""
33297
33298 # type: =head1
33299 #. type: =head1
33300 #: ../tools/virt-resize.pl:1460
33301 msgid "ALTERNATIVE TOOLS"
33302 msgstr ""
33303
33304 # type: textblock
33305 #. type: textblock
33306 #: ../tools/virt-resize.pl:1462
33307 msgid ""
33308 "There are several proprietary tools for resizing partitions.  We won't "
33309 "mention any here."
33310 msgstr ""
33311
33312 # type: textblock
33313 #. type: textblock
33314 #: ../tools/virt-resize.pl:1465
33315 msgid ""
33316 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
33317 "operations on disk images.  They can resize and move partitions, but I don't "
33318 "think they can do anything with the contents, and they certainly don't "
33319 "understand LVM."
33320 msgstr ""
33321
33322 # type: textblock
33323 #. type: textblock
33324 #: ../tools/virt-resize.pl:1470
33325 msgid ""
33326 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
33327 "but at a much lower level.  You will probably end up hand-calculating sector "
33328 "offsets, which is something that virt-resize was designed to avoid.  If you "
33329 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
33330 "C<--debug> flag."
33331 msgstr ""
33332
33333 # type: textblock
33334 #. type: textblock
33335 #: ../tools/virt-resize.pl:1485
33336 msgid ""
33337 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
33338 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
33339 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
33340 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
33341 "libguestfs.org/>."
33342 msgstr ""
33343
33344 # type: textblock
33345 #. type: textblock
33346 #: ../tools/virt-list-filesystems.pl:32
33347 msgid ""
33348 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33349 msgstr ""
33350
33351 # type: verbatim
33352 #. type: verbatim
33353 #: ../tools/virt-list-filesystems.pl:36
33354 #, no-wrap
33355 msgid ""
33356 " virt-list-filesystems [--options] domname\n"
33357 "\n"
33358 msgstr ""
33359
33360 # type: verbatim
33361 #. type: verbatim
33362 #: ../tools/virt-list-filesystems.pl:38
33363 #, no-wrap
33364 msgid ""
33365 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33366 "\n"
33367 msgstr ""
33368
33369 # type: textblock
33370 #. type: textblock
33371 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33372 msgid ""
33373 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33374 "replacement."
33375 msgstr ""
33376
33377 # type: textblock
33378 #. type: textblock
33379 #: ../tools/virt-list-filesystems.pl:45
33380 msgid ""
33381 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33382 "are contained in a virtual machine or disk image."
33383 msgstr ""
33384
33385 # type: textblock
33386 #. type: textblock
33387 #: ../tools/virt-list-filesystems.pl:49
33388 msgid ""
33389 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33390 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33391 "> tool."
33392 msgstr ""
33393
33394 # type: =item
33395 #. type: =item
33396 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33397 msgid "B<-l> | B<--long>"
33398 msgstr ""
33399
33400 # type: textblock
33401 #. type: textblock
33402 #: ../tools/virt-list-filesystems.pl:108
33403 msgid ""
33404 "With this option, C<virt-list-filesystems> displays the type of each "
33405 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33406 msgstr ""
33407
33408 # type: =item
33409 #. type: =item
33410 #: ../tools/virt-list-filesystems.pl:115
33411 msgid "B<-a> | B<--all>"
33412 msgstr ""
33413
33414 # type: textblock
33415 #. type: textblock
33416 #: ../tools/virt-list-filesystems.pl:117
33417 msgid ""
33418 "Normally we only show mountable filesystems.  If this option is given then "
33419 "swap devices are shown too."
33420 msgstr ""
33421
33422 # type: textblock
33423 #. type: textblock
33424 #: ../tools/virt-list-filesystems.pl:191
33425 msgid ""
33426 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33427 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33428 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33429 msgstr ""
33430
33431 # type: textblock
33432 #. type: textblock
33433 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:298
33434 msgid "Copyright (C) 2009 Red Hat Inc."
33435 msgstr ""
33436
33437 # type: textblock
33438 #. type: textblock
33439 #: ../tools/virt-tar.pl:33
33440 msgid "virt-tar - Extract or upload files to a virtual machine"
33441 msgstr ""
33442
33443 # type: verbatim
33444 #. type: verbatim
33445 #: ../tools/virt-tar.pl:37
33446 #, no-wrap
33447 msgid ""
33448 " virt-tar [--options] -x domname directory tarball\n"
33449 "\n"
33450 msgstr ""
33451
33452 # type: verbatim
33453 #. type: verbatim
33454 #: ../tools/virt-tar.pl:39
33455 #, no-wrap
33456 msgid ""
33457 " virt-tar [--options] -u domname tarball directory\n"
33458 "\n"
33459 msgstr ""
33460
33461 # type: verbatim
33462 #. type: verbatim
33463 #: ../tools/virt-tar.pl:41
33464 #, no-wrap
33465 msgid ""
33466 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33467 "\n"
33468 msgstr ""
33469
33470 # type: verbatim
33471 #. type: verbatim
33472 #: ../tools/virt-tar.pl:43
33473 #, no-wrap
33474 msgid ""
33475 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33476 "\n"
33477 msgstr ""
33478
33479 # type: textblock
33480 #. type: textblock
33481 #: ../tools/virt-tar.pl:47
33482 msgid "Download C</home> from the VM into a local tarball:"
33483 msgstr ""
33484
33485 # type: verbatim
33486 #. type: verbatim
33487 #: ../tools/virt-tar.pl:49
33488 #, no-wrap
33489 msgid ""
33490 " virt-tar -x domname /home home.tar\n"
33491 "\n"
33492 msgstr ""
33493
33494 # type: verbatim
33495 #. type: verbatim
33496 #: ../tools/virt-tar.pl:51
33497 #, no-wrap
33498 msgid ""
33499 " virt-tar -zx domname /home home.tar.gz\n"
33500 "\n"
33501 msgstr ""
33502
33503 # type: textblock
33504 #. type: textblock
33505 #: ../tools/virt-tar.pl:53
33506 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33507 msgstr ""
33508
33509 # type: verbatim
33510 #. type: verbatim
33511 #: ../tools/virt-tar.pl:55
33512 #, no-wrap
33513 msgid ""
33514 " virt-tar -u domname uploadstuff.tar /tmp\n"
33515 "\n"
33516 msgstr ""
33517
33518 # type: verbatim
33519 #. type: verbatim
33520 #: ../tools/virt-tar.pl:57
33521 #, no-wrap
33522 msgid ""
33523 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33524 "\n"
33525 msgstr ""
33526
33527 # type: textblock
33528 #. type: textblock
33529 #: ../tools/virt-tar.pl:61
33530 msgid ""
33531 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33532 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33533 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33534 msgstr ""
33535
33536 # type: textblock
33537 #. type: textblock
33538 #: ../tools/virt-tar.pl:66
33539 msgid ""
33540 "You can use C<-x> (extract) on live virtual machines, but you might get "
33541 "inconsistent results or errors if there is filesystem activity inside the "
33542 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33543 "work, but the only way to guarantee consistent results is if the virtual "
33544 "machine is shut down."
33545 msgstr ""
33546
33547 # type: textblock
33548 #. type: textblock
33549 #: ../tools/virt-tar.pl:74
33550 msgid ""
33551 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33552 "parts of a guest filesystem.  There are many possibilities: making backups, "
33553 "uploading data files, snooping on guest activity, fixing or customizing "
33554 "guests, etc."
33555 msgstr ""
33556
33557 # type: textblock
33558 #. type: textblock
33559 #: ../tools/virt-tar.pl:79
33560 msgid ""
33561 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33562 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33563 "should look at the L<guestfish(1)> tool."
33564 msgstr ""
33565
33566 # type: textblock
33567 #. type: textblock
33568 #: ../tools/virt-tar.pl:83
33569 msgid ""
33570 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33571 "its contents (recursively) from the virtual machine into a local tarball.  "
33572 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33573 "virtual machine.  You cannot use these two options together."
33574 msgstr ""
33575
33576 # type: textblock
33577 #. type: textblock
33578 #: ../tools/virt-tar.pl:89
33579 msgid ""
33580 "In addition, you may need to use the C<-z> (gZip) option to enable "
33581 "compression.  When uploading, you have to specify C<-z> if the upload file "
33582 "is compressed because virt-tar won't detect this on its own."
33583 msgstr ""
33584
33585 # type: textblock
33586 #. type: textblock
33587 #: ../tools/virt-tar.pl:93
33588 msgid ""
33589 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33590 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33591 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33592 "the L<libguestfs(3)> API)."
33593 msgstr ""
33594
33595 # type: =item
33596 #. type: =item
33597 #: ../tools/virt-tar.pl:151
33598 msgid "B<-x> | B<--extract> | B<--download>"
33599 msgstr ""
33600
33601 # type: =item
33602 #. type: =item
33603 #: ../tools/virt-tar.pl:153
33604 msgid "B<-u> | B<--upload>"
33605 msgstr ""
33606
33607 # type: textblock
33608 #. type: textblock
33609 #: ../tools/virt-tar.pl:155
33610 msgid ""
33611 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33612 "local tarball."
33613 msgstr ""
33614
33615 # type: textblock
33616 #. type: textblock
33617 #: ../tools/virt-tar.pl:158
33618 msgid ""
33619 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
33620 "Please read the L</WARNING> section above before using this option."
33621 msgstr ""
33622
33623 # type: textblock
33624 #. type: textblock
33625 #: ../tools/virt-tar.pl:162
33626 msgid "You must specify exactly one of these options."
33627 msgstr ""
33628
33629 # type: =item
33630 #. type: =item
33631 #: ../tools/virt-tar.pl:168
33632 msgid "B<-z> | B<--gzip>"
33633 msgstr ""
33634
33635 # type: textblock
33636 #. type: textblock
33637 #: ../tools/virt-tar.pl:170
33638 msgid "Specify that the input or output tarball is gzip-compressed."
33639 msgstr ""
33640
33641 # type: textblock
33642 #. type: textblock
33643 #: ../tools/virt-tar.pl:283
33644 msgid ""
33645 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<Sys::"
33646 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33647 "org/>."
33648 msgstr ""
33649
33650 # type: textblock
33651 #. type: textblock
33652 #: ../tools/virt-make-fs.pl:37
33653 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33654 msgstr ""
33655
33656 # type: verbatim
33657 #. type: verbatim
33658 #: ../tools/virt-make-fs.pl:41
33659 #, no-wrap
33660 msgid ""
33661 " virt-make-fs [--options] input.tar output.img\n"
33662 "\n"
33663 msgstr ""
33664
33665 # type: verbatim
33666 #. type: verbatim
33667 #: ../tools/virt-make-fs.pl:43
33668 #, no-wrap
33669 msgid ""
33670 " virt-make-fs [--options] input.tar.gz output.img\n"
33671 "\n"
33672 msgstr ""
33673
33674 # type: verbatim
33675 #. type: verbatim
33676 #: ../tools/virt-make-fs.pl:45
33677 #, no-wrap
33678 msgid ""
33679 " virt-make-fs [--options] directory output.img\n"
33680 "\n"
33681 msgstr ""
33682
33683 # type: textblock
33684 #. type: textblock
33685 #: ../tools/virt-make-fs.pl:49
33686 msgid ""
33687 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
33688 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
33689 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
33690 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
33691 "you want to attach these filesystems to existing virtual machines (eg. to "
33692 "import large amounts of read-only data to a VM)."
33693 msgstr ""
33694
33695 # type: textblock
33696 #. type: textblock
33697 #: ../tools/virt-make-fs.pl:57
33698 msgid "Basic usage is:"
33699 msgstr ""
33700
33701 # type: verbatim
33702 #. type: verbatim
33703 #: ../tools/virt-make-fs.pl:59
33704 #, no-wrap
33705 msgid ""
33706 " virt-make-fs input output\n"
33707 "\n"
33708 msgstr ""
33709
33710 # type: textblock
33711 #. type: textblock
33712 #: ../tools/virt-make-fs.pl:61
33713 msgid ""
33714 "where C<input> is either a directory containing files that you want to add, "
33715 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
33716 "C<output> is a disk image.  The input type is detected automatically.  The "
33717 "output disk image defaults to a raw ext2 image unless you specify extra "
33718 "flags (see L</OPTIONS> below)."
33719 msgstr ""
33720
33721 # type: =head2
33722 #. type: =head2
33723 #: ../tools/virt-make-fs.pl:67
33724 msgid "EXTRA SPACE"
33725 msgstr ""
33726
33727 # type: textblock
33728 #. type: textblock
33729 #: ../tools/virt-make-fs.pl:69
33730 msgid ""
33731 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
33732 "the files that it contains, but might have extra space.  Depending on how "
33733 "you are going to use the output, you might think this extra space is wasted "
33734 "and want to minimize it, or you might want to leave space so that more files "
33735 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
33736 "but you can use the C<--size> flag to leave space in the filesystem if you "
33737 "want it."
33738 msgstr ""
33739
33740 # type: textblock
33741 #. type: textblock
33742 #: ../tools/virt-make-fs.pl:77
33743 msgid ""
33744 "An alternative way to leave extra space but not make the output image any "
33745 "bigger is to use an alternative disk image format (instead of the default "
33746 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
33747 "image format (check your hypervisor supports this before using it).  This "
33748 "allows you to choose a large C<--size> but the extra space won't actually be "
33749 "allocated in the image until you try to store something in it."
33750 msgstr ""
33751
33752 # type: textblock
33753 #. type: textblock
33754 #: ../tools/virt-make-fs.pl:85
33755 msgid ""
33756 "Don't forget that you can also use local commands including L<resize2fs(8)> "
33757 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
33758 "resize to build another image from scratch."
33759 msgstr ""
33760
33761 # type: =head3
33762 #. type: =head3
33763 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
33764 #: ../tools/virt-make-fs.pl:142
33765 msgid "EXAMPLE"
33766 msgstr ""
33767
33768 # type: verbatim
33769 #. type: verbatim
33770 #: ../tools/virt-make-fs.pl:91
33771 #, no-wrap
33772 msgid ""
33773 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
33774 "\n"
33775 msgstr ""
33776
33777 # type: =head2
33778 #. type: =head2
33779 #: ../tools/virt-make-fs.pl:93
33780 msgid "FILESYSTEM TYPE"
33781 msgstr ""
33782
33783 # type: textblock
33784 #. type: textblock
33785 #: ../tools/virt-make-fs.pl:95
33786 msgid ""
33787 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
33788 "libguestfs supports can be used (but I<not> read-only formats like "
33789 "ISO9660).  Here are some of the more common choices:"
33790 msgstr ""
33791
33792 # type: =item
33793 #. type: =item
33794 #: ../tools/virt-make-fs.pl:101
33795 msgid "I<ext3>"
33796 msgstr ""
33797
33798 # type: textblock
33799 #. type: textblock
33800 #: ../tools/virt-make-fs.pl:103
33801 msgid ""
33802 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
33803 "you are not going to use the filesystem in a way that requires the journal, "
33804 "then this is just wasted overhead."
33805 msgstr ""
33806
33807 # type: =item
33808 #. type: =item
33809 #: ../tools/virt-make-fs.pl:107
33810 msgid "I<ntfs> or I<vfat>"
33811 msgstr ""
33812
33813 # type: textblock
33814 #. type: textblock
33815 #: ../tools/virt-make-fs.pl:109
33816 msgid "Useful if exporting data to a Windows guest."
33817 msgstr ""
33818
33819 # type: textblock
33820 #. type: textblock
33821 #: ../tools/virt-make-fs.pl:111
33822 msgid ""
33823 "I<Note for vfat>: The tar archive or local directory must only contain files "
33824 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
33825 "program running within libguestfs is unable to change the ownership of non-"
33826 "root files, since vfat itself does not support this."
33827 msgstr ""
33828
33829 # type: =item
33830 #. type: =item
33831 #: ../tools/virt-make-fs.pl:116
33832 msgid "I<minix>"
33833 msgstr ""
33834
33835 # type: textblock
33836 #. type: textblock
33837 #: ../tools/virt-make-fs.pl:118
33838 msgid ""
33839 "Lower overhead than C<ext2>, but certain limitations on filename length and "
33840 "total filesystem size."
33841 msgstr ""
33842
33843 # type: verbatim
33844 #. type: verbatim
33845 #: ../tools/virt-make-fs.pl:125
33846 #, no-wrap
33847 msgid ""
33848 " virt-make-fs --type=minix input minixfs.img\n"
33849 "\n"
33850 msgstr ""
33851
33852 # type: =head2
33853 #. type: =head2
33854 #: ../tools/virt-make-fs.pl:127
33855 msgid "TO PARTITION OR NOT TO PARTITION"
33856 msgstr ""
33857
33858 # type: textblock
33859 #. type: textblock
33860 #: ../tools/virt-make-fs.pl:129
33861 msgid "Optionally virt-make-fs can add a partition table to the output disk."
33862 msgstr ""
33863
33864 # type: textblock
33865 #. type: textblock
33866 #: ../tools/virt-make-fs.pl:131
33867 msgid ""
33868 "Adding a partition can make the disk image more compatible with certain "
33869 "virtualized operating systems which don't expect to see a filesystem "
33870 "directly located on a block device (Linux doesn't care and will happily "
33871 "handle both types)."
33872 msgstr ""
33873
33874 # type: textblock
33875 #. type: textblock
33876 #: ../tools/virt-make-fs.pl:136
33877 msgid ""
33878 "On the other hand, if you have a partition table then the output image is no "
33879 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
33880 "directly on a partitioned disk image.  (However libguestfs tools such as "
33881 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
33882 msgstr ""
33883
33884 # type: textblock
33885 #. type: textblock
33886 #: ../tools/virt-make-fs.pl:144
33887 msgid "Add an MBR partition:"
33888 msgstr ""
33889
33890 # type: verbatim
33891 #. type: verbatim
33892 #: ../tools/virt-make-fs.pl:146
33893 #, no-wrap
33894 msgid ""
33895 " virt-make-fs --partition -- input disk.img\n"
33896 "\n"
33897 msgstr ""
33898
33899 # type: textblock
33900 #. type: textblock
33901 #: ../tools/virt-make-fs.pl:148
33902 msgid ""
33903 "If the output disk image could be terabyte-sized or larger, it's better to "
33904 "use an EFI/GPT-compatible partition table:"
33905 msgstr ""
33906
33907 # type: verbatim
33908 #. type: verbatim
33909 #: ../tools/virt-make-fs.pl:151
33910 #, no-wrap
33911 msgid ""
33912 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
33913 "\n"
33914 msgstr ""
33915
33916 # type: textblock
33917 #. type: textblock
33918 #: ../tools/virt-make-fs.pl:179
33919 msgid "Enable debugging information."
33920 msgstr ""
33921
33922 # type: =item
33923 #. type: =item
33924 #: ../tools/virt-make-fs.pl:185
33925 msgid "B<--size=E<lt>NE<gt>>"
33926 msgstr ""
33927
33928 # type: =item
33929 #. type: =item
33930 #: ../tools/virt-make-fs.pl:187
33931 msgid "B<--size=+E<lt>NE<gt>>"
33932 msgstr ""
33933
33934 # type: =item
33935 #. type: =item
33936 #: ../tools/virt-make-fs.pl:189
33937 msgid "B<-s E<lt>NE<gt>>"
33938 msgstr ""
33939
33940 # type: =item
33941 #. type: =item
33942 #: ../tools/virt-make-fs.pl:191
33943 msgid "B<-s +E<lt>NE<gt>>"
33944 msgstr ""
33945
33946 # type: textblock
33947 #. type: textblock
33948 #: ../tools/virt-make-fs.pl:193
33949 msgid ""
33950 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
33951 msgstr ""
33952
33953 # type: textblock
33954 #. type: textblock
33955 #: ../tools/virt-make-fs.pl:196
33956 msgid ""
33957 "If this option is I<not> given, then the output image will be just large "
33958 "enough to contain all the files, with not much wasted space."
33959 msgstr ""
33960
33961 # type: textblock
33962 #. type: textblock
33963 #: ../tools/virt-make-fs.pl:199
33964 msgid ""
33965 "To choose a fixed size output disk, specify an absolute number followed by b/"
33966 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33967 "Petabytes or Exabytes.  This must be large enough to contain all the input "
33968 "files, else you will get an error."
33969 msgstr ""
33970
33971 # type: textblock
33972 #. type: textblock
33973 #: ../tools/virt-make-fs.pl:204
33974 msgid ""
33975 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
33976 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33977 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
33978 "the input files, and (approximately) an extra 200 MB free space."
33979 msgstr ""
33980
33981 # type: textblock
33982 #. type: textblock
33983 #: ../tools/virt-make-fs.pl:210
33984 msgid ""
33985 "Note that virt-make-fs estimates free space, and therefore will not produce "
33986 "filesystems containing precisely the free space requested.  (It is much more "
33987 "expensive and time-consuming to produce a filesystem which has precisely the "
33988 "desired free space)."
33989 msgstr ""
33990
33991 # type: =item
33992 #. type: =item
33993 #: ../tools/virt-make-fs.pl:219
33994 msgid "B<--format=E<lt>fmtE<gt>>"
33995 msgstr ""
33996
33997 # type: =item
33998 #. type: =item
33999 #: ../tools/virt-make-fs.pl:221
34000 msgid "B<-F E<lt>fmtE<gt>>"
34001 msgstr ""
34002
34003 # type: textblock
34004 #. type: textblock
34005 #: ../tools/virt-make-fs.pl:223
34006 msgid "Choose the output disk image format."
34007 msgstr ""
34008
34009 # type: textblock
34010 #. type: textblock
34011 #: ../tools/virt-make-fs.pl:225
34012 msgid "The default is C<raw> (raw disk image)."
34013 msgstr ""
34014
34015 # type: textblock
34016 #. type: textblock
34017 #: ../tools/virt-make-fs.pl:227
34018 msgid ""
34019 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34020 "that would really make sense here is C<qcow2>."
34021 msgstr ""
34022
34023 # type: =item
34024 #. type: =item
34025 #: ../tools/virt-make-fs.pl:234
34026 msgid "B<--type=E<lt>fsE<gt>>"
34027 msgstr ""
34028
34029 # type: =item
34030 #. type: =item
34031 #: ../tools/virt-make-fs.pl:236
34032 msgid "B<-t E<lt>fsE<gt>>"
34033 msgstr ""
34034
34035 # type: textblock
34036 #. type: textblock
34037 #: ../tools/virt-make-fs.pl:238
34038 msgid "Choose the output filesystem type."
34039 msgstr ""
34040
34041 # type: textblock
34042 #. type: textblock
34043 #: ../tools/virt-make-fs.pl:240
34044 msgid "The default is C<ext2>."
34045 msgstr ""
34046
34047 # type: textblock
34048 #. type: textblock
34049 #: ../tools/virt-make-fs.pl:242
34050 msgid ""
34051 "Any filesystem which is supported read-write by libguestfs can be used here."
34052 msgstr ""
34053
34054 # type: =item
34055 #. type: =item
34056 #: ../tools/virt-make-fs.pl:249
34057 msgid "B<--partition>"
34058 msgstr ""
34059
34060 # type: =item
34061 #. type: =item
34062 #: ../tools/virt-make-fs.pl:251
34063 msgid "B<--partition=E<lt>parttypeE<gt>>"
34064 msgstr ""
34065
34066 # type: textblock
34067 #. type: textblock
34068 #: ../tools/virt-make-fs.pl:253
34069 msgid ""
34070 "If specified, this flag adds an MBR partition table to the output disk image."
34071 msgstr ""
34072
34073 # type: textblock
34074 #. type: textblock
34075 #: ../tools/virt-make-fs.pl:256
34076 msgid ""
34077 "You can change the partition table type, eg. C<--partition=gpt> for large "
34078 "disks."
34079 msgstr ""
34080
34081 # type: textblock
34082 #. type: textblock
34083 #: ../tools/virt-make-fs.pl:259
34084 msgid ""
34085 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34086 "might consider the next parameter to be the partition type.  For example:"
34087 msgstr ""
34088
34089 # type: verbatim
34090 #. type: verbatim
34091 #: ../tools/virt-make-fs.pl:263
34092 #, no-wrap
34093 msgid ""
34094 " virt-make-fs --partition input.tar ...\n"
34095 "\n"
34096 msgstr ""
34097
34098 # type: textblock
34099 #. type: textblock
34100 #: ../tools/virt-make-fs.pl:265
34101 msgid ""
34102 "would cause virt-make-fs to think you wanted to use a partition type of "
34103 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34104 "dash) between options and the input file argument:"
34105 msgstr ""
34106
34107 # type: verbatim
34108 #. type: verbatim
34109 #: ../tools/virt-make-fs.pl:269
34110 #, no-wrap
34111 msgid ""
34112 " virt-make-fs --partition -- input.tar ...\n"
34113 "\n"
34114 msgstr ""
34115
34116 # type: textblock
34117 #. type: textblock
34118 #: ../tools/virt-make-fs.pl:536
34119 msgid ""
34120 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<mkisofs(1)>, "
34121 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34122 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34123 msgstr ""
34124
34125 # type: verbatim
34126 #. type: verbatim
34127 #: ../tools/virt-make-fs.pl:553
34128 #, no-wrap
34129 msgid ""
34130 " export LIBGUESTFS_DEBUG=1\n"
34131 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34132 "\n"
34133 msgstr ""
34134
34135 # type: textblock
34136 #. type: textblock
34137 #: ../tools/virt-make-fs.pl:556
34138 msgid ""
34139 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34140 "redhat.com/>"
34141 msgstr ""
34142
34143 # type: textblock
34144 #. type: textblock
34145 #: ../tools/virt-list-partitions.pl:32
34146 msgid ""
34147 "virt-list-partitions - List partitions in a virtual machine or disk image"
34148 msgstr ""
34149
34150 # type: verbatim
34151 #. type: verbatim
34152 #: ../tools/virt-list-partitions.pl:36
34153 #, no-wrap
34154 msgid ""
34155 " virt-list-partitions [--options] domname\n"
34156 "\n"
34157 msgstr ""
34158
34159 # type: verbatim
34160 #. type: verbatim
34161 #: ../tools/virt-list-partitions.pl:38
34162 #, no-wrap
34163 msgid ""
34164 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34165 "\n"
34166 msgstr ""
34167
34168 # type: textblock
34169 #. type: textblock
34170 #: ../tools/virt-list-partitions.pl:45
34171 msgid ""
34172 "C<virt-list-partitions> is a command line tool to list the partitions that "
34173 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34174 "first step to using L<virt-resize(1)>."
34175 msgstr ""
34176
34177 # type: textblock
34178 #. type: textblock
34179 #: ../tools/virt-list-partitions.pl:50
34180 msgid ""
34181 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34182 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34183 "> tool."
34184 msgstr ""
34185
34186 # type: =item
34187 #. type: =item
34188 #: ../tools/virt-list-partitions.pl:107
34189 msgid "B<-h> | B<--human-readable>"
34190 msgstr ""
34191
34192 # type: textblock
34193 #. type: textblock
34194 #: ../tools/virt-list-partitions.pl:109
34195 msgid "Show sizes in human-readable form (eg. \"1G\")."
34196 msgstr ""
34197
34198 # type: textblock
34199 #. type: textblock
34200 #: ../tools/virt-list-partitions.pl:117
34201 msgid ""
34202 "With this option, C<virt-list-partitions> displays the type and size of each "
34203 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34204 msgstr ""
34205
34206 # type: =item
34207 #. type: =item
34208 #: ../tools/virt-list-partitions.pl:124
34209 msgid "B<-t> | B<--total>"
34210 msgstr ""
34211
34212 # type: textblock
34213 #. type: textblock
34214 #: ../tools/virt-list-partitions.pl:126
34215 msgid ""
34216 "Display the total size of each block device (as a separate row or rows)."
34217 msgstr ""
34218
34219 # type: textblock
34220 #. type: textblock
34221 #: ../tools/virt-list-partitions.pl:259
34222 msgid ""
34223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34226 msgstr ""