dcf36c5aa276e471994f60b91a29422d707c921a
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-01-11 21:54+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
24 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "名前"
29
30 # type: textblock
31 #. type: textblock
32 #: ../src/guestfs.pod:5
33 msgid "guestfs - Library for accessing and modifying virtual machine images"
34 msgstr ""
35
36 # type: =head1
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
41 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
42 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
43 #: ../tools/virt-list-partitions.pl:34
44 msgid "SYNOPSIS"
45 msgstr ""
46
47 # type: verbatim
48 #. type: verbatim
49 #: ../src/guestfs.pod:9
50 #, no-wrap
51 msgid ""
52 " #include <guestfs.h>\n"
53 " \n"
54 msgstr ""
55
56 # type: verbatim
57 #. type: verbatim
58 #: ../src/guestfs.pod:11
59 #, no-wrap
60 msgid ""
61 " guestfs_h *g = guestfs_create ();\n"
62 " guestfs_add_drive (g, \"guest.img\");\n"
63 " guestfs_launch (g);\n"
64 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
65 " guestfs_touch (g, \"/hello\");\n"
66 " guestfs_umount (g, \"/\");\n"
67 " guestfs_close (g);\n"
68 "\n"
69 msgstr ""
70
71 # type: verbatim
72 #. type: verbatim
73 #: ../src/guestfs.pod:19
74 #, no-wrap
75 msgid ""
76 " cc prog.c -o prog -lguestfs\n"
77 "or:\n"
78 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
79 "\n"
80 msgstr ""
81
82 # type: =head1
83 #. type: =head1
84 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
85 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
86 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
87 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
88 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
89 #: ../tools/virt-list-partitions.pl:40
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 # type: textblock
94 #. type: textblock
95 #: ../src/guestfs.pod:25
96 msgid ""
97 "Libguestfs is a library for accessing and modifying guest disk images.  "
98 "Amongst the things this is good for: making batch configuration changes to "
99 "guests, getting disk used/free statistics (see also: virt-df), migrating "
100 "between virtualization systems (see also: virt-p2v), performing partial "
101 "backups, performing partial guest clones, cloning guests and changing "
102 "registry/UUID/hostname info, and much else besides."
103 msgstr ""
104
105 # type: textblock
106 #. type: textblock
107 #: ../src/guestfs.pod:33
108 msgid ""
109 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
110 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
111 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
112 "qcow2, vmdk."
113 msgstr ""
114
115 # type: textblock
116 #. type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #. type: textblock
126 #: ../src/guestfs.pod:43
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #. type: textblock
136 #: ../src/guestfs.pod:48
137 msgid ""
138 "You don't need to be root to use libguestfs, although obviously you do need "
139 "enough permissions to access the disk images."
140 msgstr ""
141
142 # type: textblock
143 #. type: textblock
144 #: ../src/guestfs.pod:51
145 msgid ""
146 "Libguestfs is a large API because it can do many things.  For a gentle "
147 "introduction, please read the L</API OVERVIEW> section next."
148 msgstr ""
149
150 # type: textblock
151 #. type: textblock
152 #: ../src/guestfs.pod:54
153 msgid ""
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
155 "page."
156 msgstr ""
157
158 # type: =head1
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr ""
163
164 # type: textblock
165 #. type: textblock
166 #: ../src/guestfs.pod:59
167 msgid ""
168 "This section provides a gentler overview of the libguestfs API.  We also try "
169 "to group API calls together, where that may not be obvious from reading "
170 "about the individual calls in the main section of this manual."
171 msgstr ""
172
173 # type: =head2
174 #. type: =head2
175 #: ../src/guestfs.pod:64
176 msgid "HANDLES"
177 msgstr ""
178
179 # type: textblock
180 #. type: textblock
181 #: ../src/guestfs.pod:66
182 msgid ""
183 "Before you can use libguestfs calls, you have to create a handle.  Then you "
184 "must add at least one disk image to the handle, followed by launching the "
185 "handle, then performing whatever operations you want, and finally closing "
186 "the handle.  By convention we use the single letter C<g> for the name of the "
187 "handle variable, although of course you can use any name you want."
188 msgstr ""
189
190 # type: textblock
191 #. type: textblock
192 #: ../src/guestfs.pod:73
193 msgid "The general structure of all libguestfs-using programs looks like this:"
194 msgstr ""
195
196 # type: verbatim
197 #. type: verbatim
198 #: ../src/guestfs.pod:76
199 #, no-wrap
200 msgid ""
201 " guestfs_h *g = guestfs_create ();\n"
202 " \n"
203 msgstr ""
204
205 # type: verbatim
206 #. type: verbatim
207 #: ../src/guestfs.pod:78
208 #, no-wrap
209 msgid ""
210 " /* Call guestfs_add_drive additional times if there are\n"
211 "  * multiple disk images.\n"
212 "  */\n"
213 " guestfs_add_drive (g, \"guest.img\");\n"
214 " \n"
215 msgstr ""
216
217 # type: verbatim
218 #. type: verbatim
219 #: ../src/guestfs.pod:83
220 #, no-wrap
221 msgid ""
222 " /* Most manipulation calls won't work until you've launched\n"
223 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
224 "  * and _before_ other commands.\n"
225 "  */\n"
226 " guestfs_launch (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #. type: verbatim
232 #: ../src/guestfs.pod:89
233 #, no-wrap
234 msgid ""
235 " /* Now you can examine what partitions, LVs etc are available.\n"
236 "  */\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
239 " \n"
240 msgstr ""
241
242 # type: verbatim
243 #. type: verbatim
244 #: ../src/guestfs.pod:94
245 #, no-wrap
246 msgid ""
247 " /* To access a filesystem in the image, you must mount it.\n"
248 "  */\n"
249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
250 " \n"
251 msgstr ""
252
253 # type: verbatim
254 #. type: verbatim
255 #: ../src/guestfs.pod:98
256 #, no-wrap
257 msgid ""
258 " /* Now you can perform filesystem actions on the guest\n"
259 "  * disk image.\n"
260 "  */\n"
261 " guestfs_touch (g, \"/hello\");\n"
262 "\n"
263 msgstr ""
264
265 # type: verbatim
266 #. type: verbatim
267 #: ../src/guestfs.pod:103
268 #, no-wrap
269 msgid ""
270 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
271 "  * it is done automatically when you close the handle.  See\n"
272 "  * discussion of autosync in this page.\n"
273 "  */\n"
274 " guestfs_sync (g);\n"
275 " \n"
276 msgstr ""
277
278 # type: verbatim
279 #. type: verbatim
280 #: ../src/guestfs.pod:109
281 #, no-wrap
282 msgid ""
283 " /* Close the handle 'g'. */\n"
284 " guestfs_close (g);\n"
285 "\n"
286 msgstr ""
287
288 # type: textblock
289 #. type: textblock
290 #: ../src/guestfs.pod:112
291 msgid ""
292 "The code above doesn't include any error checking.  In real code you should "
293 "check return values carefully for errors.  In general all functions that "
294 "return integers return C<-1> on error, and all functions that return "
295 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
296 "how to handle errors, and consult the documentation for each function call "
297 "below to see precisely how they return error indications.  See L<guestfs-"
298 "examples(3)> for fully worked examples."
299 msgstr ""
300
301 # type: =head2
302 #. type: =head2
303 #: ../src/guestfs.pod:121
304 msgid "DISK IMAGES"
305 msgstr ""
306
307 # type: textblock
308 #. type: textblock
309 #: ../src/guestfs.pod:123
310 msgid ""
311 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
312 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
313 "actual block device, or simply an empty file of zeroes that you have created "
314 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
315 "of these."
316 msgstr ""
317
318 # type: textblock
319 #. type: textblock
320 #: ../src/guestfs.pod:129
321 msgid ""
322 "The call you should use in modern code for adding drives is L</"
323 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
324 "specifying that the format is raw, do:"
325 msgstr ""
326
327 # type: verbatim
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 # type: textblock
339 #. type: textblock
340 #: ../src/guestfs.pod:137
341 msgid "You can add a disk read-only using:"
342 msgstr ""
343
344 # type: verbatim
345 #. type: verbatim
346 #: ../src/guestfs.pod:139
347 #, no-wrap
348 msgid ""
349 " guestfs_add_drive_opts (g, filename,\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
351 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
352 "                         -1);\n"
353 "\n"
354 msgstr ""
355
356 # type: textblock
357 #. type: textblock
358 #: ../src/guestfs.pod:144
359 msgid ""
360 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
361 "libguestfs won't modify the file."
362 msgstr ""
363
364 # type: textblock
365 #. type: textblock
366 #: ../src/guestfs.pod:147
367 msgid ""
368 "Be extremely cautious if the disk image is in use, eg. if it is being used "
369 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
370 "corruption, but adding it read-only is safe."
371 msgstr ""
372
373 # type: textblock
374 #. type: textblock
375 #: ../src/guestfs.pod:151
376 msgid ""
377 "You must add at least one disk image, and you may add multiple disk images.  "
378 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
379 "first one you added), C</dev/sdb> (for the second one you added), etc."
380 msgstr ""
381
382 # type: textblock
383 #. type: textblock
384 #: ../src/guestfs.pod:156
385 msgid ""
386 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
387 "can call L</guestfs_list_devices> to get a list of the device names, in the "
388 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
389 msgstr ""
390
391 # type: =head2
392 #. type: =head2
393 #: ../src/guestfs.pod:161
394 msgid "MOUNTING"
395 msgstr ""
396
397 #. type: textblock
398 #: ../src/guestfs.pod:163
399 msgid ""
400 "Before you can read or write files, create directories and so on in a disk "
401 "image that contains filesystems, you have to mount those filesystems using "
402 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
403 "a disk image contains (for example) one partition with a filesystem on that "
404 "partition, then you can mount it directly:"
405 msgstr ""
406
407 #. type: verbatim
408 #: ../src/guestfs.pod:170
409 #, no-wrap
410 msgid ""
411 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
412 "\n"
413 msgstr ""
414
415 #. type: textblock
416 #: ../src/guestfs.pod:172
417 msgid ""
418 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
419 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
420 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
421 "that these are libguestfs virtual devices, and are nothing to do with host "
422 "devices."
423 msgstr ""
424
425 #. type: textblock
426 #: ../src/guestfs.pod:178
427 msgid ""
428 "If you are given a disk image and you don't know what it contains then you "
429 "have to find out.  Libguestfs can do that too: use L</"
430 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
431 "LVs, and either try mounting each to see what is mountable, or else examine "
432 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
433 "filesystems, use L</guestfs_list_filesystems>."
434 msgstr ""
435
436 #. type: textblock
437 #: ../src/guestfs.pod:186
438 msgid ""
439 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
440 "L</INSPECTION> below).  But you might find it easier to look at higher level "
441 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
442 msgstr ""
443
444 #. type: textblock
445 #: ../src/guestfs.pod:191
446 msgid ""
447 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
448 "several other variations of the C<guestfs_mount_*> call."
449 msgstr ""
450
451 # type: =head2
452 #. type: =head2
453 #: ../src/guestfs.pod:194
454 msgid "FILESYSTEM ACCESS AND MODIFICATION"
455 msgstr ""
456
457 # type: textblock
458 #. type: textblock
459 #: ../src/guestfs.pod:196
460 msgid ""
461 "The majority of the libguestfs API consists of fairly low-level calls for "
462 "accessing and modifying the files, directories, symlinks etc on mounted "
463 "filesystems.  There are over a hundred such calls which you can find listed "
464 "in detail below in this man page, and we don't even pretend to cover them "
465 "all in this overview."
466 msgstr ""
467
468 # type: textblock
469 #. type: textblock
470 #: ../src/guestfs.pod:202
471 msgid ""
472 "Specify filenames as full paths, starting with C<\"/\"> and including the "
473 "mount point."
474 msgstr ""
475
476 # type: textblock
477 #. type: textblock
478 #: ../src/guestfs.pod:205
479 msgid ""
480 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
481 "the file called C<\"etc/passwd\"> then you could do:"
482 msgstr ""
483
484 # type: verbatim
485 #. type: verbatim
486 #: ../src/guestfs.pod:208
487 #, no-wrap
488 msgid ""
489 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
490 "\n"
491 msgstr ""
492
493 # type: textblock
494 #. type: textblock
495 #: ../src/guestfs.pod:210
496 msgid ""
497 "This would return C<data> as a newly allocated buffer containing the full "
498 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
499 "or C<NULL> if there was an error."
500 msgstr ""
501
502 # type: textblock
503 #. type: textblock
504 #: ../src/guestfs.pod:214
505 msgid ""
506 "As another example, to create a top-level directory on that filesystem "
507 "called C<\"var\"> you would do:"
508 msgstr ""
509
510 # type: verbatim
511 #. type: verbatim
512 #: ../src/guestfs.pod:217
513 #, no-wrap
514 msgid ""
515 " guestfs_mkdir (g, \"/var\");\n"
516 "\n"
517 msgstr ""
518
519 # type: textblock
520 #. type: textblock
521 #: ../src/guestfs.pod:219
522 msgid "To create a symlink you could do:"
523 msgstr ""
524
525 # type: verbatim
526 #. type: verbatim
527 #: ../src/guestfs.pod:221
528 #, no-wrap
529 msgid ""
530 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
531 "               \"/etc/rc3.d/S30portmap\");\n"
532 "\n"
533 msgstr ""
534
535 # type: textblock
536 #. type: textblock
537 #: ../src/guestfs.pod:224
538 msgid ""
539 "Libguestfs will reject attempts to use relative paths and there is no "
540 "concept of a current working directory."
541 msgstr ""
542
543 # type: textblock
544 #. type: textblock
545 #: ../src/guestfs.pod:227
546 msgid ""
547 "Libguestfs can return errors in many situations: for example if the "
548 "filesystem isn't writable, or if a file or directory that you requested "
549 "doesn't exist.  If you are using the C API (documented here)  you have to "
550 "check for those error conditions after each call.  (Other language bindings "
551 "turn these errors into exceptions)."
552 msgstr ""
553
554 # type: textblock
555 #. type: textblock
556 #: ../src/guestfs.pod:233
557 msgid ""
558 "File writes are affected by the per-handle umask, set by calling L</"
559 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
560 msgstr ""
561
562 # type: =head2
563 #. type: =head2
564 #: ../src/guestfs.pod:236
565 msgid "PARTITIONING"
566 msgstr ""
567
568 # type: textblock
569 #. type: textblock
570 #: ../src/guestfs.pod:238
571 msgid ""
572 "Libguestfs contains API calls to read, create and modify partition tables on "
573 "disk images."
574 msgstr ""
575
576 # type: textblock
577 #. type: textblock
578 #: ../src/guestfs.pod:241
579 msgid ""
580 "In the common case where you want to create a single partition covering the "
581 "whole disk, you should use the L</guestfs_part_disk> call:"
582 msgstr ""
583
584 # type: verbatim
585 #. type: verbatim
586 #: ../src/guestfs.pod:245
587 #, no-wrap
588 msgid ""
589 " const char *parttype = \"mbr\";\n"
590 " if (disk_is_larger_than_2TB)\n"
591 "   parttype = \"gpt\";\n"
592 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
593 "\n"
594 msgstr ""
595
596 # type: textblock
597 #. type: textblock
598 #: ../src/guestfs.pod:250
599 msgid ""
600 "Obviously this effectively wipes anything that was on that disk image before."
601 msgstr ""
602
603 # type: =head2
604 #. type: =head2
605 #: ../src/guestfs.pod:253
606 msgid "LVM2"
607 msgstr ""
608
609 # type: textblock
610 #. type: textblock
611 #: ../src/guestfs.pod:255
612 msgid ""
613 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
614 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
615 "you familiarize yourself with the concepts of physical volumes, volume "
616 "groups and logical volumes."
617 msgstr ""
618
619 # type: textblock
620 #. type: textblock
621 #: ../src/guestfs.pod:260
622 msgid ""
623 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
624 "tldp.org/HOWTO/LVM-HOWTO/>."
625 msgstr ""
626
627 # type: =head2
628 #. type: =head2
629 #: ../src/guestfs.pod:263
630 msgid "DOWNLOADING"
631 msgstr ""
632
633 #. type: textblock
634 #: ../src/guestfs.pod:265
635 msgid ""
636 "Use L</guestfs_cat> to download small, text only files.  This call is "
637 "limited to files which are less than 2 MB and which cannot contain any ASCII "
638 "NUL (C<\\0>) characters.  However the API is very simple to use."
639 msgstr ""
640
641 # type: textblock
642 #. type: textblock
643 #: ../src/guestfs.pod:269
644 msgid ""
645 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
646 "bit data, since it returns a (pointer, size) pair.  However it is still "
647 "limited to \"small\" files, less than 2 MB."
648 msgstr ""
649
650 # type: textblock
651 #. type: textblock
652 #: ../src/guestfs.pod:273
653 msgid ""
654 "L</guestfs_download> can be used to download any file, with no limits on "
655 "content or size (even files larger than 4 GB)."
656 msgstr ""
657
658 # type: textblock
659 #. type: textblock
660 #: ../src/guestfs.pod:276
661 msgid ""
662 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
663 msgstr ""
664
665 # type: =head2
666 #. type: =head2
667 #: ../src/guestfs.pod:279
668 msgid "UPLOADING"
669 msgstr ""
670
671 # type: textblock
672 #. type: textblock
673 #: ../src/guestfs.pod:281
674 msgid ""
675 "It's often the case that you want to write a file or files to the disk image."
676 msgstr ""
677
678 # type: textblock
679 #. type: textblock
680 #: ../src/guestfs.pod:284
681 msgid ""
682 "To write a small file with fixed content, use L</guestfs_write>.  To create "
683 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
684 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
685 "of other functions for creating test files, for example L</guestfs_fill> and "
686 "L</guestfs_fill_pattern>."
687 msgstr ""
688
689 # type: textblock
690 #. type: textblock
691 #: ../src/guestfs.pod:290
692 msgid ""
693 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
694 "file content or size (even files larger than 4 GB)."
695 msgstr ""
696
697 # type: textblock
698 #. type: textblock
699 #: ../src/guestfs.pod:293
700 msgid ""
701 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
702 msgstr ""
703
704 # type: textblock
705 #. type: textblock
706 #: ../src/guestfs.pod:295
707 msgid ""
708 "However the fastest way to upload I<large numbers of arbitrary files> is to "
709 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
710 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
711 "in a predictable way (eg. adding it last after all other drives) then you "
712 "can get the device name from L</guestfs_list_devices> and mount it directly "
713 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
714 "portable between kernel versions, and they don't support labels or UUIDs.  "
715 "If you want to pre-build an image or you need to mount it using a label or "
716 "UUID, use an ISO image instead."
717 msgstr ""
718
719 # type: =head2
720 #. type: =head2
721 #: ../src/guestfs.pod:306
722 msgid "COPYING"
723 msgstr ""
724
725 # type: textblock
726 #. type: textblock
727 #: ../src/guestfs.pod:308
728 msgid ""
729 "There are various different commands for copying between files and devices "
730 "and in and out of the guest filesystem.  These are summarised in the table "
731 "below."
732 msgstr ""
733
734 # type: =item
735 #. type: =item
736 #: ../src/guestfs.pod:314
737 msgid "B<file> to B<file>"
738 msgstr ""
739
740 # type: textblock
741 #. type: textblock
742 #: ../src/guestfs.pod:316
743 msgid ""
744 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
745 "directories recursively."
746 msgstr ""
747
748 # type: =item
749 #. type: =item
750 #: ../src/guestfs.pod:319
751 msgid "B<file or device> to B<file or device>"
752 msgstr ""
753
754 # type: textblock
755 #. type: textblock
756 #: ../src/guestfs.pod:321
757 msgid ""
758 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
759 "devices in the guest."
760 msgstr ""
761
762 # type: textblock
763 #. type: textblock
764 #: ../src/guestfs.pod:324
765 msgid "Example: duplicate the contents of an LV:"
766 msgstr ""
767
768 # type: verbatim
769 #. type: verbatim
770 #: ../src/guestfs.pod:326
771 #, no-wrap
772 msgid ""
773 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
774 "\n"
775 msgstr ""
776
777 # type: textblock
778 #. type: textblock
779 #: ../src/guestfs.pod:328
780 msgid ""
781 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
782 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
783 "guestfs_copy_size>."
784 msgstr ""
785
786 # type: =item
787 #. type: =item
788 #: ../src/guestfs.pod:332
789 msgid "B<file on the host> to B<file or device>"
790 msgstr ""
791
792 # type: textblock
793 #. type: textblock
794 #: ../src/guestfs.pod:334
795 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
796 msgstr ""
797
798 # type: =item
799 #. type: =item
800 #: ../src/guestfs.pod:336
801 msgid "B<file or device> to B<file on the host>"
802 msgstr ""
803
804 # type: textblock
805 #. type: textblock
806 #: ../src/guestfs.pod:338
807 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
808 msgstr ""
809
810 # type: =head2
811 #. type: =head2
812 #: ../src/guestfs.pod:342
813 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
814 msgstr ""
815
816 # type: textblock
817 #. type: textblock
818 #: ../src/guestfs.pod:344
819 msgid ""
820 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
821 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
822 "appears you can only upload and download to files.  However many Un*x-like "
823 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
824 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
825 "and arbitrary file descriptor N."
826 msgstr ""
827
828 # type: textblock
829 #. type: textblock
830 #: ../src/guestfs.pod:352
831 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
832 msgstr ""
833
834 #. type: verbatim
835 #: ../src/guestfs.pod:355
836 #, no-wrap
837 msgid ""
838 " guestfs_download (g, filename, \"/dev/stdout\");\n"
839 "\n"
840 msgstr ""
841
842 # type: textblock
843 #. type: textblock
844 #: ../src/guestfs.pod:357
845 msgid "and you can write tar output to a pipe C<fd> by doing:"
846 msgstr ""
847
848 #. type: verbatim
849 #: ../src/guestfs.pod:359
850 #, no-wrap
851 msgid ""
852 " char devfd[64];\n"
853 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
854 " guestfs_tar_out (g, \"/\", devfd);\n"
855 "\n"
856 msgstr ""
857
858 # type: =head2
859 #. type: =head2
860 #: ../src/guestfs.pod:363
861 msgid "LISTING FILES"
862 msgstr ""
863
864 # type: textblock
865 #. type: textblock
866 #: ../src/guestfs.pod:365
867 msgid ""
868 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
869 "L<guestfish(1)>-equivalent command C<ll>)."
870 msgstr ""
871
872 # type: textblock
873 #. type: textblock
874 #: ../src/guestfs.pod:368
875 msgid ""
876 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
877 "programs, as a flat list of strings."
878 msgstr ""
879
880 # type: textblock
881 #. type: textblock
882 #: ../src/guestfs.pod:371
883 msgid ""
884 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
885 "directory, plus additional information about each one.  It is more "
886 "equivalent to using the L<readdir(3)> call on a local filesystem."
887 msgstr ""
888
889 # type: textblock
890 #. type: textblock
891 #: ../src/guestfs.pod:375
892 msgid ""
893 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
894 msgstr ""
895
896 # type: =head2
897 #. type: =head2
898 #: ../src/guestfs.pod:378
899 msgid "RUNNING COMMANDS"
900 msgstr ""
901
902 # type: textblock
903 #. type: textblock
904 #: ../src/guestfs.pod:380
905 msgid ""
906 "Although libguestfs is primarily an API for manipulating files inside guest "
907 "images, we also provide some limited facilities for running commands inside "
908 "guests."
909 msgstr ""
910
911 # type: textblock
912 #. type: textblock
913 #: ../src/guestfs.pod:384
914 msgid "There are many limitations to this:"
915 msgstr ""
916
917 # type: =item
918 #. type: =item
919 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
920 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
921 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod: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:2544 ../src/guestfs.pod:2548
930 #: ../src/guestfs.pod:2552 ../src/guestfs.pod:2556
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 ""
5141 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5142 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5143 "L<virt-tar-out(1)>."
5144 msgstr ""
5145
5146 #. type: =item
5147 #: ../src/guestfs.pod:2366
5148 msgid "C<fuse>"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../src/guestfs.pod:2368
5153 msgid ""
5154 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5155 msgstr ""
5156
5157 #. type: =item
5158 #: ../src/guestfs.pod:2370
5159 msgid "C<generator>"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../src/guestfs.pod:2372
5164 msgid ""
5165 "The crucially important generator, used to automatically generate large "
5166 "amounts of boilerplate C code for things like RPC and bindings."
5167 msgstr ""
5168
5169 #. type: =item
5170 #: ../src/guestfs.pod:2375
5171 msgid "C<images>"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2377
5176 msgid "Files used by the test suite."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../src/guestfs.pod:2379
5181 msgid "Some \"phony\" guest images which we test against."
5182 msgstr ""
5183
5184 #. type: =item
5185 #: ../src/guestfs.pod:2381
5186 msgid "C<inspector>"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2383
5191 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5192 msgstr ""
5193
5194 #. type: =item
5195 #: ../src/guestfs.pod:2385
5196 msgid "C<logo>"
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../src/guestfs.pod:2387
5201 msgid "Logo used on the website.  The fish is called Arthur by the way."
5202 msgstr ""
5203
5204 #. type: =item
5205 #: ../src/guestfs.pod:2389
5206 msgid "C<m4>"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../src/guestfs.pod:2391
5211 msgid "M4 macros used by autoconf."
5212 msgstr ""
5213
5214 #. type: =item
5215 #: ../src/guestfs.pod:2393
5216 msgid "C<po>"
5217 msgstr ""
5218
5219 #. type: textblock
5220 #: ../src/guestfs.pod:2395
5221 msgid "Translations of simple gettext strings."
5222 msgstr ""
5223
5224 #. type: =item
5225 #: ../src/guestfs.pod:2397
5226 msgid "C<po-docs>"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2399
5231 msgid ""
5232 "The build infrastructure and PO files for translations of manpages and POD "
5233 "files.  Eventually this will be combined with the C<po> directory, but that "
5234 "is rather complicated."
5235 msgstr ""
5236
5237 #. type: =item
5238 #: ../src/guestfs.pod:2403
5239 msgid "C<regressions>"
5240 msgstr ""
5241
5242 #. type: textblock
5243 #: ../src/guestfs.pod:2405
5244 msgid "Regression tests."
5245 msgstr ""
5246
5247 #. type: =item
5248 #: ../src/guestfs.pod:2407
5249 msgid "C<rescue>"
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../src/guestfs.pod:2409
5254 msgid "L<virt-rescue(1)> command and documentation."
5255 msgstr ""
5256
5257 #. type: =item
5258 #: ../src/guestfs.pod:2411
5259 msgid "C<src>"
5260 msgstr ""
5261
5262 #. type: textblock
5263 #: ../src/guestfs.pod:2413
5264 msgid "Source code to the C library."
5265 msgstr ""
5266
5267 #. type: =item
5268 #: ../src/guestfs.pod:2415
5269 msgid "C<tools>"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../src/guestfs.pod:2417
5274 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5275 msgstr ""
5276
5277 #. type: =item
5278 #: ../src/guestfs.pod:2419
5279 msgid "C<test-tool>"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../src/guestfs.pod:2421
5284 msgid ""
5285 "Test tool for end users to test if their qemu/kernel combination will work "
5286 "with libguestfs."
5287 msgstr ""
5288
5289 #. type: =item
5290 #: ../src/guestfs.pod:2424
5291 msgid "C<csharp>"
5292 msgstr ""
5293
5294 #. type: =item
5295 #: ../src/guestfs.pod:2426
5296 msgid "C<haskell>"
5297 msgstr ""
5298
5299 #. type: =item
5300 #: ../src/guestfs.pod:2428
5301 msgid "C<java>"
5302 msgstr ""
5303
5304 #. type: =item
5305 #: ../src/guestfs.pod:2430
5306 msgid "C<ocaml>"
5307 msgstr ""
5308
5309 #. type: =item
5310 #: ../src/guestfs.pod:2432
5311 msgid "C<php>"
5312 msgstr ""
5313
5314 #. type: =item
5315 #: ../src/guestfs.pod:2434
5316 msgid "C<perl>"
5317 msgstr ""
5318
5319 #. type: =item
5320 #: ../src/guestfs.pod:2436
5321 msgid "C<python>"
5322 msgstr ""
5323
5324 #. type: =item
5325 #: ../src/guestfs.pod:2438
5326 msgid "C<ruby>"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../src/guestfs.pod:2440
5331 msgid "Language bindings."
5332 msgstr ""
5333
5334 # type: =head1
5335 #. type: =head1
5336 #: ../src/guestfs.pod:2444 ../fish/guestfish.pod:965
5337 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5338 msgid "ENVIRONMENT VARIABLES"
5339 msgstr ""
5340
5341 # type: =item
5342 #. type: =item
5343 #: ../src/guestfs.pod:2448 ../fish/guestfish.pod:991
5344 msgid "LIBGUESTFS_APPEND"
5345 msgstr ""
5346
5347 # type: textblock
5348 #. type: textblock
5349 #: ../src/guestfs.pod:2450 ../fish/guestfish.pod:993
5350 msgid "Pass additional options to the guest kernel."
5351 msgstr ""
5352
5353 # type: =item
5354 #. type: =item
5355 #: ../src/guestfs.pod:2452 ../fish/guestfish.pod:995
5356 msgid "LIBGUESTFS_DEBUG"
5357 msgstr ""
5358
5359 # type: textblock
5360 #. type: textblock
5361 #: ../src/guestfs.pod:2454
5362 msgid ""
5363 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5364 "effect as calling C<guestfs_set_verbose (g, 1)>."
5365 msgstr ""
5366
5367 # type: =item
5368 #. type: =item
5369 #: ../src/guestfs.pod:2457 ../fish/guestfish.pod:1000
5370 msgid "LIBGUESTFS_MEMSIZE"
5371 msgstr ""
5372
5373 # type: textblock
5374 #. type: textblock
5375 #: ../src/guestfs.pod:2459 ../fish/guestfish.pod:1002
5376 msgid ""
5377 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5378 msgstr ""
5379
5380 # type: verbatim
5381 #. type: verbatim
5382 #: ../src/guestfs.pod:2462 ../fish/guestfish.pod:1005
5383 #, no-wrap
5384 msgid ""
5385 " LIBGUESTFS_MEMSIZE=700\n"
5386 "\n"
5387 msgstr ""
5388
5389 # type: =item
5390 #. type: =item
5391 #: ../src/guestfs.pod:2464 ../fish/guestfish.pod:1007
5392 msgid "LIBGUESTFS_PATH"
5393 msgstr ""
5394
5395 # type: textblock
5396 #. type: textblock
5397 #: ../src/guestfs.pod:2466
5398 msgid ""
5399 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
5400 "the discussion of paths in section PATH above."
5401 msgstr ""
5402
5403 # type: =item
5404 #. type: =item
5405 #: ../src/guestfs.pod:2469 ../fish/guestfish.pod:1012
5406 msgid "LIBGUESTFS_QEMU"
5407 msgstr ""
5408
5409 # type: textblock
5410 #. type: textblock
5411 #: ../src/guestfs.pod:2471 ../fish/guestfish.pod:1014
5412 msgid ""
5413 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5414 "which was found at compile time by the configure script is used."
5415 msgstr ""
5416
5417 # type: textblock
5418 #. type: textblock
5419 #: ../src/guestfs.pod:2475
5420 msgid "See also L</QEMU WRAPPERS> above."
5421 msgstr ""
5422
5423 # type: =item
5424 #. type: =item
5425 #: ../src/guestfs.pod:2477 ../fish/guestfish.pod:1018
5426 msgid "LIBGUESTFS_TRACE"
5427 msgstr ""
5428
5429 # type: textblock
5430 #. type: textblock
5431 #: ../src/guestfs.pod:2479
5432 msgid ""
5433 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5434 "effect as calling C<guestfs_set_trace (g, 1)>."
5435 msgstr ""
5436
5437 # type: =item
5438 #. type: =item
5439 #: ../src/guestfs.pod:2482 ../fish/guestfish.pod:1027
5440 msgid "TMPDIR"
5441 msgstr ""
5442
5443 # type: textblock
5444 #. type: textblock
5445 #: ../src/guestfs.pod:2484 ../fish/guestfish.pod:1029
5446 msgid "Location of temporary directory, defaults to C</tmp>."
5447 msgstr ""
5448
5449 # type: textblock
5450 #. type: textblock
5451 #: ../src/guestfs.pod:2486 ../fish/guestfish.pod:1031
5452 msgid ""
5453 "If libguestfs was compiled to use the supermin appliance then the real "
5454 "appliance is cached in this directory, shared between all handles belonging "
5455 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5456 "use in case C</tmp> is not large enough."
5457 msgstr ""
5458
5459 # type: =head1
5460 #. type: =head1
5461 #: ../src/guestfs.pod:2494 ../fish/guestfish.pod:1089
5462 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
5463 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5464 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
5465 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:534
5466 #: ../tools/virt-list-partitions.pl:257
5467 msgid "SEE ALSO"
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../src/guestfs.pod:2496
5472 msgid ""
5473 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5474 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5475 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5476 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5477 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5478 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5479 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5480 msgstr ""
5481
5482 # type: textblock
5483 #. type: textblock
5484 #: ../src/guestfs.pod:2523
5485 msgid ""
5486 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5487 "(8)>, L<disktype(1)>."
5488 msgstr ""
5489
5490 # type: =head1
5491 #. type: =head1
5492 #: ../src/guestfs.pod:2530 ../tools/virt-win-reg.pl:587
5493 #: ../tools/virt-make-fs.pl:548
5494 msgid "BUGS"
5495 msgstr ""
5496
5497 # type: textblock
5498 #. type: textblock
5499 #: ../src/guestfs.pod:2532
5500 msgid "To get a list of bugs against libguestfs use this link:"
5501 msgstr ""
5502
5503 # type: textblock
5504 #. type: textblock
5505 #: ../src/guestfs.pod:2534
5506 msgid ""
5507 "L<https://bugzilla.redhat.com/buglist.cgi?"
5508 "component=libguestfs&product=Virtualization+Tools>"
5509 msgstr ""
5510
5511 # type: textblock
5512 #. type: textblock
5513 #: ../src/guestfs.pod:2536
5514 msgid "To report a new bug against libguestfs use this link:"
5515 msgstr ""
5516
5517 # type: textblock
5518 #. type: textblock
5519 #: ../src/guestfs.pod:2538
5520 msgid ""
5521 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5522 "component=libguestfs&product=Virtualization+Tools>"
5523 msgstr ""
5524
5525 # type: textblock
5526 #. type: textblock
5527 #: ../src/guestfs.pod:2540
5528 msgid "When reporting a bug, please check:"
5529 msgstr ""
5530
5531 # type: textblock
5532 #. type: textblock
5533 #: ../src/guestfs.pod:2546
5534 msgid "That the bug hasn't been reported already."
5535 msgstr ""
5536
5537 # type: textblock
5538 #. type: textblock
5539 #: ../src/guestfs.pod:2550
5540 msgid "That you are testing a recent version."
5541 msgstr ""
5542
5543 # type: textblock
5544 #. type: textblock
5545 #: ../src/guestfs.pod:2554
5546 msgid "Describe the bug accurately, and give a way to reproduce it."
5547 msgstr ""
5548
5549 # type: textblock
5550 #. type: textblock
5551 #: ../src/guestfs.pod:2558
5552 msgid ""
5553 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5554 "bug report."
5555 msgstr ""
5556
5557 # type: =head1
5558 #. type: =head1
5559 #: ../src/guestfs.pod:2563 ../fish/guestfish.pod:1112
5560 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
5561 msgid "AUTHORS"
5562 msgstr ""
5563
5564 # type: textblock
5565 #. type: textblock
5566 #: ../src/guestfs.pod:2565 ../fish/guestfish.pod:1114
5567 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
5568 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5569 msgstr ""
5570
5571 # type: =head1
5572 #. type: =head1
5573 #: ../src/guestfs.pod:2567 ../fish/guestfish.pod:1116
5574 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
5575 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
5576 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
5577 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:563
5578 #: ../tools/virt-list-partitions.pl:273
5579 msgid "COPYRIGHT"
5580 msgstr ""
5581
5582 # type: textblock
5583 #. type: textblock
5584 #: ../src/guestfs.pod:2569 ../fish/guestfish.pod:1118
5585 #: ../fuse/guestmount.pod:250
5586 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
5587 msgstr ""
5588
5589 # type: textblock
5590 #. type: textblock
5591 #: ../src/guestfs.pod:2572
5592 msgid ""
5593 "This library is free software; you can redistribute it and/or modify it "
5594 "under the terms of the GNU Lesser General Public License as published by the "
5595 "Free Software Foundation; either version 2 of the License, or (at your "
5596 "option) any later version."
5597 msgstr ""
5598
5599 # type: textblock
5600 #. type: textblock
5601 #: ../src/guestfs.pod:2577
5602 msgid ""
5603 "This library is distributed in the hope that it will be useful, but WITHOUT "
5604 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5605 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5606 "for more details."
5607 msgstr ""
5608
5609 # type: textblock
5610 #. type: textblock
5611 #: ../src/guestfs.pod:2582
5612 msgid ""
5613 "You should have received a copy of the GNU Lesser General Public License "
5614 "along with this library; if not, write to the Free Software Foundation, "
5615 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5616 msgstr ""
5617
5618 # type: =head2
5619 #. type: =head2
5620 #: ../src/guestfs-actions.pod:1
5621 msgid "guestfs_add_cdrom"
5622 msgstr ""
5623
5624 # type: verbatim
5625 #. type: verbatim
5626 #: ../src/guestfs-actions.pod:3
5627 #, no-wrap
5628 msgid ""
5629 " int\n"
5630 " guestfs_add_cdrom (guestfs_h *g,\n"
5631 "                    const char *filename);\n"
5632 "\n"
5633 msgstr ""
5634
5635 # type: textblock
5636 #. type: textblock
5637 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5638 msgid "This function adds a virtual CD-ROM disk image to the guest."
5639 msgstr ""
5640
5641 # type: textblock
5642 #. type: textblock
5643 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5644 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5645 msgstr ""
5646
5647 # type: textblock
5648 #. type: textblock
5649 #: ../src/guestfs-actions.pod:17
5650 msgid ""
5651 "This call checks for the existence of C<filename>.  This stops you from "
5652 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5653 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5654 "instead."
5655 msgstr ""
5656
5657 # type: textblock
5658 #. type: textblock
5659 #: ../src/guestfs-actions.pod:24
5660 msgid ""
5661 "If you just want to add an ISO file (often you use this as an efficient way "
5662 "to transfer large files into the guest), then you should probably use "
5663 "C<guestfs_add_drive_ro> instead."
5664 msgstr ""
5665
5666 # type: textblock
5667 #. type: textblock
5668 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
5669 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
5670 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
5671 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
5672 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
5673 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
5674 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
5675 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
5676 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
5677 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5678 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5679 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
5680 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
5681 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
5682 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
5683 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
5684 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
5685 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
5686 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
5687 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2243
5688 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
5689 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3226
5690 #: ../src/guestfs-actions.pod:3241 ../src/guestfs-actions.pod:3261
5691 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3430
5692 #: ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3457
5693 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3508
5694 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3600
5695 #: ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3640
5696 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3695
5697 #: ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3733
5698 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3780
5699 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3832
5700 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3860
5701 #: ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:3970
5702 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4003
5703 #: ../src/guestfs-actions.pod:4054 ../src/guestfs-actions.pod:4072
5704 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4106
5705 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4134
5706 #: ../src/guestfs-actions.pod:4151 ../src/guestfs-actions.pod:4166
5707 #: ../src/guestfs-actions.pod:4186 ../src/guestfs-actions.pod:4230
5708 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4334
5709 #: ../src/guestfs-actions.pod:4353 ../src/guestfs-actions.pod:4372
5710 #: ../src/guestfs-actions.pod:4384 ../src/guestfs-actions.pod:4401
5711 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4429
5712 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4479
5713 #: ../src/guestfs-actions.pod:4494 ../src/guestfs-actions.pod:4514
5714 #: ../src/guestfs-actions.pod:4528 ../src/guestfs-actions.pod:4545
5715 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4631
5716 #: ../src/guestfs-actions.pod:4645 ../src/guestfs-actions.pod:4673
5717 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4708
5718 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4899
5719 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4939
5720 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:5037
5721 #: ../src/guestfs-actions.pod:5054 ../src/guestfs-actions.pod:5067
5722 #: ../src/guestfs-actions.pod:5081 ../src/guestfs-actions.pod:5370
5723 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5403
5724 #: ../src/guestfs-actions.pod:5415 ../src/guestfs-actions.pod:5429
5725 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5455
5726 #: ../src/guestfs-actions.pod:5471 ../src/guestfs-actions.pod:5492
5727 #: ../src/guestfs-actions.pod:5511 ../src/guestfs-actions.pod:5530
5728 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5571
5729 #: ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:5608
5730 #: ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5648
5731 #: ../src/guestfs-actions.pod:5665 ../src/guestfs-actions.pod:5693
5732 #: ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5736
5733 #: ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:5775
5734 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5809
5735 #: ../src/guestfs-actions.pod:5846 ../src/guestfs-actions.pod:5869
5736 #: ../src/guestfs-actions.pod:5895 ../src/guestfs-actions.pod:6003
5737 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6136
5738 #: ../src/guestfs-actions.pod:6149 ../src/guestfs-actions.pod:6162
5739 #: ../src/guestfs-actions.pod:6184 ../src/guestfs-actions.pod:6197
5740 #: ../src/guestfs-actions.pod:6210 ../src/guestfs-actions.pod:6223
5741 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6297
5742 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-actions.pod:6330
5743 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6363
5744 #: ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:6396
5745 #: ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:6446
5746 #: ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6500
5747 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6552
5748 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6707
5749 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6739
5750 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6807
5751 #: ../src/guestfs-actions.pod:6852 ../src/guestfs-actions.pod:6885
5752 #: ../src/guestfs-actions.pod:6939 ../src/guestfs-actions.pod:6965
5753 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050
5754 #: ../src/guestfs-actions.pod:7079
5755 msgid "This function returns 0 on success or -1 on error."
5756 msgstr ""
5757
5758 # type: textblock
5759 #. type: textblock
5760 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
5761 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
5762 #: ../fish/guestfish-actions.pod:151 ../fish/guestfish-actions.pod:165
5763 msgid ""
5764 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5765 "instead."
5766 msgstr ""
5767
5768 # type: textblock
5769 #. type: textblock
5770 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
5771 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
5772 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
5773 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:6973
5774 #: ../src/guestfs-actions.pod:7142 ../fish/guestfish-actions.pod:31
5775 #: ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:168
5776 #: ../fish/guestfish-actions.pod:949 ../fish/guestfish-actions.pod:1306
5777 #: ../fish/guestfish-actions.pod:1320 ../fish/guestfish-actions.pod:2820
5778 #: ../fish/guestfish-actions.pod:4622 ../fish/guestfish-actions.pod:4719
5779 msgid ""
5780 "Deprecated functions will not be removed from the API, but the fact that "
5781 "they are deprecated indicates that there are problems with correct use of "
5782 "these functions."
5783 msgstr ""
5784
5785 # type: textblock
5786 #. type: textblock
5787 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
5788 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
5789 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
5790 #: ../src/guestfs-actions.pod:3228 ../src/guestfs-actions.pod:3243
5791 #: ../src/guestfs-actions.pod:4481 ../src/guestfs-actions.pod:5550
5792 #: ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5777
5793 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6365
5794 #: ../src/guestfs-actions.pod:6887
5795 msgid "(Added in 0.3)"
5796 msgstr ""
5797
5798 # type: =head2
5799 #. type: =head2
5800 #: ../src/guestfs-actions.pod:41
5801 msgid "guestfs_add_domain"
5802 msgstr ""
5803
5804 # type: verbatim
5805 #. type: verbatim
5806 #: ../src/guestfs-actions.pod:43
5807 #, no-wrap
5808 msgid ""
5809 " int\n"
5810 " guestfs_add_domain (guestfs_h *g,\n"
5811 "                     const char *dom,\n"
5812 "                     ...);\n"
5813 "\n"
5814 msgstr ""
5815
5816 # type: textblock
5817 #. type: textblock
5818 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
5819 #: ../src/guestfs-actions.pod:4205
5820 msgid ""
5821 "You may supply a list of optional arguments to this call.  Use zero or more "
5822 "of the following pairs of parameters, and terminate the list with C<-1> on "
5823 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5824 msgstr ""
5825
5826 # type: verbatim
5827 #. type: verbatim
5828 #: ../src/guestfs-actions.pod:53
5829 #, no-wrap
5830 msgid ""
5831 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5832 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5833 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5834 "\n"
5835 msgstr ""
5836
5837 # type: textblock
5838 #. type: textblock
5839 #: ../src/guestfs-actions.pod:57
5840 msgid ""
5841 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5842 "It works by connecting to libvirt, requesting the domain and domain XML from "
5843 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5844 "one."
5845 msgstr ""
5846
5847 # type: textblock
5848 #. type: textblock
5849 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
5850 msgid ""
5851 "The number of disks added is returned.  This operation is atomic: if an "
5852 "error is returned, then no disks are added."
5853 msgstr ""
5854
5855 # type: textblock
5856 #. type: textblock
5857 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
5858 msgid ""
5859 "This function does some minimal checks to make sure the libvirt domain is "
5860 "not running (unless C<readonly> is true).  In a future version we will try "
5861 "to acquire the libvirt lock on each disk."
5862 msgstr ""
5863
5864 # type: textblock
5865 #. type: textblock
5866 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
5867 msgid ""
5868 "Disks must be accessible locally.  This often means that adding disks from a "
5869 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5870 "unless those disks are accessible via the same device path locally too."
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:58
5875 msgid ""
5876 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5877 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5878 "libvirt URI (or one set through an environment variable, see the libvirt "
5879 "documentation for full details)."
5880 msgstr ""
5881
5882 # type: textblock
5883 #. type: textblock
5884 #: ../src/guestfs-actions.pod:80
5885 msgid ""
5886 "The other optional parameters are passed directly through to "
5887 "C<guestfs_add_drive_opts>."
5888 msgstr ""
5889
5890 # type: textblock
5891 #. type: textblock
5892 #: ../src/guestfs-actions.pod:83 ../src/guestfs-actions.pod:336
5893 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
5894 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
5895 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
5896 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
5897 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
5898 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
5899 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2662
5900 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4617
5901 #: ../src/guestfs-actions.pod:4745 ../src/guestfs-actions.pod:5151
5902 #: ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:6473
5903 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6911
5904 #: ../src/guestfs-actions.pod:6924
5905 msgid "On error this function returns -1."
5906 msgstr ""
5907
5908 # type: textblock
5909 #. type: textblock
5910 #: ../src/guestfs-actions.pod:85
5911 msgid "(Added in 1.7.4)"
5912 msgstr ""
5913
5914 # type: =head2
5915 #. type: =head2
5916 #: ../src/guestfs-actions.pod:87
5917 msgid "guestfs_add_domain_va"
5918 msgstr ""
5919
5920 # type: verbatim
5921 #. type: verbatim
5922 #: ../src/guestfs-actions.pod:89
5923 #, no-wrap
5924 msgid ""
5925 " int\n"
5926 " guestfs_add_domain_va (guestfs_h *g,\n"
5927 "                        const char *dom,\n"
5928 "                        va_list args);\n"
5929 "\n"
5930 msgstr ""
5931
5932 # type: textblock
5933 #. type: textblock
5934 #: ../src/guestfs-actions.pod:94
5935 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5936 msgstr ""
5937
5938 # type: textblock
5939 #. type: textblock
5940 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
5941 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
5942 #: ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4256
5943 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5944 msgstr ""
5945
5946 # type: =head2
5947 #. type: =head2
5948 #: ../src/guestfs-actions.pod:98
5949 msgid "guestfs_add_domain_argv"
5950 msgstr ""
5951
5952 # type: verbatim
5953 #. type: verbatim
5954 #: ../src/guestfs-actions.pod:100
5955 #, no-wrap
5956 msgid ""
5957 " int\n"
5958 " guestfs_add_domain_argv (guestfs_h *g,\n"
5959 "                          const char *dom,\n"
5960 "                          const struct guestfs_add_domain_argv *optargs);\n"
5961 "\n"
5962 msgstr ""
5963
5964 # type: textblock
5965 #. type: textblock
5966 #: ../src/guestfs-actions.pod:105
5967 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
5968 msgstr ""
5969
5970 # type: =head2
5971 #. type: =head2
5972 #: ../src/guestfs-actions.pod:109
5973 msgid "guestfs_add_drive"
5974 msgstr ""
5975
5976 # type: verbatim
5977 #. type: verbatim
5978 #: ../src/guestfs-actions.pod:111
5979 #, no-wrap
5980 msgid ""
5981 " int\n"
5982 " guestfs_add_drive (guestfs_h *g,\n"
5983 "                    const char *filename);\n"
5984 "\n"
5985 msgstr ""
5986
5987 # type: textblock
5988 #. type: textblock
5989 #: ../src/guestfs-actions.pod:115
5990 msgid ""
5991 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
5992 "optional parameters, so the disk is added writable, with the format being "
5993 "detected automatically."
5994 msgstr ""
5995
5996 # type: textblock
5997 #. type: textblock
5998 #: ../src/guestfs-actions.pod:119
5999 msgid ""
6000 "Automatic detection of the format opens you up to a potential security hole "
6001 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6002 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6003 "you should think about replacing calls to this function with calls to "
6004 "C<guestfs_add_drive_opts>, and specifying the format."
6005 msgstr ""
6006
6007 # type: =head2
6008 #. type: =head2
6009 #: ../src/guestfs-actions.pod:130
6010 msgid "guestfs_add_drive_opts"
6011 msgstr ""
6012
6013 # type: verbatim
6014 #. type: verbatim
6015 #: ../src/guestfs-actions.pod:132
6016 #, no-wrap
6017 msgid ""
6018 " int\n"
6019 " guestfs_add_drive_opts (guestfs_h *g,\n"
6020 "                         const char *filename,\n"
6021 "                         ...);\n"
6022 "\n"
6023 msgstr ""
6024
6025 # type: verbatim
6026 #. type: verbatim
6027 #: ../src/guestfs-actions.pod:142
6028 #, no-wrap
6029 msgid ""
6030 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6031 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6032 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6033 "\n"
6034 msgstr ""
6035
6036 # type: textblock
6037 #. type: textblock
6038 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:90
6039 msgid ""
6040 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6041 "The first time you call this function, the disk appears as C</dev/sda>, the "
6042 "second time as C</dev/sdb>, and so on."
6043 msgstr ""
6044
6045 # type: textblock
6046 #. type: textblock
6047 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:95
6048 msgid ""
6049 "You don't necessarily need to be root when using libguestfs.  However you "
6050 "obviously do need sufficient permissions to access the filename for whatever "
6051 "operations you want to perform (ie. read access if you just want to read the "
6052 "image or write access if you want to modify the image)."
6053 msgstr ""
6054
6055 # type: textblock
6056 #. type: textblock
6057 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:101
6058 msgid "This call checks that C<filename> exists."
6059 msgstr ""
6060
6061 # type: textblock
6062 #. type: textblock
6063 #: ../src/guestfs-actions.pod:159 ../src/guestfs-actions.pod:4215
6064 #: ../fish/guestfish-actions.pod:103 ../fish/guestfish-actions.pod:2831
6065 msgid "The optional arguments are:"
6066 msgstr ""
6067
6068 # type: =item
6069 #. type: =item
6070 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:107
6071 msgid "C<readonly>"
6072 msgstr ""
6073
6074 # type: textblock
6075 #. type: textblock
6076 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
6077 msgid ""
6078 "If true then the image is treated as read-only.  Writes are still allowed, "
6079 "but they are stored in a temporary snapshot overlay which is discarded at "
6080 "the end.  The disk that you add is not modified."
6081 msgstr ""
6082
6083 # type: =item
6084 #. type: =item
6085 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:113
6086 msgid "C<format>"
6087 msgstr ""
6088
6089 # type: textblock
6090 #. type: textblock
6091 #: ../src/guestfs-actions.pod:171
6092 msgid ""
6093 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6094 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6095 "Possible formats include C<raw> and C<qcow2>."
6096 msgstr ""
6097
6098 # type: textblock
6099 #. type: textblock
6100 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:119
6101 msgid ""
6102 "Automatic detection of the format opens you up to a potential security hole "
6103 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6104 "RHBZ#642934.  Specifying the format closes this security hole."
6105 msgstr ""
6106
6107 # type: =item
6108 #. type: =item
6109 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:124
6110 msgid "C<iface>"
6111 msgstr ""
6112
6113 # type: textblock
6114 #. type: textblock
6115 #: ../src/guestfs-actions.pod:182
6116 msgid ""
6117 "This rarely-used option lets you emulate the behaviour of the deprecated "
6118 "C<guestfs_add_drive_with_if> call (q.v.)"
6119 msgstr ""
6120
6121 # type: textblock
6122 #. type: textblock
6123 #: ../src/guestfs-actions.pod:189
6124 msgid "(Added in 1.5.23)"
6125 msgstr ""
6126
6127 # type: =head2
6128 #. type: =head2
6129 #: ../src/guestfs-actions.pod:191
6130 msgid "guestfs_add_drive_opts_va"
6131 msgstr ""
6132
6133 # type: verbatim
6134 #. type: verbatim
6135 #: ../src/guestfs-actions.pod:193
6136 #, no-wrap
6137 msgid ""
6138 " int\n"
6139 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6140 "                            const char *filename,\n"
6141 "                            va_list args);\n"
6142 "\n"
6143 msgstr ""
6144
6145 # type: textblock
6146 #. type: textblock
6147 #: ../src/guestfs-actions.pod:198
6148 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6149 msgstr ""
6150
6151 # type: =head2
6152 #. type: =head2
6153 #: ../src/guestfs-actions.pod:202
6154 msgid "guestfs_add_drive_opts_argv"
6155 msgstr ""
6156
6157 # type: verbatim
6158 #. type: verbatim
6159 #: ../src/guestfs-actions.pod:204
6160 #, no-wrap
6161 msgid ""
6162 " int\n"
6163 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6164 "                              const char *filename,\n"
6165 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6166 "\n"
6167 msgstr ""
6168
6169 # type: textblock
6170 #. type: textblock
6171 #: ../src/guestfs-actions.pod:209
6172 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6173 msgstr ""
6174
6175 # type: =head2
6176 #. type: =head2
6177 #: ../src/guestfs-actions.pod:213
6178 msgid "guestfs_add_drive_ro"
6179 msgstr ""
6180
6181 # type: verbatim
6182 #. type: verbatim
6183 #: ../src/guestfs-actions.pod:215
6184 #, no-wrap
6185 msgid ""
6186 " int\n"
6187 " guestfs_add_drive_ro (guestfs_h *g,\n"
6188 "                       const char *filename);\n"
6189 "\n"
6190 msgstr ""
6191
6192 # type: textblock
6193 #. type: textblock
6194 #: ../src/guestfs-actions.pod:219
6195 msgid ""
6196 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6197 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6198 "disk is added read-only, with the format being detected automatically."
6199 msgstr ""
6200
6201 # type: textblock
6202 #. type: textblock
6203 #: ../src/guestfs-actions.pod:226
6204 msgid "(Added in 1.0.38)"
6205 msgstr ""
6206
6207 # type: =head2
6208 #. type: =head2
6209 #: ../src/guestfs-actions.pod:228
6210 msgid "guestfs_add_drive_ro_with_if"
6211 msgstr ""
6212
6213 # type: verbatim
6214 #. type: verbatim
6215 #: ../src/guestfs-actions.pod:230
6216 #, no-wrap
6217 msgid ""
6218 " int\n"
6219 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6220 "                               const char *filename,\n"
6221 "                               const char *iface);\n"
6222 "\n"
6223 msgstr ""
6224
6225 # type: textblock
6226 #. type: textblock
6227 #: ../src/guestfs-actions.pod:235
6228 msgid ""
6229 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6230 "QEMU interface emulation to use at run time."
6231 msgstr ""
6232
6233 # type: textblock
6234 #. type: textblock
6235 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
6236 #: ../src/guestfs-actions.pod:2333
6237 msgid "(Added in 1.0.84)"
6238 msgstr ""
6239
6240 # type: =head2
6241 #. type: =head2
6242 #: ../src/guestfs-actions.pod:249
6243 msgid "guestfs_add_drive_with_if"
6244 msgstr ""
6245
6246 # type: verbatim
6247 #. type: verbatim
6248 #: ../src/guestfs-actions.pod:251
6249 #, no-wrap
6250 msgid ""
6251 " int\n"
6252 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6253 "                            const char *filename,\n"
6254 "                            const char *iface);\n"
6255 "\n"
6256 msgstr ""
6257
6258 # type: textblock
6259 #. type: textblock
6260 #: ../src/guestfs-actions.pod:256
6261 msgid ""
6262 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6263 "QEMU interface emulation to use at run time."
6264 msgstr ""
6265
6266 # type: =head2
6267 #. type: =head2
6268 #: ../src/guestfs-actions.pod:270
6269 msgid "guestfs_aug_clear"
6270 msgstr ""
6271
6272 # type: verbatim
6273 #. type: verbatim
6274 #: ../src/guestfs-actions.pod:272
6275 #, no-wrap
6276 msgid ""
6277 " int\n"
6278 " guestfs_aug_clear (guestfs_h *g,\n"
6279 "                    const char *augpath);\n"
6280 "\n"
6281 msgstr ""
6282
6283 # type: textblock
6284 #. type: textblock
6285 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:176
6286 msgid ""
6287 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6288 "L<augtool(1)> C<clear> command."
6289 msgstr ""
6290
6291 # type: textblock
6292 #. type: textblock
6293 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
6294 msgid "(Added in 1.3.4)"
6295 msgstr ""
6296
6297 # type: =head2
6298 #. type: =head2
6299 #: ../src/guestfs-actions.pod:283
6300 msgid "guestfs_aug_close"
6301 msgstr ""
6302
6303 # type: verbatim
6304 #. type: verbatim
6305 #: ../src/guestfs-actions.pod:285
6306 #, no-wrap
6307 msgid ""
6308 " int\n"
6309 " guestfs_aug_close (guestfs_h *g);\n"
6310 "\n"
6311 msgstr ""
6312
6313 # type: textblock
6314 #. type: textblock
6315 #: ../src/guestfs-actions.pod:288
6316 msgid ""
6317 "Close the current Augeas handle and free up any resources used by it.  After "
6318 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6319 "any other Augeas functions."
6320 msgstr ""
6321
6322 # type: textblock
6323 #. type: textblock
6324 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
6325 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
6326 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
6327 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
6328 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
6329 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
6330 #: ../src/guestfs-actions.pod:5228
6331 msgid "(Added in 0.7)"
6332 msgstr ""
6333
6334 # type: =head2
6335 #. type: =head2
6336 #: ../src/guestfs-actions.pod:297
6337 msgid "guestfs_aug_defnode"
6338 msgstr ""
6339
6340 # type: verbatim
6341 #. type: verbatim
6342 #: ../src/guestfs-actions.pod:299
6343 #, no-wrap
6344 msgid ""
6345 " struct guestfs_int_bool *\n"
6346 " guestfs_aug_defnode (guestfs_h *g,\n"
6347 "                      const char *name,\n"
6348 "                      const char *expr,\n"
6349 "                      const char *val);\n"
6350 "\n"
6351 msgstr ""
6352
6353 # type: textblock
6354 #. type: textblock
6355 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:192
6356 msgid ""
6357 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6358 msgstr ""
6359
6360 # type: textblock
6361 #. type: textblock
6362 #: ../src/guestfs-actions.pod:308
6363 msgid ""
6364 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6365 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6366 "containing that single node."
6367 msgstr ""
6368
6369 # type: textblock
6370 #. type: textblock
6371 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:199
6372 msgid ""
6373 "On success this returns a pair containing the number of nodes in the "
6374 "nodeset, and a boolean flag if a node was created."
6375 msgstr ""
6376
6377 # type: textblock
6378 #. type: textblock
6379 #: ../src/guestfs-actions.pod:316
6380 msgid ""
6381 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6382 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6383 msgstr ""
6384
6385 # type: =head2
6386 #. type: =head2
6387 #: ../src/guestfs-actions.pod:322
6388 msgid "guestfs_aug_defvar"
6389 msgstr ""
6390
6391 # type: verbatim
6392 #. type: verbatim
6393 #: ../src/guestfs-actions.pod:324
6394 #, no-wrap
6395 msgid ""
6396 " int\n"
6397 " guestfs_aug_defvar (guestfs_h *g,\n"
6398 "                     const char *name,\n"
6399 "                     const char *expr);\n"
6400 "\n"
6401 msgstr ""
6402
6403 # type: textblock
6404 #. type: textblock
6405 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:207
6406 msgid ""
6407 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6408 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6409 msgstr ""
6410
6411 # type: textblock
6412 #. type: textblock
6413 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:211
6414 msgid ""
6415 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6416 "evaluates to something which is not a nodeset."
6417 msgstr ""
6418
6419 # type: =head2
6420 #. type: =head2
6421 #: ../src/guestfs-actions.pod:340
6422 msgid "guestfs_aug_get"
6423 msgstr ""
6424
6425 # type: verbatim
6426 #. type: verbatim
6427 #: ../src/guestfs-actions.pod:342
6428 #, no-wrap
6429 msgid ""
6430 " char *\n"
6431 " guestfs_aug_get (guestfs_h *g,\n"
6432 "                  const char *augpath);\n"
6433 "\n"
6434 msgstr ""
6435
6436 # type: textblock
6437 #. type: textblock
6438 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:218
6439 msgid ""
6440 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6441 "node, the C<value> is returned."
6442 msgstr ""
6443
6444 # type: textblock
6445 #. type: textblock
6446 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
6447 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
6448 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
6449 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
6450 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
6451 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
6452 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
6453 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
6454 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2298
6455 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
6456 #: ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2748
6457 #: ../src/guestfs-actions.pod:2779 ../src/guestfs-actions.pod:2803
6458 #: ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2888
6459 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3752
6460 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:4032
6461 #: ../src/guestfs-actions.pod:4763 ../src/guestfs-actions.pod:4956
6462 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5304
6463 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5916
6464 #: ../src/guestfs-actions.pod:5932 ../src/guestfs-actions.pod:5949
6465 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:6647
6466 #: ../src/guestfs-actions.pod:6666 ../src/guestfs-actions.pod:6684
6467 #: ../src/guestfs-actions.pod:6864 ../src/guestfs-actions.pod:7136
6468 msgid ""
6469 "This function returns a string, or NULL on error.  I<The caller must free "
6470 "the returned string after use>."
6471 msgstr ""
6472
6473 # type: =head2
6474 #. type: =head2
6475 #: ../src/guestfs-actions.pod:354
6476 msgid "guestfs_aug_init"
6477 msgstr ""
6478
6479 # type: verbatim
6480 #. type: verbatim
6481 #: ../src/guestfs-actions.pod:356
6482 #, no-wrap
6483 msgid ""
6484 " int\n"
6485 " guestfs_aug_init (guestfs_h *g,\n"
6486 "                   const char *root,\n"
6487 "                   int flags);\n"
6488 "\n"
6489 msgstr ""
6490
6491 # type: textblock
6492 #. type: textblock
6493 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:225
6494 msgid ""
6495 "Create a new Augeas handle for editing configuration files.  If there was "
6496 "any previous Augeas handle associated with this guestfs session, then it is "
6497 "closed."
6498 msgstr ""
6499
6500 # type: textblock
6501 #. type: textblock
6502 #: ../src/guestfs-actions.pod:365
6503 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6504 msgstr ""
6505
6506 # type: textblock
6507 #. type: textblock
6508 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:232
6509 msgid ""
6510 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6511 msgstr ""
6512
6513 # type: textblock
6514 #. type: textblock
6515 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:235
6516 msgid ""
6517 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6518 "logical I<or> of the following integers:"
6519 msgstr ""
6520
6521 # type: =item
6522 #. type: =item
6523 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:241
6524 msgid "C<AUG_SAVE_BACKUP> = 1"
6525 msgstr ""
6526
6527 # type: textblock
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
6530 msgid "Keep the original file with a C<.augsave> extension."
6531 msgstr ""
6532
6533 # type: =item
6534 #. type: =item
6535 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
6536 msgid "C<AUG_SAVE_NEWFILE> = 2"
6537 msgstr ""
6538
6539 # type: textblock
6540 #. type: textblock
6541 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
6542 msgid ""
6543 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6544 "original.  Overrides C<AUG_SAVE_BACKUP>."
6545 msgstr ""
6546
6547 # type: =item
6548 #. type: =item
6549 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:250
6550 msgid "C<AUG_TYPE_CHECK> = 4"
6551 msgstr ""
6552
6553 # type: textblock
6554 #. type: textblock
6555 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
6556 msgid "Typecheck lenses (can be expensive)."
6557 msgstr ""
6558
6559 # type: =item
6560 #. type: =item
6561 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
6562 msgid "C<AUG_NO_STDINC> = 8"
6563 msgstr ""
6564
6565 # type: textblock
6566 #. type: textblock
6567 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
6568 msgid "Do not use standard load path for modules."
6569 msgstr ""
6570
6571 # type: =item
6572 #. type: =item
6573 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
6574 msgid "C<AUG_SAVE_NOOP> = 16"
6575 msgstr ""
6576
6577 # type: textblock
6578 #. type: textblock
6579 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
6580 msgid "Make save a no-op, just record what would have been changed."
6581 msgstr ""
6582
6583 # type: =item
6584 #. type: =item
6585 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
6586 msgid "C<AUG_NO_LOAD> = 32"
6587 msgstr ""
6588
6589 # type: textblock
6590 #. type: textblock
6591 #: ../src/guestfs-actions.pod:400
6592 msgid "Do not load the tree in C<guestfs_aug_init>."
6593 msgstr ""
6594
6595 # type: textblock
6596 #. type: textblock
6597 #: ../src/guestfs-actions.pod:404
6598 msgid "To close the handle, you can call C<guestfs_aug_close>."
6599 msgstr ""
6600
6601 # type: textblock
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:270
6604 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6605 msgstr ""
6606
6607 # type: =head2
6608 #. type: =head2
6609 #: ../src/guestfs-actions.pod:412
6610 msgid "guestfs_aug_insert"
6611 msgstr ""
6612
6613 # type: verbatim
6614 #. type: verbatim
6615 #: ../src/guestfs-actions.pod:414
6616 #, no-wrap
6617 msgid ""
6618 " int\n"
6619 " guestfs_aug_insert (guestfs_h *g,\n"
6620 "                     const char *augpath,\n"
6621 "                     const char *label,\n"
6622 "                     int before);\n"
6623 "\n"
6624 msgstr ""
6625
6626 # type: textblock
6627 #. type: textblock
6628 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:276
6629 msgid ""
6630 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6631 "or after C<path> (depending on the boolean flag C<before>)."
6632 msgstr ""
6633
6634 # type: textblock
6635 #. type: textblock
6636 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:280
6637 msgid ""
6638 "C<path> must match exactly one existing node in the tree, and C<label> must "
6639 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6640 msgstr ""
6641
6642 # type: =head2
6643 #. type: =head2
6644 #: ../src/guestfs-actions.pod:432
6645 msgid "guestfs_aug_load"
6646 msgstr ""
6647
6648 # type: verbatim
6649 #. type: verbatim
6650 #: ../src/guestfs-actions.pod:434
6651 #, no-wrap
6652 msgid ""
6653 " int\n"
6654 " guestfs_aug_load (guestfs_h *g);\n"
6655 "\n"
6656 msgstr ""
6657
6658 # type: textblock
6659 #. type: textblock
6660 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:288
6661 msgid "Load files into the tree."
6662 msgstr ""
6663
6664 # type: textblock
6665 #. type: textblock
6666 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
6667 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6668 msgstr ""
6669
6670 # type: =head2
6671 #. type: =head2
6672 #: ../src/guestfs-actions.pod:446
6673 msgid "guestfs_aug_ls"
6674 msgstr ""
6675
6676 # type: verbatim
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:448
6679 #, no-wrap
6680 msgid ""
6681 " char **\n"
6682 " guestfs_aug_ls (guestfs_h *g,\n"
6683 "                 const char *augpath);\n"
6684 "\n"
6685 msgstr ""
6686
6687 # type: textblock
6688 #. type: textblock
6689 #: ../src/guestfs-actions.pod:452
6690 msgid ""
6691 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6692 "sorting the resulting nodes into alphabetical order."
6693 msgstr ""
6694
6695 # type: textblock
6696 #. type: textblock
6697 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
6698 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
6699 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
6700 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
6701 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2178
6702 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
6703 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
6704 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
6705 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2822
6706 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3322
6707 #: ../src/guestfs-actions.pod:3384 ../src/guestfs-actions.pod:3489
6708 #: ../src/guestfs-actions.pod:3894 ../src/guestfs-actions.pod:4578
6709 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5224
6710 #: ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:5989
6711 #: ../src/guestfs-actions.pod:6050 ../src/guestfs-actions.pod:6105
6712 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6275
6713 #: ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:6777
6714 #: ../src/guestfs-actions.pod:6824 ../src/guestfs-actions.pod:6989
6715 #: ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7093
6716 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7158
6717 #: ../src/guestfs-actions.pod:7177
6718 msgid ""
6719 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6720 ">), or NULL if there was an error.  I<The caller must free the strings and "
6721 "the array after use>."
6722 msgstr ""
6723
6724 # type: textblock
6725 #. type: textblock
6726 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
6727 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
6728 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3146
6729 #: ../src/guestfs-actions.pod:3735 ../src/guestfs-actions.pod:3785
6730 #: ../src/guestfs-actions.pod:3972 ../src/guestfs-actions.pod:4005
6731 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4582
6732 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5417
6733 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5443
6734 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:6489
6735 #: ../src/guestfs-actions.pod:6502 ../src/guestfs-actions.pod:6741
6736 #: ../src/guestfs-actions.pod:6977
6737 msgid "(Added in 0.8)"
6738 msgstr ""
6739
6740 # type: =head2
6741 #. type: =head2
6742 #: ../src/guestfs-actions.pod:461
6743 msgid "guestfs_aug_match"
6744 msgstr ""
6745
6746 # type: verbatim
6747 #. type: verbatim
6748 #: ../src/guestfs-actions.pod:463
6749 #, no-wrap
6750 msgid ""
6751 " char **\n"
6752 " guestfs_aug_match (guestfs_h *g,\n"
6753 "                    const char *augpath);\n"
6754 "\n"
6755 msgstr ""
6756
6757 # type: textblock
6758 #. type: textblock
6759 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:304
6760 msgid ""
6761 "Returns a list of paths which match the path expression C<path>.  The "
6762 "returned paths are sufficiently qualified so that they match exactly one "
6763 "node in the current tree."
6764 msgstr ""
6765
6766 # type: =head2
6767 #. type: =head2
6768 #: ../src/guestfs-actions.pod:477
6769 msgid "guestfs_aug_mv"
6770 msgstr ""
6771
6772 # type: verbatim
6773 #. type: verbatim
6774 #: ../src/guestfs-actions.pod:479
6775 #, no-wrap
6776 msgid ""
6777 " int\n"
6778 " guestfs_aug_mv (guestfs_h *g,\n"
6779 "                 const char *src,\n"
6780 "                 const char *dest);\n"
6781 "\n"
6782 msgstr ""
6783
6784 # type: textblock
6785 #. type: textblock
6786 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:312
6787 msgid ""
6788 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6789 "C<dest> is overwritten if it exists."
6790 msgstr ""
6791
6792 # type: =head2
6793 #. type: =head2
6794 #: ../src/guestfs-actions.pod:491
6795 msgid "guestfs_aug_rm"
6796 msgstr ""
6797
6798 # type: verbatim
6799 #. type: verbatim
6800 #: ../src/guestfs-actions.pod:493
6801 #, no-wrap
6802 msgid ""
6803 " int\n"
6804 " guestfs_aug_rm (guestfs_h *g,\n"
6805 "                 const char *augpath);\n"
6806 "\n"
6807 msgstr ""
6808
6809 # type: textblock
6810 #. type: textblock
6811 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:319
6812 msgid "Remove C<path> and all of its children."
6813 msgstr ""
6814
6815 # type: textblock
6816 #. type: textblock
6817 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
6818 msgid "On success this returns the number of entries which were removed."
6819 msgstr ""
6820
6821 # type: =head2
6822 #. type: =head2
6823 #: ../src/guestfs-actions.pod:505
6824 msgid "guestfs_aug_save"
6825 msgstr ""
6826
6827 # type: verbatim
6828 #. type: verbatim
6829 #: ../src/guestfs-actions.pod:507
6830 #, no-wrap
6831 msgid ""
6832 " int\n"
6833 " guestfs_aug_save (guestfs_h *g);\n"
6834 "\n"
6835 msgstr ""
6836
6837 # type: textblock
6838 #. type: textblock
6839 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:327
6840 msgid "This writes all pending changes to disk."
6841 msgstr ""
6842
6843 # type: textblock
6844 #. type: textblock
6845 #: ../src/guestfs-actions.pod:512
6846 msgid ""
6847 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6848 "are saved."
6849 msgstr ""
6850
6851 # type: =head2
6852 #. type: =head2
6853 #: ../src/guestfs-actions.pod:519
6854 msgid "guestfs_aug_set"
6855 msgstr ""
6856
6857 # type: verbatim
6858 #. type: verbatim
6859 #: ../src/guestfs-actions.pod:521
6860 #, no-wrap
6861 msgid ""
6862 " int\n"
6863 " guestfs_aug_set (guestfs_h *g,\n"
6864 "                  const char *augpath,\n"
6865 "                  const char *val);\n"
6866 "\n"
6867 msgstr ""
6868
6869 # type: textblock
6870 #. type: textblock
6871 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:336
6872 msgid "Set the value associated with C<path> to C<val>."
6873 msgstr ""
6874
6875 # type: textblock
6876 #. type: textblock
6877 #: ../src/guestfs-actions.pod:528
6878 msgid ""
6879 "In the Augeas API, it is possible to clear a node by setting the value to "
6880 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6881 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6882 msgstr ""
6883
6884 # type: =head2
6885 #. type: =head2
6886 #: ../src/guestfs-actions.pod:537
6887 msgid "guestfs_available"
6888 msgstr ""
6889
6890 # type: verbatim
6891 #. type: verbatim
6892 #: ../src/guestfs-actions.pod:539
6893 #, no-wrap
6894 msgid ""
6895 " int\n"
6896 " guestfs_available (guestfs_h *g,\n"
6897 "                    char *const *groups);\n"
6898 "\n"
6899 msgstr ""
6900
6901 # type: textblock
6902 #. type: textblock
6903 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:347
6904 msgid ""
6905 "This command is used to check the availability of some groups of "
6906 "functionality in the appliance, which not all builds of the libguestfs "
6907 "appliance will be able to provide."
6908 msgstr ""
6909
6910 # type: textblock
6911 #. type: textblock
6912 #: ../src/guestfs-actions.pod:547
6913 msgid ""
6914 "The libguestfs groups, and the functions that those groups correspond to, "
6915 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6916 "runtime by calling C<guestfs_available_all_groups>."
6917 msgstr ""
6918
6919 # type: textblock
6920 #. type: textblock
6921 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:356
6922 msgid ""
6923 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6924 "\"]> would check for the availability of the Linux inotify functions and "
6925 "Augeas (configuration file editing) functions."
6926 msgstr ""
6927
6928 # type: textblock
6929 #. type: textblock
6930 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:361
6931 msgid "The command returns no error if I<all> requested groups are available."
6932 msgstr ""
6933
6934 # type: textblock
6935 #. type: textblock
6936 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
6937 msgid ""
6938 "It fails with an error if one or more of the requested groups is unavailable "
6939 "in the appliance."
6940 msgstr ""
6941
6942 # type: textblock
6943 #. type: textblock
6944 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:366
6945 msgid ""
6946 "If an unknown group name is included in the list of groups then an error is "
6947 "always returned."
6948 msgstr ""
6949
6950 # type: textblock
6951 #. type: textblock
6952 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:369
6953 msgid "I<Notes:>"
6954 msgstr ""
6955
6956 # type: textblock
6957 #. type: textblock
6958 #: ../src/guestfs-actions.pod:571
6959 msgid "You must call C<guestfs_launch> before calling this function."
6960 msgstr ""
6961
6962 # type: textblock
6963 #. type: textblock
6964 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:377
6965 msgid ""
6966 "The reason is because we don't know what groups are supported by the "
6967 "appliance/daemon until it is running and can be queried."
6968 msgstr ""
6969
6970 # type: textblock
6971 #. type: textblock
6972 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:383
6973 msgid ""
6974 "If a group of functions is available, this does not necessarily mean that "
6975 "they will work.  You still have to check for errors when calling individual "
6976 "API functions even if they are available."
6977 msgstr ""
6978
6979 # type: textblock
6980 #. type: textblock
6981 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:390
6982 msgid ""
6983 "It is usually the job of distro packagers to build complete functionality "
6984 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6985 "with all requirements satisfied, will support everything."
6986 msgstr ""
6987
6988 # type: textblock
6989 #. type: textblock
6990 #: ../src/guestfs-actions.pod:593
6991 msgid ""
6992 "This call was added in version C<1.0.80>.  In previous versions of "
6993 "libguestfs all you could do would be to speculatively execute a command to "
6994 "find out if the daemon implemented it.  See also C<guestfs_version>."
6995 msgstr ""
6996
6997 # type: textblock
6998 #. type: textblock
6999 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
7000 msgid "(Added in 1.0.80)"
7001 msgstr ""
7002
7003 # type: =head2
7004 #. type: =head2
7005 #: ../src/guestfs-actions.pod:604
7006 msgid "guestfs_available_all_groups"
7007 msgstr ""
7008
7009 # type: verbatim
7010 #. type: verbatim
7011 #: ../src/guestfs-actions.pod:606
7012 #, no-wrap
7013 msgid ""
7014 " char **\n"
7015 " guestfs_available_all_groups (guestfs_h *g);\n"
7016 "\n"
7017 msgstr ""
7018
7019 # type: textblock
7020 #. type: textblock
7021 #: ../src/guestfs-actions.pod:609
7022 msgid ""
7023 "This command returns a list of all optional groups that this daemon knows "
7024 "about.  Note this returns both supported and unsupported groups.  To find "
7025 "out which ones the daemon can actually support you have to call "
7026 "C<guestfs_available> on each member of the returned list."
7027 msgstr ""
7028
7029 # type: textblock
7030 #. type: textblock
7031 #: ../src/guestfs-actions.pod:615
7032 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7033 msgstr ""
7034
7035 # type: textblock
7036 #. type: textblock
7037 #: ../src/guestfs-actions.pod:621
7038 msgid "(Added in 1.3.15)"
7039 msgstr ""
7040
7041 # type: =head2
7042 #. type: =head2
7043 #: ../src/guestfs-actions.pod:623
7044 msgid "guestfs_base64_in"
7045 msgstr ""
7046
7047 # type: verbatim
7048 #. type: verbatim
7049 #: ../src/guestfs-actions.pod:625
7050 #, no-wrap
7051 msgid ""
7052 " int\n"
7053 " guestfs_base64_in (guestfs_h *g,\n"
7054 "                    const char *base64file,\n"
7055 "                    const char *filename);\n"
7056 "\n"
7057 msgstr ""
7058
7059 # type: textblock
7060 #. type: textblock
7061 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:420
7062 msgid ""
7063 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7064 msgstr ""
7065
7066 # type: textblock
7067 #. type: textblock
7068 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
7069 msgid "(Added in 1.3.5)"
7070 msgstr ""
7071
7072 # type: =head2
7073 #. type: =head2
7074 #: ../src/guestfs-actions.pod:637
7075 msgid "guestfs_base64_out"
7076 msgstr ""
7077
7078 # type: verbatim
7079 #. type: verbatim
7080 #: ../src/guestfs-actions.pod:639
7081 #, no-wrap
7082 msgid ""
7083 " int\n"
7084 " guestfs_base64_out (guestfs_h *g,\n"
7085 "                     const char *filename,\n"
7086 "                     const char *base64file);\n"
7087 "\n"
7088 msgstr ""
7089
7090 # type: textblock
7091 #. type: textblock
7092 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:429
7093 msgid ""
7094 "This command downloads the contents of C<filename>, writing it out to local "
7095 "file C<base64file> encoded as base64."
7096 msgstr ""
7097
7098 # type: =head2
7099 #. type: =head2
7100 #: ../src/guestfs-actions.pod:651
7101 msgid "guestfs_blockdev_flushbufs"
7102 msgstr ""
7103
7104 # type: verbatim
7105 #. type: verbatim
7106 #: ../src/guestfs-actions.pod:653
7107 #, no-wrap
7108 msgid ""
7109 " int\n"
7110 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7111 "                             const char *device);\n"
7112 "\n"
7113 msgstr ""
7114
7115 # type: textblock
7116 #. type: textblock
7117 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:438
7118 msgid ""
7119 "This tells the kernel to flush internal buffers associated with C<device>."
7120 msgstr ""
7121
7122 # type: textblock
7123 #. type: textblock
7124 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
7125 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
7126 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
7127 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
7128 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
7129 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:452
7130 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:471
7131 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:496
7132 #: ../fish/guestfish-actions.pod:504 ../fish/guestfish-actions.pod:515
7133 #: ../fish/guestfish-actions.pod:523 ../fish/guestfish-actions.pod:531
7134 msgid "This uses the L<blockdev(8)> command."
7135 msgstr ""
7136
7137 # type: textblock
7138 #. type: textblock
7139 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
7140 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
7141 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
7142 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
7143 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
7144 msgid "(Added in 0.9.3)"
7145 msgstr ""
7146
7147 # type: =head2
7148 #. type: =head2
7149 #: ../src/guestfs-actions.pod:666
7150 msgid "guestfs_blockdev_getbsz"
7151 msgstr ""
7152
7153 # type: verbatim
7154 #. type: verbatim
7155 #: ../src/guestfs-actions.pod:668
7156 #, no-wrap
7157 msgid ""
7158 " int\n"
7159 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7160 "                          const char *device);\n"
7161 "\n"
7162 msgstr ""
7163
7164 # type: textblock
7165 #. type: textblock
7166 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:447
7167 msgid "This returns the block size of a device."
7168 msgstr ""
7169
7170 # type: textblock
7171 #. type: textblock
7172 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
7173 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:512
7174 msgid ""
7175 "(Note this is different from both I<size in blocks> and I<filesystem block "
7176 "size>)."
7177 msgstr ""
7178
7179 # type: =head2
7180 #. type: =head2
7181 #: ../src/guestfs-actions.pod:683
7182 msgid "guestfs_blockdev_getro"
7183 msgstr ""
7184
7185 # type: verbatim
7186 #. type: verbatim
7187 #: ../src/guestfs-actions.pod:685
7188 #, no-wrap
7189 msgid ""
7190 " int\n"
7191 " guestfs_blockdev_getro (guestfs_h *g,\n"
7192 "                         const char *device);\n"
7193 "\n"
7194 msgstr ""
7195
7196 # type: textblock
7197 #. type: textblock
7198 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:458
7199 msgid ""
7200 "Returns a boolean indicating if the block device is read-only (true if read-"
7201 "only, false if not)."
7202 msgstr ""
7203
7204 # type: textblock
7205 #. type: textblock
7206 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
7207 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
7208 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
7209 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
7210 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
7211 #: ../src/guestfs-actions.pod:3054 ../src/guestfs-actions.pod:3068
7212 #: ../src/guestfs-actions.pod:3083 ../src/guestfs-actions.pod:3097
7213 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3128
7214 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3158
7215 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3185
7216 #: ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3215
7217 #: ../src/guestfs-actions.pod:4727
7218 msgid "This function returns a C truth value on success or -1 on error."
7219 msgstr ""
7220
7221 # type: =head2
7222 #. type: =head2
7223 #: ../src/guestfs-actions.pod:698
7224 msgid "guestfs_blockdev_getsize64"
7225 msgstr ""
7226
7227 # type: verbatim
7228 #. type: verbatim
7229 #: ../src/guestfs-actions.pod:700
7230 #, no-wrap
7231 msgid ""
7232 " int64_t\n"
7233 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7234 "                             const char *device);\n"
7235 "\n"
7236 msgstr ""
7237
7238 # type: textblock
7239 #. type: textblock
7240 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:467
7241 msgid "This returns the size of the device in bytes."
7242 msgstr ""
7243
7244 # type: textblock
7245 #. type: textblock
7246 #: ../src/guestfs-actions.pod:706
7247 msgid "See also C<guestfs_blockdev_getsz>."
7248 msgstr ""
7249
7250 # type: =head2
7251 #. type: =head2
7252 #: ../src/guestfs-actions.pod:714
7253 msgid "guestfs_blockdev_getss"
7254 msgstr ""
7255
7256 # type: verbatim
7257 #. type: verbatim
7258 #: ../src/guestfs-actions.pod:716
7259 #, no-wrap
7260 msgid ""
7261 " int\n"
7262 " guestfs_blockdev_getss (guestfs_h *g,\n"
7263 "                         const char *device);\n"
7264 "\n"
7265 msgstr ""
7266
7267 # type: textblock
7268 #. type: textblock
7269 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:477
7270 msgid ""
7271 "This returns the size of sectors on a block device.  Usually 512, but can be "
7272 "larger for modern devices."
7273 msgstr ""
7274
7275 # type: textblock
7276 #. type: textblock
7277 #: ../src/guestfs-actions.pod:723
7278 msgid ""
7279 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7280 "that)."
7281 msgstr ""
7282
7283 # type: =head2
7284 #. type: =head2
7285 #: ../src/guestfs-actions.pod:732
7286 msgid "guestfs_blockdev_getsz"
7287 msgstr ""
7288
7289 # type: verbatim
7290 #. type: verbatim
7291 #: ../src/guestfs-actions.pod:734
7292 #, no-wrap
7293 msgid ""
7294 " int64_t\n"
7295 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7296 "                         const char *device);\n"
7297 "\n"
7298 msgstr ""
7299
7300 # type: textblock
7301 #. type: textblock
7302 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:489
7303 msgid ""
7304 "This returns the size of the device in units of 512-byte sectors (even if "
7305 "the sectorsize isn't 512 bytes ... weird)."
7306 msgstr ""
7307
7308 # type: textblock
7309 #. type: textblock
7310 #: ../src/guestfs-actions.pod:741
7311 msgid ""
7312 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7313 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7314 msgstr ""
7315
7316 # type: =head2
7317 #. type: =head2
7318 #: ../src/guestfs-actions.pod:751
7319 msgid "guestfs_blockdev_rereadpt"
7320 msgstr ""
7321
7322 # type: verbatim
7323 #. type: verbatim
7324 #: ../src/guestfs-actions.pod:753
7325 #, no-wrap
7326 msgid ""
7327 " int\n"
7328 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7329 "                            const char *device);\n"
7330 "\n"
7331 msgstr ""
7332
7333 # type: textblock
7334 #. type: textblock
7335 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:502
7336 msgid "Reread the partition table on C<device>."
7337 msgstr ""
7338
7339 # type: =head2
7340 #. type: =head2
7341 #: ../src/guestfs-actions.pod:765
7342 msgid "guestfs_blockdev_setbsz"
7343 msgstr ""
7344
7345 # type: verbatim
7346 #. type: verbatim
7347 #: ../src/guestfs-actions.pod:767
7348 #, no-wrap
7349 msgid ""
7350 " int\n"
7351 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7352 "                          const char *device,\n"
7353 "                          int blocksize);\n"
7354 "\n"
7355 msgstr ""
7356
7357 # type: textblock
7358 #. type: textblock
7359 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:510
7360 msgid "This sets the block size of a device."
7361 msgstr ""
7362
7363 # type: =head2
7364 #. type: =head2
7365 #: ../src/guestfs-actions.pod:783
7366 msgid "guestfs_blockdev_setro"
7367 msgstr ""
7368
7369 # type: verbatim
7370 #. type: verbatim
7371 #: ../src/guestfs-actions.pod:785
7372 #, no-wrap
7373 msgid ""
7374 " int\n"
7375 " guestfs_blockdev_setro (guestfs_h *g,\n"
7376 "                         const char *device);\n"
7377 "\n"
7378 msgstr ""
7379
7380 # type: textblock
7381 #. type: textblock
7382 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:521
7383 msgid "Sets the block device named C<device> to read-only."
7384 msgstr ""
7385
7386 # type: =head2
7387 #. type: =head2
7388 #: ../src/guestfs-actions.pod:797
7389 msgid "guestfs_blockdev_setrw"
7390 msgstr ""
7391
7392 # type: verbatim
7393 #. type: verbatim
7394 #: ../src/guestfs-actions.pod:799
7395 #, no-wrap
7396 msgid ""
7397 " int\n"
7398 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7399 "                         const char *device);\n"
7400 "\n"
7401 msgstr ""
7402
7403 # type: textblock
7404 #. type: textblock
7405 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:529
7406 msgid "Sets the block device named C<device> to read-write."
7407 msgstr ""
7408
7409 # type: =head2
7410 #. type: =head2
7411 #: ../src/guestfs-actions.pod:811
7412 msgid "guestfs_case_sensitive_path"
7413 msgstr ""
7414
7415 # type: verbatim
7416 #. type: verbatim
7417 #: ../src/guestfs-actions.pod:813
7418 #, no-wrap
7419 msgid ""
7420 " char *\n"
7421 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7422 "                              const char *path);\n"
7423 "\n"
7424 msgstr ""
7425
7426 # type: textblock
7427 #. type: textblock
7428 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:537
7429 msgid ""
7430 "This can be used to resolve case insensitive paths on a filesystem which is "
7431 "case sensitive.  The use case is to resolve paths which you have read from "
7432 "Windows configuration files or the Windows Registry, to the true path."
7433 msgstr ""
7434
7435 # type: textblock
7436 #. type: textblock
7437 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:542
7438 msgid ""
7439 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7440 "(and probably others), which is that although the underlying filesystem is "
7441 "case-insensitive, the driver exports the filesystem to Linux as case-"
7442 "sensitive."
7443 msgstr ""
7444
7445 # type: textblock
7446 #. type: textblock
7447 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:547
7448 msgid ""
7449 "One consequence of this is that special directories such as C<c:\\windows> "
7450 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7451 "precise details of how they were created.  In Windows itself this would not "
7452 "be a problem."
7453 msgstr ""
7454
7455 # type: textblock
7456 #. type: textblock
7457 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:553
7458 msgid ""
7459 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7460 "#posixfilenames1>"
7461 msgstr ""
7462
7463 # type: textblock
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:556
7466 msgid ""
7467 "This function resolves the true case of each element in the path and returns "
7468 "the case-sensitive path."
7469 msgstr ""
7470
7471 # type: textblock
7472 #. type: textblock
7473 #: ../src/guestfs-actions.pod:839
7474 msgid ""
7475 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7476 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7477 "how the directories were originally created under Windows)."
7478 msgstr ""
7479
7480 # type: textblock
7481 #. type: textblock
7482 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:564
7483 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7484 msgstr ""
7485
7486 # type: textblock
7487 #. type: textblock
7488 #: ../src/guestfs-actions.pod:847
7489 msgid "See also C<guestfs_realpath>."
7490 msgstr ""
7491
7492 # type: textblock
7493 #. type: textblock
7494 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6669
7495 msgid "(Added in 1.0.75)"
7496 msgstr ""
7497
7498 # type: =head2
7499 #. type: =head2
7500 #: ../src/guestfs-actions.pod:854
7501 msgid "guestfs_cat"
7502 msgstr ""
7503
7504 # type: verbatim
7505 #. type: verbatim
7506 #: ../src/guestfs-actions.pod:856
7507 #, no-wrap
7508 msgid ""
7509 " char *\n"
7510 " guestfs_cat (guestfs_h *g,\n"
7511 "              const char *path);\n"
7512 "\n"
7513 msgstr ""
7514
7515 # type: textblock
7516 #. type: textblock
7517 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5214
7518 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3466
7519 msgid "Return the contents of the file named C<path>."
7520 msgstr ""
7521
7522 # type: textblock
7523 #. type: textblock
7524 #: ../src/guestfs-actions.pod:862
7525 msgid ""
7526 "Note that this function cannot correctly handle binary files (specifically, "
7527 "files containing C<\\0> character which is treated as end of string).  For "
7528 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7529 "functions which have a more complex interface."
7530 msgstr ""
7531
7532 # type: textblock
7533 #. type: textblock
7534 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
7535 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
7536 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
7537 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
7538 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
7539 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
7540 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
7541 #: ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5022
7542 #: ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5179
7543 #: ../src/guestfs-actions.pod:5203 ../src/guestfs-actions.pod:6054
7544 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6255
7545 #: ../src/guestfs-actions.pod:6279 ../src/guestfs-actions.pod:6941
7546 #: ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6993
7547 #: ../src/guestfs-actions.pod:7012 ../src/guestfs-actions.pod:7097
7548 #: ../src/guestfs-actions.pod:7116 ../src/guestfs-actions.pod:7162
7549 #: ../src/guestfs-actions.pod:7181 ../fish/guestfish-actions.pod:580
7550 #: ../fish/guestfish-actions.pod:715 ../fish/guestfish-actions.pod:727
7551 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:913
7552 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990
7553 #: ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1480
7554 #: ../fish/guestfish-actions.pod:1490 ../fish/guestfish-actions.pod:1518
7555 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:1543
7556 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:3336
7557 #: ../fish/guestfish-actions.pod:3351 ../fish/guestfish-actions.pod:3427
7558 #: ../fish/guestfish-actions.pod:3444 ../fish/guestfish-actions.pod:3459
7559 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4088
7560 #: ../fish/guestfish-actions.pod:4173 ../fish/guestfish-actions.pod:4188
7561 #: ../fish/guestfish-actions.pod:4598 ../fish/guestfish-actions.pod:4616
7562 #: ../fish/guestfish-actions.pod:4633 ../fish/guestfish-actions.pod:4643
7563 #: ../fish/guestfish-actions.pod:4691 ../fish/guestfish-actions.pod:4701
7564 #: ../fish/guestfish-actions.pod:4730 ../fish/guestfish-actions.pod:4740
7565 msgid ""
7566 "Because of the message protocol, there is a transfer limit of somewhere "
7567 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7568 msgstr ""
7569
7570 # type: textblock
7571 #. type: textblock
7572 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3326
7573 #: ../src/guestfs-actions.pod:3388 ../src/guestfs-actions.pod:3405
7574 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3898
7575 #: ../src/guestfs-actions.pod:3912 ../src/guestfs-actions.pod:5102
7576 #: ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:6828
7577 #: ../src/guestfs-actions.pod:6842
7578 msgid "(Added in 0.4)"
7579 msgstr ""
7580
7581 # type: =head2
7582 #. type: =head2
7583 #: ../src/guestfs-actions.pod:875
7584 msgid "guestfs_checksum"
7585 msgstr ""
7586
7587 # type: verbatim
7588 #. type: verbatim
7589 #: ../src/guestfs-actions.pod:877
7590 #, no-wrap
7591 msgid ""
7592 " char *\n"
7593 " guestfs_checksum (guestfs_h *g,\n"
7594 "                   const char *csumtype,\n"
7595 "                   const char *path);\n"
7596 "\n"
7597 msgstr ""
7598
7599 # type: textblock
7600 #. type: textblock
7601 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:587
7602 msgid ""
7603 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7604 msgstr ""
7605
7606 # type: textblock
7607 #. type: textblock
7608 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:590
7609 msgid ""
7610 "The type of checksum to compute is given by the C<csumtype> parameter which "
7611 "must have one of the following values:"
7612 msgstr ""
7613
7614 # type: =item
7615 #. type: =item
7616 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:595
7617 msgid "C<crc>"
7618 msgstr ""
7619
7620 # type: textblock
7621 #. type: textblock
7622 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
7623 msgid ""
7624 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7625 "C<cksum> command."
7626 msgstr ""
7627
7628 # type: =item
7629 #. type: =item
7630 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:600
7631 msgid "C<md5>"
7632 msgstr ""
7633
7634 # type: textblock
7635 #. type: textblock
7636 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
7637 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7638 msgstr ""
7639
7640 # type: =item
7641 #. type: =item
7642 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
7643 msgid "C<sha1>"
7644 msgstr ""
7645
7646 # type: textblock
7647 #. type: textblock
7648 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
7649 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7650 msgstr ""
7651
7652 # type: =item
7653 #. type: =item
7654 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
7655 msgid "C<sha224>"
7656 msgstr ""
7657
7658 # type: textblock
7659 #. type: textblock
7660 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
7661 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7662 msgstr ""
7663
7664 # type: =item
7665 #. type: =item
7666 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
7667 msgid "C<sha256>"
7668 msgstr ""
7669
7670 # type: textblock
7671 #. type: textblock
7672 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
7673 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7674 msgstr ""
7675
7676 # type: =item
7677 #. type: =item
7678 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
7679 msgid "C<sha384>"
7680 msgstr ""
7681
7682 # type: textblock
7683 #. type: textblock
7684 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
7685 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7686 msgstr ""
7687
7688 # type: =item
7689 #. type: =item
7690 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
7691 msgid "C<sha512>"
7692 msgstr ""
7693
7694 # type: textblock
7695 #. type: textblock
7696 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
7697 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7698 msgstr ""
7699
7700 # type: textblock
7701 #. type: textblock
7702 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:626
7703 msgid "The checksum is returned as a printable string."
7704 msgstr ""
7705
7706 # type: textblock
7707 #. type: textblock
7708 #: ../src/guestfs-actions.pod:923
7709 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7710 msgstr ""
7711
7712 # type: textblock
7713 #. type: textblock
7714 #: ../src/guestfs-actions.pod:925
7715 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7716 msgstr ""
7717
7718 # type: textblock
7719 #. type: textblock
7720 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
7721 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3070
7722 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3160
7723 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:6525
7724 msgid "(Added in 1.0.2)"
7725 msgstr ""
7726
7727 # type: =head2
7728 #. type: =head2
7729 #: ../src/guestfs-actions.pod:932
7730 msgid "guestfs_checksum_device"
7731 msgstr ""
7732
7733 # type: verbatim
7734 #. type: verbatim
7735 #: ../src/guestfs-actions.pod:934
7736 #, no-wrap
7737 msgid ""
7738 " char *\n"
7739 " guestfs_checksum_device (guestfs_h *g,\n"
7740 "                          const char *csumtype,\n"
7741 "                          const char *device);\n"
7742 "\n"
7743 msgstr ""
7744
7745 # type: textblock
7746 #. type: textblock
7747 #: ../src/guestfs-actions.pod:939
7748 msgid ""
7749 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7750 "device named C<device>.  For the types of checksums supported see the "
7751 "C<guestfs_checksum> command."
7752 msgstr ""
7753
7754 # type: textblock
7755 #. type: textblock
7756 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4633
7757 #: ../src/guestfs-actions.pod:4692 ../src/guestfs-actions.pod:4729
7758 #: ../src/guestfs-actions.pod:4747 ../src/guestfs-actions.pod:4923
7759 #: ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6448
7760 #: ../src/guestfs-actions.pod:6854
7761 msgid "(Added in 1.3.2)"
7762 msgstr ""
7763
7764 # type: =head2
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:948
7767 msgid "guestfs_checksums_out"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #. type: verbatim
7772 #: ../src/guestfs-actions.pod:950
7773 #, no-wrap
7774 msgid ""
7775 " int\n"
7776 " guestfs_checksums_out (guestfs_h *g,\n"
7777 "                        const char *csumtype,\n"
7778 "                        const char *directory,\n"
7779 "                        const char *sumsfile);\n"
7780 "\n"
7781 msgstr ""
7782
7783 # type: textblock
7784 #. type: textblock
7785 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:644
7786 msgid ""
7787 "This command computes the checksums of all regular files in C<directory> and "
7788 "then emits a list of those checksums to the local output file C<sumsfile>."
7789 msgstr ""
7790
7791 # type: textblock
7792 #. type: textblock
7793 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:648
7794 msgid ""
7795 "This can be used for verifying the integrity of a virtual machine.  However "
7796 "to be properly secure you should pay attention to the output of the checksum "
7797 "command (it uses the ones from GNU coreutils).  In particular when the "
7798 "filename is not printable, coreutils uses a special backslash syntax.  For "
7799 "more information, see the GNU coreutils info file."
7800 msgstr ""
7801
7802 # type: textblock
7803 #. type: textblock
7804 #: ../src/guestfs-actions.pod:970
7805 msgid "(Added in 1.3.7)"
7806 msgstr ""
7807
7808 # type: =head2
7809 #. type: =head2
7810 #: ../src/guestfs-actions.pod:972
7811 msgid "guestfs_chmod"
7812 msgstr ""
7813
7814 # type: verbatim
7815 #. type: verbatim
7816 #: ../src/guestfs-actions.pod:974
7817 #, no-wrap
7818 msgid ""
7819 " int\n"
7820 " guestfs_chmod (guestfs_h *g,\n"
7821 "                int mode,\n"
7822 "                const char *path);\n"
7823 "\n"
7824 msgstr ""
7825
7826 # type: textblock
7827 #. type: textblock
7828 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:662
7829 msgid ""
7830 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7831 "supported."
7832 msgstr ""
7833
7834 # type: textblock
7835 #. type: textblock
7836 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:665
7837 msgid ""
7838 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7839 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7840 "C<700>."
7841 msgstr ""
7842
7843 # type: textblock
7844 #. type: textblock
7845 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4149
7846 #: ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4351
7847 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:669
7848 #: ../fish/guestfish-actions.pod:2795 ../fish/guestfish-actions.pod:2911
7849 #: ../fish/guestfish-actions.pod:2921 ../fish/guestfish-actions.pod:2931
7850 msgid "The mode actually set is affected by the umask."
7851 msgstr ""
7852
7853 # type: =head2
7854 #. type: =head2
7855 #: ../src/guestfs-actions.pod:992
7856 msgid "guestfs_chown"
7857 msgstr ""
7858
7859 # type: verbatim
7860 #. type: verbatim
7861 #: ../src/guestfs-actions.pod:994
7862 #, no-wrap
7863 msgid ""
7864 " int\n"
7865 " guestfs_chown (guestfs_h *g,\n"
7866 "                int owner,\n"
7867 "                int group,\n"
7868 "                const char *path);\n"
7869 "\n"
7870 msgstr ""
7871
7872 # type: textblock
7873 #. type: textblock
7874 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:675
7875 msgid "Change the file owner to C<owner> and group to C<group>."
7876 msgstr ""
7877
7878 # type: textblock
7879 #. type: textblock
7880 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3257
7881 #: ../fish/guestfish-actions.pod:677 ../fish/guestfish-actions.pod:2253
7882 msgid ""
7883 "Only numeric uid and gid are supported.  If you want to use names, you will "
7884 "need to locate and parse the password file yourself (Augeas support makes "
7885 "this relatively easy)."
7886 msgstr ""
7887
7888 # type: =head2
7889 #. type: =head2
7890 #: ../src/guestfs-actions.pod:1010
7891 msgid "guestfs_command"
7892 msgstr ""
7893
7894 # type: verbatim
7895 #. type: verbatim
7896 #: ../src/guestfs-actions.pod:1012
7897 #, no-wrap
7898 msgid ""
7899 " char *\n"
7900 " guestfs_command (guestfs_h *g,\n"
7901 "                  char *const *arguments);\n"
7902 "\n"
7903 msgstr ""
7904
7905 # type: textblock
7906 #. type: textblock
7907 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:685
7908 msgid ""
7909 "This call runs a command from the guest filesystem.  The filesystem must be "
7910 "mounted, and must contain a compatible operating system (ie. something "
7911 "Linux, with the same or compatible processor architecture)."
7912 msgstr ""
7913
7914 # type: textblock
7915 #. type: textblock
7916 #: ../src/guestfs-actions.pod:1021
7917 msgid ""
7918 "The single parameter is an argv-style list of arguments.  The first element "
7919 "is the name of the program to run.  Subsequent elements are parameters.  The "
7920 "list must be non-empty (ie. must contain a program name).  Note that the "
7921 "command runs directly, and is I<not> invoked via the shell (see "
7922 "C<guestfs_sh>)."
7923 msgstr ""
7924
7925 # type: textblock
7926 #. type: textblock
7927 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:697
7928 msgid "The return value is anything printed to I<stdout> by the command."
7929 msgstr ""
7930
7931 # type: textblock
7932 #. type: textblock
7933 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:700
7934 msgid ""
7935 "If the command returns a non-zero exit status, then this function returns an "
7936 "error message.  The error message string is the content of I<stderr> from "
7937 "the command."
7938 msgstr ""
7939
7940 # type: textblock
7941 #. type: textblock
7942 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:704
7943 msgid ""
7944 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7945 "bin>.  If you require a program from another location, you should provide "
7946 "the full path in the first parameter."
7947 msgstr ""
7948
7949 # type: textblock
7950 #. type: textblock
7951 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:709
7952 msgid ""
7953 "Shared libraries and data files required by the program must be available on "
7954 "filesystems which are mounted in the correct places.  It is the caller's "
7955 "responsibility to ensure all filesystems that are needed are mounted at the "
7956 "right locations."
7957 msgstr ""
7958
7959 # type: textblock
7960 #. type: textblock
7961 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
7962 #: ../src/guestfs-actions.pod:1535
7963 msgid "(Added in 0.9.1)"
7964 msgstr ""
7965
7966 # type: =head2
7967 #. type: =head2
7968 #: ../src/guestfs-actions.pod:1054
7969 msgid "guestfs_command_lines"
7970 msgstr ""
7971
7972 # type: verbatim
7973 #. type: verbatim
7974 #: ../src/guestfs-actions.pod:1056
7975 #, no-wrap
7976 msgid ""
7977 " char **\n"
7978 " guestfs_command_lines (guestfs_h *g,\n"
7979 "                        char *const *arguments);\n"
7980 "\n"
7981 msgstr ""
7982
7983 # type: textblock
7984 #. type: textblock
7985 #: ../src/guestfs-actions.pod:1060
7986 msgid ""
7987 "This is the same as C<guestfs_command>, but splits the result into a list of "
7988 "lines."
7989 msgstr ""
7990
7991 # type: textblock
7992 #. type: textblock
7993 #: ../src/guestfs-actions.pod:1063
7994 msgid "See also: C<guestfs_sh_lines>"
7995 msgstr ""
7996
7997 # type: =head2
7998 #. type: =head2
7999 #: ../src/guestfs-actions.pod:1074
8000 msgid "guestfs_config"
8001 msgstr ""
8002
8003 # type: verbatim
8004 #. type: verbatim
8005 #: ../src/guestfs-actions.pod:1076
8006 #, no-wrap
8007 msgid ""
8008 " int\n"
8009 " guestfs_config (guestfs_h *g,\n"
8010 "                 const char *qemuparam,\n"
8011 "                 const char *qemuvalue);\n"
8012 "\n"
8013 msgstr ""
8014
8015 # type: textblock
8016 #. type: textblock
8017 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:734
8018 msgid ""
8019 "This can be used to add arbitrary qemu command line parameters of the form "
8020 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8021 "setting some parameters which would interfere with parameters that we use."
8022 msgstr ""
8023
8024 # type: textblock
8025 #. type: textblock
8026 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:739
8027 msgid "The first character of C<param> string must be a C<-> (dash)."
8028 msgstr ""
8029
8030 # type: textblock
8031 #. type: textblock
8032 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
8033 msgid "C<value> can be NULL."
8034 msgstr ""
8035
8036 # type: =head2
8037 #. type: =head2
8038 #: ../src/guestfs-actions.pod:1094
8039 msgid "guestfs_copy_size"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #. type: verbatim
8044 #: ../src/guestfs-actions.pod:1096
8045 #, no-wrap
8046 msgid ""
8047 " int\n"
8048 " guestfs_copy_size (guestfs_h *g,\n"
8049 "                    const char *src,\n"
8050 "                    const char *dest,\n"
8051 "                    int64_t size);\n"
8052 "\n"
8053 msgstr ""
8054
8055 # type: textblock
8056 #. type: textblock
8057 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:747
8058 msgid ""
8059 "This command copies exactly C<size> bytes from one source device or file "
8060 "C<src> to another destination device or file C<dest>."
8061 msgstr ""
8062
8063 # type: textblock
8064 #. type: textblock
8065 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:750
8066 msgid ""
8067 "Note this will fail if the source is too short or if the destination is not "
8068 "large enough."
8069 msgstr ""
8070
8071 # type: textblock
8072 #. type: textblock
8073 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
8074 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
8075 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6520
8076 #: ../src/guestfs-actions.pod:6554 ../src/guestfs-actions.pod:7033
8077 #: ../src/guestfs-actions.pod:7052
8078 msgid ""
8079 "This long-running command can generate progress notification messages so "
8080 "that the caller can display a progress bar or indicator.  To receive these "
8081 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8082 "guestfs_set_progress_callback>."
8083 msgstr ""
8084
8085 # type: textblock
8086 #. type: textblock
8087 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:3925
8088 #: ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:6761
8089 #: ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6867
8090 msgid "(Added in 1.0.87)"
8091 msgstr ""
8092
8093 # type: =head2
8094 #. type: =head2
8095 #: ../src/guestfs-actions.pod:1117
8096 msgid "guestfs_cp"
8097 msgstr ""
8098
8099 # type: verbatim
8100 #. type: verbatim
8101 #: ../src/guestfs-actions.pod:1119
8102 #, no-wrap
8103 msgid ""
8104 " int\n"
8105 " guestfs_cp (guestfs_h *g,\n"
8106 "             const char *src,\n"
8107 "             const char *dest);\n"
8108 "\n"
8109 msgstr ""
8110
8111 # type: textblock
8112 #. type: textblock
8113 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:757
8114 msgid ""
8115 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8116 "destination filename or destination directory."
8117 msgstr ""
8118
8119 # type: textblock
8120 #. type: textblock
8121 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
8122 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
8123 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4596
8124 #: ../src/guestfs-actions.pod:4973
8125 msgid "(Added in 1.0.18)"
8126 msgstr ""
8127
8128 # type: =head2
8129 #. type: =head2
8130 #: ../src/guestfs-actions.pod:1131
8131 msgid "guestfs_cp_a"
8132 msgstr ""
8133
8134 # type: verbatim
8135 #. type: verbatim
8136 #: ../src/guestfs-actions.pod:1133
8137 #, no-wrap
8138 msgid ""
8139 " int\n"
8140 " guestfs_cp_a (guestfs_h *g,\n"
8141 "               const char *src,\n"
8142 "               const char *dest);\n"
8143 "\n"
8144 msgstr ""
8145
8146 # type: textblock
8147 #. type: textblock
8148 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:764
8149 msgid ""
8150 "This copies a file or directory from C<src> to C<dest> recursively using the "
8151 "C<cp -a> command."
8152 msgstr ""
8153
8154 # type: =head2
8155 #. type: =head2
8156 #: ../src/guestfs-actions.pod:1145
8157 msgid "guestfs_dd"
8158 msgstr ""
8159
8160 # type: verbatim
8161 #. type: verbatim
8162 #: ../src/guestfs-actions.pod:1147
8163 #, no-wrap
8164 msgid ""
8165 " int\n"
8166 " guestfs_dd (guestfs_h *g,\n"
8167 "             const char *src,\n"
8168 "             const char *dest);\n"
8169 "\n"
8170 msgstr ""
8171
8172 # type: textblock
8173 #. type: textblock
8174 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
8175 msgid ""
8176 "This command copies from one source device or file C<src> to another "
8177 "destination device or file C<dest>.  Normally you would use this to copy to "
8178 "or from a device or partition, for example to duplicate a filesystem."
8179 msgstr ""
8180
8181 # type: textblock
8182 #. type: textblock
8183 #: ../src/guestfs-actions.pod:1157
8184 msgid ""
8185 "If the destination is a device, it must be as large or larger than the "
8186 "source file or device, otherwise the copy will fail.  This command cannot do "
8187 "partial copies (see C<guestfs_copy_size>)."
8188 msgstr ""
8189
8190 # type: =head2
8191 #. type: =head2
8192 #: ../src/guestfs-actions.pod:1165
8193 msgid "guestfs_df"
8194 msgstr ""
8195
8196 # type: verbatim
8197 #. type: verbatim
8198 #: ../src/guestfs-actions.pod:1167
8199 #, no-wrap
8200 msgid ""
8201 " char *\n"
8202 " guestfs_df (guestfs_h *g);\n"
8203 "\n"
8204 msgstr ""
8205
8206 # type: textblock
8207 #. type: textblock
8208 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:784
8209 msgid "This command runs the C<df> command to report disk space used."
8210 msgstr ""
8211
8212 # type: textblock
8213 #. type: textblock
8214 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
8215 msgid ""
8216 "This command is mostly useful for interactive sessions.  It is I<not> "
8217 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8218 "from programs."
8219 msgstr ""
8220
8221 # type: textblock
8222 #. type: textblock
8223 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
8224 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2263
8225 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
8226 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4496
8227 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6282
8228 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6913
8229 #: ../src/guestfs-actions.pod:6926
8230 msgid "(Added in 1.0.54)"
8231 msgstr ""
8232
8233 # type: =head2
8234 #. type: =head2
8235 #: ../src/guestfs-actions.pod:1181
8236 msgid "guestfs_df_h"
8237 msgstr ""
8238
8239 # type: verbatim
8240 #. type: verbatim
8241 #: ../src/guestfs-actions.pod:1183
8242 #, no-wrap
8243 msgid ""
8244 " char *\n"
8245 " guestfs_df_h (guestfs_h *g);\n"
8246 "\n"
8247 msgstr ""
8248
8249 # type: textblock
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:794
8252 msgid ""
8253 "This command runs the C<df -h> command to report disk space used in human-"
8254 "readable format."
8255 msgstr ""
8256
8257 # type: =head2
8258 #. type: =head2
8259 #: ../src/guestfs-actions.pod:1198
8260 msgid "guestfs_dmesg"
8261 msgstr ""
8262
8263 # type: verbatim
8264 #. type: verbatim
8265 #: ../src/guestfs-actions.pod:1200
8266 #, no-wrap
8267 msgid ""
8268 " char *\n"
8269 " guestfs_dmesg (guestfs_h *g);\n"
8270 "\n"
8271 msgstr ""
8272
8273 # type: textblock
8274 #. type: textblock
8275 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:805
8276 msgid ""
8277 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8278 "This is sometimes useful for extended debugging of problems."
8279 msgstr ""
8280
8281 # type: textblock
8282 #. type: textblock
8283 #: ../src/guestfs-actions.pod:1207
8284 msgid ""
8285 "Another way to get the same information is to enable verbose messages with "
8286 "C<guestfs_set_verbose> or by setting the environment variable "
8287 "C<LIBGUESTFS_DEBUG=1> before running the program."
8288 msgstr ""
8289
8290 # type: =head2
8291 #. type: =head2
8292 #: ../src/guestfs-actions.pod:1217
8293 msgid "guestfs_download"
8294 msgstr ""
8295
8296 # type: verbatim
8297 #. type: verbatim
8298 #: ../src/guestfs-actions.pod:1219
8299 #, no-wrap
8300 msgid ""
8301 " int\n"
8302 " guestfs_download (guestfs_h *g,\n"
8303 "                   const char *remotefilename,\n"
8304 "                   const char *filename);\n"
8305 "\n"
8306 msgstr ""
8307
8308 # type: textblock
8309 #. type: textblock
8310 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
8311 #: ../fish/guestfish-actions.pod:818 ../fish/guestfish-actions.pod:831
8312 msgid ""
8313 "Download file C<remotefilename> and save it as C<filename> on the local "
8314 "machine."
8315 msgstr ""
8316
8317 # type: textblock
8318 #. type: textblock
8319 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6514
8320 #: ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4346
8321 msgid "C<filename> can also be a named pipe."
8322 msgstr ""
8323
8324 # type: textblock
8325 #. type: textblock
8326 #: ../src/guestfs-actions.pod:1229
8327 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8328 msgstr ""
8329
8330 # type: =head2
8331 #. type: =head2
8332 #: ../src/guestfs-actions.pod:1240
8333 msgid "guestfs_download_offset"
8334 msgstr ""
8335
8336 # type: verbatim
8337 #. type: verbatim
8338 #: ../src/guestfs-actions.pod:1242
8339 #, no-wrap
8340 msgid ""
8341 " int\n"
8342 " guestfs_download_offset (guestfs_h *g,\n"
8343 "                          const char *remotefilename,\n"
8344 "                          const char *filename,\n"
8345 "                          int64_t offset,\n"
8346 "                          int64_t size);\n"
8347 "\n"
8348 msgstr ""
8349
8350 # type: textblock
8351 #. type: textblock
8352 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:834
8353 msgid ""
8354 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8355 "region must be within the file or device)."
8356 msgstr ""
8357
8358 # type: textblock
8359 #. type: textblock
8360 #: ../src/guestfs-actions.pod:1255
8361 msgid ""
8362 "Note that there is no limit on the amount of data that can be downloaded "
8363 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8364 "full amount unless an error occurs."
8365 msgstr ""
8366
8367 # type: textblock
8368 #. type: textblock
8369 #: ../src/guestfs-actions.pod:1260
8370 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8371 msgstr ""
8372
8373 # type: textblock
8374 #. type: textblock
8375 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6559
8376 msgid "(Added in 1.5.17)"
8377 msgstr ""
8378
8379 # type: =head2
8380 #. type: =head2
8381 #: ../src/guestfs-actions.pod:1271
8382 msgid "guestfs_drop_caches"
8383 msgstr ""
8384
8385 # type: verbatim
8386 #. type: verbatim
8387 #: ../src/guestfs-actions.pod:1273
8388 #, no-wrap
8389 msgid ""
8390 " int\n"
8391 " guestfs_drop_caches (guestfs_h *g,\n"
8392 "                      int whattodrop);\n"
8393 "\n"
8394 msgstr ""
8395
8396 # type: textblock
8397 #. type: textblock
8398 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:850
8399 msgid ""
8400 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8401 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8402 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8403 msgstr ""
8404
8405 # type: textblock
8406 #. type: textblock
8407 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:855
8408 msgid "Setting C<whattodrop> to 3 should drop everything."
8409 msgstr ""
8410
8411 # type: textblock
8412 #. type: textblock
8413 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
8414 msgid ""
8415 "This automatically calls L<sync(2)> before the operation, so that the "
8416 "maximum guest memory is freed."
8417 msgstr ""
8418
8419 # type: =head2
8420 #. type: =head2
8421 #: ../src/guestfs-actions.pod:1291
8422 msgid "guestfs_du"
8423 msgstr ""
8424
8425 # type: verbatim
8426 #. type: verbatim
8427 #: ../src/guestfs-actions.pod:1293
8428 #, no-wrap
8429 msgid ""
8430 " int64_t\n"
8431 " guestfs_du (guestfs_h *g,\n"
8432 "             const char *path);\n"
8433 "\n"
8434 msgstr ""
8435
8436 # type: textblock
8437 #. type: textblock
8438 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:864
8439 msgid ""
8440 "This command runs the C<du -s> command to estimate file space usage for "
8441 "C<path>."
8442 msgstr ""
8443
8444 # type: textblock
8445 #. type: textblock
8446 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:867
8447 msgid ""
8448 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8449 "estimate includes the contents of the directory and all subdirectories "
8450 "(recursively)."
8451 msgstr ""
8452
8453 # type: textblock
8454 #. type: textblock
8455 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:871
8456 msgid ""
8457 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8458 msgstr ""
8459
8460 # type: =head2
8461 #. type: =head2
8462 #: ../src/guestfs-actions.pod:1311
8463 msgid "guestfs_e2fsck_f"
8464 msgstr ""
8465
8466 # type: verbatim
8467 #. type: verbatim
8468 #: ../src/guestfs-actions.pod:1313
8469 #, no-wrap
8470 msgid ""
8471 " int\n"
8472 " guestfs_e2fsck_f (guestfs_h *g,\n"
8473 "                   const char *device);\n"
8474 "\n"
8475 msgstr ""
8476
8477 # type: textblock
8478 #. type: textblock
8479 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:878
8480 msgid ""
8481 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8482 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
8483 "clean (C<-f>)."
8484 msgstr ""
8485
8486 # type: textblock
8487 #. type: textblock
8488 #: ../src/guestfs-actions.pod:1321
8489 msgid ""
8490 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8491 "Normally you should use C<guestfs_fsck>."
8492 msgstr ""
8493
8494 # type: textblock
8495 #. type: textblock
8496 #: ../src/guestfs-actions.pod:1326
8497 msgid "(Added in 1.0.29)"
8498 msgstr ""
8499
8500 # type: =head2
8501 #. type: =head2
8502 #: ../src/guestfs-actions.pod:1328
8503 msgid "guestfs_echo_daemon"
8504 msgstr ""
8505
8506 # type: verbatim
8507 #. type: verbatim
8508 #: ../src/guestfs-actions.pod:1330
8509 #, no-wrap
8510 msgid ""
8511 " char *\n"
8512 " guestfs_echo_daemon (guestfs_h *g,\n"
8513 "                      char *const *words);\n"
8514 "\n"
8515 msgstr ""
8516
8517 # type: textblock
8518 #. type: textblock
8519 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:889
8520 msgid ""
8521 "This command concatenates the list of C<words> passed with single spaces "
8522 "between them and returns the resulting string."
8523 msgstr ""
8524
8525 # type: textblock
8526 #. type: textblock
8527 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:892
8528 msgid "You can use this command to test the connection through to the daemon."
8529 msgstr ""
8530
8531 # type: textblock
8532 #. type: textblock
8533 #: ../src/guestfs-actions.pod:1339
8534 msgid "See also C<guestfs_ping_daemon>."
8535 msgstr ""
8536
8537 # type: textblock
8538 #. type: textblock
8539 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
8540 #: ../src/guestfs-actions.pod:5762
8541 msgid "(Added in 1.0.69)"
8542 msgstr ""
8543
8544 # type: =head2
8545 #. type: =head2
8546 #: ../src/guestfs-actions.pod:1346
8547 msgid "guestfs_egrep"
8548 msgstr ""
8549
8550 # type: verbatim
8551 #. type: verbatim
8552 #: ../src/guestfs-actions.pod:1348
8553 #, no-wrap
8554 msgid ""
8555 " char **\n"
8556 " guestfs_egrep (guestfs_h *g,\n"
8557 "                const char *regex,\n"
8558 "                const char *path);\n"
8559 "\n"
8560 msgstr ""
8561
8562 # type: textblock
8563 #. type: textblock
8564 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:900
8565 msgid ""
8566 "This calls the external C<egrep> program and returns the matching lines."
8567 msgstr ""
8568
8569 # type: textblock
8570 #. type: textblock
8571 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
8572 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
8573 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2201
8574 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
8575 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
8576 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
8577 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3418
8578 #: ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3445
8579 #: ../src/guestfs-actions.pod:3459 ../src/guestfs-actions.pod:4431
8580 #: ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5356
8581 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6138
8582 #: ../src/guestfs-actions.pod:6151 ../src/guestfs-actions.pod:6164
8583 #: ../src/guestfs-actions.pod:6186 ../src/guestfs-actions.pod:6199
8584 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6225
8585 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7015
8586 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7119
8587 #: ../src/guestfs-actions.pod:7165 ../src/guestfs-actions.pod:7184
8588 msgid "(Added in 1.0.66)"
8589 msgstr ""
8590
8591 # type: =head2
8592 #. type: =head2
8593 #: ../src/guestfs-actions.pod:1365
8594 msgid "guestfs_egrepi"
8595 msgstr ""
8596
8597 # type: verbatim
8598 #. type: verbatim
8599 #: ../src/guestfs-actions.pod:1367
8600 #, no-wrap
8601 msgid ""
8602 " char **\n"
8603 " guestfs_egrepi (guestfs_h *g,\n"
8604 "                 const char *regex,\n"
8605 "                 const char *path);\n"
8606 "\n"
8607 msgstr ""
8608
8609 # type: textblock
8610 #. type: textblock
8611 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:910
8612 msgid ""
8613 "This calls the external C<egrep -i> program and returns the matching lines."
8614 msgstr ""
8615
8616 # type: =head2
8617 #. type: =head2
8618 #: ../src/guestfs-actions.pod:1384
8619 msgid "guestfs_equal"
8620 msgstr ""
8621
8622 # type: verbatim
8623 #. type: verbatim
8624 #: ../src/guestfs-actions.pod:1386
8625 #, no-wrap
8626 msgid ""
8627 " int\n"
8628 " guestfs_equal (guestfs_h *g,\n"
8629 "                const char *file1,\n"
8630 "                const char *file2);\n"
8631 "\n"
8632 msgstr ""
8633
8634 # type: textblock
8635 #. type: textblock
8636 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:920
8637 msgid ""
8638 "This compares the two files C<file1> and C<file2> and returns true if their "
8639 "content is exactly equal, or false otherwise."
8640 msgstr ""
8641
8642 # type: textblock
8643 #. type: textblock
8644 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:923
8645 msgid "The external L<cmp(1)> program is used for the comparison."
8646 msgstr ""
8647
8648 # type: =head2
8649 #. type: =head2
8650 #: ../src/guestfs-actions.pod:1400
8651 msgid "guestfs_exists"
8652 msgstr ""
8653
8654 # type: verbatim
8655 #. type: verbatim
8656 #: ../src/guestfs-actions.pod:1402
8657 #, no-wrap
8658 msgid ""
8659 " int\n"
8660 " guestfs_exists (guestfs_h *g,\n"
8661 "                 const char *path);\n"
8662 "\n"
8663 msgstr ""
8664
8665 # type: textblock
8666 #. type: textblock
8667 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:929
8668 msgid ""
8669 "This returns C<true> if and only if there is a file, directory (or anything) "
8670 "with the given C<path> name."
8671 msgstr ""
8672
8673 # type: textblock
8674 #. type: textblock
8675 #: ../src/guestfs-actions.pod:1409
8676 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8677 msgstr ""
8678
8679 # type: =head2
8680 #. type: =head2
8681 #: ../src/guestfs-actions.pod:1415
8682 msgid "guestfs_fallocate"
8683 msgstr ""
8684
8685 # type: verbatim
8686 #. type: verbatim
8687 #: ../src/guestfs-actions.pod:1417
8688 #, no-wrap
8689 msgid ""
8690 " int\n"
8691 " guestfs_fallocate (guestfs_h *g,\n"
8692 "                    const char *path,\n"
8693 "                    int len);\n"
8694 "\n"
8695 msgstr ""
8696
8697 # type: textblock
8698 #. type: textblock
8699 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
8700 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:957
8701 msgid ""
8702 "This command preallocates a file (containing zero bytes) named C<path> of "
8703 "size C<len> bytes.  If the file exists already, it is overwritten."
8704 msgstr ""
8705
8706 # type: textblock
8707 #. type: textblock
8708 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:942
8709 msgid ""
8710 "Do not confuse this with the guestfish-specific C<alloc> command which "
8711 "allocates a file in the host and attaches it as a device."
8712 msgstr ""
8713
8714 # type: textblock
8715 #. type: textblock
8716 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:946
8717 msgid ""
8718 "This function is deprecated.  In new code, use the C<fallocate64> call "
8719 "instead."
8720 msgstr ""
8721
8722 # type: =head2
8723 #. type: =head2
8724 #: ../src/guestfs-actions.pod:1441
8725 msgid "guestfs_fallocate64"
8726 msgstr ""
8727
8728 # type: verbatim
8729 #. type: verbatim
8730 #: ../src/guestfs-actions.pod:1443
8731 #, no-wrap
8732 msgid ""
8733 " int\n"
8734 " guestfs_fallocate64 (guestfs_h *g,\n"
8735 "                      const char *path,\n"
8736 "                      int64_t len);\n"
8737 "\n"
8738 msgstr ""
8739
8740 # type: textblock
8741 #. type: textblock
8742 #: ../src/guestfs-actions.pod:1452
8743 msgid ""
8744 "Note that this call allocates disk blocks for the file.  To create a sparse "
8745 "file use C<guestfs_truncate_size> instead."
8746 msgstr ""
8747
8748 # type: textblock
8749 #. type: textblock
8750 #: ../src/guestfs-actions.pod:1455
8751 msgid ""
8752 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8753 "oversight it only allowed 30 bit lengths to be specified, effectively "
8754 "limiting the maximum size of files created through that call to 1GB."
8755 msgstr ""
8756
8757 # type: textblock
8758 #. type: textblock
8759 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:969
8760 msgid ""
8761 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8762 "commands which create a file in the host and attach it as a device."
8763 msgstr ""
8764
8765 # type: textblock
8766 #. type: textblock
8767 #: ../src/guestfs-actions.pod:1466
8768 msgid "(Added in 1.3.17)"
8769 msgstr ""
8770
8771 # type: =head2
8772 #. type: =head2
8773 #: ../src/guestfs-actions.pod:1468
8774 msgid "guestfs_fgrep"
8775 msgstr ""
8776
8777 # type: verbatim
8778 #. type: verbatim
8779 #: ../src/guestfs-actions.pod:1470
8780 #, no-wrap
8781 msgid ""
8782 " char **\n"
8783 " guestfs_fgrep (guestfs_h *g,\n"
8784 "                const char *pattern,\n"
8785 "                const char *path);\n"
8786 "\n"
8787 msgstr ""
8788
8789 # type: textblock
8790 #. type: textblock
8791 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:977
8792 msgid ""
8793 "This calls the external C<fgrep> program and returns the matching lines."
8794 msgstr ""
8795
8796 # type: =head2
8797 #. type: =head2
8798 #: ../src/guestfs-actions.pod:1487
8799 msgid "guestfs_fgrepi"
8800 msgstr ""
8801
8802 # type: verbatim
8803 #. type: verbatim
8804 #: ../src/guestfs-actions.pod:1489
8805 #, no-wrap
8806 msgid ""
8807 " char **\n"
8808 " guestfs_fgrepi (guestfs_h *g,\n"
8809 "                 const char *pattern,\n"
8810 "                 const char *path);\n"
8811 "\n"
8812 msgstr ""
8813
8814 # type: textblock
8815 #. type: textblock
8816 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:987
8817 msgid ""
8818 "This calls the external C<fgrep -i> program and returns the matching lines."
8819 msgstr ""
8820
8821 # type: =head2
8822 #. type: =head2
8823 #: ../src/guestfs-actions.pod:1506
8824 msgid "guestfs_file"
8825 msgstr ""
8826
8827 # type: verbatim
8828 #. type: verbatim
8829 #: ../src/guestfs-actions.pod:1508
8830 #, no-wrap
8831 msgid ""
8832 " char *\n"
8833 " guestfs_file (guestfs_h *g,\n"
8834 "               const char *path);\n"
8835 "\n"
8836 msgstr ""
8837
8838 # type: textblock
8839 #. type: textblock
8840 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:997
8841 msgid ""
8842 "This call uses the standard L<file(1)> command to determine the type or "
8843 "contents of the file."
8844 msgstr ""
8845
8846 # type: textblock
8847 #. type: textblock
8848 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1000
8849 msgid ""
8850 "This call will also transparently look inside various types of compressed "
8851 "file."
8852 msgstr ""
8853
8854 # type: textblock
8855 #. type: textblock
8856 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1003
8857 msgid ""
8858 "The exact command which runs is C<file -zb path>.  Note in particular that "
8859 "the filename is not prepended to the output (the C<-b> option)."
8860 msgstr ""
8861
8862 # type: textblock
8863 #. type: textblock
8864 #: ../src/guestfs-actions.pod:1522
8865 msgid ""
8866 "This command can also be used on C</dev/> devices (and partitions, LV "
8867 "names).  You can for example use this to determine if a device contains a "
8868 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8869 msgstr ""
8870
8871 # type: textblock
8872 #. type: textblock
8873 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1012
8874 msgid ""
8875 "If the C<path> does not begin with C</dev/> then this command only works for "
8876 "the content of regular files.  For other file types (directory, symbolic "
8877 "link etc) it will just return the string C<directory> etc."
8878 msgstr ""
8879
8880 # type: =head2
8881 #. type: =head2
8882 #: ../src/guestfs-actions.pod:1537
8883 msgid "guestfs_file_architecture"
8884 msgstr ""
8885
8886 # type: verbatim
8887 #. type: verbatim
8888 #: ../src/guestfs-actions.pod:1539
8889 #, no-wrap
8890 msgid ""
8891 " char *\n"
8892 " guestfs_file_architecture (guestfs_h *g,\n"
8893 "                            const char *filename);\n"
8894 "\n"
8895 msgstr ""
8896
8897 # type: textblock
8898 #. type: textblock
8899 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1021
8900 msgid ""
8901 "This detects the architecture of the binary C<filename>, and returns it if "
8902 "known."
8903 msgstr ""
8904
8905 # type: textblock
8906 #. type: textblock
8907 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8908 msgid "Currently defined architectures are:"
8909 msgstr ""
8910
8911 # type: =item
8912 #. type: =item
8913 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1028
8914 msgid "\"i386\""
8915 msgstr ""
8916
8917 # type: textblock
8918 #. type: textblock
8919 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
8920 msgid ""
8921 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8922 "irrespective of the precise processor requirements of the binary."
8923 msgstr ""
8924
8925 # type: =item
8926 #. type: =item
8927 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1033
8928 msgid "\"x86_64\""
8929 msgstr ""
8930
8931 # type: textblock
8932 #. type: textblock
8933 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
8934 msgid "64 bit x86-64."
8935 msgstr ""
8936
8937 # type: =item
8938 #. type: =item
8939 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
8940 msgid "\"sparc\""
8941 msgstr ""
8942
8943 # type: textblock
8944 #. type: textblock
8945 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
8946 msgid "32 bit SPARC."
8947 msgstr ""
8948
8949 # type: =item
8950 #. type: =item
8951 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
8952 msgid "\"sparc64\""
8953 msgstr ""
8954
8955 # type: textblock
8956 #. type: textblock
8957 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
8958 msgid "64 bit SPARC V9 and above."
8959 msgstr ""
8960
8961 # type: =item
8962 #. type: =item
8963 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
8964 msgid "\"ia64\""
8965 msgstr ""
8966
8967 # type: textblock
8968 #. type: textblock
8969 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
8970 msgid "Intel Itanium."
8971 msgstr ""
8972
8973 # type: =item
8974 #. type: =item
8975 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
8976 msgid "\"ppc\""
8977 msgstr ""
8978
8979 # type: textblock
8980 #. type: textblock
8981 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
8982 msgid "32 bit Power PC."
8983 msgstr ""
8984
8985 # type: =item
8986 #. type: =item
8987 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
8988 msgid "\"ppc64\""
8989 msgstr ""
8990
8991 # type: textblock
8992 #. type: textblock
8993 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
8994 msgid "64 bit Power PC."
8995 msgstr ""
8996
8997 # type: textblock
8998 #. type: textblock
8999 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1059
9000 msgid "Libguestfs may return other architecture strings in future."
9001 msgstr ""
9002
9003 # type: textblock
9004 #. type: textblock
9005 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
9006 msgid "The function works on at least the following types of files:"
9007 msgstr ""
9008
9009 # type: textblock
9010 #. type: textblock
9011 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1067
9012 msgid "many types of Un*x and Linux binary"
9013 msgstr ""
9014
9015 # type: textblock
9016 #. type: textblock
9017 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1071
9018 msgid "many types of Un*x and Linux shared library"
9019 msgstr ""
9020
9021 # type: textblock
9022 #. type: textblock
9023 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1075
9024 msgid "Windows Win32 and Win64 binaries"
9025 msgstr ""
9026
9027 # type: textblock
9028 #. type: textblock
9029 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1079
9030 msgid "Windows Win32 and Win64 DLLs"
9031 msgstr ""
9032
9033 # type: textblock
9034 #. type: textblock
9035 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
9036 msgid "Win32 binaries and DLLs return C<i386>."
9037 msgstr ""
9038
9039 # type: textblock
9040 #. type: textblock
9041 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
9042 msgid "Win64 binaries and DLLs return C<x86_64>."
9043 msgstr ""
9044
9045 # type: textblock
9046 #. type: textblock
9047 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1087
9048 msgid "Linux kernel modules"
9049 msgstr ""
9050
9051 # type: textblock
9052 #. type: textblock
9053 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1091
9054 msgid "Linux new-style initrd images"
9055 msgstr ""
9056
9057 # type: textblock
9058 #. type: textblock
9059 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1095
9060 msgid "some non-x86 Linux vmlinuz kernels"
9061 msgstr ""
9062
9063 # type: textblock
9064 #. type: textblock
9065 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1099
9066 msgid "What it can't do currently:"
9067 msgstr ""
9068
9069 # type: textblock
9070 #. type: textblock
9071 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1105
9072 msgid "static libraries (libfoo.a)"
9073 msgstr ""
9074
9075 # type: textblock
9076 #. type: textblock
9077 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1109
9078 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9079 msgstr ""
9080
9081 # type: textblock
9082 #. type: textblock
9083 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1113
9084 msgid "x86 Linux vmlinuz kernels"
9085 msgstr ""
9086
9087 # type: textblock
9088 #. type: textblock
9089 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
9090 msgid ""
9091 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9092 "compressed code, and are horribly hard to unpack.  If you want to find the "
9093 "architecture of a kernel, use the architecture of the associated initrd or "
9094 "kernel module(s) instead."
9095 msgstr ""
9096
9097 # type: textblock
9098 #. type: textblock
9099 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
9100 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2508
9101 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
9102 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685
9103 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2806
9104 #: ../src/guestfs-actions.pod:2868 ../src/guestfs-actions.pod:3041
9105 #: ../src/guestfs-actions.pod:3173
9106 msgid "(Added in 1.5.3)"
9107 msgstr ""
9108
9109 # type: =head2
9110 #. type: =head2
9111 #: ../src/guestfs-actions.pod:1649
9112 msgid "guestfs_filesize"
9113 msgstr ""
9114
9115 # type: verbatim
9116 #. type: verbatim
9117 #: ../src/guestfs-actions.pod:1651
9118 #, no-wrap
9119 msgid ""
9120 " int64_t\n"
9121 " guestfs_filesize (guestfs_h *g,\n"
9122 "                   const char *file);\n"
9123 "\n"
9124 msgstr ""
9125
9126 # type: textblock
9127 #. type: textblock
9128 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1126
9129 msgid "This command returns the size of C<file> in bytes."
9130 msgstr ""
9131
9132 # type: textblock
9133 #. type: textblock
9134 #: ../src/guestfs-actions.pod:1657
9135 msgid ""
9136 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9137 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9138 "devices, use C<guestfs_blockdev_getsize64>."
9139 msgstr ""
9140
9141 # type: textblock
9142 #. type: textblock
9143 #: ../src/guestfs-actions.pod:1663
9144 msgid "(Added in 1.0.82)"
9145 msgstr ""
9146
9147 # type: =head2
9148 #. type: =head2
9149 #: ../src/guestfs-actions.pod:1665
9150 msgid "guestfs_fill"
9151 msgstr ""
9152
9153 # type: verbatim
9154 #. type: verbatim
9155 #: ../src/guestfs-actions.pod:1667
9156 #, no-wrap
9157 msgid ""
9158 " int\n"
9159 " guestfs_fill (guestfs_h *g,\n"
9160 "               int c,\n"
9161 "               int len,\n"
9162 "               const char *path);\n"
9163 "\n"
9164 msgstr ""
9165
9166 # type: textblock
9167 #. type: textblock
9168 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1136
9169 msgid ""
9170 "This command creates a new file called C<path>.  The initial content of the "
9171 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9172 "[0..255]>."
9173 msgstr ""
9174
9175 # type: textblock
9176 #. type: textblock
9177 #: ../src/guestfs-actions.pod:1677
9178 msgid ""
9179 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9180 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9181 "bytes use C<guestfs_fill_pattern>."
9182 msgstr ""
9183
9184 # type: textblock
9185 #. type: textblock
9186 #: ../src/guestfs-actions.pod:1689
9187 msgid "(Added in 1.0.79)"
9188 msgstr ""
9189
9190 # type: =head2
9191 #. type: =head2
9192 #: ../src/guestfs-actions.pod:1691
9193 msgid "guestfs_fill_pattern"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #. type: verbatim
9198 #: ../src/guestfs-actions.pod:1693
9199 #, no-wrap
9200 msgid ""
9201 " int\n"
9202 " guestfs_fill_pattern (guestfs_h *g,\n"
9203 "                       const char *pattern,\n"
9204 "                       int len,\n"
9205 "                       const char *path);\n"
9206 "\n"
9207 msgstr ""
9208
9209 # type: textblock
9210 #. type: textblock
9211 #: ../src/guestfs-actions.pod:1699
9212 msgid ""
9213 "This function is like C<guestfs_fill> except that it creates a new file of "
9214 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9215 "pattern is truncated if necessary to ensure the length of the file is "
9216 "exactly C<len> bytes."
9217 msgstr ""
9218
9219 # type: textblock
9220 #. type: textblock
9221 #: ../src/guestfs-actions.pod:1711
9222 msgid "(Added in 1.3.12)"
9223 msgstr ""
9224
9225 # type: =head2
9226 #. type: =head2
9227 #: ../src/guestfs-actions.pod:1713
9228 msgid "guestfs_find"
9229 msgstr ""
9230
9231 # type: verbatim
9232 #. type: verbatim
9233 #: ../src/guestfs-actions.pod:1715
9234 #, no-wrap
9235 msgid ""
9236 " char **\n"
9237 " guestfs_find (guestfs_h *g,\n"
9238 "               const char *directory);\n"
9239 "\n"
9240 msgstr ""
9241
9242 # type: textblock
9243 #. type: textblock
9244 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1158
9245 msgid ""
9246 "This command lists out all files and directories, recursively, starting at "
9247 "C<directory>.  It is essentially equivalent to running the shell command "
9248 "C<find directory -print> but some post-processing happens on the output, "
9249 "described below."
9250 msgstr ""
9251
9252 # type: textblock
9253 #. type: textblock
9254 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1163
9255 msgid ""
9256 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9257 "structure was:"
9258 msgstr ""
9259
9260 # type: verbatim
9261 #. type: verbatim
9262 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1166
9263 #, no-wrap
9264 msgid ""
9265 " /tmp/a\n"
9266 " /tmp/b\n"
9267 " /tmp/c/d\n"
9268 "\n"
9269 msgstr ""
9270
9271 # type: textblock
9272 #. type: textblock
9273 #: ../src/guestfs-actions.pod:1731
9274 msgid ""
9275 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9276 msgstr ""
9277
9278 # type: verbatim
9279 #. type: verbatim
9280 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1173
9281 #, no-wrap
9282 msgid ""
9283 " a\n"
9284 " b\n"
9285 " c\n"
9286 " c/d\n"
9287 "\n"
9288 msgstr ""
9289
9290 # type: textblock
9291 #. type: textblock
9292 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1178
9293 msgid "If C<directory> is not a directory, then this command returns an error."
9294 msgstr ""
9295
9296 # type: textblock
9297 #. type: textblock
9298 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1181
9299 msgid "The returned list is sorted."
9300 msgstr ""
9301
9302 # type: textblock
9303 #. type: textblock
9304 #: ../src/guestfs-actions.pod:1744
9305 msgid "See also C<guestfs_find0>."
9306 msgstr ""
9307
9308 # type: textblock
9309 #. type: textblock
9310 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3862
9311 #: ../src/guestfs-actions.pod:5391
9312 msgid "(Added in 1.0.27)"
9313 msgstr ""
9314
9315 # type: =head2
9316 #. type: =head2
9317 #: ../src/guestfs-actions.pod:1755
9318 msgid "guestfs_find0"
9319 msgstr ""
9320
9321 # type: verbatim
9322 #. type: verbatim
9323 #: ../src/guestfs-actions.pod:1757
9324 #, no-wrap
9325 msgid ""
9326 " int\n"
9327 " guestfs_find0 (guestfs_h *g,\n"
9328 "                const char *directory,\n"
9329 "                const char *files);\n"
9330 "\n"
9331 msgstr ""
9332
9333 # type: textblock
9334 #. type: textblock
9335 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1192
9336 msgid ""
9337 "This command lists out all files and directories, recursively, starting at "
9338 "C<directory>, placing the resulting list in the external file called "
9339 "C<files>."
9340 msgstr ""
9341
9342 # type: textblock
9343 #. type: textblock
9344 #: ../src/guestfs-actions.pod:1766
9345 msgid ""
9346 "This command works the same way as C<guestfs_find> with the following "
9347 "exceptions:"
9348 msgstr ""
9349
9350 # type: textblock
9351 #. type: textblock
9352 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1203
9353 msgid "The resulting list is written to an external file."
9354 msgstr ""
9355
9356 # type: textblock
9357 #. type: textblock
9358 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1207
9359 msgid ""
9360 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9361 "L<find(1)> option I<-print0>."
9362 msgstr ""
9363
9364 # type: textblock
9365 #. type: textblock
9366 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1212
9367 msgid "This command is not limited in the number of names that it can return."
9368 msgstr ""
9369
9370 # type: textblock
9371 #. type: textblock
9372 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1217
9373 msgid "The result list is not sorted."
9374 msgstr ""
9375
9376 # type: textblock
9377 #. type: textblock
9378 #: ../src/guestfs-actions.pod:1793
9379 msgid "(Added in 1.0.74)"
9380 msgstr ""
9381
9382 # type: =head2
9383 #. type: =head2
9384 #: ../src/guestfs-actions.pod:1795
9385 msgid "guestfs_findfs_label"
9386 msgstr ""
9387
9388 # type: verbatim
9389 #. type: verbatim
9390 #: ../src/guestfs-actions.pod:1797
9391 #, no-wrap
9392 msgid ""
9393 " char *\n"
9394 " guestfs_findfs_label (guestfs_h *g,\n"
9395 "                       const char *label);\n"
9396 "\n"
9397 msgstr ""
9398
9399 # type: textblock
9400 #. type: textblock
9401 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1227
9402 msgid ""
9403 "This command searches the filesystems and returns the one which has the "
9404 "given label.  An error is returned if no such filesystem can be found."
9405 msgstr ""
9406
9407 # type: textblock
9408 #. type: textblock
9409 #: ../src/guestfs-actions.pod:1805
9410 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9411 msgstr ""
9412
9413 # type: =head2
9414 #. type: =head2
9415 #: ../src/guestfs-actions.pod:1812
9416 msgid "guestfs_findfs_uuid"
9417 msgstr ""
9418
9419 # type: verbatim
9420 #. type: verbatim
9421 #: ../src/guestfs-actions.pod:1814
9422 #, no-wrap
9423 msgid ""
9424 " char *\n"
9425 " guestfs_findfs_uuid (guestfs_h *g,\n"
9426 "                      const char *uuid);\n"
9427 "\n"
9428 msgstr ""
9429
9430 # type: textblock
9431 #. type: textblock
9432 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1237
9433 msgid ""
9434 "This command searches the filesystems and returns the one which has the "
9435 "given UUID.  An error is returned if no such filesystem can be found."
9436 msgstr ""
9437
9438 # type: textblock
9439 #. type: textblock
9440 #: ../src/guestfs-actions.pod:1822
9441 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9442 msgstr ""
9443
9444 # type: =head2
9445 #. type: =head2
9446 #: ../src/guestfs-actions.pod:1829
9447 msgid "guestfs_fsck"
9448 msgstr ""
9449
9450 # type: verbatim
9451 #. type: verbatim
9452 #: ../src/guestfs-actions.pod:1831
9453 #, no-wrap
9454 msgid ""
9455 " int\n"
9456 " guestfs_fsck (guestfs_h *g,\n"
9457 "               const char *fstype,\n"
9458 "               const char *device);\n"
9459 "\n"
9460 msgstr ""
9461
9462 # type: textblock
9463 #. type: textblock
9464 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1247
9465 msgid ""
9466 "This runs the filesystem checker (fsck) on C<device> which should have "
9467 "filesystem type C<fstype>."
9468 msgstr ""
9469
9470 # type: textblock
9471 #. type: textblock
9472 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1250
9473 msgid ""
9474 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9475 "codes from C<fsck>."
9476 msgstr ""
9477
9478 # type: textblock
9479 #. type: textblock
9480 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1259
9481 msgid "Multiple status codes can be summed together."
9482 msgstr ""
9483
9484 # type: textblock
9485 #. type: textblock
9486 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1263
9487 msgid ""
9488 "A non-zero return code can mean \"success\", for example if errors have been "
9489 "corrected on the filesystem."
9490 msgstr ""
9491
9492 # type: textblock
9493 #. type: textblock
9494 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1268
9495 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9496 msgstr ""
9497
9498 # type: textblock
9499 #. type: textblock
9500 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1273
9501 msgid ""
9502 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9503 msgstr ""
9504
9505 # type: textblock
9506 #. type: textblock
9507 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:7038
9508 msgid "(Added in 1.0.16)"
9509 msgstr ""
9510
9511 # type: =head2
9512 #. type: =head2
9513 #: ../src/guestfs-actions.pod:1868
9514 msgid "guestfs_get_append"
9515 msgstr ""
9516
9517 # type: verbatim
9518 #. type: verbatim
9519 #: ../src/guestfs-actions.pod:1870
9520 #, no-wrap
9521 msgid ""
9522 " const char *\n"
9523 " guestfs_get_append (guestfs_h *g);\n"
9524 "\n"
9525 msgstr ""
9526
9527 # type: textblock
9528 #. type: textblock
9529 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1279
9530 msgid ""
9531 "Return the additional kernel options which are added to the guest kernel "
9532 "command line."
9533 msgstr ""
9534
9535 # type: textblock
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1282
9538 msgid "If C<NULL> then no options are added."
9539 msgstr ""
9540
9541 # type: textblock
9542 #. type: textblock
9543 #: ../src/guestfs-actions.pod:1878
9544 msgid ""
9545 "This function returns a string which may be NULL.  There is no way to return "
9546 "an error from this function.  The string is owned by the guest handle and "
9547 "must I<not> be freed."
9548 msgstr ""
9549
9550 # type: textblock
9551 #. type: textblock
9552 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:5069
9553 #: ../src/guestfs-actions.pod:5532 ../src/guestfs-actions.pod:5900
9554 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5935
9555 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6709
9556 #: ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:7081
9557 msgid "(Added in 1.0.26)"
9558 msgstr ""
9559
9560 # type: =head2
9561 #. type: =head2
9562 #: ../src/guestfs-actions.pod:1884
9563 msgid "guestfs_get_autosync"
9564 msgstr ""
9565
9566 # type: verbatim
9567 #. type: verbatim
9568 #: ../src/guestfs-actions.pod:1886
9569 #, no-wrap
9570 msgid ""
9571 " int\n"
9572 " guestfs_get_autosync (guestfs_h *g);\n"
9573 "\n"
9574 msgstr ""
9575
9576 # type: textblock
9577 #. type: textblock
9578 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9579 msgid "Get the autosync flag."
9580 msgstr ""
9581
9582 # type: =head2
9583 #. type: =head2
9584 #: ../src/guestfs-actions.pod:1895
9585 msgid "guestfs_get_direct"
9586 msgstr ""
9587
9588 # type: verbatim
9589 #. type: verbatim
9590 #: ../src/guestfs-actions.pod:1897
9591 #, no-wrap
9592 msgid ""
9593 " int\n"
9594 " guestfs_get_direct (guestfs_h *g);\n"
9595 "\n"
9596 msgstr ""
9597
9598 # type: textblock
9599 #. type: textblock
9600 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1294
9601 msgid "Return the direct appliance mode flag."
9602 msgstr ""
9603
9604 # type: textblock
9605 #. type: textblock
9606 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5573
9607 msgid "(Added in 1.0.72)"
9608 msgstr ""
9609
9610 # type: =head2
9611 #. type: =head2
9612 #: ../src/guestfs-actions.pod:1906
9613 msgid "guestfs_get_e2label"
9614 msgstr ""
9615
9616 # type: verbatim
9617 #. type: verbatim
9618 #: ../src/guestfs-actions.pod:1908
9619 #, no-wrap
9620 msgid ""
9621 " char *\n"
9622 " guestfs_get_e2label (guestfs_h *g,\n"
9623 "                      const char *device);\n"
9624 "\n"
9625 msgstr ""
9626
9627 # type: textblock
9628 #. type: textblock
9629 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1300
9630 msgid ""
9631 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9632 msgstr ""
9633
9634 # type: textblock
9635 #. type: textblock
9636 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1303
9637 msgid ""
9638 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9639 msgstr ""
9640
9641 # type: textblock
9642 #. type: textblock
9643 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
9644 #: ../src/guestfs-actions.pod:5591 ../src/guestfs-actions.pod:5610
9645 msgid "(Added in 1.0.15)"
9646 msgstr ""
9647
9648 # type: =head2
9649 #. type: =head2
9650 #: ../src/guestfs-actions.pod:1927
9651 msgid "guestfs_get_e2uuid"
9652 msgstr ""
9653
9654 # type: verbatim
9655 #. type: verbatim
9656 #: ../src/guestfs-actions.pod:1929
9657 #, no-wrap
9658 msgid ""
9659 " char *\n"
9660 " guestfs_get_e2uuid (guestfs_h *g,\n"
9661 "                     const char *device);\n"
9662 "\n"
9663 msgstr ""
9664
9665 # type: textblock
9666 #. type: textblock
9667 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1314
9668 msgid ""
9669 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9670 msgstr ""
9671
9672 # type: textblock
9673 #. type: textblock
9674 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1317
9675 msgid ""
9676 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9677 msgstr ""
9678
9679 # type: =head2
9680 #. type: =head2
9681 #: ../src/guestfs-actions.pod:1948
9682 msgid "guestfs_get_memsize"
9683 msgstr ""
9684
9685 # type: verbatim
9686 #. type: verbatim
9687 #: ../src/guestfs-actions.pod:1950
9688 #, no-wrap
9689 msgid ""
9690 " int\n"
9691 " guestfs_get_memsize (guestfs_h *g);\n"
9692 "\n"
9693 msgstr ""
9694
9695 # type: textblock
9696 #. type: textblock
9697 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1328
9698 msgid ""
9699 "This gets the memory size in megabytes allocated to the qemu subprocess."
9700 msgstr ""
9701
9702 # type: textblock
9703 #. type: textblock
9704 #: ../src/guestfs-actions.pod:1956
9705 msgid ""
9706 "If C<guestfs_set_memsize> was not called on this handle, and if "
9707 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9708 "value for memsize."
9709 msgstr ""
9710
9711 # type: textblock
9712 #. type: textblock
9713 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
9714 #: ../src/guestfs-actions.pod:5626 ../src/guestfs-actions.pod:5733
9715 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386
9716 #: ../fish/guestfish-actions.pod:3753 ../fish/guestfish-actions.pod:3840
9717 msgid ""
9718 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9719 msgstr ""
9720
9721 # type: textblock
9722 #. type: textblock
9723 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4153
9724 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4355
9725 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4386
9726 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4416
9727 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5631
9728 #: ../src/guestfs-actions.pod:5874 ../src/guestfs-actions.pod:6475
9729 msgid "(Added in 1.0.55)"
9730 msgstr ""
9731
9732 # type: =head2
9733 #. type: =head2
9734 #: ../src/guestfs-actions.pod:1967
9735 msgid "guestfs_get_network"
9736 msgstr ""
9737
9738 # type: verbatim
9739 #. type: verbatim
9740 #: ../src/guestfs-actions.pod:1969
9741 #, no-wrap
9742 msgid ""
9743 " int\n"
9744 " guestfs_get_network (guestfs_h *g);\n"
9745 "\n"
9746 msgstr ""
9747
9748 # type: textblock
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1342
9751 msgid "This returns the enable network flag."
9752 msgstr ""
9753
9754 # type: textblock
9755 #. type: textblock
9756 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5650
9757 msgid "(Added in 1.5.4)"
9758 msgstr ""
9759
9760 # type: =head2
9761 #. type: =head2
9762 #: ../src/guestfs-actions.pod:1978
9763 msgid "guestfs_get_path"
9764 msgstr ""
9765
9766 # type: verbatim
9767 #. type: verbatim
9768 #: ../src/guestfs-actions.pod:1980
9769 #, no-wrap
9770 msgid ""
9771 " const char *\n"
9772 " guestfs_get_path (guestfs_h *g);\n"
9773 "\n"
9774 msgstr ""
9775
9776 # type: textblock
9777 #. type: textblock
9778 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1348
9779 msgid "Return the current search path."
9780 msgstr ""
9781
9782 # type: textblock
9783 #. type: textblock
9784 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
9785 msgid ""
9786 "This is always non-NULL.  If it wasn't set already, then this will return "
9787 "the default path."
9788 msgstr ""
9789
9790 # type: textblock
9791 #. type: textblock
9792 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
9793 msgid ""
9794 "This function returns a string, or NULL on error.  The string is owned by "
9795 "the guest handle and must I<not> be freed."
9796 msgstr ""
9797
9798 # type: =head2
9799 #. type: =head2
9800 #: ../src/guestfs-actions.pod:1993
9801 msgid "guestfs_get_pid"
9802 msgstr ""
9803
9804 # type: verbatim
9805 #. type: verbatim
9806 #: ../src/guestfs-actions.pod:1995
9807 #, no-wrap
9808 msgid ""
9809 " int\n"
9810 " guestfs_get_pid (guestfs_h *g);\n"
9811 "\n"
9812 msgstr ""
9813
9814 # type: textblock
9815 #. type: textblock
9816 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1359
9817 msgid ""
9818 "Return the process ID of the qemu subprocess.  If there is no qemu "
9819 "subprocess, then this will return an error."
9820 msgstr ""
9821
9822 # type: textblock
9823 #. type: textblock
9824 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1362
9825 msgid "This is an internal call used for debugging and testing."
9826 msgstr ""
9827
9828 # type: textblock
9829 #. type: textblock
9830 #: ../src/guestfs-actions.pod:2005
9831 msgid "(Added in 1.0.56)"
9832 msgstr ""
9833
9834 # type: =head2
9835 #. type: =head2
9836 #: ../src/guestfs-actions.pod:2007
9837 msgid "guestfs_get_qemu"
9838 msgstr ""
9839
9840 # type: verbatim
9841 #. type: verbatim
9842 #: ../src/guestfs-actions.pod:2009
9843 #, no-wrap
9844 msgid ""
9845 " const char *\n"
9846 " guestfs_get_qemu (guestfs_h *g);\n"
9847 "\n"
9848 msgstr ""
9849
9850 # type: textblock
9851 #. type: textblock
9852 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1368
9853 msgid "Return the current qemu binary."
9854 msgstr ""
9855
9856 # type: textblock
9857 #. type: textblock
9858 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
9859 msgid ""
9860 "This is always non-NULL.  If it wasn't set already, then this will return "
9861 "the default qemu binary name."
9862 msgstr ""
9863
9864 # type: textblock
9865 #. type: textblock
9866 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5695
9867 msgid "(Added in 1.0.6)"
9868 msgstr ""
9869
9870 # type: =head2
9871 #. type: =head2
9872 #: ../src/guestfs-actions.pod:2022
9873 msgid "guestfs_get_recovery_proc"
9874 msgstr ""
9875
9876 # type: verbatim
9877 #. type: verbatim
9878 #: ../src/guestfs-actions.pod:2024
9879 #, no-wrap
9880 msgid ""
9881 " int\n"
9882 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9883 "\n"
9884 msgstr ""
9885
9886 # type: textblock
9887 #. type: textblock
9888 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9889 msgid "Return the recovery process enabled flag."
9890 msgstr ""
9891
9892 # type: textblock
9893 #. type: textblock
9894 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3263
9895 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:3960
9896 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4999
9897 #: ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5719
9898 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6398
9899 #: ../src/guestfs-actions.pod:6590
9900 msgid "(Added in 1.0.77)"
9901 msgstr ""
9902
9903 # type: =head2
9904 #. type: =head2
9905 #: ../src/guestfs-actions.pod:2033
9906 msgid "guestfs_get_selinux"
9907 msgstr ""
9908
9909 # type: verbatim
9910 #. type: verbatim
9911 #: ../src/guestfs-actions.pod:2035
9912 #, no-wrap
9913 msgid ""
9914 " int\n"
9915 " guestfs_get_selinux (guestfs_h *g);\n"
9916 "\n"
9917 msgstr ""
9918
9919 # type: textblock
9920 #. type: textblock
9921 #: ../src/guestfs-actions.pod:2038
9922 msgid ""
9923 "This returns the current setting of the selinux flag which is passed to the "
9924 "appliance at boot time.  See C<guestfs_set_selinux>."
9925 msgstr ""
9926
9927 # type: textblock
9928 #. type: textblock
9929 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
9930 #: ../src/guestfs-actions.pod:5738 ../src/guestfs-actions.pod:5792
9931 msgid "(Added in 1.0.67)"
9932 msgstr ""
9933
9934 # type: =head2
9935 #. type: =head2
9936 #: ../src/guestfs-actions.pod:2048
9937 msgid "guestfs_get_state"
9938 msgstr ""
9939
9940 # type: verbatim
9941 #. type: verbatim
9942 #: ../src/guestfs-actions.pod:2050
9943 #, no-wrap
9944 msgid ""
9945 " int\n"
9946 " guestfs_get_state (guestfs_h *g);\n"
9947 "\n"
9948 msgstr ""
9949
9950 # type: textblock
9951 #. type: textblock
9952 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1393
9953 msgid ""
9954 "This returns the current state as an opaque integer.  This is only useful "
9955 "for printing debug and internal error messages."
9956 msgstr ""
9957
9958 # type: textblock
9959 #. type: textblock
9960 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3066
9961 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156
9962 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:1396
9963 #: ../fish/guestfish-actions.pod:2135 ../fish/guestfish-actions.pod:2153
9964 #: ../fish/guestfish-actions.pod:2191 ../fish/guestfish-actions.pod:2207
9965 msgid "For more information on states, see L<guestfs(3)>."
9966 msgstr ""
9967
9968 # type: =head2
9969 #. type: =head2
9970 #: ../src/guestfs-actions.pod:2062
9971 msgid "guestfs_get_trace"
9972 msgstr ""
9973
9974 # type: verbatim
9975 #. type: verbatim
9976 #: ../src/guestfs-actions.pod:2064
9977 #, no-wrap
9978 msgid ""
9979 " int\n"
9980 " guestfs_get_trace (guestfs_h *g);\n"
9981 "\n"
9982 msgstr ""
9983
9984 # type: textblock
9985 #. type: textblock
9986 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1402
9987 msgid "Return the command trace flag."
9988 msgstr ""
9989
9990 # type: =head2
9991 #. type: =head2
9992 #: ../src/guestfs-actions.pod:2073
9993 msgid "guestfs_get_umask"
9994 msgstr ""
9995
9996 # type: verbatim
9997 #. type: verbatim
9998 #: ../src/guestfs-actions.pod:2075
9999 #, no-wrap
10000 msgid ""
10001 " int\n"
10002 " guestfs_get_umask (guestfs_h *g);\n"
10003 "\n"
10004 msgstr ""
10005
10006 # type: textblock
10007 #. type: textblock
10008 #: ../src/guestfs-actions.pod:2078
10009 msgid ""
10010 "Return the current umask.  By default the umask is C<022> unless it has been "
10011 "set by calling C<guestfs_umask>."
10012 msgstr ""
10013
10014 # type: =head2
10015 #. type: =head2
10016 #: ../src/guestfs-actions.pod:2085
10017 msgid "guestfs_get_verbose"
10018 msgstr ""
10019
10020 # type: verbatim
10021 #. type: verbatim
10022 #: ../src/guestfs-actions.pod:2087
10023 #, no-wrap
10024 msgid ""
10025 " int\n"
10026 " guestfs_get_verbose (guestfs_h *g);\n"
10027 "\n"
10028 msgstr ""
10029
10030 # type: textblock
10031 #. type: textblock
10032 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10033 msgid "This returns the verbose messages flag."
10034 msgstr ""
10035
10036 # type: =head2
10037 #. type: =head2
10038 #: ../src/guestfs-actions.pod:2096
10039 msgid "guestfs_getcon"
10040 msgstr ""
10041
10042 # type: verbatim
10043 #. type: verbatim
10044 #: ../src/guestfs-actions.pod:2098
10045 #, no-wrap
10046 msgid ""
10047 " char *\n"
10048 " guestfs_getcon (guestfs_h *g);\n"
10049 "\n"
10050 msgstr ""
10051
10052 # type: textblock
10053 #. type: textblock
10054 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1421
10055 msgid "This gets the SELinux security context of the daemon."
10056 msgstr ""
10057
10058 # type: textblock
10059 #. type: textblock
10060 #: ../src/guestfs-actions.pod:2103
10061 msgid ""
10062 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10063 msgstr ""
10064
10065 # type: =head2
10066 #. type: =head2
10067 #: ../src/guestfs-actions.pod:2111
10068 msgid "guestfs_getxattr"
10069 msgstr ""
10070
10071 # type: verbatim
10072 #. type: verbatim
10073 #: ../src/guestfs-actions.pod:2113
10074 #, no-wrap
10075 msgid ""
10076 " char *\n"
10077 " guestfs_getxattr (guestfs_h *g,\n"
10078 "                   const char *path,\n"
10079 "                   const char *name,\n"
10080 "                   size_t *size_r);\n"
10081 "\n"
10082 msgstr ""
10083
10084 # type: textblock
10085 #. type: textblock
10086 #: ../src/guestfs-actions.pod:2119
10087 msgid ""
10088 "Get a single extended attribute from file C<path> named C<name>.  This call "
10089 "follows symlinks.  If you want to lookup an extended attribute for the "
10090 "symlink itself, use C<guestfs_lgetxattr>."
10091 msgstr ""
10092
10093 # type: textblock
10094 #. type: textblock
10095 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:3277
10096 msgid ""
10097 "Normally it is better to get all extended attributes from a file in one go "
10098 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10099 "implementations are buggy and do not provide a way to list out attributes.  "
10100 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10101 "extended attributes you want in advance and call this function."
10102 msgstr ""
10103
10104 # type: textblock
10105 #. type: textblock
10106 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:3284
10107 #: ../fish/guestfish-actions.pod:1441 ../fish/guestfish-actions.pod:2272
10108 msgid ""
10109 "Extended attribute values are blobs of binary data.  If there is no extended "
10110 "attribute named C<name>, this returns an error."
10111 msgstr ""
10112
10113 # type: textblock
10114 #. type: textblock
10115 #: ../src/guestfs-actions.pod:2133
10116 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10117 msgstr ""
10118
10119 # type: textblock
10120 #. type: textblock
10121 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:2326
10122 #: ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:4992
10123 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5199
10124 msgid ""
10125 "This function returns a buffer, or NULL on error.  The size of the returned "
10126 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10127 "after use>."
10128 msgstr ""
10129
10130 #. type: textblock
10131 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:3293
10132 msgid "(Added in 1.7.24)"
10133 msgstr ""
10134
10135 # type: =head2
10136 #. type: =head2
10137 #: ../src/guestfs-actions.pod:2141
10138 msgid "guestfs_getxattrs"
10139 msgstr ""
10140
10141 # type: verbatim
10142 #. type: verbatim
10143 #: ../src/guestfs-actions.pod:2143
10144 #, no-wrap
10145 msgid ""
10146 " struct guestfs_xattr_list *\n"
10147 " guestfs_getxattrs (guestfs_h *g,\n"
10148 "                    const char *path);\n"
10149 "\n"
10150 msgstr ""
10151
10152 # type: textblock
10153 #. type: textblock
10154 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1450
10155 msgid ""
10156 "This call lists the extended attributes of the file or directory C<path>."
10157 msgstr ""
10158
10159 # type: textblock
10160 #. type: textblock
10161 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1453
10162 msgid ""
10163 "At the system call level, this is a combination of the L<listxattr(2)> and "
10164 "L<getxattr(2)> calls."
10165 msgstr ""
10166
10167 # type: textblock
10168 #. type: textblock
10169 #: ../src/guestfs-actions.pod:2153
10170 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10171 msgstr ""
10172
10173 # type: textblock
10174 #. type: textblock
10175 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3305
10176 #: ../src/guestfs-actions.pod:3956
10177 msgid ""
10178 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10179 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10180 msgstr ""
10181
10182 # type: textblock
10183 #. type: textblock
10184 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3309
10185 #: ../src/guestfs-actions.pod:3474 ../src/guestfs-actions.pod:3510
10186 #: ../src/guestfs-actions.pod:5372 ../src/guestfs-actions.pod:5811
10187 #: ../src/guestfs-actions.pod:7146
10188 msgid "(Added in 1.0.59)"
10189 msgstr ""
10190
10191 # type: =head2
10192 #. type: =head2
10193 #: ../src/guestfs-actions.pod:2161
10194 msgid "guestfs_glob_expand"
10195 msgstr ""
10196
10197 # type: verbatim
10198 #. type: verbatim
10199 #: ../src/guestfs-actions.pod:2163
10200 #, no-wrap
10201 msgid ""
10202 " char **\n"
10203 " guestfs_glob_expand (guestfs_h *g,\n"
10204 "                      const char *pattern);\n"
10205 "\n"
10206 msgstr ""
10207
10208 # type: textblock
10209 #. type: textblock
10210 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1462
10211 msgid ""
10212 "This command searches for all the pathnames matching C<pattern> according to "
10213 "the wildcard expansion rules used by the shell."
10214 msgstr ""
10215
10216 # type: textblock
10217 #. type: textblock
10218 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1466
10219 msgid ""
10220 "If no paths match, then this returns an empty list (note: not an error)."
10221 msgstr ""
10222
10223 # type: textblock
10224 #. type: textblock
10225 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1469
10226 msgid ""
10227 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10228 "GLOB_BRACE>.  See that manual page for more details."
10229 msgstr ""
10230
10231 # type: textblock
10232 #. type: textblock
10233 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5976
10234 #: ../src/guestfs-actions.pod:5993
10235 msgid "(Added in 1.0.50)"
10236 msgstr ""
10237
10238 # type: =head2
10239 #. type: =head2
10240 #: ../src/guestfs-actions.pod:2184
10241 msgid "guestfs_grep"
10242 msgstr ""
10243
10244 # type: verbatim
10245 #. type: verbatim
10246 #: ../src/guestfs-actions.pod:2186
10247 #, no-wrap
10248 msgid ""
10249 " char **\n"
10250 " guestfs_grep (guestfs_h *g,\n"
10251 "               const char *regex,\n"
10252 "               const char *path);\n"
10253 "\n"
10254 msgstr ""
10255
10256 # type: textblock
10257 #. type: textblock
10258 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1477
10259 msgid "This calls the external C<grep> program and returns the matching lines."
10260 msgstr ""
10261
10262 # type: =head2
10263 #. type: =head2
10264 #: ../src/guestfs-actions.pod:2203
10265 msgid "guestfs_grepi"
10266 msgstr ""
10267
10268 # type: verbatim
10269 #. type: verbatim
10270 #: ../src/guestfs-actions.pod:2205
10271 #, no-wrap
10272 msgid ""
10273 " char **\n"
10274 " guestfs_grepi (guestfs_h *g,\n"
10275 "                const char *regex,\n"
10276 "                const char *path);\n"
10277 "\n"
10278 msgstr ""
10279
10280 # type: textblock
10281 #. type: textblock
10282 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1487
10283 msgid ""
10284 "This calls the external C<grep -i> program and returns the matching lines."
10285 msgstr ""
10286
10287 # type: =head2
10288 #. type: =head2
10289 #: ../src/guestfs-actions.pod:2222
10290 msgid "guestfs_grub_install"
10291 msgstr ""
10292
10293 # type: verbatim
10294 #. type: verbatim
10295 #: ../src/guestfs-actions.pod:2224
10296 #, no-wrap
10297 msgid ""
10298 " int\n"
10299 " guestfs_grub_install (guestfs_h *g,\n"
10300 "                       const char *root,\n"
10301 "                       const char *device);\n"
10302 "\n"
10303 msgstr ""
10304
10305 # type: textblock
10306 #. type: textblock
10307 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1497
10308 msgid ""
10309 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10310 "the root directory being C<root>."
10311 msgstr ""
10312
10313 # type: textblock
10314 #. type: textblock
10315 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1500
10316 msgid ""
10317 "Note: If grub-install reports the error \"No suitable drive was found in the "
10318 "generated device map.\" it may be that you need to create a C</boot/grub/"
10319 "device.map> file first that contains the mapping between grub device names "
10320 "and Linux device names.  It is usually sufficient to create a file "
10321 "containing:"
10322 msgstr ""
10323
10324 # type: verbatim
10325 #. type: verbatim
10326 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1507
10327 #, no-wrap
10328 msgid ""
10329 " (hd0) /dev/vda\n"
10330 "\n"
10331 msgstr ""
10332
10333 # type: textblock
10334 #. type: textblock
10335 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1509
10336 msgid "replacing C</dev/vda> with the name of the installation device."
10337 msgstr ""
10338
10339 # type: textblock
10340 #. type: textblock
10341 #: ../src/guestfs-actions.pod:2245
10342 msgid "(Added in 1.0.17)"
10343 msgstr ""
10344
10345 # type: =head2
10346 #. type: =head2
10347 #: ../src/guestfs-actions.pod:2247
10348 msgid "guestfs_head"
10349 msgstr ""
10350
10351 # type: verbatim
10352 #. type: verbatim
10353 #: ../src/guestfs-actions.pod:2249
10354 #, no-wrap
10355 msgid ""
10356 " char **\n"
10357 " guestfs_head (guestfs_h *g,\n"
10358 "               const char *path);\n"
10359 "\n"
10360 msgstr ""
10361
10362 # type: textblock
10363 #. type: textblock
10364 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1515
10365 msgid ""
10366 "This command returns up to the first 10 lines of a file as a list of strings."
10367 msgstr ""
10368
10369 # type: =head2
10370 #. type: =head2
10371 #: ../src/guestfs-actions.pod:2265
10372 msgid "guestfs_head_n"
10373 msgstr ""
10374
10375 # type: verbatim
10376 #. type: verbatim
10377 #: ../src/guestfs-actions.pod:2267
10378 #, no-wrap
10379 msgid ""
10380 " char **\n"
10381 " guestfs_head_n (guestfs_h *g,\n"
10382 "                 int nrlines,\n"
10383 "                 const char *path);\n"
10384 "\n"
10385 msgstr ""
10386
10387 # type: textblock
10388 #. type: textblock
10389 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1525
10390 msgid ""
10391 "If the parameter C<nrlines> is a positive number, this returns the first "
10392 "C<nrlines> lines of the file C<path>."
10393 msgstr ""
10394
10395 # type: textblock
10396 #. type: textblock
10397 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1528
10398 msgid ""
10399 "If the parameter C<nrlines> is a negative number, this returns lines from "
10400 "the file C<path>, excluding the last C<nrlines> lines."
10401 msgstr ""
10402
10403 # type: textblock
10404 #. type: textblock
10405 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6273
10406 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4186
10407 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10408 msgstr ""
10409
10410 # type: =head2
10411 #. type: =head2
10412 #: ../src/guestfs-actions.pod:2289
10413 msgid "guestfs_hexdump"
10414 msgstr ""
10415
10416 # type: verbatim
10417 #. type: verbatim
10418 #: ../src/guestfs-actions.pod:2291
10419 #, no-wrap
10420 msgid ""
10421 " char *\n"
10422 " guestfs_hexdump (guestfs_h *g,\n"
10423 "                  const char *path);\n"
10424 "\n"
10425 msgstr ""
10426
10427 # type: textblock
10428 #. type: textblock
10429 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1540
10430 msgid ""
10431 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10432 "readable, canonical hex dump of the file."
10433 msgstr ""
10434
10435 # type: textblock
10436 #. type: textblock
10437 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6057
10438 #: ../src/guestfs-actions.pod:6112
10439 msgid "(Added in 1.0.22)"
10440 msgstr ""
10441
10442 # type: =head2
10443 #. type: =head2
10444 #: ../src/guestfs-actions.pod:2306
10445 msgid "guestfs_initrd_cat"
10446 msgstr ""
10447
10448 # type: verbatim
10449 #. type: verbatim
10450 #: ../src/guestfs-actions.pod:2308
10451 #, no-wrap
10452 msgid ""
10453 " char *\n"
10454 " guestfs_initrd_cat (guestfs_h *g,\n"
10455 "                     const char *initrdpath,\n"
10456 "                     const char *filename,\n"
10457 "                     size_t *size_r);\n"
10458 "\n"
10459 msgstr ""
10460
10461 # type: textblock
10462 #. type: textblock
10463 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1550
10464 msgid ""
10465 "This command unpacks the file C<filename> from the initrd file called "
10466 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10467 "character."
10468 msgstr ""
10469
10470 # type: textblock
10471 #. type: textblock
10472 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1554
10473 msgid ""
10474 "For example, in guestfish you could use the following command to examine the "
10475 "boot script (usually called C</init>)  contained in a Linux initrd or "
10476 "initramfs image:"
10477 msgstr ""
10478
10479 # type: verbatim
10480 #. type: verbatim
10481 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1558
10482 #, no-wrap
10483 msgid ""
10484 " initrd-cat /boot/initrd-<version>.img init\n"
10485 "\n"
10486 msgstr ""
10487
10488 # type: textblock
10489 #. type: textblock
10490 #: ../src/guestfs-actions.pod:2324
10491 msgid "See also C<guestfs_initrd_list>."
10492 msgstr ""
10493
10494 # type: =head2
10495 #. type: =head2
10496 #: ../src/guestfs-actions.pod:2335
10497 msgid "guestfs_initrd_list"
10498 msgstr ""
10499
10500 # type: verbatim
10501 #. type: verbatim
10502 #: ../src/guestfs-actions.pod:2337
10503 #, no-wrap
10504 msgid ""
10505 " char **\n"
10506 " guestfs_initrd_list (guestfs_h *g,\n"
10507 "                      const char *path);\n"
10508 "\n"
10509 msgstr ""
10510
10511 # type: textblock
10512 #. type: textblock
10513 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1569
10514 msgid "This command lists out files contained in an initrd."
10515 msgstr ""
10516
10517 # type: textblock
10518 #. type: textblock
10519 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1571
10520 msgid ""
10521 "The files are listed without any initial C</> character.  The files are "
10522 "listed in the order they appear (not necessarily alphabetical).  Directory "
10523 "names are listed as separate items."
10524 msgstr ""
10525
10526 # type: textblock
10527 #. type: textblock
10528 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1575
10529 msgid ""
10530 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10531 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10532 "files)."
10533 msgstr ""
10534
10535 # type: =head2
10536 #. type: =head2
10537 #: ../src/guestfs-actions.pod:2357
10538 msgid "guestfs_inotify_add_watch"
10539 msgstr ""
10540
10541 # type: verbatim
10542 #. type: verbatim
10543 #: ../src/guestfs-actions.pod:2359
10544 #, no-wrap
10545 msgid ""
10546 " int64_t\n"
10547 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10548 "                            const char *path,\n"
10549 "                            int mask);\n"
10550 "\n"
10551 msgstr ""
10552
10553 # type: textblock
10554 #. type: textblock
10555 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1583
10556 msgid "Watch C<path> for the events listed in C<mask>."
10557 msgstr ""
10558
10559 # type: textblock
10560 #. type: textblock
10561 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1585
10562 msgid ""
10563 "Note that if C<path> is a directory then events within that directory are "
10564 "watched, but this does I<not> happen recursively (in subdirectories)."
10565 msgstr ""
10566
10567 # type: textblock
10568 #. type: textblock
10569 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1589
10570 msgid ""
10571 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10572 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10573 msgstr ""
10574
10575 # type: =head2
10576 #. type: =head2
10577 #: ../src/guestfs-actions.pod:2378
10578 msgid "guestfs_inotify_close"
10579 msgstr ""
10580
10581 # type: verbatim
10582 #. type: verbatim
10583 #: ../src/guestfs-actions.pod:2380
10584 #, no-wrap
10585 msgid ""
10586 " int\n"
10587 " guestfs_inotify_close (guestfs_h *g);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #. type: textblock
10593 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1597
10594 msgid ""
10595 "This closes the inotify handle which was previously opened by inotify_init.  "
10596 "It removes all watches, throws away any pending events, and deallocates all "
10597 "resources."
10598 msgstr ""
10599
10600 # type: =head2
10601 #. type: =head2
10602 #: ../src/guestfs-actions.pod:2391
10603 msgid "guestfs_inotify_files"
10604 msgstr ""
10605
10606 # type: verbatim
10607 #. type: verbatim
10608 #: ../src/guestfs-actions.pod:2393
10609 #, no-wrap
10610 msgid ""
10611 " char **\n"
10612 " guestfs_inotify_files (guestfs_h *g);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #. type: textblock
10618 #: ../src/guestfs-actions.pod:2396
10619 msgid ""
10620 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10621 "returns a list of pathnames of objects that were touched.  The returned "
10622 "pathnames are sorted and deduplicated."
10623 msgstr ""
10624
10625 # type: =head2
10626 #. type: =head2
10627 #: ../src/guestfs-actions.pod:2406
10628 msgid "guestfs_inotify_init"
10629 msgstr ""
10630
10631 # type: verbatim
10632 #. type: verbatim
10633 #: ../src/guestfs-actions.pod:2408
10634 #, no-wrap
10635 msgid ""
10636 " int\n"
10637 " guestfs_inotify_init (guestfs_h *g,\n"
10638 "                       int maxevents);\n"
10639 "\n"
10640 msgstr ""
10641
10642 # type: textblock
10643 #. type: textblock
10644 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1613
10645 msgid ""
10646 "This command creates a new inotify handle.  The inotify subsystem can be "
10647 "used to notify events which happen to objects in the guest filesystem."
10648 msgstr ""
10649
10650 # type: textblock
10651 #. type: textblock
10652 #: ../src/guestfs-actions.pod:2416
10653 msgid ""
10654 "C<maxevents> is the maximum number of events which will be queued up between "
10655 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10656 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10657 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10658 "throws away events, but records the fact that it threw them away by setting "
10659 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10660 "C<guestfs_inotify_read>)."
10661 msgstr ""
10662
10663 # type: textblock
10664 #. type: textblock
10665 #: ../src/guestfs-actions.pod:2426
10666 msgid ""
10667 "Before any events are generated, you have to add some watches to the "
10668 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10669 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10670 msgstr ""
10671
10672 # type: textblock
10673 #. type: textblock
10674 #: ../src/guestfs-actions.pod:2432
10675 msgid ""
10676 "Queued up events should be read periodically by calling "
10677 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10678 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10679 "often enough then you risk the internal queue overflowing."
10680 msgstr ""
10681
10682 # type: textblock
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2439
10685 msgid ""
10686 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10687 "This also removes any watches automatically."
10688 msgstr ""
10689
10690 # type: textblock
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1644
10693 msgid ""
10694 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10695 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10696 "that there is one global inotify handle per libguestfs instance."
10697 msgstr ""
10698
10699 # type: =head2
10700 #. type: =head2
10701 #: ../src/guestfs-actions.pod:2452
10702 msgid "guestfs_inotify_read"
10703 msgstr ""
10704
10705 # type: verbatim
10706 #. type: verbatim
10707 #: ../src/guestfs-actions.pod:2454
10708 #, no-wrap
10709 msgid ""
10710 " struct guestfs_inotify_event_list *\n"
10711 " guestfs_inotify_read (guestfs_h *g);\n"
10712 "\n"
10713 msgstr ""
10714
10715 # type: textblock
10716 #. type: textblock
10717 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1653
10718 msgid ""
10719 "Return the complete queue of events that have happened since the previous "
10720 "read call."
10721 msgstr ""
10722
10723 # type: textblock
10724 #. type: textblock
10725 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1656
10726 msgid "If no events have happened, this returns an empty list."
10727 msgstr ""
10728
10729 # type: textblock
10730 #. type: textblock
10731 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1658
10732 msgid ""
10733 "I<Note>: In order to make sure that all events have been read, you must call "
10734 "this function repeatedly until it returns an empty list.  The reason is that "
10735 "the call will read events up to the maximum appliance-to-host message size "
10736 "and leave remaining events in the queue."
10737 msgstr ""
10738
10739 # type: textblock
10740 #. type: textblock
10741 #: ../src/guestfs-actions.pod:2468
10742 msgid ""
10743 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10744 "there was an error.  I<The caller must call "
10745 "C<guestfs_free_inotify_event_list> after use>."
10746 msgstr ""
10747
10748 # type: =head2
10749 #. type: =head2
10750 #: ../src/guestfs-actions.pod:2474
10751 msgid "guestfs_inotify_rm_watch"
10752 msgstr ""
10753
10754 # type: verbatim
10755 #. type: verbatim
10756 #: ../src/guestfs-actions.pod:2476
10757 #, no-wrap
10758 msgid ""
10759 " int\n"
10760 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10761 "                           int wd);\n"
10762 "\n"
10763 msgstr ""
10764
10765 # type: textblock
10766 #. type: textblock
10767 #: ../src/guestfs-actions.pod:2480
10768 msgid ""
10769 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10770 msgstr ""
10771
10772 # type: =head2
10773 #. type: =head2
10774 #: ../src/guestfs-actions.pod:2487
10775 msgid "guestfs_inspect_get_arch"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #. type: verbatim
10780 #: ../src/guestfs-actions.pod:2489
10781 #, no-wrap
10782 msgid ""
10783 " char *\n"
10784 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10785 "                           const char *root);\n"
10786 "\n"
10787 msgstr ""
10788
10789 # type: textblock
10790 #. type: textblock
10791 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
10792 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
10793 #: ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672
10794 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2730
10795 #: ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2790
10796 #: ../src/guestfs-actions.pod:2834 ../src/guestfs-actions.pod:2876
10797 #: ../src/guestfs-actions.pod:2899
10798 msgid ""
10799 "This function should only be called with a root device string as returned by "
10800 "C<guestfs_inspect_os>."
10801 msgstr ""
10802
10803 # type: textblock
10804 #. type: textblock
10805 #: ../src/guestfs-actions.pod:2496
10806 msgid ""
10807 "This returns the architecture of the inspected operating system.  The "
10808 "possible return values are listed under C<guestfs_file_architecture>."
10809 msgstr ""
10810
10811 # type: textblock
10812 #. type: textblock
10813 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1682
10814 msgid ""
10815 "If the architecture could not be determined, then the string C<unknown> is "
10816 "returned."
10817 msgstr ""
10818
10819 # type: textblock
10820 #. type: textblock
10821 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
10822 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660
10823 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2777
10824 #: ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:2820
10825 #: ../src/guestfs-actions.pod:2863 ../src/guestfs-actions.pod:2886
10826 #: ../src/guestfs-actions.pod:2992 ../src/guestfs-actions.pod:3033
10827 #: ../fish/guestfish-actions.pod:1685 ../fish/guestfish-actions.pod:1759
10828 #: ../fish/guestfish-actions.pod:1792 ../fish/guestfish-actions.pod:1813
10829 #: ../fish/guestfish-actions.pod:1877 ../fish/guestfish-actions.pod:1901
10830 #: ../fish/guestfish-actions.pod:1918 ../fish/guestfish-actions.pod:1931
10831 #: ../fish/guestfish-actions.pod:1966 ../fish/guestfish-actions.pod:1982
10832 #: ../fish/guestfish-actions.pod:2081 ../fish/guestfish-actions.pod:2115
10833 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10834 msgstr ""
10835
10836 # type: =head2
10837 #. type: =head2
10838 #: ../src/guestfs-actions.pod:2510
10839 msgid "guestfs_inspect_get_distro"
10840 msgstr ""
10841
10842 # type: verbatim
10843 #. type: verbatim
10844 #: ../src/guestfs-actions.pod:2512
10845 #, no-wrap
10846 msgid ""
10847 " char *\n"
10848 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10849 "                             const char *root);\n"
10850 "\n"
10851 msgstr ""
10852
10853 # type: textblock
10854 #. type: textblock
10855 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1694
10856 msgid ""
10857 "This returns the distro (distribution) of the inspected operating system."
10858 msgstr ""
10859
10860 # type: textblock
10861 #. type: textblock
10862 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1697
10863 msgid "Currently defined distros are:"
10864 msgstr ""
10865
10866 # type: =item
10867 #. type: =item
10868 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1701
10869 msgid "\"archlinux\""
10870 msgstr ""
10871
10872 # type: textblock
10873 #. type: textblock
10874 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1703
10875 msgid "Arch Linux."
10876 msgstr ""
10877
10878 # type: =item
10879 #. type: =item
10880 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1705
10881 msgid "\"debian\""
10882 msgstr ""
10883
10884 # type: textblock
10885 #. type: textblock
10886 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1707
10887 msgid "Debian."
10888 msgstr ""
10889
10890 # type: =item
10891 #. type: =item
10892 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1709
10893 msgid "\"fedora\""
10894 msgstr ""
10895
10896 # type: textblock
10897 #. type: textblock
10898 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1711
10899 msgid "Fedora."
10900 msgstr ""
10901
10902 # type: =item
10903 #. type: =item
10904 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1713
10905 msgid "\"gentoo\""
10906 msgstr ""
10907
10908 # type: textblock
10909 #. type: textblock
10910 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1715
10911 msgid "Gentoo."
10912 msgstr ""
10913
10914 # type: =item
10915 #. type: =item
10916 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1717
10917 msgid "\"linuxmint\""
10918 msgstr ""
10919
10920 # type: textblock
10921 #. type: textblock
10922 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1719
10923 msgid "Linux Mint."
10924 msgstr ""
10925
10926 # type: =item
10927 #. type: =item
10928 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1721
10929 msgid "\"mandriva\""
10930 msgstr ""
10931
10932 # type: textblock
10933 #. type: textblock
10934 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1723
10935 msgid "Mandriva."
10936 msgstr ""
10937
10938 # type: =item
10939 #. type: =item
10940 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1725
10941 msgid "\"meego\""
10942 msgstr ""
10943
10944 # type: textblock
10945 #. type: textblock
10946 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1727
10947 msgid "MeeGo."
10948 msgstr ""
10949
10950 # type: =item
10951 #. type: =item
10952 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1729
10953 msgid "\"pardus\""
10954 msgstr ""
10955
10956 # type: textblock
10957 #. type: textblock
10958 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1731
10959 msgid "Pardus."
10960 msgstr ""
10961
10962 # type: =item
10963 #. type: =item
10964 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1733
10965 msgid "\"redhat-based\""
10966 msgstr ""
10967
10968 # type: textblock
10969 #. type: textblock
10970 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1735
10971 msgid "Some Red Hat-derived distro."
10972 msgstr ""
10973
10974 # type: =item
10975 #. type: =item
10976 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1737
10977 msgid "\"rhel\""
10978 msgstr ""
10979
10980 # type: textblock
10981 #. type: textblock
10982 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1739
10983 msgid "Red Hat Enterprise Linux and some derivatives."
10984 msgstr ""
10985
10986 # type: =item
10987 #. type: =item
10988 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1741
10989 msgid "\"ubuntu\""
10990 msgstr ""
10991
10992 # type: textblock
10993 #. type: textblock
10994 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1743
10995 msgid "Ubuntu."
10996 msgstr ""
10997
10998 # type: =item
10999 #. type: =item
11000 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2854
11001 #: ../fish/guestfish-actions.pod:1745 ../fish/guestfish-actions.pod:1957
11002 msgid "\"unknown\""
11003 msgstr ""
11004
11005 # type: textblock
11006 #. type: textblock
11007 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1747
11008 msgid "The distro could not be determined."
11009 msgstr ""
11010
11011 # type: =item
11012 #. type: =item
11013 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2846
11014 #: ../fish/guestfish-actions.pod:1749 ../fish/guestfish-actions.pod:1949
11015 msgid "\"windows\""
11016 msgstr ""
11017
11018 # type: textblock
11019 #. type: textblock
11020 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1751
11021 msgid ""
11022 "Windows does not have distributions.  This string is returned if the OS type "
11023 "is Windows."
11024 msgstr ""
11025
11026 # type: textblock
11027 #. type: textblock
11028 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2860
11029 #: ../fish/guestfish-actions.pod:1756 ../fish/guestfish-actions.pod:1963
11030 msgid ""
11031 "Future versions of libguestfs may return other strings here.  The caller "
11032 "should be prepared to handle any string."
11033 msgstr ""
11034
11035 # type: =head2
11036 #. type: =head2
11037 #: ../src/guestfs-actions.pod:2591
11038 msgid "guestfs_inspect_get_filesystems"
11039 msgstr ""
11040
11041 # type: verbatim
11042 #. type: verbatim
11043 #: ../src/guestfs-actions.pod:2593
11044 #, no-wrap
11045 msgid ""
11046 " char **\n"
11047 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11048 "                                  const char *root);\n"
11049 "\n"
11050 msgstr ""
11051
11052 # type: textblock
11053 #. type: textblock
11054 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1768
11055 msgid ""
11056 "This returns a list of all the filesystems that we think are associated with "
11057 "this operating system.  This includes the root filesystem, other ordinary "
11058 "filesystems, and non-mounted devices like swap partitions."
11059 msgstr ""
11060
11061 # type: textblock
11062 #. type: textblock
11063 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1773
11064 msgid ""
11065 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11066 "to be shared between operating systems."
11067 msgstr ""
11068
11069 # type: textblock
11070 #. type: textblock
11071 #: ../src/guestfs-actions.pod:2608
11072 msgid ""
11073 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11074 "C<guestfs_inspect_get_mountpoints>."
11075 msgstr ""
11076
11077 # type: =head2
11078 #. type: =head2
11079 #: ../src/guestfs-actions.pod:2617
11080 msgid "guestfs_inspect_get_hostname"
11081 msgstr ""
11082
11083 # type: verbatim
11084 #. type: verbatim
11085 #: ../src/guestfs-actions.pod:2619
11086 #, no-wrap
11087 msgid ""
11088 " char *\n"
11089 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11090 "                               const char *root);\n"
11091 "\n"
11092 msgstr ""
11093
11094 # type: textblock
11095 #. type: textblock
11096 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1786
11097 msgid ""
11098 "This function returns the hostname of the operating system as found by "
11099 "inspection of the guest's configuration files."
11100 msgstr ""
11101
11102 # type: textblock
11103 #. type: textblock
11104 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1789
11105 msgid ""
11106 "If the hostname could not be determined, then the string C<unknown> is "
11107 "returned."
11108 msgstr ""
11109
11110 # type: textblock
11111 #. type: textblock
11112 #: ../src/guestfs-actions.pod:2637
11113 msgid "(Added in 1.7.9)"
11114 msgstr ""
11115
11116 # type: =head2
11117 #. type: =head2
11118 #: ../src/guestfs-actions.pod:2639
11119 msgid "guestfs_inspect_get_major_version"
11120 msgstr ""
11121
11122 # type: verbatim
11123 #. type: verbatim
11124 #: ../src/guestfs-actions.pod:2641
11125 #, no-wrap
11126 msgid ""
11127 " int\n"
11128 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11129 "                                    const char *root);\n"
11130 "\n"
11131 msgstr ""
11132
11133 # type: textblock
11134 #. type: textblock
11135 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1801
11136 msgid ""
11137 "This returns the major version number of the inspected operating system."
11138 msgstr ""
11139
11140 # type: textblock
11141 #. type: textblock
11142 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1804
11143 msgid ""
11144 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11145 "popular public names used by the operating system.  Notably the operating "
11146 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11147 "1).  You can find out the real versions corresponding to releases of Windows "
11148 "by consulting Wikipedia or MSDN."
11149 msgstr ""
11150
11151 # type: textblock
11152 #. type: textblock
11153 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678
11154 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1825
11155 msgid "If the version could not be determined, then C<0> is returned."
11156 msgstr ""
11157
11158 # type: =head2
11159 #. type: =head2
11160 #: ../src/guestfs-actions.pod:2666
11161 msgid "guestfs_inspect_get_minor_version"
11162 msgstr ""
11163
11164 # type: verbatim
11165 #. type: verbatim
11166 #: ../src/guestfs-actions.pod:2668
11167 #, no-wrap
11168 msgid ""
11169 " int\n"
11170 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11171 "                                    const char *root);\n"
11172 "\n"
11173 msgstr ""
11174
11175 # type: textblock
11176 #. type: textblock
11177 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1822
11178 msgid ""
11179 "This returns the minor version number of the inspected operating system."
11180 msgstr ""
11181
11182 # type: textblock
11183 #. type: textblock
11184 #: ../src/guestfs-actions.pod:2680
11185 msgid ""
11186 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11187 "C<guestfs_inspect_get_major_version>."
11188 msgstr ""
11189
11190 # type: =head2
11191 #. type: =head2
11192 #: ../src/guestfs-actions.pod:2687
11193 msgid "guestfs_inspect_get_mountpoints"
11194 msgstr ""
11195
11196 # type: verbatim
11197 #. type: verbatim
11198 #: ../src/guestfs-actions.pod:2689
11199 #, no-wrap
11200 msgid ""
11201 " char **\n"
11202 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11203 "                                  const char *root);\n"
11204 "\n"
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1837
11209 msgid ""
11210 "This returns a hash of where we think the filesystems associated with this "
11211 "operating system should be mounted.  Callers should note that this is at "
11212 "best an educated guess made by reading configuration files such as C</etc/"
11213 "fstab>.  I<In particular note> that this may return filesystems which are "
11214 "non-existent or not mountable and callers should be prepared to handle or "
11215 "ignore failures if they try to mount them."
11216 msgstr ""
11217
11218 # type: textblock
11219 #. type: textblock
11220 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1846
11221 msgid ""
11222 "Each element in the returned hashtable has a key which is the path of the "
11223 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11224 "mounted there (eg. C</dev/sda1>)."
11225 msgstr ""
11226
11227 # type: textblock
11228 #. type: textblock
11229 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1851
11230 msgid ""
11231 "Non-mounted devices such as swap devices are I<not> returned in this list."
11232 msgstr ""
11233
11234 # type: textblock
11235 #. type: textblock
11236 #: ../src/guestfs-actions.pod:2713
11237 msgid ""
11238 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11239 "C<guestfs_inspect_get_filesystems>."
11240 msgstr ""
11241
11242 # type: textblock
11243 #. type: textblock
11244 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:3362
11245 #: ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:6414
11246 msgid ""
11247 "This function returns a NULL-terminated array of strings, or NULL if there "
11248 "was an error.  The array of strings will always have length C<2n+1>, where "
11249 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11250 "caller must free the strings and the array after use>."
11251 msgstr ""
11252
11253 # type: =head2
11254 #. type: =head2
11255 #: ../src/guestfs-actions.pod:2724
11256 msgid "guestfs_inspect_get_package_format"
11257 msgstr ""
11258
11259 # type: verbatim
11260 #. type: verbatim
11261 #: ../src/guestfs-actions.pod:2726
11262 #, no-wrap
11263 msgid ""
11264 " char *\n"
11265 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11266 "                                     const char *root);\n"
11267 "\n"
11268 msgstr ""
11269
11270 # type: textblock
11271 #. type: textblock
11272 #: ../src/guestfs-actions.pod:2733
11273 msgid ""
11274 "This function and C<guestfs_inspect_get_package_management> return the "
11275 "package format and package management tool used by the inspected operating "
11276 "system.  For example for Fedora these functions would return C<rpm> (package "
11277 "format) and C<yum> (package management)."
11278 msgstr ""
11279
11280 # type: textblock
11281 #. type: textblock
11282 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1870
11283 msgid ""
11284 "This returns the string C<unknown> if we could not determine the package "
11285 "format I<or> if the operating system does not have a real packaging system "
11286 "(eg. Windows)."
11287 msgstr ""
11288
11289 # type: textblock
11290 #. type: textblock
11291 #: ../src/guestfs-actions.pod:2743 ../fish/guestfish-actions.pod:1874
11292 msgid ""
11293 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11294 "Future versions of libguestfs may return other strings."
11295 msgstr ""
11296
11297 # type: textblock
11298 #. type: textblock
11299 #: ../src/guestfs-actions.pod:2751 ../src/guestfs-actions.pod:2782
11300 msgid "(Added in 1.7.5)"
11301 msgstr ""
11302
11303 # type: =head2
11304 #. type: =head2
11305 #: ../src/guestfs-actions.pod:2753
11306 msgid "guestfs_inspect_get_package_management"
11307 msgstr ""
11308
11309 # type: verbatim
11310 #. type: verbatim
11311 #: ../src/guestfs-actions.pod:2755
11312 #, no-wrap
11313 msgid ""
11314 " char *\n"
11315 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11316 "                                         const char *root);\n"
11317 "\n"
11318 msgstr ""
11319
11320 # type: textblock
11321 #. type: textblock
11322 #: ../src/guestfs-actions.pod:2762
11323 msgid ""
11324 "C<guestfs_inspect_get_package_format> and this function return the package "
11325 "format and package management tool used by the inspected operating system.  "
11326 "For example for Fedora these functions would return C<rpm> (package format) "
11327 "and C<yum> (package management)."
11328 msgstr ""
11329
11330 # type: textblock
11331 #. type: textblock
11332 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1892
11333 msgid ""
11334 "This returns the string C<unknown> if we could not determine the package "
11335 "management tool I<or> if the operating system does not have a real packaging "
11336 "system (eg. Windows)."
11337 msgstr ""
11338
11339 # type: textblock
11340 #. type: textblock
11341 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1896
11342 msgid ""
11343 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11344 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11345 "libguestfs may return other strings."
11346 msgstr ""
11347
11348 # type: =head2
11349 #. type: =head2
11350 #: ../src/guestfs-actions.pod:2784
11351 msgid "guestfs_inspect_get_product_name"
11352 msgstr ""
11353
11354 # type: verbatim
11355 #. type: verbatim
11356 #: ../src/guestfs-actions.pod:2786
11357 #, no-wrap
11358 msgid ""
11359 " char *\n"
11360 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11361 "                                   const char *root);\n"
11362 "\n"
11363 msgstr ""
11364
11365 # type: textblock
11366 #. type: textblock
11367 #: ../src/guestfs-actions.pod:2793 ../fish/guestfish-actions.pod:1910
11368 msgid ""
11369 "This returns the product name of the inspected operating system.  The "
11370 "product name is generally some freeform string which can be displayed to the "
11371 "user, but should not be parsed by programs."
11372 msgstr ""
11373
11374 # type: textblock
11375 #. type: textblock
11376 #: ../src/guestfs-actions.pod:2798 ../fish/guestfish-actions.pod:1915
11377 msgid ""
11378 "If the product name could not be determined, then the string C<unknown> is "
11379 "returned."
11380 msgstr ""
11381
11382 # type: =head2
11383 #. type: =head2
11384 #: ../src/guestfs-actions.pod:2808
11385 msgid "guestfs_inspect_get_roots"
11386 msgstr ""
11387
11388 # type: verbatim
11389 #. type: verbatim
11390 #: ../src/guestfs-actions.pod:2810
11391 #, no-wrap
11392 msgid ""
11393 " char **\n"
11394 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11395 "\n"
11396 msgstr ""
11397
11398 # type: textblock
11399 #. type: textblock
11400 #: ../src/guestfs-actions.pod:2813
11401 msgid ""
11402 "This function is a convenient way to get the list of root devices, as "
11403 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11404 "the whole inspection process."
11405 msgstr ""
11406
11407 # type: textblock
11408 #. type: textblock
11409 #: ../src/guestfs-actions.pod:2817
11410 msgid ""
11411 "This returns an empty list if either no root devices were found or the "
11412 "caller has not called C<guestfs_inspect_os>."
11413 msgstr ""
11414
11415 # type: textblock
11416 #. type: textblock
11417 #: ../src/guestfs-actions.pod:2826
11418 msgid "(Added in 1.7.3)"
11419 msgstr ""
11420
11421 # type: =head2
11422 #. type: =head2
11423 #: ../src/guestfs-actions.pod:2828
11424 msgid "guestfs_inspect_get_type"
11425 msgstr ""
11426
11427 # type: verbatim
11428 #. type: verbatim
11429 #: ../src/guestfs-actions.pod:2830
11430 #, no-wrap
11431 msgid ""
11432 " char *\n"
11433 " guestfs_inspect_get_type (guestfs_h *g,\n"
11434 "                           const char *root);\n"
11435 "\n"
11436 msgstr ""
11437
11438 # type: textblock
11439 #. type: textblock
11440 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1940
11441 msgid ""
11442 "This returns the type of the inspected operating system.  Currently defined "
11443 "types are:"
11444 msgstr ""
11445
11446 # type: =item
11447 #. type: =item
11448 #: ../src/guestfs-actions.pod:2842 ../fish/guestfish-actions.pod:1945
11449 msgid "\"linux\""
11450 msgstr ""
11451
11452 # type: textblock
11453 #. type: textblock
11454 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1947
11455 msgid "Any Linux-based operating system."
11456 msgstr ""
11457
11458 # type: textblock
11459 #. type: textblock
11460 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1951
11461 msgid "Any Microsoft Windows operating system."
11462 msgstr ""
11463
11464 # type: =item
11465 #. type: =item
11466 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1953
11467 msgid "\"freebsd\""
11468 msgstr ""
11469
11470 # type: textblock
11471 #. type: textblock
11472 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1955
11473 msgid "FreeBSD."
11474 msgstr ""
11475
11476 # type: textblock
11477 #. type: textblock
11478 #: ../src/guestfs-actions.pod:2856 ../fish/guestfish-actions.pod:1959
11479 msgid "The operating system type could not be determined."
11480 msgstr ""
11481
11482 # type: =head2
11483 #. type: =head2
11484 #: ../src/guestfs-actions.pod:2870
11485 msgid "guestfs_inspect_get_windows_systemroot"
11486 msgstr ""
11487
11488 # type: verbatim
11489 #. type: verbatim
11490 #: ../src/guestfs-actions.pod:2872
11491 #, no-wrap
11492 msgid ""
11493 " char *\n"
11494 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11495 "                                         const char *root);\n"
11496 "\n"
11497 msgstr ""
11498
11499 # type: textblock
11500 #. type: textblock
11501 #: ../src/guestfs-actions.pod:2879 ../fish/guestfish-actions.pod:1975
11502 msgid ""
11503 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11504 "is a directory path such as C</WINDOWS>."
11505 msgstr ""
11506
11507 # type: textblock
11508 #. type: textblock
11509 #: ../src/guestfs-actions.pod:2882 ../fish/guestfish-actions.pod:1978
11510 msgid ""
11511 "This call assumes that the guest is Windows and that the systemroot could be "
11512 "determined by inspection.  If this is not the case then an error is returned."
11513 msgstr ""
11514
11515 # type: textblock
11516 #. type: textblock
11517 #: ../src/guestfs-actions.pod:2891
11518 msgid "(Added in 1.5.25)"
11519 msgstr ""
11520
11521 # type: =head2
11522 #. type: =head2
11523 #: ../src/guestfs-actions.pod:2893
11524 msgid "guestfs_inspect_list_applications"
11525 msgstr ""
11526
11527 # type: verbatim
11528 #. type: verbatim
11529 #: ../src/guestfs-actions.pod:2895
11530 #, no-wrap
11531 msgid ""
11532 " struct guestfs_application_list *\n"
11533 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11534 "                                    const char *root);\n"
11535 "\n"
11536 msgstr ""
11537
11538 # type: textblock
11539 #. type: textblock
11540 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:1991
11541 msgid "Return the list of applications installed in the operating system."
11542 msgstr ""
11543
11544 # type: textblock
11545 #. type: textblock
11546 #: ../src/guestfs-actions.pod:2904
11547 msgid ""
11548 "I<Note:> This call works differently from other parts of the inspection "
11549 "API.  You have to call C<guestfs_inspect_os>, then "
11550 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11551 "this.  Listing applications is a significantly more difficult operation "
11552 "which requires access to the full filesystem.  Also note that unlike the "
11553 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11554 "the libguestfs handle, this call actually reads parts of the mounted "
11555 "filesystems during the call."
11556 msgstr ""
11557
11558 # type: textblock
11559 #. type: textblock
11560 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2003
11561 msgid ""
11562 "This returns an empty list if the inspection code was not able to determine "
11563 "the list of applications."
11564 msgstr ""
11565
11566 # type: textblock
11567 #. type: textblock
11568 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2006
11569 msgid "The application structure contains the following fields:"
11570 msgstr ""
11571
11572 # type: =item
11573 #. type: =item
11574 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2010
11575 msgid "C<app_name>"
11576 msgstr ""
11577
11578 # type: textblock
11579 #. type: textblock
11580 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2012
11581 msgid ""
11582 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11583 "guests, this is the package name."
11584 msgstr ""
11585
11586 # type: =item
11587 #. type: =item
11588 #: ../src/guestfs-actions.pod:2926 ../fish/guestfish-actions.pod:2015
11589 msgid "C<app_display_name>"
11590 msgstr ""
11591
11592 # type: textblock
11593 #. type: textblock
11594 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2017
11595 msgid ""
11596 "The display name of the application, sometimes localized to the install "
11597 "language of the guest operating system."
11598 msgstr ""
11599
11600 # type: textblock
11601 #. type: textblock
11602 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:2020
11603 msgid ""
11604 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11605 "to display something can use C<app_name> instead."
11606 msgstr ""
11607
11608 # type: =item
11609 #. type: =item
11610 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2023
11611 msgid "C<app_epoch>"
11612 msgstr ""
11613
11614 # type: textblock
11615 #. type: textblock
11616 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2025
11617 msgid ""
11618 "For package managers which use epochs, this contains the epoch of the "
11619 "package (an integer).  If unavailable, this is returned as C<0>."
11620 msgstr ""
11621
11622 # type: =item
11623 #. type: =item
11624 #: ../src/guestfs-actions.pod:2939 ../fish/guestfish-actions.pod:2028
11625 msgid "C<app_version>"
11626 msgstr ""
11627
11628 # type: textblock
11629 #. type: textblock
11630 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:2030
11631 msgid ""
11632 "The version string of the application or package.  If unavailable this is "
11633 "returned as an empty string C<\"\">."
11634 msgstr ""
11635
11636 # type: =item
11637 #. type: =item
11638 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2033
11639 msgid "C<app_release>"
11640 msgstr ""
11641
11642 # type: textblock
11643 #. type: textblock
11644 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2035
11645 msgid ""
11646 "The release string of the application or package, for package managers that "
11647 "use this.  If unavailable this is returned as an empty string C<\"\">."
11648 msgstr ""
11649
11650 # type: =item
11651 #. type: =item
11652 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2039
11653 msgid "C<app_install_path>"
11654 msgstr ""
11655
11656 # type: textblock
11657 #. type: textblock
11658 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:2041
11659 msgid ""
11660 "The installation path of the application (on operating systems such as "
11661 "Windows which use installation paths).  This path is in the format used by "
11662 "the guest operating system, it is not a libguestfs path."
11663 msgstr ""
11664
11665 # type: textblock
11666 #. type: textblock
11667 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2046
11668 msgid "If unavailable this is returned as an empty string C<\"\">."
11669 msgstr ""
11670
11671 # type: =item
11672 #. type: =item
11673 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2048
11674 msgid "C<app_trans_path>"
11675 msgstr ""
11676
11677 # type: textblock
11678 #. type: textblock
11679 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:2050
11680 msgid ""
11681 "The install path translated into a libguestfs path.  If unavailable this is "
11682 "returned as an empty string C<\"\">."
11683 msgstr ""
11684
11685 # type: =item
11686 #. type: =item
11687 #: ../src/guestfs-actions.pod:2964 ../fish/guestfish-actions.pod:2053
11688 msgid "C<app_publisher>"
11689 msgstr ""
11690
11691 # type: textblock
11692 #. type: textblock
11693 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2055
11694 msgid ""
11695 "The name of the publisher of the application, for package managers that use "
11696 "this.  If unavailable this is returned as an empty string C<\"\">."
11697 msgstr ""
11698
11699 # type: =item
11700 #. type: =item
11701 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2059
11702 msgid "C<app_url>"
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2972 ../fish/guestfish-actions.pod:2061
11708 msgid ""
11709 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11710 "returned as an empty string C<\"\">."
11711 msgstr ""
11712
11713 # type: =item
11714 #. type: =item
11715 #: ../src/guestfs-actions.pod:2975 ../fish/guestfish-actions.pod:2064
11716 msgid "C<app_source_package>"
11717 msgstr ""
11718
11719 # type: textblock
11720 #. type: textblock
11721 #: ../src/guestfs-actions.pod:2977 ../fish/guestfish-actions.pod:2066
11722 msgid ""
11723 "For packaging systems which support this, the name of the source package.  "
11724 "If unavailable this is returned as an empty string C<\"\">."
11725 msgstr ""
11726
11727 # type: =item
11728 #. type: =item
11729 #: ../src/guestfs-actions.pod:2980 ../fish/guestfish-actions.pod:2069
11730 msgid "C<app_summary>"
11731 msgstr ""
11732
11733 # type: textblock
11734 #. type: textblock
11735 #: ../src/guestfs-actions.pod:2982 ../fish/guestfish-actions.pod:2071
11736 msgid ""
11737 "A short (usually one line) description of the application or package.  If "
11738 "unavailable this is returned as an empty string C<\"\">."
11739 msgstr ""
11740
11741 # type: =item
11742 #. type: =item
11743 #: ../src/guestfs-actions.pod:2985 ../fish/guestfish-actions.pod:2074
11744 msgid "C<app_description>"
11745 msgstr ""
11746
11747 # type: textblock
11748 #. type: textblock
11749 #: ../src/guestfs-actions.pod:2987 ../fish/guestfish-actions.pod:2076
11750 msgid ""
11751 "A longer description of the application or package.  If unavailable this is "
11752 "returned as an empty string C<\"\">."
11753 msgstr ""
11754
11755 # type: textblock
11756 #. type: textblock
11757 #: ../src/guestfs-actions.pod:2994
11758 msgid ""
11759 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11760 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11761 "after use>."
11762 msgstr ""
11763
11764 # type: textblock
11765 #. type: textblock
11766 #: ../src/guestfs-actions.pod:2998
11767 msgid "(Added in 1.7.8)"
11768 msgstr ""
11769
11770 # type: =head2
11771 #. type: =head2
11772 #: ../src/guestfs-actions.pod:3000
11773 msgid "guestfs_inspect_os"
11774 msgstr ""
11775
11776 # type: verbatim
11777 #. type: verbatim
11778 #: ../src/guestfs-actions.pod:3002
11779 #, no-wrap
11780 msgid ""
11781 " char **\n"
11782 " guestfs_inspect_os (guestfs_h *g);\n"
11783 "\n"
11784 msgstr ""
11785
11786 # type: textblock
11787 #. type: textblock
11788 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2087
11789 msgid ""
11790 "This function uses other libguestfs functions and certain heuristics to "
11791 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11792 "for operating systems."
11793 msgstr ""
11794
11795 # type: textblock
11796 #. type: textblock
11797 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2091
11798 msgid "The list returned is empty if no operating systems were found."
11799 msgstr ""
11800
11801 # type: textblock
11802 #. type: textblock
11803 #: ../src/guestfs-actions.pod:3011 ../fish/guestfish-actions.pod:2093
11804 msgid ""
11805 "If one operating system was found, then this returns a list with a single "
11806 "element, which is the name of the root filesystem of this operating system.  "
11807 "It is also possible for this function to return a list containing more than "
11808 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11809 "element being the root filesystem of one of the operating systems."
11810 msgstr ""
11811
11812 # type: textblock
11813 #. type: textblock
11814 #: ../src/guestfs-actions.pod:3018
11815 msgid ""
11816 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11817 "functions in order to query further information about each operating system, "
11818 "such as the name and version."
11819 msgstr ""
11820
11821 # type: textblock
11822 #. type: textblock
11823 #: ../src/guestfs-actions.pod:3023
11824 msgid ""
11825 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11826 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11827 "the contents.  This should be called with no disks currently mounted.  The "
11828 "function may also use Augeas, so any existing Augeas handle will be closed."
11829 msgstr ""
11830
11831 # type: textblock
11832 #. type: textblock
11833 #: ../src/guestfs-actions.pod:3029 ../fish/guestfish-actions.pod:2111
11834 msgid ""
11835 "This function cannot decrypt encrypted disks.  The caller must do that first "
11836 "(supplying the necessary keys) if the disk is encrypted."
11837 msgstr ""
11838
11839 # type: textblock
11840 #. type: textblock
11841 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3320
11842 #: ../src/guestfs-actions.pod:3382
11843 msgid "See also C<guestfs_list_filesystems>."
11844 msgstr ""
11845
11846 # type: =head2
11847 #. type: =head2
11848 #: ../src/guestfs-actions.pod:3043
11849 msgid "guestfs_is_blockdev"
11850 msgstr ""
11851
11852 # type: verbatim
11853 #. type: verbatim
11854 #: ../src/guestfs-actions.pod:3045
11855 #, no-wrap
11856 msgid ""
11857 " int\n"
11858 " guestfs_is_blockdev (guestfs_h *g,\n"
11859 "                      const char *path);\n"
11860 "\n"
11861 msgstr ""
11862
11863 # type: textblock
11864 #. type: textblock
11865 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2123
11866 msgid ""
11867 "This returns C<true> if and only if there is a block device with the given "
11868 "C<path> name."
11869 msgstr ""
11870
11871 # type: textblock
11872 #. type: textblock
11873 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081
11874 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3126
11875 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3198
11876 #: ../src/guestfs-actions.pod:3213
11877 msgid "See also C<guestfs_stat>."
11878 msgstr ""
11879
11880 # type: textblock
11881 #. type: textblock
11882 #: ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3085
11883 #: ../src/guestfs-actions.pod:3130 ../src/guestfs-actions.pod:3202
11884 #: ../src/guestfs-actions.pod:3217
11885 msgid "(Added in 1.5.10)"
11886 msgstr ""
11887
11888 # type: =head2
11889 #. type: =head2
11890 #: ../src/guestfs-actions.pod:3058
11891 msgid "guestfs_is_busy"
11892 msgstr ""
11893
11894 # type: verbatim
11895 #. type: verbatim
11896 #: ../src/guestfs-actions.pod:3060
11897 #, no-wrap
11898 msgid ""
11899 " int\n"
11900 " guestfs_is_busy (guestfs_h *g);\n"
11901 "\n"
11902 msgstr ""
11903
11904 # type: textblock
11905 #. type: textblock
11906 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2132
11907 msgid ""
11908 "This returns true iff this handle is busy processing a command (in the "
11909 "C<BUSY> state)."
11910 msgstr ""
11911
11912 # type: =head2
11913 #. type: =head2
11914 #: ../src/guestfs-actions.pod:3072
11915 msgid "guestfs_is_chardev"
11916 msgstr ""
11917
11918 # type: verbatim
11919 #. type: verbatim
11920 #: ../src/guestfs-actions.pod:3074
11921 #, no-wrap
11922 msgid ""
11923 " int\n"
11924 " guestfs_is_chardev (guestfs_h *g,\n"
11925 "                     const char *path);\n"
11926 "\n"
11927 msgstr ""
11928
11929 # type: textblock
11930 #. type: textblock
11931 #: ../src/guestfs-actions.pod:3078 ../fish/guestfish-actions.pod:2141
11932 msgid ""
11933 "This returns C<true> if and only if there is a character device with the "
11934 "given C<path> name."
11935 msgstr ""
11936
11937 # type: =head2
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:3087
11940 msgid "guestfs_is_config"
11941 msgstr ""
11942
11943 # type: verbatim
11944 #. type: verbatim
11945 #: ../src/guestfs-actions.pod:3089
11946 #, no-wrap
11947 msgid ""
11948 " int\n"
11949 " guestfs_is_config (guestfs_h *g);\n"
11950 "\n"
11951 msgstr ""
11952
11953 # type: textblock
11954 #. type: textblock
11955 #: ../src/guestfs-actions.pod:3092 ../fish/guestfish-actions.pod:2150
11956 msgid ""
11957 "This returns true iff this handle is being configured (in the C<CONFIG> "
11958 "state)."
11959 msgstr ""
11960
11961 # type: =head2
11962 #. type: =head2
11963 #: ../src/guestfs-actions.pod:3101
11964 msgid "guestfs_is_dir"
11965 msgstr ""
11966
11967 # type: verbatim
11968 #. type: verbatim
11969 #: ../src/guestfs-actions.pod:3103
11970 #, no-wrap
11971 msgid ""
11972 " int\n"
11973 " guestfs_is_dir (guestfs_h *g,\n"
11974 "                 const char *path);\n"
11975 "\n"
11976 msgstr ""
11977
11978 # type: textblock
11979 #. type: textblock
11980 #: ../src/guestfs-actions.pod:3107 ../fish/guestfish-actions.pod:2159
11981 msgid ""
11982 "This returns C<true> if and only if there is a directory with the given "
11983 "C<path> name.  Note that it returns false for other objects like files."
11984 msgstr ""
11985
11986 # type: =head2
11987 #. type: =head2
11988 #: ../src/guestfs-actions.pod:3117
11989 msgid "guestfs_is_fifo"
11990 msgstr ""
11991
11992 # type: verbatim
11993 #. type: verbatim
11994 #: ../src/guestfs-actions.pod:3119
11995 #, no-wrap
11996 msgid ""
11997 " int\n"
11998 " guestfs_is_fifo (guestfs_h *g,\n"
11999 "                  const char *path);\n"
12000 "\n"
12001 msgstr ""
12002
12003 # type: textblock
12004 #. type: textblock
12005 #: ../src/guestfs-actions.pod:3123 ../fish/guestfish-actions.pod:2169
12006 msgid ""
12007 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12008 "given C<path> name."
12009 msgstr ""
12010
12011 # type: =head2
12012 #. type: =head2
12013 #: ../src/guestfs-actions.pod:3132
12014 msgid "guestfs_is_file"
12015 msgstr ""
12016
12017 # type: verbatim
12018 #. type: verbatim
12019 #: ../src/guestfs-actions.pod:3134
12020 #, no-wrap
12021 msgid ""
12022 " int\n"
12023 " guestfs_is_file (guestfs_h *g,\n"
12024 "                  const char *path);\n"
12025 "\n"
12026 msgstr ""
12027
12028 # type: textblock
12029 #. type: textblock
12030 #: ../src/guestfs-actions.pod:3138 ../fish/guestfish-actions.pod:2178
12031 msgid ""
12032 "This returns C<true> if and only if there is a regular file with the given "
12033 "C<path> name.  Note that it returns false for other objects like directories."
12034 msgstr ""
12035
12036 # type: =head2
12037 #. type: =head2
12038 #: ../src/guestfs-actions.pod:3148
12039 msgid "guestfs_is_launching"
12040 msgstr ""
12041
12042 # type: verbatim
12043 #. type: verbatim
12044 #: ../src/guestfs-actions.pod:3150
12045 #, no-wrap
12046 msgid ""
12047 " int\n"
12048 " guestfs_is_launching (guestfs_h *g);\n"
12049 "\n"
12050 msgstr ""
12051
12052 # type: textblock
12053 #. type: textblock
12054 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2188
12055 msgid ""
12056 "This returns true iff this handle is launching the subprocess (in the "
12057 "C<LAUNCHING> state)."
12058 msgstr ""
12059
12060 # type: =head2
12061 #. type: =head2
12062 #: ../src/guestfs-actions.pod:3162
12063 msgid "guestfs_is_lv"
12064 msgstr ""
12065
12066 # type: verbatim
12067 #. type: verbatim
12068 #: ../src/guestfs-actions.pod:3164
12069 #, no-wrap
12070 msgid ""
12071 " int\n"
12072 " guestfs_is_lv (guestfs_h *g,\n"
12073 "                const char *device);\n"
12074 "\n"
12075 msgstr ""
12076
12077 # type: textblock
12078 #. type: textblock
12079 #: ../src/guestfs-actions.pod:3168 ../fish/guestfish-actions.pod:2197
12080 msgid ""
12081 "This command tests whether C<device> is a logical volume, and returns true "
12082 "iff this is the case."
12083 msgstr ""
12084
12085 # type: =head2
12086 #. type: =head2
12087 #: ../src/guestfs-actions.pod:3175
12088 msgid "guestfs_is_ready"
12089 msgstr ""
12090
12091 # type: verbatim
12092 #. type: verbatim
12093 #: ../src/guestfs-actions.pod:3177
12094 #, no-wrap
12095 msgid ""
12096 " int\n"
12097 " guestfs_is_ready (guestfs_h *g);\n"
12098 "\n"
12099 msgstr ""
12100
12101 # type: textblock
12102 #. type: textblock
12103 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2204
12104 msgid ""
12105 "This returns true iff this handle is ready to accept commands (in the "
12106 "C<READY> state)."
12107 msgstr ""
12108
12109 # type: =head2
12110 #. type: =head2
12111 #: ../src/guestfs-actions.pod:3189
12112 msgid "guestfs_is_socket"
12113 msgstr ""
12114
12115 # type: verbatim
12116 #. type: verbatim
12117 #: ../src/guestfs-actions.pod:3191
12118 #, no-wrap
12119 msgid ""
12120 " int\n"
12121 " guestfs_is_socket (guestfs_h *g,\n"
12122 "                    const char *path);\n"
12123 "\n"
12124 msgstr ""
12125
12126 # type: textblock
12127 #. type: textblock
12128 #: ../src/guestfs-actions.pod:3195 ../fish/guestfish-actions.pod:2213
12129 msgid ""
12130 "This returns C<true> if and only if there is a Unix domain socket with the "
12131 "given C<path> name."
12132 msgstr ""
12133
12134 # type: =head2
12135 #. type: =head2
12136 #: ../src/guestfs-actions.pod:3204
12137 msgid "guestfs_is_symlink"
12138 msgstr ""
12139
12140 # type: verbatim
12141 #. type: verbatim
12142 #: ../src/guestfs-actions.pod:3206
12143 #, no-wrap
12144 msgid ""
12145 " int\n"
12146 " guestfs_is_symlink (guestfs_h *g,\n"
12147 "                     const char *path);\n"
12148 "\n"
12149 msgstr ""
12150
12151 # type: textblock
12152 #. type: textblock
12153 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2222
12154 msgid ""
12155 "This returns C<true> if and only if there is a symbolic link with the given "
12156 "C<path> name."
12157 msgstr ""
12158
12159 # type: =head2
12160 #. type: =head2
12161 #: ../src/guestfs-actions.pod:3219
12162 msgid "guestfs_kill_subprocess"
12163 msgstr ""
12164
12165 # type: verbatim
12166 #. type: verbatim
12167 #: ../src/guestfs-actions.pod:3221
12168 #, no-wrap
12169 msgid ""
12170 " int\n"
12171 " guestfs_kill_subprocess (guestfs_h *g);\n"
12172 "\n"
12173 msgstr ""
12174
12175 # type: textblock
12176 #. type: textblock
12177 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2231
12178 msgid "This kills the qemu subprocess.  You should never need to call this."
12179 msgstr ""
12180
12181 # type: =head2
12182 #. type: =head2
12183 #: ../src/guestfs-actions.pod:3230
12184 msgid "guestfs_launch"
12185 msgstr ""
12186
12187 # type: verbatim
12188 #. type: verbatim
12189 #: ../src/guestfs-actions.pod:3232
12190 #, no-wrap
12191 msgid ""
12192 " int\n"
12193 " guestfs_launch (guestfs_h *g);\n"
12194 "\n"
12195 msgstr ""
12196
12197 # type: textblock
12198 #. type: textblock
12199 #: ../src/guestfs-actions.pod:3235 ../fish/guestfish-actions.pod:2239
12200 msgid ""
12201 "Internally libguestfs is implemented by running a virtual machine using "
12202 "L<qemu(1)>."
12203 msgstr ""
12204
12205 # type: textblock
12206 #. type: textblock
12207 #: ../src/guestfs-actions.pod:3238 ../fish/guestfish-actions.pod:2242
12208 msgid ""
12209 "You should call this after configuring the handle (eg. adding drives) but "
12210 "before performing any actions."
12211 msgstr ""
12212
12213 # type: =head2
12214 #. type: =head2
12215 #: ../src/guestfs-actions.pod:3245
12216 msgid "guestfs_lchown"
12217 msgstr ""
12218
12219 # type: verbatim
12220 #. type: verbatim
12221 #: ../src/guestfs-actions.pod:3247
12222 #, no-wrap
12223 msgid ""
12224 " int\n"
12225 " guestfs_lchown (guestfs_h *g,\n"
12226 "                 int owner,\n"
12227 "                 int group,\n"
12228 "                 const char *path);\n"
12229 "\n"
12230 msgstr ""
12231
12232 # type: textblock
12233 #. type: textblock
12234 #: ../src/guestfs-actions.pod:3253
12235 msgid ""
12236 "Change the file owner to C<owner> and group to C<group>.  This is like "
12237 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12238 "changed, not the target."
12239 msgstr ""
12240
12241 # type: =head2
12242 #. type: =head2
12243 #: ../src/guestfs-actions.pod:3265
12244 msgid "guestfs_lgetxattr"
12245 msgstr ""
12246
12247 # type: verbatim
12248 #. type: verbatim
12249 #: ../src/guestfs-actions.pod:3267
12250 #, no-wrap
12251 msgid ""
12252 " char *\n"
12253 " guestfs_lgetxattr (guestfs_h *g,\n"
12254 "                    const char *path,\n"
12255 "                    const char *name,\n"
12256 "                    size_t *size_r);\n"
12257 "\n"
12258 msgstr ""
12259
12260 # type: textblock
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:3273 ../fish/guestfish-actions.pod:2261
12263 msgid ""
12264 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12265 "is a symlink, then this call returns an extended attribute from the symlink."
12266 msgstr ""
12267
12268 # type: textblock
12269 #. type: textblock
12270 #: ../src/guestfs-actions.pod:3287
12271 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12272 msgstr ""
12273
12274 # type: =head2
12275 #. type: =head2
12276 #: ../src/guestfs-actions.pod:3295
12277 msgid "guestfs_lgetxattrs"
12278 msgstr ""
12279
12280 # type: verbatim
12281 #. type: verbatim
12282 #: ../src/guestfs-actions.pod:3297
12283 #, no-wrap
12284 msgid ""
12285 " struct guestfs_xattr_list *\n"
12286 " guestfs_lgetxattrs (guestfs_h *g,\n"
12287 "                     const char *path);\n"
12288 "\n"
12289 msgstr ""
12290
12291 # type: textblock
12292 #. type: textblock
12293 #: ../src/guestfs-actions.pod:3301
12294 msgid ""
12295 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12296 "then it returns the extended attributes of the link itself."
12297 msgstr ""
12298
12299 # type: =head2
12300 #. type: =head2
12301 #: ../src/guestfs-actions.pod:3311
12302 msgid "guestfs_list_devices"
12303 msgstr ""
12304
12305 # type: verbatim
12306 #. type: verbatim
12307 #: ../src/guestfs-actions.pod:3313
12308 #, no-wrap
12309 msgid ""
12310 " char **\n"
12311 " guestfs_list_devices (guestfs_h *g);\n"
12312 "\n"
12313 msgstr ""
12314
12315 # type: textblock
12316 #. type: textblock
12317 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2289
12318 msgid "List all the block devices."
12319 msgstr ""
12320
12321 # type: textblock
12322 #. type: textblock
12323 #: ../src/guestfs-actions.pod:3318 ../fish/guestfish-actions.pod:2291
12324 msgid "The full block device names are returned, eg. C</dev/sda>."
12325 msgstr ""
12326
12327 # type: =head2
12328 #. type: =head2
12329 #: ../src/guestfs-actions.pod:3328
12330 msgid "guestfs_list_filesystems"
12331 msgstr ""
12332
12333 # type: verbatim
12334 #. type: verbatim
12335 #: ../src/guestfs-actions.pod:3330
12336 #, no-wrap
12337 msgid ""
12338 " char **\n"
12339 " guestfs_list_filesystems (guestfs_h *g);\n"
12340 "\n"
12341 msgstr ""
12342
12343 # type: textblock
12344 #. type: textblock
12345 #: ../src/guestfs-actions.pod:3333 ../fish/guestfish-actions.pod:2299
12346 msgid ""
12347 "This inspection command looks for filesystems on partitions, block devices "
12348 "and logical volumes, returning a list of devices containing filesystems and "
12349 "their type."
12350 msgstr ""
12351
12352 # type: textblock
12353 #. type: textblock
12354 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:2303
12355 msgid ""
12356 "The return value is a hash, where the keys are the devices containing "
12357 "filesystems, and the values are the filesystem types.  For example:"
12358 msgstr ""
12359
12360 # type: verbatim
12361 #. type: verbatim
12362 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2307
12363 #, no-wrap
12364 msgid ""
12365 " \"/dev/sda1\" => \"ntfs\"\n"
12366 " \"/dev/sda2\" => \"ext2\"\n"
12367 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12368 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12369 "\n"
12370 msgstr ""
12371
12372 # type: textblock
12373 #. type: textblock
12374 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2312
12375 msgid ""
12376 "The value can have the special value \"unknown\", meaning the content of the "
12377 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12378 msgstr ""
12379
12380 # type: textblock
12381 #. type: textblock
12382 #: ../src/guestfs-actions.pod:3350
12383 msgid ""
12384 "This command runs other libguestfs commands, which might include "
12385 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12386 "soon after launch and only when nothing is mounted."
12387 msgstr ""
12388
12389 # type: textblock
12390 #. type: textblock
12391 #: ../src/guestfs-actions.pod:3354
12392 msgid ""
12393 "Not all of the filesystems returned will be mountable.  In particular, swap "
12394 "partitions are returned in the list.  Also this command does not check that "
12395 "each filesystem found is valid and mountable, and some filesystems might be "
12396 "mountable but require special options.  Filesystems may not all belong to a "
12397 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12398 msgstr ""
12399
12400 # type: textblock
12401 #. type: textblock
12402 #: ../src/guestfs-actions.pod:3368 ../src/guestfs-actions.pod:4959
12403 msgid "(Added in 1.5.15)"
12404 msgstr ""
12405
12406 # type: =head2
12407 #. type: =head2
12408 #: ../src/guestfs-actions.pod:3370
12409 msgid "guestfs_list_partitions"
12410 msgstr ""
12411
12412 # type: verbatim
12413 #. type: verbatim
12414 #: ../src/guestfs-actions.pod:3372
12415 #, no-wrap
12416 msgid ""
12417 " char **\n"
12418 " guestfs_list_partitions (guestfs_h *g);\n"
12419 "\n"
12420 msgstr ""
12421
12422 # type: textblock
12423 #. type: textblock
12424 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2332
12425 msgid "List all the partitions detected on all block devices."
12426 msgstr ""
12427
12428 # type: textblock
12429 #. type: textblock
12430 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2334
12431 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12432 msgstr ""
12433
12434 # type: textblock
12435 #. type: textblock
12436 #: ../src/guestfs-actions.pod:3379
12437 msgid ""
12438 "This does not return logical volumes.  For that you will need to call "
12439 "C<guestfs_lvs>."
12440 msgstr ""
12441
12442 # type: =head2
12443 #. type: =head2
12444 #: ../src/guestfs-actions.pod:3390
12445 msgid "guestfs_ll"
12446 msgstr ""
12447
12448 # type: verbatim
12449 #. type: verbatim
12450 #: ../src/guestfs-actions.pod:3392
12451 #, no-wrap
12452 msgid ""
12453 " char *\n"
12454 " guestfs_ll (guestfs_h *g,\n"
12455 "             const char *directory);\n"
12456 "\n"
12457 msgstr ""
12458
12459 # type: textblock
12460 #. type: textblock
12461 #: ../src/guestfs-actions.pod:3396 ../fish/guestfish-actions.pod:2345
12462 msgid ""
12463 "List the files in C<directory> (relative to the root directory, there is no "
12464 "cwd) in the format of 'ls -la'."
12465 msgstr ""
12466
12467 # type: textblock
12468 #. type: textblock
12469 #: ../src/guestfs-actions.pod:3399 ../fish/guestfish-actions.pod:2348
12470 msgid ""
12471 "This command is mostly useful for interactive sessions.  It is I<not> "
12472 "intended that you try to parse the output string."
12473 msgstr ""
12474
12475 # type: =head2
12476 #. type: =head2
12477 #: ../src/guestfs-actions.pod:3407
12478 msgid "guestfs_ln"
12479 msgstr ""
12480
12481 # type: verbatim
12482 #. type: verbatim
12483 #: ../src/guestfs-actions.pod:3409
12484 #, no-wrap
12485 msgid ""
12486 " int\n"
12487 " guestfs_ln (guestfs_h *g,\n"
12488 "             const char *target,\n"
12489 "             const char *linkname);\n"
12490 "\n"
12491 msgstr ""
12492
12493 # type: textblock
12494 #. type: textblock
12495 #: ../src/guestfs-actions.pod:3414 ../fish/guestfish-actions.pod:2355
12496 msgid "This command creates a hard link using the C<ln> command."
12497 msgstr ""
12498
12499 # type: =head2
12500 #. type: =head2
12501 #: ../src/guestfs-actions.pod:3420
12502 msgid "guestfs_ln_f"
12503 msgstr ""
12504
12505 # type: verbatim
12506 #. type: verbatim
12507 #: ../src/guestfs-actions.pod:3422
12508 #, no-wrap
12509 msgid ""
12510 " int\n"
12511 " guestfs_ln_f (guestfs_h *g,\n"
12512 "               const char *target,\n"
12513 "               const char *linkname);\n"
12514 "\n"
12515 msgstr ""
12516
12517 # type: textblock
12518 #. type: textblock
12519 #: ../src/guestfs-actions.pod:3427 ../fish/guestfish-actions.pod:2361
12520 msgid ""
12521 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
12522 "option removes the link (C<linkname>) if it exists already."
12523 msgstr ""
12524
12525 # type: =head2
12526 #. type: =head2
12527 #: ../src/guestfs-actions.pod:3434
12528 msgid "guestfs_ln_s"
12529 msgstr ""
12530
12531 # type: verbatim
12532 #. type: verbatim
12533 #: ../src/guestfs-actions.pod:3436
12534 #, no-wrap
12535 msgid ""
12536 " int\n"
12537 " guestfs_ln_s (guestfs_h *g,\n"
12538 "               const char *target,\n"
12539 "               const char *linkname);\n"
12540 "\n"
12541 msgstr ""
12542
12543 # type: textblock
12544 #. type: textblock
12545 #: ../src/guestfs-actions.pod:3441 ../fish/guestfish-actions.pod:2368
12546 msgid "This command creates a symbolic link using the C<ln -s> command."
12547 msgstr ""
12548
12549 # type: =head2
12550 #. type: =head2
12551 #: ../src/guestfs-actions.pod:3447
12552 msgid "guestfs_ln_sf"
12553 msgstr ""
12554
12555 # type: verbatim
12556 #. type: verbatim
12557 #: ../src/guestfs-actions.pod:3449
12558 #, no-wrap
12559 msgid ""
12560 " int\n"
12561 " guestfs_ln_sf (guestfs_h *g,\n"
12562 "                const char *target,\n"
12563 "                const char *linkname);\n"
12564 "\n"
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3454 ../fish/guestfish-actions.pod:2374
12570 msgid ""
12571 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
12572 "option removes the link (C<linkname>) if it exists already."
12573 msgstr ""
12574
12575 # type: =head2
12576 #. type: =head2
12577 #: ../src/guestfs-actions.pod:3461
12578 msgid "guestfs_lremovexattr"
12579 msgstr ""
12580
12581 # type: verbatim
12582 #. type: verbatim
12583 #: ../src/guestfs-actions.pod:3463
12584 #, no-wrap
12585 msgid ""
12586 " int\n"
12587 " guestfs_lremovexattr (guestfs_h *g,\n"
12588 "                       const char *xattr,\n"
12589 "                       const char *path);\n"
12590 "\n"
12591 msgstr ""
12592
12593 # type: textblock
12594 #. type: textblock
12595 #: ../src/guestfs-actions.pod:3468
12596 msgid ""
12597 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12598 "link, then it removes an extended attribute of the link itself."
12599 msgstr ""
12600
12601 # type: =head2
12602 #. type: =head2
12603 #: ../src/guestfs-actions.pod:3476
12604 msgid "guestfs_ls"
12605 msgstr ""
12606
12607 # type: verbatim
12608 #. type: verbatim
12609 #: ../src/guestfs-actions.pod:3478
12610 #, no-wrap
12611 msgid ""
12612 " char **\n"
12613 " guestfs_ls (guestfs_h *g,\n"
12614 "             const char *directory);\n"
12615 "\n"
12616 msgstr ""
12617
12618 # type: textblock
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3482 ../fish/guestfish-actions.pod:2389
12621 msgid ""
12622 "List the files in C<directory> (relative to the root directory, there is no "
12623 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12624 msgstr ""
12625
12626 # type: textblock
12627 #. type: textblock
12628 #: ../src/guestfs-actions.pod:3486
12629 msgid ""
12630 "This command is mostly useful for interactive sessions.  Programs should "
12631 "probably use C<guestfs_readdir> instead."
12632 msgstr ""
12633
12634 # type: =head2
12635 #. type: =head2
12636 #: ../src/guestfs-actions.pod:3495
12637 msgid "guestfs_lsetxattr"
12638 msgstr ""
12639
12640 # type: verbatim
12641 #. type: verbatim
12642 #: ../src/guestfs-actions.pod:3497
12643 #, no-wrap
12644 msgid ""
12645 " int\n"
12646 " guestfs_lsetxattr (guestfs_h *g,\n"
12647 "                    const char *xattr,\n"
12648 "                    const char *val,\n"
12649 "                    int vallen,\n"
12650 "                    const char *path);\n"
12651 "\n"
12652 msgstr ""
12653
12654 # type: textblock
12655 #. type: textblock
12656 #: ../src/guestfs-actions.pod:3504
12657 msgid ""
12658 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12659 "then it sets an extended attribute of the link itself."
12660 msgstr ""
12661
12662 # type: =head2
12663 #. type: =head2
12664 #: ../src/guestfs-actions.pod:3512
12665 msgid "guestfs_lstat"
12666 msgstr ""
12667
12668 # type: verbatim
12669 #. type: verbatim
12670 #: ../src/guestfs-actions.pod:3514
12671 #, no-wrap
12672 msgid ""
12673 " struct guestfs_stat *\n"
12674 " guestfs_lstat (guestfs_h *g,\n"
12675 "                const char *path);\n"
12676 "\n"
12677 msgstr ""
12678
12679 # type: textblock
12680 #. type: textblock
12681 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:6013
12682 #: ../fish/guestfish-actions.pod:2408 ../fish/guestfish-actions.pod:4021
12683 msgid "Returns file information for the given C<path>."
12684 msgstr ""
12685
12686 # type: textblock
12687 #. type: textblock
12688 #: ../src/guestfs-actions.pod:3520
12689 msgid ""
12690 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12691 "link, then the link is stat-ed, not the file it refers to."
12692 msgstr ""
12693
12694 # type: textblock
12695 #. type: textblock
12696 #: ../src/guestfs-actions.pod:3524 ../fish/guestfish-actions.pod:2414
12697 msgid "This is the same as the C<lstat(2)> system call."
12698 msgstr ""
12699
12700 # type: textblock
12701 #. type: textblock
12702 #: ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:6017
12703 msgid ""
12704 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12705 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12706 msgstr ""
12707
12708 # type: textblock
12709 #. type: textblock
12710 #: ../src/guestfs-actions.pod:3530 ../src/guestfs-actions.pod:6021
12711 #: ../src/guestfs-actions.pod:6039 ../src/guestfs-actions.pod:6420
12712 msgid "(Added in 0.9.2)"
12713 msgstr ""
12714
12715 # type: =head2
12716 #. type: =head2
12717 #: ../src/guestfs-actions.pod:3532
12718 msgid "guestfs_lstatlist"
12719 msgstr ""
12720
12721 # type: verbatim
12722 #. type: verbatim
12723 #: ../src/guestfs-actions.pod:3534
12724 #, no-wrap
12725 msgid ""
12726 " struct guestfs_stat_list *\n"
12727 " guestfs_lstatlist (guestfs_h *g,\n"
12728 "                    const char *path,\n"
12729 "                    char *const *names);\n"
12730 "\n"
12731 msgstr ""
12732
12733 # type: textblock
12734 #. type: textblock
12735 #: ../src/guestfs-actions.pod:3539
12736 msgid ""
12737 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12738 "files, where all files are in the directory C<path>.  C<names> is the list "
12739 "of files from this directory."
12740 msgstr ""
12741
12742 # type: textblock
12743 #. type: textblock
12744 #: ../src/guestfs-actions.pod:3543 ../fish/guestfish-actions.pod:2424
12745 msgid ""
12746 "On return you get a list of stat structs, with a one-to-one correspondence "
12747 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12748 "then the C<ino> field of that structure is set to C<-1>."
12749 msgstr ""
12750
12751 # type: textblock
12752 #. type: textblock
12753 #: ../src/guestfs-actions.pod:3548
12754 msgid ""
12755 "This call is intended for programs that want to efficiently list a directory "
12756 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12757 "for a similarly efficient call for getting extended attributes.  Very long "
12758 "directory listings might cause the protocol message size to be exceeded, "
12759 "causing this call to fail.  The caller must split up such requests into "
12760 "smaller groups of names."
12761 msgstr ""
12762
12763 # type: textblock
12764 #. type: textblock
12765 #: ../src/guestfs-actions.pod:3556
12766 msgid ""
12767 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12768 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12769 msgstr ""
12770
12771 # type: =head2
12772 #. type: =head2
12773 #: ../src/guestfs-actions.pod:3562
12774 msgid "guestfs_luks_add_key"
12775 msgstr ""
12776
12777 # type: verbatim
12778 #. type: verbatim
12779 #: ../src/guestfs-actions.pod:3564
12780 #, no-wrap
12781 msgid ""
12782 " int\n"
12783 " guestfs_luks_add_key (guestfs_h *g,\n"
12784 "                       const char *device,\n"
12785 "                       const char *key,\n"
12786 "                       const char *newkey,\n"
12787 "                       int keyslot);\n"
12788 "\n"
12789 msgstr ""
12790
12791 # type: textblock
12792 #. type: textblock
12793 #: ../src/guestfs-actions.pod:3571 ../fish/guestfish-actions.pod:2441
12794 msgid ""
12795 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12796 "existing key, and is used to access the device.  C<newkey> is the new key to "
12797 "add.  C<keyslot> is the key slot that will be replaced."
12798 msgstr ""
12799
12800 # type: textblock
12801 #. type: textblock
12802 #: ../src/guestfs-actions.pod:3576
12803 msgid ""
12804 "Note that if C<keyslot> already contains a key, then this command will "
12805 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12806 msgstr ""
12807
12808 # type: textblock
12809 #. type: textblock
12810 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:3622
12811 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3665
12812 #: ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:3716
12813 msgid ""
12814 "This function takes a key or passphrase parameter which could contain "
12815 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12816 "information."
12817 msgstr ""
12818
12819 # type: textblock
12820 #. type: textblock
12821 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:3626
12822 #: ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3669
12823 msgid "(Added in 1.5.2)"
12824 msgstr ""
12825
12826 # type: =head2
12827 #. type: =head2
12828 #: ../src/guestfs-actions.pod:3588
12829 msgid "guestfs_luks_close"
12830 msgstr ""
12831
12832 # type: verbatim
12833 #. type: verbatim
12834 #: ../src/guestfs-actions.pod:3590
12835 #, no-wrap
12836 msgid ""
12837 " int\n"
12838 " guestfs_luks_close (guestfs_h *g,\n"
12839 "                     const char *device);\n"
12840 "\n"
12841 msgstr ""
12842
12843 # type: textblock
12844 #. type: textblock
12845 #: ../src/guestfs-actions.pod:3594
12846 msgid ""
12847 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12848 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12849 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12850 "underlying block device."
12851 msgstr ""
12852
12853 # type: textblock
12854 #. type: textblock
12855 #: ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:3701
12856 #: ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:3770
12857 #: ../src/guestfs-actions.pod:3818
12858 msgid "(Added in 1.5.1)"
12859 msgstr ""
12860
12861 # type: =head2
12862 #. type: =head2
12863 #: ../src/guestfs-actions.pod:3604
12864 msgid "guestfs_luks_format"
12865 msgstr ""
12866
12867 # type: verbatim
12868 #. type: verbatim
12869 #: ../src/guestfs-actions.pod:3606
12870 #, no-wrap
12871 msgid ""
12872 " int\n"
12873 " guestfs_luks_format (guestfs_h *g,\n"
12874 "                      const char *device,\n"
12875 "                      const char *key,\n"
12876 "                      int keyslot);\n"
12877 "\n"
12878 msgstr ""
12879
12880 # type: textblock
12881 #. type: textblock
12882 #: ../src/guestfs-actions.pod:3612 ../fish/guestfish-actions.pod:2467
12883 msgid ""
12884 "This command erases existing data on C<device> and formats the device as a "
12885 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12886 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12887 msgstr ""
12888
12889 # type: textblock
12890 #. type: textblock
12891 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3642
12892 #: ../src/guestfs-actions.pod:3782 ../src/guestfs-actions.pod:4710
12893 #: ../src/guestfs-actions.pod:5473 ../src/guestfs-actions.pod:5848
12894 #: ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:5897
12895 #: ../src/guestfs-actions.pod:7057 ../fish/guestfish-actions.pod:2475
12896 #: ../fish/guestfish-actions.pod:2488 ../fish/guestfish-actions.pod:2572
12897 #: ../fish/guestfish-actions.pod:3133 ../fish/guestfish-actions.pod:3640
12898 #: ../fish/guestfish-actions.pod:3920 ../fish/guestfish-actions.pod:3936
12899 #: ../fish/guestfish-actions.pod:3951 ../fish/guestfish-actions.pod:4666
12900 msgid ""
12901 "B<This command is dangerous.  Without careful use you can easily destroy all "
12902 "your data>."
12903 msgstr ""
12904
12905 # type: =head2
12906 #. type: =head2
12907 #: ../src/guestfs-actions.pod:3628
12908 msgid "guestfs_luks_format_cipher"
12909 msgstr ""
12910
12911 # type: verbatim
12912 #. type: verbatim
12913 #: ../src/guestfs-actions.pod:3630
12914 #, no-wrap
12915 msgid ""
12916 " int\n"
12917 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12918 "                             const char *device,\n"
12919 "                             const char *key,\n"
12920 "                             int keyslot,\n"
12921 "                             const char *cipher);\n"
12922 "\n"
12923 msgstr ""
12924
12925 # type: textblock
12926 #. type: textblock
12927 #: ../src/guestfs-actions.pod:3637
12928 msgid ""
12929 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12930 "set the C<cipher> used."
12931 msgstr ""
12932
12933 # type: =head2
12934 #. type: =head2
12935 #: ../src/guestfs-actions.pod:3651
12936 msgid "guestfs_luks_kill_slot"
12937 msgstr ""
12938
12939 # type: verbatim
12940 #. type: verbatim
12941 #: ../src/guestfs-actions.pod:3653
12942 #, no-wrap
12943 msgid ""
12944 " int\n"
12945 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12946 "                         const char *device,\n"
12947 "                         const char *key,\n"
12948 "                         int keyslot);\n"
12949 "\n"
12950 msgstr ""
12951
12952 # type: textblock
12953 #. type: textblock
12954 #: ../src/guestfs-actions.pod:3659 ../fish/guestfish-actions.pod:2495
12955 msgid ""
12956 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12957 "device C<device>.  C<key> must be one of the I<other> keys."
12958 msgstr ""
12959
12960 # type: =head2
12961 #. type: =head2
12962 #: ../src/guestfs-actions.pod:3671
12963 msgid "guestfs_luks_open"
12964 msgstr ""
12965
12966 # type: verbatim
12967 #. type: verbatim
12968 #: ../src/guestfs-actions.pod:3673
12969 #, no-wrap
12970 msgid ""
12971 " int\n"
12972 " guestfs_luks_open (guestfs_h *g,\n"
12973 "                    const char *device,\n"
12974 "                    const char *key,\n"
12975 "                    const char *mapname);\n"
12976 "\n"
12977 msgstr ""
12978
12979 # type: textblock
12980 #. type: textblock
12981 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2506
12982 msgid ""
12983 "This command opens a block device which has been encrypted according to the "
12984 "Linux Unified Key Setup (LUKS) standard."
12985 msgstr ""
12986
12987 # type: textblock
12988 #. type: textblock
12989 #: ../src/guestfs-actions.pod:3682 ../fish/guestfish-actions.pod:2509
12990 msgid "C<device> is the encrypted block device or partition."
12991 msgstr ""
12992
12993 # type: textblock
12994 #. type: textblock
12995 #: ../src/guestfs-actions.pod:3684 ../fish/guestfish-actions.pod:2511
12996 msgid ""
12997 "The caller must supply one of the keys associated with the LUKS block "
12998 "device, in the C<key> parameter."
12999 msgstr ""
13000
13001 # type: textblock
13002 #. type: textblock
13003 #: ../src/guestfs-actions.pod:3687 ../fish/guestfish-actions.pod:2514
13004 msgid ""
13005 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13006 "writes to this block device are decrypted from and encrypted to the "
13007 "underlying C<device> respectively."
13008 msgstr ""
13009
13010 # type: textblock
13011 #. type: textblock
13012 #: ../src/guestfs-actions.pod:3691
13013 msgid ""
13014 "If this block device contains LVM volume groups, then calling "
13015 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13016 "visible."
13017 msgstr ""
13018
13019 # type: =head2
13020 #. type: =head2
13021 #: ../src/guestfs-actions.pod:3703
13022 msgid "guestfs_luks_open_ro"
13023 msgstr ""
13024
13025 # type: verbatim
13026 #. type: verbatim
13027 #: ../src/guestfs-actions.pod:3705
13028 #, no-wrap
13029 msgid ""
13030 " int\n"
13031 " guestfs_luks_open_ro (guestfs_h *g,\n"
13032 "                       const char *device,\n"
13033 "                       const char *key,\n"
13034 "                       const char *mapname);\n"
13035 "\n"
13036 msgstr ""
13037
13038 # type: textblock
13039 #. type: textblock
13040 #: ../src/guestfs-actions.pod:3711
13041 msgid ""
13042 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13043 "created."
13044 msgstr ""
13045
13046 # type: =head2
13047 #. type: =head2
13048 #: ../src/guestfs-actions.pod:3722
13049 msgid "guestfs_lvcreate"
13050 msgstr ""
13051
13052 # type: verbatim
13053 #. type: verbatim
13054 #: ../src/guestfs-actions.pod:3724
13055 #, no-wrap
13056 msgid ""
13057 " int\n"
13058 " guestfs_lvcreate (guestfs_h *g,\n"
13059 "                   const char *logvol,\n"
13060 "                   const char *volgroup,\n"
13061 "                   int mbytes);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #. type: textblock
13067 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2539
13068 msgid ""
13069 "This creates an LVM logical volume called C<logvol> on the volume group "
13070 "C<volgroup>, with C<size> megabytes."
13071 msgstr ""
13072
13073 # type: =head2
13074 #. type: =head2
13075 #: ../src/guestfs-actions.pod:3737
13076 msgid "guestfs_lvm_canonical_lv_name"
13077 msgstr ""
13078
13079 # type: verbatim
13080 #. type: verbatim
13081 #: ../src/guestfs-actions.pod:3739
13082 #, no-wrap
13083 msgid ""
13084 " char *\n"
13085 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13086 "                                const char *lvname);\n"
13087 "\n"
13088 msgstr ""
13089
13090 # type: textblock
13091 #. type: textblock
13092 #: ../src/guestfs-actions.pod:3743 ../fish/guestfish-actions.pod:2546
13093 msgid ""
13094 "This converts alternative naming schemes for LVs that you might find to the "
13095 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13096 "LV>."
13097 msgstr ""
13098
13099 # type: textblock
13100 #. type: textblock
13101 #: ../src/guestfs-actions.pod:3747 ../fish/guestfish-actions.pod:2550
13102 msgid ""
13103 "This command returns an error if the C<lvname> parameter does not refer to a "
13104 "logical volume."
13105 msgstr ""
13106
13107 # type: textblock
13108 #. type: textblock
13109 #: ../src/guestfs-actions.pod:3750
13110 msgid "See also C<guestfs_is_lv>."
13111 msgstr ""
13112
13113 # type: textblock
13114 #. type: textblock
13115 #: ../src/guestfs-actions.pod:3755
13116 msgid "(Added in 1.5.24)"
13117 msgstr ""
13118
13119 # type: =head2
13120 #. type: =head2
13121 #: ../src/guestfs-actions.pod:3757
13122 msgid "guestfs_lvm_clear_filter"
13123 msgstr ""
13124
13125 # type: verbatim
13126 #. type: verbatim
13127 #: ../src/guestfs-actions.pod:3759
13128 #, no-wrap
13129 msgid ""
13130 " int\n"
13131 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13132 "\n"
13133 msgstr ""
13134
13135 # type: textblock
13136 #. type: textblock
13137 #: ../src/guestfs-actions.pod:3762
13138 msgid ""
13139 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13140 "see every block device."
13141 msgstr ""
13142
13143 # type: textblock
13144 #. type: textblock
13145 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:3807
13146 #: ../fish/guestfish-actions.pod:2562 ../fish/guestfish-actions.pod:2593
13147 msgid ""
13148 "This command also clears the LVM cache and performs a volume group scan."
13149 msgstr ""
13150
13151 # type: =head2
13152 #. type: =head2
13153 #: ../src/guestfs-actions.pod:3772
13154 msgid "guestfs_lvm_remove_all"
13155 msgstr ""
13156
13157 # type: verbatim
13158 #. type: verbatim
13159 #: ../src/guestfs-actions.pod:3774
13160 #, no-wrap
13161 msgid ""
13162 " int\n"
13163 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13164 "\n"
13165 msgstr ""
13166
13167 # type: textblock
13168 #. type: textblock
13169 #: ../src/guestfs-actions.pod:3777 ../fish/guestfish-actions.pod:2569
13170 msgid ""
13171 "This command removes all LVM logical volumes, volume groups and physical "
13172 "volumes."
13173 msgstr ""
13174
13175 # type: =head2
13176 #. type: =head2
13177 #: ../src/guestfs-actions.pod:3787
13178 msgid "guestfs_lvm_set_filter"
13179 msgstr ""
13180
13181 # type: verbatim
13182 #. type: verbatim
13183 #: ../src/guestfs-actions.pod:3789
13184 #, no-wrap
13185 msgid ""
13186 " int\n"
13187 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13188 "                         char *const *devices);\n"
13189 "\n"
13190 msgstr ""
13191
13192 # type: textblock
13193 #. type: textblock
13194 #: ../src/guestfs-actions.pod:3793 ../fish/guestfish-actions.pod:2579
13195 msgid ""
13196 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13197 "block devices in the list C<devices>, and will ignore all other attached "
13198 "block devices."
13199 msgstr ""
13200
13201 # type: textblock
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2583
13204 msgid ""
13205 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13206 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13207 "there are two types of duplication possible: either cloned PVs/VGs which "
13208 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13209 "same name.  In normal operation you cannot create this situation, but you "
13210 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13211 "inside the LVM metadata."
13212 msgstr ""
13213
13214 # type: textblock
13215 #. type: textblock
13216 #: ../src/guestfs-actions.pod:3810 ../fish/guestfish-actions.pod:2596
13217 msgid "You can filter whole block devices or individual partitions."
13218 msgstr ""
13219
13220 # type: textblock
13221 #. type: textblock
13222 #: ../src/guestfs-actions.pod:3812 ../fish/guestfish-actions.pod:2598
13223 msgid ""
13224 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13225 "filesystem), even if you are not filtering out that VG."
13226 msgstr ""
13227
13228 # type: =head2
13229 #. type: =head2
13230 #: ../src/guestfs-actions.pod:3820
13231 msgid "guestfs_lvremove"
13232 msgstr ""
13233
13234 # type: verbatim
13235 #. type: verbatim
13236 #: ../src/guestfs-actions.pod:3822
13237 #, no-wrap
13238 msgid ""
13239 " int\n"
13240 " guestfs_lvremove (guestfs_h *g,\n"
13241 "                   const char *device);\n"
13242 "\n"
13243 msgstr ""
13244
13245 # type: textblock
13246 #. type: textblock
13247 #: ../src/guestfs-actions.pod:3826 ../fish/guestfish-actions.pod:2606
13248 msgid ""
13249 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13250 "LV, such as C</dev/VG/LV>."
13251 msgstr ""
13252
13253 # type: textblock
13254 #. type: textblock
13255 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2609
13256 msgid ""
13257 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13258 "dev/VG>."
13259 msgstr ""
13260
13261 # type: textblock
13262 #. type: textblock
13263 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:5056
13264 #: ../src/guestfs-actions.pod:6796
13265 msgid "(Added in 1.0.13)"
13266 msgstr ""
13267
13268 # type: =head2
13269 #. type: =head2
13270 #: ../src/guestfs-actions.pod:3836
13271 msgid "guestfs_lvrename"
13272 msgstr ""
13273
13274 # type: verbatim
13275 #. type: verbatim
13276 #: ../src/guestfs-actions.pod:3838
13277 #, no-wrap
13278 msgid ""
13279 " int\n"
13280 " guestfs_lvrename (guestfs_h *g,\n"
13281 "                   const char *logvol,\n"
13282 "                   const char *newlogvol);\n"
13283 "\n"
13284 msgstr ""
13285
13286 # type: textblock
13287 #. type: textblock
13288 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2616
13289 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13290 msgstr ""
13291
13292 # type: textblock
13293 #. type: textblock
13294 #: ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:6809
13295 msgid "(Added in 1.0.83)"
13296 msgstr ""
13297
13298 # type: =head2
13299 #. type: =head2
13300 #: ../src/guestfs-actions.pod:3849
13301 msgid "guestfs_lvresize"
13302 msgstr ""
13303
13304 # type: verbatim
13305 #. type: verbatim
13306 #: ../src/guestfs-actions.pod:3851
13307 #, no-wrap
13308 msgid ""
13309 " int\n"
13310 " guestfs_lvresize (guestfs_h *g,\n"
13311 "                   const char *device,\n"
13312 "                   int mbytes);\n"
13313 "\n"
13314 msgstr ""
13315
13316 # type: textblock
13317 #. type: textblock
13318 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2622
13319 msgid ""
13320 "This resizes (expands or shrinks) an existing LVM logical volume to "
13321 "C<mbytes>.  When reducing, data in the reduced part is lost."
13322 msgstr ""
13323
13324 # type: =head2
13325 #. type: =head2
13326 #: ../src/guestfs-actions.pod:3864
13327 msgid "guestfs_lvresize_free"
13328 msgstr ""
13329
13330 # type: verbatim
13331 #. type: verbatim
13332 #: ../src/guestfs-actions.pod:3866
13333 #, no-wrap
13334 msgid ""
13335 " int\n"
13336 " guestfs_lvresize_free (guestfs_h *g,\n"
13337 "                        const char *lv,\n"
13338 "                        int percent);\n"
13339 "\n"
13340 msgstr ""
13341
13342 # type: textblock
13343 #. type: textblock
13344 #: ../src/guestfs-actions.pod:3871 ../fish/guestfish-actions.pod:2630
13345 msgid ""
13346 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13347 "remaining free space in the volume group.  Commonly you would call this with "
13348 "pc = 100 which expands the logical volume as much as possible, using all "
13349 "remaining free space in the volume group."
13350 msgstr ""
13351
13352 # type: textblock
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:3879
13355 msgid "(Added in 1.3.3)"
13356 msgstr ""
13357
13358 # type: =head2
13359 #. type: =head2
13360 #: ../src/guestfs-actions.pod:3881
13361 msgid "guestfs_lvs"
13362 msgstr ""
13363
13364 # type: verbatim
13365 #. type: verbatim
13366 #: ../src/guestfs-actions.pod:3883
13367 #, no-wrap
13368 msgid ""
13369 " char **\n"
13370 " guestfs_lvs (guestfs_h *g);\n"
13371 "\n"
13372 msgstr ""
13373
13374 # type: textblock
13375 #. type: textblock
13376 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2640
13377 msgid ""
13378 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13379 "(8)> command."
13380 msgstr ""
13381
13382 # type: textblock
13383 #. type: textblock
13384 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2643
13385 msgid ""
13386 "This returns a list of the logical volume device names (eg. C</dev/"
13387 "VolGroup00/LogVol00>)."
13388 msgstr ""
13389
13390 # type: textblock
13391 #. type: textblock
13392 #: ../src/guestfs-actions.pod:3892
13393 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13394 msgstr ""
13395
13396 # type: =head2
13397 #. type: =head2
13398 #: ../src/guestfs-actions.pod:3900
13399 msgid "guestfs_lvs_full"
13400 msgstr ""
13401
13402 # type: verbatim
13403 #. type: verbatim
13404 #: ../src/guestfs-actions.pod:3902
13405 #, no-wrap
13406 msgid ""
13407 " struct guestfs_lvm_lv_list *\n"
13408 " guestfs_lvs_full (guestfs_h *g);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:3905 ../fish/guestfish-actions.pod:2652
13415 msgid ""
13416 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13417 "(8)> command.  The \"full\" version includes all fields."
13418 msgstr ""
13419
13420 # type: textblock
13421 #. type: textblock
13422 #: ../src/guestfs-actions.pod:3908
13423 msgid ""
13424 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13425 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13426 msgstr ""
13427
13428 # type: =head2
13429 #. type: =head2
13430 #: ../src/guestfs-actions.pod:3914
13431 msgid "guestfs_lvuuid"
13432 msgstr ""
13433
13434 # type: verbatim
13435 #. type: verbatim
13436 #: ../src/guestfs-actions.pod:3916
13437 #, no-wrap
13438 msgid ""
13439 " char *\n"
13440 " guestfs_lvuuid (guestfs_h *g,\n"
13441 "                 const char *device);\n"
13442 "\n"
13443 msgstr ""
13444
13445 # type: textblock
13446 #. type: textblock
13447 #: ../src/guestfs-actions.pod:3920 ../fish/guestfish-actions.pod:2659
13448 msgid "This command returns the UUID of the LVM LV C<device>."
13449 msgstr ""
13450
13451 # type: =head2
13452 #. type: =head2
13453 #: ../src/guestfs-actions.pod:3927
13454 msgid "guestfs_lxattrlist"
13455 msgstr ""
13456
13457 # type: verbatim
13458 #. type: verbatim
13459 #: ../src/guestfs-actions.pod:3929
13460 #, no-wrap
13461 msgid ""
13462 " struct guestfs_xattr_list *\n"
13463 " guestfs_lxattrlist (guestfs_h *g,\n"
13464 "                     const char *path,\n"
13465 "                     char *const *names);\n"
13466 "\n"
13467 msgstr ""
13468
13469 # type: textblock
13470 #. type: textblock
13471 #: ../src/guestfs-actions.pod:3934 ../fish/guestfish-actions.pod:2665
13472 msgid ""
13473 "This call allows you to get the extended attributes of multiple files, where "
13474 "all files are in the directory C<path>.  C<names> is the list of files from "
13475 "this directory."
13476 msgstr ""
13477
13478 # type: textblock
13479 #. type: textblock
13480 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2669
13481 msgid ""
13482 "On return you get a flat list of xattr structs which must be interpreted "
13483 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13484 "C<attrval> in this struct is zero-length to indicate there was an error "
13485 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13486 "number (the number of following attributes for this file, which could be C<"
13487 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13488 "for the first named file.  This repeats for the second and subsequent files."
13489 msgstr ""
13490
13491 # type: textblock
13492 #. type: textblock
13493 #: ../src/guestfs-actions.pod:3948
13494 msgid ""
13495 "This call is intended for programs that want to efficiently list a directory "
13496 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13497 "a similarly efficient call for getting standard stats.  Very long directory "
13498 "listings might cause the protocol message size to be exceeded, causing this "
13499 "call to fail.  The caller must split up such requests into smaller groups of "
13500 "names."
13501 msgstr ""
13502
13503 # type: =head2
13504 #. type: =head2
13505 #: ../src/guestfs-actions.pod:3962
13506 msgid "guestfs_mkdir"
13507 msgstr ""
13508
13509 # type: verbatim
13510 #. type: verbatim
13511 #: ../src/guestfs-actions.pod:3964
13512 #, no-wrap
13513 msgid ""
13514 " int\n"
13515 " guestfs_mkdir (guestfs_h *g,\n"
13516 "                const char *path);\n"
13517 "\n"
13518 msgstr ""
13519
13520 # type: textblock
13521 #. type: textblock
13522 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2691
13523 msgid "Create a directory named C<path>."
13524 msgstr ""
13525
13526 # type: =head2
13527 #. type: =head2
13528 #: ../src/guestfs-actions.pod:3974
13529 msgid "guestfs_mkdir_mode"
13530 msgstr ""
13531
13532 # type: verbatim
13533 #. type: verbatim
13534 #: ../src/guestfs-actions.pod:3976
13535 #, no-wrap
13536 msgid ""
13537 " int\n"
13538 " guestfs_mkdir_mode (guestfs_h *g,\n"
13539 "                     const char *path,\n"
13540 "                     int mode);\n"
13541 "\n"
13542 msgstr ""
13543
13544 # type: textblock
13545 #. type: textblock
13546 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2697
13547 msgid ""
13548 "This command creates a directory, setting the initial permissions of the "
13549 "directory to C<mode>."
13550 msgstr ""
13551
13552 # type: textblock
13553 #. type: textblock
13554 #: ../src/guestfs-actions.pod:3984 ../fish/guestfish-actions.pod:2700
13555 msgid ""
13556 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13557 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13558 "other ways."
13559 msgstr ""
13560
13561 # type: textblock
13562 #. type: textblock
13563 #: ../src/guestfs-actions.pod:3988
13564 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13565 msgstr ""
13566
13567 # type: =head2
13568 #. type: =head2
13569 #: ../src/guestfs-actions.pod:3994
13570 msgid "guestfs_mkdir_p"
13571 msgstr ""
13572
13573 # type: verbatim
13574 #. type: verbatim
13575 #: ../src/guestfs-actions.pod:3996
13576 #, no-wrap
13577 msgid ""
13578 " int\n"
13579 " guestfs_mkdir_p (guestfs_h *g,\n"
13580 "                  const char *path);\n"
13581 "\n"
13582 msgstr ""
13583
13584 # type: textblock
13585 #. type: textblock
13586 #: ../src/guestfs-actions.pod:4000 ../fish/guestfish-actions.pod:2710
13587 msgid ""
13588 "Create a directory named C<path>, creating any parent directories as "
13589 "necessary.  This is like the C<mkdir -p> shell command."
13590 msgstr ""
13591
13592 # type: =head2
13593 #. type: =head2
13594 #: ../src/guestfs-actions.pod:4007
13595 msgid "guestfs_mkdtemp"
13596 msgstr ""
13597
13598 # type: verbatim
13599 #. type: verbatim
13600 #: ../src/guestfs-actions.pod:4009
13601 #, no-wrap
13602 msgid ""
13603 " char *\n"
13604 " guestfs_mkdtemp (guestfs_h *g,\n"
13605 "                  const char *template);\n"
13606 "\n"
13607 msgstr ""
13608
13609 # type: textblock
13610 #. type: textblock
13611 #: ../src/guestfs-actions.pod:4013 ../fish/guestfish-actions.pod:2717
13612 msgid ""
13613 "This command creates a temporary directory.  The C<template> parameter "
13614 "should be a full pathname for the temporary directory name with the final "
13615 "six characters being \"XXXXXX\"."
13616 msgstr ""
13617
13618 # type: textblock
13619 #. type: textblock
13620 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2722
13621 msgid ""
13622 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13623 "being suitable for Windows filesystems."
13624 msgstr ""
13625
13626 # type: textblock
13627 #. type: textblock
13628 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2725
13629 msgid "The name of the temporary directory that was created is returned."
13630 msgstr ""
13631
13632 # type: textblock
13633 #. type: textblock
13634 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2728
13635 msgid "The temporary directory is created with mode 0700 and is owned by root."
13636 msgstr ""
13637
13638 # type: textblock
13639 #. type: textblock
13640 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2731
13641 msgid ""
13642 "The caller is responsible for deleting the temporary directory and its "
13643 "contents after use."
13644 msgstr ""
13645
13646 # type: textblock
13647 #. type: textblock
13648 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2734
13649 msgid "See also: L<mkdtemp(3)>"
13650 msgstr ""
13651
13652 # type: =head2
13653 #. type: =head2
13654 #: ../src/guestfs-actions.pod:4037
13655 msgid "guestfs_mke2fs_J"
13656 msgstr ""
13657
13658 # type: verbatim
13659 #. type: verbatim
13660 #: ../src/guestfs-actions.pod:4039
13661 #, no-wrap
13662 msgid ""
13663 " int\n"
13664 " guestfs_mke2fs_J (guestfs_h *g,\n"
13665 "                   const char *fstype,\n"
13666 "                   int blocksize,\n"
13667 "                   const char *device,\n"
13668 "                   const char *journal);\n"
13669 "\n"
13670 msgstr ""
13671
13672 # type: textblock
13673 #. type: textblock
13674 #: ../src/guestfs-actions.pod:4046 ../fish/guestfish-actions.pod:2740
13675 msgid ""
13676 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13677 "C<journal>.  It is equivalent to the command:"
13678 msgstr ""
13679
13680 # type: verbatim
13681 #. type: verbatim
13682 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2744
13683 #, no-wrap
13684 msgid ""
13685 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13686 "\n"
13687 msgstr ""
13688
13689 # type: textblock
13690 #. type: textblock
13691 #: ../src/guestfs-actions.pod:4052
13692 msgid "See also C<guestfs_mke2journal>."
13693 msgstr ""
13694
13695 # type: textblock
13696 #. type: textblock
13697 #: ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4074
13698 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4108
13699 #: ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4136
13700 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4446
13701 msgid "(Added in 1.0.68)"
13702 msgstr ""
13703
13704 # type: =head2
13705 #. type: =head2
13706 #: ../src/guestfs-actions.pod:4058
13707 msgid "guestfs_mke2fs_JL"
13708 msgstr ""
13709
13710 # type: verbatim
13711 #. type: verbatim
13712 #: ../src/guestfs-actions.pod:4060
13713 #, no-wrap
13714 msgid ""
13715 " int\n"
13716 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13717 "                    const char *fstype,\n"
13718 "                    int blocksize,\n"
13719 "                    const char *device,\n"
13720 "                    const char *label);\n"
13721 "\n"
13722 msgstr ""
13723
13724 # type: textblock
13725 #. type: textblock
13726 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2752
13727 msgid ""
13728 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13729 "the journal labeled C<label>."
13730 msgstr ""
13731
13732 # type: textblock
13733 #. type: textblock
13734 #: ../src/guestfs-actions.pod:4070
13735 msgid "See also C<guestfs_mke2journal_L>."
13736 msgstr ""
13737
13738 # type: =head2
13739 #. type: =head2
13740 #: ../src/guestfs-actions.pod:4076
13741 msgid "guestfs_mke2fs_JU"
13742 msgstr ""
13743
13744 # type: verbatim
13745 #. type: verbatim
13746 #: ../src/guestfs-actions.pod:4078
13747 #, no-wrap
13748 msgid ""
13749 " int\n"
13750 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13751 "                    const char *fstype,\n"
13752 "                    int blocksize,\n"
13753 "                    const char *device,\n"
13754 "                    const char *uuid);\n"
13755 "\n"
13756 msgstr ""
13757
13758 # type: textblock
13759 #. type: textblock
13760 #: ../src/guestfs-actions.pod:4085 ../fish/guestfish-actions.pod:2761
13761 msgid ""
13762 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13763 "the journal with UUID C<uuid>."
13764 msgstr ""
13765
13766 # type: textblock
13767 #. type: textblock
13768 #: ../src/guestfs-actions.pod:4088
13769 msgid "See also C<guestfs_mke2journal_U>."
13770 msgstr ""
13771
13772 # type: =head2
13773 #. type: =head2
13774 #: ../src/guestfs-actions.pod:4094
13775 msgid "guestfs_mke2journal"
13776 msgstr ""
13777
13778 # type: verbatim
13779 #. type: verbatim
13780 #: ../src/guestfs-actions.pod:4096
13781 #, no-wrap
13782 msgid ""
13783 " int\n"
13784 " guestfs_mke2journal (guestfs_h *g,\n"
13785 "                      int blocksize,\n"
13786 "                      const char *device);\n"
13787 "\n"
13788 msgstr ""
13789
13790 # type: textblock
13791 #. type: textblock
13792 #: ../src/guestfs-actions.pod:4101 ../fish/guestfish-actions.pod:2770
13793 msgid ""
13794 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13795 "command:"
13796 msgstr ""
13797
13798 # type: verbatim
13799 #. type: verbatim
13800 #: ../src/guestfs-actions.pod:4104 ../fish/guestfish-actions.pod:2773
13801 #, no-wrap
13802 msgid ""
13803 " mke2fs -O journal_dev -b blocksize device\n"
13804 "\n"
13805 msgstr ""
13806
13807 # type: =head2
13808 #. type: =head2
13809 #: ../src/guestfs-actions.pod:4110
13810 msgid "guestfs_mke2journal_L"
13811 msgstr ""
13812
13813 # type: verbatim
13814 #. type: verbatim
13815 #: ../src/guestfs-actions.pod:4112
13816 #, no-wrap
13817 msgid ""
13818 " int\n"
13819 " guestfs_mke2journal_L (guestfs_h *g,\n"
13820 "                        int blocksize,\n"
13821 "                        const char *label,\n"
13822 "                        const char *device);\n"
13823 "\n"
13824 msgstr ""
13825
13826 # type: textblock
13827 #. type: textblock
13828 #: ../src/guestfs-actions.pod:4118 ../fish/guestfish-actions.pod:2779
13829 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13830 msgstr ""
13831
13832 # type: =head2
13833 #. type: =head2
13834 #: ../src/guestfs-actions.pod:4124
13835 msgid "guestfs_mke2journal_U"
13836 msgstr ""
13837
13838 # type: verbatim
13839 #. type: verbatim
13840 #: ../src/guestfs-actions.pod:4126
13841 #, no-wrap
13842 msgid ""
13843 " int\n"
13844 " guestfs_mke2journal_U (guestfs_h *g,\n"
13845 "                        int blocksize,\n"
13846 "                        const char *uuid,\n"
13847 "                        const char *device);\n"
13848 "\n"
13849 msgstr ""
13850
13851 # type: textblock
13852 #. type: textblock
13853 #: ../src/guestfs-actions.pod:4132 ../fish/guestfish-actions.pod:2785
13854 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13855 msgstr ""
13856
13857 # type: =head2
13858 #. type: =head2
13859 #: ../src/guestfs-actions.pod:4138
13860 msgid "guestfs_mkfifo"
13861 msgstr ""
13862
13863 # type: verbatim
13864 #. type: verbatim
13865 #: ../src/guestfs-actions.pod:4140
13866 #, no-wrap
13867 msgid ""
13868 " int\n"
13869 " guestfs_mkfifo (guestfs_h *g,\n"
13870 "                 int mode,\n"
13871 "                 const char *path);\n"
13872 "\n"
13873 msgstr ""
13874
13875 # type: textblock
13876 #. type: textblock
13877 #: ../src/guestfs-actions.pod:4145
13878 msgid ""
13879 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13880 "is just a convenient wrapper around C<guestfs_mknod>."
13881 msgstr ""
13882
13883 # type: =head2
13884 #. type: =head2
13885 #: ../src/guestfs-actions.pod:4155
13886 msgid "guestfs_mkfs"
13887 msgstr ""
13888
13889 # type: verbatim
13890 #. type: verbatim
13891 #: ../src/guestfs-actions.pod:4157
13892 #, no-wrap
13893 msgid ""
13894 " int\n"
13895 " guestfs_mkfs (guestfs_h *g,\n"
13896 "               const char *fstype,\n"
13897 "               const char *device);\n"
13898 "\n"
13899 msgstr ""
13900
13901 # type: textblock
13902 #. type: textblock
13903 #: ../src/guestfs-actions.pod:4162 ../fish/guestfish-actions.pod:2801
13904 msgid ""
13905 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13906 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13907 msgstr ""
13908
13909 # type: =head2
13910 #. type: =head2
13911 #: ../src/guestfs-actions.pod:4170
13912 msgid "guestfs_mkfs_b"
13913 msgstr ""
13914
13915 # type: verbatim
13916 #. type: verbatim
13917 #: ../src/guestfs-actions.pod:4172
13918 #, no-wrap
13919 msgid ""
13920 " int\n"
13921 " guestfs_mkfs_b (guestfs_h *g,\n"
13922 "                 const char *fstype,\n"
13923 "                 int blocksize,\n"
13924 "                 const char *device);\n"
13925 "\n"
13926 msgstr ""
13927
13928 # type: textblock
13929 #. type: textblock
13930 #: ../src/guestfs-actions.pod:4178
13931 msgid ""
13932 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13933 "block size of the resulting filesystem.  Supported block sizes depend on the "
13934 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13935 msgstr ""
13936
13937 # type: textblock
13938 #. type: textblock
13939 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4225
13940 #: ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2841
13941 msgid ""
13942 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13943 "cluster size."
13944 msgstr ""
13945
13946 # type: textblock
13947 #. type: textblock
13948 #: ../src/guestfs-actions.pod:4188 ../fish/guestfish-actions.pod:2817
13949 msgid ""
13950 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
13951 msgstr ""
13952
13953 # type: =head2
13954 #. type: =head2
13955 #: ../src/guestfs-actions.pod:4197
13956 msgid "guestfs_mkfs_opts"
13957 msgstr ""
13958
13959 # type: verbatim
13960 #. type: verbatim
13961 #: ../src/guestfs-actions.pod:4199
13962 #, no-wrap
13963 msgid ""
13964 " int\n"
13965 " guestfs_mkfs_opts (guestfs_h *g,\n"
13966 "                    const char *fstype,\n"
13967 "                    const char *device,\n"
13968 "                    ...);\n"
13969 "\n"
13970 msgstr ""
13971
13972 # type: verbatim
13973 #. type: verbatim
13974 #: ../src/guestfs-actions.pod:4210
13975 #, no-wrap
13976 msgid ""
13977 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13978 "\n"
13979 msgstr ""
13980
13981 # type: textblock
13982 #. type: textblock
13983 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2828
13984 msgid ""
13985 "This function creates a filesystem on C<device>.  The filesystem type is "
13986 "C<fstype>, for example C<ext3>."
13987 msgstr ""
13988
13989 # type: =item
13990 #. type: =item
13991 #: ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:2835
13992 msgid "C<blocksize>"
13993 msgstr ""
13994
13995 # type: textblock
13996 #. type: textblock
13997 #: ../src/guestfs-actions.pod:4221 ../fish/guestfish-actions.pod:2837
13998 msgid ""
13999 "The filesystem block size.  Supported block sizes depend on the filesystem "
14000 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14001 "filesystems."
14002 msgstr ""
14003
14004 #. type: textblock
14005 #: ../src/guestfs-actions.pod:4232
14006 msgid "(Added in 1.7.19)"
14007 msgstr ""
14008
14009 # type: =head2
14010 #. type: =head2
14011 #: ../src/guestfs-actions.pod:4234
14012 msgid "guestfs_mkfs_opts_va"
14013 msgstr ""
14014
14015 # type: verbatim
14016 #. type: verbatim
14017 #: ../src/guestfs-actions.pod:4236
14018 #, no-wrap
14019 msgid ""
14020 " int\n"
14021 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14022 "                       const char *fstype,\n"
14023 "                       const char *device,\n"
14024 "                       va_list args);\n"
14025 "\n"
14026 msgstr ""
14027
14028 # type: textblock
14029 #. type: textblock
14030 #: ../src/guestfs-actions.pod:4242
14031 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14032 msgstr ""
14033
14034 # type: =head2
14035 #. type: =head2
14036 #: ../src/guestfs-actions.pod:4246
14037 msgid "guestfs_mkfs_opts_argv"
14038 msgstr ""
14039
14040 # type: verbatim
14041 #. type: verbatim
14042 #: ../src/guestfs-actions.pod:4248
14043 #, no-wrap
14044 msgid ""
14045 " int\n"
14046 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14047 "                         const char *fstype,\n"
14048 "                         const char *device,\n"
14049 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14050 "\n"
14051 msgstr ""
14052
14053 # type: textblock
14054 #. type: textblock
14055 #: ../src/guestfs-actions.pod:4254
14056 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14057 msgstr ""
14058
14059 # type: =head2
14060 #. type: =head2
14061 #: ../src/guestfs-actions.pod:4258
14062 msgid "guestfs_mkmountpoint"
14063 msgstr ""
14064
14065 # type: verbatim
14066 #. type: verbatim
14067 #: ../src/guestfs-actions.pod:4260
14068 #, no-wrap
14069 msgid ""
14070 " int\n"
14071 " guestfs_mkmountpoint (guestfs_h *g,\n"
14072 "                       const char *exemptpath);\n"
14073 "\n"
14074 msgstr ""
14075
14076 # type: textblock
14077 #. type: textblock
14078 #: ../src/guestfs-actions.pod:4264
14079 msgid ""
14080 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14081 "that can be used to create extra mountpoints before mounting the first "
14082 "filesystem."
14083 msgstr ""
14084
14085 # type: textblock
14086 #. type: textblock
14087 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2856
14088 msgid ""
14089 "These calls are I<only> necessary in some very limited circumstances, mainly "
14090 "the case where you want to mount a mix of unrelated and/or read-only "
14091 "filesystems together."
14092 msgstr ""
14093
14094 # type: textblock
14095 #. type: textblock
14096 #: ../src/guestfs-actions.pod:4272 ../fish/guestfish-actions.pod:2860
14097 msgid ""
14098 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14099 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14100 "inside that.  You can unpack this as follows in guestfish:"
14101 msgstr ""
14102
14103 # type: verbatim
14104 #. type: verbatim
14105 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2865
14106 #, no-wrap
14107 msgid ""
14108 " add-ro Fedora-11-i686-Live.iso\n"
14109 " run\n"
14110 " mkmountpoint /cd\n"
14111 " mkmountpoint /sqsh\n"
14112 " mkmountpoint /ext3fs\n"
14113 " mount /dev/sda /cd\n"
14114 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14115 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14116 "\n"
14117 msgstr ""
14118
14119 # type: textblock
14120 #. type: textblock
14121 #: ../src/guestfs-actions.pod:4286 ../fish/guestfish-actions.pod:2874
14122 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14123 msgstr ""
14124
14125 # type: textblock
14126 #. type: textblock
14127 #: ../src/guestfs-actions.pod:4288
14128 msgid ""
14129 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14130 "may get unexpected errors if you try to mix these calls.  It is safest to "
14131 "manually unmount filesystems and remove mountpoints after use."
14132 msgstr ""
14133
14134 # type: textblock
14135 #. type: textblock
14136 #: ../src/guestfs-actions.pod:4292
14137 msgid ""
14138 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14139 "first, so for this to work for manual mountpoints, you must ensure that the "
14140 "innermost mountpoints have the longest pathnames, as in the example code "
14141 "above."
14142 msgstr ""
14143
14144 # type: textblock
14145 #. type: textblock
14146 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2885
14147 msgid ""
14148 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14149 msgstr ""
14150
14151 # type: textblock
14152 #. type: textblock
14153 #: ../src/guestfs-actions.pod:4299
14154 msgid ""
14155 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14156 "means that C<guestfs_umount_all> is called when the handle is closed which "
14157 "can also trigger these issues."
14158 msgstr ""
14159
14160 # type: textblock
14161 #. type: textblock
14162 #: ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:4564
14163 #: ../src/guestfs-actions.pod:5457
14164 msgid "(Added in 1.0.62)"
14165 msgstr ""
14166
14167 # type: =head2
14168 #. type: =head2
14169 #: ../src/guestfs-actions.pod:4307
14170 msgid "guestfs_mknod"
14171 msgstr ""
14172
14173 # type: verbatim
14174 #. type: verbatim
14175 #: ../src/guestfs-actions.pod:4309
14176 #, no-wrap
14177 msgid ""
14178 " int\n"
14179 " guestfs_mknod (guestfs_h *g,\n"
14180 "                int mode,\n"
14181 "                int devmajor,\n"
14182 "                int devminor,\n"
14183 "                const char *path);\n"
14184 "\n"
14185 msgstr ""
14186
14187 # type: textblock
14188 #. type: textblock
14189 #: ../src/guestfs-actions.pod:4316 ../fish/guestfish-actions.pod:2895
14190 msgid ""
14191 "This call creates block or character special devices, or named pipes (FIFOs)."
14192 msgstr ""
14193
14194 # type: textblock
14195 #. type: textblock
14196 #: ../src/guestfs-actions.pod:4319 ../fish/guestfish-actions.pod:2898
14197 msgid ""
14198 "The C<mode> parameter should be the mode, using the standard constants.  "
14199 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14200 "used when creating block and character special devices."
14201 msgstr ""
14202
14203 # type: textblock
14204 #. type: textblock
14205 #: ../src/guestfs-actions.pod:4324
14206 msgid ""
14207 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14208 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14209 "regular file).  These constants are available in the standard Linux header "
14210 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14211 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14212 "the appropriate constant for you."
14213 msgstr ""
14214
14215 # type: =head2
14216 #. type: =head2
14217 #: ../src/guestfs-actions.pod:4338
14218 msgid "guestfs_mknod_b"
14219 msgstr ""
14220
14221 # type: verbatim
14222 #. type: verbatim
14223 #: ../src/guestfs-actions.pod:4340
14224 #, no-wrap
14225 msgid ""
14226 " int\n"
14227 " guestfs_mknod_b (guestfs_h *g,\n"
14228 "                  int mode,\n"
14229 "                  int devmajor,\n"
14230 "                  int devminor,\n"
14231 "                  const char *path);\n"
14232 "\n"
14233 msgstr ""
14234
14235 # type: textblock
14236 #. type: textblock
14237 #: ../src/guestfs-actions.pod:4347
14238 msgid ""
14239 "This call creates a block device node called C<path> with mode C<mode> and "
14240 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14241 "wrapper around C<guestfs_mknod>."
14242 msgstr ""
14243
14244 # type: =head2
14245 #. type: =head2
14246 #: ../src/guestfs-actions.pod:4357
14247 msgid "guestfs_mknod_c"
14248 msgstr ""
14249
14250 # type: verbatim
14251 #. type: verbatim
14252 #: ../src/guestfs-actions.pod:4359
14253 #, no-wrap
14254 msgid ""
14255 " int\n"
14256 " guestfs_mknod_c (guestfs_h *g,\n"
14257 "                  int mode,\n"
14258 "                  int devmajor,\n"
14259 "                  int devminor,\n"
14260 "                  const char *path);\n"
14261 "\n"
14262 msgstr ""
14263
14264 # type: textblock
14265 #. type: textblock
14266 #: ../src/guestfs-actions.pod:4366
14267 msgid ""
14268 "This call creates a char device node called C<path> with mode C<mode> and "
14269 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14270 "wrapper around C<guestfs_mknod>."
14271 msgstr ""
14272
14273 # type: =head2
14274 #. type: =head2
14275 #: ../src/guestfs-actions.pod:4376
14276 msgid "guestfs_mkswap"
14277 msgstr ""
14278
14279 # type: verbatim
14280 #. type: verbatim
14281 #: ../src/guestfs-actions.pod:4378
14282 #, no-wrap
14283 msgid ""
14284 " int\n"
14285 " guestfs_mkswap (guestfs_h *g,\n"
14286 "                 const char *device);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #. type: textblock
14292 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:2937
14293 msgid "Create a swap partition on C<device>."
14294 msgstr ""
14295
14296 # type: =head2
14297 #. type: =head2
14298 #: ../src/guestfs-actions.pod:4388
14299 msgid "guestfs_mkswap_L"
14300 msgstr ""
14301
14302 # type: verbatim
14303 #. type: verbatim
14304 #: ../src/guestfs-actions.pod:4390
14305 #, no-wrap
14306 msgid ""
14307 " int\n"
14308 " guestfs_mkswap_L (guestfs_h *g,\n"
14309 "                   const char *label,\n"
14310 "                   const char *device);\n"
14311 "\n"
14312 msgstr ""
14313
14314 # type: textblock
14315 #. type: textblock
14316 #: ../src/guestfs-actions.pod:4395 ../fish/guestfish-actions.pod:2943
14317 msgid "Create a swap partition on C<device> with label C<label>."
14318 msgstr ""
14319
14320 # type: textblock
14321 #. type: textblock
14322 #: ../src/guestfs-actions.pod:4397 ../fish/guestfish-actions.pod:2945
14323 msgid ""
14324 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14325 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14326 "or swap tools."
14327 msgstr ""
14328
14329 # type: =head2
14330 #. type: =head2
14331 #: ../src/guestfs-actions.pod:4405
14332 msgid "guestfs_mkswap_U"
14333 msgstr ""
14334
14335 # type: verbatim
14336 #. type: verbatim
14337 #: ../src/guestfs-actions.pod:4407
14338 #, no-wrap
14339 msgid ""
14340 " int\n"
14341 " guestfs_mkswap_U (guestfs_h *g,\n"
14342 "                   const char *uuid,\n"
14343 "                   const char *device);\n"
14344 "\n"
14345 msgstr ""
14346
14347 # type: textblock
14348 #. type: textblock
14349 #: ../src/guestfs-actions.pod:4412 ../fish/guestfish-actions.pod:2953
14350 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14351 msgstr ""
14352
14353 # type: =head2
14354 #. type: =head2
14355 #: ../src/guestfs-actions.pod:4418
14356 msgid "guestfs_mkswap_file"
14357 msgstr ""
14358
14359 # type: verbatim
14360 #. type: verbatim
14361 #: ../src/guestfs-actions.pod:4420
14362 #, no-wrap
14363 msgid ""
14364 " int\n"
14365 " guestfs_mkswap_file (guestfs_h *g,\n"
14366 "                      const char *path);\n"
14367 "\n"
14368 msgstr ""
14369
14370 # type: textblock
14371 #. type: textblock
14372 #: ../src/guestfs-actions.pod:4424 ../fish/guestfish-actions.pod:2959
14373 msgid "Create a swap file."
14374 msgstr ""
14375
14376 # type: textblock
14377 #. type: textblock
14378 #: ../src/guestfs-actions.pod:4426
14379 msgid ""
14380 "This command just writes a swap file signature to an existing file.  To "
14381 "create the file itself, use something like C<guestfs_fallocate>."
14382 msgstr ""
14383
14384 # type: =head2
14385 #. type: =head2
14386 #: ../src/guestfs-actions.pod:4433
14387 msgid "guestfs_modprobe"
14388 msgstr ""
14389
14390 # type: verbatim
14391 #. type: verbatim
14392 #: ../src/guestfs-actions.pod:4435
14393 #, no-wrap
14394 msgid ""
14395 " int\n"
14396 " guestfs_modprobe (guestfs_h *g,\n"
14397 "                   const char *modulename);\n"
14398 "\n"
14399 msgstr ""
14400
14401 # type: textblock
14402 #. type: textblock
14403 #: ../src/guestfs-actions.pod:4439 ../fish/guestfish-actions.pod:2968
14404 msgid "This loads a kernel module in the appliance."
14405 msgstr ""
14406
14407 # type: textblock
14408 #. type: textblock
14409 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2970
14410 msgid ""
14411 "The kernel module must have been whitelisted when libguestfs was built (see "
14412 "C<appliance/kmod.whitelist.in> in the source)."
14413 msgstr ""
14414
14415 # type: =head2
14416 #. type: =head2
14417 #: ../src/guestfs-actions.pod:4448
14418 msgid "guestfs_mount"
14419 msgstr ""
14420
14421 # type: verbatim
14422 #. type: verbatim
14423 #: ../src/guestfs-actions.pod:4450
14424 #, no-wrap
14425 msgid ""
14426 " int\n"
14427 " guestfs_mount (guestfs_h *g,\n"
14428 "                const char *device,\n"
14429 "                const char *mountpoint);\n"
14430 "\n"
14431 msgstr ""
14432
14433 # type: textblock
14434 #. type: textblock
14435 #: ../src/guestfs-actions.pod:4455 ../fish/guestfish-actions.pod:2977
14436 msgid ""
14437 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14438 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14439 "those block devices contain partitions, they will have the usual names (eg. "
14440 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14441 msgstr ""
14442
14443 # type: textblock
14444 #. type: textblock
14445 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:2983
14446 msgid ""
14447 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14448 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14449 "mounted on directories which already exist."
14450 msgstr ""
14451
14452 # type: textblock
14453 #. type: textblock
14454 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:2988
14455 msgid ""
14456 "The mounted filesystem is writable, if we have sufficient permissions on the "
14457 "underlying device."
14458 msgstr ""
14459
14460 # type: textblock
14461 #. type: textblock
14462 #: ../src/guestfs-actions.pod:4469
14463 msgid ""
14464 "B<Important note:> When you use this call, the filesystem options C<sync> "
14465 "and C<noatime> are set implicitly.  This was originally done because we "
14466 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14467 "very large negative performance impact and negligible effect on "
14468 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14469 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14470 "(use an empty string for the first parameter if you don't want any options)."
14471 msgstr ""
14472
14473 # type: =head2
14474 #. type: =head2
14475 #: ../src/guestfs-actions.pod:4483
14476 msgid "guestfs_mount_loop"
14477 msgstr ""
14478
14479 # type: verbatim
14480 #. type: verbatim
14481 #: ../src/guestfs-actions.pod:4485
14482 #, no-wrap
14483 msgid ""
14484 " int\n"
14485 " guestfs_mount_loop (guestfs_h *g,\n"
14486 "                     const char *file,\n"
14487 "                     const char *mountpoint);\n"
14488 "\n"
14489 msgstr ""
14490
14491 # type: textblock
14492 #. type: textblock
14493 #: ../src/guestfs-actions.pod:4490 ../fish/guestfish-actions.pod:3005
14494 msgid ""
14495 "This command lets you mount C<file> (a filesystem image in a file) on a "
14496 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14497 "mountpoint>."
14498 msgstr ""
14499
14500 # type: =head2
14501 #. type: =head2
14502 #: ../src/guestfs-actions.pod:4498
14503 msgid "guestfs_mount_options"
14504 msgstr ""
14505
14506 # type: verbatim
14507 #. type: verbatim
14508 #: ../src/guestfs-actions.pod:4500
14509 #, no-wrap
14510 msgid ""
14511 " int\n"
14512 " guestfs_mount_options (guestfs_h *g,\n"
14513 "                        const char *options,\n"
14514 "                        const char *device,\n"
14515 "                        const char *mountpoint);\n"
14516 "\n"
14517 msgstr ""
14518
14519 # type: textblock
14520 #. type: textblock
14521 #: ../src/guestfs-actions.pod:4506
14522 msgid ""
14523 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14524 "the mount options as for the L<mount(8)> I<-o> flag."
14525 msgstr ""
14526
14527 # type: textblock
14528 #. type: textblock
14529 #: ../src/guestfs-actions.pod:4510 ../fish/guestfish-actions.pod:3017
14530 msgid ""
14531 "If the C<options> parameter is an empty string, then no options are passed "
14532 "(all options default to whatever the filesystem uses)."
14533 msgstr ""
14534
14535 # type: textblock
14536 #. type: textblock
14537 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4530
14538 #: ../src/guestfs-actions.pod:4547
14539 msgid "(Added in 1.0.10)"
14540 msgstr ""
14541
14542 # type: =head2
14543 #. type: =head2
14544 #: ../src/guestfs-actions.pod:4518
14545 msgid "guestfs_mount_ro"
14546 msgstr ""
14547
14548 # type: verbatim
14549 #. type: verbatim
14550 #: ../src/guestfs-actions.pod:4520
14551 #, no-wrap
14552 msgid ""
14553 " int\n"
14554 " guestfs_mount_ro (guestfs_h *g,\n"
14555 "                   const char *device,\n"
14556 "                   const char *mountpoint);\n"
14557 "\n"
14558 msgstr ""
14559
14560 # type: textblock
14561 #. type: textblock
14562 #: ../src/guestfs-actions.pod:4525
14563 msgid ""
14564 "This is the same as the C<guestfs_mount> command, but it mounts the "
14565 "filesystem with the read-only (I<-o ro>) flag."
14566 msgstr ""
14567
14568 # type: =head2
14569 #. type: =head2
14570 #: ../src/guestfs-actions.pod:4532
14571 msgid "guestfs_mount_vfs"
14572 msgstr ""
14573
14574 # type: verbatim
14575 #. type: verbatim
14576 #: ../src/guestfs-actions.pod:4534
14577 #, no-wrap
14578 msgid ""
14579 " int\n"
14580 " guestfs_mount_vfs (guestfs_h *g,\n"
14581 "                    const char *options,\n"
14582 "                    const char *vfstype,\n"
14583 "                    const char *device,\n"
14584 "                    const char *mountpoint);\n"
14585 "\n"
14586 msgstr ""
14587
14588 # type: textblock
14589 #. type: textblock
14590 #: ../src/guestfs-actions.pod:4541
14591 msgid ""
14592 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14593 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14594 "t> flags."
14595 msgstr ""
14596
14597 # type: =head2
14598 #. type: =head2
14599 #: ../src/guestfs-actions.pod:4549
14600 msgid "guestfs_mountpoints"
14601 msgstr ""
14602
14603 # type: verbatim
14604 #. type: verbatim
14605 #: ../src/guestfs-actions.pod:4551
14606 #, no-wrap
14607 msgid ""
14608 " char **\n"
14609 " guestfs_mountpoints (guestfs_h *g);\n"
14610 "\n"
14611 msgstr ""
14612
14613 # type: textblock
14614 #. type: textblock
14615 #: ../src/guestfs-actions.pod:4554
14616 msgid ""
14617 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14618 "devices.  This one returns a hash table (map) of device name to directory "
14619 "where the device is mounted."
14620 msgstr ""
14621
14622 # type: =head2
14623 #. type: =head2
14624 #: ../src/guestfs-actions.pod:4566
14625 msgid "guestfs_mounts"
14626 msgstr ""
14627
14628 # type: verbatim
14629 #. type: verbatim
14630 #: ../src/guestfs-actions.pod:4568
14631 #, no-wrap
14632 msgid ""
14633 " char **\n"
14634 " guestfs_mounts (guestfs_h *g);\n"
14635 "\n"
14636 msgstr ""
14637
14638 # type: textblock
14639 #. type: textblock
14640 #: ../src/guestfs-actions.pod:4571 ../fish/guestfish-actions.pod:3048
14641 msgid ""
14642 "This returns the list of currently mounted filesystems.  It returns the list "
14643 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14644 msgstr ""
14645
14646 # type: textblock
14647 #. type: textblock
14648 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3051
14649 msgid "Some internal mounts are not shown."
14650 msgstr ""
14651
14652 # type: textblock
14653 #. type: textblock
14654 #: ../src/guestfs-actions.pod:4576
14655 msgid "See also: C<guestfs_mountpoints>"
14656 msgstr ""
14657
14658 # type: =head2
14659 #. type: =head2
14660 #: ../src/guestfs-actions.pod:4584
14661 msgid "guestfs_mv"
14662 msgstr ""
14663
14664 # type: verbatim
14665 #. type: verbatim
14666 #: ../src/guestfs-actions.pod:4586
14667 #, no-wrap
14668 msgid ""
14669 " int\n"
14670 " guestfs_mv (guestfs_h *g,\n"
14671 "             const char *src,\n"
14672 "             const char *dest);\n"
14673 "\n"
14674 msgstr ""
14675
14676 # type: textblock
14677 #. type: textblock
14678 #: ../src/guestfs-actions.pod:4591 ../fish/guestfish-actions.pod:3059
14679 msgid ""
14680 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14681 "destination filename or destination directory."
14682 msgstr ""
14683
14684 # type: =head2
14685 #. type: =head2
14686 #: ../src/guestfs-actions.pod:4598
14687 msgid "guestfs_ntfs_3g_probe"
14688 msgstr ""
14689
14690 # type: verbatim
14691 #. type: verbatim
14692 #: ../src/guestfs-actions.pod:4600
14693 #, no-wrap
14694 msgid ""
14695 " int\n"
14696 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14697 "                        int rw,\n"
14698 "                        const char *device);\n"
14699 "\n"
14700 msgstr ""
14701
14702 # type: textblock
14703 #. type: textblock
14704 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3066
14705 msgid ""
14706 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14707 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14708 "write, and some cannot be mounted at all)."
14709 msgstr ""
14710
14711 # type: textblock
14712 #. type: textblock
14713 #: ../src/guestfs-actions.pod:4609 ../fish/guestfish-actions.pod:3070
14714 msgid ""
14715 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14716 "can be mounted read-write.  Set it to false if you want to test if the "
14717 "volume can be mounted read-only."
14718 msgstr ""
14719
14720 # type: textblock
14721 #. type: textblock
14722 #: ../src/guestfs-actions.pod:4613 ../fish/guestfish-actions.pod:3074
14723 msgid ""
14724 "The return value is an integer which C<0> if the operation would succeed, or "
14725 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14726 msgstr ""
14727
14728 # type: textblock
14729 #. type: textblock
14730 #: ../src/guestfs-actions.pod:4619
14731 msgid "(Added in 1.0.43)"
14732 msgstr ""
14733
14734 # type: =head2
14735 #. type: =head2
14736 #: ../src/guestfs-actions.pod:4621
14737 msgid "guestfs_ntfsresize"
14738 msgstr ""
14739
14740 # type: verbatim
14741 #. type: verbatim
14742 #: ../src/guestfs-actions.pod:4623
14743 #, no-wrap
14744 msgid ""
14745 " int\n"
14746 " guestfs_ntfsresize (guestfs_h *g,\n"
14747 "                     const char *device);\n"
14748 "\n"
14749 msgstr ""
14750
14751 # type: textblock
14752 #. type: textblock
14753 #: ../src/guestfs-actions.pod:4627 ../fish/guestfish-actions.pod:3082
14754 msgid ""
14755 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14756 "size of the underlying device.  See also L<ntfsresize(8)>."
14757 msgstr ""
14758
14759 # type: =head2
14760 #. type: =head2
14761 #: ../src/guestfs-actions.pod:4635
14762 msgid "guestfs_ntfsresize_size"
14763 msgstr ""
14764
14765 # type: verbatim
14766 #. type: verbatim
14767 #: ../src/guestfs-actions.pod:4637
14768 #, no-wrap
14769 msgid ""
14770 " int\n"
14771 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14772 "                          const char *device,\n"
14773 "                          int64_t size);\n"
14774 "\n"
14775 msgstr ""
14776
14777 # type: textblock
14778 #. type: textblock
14779 #: ../src/guestfs-actions.pod:4642
14780 msgid ""
14781 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14782 "to specify the new size (in bytes) explicitly."
14783 msgstr ""
14784
14785 # type: textblock
14786 #. type: textblock
14787 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:5083
14788 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5405
14789 #: ../src/guestfs-actions.pod:6944
14790 msgid "(Added in 1.3.14)"
14791 msgstr ""
14792
14793 # type: =head2
14794 #. type: =head2
14795 #: ../src/guestfs-actions.pod:4649
14796 msgid "guestfs_part_add"
14797 msgstr ""
14798
14799 # type: verbatim
14800 #. type: verbatim
14801 #: ../src/guestfs-actions.pod:4651
14802 #, no-wrap
14803 msgid ""
14804 " int\n"
14805 " guestfs_part_add (guestfs_h *g,\n"
14806 "                   const char *device,\n"
14807 "                   const char *prlogex,\n"
14808 "                   int64_t startsect,\n"
14809 "                   int64_t endsect);\n"
14810 "\n"
14811 msgstr ""
14812
14813 # type: textblock
14814 #. type: textblock
14815 #: ../src/guestfs-actions.pod:4658
14816 msgid ""
14817 "This command adds a partition to C<device>.  If there is no partition table "
14818 "on the device, call C<guestfs_part_init> first."
14819 msgstr ""
14820
14821 # type: textblock
14822 #. type: textblock
14823 #: ../src/guestfs-actions.pod:4661 ../fish/guestfish-actions.pod:3100
14824 msgid ""
14825 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14826 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14827 "C<logical>) and C<e> (or C<extended>) partition types."
14828 msgstr ""
14829
14830 # type: textblock
14831 #. type: textblock
14832 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3105
14833 msgid ""
14834 "C<startsect> and C<endsect> are the start and end of the partition in "
14835 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14836 "from the end of the disk (C<-1> is the last sector)."
14837 msgstr ""
14838
14839 # type: textblock
14840 #. type: textblock
14841 #: ../src/guestfs-actions.pod:4670
14842 msgid ""
14843 "Creating a partition which covers the whole disk is not so easy.  Use "
14844 "C<guestfs_part_disk> to do that."
14845 msgstr ""
14846
14847 # type: textblock
14848 #. type: textblock
14849 #: ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4713
14850 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4844
14851 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:4901
14852 #: ../src/guestfs-actions.pod:4941
14853 msgid "(Added in 1.0.78)"
14854 msgstr ""
14855
14856 # type: =head2
14857 #. type: =head2
14858 #: ../src/guestfs-actions.pod:4677
14859 msgid "guestfs_part_del"
14860 msgstr ""
14861
14862 # type: verbatim
14863 #. type: verbatim
14864 #: ../src/guestfs-actions.pod:4679
14865 #, no-wrap
14866 msgid ""
14867 " int\n"
14868 " guestfs_part_del (guestfs_h *g,\n"
14869 "                   const char *device,\n"
14870 "                   int partnum);\n"
14871 "\n"
14872 msgstr ""
14873
14874 # type: textblock
14875 #. type: textblock
14876 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3116
14877 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14878 msgstr ""
14879
14880 # type: textblock
14881 #. type: textblock
14882 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3118
14883 msgid ""
14884 "Note that in the case of MBR partitioning, deleting an extended partition "
14885 "also deletes any logical partitions it contains."
14886 msgstr ""
14887
14888 # type: =head2
14889 #. type: =head2
14890 #: ../src/guestfs-actions.pod:4694
14891 msgid "guestfs_part_disk"
14892 msgstr ""
14893
14894 # type: verbatim
14895 #. type: verbatim
14896 #: ../src/guestfs-actions.pod:4696
14897 #, no-wrap
14898 msgid ""
14899 " int\n"
14900 " guestfs_part_disk (guestfs_h *g,\n"
14901 "                    const char *device,\n"
14902 "                    const char *parttype);\n"
14903 "\n"
14904 msgstr ""
14905
14906 # type: textblock
14907 #. type: textblock
14908 #: ../src/guestfs-actions.pod:4701
14909 msgid ""
14910 "This command is simply a combination of C<guestfs_part_init> followed by "
14911 "C<guestfs_part_add> to create a single primary partition covering the whole "
14912 "disk."
14913 msgstr ""
14914
14915 # type: textblock
14916 #. type: textblock
14917 #: ../src/guestfs-actions.pod:4705
14918 msgid ""
14919 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14920 "possible values are described in C<guestfs_part_init>."
14921 msgstr ""
14922
14923 # type: =head2
14924 #. type: =head2
14925 #: ../src/guestfs-actions.pod:4715
14926 msgid "guestfs_part_get_bootable"
14927 msgstr ""
14928
14929 # type: verbatim
14930 #. type: verbatim
14931 #: ../src/guestfs-actions.pod:4717
14932 #, no-wrap
14933 msgid ""
14934 " int\n"
14935 " guestfs_part_get_bootable (guestfs_h *g,\n"
14936 "                            const char *device,\n"
14937 "                            int partnum);\n"
14938 "\n"
14939 msgstr ""
14940
14941 # type: textblock
14942 #. type: textblock
14943 #: ../src/guestfs-actions.pod:4722 ../fish/guestfish-actions.pod:3140
14944 msgid ""
14945 "This command returns true if the partition C<partnum> on C<device> has the "
14946 "bootable flag set."
14947 msgstr ""
14948
14949 # type: textblock
14950 #. type: textblock
14951 #: ../src/guestfs-actions.pod:4725
14952 msgid "See also C<guestfs_part_set_bootable>."
14953 msgstr ""
14954
14955 # type: =head2
14956 #. type: =head2
14957 #: ../src/guestfs-actions.pod:4731
14958 msgid "guestfs_part_get_mbr_id"
14959 msgstr ""
14960
14961 # type: verbatim
14962 #. type: verbatim
14963 #: ../src/guestfs-actions.pod:4733
14964 #, no-wrap
14965 msgid ""
14966 " int\n"
14967 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14968 "                          const char *device,\n"
14969 "                          int partnum);\n"
14970 "\n"
14971 msgstr ""
14972
14973 # type: textblock
14974 #. type: textblock
14975 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3149
14976 msgid ""
14977 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14978 "partition C<partnum>."
14979 msgstr ""
14980
14981 # type: textblock
14982 #. type: textblock
14983 #: ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4917
14984 msgid ""
14985 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14986 "undefined results for other partition table types (see "
14987 "C<guestfs_part_get_parttype>)."
14988 msgstr ""
14989
14990 # type: =head2
14991 #. type: =head2
14992 #: ../src/guestfs-actions.pod:4749
14993 msgid "guestfs_part_get_parttype"
14994 msgstr ""
14995
14996 # type: verbatim
14997 #. type: verbatim
14998 #: ../src/guestfs-actions.pod:4751
14999 #, no-wrap
15000 msgid ""
15001 " char *\n"
15002 " guestfs_part_get_parttype (guestfs_h *g,\n"
15003 "                            const char *device);\n"
15004 "\n"
15005 msgstr ""
15006
15007 # type: textblock
15008 #. type: textblock
15009 #: ../src/guestfs-actions.pod:4755 ../fish/guestfish-actions.pod:3160
15010 msgid ""
15011 "This command examines the partition table on C<device> and returns the "
15012 "partition table type (format) being used."
15013 msgstr ""
15014
15015 # type: textblock
15016 #. type: textblock
15017 #: ../src/guestfs-actions.pod:4758
15018 msgid ""
15019 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15020 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15021 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15022 msgstr ""
15023
15024 # type: =head2
15025 #. type: =head2
15026 #: ../src/guestfs-actions.pod:4768
15027 msgid "guestfs_part_init"
15028 msgstr ""
15029
15030 # type: verbatim
15031 #. type: verbatim
15032 #: ../src/guestfs-actions.pod:4770
15033 #, no-wrap
15034 msgid ""
15035 " int\n"
15036 " guestfs_part_init (guestfs_h *g,\n"
15037 "                    const char *device,\n"
15038 "                    const char *parttype);\n"
15039 "\n"
15040 msgstr ""
15041
15042 # type: textblock
15043 #. type: textblock
15044 #: ../src/guestfs-actions.pod:4775 ../fish/guestfish-actions.pod:3172
15045 msgid ""
15046 "This creates an empty partition table on C<device> of one of the partition "
15047 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15048 "(for large disks)."
15049 msgstr ""
15050
15051 # type: textblock
15052 #. type: textblock
15053 #: ../src/guestfs-actions.pod:4779
15054 msgid ""
15055 "Initially there are no partitions.  Following this, you should call "
15056 "C<guestfs_part_add> for each partition required."
15057 msgstr ""
15058
15059 # type: textblock
15060 #. type: textblock
15061 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3179
15062 msgid "Possible values for C<parttype> are:"
15063 msgstr ""
15064
15065 # type: =item
15066 #. type: =item
15067 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3183
15068 msgid "B<efi> | B<gpt>"
15069 msgstr ""
15070
15071 # type: textblock
15072 #. type: textblock
15073 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3185
15074 msgid "Intel EFI / GPT partition table."
15075 msgstr ""
15076
15077 # type: textblock
15078 #. type: textblock
15079 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3187
15080 msgid ""
15081 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15082 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15083 "the C<mbr> format."
15084 msgstr ""
15085
15086 # type: =item
15087 #. type: =item
15088 #: ../src/guestfs-actions.pod:4794 ../fish/guestfish-actions.pod:3191
15089 msgid "B<mbr> | B<msdos>"
15090 msgstr ""
15091
15092 # type: textblock
15093 #. type: textblock
15094 #: ../src/guestfs-actions.pod:4796 ../fish/guestfish-actions.pod:3193
15095 msgid ""
15096 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15097 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15098 "TB.  For large disks we recommend using C<gpt>."
15099 msgstr ""
15100
15101 # type: textblock
15102 #. type: textblock
15103 #: ../src/guestfs-actions.pod:4803 ../fish/guestfish-actions.pod:3200
15104 msgid ""
15105 "Other partition table types that may work but are not supported include:"
15106 msgstr ""
15107
15108 # type: =item
15109 #. type: =item
15110 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3205
15111 msgid "B<aix>"
15112 msgstr ""
15113
15114 # type: textblock
15115 #. type: textblock
15116 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3207
15117 msgid "AIX disk labels."
15118 msgstr ""
15119
15120 # type: =item
15121 #. type: =item
15122 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3209
15123 msgid "B<amiga> | B<rdb>"
15124 msgstr ""
15125
15126 # type: textblock
15127 #. type: textblock
15128 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3211
15129 msgid "Amiga \"Rigid Disk Block\" format."
15130 msgstr ""
15131
15132 # type: =item
15133 #. type: =item
15134 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3213
15135 msgid "B<bsd>"
15136 msgstr ""
15137
15138 # type: textblock
15139 #. type: textblock
15140 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3215
15141 msgid "BSD disk labels."
15142 msgstr ""
15143
15144 # type: =item
15145 #. type: =item
15146 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3217
15147 msgid "B<dasd>"
15148 msgstr ""
15149
15150 # type: textblock
15151 #. type: textblock
15152 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3219
15153 msgid "DASD, used on IBM mainframes."
15154 msgstr ""
15155
15156 # type: =item
15157 #. type: =item
15158 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3221
15159 msgid "B<dvh>"
15160 msgstr ""
15161
15162 # type: textblock
15163 #. type: textblock
15164 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3223
15165 msgid "MIPS/SGI volumes."
15166 msgstr ""
15167
15168 # type: =item
15169 #. type: =item
15170 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3225
15171 msgid "B<mac>"
15172 msgstr ""
15173
15174 # type: textblock
15175 #. type: textblock
15176 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3227
15177 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15178 msgstr ""
15179
15180 # type: =item
15181 #. type: =item
15182 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3229
15183 msgid "B<pc98>"
15184 msgstr ""
15185
15186 # type: textblock
15187 #. type: textblock
15188 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3231
15189 msgid "NEC PC-98 format, common in Japan apparently."
15190 msgstr ""
15191
15192 # type: =item
15193 #. type: =item
15194 #: ../src/guestfs-actions.pod:4836 ../fish/guestfish-actions.pod:3233
15195 msgid "B<sun>"
15196 msgstr ""
15197
15198 # type: textblock
15199 #. type: textblock
15200 #: ../src/guestfs-actions.pod:4838 ../fish/guestfish-actions.pod:3235
15201 msgid "Sun disk labels."
15202 msgstr ""
15203
15204 # type: =head2
15205 #. type: =head2
15206 #: ../src/guestfs-actions.pod:4846
15207 msgid "guestfs_part_list"
15208 msgstr ""
15209
15210 # type: verbatim
15211 #. type: verbatim
15212 #: ../src/guestfs-actions.pod:4848
15213 #, no-wrap
15214 msgid ""
15215 " struct guestfs_partition_list *\n"
15216 " guestfs_part_list (guestfs_h *g,\n"
15217 "                    const char *device);\n"
15218 "\n"
15219 msgstr ""
15220
15221 # type: textblock
15222 #. type: textblock
15223 #: ../src/guestfs-actions.pod:4852 ../fish/guestfish-actions.pod:3243
15224 msgid ""
15225 "This command parses the partition table on C<device> and returns the list of "
15226 "partitions found."
15227 msgstr ""
15228
15229 # type: textblock
15230 #. type: textblock
15231 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3246
15232 msgid "The fields in the returned structure are:"
15233 msgstr ""
15234
15235 # type: =item
15236 #. type: =item
15237 #: ../src/guestfs-actions.pod:4859 ../fish/guestfish-actions.pod:3250
15238 msgid "B<part_num>"
15239 msgstr ""
15240
15241 # type: textblock
15242 #. type: textblock
15243 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3252
15244 msgid "Partition number, counting from 1."
15245 msgstr ""
15246
15247 # type: =item
15248 #. type: =item
15249 #: ../src/guestfs-actions.pod:4863 ../fish/guestfish-actions.pod:3254
15250 msgid "B<part_start>"
15251 msgstr ""
15252
15253 # type: textblock
15254 #. type: textblock
15255 #: ../src/guestfs-actions.pod:4865
15256 msgid ""
15257 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15258 "the device's sector size, see C<guestfs_blockdev_getss>."
15259 msgstr ""
15260
15261 # type: =item
15262 #. type: =item
15263 #: ../src/guestfs-actions.pod:4868 ../fish/guestfish-actions.pod:3259
15264 msgid "B<part_end>"
15265 msgstr ""
15266
15267 # type: textblock
15268 #. type: textblock
15269 #: ../src/guestfs-actions.pod:4870 ../fish/guestfish-actions.pod:3261
15270 msgid "End of the partition in bytes."
15271 msgstr ""
15272
15273 # type: =item
15274 #. type: =item
15275 #: ../src/guestfs-actions.pod:4872 ../fish/guestfish-actions.pod:3263
15276 msgid "B<part_size>"
15277 msgstr ""
15278
15279 # type: textblock
15280 #. type: textblock
15281 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3265
15282 msgid "Size of the partition in bytes."
15283 msgstr ""
15284
15285 # type: textblock
15286 #. type: textblock
15287 #: ../src/guestfs-actions.pod:4878
15288 msgid ""
15289 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15290 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15291 "use>."
15292 msgstr ""
15293
15294 # type: =head2
15295 #. type: =head2
15296 #: ../src/guestfs-actions.pod:4884
15297 msgid "guestfs_part_set_bootable"
15298 msgstr ""
15299
15300 # type: verbatim
15301 #. type: verbatim
15302 #: ../src/guestfs-actions.pod:4886
15303 #, no-wrap
15304 msgid ""
15305 " int\n"
15306 " guestfs_part_set_bootable (guestfs_h *g,\n"
15307 "                            const char *device,\n"
15308 "                            int partnum,\n"
15309 "                            int bootable);\n"
15310 "\n"
15311 msgstr ""
15312
15313 # type: textblock
15314 #. type: textblock
15315 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3273
15316 msgid ""
15317 "This sets the bootable flag on partition numbered C<partnum> on device "
15318 "C<device>.  Note that partitions are numbered from 1."
15319 msgstr ""
15320
15321 # type: textblock
15322 #. type: textblock
15323 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3276
15324 msgid ""
15325 "The bootable flag is used by some operating systems (notably Windows) to "
15326 "determine which partition to boot from.  It is by no means universally "
15327 "recognized."
15328 msgstr ""
15329
15330 # type: =head2
15331 #. type: =head2
15332 #: ../src/guestfs-actions.pod:4903
15333 msgid "guestfs_part_set_mbr_id"
15334 msgstr ""
15335
15336 # type: verbatim
15337 #. type: verbatim
15338 #: ../src/guestfs-actions.pod:4905
15339 #, no-wrap
15340 msgid ""
15341 " int\n"
15342 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15343 "                          const char *device,\n"
15344 "                          int partnum,\n"
15345 "                          int idbyte);\n"
15346 "\n"
15347 msgstr ""
15348
15349 # type: textblock
15350 #. type: textblock
15351 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3284
15352 msgid ""
15353 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15354 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15355 "documentation are in fact hexadecimal numbers, but usually documented "
15356 "without any leading \"0x\" which might be confusing."
15357 msgstr ""
15358
15359 # type: =head2
15360 #. type: =head2
15361 #: ../src/guestfs-actions.pod:4925
15362 msgid "guestfs_part_set_name"
15363 msgstr ""
15364
15365 # type: verbatim
15366 #. type: verbatim
15367 #: ../src/guestfs-actions.pod:4927
15368 #, no-wrap
15369 msgid ""
15370 " int\n"
15371 " guestfs_part_set_name (guestfs_h *g,\n"
15372 "                        const char *device,\n"
15373 "                        int partnum,\n"
15374 "                        const char *name);\n"
15375 "\n"
15376 msgstr ""
15377
15378 # type: textblock
15379 #. type: textblock
15380 #: ../src/guestfs-actions.pod:4933 ../fish/guestfish-actions.pod:3298
15381 msgid ""
15382 "This sets the partition name on partition numbered C<partnum> on device "
15383 "C<device>.  Note that partitions are numbered from 1."
15384 msgstr ""
15385
15386 # type: textblock
15387 #. type: textblock
15388 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3301
15389 msgid ""
15390 "The partition name can only be set on certain types of partition table.  "
15391 "This works on C<gpt> but not on C<mbr> partitions."
15392 msgstr ""
15393
15394 # type: =head2
15395 #. type: =head2
15396 #: ../src/guestfs-actions.pod:4943
15397 msgid "guestfs_part_to_dev"
15398 msgstr ""
15399
15400 # type: verbatim
15401 #. type: verbatim
15402 #: ../src/guestfs-actions.pod:4945
15403 #, no-wrap
15404 msgid ""
15405 " char *\n"
15406 " guestfs_part_to_dev (guestfs_h *g,\n"
15407 "                      const char *partition);\n"
15408 "\n"
15409 msgstr ""
15410
15411 # type: textblock
15412 #. type: textblock
15413 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3308
15414 msgid ""
15415 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15416 "partition number, returning the device name (eg. \"/dev/sdb\")."
15417 msgstr ""
15418
15419 # type: textblock
15420 #. type: textblock
15421 #: ../src/guestfs-actions.pod:4953
15422 msgid ""
15423 "The named partition must exist, for example as a string returned from "
15424 "C<guestfs_list_partitions>."
15425 msgstr ""
15426
15427 # type: =head2
15428 #. type: =head2
15429 #: ../src/guestfs-actions.pod:4961
15430 msgid "guestfs_ping_daemon"
15431 msgstr ""
15432
15433 # type: verbatim
15434 #. type: verbatim
15435 #: ../src/guestfs-actions.pod:4963
15436 #, no-wrap
15437 msgid ""
15438 " int\n"
15439 " guestfs_ping_daemon (guestfs_h *g);\n"
15440 "\n"
15441 msgstr ""
15442
15443 # type: textblock
15444 #. type: textblock
15445 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3319
15446 msgid ""
15447 "This is a test probe into the guestfs daemon running inside the qemu "
15448 "subprocess.  Calling this function checks that the daemon responds to the "
15449 "ping message, without affecting the daemon or attached block device(s) in "
15450 "any other way."
15451 msgstr ""
15452
15453 # type: =head2
15454 #. type: =head2
15455 #: ../src/guestfs-actions.pod:4975
15456 msgid "guestfs_pread"
15457 msgstr ""
15458
15459 # type: verbatim
15460 #. type: verbatim
15461 #: ../src/guestfs-actions.pod:4977
15462 #, no-wrap
15463 msgid ""
15464 " char *\n"
15465 " guestfs_pread (guestfs_h *g,\n"
15466 "                const char *path,\n"
15467 "                int count,\n"
15468 "                int64_t offset,\n"
15469 "                size_t *size_r);\n"
15470 "\n"
15471 msgstr ""
15472
15473 # type: textblock
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3328
15476 msgid ""
15477 "This command lets you read part of a file.  It reads C<count> bytes of the "
15478 "file, starting at C<offset>, from file C<path>."
15479 msgstr ""
15480
15481 # type: textblock
15482 #. type: textblock
15483 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5013
15484 #: ../fish/guestfish-actions.pod:3331 ../fish/guestfish-actions.pod:3346
15485 msgid ""
15486 "This may read fewer bytes than requested.  For further details see the "
15487 "L<pread(2)> system call."
15488 msgstr ""
15489
15490 # type: textblock
15491 #. type: textblock
15492 #: ../src/guestfs-actions.pod:4990
15493 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15494 msgstr ""
15495
15496 # type: =head2
15497 #. type: =head2
15498 #: ../src/guestfs-actions.pod:5001
15499 msgid "guestfs_pread_device"
15500 msgstr ""
15501
15502 # type: verbatim
15503 #. type: verbatim
15504 #: ../src/guestfs-actions.pod:5003
15505 #, no-wrap
15506 msgid ""
15507 " char *\n"
15508 " guestfs_pread_device (guestfs_h *g,\n"
15509 "                       const char *device,\n"
15510 "                       int count,\n"
15511 "                       int64_t offset,\n"
15512 "                       size_t *size_r);\n"
15513 "\n"
15514 msgstr ""
15515
15516 # type: textblock
15517 #. type: textblock
15518 #: ../src/guestfs-actions.pod:5010 ../fish/guestfish-actions.pod:3343
15519 msgid ""
15520 "This command lets you read part of a file.  It reads C<count> bytes of "
15521 "C<device>, starting at C<offset>."
15522 msgstr ""
15523
15524 # type: textblock
15525 #. type: textblock
15526 #: ../src/guestfs-actions.pod:5016
15527 msgid "See also C<guestfs_pread>."
15528 msgstr ""
15529
15530 # type: textblock
15531 #. type: textblock
15532 #: ../src/guestfs-actions.pod:5025
15533 msgid "(Added in 1.5.21)"
15534 msgstr ""
15535
15536 # type: =head2
15537 #. type: =head2
15538 #: ../src/guestfs-actions.pod:5027
15539 msgid "guestfs_pvcreate"
15540 msgstr ""
15541
15542 # type: verbatim
15543 #. type: verbatim
15544 #: ../src/guestfs-actions.pod:5029
15545 #, no-wrap
15546 msgid ""
15547 " int\n"
15548 " guestfs_pvcreate (guestfs_h *g,\n"
15549 "                   const char *device);\n"
15550 "\n"
15551 msgstr ""
15552
15553 # type: textblock
15554 #. type: textblock
15555 #: ../src/guestfs-actions.pod:5033 ../fish/guestfish-actions.pod:3358
15556 msgid ""
15557 "This creates an LVM physical volume on the named C<device>, where C<device> "
15558 "should usually be a partition name such as C</dev/sda1>."
15559 msgstr ""
15560
15561 # type: =head2
15562 #. type: =head2
15563 #: ../src/guestfs-actions.pod:5041
15564 msgid "guestfs_pvremove"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #. type: verbatim
15569 #: ../src/guestfs-actions.pod:5043
15570 #, no-wrap
15571 msgid ""
15572 " int\n"
15573 " guestfs_pvremove (guestfs_h *g,\n"
15574 "                   const char *device);\n"
15575 "\n"
15576 msgstr ""
15577
15578 # type: textblock
15579 #. type: textblock
15580 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3366
15581 msgid ""
15582 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15583 "it."
15584 msgstr ""
15585
15586 # type: textblock
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:5050 ../fish/guestfish-actions.pod:3369
15589 msgid ""
15590 "The implementation uses the C<pvremove> command which refuses to wipe "
15591 "physical volumes that contain any volume groups, so you have to remove those "
15592 "first."
15593 msgstr ""
15594
15595 # type: =head2
15596 #. type: =head2
15597 #: ../src/guestfs-actions.pod:5058
15598 msgid "guestfs_pvresize"
15599 msgstr ""
15600
15601 # type: verbatim
15602 #. type: verbatim
15603 #: ../src/guestfs-actions.pod:5060
15604 #, no-wrap
15605 msgid ""
15606 " int\n"
15607 " guestfs_pvresize (guestfs_h *g,\n"
15608 "                   const char *device);\n"
15609 "\n"
15610 msgstr ""
15611
15612 # type: textblock
15613 #. type: textblock
15614 #: ../src/guestfs-actions.pod:5064 ../fish/guestfish-actions.pod:3377
15615 msgid ""
15616 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15617 "the new size of the underlying device."
15618 msgstr ""
15619
15620 # type: =head2
15621 #. type: =head2
15622 #: ../src/guestfs-actions.pod:5071
15623 msgid "guestfs_pvresize_size"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #. type: verbatim
15628 #: ../src/guestfs-actions.pod:5073
15629 #, no-wrap
15630 msgid ""
15631 " int\n"
15632 " guestfs_pvresize_size (guestfs_h *g,\n"
15633 "                        const char *device,\n"
15634 "                        int64_t size);\n"
15635 "\n"
15636 msgstr ""
15637
15638 # type: textblock
15639 #. type: textblock
15640 #: ../src/guestfs-actions.pod:5078
15641 msgid ""
15642 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15643 "specify the new size (in bytes) explicitly."
15644 msgstr ""
15645
15646 # type: =head2
15647 #. type: =head2
15648 #: ../src/guestfs-actions.pod:5085
15649 msgid "guestfs_pvs"
15650 msgstr ""
15651
15652 # type: verbatim
15653 #. type: verbatim
15654 #: ../src/guestfs-actions.pod:5087
15655 #, no-wrap
15656 msgid ""
15657 " char **\n"
15658 " guestfs_pvs (guestfs_h *g);\n"
15659 "\n"
15660 msgstr ""
15661
15662 # type: textblock
15663 #. type: textblock
15664 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3391
15665 msgid ""
15666 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15667 "(8)> command."
15668 msgstr ""
15669
15670 # type: textblock
15671 #. type: textblock
15672 #: ../src/guestfs-actions.pod:5093 ../fish/guestfish-actions.pod:3394
15673 msgid ""
15674 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15675 "sda2>)."
15676 msgstr ""
15677
15678 # type: textblock
15679 #. type: textblock
15680 #: ../src/guestfs-actions.pod:5096
15681 msgid "See also C<guestfs_pvs_full>."
15682 msgstr ""
15683
15684 # type: =head2
15685 #. type: =head2
15686 #: ../src/guestfs-actions.pod:5104
15687 msgid "guestfs_pvs_full"
15688 msgstr ""
15689
15690 # type: verbatim
15691 #. type: verbatim
15692 #: ../src/guestfs-actions.pod:5106
15693 #, no-wrap
15694 msgid ""
15695 " struct guestfs_lvm_pv_list *\n"
15696 " guestfs_pvs_full (guestfs_h *g);\n"
15697 "\n"
15698 msgstr ""
15699
15700 # type: textblock
15701 #. type: textblock
15702 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3403
15703 msgid ""
15704 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15705 "(8)> command.  The \"full\" version includes all fields."
15706 msgstr ""
15707
15708 # type: textblock
15709 #. type: textblock
15710 #: ../src/guestfs-actions.pod:5112
15711 msgid ""
15712 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15713 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15714 msgstr ""
15715
15716 # type: =head2
15717 #. type: =head2
15718 #: ../src/guestfs-actions.pod:5118
15719 msgid "guestfs_pvuuid"
15720 msgstr ""
15721
15722 # type: verbatim
15723 #. type: verbatim
15724 #: ../src/guestfs-actions.pod:5120
15725 #, no-wrap
15726 msgid ""
15727 " char *\n"
15728 " guestfs_pvuuid (guestfs_h *g,\n"
15729 "                 const char *device);\n"
15730 "\n"
15731 msgstr ""
15732
15733 # type: textblock
15734 #. type: textblock
15735 #: ../src/guestfs-actions.pod:5124 ../fish/guestfish-actions.pod:3410
15736 msgid "This command returns the UUID of the LVM PV C<device>."
15737 msgstr ""
15738
15739 # type: =head2
15740 #. type: =head2
15741 #: ../src/guestfs-actions.pod:5131
15742 msgid "guestfs_pwrite"
15743 msgstr ""
15744
15745 # type: verbatim
15746 #. type: verbatim
15747 #: ../src/guestfs-actions.pod:5133
15748 #, no-wrap
15749 msgid ""
15750 " int\n"
15751 " guestfs_pwrite (guestfs_h *g,\n"
15752 "                 const char *path,\n"
15753 "                 const char *content,\n"
15754 "                 size_t content_size,\n"
15755 "                 int64_t offset);\n"
15756 "\n"
15757 msgstr ""
15758
15759 # type: textblock
15760 #. type: textblock
15761 #: ../src/guestfs-actions.pod:5140 ../fish/guestfish-actions.pod:3416
15762 msgid ""
15763 "This command writes to part of a file.  It writes the data buffer C<content> "
15764 "to the file C<path> starting at offset C<offset>."
15765 msgstr ""
15766
15767 # type: textblock
15768 #. type: textblock
15769 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3419
15770 msgid ""
15771 "This command implements the L<pwrite(2)> system call, and like that system "
15772 "call it may not write the full data requested.  The return value is the "
15773 "number of bytes that were actually written to the file.  This could even be "
15774 "0, although short writes are unlikely for regular files in ordinary "
15775 "circumstances."
15776 msgstr ""
15777
15778 # type: textblock
15779 #. type: textblock
15780 #: ../src/guestfs-actions.pod:5149
15781 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15782 msgstr ""
15783
15784 # type: =head2
15785 #. type: =head2
15786 #: ../src/guestfs-actions.pod:5158
15787 msgid "guestfs_pwrite_device"
15788 msgstr ""
15789
15790 # type: verbatim
15791 #. type: verbatim
15792 #: ../src/guestfs-actions.pod:5160
15793 #, no-wrap
15794 msgid ""
15795 " int\n"
15796 " guestfs_pwrite_device (guestfs_h *g,\n"
15797 "                        const char *device,\n"
15798 "                        const char *content,\n"
15799 "                        size_t content_size,\n"
15800 "                        int64_t offset);\n"
15801 "\n"
15802 msgstr ""
15803
15804 # type: textblock
15805 #. type: textblock
15806 #: ../src/guestfs-actions.pod:5167 ../fish/guestfish-actions.pod:3434
15807 msgid ""
15808 "This command writes to part of a device.  It writes the data buffer "
15809 "C<content> to C<device> starting at offset C<offset>."
15810 msgstr ""
15811
15812 # type: textblock
15813 #. type: textblock
15814 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3437
15815 msgid ""
15816 "This command implements the L<pwrite(2)> system call, and like that system "
15817 "call it may not write the full data requested (although short writes to disk "
15818 "devices and partitions are probably impossible with standard Linux kernels)."
15819 msgstr ""
15820
15821 # type: textblock
15822 #. type: textblock
15823 #: ../src/guestfs-actions.pod:5175
15824 msgid "See also C<guestfs_pwrite>."
15825 msgstr ""
15826
15827 # type: textblock
15828 #. type: textblock
15829 #: ../src/guestfs-actions.pod:5182
15830 msgid "(Added in 1.5.20)"
15831 msgstr ""
15832
15833 # type: =head2
15834 #. type: =head2
15835 #: ../src/guestfs-actions.pod:5184
15836 msgid "guestfs_read_file"
15837 msgstr ""
15838
15839 # type: verbatim
15840 #. type: verbatim
15841 #: ../src/guestfs-actions.pod:5186
15842 #, no-wrap
15843 msgid ""
15844 " char *\n"
15845 " guestfs_read_file (guestfs_h *g,\n"
15846 "                    const char *path,\n"
15847 "                    size_t *size_r);\n"
15848 "\n"
15849 msgstr ""
15850
15851 # type: textblock
15852 #. type: textblock
15853 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3451
15854 msgid "This calls returns the contents of the file C<path> as a buffer."
15855 msgstr ""
15856
15857 # type: textblock
15858 #. type: textblock
15859 #: ../src/guestfs-actions.pod:5194
15860 msgid ""
15861 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15862 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15863 "function is limited in the total size of file that can be handled."
15864 msgstr ""
15865
15866 # type: textblock
15867 #. type: textblock
15868 #: ../src/guestfs-actions.pod:5206
15869 msgid "(Added in 1.0.63)"
15870 msgstr ""
15871
15872 # type: =head2
15873 #. type: =head2
15874 #: ../src/guestfs-actions.pod:5208
15875 msgid "guestfs_read_lines"
15876 msgstr ""
15877
15878 # type: verbatim
15879 #. type: verbatim
15880 #: ../src/guestfs-actions.pod:5210
15881 #, no-wrap
15882 msgid ""
15883 " char **\n"
15884 " guestfs_read_lines (guestfs_h *g,\n"
15885 "                     const char *path);\n"
15886 "\n"
15887 msgstr ""
15888
15889 # type: textblock
15890 #. type: textblock
15891 #: ../src/guestfs-actions.pod:5216 ../fish/guestfish-actions.pod:3468
15892 msgid ""
15893 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15894 "C<CRLF> character sequences are I<not> returned."
15895 msgstr ""
15896
15897 # type: textblock
15898 #. type: textblock
15899 #: ../src/guestfs-actions.pod:5219
15900 msgid ""
15901 "Note that this function cannot correctly handle binary files (specifically, "
15902 "files containing C<\\0> character which is treated as end of line).  For "
15903 "those you need to use the C<guestfs_read_file> function which has a more "
15904 "complex interface."
15905 msgstr ""
15906
15907 # type: =head2
15908 #. type: =head2
15909 #: ../src/guestfs-actions.pod:5230
15910 msgid "guestfs_readdir"
15911 msgstr ""
15912
15913 # type: verbatim
15914 #. type: verbatim
15915 #: ../src/guestfs-actions.pod:5232
15916 #, no-wrap
15917 msgid ""
15918 " struct guestfs_dirent_list *\n"
15919 " guestfs_readdir (guestfs_h *g,\n"
15920 "                  const char *dir);\n"
15921 "\n"
15922 msgstr ""
15923
15924 # type: textblock
15925 #. type: textblock
15926 #: ../src/guestfs-actions.pod:5236 ../fish/guestfish-actions.pod:3480
15927 msgid "This returns the list of directory entries in directory C<dir>."
15928 msgstr ""
15929
15930 # type: textblock
15931 #. type: textblock
15932 #: ../src/guestfs-actions.pod:5238 ../fish/guestfish-actions.pod:3482
15933 msgid ""
15934 "All entries in the directory are returned, including C<.> and C<..>.  The "
15935 "entries are I<not> sorted, but returned in the same order as the underlying "
15936 "filesystem."
15937 msgstr ""
15938
15939 # type: textblock
15940 #. type: textblock
15941 #: ../src/guestfs-actions.pod:5242 ../fish/guestfish-actions.pod:3486
15942 msgid ""
15943 "Also this call returns basic file type information about each file.  The "
15944 "C<ftyp> field will contain one of the following characters:"
15945 msgstr ""
15946
15947 # type: =item
15948 #. type: =item
15949 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3491
15950 msgid "'b'"
15951 msgstr ""
15952
15953 # type: textblock
15954 #. type: textblock
15955 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3493
15956 msgid "Block special"
15957 msgstr ""
15958
15959 # type: =item
15960 #. type: =item
15961 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3495
15962 msgid "'c'"
15963 msgstr ""
15964
15965 # type: textblock
15966 #. type: textblock
15967 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3497
15968 msgid "Char special"
15969 msgstr ""
15970
15971 # type: =item
15972 #. type: =item
15973 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3499
15974 msgid "'d'"
15975 msgstr ""
15976
15977 # type: textblock
15978 #. type: textblock
15979 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3501
15980 msgid "Directory"
15981 msgstr ""
15982
15983 # type: =item
15984 #. type: =item
15985 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3503
15986 msgid "'f'"
15987 msgstr ""
15988
15989 # type: textblock
15990 #. type: textblock
15991 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3505
15992 msgid "FIFO (named pipe)"
15993 msgstr ""
15994
15995 # type: =item
15996 #. type: =item
15997 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3507
15998 msgid "'l'"
15999 msgstr ""
16000
16001 # type: textblock
16002 #. type: textblock
16003 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3509
16004 msgid "Symbolic link"
16005 msgstr ""
16006
16007 # type: =item
16008 #. type: =item
16009 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3511
16010 msgid "'r'"
16011 msgstr ""
16012
16013 # type: textblock
16014 #. type: textblock
16015 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3513
16016 msgid "Regular file"
16017 msgstr ""
16018
16019 # type: =item
16020 #. type: =item
16021 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3515
16022 msgid "'s'"
16023 msgstr ""
16024
16025 # type: textblock
16026 #. type: textblock
16027 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3517
16028 msgid "Socket"
16029 msgstr ""
16030
16031 # type: =item
16032 #. type: =item
16033 #: ../src/guestfs-actions.pod:5275 ../fish/guestfish-actions.pod:3519
16034 msgid "'u'"
16035 msgstr ""
16036
16037 # type: textblock
16038 #. type: textblock
16039 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3521
16040 msgid "Unknown file type"
16041 msgstr ""
16042
16043 # type: =item
16044 #. type: =item
16045 #: ../src/guestfs-actions.pod:5279 ../fish/guestfish-actions.pod:3523
16046 msgid "'?'"
16047 msgstr ""
16048
16049 # type: textblock
16050 #. type: textblock
16051 #: ../src/guestfs-actions.pod:5281 ../fish/guestfish-actions.pod:3525
16052 msgid ""
16053 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16054 msgstr ""
16055
16056 # type: textblock
16057 #. type: textblock
16058 #: ../src/guestfs-actions.pod:5286
16059 msgid ""
16060 "This function is primarily intended for use by programs.  To get a simple "
16061 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16062 "consumption, use C<guestfs_ll>."
16063 msgstr ""
16064
16065 # type: textblock
16066 #. type: textblock
16067 #: ../src/guestfs-actions.pod:5290
16068 msgid ""
16069 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16070 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16071 msgstr ""
16072
16073 # type: =head2
16074 #. type: =head2
16075 #: ../src/guestfs-actions.pod:5296
16076 msgid "guestfs_readlink"
16077 msgstr ""
16078
16079 # type: verbatim
16080 #. type: verbatim
16081 #: ../src/guestfs-actions.pod:5298
16082 #, no-wrap
16083 msgid ""
16084 " char *\n"
16085 " guestfs_readlink (guestfs_h *g,\n"
16086 "                   const char *path);\n"
16087 "\n"
16088 msgstr ""
16089
16090 # type: textblock
16091 #. type: textblock
16092 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3538
16093 msgid "This command reads the target of a symbolic link."
16094 msgstr ""
16095
16096 # type: =head2
16097 #. type: =head2
16098 #: ../src/guestfs-actions.pod:5309
16099 msgid "guestfs_readlinklist"
16100 msgstr ""
16101
16102 # type: verbatim
16103 #. type: verbatim
16104 #: ../src/guestfs-actions.pod:5311
16105 #, no-wrap
16106 msgid ""
16107 " char **\n"
16108 " guestfs_readlinklist (guestfs_h *g,\n"
16109 "                       const char *path,\n"
16110 "                       char *const *names);\n"
16111 "\n"
16112 msgstr ""
16113
16114 # type: textblock
16115 #. type: textblock
16116 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3544
16117 msgid ""
16118 "This call allows you to do a C<readlink> operation on multiple files, where "
16119 "all files are in the directory C<path>.  C<names> is the list of files from "
16120 "this directory."
16121 msgstr ""
16122
16123 # type: textblock
16124 #. type: textblock
16125 #: ../src/guestfs-actions.pod:5320 ../fish/guestfish-actions.pod:3548
16126 msgid ""
16127 "On return you get a list of strings, with a one-to-one correspondence to the "
16128 "C<names> list.  Each string is the value of the symbolic link."
16129 msgstr ""
16130
16131 # type: textblock
16132 #. type: textblock
16133 #: ../src/guestfs-actions.pod:5324 ../fish/guestfish-actions.pod:3552
16134 msgid ""
16135 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16136 "result string is the empty string C<\"\">.  However the whole operation is "
16137 "completed even if there were C<readlink(2)> errors, and so you can call this "
16138 "function with names where you don't know if they are symbolic links already "
16139 "(albeit slightly less efficient)."
16140 msgstr ""
16141
16142 # type: textblock
16143 #. type: textblock
16144 #: ../src/guestfs-actions.pod:5331 ../fish/guestfish-actions.pod:3559
16145 msgid ""
16146 "This call is intended for programs that want to efficiently list a directory "
16147 "contents without making many round-trips.  Very long directory listings "
16148 "might cause the protocol message size to be exceeded, causing this call to "
16149 "fail.  The caller must split up such requests into smaller groups of names."
16150 msgstr ""
16151
16152 # type: =head2
16153 #. type: =head2
16154 #: ../src/guestfs-actions.pod:5344
16155 msgid "guestfs_realpath"
16156 msgstr ""
16157
16158 # type: verbatim
16159 #. type: verbatim
16160 #: ../src/guestfs-actions.pod:5346
16161 #, no-wrap
16162 msgid ""
16163 " char *\n"
16164 " guestfs_realpath (guestfs_h *g,\n"
16165 "                   const char *path);\n"
16166 "\n"
16167 msgstr ""
16168
16169 # type: textblock
16170 #. type: textblock
16171 #: ../src/guestfs-actions.pod:5350 ../fish/guestfish-actions.pod:3570
16172 msgid ""
16173 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16174 "has no C<.>, C<..> or symbolic link path elements."
16175 msgstr ""
16176
16177 # type: =head2
16178 #. type: =head2
16179 #: ../src/guestfs-actions.pod:5358
16180 msgid "guestfs_removexattr"
16181 msgstr ""
16182
16183 # type: verbatim
16184 #. type: verbatim
16185 #: ../src/guestfs-actions.pod:5360
16186 #, no-wrap
16187 msgid ""
16188 " int\n"
16189 " guestfs_removexattr (guestfs_h *g,\n"
16190 "                      const char *xattr,\n"
16191 "                      const char *path);\n"
16192 "\n"
16193 msgstr ""
16194
16195 # type: textblock
16196 #. type: textblock
16197 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3577
16198 msgid ""
16199 "This call removes the extended attribute named C<xattr> of the file C<path>."
16200 msgstr ""
16201
16202 # type: textblock
16203 #. type: textblock
16204 #: ../src/guestfs-actions.pod:5368
16205 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16206 msgstr ""
16207
16208 # type: =head2
16209 #. type: =head2
16210 #: ../src/guestfs-actions.pod:5374
16211 msgid "guestfs_resize2fs"
16212 msgstr ""
16213
16214 # type: verbatim
16215 #. type: verbatim
16216 #: ../src/guestfs-actions.pod:5376
16217 #, no-wrap
16218 msgid ""
16219 " int\n"
16220 " guestfs_resize2fs (guestfs_h *g,\n"
16221 "                    const char *device);\n"
16222 "\n"
16223 msgstr ""
16224
16225 # type: textblock
16226 #. type: textblock
16227 #: ../src/guestfs-actions.pod:5380 ../fish/guestfish-actions.pod:3586
16228 msgid ""
16229 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16230 "underlying device."
16231 msgstr ""
16232
16233 # type: textblock
16234 #. type: textblock
16235 #: ../src/guestfs-actions.pod:5383
16236 msgid ""
16237 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16238 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16239 "sometimes gives an error about this and sometimes not.  In any case, it is "
16240 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16241 msgstr ""
16242
16243 # type: =head2
16244 #. type: =head2
16245 #: ../src/guestfs-actions.pod:5393
16246 msgid "guestfs_resize2fs_size"
16247 msgstr ""
16248
16249 # type: verbatim
16250 #. type: verbatim
16251 #: ../src/guestfs-actions.pod:5395
16252 #, no-wrap
16253 msgid ""
16254 " int\n"
16255 " guestfs_resize2fs_size (guestfs_h *g,\n"
16256 "                         const char *device,\n"
16257 "                         int64_t size);\n"
16258 "\n"
16259 msgstr ""
16260
16261 # type: textblock
16262 #. type: textblock
16263 #: ../src/guestfs-actions.pod:5400
16264 msgid ""
16265 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16266 "to specify the new size (in bytes) explicitly."
16267 msgstr ""
16268
16269 # type: =head2
16270 #. type: =head2
16271 #: ../src/guestfs-actions.pod:5407
16272 msgid "guestfs_rm"
16273 msgstr ""
16274
16275 # type: verbatim
16276 #. type: verbatim
16277 #: ../src/guestfs-actions.pod:5409
16278 #, no-wrap
16279 msgid ""
16280 " int\n"
16281 " guestfs_rm (guestfs_h *g,\n"
16282 "             const char *path);\n"
16283 "\n"
16284 msgstr ""
16285
16286 # type: textblock
16287 #. type: textblock
16288 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3606
16289 msgid "Remove the single file C<path>."
16290 msgstr ""
16291
16292 # type: =head2
16293 #. type: =head2
16294 #: ../src/guestfs-actions.pod:5419
16295 msgid "guestfs_rm_rf"
16296 msgstr ""
16297
16298 # type: verbatim
16299 #. type: verbatim
16300 #: ../src/guestfs-actions.pod:5421
16301 #, no-wrap
16302 msgid ""
16303 " int\n"
16304 " guestfs_rm_rf (guestfs_h *g,\n"
16305 "                const char *path);\n"
16306 "\n"
16307 msgstr ""
16308
16309 # type: textblock
16310 #. type: textblock
16311 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:3612
16312 msgid ""
16313 "Remove the file or directory C<path>, recursively removing the contents if "
16314 "its a directory.  This is like the C<rm -rf> shell command."
16315 msgstr ""
16316
16317 # type: =head2
16318 #. type: =head2
16319 #: ../src/guestfs-actions.pod:5433
16320 msgid "guestfs_rmdir"
16321 msgstr ""
16322
16323 # type: verbatim
16324 #. type: verbatim
16325 #: ../src/guestfs-actions.pod:5435
16326 #, no-wrap
16327 msgid ""
16328 " int\n"
16329 " guestfs_rmdir (guestfs_h *g,\n"
16330 "                const char *path);\n"
16331 "\n"
16332 msgstr ""
16333
16334 # type: textblock
16335 #. type: textblock
16336 #: ../src/guestfs-actions.pod:5439 ../fish/guestfish-actions.pod:3620
16337 msgid "Remove the single directory C<path>."
16338 msgstr ""
16339
16340 # type: =head2
16341 #. type: =head2
16342 #: ../src/guestfs-actions.pod:5445
16343 msgid "guestfs_rmmountpoint"
16344 msgstr ""
16345
16346 # type: verbatim
16347 #. type: verbatim
16348 #: ../src/guestfs-actions.pod:5447
16349 #, no-wrap
16350 msgid ""
16351 " int\n"
16352 " guestfs_rmmountpoint (guestfs_h *g,\n"
16353 "                       const char *exemptpath);\n"
16354 "\n"
16355 msgstr ""
16356
16357 # type: textblock
16358 #. type: textblock
16359 #: ../src/guestfs-actions.pod:5451
16360 msgid ""
16361 "This calls removes a mountpoint that was previously created with "
16362 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16363 msgstr ""
16364
16365 # type: =head2
16366 #. type: =head2
16367 #: ../src/guestfs-actions.pod:5459
16368 msgid "guestfs_scrub_device"
16369 msgstr ""
16370
16371 # type: verbatim
16372 #. type: verbatim
16373 #: ../src/guestfs-actions.pod:5461
16374 #, no-wrap
16375 msgid ""
16376 " int\n"
16377 " guestfs_scrub_device (guestfs_h *g,\n"
16378 "                       const char *device);\n"
16379 "\n"
16380 msgstr ""
16381
16382 # type: textblock
16383 #. type: textblock
16384 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3634
16385 msgid ""
16386 "This command writes patterns over C<device> to make data retrieval more "
16387 "difficult."
16388 msgstr ""
16389
16390 # type: textblock
16391 #. type: textblock
16392 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5489
16393 #: ../src/guestfs-actions.pod:5508 ../fish/guestfish-actions.pod:3637
16394 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:3665
16395 msgid ""
16396 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16397 "more details."
16398 msgstr ""
16399
16400 # type: textblock
16401 #. type: textblock
16402 #: ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5494
16403 #: ../src/guestfs-actions.pod:5513
16404 msgid "(Added in 1.0.52)"
16405 msgstr ""
16406
16407 # type: =head2
16408 #. type: =head2
16409 #: ../src/guestfs-actions.pod:5478
16410 msgid "guestfs_scrub_file"
16411 msgstr ""
16412
16413 # type: verbatim
16414 #. type: verbatim
16415 #: ../src/guestfs-actions.pod:5480
16416 #, no-wrap
16417 msgid ""
16418 " int\n"
16419 " guestfs_scrub_file (guestfs_h *g,\n"
16420 "                     const char *file);\n"
16421 "\n"
16422 msgstr ""
16423
16424 # type: textblock
16425 #. type: textblock
16426 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3647
16427 msgid ""
16428 "This command writes patterns over a file to make data retrieval more "
16429 "difficult."
16430 msgstr ""
16431
16432 # type: textblock
16433 #. type: textblock
16434 #: ../src/guestfs-actions.pod:5487 ../fish/guestfish-actions.pod:3650
16435 msgid "The file is I<removed> after scrubbing."
16436 msgstr ""
16437
16438 # type: =head2
16439 #. type: =head2
16440 #: ../src/guestfs-actions.pod:5496
16441 msgid "guestfs_scrub_freespace"
16442 msgstr ""
16443
16444 # type: verbatim
16445 #. type: verbatim
16446 #: ../src/guestfs-actions.pod:5498
16447 #, no-wrap
16448 msgid ""
16449 " int\n"
16450 " guestfs_scrub_freespace (guestfs_h *g,\n"
16451 "                          const char *dir);\n"
16452 "\n"
16453 msgstr ""
16454
16455 # type: textblock
16456 #. type: textblock
16457 #: ../src/guestfs-actions.pod:5502
16458 msgid ""
16459 "This command creates the directory C<dir> and then fills it with files until "
16460 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16461 "and deletes them.  The intention is to scrub any free space on the partition "
16462 "containing C<dir>."
16463 msgstr ""
16464
16465 # type: =head2
16466 #. type: =head2
16467 #: ../src/guestfs-actions.pod:5515
16468 msgid "guestfs_set_append"
16469 msgstr ""
16470
16471 # type: verbatim
16472 #. type: verbatim
16473 #: ../src/guestfs-actions.pod:5517
16474 #, no-wrap
16475 msgid ""
16476 " int\n"
16477 " guestfs_set_append (guestfs_h *g,\n"
16478 "                     const char *append);\n"
16479 "\n"
16480 msgstr ""
16481
16482 # type: textblock
16483 #. type: textblock
16484 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3674
16485 msgid ""
16486 "This function is used to add additional options to the guest kernel command "
16487 "line."
16488 msgstr ""
16489
16490 # type: textblock
16491 #. type: textblock
16492 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:3677
16493 msgid ""
16494 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16495 "environment variable."
16496 msgstr ""
16497
16498 # type: textblock
16499 #. type: textblock
16500 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3680
16501 msgid ""
16502 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16503 "(libguestfs always adds a few of its own)."
16504 msgstr ""
16505
16506 # type: =head2
16507 #. type: =head2
16508 #: ../src/guestfs-actions.pod:5534
16509 msgid "guestfs_set_autosync"
16510 msgstr ""
16511
16512 # type: verbatim
16513 #. type: verbatim
16514 #: ../src/guestfs-actions.pod:5536
16515 #, no-wrap
16516 msgid ""
16517 " int\n"
16518 " guestfs_set_autosync (guestfs_h *g,\n"
16519 "                       int autosync);\n"
16520 "\n"
16521 msgstr ""
16522
16523 # type: textblock
16524 #. type: textblock
16525 #: ../src/guestfs-actions.pod:5540
16526 msgid ""
16527 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16528 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
16529 "the handle is closed (also if the program exits without closing handles)."
16530 msgstr ""
16531
16532 # type: textblock
16533 #. type: textblock
16534 #: ../src/guestfs-actions.pod:5545 ../fish/guestfish-actions.pod:3694
16535 msgid ""
16536 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16537 "disabled by default)."
16538 msgstr ""
16539
16540 # type: =head2
16541 #. type: =head2
16542 #: ../src/guestfs-actions.pod:5552
16543 msgid "guestfs_set_direct"
16544 msgstr ""
16545
16546 # type: verbatim
16547 #. type: verbatim
16548 #: ../src/guestfs-actions.pod:5554
16549 #, no-wrap
16550 msgid ""
16551 " int\n"
16552 " guestfs_set_direct (guestfs_h *g,\n"
16553 "                     int direct);\n"
16554 "\n"
16555 msgstr ""
16556
16557 # type: textblock
16558 #. type: textblock
16559 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3703
16560 msgid ""
16561 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16562 "passed directly through to the appliance once it is launched."
16563 msgstr ""
16564
16565 # type: textblock
16566 #. type: textblock
16567 #: ../src/guestfs-actions.pod:5562
16568 msgid ""
16569 "One consequence of this is that log messages aren't caught by the library "
16570 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16571 "stdout."
16572 msgstr ""
16573
16574 # type: textblock
16575 #. type: textblock
16576 #: ../src/guestfs-actions.pod:5566 ../fish/guestfish-actions.pod:3711
16577 msgid "You probably don't want to use this unless you know what you are doing."
16578 msgstr ""
16579
16580 # type: textblock
16581 #. type: textblock
16582 #: ../src/guestfs-actions.pod:5569 ../fish/guestfish-actions.pod:3714
16583 msgid "The default is disabled."
16584 msgstr ""
16585
16586 # type: =head2
16587 #. type: =head2
16588 #: ../src/guestfs-actions.pod:5575
16589 msgid "guestfs_set_e2label"
16590 msgstr ""
16591
16592 # type: verbatim
16593 #. type: verbatim
16594 #: ../src/guestfs-actions.pod:5577
16595 #, no-wrap
16596 msgid ""
16597 " int\n"
16598 " guestfs_set_e2label (guestfs_h *g,\n"
16599 "                      const char *device,\n"
16600 "                      const char *label);\n"
16601 "\n"
16602 msgstr ""
16603
16604 # type: textblock
16605 #. type: textblock
16606 #: ../src/guestfs-actions.pod:5582 ../fish/guestfish-actions.pod:3720
16607 msgid ""
16608 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16609 "C<label>.  Filesystem labels are limited to 16 characters."
16610 msgstr ""
16611
16612 # type: textblock
16613 #. type: textblock
16614 #: ../src/guestfs-actions.pod:5586
16615 msgid ""
16616 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16617 "the existing label on a filesystem."
16618 msgstr ""
16619
16620 # type: =head2
16621 #. type: =head2
16622 #: ../src/guestfs-actions.pod:5593
16623 msgid "guestfs_set_e2uuid"
16624 msgstr ""
16625
16626 # type: verbatim
16627 #. type: verbatim
16628 #: ../src/guestfs-actions.pod:5595
16629 #, no-wrap
16630 msgid ""
16631 " int\n"
16632 " guestfs_set_e2uuid (guestfs_h *g,\n"
16633 "                     const char *device,\n"
16634 "                     const char *uuid);\n"
16635 "\n"
16636 msgstr ""
16637
16638 # type: textblock
16639 #. type: textblock
16640 #: ../src/guestfs-actions.pod:5600 ../fish/guestfish-actions.pod:3731
16641 msgid ""
16642 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16643 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16644 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16645 msgstr ""
16646
16647 # type: textblock
16648 #. type: textblock
16649 #: ../src/guestfs-actions.pod:5605
16650 msgid ""
16651 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16652 "the existing UUID of a filesystem."
16653 msgstr ""
16654
16655 # type: =head2
16656 #. type: =head2
16657 #: ../src/guestfs-actions.pod:5612
16658 msgid "guestfs_set_memsize"
16659 msgstr ""
16660
16661 # type: verbatim
16662 #. type: verbatim
16663 #: ../src/guestfs-actions.pod:5614
16664 #, no-wrap
16665 msgid ""
16666 " int\n"
16667 " guestfs_set_memsize (guestfs_h *g,\n"
16668 "                      int memsize);\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: textblock
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:5618
16675 msgid ""
16676 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16677 "This only has any effect if called before C<guestfs_launch>."
16678 msgstr ""
16679
16680 # type: textblock
16681 #. type: textblock
16682 #: ../src/guestfs-actions.pod:5622 ../fish/guestfish-actions.pod:3749
16683 msgid ""
16684 "You can also change this by setting the environment variable "
16685 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16686 msgstr ""
16687
16688 # type: =head2
16689 #. type: =head2
16690 #: ../src/guestfs-actions.pod:5633
16691 msgid "guestfs_set_network"
16692 msgstr ""
16693
16694 # type: verbatim
16695 #. type: verbatim
16696 #: ../src/guestfs-actions.pod:5635
16697 #, no-wrap
16698 msgid ""
16699 " int\n"
16700 " guestfs_set_network (guestfs_h *g,\n"
16701 "                      int network);\n"
16702 "\n"
16703 msgstr ""
16704
16705 # type: textblock
16706 #. type: textblock
16707 #: ../src/guestfs-actions.pod:5639 ../fish/guestfish-actions.pod:3762
16708 msgid ""
16709 "If C<network> is true, then the network is enabled in the libguestfs "
16710 "appliance.  The default is false."
16711 msgstr ""
16712
16713 # type: textblock
16714 #. type: textblock
16715 #: ../src/guestfs-actions.pod:5642 ../fish/guestfish-actions.pod:3765
16716 msgid ""
16717 "This affects whether commands are able to access the network (see L<guestfs"
16718 "(3)/RUNNING COMMANDS>)."
16719 msgstr ""
16720
16721 # type: textblock
16722 #. type: textblock
16723 #: ../src/guestfs-actions.pod:5645
16724 msgid ""
16725 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16726 "effect."
16727 msgstr ""
16728
16729 # type: =head2
16730 #. type: =head2
16731 #: ../src/guestfs-actions.pod:5652
16732 msgid "guestfs_set_path"
16733 msgstr ""
16734
16735 # type: verbatim
16736 #. type: verbatim
16737 #: ../src/guestfs-actions.pod:5654
16738 #, no-wrap
16739 msgid ""
16740 " int\n"
16741 " guestfs_set_path (guestfs_h *g,\n"
16742 "                   const char *searchpath);\n"
16743 "\n"
16744 msgstr ""
16745
16746 # type: textblock
16747 #. type: textblock
16748 #: ../src/guestfs-actions.pod:5658 ../fish/guestfish-actions.pod:3777
16749 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16750 msgstr ""
16751
16752 # type: textblock
16753 #. type: textblock
16754 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3779
16755 msgid ""
16756 "The default is C<$libdir/guestfs> unless overridden by setting "
16757 "C<LIBGUESTFS_PATH> environment variable."
16758 msgstr ""
16759
16760 # type: textblock
16761 #. type: textblock
16762 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3782
16763 msgid "Setting C<path> to C<NULL> restores the default path."
16764 msgstr ""
16765
16766 # type: =head2
16767 #. type: =head2
16768 #: ../src/guestfs-actions.pod:5669
16769 msgid "guestfs_set_qemu"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #. type: verbatim
16774 #: ../src/guestfs-actions.pod:5671
16775 #, no-wrap
16776 msgid ""
16777 " int\n"
16778 " guestfs_set_qemu (guestfs_h *g,\n"
16779 "                   const char *qemu);\n"
16780 "\n"
16781 msgstr ""
16782
16783 # type: textblock
16784 #. type: textblock
16785 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3790
16786 msgid "Set the qemu binary that we will use."
16787 msgstr ""
16788
16789 # type: textblock
16790 #. type: textblock
16791 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3792
16792 msgid ""
16793 "The default is chosen when the library was compiled by the configure script."
16794 msgstr ""
16795
16796 # type: textblock
16797 #. type: textblock
16798 #: ../src/guestfs-actions.pod:5680 ../fish/guestfish-actions.pod:3795
16799 msgid ""
16800 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16801 "variable."
16802 msgstr ""
16803
16804 # type: textblock
16805 #. type: textblock
16806 #: ../src/guestfs-actions.pod:5683 ../fish/guestfish-actions.pod:3798
16807 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16808 msgstr ""
16809
16810 # type: textblock
16811 #. type: textblock
16812 #: ../src/guestfs-actions.pod:5685 ../fish/guestfish-actions.pod:3800
16813 msgid ""
16814 "Note that you should call this function as early as possible after creating "
16815 "the handle.  This is because some pre-launch operations depend on testing "
16816 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16817 "don't retest features, and so you might see inconsistent results.  Using the "
16818 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16819 "the qemu binary at the same time as the handle is created."
16820 msgstr ""
16821
16822 # type: =head2
16823 #. type: =head2
16824 #: ../src/guestfs-actions.pod:5697
16825 msgid "guestfs_set_recovery_proc"
16826 msgstr ""
16827
16828 # type: verbatim
16829 #. type: verbatim
16830 #: ../src/guestfs-actions.pod:5699
16831 #, no-wrap
16832 msgid ""
16833 " int\n"
16834 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16835 "                            int recoveryproc);\n"
16836 "\n"
16837 msgstr ""
16838
16839 # type: textblock
16840 #. type: textblock
16841 #: ../src/guestfs-actions.pod:5703
16842 msgid ""
16843 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16844 "not create a recovery process.  The purpose of the recovery process is to "
16845 "stop runaway qemu processes in the case where the main program aborts "
16846 "abruptly."
16847 msgstr ""
16848
16849 # type: textblock
16850 #. type: textblock
16851 #: ../src/guestfs-actions.pod:5708
16852 msgid ""
16853 "This only has any effect if called before C<guestfs_launch>, and the default "
16854 "is true."
16855 msgstr ""
16856
16857 # type: textblock
16858 #. type: textblock
16859 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:3822
16860 msgid ""
16861 "About the only time when you would want to disable this is if the main "
16862 "process will fork itself into the background (\"daemonize\" itself).  In "
16863 "this case the recovery process thinks that the main program has disappeared "
16864 "and so kills qemu, which is not very helpful."
16865 msgstr ""
16866
16867 # type: =head2
16868 #. type: =head2
16869 #: ../src/guestfs-actions.pod:5721
16870 msgid "guestfs_set_selinux"
16871 msgstr ""
16872
16873 # type: verbatim
16874 #. type: verbatim
16875 #: ../src/guestfs-actions.pod:5723
16876 #, no-wrap
16877 msgid ""
16878 " int\n"
16879 " guestfs_set_selinux (guestfs_h *g,\n"
16880 "                      int selinux);\n"
16881 "\n"
16882 msgstr ""
16883
16884 # type: textblock
16885 #. type: textblock
16886 #: ../src/guestfs-actions.pod:5727 ../fish/guestfish-actions.pod:3834
16887 msgid ""
16888 "This sets the selinux flag that is passed to the appliance at boot time.  "
16889 "The default is C<selinux=0> (disabled)."
16890 msgstr ""
16891
16892 # type: textblock
16893 #. type: textblock
16894 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3837
16895 msgid ""
16896 "Note that if SELinux is enabled, it is always in Permissive mode "
16897 "(C<enforcing=0>)."
16898 msgstr ""
16899
16900 # type: =head2
16901 #. type: =head2
16902 #: ../src/guestfs-actions.pod:5740
16903 msgid "guestfs_set_trace"
16904 msgstr ""
16905
16906 # type: verbatim
16907 #. type: verbatim
16908 #: ../src/guestfs-actions.pod:5742
16909 #, no-wrap
16910 msgid ""
16911 " int\n"
16912 " guestfs_set_trace (guestfs_h *g,\n"
16913 "                    int trace);\n"
16914 "\n"
16915 msgstr ""
16916
16917 # type: textblock
16918 #. type: textblock
16919 #: ../src/guestfs-actions.pod:5746 ../fish/guestfish-actions.pod:3849
16920 msgid ""
16921 "If the command trace flag is set to 1, then commands are printed on stderr "
16922 "before they are executed in a format which is very similar to the one used "
16923 "by guestfish.  In other words, you can run a program with this enabled, and "
16924 "you will get out a script which you can feed to guestfish to perform the "
16925 "same set of actions."
16926 msgstr ""
16927
16928 # type: textblock
16929 #. type: textblock
16930 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3856
16931 msgid ""
16932 "If you want to trace C API calls into libguestfs (and other libraries) then "
16933 "possibly a better way is to use the external ltrace(1) command."
16934 msgstr ""
16935
16936 # type: textblock
16937 #. type: textblock
16938 #: ../src/guestfs-actions.pod:5757 ../fish/guestfish-actions.pod:3860
16939 msgid ""
16940 "Command traces are disabled unless the environment variable "
16941 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16942 msgstr ""
16943
16944 # type: =head2
16945 #. type: =head2
16946 #: ../src/guestfs-actions.pod:5764
16947 msgid "guestfs_set_verbose"
16948 msgstr ""
16949
16950 # type: verbatim
16951 #. type: verbatim
16952 #: ../src/guestfs-actions.pod:5766
16953 #, no-wrap
16954 msgid ""
16955 " int\n"
16956 " guestfs_set_verbose (guestfs_h *g,\n"
16957 "                      int verbose);\n"
16958 "\n"
16959 msgstr ""
16960
16961 # type: textblock
16962 #. type: textblock
16963 #: ../src/guestfs-actions.pod:5770 ../fish/guestfish-actions.pod:3869
16964 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
16965 msgstr ""
16966
16967 # type: textblock
16968 #. type: textblock
16969 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3871
16970 msgid ""
16971 "Verbose messages are disabled unless the environment variable "
16972 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16973 msgstr ""
16974
16975 # type: =head2
16976 #. type: =head2
16977 #: ../src/guestfs-actions.pod:5779
16978 msgid "guestfs_setcon"
16979 msgstr ""
16980
16981 # type: verbatim
16982 #. type: verbatim
16983 #: ../src/guestfs-actions.pod:5781
16984 #, no-wrap
16985 msgid ""
16986 " int\n"
16987 " guestfs_setcon (guestfs_h *g,\n"
16988 "                 const char *context);\n"
16989 "\n"
16990 msgstr ""
16991
16992 # type: textblock
16993 #. type: textblock
16994 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3878
16995 msgid ""
16996 "This sets the SELinux security context of the daemon to the string "
16997 "C<context>."
16998 msgstr ""
16999
17000 # type: textblock
17001 #. type: textblock
17002 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:3881
17003 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17004 msgstr ""
17005
17006 # type: =head2
17007 #. type: =head2
17008 #: ../src/guestfs-actions.pod:5794
17009 msgid "guestfs_setxattr"
17010 msgstr ""
17011
17012 # type: verbatim
17013 #. type: verbatim
17014 #: ../src/guestfs-actions.pod:5796
17015 #, no-wrap
17016 msgid ""
17017 " int\n"
17018 " guestfs_setxattr (guestfs_h *g,\n"
17019 "                   const char *xattr,\n"
17020 "                   const char *val,\n"
17021 "                   int vallen,\n"
17022 "                   const char *path);\n"
17023 "\n"
17024 msgstr ""
17025
17026 # type: textblock
17027 #. type: textblock
17028 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3887
17029 msgid ""
17030 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17031 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17032 msgstr ""
17033
17034 # type: textblock
17035 #. type: textblock
17036 #: ../src/guestfs-actions.pod:5807
17037 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17038 msgstr ""
17039
17040 # type: =head2
17041 #. type: =head2
17042 #: ../src/guestfs-actions.pod:5813
17043 msgid "guestfs_sfdisk"
17044 msgstr ""
17045
17046 # type: verbatim
17047 #. type: verbatim
17048 #: ../src/guestfs-actions.pod:5815
17049 #, no-wrap
17050 msgid ""
17051 " int\n"
17052 " guestfs_sfdisk (guestfs_h *g,\n"
17053 "                 const char *device,\n"
17054 "                 int cyls,\n"
17055 "                 int heads,\n"
17056 "                 int sectors,\n"
17057 "                 char *const *lines);\n"
17058 "\n"
17059 msgstr ""
17060
17061 # type: textblock
17062 #. type: textblock
17063 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3897
17064 msgid ""
17065 "This is a direct interface to the L<sfdisk(8)> program for creating "
17066 "partitions on block devices."
17067 msgstr ""
17068
17069 # type: textblock
17070 #. type: textblock
17071 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3900
17072 msgid "C<device> should be a block device, for example C</dev/sda>."
17073 msgstr ""
17074
17075 # type: textblock
17076 #. type: textblock
17077 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3902
17078 msgid ""
17079 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17080 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17081 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17082 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17083 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17084 "the kernel) cannot work out the right geometry and you will need to tell it."
17085 msgstr ""
17086
17087 # type: textblock
17088 #. type: textblock
17089 #: ../src/guestfs-actions.pod:5836 ../fish/guestfish-actions.pod:3910
17090 msgid ""
17091 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17092 "refer to the L<sfdisk(8)> manpage."
17093 msgstr ""
17094
17095 # type: textblock
17096 #. type: textblock
17097 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3913
17098 msgid ""
17099 "To create a single partition occupying the whole disk, you would pass "
17100 "C<lines> as a single element list, when the single element being the string "
17101 "C<,> (comma)."
17102 msgstr ""
17103
17104 # type: textblock
17105 #. type: textblock
17106 #: ../src/guestfs-actions.pod:5843
17107 msgid ""
17108 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17109 msgstr ""
17110
17111 # type: =head2
17112 #. type: =head2
17113 #: ../src/guestfs-actions.pod:5853
17114 msgid "guestfs_sfdiskM"
17115 msgstr ""
17116
17117 # type: verbatim
17118 #. type: verbatim
17119 #: ../src/guestfs-actions.pod:5855
17120 #, no-wrap
17121 msgid ""
17122 " int\n"
17123 " guestfs_sfdiskM (guestfs_h *g,\n"
17124 "                  const char *device,\n"
17125 "                  char *const *lines);\n"
17126 "\n"
17127 msgstr ""
17128
17129 # type: textblock
17130 #. type: textblock
17131 #: ../src/guestfs-actions.pod:5860
17132 msgid ""
17133 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17134 "partition sizes are specified in megabytes only (rounded to the nearest "
17135 "cylinder) and you don't need to specify the cyls, heads and sectors "
17136 "parameters which were rarely if ever used anyway."
17137 msgstr ""
17138
17139 # type: textblock
17140 #. type: textblock
17141 #: ../src/guestfs-actions.pod:5866
17142 msgid ""
17143 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17144 "C<guestfs_part_disk>"
17145 msgstr ""
17146
17147 # type: =head2
17148 #. type: =head2
17149 #: ../src/guestfs-actions.pod:5876
17150 msgid "guestfs_sfdisk_N"
17151 msgstr ""
17152
17153 # type: verbatim
17154 #. type: verbatim
17155 #: ../src/guestfs-actions.pod:5878
17156 #, no-wrap
17157 msgid ""
17158 " int\n"
17159 " guestfs_sfdisk_N (guestfs_h *g,\n"
17160 "                   const char *device,\n"
17161 "                   int partnum,\n"
17162 "                   int cyls,\n"
17163 "                   int heads,\n"
17164 "                   int sectors,\n"
17165 "                   const char *line);\n"
17166 "\n"
17167 msgstr ""
17168
17169 # type: textblock
17170 #. type: textblock
17171 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3943
17172 msgid ""
17173 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17174 "(note: C<n> counts from 1)."
17175 msgstr ""
17176
17177 # type: textblock
17178 #. type: textblock
17179 #: ../src/guestfs-actions.pod:5890
17180 msgid ""
17181 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17182 "for the cyls/heads/sectors parameters."
17183 msgstr ""
17184
17185 # type: textblock
17186 #. type: textblock
17187 #: ../src/guestfs-actions.pod:5893
17188 msgid "See also: C<guestfs_part_add>"
17189 msgstr ""
17190
17191 # type: =head2
17192 #. type: =head2
17193 #: ../src/guestfs-actions.pod:5902
17194 msgid "guestfs_sfdisk_disk_geometry"
17195 msgstr ""
17196
17197 # type: verbatim
17198 #. type: verbatim
17199 #: ../src/guestfs-actions.pod:5904
17200 #, no-wrap
17201 msgid ""
17202 " char *\n"
17203 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17204 "                               const char *device);\n"
17205 "\n"
17206 msgstr ""
17207
17208 # type: textblock
17209 #. type: textblock
17210 #: ../src/guestfs-actions.pod:5908
17211 msgid ""
17212 "This displays the disk geometry of C<device> read from the partition table.  "
17213 "Especially in the case where the underlying block device has been resized, "
17214 "this can be different from the kernel's idea of the geometry (see "
17215 "C<guestfs_sfdisk_kernel_geometry>)."
17216 msgstr ""
17217
17218 # type: textblock
17219 #. type: textblock
17220 #: ../src/guestfs-actions.pod:5913 ../src/guestfs-actions.pod:5929
17221 #: ../fish/guestfish-actions.pod:3963 ../fish/guestfish-actions.pod:3972
17222 msgid "The result is in human-readable format, and not designed to be parsed."
17223 msgstr ""
17224
17225 # type: =head2
17226 #. type: =head2
17227 #: ../src/guestfs-actions.pod:5921
17228 msgid "guestfs_sfdisk_kernel_geometry"
17229 msgstr ""
17230
17231 # type: verbatim
17232 #. type: verbatim
17233 #: ../src/guestfs-actions.pod:5923
17234 #, no-wrap
17235 msgid ""
17236 " char *\n"
17237 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17238 "                                 const char *device);\n"
17239 "\n"
17240 msgstr ""
17241
17242 # type: textblock
17243 #. type: textblock
17244 #: ../src/guestfs-actions.pod:5927 ../fish/guestfish-actions.pod:3970
17245 msgid "This displays the kernel's idea of the geometry of C<device>."
17246 msgstr ""
17247
17248 # type: =head2
17249 #. type: =head2
17250 #: ../src/guestfs-actions.pod:5937
17251 msgid "guestfs_sfdisk_l"
17252 msgstr ""
17253
17254 # type: verbatim
17255 #. type: verbatim
17256 #: ../src/guestfs-actions.pod:5939
17257 #, no-wrap
17258 msgid ""
17259 " char *\n"
17260 " guestfs_sfdisk_l (guestfs_h *g,\n"
17261 "                   const char *device);\n"
17262 "\n"
17263 msgstr ""
17264
17265 # type: textblock
17266 #. type: textblock
17267 #: ../src/guestfs-actions.pod:5943 ../fish/guestfish-actions.pod:3979
17268 msgid ""
17269 "This displays the partition table on C<device>, in the human-readable output "
17270 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17271 msgstr ""
17272
17273 # type: textblock
17274 #. type: textblock
17275 #: ../src/guestfs-actions.pod:5947
17276 msgid "See also: C<guestfs_part_list>"
17277 msgstr ""
17278
17279 # type: =head2
17280 #. type: =head2
17281 #: ../src/guestfs-actions.pod:5954
17282 msgid "guestfs_sh"
17283 msgstr ""
17284
17285 # type: verbatim
17286 #. type: verbatim
17287 #: ../src/guestfs-actions.pod:5956
17288 #, no-wrap
17289 msgid ""
17290 " char *\n"
17291 " guestfs_sh (guestfs_h *g,\n"
17292 "             const char *command);\n"
17293 "\n"
17294 msgstr ""
17295
17296 # type: textblock
17297 #. type: textblock
17298 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3989
17299 msgid ""
17300 "This call runs a command from the guest filesystem via the guest's C</bin/"
17301 "sh>."
17302 msgstr ""
17303
17304 # type: textblock
17305 #. type: textblock
17306 #: ../src/guestfs-actions.pod:5963
17307 msgid "This is like C<guestfs_command>, but passes the command to:"
17308 msgstr ""
17309
17310 # type: verbatim
17311 #. type: verbatim
17312 #: ../src/guestfs-actions.pod:5965 ../fish/guestfish-actions.pod:3994
17313 #, no-wrap
17314 msgid ""
17315 " /bin/sh -c \"command\"\n"
17316 "\n"
17317 msgstr ""
17318
17319 # type: textblock
17320 #. type: textblock
17321 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:3996
17322 msgid ""
17323 "Depending on the guest's shell, this usually results in wildcards being "
17324 "expanded, shell expressions being interpolated and so on."
17325 msgstr ""
17326
17327 # type: textblock
17328 #. type: textblock
17329 #: ../src/guestfs-actions.pod:5971
17330 msgid "All the provisos about C<guestfs_command> apply to this call."
17331 msgstr ""
17332
17333 # type: =head2
17334 #. type: =head2
17335 #: ../src/guestfs-actions.pod:5978
17336 msgid "guestfs_sh_lines"
17337 msgstr ""
17338
17339 # type: verbatim
17340 #. type: verbatim
17341 #: ../src/guestfs-actions.pod:5980
17342 #, no-wrap
17343 msgid ""
17344 " char **\n"
17345 " guestfs_sh_lines (guestfs_h *g,\n"
17346 "                   const char *command);\n"
17347 "\n"
17348 msgstr ""
17349
17350 # type: textblock
17351 #. type: textblock
17352 #: ../src/guestfs-actions.pod:5984
17353 msgid ""
17354 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17355 "lines."
17356 msgstr ""
17357
17358 # type: textblock
17359 #. type: textblock
17360 #: ../src/guestfs-actions.pod:5987
17361 msgid "See also: C<guestfs_command_lines>"
17362 msgstr ""
17363
17364 # type: =head2
17365 #. type: =head2
17366 #: ../src/guestfs-actions.pod:5995
17367 msgid "guestfs_sleep"
17368 msgstr ""
17369
17370 # type: verbatim
17371 #. type: verbatim
17372 #: ../src/guestfs-actions.pod:5997
17373 #, no-wrap
17374 msgid ""
17375 " int\n"
17376 " guestfs_sleep (guestfs_h *g,\n"
17377 "                int secs);\n"
17378 "\n"
17379 msgstr ""
17380
17381 # type: textblock
17382 #. type: textblock
17383 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4015
17384 msgid "Sleep for C<secs> seconds."
17385 msgstr ""
17386
17387 # type: textblock
17388 #. type: textblock
17389 #: ../src/guestfs-actions.pod:6005
17390 msgid "(Added in 1.0.41)"
17391 msgstr ""
17392
17393 # type: =head2
17394 #. type: =head2
17395 #: ../src/guestfs-actions.pod:6007 ../src/guestfs-structs.pod:109
17396 msgid "guestfs_stat"
17397 msgstr ""
17398
17399 # type: verbatim
17400 #. type: verbatim
17401 #: ../src/guestfs-actions.pod:6009
17402 #, no-wrap
17403 msgid ""
17404 " struct guestfs_stat *\n"
17405 " guestfs_stat (guestfs_h *g,\n"
17406 "               const char *path);\n"
17407 "\n"
17408 msgstr ""
17409
17410 # type: textblock
17411 #. type: textblock
17412 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4023
17413 msgid "This is the same as the C<stat(2)> system call."
17414 msgstr ""
17415
17416 # type: =head2
17417 #. type: =head2
17418 #: ../src/guestfs-actions.pod:6023 ../src/guestfs-structs.pod:135
17419 msgid "guestfs_statvfs"
17420 msgstr ""
17421
17422 # type: verbatim
17423 #. type: verbatim
17424 #: ../src/guestfs-actions.pod:6025
17425 #, no-wrap
17426 msgid ""
17427 " struct guestfs_statvfs *\n"
17428 " guestfs_statvfs (guestfs_h *g,\n"
17429 "                  const char *path);\n"
17430 "\n"
17431 msgstr ""
17432
17433 # type: textblock
17434 #. type: textblock
17435 #: ../src/guestfs-actions.pod:6029 ../fish/guestfish-actions.pod:4029
17436 msgid ""
17437 "Returns file system statistics for any mounted file system.  C<path> should "
17438 "be a file or directory in the mounted file system (typically it is the mount "
17439 "point itself, but it doesn't need to be)."
17440 msgstr ""
17441
17442 # type: textblock
17443 #. type: textblock
17444 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4033
17445 msgid "This is the same as the C<statvfs(2)> system call."
17446 msgstr ""
17447
17448 # type: textblock
17449 #. type: textblock
17450 #: ../src/guestfs-actions.pod:6035
17451 msgid ""
17452 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17453 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17454 msgstr ""
17455
17456 # type: =head2
17457 #. type: =head2
17458 #: ../src/guestfs-actions.pod:6041
17459 msgid "guestfs_strings"
17460 msgstr ""
17461
17462 # type: verbatim
17463 #. type: verbatim
17464 #: ../src/guestfs-actions.pod:6043
17465 #, no-wrap
17466 msgid ""
17467 " char **\n"
17468 " guestfs_strings (guestfs_h *g,\n"
17469 "                  const char *path);\n"
17470 "\n"
17471 msgstr ""
17472
17473 # type: textblock
17474 #. type: textblock
17475 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4039
17476 msgid ""
17477 "This runs the L<strings(1)> command on a file and returns the list of "
17478 "printable strings found."
17479 msgstr ""
17480
17481 # type: =head2
17482 #. type: =head2
17483 #: ../src/guestfs-actions.pod:6059
17484 msgid "guestfs_strings_e"
17485 msgstr ""
17486
17487 # type: verbatim
17488 #. type: verbatim
17489 #: ../src/guestfs-actions.pod:6061
17490 #, no-wrap
17491 msgid ""
17492 " char **\n"
17493 " guestfs_strings_e (guestfs_h *g,\n"
17494 "                    const char *encoding,\n"
17495 "                    const char *path);\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:6066
17502 msgid ""
17503 "This is like the C<guestfs_strings> command, but allows you to specify the "
17504 "encoding of strings that are looked for in the source file C<path>."
17505 msgstr ""
17506
17507 # type: textblock
17508 #. type: textblock
17509 #: ../src/guestfs-actions.pod:6070 ../fish/guestfish-actions.pod:4053
17510 msgid "Allowed encodings are:"
17511 msgstr ""
17512
17513 # type: =item
17514 #. type: =item
17515 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4057
17516 msgid "s"
17517 msgstr ""
17518
17519 # type: textblock
17520 #. type: textblock
17521 #: ../src/guestfs-actions.pod:6076
17522 msgid ""
17523 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17524 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17525 msgstr ""
17526
17527 # type: =item
17528 #. type: =item
17529 #: ../src/guestfs-actions.pod:6079 ../fish/guestfish-actions.pod:4062
17530 msgid "S"
17531 msgstr ""
17532
17533 # type: textblock
17534 #. type: textblock
17535 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4064
17536 msgid "Single 8-bit-byte characters."
17537 msgstr ""
17538
17539 # type: =item
17540 #. type: =item
17541 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4066
17542 msgid "b"
17543 msgstr ""
17544
17545 # type: textblock
17546 #. type: textblock
17547 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4068
17548 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17549 msgstr ""
17550
17551 # type: =item
17552 #. type: =item
17553 #: ../src/guestfs-actions.pod:6088 ../fish/guestfish-actions.pod:4071
17554 msgid "l (lower case letter L)"
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4073
17560 msgid ""
17561 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17562 "examining binaries in Windows guests."
17563 msgstr ""
17564
17565 # type: =item
17566 #. type: =item
17567 #: ../src/guestfs-actions.pod:6093 ../fish/guestfish-actions.pod:4076
17568 msgid "B"
17569 msgstr ""
17570
17571 # type: textblock
17572 #. type: textblock
17573 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4078
17574 msgid "32-bit big endian such as UCS-4BE."
17575 msgstr ""
17576
17577 # type: =item
17578 #. type: =item
17579 #: ../src/guestfs-actions.pod:6097 ../fish/guestfish-actions.pod:4080
17580 msgid "L"
17581 msgstr ""
17582
17583 # type: textblock
17584 #. type: textblock
17585 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4082
17586 msgid "32-bit little endian such as UCS-4LE."
17587 msgstr ""
17588
17589 # type: textblock
17590 #. type: textblock
17591 #: ../src/guestfs-actions.pod:6103 ../fish/guestfish-actions.pod:4086
17592 msgid "The returned strings are transcoded to UTF-8."
17593 msgstr ""
17594
17595 # type: =head2
17596 #. type: =head2
17597 #: ../src/guestfs-actions.pod:6114
17598 msgid "guestfs_swapoff_device"
17599 msgstr ""
17600
17601 # type: verbatim
17602 #. type: verbatim
17603 #: ../src/guestfs-actions.pod:6116
17604 #, no-wrap
17605 msgid ""
17606 " int\n"
17607 " guestfs_swapoff_device (guestfs_h *g,\n"
17608 "                         const char *device);\n"
17609 "\n"
17610 msgstr ""
17611
17612 # type: textblock
17613 #. type: textblock
17614 #: ../src/guestfs-actions.pod:6120
17615 msgid ""
17616 "This command disables the libguestfs appliance swap device or partition "
17617 "named C<device>.  See C<guestfs_swapon_device>."
17618 msgstr ""
17619
17620 # type: =head2
17621 #. type: =head2
17622 #: ../src/guestfs-actions.pod:6128
17623 msgid "guestfs_swapoff_file"
17624 msgstr ""
17625
17626 # type: verbatim
17627 #. type: verbatim
17628 #: ../src/guestfs-actions.pod:6130
17629 #, no-wrap
17630 msgid ""
17631 " int\n"
17632 " guestfs_swapoff_file (guestfs_h *g,\n"
17633 "                       const char *file);\n"
17634 "\n"
17635 msgstr ""
17636
17637 # type: textblock
17638 #. type: textblock
17639 #: ../src/guestfs-actions.pod:6134 ../fish/guestfish-actions.pod:4103
17640 msgid "This command disables the libguestfs appliance swap on file."
17641 msgstr ""
17642
17643 # type: =head2
17644 #. type: =head2
17645 #: ../src/guestfs-actions.pod:6140
17646 msgid "guestfs_swapoff_label"
17647 msgstr ""
17648
17649 # type: verbatim
17650 #. type: verbatim
17651 #: ../src/guestfs-actions.pod:6142
17652 #, no-wrap
17653 msgid ""
17654 " int\n"
17655 " guestfs_swapoff_label (guestfs_h *g,\n"
17656 "                        const char *label);\n"
17657 "\n"
17658 msgstr ""
17659
17660 # type: textblock
17661 #. type: textblock
17662 #: ../src/guestfs-actions.pod:6146 ../fish/guestfish-actions.pod:4109
17663 msgid ""
17664 "This command disables the libguestfs appliance swap on labeled swap "
17665 "partition."
17666 msgstr ""
17667
17668 # type: =head2
17669 #. type: =head2
17670 #: ../src/guestfs-actions.pod:6153
17671 msgid "guestfs_swapoff_uuid"
17672 msgstr ""
17673
17674 # type: verbatim
17675 #. type: verbatim
17676 #: ../src/guestfs-actions.pod:6155
17677 #, no-wrap
17678 msgid ""
17679 " int\n"
17680 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17681 "                       const char *uuid);\n"
17682 "\n"
17683 msgstr ""
17684
17685 # type: textblock
17686 #. type: textblock
17687 #: ../src/guestfs-actions.pod:6159 ../fish/guestfish-actions.pod:4116
17688 msgid ""
17689 "This command disables the libguestfs appliance swap partition with the given "
17690 "UUID."
17691 msgstr ""
17692
17693 # type: =head2
17694 #. type: =head2
17695 #: ../src/guestfs-actions.pod:6166
17696 msgid "guestfs_swapon_device"
17697 msgstr ""
17698
17699 # type: verbatim
17700 #. type: verbatim
17701 #: ../src/guestfs-actions.pod:6168
17702 #, no-wrap
17703 msgid ""
17704 " int\n"
17705 " guestfs_swapon_device (guestfs_h *g,\n"
17706 "                        const char *device);\n"
17707 "\n"
17708 msgstr ""
17709
17710 # type: textblock
17711 #. type: textblock
17712 #: ../src/guestfs-actions.pod:6172
17713 msgid ""
17714 "This command enables the libguestfs appliance to use the swap device or "
17715 "partition named C<device>.  The increased memory is made available for all "
17716 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17717 msgstr ""
17718
17719 # type: textblock
17720 #. type: textblock
17721 #: ../src/guestfs-actions.pod:6177 ../fish/guestfish-actions.pod:4128
17722 msgid ""
17723 "Note that you should not swap to existing guest swap partitions unless you "
17724 "know what you are doing.  They may contain hibernation information, or other "
17725 "information that the guest doesn't want you to trash.  You also risk leaking "
17726 "information about the host to the guest this way.  Instead, attach a new "
17727 "host device to the guest and swap on that."
17728 msgstr ""
17729
17730 # type: =head2
17731 #. type: =head2
17732 #: ../src/guestfs-actions.pod:6188
17733 msgid "guestfs_swapon_file"
17734 msgstr ""
17735
17736 # type: verbatim
17737 #. type: verbatim
17738 #: ../src/guestfs-actions.pod:6190
17739 #, no-wrap
17740 msgid ""
17741 " int\n"
17742 " guestfs_swapon_file (guestfs_h *g,\n"
17743 "                      const char *file);\n"
17744 "\n"
17745 msgstr ""
17746
17747 # type: textblock
17748 #. type: textblock
17749 #: ../src/guestfs-actions.pod:6194
17750 msgid ""
17751 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17752 "notes."
17753 msgstr ""
17754
17755 # type: =head2
17756 #. type: =head2
17757 #: ../src/guestfs-actions.pod:6201
17758 msgid "guestfs_swapon_label"
17759 msgstr ""
17760
17761 # type: verbatim
17762 #. type: verbatim
17763 #: ../src/guestfs-actions.pod:6203
17764 #, no-wrap
17765 msgid ""
17766 " int\n"
17767 " guestfs_swapon_label (guestfs_h *g,\n"
17768 "                       const char *label);\n"
17769 "\n"
17770 msgstr ""
17771
17772 # type: textblock
17773 #. type: textblock
17774 #: ../src/guestfs-actions.pod:6207
17775 msgid ""
17776 "This command enables swap to a labeled swap partition.  See "
17777 "C<guestfs_swapon_device> for other notes."
17778 msgstr ""
17779
17780 # type: =head2
17781 #. type: =head2
17782 #: ../src/guestfs-actions.pod:6214
17783 msgid "guestfs_swapon_uuid"
17784 msgstr ""
17785
17786 # type: verbatim
17787 #. type: verbatim
17788 #: ../src/guestfs-actions.pod:6216
17789 #, no-wrap
17790 msgid ""
17791 " int\n"
17792 " guestfs_swapon_uuid (guestfs_h *g,\n"
17793 "                      const char *uuid);\n"
17794 "\n"
17795 msgstr ""
17796
17797 # type: textblock
17798 #. type: textblock
17799 #: ../src/guestfs-actions.pod:6220
17800 msgid ""
17801 "This command enables swap to a swap partition with the given UUID.  See "
17802 "C<guestfs_swapon_device> for other notes."
17803 msgstr ""
17804
17805 # type: =head2
17806 #. type: =head2
17807 #: ../src/guestfs-actions.pod:6227
17808 msgid "guestfs_sync"
17809 msgstr ""
17810
17811 # type: verbatim
17812 #. type: verbatim
17813 #: ../src/guestfs-actions.pod:6229
17814 #, no-wrap
17815 msgid ""
17816 " int\n"
17817 " guestfs_sync (guestfs_h *g);\n"
17818 "\n"
17819 msgstr ""
17820
17821 # type: textblock
17822 #. type: textblock
17823 #: ../src/guestfs-actions.pod:6232 ../fish/guestfish-actions.pod:4160
17824 msgid ""
17825 "This syncs the disk, so that any writes are flushed through to the "
17826 "underlying disk image."
17827 msgstr ""
17828
17829 # type: textblock
17830 #. type: textblock
17831 #: ../src/guestfs-actions.pod:6235 ../fish/guestfish-actions.pod:4163
17832 msgid ""
17833 "You should always call this if you have modified a disk image, before "
17834 "closing the handle."
17835 msgstr ""
17836
17837 # type: =head2
17838 #. type: =head2
17839 #: ../src/guestfs-actions.pod:6242
17840 msgid "guestfs_tail"
17841 msgstr ""
17842
17843 # type: verbatim
17844 #. type: verbatim
17845 #: ../src/guestfs-actions.pod:6244
17846 #, no-wrap
17847 msgid ""
17848 " char **\n"
17849 " guestfs_tail (guestfs_h *g,\n"
17850 "               const char *path);\n"
17851 "\n"
17852 msgstr ""
17853
17854 # type: textblock
17855 #. type: textblock
17856 #: ../src/guestfs-actions.pod:6248 ../fish/guestfish-actions.pod:4170
17857 msgid ""
17858 "This command returns up to the last 10 lines of a file as a list of strings."
17859 msgstr ""
17860
17861 # type: =head2
17862 #. type: =head2
17863 #: ../src/guestfs-actions.pod:6260
17864 msgid "guestfs_tail_n"
17865 msgstr ""
17866
17867 # type: verbatim
17868 #. type: verbatim
17869 #: ../src/guestfs-actions.pod:6262
17870 #, no-wrap
17871 msgid ""
17872 " char **\n"
17873 " guestfs_tail_n (guestfs_h *g,\n"
17874 "                 int nrlines,\n"
17875 "                 const char *path);\n"
17876 "\n"
17877 msgstr ""
17878
17879 # type: textblock
17880 #. type: textblock
17881 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4180
17882 msgid ""
17883 "If the parameter C<nrlines> is a positive number, this returns the last "
17884 "C<nrlines> lines of the file C<path>."
17885 msgstr ""
17886
17887 # type: textblock
17888 #. type: textblock
17889 #: ../src/guestfs-actions.pod:6270 ../fish/guestfish-actions.pod:4183
17890 msgid ""
17891 "If the parameter C<nrlines> is a negative number, this returns lines from "
17892 "the file C<path>, starting with the C<-nrlines>th line."
17893 msgstr ""
17894
17895 # type: =head2
17896 #. type: =head2
17897 #: ../src/guestfs-actions.pod:6284
17898 msgid "guestfs_tar_in"
17899 msgstr ""
17900
17901 # type: verbatim
17902 #. type: verbatim
17903 #: ../src/guestfs-actions.pod:6286
17904 #, no-wrap
17905 msgid ""
17906 " int\n"
17907 " guestfs_tar_in (guestfs_h *g,\n"
17908 "                 const char *tarfile,\n"
17909 "                 const char *directory);\n"
17910 "\n"
17911 msgstr ""
17912
17913 # type: textblock
17914 #. type: textblock
17915 #: ../src/guestfs-actions.pod:6291 ../fish/guestfish-actions.pod:4195
17916 msgid ""
17917 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17918 "tar file) into C<directory>."
17919 msgstr ""
17920
17921 # type: textblock
17922 #. type: textblock
17923 #: ../src/guestfs-actions.pod:6294
17924 msgid ""
17925 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17926 msgstr ""
17927
17928 # type: textblock
17929 #. type: textblock
17930 #: ../src/guestfs-actions.pod:6299 ../src/guestfs-actions.pod:6316
17931 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6348
17932 msgid "(Added in 1.0.3)"
17933 msgstr ""
17934
17935 # type: =head2
17936 #. type: =head2
17937 #: ../src/guestfs-actions.pod:6301
17938 msgid "guestfs_tar_out"
17939 msgstr ""
17940
17941 # type: verbatim
17942 #. type: verbatim
17943 #: ../src/guestfs-actions.pod:6303
17944 #, no-wrap
17945 msgid ""
17946 " int\n"
17947 " guestfs_tar_out (guestfs_h *g,\n"
17948 "                  const char *directory,\n"
17949 "                  const char *tarfile);\n"
17950 "\n"
17951 msgstr ""
17952
17953 # type: textblock
17954 #. type: textblock
17955 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4207
17956 msgid ""
17957 "This command packs the contents of C<directory> and downloads it to local "
17958 "file C<tarfile>."
17959 msgstr ""
17960
17961 # type: textblock
17962 #. type: textblock
17963 #: ../src/guestfs-actions.pod:6311
17964 msgid ""
17965 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17966 "C<guestfs_txz_out>."
17967 msgstr ""
17968
17969 # type: =head2
17970 #. type: =head2
17971 #: ../src/guestfs-actions.pod:6318
17972 msgid "guestfs_tgz_in"
17973 msgstr ""
17974
17975 # type: verbatim
17976 #. type: verbatim
17977 #: ../src/guestfs-actions.pod:6320
17978 #, no-wrap
17979 msgid ""
17980 " int\n"
17981 " guestfs_tgz_in (guestfs_h *g,\n"
17982 "                 const char *tarball,\n"
17983 "                 const char *directory);\n"
17984 "\n"
17985 msgstr ""
17986
17987 # type: textblock
17988 #. type: textblock
17989 #: ../src/guestfs-actions.pod:6325 ../fish/guestfish-actions.pod:4219
17990 msgid ""
17991 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17992 "tar file) into C<directory>."
17993 msgstr ""
17994
17995 # type: textblock
17996 #. type: textblock
17997 #: ../src/guestfs-actions.pod:6328
17998 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17999 msgstr ""
18000
18001 # type: =head2
18002 #. type: =head2
18003 #: ../src/guestfs-actions.pod:6334
18004 msgid "guestfs_tgz_out"
18005 msgstr ""
18006
18007 # type: verbatim
18008 #. type: verbatim
18009 #: ../src/guestfs-actions.pod:6336
18010 #, no-wrap
18011 msgid ""
18012 " int\n"
18013 " guestfs_tgz_out (guestfs_h *g,\n"
18014 "                  const char *directory,\n"
18015 "                  const char *tarball);\n"
18016 "\n"
18017 msgstr ""
18018
18019 # type: textblock
18020 #. type: textblock
18021 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4230
18022 msgid ""
18023 "This command packs the contents of C<directory> and downloads it to local "
18024 "file C<tarball>."
18025 msgstr ""
18026
18027 # type: textblock
18028 #. type: textblock
18029 #: ../src/guestfs-actions.pod:6344
18030 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18031 msgstr ""
18032
18033 # type: =head2
18034 #. type: =head2
18035 #: ../src/guestfs-actions.pod:6350
18036 msgid "guestfs_touch"
18037 msgstr ""
18038
18039 # type: verbatim
18040 #. type: verbatim
18041 #: ../src/guestfs-actions.pod:6352
18042 #, no-wrap
18043 msgid ""
18044 " int\n"
18045 " guestfs_touch (guestfs_h *g,\n"
18046 "                const char *path);\n"
18047 "\n"
18048 msgstr ""
18049
18050 # type: textblock
18051 #. type: textblock
18052 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4241
18053 msgid ""
18054 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18055 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18056 "length file."
18057 msgstr ""
18058
18059 # type: textblock
18060 #. type: textblock
18061 #: ../src/guestfs-actions.pod:6360 ../fish/guestfish-actions.pod:4245
18062 msgid ""
18063 "This command only works on regular files, and will fail on other file types "
18064 "such as directories, symbolic links, block special etc."
18065 msgstr ""
18066
18067 # type: =head2
18068 #. type: =head2
18069 #: ../src/guestfs-actions.pod:6367
18070 msgid "guestfs_truncate"
18071 msgstr ""
18072
18073 # type: verbatim
18074 #. type: verbatim
18075 #: ../src/guestfs-actions.pod:6369
18076 #, no-wrap
18077 msgid ""
18078 " int\n"
18079 " guestfs_truncate (guestfs_h *g,\n"
18080 "                   const char *path);\n"
18081 "\n"
18082 msgstr ""
18083
18084 # type: textblock
18085 #. type: textblock
18086 #: ../src/guestfs-actions.pod:6373 ../fish/guestfish-actions.pod:4252
18087 msgid ""
18088 "This command truncates C<path> to a zero-length file.  The file must exist "
18089 "already."
18090 msgstr ""
18091
18092 # type: =head2
18093 #. type: =head2
18094 #: ../src/guestfs-actions.pod:6380
18095 msgid "guestfs_truncate_size"
18096 msgstr ""
18097
18098 # type: verbatim
18099 #. type: verbatim
18100 #: ../src/guestfs-actions.pod:6382
18101 #, no-wrap
18102 msgid ""
18103 " int\n"
18104 " guestfs_truncate_size (guestfs_h *g,\n"
18105 "                        const char *path,\n"
18106 "                        int64_t size);\n"
18107 "\n"
18108 msgstr ""
18109
18110 # type: textblock
18111 #. type: textblock
18112 #: ../src/guestfs-actions.pod:6387 ../fish/guestfish-actions.pod:4259
18113 msgid ""
18114 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18115 "already."
18116 msgstr ""
18117
18118 # type: textblock
18119 #. type: textblock
18120 #: ../src/guestfs-actions.pod:6390
18121 msgid ""
18122 "If the current file size is less than C<size> then the file is extended to "
18123 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18124 "blocks are not allocated for the file until you write to it).  To create a "
18125 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18126 msgstr ""
18127
18128 # type: =head2
18129 #. type: =head2
18130 #: ../src/guestfs-actions.pod:6400
18131 msgid "guestfs_tune2fs_l"
18132 msgstr ""
18133
18134 # type: verbatim
18135 #. type: verbatim
18136 #: ../src/guestfs-actions.pod:6402
18137 #, no-wrap
18138 msgid ""
18139 " char **\n"
18140 " guestfs_tune2fs_l (guestfs_h *g,\n"
18141 "                    const char *device);\n"
18142 "\n"
18143 msgstr ""
18144
18145 # type: textblock
18146 #. type: textblock
18147 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4272
18148 msgid ""
18149 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18150 "C<device>."
18151 msgstr ""
18152
18153 # type: textblock
18154 #. type: textblock
18155 #: ../src/guestfs-actions.pod:6409 ../fish/guestfish-actions.pod:4275
18156 msgid ""
18157 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18158 "for more details.  The list of fields returned isn't clearly defined, and "
18159 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18160 "and the filesystem itself."
18161 msgstr ""
18162
18163 # type: =head2
18164 #. type: =head2
18165 #: ../src/guestfs-actions.pod:6422
18166 msgid "guestfs_txz_in"
18167 msgstr ""
18168
18169 # type: verbatim
18170 #. type: verbatim
18171 #: ../src/guestfs-actions.pod:6424
18172 #, no-wrap
18173 msgid ""
18174 " int\n"
18175 " guestfs_txz_in (guestfs_h *g,\n"
18176 "                 const char *tarball,\n"
18177 "                 const char *directory);\n"
18178 "\n"
18179 msgstr ""
18180
18181 # type: textblock
18182 #. type: textblock
18183 #: ../src/guestfs-actions.pod:6429 ../fish/guestfish-actions.pod:4284
18184 msgid ""
18185 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18186 "tar file) into C<directory>."
18187 msgstr ""
18188
18189 # type: =head2
18190 #. type: =head2
18191 #: ../src/guestfs-actions.pod:6436
18192 msgid "guestfs_txz_out"
18193 msgstr ""
18194
18195 # type: verbatim
18196 #. type: verbatim
18197 #: ../src/guestfs-actions.pod:6438
18198 #, no-wrap
18199 msgid ""
18200 " int\n"
18201 " guestfs_txz_out (guestfs_h *g,\n"
18202 "                  const char *directory,\n"
18203 "                  const char *tarball);\n"
18204 "\n"
18205 msgstr ""
18206
18207 # type: textblock
18208 #. type: textblock
18209 #: ../src/guestfs-actions.pod:6443 ../fish/guestfish-actions.pod:4293
18210 msgid ""
18211 "This command packs the contents of C<directory> and downloads it to local "
18212 "file C<tarball> (as an xz compressed tar archive)."
18213 msgstr ""
18214
18215 # type: =head2
18216 #. type: =head2
18217 #: ../src/guestfs-actions.pod:6450
18218 msgid "guestfs_umask"
18219 msgstr ""
18220
18221 # type: verbatim
18222 #. type: verbatim
18223 #: ../src/guestfs-actions.pod:6452
18224 #, no-wrap
18225 msgid ""
18226 " int\n"
18227 " guestfs_umask (guestfs_h *g,\n"
18228 "                int mask);\n"
18229 "\n"
18230 msgstr ""
18231
18232 # type: textblock
18233 #. type: textblock
18234 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4302
18235 msgid ""
18236 "This function sets the mask used for creating new files and device nodes to "
18237 "C<mask & 0777>."
18238 msgstr ""
18239
18240 # type: textblock
18241 #. type: textblock
18242 #: ../src/guestfs-actions.pod:6459 ../fish/guestfish-actions.pod:4305
18243 msgid ""
18244 "Typical umask values would be C<022> which creates new files with "
18245 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18246 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18247 msgstr ""
18248
18249 # type: textblock
18250 #. type: textblock
18251 #: ../src/guestfs-actions.pod:6464 ../fish/guestfish-actions.pod:4310
18252 msgid ""
18253 "The default umask is C<022>.  This is important because it means that "
18254 "directories and device nodes will be created with C<0644> or C<0755> mode "
18255 "even if you specify C<0777>."
18256 msgstr ""
18257
18258 # type: textblock
18259 #. type: textblock
18260 #: ../src/guestfs-actions.pod:6468
18261 msgid ""
18262 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18263 "C<guestfs_mkdir>."
18264 msgstr ""
18265
18266 # type: textblock
18267 #. type: textblock
18268 #: ../src/guestfs-actions.pod:6471 ../fish/guestfish-actions.pod:4317
18269 msgid "This call returns the previous umask."
18270 msgstr ""
18271
18272 # type: =head2
18273 #. type: =head2
18274 #: ../src/guestfs-actions.pod:6477
18275 msgid "guestfs_umount"
18276 msgstr ""
18277
18278 # type: verbatim
18279 #. type: verbatim
18280 #: ../src/guestfs-actions.pod:6479
18281 #, no-wrap
18282 msgid ""
18283 " int\n"
18284 " guestfs_umount (guestfs_h *g,\n"
18285 "                 const char *pathordevice);\n"
18286 "\n"
18287 msgstr ""
18288
18289 # type: textblock
18290 #. type: textblock
18291 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4325
18292 msgid ""
18293 "This unmounts the given filesystem.  The filesystem may be specified either "
18294 "by its mountpoint (path) or the device which contains the filesystem."
18295 msgstr ""
18296
18297 # type: =head2
18298 #. type: =head2
18299 #: ../src/guestfs-actions.pod:6491
18300 msgid "guestfs_umount_all"
18301 msgstr ""
18302
18303 # type: verbatim
18304 #. type: verbatim
18305 #: ../src/guestfs-actions.pod:6493
18306 #, no-wrap
18307 msgid ""
18308 " int\n"
18309 " guestfs_umount_all (guestfs_h *g);\n"
18310 "\n"
18311 msgstr ""
18312
18313 # type: textblock
18314 #. type: textblock
18315 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4335
18316 msgid "This unmounts all mounted filesystems."
18317 msgstr ""
18318
18319 # type: textblock
18320 #. type: textblock
18321 #: ../src/guestfs-actions.pod:6498 ../fish/guestfish-actions.pod:4337
18322 msgid "Some internal mounts are not unmounted by this call."
18323 msgstr ""
18324
18325 # type: =head2
18326 #. type: =head2
18327 #: ../src/guestfs-actions.pod:6504
18328 msgid "guestfs_upload"
18329 msgstr ""
18330
18331 # type: verbatim
18332 #. type: verbatim
18333 #: ../src/guestfs-actions.pod:6506
18334 #, no-wrap
18335 msgid ""
18336 " int\n"
18337 " guestfs_upload (guestfs_h *g,\n"
18338 "                 const char *filename,\n"
18339 "                 const char *remotefilename);\n"
18340 "\n"
18341 msgstr ""
18342
18343 # type: textblock
18344 #. type: textblock
18345 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6535
18346 #: ../fish/guestfish-actions.pod:4343 ../fish/guestfish-actions.pod:4356
18347 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18348 msgstr ""
18349
18350 # type: textblock
18351 #. type: textblock
18352 #: ../src/guestfs-actions.pod:6516
18353 msgid "See also C<guestfs_download>."
18354 msgstr ""
18355
18356 # type: =head2
18357 #. type: =head2
18358 #: ../src/guestfs-actions.pod:6527
18359 msgid "guestfs_upload_offset"
18360 msgstr ""
18361
18362 # type: verbatim
18363 #. type: verbatim
18364 #: ../src/guestfs-actions.pod:6529
18365 #, no-wrap
18366 msgid ""
18367 " int\n"
18368 " guestfs_upload_offset (guestfs_h *g,\n"
18369 "                        const char *filename,\n"
18370 "                        const char *remotefilename,\n"
18371 "                        int64_t offset);\n"
18372 "\n"
18373 msgstr ""
18374
18375 # type: textblock
18376 #. type: textblock
18377 #: ../src/guestfs-actions.pod:6538 ../fish/guestfish-actions.pod:4359
18378 msgid ""
18379 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18380 "The intention is to overwrite parts of existing files or devices, although "
18381 "if a non-existant file is specified then it is created with a \"hole\" "
18382 "before C<offset>.  The size of the data written is implicit in the size of "
18383 "the source C<filename>."
18384 msgstr ""
18385
18386 # type: textblock
18387 #. type: textblock
18388 #: ../src/guestfs-actions.pod:6545
18389 msgid ""
18390 "Note that there is no limit on the amount of data that can be uploaded with "
18391 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18392 "full amount unless an error occurs."
18393 msgstr ""
18394
18395 # type: textblock
18396 #. type: textblock
18397 #: ../src/guestfs-actions.pod:6550
18398 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18399 msgstr ""
18400
18401 # type: =head2
18402 #. type: =head2
18403 #: ../src/guestfs-actions.pod:6561
18404 msgid "guestfs_utimens"
18405 msgstr ""
18406
18407 # type: verbatim
18408 #. type: verbatim
18409 #: ../src/guestfs-actions.pod:6563
18410 #, no-wrap
18411 msgid ""
18412 " int\n"
18413 " guestfs_utimens (guestfs_h *g,\n"
18414 "                  const char *path,\n"
18415 "                  int64_t atsecs,\n"
18416 "                  int64_t atnsecs,\n"
18417 "                  int64_t mtsecs,\n"
18418 "                  int64_t mtnsecs);\n"
18419 "\n"
18420 msgstr ""
18421
18422 # type: textblock
18423 #. type: textblock
18424 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4379
18425 msgid "This command sets the timestamps of a file with nanosecond precision."
18426 msgstr ""
18427
18428 # type: textblock
18429 #. type: textblock
18430 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4382
18431 msgid ""
18432 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18433 "from the epoch."
18434 msgstr ""
18435
18436 # type: textblock
18437 #. type: textblock
18438 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4385
18439 msgid ""
18440 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18441 "nanoseconds from the epoch."
18442 msgstr ""
18443
18444 # type: textblock
18445 #. type: textblock
18446 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4388
18447 msgid ""
18448 "If the C<*nsecs> field contains the special value C<-1> then the "
18449 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18450 "ignored in this case)."
18451 msgstr ""
18452
18453 # type: textblock
18454 #. type: textblock
18455 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4392
18456 msgid ""
18457 "If the C<*nsecs> field contains the special value C<-2> then the "
18458 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18459 "in this case)."
18460 msgstr ""
18461
18462 # type: =head2
18463 #. type: =head2
18464 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-structs.pod:175
18465 msgid "guestfs_version"
18466 msgstr ""
18467
18468 # type: verbatim
18469 #. type: verbatim
18470 #: ../src/guestfs-actions.pod:6594
18471 #, no-wrap
18472 msgid ""
18473 " struct guestfs_version *\n"
18474 " guestfs_version (guestfs_h *g);\n"
18475 "\n"
18476 msgstr ""
18477
18478 # type: textblock
18479 #. type: textblock
18480 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4400
18481 msgid ""
18482 "Return the libguestfs version number that the program is linked against."
18483 msgstr ""
18484
18485 # type: textblock
18486 #. type: textblock
18487 #: ../src/guestfs-actions.pod:6600 ../fish/guestfish-actions.pod:4403
18488 msgid ""
18489 "Note that because of dynamic linking this is not necessarily the version of "
18490 "libguestfs that you compiled against.  You can compile the program, and then "
18491 "at runtime dynamically link against a completely different C<libguestfs.so> "
18492 "library."
18493 msgstr ""
18494
18495 # type: textblock
18496 #. type: textblock
18497 #: ../src/guestfs-actions.pod:6605 ../fish/guestfish-actions.pod:4408
18498 msgid ""
18499 "This call was added in version C<1.0.58>.  In previous versions of "
18500 "libguestfs there was no way to get the version number.  From C code you can "
18501 "use dynamic linker functions to find out if this symbol exists (if it "
18502 "doesn't, then it's an earlier version)."
18503 msgstr ""
18504
18505 # type: textblock
18506 #. type: textblock
18507 #: ../src/guestfs-actions.pod:6611 ../fish/guestfish-actions.pod:4414
18508 msgid ""
18509 "The call returns a structure with four elements.  The first three (C<major>, "
18510 "C<minor> and C<release>) are numbers and correspond to the usual version "
18511 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18512 "but may be used for distro-specific information."
18513 msgstr ""
18514
18515 # type: textblock
18516 #. type: textblock
18517 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4420
18518 msgid ""
18519 "To construct the original version string: C<$major.$minor.$release$extra>"
18520 msgstr ""
18521
18522 # type: textblock
18523 #. type: textblock
18524 #: ../src/guestfs-actions.pod:6620 ../fish/guestfish-actions.pod:4423
18525 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18526 msgstr ""
18527
18528 # type: textblock
18529 #. type: textblock
18530 #: ../src/guestfs-actions.pod:6622
18531 msgid ""
18532 "I<Note:> Don't use this call to test for availability of features.  In "
18533 "enterprise distributions we backport features from later versions into "
18534 "earlier versions, making this an unreliable way to test for features.  Use "
18535 "C<guestfs_available> instead."
18536 msgstr ""
18537
18538 # type: textblock
18539 #. type: textblock
18540 #: ../src/guestfs-actions.pod:6628
18541 msgid ""
18542 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18543 "error.  I<The caller must call C<guestfs_free_version> after use>."
18544 msgstr ""
18545
18546 # type: textblock
18547 #. type: textblock
18548 #: ../src/guestfs-actions.pod:6632
18549 msgid "(Added in 1.0.58)"
18550 msgstr ""
18551
18552 # type: =head2
18553 #. type: =head2
18554 #: ../src/guestfs-actions.pod:6634
18555 msgid "guestfs_vfs_label"
18556 msgstr ""
18557
18558 # type: verbatim
18559 #. type: verbatim
18560 #: ../src/guestfs-actions.pod:6636
18561 #, no-wrap
18562 msgid ""
18563 " char *\n"
18564 " guestfs_vfs_label (guestfs_h *g,\n"
18565 "                    const char *device);\n"
18566 "\n"
18567 msgstr ""
18568
18569 # type: textblock
18570 #. type: textblock
18571 #: ../src/guestfs-actions.pod:6640 ../fish/guestfish-actions.pod:4435
18572 msgid "This returns the filesystem label of the filesystem on C<device>."
18573 msgstr ""
18574
18575 # type: textblock
18576 #. type: textblock
18577 #: ../src/guestfs-actions.pod:6643 ../fish/guestfish-actions.pod:4438
18578 msgid "If the filesystem is unlabeled, this returns the empty string."
18579 msgstr ""
18580
18581 # type: textblock
18582 #. type: textblock
18583 #: ../src/guestfs-actions.pod:6645
18584 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18585 msgstr ""
18586
18587 # type: textblock
18588 #. type: textblock
18589 #: ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6687
18590 msgid "(Added in 1.3.18)"
18591 msgstr ""
18592
18593 # type: =head2
18594 #. type: =head2
18595 #: ../src/guestfs-actions.pod:6652
18596 msgid "guestfs_vfs_type"
18597 msgstr ""
18598
18599 # type: verbatim
18600 #. type: verbatim
18601 #: ../src/guestfs-actions.pod:6654
18602 #, no-wrap
18603 msgid ""
18604 " char *\n"
18605 " guestfs_vfs_type (guestfs_h *g,\n"
18606 "                   const char *device);\n"
18607 "\n"
18608 msgstr ""
18609
18610 # type: textblock
18611 #. type: textblock
18612 #: ../src/guestfs-actions.pod:6658 ../fish/guestfish-actions.pod:4446
18613 msgid ""
18614 "This command gets the filesystem type corresponding to the filesystem on "
18615 "C<device>."
18616 msgstr ""
18617
18618 # type: textblock
18619 #. type: textblock
18620 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4449
18621 msgid ""
18622 "For most filesystems, the result is the name of the Linux VFS module which "
18623 "would be used to mount this filesystem if you mounted it without specifying "
18624 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18625 msgstr ""
18626
18627 # type: =head2
18628 #. type: =head2
18629 #: ../src/guestfs-actions.pod:6671
18630 msgid "guestfs_vfs_uuid"
18631 msgstr ""
18632
18633 # type: verbatim
18634 #. type: verbatim
18635 #: ../src/guestfs-actions.pod:6673
18636 #, no-wrap
18637 msgid ""
18638 " char *\n"
18639 " guestfs_vfs_uuid (guestfs_h *g,\n"
18640 "                   const char *device);\n"
18641 "\n"
18642 msgstr ""
18643
18644 # type: textblock
18645 #. type: textblock
18646 #: ../src/guestfs-actions.pod:6677 ../fish/guestfish-actions.pod:4458
18647 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18648 msgstr ""
18649
18650 # type: textblock
18651 #. type: textblock
18652 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4461
18653 msgid "If the filesystem does not have a UUID, this returns the empty string."
18654 msgstr ""
18655
18656 # type: textblock
18657 #. type: textblock
18658 #: ../src/guestfs-actions.pod:6682
18659 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18660 msgstr ""
18661
18662 # type: =head2
18663 #. type: =head2
18664 #: ../src/guestfs-actions.pod:6689
18665 msgid "guestfs_vg_activate"
18666 msgstr ""
18667
18668 # type: verbatim
18669 #. type: verbatim
18670 #: ../src/guestfs-actions.pod:6691
18671 #, no-wrap
18672 msgid ""
18673 " int\n"
18674 " guestfs_vg_activate (guestfs_h *g,\n"
18675 "                      int activate,\n"
18676 "                      char *const *volgroups);\n"
18677 "\n"
18678 msgstr ""
18679
18680 # type: textblock
18681 #. type: textblock
18682 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4469
18683 msgid ""
18684 "This command activates or (if C<activate> is false) deactivates all logical "
18685 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18686 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18687 "deactivated, then those devices disappear."
18688 msgstr ""
18689
18690 # type: textblock
18691 #. type: textblock
18692 #: ../src/guestfs-actions.pod:6702 ../fish/guestfish-actions.pod:4475
18693 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18694 msgstr ""
18695
18696 # type: textblock
18697 #. type: textblock
18698 #: ../src/guestfs-actions.pod:6704 ../fish/guestfish-actions.pod:4477
18699 msgid ""
18700 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18701 "activated or deactivated."
18702 msgstr ""
18703
18704 # type: =head2
18705 #. type: =head2
18706 #: ../src/guestfs-actions.pod:6711
18707 msgid "guestfs_vg_activate_all"
18708 msgstr ""
18709
18710 # type: verbatim
18711 #. type: verbatim
18712 #: ../src/guestfs-actions.pod:6713
18713 #, no-wrap
18714 msgid ""
18715 " int\n"
18716 " guestfs_vg_activate_all (guestfs_h *g,\n"
18717 "                          int activate);\n"
18718 "\n"
18719 msgstr ""
18720
18721 # type: textblock
18722 #. type: textblock
18723 #: ../src/guestfs-actions.pod:6717 ../fish/guestfish-actions.pod:4484
18724 msgid ""
18725 "This command activates or (if C<activate> is false) deactivates all logical "
18726 "volumes in all volume groups.  If activated, then they are made known to the "
18727 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18728 "those devices disappear."
18729 msgstr ""
18730
18731 # type: textblock
18732 #. type: textblock
18733 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4490
18734 msgid "This command is the same as running C<vgchange -a y|n>"
18735 msgstr ""
18736
18737 # type: =head2
18738 #. type: =head2
18739 #: ../src/guestfs-actions.pod:6729
18740 msgid "guestfs_vgcreate"
18741 msgstr ""
18742
18743 # type: verbatim
18744 #. type: verbatim
18745 #: ../src/guestfs-actions.pod:6731
18746 #, no-wrap
18747 msgid ""
18748 " int\n"
18749 " guestfs_vgcreate (guestfs_h *g,\n"
18750 "                   const char *volgroup,\n"
18751 "                   char *const *physvols);\n"
18752 "\n"
18753 msgstr ""
18754
18755 # type: textblock
18756 #. type: textblock
18757 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4496
18758 msgid ""
18759 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18760 "of physical volumes C<physvols>."
18761 msgstr ""
18762
18763 # type: =head2
18764 #. type: =head2
18765 #: ../src/guestfs-actions.pod:6743
18766 msgid "guestfs_vglvuuids"
18767 msgstr ""
18768
18769 # type: verbatim
18770 #. type: verbatim
18771 #: ../src/guestfs-actions.pod:6745
18772 #, no-wrap
18773 msgid ""
18774 " char **\n"
18775 " guestfs_vglvuuids (guestfs_h *g,\n"
18776 "                    const char *vgname);\n"
18777 "\n"
18778 msgstr ""
18779
18780 # type: textblock
18781 #. type: textblock
18782 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4503
18783 msgid ""
18784 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18785 "volumes created in this volume group."
18786 msgstr ""
18787
18788 # type: textblock
18789 #. type: textblock
18790 #: ../src/guestfs-actions.pod:6752
18791 msgid ""
18792 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18793 "associate logical volumes and volume groups."
18794 msgstr ""
18795
18796 # type: textblock
18797 #. type: textblock
18798 #: ../src/guestfs-actions.pod:6755
18799 msgid "See also C<guestfs_vgpvuuids>."
18800 msgstr ""
18801
18802 # type: =head2
18803 #. type: =head2
18804 #: ../src/guestfs-actions.pod:6763
18805 msgid "guestfs_vgpvuuids"
18806 msgstr ""
18807
18808 # type: verbatim
18809 #. type: verbatim
18810 #: ../src/guestfs-actions.pod:6765
18811 #, no-wrap
18812 msgid ""
18813 " char **\n"
18814 " guestfs_vgpvuuids (guestfs_h *g,\n"
18815 "                    const char *vgname);\n"
18816 "\n"
18817 msgstr ""
18818
18819 # type: textblock
18820 #. type: textblock
18821 #: ../src/guestfs-actions.pod:6769 ../fish/guestfish-actions.pod:4515
18822 msgid ""
18823 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18824 "volumes that this volume group resides on."
18825 msgstr ""
18826
18827 # type: textblock
18828 #. type: textblock
18829 #: ../src/guestfs-actions.pod:6772
18830 msgid ""
18831 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18832 "associate physical volumes and volume groups."
18833 msgstr ""
18834
18835 # type: textblock
18836 #. type: textblock
18837 #: ../src/guestfs-actions.pod:6775
18838 msgid "See also C<guestfs_vglvuuids>."
18839 msgstr ""
18840
18841 # type: =head2
18842 #. type: =head2
18843 #: ../src/guestfs-actions.pod:6783
18844 msgid "guestfs_vgremove"
18845 msgstr ""
18846
18847 # type: verbatim
18848 #. type: verbatim
18849 #: ../src/guestfs-actions.pod:6785
18850 #, no-wrap
18851 msgid ""
18852 " int\n"
18853 " guestfs_vgremove (guestfs_h *g,\n"
18854 "                   const char *vgname);\n"
18855 "\n"
18856 msgstr ""
18857
18858 # type: textblock
18859 #. type: textblock
18860 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4527
18861 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18862 msgstr ""
18863
18864 # type: textblock
18865 #. type: textblock
18866 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4529
18867 msgid ""
18868 "This also forcibly removes all logical volumes in the volume group (if any)."
18869 msgstr ""
18870
18871 # type: =head2
18872 #. type: =head2
18873 #: ../src/guestfs-actions.pod:6798
18874 msgid "guestfs_vgrename"
18875 msgstr ""
18876
18877 # type: verbatim
18878 #. type: verbatim
18879 #: ../src/guestfs-actions.pod:6800
18880 #, no-wrap
18881 msgid ""
18882 " int\n"
18883 " guestfs_vgrename (guestfs_h *g,\n"
18884 "                   const char *volgroup,\n"
18885 "                   const char *newvolgroup);\n"
18886 "\n"
18887 msgstr ""
18888
18889 # type: textblock
18890 #. type: textblock
18891 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4536
18892 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18893 msgstr ""
18894
18895 # type: =head2
18896 #. type: =head2
18897 #: ../src/guestfs-actions.pod:6811
18898 msgid "guestfs_vgs"
18899 msgstr ""
18900
18901 # type: verbatim
18902 #. type: verbatim
18903 #: ../src/guestfs-actions.pod:6813
18904 #, no-wrap
18905 msgid ""
18906 " char **\n"
18907 " guestfs_vgs (guestfs_h *g);\n"
18908 "\n"
18909 msgstr ""
18910
18911 # type: textblock
18912 #. type: textblock
18913 #: ../src/guestfs-actions.pod:6816 ../fish/guestfish-actions.pod:4542
18914 msgid ""
18915 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18916 "> command."
18917 msgstr ""
18918
18919 # type: textblock
18920 #. type: textblock
18921 #: ../src/guestfs-actions.pod:6819 ../fish/guestfish-actions.pod:4545
18922 msgid ""
18923 "This returns a list of just the volume group names that were detected (eg. "
18924 "C<VolGroup00>)."
18925 msgstr ""
18926
18927 # type: textblock
18928 #. type: textblock
18929 #: ../src/guestfs-actions.pod:6822
18930 msgid "See also C<guestfs_vgs_full>."
18931 msgstr ""
18932
18933 # type: =head2
18934 #. type: =head2
18935 #: ../src/guestfs-actions.pod:6830
18936 msgid "guestfs_vgs_full"
18937 msgstr ""
18938
18939 # type: verbatim
18940 #. type: verbatim
18941 #: ../src/guestfs-actions.pod:6832
18942 #, no-wrap
18943 msgid ""
18944 " struct guestfs_lvm_vg_list *\n"
18945 " guestfs_vgs_full (guestfs_h *g);\n"
18946 "\n"
18947 msgstr ""
18948
18949 # type: textblock
18950 #. type: textblock
18951 #: ../src/guestfs-actions.pod:6835 ../fish/guestfish-actions.pod:4554
18952 msgid ""
18953 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18954 "> command.  The \"full\" version includes all fields."
18955 msgstr ""
18956
18957 # type: textblock
18958 #. type: textblock
18959 #: ../src/guestfs-actions.pod:6838
18960 msgid ""
18961 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18962 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
18963 msgstr ""
18964
18965 # type: =head2
18966 #. type: =head2
18967 #: ../src/guestfs-actions.pod:6844
18968 msgid "guestfs_vgscan"
18969 msgstr ""
18970
18971 # type: verbatim
18972 #. type: verbatim
18973 #: ../src/guestfs-actions.pod:6846
18974 #, no-wrap
18975 msgid ""
18976 " int\n"
18977 " guestfs_vgscan (guestfs_h *g);\n"
18978 "\n"
18979 msgstr ""
18980
18981 # type: textblock
18982 #. type: textblock
18983 #: ../src/guestfs-actions.pod:6849 ../fish/guestfish-actions.pod:4561
18984 msgid ""
18985 "This rescans all block devices and rebuilds the list of LVM physical "
18986 "volumes, volume groups and logical volumes."
18987 msgstr ""
18988
18989 # type: =head2
18990 #. type: =head2
18991 #: ../src/guestfs-actions.pod:6856
18992 msgid "guestfs_vguuid"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #. type: verbatim
18997 #: ../src/guestfs-actions.pod:6858
18998 #, no-wrap
18999 msgid ""
19000 " char *\n"
19001 " guestfs_vguuid (guestfs_h *g,\n"
19002 "                 const char *vgname);\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: textblock
19007 #. type: textblock
19008 #: ../src/guestfs-actions.pod:6862 ../fish/guestfish-actions.pod:4568
19009 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19010 msgstr ""
19011
19012 # type: =head2
19013 #. type: =head2
19014 #: ../src/guestfs-actions.pod:6869
19015 msgid "guestfs_wait_ready"
19016 msgstr ""
19017
19018 # type: verbatim
19019 #. type: verbatim
19020 #: ../src/guestfs-actions.pod:6871
19021 #, no-wrap
19022 msgid ""
19023 " int\n"
19024 " guestfs_wait_ready (guestfs_h *g);\n"
19025 "\n"
19026 msgstr ""
19027
19028 # type: textblock
19029 #. type: textblock
19030 #: ../src/guestfs-actions.pod:6874
19031 msgid "This function is a no op."
19032 msgstr ""
19033
19034 # type: textblock
19035 #. type: textblock
19036 #: ../src/guestfs-actions.pod:6876
19037 msgid ""
19038 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19039 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19040 "is no longer necessary because C<guestfs_launch> now does the waiting."
19041 msgstr ""
19042
19043 # type: textblock
19044 #. type: textblock
19045 #: ../src/guestfs-actions.pod:6881
19046 msgid ""
19047 "If you see any calls to this function in code then you can just remove them, "
19048 "unless you want to retain compatibility with older versions of the API."
19049 msgstr ""
19050
19051 # type: =head2
19052 #. type: =head2
19053 #: ../src/guestfs-actions.pod:6889
19054 msgid "guestfs_wc_c"
19055 msgstr ""
19056
19057 # type: verbatim
19058 #. type: verbatim
19059 #: ../src/guestfs-actions.pod:6891
19060 #, no-wrap
19061 msgid ""
19062 " int\n"
19063 " guestfs_wc_c (guestfs_h *g,\n"
19064 "               const char *path);\n"
19065 "\n"
19066 msgstr ""
19067
19068 # type: textblock
19069 #. type: textblock
19070 #: ../src/guestfs-actions.pod:6895 ../fish/guestfish-actions.pod:4574
19071 msgid ""
19072 "This command counts the characters in a file, using the C<wc -c> external "
19073 "command."
19074 msgstr ""
19075
19076 # type: =head2
19077 #. type: =head2
19078 #: ../src/guestfs-actions.pod:6902
19079 msgid "guestfs_wc_l"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #. type: verbatim
19084 #: ../src/guestfs-actions.pod:6904
19085 #, no-wrap
19086 msgid ""
19087 " int\n"
19088 " guestfs_wc_l (guestfs_h *g,\n"
19089 "               const char *path);\n"
19090 "\n"
19091 msgstr ""
19092
19093 # type: textblock
19094 #. type: textblock
19095 #: ../src/guestfs-actions.pod:6908 ../fish/guestfish-actions.pod:4581
19096 msgid ""
19097 "This command counts the lines in a file, using the C<wc -l> external command."
19098 msgstr ""
19099
19100 # type: =head2
19101 #. type: =head2
19102 #: ../src/guestfs-actions.pod:6915
19103 msgid "guestfs_wc_w"
19104 msgstr ""
19105
19106 # type: verbatim
19107 #. type: verbatim
19108 #: ../src/guestfs-actions.pod:6917
19109 #, no-wrap
19110 msgid ""
19111 " int\n"
19112 " guestfs_wc_w (guestfs_h *g,\n"
19113 "               const char *path);\n"
19114 "\n"
19115 msgstr ""
19116
19117 # type: textblock
19118 #. type: textblock
19119 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4588
19120 msgid ""
19121 "This command counts the words in a file, using the C<wc -w> external command."
19122 msgstr ""
19123
19124 # type: =head2
19125 #. type: =head2
19126 #: ../src/guestfs-actions.pod:6928
19127 msgid "guestfs_write"
19128 msgstr ""
19129
19130 # type: verbatim
19131 #. type: verbatim
19132 #: ../src/guestfs-actions.pod:6930
19133 #, no-wrap
19134 msgid ""
19135 " int\n"
19136 " guestfs_write (guestfs_h *g,\n"
19137 "                const char *path,\n"
19138 "                const char *content,\n"
19139 "                size_t content_size);\n"
19140 "\n"
19141 msgstr ""
19142
19143 # type: textblock
19144 #. type: textblock
19145 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4595
19146 msgid ""
19147 "This call creates a file called C<path>.  The content of the file is the "
19148 "string C<content> (which can contain any 8 bit data)."
19149 msgstr ""
19150
19151 # type: =head2
19152 #. type: =head2
19153 #: ../src/guestfs-actions.pod:6946
19154 msgid "guestfs_write_file"
19155 msgstr ""
19156
19157 # type: verbatim
19158 #. type: verbatim
19159 #: ../src/guestfs-actions.pod:6948
19160 #, no-wrap
19161 msgid ""
19162 " int\n"
19163 " guestfs_write_file (guestfs_h *g,\n"
19164 "                     const char *path,\n"
19165 "                     const char *content,\n"
19166 "                     int size);\n"
19167 "\n"
19168 msgstr ""
19169
19170 # type: textblock
19171 #. type: textblock
19172 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4605
19173 msgid ""
19174 "This call creates a file called C<path>.  The contents of the file is the "
19175 "string C<content> (which can contain any 8 bit data), with length C<size>."
19176 msgstr ""
19177
19178 # type: textblock
19179 #. type: textblock
19180 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4609
19181 msgid ""
19182 "As a special case, if C<size> is C<0> then the length is calculated using "
19183 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19184 msgstr ""
19185
19186 # type: textblock
19187 #. type: textblock
19188 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4613
19189 msgid ""
19190 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19191 "I<not> work, even if the length is specified."
19192 msgstr ""
19193
19194 # type: textblock
19195 #. type: textblock
19196 #: ../src/guestfs-actions.pod:6970 ../fish/guestfish-actions.pod:4619
19197 msgid ""
19198 "This function is deprecated.  In new code, use the C<write> call instead."
19199 msgstr ""
19200
19201 # type: =head2
19202 #. type: =head2
19203 #: ../src/guestfs-actions.pod:6979
19204 msgid "guestfs_zegrep"
19205 msgstr ""
19206
19207 # type: verbatim
19208 #. type: verbatim
19209 #: ../src/guestfs-actions.pod:6981
19210 #, no-wrap
19211 msgid ""
19212 " char **\n"
19213 " guestfs_zegrep (guestfs_h *g,\n"
19214 "                 const char *regex,\n"
19215 "                 const char *path);\n"
19216 "\n"
19217 msgstr ""
19218
19219 # type: textblock
19220 #. type: textblock
19221 #: ../src/guestfs-actions.pod:6986 ../fish/guestfish-actions.pod:4630
19222 msgid ""
19223 "This calls the external C<zegrep> program and returns the matching lines."
19224 msgstr ""
19225
19226 # type: =head2
19227 #. type: =head2
19228 #: ../src/guestfs-actions.pod:6998
19229 msgid "guestfs_zegrepi"
19230 msgstr ""
19231
19232 # type: verbatim
19233 #. type: verbatim
19234 #: ../src/guestfs-actions.pod:7000
19235 #, no-wrap
19236 msgid ""
19237 " char **\n"
19238 " guestfs_zegrepi (guestfs_h *g,\n"
19239 "                  const char *regex,\n"
19240 "                  const char *path);\n"
19241 "\n"
19242 msgstr ""
19243
19244 # type: textblock
19245 #. type: textblock
19246 #: ../src/guestfs-actions.pod:7005 ../fish/guestfish-actions.pod:4640
19247 msgid ""
19248 "This calls the external C<zegrep -i> program and returns the matching lines."
19249 msgstr ""
19250
19251 # type: =head2
19252 #. type: =head2
19253 #: ../src/guestfs-actions.pod:7017
19254 msgid "guestfs_zero"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #. type: verbatim
19259 #: ../src/guestfs-actions.pod:7019
19260 #, no-wrap
19261 msgid ""
19262 " int\n"
19263 " guestfs_zero (guestfs_h *g,\n"
19264 "               const char *device);\n"
19265 "\n"
19266 msgstr ""
19267
19268 # type: textblock
19269 #. type: textblock
19270 #: ../src/guestfs-actions.pod:7023 ../fish/guestfish-actions.pod:4650
19271 msgid "This command writes zeroes over the first few blocks of C<device>."
19272 msgstr ""
19273
19274 # type: textblock
19275 #. type: textblock
19276 #: ../src/guestfs-actions.pod:7025 ../fish/guestfish-actions.pod:4652
19277 msgid ""
19278 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19279 "securely wipe the device).  It should be sufficient to remove any partition "
19280 "tables, filesystem superblocks and so on."
19281 msgstr ""
19282
19283 # type: textblock
19284 #. type: textblock
19285 #: ../src/guestfs-actions.pod:7029
19286 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
19287 msgstr ""
19288
19289 # type: =head2
19290 #. type: =head2
19291 #: ../src/guestfs-actions.pod:7040
19292 msgid "guestfs_zero_device"
19293 msgstr ""
19294
19295 # type: verbatim
19296 #. type: verbatim
19297 #: ../src/guestfs-actions.pod:7042
19298 #, no-wrap
19299 msgid ""
19300 " int\n"
19301 " guestfs_zero_device (guestfs_h *g,\n"
19302 "                      const char *device);\n"
19303 "\n"
19304 msgstr ""
19305
19306 # type: textblock
19307 #. type: textblock
19308 #: ../src/guestfs-actions.pod:7046
19309 msgid ""
19310 "This command writes zeroes over the entire C<device>.  Compare with "
19311 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19312 msgstr ""
19313
19314 # type: textblock
19315 #. type: textblock
19316 #: ../src/guestfs-actions.pod:7060
19317 msgid "(Added in 1.3.1)"
19318 msgstr ""
19319
19320 # type: =head2
19321 #. type: =head2
19322 #: ../src/guestfs-actions.pod:7062
19323 msgid "guestfs_zerofree"
19324 msgstr ""
19325
19326 # type: verbatim
19327 #. type: verbatim
19328 #: ../src/guestfs-actions.pod:7064
19329 #, no-wrap
19330 msgid ""
19331 " int\n"
19332 " guestfs_zerofree (guestfs_h *g,\n"
19333 "                   const char *device);\n"
19334 "\n"
19335 msgstr ""
19336
19337 # type: textblock
19338 #. type: textblock
19339 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4673
19340 msgid ""
19341 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19342 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19343 "possible to compress the filesystem more effectively."
19344 msgstr ""
19345
19346 # type: textblock
19347 #. type: textblock
19348 #: ../src/guestfs-actions.pod:7073 ../fish/guestfish-actions.pod:4678
19349 msgid "You should B<not> run this program if the filesystem is mounted."
19350 msgstr ""
19351
19352 # type: textblock
19353 #. type: textblock
19354 #: ../src/guestfs-actions.pod:7076 ../fish/guestfish-actions.pod:4681
19355 msgid ""
19356 "It is possible that using this program can damage the filesystem or data on "
19357 "the filesystem."
19358 msgstr ""
19359
19360 # type: =head2
19361 #. type: =head2
19362 #: ../src/guestfs-actions.pod:7083
19363 msgid "guestfs_zfgrep"
19364 msgstr ""
19365
19366 # type: verbatim
19367 #. type: verbatim
19368 #: ../src/guestfs-actions.pod:7085
19369 #, no-wrap
19370 msgid ""
19371 " char **\n"
19372 " guestfs_zfgrep (guestfs_h *g,\n"
19373 "                 const char *pattern,\n"
19374 "                 const char *path);\n"
19375 "\n"
19376 msgstr ""
19377
19378 # type: textblock
19379 #. type: textblock
19380 #: ../src/guestfs-actions.pod:7090 ../fish/guestfish-actions.pod:4688
19381 msgid ""
19382 "This calls the external C<zfgrep> program and returns the matching lines."
19383 msgstr ""
19384
19385 # type: =head2
19386 #. type: =head2
19387 #: ../src/guestfs-actions.pod:7102
19388 msgid "guestfs_zfgrepi"
19389 msgstr ""
19390
19391 # type: verbatim
19392 #. type: verbatim
19393 #: ../src/guestfs-actions.pod:7104
19394 #, no-wrap
19395 msgid ""
19396 " char **\n"
19397 " guestfs_zfgrepi (guestfs_h *g,\n"
19398 "                  const char *pattern,\n"
19399 "                  const char *path);\n"
19400 "\n"
19401 msgstr ""
19402
19403 # type: textblock
19404 #. type: textblock
19405 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4698
19406 msgid ""
19407 "This calls the external C<zfgrep -i> program and returns the matching lines."
19408 msgstr ""
19409
19410 # type: =head2
19411 #. type: =head2
19412 #: ../src/guestfs-actions.pod:7121
19413 msgid "guestfs_zfile"
19414 msgstr ""
19415
19416 # type: verbatim
19417 #. type: verbatim
19418 #: ../src/guestfs-actions.pod:7123
19419 #, no-wrap
19420 msgid ""
19421 " char *\n"
19422 " guestfs_zfile (guestfs_h *g,\n"
19423 "                const char *meth,\n"
19424 "                const char *path);\n"
19425 "\n"
19426 msgstr ""
19427
19428 # type: textblock
19429 #. type: textblock
19430 #: ../src/guestfs-actions.pod:7128 ../fish/guestfish-actions.pod:4708
19431 msgid ""
19432 "This command runs C<file> after first decompressing C<path> using C<method>."
19433 msgstr ""
19434
19435 # type: textblock
19436 #. type: textblock
19437 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4711
19438 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19439 msgstr ""
19440
19441 # type: textblock
19442 #. type: textblock
19443 #: ../src/guestfs-actions.pod:7133
19444 msgid ""
19445 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19446 "files."
19447 msgstr ""
19448
19449 # type: textblock
19450 #. type: textblock
19451 #: ../src/guestfs-actions.pod:7139 ../fish/guestfish-actions.pod:4716
19452 msgid ""
19453 "This function is deprecated.  In new code, use the C<file> call instead."
19454 msgstr ""
19455
19456 # type: =head2
19457 #. type: =head2
19458 #: ../src/guestfs-actions.pod:7148
19459 msgid "guestfs_zgrep"
19460 msgstr ""
19461
19462 # type: verbatim
19463 #. type: verbatim
19464 #: ../src/guestfs-actions.pod:7150
19465 #, no-wrap
19466 msgid ""
19467 " char **\n"
19468 " guestfs_zgrep (guestfs_h *g,\n"
19469 "                const char *regex,\n"
19470 "                const char *path);\n"
19471 "\n"
19472 msgstr ""
19473
19474 # type: textblock
19475 #. type: textblock
19476 #: ../src/guestfs-actions.pod:7155 ../fish/guestfish-actions.pod:4727
19477 msgid ""
19478 "This calls the external C<zgrep> program and returns the matching lines."
19479 msgstr ""
19480
19481 # type: =head2
19482 #. type: =head2
19483 #: ../src/guestfs-actions.pod:7167
19484 msgid "guestfs_zgrepi"
19485 msgstr ""
19486
19487 # type: verbatim
19488 #. type: verbatim
19489 #: ../src/guestfs-actions.pod:7169
19490 #, no-wrap
19491 msgid ""
19492 " char **\n"
19493 " guestfs_zgrepi (guestfs_h *g,\n"
19494 "                 const char *regex,\n"
19495 "                 const char *path);\n"
19496 "\n"
19497 msgstr ""
19498
19499 # type: textblock
19500 #. type: textblock
19501 #: ../src/guestfs-actions.pod:7174 ../fish/guestfish-actions.pod:4737
19502 msgid ""
19503 "This calls the external C<zgrep -i> program and returns the matching lines."
19504 msgstr ""
19505
19506 # type: =item
19507 #. type: =item
19508 #: ../src/guestfs-availability.pod:3
19509 msgid "B<augeas>"
19510 msgstr ""
19511
19512 # type: textblock
19513 #. type: textblock
19514 #: ../src/guestfs-availability.pod:5
19515 msgid ""
19516 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
19517 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
19518 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
19519 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
19520 "L</guestfs_aug_save> L</guestfs_aug_set>"
19521 msgstr ""
19522
19523 # type: =item
19524 #. type: =item
19525 #: ../src/guestfs-availability.pod:21
19526 msgid "B<inotify>"
19527 msgstr ""
19528
19529 # type: textblock
19530 #. type: textblock
19531 #: ../src/guestfs-availability.pod:23
19532 msgid ""
19533 "The following functions: L</guestfs_inotify_add_watch> L</"
19534 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
19535 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19536 msgstr ""
19537
19538 # type: =item
19539 #. type: =item
19540 #: ../src/guestfs-availability.pod:31
19541 msgid "B<linuxfsuuid>"
19542 msgstr ""
19543
19544 # type: textblock
19545 #. type: textblock
19546 #: ../src/guestfs-availability.pod:33
19547 msgid ""
19548 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
19549 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19550 msgstr ""
19551
19552 # type: =item
19553 #. type: =item
19554 #: ../src/guestfs-availability.pod:40
19555 msgid "B<linuxmodules>"
19556 msgstr ""
19557
19558 # type: textblock
19559 #. type: textblock
19560 #: ../src/guestfs-availability.pod:42
19561 msgid "The following functions: L</guestfs_modprobe>"
19562 msgstr ""
19563
19564 # type: =item
19565 #. type: =item
19566 #: ../src/guestfs-availability.pod:45
19567 msgid "B<linuxxattrs>"
19568 msgstr ""
19569
19570 # type: textblock
19571 #. type: textblock
19572 #: ../src/guestfs-availability.pod:47
19573 msgid ""
19574 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
19575 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
19576 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
19577 "guestfs_setxattr>"
19578 msgstr ""
19579
19580 # type: =item
19581 #. type: =item
19582 #: ../src/guestfs-availability.pod:58
19583 msgid "B<luks>"
19584 msgstr ""
19585
19586 # type: textblock
19587 #. type: textblock
19588 #: ../src/guestfs-availability.pod:60
19589 msgid ""
19590 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
19591 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
19592 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
19593 msgstr ""
19594
19595 # type: =item
19596 #. type: =item
19597 #: ../src/guestfs-availability.pod:69
19598 msgid "B<lvm2>"
19599 msgstr ""
19600
19601 # type: textblock
19602 #. type: textblock
19603 #: ../src/guestfs-availability.pod:71
19604 msgid ""
19605 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
19606 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
19607 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
19608 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
19609 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
19610 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
19611 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
19612 msgstr ""
19613
19614 # type: =item
19615 #. type: =item
19616 #: ../src/guestfs-availability.pod:94
19617 msgid "B<mknod>"
19618 msgstr ""
19619
19620 # type: textblock
19621 #. type: textblock
19622 #: ../src/guestfs-availability.pod:96
19623 msgid ""
19624 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19625 "guestfs_mknod_b> L</guestfs_mknod_c>"
19626 msgstr ""
19627
19628 # type: =item
19629 #. type: =item
19630 #: ../src/guestfs-availability.pod:102
19631 msgid "B<ntfs3g>"
19632 msgstr ""
19633
19634 # type: textblock
19635 #. type: textblock
19636 #: ../src/guestfs-availability.pod:104
19637 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19638 msgstr ""
19639
19640 # type: =item
19641 #. type: =item
19642 #: ../src/guestfs-availability.pod:107
19643 msgid "B<ntfsprogs>"
19644 msgstr ""
19645
19646 # type: textblock
19647 #. type: textblock
19648 #: ../src/guestfs-availability.pod:109
19649 msgid ""
19650 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19651 msgstr ""
19652
19653 # type: =item
19654 #. type: =item
19655 #: ../src/guestfs-availability.pod:113
19656 msgid "B<realpath>"
19657 msgstr ""
19658
19659 # type: textblock
19660 #. type: textblock
19661 #: ../src/guestfs-availability.pod:115
19662 msgid "The following functions: L</guestfs_realpath>"
19663 msgstr ""
19664
19665 # type: =item
19666 #. type: =item
19667 #: ../src/guestfs-availability.pod:118
19668 msgid "B<scrub>"
19669 msgstr ""
19670
19671 # type: textblock
19672 #. type: textblock
19673 #: ../src/guestfs-availability.pod:120
19674 msgid ""
19675 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19676 "guestfs_scrub_freespace>"
19677 msgstr ""
19678
19679 # type: =item
19680 #. type: =item
19681 #: ../src/guestfs-availability.pod:125
19682 msgid "B<selinux>"
19683 msgstr ""
19684
19685 # type: textblock
19686 #. type: textblock
19687 #: ../src/guestfs-availability.pod:127
19688 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19689 msgstr ""
19690
19691 # type: =item
19692 #. type: =item
19693 #: ../src/guestfs-availability.pod:131
19694 msgid "B<xz>"
19695 msgstr ""
19696
19697 # type: textblock
19698 #. type: textblock
19699 #: ../src/guestfs-availability.pod:133
19700 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19701 msgstr ""
19702
19703 # type: =item
19704 #. type: =item
19705 #: ../src/guestfs-availability.pod:137
19706 msgid "B<zerofree>"
19707 msgstr ""
19708
19709 # type: textblock
19710 #. type: textblock
19711 #: ../src/guestfs-availability.pod:139
19712 msgid "The following functions: L</guestfs_zerofree>"
19713 msgstr ""
19714
19715 # type: =head2
19716 #. type: =head2
19717 #: ../src/guestfs-structs.pod:1
19718 msgid "guestfs_int_bool"
19719 msgstr ""
19720
19721 # type: verbatim
19722 #. type: verbatim
19723 #: ../src/guestfs-structs.pod:3
19724 #, no-wrap
19725 msgid ""
19726 " struct guestfs_int_bool {\n"
19727 "   int32_t i;\n"
19728 "   int32_t b;\n"
19729 " };\n"
19730 " \n"
19731 msgstr ""
19732
19733 # type: verbatim
19734 #. type: verbatim
19735 #: ../src/guestfs-structs.pod:8
19736 #, no-wrap
19737 msgid ""
19738 " struct guestfs_int_bool_list {\n"
19739 "   uint32_t len; /* Number of elements in list. */\n"
19740 "   struct guestfs_int_bool *val; /* Elements. */\n"
19741 " };\n"
19742 " \n"
19743 msgstr ""
19744
19745 # type: verbatim
19746 #. type: verbatim
19747 #: ../src/guestfs-structs.pod:13
19748 #, no-wrap
19749 msgid ""
19750 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19751 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19752 "\n"
19753 msgstr ""
19754
19755 # type: =head2
19756 #. type: =head2
19757 #: ../src/guestfs-structs.pod:16
19758 msgid "guestfs_lvm_pv"
19759 msgstr ""
19760
19761 # type: verbatim
19762 #. type: verbatim
19763 #: ../src/guestfs-structs.pod:18
19764 #, no-wrap
19765 msgid ""
19766 " struct guestfs_lvm_pv {\n"
19767 "   char *pv_name;\n"
19768 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19769 "   char pv_uuid[32];\n"
19770 "   char *pv_fmt;\n"
19771 "   uint64_t pv_size;\n"
19772 "   uint64_t dev_size;\n"
19773 "   uint64_t pv_free;\n"
19774 "   uint64_t pv_used;\n"
19775 "   char *pv_attr;\n"
19776 "   int64_t pv_pe_count;\n"
19777 "   int64_t pv_pe_alloc_count;\n"
19778 "   char *pv_tags;\n"
19779 "   uint64_t pe_start;\n"
19780 "   int64_t pv_mda_count;\n"
19781 "   uint64_t pv_mda_free;\n"
19782 " };\n"
19783 " \n"
19784 msgstr ""
19785
19786 # type: verbatim
19787 #. type: verbatim
19788 #: ../src/guestfs-structs.pod:36
19789 #, no-wrap
19790 msgid ""
19791 " struct guestfs_lvm_pv_list {\n"
19792 "   uint32_t len; /* Number of elements in list. */\n"
19793 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19794 " };\n"
19795 " \n"
19796 msgstr ""
19797
19798 # type: verbatim
19799 #. type: verbatim
19800 #: ../src/guestfs-structs.pod:41
19801 #, no-wrap
19802 msgid ""
19803 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
19804 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
19805 "\n"
19806 msgstr ""
19807
19808 # type: =head2
19809 #. type: =head2
19810 #: ../src/guestfs-structs.pod:44
19811 msgid "guestfs_lvm_vg"
19812 msgstr ""
19813
19814 # type: verbatim
19815 #. type: verbatim
19816 #: ../src/guestfs-structs.pod:46
19817 #, no-wrap
19818 msgid ""
19819 " struct guestfs_lvm_vg {\n"
19820 "   char *vg_name;\n"
19821 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19822 "   char vg_uuid[32];\n"
19823 "   char *vg_fmt;\n"
19824 "   char *vg_attr;\n"
19825 "   uint64_t vg_size;\n"
19826 "   uint64_t vg_free;\n"
19827 "   char *vg_sysid;\n"
19828 "   uint64_t vg_extent_size;\n"
19829 "   int64_t vg_extent_count;\n"
19830 "   int64_t vg_free_count;\n"
19831 "   int64_t max_lv;\n"
19832 "   int64_t max_pv;\n"
19833 "   int64_t pv_count;\n"
19834 "   int64_t lv_count;\n"
19835 "   int64_t snap_count;\n"
19836 "   int64_t vg_seqno;\n"
19837 "   char *vg_tags;\n"
19838 "   int64_t vg_mda_count;\n"
19839 "   uint64_t vg_mda_free;\n"
19840 " };\n"
19841 " \n"
19842 msgstr ""
19843
19844 # type: verbatim
19845 #. type: verbatim
19846 #: ../src/guestfs-structs.pod:69
19847 #, no-wrap
19848 msgid ""
19849 " struct guestfs_lvm_vg_list {\n"
19850 "   uint32_t len; /* Number of elements in list. */\n"
19851 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
19852 " };\n"
19853 " \n"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #. type: verbatim
19858 #: ../src/guestfs-structs.pod:74
19859 #, no-wrap
19860 msgid ""
19861 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
19862 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
19863 "\n"
19864 msgstr ""
19865
19866 # type: =head2
19867 #. type: =head2
19868 #: ../src/guestfs-structs.pod:77
19869 msgid "guestfs_lvm_lv"
19870 msgstr ""
19871
19872 # type: verbatim
19873 #. type: verbatim
19874 #: ../src/guestfs-structs.pod:79
19875 #, no-wrap
19876 msgid ""
19877 " struct guestfs_lvm_lv {\n"
19878 "   char *lv_name;\n"
19879 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19880 "   char lv_uuid[32];\n"
19881 "   char *lv_attr;\n"
19882 "   int64_t lv_major;\n"
19883 "   int64_t lv_minor;\n"
19884 "   int64_t lv_kernel_major;\n"
19885 "   int64_t lv_kernel_minor;\n"
19886 "   uint64_t lv_size;\n"
19887 "   int64_t seg_count;\n"
19888 "   char *origin;\n"
19889 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19890 "   float snap_percent;\n"
19891 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19892 "   float copy_percent;\n"
19893 "   char *move_pv;\n"
19894 "   char *lv_tags;\n"
19895 "   char *mirror_log;\n"
19896 "   char *modules;\n"
19897 " };\n"
19898 " \n"
19899 msgstr ""
19900
19901 # type: verbatim
19902 #. type: verbatim
19903 #: ../src/guestfs-structs.pod:101
19904 #, no-wrap
19905 msgid ""
19906 " struct guestfs_lvm_lv_list {\n"
19907 "   uint32_t len; /* Number of elements in list. */\n"
19908 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
19909 " };\n"
19910 " \n"
19911 msgstr ""
19912
19913 # type: verbatim
19914 #. type: verbatim
19915 #: ../src/guestfs-structs.pod:106
19916 #, no-wrap
19917 msgid ""
19918 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
19919 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
19920 "\n"
19921 msgstr ""
19922
19923 # type: verbatim
19924 #. type: verbatim
19925 #: ../src/guestfs-structs.pod:111
19926 #, no-wrap
19927 msgid ""
19928 " struct guestfs_stat {\n"
19929 "   int64_t dev;\n"
19930 "   int64_t ino;\n"
19931 "   int64_t mode;\n"
19932 "   int64_t nlink;\n"
19933 "   int64_t uid;\n"
19934 "   int64_t gid;\n"
19935 "   int64_t rdev;\n"
19936 "   int64_t size;\n"
19937 "   int64_t blksize;\n"
19938 "   int64_t blocks;\n"
19939 "   int64_t atime;\n"
19940 "   int64_t mtime;\n"
19941 "   int64_t ctime;\n"
19942 " };\n"
19943 " \n"
19944 msgstr ""
19945
19946 # type: verbatim
19947 #. type: verbatim
19948 #: ../src/guestfs-structs.pod:127
19949 #, no-wrap
19950 msgid ""
19951 " struct guestfs_stat_list {\n"
19952 "   uint32_t len; /* Number of elements in list. */\n"
19953 "   struct guestfs_stat *val; /* Elements. */\n"
19954 " };\n"
19955 " \n"
19956 msgstr ""
19957
19958 # type: verbatim
19959 #. type: verbatim
19960 #: ../src/guestfs-structs.pod:132
19961 #, no-wrap
19962 msgid ""
19963 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19964 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19965 "\n"
19966 msgstr ""
19967
19968 # type: verbatim
19969 #. type: verbatim
19970 #: ../src/guestfs-structs.pod:137
19971 #, no-wrap
19972 msgid ""
19973 " struct guestfs_statvfs {\n"
19974 "   int64_t bsize;\n"
19975 "   int64_t frsize;\n"
19976 "   int64_t blocks;\n"
19977 "   int64_t bfree;\n"
19978 "   int64_t bavail;\n"
19979 "   int64_t files;\n"
19980 "   int64_t ffree;\n"
19981 "   int64_t favail;\n"
19982 "   int64_t fsid;\n"
19983 "   int64_t flag;\n"
19984 "   int64_t namemax;\n"
19985 " };\n"
19986 " \n"
19987 msgstr ""
19988
19989 # type: verbatim
19990 #. type: verbatim
19991 #: ../src/guestfs-structs.pod:151
19992 #, no-wrap
19993 msgid ""
19994 " struct guestfs_statvfs_list {\n"
19995 "   uint32_t len; /* Number of elements in list. */\n"
19996 "   struct guestfs_statvfs *val; /* Elements. */\n"
19997 " };\n"
19998 " \n"
19999 msgstr ""
20000
20001 # type: verbatim
20002 #. type: verbatim
20003 #: ../src/guestfs-structs.pod:156
20004 #, no-wrap
20005 msgid ""
20006 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20007 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20008 "\n"
20009 msgstr ""
20010
20011 # type: =head2
20012 #. type: =head2
20013 #: ../src/guestfs-structs.pod:159
20014 msgid "guestfs_dirent"
20015 msgstr ""
20016
20017 # type: verbatim
20018 #. type: verbatim
20019 #: ../src/guestfs-structs.pod:161
20020 #, no-wrap
20021 msgid ""
20022 " struct guestfs_dirent {\n"
20023 "   int64_t ino;\n"
20024 "   char ftyp;\n"
20025 "   char *name;\n"
20026 " };\n"
20027 " \n"
20028 msgstr ""
20029
20030 # type: verbatim
20031 #. type: verbatim
20032 #: ../src/guestfs-structs.pod:167
20033 #, no-wrap
20034 msgid ""
20035 " struct guestfs_dirent_list {\n"
20036 "   uint32_t len; /* Number of elements in list. */\n"
20037 "   struct guestfs_dirent *val; /* Elements. */\n"
20038 " };\n"
20039 " \n"
20040 msgstr ""
20041
20042 # type: verbatim
20043 #. type: verbatim
20044 #: ../src/guestfs-structs.pod:172
20045 #, no-wrap
20046 msgid ""
20047 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20048 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20049 "\n"
20050 msgstr ""
20051
20052 # type: verbatim
20053 #. type: verbatim
20054 #: ../src/guestfs-structs.pod:177
20055 #, no-wrap
20056 msgid ""
20057 " struct guestfs_version {\n"
20058 "   int64_t major;\n"
20059 "   int64_t minor;\n"
20060 "   int64_t release;\n"
20061 "   char *extra;\n"
20062 " };\n"
20063 " \n"
20064 msgstr ""
20065
20066 # type: verbatim
20067 #. type: verbatim
20068 #: ../src/guestfs-structs.pod:184
20069 #, no-wrap
20070 msgid ""
20071 " struct guestfs_version_list {\n"
20072 "   uint32_t len; /* Number of elements in list. */\n"
20073 "   struct guestfs_version *val; /* Elements. */\n"
20074 " };\n"
20075 " \n"
20076 msgstr ""
20077
20078 # type: verbatim
20079 #. type: verbatim
20080 #: ../src/guestfs-structs.pod:189
20081 #, no-wrap
20082 msgid ""
20083 " void guestfs_free_version (struct guestfs_free_version *);\n"
20084 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20085 "\n"
20086 msgstr ""
20087
20088 # type: =head2
20089 #. type: =head2
20090 #: ../src/guestfs-structs.pod:192
20091 msgid "guestfs_xattr"
20092 msgstr ""
20093
20094 # type: verbatim
20095 #. type: verbatim
20096 #: ../src/guestfs-structs.pod:194
20097 #, no-wrap
20098 msgid ""
20099 " struct guestfs_xattr {\n"
20100 "   char *attrname;\n"
20101 "   /* The next two fields describe a byte array. */\n"
20102 "   uint32_t attrval_len;\n"
20103 "   char *attrval;\n"
20104 " };\n"
20105 " \n"
20106 msgstr ""
20107
20108 # type: verbatim
20109 #. type: verbatim
20110 #: ../src/guestfs-structs.pod:201
20111 #, no-wrap
20112 msgid ""
20113 " struct guestfs_xattr_list {\n"
20114 "   uint32_t len; /* Number of elements in list. */\n"
20115 "   struct guestfs_xattr *val; /* Elements. */\n"
20116 " };\n"
20117 " \n"
20118 msgstr ""
20119
20120 # type: verbatim
20121 #. type: verbatim
20122 #: ../src/guestfs-structs.pod:206
20123 #, no-wrap
20124 msgid ""
20125 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20126 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20127 "\n"
20128 msgstr ""
20129
20130 # type: =head2
20131 #. type: =head2
20132 #: ../src/guestfs-structs.pod:209
20133 msgid "guestfs_inotify_event"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #. type: verbatim
20138 #: ../src/guestfs-structs.pod:211
20139 #, no-wrap
20140 msgid ""
20141 " struct guestfs_inotify_event {\n"
20142 "   int64_t in_wd;\n"
20143 "   uint32_t in_mask;\n"
20144 "   uint32_t in_cookie;\n"
20145 "   char *in_name;\n"
20146 " };\n"
20147 " \n"
20148 msgstr ""
20149
20150 # type: verbatim
20151 #. type: verbatim
20152 #: ../src/guestfs-structs.pod:218
20153 #, no-wrap
20154 msgid ""
20155 " struct guestfs_inotify_event_list {\n"
20156 "   uint32_t len; /* Number of elements in list. */\n"
20157 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20158 " };\n"
20159 " \n"
20160 msgstr ""
20161
20162 # type: verbatim
20163 #. type: verbatim
20164 #: ../src/guestfs-structs.pod:223
20165 #, no-wrap
20166 msgid ""
20167 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20168 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20169 "\n"
20170 msgstr ""
20171
20172 # type: =head2
20173 #. type: =head2
20174 #: ../src/guestfs-structs.pod:226
20175 msgid "guestfs_partition"
20176 msgstr ""
20177
20178 # type: verbatim
20179 #. type: verbatim
20180 #: ../src/guestfs-structs.pod:228
20181 #, no-wrap
20182 msgid ""
20183 " struct guestfs_partition {\n"
20184 "   int32_t part_num;\n"
20185 "   uint64_t part_start;\n"
20186 "   uint64_t part_end;\n"
20187 "   uint64_t part_size;\n"
20188 " };\n"
20189 " \n"
20190 msgstr ""
20191
20192 # type: verbatim
20193 #. type: verbatim
20194 #: ../src/guestfs-structs.pod:235
20195 #, no-wrap
20196 msgid ""
20197 " struct guestfs_partition_list {\n"
20198 "   uint32_t len; /* Number of elements in list. */\n"
20199 "   struct guestfs_partition *val; /* Elements. */\n"
20200 " };\n"
20201 " \n"
20202 msgstr ""
20203
20204 # type: verbatim
20205 #. type: verbatim
20206 #: ../src/guestfs-structs.pod:240
20207 #, no-wrap
20208 msgid ""
20209 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20210 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20211 "\n"
20212 msgstr ""
20213
20214 # type: =head2
20215 #. type: =head2
20216 #: ../src/guestfs-structs.pod:243
20217 msgid "guestfs_application"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #. type: verbatim
20222 #: ../src/guestfs-structs.pod:245
20223 #, no-wrap
20224 msgid ""
20225 " struct guestfs_application {\n"
20226 "   char *app_name;\n"
20227 "   char *app_display_name;\n"
20228 "   int32_t app_epoch;\n"
20229 "   char *app_version;\n"
20230 "   char *app_release;\n"
20231 "   char *app_install_path;\n"
20232 "   char *app_trans_path;\n"
20233 "   char *app_publisher;\n"
20234 "   char *app_url;\n"
20235 "   char *app_source_package;\n"
20236 "   char *app_summary;\n"
20237 "   char *app_description;\n"
20238 " };\n"
20239 " \n"
20240 msgstr ""
20241
20242 # type: verbatim
20243 #. type: verbatim
20244 #: ../src/guestfs-structs.pod:260
20245 #, no-wrap
20246 msgid ""
20247 " struct guestfs_application_list {\n"
20248 "   uint32_t len; /* Number of elements in list. */\n"
20249 "   struct guestfs_application *val; /* Elements. */\n"
20250 " };\n"
20251 " \n"
20252 msgstr ""
20253
20254 # type: verbatim
20255 #. type: verbatim
20256 #: ../src/guestfs-structs.pod:265
20257 #, no-wrap
20258 msgid ""
20259 " void guestfs_free_application (struct guestfs_free_application *);\n"
20260 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: textblock
20265 #. type: textblock
20266 #: ../fish/guestfish.pod:5
20267 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20268 msgstr ""
20269
20270 # type: verbatim
20271 #. type: verbatim
20272 #: ../fish/guestfish.pod:9
20273 #, no-wrap
20274 msgid ""
20275 " guestfish [--options] [commands]\n"
20276 "\n"
20277 msgstr ""
20278
20279 # type: verbatim
20280 #. type: verbatim
20281 #: ../fish/guestfish.pod:11
20282 #, no-wrap
20283 msgid ""
20284 " guestfish\n"
20285 "\n"
20286 msgstr ""
20287
20288 # type: verbatim
20289 #. type: verbatim
20290 #: ../fish/guestfish.pod:13
20291 #, no-wrap
20292 msgid ""
20293 " guestfish [--ro|--rw] -a disk.img\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: verbatim
20298 #. type: verbatim
20299 #: ../fish/guestfish.pod:15
20300 #, no-wrap
20301 msgid ""
20302 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20303 "\n"
20304 msgstr ""
20305
20306 # type: verbatim
20307 #. type: verbatim
20308 #: ../fish/guestfish.pod:17
20309 #, no-wrap
20310 msgid ""
20311 " guestfish -d libvirt-domain\n"
20312 "\n"
20313 msgstr ""
20314
20315 # type: verbatim
20316 #. type: verbatim
20317 #: ../fish/guestfish.pod:19
20318 #, no-wrap
20319 msgid ""
20320 " guestfish [--ro|--rw] -a disk.img -i\n"
20321 "\n"
20322 msgstr ""
20323
20324 # type: verbatim
20325 #. type: verbatim
20326 #: ../fish/guestfish.pod:21
20327 #, no-wrap
20328 msgid ""
20329 " guestfish -d libvirt-domain -i\n"
20330 "\n"
20331 msgstr ""
20332
20333 # type: =head1
20334 #. type: =head1
20335 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
20336 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20337 msgid "WARNING"
20338 msgstr ""
20339
20340 # type: textblock
20341 #. type: textblock
20342 #: ../fish/guestfish.pod:25
20343 msgid ""
20344 "Using guestfish in read/write mode on live virtual machines can be "
20345 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20346 "option to use guestfish safely if the disk image or virtual machine might be "
20347 "live."
20348 msgstr ""
20349
20350 # type: textblock
20351 #. type: textblock
20352 #: ../fish/guestfish.pod:32
20353 msgid ""
20354 "Guestfish is a shell and command-line tool for examining and modifying "
20355 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20356 "functionality of the guestfs API, see L<guestfs(3)>."
20357 msgstr ""
20358
20359 # type: textblock
20360 #. type: textblock
20361 #: ../fish/guestfish.pod:36
20362 msgid ""
20363 "Guestfish gives you structured access to the libguestfs API, from shell "
20364 "scripts or the command line or interactively.  If you want to rescue a "
20365 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20366 "command."
20367 msgstr ""
20368
20369 # type: =head1
20370 #. type: =head1
20371 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
20372 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
20373 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
20374 msgid "EXAMPLES"
20375 msgstr ""
20376
20377 # type: =head2
20378 #. type: =head2
20379 #: ../fish/guestfish.pod:43
20380 msgid "As an interactive shell"
20381 msgstr ""
20382
20383 # type: verbatim
20384 #. type: verbatim
20385 #: ../fish/guestfish.pod:45
20386 #, no-wrap
20387 msgid ""
20388 " $ guestfish\n"
20389 " \n"
20390 msgstr ""
20391
20392 # type: verbatim
20393 #. type: verbatim
20394 #: ../fish/guestfish.pod:47
20395 #, no-wrap
20396 msgid ""
20397 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20398 " editing virtual machine filesystems.\n"
20399 " \n"
20400 msgstr ""
20401
20402 # type: verbatim
20403 #. type: verbatim
20404 #: ../fish/guestfish.pod:50
20405 #, no-wrap
20406 msgid ""
20407 " Type: 'help' for a list of commands\n"
20408 "       'man' to read the manual\n"
20409 "       'quit' to quit the shell\n"
20410 " \n"
20411 msgstr ""
20412
20413 # type: verbatim
20414 #. type: verbatim
20415 #: ../fish/guestfish.pod:54
20416 #, no-wrap
20417 msgid ""
20418 " ><fs> add-ro disk.img\n"
20419 " ><fs> run\n"
20420 " ><fs> list-filesystems\n"
20421 " /dev/sda1: ext4\n"
20422 " /dev/vg_guest/lv_root: ext4\n"
20423 " /dev/vg_guest/lv_swap: swap\n"
20424 " ><fs> mount /dev/vg_guest/lv_root /\n"
20425 " ><fs> cat /etc/fstab\n"
20426 " # /etc/fstab\n"
20427 " # Created by anaconda\n"
20428 " [...]\n"
20429 " ><fs> exit\n"
20430 "\n"
20431 msgstr ""
20432
20433 # type: =head2
20434 #. type: =head2
20435 #: ../fish/guestfish.pod:67
20436 msgid "From shell scripts"
20437 msgstr ""
20438
20439 # type: textblock
20440 #. type: textblock
20441 #: ../fish/guestfish.pod:69
20442 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20443 msgstr ""
20444
20445 # type: verbatim
20446 #. type: verbatim
20447 #: ../fish/guestfish.pod:71
20448 #, no-wrap
20449 msgid ""
20450 " guestfish <<_EOF_\n"
20451 " add disk.img\n"
20452 " run\n"
20453 " mount /dev/vg_guest/lv_root /\n"
20454 " write /etc/motd \"Welcome, new users\"\n"
20455 " _EOF_\n"
20456 "\n"
20457 msgstr ""
20458
20459 # type: textblock
20460 #. type: textblock
20461 #: ../fish/guestfish.pod:78
20462 msgid "List the LVM logical volumes in a disk image:"
20463 msgstr ""
20464
20465 # type: verbatim
20466 #. type: verbatim
20467 #: ../fish/guestfish.pod:80
20468 #, no-wrap
20469 msgid ""
20470 " guestfish -a disk.img --ro <<_EOF_\n"
20471 " run\n"
20472 " lvs\n"
20473 " _EOF_\n"
20474 "\n"
20475 msgstr ""
20476
20477 # type: textblock
20478 #. type: textblock
20479 #: ../fish/guestfish.pod:85
20480 msgid "List all the filesystems in a disk image:"
20481 msgstr ""
20482
20483 # type: verbatim
20484 #. type: verbatim
20485 #: ../fish/guestfish.pod:87
20486 #, no-wrap
20487 msgid ""
20488 " guestfish -a disk.img --ro <<_EOF_\n"
20489 " run\n"
20490 " list-filesystems\n"
20491 " _EOF_\n"
20492 "\n"
20493 msgstr ""
20494
20495 # type: =head2
20496 #. type: =head2
20497 #: ../fish/guestfish.pod:92
20498 msgid "On one command line"
20499 msgstr ""
20500
20501 # type: textblock
20502 #. type: textblock
20503 #: ../fish/guestfish.pod:94
20504 msgid "Update C</etc/resolv.conf> in a guest:"
20505 msgstr ""
20506
20507 # type: verbatim
20508 #. type: verbatim
20509 #: ../fish/guestfish.pod:96
20510 #, no-wrap
20511 msgid ""
20512 " guestfish \\\n"
20513 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20514 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20515 "\n"
20516 msgstr ""
20517
20518 # type: textblock
20519 #. type: textblock
20520 #: ../fish/guestfish.pod:100
20521 msgid "Edit C</boot/grub/grub.conf> interactively:"
20522 msgstr ""
20523
20524 # type: verbatim
20525 #. type: verbatim
20526 #: ../fish/guestfish.pod:102
20527 #, no-wrap
20528 msgid ""
20529 " guestfish --rw --add disk.img \\\n"
20530 "   --mount /dev/vg_guest/lv_root \\\n"
20531 "   --mount /dev/sda1:/boot \\\n"
20532 "   edit /boot/grub/grub.conf\n"
20533 "\n"
20534 msgstr ""
20535
20536 # type: =head2
20537 #. type: =head2
20538 #: ../fish/guestfish.pod:107
20539 msgid "Mount disks automatically"
20540 msgstr ""
20541
20542 # type: textblock
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:109
20545 msgid ""
20546 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20547 msgstr ""
20548
20549 # type: verbatim
20550 #. type: verbatim
20551 #: ../fish/guestfish.pod:112
20552 #, no-wrap
20553 msgid ""
20554 " guestfish --ro -a disk.img -i cat /etc/group\n"
20555 "\n"
20556 msgstr ""
20557
20558 # type: verbatim
20559 #. type: verbatim
20560 #: ../fish/guestfish.pod:114
20561 #, no-wrap
20562 msgid ""
20563 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20564 "\n"
20565 msgstr ""
20566
20567 # type: textblock
20568 #. type: textblock
20569 #: ../fish/guestfish.pod:116
20570 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #. type: verbatim
20575 #: ../fish/guestfish.pod:118
20576 #, no-wrap
20577 msgid ""
20578 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20579 "\n"
20580 msgstr ""
20581
20582 # type: =head2
20583 #. type: =head2
20584 #: ../fish/guestfish.pod:120
20585 msgid "As a script interpreter"
20586 msgstr ""
20587
20588 # type: textblock
20589 #. type: textblock
20590 #: ../fish/guestfish.pod:122
20591 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20592 msgstr ""
20593
20594 # type: verbatim
20595 #. type: verbatim
20596 #: ../fish/guestfish.pod:124
20597 #, no-wrap
20598 msgid ""
20599 " #!/usr/bin/guestfish -f\n"
20600 " sparse test1.img 100M\n"
20601 " run\n"
20602 " part-disk /dev/sda mbr\n"
20603 " mkfs ext2 /dev/sda1\n"
20604 "\n"
20605 msgstr ""
20606
20607 # type: =head2
20608 #. type: =head2
20609 #: ../fish/guestfish.pod:130
20610 msgid "Start with a prepared disk"
20611 msgstr ""
20612
20613 # type: textblock
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:132
20616 msgid ""
20617 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20618 "single ext2-formatted partition:"
20619 msgstr ""
20620
20621 # type: verbatim
20622 #. type: verbatim
20623 #: ../fish/guestfish.pod:135
20624 #, no-wrap
20625 msgid ""
20626 " guestfish -N fs\n"
20627 "\n"
20628 msgstr ""
20629
20630 # type: textblock
20631 #. type: textblock
20632 #: ../fish/guestfish.pod:137
20633 msgid "To list what is available do:"
20634 msgstr ""
20635
20636 # type: verbatim
20637 #. type: verbatim
20638 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
20639 #, no-wrap
20640 msgid ""
20641 " guestfish -N help | less\n"
20642 "\n"
20643 msgstr ""
20644
20645 # type: =head2
20646 #. type: =head2
20647 #: ../fish/guestfish.pod:141
20648 msgid "Remote control"
20649 msgstr ""
20650
20651 # type: verbatim
20652 #. type: verbatim
20653 #: ../fish/guestfish.pod:143
20654 #, no-wrap
20655 msgid ""
20656 " eval \"`guestfish --listen`\"\n"
20657 " guestfish --remote add-ro disk.img\n"
20658 " guestfish --remote run\n"
20659 " guestfish --remote lvs\n"
20660 "\n"
20661 msgstr ""
20662
20663 # type: =head1
20664 #. type: =head1
20665 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20666 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
20667 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
20668 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
20669 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20670 msgid "OPTIONS"
20671 msgstr ""
20672
20673 # type: =item
20674 #. type: =item
20675 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
20676 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
20677 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
20678 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
20679 #: ../tools/virt-list-partitions.pl:62
20680 msgid "B<--help>"
20681 msgstr ""
20682
20683 # type: textblock
20684 #. type: textblock
20685 #: ../fish/guestfish.pod:154
20686 msgid "Displays general help on options."
20687 msgstr ""
20688
20689 # type: =item
20690 #. type: =item
20691 #: ../fish/guestfish.pod:156
20692 msgid "B<-h>"
20693 msgstr ""
20694
20695 # type: =item
20696 #. type: =item
20697 #: ../fish/guestfish.pod:158
20698 msgid "B<--cmd-help>"
20699 msgstr ""
20700
20701 # type: textblock
20702 #. type: textblock
20703 #: ../fish/guestfish.pod:160
20704 msgid "Lists all available guestfish commands."
20705 msgstr ""
20706
20707 # type: =item
20708 #. type: =item
20709 #: ../fish/guestfish.pod:162
20710 msgid "B<-h cmd>"
20711 msgstr ""
20712
20713 # type: =item
20714 #. type: =item
20715 #: ../fish/guestfish.pod:164
20716 msgid "B<--cmd-help cmd>"
20717 msgstr ""
20718
20719 # type: textblock
20720 #. type: textblock
20721 #: ../fish/guestfish.pod:166
20722 msgid "Displays detailed help on a single command C<cmd>."
20723 msgstr ""
20724
20725 # type: =item
20726 #. type: =item
20727 #: ../fish/guestfish.pod:168
20728 msgid "B<-a image>"
20729 msgstr ""
20730
20731 # type: =item
20732 #. type: =item
20733 #: ../fish/guestfish.pod:170
20734 msgid "B<--add image>"
20735 msgstr ""
20736
20737 # type: textblock
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:172
20740 msgid "Add a block device or virtual machine image to the shell."
20741 msgstr ""
20742
20743 # type: textblock
20744 #. type: textblock
20745 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
20746 msgid ""
20747 "The format of the disk image is auto-detected.  To override this and force a "
20748 "particular format use the I<--format=..> option."
20749 msgstr ""
20750
20751 # type: textblock
20752 #. type: textblock
20753 #: ../fish/guestfish.pod:177
20754 msgid ""
20755 "Using this flag is mostly equivalent to using the C<add> command, with "
20756 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20757 "the I<--format:...> flag was given."
20758 msgstr ""
20759
20760 # type: =item
20761 #. type: =item
20762 #: ../fish/guestfish.pod:181
20763 msgid "B<-c URI>"
20764 msgstr ""
20765
20766 # type: =item
20767 #. type: =item
20768 #: ../fish/guestfish.pod:183
20769 msgid "B<--connect URI>"
20770 msgstr ""
20771
20772 # type: textblock
20773 #. type: textblock
20774 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
20775 msgid ""
20776 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20777 "URI to use.  The default is to use the default libvirt connection."
20778 msgstr ""
20779
20780 # type: =item
20781 #. type: =item
20782 #: ../fish/guestfish.pod:189
20783 msgid "B<--csh>"
20784 msgstr ""
20785
20786 # type: textblock
20787 #. type: textblock
20788 #: ../fish/guestfish.pod:191
20789 msgid ""
20790 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20791 "section L</REMOTE CONTROL AND CSH> below."
20792 msgstr ""
20793
20794 # type: =item
20795 #. type: =item
20796 #: ../fish/guestfish.pod:194
20797 msgid "B<-d libvirt-domain>"
20798 msgstr ""
20799
20800 # type: =item
20801 #. type: =item
20802 #: ../fish/guestfish.pod:196
20803 msgid "B<--domain libvirt-domain>"
20804 msgstr ""
20805
20806 # type: textblock
20807 #. type: textblock
20808 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
20809 msgid ""
20810 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20811 "used, then any libvirt domain can be used.  However in write mode, only "
20812 "libvirt domains which are shut down can be named here."
20813 msgstr ""
20814
20815 # type: textblock
20816 #. type: textblock
20817 #: ../fish/guestfish.pod:202
20818 msgid ""
20819 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20820 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20821 "if the I<--format:...> flag was given."
20822 msgstr ""
20823
20824 # type: =item
20825 #. type: =item
20826 #: ../fish/guestfish.pod:206
20827 msgid "B<-D>"
20828 msgstr ""
20829
20830 # type: =item
20831 #. type: =item
20832 #: ../fish/guestfish.pod:208
20833 msgid "B<--no-dest-paths>"
20834 msgstr ""
20835
20836 # type: textblock
20837 #. type: textblock
20838 #: ../fish/guestfish.pod:210
20839 msgid ""
20840 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20841 "to hit the tab key to complete paths on the guest filesystem, but this "
20842 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20843 "allow this feature to be disabled."
20844 msgstr ""
20845
20846 # type: =item
20847 #. type: =item
20848 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
20849 msgid "B<--echo-keys>"
20850 msgstr ""
20851
20852 # type: textblock
20853 #. type: textblock
20854 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
20855 msgid ""
20856 "When prompting for keys and passphrases, guestfish normally turns echoing "
20857 "off so you cannot see what you are typing.  If you are not worried about "
20858 "Tempest attacks and there is no one else in the room you can specify this "
20859 "flag to see what you are typing."
20860 msgstr ""
20861
20862 # type: =item
20863 #. type: =item
20864 #: ../fish/guestfish.pod:222
20865 msgid "B<-f file>"
20866 msgstr ""
20867
20868 # type: =item
20869 #. type: =item
20870 #: ../fish/guestfish.pod:224
20871 msgid "B<--file file>"
20872 msgstr ""
20873
20874 # type: textblock
20875 #. type: textblock
20876 #: ../fish/guestfish.pod:226
20877 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #. type: verbatim
20882 #: ../fish/guestfish.pod:229
20883 #, no-wrap
20884 msgid ""
20885 " #!/usr/bin/guestfish -f\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: =item
20890 #. type: =item
20891 #: ../fish/guestfish.pod:231
20892 msgid "B<--format=raw|qcow2|..>"
20893 msgstr ""
20894
20895 # type: =item
20896 #. type: =item
20897 #: ../fish/guestfish.pod:233
20898 msgid "B<--format>"
20899 msgstr ""
20900
20901 # type: textblock
20902 #. type: textblock
20903 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
20904 msgid ""
20905 "The default for the I<-a> option is to auto-detect the format of the disk "
20906 "image.  Using this forces the disk format for I<-a> options which follow on "
20907 "the command line.  Using I<--format> with no argument switches back to auto-"
20908 "detection for subsequent I<-a> options."
20909 msgstr ""
20910
20911 # type: verbatim
20912 #. type: verbatim
20913 #: ../fish/guestfish.pod:242
20914 #, no-wrap
20915 msgid ""
20916 " guestfish --format=raw -a disk.img\n"
20917 "\n"
20918 msgstr ""
20919
20920 # type: textblock
20921 #. type: textblock
20922 #: ../fish/guestfish.pod:244
20923 msgid "forces raw format (no auto-detection) for C<disk.img>."
20924 msgstr ""
20925
20926 # type: verbatim
20927 #. type: verbatim
20928 #: ../fish/guestfish.pod:246
20929 #, no-wrap
20930 msgid ""
20931 " guestfish --format=raw -a disk.img --format -a another.img\n"
20932 "\n"
20933 msgstr ""
20934
20935 # type: textblock
20936 #. type: textblock
20937 #: ../fish/guestfish.pod:248
20938 msgid ""
20939 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
20940 "detection for C<another.img>."
20941 msgstr ""
20942
20943 # type: textblock
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:251
20946 msgid ""
20947 "If you have untrusted raw-format guest disk images, you should use this "
20948 "option to specify the disk format.  This avoids a possible security problem "
20949 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20950 msgstr ""
20951
20952 # type: =item
20953 #. type: =item
20954 #: ../fish/guestfish.pod:256
20955 msgid "B<-i>"
20956 msgstr ""
20957
20958 # type: =item
20959 #. type: =item
20960 #: ../fish/guestfish.pod:258
20961 msgid "B<--inspector>"
20962 msgstr ""
20963
20964 # type: textblock
20965 #. type: textblock
20966 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
20967 msgid ""
20968 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20969 "system and mount filesystems as they would be mounted on the real virtual "
20970 "machine."
20971 msgstr ""
20972
20973 # type: textblock
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:264
20976 msgid "Typical usage is either:"
20977 msgstr ""
20978
20979 # type: verbatim
20980 #. type: verbatim
20981 #: ../fish/guestfish.pod:266
20982 #, no-wrap
20983 msgid ""
20984 " guestfish -d myguest -i\n"
20985 "\n"
20986 msgstr ""
20987
20988 # type: textblock
20989 #. type: textblock
20990 #: ../fish/guestfish.pod:268
20991 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20992 msgstr ""
20993
20994 # type: verbatim
20995 #. type: verbatim
20996 #: ../fish/guestfish.pod:270
20997 #, no-wrap
20998 msgid ""
20999 " guestfish --ro -d myguest -i\n"
21000 "\n"
21001 msgstr ""
21002
21003 # type: textblock
21004 #. type: textblock
21005 #: ../fish/guestfish.pod:272
21006 msgid "(for active domains, readonly), or specify the block device directly:"
21007 msgstr ""
21008
21009 # type: verbatim
21010 #. type: verbatim
21011 #: ../fish/guestfish.pod:274
21012 #, no-wrap
21013 msgid ""
21014 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21015 "\n"
21016 msgstr ""
21017
21018 # type: textblock
21019 #. type: textblock
21020 #: ../fish/guestfish.pod:276
21021 msgid ""
21022 "Note that the command line syntax changed slightly over older versions of "
21023 "guestfish.  You can still use the old syntax:"
21024 msgstr ""
21025
21026 # type: verbatim
21027 #. type: verbatim
21028 #: ../fish/guestfish.pod:279
21029 #, no-wrap
21030 msgid ""
21031 " guestfish [--ro] -i disk.img\n"
21032 "\n"
21033 msgstr ""
21034
21035 # type: verbatim
21036 #. type: verbatim
21037 #: ../fish/guestfish.pod:281
21038 #, no-wrap
21039 msgid ""
21040 " guestfish [--ro] -i libvirt-domain\n"
21041 "\n"
21042 msgstr ""
21043
21044 # type: textblock
21045 #. type: textblock
21046 #: ../fish/guestfish.pod:283
21047 msgid ""
21048 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21049 "then using other commands to mount the filesystems that were found."
21050 msgstr ""
21051
21052 # type: =item
21053 #. type: =item
21054 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21055 msgid "B<--keys-from-stdin>"
21056 msgstr ""
21057
21058 # type: textblock
21059 #. type: textblock
21060 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21061 msgid ""
21062 "Read key or passphrase parameters from stdin.  The default is to try to read "
21063 "passphrases from the user by opening C</dev/tty>."
21064 msgstr ""
21065
21066 # type: =item
21067 #. type: =item
21068 #: ../fish/guestfish.pod:292
21069 msgid "B<--listen>"
21070 msgstr ""
21071
21072 # type: textblock
21073 #. type: textblock
21074 #: ../fish/guestfish.pod:294
21075 msgid ""
21076 "Fork into the background and listen for remote commands.  See section L</"
21077 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21078 msgstr ""
21079
21080 # type: =item
21081 #. type: =item
21082 #: ../fish/guestfish.pod:297
21083 msgid "B<-m dev[:mountpoint]>"
21084 msgstr ""
21085
21086 # type: =item
21087 #. type: =item
21088 #: ../fish/guestfish.pod:299
21089 msgid "B<--mount dev[:mountpoint]>"
21090 msgstr ""
21091
21092 # type: textblock
21093 #. type: textblock
21094 #: ../fish/guestfish.pod:301
21095 msgid "Mount the named partition or logical volume on the given mountpoint."
21096 msgstr ""
21097
21098 # type: textblock
21099 #. type: textblock
21100 #: ../fish/guestfish.pod:303
21101 msgid "If the mountpoint is omitted, it defaults to C</>."
21102 msgstr ""
21103
21104 # type: textblock
21105 #. type: textblock
21106 #: ../fish/guestfish.pod:305
21107 msgid "You have to mount something on C</> before most commands will work."
21108 msgstr ""
21109
21110 # type: textblock
21111 #. type: textblock
21112 #: ../fish/guestfish.pod:307
21113 msgid ""
21114 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21115 "launched."
21116 msgstr ""
21117
21118 # type: textblock
21119 #. type: textblock
21120 #: ../fish/guestfish.pod:310
21121 msgid ""
21122 "If you don't know what filesystems a disk image contains, you can either run "
21123 "guestfish without this option, then list the partitions, filesystems and LVs "
21124 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21125 "commands), or you can use the L<virt-filesystems(1)> program."
21126 msgstr ""
21127
21128 # type: textblock
21129 #. type: textblock
21130 #: ../fish/guestfish.pod:316
21131 msgid ""
21132 "Using this flag is mostly equivalent to using the C<mount-options> command "
21133 "or the C<mount-ro> command if the I<--ro> flag was given."
21134 msgstr ""
21135
21136 # type: =item
21137 #. type: =item
21138 #: ../fish/guestfish.pod:319
21139 msgid "B<-n>"
21140 msgstr ""
21141
21142 # type: =item
21143 #. type: =item
21144 #: ../fish/guestfish.pod:321
21145 msgid "B<--no-sync>"
21146 msgstr ""
21147
21148 # type: textblock
21149 #. type: textblock
21150 #: ../fish/guestfish.pod:323
21151 msgid ""
21152 "Disable autosync.  This is enabled by default.  See the discussion of "
21153 "autosync in the L<guestfs(3)> manpage."
21154 msgstr ""
21155
21156 # type: =item
21157 #. type: =item
21158 #: ../fish/guestfish.pod:326
21159 msgid "B<-N type>"
21160 msgstr ""
21161
21162 # type: =item
21163 #. type: =item
21164 #: ../fish/guestfish.pod:328
21165 msgid "B<--new type>"
21166 msgstr ""
21167
21168 # type: =item
21169 #. type: =item
21170 #: ../fish/guestfish.pod:330
21171 msgid "B<-N help>"
21172 msgstr ""
21173
21174 # type: textblock
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:332
21177 msgid ""
21178 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
21179 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21180 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21181 "IMAGES> below."
21182 msgstr ""
21183
21184 # type: =item
21185 #. type: =item
21186 #: ../fish/guestfish.pod:337
21187 msgid "B<--progress-bars>"
21188 msgstr ""
21189
21190 # type: textblock
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:339
21193 msgid "Enable progress bars, even when guestfish is used non-interactively."
21194 msgstr ""
21195
21196 # type: textblock
21197 #. type: textblock
21198 #: ../fish/guestfish.pod:341
21199 msgid ""
21200 "Progress bars are enabled by default when guestfish is used as an "
21201 "interactive shell."
21202 msgstr ""
21203
21204 # type: =item
21205 #. type: =item
21206 #: ../fish/guestfish.pod:344
21207 msgid "B<--no-progress-bars>"
21208 msgstr ""
21209
21210 # type: textblock
21211 #. type: textblock
21212 #: ../fish/guestfish.pod:346
21213 msgid "Disable progress bars."
21214 msgstr ""
21215
21216 # type: =item
21217 #. type: =item
21218 #: ../fish/guestfish.pod:348
21219 msgid "B<--remote[=pid]>"
21220 msgstr ""
21221
21222 # type: textblock
21223 #. type: textblock
21224 #: ../fish/guestfish.pod:350
21225 msgid ""
21226 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21227 "CONTROL GUESTFISH OVER A SOCKET> below."
21228 msgstr ""
21229
21230 # type: =item
21231 #. type: =item
21232 #: ../fish/guestfish.pod:353
21233 msgid "B<-r>"
21234 msgstr ""
21235
21236 # type: =item
21237 #. type: =item
21238 #: ../fish/guestfish.pod:355
21239 msgid "B<--ro>"
21240 msgstr ""
21241
21242 # type: textblock
21243 #. type: textblock
21244 #: ../fish/guestfish.pod:357
21245 msgid ""
21246 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21247 "mounts are done read-only."
21248 msgstr ""
21249
21250 # type: textblock
21251 #. type: textblock
21252 #: ../fish/guestfish.pod:360
21253 msgid ""
21254 "The option must always be used if the disk image or virtual machine might be "
21255 "running, and is generally recommended in cases where you don't need write "
21256 "access to the disk."
21257 msgstr ""
21258
21259 # type: textblock
21260 #. type: textblock
21261 #: ../fish/guestfish.pod:364
21262 msgid ""
21263 "Note that prepared disk images created with I<-N> are not affected by this "
21264 "option.  Also commands like C<add> are not affected - you have to specify "
21265 "the C<readonly:true> option explicitly if you need it."
21266 msgstr ""
21267
21268 # type: textblock
21269 #. type: textblock
21270 #: ../fish/guestfish.pod:368
21271 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21272 msgstr ""
21273
21274 # type: =item
21275 #. type: =item
21276 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
21277 msgid "B<--selinux>"
21278 msgstr ""
21279
21280 # type: textblock
21281 #. type: textblock
21282 #: ../fish/guestfish.pod:372
21283 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21284 msgstr ""
21285
21286 # type: =item
21287 #. type: =item
21288 #: ../fish/guestfish.pod:374
21289 msgid "B<-v>"
21290 msgstr ""
21291
21292 # type: =item
21293 #. type: =item
21294 #: ../fish/guestfish.pod:376
21295 msgid "B<--verbose>"
21296 msgstr ""
21297
21298 # type: textblock
21299 #. type: textblock
21300 #: ../fish/guestfish.pod:378
21301 msgid ""
21302 "Enable very verbose messages.  This is particularly useful if you find a bug."
21303 msgstr ""
21304
21305 # type: =item
21306 #. type: =item
21307 #: ../fish/guestfish.pod:381
21308 msgid "B<-V>"
21309 msgstr ""
21310
21311 # type: =item
21312 #. type: =item
21313 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
21314 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
21315 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
21316 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21317 msgid "B<--version>"
21318 msgstr ""
21319
21320 # type: textblock
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:385
21323 msgid "Display the guestfish / libguestfs version number and exit."
21324 msgstr ""
21325
21326 # type: =item
21327 #. type: =item
21328 #: ../fish/guestfish.pod:387
21329 msgid "B<-w>"
21330 msgstr ""
21331
21332 # type: =item
21333 #. type: =item
21334 #: ../fish/guestfish.pod:389
21335 msgid "B<--rw>"
21336 msgstr ""
21337
21338 # type: textblock
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:391
21341 msgid ""
21342 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
21343 "WRITE> below."
21344 msgstr ""
21345
21346 # type: =item
21347 #. type: =item
21348 #: ../fish/guestfish.pod:394
21349 msgid "B<-x>"
21350 msgstr ""
21351
21352 # type: textblock
21353 #. type: textblock
21354 #: ../fish/guestfish.pod:396
21355 msgid "Echo each command before executing it."
21356 msgstr ""
21357
21358 # type: =head1
21359 #. type: =head1
21360 #: ../fish/guestfish.pod:400
21361 msgid "COMMANDS ON COMMAND LINE"
21362 msgstr ""
21363
21364 # type: textblock
21365 #. type: textblock
21366 #: ../fish/guestfish.pod:402
21367 msgid ""
21368 "Any additional (non-option) arguments are treated as commands to execute."
21369 msgstr ""
21370
21371 # type: textblock
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:405
21374 msgid ""
21375 "Commands to execute should be separated by a colon (C<:>), where the colon "
21376 "is a separate parameter.  Thus:"
21377 msgstr ""
21378
21379 # type: verbatim
21380 #. type: verbatim
21381 #: ../fish/guestfish.pod:408
21382 #, no-wrap
21383 msgid ""
21384 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: textblock
21389 #. type: textblock
21390 #: ../fish/guestfish.pod:410
21391 msgid ""
21392 "If there are no additional arguments, then we enter a shell, either an "
21393 "interactive shell with a prompt (if the input is a terminal) or a non-"
21394 "interactive shell."
21395 msgstr ""
21396
21397 # type: textblock
21398 #. type: textblock
21399 #: ../fish/guestfish.pod:414
21400 msgid ""
21401 "In either command line mode or non-interactive shell, the first command that "
21402 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21403 "prompt) if a command fails, you can continue to enter commands."
21404 msgstr ""
21405
21406 # type: =head1
21407 #. type: =head1
21408 #: ../fish/guestfish.pod:419
21409 msgid "USING launch (OR run)"
21410 msgstr ""
21411
21412 # type: textblock
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:421
21415 msgid ""
21416 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21417 "then launch it, then mount any disks you need, and finally issue actions/"
21418 "commands.  So the general order of the day is:"
21419 msgstr ""
21420
21421 # type: textblock
21422 #. type: textblock
21423 #: ../fish/guestfish.pod:429
21424 msgid "add or -a/--add"
21425 msgstr ""
21426
21427 # type: textblock
21428 #. type: textblock
21429 #: ../fish/guestfish.pod:433
21430 msgid "launch (aka run)"
21431 msgstr ""
21432
21433 # type: textblock
21434 #. type: textblock
21435 #: ../fish/guestfish.pod:437
21436 msgid "mount or -m/--mount"
21437 msgstr ""
21438
21439 # type: textblock
21440 #. type: textblock
21441 #: ../fish/guestfish.pod:441
21442 msgid "any other commands"
21443 msgstr ""
21444
21445 # type: textblock
21446 #. type: textblock
21447 #: ../fish/guestfish.pod:445
21448 msgid ""
21449 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21450 "guest before mounting or performing any other commands."
21451 msgstr ""
21452
21453 # type: textblock
21454 #. type: textblock
21455 #: ../fish/guestfish.pod:448
21456 msgid ""
21457 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21458 "I<--new> options were given then C<run> is done automatically, simply "
21459 "because guestfish can't perform the action you asked for without doing this."
21460 msgstr ""
21461
21462 # type: =head1
21463 #. type: =head1
21464 #: ../fish/guestfish.pod:453
21465 msgid "OPENING DISKS FOR READ AND WRITE"
21466 msgstr ""
21467
21468 # type: textblock
21469 #. type: textblock
21470 #: ../fish/guestfish.pod:455
21471 msgid ""
21472 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
21473 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
21474 "open disk images read-only or for writing."
21475 msgstr ""
21476
21477 # type: textblock
21478 #. type: textblock
21479 #: ../fish/guestfish.pod:459
21480 msgid ""
21481 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
21482 "disk images supplied on the command line for write.  To open a disk image "
21483 "read-only you have to do I<-a image --ro>."
21484 msgstr ""
21485
21486 # type: textblock
21487 #. type: textblock
21488 #: ../fish/guestfish.pod:463
21489 msgid ""
21490 "This matters: If you accidentally open a live VM disk image writable then "
21491 "you will cause irreversible disk corruption."
21492 msgstr ""
21493
21494 #. type: textblock
21495 #: ../fish/guestfish.pod:466
21496 msgid ""
21497 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
21498 "images will be opened read-only.  You will have to either specify "
21499 "I<guestfish --rw> or change a configuration file in order to get write "
21500 "access for disk images specified by those other command line options."
21501 msgstr ""
21502
21503 # type: textblock
21504 #. type: textblock
21505 #: ../fish/guestfish.pod:471
21506 msgid ""
21507 "This version of guestfish has a I<--rw> option which does nothing (it is "
21508 "already the default).  However it is highly recommended that you use this "
21509 "option to indicate that guestfish needs write access, and to prepare your "
21510 "scripts for the day when this option will be required for write access."
21511 msgstr ""
21512
21513 # type: textblock
21514 #. type: textblock
21515 #: ../fish/guestfish.pod:477
21516 msgid ""
21517 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21518 "other libguestfs program apart from guestfish and guestmount."
21519 msgstr ""
21520
21521 # type: =head1
21522 #. type: =head1
21523 #: ../fish/guestfish.pod:480
21524 msgid "QUOTING"
21525 msgstr ""
21526
21527 # type: textblock
21528 #. type: textblock
21529 #: ../fish/guestfish.pod:482
21530 msgid ""
21531 "You can quote ordinary parameters using either single or double quotes.  For "
21532 "example:"
21533 msgstr ""
21534
21535 # type: verbatim
21536 #. type: verbatim
21537 #: ../fish/guestfish.pod:485
21538 #, no-wrap
21539 msgid ""
21540 " add \"file with a space.img\"\n"
21541 "\n"
21542 msgstr ""
21543
21544 # type: verbatim
21545 #. type: verbatim
21546 #: ../fish/guestfish.pod:487
21547 #, no-wrap
21548 msgid ""
21549 " rm '/file name'\n"
21550 "\n"
21551 msgstr ""
21552
21553 # type: verbatim
21554 #. type: verbatim
21555 #: ../fish/guestfish.pod:489
21556 #, no-wrap
21557 msgid ""
21558 " rm '/\"'\n"
21559 "\n"
21560 msgstr ""
21561
21562 # type: textblock
21563 #. type: textblock
21564 #: ../fish/guestfish.pod:491
21565 msgid ""
21566 "A few commands require a list of strings to be passed.  For these, use a "
21567 "whitespace-separated list, enclosed in quotes.  Strings containing "
21568 "whitespace to be passed through must be enclosed in single quotes.  A "
21569 "literal single quote must be escaped with a backslash."
21570 msgstr ""
21571
21572 # type: verbatim
21573 #. type: verbatim
21574 #: ../fish/guestfish.pod:496
21575 #, no-wrap
21576 msgid ""
21577 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21578 " command \"/bin/echo 'foo      bar'\"\n"
21579 " command \"/bin/echo \\'foo\\'\"\n"
21580 "\n"
21581 msgstr ""
21582
21583 # type: =head1
21584 #. type: =head1
21585 #: ../fish/guestfish.pod:500
21586 msgid "OPTIONAL ARGUMENTS"
21587 msgstr ""
21588
21589 # type: textblock
21590 #. type: textblock
21591 #: ../fish/guestfish.pod:502
21592 msgid ""
21593 "Some commands take optional arguments.  These arguments appear in this "
21594 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21595 msgstr ""
21596
21597 # type: verbatim
21598 #. type: verbatim
21599 #: ../fish/guestfish.pod:506
21600 #, no-wrap
21601 msgid ""
21602 " add-drive-opts filename\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: verbatim
21607 #. type: verbatim
21608 #: ../fish/guestfish.pod:508
21609 #, no-wrap
21610 msgid ""
21611 " add-drive-opts filename readonly:true\n"
21612 "\n"
21613 msgstr ""
21614
21615 # type: verbatim
21616 #. type: verbatim
21617 #: ../fish/guestfish.pod:510
21618 #, no-wrap
21619 msgid ""
21620 " add-drive-opts filename format:qcow2 readonly:false\n"
21621 "\n"
21622 msgstr ""
21623
21624 # type: textblock
21625 #. type: textblock
21626 #: ../fish/guestfish.pod:512
21627 msgid ""
21628 "Each optional argument can appear at most once.  All optional arguments must "
21629 "appear after the required ones."
21630 msgstr ""
21631
21632 # type: =head1
21633 #. type: =head1
21634 #: ../fish/guestfish.pod:515
21635 msgid "NUMBERS"
21636 msgstr ""
21637
21638 # type: textblock
21639 #. type: textblock
21640 #: ../fish/guestfish.pod:517
21641 msgid ""
21642 "This section applies to all commands which can take integers as parameters."
21643 msgstr ""
21644
21645 # type: =head2
21646 #. type: =head2
21647 #: ../fish/guestfish.pod:520
21648 msgid "SIZE SUFFIX"
21649 msgstr ""
21650
21651 # type: textblock
21652 #. type: textblock
21653 #: ../fish/guestfish.pod:522
21654 msgid ""
21655 "When the command takes a parameter measured in bytes, you can use one of the "
21656 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21657 msgstr ""
21658
21659 # type: =item
21660 #. type: =item
21661 #: ../fish/guestfish.pod:528
21662 msgid "B<k> or B<K> or B<KiB>"
21663 msgstr ""
21664
21665 # type: textblock
21666 #. type: textblock
21667 #: ../fish/guestfish.pod:530
21668 msgid "The size in kilobytes (multiplied by 1024)."
21669 msgstr ""
21670
21671 # type: =item
21672 #. type: =item
21673 #: ../fish/guestfish.pod:532
21674 msgid "B<KB>"
21675 msgstr ""
21676
21677 # type: textblock
21678 #. type: textblock
21679 #: ../fish/guestfish.pod:534
21680 msgid "The size in SI 1000 byte units."
21681 msgstr ""
21682
21683 # type: =item
21684 #. type: =item
21685 #: ../fish/guestfish.pod:536
21686 msgid "B<M> or B<MiB>"
21687 msgstr ""
21688
21689 # type: textblock
21690 #. type: textblock
21691 #: ../fish/guestfish.pod:538
21692 msgid "The size in megabytes (multiplied by 1048576)."
21693 msgstr ""
21694
21695 # type: =item
21696 #. type: =item
21697 #: ../fish/guestfish.pod:540
21698 msgid "B<MB>"
21699 msgstr ""
21700
21701 # type: textblock
21702 #. type: textblock
21703 #: ../fish/guestfish.pod:542
21704 msgid "The size in SI 1000000 byte units."
21705 msgstr ""
21706
21707 # type: =item
21708 #. type: =item
21709 #: ../fish/guestfish.pod:544
21710 msgid "B<G> or B<GiB>"
21711 msgstr ""
21712
21713 # type: textblock
21714 #. type: textblock
21715 #: ../fish/guestfish.pod:546
21716 msgid "The size in gigabytes (multiplied by 2**30)."
21717 msgstr ""
21718
21719 # type: =item
21720 #. type: =item
21721 #: ../fish/guestfish.pod:548
21722 msgid "B<GB>"
21723 msgstr ""
21724
21725 # type: textblock
21726 #. type: textblock
21727 #: ../fish/guestfish.pod:550
21728 msgid "The size in SI 10**9 byte units."
21729 msgstr ""
21730
21731 # type: =item
21732 #. type: =item
21733 #: ../fish/guestfish.pod:552
21734 msgid "B<T> or B<TiB>"
21735 msgstr ""
21736
21737 # type: textblock
21738 #. type: textblock
21739 #: ../fish/guestfish.pod:554
21740 msgid "The size in terabytes (multiplied by 2**40)."
21741 msgstr ""
21742
21743 # type: =item
21744 #. type: =item
21745 #: ../fish/guestfish.pod:556
21746 msgid "B<TB>"
21747 msgstr ""
21748
21749 # type: textblock
21750 #. type: textblock
21751 #: ../fish/guestfish.pod:558
21752 msgid "The size in SI 10**12 byte units."
21753 msgstr ""
21754
21755 # type: =item
21756 #. type: =item
21757 #: ../fish/guestfish.pod:560
21758 msgid "B<P> or B<PiB>"
21759 msgstr ""
21760
21761 # type: textblock
21762 #. type: textblock
21763 #: ../fish/guestfish.pod:562
21764 msgid "The size in petabytes (multiplied by 2**50)."
21765 msgstr ""
21766
21767 # type: =item
21768 #. type: =item
21769 #: ../fish/guestfish.pod:564
21770 msgid "B<PB>"
21771 msgstr ""
21772
21773 # type: textblock
21774 #. type: textblock
21775 #: ../fish/guestfish.pod:566
21776 msgid "The size in SI 10**15 byte units."
21777 msgstr ""
21778
21779 # type: =item
21780 #. type: =item
21781 #: ../fish/guestfish.pod:568
21782 msgid "B<E> or B<EiB>"
21783 msgstr ""
21784
21785 # type: textblock
21786 #. type: textblock
21787 #: ../fish/guestfish.pod:570
21788 msgid "The size in exabytes (multiplied by 2**60)."
21789 msgstr ""
21790
21791 # type: =item
21792 #. type: =item
21793 #: ../fish/guestfish.pod:572
21794 msgid "B<EB>"
21795 msgstr ""
21796
21797 # type: textblock
21798 #. type: textblock
21799 #: ../fish/guestfish.pod:574
21800 msgid "The size in SI 10**18 byte units."
21801 msgstr ""
21802
21803 # type: =item
21804 #. type: =item
21805 #: ../fish/guestfish.pod:576
21806 msgid "B<Z> or B<ZiB>"
21807 msgstr ""
21808
21809 # type: textblock
21810 #. type: textblock
21811 #: ../fish/guestfish.pod:578
21812 msgid "The size in zettabytes (multiplied by 2**70)."
21813 msgstr ""
21814
21815 # type: =item
21816 #. type: =item
21817 #: ../fish/guestfish.pod:580
21818 msgid "B<ZB>"
21819 msgstr ""
21820
21821 # type: textblock
21822 #. type: textblock
21823 #: ../fish/guestfish.pod:582
21824 msgid "The size in SI 10**21 byte units."
21825 msgstr ""
21826
21827 # type: =item
21828 #. type: =item
21829 #: ../fish/guestfish.pod:584
21830 msgid "B<Y> or B<YiB>"
21831 msgstr ""
21832
21833 # type: textblock
21834 #. type: textblock
21835 #: ../fish/guestfish.pod:586
21836 msgid "The size in yottabytes (multiplied by 2**80)."
21837 msgstr ""
21838
21839 # type: =item
21840 #. type: =item
21841 #: ../fish/guestfish.pod:588
21842 msgid "B<YB>"
21843 msgstr ""
21844
21845 # type: textblock
21846 #. type: textblock
21847 #: ../fish/guestfish.pod:590
21848 msgid "The size in SI 10**24 byte units."
21849 msgstr ""
21850
21851 # type: verbatim
21852 #. type: verbatim
21853 #: ../fish/guestfish.pod:596
21854 #, no-wrap
21855 msgid ""
21856 " truncate-size /file 1G\n"
21857 "\n"
21858 msgstr ""
21859
21860 # type: textblock
21861 #. type: textblock
21862 #: ../fish/guestfish.pod:598
21863 msgid "would truncate the file to 1 gigabyte."
21864 msgstr ""
21865
21866 # type: textblock
21867 #. type: textblock
21868 #: ../fish/guestfish.pod:600
21869 msgid ""
21870 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21871 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21872 "suffix will probably not do what you expect."
21873 msgstr ""
21874
21875 # type: =head2
21876 #. type: =head2
21877 #: ../fish/guestfish.pod:604
21878 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21879 msgstr ""
21880
21881 # type: textblock
21882 #. type: textblock
21883 #: ../fish/guestfish.pod:606
21884 msgid ""
21885 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21886 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21887 msgstr ""
21888
21889 # type: verbatim
21890 #. type: verbatim
21891 #: ../fish/guestfish.pod:609
21892 #, no-wrap
21893 msgid ""
21894 " 1234      decimal number 1234\n"
21895 " 02322     octal number, equivalent to decimal 1234\n"
21896 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21897 "\n"
21898 msgstr ""
21899
21900 # type: textblock
21901 #. type: textblock
21902 #: ../fish/guestfish.pod:613
21903 msgid ""
21904 "When using the C<chmod> command, you almost always want to specify an octal "
21905 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21906 "L<chmod(1)> program):"
21907 msgstr ""
21908
21909 # type: verbatim
21910 #. type: verbatim
21911 #: ../fish/guestfish.pod:617
21912 #, no-wrap
21913 msgid ""
21914 " chmod 0777 /public  # OK\n"
21915 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21916 "\n"
21917 msgstr ""
21918
21919 # type: textblock
21920 #. type: textblock
21921 #: ../fish/guestfish.pod:620
21922 msgid ""
21923 "Commands that return numbers usually print them in decimal, but some "
21924 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21925 "octal, preceeded by C<0>)."
21926 msgstr ""
21927
21928 # type: =head1
21929 #. type: =head1
21930 #: ../fish/guestfish.pod:624
21931 msgid "WILDCARDS AND GLOBBING"
21932 msgstr ""
21933
21934 # type: textblock
21935 #. type: textblock
21936 #: ../fish/guestfish.pod:626
21937 msgid ""
21938 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21939 "(globbing) by default.  So for example the following will not do what you "
21940 "expect:"
21941 msgstr ""
21942
21943 # type: verbatim
21944 #. type: verbatim
21945 #: ../fish/guestfish.pod:630
21946 #, no-wrap
21947 msgid ""
21948 " rm-rf /home/*\n"
21949 "\n"
21950 msgstr ""
21951
21952 # type: textblock
21953 #. type: textblock
21954 #: ../fish/guestfish.pod:632
21955 msgid ""
21956 "Assuming you don't have a directory called literally C</home/*> then the "
21957 "above command will return an error."
21958 msgstr ""
21959
21960 # type: textblock
21961 #. type: textblock
21962 #: ../fish/guestfish.pod:635
21963 msgid "To perform wildcard expansion, use the C<glob> command."
21964 msgstr ""
21965
21966 # type: verbatim
21967 #. type: verbatim
21968 #: ../fish/guestfish.pod:637
21969 #, no-wrap
21970 msgid ""
21971 " glob rm-rf /home/*\n"
21972 "\n"
21973 msgstr ""
21974
21975 # type: textblock
21976 #. type: textblock
21977 #: ../fish/guestfish.pod:639
21978 msgid ""
21979 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21980 "many times), equivalent to:"
21981 msgstr ""
21982
21983 # type: verbatim
21984 #. type: verbatim
21985 #: ../fish/guestfish.pod:642
21986 #, no-wrap
21987 msgid ""
21988 " rm-rf /home/jim\n"
21989 " rm-rf /home/joe\n"
21990 " rm-rf /home/mary\n"
21991 "\n"
21992 msgstr ""
21993
21994 # type: textblock
21995 #. type: textblock
21996 #: ../fish/guestfish.pod:646
21997 msgid "C<glob> only works on simple guest paths and not on device names."
21998 msgstr ""
21999
22000 # type: textblock
22001 #. type: textblock
22002 #: ../fish/guestfish.pod:648
22003 msgid ""
22004 "If you have several parameters, each containing a wildcard, then glob will "
22005 "perform a Cartesian product."
22006 msgstr ""
22007
22008 # type: =head1
22009 #. type: =head1
22010 #: ../fish/guestfish.pod:651
22011 msgid "COMMENTS"
22012 msgstr ""
22013
22014 # type: textblock
22015 #. type: textblock
22016 #: ../fish/guestfish.pod:653
22017 msgid ""
22018 "Any line which starts with a I<#> character is treated as a comment and "
22019 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22020 "a command.  For example:"
22021 msgstr ""
22022
22023 # type: verbatim
22024 #. type: verbatim
22025 #: ../fish/guestfish.pod:657
22026 #, no-wrap
22027 msgid ""
22028 " # this is a comment\n"
22029 "         # this is a comment\n"
22030 " foo # NOT a comment\n"
22031 "\n"
22032 msgstr ""
22033
22034 # type: textblock
22035 #. type: textblock
22036 #: ../fish/guestfish.pod:661
22037 msgid "Blank lines are also ignored."
22038 msgstr ""
22039
22040 # type: =head1
22041 #. type: =head1
22042 #: ../fish/guestfish.pod:663
22043 msgid "RUNNING COMMANDS LOCALLY"
22044 msgstr ""
22045
22046 # type: textblock
22047 #. type: textblock
22048 #: ../fish/guestfish.pod:665
22049 msgid ""
22050 "Any line which starts with a I<!> character is treated as a command sent to "
22051 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22052 msgstr ""
22053
22054 # type: verbatim
22055 #. type: verbatim
22056 #: ../fish/guestfish.pod:669
22057 #, no-wrap
22058 msgid ""
22059 " !mkdir local\n"
22060 " tgz-out /remote local/remote-data.tar.gz\n"
22061 "\n"
22062 msgstr ""
22063
22064 # type: textblock
22065 #. type: textblock
22066 #: ../fish/guestfish.pod:672
22067 msgid ""
22068 "will create a directory C<local> on the host, and then export the contents "
22069 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22070 "(See C<tgz-out>)."
22071 msgstr ""
22072
22073 # type: textblock
22074 #. type: textblock
22075 #: ../fish/guestfish.pod:676
22076 msgid ""
22077 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22078 "effect, due to the way that subprocesses work in Unix."
22079 msgstr ""
22080
22081 # type: =head1
22082 #. type: =head1
22083 #: ../fish/guestfish.pod:679
22084 msgid "PIPES"
22085 msgstr ""
22086
22087 # type: textblock
22088 #. type: textblock
22089 #: ../fish/guestfish.pod:681
22090 msgid ""
22091 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22092 "command (a guestfish command) to the second command (any host command).  For "
22093 "example:"
22094 msgstr ""
22095
22096 # type: verbatim
22097 #. type: verbatim
22098 #: ../fish/guestfish.pod:685
22099 #, no-wrap
22100 msgid ""
22101 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22102 "\n"
22103 msgstr ""
22104
22105 # type: textblock
22106 #. type: textblock
22107 #: ../fish/guestfish.pod:687
22108 msgid ""
22109 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22110 "program).  The above command would list all accounts in the guest filesystem "
22111 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22112 msgstr ""
22113
22114 # type: verbatim
22115 #. type: verbatim
22116 #: ../fish/guestfish.pod:692
22117 #, no-wrap
22118 msgid ""
22119 " hexdump /bin/ls | head\n"
22120 " list-devices | tail -1\n"
22121 " tgz-out / - | tar ztf -\n"
22122 "\n"
22123 msgstr ""
22124
22125 # type: textblock
22126 #. type: textblock
22127 #: ../fish/guestfish.pod:696
22128 msgid ""
22129 "The space before the pipe symbol is required, any space after the pipe "
22130 "symbol is optional.  Everything after the pipe symbol is just passed "
22131 "straight to the host shell, so it can contain redirections, globs and "
22132 "anything else that makes sense on the host side."
22133 msgstr ""
22134
22135 # type: textblock
22136 #. type: textblock
22137 #: ../fish/guestfish.pod:701
22138 msgid ""
22139 "To use a literal argument which begins with a pipe symbol, you have to quote "
22140 "it, eg:"
22141 msgstr ""
22142
22143 # type: verbatim
22144 #. type: verbatim
22145 #: ../fish/guestfish.pod:704
22146 #, no-wrap
22147 msgid ""
22148 " echo \"|\"\n"
22149 "\n"
22150 msgstr ""
22151
22152 # type: =head1
22153 #. type: =head1
22154 #: ../fish/guestfish.pod:706
22155 msgid "HOME DIRECTORIES"
22156 msgstr ""
22157
22158 # type: textblock
22159 #. type: textblock
22160 #: ../fish/guestfish.pod:708
22161 msgid ""
22162 "If a parameter starts with the character C<~> then the tilde may be expanded "
22163 "as a home directory path (either C<~> for the current user's home directory, "
22164 "or C<~user> for another user)."
22165 msgstr ""
22166
22167 # type: textblock
22168 #. type: textblock
22169 #: ../fish/guestfish.pod:712
22170 msgid ""
22171 "Note that home directory expansion happens for users known I<on the host>, "
22172 "not in the guest filesystem."
22173 msgstr ""
22174
22175 # type: textblock
22176 #. type: textblock
22177 #: ../fish/guestfish.pod:715
22178 msgid ""
22179 "To use a literal argument which begins with a tilde, you have to quote it, "
22180 "eg:"
22181 msgstr ""
22182
22183 # type: verbatim
22184 #. type: verbatim
22185 #: ../fish/guestfish.pod:718
22186 #, no-wrap
22187 msgid ""
22188 " echo \"~\"\n"
22189 "\n"
22190 msgstr ""
22191
22192 # type: textblock
22193 #. type: textblock
22194 #: ../fish/guestfish.pod:722
22195 msgid ""
22196 "Libguestfs has some support for Linux guests encrypted according to the "
22197 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22198 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22199 "LUKS is supported."
22200 msgstr ""
22201
22202 # type: textblock
22203 #. type: textblock
22204 #: ../fish/guestfish.pod:727
22205 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22206 msgstr ""
22207
22208 # type: verbatim
22209 #. type: verbatim
22210 #: ../fish/guestfish.pod:729
22211 #, no-wrap
22212 msgid ""
22213 " ><fs> vfs-type /dev/sda2\n"
22214 " crypto_LUKS\n"
22215 "\n"
22216 msgstr ""
22217
22218 # type: textblock
22219 #. type: textblock
22220 #: ../fish/guestfish.pod:732
22221 msgid ""
22222 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22223 "device called C</dev/mapper/luksdev>."
22224 msgstr ""
22225
22226 # type: verbatim
22227 #. type: verbatim
22228 #: ../fish/guestfish.pod:735
22229 #, no-wrap
22230 msgid ""
22231 " ><fs> luks-open /dev/sda2 luksdev\n"
22232 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22233 "\n"
22234 msgstr ""
22235
22236 # type: textblock
22237 #. type: textblock
22238 #: ../fish/guestfish.pod:738
22239 msgid ""
22240 "Finally you have to tell LVM to scan for volume groups on the newly created "
22241 "mapper device:"
22242 msgstr ""
22243
22244 # type: verbatim
22245 #. type: verbatim
22246 #: ../fish/guestfish.pod:741
22247 #, no-wrap
22248 msgid ""
22249 " vgscan\n"
22250 " vg-activate-all true\n"
22251 "\n"
22252 msgstr ""
22253
22254 # type: textblock
22255 #. type: textblock
22256 #: ../fish/guestfish.pod:744
22257 msgid "The logical volume(s) can now be mounted in the usual way."
22258 msgstr ""
22259
22260 # type: textblock
22261 #. type: textblock
22262 #: ../fish/guestfish.pod:746
22263 msgid ""
22264 "Before closing a LUKS device you must unmount any logical volumes on it and "
22265 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22266 "one.  Then you can close the mapper device:"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #. type: verbatim
22271 #: ../fish/guestfish.pod:750
22272 #, no-wrap
22273 msgid ""
22274 " vg-activate false /dev/VG\n"
22275 " luks-close /dev/mapper/luksdev\n"
22276 "\n"
22277 msgstr ""
22278
22279 # type: =head1
22280 #. type: =head1
22281 #: ../fish/guestfish.pod:753
22282 msgid "WINDOWS PATHS"
22283 msgstr ""
22284
22285 # type: textblock
22286 #. type: textblock
22287 #: ../fish/guestfish.pod:755
22288 msgid ""
22289 "If a path is prefixed with C<win:> then you can use Windows-style paths "
22290 "(with some limitations).  The following commands are equivalent:"
22291 msgstr ""
22292
22293 # type: verbatim
22294 #. type: verbatim
22295 #: ../fish/guestfish.pod:758
22296 #, no-wrap
22297 msgid ""
22298 " file /WINDOWS/system32/config/system.LOG\n"
22299 "\n"
22300 msgstr ""
22301
22302 # type: verbatim
22303 #. type: verbatim
22304 #: ../fish/guestfish.pod:760
22305 #, no-wrap
22306 msgid ""
22307 " file win:/windows/system32/config/system.log\n"
22308 "\n"
22309 msgstr ""
22310
22311 # type: verbatim
22312 #. type: verbatim
22313 #: ../fish/guestfish.pod:762
22314 #, no-wrap
22315 msgid ""
22316 " file win:\\windows\\system32\\config\\system.log\n"
22317 "\n"
22318 msgstr ""
22319
22320 # type: verbatim
22321 #. type: verbatim
22322 #: ../fish/guestfish.pod:764
22323 #, no-wrap
22324 msgid ""
22325 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
22326 "\n"
22327 msgstr ""
22328
22329 # type: textblock
22330 #. type: textblock
22331 #: ../fish/guestfish.pod:766
22332 msgid ""
22333 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
22334 "handles case insensitivity like Windows would.  This only works in argument "
22335 "positions that expect a path."
22336 msgstr ""
22337
22338 # type: =head1
22339 #. type: =head1
22340 #: ../fish/guestfish.pod:770
22341 msgid "UPLOADING AND DOWNLOADING FILES"
22342 msgstr ""
22343
22344 # type: textblock
22345 #. type: textblock
22346 #: ../fish/guestfish.pod:772
22347 msgid ""
22348 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22349 "others which upload from or download to a local file, you can use the "
22350 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22351 msgstr ""
22352
22353 # type: verbatim
22354 #. type: verbatim
22355 #: ../fish/guestfish.pod:776
22356 #, no-wrap
22357 msgid ""
22358 " upload - /foo\n"
22359 "\n"
22360 msgstr ""
22361
22362 # type: textblock
22363 #. type: textblock
22364 #: ../fish/guestfish.pod:778
22365 msgid ""
22366 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22367 msgstr ""
22368
22369 # type: verbatim
22370 #. type: verbatim
22371 #: ../fish/guestfish.pod:781
22372 #, no-wrap
22373 msgid ""
22374 " tar-out /etc - | tar tf -\n"
22375 "\n"
22376 msgstr ""
22377
22378 # type: textblock
22379 #. type: textblock
22380 #: ../fish/guestfish.pod:783
22381 msgid ""
22382 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22383 "command (see L</PIPES>)."
22384 msgstr ""
22385
22386 # type: textblock
22387 #. type: textblock
22388 #: ../fish/guestfish.pod:786
22389 msgid ""
22390 "When using C<-> to read from stdin, the input is read up to the end of "
22391 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22392 "some arbitrary end marker:"
22393 msgstr ""
22394
22395 # type: verbatim
22396 #. type: verbatim
22397 #: ../fish/guestfish.pod:790
22398 #, no-wrap
22399 msgid ""
22400 " upload -<<END /foo\n"
22401 " input line 1\n"
22402 " input line 2\n"
22403 " input line 3\n"
22404 " END\n"
22405 "\n"
22406 msgstr ""
22407
22408 # type: textblock
22409 #. type: textblock
22410 #: ../fish/guestfish.pod:796
22411 msgid ""
22412 "Any string of characters can be used instead of C<END>.  The end marker must "
22413 "appear on a line of its own, without any preceeding or following characters "
22414 "(not even spaces)."
22415 msgstr ""
22416
22417 # type: textblock
22418 #. type: textblock
22419 #: ../fish/guestfish.pod:800
22420 msgid ""
22421 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22422 "upload local files (so-called \"FileIn\" parameters in the generator)."
22423 msgstr ""
22424
22425 # type: =head1
22426 #. type: =head1
22427 #: ../fish/guestfish.pod:803
22428 msgid "EXIT ON ERROR BEHAVIOUR"
22429 msgstr ""
22430
22431 # type: textblock
22432 #. type: textblock
22433 #: ../fish/guestfish.pod:805
22434 msgid ""
22435 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22436 "taking commands from a human over a tty), and will exit on the first error "
22437 "in non-interactive mode (scripts, commands given on the command line)."
22438 msgstr ""
22439
22440 # type: textblock
22441 #. type: textblock
22442 #: ../fish/guestfish.pod:810
22443 msgid ""
22444 "If you prefix a command with a I<-> character, then that command will not "
22445 "cause guestfish to exit, even if that (one) command returns an error."
22446 msgstr ""
22447
22448 # type: =head1
22449 #. type: =head1
22450 #: ../fish/guestfish.pod:814
22451 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22452 msgstr ""
22453
22454 # type: textblock
22455 #. type: textblock
22456 #: ../fish/guestfish.pod:816
22457 msgid ""
22458 "Guestfish can be remote-controlled over a socket.  This is useful "
22459 "particularly in shell scripts where you want to make several different "
22460 "changes to a filesystem, but you don't want the overhead of starting up a "
22461 "guestfish process each time."
22462 msgstr ""
22463
22464 # type: textblock
22465 #. type: textblock
22466 #: ../fish/guestfish.pod:821
22467 msgid "Start a guestfish server process using:"
22468 msgstr ""
22469
22470 # type: verbatim
22471 #. type: verbatim
22472 #: ../fish/guestfish.pod:823
22473 #, no-wrap
22474 msgid ""
22475 " eval \"`guestfish --listen`\"\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: textblock
22480 #. type: textblock
22481 #: ../fish/guestfish.pod:825
22482 msgid "and then send it commands by doing:"
22483 msgstr ""
22484
22485 # type: verbatim
22486 #. type: verbatim
22487 #: ../fish/guestfish.pod:827
22488 #, no-wrap
22489 msgid ""
22490 " guestfish --remote cmd [...]\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: textblock
22495 #. type: textblock
22496 #: ../fish/guestfish.pod:829
22497 msgid "To cause the server to exit, send it the exit command:"
22498 msgstr ""
22499
22500 # type: verbatim
22501 #. type: verbatim
22502 #: ../fish/guestfish.pod:831
22503 #, no-wrap
22504 msgid ""
22505 " guestfish --remote exit\n"
22506 "\n"
22507 msgstr ""
22508
22509 # type: textblock
22510 #. type: textblock
22511 #: ../fish/guestfish.pod:833
22512 msgid ""
22513 "Note that the server will normally exit if there is an error in a command.  "
22514 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22515 "BEHAVIOUR>."
22516 msgstr ""
22517
22518 # type: =head2
22519 #. type: =head2
22520 #: ../fish/guestfish.pod:837
22521 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22522 msgstr ""
22523
22524 # type: textblock
22525 #. type: textblock
22526 #: ../fish/guestfish.pod:839
22527 msgid ""
22528 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22529 "is how the I<--remote> option knows where to send the commands.  You can "
22530 "have several guestfish listener processes running using:"
22531 msgstr ""
22532
22533 # type: verbatim
22534 #. type: verbatim
22535 #: ../fish/guestfish.pod:843
22536 #, no-wrap
22537 msgid ""
22538 " eval \"`guestfish --listen`\"\n"
22539 " pid1=$GUESTFISH_PID\n"
22540 " eval \"`guestfish --listen`\"\n"
22541 " pid2=$GUESTFISH_PID\n"
22542 " ...\n"
22543 " guestfish --remote=$pid1 cmd\n"
22544 " guestfish --remote=$pid2 cmd\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: =head2
22549 #. type: =head2
22550 #: ../fish/guestfish.pod:851
22551 msgid "REMOTE CONTROL AND CSH"
22552 msgstr ""
22553
22554 # type: textblock
22555 #. type: textblock
22556 #: ../fish/guestfish.pod:853
22557 msgid ""
22558 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22559 "option:"
22560 msgstr ""
22561
22562 # type: verbatim
22563 #. type: verbatim
22564 #: ../fish/guestfish.pod:856
22565 #, no-wrap
22566 msgid ""
22567 " eval \"`guestfish --listen --csh`\"\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: =head2
22572 #. type: =head2
22573 #: ../fish/guestfish.pod:858
22574 msgid "REMOTE CONTROL DETAILS"
22575 msgstr ""
22576
22577 # type: textblock
22578 #. type: textblock
22579 #: ../fish/guestfish.pod:860
22580 msgid ""
22581 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22582 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22583 "and C<$PID> is the process ID of the server."
22584 msgstr ""
22585
22586 # type: textblock
22587 #. type: textblock
22588 #: ../fish/guestfish.pod:864
22589 msgid "Guestfish client and server versions must match exactly."
22590 msgstr ""
22591
22592 # type: =head1
22593 #. type: =head1
22594 #: ../fish/guestfish.pod:866
22595 msgid "PREPARED DISK IMAGES"
22596 msgstr ""
22597
22598 # type: textblock
22599 #. type: textblock
22600 #: ../fish/guestfish.pod:868
22601 msgid ""
22602 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22603 "preformatted disk images that guestfish can make for you to save typing.  "
22604 "This is particularly useful for testing purposes.  This option is used "
22605 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22606 "can be mixed with I<-a>)."
22607 msgstr ""
22608
22609 # type: textblock
22610 #. type: textblock
22611 #: ../fish/guestfish.pod:874
22612 msgid ""
22613 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22614 "the second and so on.  Existing files in the current directory are "
22615 "I<overwritten>."
22616 msgstr ""
22617
22618 # type: textblock
22619 #. type: textblock
22620 #: ../fish/guestfish.pod:878
22621 msgid ""
22622 "The type briefly describes how the disk should be sized, partitioned, how "
22623 "filesystem(s) should be created, and how content should be added.  "
22624 "Optionally the type can be followed by extra parameters, separated by C<:> "
22625 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22626 "allocated disk, containing a single partition, with the partition formatted "
22627 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22628 "disk instead."
22629 msgstr ""
22630
22631 # type: textblock
22632 #. type: textblock
22633 #: ../fish/guestfish.pod:886
22634 msgid "To list the available types and any extra parameters they take, run:"
22635 msgstr ""
22636
22637 # type: textblock
22638 #. type: textblock
22639 #: ../fish/guestfish.pod:890
22640 msgid ""
22641 "Note that the prepared filesystem is not mounted.  You would usually have to "
22642 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22643 msgstr ""
22644
22645 # type: textblock
22646 #. type: textblock
22647 #: ../fish/guestfish.pod:894
22648 msgid ""
22649 "If any I<-N> or I<--new> options are given, the guest is automatically "
22650 "launched."
22651 msgstr ""
22652
22653 # type: textblock
22654 #. type: textblock
22655 #: ../fish/guestfish.pod:899
22656 msgid "Create a 100MB disk with an ext4-formatted partition:"
22657 msgstr ""
22658
22659 # type: verbatim
22660 #. type: verbatim
22661 #: ../fish/guestfish.pod:901
22662 #, no-wrap
22663 msgid ""
22664 " guestfish -N fs:ext4\n"
22665 "\n"
22666 msgstr ""
22667
22668 # type: textblock
22669 #. type: textblock
22670 #: ../fish/guestfish.pod:903
22671 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22672 msgstr ""
22673
22674 # type: verbatim
22675 #. type: verbatim
22676 #: ../fish/guestfish.pod:905
22677 #, no-wrap
22678 msgid ""
22679 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22680 "\n"
22681 msgstr ""
22682
22683 # type: textblock
22684 #. type: textblock
22685 #: ../fish/guestfish.pod:907
22686 msgid "Create a blank 200MB disk:"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #. type: verbatim
22691 #: ../fish/guestfish.pod:909
22692 #, no-wrap
22693 msgid ""
22694 " guestfish -N disk:200M\n"
22695 "\n"
22696 msgstr ""
22697
22698 # type: =head1
22699 #. type: =head1
22700 #: ../fish/guestfish.pod:911
22701 msgid "PROGRESS BARS"
22702 msgstr ""
22703
22704 # type: textblock
22705 #. type: textblock
22706 #: ../fish/guestfish.pod:913
22707 msgid ""
22708 "Some (not all) long-running commands send progress notification messages as "
22709 "they are running.  Guestfish turns these messages into progress bars."
22710 msgstr ""
22711
22712 # type: textblock
22713 #. type: textblock
22714 #: ../fish/guestfish.pod:917
22715 msgid ""
22716 "When a command that supports progress bars takes longer than two seconds to "
22717 "run, and if progress bars are enabled, then you will see one appearing below "
22718 "the command:"
22719 msgstr ""
22720
22721 # type: verbatim
22722 #. type: verbatim
22723 #: ../fish/guestfish.pod:921
22724 #, no-wrap
22725 msgid ""
22726 " ><fs> copy-size /large-file /another-file 2048M\n"
22727 " / 10% [#####-----------------------------------------] 00:30\n"
22728 "\n"
22729 msgstr ""
22730
22731 # type: textblock
22732 #. type: textblock
22733 #: ../fish/guestfish.pod:924
22734 msgid ""
22735 "The spinner on the left hand side moves round once for every progress "
22736 "notification received from the backend.  This is a (reasonably) golden "
22737 "assurance that the command is \"doing something\" even if the progress bar "
22738 "is not moving, because the command is able to send the progress "
22739 "notifications.  When the bar reaches 100% and the command finishes, the "
22740 "spinner disappears."
22741 msgstr ""
22742
22743 # type: textblock
22744 #. type: textblock
22745 #: ../fish/guestfish.pod:931
22746 msgid ""
22747 "Progress bars are enabled by default when guestfish is used interactively.  "
22748 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22749 "and you can disable them completely using I<--no-progress-bars>."
22750 msgstr ""
22751
22752 # type: =head1
22753 #. type: =head1
22754 #: ../fish/guestfish.pod:936
22755 msgid "GUESTFISH COMMANDS"
22756 msgstr ""
22757
22758 # type: textblock
22759 #. type: textblock
22760 #: ../fish/guestfish.pod:938
22761 msgid ""
22762 "The commands in this section are guestfish convenience commands, in other "
22763 "words, they are not part of the L<guestfs(3)> API."
22764 msgstr ""
22765
22766 # type: =head2
22767 #. type: =head2
22768 #: ../fish/guestfish.pod:941
22769 msgid "help"
22770 msgstr ""
22771
22772 # type: verbatim
22773 #. type: verbatim
22774 #: ../fish/guestfish.pod:943
22775 #, no-wrap
22776 msgid ""
22777 " help\n"
22778 " help cmd\n"
22779 "\n"
22780 msgstr ""
22781
22782 # type: textblock
22783 #. type: textblock
22784 #: ../fish/guestfish.pod:946
22785 msgid "Without any parameter, this provides general help."
22786 msgstr ""
22787
22788 # type: textblock
22789 #. type: textblock
22790 #: ../fish/guestfish.pod:948
22791 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22792 msgstr ""
22793
22794 # type: =head2
22795 #. type: =head2
22796 #: ../fish/guestfish.pod:950
22797 msgid "quit | exit"
22798 msgstr ""
22799
22800 # type: textblock
22801 #. type: textblock
22802 #: ../fish/guestfish.pod:952
22803 msgid "This exits guestfish.  You can also use C<^D> key."
22804 msgstr ""
22805
22806 # type: textblock
22807 #. type: textblock
22808 #: ../fish/guestfish.pod:954
22809 msgid "@FISH_COMMANDS@"
22810 msgstr ""
22811
22812 # type: =head1
22813 #. type: =head1
22814 #: ../fish/guestfish.pod:956
22815 msgid "COMMANDS"
22816 msgstr ""
22817
22818 # type: =head1
22819 #. type: =head1
22820 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
22821 msgid "EXIT CODE"
22822 msgstr ""
22823
22824 # type: textblock
22825 #. type: textblock
22826 #: ../fish/guestfish.pod:962
22827 msgid ""
22828 "guestfish returns 0 if the commands completed without error, or 1 if there "
22829 "was an error."
22830 msgstr ""
22831
22832 # type: =item
22833 #. type: =item
22834 #: ../fish/guestfish.pod:969
22835 msgid "EDITOR"
22836 msgstr ""
22837
22838 # type: textblock
22839 #. type: textblock
22840 #: ../fish/guestfish.pod:971
22841 msgid ""
22842 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
22843 "C<vi>."
22844 msgstr ""
22845
22846 # type: =item
22847 #. type: =item
22848 #: ../fish/guestfish.pod:974
22849 msgid "GUESTFISH_PID"
22850 msgstr ""
22851
22852 # type: textblock
22853 #. type: textblock
22854 #: ../fish/guestfish.pod:976
22855 msgid ""
22856 "Used with the I<--remote> option to specify the remote guestfish process to "
22857 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22858 msgstr ""
22859
22860 # type: =item
22861 #. type: =item
22862 #: ../fish/guestfish.pod:980
22863 msgid "HEXEDITOR"
22864 msgstr ""
22865
22866 # type: textblock
22867 #. type: textblock
22868 #: ../fish/guestfish.pod:982
22869 msgid ""
22870 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22871 "not specified, the external L<hexedit(1)> program is used."
22872 msgstr ""
22873
22874 # type: =item
22875 #. type: =item
22876 #: ../fish/guestfish.pod:986
22877 msgid "HOME"
22878 msgstr ""
22879
22880 # type: textblock
22881 #. type: textblock
22882 #: ../fish/guestfish.pod:988
22883 msgid ""
22884 "If compiled with GNU readline support, various files in the home directory "
22885 "can be used.  See L</FILES>."
22886 msgstr ""
22887
22888 # type: textblock
22889 #. type: textblock
22890 #: ../fish/guestfish.pod:997
22891 msgid ""
22892 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22893 "effect as using the B<-v> option."
22894 msgstr ""
22895
22896 # type: textblock
22897 #. type: textblock
22898 #: ../fish/guestfish.pod:1009
22899 msgid ""
22900 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22901 "the discussion of paths in L<guestfs(3)>."
22902 msgstr ""
22903
22904 # type: textblock
22905 #. type: textblock
22906 #: ../fish/guestfish.pod:1020
22907 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22908 msgstr ""
22909
22910 # type: =item
22911 #. type: =item
22912 #: ../fish/guestfish.pod:1022
22913 msgid "PAGER"
22914 msgstr ""
22915
22916 # type: textblock
22917 #. type: textblock
22918 #: ../fish/guestfish.pod:1024
22919 msgid ""
22920 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22921 "C<more>."
22922 msgstr ""
22923
22924 # type: =head1
22925 #. type: =head1
22926 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
22927 msgid "FILES"
22928 msgstr ""
22929
22930 # type: =item
22931 #. type: =item
22932 #: ../fish/guestfish.pod:1043
22933 msgid "$HOME/.guestfish"
22934 msgstr ""
22935
22936 # type: textblock
22937 #. type: textblock
22938 #: ../fish/guestfish.pod:1045
22939 msgid ""
22940 "If compiled with GNU readline support, then the command history is saved in "
22941 "this file."
22942 msgstr ""
22943
22944 # type: =item
22945 #. type: =item
22946 #: ../fish/guestfish.pod:1048
22947 msgid "$HOME/.inputrc"
22948 msgstr ""
22949
22950 # type: =item
22951 #. type: =item
22952 #: ../fish/guestfish.pod:1050
22953 msgid "/etc/inputrc"
22954 msgstr ""
22955
22956 # type: textblock
22957 #. type: textblock
22958 #: ../fish/guestfish.pod:1052
22959 msgid ""
22960 "If compiled with GNU readline support, then these files can be used to "
22961 "configure readline.  For further information, please see L<readline(3)/"
22962 "INITIALIZATION FILE>."
22963 msgstr ""
22964
22965 # type: textblock
22966 #. type: textblock
22967 #: ../fish/guestfish.pod:1056
22968 msgid "To write rules which only apply to guestfish, use:"
22969 msgstr ""
22970
22971 # type: verbatim
22972 #. type: verbatim
22973 #: ../fish/guestfish.pod:1058
22974 #, no-wrap
22975 msgid ""
22976 " $if guestfish\n"
22977 " ...\n"
22978 " $endif\n"
22979 "\n"
22980 msgstr ""
22981
22982 # type: textblock
22983 #. type: textblock
22984 #: ../fish/guestfish.pod:1062
22985 msgid ""
22986 "Variables that you can set in inputrc that change the behaviour of guestfish "
22987 "in useful ways include:"
22988 msgstr ""
22989
22990 # type: =item
22991 #. type: =item
22992 #: ../fish/guestfish.pod:1067
22993 msgid "completion-ignore-case (default: on)"
22994 msgstr ""
22995
22996 # type: textblock
22997 #. type: textblock
22998 #: ../fish/guestfish.pod:1069
22999 msgid ""
23000 "By default, guestfish will ignore case when tab-completing paths on the "
23001 "disk.  Use:"
23002 msgstr ""
23003
23004 # type: verbatim
23005 #. type: verbatim
23006 #: ../fish/guestfish.pod:1072
23007 #, no-wrap
23008 msgid ""
23009 " set completion-ignore-case off\n"
23010 "\n"
23011 msgstr ""
23012
23013 # type: textblock
23014 #. type: textblock
23015 #: ../fish/guestfish.pod:1074
23016 msgid "to make guestfish case sensitive."
23017 msgstr ""
23018
23019 # type: =item
23020 #. type: =item
23021 #: ../fish/guestfish.pod:1078
23022 msgid "test1.img"
23023 msgstr ""
23024
23025 # type: =item
23026 #. type: =item
23027 #: ../fish/guestfish.pod:1080
23028 msgid "test2.img (etc)"
23029 msgstr ""
23030
23031 # type: textblock
23032 #. type: textblock
23033 #: ../fish/guestfish.pod:1082
23034 msgid ""
23035 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23036 "will be created in the file C<test1.img> in the current directory.  The "
23037 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23038 "the same name will be overwritten."
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../fish/guestfish.pod:1091
23043 msgid ""
23044 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23045 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23046 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23047 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23048 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23049 ">, L<hexedit(1)>."
23050 msgstr ""
23051
23052 # type: textblock
23053 #. type: textblock
23054 #: ../fish/guestfish.pod:1121 ../test-tool/libguestfs-test-tool.pod:124
23055 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:372
23056 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
23057 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23058 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
23059 msgid ""
23060 "This program is free software; you can redistribute it and/or modify it "
23061 "under the terms of the GNU General Public License as published by the Free "
23062 "Software Foundation; either version 2 of the License, or (at your option) "
23063 "any later version."
23064 msgstr ""
23065
23066 # type: textblock
23067 #. type: textblock
23068 #: ../fish/guestfish.pod:1126 ../test-tool/libguestfs-test-tool.pod:129
23069 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:377
23070 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
23071 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23072 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
23073 msgid ""
23074 "This program is distributed in the hope that it will be useful, but WITHOUT "
23075 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23076 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23077 "more details."
23078 msgstr ""
23079
23080 # type: textblock
23081 #. type: textblock
23082 #: ../fish/guestfish.pod:1131 ../test-tool/libguestfs-test-tool.pod:134
23083 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:382
23084 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
23085 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23086 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
23087 msgid ""
23088 "You should have received a copy of the GNU General Public License along with "
23089 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23090 "Ave, Cambridge, MA 02139, USA."
23091 msgstr ""
23092
23093 # type: =head2
23094 #. type: =head2
23095 #: ../fish/guestfish-actions.pod:1
23096 msgid "add-cdrom"
23097 msgstr ""
23098
23099 # type: verbatim
23100 #. type: verbatim
23101 #: ../fish/guestfish-actions.pod:3
23102 #, no-wrap
23103 msgid ""
23104 " add-cdrom filename\n"
23105 "\n"
23106 msgstr ""
23107
23108 # type: textblock
23109 #. type: textblock
23110 #: ../fish/guestfish-actions.pod:15
23111 msgid ""
23112 "This call checks for the existence of C<filename>.  This stops you from "
23113 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23114 "and C<http:> URLs.  To specify those, use the general L</config> call "
23115 "instead."
23116 msgstr ""
23117
23118 # type: textblock
23119 #. type: textblock
23120 #: ../fish/guestfish-actions.pod:22
23121 msgid ""
23122 "If you just want to add an ISO file (often you use this as an efficient way "
23123 "to transfer large files into the guest), then you should probably use L</add-"
23124 "drive-ro> instead."
23125 msgstr ""
23126
23127 # type: =head2
23128 #. type: =head2
23129 #: ../fish/guestfish-actions.pod:35
23130 msgid "add-domain"
23131 msgstr ""
23132
23133 # type: =head2
23134 #. type: =head2
23135 #: ../fish/guestfish-actions.pod:37
23136 msgid "domain"
23137 msgstr ""
23138
23139 # type: verbatim
23140 #. type: verbatim
23141 #: ../fish/guestfish-actions.pod:39
23142 #, no-wrap
23143 msgid ""
23144 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
23145 "\n"
23146 msgstr ""
23147
23148 # type: textblock
23149 #. type: textblock
23150 #: ../fish/guestfish-actions.pod:41
23151 msgid ""
23152 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23153 "It works by connecting to libvirt, requesting the domain and domain XML from "
23154 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
23155 msgstr ""
23156
23157 # type: textblock
23158 #. type: textblock
23159 #: ../fish/guestfish-actions.pod:64
23160 msgid ""
23161 "The other optional parameters are passed directly through to L</add-drive-"
23162 "opts>."
23163 msgstr ""
23164
23165 # type: textblock
23166 #. type: textblock
23167 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131
23168 #: ../fish/guestfish-actions.pod:2846
23169 msgid ""
23170 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
23171 msgstr ""
23172
23173 # type: =head2
23174 #. type: =head2
23175 #: ../fish/guestfish-actions.pod:69
23176 msgid "add-drive"
23177 msgstr ""
23178
23179 # type: verbatim
23180 #. type: verbatim
23181 #: ../fish/guestfish-actions.pod:71
23182 #, no-wrap
23183 msgid ""
23184 " add-drive filename\n"
23185 "\n"
23186 msgstr ""
23187
23188 # type: textblock
23189 #. type: textblock
23190 #: ../fish/guestfish-actions.pod:73
23191 msgid ""
23192 "This function is the equivalent of calling L</add-drive-opts> with no "
23193 "optional parameters, so the disk is added writable, with the format being "
23194 "detected automatically."
23195 msgstr ""
23196
23197 # type: textblock
23198 #. type: textblock
23199 #: ../fish/guestfish-actions.pod:77
23200 msgid ""
23201 "Automatic detection of the format opens you up to a potential security hole "
23202 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23203 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23204 "you should think about replacing calls to this function with calls to L</add-"
23205 "drive-opts>, and specifying the format."
23206 msgstr ""
23207
23208 # type: =head2
23209 #. type: =head2
23210 #: ../fish/guestfish-actions.pod:84
23211 msgid "add-drive-opts"
23212 msgstr ""
23213
23214 # type: =head2
23215 #. type: =head2
23216 #: ../fish/guestfish-actions.pod:86
23217 msgid "add"
23218 msgstr ""
23219
23220 # type: verbatim
23221 #. type: verbatim
23222 #: ../fish/guestfish-actions.pod:88
23223 #, no-wrap
23224 msgid ""
23225 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23226 "\n"
23227 msgstr ""
23228
23229 # type: textblock
23230 #. type: textblock
23231 #: ../fish/guestfish-actions.pod:115
23232 msgid ""
23233 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
23234 "add-drive-ro>) then the format is automatically detected.  Possible formats "
23235 "include C<raw> and C<qcow2>."
23236 msgstr ""
23237
23238 # type: textblock
23239 #. type: textblock
23240 #: ../fish/guestfish-actions.pod:126
23241 msgid ""
23242 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
23243 "add-drive-with-if> call (q.v.)"
23244 msgstr ""
23245
23246 # type: =head2
23247 #. type: =head2
23248 #: ../fish/guestfish-actions.pod:133
23249 msgid "add-drive-ro"
23250 msgstr ""
23251
23252 # type: =head2
23253 #. type: =head2
23254 #: ../fish/guestfish-actions.pod:135
23255 msgid "add-ro"
23256 msgstr ""
23257
23258 # type: verbatim
23259 #. type: verbatim
23260 #: ../fish/guestfish-actions.pod:137
23261 #, no-wrap
23262 msgid ""
23263 " add-drive-ro filename\n"
23264 "\n"
23265 msgstr ""
23266
23267 # type: textblock
23268 #. type: textblock
23269 #: ../fish/guestfish-actions.pod:139
23270 msgid ""
23271 "This function is the equivalent of calling L</add-drive-opts> with the "
23272 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23273 "is added read-only, with the format being detected automatically."
23274 msgstr ""
23275
23276 # type: =head2
23277 #. type: =head2
23278 #: ../fish/guestfish-actions.pod:144
23279 msgid "add-drive-ro-with-if"
23280 msgstr ""
23281
23282 # type: verbatim
23283 #. type: verbatim
23284 #: ../fish/guestfish-actions.pod:146
23285 #, no-wrap
23286 msgid ""
23287 " add-drive-ro-with-if filename iface\n"
23288 "\n"
23289 msgstr ""
23290
23291 # type: textblock
23292 #. type: textblock
23293 #: ../fish/guestfish-actions.pod:148
23294 msgid ""
23295 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23296 "interface emulation to use at run time."
23297 msgstr ""
23298
23299 # type: =head2
23300 #. type: =head2
23301 #: ../fish/guestfish-actions.pod:158
23302 msgid "add-drive-with-if"
23303 msgstr ""
23304
23305 # type: verbatim
23306 #. type: verbatim
23307 #: ../fish/guestfish-actions.pod:160
23308 #, no-wrap
23309 msgid ""
23310 " add-drive-with-if filename iface\n"
23311 "\n"
23312 msgstr ""
23313
23314 # type: textblock
23315 #. type: textblock
23316 #: ../fish/guestfish-actions.pod:162
23317 msgid ""
23318 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23319 "interface emulation to use at run time."
23320 msgstr ""
23321
23322 # type: =head2
23323 #. type: =head2
23324 #: ../fish/guestfish-actions.pod:172
23325 msgid "aug-clear"
23326 msgstr ""
23327
23328 # type: verbatim
23329 #. type: verbatim
23330 #: ../fish/guestfish-actions.pod:174
23331 #, no-wrap
23332 msgid ""
23333 " aug-clear augpath\n"
23334 "\n"
23335 msgstr ""
23336
23337 # type: =head2
23338 #. type: =head2
23339 #: ../fish/guestfish-actions.pod:179
23340 msgid "aug-close"
23341 msgstr ""
23342
23343 # type: verbatim
23344 #. type: verbatim
23345 #: ../fish/guestfish-actions.pod:181
23346 #, no-wrap
23347 msgid ""
23348 " aug-close\n"
23349 "\n"
23350 msgstr ""
23351
23352 # type: textblock
23353 #. type: textblock
23354 #: ../fish/guestfish-actions.pod:183
23355 msgid ""
23356 "Close the current Augeas handle and free up any resources used by it.  After "
23357 "calling this, you have to call L</aug-init> again before you can use any "
23358 "other Augeas functions."
23359 msgstr ""
23360
23361 # type: =head2
23362 #. type: =head2
23363 #: ../fish/guestfish-actions.pod:188
23364 msgid "aug-defnode"
23365 msgstr ""
23366
23367 # type: verbatim
23368 #. type: verbatim
23369 #: ../fish/guestfish-actions.pod:190
23370 #, no-wrap
23371 msgid ""
23372 " aug-defnode name expr val\n"
23373 "\n"
23374 msgstr ""
23375
23376 # type: textblock
23377 #. type: textblock
23378 #: ../fish/guestfish-actions.pod:195
23379 msgid ""
23380 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23381 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23382 "containing that single node."
23383 msgstr ""
23384
23385 # type: =head2
23386 #. type: =head2
23387 #: ../fish/guestfish-actions.pod:203
23388 msgid "aug-defvar"
23389 msgstr ""
23390
23391 # type: verbatim
23392 #. type: verbatim
23393 #: ../fish/guestfish-actions.pod:205
23394 #, no-wrap
23395 msgid ""
23396 " aug-defvar name expr\n"
23397 "\n"
23398 msgstr ""
23399
23400 # type: =head2
23401 #. type: =head2
23402 #: ../fish/guestfish-actions.pod:214
23403 msgid "aug-get"
23404 msgstr ""
23405
23406 # type: verbatim
23407 #. type: verbatim
23408 #: ../fish/guestfish-actions.pod:216
23409 #, no-wrap
23410 msgid ""
23411 " aug-get augpath\n"
23412 "\n"
23413 msgstr ""
23414
23415 # type: =head2
23416 #. type: =head2
23417 #: ../fish/guestfish-actions.pod:221
23418 msgid "aug-init"
23419 msgstr ""
23420
23421 # type: verbatim
23422 #. type: verbatim
23423 #: ../fish/guestfish-actions.pod:223
23424 #, no-wrap
23425 msgid ""
23426 " aug-init root flags\n"
23427 "\n"
23428 msgstr ""
23429
23430 # type: textblock
23431 #. type: textblock
23432 #: ../fish/guestfish-actions.pod:229
23433 msgid "You must call this before using any other L</aug-*> commands."
23434 msgstr ""
23435
23436 # type: textblock
23437 #. type: textblock
23438 #: ../fish/guestfish-actions.pod:264
23439 msgid "Do not load the tree in L</aug-init>."
23440 msgstr ""
23441
23442 # type: textblock
23443 #. type: textblock
23444 #: ../fish/guestfish-actions.pod:268
23445 msgid "To close the handle, you can call L</aug-close>."
23446 msgstr ""
23447
23448 # type: =head2
23449 #. type: =head2
23450 #: ../fish/guestfish-actions.pod:272
23451 msgid "aug-insert"
23452 msgstr ""
23453
23454 # type: verbatim
23455 #. type: verbatim
23456 #: ../fish/guestfish-actions.pod:274
23457 #, no-wrap
23458 msgid ""
23459 " aug-insert augpath label true|false\n"
23460 "\n"
23461 msgstr ""
23462
23463 # type: =head2
23464 #. type: =head2
23465 #: ../fish/guestfish-actions.pod:284
23466 msgid "aug-load"
23467 msgstr ""
23468
23469 # type: verbatim
23470 #. type: verbatim
23471 #: ../fish/guestfish-actions.pod:286
23472 #, no-wrap
23473 msgid ""
23474 " aug-load\n"
23475 "\n"
23476 msgstr ""
23477
23478 # type: =head2
23479 #. type: =head2
23480 #: ../fish/guestfish-actions.pod:293
23481 msgid "aug-ls"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #. type: verbatim
23486 #: ../fish/guestfish-actions.pod:295
23487 #, no-wrap
23488 msgid ""
23489 " aug-ls augpath\n"
23490 "\n"
23491 msgstr ""
23492
23493 # type: textblock
23494 #. type: textblock
23495 #: ../fish/guestfish-actions.pod:297
23496 msgid ""
23497 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23498 "resulting nodes into alphabetical order."
23499 msgstr ""
23500
23501 # type: =head2
23502 #. type: =head2
23503 #: ../fish/guestfish-actions.pod:300
23504 msgid "aug-match"
23505 msgstr ""
23506
23507 # type: verbatim
23508 #. type: verbatim
23509 #: ../fish/guestfish-actions.pod:302
23510 #, no-wrap
23511 msgid ""
23512 " aug-match augpath\n"
23513 "\n"
23514 msgstr ""
23515
23516 # type: =head2
23517 #. type: =head2
23518 #: ../fish/guestfish-actions.pod:308
23519 msgid "aug-mv"
23520 msgstr ""
23521
23522 # type: verbatim
23523 #. type: verbatim
23524 #: ../fish/guestfish-actions.pod:310
23525 #, no-wrap
23526 msgid ""
23527 " aug-mv src dest\n"
23528 "\n"
23529 msgstr ""
23530
23531 # type: =head2
23532 #. type: =head2
23533 #: ../fish/guestfish-actions.pod:315
23534 msgid "aug-rm"
23535 msgstr ""
23536
23537 # type: verbatim
23538 #. type: verbatim
23539 #: ../fish/guestfish-actions.pod:317
23540 #, no-wrap
23541 msgid ""
23542 " aug-rm augpath\n"
23543 "\n"
23544 msgstr ""
23545
23546 # type: =head2
23547 #. type: =head2
23548 #: ../fish/guestfish-actions.pod:323
23549 msgid "aug-save"
23550 msgstr ""
23551
23552 # type: verbatim
23553 #. type: verbatim
23554 #: ../fish/guestfish-actions.pod:325
23555 #, no-wrap
23556 msgid ""
23557 " aug-save\n"
23558 "\n"
23559 msgstr ""
23560
23561 # type: textblock
23562 #. type: textblock
23563 #: ../fish/guestfish-actions.pod:329
23564 msgid ""
23565 "The flags which were passed to L</aug-init> affect exactly how files are "
23566 "saved."
23567 msgstr ""
23568
23569 # type: =head2
23570 #. type: =head2
23571 #: ../fish/guestfish-actions.pod:332
23572 msgid "aug-set"
23573 msgstr ""
23574
23575 # type: verbatim
23576 #. type: verbatim
23577 #: ../fish/guestfish-actions.pod:334
23578 #, no-wrap
23579 msgid ""
23580 " aug-set augpath val\n"
23581 "\n"
23582 msgstr ""
23583
23584 # type: textblock
23585 #. type: textblock
23586 #: ../fish/guestfish-actions.pod:338
23587 msgid ""
23588 "In the Augeas API, it is possible to clear a node by setting the value to "
23589 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23590 "this call.  Instead you must use the L</aug-clear> call."
23591 msgstr ""
23592
23593 # type: =head2
23594 #. type: =head2
23595 #: ../fish/guestfish-actions.pod:343
23596 msgid "available"
23597 msgstr ""
23598
23599 # type: verbatim
23600 #. type: verbatim
23601 #: ../fish/guestfish-actions.pod:345
23602 #, no-wrap
23603 msgid ""
23604 " available 'groups ...'\n"
23605 "\n"
23606 msgstr ""
23607
23608 # type: textblock
23609 #. type: textblock
23610 #: ../fish/guestfish-actions.pod:351
23611 msgid ""
23612 "The libguestfs groups, and the functions that those groups correspond to, "
23613 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23614 "runtime by calling L</available-all-groups>."
23615 msgstr ""
23616
23617 # type: textblock
23618 #. type: textblock
23619 #: ../fish/guestfish-actions.pod:375
23620 msgid "You must call L</launch> before calling this function."
23621 msgstr ""
23622
23623 # type: textblock
23624 #. type: textblock
23625 #: ../fish/guestfish-actions.pod:397
23626 msgid ""
23627 "This call was added in version C<1.0.80>.  In previous versions of "
23628 "libguestfs all you could do would be to speculatively execute a command to "
23629 "find out if the daemon implemented it.  See also L</version>."
23630 msgstr ""
23631
23632 # type: =head2
23633 #. type: =head2
23634 #: ../fish/guestfish-actions.pod:404
23635 msgid "available-all-groups"
23636 msgstr ""
23637
23638 # type: verbatim
23639 #. type: verbatim
23640 #: ../fish/guestfish-actions.pod:406
23641 #, no-wrap
23642 msgid ""
23643 " available-all-groups\n"
23644 "\n"
23645 msgstr ""
23646
23647 # type: textblock
23648 #. type: textblock
23649 #: ../fish/guestfish-actions.pod:408
23650 msgid ""
23651 "This command returns a list of all optional groups that this daemon knows "
23652 "about.  Note this returns both supported and unsupported groups.  To find "
23653 "out which ones the daemon can actually support you have to call L</"
23654 "available> on each member of the returned list."
23655 msgstr ""
23656
23657 # type: textblock
23658 #. type: textblock
23659 #: ../fish/guestfish-actions.pod:414
23660 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23661 msgstr ""
23662
23663 # type: =head2
23664 #. type: =head2
23665 #: ../fish/guestfish-actions.pod:416
23666 msgid "base64-in"
23667 msgstr ""
23668
23669 # type: verbatim
23670 #. type: verbatim
23671 #: ../fish/guestfish-actions.pod:418
23672 #, no-wrap
23673 msgid ""
23674 " base64-in (base64file|-) filename\n"
23675 "\n"
23676 msgstr ""
23677
23678 # type: textblock
23679 #. type: textblock
23680 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432
23681 #: ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825
23682 #: ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221
23683 #: ../fish/guestfish-actions.pod:4201 ../fish/guestfish-actions.pod:4213
23684 #: ../fish/guestfish-actions.pod:4224 ../fish/guestfish-actions.pod:4235
23685 #: ../fish/guestfish-actions.pod:4287 ../fish/guestfish-actions.pod:4296
23686 #: ../fish/guestfish-actions.pod:4350 ../fish/guestfish-actions.pod:4373
23687 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23688 msgstr ""
23689
23690 # type: =head2
23691 #. type: =head2
23692 #: ../fish/guestfish-actions.pod:425
23693 msgid "base64-out"
23694 msgstr ""
23695
23696 # type: verbatim
23697 #. type: verbatim
23698 #: ../fish/guestfish-actions.pod:427
23699 #, no-wrap
23700 msgid ""
23701 " base64-out filename (base64file|-)\n"
23702 "\n"
23703 msgstr ""
23704
23705 # type: =head2
23706 #. type: =head2
23707 #: ../fish/guestfish-actions.pod:434
23708 msgid "blockdev-flushbufs"
23709 msgstr ""
23710
23711 # type: verbatim
23712 #. type: verbatim
23713 #: ../fish/guestfish-actions.pod:436
23714 #, no-wrap
23715 msgid ""
23716 " blockdev-flushbufs device\n"
23717 "\n"
23718 msgstr ""
23719
23720 # type: =head2
23721 #. type: =head2
23722 #: ../fish/guestfish-actions.pod:443
23723 msgid "blockdev-getbsz"
23724 msgstr ""
23725
23726 # type: verbatim
23727 #. type: verbatim
23728 #: ../fish/guestfish-actions.pod:445
23729 #, no-wrap
23730 msgid ""
23731 " blockdev-getbsz device\n"
23732 "\n"
23733 msgstr ""
23734
23735 # type: =head2
23736 #. type: =head2
23737 #: ../fish/guestfish-actions.pod:454
23738 msgid "blockdev-getro"
23739 msgstr ""
23740
23741 # type: verbatim
23742 #. type: verbatim
23743 #: ../fish/guestfish-actions.pod:456
23744 #, no-wrap
23745 msgid ""
23746 " blockdev-getro device\n"
23747 "\n"
23748 msgstr ""
23749
23750 # type: =head2
23751 #. type: =head2
23752 #: ../fish/guestfish-actions.pod:463
23753 msgid "blockdev-getsize64"
23754 msgstr ""
23755
23756 # type: verbatim
23757 #. type: verbatim
23758 #: ../fish/guestfish-actions.pod:465
23759 #, no-wrap
23760 msgid ""
23761 " blockdev-getsize64 device\n"
23762 "\n"
23763 msgstr ""
23764
23765 # type: textblock
23766 #. type: textblock
23767 #: ../fish/guestfish-actions.pod:469
23768 msgid "See also L</blockdev-getsz>."
23769 msgstr ""
23770
23771 # type: =head2
23772 #. type: =head2
23773 #: ../fish/guestfish-actions.pod:473
23774 msgid "blockdev-getss"
23775 msgstr ""
23776
23777 # type: verbatim
23778 #. type: verbatim
23779 #: ../fish/guestfish-actions.pod:475
23780 #, no-wrap
23781 msgid ""
23782 " blockdev-getss device\n"
23783 "\n"
23784 msgstr ""
23785
23786 # type: textblock
23787 #. type: textblock
23788 #: ../fish/guestfish-actions.pod:480
23789 msgid ""
23790 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
23791 msgstr ""
23792
23793 # type: =head2
23794 #. type: =head2
23795 #: ../fish/guestfish-actions.pod:485
23796 msgid "blockdev-getsz"
23797 msgstr ""
23798
23799 # type: verbatim
23800 #. type: verbatim
23801 #: ../fish/guestfish-actions.pod:487
23802 #, no-wrap
23803 msgid ""
23804 " blockdev-getsz device\n"
23805 "\n"
23806 msgstr ""
23807
23808 # type: textblock
23809 #. type: textblock
23810 #: ../fish/guestfish-actions.pod:492
23811 msgid ""
23812 "See also L</blockdev-getss> for the real sector size of the device, and L</"
23813 "blockdev-getsize64> for the more useful I<size in bytes>."
23814 msgstr ""
23815
23816 # type: =head2
23817 #. type: =head2
23818 #: ../fish/guestfish-actions.pod:498
23819 msgid "blockdev-rereadpt"
23820 msgstr ""
23821
23822 # type: verbatim
23823 #. type: verbatim
23824 #: ../fish/guestfish-actions.pod:500
23825 #, no-wrap
23826 msgid ""
23827 " blockdev-rereadpt device\n"
23828 "\n"
23829 msgstr ""
23830
23831 # type: =head2
23832 #. type: =head2
23833 #: ../fish/guestfish-actions.pod:506
23834 msgid "blockdev-setbsz"
23835 msgstr ""
23836
23837 # type: verbatim
23838 #. type: verbatim
23839 #: ../fish/guestfish-actions.pod:508
23840 #, no-wrap
23841 msgid ""
23842 " blockdev-setbsz device blocksize\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: =head2
23847 #. type: =head2
23848 #: ../fish/guestfish-actions.pod:517
23849 msgid "blockdev-setro"
23850 msgstr ""
23851
23852 # type: verbatim
23853 #. type: verbatim
23854 #: ../fish/guestfish-actions.pod:519
23855 #, no-wrap
23856 msgid ""
23857 " blockdev-setro device\n"
23858 "\n"
23859 msgstr ""
23860
23861 # type: =head2
23862 #. type: =head2
23863 #: ../fish/guestfish-actions.pod:525
23864 msgid "blockdev-setrw"
23865 msgstr ""
23866
23867 # type: verbatim
23868 #. type: verbatim
23869 #: ../fish/guestfish-actions.pod:527
23870 #, no-wrap
23871 msgid ""
23872 " blockdev-setrw device\n"
23873 "\n"
23874 msgstr ""
23875
23876 # type: =head2
23877 #. type: =head2
23878 #: ../fish/guestfish-actions.pod:533
23879 msgid "case-sensitive-path"
23880 msgstr ""
23881
23882 # type: verbatim
23883 #. type: verbatim
23884 #: ../fish/guestfish-actions.pod:535
23885 #, no-wrap
23886 msgid ""
23887 " case-sensitive-path path\n"
23888 "\n"
23889 msgstr ""
23890
23891 # type: textblock
23892 #. type: textblock
23893 #: ../fish/guestfish-actions.pod:559
23894 msgid ""
23895 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
23896 "WINDOWS/system32\"> (the exact return value would depend on details of how "
23897 "the directories were originally created under Windows)."
23898 msgstr ""
23899
23900 # type: textblock
23901 #. type: textblock
23902 #: ../fish/guestfish-actions.pod:567
23903 msgid "See also L</realpath>."
23904 msgstr ""
23905
23906 # type: =head2
23907 #. type: =head2
23908 #: ../fish/guestfish-actions.pod:569
23909 msgid "cat"
23910 msgstr ""
23911
23912 # type: verbatim
23913 #. type: verbatim
23914 #: ../fish/guestfish-actions.pod:571
23915 #, no-wrap
23916 msgid ""
23917 " cat path\n"
23918 "\n"
23919 msgstr ""
23920
23921 # type: textblock
23922 #. type: textblock
23923 #: ../fish/guestfish-actions.pod:575
23924 msgid ""
23925 "Note that this function cannot correctly handle binary files (specifically, "
23926 "files containing C<\\0> character which is treated as end of string).  For "
23927 "those you need to use the L</read-file> or L</download> functions which have "
23928 "a more complex interface."
23929 msgstr ""
23930
23931 # type: =head2
23932 #. type: =head2
23933 #: ../fish/guestfish-actions.pod:583
23934 msgid "checksum"
23935 msgstr ""
23936
23937 # type: verbatim
23938 #. type: verbatim
23939 #: ../fish/guestfish-actions.pod:585
23940 #, no-wrap
23941 msgid ""
23942 " checksum csumtype path\n"
23943 "\n"
23944 msgstr ""
23945
23946 # type: textblock
23947 #. type: textblock
23948 #: ../fish/guestfish-actions.pod:628
23949 msgid "To get the checksum for a device, use L</checksum-device>."
23950 msgstr ""
23951
23952 # type: textblock
23953 #. type: textblock
23954 #: ../fish/guestfish-actions.pod:630
23955 msgid "To get the checksums for many files, use L</checksums-out>."
23956 msgstr ""
23957
23958 # type: =head2
23959 #. type: =head2
23960 #: ../fish/guestfish-actions.pod:632
23961 msgid "checksum-device"
23962 msgstr ""
23963
23964 # type: verbatim
23965 #. type: verbatim
23966 #: ../fish/guestfish-actions.pod:634
23967 #, no-wrap
23968 msgid ""
23969 " checksum-device csumtype device\n"
23970 "\n"
23971 msgstr ""
23972
23973 # type: textblock
23974 #. type: textblock
23975 #: ../fish/guestfish-actions.pod:636
23976 msgid ""
23977 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23978 "device named C<device>.  For the types of checksums supported see the L</"
23979 "checksum> command."
23980 msgstr ""
23981
23982 # type: =head2
23983 #. type: =head2
23984 #: ../fish/guestfish-actions.pod:640
23985 msgid "checksums-out"
23986 msgstr ""
23987
23988 # type: verbatim
23989 #. type: verbatim
23990 #: ../fish/guestfish-actions.pod:642
23991 #, no-wrap
23992 msgid ""
23993 " checksums-out csumtype directory (sumsfile|-)\n"
23994 "\n"
23995 msgstr ""
23996
23997 # type: =head2
23998 #. type: =head2
23999 #: ../fish/guestfish-actions.pod:658
24000 msgid "chmod"
24001 msgstr ""
24002
24003 # type: verbatim
24004 #. type: verbatim
24005 #: ../fish/guestfish-actions.pod:660
24006 #, no-wrap
24007 msgid ""
24008 " chmod mode path\n"
24009 "\n"
24010 msgstr ""
24011
24012 # type: =head2
24013 #. type: =head2
24014 #: ../fish/guestfish-actions.pod:671
24015 msgid "chown"
24016 msgstr ""
24017
24018 # type: verbatim
24019 #. type: verbatim
24020 #: ../fish/guestfish-actions.pod:673
24021 #, no-wrap
24022 msgid ""
24023 " chown owner group path\n"
24024 "\n"
24025 msgstr ""
24026
24027 # type: =head2
24028 #. type: =head2
24029 #: ../fish/guestfish-actions.pod:681
24030 msgid "command"
24031 msgstr ""
24032
24033 # type: verbatim
24034 #. type: verbatim
24035 #: ../fish/guestfish-actions.pod:683
24036 #, no-wrap
24037 msgid ""
24038 " command 'arguments ...'\n"
24039 "\n"
24040 msgstr ""
24041
24042 # type: textblock
24043 #. type: textblock
24044 #: ../fish/guestfish-actions.pod:690
24045 msgid ""
24046 "The single parameter is an argv-style list of arguments.  The first element "
24047 "is the name of the program to run.  Subsequent elements are parameters.  The "
24048 "list must be non-empty (ie. must contain a program name).  Note that the "
24049 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24050 msgstr ""
24051
24052 # type: =head2
24053 #. type: =head2
24054 #: ../fish/guestfish-actions.pod:718
24055 msgid "command-lines"
24056 msgstr ""
24057
24058 # type: verbatim
24059 #. type: verbatim
24060 #: ../fish/guestfish-actions.pod:720
24061 #, no-wrap
24062 msgid ""
24063 " command-lines 'arguments ...'\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: textblock
24068 #. type: textblock
24069 #: ../fish/guestfish-actions.pod:722
24070 msgid ""
24071 "This is the same as L</command>, but splits the result into a list of lines."
24072 msgstr ""
24073
24074 # type: textblock
24075 #. type: textblock
24076 #: ../fish/guestfish-actions.pod:725
24077 msgid "See also: L</sh-lines>"
24078 msgstr ""
24079
24080 # type: =head2
24081 #. type: =head2
24082 #: ../fish/guestfish-actions.pod:730
24083 msgid "config"
24084 msgstr ""
24085
24086 # type: verbatim
24087 #. type: verbatim
24088 #: ../fish/guestfish-actions.pod:732
24089 #, no-wrap
24090 msgid ""
24091 " config qemuparam qemuvalue\n"
24092 "\n"
24093 msgstr ""
24094
24095 # type: =head2
24096 #. type: =head2
24097 #: ../fish/guestfish-actions.pod:743
24098 msgid "copy-size"
24099 msgstr ""
24100
24101 # type: verbatim
24102 #. type: verbatim
24103 #: ../fish/guestfish-actions.pod:745
24104 #, no-wrap
24105 msgid ""
24106 " copy-size src dest size\n"
24107 "\n"
24108 msgstr ""
24109
24110 # type: =head2
24111 #. type: =head2
24112 #: ../fish/guestfish-actions.pod:753
24113 msgid "cp"
24114 msgstr ""
24115
24116 # type: verbatim
24117 #. type: verbatim
24118 #: ../fish/guestfish-actions.pod:755
24119 #, no-wrap
24120 msgid ""
24121 " cp src dest\n"
24122 "\n"
24123 msgstr ""
24124
24125 # type: =head2
24126 #. type: =head2
24127 #: ../fish/guestfish-actions.pod:760
24128 msgid "cp-a"
24129 msgstr ""
24130
24131 # type: verbatim
24132 #. type: verbatim
24133 #: ../fish/guestfish-actions.pod:762
24134 #, no-wrap
24135 msgid ""
24136 " cp-a src dest\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: =head2
24141 #. type: =head2
24142 #: ../fish/guestfish-actions.pod:767
24143 msgid "dd"
24144 msgstr ""
24145
24146 # type: verbatim
24147 #. type: verbatim
24148 #: ../fish/guestfish-actions.pod:769
24149 #, no-wrap
24150 msgid ""
24151 " dd src dest\n"
24152 "\n"
24153 msgstr ""
24154
24155 # type: textblock
24156 #. type: textblock
24157 #: ../fish/guestfish-actions.pod:776
24158 msgid ""
24159 "If the destination is a device, it must be as large or larger than the "
24160 "source file or device, otherwise the copy will fail.  This command cannot do "
24161 "partial copies (see L</copy-size>)."
24162 msgstr ""
24163
24164 # type: =head2
24165 #. type: =head2
24166 #: ../fish/guestfish-actions.pod:780
24167 msgid "df"
24168 msgstr ""
24169
24170 # type: verbatim
24171 #. type: verbatim
24172 #: ../fish/guestfish-actions.pod:782
24173 #, no-wrap
24174 msgid ""
24175 " df\n"
24176 "\n"
24177 msgstr ""
24178
24179 # type: textblock
24180 #. type: textblock
24181 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
24182 msgid ""
24183 "This command is mostly useful for interactive sessions.  It is I<not> "
24184 "intended that you try to parse the output string.  Use L</statvfs> from "
24185 "programs."
24186 msgstr ""
24187
24188 # type: =head2
24189 #. type: =head2
24190 #: ../fish/guestfish-actions.pod:790
24191 msgid "df-h"
24192 msgstr ""
24193
24194 # type: verbatim
24195 #. type: verbatim
24196 #: ../fish/guestfish-actions.pod:792
24197 #, no-wrap
24198 msgid ""
24199 " df-h\n"
24200 "\n"
24201 msgstr ""
24202
24203 # type: =head2
24204 #. type: =head2
24205 #: ../fish/guestfish-actions.pod:801
24206 msgid "dmesg"
24207 msgstr ""
24208
24209 # type: verbatim
24210 #. type: verbatim
24211 #: ../fish/guestfish-actions.pod:803
24212 #, no-wrap
24213 msgid ""
24214 " dmesg\n"
24215 "\n"
24216 msgstr ""
24217
24218 # type: textblock
24219 #. type: textblock
24220 #: ../fish/guestfish-actions.pod:809
24221 msgid ""
24222 "Another way to get the same information is to enable verbose messages with "
24223 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24224 "before running the program."
24225 msgstr ""
24226
24227 # type: =head2
24228 #. type: =head2
24229 #: ../fish/guestfish-actions.pod:814
24230 msgid "download"
24231 msgstr ""
24232
24233 # type: verbatim
24234 #. type: verbatim
24235 #: ../fish/guestfish-actions.pod:816
24236 #, no-wrap
24237 msgid ""
24238 " download remotefilename (filename|-)\n"
24239 "\n"
24240 msgstr ""
24241
24242 # type: textblock
24243 #. type: textblock
24244 #: ../fish/guestfish-actions.pod:823
24245 msgid "See also L</upload>, L</cat>."
24246 msgstr ""
24247
24248 # type: =head2
24249 #. type: =head2
24250 #: ../fish/guestfish-actions.pod:827
24251 msgid "download-offset"
24252 msgstr ""
24253
24254 # type: verbatim
24255 #. type: verbatim
24256 #: ../fish/guestfish-actions.pod:829
24257 #, no-wrap
24258 msgid ""
24259 " download-offset remotefilename (filename|-) offset size\n"
24260 "\n"
24261 msgstr ""
24262
24263 # type: textblock
24264 #. type: textblock
24265 #: ../fish/guestfish-actions.pod:837
24266 msgid ""
24267 "Note that there is no limit on the amount of data that can be downloaded "
24268 "with this call, unlike with L</pread>, and this call always reads the full "
24269 "amount unless an error occurs."
24270 msgstr ""
24271
24272 # type: textblock
24273 #. type: textblock
24274 #: ../fish/guestfish-actions.pod:842
24275 msgid "See also L</download>, L</pread>."
24276 msgstr ""
24277
24278 # type: =head2
24279 #. type: =head2
24280 #: ../fish/guestfish-actions.pod:846
24281 msgid "drop-caches"
24282 msgstr ""
24283
24284 # type: verbatim
24285 #. type: verbatim
24286 #: ../fish/guestfish-actions.pod:848
24287 #, no-wrap
24288 msgid ""
24289 " drop-caches whattodrop\n"
24290 "\n"
24291 msgstr ""
24292
24293 # type: =head2
24294 #. type: =head2
24295 #: ../fish/guestfish-actions.pod:860
24296 msgid "du"
24297 msgstr ""
24298
24299 # type: verbatim
24300 #. type: verbatim
24301 #: ../fish/guestfish-actions.pod:862
24302 #, no-wrap
24303 msgid ""
24304 " du path\n"
24305 "\n"
24306 msgstr ""
24307
24308 # type: =head2
24309 #. type: =head2
24310 #: ../fish/guestfish-actions.pod:874
24311 msgid "e2fsck-f"
24312 msgstr ""
24313
24314 # type: verbatim
24315 #. type: verbatim
24316 #: ../fish/guestfish-actions.pod:876
24317 #, no-wrap
24318 msgid ""
24319 " e2fsck-f device\n"
24320 "\n"
24321 msgstr ""
24322
24323 # type: textblock
24324 #. type: textblock
24325 #: ../fish/guestfish-actions.pod:882
24326 msgid ""
24327 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24328 "should use L</fsck>."
24329 msgstr ""
24330
24331 # type: =head2
24332 #. type: =head2
24333 #: ../fish/guestfish-actions.pod:885
24334 msgid "echo-daemon"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #. type: verbatim
24339 #: ../fish/guestfish-actions.pod:887
24340 #, no-wrap
24341 msgid ""
24342 " echo-daemon 'words ...'\n"
24343 "\n"
24344 msgstr ""
24345
24346 # type: textblock
24347 #. type: textblock
24348 #: ../fish/guestfish-actions.pod:894
24349 msgid "See also L</ping-daemon>."
24350 msgstr ""
24351
24352 # type: =head2
24353 #. type: =head2
24354 #: ../fish/guestfish-actions.pod:896
24355 msgid "egrep"
24356 msgstr ""
24357
24358 # type: verbatim
24359 #. type: verbatim
24360 #: ../fish/guestfish-actions.pod:898
24361 #, no-wrap
24362 msgid ""
24363 " egrep regex path\n"
24364 "\n"
24365 msgstr ""
24366
24367 # type: =head2
24368 #. type: =head2
24369 #: ../fish/guestfish-actions.pod:906
24370 msgid "egrepi"
24371 msgstr ""
24372
24373 # type: verbatim
24374 #. type: verbatim
24375 #: ../fish/guestfish-actions.pod:908
24376 #, no-wrap
24377 msgid ""
24378 " egrepi regex path\n"
24379 "\n"
24380 msgstr ""
24381
24382 # type: =head2
24383 #. type: =head2
24384 #: ../fish/guestfish-actions.pod:916
24385 msgid "equal"
24386 msgstr ""
24387
24388 # type: verbatim
24389 #. type: verbatim
24390 #: ../fish/guestfish-actions.pod:918
24391 #, no-wrap
24392 msgid ""
24393 " equal file1 file2\n"
24394 "\n"
24395 msgstr ""
24396
24397 # type: =head2
24398 #. type: =head2
24399 #: ../fish/guestfish-actions.pod:925
24400 msgid "exists"
24401 msgstr ""
24402
24403 # type: verbatim
24404 #. type: verbatim
24405 #: ../fish/guestfish-actions.pod:927
24406 #, no-wrap
24407 msgid ""
24408 " exists path\n"
24409 "\n"
24410 msgstr ""
24411
24412 # type: textblock
24413 #. type: textblock
24414 #: ../fish/guestfish-actions.pod:932
24415 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24416 msgstr ""
24417
24418 # type: =head2
24419 #. type: =head2
24420 #: ../fish/guestfish-actions.pod:934
24421 msgid "fallocate"
24422 msgstr ""
24423
24424 # type: verbatim
24425 #. type: verbatim
24426 #: ../fish/guestfish-actions.pod:936
24427 #, no-wrap
24428 msgid ""
24429 " fallocate path len\n"
24430 "\n"
24431 msgstr ""
24432
24433 # type: =head2
24434 #. type: =head2
24435 #: ../fish/guestfish-actions.pod:953
24436 msgid "fallocate64"
24437 msgstr ""
24438
24439 # type: verbatim
24440 #. type: verbatim
24441 #: ../fish/guestfish-actions.pod:955
24442 #, no-wrap
24443 msgid ""
24444 " fallocate64 path len\n"
24445 "\n"
24446 msgstr ""
24447
24448 # type: textblock
24449 #. type: textblock
24450 #: ../fish/guestfish-actions.pod:961
24451 msgid ""
24452 "Note that this call allocates disk blocks for the file.  To create a sparse "
24453 "file use L</truncate-size> instead."
24454 msgstr ""
24455
24456 # type: textblock
24457 #. type: textblock
24458 #: ../fish/guestfish-actions.pod:964
24459 msgid ""
24460 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24461 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24462 "maximum size of files created through that call to 1GB."
24463 msgstr ""
24464
24465 # type: =head2
24466 #. type: =head2
24467 #: ../fish/guestfish-actions.pod:973
24468 msgid "fgrep"
24469 msgstr ""
24470
24471 # type: verbatim
24472 #. type: verbatim
24473 #: ../fish/guestfish-actions.pod:975
24474 #, no-wrap
24475 msgid ""
24476 " fgrep pattern path\n"
24477 "\n"
24478 msgstr ""
24479
24480 # type: =head2
24481 #. type: =head2
24482 #: ../fish/guestfish-actions.pod:983
24483 msgid "fgrepi"
24484 msgstr ""
24485
24486 # type: verbatim
24487 #. type: verbatim
24488 #: ../fish/guestfish-actions.pod:985
24489 #, no-wrap
24490 msgid ""
24491 " fgrepi pattern path\n"
24492 "\n"
24493 msgstr ""
24494
24495 # type: =head2
24496 #. type: =head2
24497 #: ../fish/guestfish-actions.pod:993
24498 msgid "file"
24499 msgstr ""
24500
24501 # type: verbatim
24502 #. type: verbatim
24503 #: ../fish/guestfish-actions.pod:995
24504 #, no-wrap
24505 msgid ""
24506 " file path\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: textblock
24511 #. type: textblock
24512 #: ../fish/guestfish-actions.pod:1007
24513 msgid ""
24514 "This command can also be used on C</dev/> devices (and partitions, LV "
24515 "names).  You can for example use this to determine if a device contains a "
24516 "filesystem, although it's usually better to use L</vfs-type>."
24517 msgstr ""
24518
24519 # type: =head2
24520 #. type: =head2
24521 #: ../fish/guestfish-actions.pod:1017
24522 msgid "file-architecture"
24523 msgstr ""
24524
24525 # type: verbatim
24526 #. type: verbatim
24527 #: ../fish/guestfish-actions.pod:1019
24528 #, no-wrap
24529 msgid ""
24530 " file-architecture filename\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: =head2
24535 #. type: =head2
24536 #: ../fish/guestfish-actions.pod:1122
24537 msgid "filesize"
24538 msgstr ""
24539
24540 # type: verbatim
24541 #. type: verbatim
24542 #: ../fish/guestfish-actions.pod:1124
24543 #, no-wrap
24544 msgid ""
24545 " filesize file\n"
24546 "\n"
24547 msgstr ""
24548
24549 # type: textblock
24550 #. type: textblock
24551 #: ../fish/guestfish-actions.pod:1128
24552 msgid ""
24553 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24554 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24555 msgstr ""
24556
24557 # type: =head2
24558 #. type: =head2
24559 #: ../fish/guestfish-actions.pod:1132
24560 msgid "fill"
24561 msgstr ""
24562
24563 # type: verbatim
24564 #. type: verbatim
24565 #: ../fish/guestfish-actions.pod:1134
24566 #, no-wrap
24567 msgid ""
24568 " fill c len path\n"
24569 "\n"
24570 msgstr ""
24571
24572 # type: textblock
24573 #. type: textblock
24574 #: ../fish/guestfish-actions.pod:1140
24575 msgid ""
24576 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24577 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
24578 "L</fill-pattern>."
24579 msgstr ""
24580
24581 # type: =head2
24582 #. type: =head2
24583 #: ../fish/guestfish-actions.pod:1145
24584 msgid "fill-pattern"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #. type: verbatim
24589 #: ../fish/guestfish-actions.pod:1147
24590 #, no-wrap
24591 msgid ""
24592 " fill-pattern pattern len path\n"
24593 "\n"
24594 msgstr ""
24595
24596 # type: textblock
24597 #. type: textblock
24598 #: ../fish/guestfish-actions.pod:1149
24599 msgid ""
24600 "This function is like L</fill> except that it creates a new file of length "
24601 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
24602 "is truncated if necessary to ensure the length of the file is exactly C<len> "
24603 "bytes."
24604 msgstr ""
24605
24606 # type: =head2
24607 #. type: =head2
24608 #: ../fish/guestfish-actions.pod:1154
24609 msgid "find"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #. type: verbatim
24614 #: ../fish/guestfish-actions.pod:1156
24615 #, no-wrap
24616 msgid ""
24617 " find directory\n"
24618 "\n"
24619 msgstr ""
24620
24621 # type: textblock
24622 #. type: textblock
24623 #: ../fish/guestfish-actions.pod:1170
24624 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24625 msgstr ""
24626
24627 # type: textblock
24628 #. type: textblock
24629 #: ../fish/guestfish-actions.pod:1183
24630 msgid "See also L</find0>."
24631 msgstr ""
24632
24633 # type: =head2
24634 #. type: =head2
24635 #: ../fish/guestfish-actions.pod:1188
24636 msgid "find0"
24637 msgstr ""
24638
24639 # type: verbatim
24640 #. type: verbatim
24641 #: ../fish/guestfish-actions.pod:1190
24642 #, no-wrap
24643 msgid ""
24644 " find0 directory (files|-)\n"
24645 "\n"
24646 msgstr ""
24647
24648 # type: textblock
24649 #. type: textblock
24650 #: ../fish/guestfish-actions.pod:1196
24651 msgid ""
24652 "This command works the same way as L</find> with the following exceptions:"
24653 msgstr ""
24654
24655 # type: =head2
24656 #. type: =head2
24657 #: ../fish/guestfish-actions.pod:1223
24658 msgid "findfs-label"
24659 msgstr ""
24660
24661 # type: verbatim
24662 #. type: verbatim
24663 #: ../fish/guestfish-actions.pod:1225
24664 #, no-wrap
24665 msgid ""
24666 " findfs-label label\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: textblock
24671 #. type: textblock
24672 #: ../fish/guestfish-actions.pod:1231
24673 msgid "To find the label of a filesystem, use L</vfs-label>."
24674 msgstr ""
24675
24676 # type: =head2
24677 #. type: =head2
24678 #: ../fish/guestfish-actions.pod:1233
24679 msgid "findfs-uuid"
24680 msgstr ""
24681
24682 # type: verbatim
24683 #. type: verbatim
24684 #: ../fish/guestfish-actions.pod:1235
24685 #, no-wrap
24686 msgid ""
24687 " findfs-uuid uuid\n"
24688 "\n"
24689 msgstr ""
24690
24691 # type: textblock
24692 #. type: textblock
24693 #: ../fish/guestfish-actions.pod:1241
24694 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24695 msgstr ""
24696
24697 # type: =head2
24698 #. type: =head2
24699 #: ../fish/guestfish-actions.pod:1243
24700 msgid "fsck"
24701 msgstr ""
24702
24703 # type: verbatim
24704 #. type: verbatim
24705 #: ../fish/guestfish-actions.pod:1245
24706 #, no-wrap
24707 msgid ""
24708 " fsck fstype device\n"
24709 "\n"
24710 msgstr ""
24711
24712 # type: =head2
24713 #. type: =head2
24714 #: ../fish/guestfish-actions.pod:1275
24715 msgid "get-append"
24716 msgstr ""
24717
24718 # type: verbatim
24719 #. type: verbatim
24720 #: ../fish/guestfish-actions.pod:1277
24721 #, no-wrap
24722 msgid ""
24723 " get-append\n"
24724 "\n"
24725 msgstr ""
24726
24727 # type: =head2
24728 #. type: =head2
24729 #: ../fish/guestfish-actions.pod:1284
24730 msgid "get-autosync"
24731 msgstr ""
24732
24733 # type: verbatim
24734 #. type: verbatim
24735 #: ../fish/guestfish-actions.pod:1286
24736 #, no-wrap
24737 msgid ""
24738 " get-autosync\n"
24739 "\n"
24740 msgstr ""
24741
24742 # type: =head2
24743 #. type: =head2
24744 #: ../fish/guestfish-actions.pod:1290
24745 msgid "get-direct"
24746 msgstr ""
24747
24748 # type: verbatim
24749 #. type: verbatim
24750 #: ../fish/guestfish-actions.pod:1292
24751 #, no-wrap
24752 msgid ""
24753 " get-direct\n"
24754 "\n"
24755 msgstr ""
24756
24757 # type: =head2
24758 #. type: =head2
24759 #: ../fish/guestfish-actions.pod:1296
24760 msgid "get-e2label"
24761 msgstr ""
24762
24763 # type: verbatim
24764 #. type: verbatim
24765 #: ../fish/guestfish-actions.pod:1298
24766 #, no-wrap
24767 msgid ""
24768 " get-e2label device\n"
24769 "\n"
24770 msgstr ""
24771
24772 # type: =head2
24773 #. type: =head2
24774 #: ../fish/guestfish-actions.pod:1310
24775 msgid "get-e2uuid"
24776 msgstr ""
24777
24778 # type: verbatim
24779 #. type: verbatim
24780 #: ../fish/guestfish-actions.pod:1312
24781 #, no-wrap
24782 msgid ""
24783 " get-e2uuid device\n"
24784 "\n"
24785 msgstr ""
24786
24787 # type: =head2
24788 #. type: =head2
24789 #: ../fish/guestfish-actions.pod:1324
24790 msgid "get-memsize"
24791 msgstr ""
24792
24793 # type: verbatim
24794 #. type: verbatim
24795 #: ../fish/guestfish-actions.pod:1326
24796 #, no-wrap
24797 msgid ""
24798 " get-memsize\n"
24799 "\n"
24800 msgstr ""
24801
24802 # type: textblock
24803 #. type: textblock
24804 #: ../fish/guestfish-actions.pod:1331
24805 msgid ""
24806 "If L</set-memsize> was not called on this handle, and if "
24807 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
24808 "value for memsize."
24809 msgstr ""
24810
24811 # type: =head2
24812 #. type: =head2
24813 #: ../fish/guestfish-actions.pod:1338
24814 msgid "get-network"
24815 msgstr ""
24816
24817 # type: verbatim
24818 #. type: verbatim
24819 #: ../fish/guestfish-actions.pod:1340
24820 #, no-wrap
24821 msgid ""
24822 " get-network\n"
24823 "\n"
24824 msgstr ""
24825
24826 # type: =head2
24827 #. type: =head2
24828 #: ../fish/guestfish-actions.pod:1344
24829 msgid "get-path"
24830 msgstr ""
24831
24832 # type: verbatim
24833 #. type: verbatim
24834 #: ../fish/guestfish-actions.pod:1346
24835 #, no-wrap
24836 msgid ""
24837 " get-path\n"
24838 "\n"
24839 msgstr ""
24840
24841 # type: =head2
24842 #. type: =head2
24843 #: ../fish/guestfish-actions.pod:1353
24844 msgid "get-pid"
24845 msgstr ""
24846
24847 # type: =head2
24848 #. type: =head2
24849 #: ../fish/guestfish-actions.pod:1355
24850 msgid "pid"
24851 msgstr ""
24852
24853 # type: verbatim
24854 #. type: verbatim
24855 #: ../fish/guestfish-actions.pod:1357
24856 #, no-wrap
24857 msgid ""
24858 " get-pid\n"
24859 "\n"
24860 msgstr ""
24861
24862 # type: =head2
24863 #. type: =head2
24864 #: ../fish/guestfish-actions.pod:1364
24865 msgid "get-qemu"
24866 msgstr ""
24867
24868 # type: verbatim
24869 #. type: verbatim
24870 #: ../fish/guestfish-actions.pod:1366
24871 #, no-wrap
24872 msgid ""
24873 " get-qemu\n"
24874 "\n"
24875 msgstr ""
24876
24877 # type: =head2
24878 #. type: =head2
24879 #: ../fish/guestfish-actions.pod:1373
24880 msgid "get-recovery-proc"
24881 msgstr ""
24882
24883 # type: verbatim
24884 #. type: verbatim
24885 #: ../fish/guestfish-actions.pod:1375
24886 #, no-wrap
24887 msgid ""
24888 " get-recovery-proc\n"
24889 "\n"
24890 msgstr ""
24891
24892 # type: =head2
24893 #. type: =head2
24894 #: ../fish/guestfish-actions.pod:1379
24895 msgid "get-selinux"
24896 msgstr ""
24897
24898 # type: verbatim
24899 #. type: verbatim
24900 #: ../fish/guestfish-actions.pod:1381
24901 #, no-wrap
24902 msgid ""
24903 " get-selinux\n"
24904 "\n"
24905 msgstr ""
24906
24907 # type: textblock
24908 #. type: textblock
24909 #: ../fish/guestfish-actions.pod:1383
24910 msgid ""
24911 "This returns the current setting of the selinux flag which is passed to the "
24912 "appliance at boot time.  See L</set-selinux>."
24913 msgstr ""
24914
24915 # type: =head2
24916 #. type: =head2
24917 #: ../fish/guestfish-actions.pod:1389
24918 msgid "get-state"
24919 msgstr ""
24920
24921 # type: verbatim
24922 #. type: verbatim
24923 #: ../fish/guestfish-actions.pod:1391
24924 #, no-wrap
24925 msgid ""
24926 " get-state\n"
24927 "\n"
24928 msgstr ""
24929
24930 # type: =head2
24931 #. type: =head2
24932 #: ../fish/guestfish-actions.pod:1398
24933 msgid "get-trace"
24934 msgstr ""
24935
24936 # type: verbatim
24937 #. type: verbatim
24938 #: ../fish/guestfish-actions.pod:1400
24939 #, no-wrap
24940 msgid ""
24941 " get-trace\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: =head2
24946 #. type: =head2
24947 #: ../fish/guestfish-actions.pod:1404
24948 msgid "get-umask"
24949 msgstr ""
24950
24951 # type: verbatim
24952 #. type: verbatim
24953 #: ../fish/guestfish-actions.pod:1406
24954 #, no-wrap
24955 msgid ""
24956 " get-umask\n"
24957 "\n"
24958 msgstr ""
24959
24960 # type: textblock
24961 #. type: textblock
24962 #: ../fish/guestfish-actions.pod:1408
24963 msgid ""
24964 "Return the current umask.  By default the umask is C<022> unless it has been "
24965 "set by calling L</umask>."
24966 msgstr ""
24967
24968 # type: =head2
24969 #. type: =head2
24970 #: ../fish/guestfish-actions.pod:1411
24971 msgid "get-verbose"
24972 msgstr ""
24973
24974 # type: verbatim
24975 #. type: verbatim
24976 #: ../fish/guestfish-actions.pod:1413
24977 #, no-wrap
24978 msgid ""
24979 " get-verbose\n"
24980 "\n"
24981 msgstr ""
24982
24983 # type: =head2
24984 #. type: =head2
24985 #: ../fish/guestfish-actions.pod:1417
24986 msgid "getcon"
24987 msgstr ""
24988
24989 # type: verbatim
24990 #. type: verbatim
24991 #: ../fish/guestfish-actions.pod:1419
24992 #, no-wrap
24993 msgid ""
24994 " getcon\n"
24995 "\n"
24996 msgstr ""
24997
24998 # type: textblock
24999 #. type: textblock
25000 #: ../fish/guestfish-actions.pod:1423
25001 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25002 msgstr ""
25003
25004 # type: =head2
25005 #. type: =head2
25006 #: ../fish/guestfish-actions.pod:1426
25007 msgid "getxattr"
25008 msgstr ""
25009
25010 # type: verbatim
25011 #. type: verbatim
25012 #: ../fish/guestfish-actions.pod:1428
25013 #, no-wrap
25014 msgid ""
25015 " getxattr path name\n"
25016 "\n"
25017 msgstr ""
25018
25019 # type: textblock
25020 #. type: textblock
25021 #: ../fish/guestfish-actions.pod:1430
25022 msgid ""
25023 "Get a single extended attribute from file C<path> named C<name>.  This call "
25024 "follows symlinks.  If you want to lookup an extended attribute for the "
25025 "symlink itself, use L</lgetxattr>."
25026 msgstr ""
25027
25028 # type: textblock
25029 #. type: textblock
25030 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2265
25031 msgid ""
25032 "Normally it is better to get all extended attributes from a file in one go "
25033 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25034 "buggy and do not provide a way to list out attributes.  For these "
25035 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25036 "attributes you want in advance and call this function."
25037 msgstr ""
25038
25039 # type: textblock
25040 #. type: textblock
25041 #: ../fish/guestfish-actions.pod:1444
25042 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25043 msgstr ""
25044
25045 # type: =head2
25046 #. type: =head2
25047 #: ../fish/guestfish-actions.pod:1446
25048 msgid "getxattrs"
25049 msgstr ""
25050
25051 # type: verbatim
25052 #. type: verbatim
25053 #: ../fish/guestfish-actions.pod:1448
25054 #, no-wrap
25055 msgid ""
25056 " getxattrs path\n"
25057 "\n"
25058 msgstr ""
25059
25060 # type: textblock
25061 #. type: textblock
25062 #: ../fish/guestfish-actions.pod:1456
25063 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25064 msgstr ""
25065
25066 # type: =head2
25067 #. type: =head2
25068 #: ../fish/guestfish-actions.pod:1458
25069 msgid "glob-expand"
25070 msgstr ""
25071
25072 # type: verbatim
25073 #. type: verbatim
25074 #: ../fish/guestfish-actions.pod:1460
25075 #, no-wrap
25076 msgid ""
25077 " glob-expand pattern\n"
25078 "\n"
25079 msgstr ""
25080
25081 # type: =head2
25082 #. type: =head2
25083 #: ../fish/guestfish-actions.pod:1473
25084 msgid "grep"
25085 msgstr ""
25086
25087 # type: verbatim
25088 #. type: verbatim
25089 #: ../fish/guestfish-actions.pod:1475
25090 #, no-wrap
25091 msgid ""
25092 " grep regex path\n"
25093 "\n"
25094 msgstr ""
25095
25096 # type: =head2
25097 #. type: =head2
25098 #: ../fish/guestfish-actions.pod:1483
25099 msgid "grepi"
25100 msgstr ""
25101
25102 # type: verbatim
25103 #. type: verbatim
25104 #: ../fish/guestfish-actions.pod:1485
25105 #, no-wrap
25106 msgid ""
25107 " grepi regex path\n"
25108 "\n"
25109 msgstr ""
25110
25111 # type: =head2
25112 #. type: =head2
25113 #: ../fish/guestfish-actions.pod:1493
25114 msgid "grub-install"
25115 msgstr ""
25116
25117 # type: verbatim
25118 #. type: verbatim
25119 #: ../fish/guestfish-actions.pod:1495
25120 #, no-wrap
25121 msgid ""
25122 " grub-install root device\n"
25123 "\n"
25124 msgstr ""
25125
25126 # type: =head2
25127 #. type: =head2
25128 #: ../fish/guestfish-actions.pod:1511
25129 msgid "head"
25130 msgstr ""
25131
25132 # type: verbatim
25133 #. type: verbatim
25134 #: ../fish/guestfish-actions.pod:1513
25135 #, no-wrap
25136 msgid ""
25137 " head path\n"
25138 "\n"
25139 msgstr ""
25140
25141 # type: =head2
25142 #. type: =head2
25143 #: ../fish/guestfish-actions.pod:1521
25144 msgid "head-n"
25145 msgstr ""
25146
25147 # type: verbatim
25148 #. type: verbatim
25149 #: ../fish/guestfish-actions.pod:1523
25150 #, no-wrap
25151 msgid ""
25152 " head-n nrlines path\n"
25153 "\n"
25154 msgstr ""
25155
25156 # type: =head2
25157 #. type: =head2
25158 #: ../fish/guestfish-actions.pod:1536
25159 msgid "hexdump"
25160 msgstr ""
25161
25162 # type: verbatim
25163 #. type: verbatim
25164 #: ../fish/guestfish-actions.pod:1538
25165 #, no-wrap
25166 msgid ""
25167 " hexdump path\n"
25168 "\n"
25169 msgstr ""
25170
25171 # type: =head2
25172 #. type: =head2
25173 #: ../fish/guestfish-actions.pod:1546
25174 msgid "initrd-cat"
25175 msgstr ""
25176
25177 # type: verbatim
25178 #. type: verbatim
25179 #: ../fish/guestfish-actions.pod:1548
25180 #, no-wrap
25181 msgid ""
25182 " initrd-cat initrdpath filename\n"
25183 "\n"
25184 msgstr ""
25185
25186 # type: textblock
25187 #. type: textblock
25188 #: ../fish/guestfish-actions.pod:1560
25189 msgid "See also L</initrd-list>."
25190 msgstr ""
25191
25192 # type: =head2
25193 #. type: =head2
25194 #: ../fish/guestfish-actions.pod:1565
25195 msgid "initrd-list"
25196 msgstr ""
25197
25198 # type: verbatim
25199 #. type: verbatim
25200 #: ../fish/guestfish-actions.pod:1567
25201 #, no-wrap
25202 msgid ""
25203 " initrd-list path\n"
25204 "\n"
25205 msgstr ""
25206
25207 # type: =head2
25208 #. type: =head2
25209 #: ../fish/guestfish-actions.pod:1579
25210 msgid "inotify-add-watch"
25211 msgstr ""
25212
25213 # type: verbatim
25214 #. type: verbatim
25215 #: ../fish/guestfish-actions.pod:1581
25216 #, no-wrap
25217 msgid ""
25218 " inotify-add-watch path mask\n"
25219 "\n"
25220 msgstr ""
25221
25222 # type: =head2
25223 #. type: =head2
25224 #: ../fish/guestfish-actions.pod:1593
25225 msgid "inotify-close"
25226 msgstr ""
25227
25228 # type: verbatim
25229 #. type: verbatim
25230 #: ../fish/guestfish-actions.pod:1595
25231 #, no-wrap
25232 msgid ""
25233 " inotify-close\n"
25234 "\n"
25235 msgstr ""
25236
25237 # type: =head2
25238 #. type: =head2
25239 #: ../fish/guestfish-actions.pod:1601
25240 msgid "inotify-files"
25241 msgstr ""
25242
25243 # type: verbatim
25244 #. type: verbatim
25245 #: ../fish/guestfish-actions.pod:1603
25246 #, no-wrap
25247 msgid ""
25248 " inotify-files\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: textblock
25253 #. type: textblock
25254 #: ../fish/guestfish-actions.pod:1605
25255 msgid ""
25256 "This function is a helpful wrapper around L</inotify-read> which just "
25257 "returns a list of pathnames of objects that were touched.  The returned "
25258 "pathnames are sorted and deduplicated."
25259 msgstr ""
25260
25261 # type: =head2
25262 #. type: =head2
25263 #: ../fish/guestfish-actions.pod:1609
25264 msgid "inotify-init"
25265 msgstr ""
25266
25267 # type: verbatim
25268 #. type: verbatim
25269 #: ../fish/guestfish-actions.pod:1611
25270 #, no-wrap
25271 msgid ""
25272 " inotify-init maxevents\n"
25273 "\n"
25274 msgstr ""
25275
25276 # type: textblock
25277 #. type: textblock
25278 #: ../fish/guestfish-actions.pod:1617
25279 msgid ""
25280 "C<maxevents> is the maximum number of events which will be queued up between "
25281 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
25282 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
25283 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
25284 "but records the fact that it threw them away by setting a flag "
25285 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25286 msgstr ""
25287
25288 # type: textblock
25289 #. type: textblock
25290 #: ../fish/guestfish-actions.pod:1627
25291 msgid ""
25292 "Before any events are generated, you have to add some watches to the "
25293 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
25294 "L</inotify-watch-all>."
25295 msgstr ""
25296
25297 # type: textblock
25298 #. type: textblock
25299 #: ../fish/guestfish-actions.pod:1633
25300 msgid ""
25301 "Queued up events should be read periodically by calling L</inotify-read> (or "
25302 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
25303 "If you don't read the events out often enough then you risk the internal "
25304 "queue overflowing."
25305 msgstr ""
25306
25307 # type: textblock
25308 #. type: textblock
25309 #: ../fish/guestfish-actions.pod:1640
25310 msgid ""
25311 "The handle should be closed after use by calling L</inotify-close>.  This "
25312 "also removes any watches automatically."
25313 msgstr ""
25314
25315 # type: =head2
25316 #. type: =head2
25317 #: ../fish/guestfish-actions.pod:1649
25318 msgid "inotify-read"
25319 msgstr ""
25320
25321 # type: verbatim
25322 #. type: verbatim
25323 #: ../fish/guestfish-actions.pod:1651
25324 #, no-wrap
25325 msgid ""
25326 " inotify-read\n"
25327 "\n"
25328 msgstr ""
25329
25330 # type: =head2
25331 #. type: =head2
25332 #: ../fish/guestfish-actions.pod:1664
25333 msgid "inotify-rm-watch"
25334 msgstr ""
25335
25336 # type: verbatim
25337 #. type: verbatim
25338 #: ../fish/guestfish-actions.pod:1666
25339 #, no-wrap
25340 msgid ""
25341 " inotify-rm-watch wd\n"
25342 "\n"
25343 msgstr ""
25344
25345 # type: textblock
25346 #. type: textblock
25347 #: ../fish/guestfish-actions.pod:1668
25348 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25349 msgstr ""
25350
25351 # type: =head2
25352 #. type: =head2
25353 #: ../fish/guestfish-actions.pod:1671
25354 msgid "inspect-get-arch"
25355 msgstr ""
25356
25357 # type: verbatim
25358 #. type: verbatim
25359 #: ../fish/guestfish-actions.pod:1673
25360 #, no-wrap
25361 msgid ""
25362 " inspect-get-arch root\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: textblock
25367 #. type: textblock
25368 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691
25369 #: ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783
25370 #: ../fish/guestfish-actions.pod:1798 ../fish/guestfish-actions.pod:1819
25371 #: ../fish/guestfish-actions.pod:1834 ../fish/guestfish-actions.pod:1861
25372 #: ../fish/guestfish-actions.pod:1883 ../fish/guestfish-actions.pod:1907
25373 #: ../fish/guestfish-actions.pod:1937 ../fish/guestfish-actions.pod:1972
25374 #: ../fish/guestfish-actions.pod:1988
25375 msgid ""
25376 "This function should only be called with a root device string as returned by "
25377 "L</inspect-os>."
25378 msgstr ""
25379
25380 # type: textblock
25381 #. type: textblock
25382 #: ../fish/guestfish-actions.pod:1678
25383 msgid ""
25384 "This returns the architecture of the inspected operating system.  The "
25385 "possible return values are listed under L</file-architecture>."
25386 msgstr ""
25387
25388 # type: =head2
25389 #. type: =head2
25390 #: ../fish/guestfish-actions.pod:1687
25391 msgid "inspect-get-distro"
25392 msgstr ""
25393
25394 # type: verbatim
25395 #. type: verbatim
25396 #: ../fish/guestfish-actions.pod:1689
25397 #, no-wrap
25398 msgid ""
25399 " inspect-get-distro root\n"
25400 "\n"
25401 msgstr ""
25402
25403 # type: =head2
25404 #. type: =head2
25405 #: ../fish/guestfish-actions.pod:1761
25406 msgid "inspect-get-filesystems"
25407 msgstr ""
25408
25409 # type: verbatim
25410 #. type: verbatim
25411 #: ../fish/guestfish-actions.pod:1763
25412 #, no-wrap
25413 msgid ""
25414 " inspect-get-filesystems root\n"
25415 "\n"
25416 msgstr ""
25417
25418 # type: textblock
25419 #. type: textblock
25420 #: ../fish/guestfish-actions.pod:1776
25421 msgid ""
25422 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25423 "get-mountpoints>."
25424 msgstr ""
25425
25426 # type: =head2
25427 #. type: =head2
25428 #: ../fish/guestfish-actions.pod:1779
25429 msgid "inspect-get-hostname"
25430 msgstr ""
25431
25432 # type: verbatim
25433 #. type: verbatim
25434 #: ../fish/guestfish-actions.pod:1781
25435 #, no-wrap
25436 msgid ""
25437 " inspect-get-hostname root\n"
25438 "\n"
25439 msgstr ""
25440
25441 # type: =head2
25442 #. type: =head2
25443 #: ../fish/guestfish-actions.pod:1794
25444 msgid "inspect-get-major-version"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #. type: verbatim
25449 #: ../fish/guestfish-actions.pod:1796
25450 #, no-wrap
25451 msgid ""
25452 " inspect-get-major-version root\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: =head2
25457 #. type: =head2
25458 #: ../fish/guestfish-actions.pod:1815
25459 msgid "inspect-get-minor-version"
25460 msgstr ""
25461
25462 # type: verbatim
25463 #. type: verbatim
25464 #: ../fish/guestfish-actions.pod:1817
25465 #, no-wrap
25466 msgid ""
25467 " inspect-get-minor-version root\n"
25468 "\n"
25469 msgstr ""
25470
25471 # type: textblock
25472 #. type: textblock
25473 #: ../fish/guestfish-actions.pod:1827
25474 msgid ""
25475 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25476 "get-major-version>."
25477 msgstr ""
25478
25479 # type: =head2
25480 #. type: =head2
25481 #: ../fish/guestfish-actions.pod:1830
25482 msgid "inspect-get-mountpoints"
25483 msgstr ""
25484
25485 # type: verbatim
25486 #. type: verbatim
25487 #: ../fish/guestfish-actions.pod:1832
25488 #, no-wrap
25489 msgid ""
25490 " inspect-get-mountpoints root\n"
25491 "\n"
25492 msgstr ""
25493
25494 # type: textblock
25495 #. type: textblock
25496 #: ../fish/guestfish-actions.pod:1854
25497 msgid ""
25498 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25499 "get-filesystems>."
25500 msgstr ""
25501
25502 # type: =head2
25503 #. type: =head2
25504 #: ../fish/guestfish-actions.pod:1857
25505 msgid "inspect-get-package-format"
25506 msgstr ""
25507
25508 # type: verbatim
25509 #. type: verbatim
25510 #: ../fish/guestfish-actions.pod:1859
25511 #, no-wrap
25512 msgid ""
25513 " inspect-get-package-format root\n"
25514 "\n"
25515 msgstr ""
25516
25517 # type: textblock
25518 #. type: textblock
25519 #: ../fish/guestfish-actions.pod:1864
25520 msgid ""
25521 "This function and L</inspect-get-package-management> return the package "
25522 "format and package management tool used by the inspected operating system.  "
25523 "For example for Fedora these functions would return C<rpm> (package format) "
25524 "and C<yum> (package management)."
25525 msgstr ""
25526
25527 # type: =head2
25528 #. type: =head2
25529 #: ../fish/guestfish-actions.pod:1879
25530 msgid "inspect-get-package-management"
25531 msgstr ""
25532
25533 # type: verbatim
25534 #. type: verbatim
25535 #: ../fish/guestfish-actions.pod:1881
25536 #, no-wrap
25537 msgid ""
25538 " inspect-get-package-management root\n"
25539 "\n"
25540 msgstr ""
25541
25542 # type: textblock
25543 #. type: textblock
25544 #: ../fish/guestfish-actions.pod:1886
25545 msgid ""
25546 "L</inspect-get-package-format> and this function return the package format "
25547 "and package management tool used by the inspected operating system.  For "
25548 "example for Fedora these functions would return C<rpm> (package format) and "
25549 "C<yum> (package management)."
25550 msgstr ""
25551
25552 # type: =head2
25553 #. type: =head2
25554 #: ../fish/guestfish-actions.pod:1903
25555 msgid "inspect-get-product-name"
25556 msgstr ""
25557
25558 # type: verbatim
25559 #. type: verbatim
25560 #: ../fish/guestfish-actions.pod:1905
25561 #, no-wrap
25562 msgid ""
25563 " inspect-get-product-name root\n"
25564 "\n"
25565 msgstr ""
25566
25567 # type: =head2
25568 #. type: =head2
25569 #: ../fish/guestfish-actions.pod:1920
25570 msgid "inspect-get-roots"
25571 msgstr ""
25572
25573 # type: verbatim
25574 #. type: verbatim
25575 #: ../fish/guestfish-actions.pod:1922
25576 #, no-wrap
25577 msgid ""
25578 " inspect-get-roots\n"
25579 "\n"
25580 msgstr ""
25581
25582 # type: textblock
25583 #. type: textblock
25584 #: ../fish/guestfish-actions.pod:1924
25585 msgid ""
25586 "This function is a convenient way to get the list of root devices, as "
25587 "returned from a previous call to L</inspect-os>, but without redoing the "
25588 "whole inspection process."
25589 msgstr ""
25590
25591 # type: textblock
25592 #. type: textblock
25593 #: ../fish/guestfish-actions.pod:1928
25594 msgid ""
25595 "This returns an empty list if either no root devices were found or the "
25596 "caller has not called L</inspect-os>."
25597 msgstr ""
25598
25599 # type: =head2
25600 #. type: =head2
25601 #: ../fish/guestfish-actions.pod:1933
25602 msgid "inspect-get-type"
25603 msgstr ""
25604
25605 # type: verbatim
25606 #. type: verbatim
25607 #: ../fish/guestfish-actions.pod:1935
25608 #, no-wrap
25609 msgid ""
25610 " inspect-get-type root\n"
25611 "\n"
25612 msgstr ""
25613
25614 # type: =head2
25615 #. type: =head2
25616 #: ../fish/guestfish-actions.pod:1968
25617 msgid "inspect-get-windows-systemroot"
25618 msgstr ""
25619
25620 # type: verbatim
25621 #. type: verbatim
25622 #: ../fish/guestfish-actions.pod:1970
25623 #, no-wrap
25624 msgid ""
25625 " inspect-get-windows-systemroot root\n"
25626 "\n"
25627 msgstr ""
25628
25629 # type: =head2
25630 #. type: =head2
25631 #: ../fish/guestfish-actions.pod:1984
25632 msgid "inspect-list-applications"
25633 msgstr ""
25634
25635 # type: verbatim
25636 #. type: verbatim
25637 #: ../fish/guestfish-actions.pod:1986
25638 #, no-wrap
25639 msgid ""
25640 " inspect-list-applications root\n"
25641 "\n"
25642 msgstr ""
25643
25644 # type: textblock
25645 #. type: textblock
25646 #: ../fish/guestfish-actions.pod:1993
25647 msgid ""
25648 "I<Note:> This call works differently from other parts of the inspection "
25649 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
25650 "then mount up the disks, before calling this.  Listing applications is a "
25651 "significantly more difficult operation which requires access to the full "
25652 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
25653 "are just returning data cached in the libguestfs handle, this call actually "
25654 "reads parts of the mounted filesystems during the call."
25655 msgstr ""
25656
25657 # type: =head2
25658 #. type: =head2
25659 #: ../fish/guestfish-actions.pod:2083
25660 msgid "inspect-os"
25661 msgstr ""
25662
25663 # type: verbatim
25664 #. type: verbatim
25665 #: ../fish/guestfish-actions.pod:2085
25666 #, no-wrap
25667 msgid ""
25668 " inspect-os\n"
25669 "\n"
25670 msgstr ""
25671
25672 # type: textblock
25673 #. type: textblock
25674 #: ../fish/guestfish-actions.pod:2100
25675 msgid ""
25676 "You can pass the root string(s) returned to other L</inspect-get-*> "
25677 "functions in order to query further information about each operating system, "
25678 "such as the name and version."
25679 msgstr ""
25680
25681 # type: textblock
25682 #. type: textblock
25683 #: ../fish/guestfish-actions.pod:2105
25684 msgid ""
25685 "This function uses other libguestfs features such as L</mount-ro> and L</"
25686 "umount-all> in order to mount and unmount filesystems and look at the "
25687 "contents.  This should be called with no disks currently mounted.  The "
25688 "function may also use Augeas, so any existing Augeas handle will be closed."
25689 msgstr ""
25690
25691 # type: textblock
25692 #. type: textblock
25693 #: ../fish/guestfish-actions.pod:2117 ../fish/guestfish-actions.pod:2293
25694 #: ../fish/guestfish-actions.pod:2339
25695 msgid "See also L</list-filesystems>."
25696 msgstr ""
25697
25698 # type: =head2
25699 #. type: =head2
25700 #: ../fish/guestfish-actions.pod:2119
25701 msgid "is-blockdev"
25702 msgstr ""
25703
25704 # type: verbatim
25705 #. type: verbatim
25706 #: ../fish/guestfish-actions.pod:2121
25707 #, no-wrap
25708 msgid ""
25709 " is-blockdev path\n"
25710 "\n"
25711 msgstr ""
25712
25713 # type: textblock
25714 #. type: textblock
25715 #: ../fish/guestfish-actions.pod:2126 ../fish/guestfish-actions.pod:2144
25716 #: ../fish/guestfish-actions.pod:2163 ../fish/guestfish-actions.pod:2172
25717 #: ../fish/guestfish-actions.pod:2182 ../fish/guestfish-actions.pod:2216
25718 #: ../fish/guestfish-actions.pod:2225
25719 msgid "See also L</stat>."
25720 msgstr ""
25721
25722 # type: =head2
25723 #. type: =head2
25724 #: ../fish/guestfish-actions.pod:2128
25725 msgid "is-busy"
25726 msgstr ""
25727
25728 # type: verbatim
25729 #. type: verbatim
25730 #: ../fish/guestfish-actions.pod:2130
25731 #, no-wrap
25732 msgid ""
25733 " is-busy\n"
25734 "\n"
25735 msgstr ""
25736
25737 # type: =head2
25738 #. type: =head2
25739 #: ../fish/guestfish-actions.pod:2137
25740 msgid "is-chardev"
25741 msgstr ""
25742
25743 # type: verbatim
25744 #. type: verbatim
25745 #: ../fish/guestfish-actions.pod:2139
25746 #, no-wrap
25747 msgid ""
25748 " is-chardev path\n"
25749 "\n"
25750 msgstr ""
25751
25752 # type: =head2
25753 #. type: =head2
25754 #: ../fish/guestfish-actions.pod:2146
25755 msgid "is-config"
25756 msgstr ""
25757
25758 # type: verbatim
25759 #. type: verbatim
25760 #: ../fish/guestfish-actions.pod:2148
25761 #, no-wrap
25762 msgid ""
25763 " is-config\n"
25764 "\n"
25765 msgstr ""
25766
25767 # type: =head2
25768 #. type: =head2
25769 #: ../fish/guestfish-actions.pod:2155
25770 msgid "is-dir"
25771 msgstr ""
25772
25773 # type: verbatim
25774 #. type: verbatim
25775 #: ../fish/guestfish-actions.pod:2157
25776 #, no-wrap
25777 msgid ""
25778 " is-dir path\n"
25779 "\n"
25780 msgstr ""
25781
25782 # type: =head2
25783 #. type: =head2
25784 #: ../fish/guestfish-actions.pod:2165
25785 msgid "is-fifo"
25786 msgstr ""
25787
25788 # type: verbatim
25789 #. type: verbatim
25790 #: ../fish/guestfish-actions.pod:2167
25791 #, no-wrap
25792 msgid ""
25793 " is-fifo path\n"
25794 "\n"
25795 msgstr ""
25796
25797 # type: =head2
25798 #. type: =head2
25799 #: ../fish/guestfish-actions.pod:2174
25800 msgid "is-file"
25801 msgstr ""
25802
25803 # type: verbatim
25804 #. type: verbatim
25805 #: ../fish/guestfish-actions.pod:2176
25806 #, no-wrap
25807 msgid ""
25808 " is-file path\n"
25809 "\n"
25810 msgstr ""
25811
25812 # type: =head2
25813 #. type: =head2
25814 #: ../fish/guestfish-actions.pod:2184
25815 msgid "is-launching"
25816 msgstr ""
25817
25818 # type: verbatim
25819 #. type: verbatim
25820 #: ../fish/guestfish-actions.pod:2186
25821 #, no-wrap
25822 msgid ""
25823 " is-launching\n"
25824 "\n"
25825 msgstr ""
25826
25827 # type: =head2
25828 #. type: =head2
25829 #: ../fish/guestfish-actions.pod:2193
25830 msgid "is-lv"
25831 msgstr ""
25832
25833 # type: verbatim
25834 #. type: verbatim
25835 #: ../fish/guestfish-actions.pod:2195
25836 #, no-wrap
25837 msgid ""
25838 " is-lv device\n"
25839 "\n"
25840 msgstr ""
25841
25842 # type: =head2
25843 #. type: =head2
25844 #: ../fish/guestfish-actions.pod:2200
25845 msgid "is-ready"
25846 msgstr ""
25847
25848 # type: verbatim
25849 #. type: verbatim
25850 #: ../fish/guestfish-actions.pod:2202
25851 #, no-wrap
25852 msgid ""
25853 " is-ready\n"
25854 "\n"
25855 msgstr ""
25856
25857 # type: =head2
25858 #. type: =head2
25859 #: ../fish/guestfish-actions.pod:2209
25860 msgid "is-socket"
25861 msgstr ""
25862
25863 # type: verbatim
25864 #. type: verbatim
25865 #: ../fish/guestfish-actions.pod:2211
25866 #, no-wrap
25867 msgid ""
25868 " is-socket path\n"
25869 "\n"
25870 msgstr ""
25871
25872 # type: =head2
25873 #. type: =head2
25874 #: ../fish/guestfish-actions.pod:2218
25875 msgid "is-symlink"
25876 msgstr ""
25877
25878 # type: verbatim
25879 #. type: verbatim
25880 #: ../fish/guestfish-actions.pod:2220
25881 #, no-wrap
25882 msgid ""
25883 " is-symlink path\n"
25884 "\n"
25885 msgstr ""
25886
25887 # type: =head2
25888 #. type: =head2
25889 #: ../fish/guestfish-actions.pod:2227
25890 msgid "kill-subprocess"
25891 msgstr ""
25892
25893 # type: verbatim
25894 #. type: verbatim
25895 #: ../fish/guestfish-actions.pod:2229
25896 #, no-wrap
25897 msgid ""
25898 " kill-subprocess\n"
25899 "\n"
25900 msgstr ""
25901
25902 # type: =head2
25903 #. type: =head2
25904 #: ../fish/guestfish-actions.pod:2233
25905 msgid "launch"
25906 msgstr ""
25907
25908 # type: =head2
25909 #. type: =head2
25910 #: ../fish/guestfish-actions.pod:2235
25911 msgid "run"
25912 msgstr ""
25913
25914 # type: verbatim
25915 #. type: verbatim
25916 #: ../fish/guestfish-actions.pod:2237
25917 #, no-wrap
25918 msgid ""
25919 " launch\n"
25920 "\n"
25921 msgstr ""
25922
25923 # type: =head2
25924 #. type: =head2
25925 #: ../fish/guestfish-actions.pod:2245
25926 msgid "lchown"
25927 msgstr ""
25928
25929 # type: verbatim
25930 #. type: verbatim
25931 #: ../fish/guestfish-actions.pod:2247
25932 #, no-wrap
25933 msgid ""
25934 " lchown owner group path\n"
25935 "\n"
25936 msgstr ""
25937
25938 # type: textblock
25939 #. type: textblock
25940 #: ../fish/guestfish-actions.pod:2249
25941 msgid ""
25942 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
25943 "chown> but if C<path> is a symlink then the link itself is changed, not the "
25944 "target."
25945 msgstr ""
25946
25947 # type: =head2
25948 #. type: =head2
25949 #: ../fish/guestfish-actions.pod:2257
25950 msgid "lgetxattr"
25951 msgstr ""
25952
25953 # type: verbatim
25954 #. type: verbatim
25955 #: ../fish/guestfish-actions.pod:2259
25956 #, no-wrap
25957 msgid ""
25958 " lgetxattr path name\n"
25959 "\n"
25960 msgstr ""
25961
25962 # type: textblock
25963 #. type: textblock
25964 #: ../fish/guestfish-actions.pod:2275
25965 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
25966 msgstr ""
25967
25968 # type: =head2
25969 #. type: =head2
25970 #: ../fish/guestfish-actions.pod:2277
25971 msgid "lgetxattrs"
25972 msgstr ""
25973
25974 # type: verbatim
25975 #. type: verbatim
25976 #: ../fish/guestfish-actions.pod:2279
25977 #, no-wrap
25978 msgid ""
25979 " lgetxattrs path\n"
25980 "\n"
25981 msgstr ""
25982
25983 # type: textblock
25984 #. type: textblock
25985 #: ../fish/guestfish-actions.pod:2281
25986 msgid ""
25987 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
25988 "it returns the extended attributes of the link itself."
25989 msgstr ""
25990
25991 # type: =head2
25992 #. type: =head2
25993 #: ../fish/guestfish-actions.pod:2285
25994 msgid "list-devices"
25995 msgstr ""
25996
25997 # type: verbatim
25998 #. type: verbatim
25999 #: ../fish/guestfish-actions.pod:2287
26000 #, no-wrap
26001 msgid ""
26002 " list-devices\n"
26003 "\n"
26004 msgstr ""
26005
26006 # type: =head2
26007 #. type: =head2
26008 #: ../fish/guestfish-actions.pod:2295
26009 msgid "list-filesystems"
26010 msgstr ""
26011
26012 # type: verbatim
26013 #. type: verbatim
26014 #: ../fish/guestfish-actions.pod:2297
26015 #, no-wrap
26016 msgid ""
26017 " list-filesystems\n"
26018 "\n"
26019 msgstr ""
26020
26021 # type: textblock
26022 #. type: textblock
26023 #: ../fish/guestfish-actions.pod:2316
26024 msgid ""
26025 "This command runs other libguestfs commands, which might include L</mount> "
26026 "and L</umount>, and therefore you should use this soon after launch and only "
26027 "when nothing is mounted."
26028 msgstr ""
26029
26030 # type: textblock
26031 #. type: textblock
26032 #: ../fish/guestfish-actions.pod:2320
26033 msgid ""
26034 "Not all of the filesystems returned will be mountable.  In particular, swap "
26035 "partitions are returned in the list.  Also this command does not check that "
26036 "each filesystem found is valid and mountable, and some filesystems might be "
26037 "mountable but require special options.  Filesystems may not all belong to a "
26038 "single logical operating system (use L</inspect-os> to look for OSes)."
26039 msgstr ""
26040
26041 # type: =head2
26042 #. type: =head2
26043 #: ../fish/guestfish-actions.pod:2328
26044 msgid "list-partitions"
26045 msgstr ""
26046
26047 # type: verbatim
26048 #. type: verbatim
26049 #: ../fish/guestfish-actions.pod:2330
26050 #, no-wrap
26051 msgid ""
26052 " list-partitions\n"
26053 "\n"
26054 msgstr ""
26055
26056 # type: textblock
26057 #. type: textblock
26058 #: ../fish/guestfish-actions.pod:2336
26059 msgid ""
26060 "This does not return logical volumes.  For that you will need to call L</"
26061 "lvs>."
26062 msgstr ""
26063
26064 # type: =head2
26065 #. type: =head2
26066 #: ../fish/guestfish-actions.pod:2341
26067 msgid "ll"
26068 msgstr ""
26069
26070 # type: verbatim
26071 #. type: verbatim
26072 #: ../fish/guestfish-actions.pod:2343
26073 #, no-wrap
26074 msgid ""
26075 " ll directory\n"
26076 "\n"
26077 msgstr ""
26078
26079 # type: =head2
26080 #. type: =head2
26081 #: ../fish/guestfish-actions.pod:2351
26082 msgid "ln"
26083 msgstr ""
26084
26085 # type: verbatim
26086 #. type: verbatim
26087 #: ../fish/guestfish-actions.pod:2353
26088 #, no-wrap
26089 msgid ""
26090 " ln target linkname\n"
26091 "\n"
26092 msgstr ""
26093
26094 # type: =head2
26095 #. type: =head2
26096 #: ../fish/guestfish-actions.pod:2357
26097 msgid "ln-f"
26098 msgstr ""
26099
26100 # type: verbatim
26101 #. type: verbatim
26102 #: ../fish/guestfish-actions.pod:2359
26103 #, no-wrap
26104 msgid ""
26105 " ln-f target linkname\n"
26106 "\n"
26107 msgstr ""
26108
26109 # type: =head2
26110 #. type: =head2
26111 #: ../fish/guestfish-actions.pod:2364
26112 msgid "ln-s"
26113 msgstr ""
26114
26115 # type: verbatim
26116 #. type: verbatim
26117 #: ../fish/guestfish-actions.pod:2366
26118 #, no-wrap
26119 msgid ""
26120 " ln-s target linkname\n"
26121 "\n"
26122 msgstr ""
26123
26124 # type: =head2
26125 #. type: =head2
26126 #: ../fish/guestfish-actions.pod:2370
26127 msgid "ln-sf"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #. type: verbatim
26132 #: ../fish/guestfish-actions.pod:2372
26133 #, no-wrap
26134 msgid ""
26135 " ln-sf target linkname\n"
26136 "\n"
26137 msgstr ""
26138
26139 # type: =head2
26140 #. type: =head2
26141 #: ../fish/guestfish-actions.pod:2377
26142 msgid "lremovexattr"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #. type: verbatim
26147 #: ../fish/guestfish-actions.pod:2379
26148 #, no-wrap
26149 msgid ""
26150 " lremovexattr xattr path\n"
26151 "\n"
26152 msgstr ""
26153
26154 # type: textblock
26155 #. type: textblock
26156 #: ../fish/guestfish-actions.pod:2381
26157 msgid ""
26158 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
26159 "it removes an extended attribute of the link itself."
26160 msgstr ""
26161
26162 # type: =head2
26163 #. type: =head2
26164 #: ../fish/guestfish-actions.pod:2385
26165 msgid "ls"
26166 msgstr ""
26167
26168 # type: verbatim
26169 #. type: verbatim
26170 #: ../fish/guestfish-actions.pod:2387
26171 #, no-wrap
26172 msgid ""
26173 " ls directory\n"
26174 "\n"
26175 msgstr ""
26176
26177 # type: textblock
26178 #. type: textblock
26179 #: ../fish/guestfish-actions.pod:2393
26180 msgid ""
26181 "This command is mostly useful for interactive sessions.  Programs should "
26182 "probably use L</readdir> instead."
26183 msgstr ""
26184
26185 # type: =head2
26186 #. type: =head2
26187 #: ../fish/guestfish-actions.pod:2396
26188 msgid "lsetxattr"
26189 msgstr ""
26190
26191 # type: verbatim
26192 #. type: verbatim
26193 #: ../fish/guestfish-actions.pod:2398
26194 #, no-wrap
26195 msgid ""
26196 " lsetxattr xattr val vallen path\n"
26197 "\n"
26198 msgstr ""
26199
26200 # type: textblock
26201 #. type: textblock
26202 #: ../fish/guestfish-actions.pod:2400
26203 msgid ""
26204 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
26205 "sets an extended attribute of the link itself."
26206 msgstr ""
26207
26208 # type: =head2
26209 #. type: =head2
26210 #: ../fish/guestfish-actions.pod:2404
26211 msgid "lstat"
26212 msgstr ""
26213
26214 # type: verbatim
26215 #. type: verbatim
26216 #: ../fish/guestfish-actions.pod:2406
26217 #, no-wrap
26218 msgid ""
26219 " lstat path\n"
26220 "\n"
26221 msgstr ""
26222
26223 # type: textblock
26224 #. type: textblock
26225 #: ../fish/guestfish-actions.pod:2410
26226 msgid ""
26227 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
26228 "the link is stat-ed, not the file it refers to."
26229 msgstr ""
26230
26231 # type: =head2
26232 #. type: =head2
26233 #: ../fish/guestfish-actions.pod:2416
26234 msgid "lstatlist"
26235 msgstr ""
26236
26237 # type: verbatim
26238 #. type: verbatim
26239 #: ../fish/guestfish-actions.pod:2418
26240 #, no-wrap
26241 msgid ""
26242 " lstatlist path 'names ...'\n"
26243 "\n"
26244 msgstr ""
26245
26246 # type: textblock
26247 #. type: textblock
26248 #: ../fish/guestfish-actions.pod:2420
26249 msgid ""
26250 "This call allows you to perform the L</lstat> operation on multiple files, "
26251 "where all files are in the directory C<path>.  C<names> is the list of files "
26252 "from this directory."
26253 msgstr ""
26254
26255 # type: textblock
26256 #. type: textblock
26257 #: ../fish/guestfish-actions.pod:2429
26258 msgid ""
26259 "This call is intended for programs that want to efficiently list a directory "
26260 "contents without making many round-trips.  See also L</lxattrlist> for a "
26261 "similarly efficient call for getting extended attributes.  Very long "
26262 "directory listings might cause the protocol message size to be exceeded, "
26263 "causing this call to fail.  The caller must split up such requests into "
26264 "smaller groups of names."
26265 msgstr ""
26266
26267 # type: =head2
26268 #. type: =head2
26269 #: ../fish/guestfish-actions.pod:2437
26270 msgid "luks-add-key"
26271 msgstr ""
26272
26273 # type: verbatim
26274 #. type: verbatim
26275 #: ../fish/guestfish-actions.pod:2439
26276 #, no-wrap
26277 msgid ""
26278 " luks-add-key device keyslot\n"
26279 "\n"
26280 msgstr ""
26281
26282 # type: textblock
26283 #. type: textblock
26284 #: ../fish/guestfish-actions.pod:2446
26285 msgid ""
26286 "Note that if C<keyslot> already contains a key, then this command will "
26287 "fail.  You have to use L</luks-kill-slot> first to remove that key."
26288 msgstr ""
26289
26290 # type: textblock
26291 #. type: textblock
26292 #: ../fish/guestfish-actions.pod:2450 ../fish/guestfish-actions.pod:2472
26293 #: ../fish/guestfish-actions.pod:2485 ../fish/guestfish-actions.pod:2499
26294 #: ../fish/guestfish-actions.pod:2522 ../fish/guestfish-actions.pod:2532
26295 msgid ""
26296 "This command has one or more key or passphrase parameters.  Guestfish will "
26297 "prompt for these separately."
26298 msgstr ""
26299
26300 # type: =head2
26301 #. type: =head2
26302 #: ../fish/guestfish-actions.pod:2453
26303 msgid "luks-close"
26304 msgstr ""
26305
26306 # type: verbatim
26307 #. type: verbatim
26308 #: ../fish/guestfish-actions.pod:2455
26309 #, no-wrap
26310 msgid ""
26311 " luks-close device\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #. type: textblock
26317 #: ../fish/guestfish-actions.pod:2457
26318 msgid ""
26319 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
26320 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
26321 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
26322 "block device."
26323 msgstr ""
26324
26325 # type: =head2
26326 #. type: =head2
26327 #: ../fish/guestfish-actions.pod:2463
26328 msgid "luks-format"
26329 msgstr ""
26330
26331 # type: verbatim
26332 #. type: verbatim
26333 #: ../fish/guestfish-actions.pod:2465
26334 #, no-wrap
26335 msgid ""
26336 " luks-format device keyslot\n"
26337 "\n"
26338 msgstr ""
26339
26340 # type: =head2
26341 #. type: =head2
26342 #: ../fish/guestfish-actions.pod:2478
26343 msgid "luks-format-cipher"
26344 msgstr ""
26345
26346 # type: verbatim
26347 #. type: verbatim
26348 #: ../fish/guestfish-actions.pod:2480
26349 #, no-wrap
26350 msgid ""
26351 " luks-format-cipher device keyslot cipher\n"
26352 "\n"
26353 msgstr ""
26354
26355 # type: textblock
26356 #. type: textblock
26357 #: ../fish/guestfish-actions.pod:2482
26358 msgid ""
26359 "This command is the same as L</luks-format> but it also allows you to set "
26360 "the C<cipher> used."
26361 msgstr ""
26362
26363 # type: =head2
26364 #. type: =head2
26365 #: ../fish/guestfish-actions.pod:2491
26366 msgid "luks-kill-slot"
26367 msgstr ""
26368
26369 # type: verbatim
26370 #. type: verbatim
26371 #: ../fish/guestfish-actions.pod:2493
26372 #, no-wrap
26373 msgid ""
26374 " luks-kill-slot device keyslot\n"
26375 "\n"
26376 msgstr ""
26377
26378 # type: =head2
26379 #. type: =head2
26380 #: ../fish/guestfish-actions.pod:2502
26381 msgid "luks-open"
26382 msgstr ""
26383
26384 # type: verbatim
26385 #. type: verbatim
26386 #: ../fish/guestfish-actions.pod:2504
26387 #, no-wrap
26388 msgid ""
26389 " luks-open device mapname\n"
26390 "\n"
26391 msgstr ""
26392
26393 # type: textblock
26394 #. type: textblock
26395 #: ../fish/guestfish-actions.pod:2518
26396 msgid ""
26397 "If this block device contains LVM volume groups, then calling L</vgscan> "
26398 "followed by L</vg-activate-all> will make them visible."
26399 msgstr ""
26400
26401 # type: =head2
26402 #. type: =head2
26403 #: ../fish/guestfish-actions.pod:2525
26404 msgid "luks-open-ro"
26405 msgstr ""
26406
26407 # type: verbatim
26408 #. type: verbatim
26409 #: ../fish/guestfish-actions.pod:2527
26410 #, no-wrap
26411 msgid ""
26412 " luks-open-ro device mapname\n"
26413 "\n"
26414 msgstr ""
26415
26416 # type: textblock
26417 #. type: textblock
26418 #: ../fish/guestfish-actions.pod:2529
26419 msgid ""
26420 "This is the same as L</luks-open> except that a read-only mapping is created."
26421 msgstr ""
26422
26423 # type: =head2
26424 #. type: =head2
26425 #: ../fish/guestfish-actions.pod:2535
26426 msgid "lvcreate"
26427 msgstr ""
26428
26429 # type: verbatim
26430 #. type: verbatim
26431 #: ../fish/guestfish-actions.pod:2537
26432 #, no-wrap
26433 msgid ""
26434 " lvcreate logvol volgroup mbytes\n"
26435 "\n"
26436 msgstr ""
26437
26438 # type: =head2
26439 #. type: =head2
26440 #: ../fish/guestfish-actions.pod:2542
26441 msgid "lvm-canonical-lv-name"
26442 msgstr ""
26443
26444 # type: verbatim
26445 #. type: verbatim
26446 #: ../fish/guestfish-actions.pod:2544
26447 #, no-wrap
26448 msgid ""
26449 " lvm-canonical-lv-name lvname\n"
26450 "\n"
26451 msgstr ""
26452
26453 # type: textblock
26454 #. type: textblock
26455 #: ../fish/guestfish-actions.pod:2553
26456 msgid "See also L</is-lv>."
26457 msgstr ""
26458
26459 # type: =head2
26460 #. type: =head2
26461 #: ../fish/guestfish-actions.pod:2555
26462 msgid "lvm-clear-filter"
26463 msgstr ""
26464
26465 # type: verbatim
26466 #. type: verbatim
26467 #: ../fish/guestfish-actions.pod:2557
26468 #, no-wrap
26469 msgid ""
26470 " lvm-clear-filter\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: textblock
26475 #. type: textblock
26476 #: ../fish/guestfish-actions.pod:2559
26477 msgid ""
26478 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
26479 "block device."
26480 msgstr ""
26481
26482 # type: =head2
26483 #. type: =head2
26484 #: ../fish/guestfish-actions.pod:2565
26485 msgid "lvm-remove-all"
26486 msgstr ""
26487
26488 # type: verbatim
26489 #. type: verbatim
26490 #: ../fish/guestfish-actions.pod:2567
26491 #, no-wrap
26492 msgid ""
26493 " lvm-remove-all\n"
26494 "\n"
26495 msgstr ""
26496
26497 # type: =head2
26498 #. type: =head2
26499 #: ../fish/guestfish-actions.pod:2575
26500 msgid "lvm-set-filter"
26501 msgstr ""
26502
26503 # type: verbatim
26504 #. type: verbatim
26505 #: ../fish/guestfish-actions.pod:2577
26506 #, no-wrap
26507 msgid ""
26508 " lvm-set-filter 'devices ...'\n"
26509 "\n"
26510 msgstr ""
26511
26512 # type: =head2
26513 #. type: =head2
26514 #: ../fish/guestfish-actions.pod:2602
26515 msgid "lvremove"
26516 msgstr ""
26517
26518 # type: verbatim
26519 #. type: verbatim
26520 #: ../fish/guestfish-actions.pod:2604
26521 #, no-wrap
26522 msgid ""
26523 " lvremove device\n"
26524 "\n"
26525 msgstr ""
26526
26527 # type: =head2
26528 #. type: =head2
26529 #: ../fish/guestfish-actions.pod:2612
26530 msgid "lvrename"
26531 msgstr ""
26532
26533 # type: verbatim
26534 #. type: verbatim
26535 #: ../fish/guestfish-actions.pod:2614
26536 #, no-wrap
26537 msgid ""
26538 " lvrename logvol newlogvol\n"
26539 "\n"
26540 msgstr ""
26541
26542 # type: =head2
26543 #. type: =head2
26544 #: ../fish/guestfish-actions.pod:2618
26545 msgid "lvresize"
26546 msgstr ""
26547
26548 # type: verbatim
26549 #. type: verbatim
26550 #: ../fish/guestfish-actions.pod:2620
26551 #, no-wrap
26552 msgid ""
26553 " lvresize device mbytes\n"
26554 "\n"
26555 msgstr ""
26556
26557 # type: =head2
26558 #. type: =head2
26559 #: ../fish/guestfish-actions.pod:2626
26560 msgid "lvresize-free"
26561 msgstr ""
26562
26563 # type: verbatim
26564 #. type: verbatim
26565 #: ../fish/guestfish-actions.pod:2628
26566 #, no-wrap
26567 msgid ""
26568 " lvresize-free lv percent\n"
26569 "\n"
26570 msgstr ""
26571
26572 # type: =head2
26573 #. type: =head2
26574 #: ../fish/guestfish-actions.pod:2636
26575 msgid "lvs"
26576 msgstr ""
26577
26578 # type: verbatim
26579 #. type: verbatim
26580 #: ../fish/guestfish-actions.pod:2638
26581 #, no-wrap
26582 msgid ""
26583 " lvs\n"
26584 "\n"
26585 msgstr ""
26586
26587 # type: textblock
26588 #. type: textblock
26589 #: ../fish/guestfish-actions.pod:2646
26590 msgid "See also L</lvs-full>, L</list-filesystems>."
26591 msgstr ""
26592
26593 # type: =head2
26594 #. type: =head2
26595 #: ../fish/guestfish-actions.pod:2648
26596 msgid "lvs-full"
26597 msgstr ""
26598
26599 # type: verbatim
26600 #. type: verbatim
26601 #: ../fish/guestfish-actions.pod:2650
26602 #, no-wrap
26603 msgid ""
26604 " lvs-full\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: =head2
26609 #. type: =head2
26610 #: ../fish/guestfish-actions.pod:2655
26611 msgid "lvuuid"
26612 msgstr ""
26613
26614 # type: verbatim
26615 #. type: verbatim
26616 #: ../fish/guestfish-actions.pod:2657
26617 #, no-wrap
26618 msgid ""
26619 " lvuuid device\n"
26620 "\n"
26621 msgstr ""
26622
26623 # type: =head2
26624 #. type: =head2
26625 #: ../fish/guestfish-actions.pod:2661
26626 msgid "lxattrlist"
26627 msgstr ""
26628
26629 # type: verbatim
26630 #. type: verbatim
26631 #: ../fish/guestfish-actions.pod:2663
26632 #, no-wrap
26633 msgid ""
26634 " lxattrlist path 'names ...'\n"
26635 "\n"
26636 msgstr ""
26637
26638 # type: textblock
26639 #. type: textblock
26640 #: ../fish/guestfish-actions.pod:2679
26641 msgid ""
26642 "This call is intended for programs that want to efficiently list a directory "
26643 "contents without making many round-trips.  See also L</lstatlist> for a "
26644 "similarly efficient call for getting standard stats.  Very long directory "
26645 "listings might cause the protocol message size to be exceeded, causing this "
26646 "call to fail.  The caller must split up such requests into smaller groups of "
26647 "names."
26648 msgstr ""
26649
26650 # type: =head2
26651 #. type: =head2
26652 #: ../fish/guestfish-actions.pod:2687
26653 msgid "mkdir"
26654 msgstr ""
26655
26656 # type: verbatim
26657 #. type: verbatim
26658 #: ../fish/guestfish-actions.pod:2689
26659 #, no-wrap
26660 msgid ""
26661 " mkdir path\n"
26662 "\n"
26663 msgstr ""
26664
26665 # type: =head2
26666 #. type: =head2
26667 #: ../fish/guestfish-actions.pod:2693
26668 msgid "mkdir-mode"
26669 msgstr ""
26670
26671 # type: verbatim
26672 #. type: verbatim
26673 #: ../fish/guestfish-actions.pod:2695
26674 #, no-wrap
26675 msgid ""
26676 " mkdir-mode path mode\n"
26677 "\n"
26678 msgstr ""
26679
26680 # type: textblock
26681 #. type: textblock
26682 #: ../fish/guestfish-actions.pod:2704
26683 msgid "See also L</mkdir>, L</umask>"
26684 msgstr ""
26685
26686 # type: =head2
26687 #. type: =head2
26688 #: ../fish/guestfish-actions.pod:2706
26689 msgid "mkdir-p"
26690 msgstr ""
26691
26692 # type: verbatim
26693 #. type: verbatim
26694 #: ../fish/guestfish-actions.pod:2708
26695 #, no-wrap
26696 msgid ""
26697 " mkdir-p path\n"
26698 "\n"
26699 msgstr ""
26700
26701 # type: =head2
26702 #. type: =head2
26703 #: ../fish/guestfish-actions.pod:2713
26704 msgid "mkdtemp"
26705 msgstr ""
26706
26707 # type: verbatim
26708 #. type: verbatim
26709 #: ../fish/guestfish-actions.pod:2715
26710 #, no-wrap
26711 msgid ""
26712 " mkdtemp template\n"
26713 "\n"
26714 msgstr ""
26715
26716 # type: =head2
26717 #. type: =head2
26718 #: ../fish/guestfish-actions.pod:2736
26719 msgid "mke2fs-J"
26720 msgstr ""
26721
26722 # type: verbatim
26723 #. type: verbatim
26724 #: ../fish/guestfish-actions.pod:2738
26725 #, no-wrap
26726 msgid ""
26727 " mke2fs-J fstype blocksize device journal\n"
26728 "\n"
26729 msgstr ""
26730
26731 # type: textblock
26732 #. type: textblock
26733 #: ../fish/guestfish-actions.pod:2746
26734 msgid "See also L</mke2journal>."
26735 msgstr ""
26736
26737 # type: =head2
26738 #. type: =head2
26739 #: ../fish/guestfish-actions.pod:2748
26740 msgid "mke2fs-JL"
26741 msgstr ""
26742
26743 # type: verbatim
26744 #. type: verbatim
26745 #: ../fish/guestfish-actions.pod:2750
26746 #, no-wrap
26747 msgid ""
26748 " mke2fs-JL fstype blocksize device label\n"
26749 "\n"
26750 msgstr ""
26751
26752 # type: textblock
26753 #. type: textblock
26754 #: ../fish/guestfish-actions.pod:2755
26755 msgid "See also L</mke2journal-L>."
26756 msgstr ""
26757
26758 # type: =head2
26759 #. type: =head2
26760 #: ../fish/guestfish-actions.pod:2757
26761 msgid "mke2fs-JU"
26762 msgstr ""
26763
26764 # type: verbatim
26765 #. type: verbatim
26766 #: ../fish/guestfish-actions.pod:2759
26767 #, no-wrap
26768 msgid ""
26769 " mke2fs-JU fstype blocksize device uuid\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: textblock
26774 #. type: textblock
26775 #: ../fish/guestfish-actions.pod:2764
26776 msgid "See also L</mke2journal-U>."
26777 msgstr ""
26778
26779 # type: =head2
26780 #. type: =head2
26781 #: ../fish/guestfish-actions.pod:2766
26782 msgid "mke2journal"
26783 msgstr ""
26784
26785 # type: verbatim
26786 #. type: verbatim
26787 #: ../fish/guestfish-actions.pod:2768
26788 #, no-wrap
26789 msgid ""
26790 " mke2journal blocksize device\n"
26791 "\n"
26792 msgstr ""
26793
26794 # type: =head2
26795 #. type: =head2
26796 #: ../fish/guestfish-actions.pod:2775
26797 msgid "mke2journal-L"
26798 msgstr ""
26799
26800 # type: verbatim
26801 #. type: verbatim
26802 #: ../fish/guestfish-actions.pod:2777
26803 #, no-wrap
26804 msgid ""
26805 " mke2journal-L blocksize label device\n"
26806 "\n"
26807 msgstr ""
26808
26809 # type: =head2
26810 #. type: =head2
26811 #: ../fish/guestfish-actions.pod:2781
26812 msgid "mke2journal-U"
26813 msgstr ""
26814
26815 # type: verbatim
26816 #. type: verbatim
26817 #: ../fish/guestfish-actions.pod:2783
26818 #, no-wrap
26819 msgid ""
26820 " mke2journal-U blocksize uuid device\n"
26821 "\n"
26822 msgstr ""
26823
26824 # type: =head2
26825 #. type: =head2
26826 #: ../fish/guestfish-actions.pod:2787
26827 msgid "mkfifo"
26828 msgstr ""
26829
26830 # type: verbatim
26831 #. type: verbatim
26832 #: ../fish/guestfish-actions.pod:2789
26833 #, no-wrap
26834 msgid ""
26835 " mkfifo mode path\n"
26836 "\n"
26837 msgstr ""
26838
26839 # type: textblock
26840 #. type: textblock
26841 #: ../fish/guestfish-actions.pod:2791
26842 msgid ""
26843 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26844 "is just a convenient wrapper around L</mknod>."
26845 msgstr ""
26846
26847 # type: =head2
26848 #. type: =head2
26849 #: ../fish/guestfish-actions.pod:2797
26850 msgid "mkfs"
26851 msgstr ""
26852
26853 # type: verbatim
26854 #. type: verbatim
26855 #: ../fish/guestfish-actions.pod:2799
26856 #, no-wrap
26857 msgid ""
26858 " mkfs fstype device\n"
26859 "\n"
26860 msgstr ""
26861
26862 # type: =head2
26863 #. type: =head2
26864 #: ../fish/guestfish-actions.pod:2805
26865 msgid "mkfs-b"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #. type: verbatim
26870 #: ../fish/guestfish-actions.pod:2807
26871 #, no-wrap
26872 msgid ""
26873 " mkfs-b fstype blocksize device\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: textblock
26878 #. type: textblock
26879 #: ../fish/guestfish-actions.pod:2809
26880 msgid ""
26881 "This call is similar to L</mkfs>, but it allows you to control the block "
26882 "size of the resulting filesystem.  Supported block sizes depend on the "
26883 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26884 msgstr ""
26885
26886 # type: =head2
26887 #. type: =head2
26888 #: ../fish/guestfish-actions.pod:2824
26889 msgid "mkfs-opts"
26890 msgstr ""
26891
26892 # type: verbatim
26893 #. type: verbatim
26894 #: ../fish/guestfish-actions.pod:2826
26895 #, no-wrap
26896 msgid ""
26897 " mkfs-opts fstype device [blocksize:..]\n"
26898 "\n"
26899 msgstr ""
26900
26901 # type: =head2
26902 #. type: =head2
26903 #: ../fish/guestfish-actions.pod:2848
26904 msgid "mkmountpoint"
26905 msgstr ""
26906
26907 # type: verbatim
26908 #. type: verbatim
26909 #: ../fish/guestfish-actions.pod:2850
26910 #, no-wrap
26911 msgid ""
26912 " mkmountpoint exemptpath\n"
26913 "\n"
26914 msgstr ""
26915
26916 # type: textblock
26917 #. type: textblock
26918 #: ../fish/guestfish-actions.pod:2852
26919 msgid ""
26920 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
26921 "to create extra mountpoints before mounting the first filesystem."
26922 msgstr ""
26923
26924 # type: textblock
26925 #. type: textblock
26926 #: ../fish/guestfish-actions.pod:2876
26927 msgid ""
26928 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
26929 "unexpected errors if you try to mix these calls.  It is safest to manually "
26930 "unmount filesystems and remove mountpoints after use."
26931 msgstr ""
26932
26933 # type: textblock
26934 #. type: textblock
26935 #: ../fish/guestfish-actions.pod:2880
26936 msgid ""
26937 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
26938 "for this to work for manual mountpoints, you must ensure that the innermost "
26939 "mountpoints have the longest pathnames, as in the example code above."
26940 msgstr ""
26941
26942 # type: textblock
26943 #. type: textblock
26944 #: ../fish/guestfish-actions.pod:2887
26945 msgid ""
26946 "Autosync [see L</set-autosync>, this is set by default on handles] means "
26947 "that L</umount-all> is called when the handle is closed which can also "
26948 "trigger these issues."
26949 msgstr ""
26950
26951 # type: =head2
26952 #. type: =head2
26953 #: ../fish/guestfish-actions.pod:2891
26954 msgid "mknod"
26955 msgstr ""
26956
26957 # type: verbatim
26958 #. type: verbatim
26959 #: ../fish/guestfish-actions.pod:2893
26960 #, no-wrap
26961 msgid ""
26962 " mknod mode devmajor devminor path\n"
26963 "\n"
26964 msgstr ""
26965
26966 # type: textblock
26967 #. type: textblock
26968 #: ../fish/guestfish-actions.pod:2903
26969 msgid ""
26970 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26971 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26972 "regular file).  These constants are available in the standard Linux header "
26973 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
26974 "wrappers around this command which bitwise OR in the appropriate constant "
26975 "for you."
26976 msgstr ""
26977
26978 # type: =head2
26979 #. type: =head2
26980 #: ../fish/guestfish-actions.pod:2913
26981 msgid "mknod-b"
26982 msgstr ""
26983
26984 # type: verbatim
26985 #. type: verbatim
26986 #: ../fish/guestfish-actions.pod:2915
26987 #, no-wrap
26988 msgid ""
26989 " mknod-b mode devmajor devminor path\n"
26990 "\n"
26991 msgstr ""
26992
26993 # type: textblock
26994 #. type: textblock
26995 #: ../fish/guestfish-actions.pod:2917
26996 msgid ""
26997 "This call creates a block device node called C<path> with mode C<mode> and "
26998 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26999 "wrapper around L</mknod>."
27000 msgstr ""
27001
27002 # type: =head2
27003 #. type: =head2
27004 #: ../fish/guestfish-actions.pod:2923
27005 msgid "mknod-c"
27006 msgstr ""
27007
27008 # type: verbatim
27009 #. type: verbatim
27010 #: ../fish/guestfish-actions.pod:2925
27011 #, no-wrap
27012 msgid ""
27013 " mknod-c mode devmajor devminor path\n"
27014 "\n"
27015 msgstr ""
27016
27017 # type: textblock
27018 #. type: textblock
27019 #: ../fish/guestfish-actions.pod:2927
27020 msgid ""
27021 "This call creates a char device node called C<path> with mode C<mode> and "
27022 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27023 "wrapper around L</mknod>."
27024 msgstr ""
27025
27026 # type: =head2
27027 #. type: =head2
27028 #: ../fish/guestfish-actions.pod:2933
27029 msgid "mkswap"
27030 msgstr ""
27031
27032 # type: verbatim
27033 #. type: verbatim
27034 #: ../fish/guestfish-actions.pod:2935
27035 #, no-wrap
27036 msgid ""
27037 " mkswap device\n"
27038 "\n"
27039 msgstr ""
27040
27041 # type: =head2
27042 #. type: =head2
27043 #: ../fish/guestfish-actions.pod:2939
27044 msgid "mkswap-L"
27045 msgstr ""
27046
27047 # type: verbatim
27048 #. type: verbatim
27049 #: ../fish/guestfish-actions.pod:2941
27050 #, no-wrap
27051 msgid ""
27052 " mkswap-L label device\n"
27053 "\n"
27054 msgstr ""
27055
27056 # type: =head2
27057 #. type: =head2
27058 #: ../fish/guestfish-actions.pod:2949
27059 msgid "mkswap-U"
27060 msgstr ""
27061
27062 # type: verbatim
27063 #. type: verbatim
27064 #: ../fish/guestfish-actions.pod:2951
27065 #, no-wrap
27066 msgid ""
27067 " mkswap-U uuid device\n"
27068 "\n"
27069 msgstr ""
27070
27071 # type: =head2
27072 #. type: =head2
27073 #: ../fish/guestfish-actions.pod:2955
27074 msgid "mkswap-file"
27075 msgstr ""
27076
27077 # type: verbatim
27078 #. type: verbatim
27079 #: ../fish/guestfish-actions.pod:2957
27080 #, no-wrap
27081 msgid ""
27082 " mkswap-file path\n"
27083 "\n"
27084 msgstr ""
27085
27086 # type: textblock
27087 #. type: textblock
27088 #: ../fish/guestfish-actions.pod:2961
27089 msgid ""
27090 "This command just writes a swap file signature to an existing file.  To "
27091 "create the file itself, use something like L</fallocate>."
27092 msgstr ""
27093
27094 # type: =head2
27095 #. type: =head2
27096 #: ../fish/guestfish-actions.pod:2964
27097 msgid "modprobe"
27098 msgstr ""
27099
27100 # type: verbatim
27101 #. type: verbatim
27102 #: ../fish/guestfish-actions.pod:2966
27103 #, no-wrap
27104 msgid ""
27105 " modprobe modulename\n"
27106 "\n"
27107 msgstr ""
27108
27109 # type: =head2
27110 #. type: =head2
27111 #: ../fish/guestfish-actions.pod:2973
27112 msgid "mount"
27113 msgstr ""
27114
27115 # type: verbatim
27116 #. type: verbatim
27117 #: ../fish/guestfish-actions.pod:2975
27118 #, no-wrap
27119 msgid ""
27120 " mount device mountpoint\n"
27121 "\n"
27122 msgstr ""
27123
27124 # type: textblock
27125 #. type: textblock
27126 #: ../fish/guestfish-actions.pod:2991
27127 msgid ""
27128 "B<Important note:> When you use this call, the filesystem options C<sync> "
27129 "and C<noatime> are set implicitly.  This was originally done because we "
27130 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27131 "very large negative performance impact and negligible effect on "
27132 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27133 "code that needs performance, and instead use L</mount-options> (use an empty "
27134 "string for the first parameter if you don't want any options)."
27135 msgstr ""
27136
27137 # type: =head2
27138 #. type: =head2
27139 #: ../fish/guestfish-actions.pod:3001
27140 msgid "mount-loop"
27141 msgstr ""
27142
27143 # type: verbatim
27144 #. type: verbatim
27145 #: ../fish/guestfish-actions.pod:3003
27146 #, no-wrap
27147 msgid ""
27148 " mount-loop file mountpoint\n"
27149 "\n"
27150 msgstr ""
27151
27152 # type: =head2
27153 #. type: =head2
27154 #: ../fish/guestfish-actions.pod:3009
27155 msgid "mount-options"
27156 msgstr ""
27157
27158 # type: verbatim
27159 #. type: verbatim
27160 #: ../fish/guestfish-actions.pod:3011
27161 #, no-wrap
27162 msgid ""
27163 " mount-options options device mountpoint\n"
27164 "\n"
27165 msgstr ""
27166
27167 # type: textblock
27168 #. type: textblock
27169 #: ../fish/guestfish-actions.pod:3013
27170 msgid ""
27171 "This is the same as the L</mount> command, but it allows you to set the "
27172 "mount options as for the L<mount(8)> I<-o> flag."
27173 msgstr ""
27174
27175 # type: =head2
27176 #. type: =head2
27177 #: ../fish/guestfish-actions.pod:3021
27178 msgid "mount-ro"
27179 msgstr ""
27180
27181 # type: verbatim
27182 #. type: verbatim
27183 #: ../fish/guestfish-actions.pod:3023
27184 #, no-wrap
27185 msgid ""
27186 " mount-ro device mountpoint\n"
27187 "\n"
27188 msgstr ""
27189
27190 # type: textblock
27191 #. type: textblock
27192 #: ../fish/guestfish-actions.pod:3025
27193 msgid ""
27194 "This is the same as the L</mount> command, but it mounts the filesystem with "
27195 "the read-only (I<-o ro>) flag."
27196 msgstr ""
27197
27198 # type: =head2
27199 #. type: =head2
27200 #: ../fish/guestfish-actions.pod:3028
27201 msgid "mount-vfs"
27202 msgstr ""
27203
27204 # type: verbatim
27205 #. type: verbatim
27206 #: ../fish/guestfish-actions.pod:3030
27207 #, no-wrap
27208 msgid ""
27209 " mount-vfs options vfstype device mountpoint\n"
27210 "\n"
27211 msgstr ""
27212
27213 # type: textblock
27214 #. type: textblock
27215 #: ../fish/guestfish-actions.pod:3032
27216 msgid ""
27217 "This is the same as the L</mount> command, but it allows you to set both the "
27218 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27219 msgstr ""
27220
27221 # type: =head2
27222 #. type: =head2
27223 #: ../fish/guestfish-actions.pod:3036
27224 msgid "mountpoints"
27225 msgstr ""
27226
27227 # type: verbatim
27228 #. type: verbatim
27229 #: ../fish/guestfish-actions.pod:3038
27230 #, no-wrap
27231 msgid ""
27232 " mountpoints\n"
27233 "\n"
27234 msgstr ""
27235
27236 # type: textblock
27237 #. type: textblock
27238 #: ../fish/guestfish-actions.pod:3040
27239 msgid ""
27240 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27241 "This one returns a hash table (map) of device name to directory where the "
27242 "device is mounted."
27243 msgstr ""
27244
27245 # type: =head2
27246 #. type: =head2
27247 #: ../fish/guestfish-actions.pod:3044
27248 msgid "mounts"
27249 msgstr ""
27250
27251 # type: verbatim
27252 #. type: verbatim
27253 #: ../fish/guestfish-actions.pod:3046
27254 #, no-wrap
27255 msgid ""
27256 " mounts\n"
27257 "\n"
27258 msgstr ""
27259
27260 # type: textblock
27261 #. type: textblock
27262 #: ../fish/guestfish-actions.pod:3053
27263 msgid "See also: L</mountpoints>"
27264 msgstr ""
27265
27266 # type: =head2
27267 #. type: =head2
27268 #: ../fish/guestfish-actions.pod:3055
27269 msgid "mv"
27270 msgstr ""
27271
27272 # type: verbatim
27273 #. type: verbatim
27274 #: ../fish/guestfish-actions.pod:3057
27275 #, no-wrap
27276 msgid ""
27277 " mv src dest\n"
27278 "\n"
27279 msgstr ""
27280
27281 # type: =head2
27282 #. type: =head2
27283 #: ../fish/guestfish-actions.pod:3062
27284 msgid "ntfs-3g-probe"
27285 msgstr ""
27286
27287 # type: verbatim
27288 #. type: verbatim
27289 #: ../fish/guestfish-actions.pod:3064
27290 #, no-wrap
27291 msgid ""
27292 " ntfs-3g-probe true|false device\n"
27293 "\n"
27294 msgstr ""
27295
27296 # type: =head2
27297 #. type: =head2
27298 #: ../fish/guestfish-actions.pod:3078
27299 msgid "ntfsresize"
27300 msgstr ""
27301
27302 # type: verbatim
27303 #. type: verbatim
27304 #: ../fish/guestfish-actions.pod:3080
27305 #, no-wrap
27306 msgid ""
27307 " ntfsresize device\n"
27308 "\n"
27309 msgstr ""
27310
27311 # type: =head2
27312 #. type: =head2
27313 #: ../fish/guestfish-actions.pod:3086
27314 msgid "ntfsresize-size"
27315 msgstr ""
27316
27317 # type: verbatim
27318 #. type: verbatim
27319 #: ../fish/guestfish-actions.pod:3088
27320 #, no-wrap
27321 msgid ""
27322 " ntfsresize-size device size\n"
27323 "\n"
27324 msgstr ""
27325
27326 # type: textblock
27327 #. type: textblock
27328 #: ../fish/guestfish-actions.pod:3090
27329 msgid ""
27330 "This command is the same as L</ntfsresize> except that it allows you to "
27331 "specify the new size (in bytes) explicitly."
27332 msgstr ""
27333
27334 # type: =head2
27335 #. type: =head2
27336 #: ../fish/guestfish-actions.pod:3093
27337 msgid "part-add"
27338 msgstr ""
27339
27340 # type: verbatim
27341 #. type: verbatim
27342 #: ../fish/guestfish-actions.pod:3095
27343 #, no-wrap
27344 msgid ""
27345 " part-add device prlogex startsect endsect\n"
27346 "\n"
27347 msgstr ""
27348
27349 # type: textblock
27350 #. type: textblock
27351 #: ../fish/guestfish-actions.pod:3097
27352 msgid ""
27353 "This command adds a partition to C<device>.  If there is no partition table "
27354 "on the device, call L</part-init> first."
27355 msgstr ""
27356
27357 # type: textblock
27358 #. type: textblock
27359 #: ../fish/guestfish-actions.pod:3109
27360 msgid ""
27361 "Creating a partition which covers the whole disk is not so easy.  Use L</"
27362 "part-disk> to do that."
27363 msgstr ""
27364
27365 # type: =head2
27366 #. type: =head2
27367 #: ../fish/guestfish-actions.pod:3112
27368 msgid "part-del"
27369 msgstr ""
27370
27371 # type: verbatim
27372 #. type: verbatim
27373 #: ../fish/guestfish-actions.pod:3114
27374 #, no-wrap
27375 msgid ""
27376 " part-del device partnum\n"
27377 "\n"
27378 msgstr ""
27379
27380 # type: =head2
27381 #. type: =head2
27382 #: ../fish/guestfish-actions.pod:3122
27383 msgid "part-disk"
27384 msgstr ""
27385
27386 # type: verbatim
27387 #. type: verbatim
27388 #: ../fish/guestfish-actions.pod:3124
27389 #, no-wrap
27390 msgid ""
27391 " part-disk device parttype\n"
27392 "\n"
27393 msgstr ""
27394
27395 # type: textblock
27396 #. type: textblock
27397 #: ../fish/guestfish-actions.pod:3126
27398 msgid ""
27399 "This command is simply a combination of L</part-init> followed by L</part-"
27400 "add> to create a single primary partition covering the whole disk."
27401 msgstr ""
27402
27403 # type: textblock
27404 #. type: textblock
27405 #: ../fish/guestfish-actions.pod:3130
27406 msgid ""
27407 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27408 "possible values are described in L</part-init>."
27409 msgstr ""
27410
27411 # type: =head2
27412 #. type: =head2
27413 #: ../fish/guestfish-actions.pod:3136
27414 msgid "part-get-bootable"
27415 msgstr ""
27416
27417 # type: verbatim
27418 #. type: verbatim
27419 #: ../fish/guestfish-actions.pod:3138
27420 #, no-wrap
27421 msgid ""
27422 " part-get-bootable device partnum\n"
27423 "\n"
27424 msgstr ""
27425
27426 # type: textblock
27427 #. type: textblock
27428 #: ../fish/guestfish-actions.pod:3143
27429 msgid "See also L</part-set-bootable>."
27430 msgstr ""
27431
27432 # type: =head2
27433 #. type: =head2
27434 #: ../fish/guestfish-actions.pod:3145
27435 msgid "part-get-mbr-id"
27436 msgstr ""
27437
27438 # type: verbatim
27439 #. type: verbatim
27440 #: ../fish/guestfish-actions.pod:3147
27441 #, no-wrap
27442 msgid ""
27443 " part-get-mbr-id device partnum\n"
27444 "\n"
27445 msgstr ""
27446
27447 # type: textblock
27448 #. type: textblock
27449 #: ../fish/guestfish-actions.pod:3152 ../fish/guestfish-actions.pod:3290
27450 msgid ""
27451 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27452 "undefined results for other partition table types (see L</part-get-"
27453 "parttype>)."
27454 msgstr ""
27455
27456 # type: =head2
27457 #. type: =head2
27458 #: ../fish/guestfish-actions.pod:3156
27459 msgid "part-get-parttype"
27460 msgstr ""
27461
27462 # type: verbatim
27463 #. type: verbatim
27464 #: ../fish/guestfish-actions.pod:3158
27465 #, no-wrap
27466 msgid ""
27467 " part-get-parttype device\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: textblock
27472 #. type: textblock
27473 #: ../fish/guestfish-actions.pod:3163
27474 msgid ""
27475 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27476 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27477 "possible, although unusual.  See L</part-init> for a full list."
27478 msgstr ""
27479
27480 # type: =head2
27481 #. type: =head2
27482 #: ../fish/guestfish-actions.pod:3168
27483 msgid "part-init"
27484 msgstr ""
27485
27486 # type: verbatim
27487 #. type: verbatim
27488 #: ../fish/guestfish-actions.pod:3170
27489 #, no-wrap
27490 msgid ""
27491 " part-init device parttype\n"
27492 "\n"
27493 msgstr ""
27494
27495 # type: textblock
27496 #. type: textblock
27497 #: ../fish/guestfish-actions.pod:3176
27498 msgid ""
27499 "Initially there are no partitions.  Following this, you should call L</part-"
27500 "add> for each partition required."
27501 msgstr ""
27502
27503 # type: =head2
27504 #. type: =head2
27505 #: ../fish/guestfish-actions.pod:3239
27506 msgid "part-list"
27507 msgstr ""
27508
27509 # type: verbatim
27510 #. type: verbatim
27511 #: ../fish/guestfish-actions.pod:3241
27512 #, no-wrap
27513 msgid ""
27514 " part-list device\n"
27515 "\n"
27516 msgstr ""
27517
27518 # type: textblock
27519 #. type: textblock
27520 #: ../fish/guestfish-actions.pod:3256
27521 msgid ""
27522 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27523 "the device's sector size, see L</blockdev-getss>."
27524 msgstr ""
27525
27526 # type: =head2
27527 #. type: =head2
27528 #: ../fish/guestfish-actions.pod:3269
27529 msgid "part-set-bootable"
27530 msgstr ""
27531
27532 # type: verbatim
27533 #. type: verbatim
27534 #: ../fish/guestfish-actions.pod:3271
27535 #, no-wrap
27536 msgid ""
27537 " part-set-bootable device partnum true|false\n"
27538 "\n"
27539 msgstr ""
27540
27541 # type: =head2
27542 #. type: =head2
27543 #: ../fish/guestfish-actions.pod:3280
27544 msgid "part-set-mbr-id"
27545 msgstr ""
27546
27547 # type: verbatim
27548 #. type: verbatim
27549 #: ../fish/guestfish-actions.pod:3282
27550 #, no-wrap
27551 msgid ""
27552 " part-set-mbr-id device partnum idbyte\n"
27553 "\n"
27554 msgstr ""
27555
27556 # type: =head2
27557 #. type: =head2
27558 #: ../fish/guestfish-actions.pod:3294
27559 msgid "part-set-name"
27560 msgstr ""
27561
27562 # type: verbatim
27563 #. type: verbatim
27564 #: ../fish/guestfish-actions.pod:3296
27565 #, no-wrap
27566 msgid ""
27567 " part-set-name device partnum name\n"
27568 "\n"
27569 msgstr ""
27570
27571 # type: =head2
27572 #. type: =head2
27573 #: ../fish/guestfish-actions.pod:3304
27574 msgid "part-to-dev"
27575 msgstr ""
27576
27577 # type: verbatim
27578 #. type: verbatim
27579 #: ../fish/guestfish-actions.pod:3306
27580 #, no-wrap
27581 msgid ""
27582 " part-to-dev partition\n"
27583 "\n"
27584 msgstr ""
27585
27586 # type: textblock
27587 #. type: textblock
27588 #: ../fish/guestfish-actions.pod:3312
27589 msgid ""
27590 "The named partition must exist, for example as a string returned from L</"
27591 "list-partitions>."
27592 msgstr ""
27593
27594 # type: =head2
27595 #. type: =head2
27596 #: ../fish/guestfish-actions.pod:3315
27597 msgid "ping-daemon"
27598 msgstr ""
27599
27600 # type: verbatim
27601 #. type: verbatim
27602 #: ../fish/guestfish-actions.pod:3317
27603 #, no-wrap
27604 msgid ""
27605 " ping-daemon\n"
27606 "\n"
27607 msgstr ""
27608
27609 # type: =head2
27610 #. type: =head2
27611 #: ../fish/guestfish-actions.pod:3324
27612 msgid "pread"
27613 msgstr ""
27614
27615 # type: verbatim
27616 #. type: verbatim
27617 #: ../fish/guestfish-actions.pod:3326
27618 #, no-wrap
27619 msgid ""
27620 " pread path count offset\n"
27621 "\n"
27622 msgstr ""
27623
27624 # type: textblock
27625 #. type: textblock
27626 #: ../fish/guestfish-actions.pod:3334
27627 msgid "See also L</pwrite>, L</pread-device>."
27628 msgstr ""
27629
27630 # type: =head2
27631 #. type: =head2
27632 #: ../fish/guestfish-actions.pod:3339
27633 msgid "pread-device"
27634 msgstr ""
27635
27636 # type: verbatim
27637 #. type: verbatim
27638 #: ../fish/guestfish-actions.pod:3341
27639 #, no-wrap
27640 msgid ""
27641 " pread-device device count offset\n"
27642 "\n"
27643 msgstr ""
27644
27645 # type: textblock
27646 #. type: textblock
27647 #: ../fish/guestfish-actions.pod:3349
27648 msgid "See also L</pread>."
27649 msgstr ""
27650
27651 # type: =head2
27652 #. type: =head2
27653 #: ../fish/guestfish-actions.pod:3354
27654 msgid "pvcreate"
27655 msgstr ""
27656
27657 # type: verbatim
27658 #. type: verbatim
27659 #: ../fish/guestfish-actions.pod:3356
27660 #, no-wrap
27661 msgid ""
27662 " pvcreate device\n"
27663 "\n"
27664 msgstr ""
27665
27666 # type: =head2
27667 #. type: =head2
27668 #: ../fish/guestfish-actions.pod:3362
27669 msgid "pvremove"
27670 msgstr ""
27671
27672 # type: verbatim
27673 #. type: verbatim
27674 #: ../fish/guestfish-actions.pod:3364
27675 #, no-wrap
27676 msgid ""
27677 " pvremove device\n"
27678 "\n"
27679 msgstr ""
27680
27681 # type: =head2
27682 #. type: =head2
27683 #: ../fish/guestfish-actions.pod:3373
27684 msgid "pvresize"
27685 msgstr ""
27686
27687 # type: verbatim
27688 #. type: verbatim
27689 #: ../fish/guestfish-actions.pod:3375
27690 #, no-wrap
27691 msgid ""
27692 " pvresize device\n"
27693 "\n"
27694 msgstr ""
27695
27696 # type: =head2
27697 #. type: =head2
27698 #: ../fish/guestfish-actions.pod:3380
27699 msgid "pvresize-size"
27700 msgstr ""
27701
27702 # type: verbatim
27703 #. type: verbatim
27704 #: ../fish/guestfish-actions.pod:3382
27705 #, no-wrap
27706 msgid ""
27707 " pvresize-size device size\n"
27708 "\n"
27709 msgstr ""
27710
27711 # type: textblock
27712 #. type: textblock
27713 #: ../fish/guestfish-actions.pod:3384
27714 msgid ""
27715 "This command is the same as L</pvresize> except that it allows you to "
27716 "specify the new size (in bytes) explicitly."
27717 msgstr ""
27718
27719 # type: =head2
27720 #. type: =head2
27721 #: ../fish/guestfish-actions.pod:3387
27722 msgid "pvs"
27723 msgstr ""
27724
27725 # type: verbatim
27726 #. type: verbatim
27727 #: ../fish/guestfish-actions.pod:3389
27728 #, no-wrap
27729 msgid ""
27730 " pvs\n"
27731 "\n"
27732 msgstr ""
27733
27734 # type: textblock
27735 #. type: textblock
27736 #: ../fish/guestfish-actions.pod:3397
27737 msgid "See also L</pvs-full>."
27738 msgstr ""
27739
27740 # type: =head2
27741 #. type: =head2
27742 #: ../fish/guestfish-actions.pod:3399
27743 msgid "pvs-full"
27744 msgstr ""
27745
27746 # type: verbatim
27747 #. type: verbatim
27748 #: ../fish/guestfish-actions.pod:3401
27749 #, no-wrap
27750 msgid ""
27751 " pvs-full\n"
27752 "\n"
27753 msgstr ""
27754
27755 # type: =head2
27756 #. type: =head2
27757 #: ../fish/guestfish-actions.pod:3406
27758 msgid "pvuuid"
27759 msgstr ""
27760
27761 # type: verbatim
27762 #. type: verbatim
27763 #: ../fish/guestfish-actions.pod:3408
27764 #, no-wrap
27765 msgid ""
27766 " pvuuid device\n"
27767 "\n"
27768 msgstr ""
27769
27770 # type: =head2
27771 #. type: =head2
27772 #: ../fish/guestfish-actions.pod:3412
27773 msgid "pwrite"
27774 msgstr ""
27775
27776 # type: verbatim
27777 #. type: verbatim
27778 #: ../fish/guestfish-actions.pod:3414
27779 #, no-wrap
27780 msgid ""
27781 " pwrite path content offset\n"
27782 "\n"
27783 msgstr ""
27784
27785 # type: textblock
27786 #. type: textblock
27787 #: ../fish/guestfish-actions.pod:3425
27788 msgid "See also L</pread>, L</pwrite-device>."
27789 msgstr ""
27790
27791 # type: =head2
27792 #. type: =head2
27793 #: ../fish/guestfish-actions.pod:3430
27794 msgid "pwrite-device"
27795 msgstr ""
27796
27797 # type: verbatim
27798 #. type: verbatim
27799 #: ../fish/guestfish-actions.pod:3432
27800 #, no-wrap
27801 msgid ""
27802 " pwrite-device device content offset\n"
27803 "\n"
27804 msgstr ""
27805
27806 # type: textblock
27807 #. type: textblock
27808 #: ../fish/guestfish-actions.pod:3442
27809 msgid "See also L</pwrite>."
27810 msgstr ""
27811
27812 # type: =head2
27813 #. type: =head2
27814 #: ../fish/guestfish-actions.pod:3447
27815 msgid "read-file"
27816 msgstr ""
27817
27818 # type: verbatim
27819 #. type: verbatim
27820 #: ../fish/guestfish-actions.pod:3449
27821 #, no-wrap
27822 msgid ""
27823 " read-file path\n"
27824 "\n"
27825 msgstr ""
27826
27827 # type: textblock
27828 #. type: textblock
27829 #: ../fish/guestfish-actions.pod:3454
27830 msgid ""
27831 "Unlike L</cat>, this function can correctly handle files that contain "
27832 "embedded ASCII NUL characters.  However unlike L</download>, this function "
27833 "is limited in the total size of file that can be handled."
27834 msgstr ""
27835
27836 # type: =head2
27837 #. type: =head2
27838 #: ../fish/guestfish-actions.pod:3462
27839 msgid "read-lines"
27840 msgstr ""
27841
27842 # type: verbatim
27843 #. type: verbatim
27844 #: ../fish/guestfish-actions.pod:3464
27845 #, no-wrap
27846 msgid ""
27847 " read-lines path\n"
27848 "\n"
27849 msgstr ""
27850
27851 # type: textblock
27852 #. type: textblock
27853 #: ../fish/guestfish-actions.pod:3471
27854 msgid ""
27855 "Note that this function cannot correctly handle binary files (specifically, "
27856 "files containing C<\\0> character which is treated as end of line).  For "
27857 "those you need to use the L</read-file> function which has a more complex "
27858 "interface."
27859 msgstr ""
27860
27861 # type: =head2
27862 #. type: =head2
27863 #: ../fish/guestfish-actions.pod:3476
27864 msgid "readdir"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #. type: verbatim
27869 #: ../fish/guestfish-actions.pod:3478
27870 #, no-wrap
27871 msgid ""
27872 " readdir dir\n"
27873 "\n"
27874 msgstr ""
27875
27876 # type: textblock
27877 #. type: textblock
27878 #: ../fish/guestfish-actions.pod:3530
27879 msgid ""
27880 "This function is primarily intended for use by programs.  To get a simple "
27881 "list of names, use L</ls>.  To get a printable directory for human "
27882 "consumption, use L</ll>."
27883 msgstr ""
27884
27885 # type: =head2
27886 #. type: =head2
27887 #: ../fish/guestfish-actions.pod:3534
27888 msgid "readlink"
27889 msgstr ""
27890
27891 # type: verbatim
27892 #. type: verbatim
27893 #: ../fish/guestfish-actions.pod:3536
27894 #, no-wrap
27895 msgid ""
27896 " readlink path\n"
27897 "\n"
27898 msgstr ""
27899
27900 # type: =head2
27901 #. type: =head2
27902 #: ../fish/guestfish-actions.pod:3540
27903 msgid "readlinklist"
27904 msgstr ""
27905
27906 # type: verbatim
27907 #. type: verbatim
27908 #: ../fish/guestfish-actions.pod:3542
27909 #, no-wrap
27910 msgid ""
27911 " readlinklist path 'names ...'\n"
27912 "\n"
27913 msgstr ""
27914
27915 # type: =head2
27916 #. type: =head2
27917 #: ../fish/guestfish-actions.pod:3566
27918 msgid "realpath"
27919 msgstr ""
27920
27921 # type: verbatim
27922 #. type: verbatim
27923 #: ../fish/guestfish-actions.pod:3568
27924 #, no-wrap
27925 msgid ""
27926 " realpath path\n"
27927 "\n"
27928 msgstr ""
27929
27930 # type: =head2
27931 #. type: =head2
27932 #: ../fish/guestfish-actions.pod:3573
27933 msgid "removexattr"
27934 msgstr ""
27935
27936 # type: verbatim
27937 #. type: verbatim
27938 #: ../fish/guestfish-actions.pod:3575
27939 #, no-wrap
27940 msgid ""
27941 " removexattr xattr path\n"
27942 "\n"
27943 msgstr ""
27944
27945 # type: textblock
27946 #. type: textblock
27947 #: ../fish/guestfish-actions.pod:3580
27948 msgid "See also: L</lremovexattr>, L<attr(5)>."
27949 msgstr ""
27950
27951 # type: =head2
27952 #. type: =head2
27953 #: ../fish/guestfish-actions.pod:3582
27954 msgid "resize2fs"
27955 msgstr ""
27956
27957 # type: verbatim
27958 #. type: verbatim
27959 #: ../fish/guestfish-actions.pod:3584
27960 #, no-wrap
27961 msgid ""
27962 " resize2fs device\n"
27963 "\n"
27964 msgstr ""
27965
27966 # type: textblock
27967 #. type: textblock
27968 #: ../fish/guestfish-actions.pod:3589
27969 msgid ""
27970 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
27971 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
27972 "gives an error about this and sometimes not.  In any case, it is always safe "
27973 "to call L</e2fsck-f> before calling this function."
27974 msgstr ""
27975
27976 # type: =head2
27977 #. type: =head2
27978 #: ../fish/guestfish-actions.pod:3595
27979 msgid "resize2fs-size"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #. type: verbatim
27984 #: ../fish/guestfish-actions.pod:3597
27985 #, no-wrap
27986 msgid ""
27987 " resize2fs-size device size\n"
27988 "\n"
27989 msgstr ""
27990
27991 # type: textblock
27992 #. type: textblock
27993 #: ../fish/guestfish-actions.pod:3599
27994 msgid ""
27995 "This command is the same as L</resize2fs> except that it allows you to "
27996 "specify the new size (in bytes) explicitly."
27997 msgstr ""
27998
27999 # type: =head2
28000 #. type: =head2
28001 #: ../fish/guestfish-actions.pod:3602
28002 msgid "rm"
28003 msgstr ""
28004
28005 # type: verbatim
28006 #. type: verbatim
28007 #: ../fish/guestfish-actions.pod:3604
28008 #, no-wrap
28009 msgid ""
28010 " rm path\n"
28011 "\n"
28012 msgstr ""
28013
28014 # type: =head2
28015 #. type: =head2
28016 #: ../fish/guestfish-actions.pod:3608
28017 msgid "rm-rf"
28018 msgstr ""
28019
28020 # type: verbatim
28021 #. type: verbatim
28022 #: ../fish/guestfish-actions.pod:3610
28023 #, no-wrap
28024 msgid ""
28025 " rm-rf path\n"
28026 "\n"
28027 msgstr ""
28028
28029 # type: =head2
28030 #. type: =head2
28031 #: ../fish/guestfish-actions.pod:3616
28032 msgid "rmdir"
28033 msgstr ""
28034
28035 # type: verbatim
28036 #. type: verbatim
28037 #: ../fish/guestfish-actions.pod:3618
28038 #, no-wrap
28039 msgid ""
28040 " rmdir path\n"
28041 "\n"
28042 msgstr ""
28043
28044 # type: =head2
28045 #. type: =head2
28046 #: ../fish/guestfish-actions.pod:3622
28047 msgid "rmmountpoint"
28048 msgstr ""
28049
28050 # type: verbatim
28051 #. type: verbatim
28052 #: ../fish/guestfish-actions.pod:3624
28053 #, no-wrap
28054 msgid ""
28055 " rmmountpoint exemptpath\n"
28056 "\n"
28057 msgstr ""
28058
28059 # type: textblock
28060 #. type: textblock
28061 #: ../fish/guestfish-actions.pod:3626
28062 msgid ""
28063 "This calls removes a mountpoint that was previously created with L</"
28064 "mkmountpoint>.  See L</mkmountpoint> for full details."
28065 msgstr ""
28066
28067 # type: =head2
28068 #. type: =head2
28069 #: ../fish/guestfish-actions.pod:3630
28070 msgid "scrub-device"
28071 msgstr ""
28072
28073 # type: verbatim
28074 #. type: verbatim
28075 #: ../fish/guestfish-actions.pod:3632
28076 #, no-wrap
28077 msgid ""
28078 " scrub-device device\n"
28079 "\n"
28080 msgstr ""
28081
28082 # type: =head2
28083 #. type: =head2
28084 #: ../fish/guestfish-actions.pod:3643
28085 msgid "scrub-file"
28086 msgstr ""
28087
28088 # type: verbatim
28089 #. type: verbatim
28090 #: ../fish/guestfish-actions.pod:3645
28091 #, no-wrap
28092 msgid ""
28093 " scrub-file file\n"
28094 "\n"
28095 msgstr ""
28096
28097 # type: =head2
28098 #. type: =head2
28099 #: ../fish/guestfish-actions.pod:3655
28100 msgid "scrub-freespace"
28101 msgstr ""
28102
28103 # type: verbatim
28104 #. type: verbatim
28105 #: ../fish/guestfish-actions.pod:3657
28106 #, no-wrap
28107 msgid ""
28108 " scrub-freespace dir\n"
28109 "\n"
28110 msgstr ""
28111
28112 # type: textblock
28113 #. type: textblock
28114 #: ../fish/guestfish-actions.pod:3659
28115 msgid ""
28116 "This command creates the directory C<dir> and then fills it with files until "
28117 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28118 "deletes them.  The intention is to scrub any free space on the partition "
28119 "containing C<dir>."
28120 msgstr ""
28121
28122 # type: =head2
28123 #. type: =head2
28124 #: ../fish/guestfish-actions.pod:3668
28125 msgid "set-append"
28126 msgstr ""
28127
28128 # type: =head2
28129 #. type: =head2
28130 #: ../fish/guestfish-actions.pod:3670
28131 msgid "append"
28132 msgstr ""
28133
28134 # type: verbatim
28135 #. type: verbatim
28136 #: ../fish/guestfish-actions.pod:3672
28137 #, no-wrap
28138 msgid ""
28139 " set-append append\n"
28140 "\n"
28141 msgstr ""
28142
28143 # type: =head2
28144 #. type: =head2
28145 #: ../fish/guestfish-actions.pod:3683
28146 msgid "set-autosync"
28147 msgstr ""
28148
28149 # type: =head2
28150 #. type: =head2
28151 #: ../fish/guestfish-actions.pod:3685
28152 msgid "autosync"
28153 msgstr ""
28154
28155 # type: verbatim
28156 #. type: verbatim
28157 #: ../fish/guestfish-actions.pod:3687
28158 #, no-wrap
28159 msgid ""
28160 " set-autosync true|false\n"
28161 "\n"
28162 msgstr ""
28163
28164 # type: textblock
28165 #. type: textblock
28166 #: ../fish/guestfish-actions.pod:3689
28167 msgid ""
28168 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
28169 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
28170 "closed (also if the program exits without closing handles)."
28171 msgstr ""
28172
28173 # type: =head2
28174 #. type: =head2
28175 #: ../fish/guestfish-actions.pod:3697
28176 msgid "set-direct"
28177 msgstr ""
28178
28179 # type: =head2
28180 #. type: =head2
28181 #: ../fish/guestfish-actions.pod:3699
28182 msgid "direct"
28183 msgstr ""
28184
28185 # type: verbatim
28186 #. type: verbatim
28187 #: ../fish/guestfish-actions.pod:3701
28188 #, no-wrap
28189 msgid ""
28190 " set-direct true|false\n"
28191 "\n"
28192 msgstr ""
28193
28194 # type: textblock
28195 #. type: textblock
28196 #: ../fish/guestfish-actions.pod:3707
28197 msgid ""
28198 "One consequence of this is that log messages aren't caught by the library "
28199 "and handled by L</set-log-message-callback>, but go straight to stdout."
28200 msgstr ""
28201
28202 # type: =head2
28203 #. type: =head2
28204 #: ../fish/guestfish-actions.pod:3716
28205 msgid "set-e2label"
28206 msgstr ""
28207
28208 # type: verbatim
28209 #. type: verbatim
28210 #: ../fish/guestfish-actions.pod:3718
28211 #, no-wrap
28212 msgid ""
28213 " set-e2label device label\n"
28214 "\n"
28215 msgstr ""
28216
28217 # type: textblock
28218 #. type: textblock
28219 #: ../fish/guestfish-actions.pod:3724
28220 msgid ""
28221 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28222 "label on a filesystem."
28223 msgstr ""
28224
28225 # type: =head2
28226 #. type: =head2
28227 #: ../fish/guestfish-actions.pod:3727
28228 msgid "set-e2uuid"
28229 msgstr ""
28230
28231 # type: verbatim
28232 #. type: verbatim
28233 #: ../fish/guestfish-actions.pod:3729
28234 #, no-wrap
28235 msgid ""
28236 " set-e2uuid device uuid\n"
28237 "\n"
28238 msgstr ""
28239
28240 # type: textblock
28241 #. type: textblock
28242 #: ../fish/guestfish-actions.pod:3736
28243 msgid ""
28244 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28245 "UUID of a filesystem."
28246 msgstr ""
28247
28248 # type: =head2
28249 #. type: =head2
28250 #: ../fish/guestfish-actions.pod:3739
28251 msgid "set-memsize"
28252 msgstr ""
28253
28254 # type: =head2
28255 #. type: =head2
28256 #: ../fish/guestfish-actions.pod:3741
28257 msgid "memsize"
28258 msgstr ""
28259
28260 # type: verbatim
28261 #. type: verbatim
28262 #: ../fish/guestfish-actions.pod:3743
28263 #, no-wrap
28264 msgid ""
28265 " set-memsize memsize\n"
28266 "\n"
28267 msgstr ""
28268
28269 # type: textblock
28270 #. type: textblock
28271 #: ../fish/guestfish-actions.pod:3745
28272 msgid ""
28273 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28274 "This only has any effect if called before L</launch>."
28275 msgstr ""
28276
28277 # type: =head2
28278 #. type: =head2
28279 #: ../fish/guestfish-actions.pod:3756
28280 msgid "set-network"
28281 msgstr ""
28282
28283 # type: =head2
28284 #. type: =head2
28285 #: ../fish/guestfish-actions.pod:3758
28286 msgid "network"
28287 msgstr ""
28288
28289 # type: verbatim
28290 #. type: verbatim
28291 #: ../fish/guestfish-actions.pod:3760
28292 #, no-wrap
28293 msgid ""
28294 " set-network true|false\n"
28295 "\n"
28296 msgstr ""
28297
28298 # type: textblock
28299 #. type: textblock
28300 #: ../fish/guestfish-actions.pod:3768
28301 msgid ""
28302 "You must call this before calling L</launch>, otherwise it has no effect."
28303 msgstr ""
28304
28305 # type: =head2
28306 #. type: =head2
28307 #: ../fish/guestfish-actions.pod:3771
28308 msgid "set-path"
28309 msgstr ""
28310
28311 # type: =head2
28312 #. type: =head2
28313 #: ../fish/guestfish-actions.pod:3773
28314 msgid "path"
28315 msgstr ""
28316
28317 # type: verbatim
28318 #. type: verbatim
28319 #: ../fish/guestfish-actions.pod:3775
28320 #, no-wrap
28321 msgid ""
28322 " set-path searchpath\n"
28323 "\n"
28324 msgstr ""
28325
28326 # type: =head2
28327 #. type: =head2
28328 #: ../fish/guestfish-actions.pod:3784
28329 msgid "set-qemu"
28330 msgstr ""
28331
28332 # type: =head2
28333 #. type: =head2
28334 #: ../fish/guestfish-actions.pod:3786
28335 msgid "qemu"
28336 msgstr ""
28337
28338 # type: verbatim
28339 #. type: verbatim
28340 #: ../fish/guestfish-actions.pod:3788
28341 #, no-wrap
28342 msgid ""
28343 " set-qemu qemu\n"
28344 "\n"
28345 msgstr ""
28346
28347 # type: =head2
28348 #. type: =head2
28349 #: ../fish/guestfish-actions.pod:3808
28350 msgid "set-recovery-proc"
28351 msgstr ""
28352
28353 # type: =head2
28354 #. type: =head2
28355 #: ../fish/guestfish-actions.pod:3810
28356 msgid "recovery-proc"
28357 msgstr ""
28358
28359 # type: verbatim
28360 #. type: verbatim
28361 #: ../fish/guestfish-actions.pod:3812
28362 #, no-wrap
28363 msgid ""
28364 " set-recovery-proc true|false\n"
28365 "\n"
28366 msgstr ""
28367
28368 # type: textblock
28369 #. type: textblock
28370 #: ../fish/guestfish-actions.pod:3814
28371 msgid ""
28372 "If this is called with the parameter C<false> then L</launch> does not "
28373 "create a recovery process.  The purpose of the recovery process is to stop "
28374 "runaway qemu processes in the case where the main program aborts abruptly."
28375 msgstr ""
28376
28377 # type: textblock
28378 #. type: textblock
28379 #: ../fish/guestfish-actions.pod:3819
28380 msgid ""
28381 "This only has any effect if called before L</launch>, and the default is "
28382 "true."
28383 msgstr ""
28384
28385 # type: =head2
28386 #. type: =head2
28387 #: ../fish/guestfish-actions.pod:3828
28388 msgid "set-selinux"
28389 msgstr ""
28390
28391 # type: =head2
28392 #. type: =head2
28393 #: ../fish/guestfish-actions.pod:3830
28394 msgid "selinux"
28395 msgstr ""
28396
28397 # type: verbatim
28398 #. type: verbatim
28399 #: ../fish/guestfish-actions.pod:3832
28400 #, no-wrap
28401 msgid ""
28402 " set-selinux true|false\n"
28403 "\n"
28404 msgstr ""
28405
28406 # type: =head2
28407 #. type: =head2
28408 #: ../fish/guestfish-actions.pod:3843
28409 msgid "set-trace"
28410 msgstr ""
28411
28412 # type: =head2
28413 #. type: =head2
28414 #: ../fish/guestfish-actions.pod:3845
28415 msgid "trace"
28416 msgstr ""
28417
28418 # type: verbatim
28419 #. type: verbatim
28420 #: ../fish/guestfish-actions.pod:3847
28421 #, no-wrap
28422 msgid ""
28423 " set-trace true|false\n"
28424 "\n"
28425 msgstr ""
28426
28427 # type: =head2
28428 #. type: =head2
28429 #: ../fish/guestfish-actions.pod:3863
28430 msgid "set-verbose"
28431 msgstr ""
28432
28433 # type: =head2
28434 #. type: =head2
28435 #: ../fish/guestfish-actions.pod:3865
28436 msgid "verbose"
28437 msgstr ""
28438
28439 # type: verbatim
28440 #. type: verbatim
28441 #: ../fish/guestfish-actions.pod:3867
28442 #, no-wrap
28443 msgid ""
28444 " set-verbose true|false\n"
28445 "\n"
28446 msgstr ""
28447
28448 # type: =head2
28449 #. type: =head2
28450 #: ../fish/guestfish-actions.pod:3874
28451 msgid "setcon"
28452 msgstr ""
28453
28454 # type: verbatim
28455 #. type: verbatim
28456 #: ../fish/guestfish-actions.pod:3876
28457 #, no-wrap
28458 msgid ""
28459 " setcon context\n"
28460 "\n"
28461 msgstr ""
28462
28463 # type: =head2
28464 #. type: =head2
28465 #: ../fish/guestfish-actions.pod:3883
28466 msgid "setxattr"
28467 msgstr ""
28468
28469 # type: verbatim
28470 #. type: verbatim
28471 #: ../fish/guestfish-actions.pod:3885
28472 #, no-wrap
28473 msgid ""
28474 " setxattr xattr val vallen path\n"
28475 "\n"
28476 msgstr ""
28477
28478 # type: textblock
28479 #. type: textblock
28480 #: ../fish/guestfish-actions.pod:3891
28481 msgid "See also: L</lsetxattr>, L<attr(5)>."
28482 msgstr ""
28483
28484 # type: =head2
28485 #. type: =head2
28486 #: ../fish/guestfish-actions.pod:3893
28487 msgid "sfdisk"
28488 msgstr ""
28489
28490 # type: verbatim
28491 #. type: verbatim
28492 #: ../fish/guestfish-actions.pod:3895
28493 #, no-wrap
28494 msgid ""
28495 " sfdisk device cyls heads sectors 'lines ...'\n"
28496 "\n"
28497 msgstr ""
28498
28499 # type: textblock
28500 #. type: textblock
28501 #: ../fish/guestfish-actions.pod:3917
28502 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28503 msgstr ""
28504
28505 # type: =head2
28506 #. type: =head2
28507 #: ../fish/guestfish-actions.pod:3923
28508 msgid "sfdiskM"
28509 msgstr ""
28510
28511 # type: verbatim
28512 #. type: verbatim
28513 #: ../fish/guestfish-actions.pod:3925
28514 #, no-wrap
28515 msgid ""
28516 " sfdiskM device 'lines ...'\n"
28517 "\n"
28518 msgstr ""
28519
28520 # type: textblock
28521 #. type: textblock
28522 #: ../fish/guestfish-actions.pod:3927
28523 msgid ""
28524 "This is a simplified interface to the L</sfdisk> command, where partition "
28525 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28526 "you don't need to specify the cyls, heads and sectors parameters which were "
28527 "rarely if ever used anyway."
28528 msgstr ""
28529
28530 # type: textblock
28531 #. type: textblock
28532 #: ../fish/guestfish-actions.pod:3933
28533 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28534 msgstr ""
28535
28536 # type: =head2
28537 #. type: =head2
28538 #: ../fish/guestfish-actions.pod:3939
28539 msgid "sfdisk-N"
28540 msgstr ""
28541
28542 # type: verbatim
28543 #. type: verbatim
28544 #: ../fish/guestfish-actions.pod:3941
28545 #, no-wrap
28546 msgid ""
28547 " sfdisk-N device partnum cyls heads sectors line\n"
28548 "\n"
28549 msgstr ""
28550
28551 # type: textblock
28552 #. type: textblock
28553 #: ../fish/guestfish-actions.pod:3946
28554 msgid ""
28555 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28556 "cyls/heads/sectors parameters."
28557 msgstr ""
28558
28559 # type: textblock
28560 #. type: textblock
28561 #: ../fish/guestfish-actions.pod:3949
28562 msgid "See also: L</part-add>"
28563 msgstr ""
28564
28565 # type: =head2
28566 #. type: =head2
28567 #: ../fish/guestfish-actions.pod:3954
28568 msgid "sfdisk-disk-geometry"
28569 msgstr ""
28570
28571 # type: verbatim
28572 #. type: verbatim
28573 #: ../fish/guestfish-actions.pod:3956
28574 #, no-wrap
28575 msgid ""
28576 " sfdisk-disk-geometry device\n"
28577 "\n"
28578 msgstr ""
28579
28580 # type: textblock
28581 #. type: textblock
28582 #: ../fish/guestfish-actions.pod:3958
28583 msgid ""
28584 "This displays the disk geometry of C<device> read from the partition table.  "
28585 "Especially in the case where the underlying block device has been resized, "
28586 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
28587 "kernel-geometry>)."
28588 msgstr ""
28589
28590 # type: =head2
28591 #. type: =head2
28592 #: ../fish/guestfish-actions.pod:3966
28593 msgid "sfdisk-kernel-geometry"
28594 msgstr ""
28595
28596 # type: verbatim
28597 #. type: verbatim
28598 #: ../fish/guestfish-actions.pod:3968
28599 #, no-wrap
28600 msgid ""
28601 " sfdisk-kernel-geometry device\n"
28602 "\n"
28603 msgstr ""
28604
28605 # type: =head2
28606 #. type: =head2
28607 #: ../fish/guestfish-actions.pod:3975
28608 msgid "sfdisk-l"
28609 msgstr ""
28610
28611 # type: verbatim
28612 #. type: verbatim
28613 #: ../fish/guestfish-actions.pod:3977
28614 #, no-wrap
28615 msgid ""
28616 " sfdisk-l device\n"
28617 "\n"
28618 msgstr ""
28619
28620 # type: textblock
28621 #. type: textblock
28622 #: ../fish/guestfish-actions.pod:3983
28623 msgid "See also: L</part-list>"
28624 msgstr ""
28625
28626 # type: =head2
28627 #. type: =head2
28628 #: ../fish/guestfish-actions.pod:3985
28629 msgid "sh"
28630 msgstr ""
28631
28632 # type: verbatim
28633 #. type: verbatim
28634 #: ../fish/guestfish-actions.pod:3987
28635 #, no-wrap
28636 msgid ""
28637 " sh command\n"
28638 "\n"
28639 msgstr ""
28640
28641 # type: textblock
28642 #. type: textblock
28643 #: ../fish/guestfish-actions.pod:3992
28644 msgid "This is like L</command>, but passes the command to:"
28645 msgstr ""
28646
28647 # type: textblock
28648 #. type: textblock
28649 #: ../fish/guestfish-actions.pod:4000
28650 msgid "All the provisos about L</command> apply to this call."
28651 msgstr ""
28652
28653 # type: =head2
28654 #. type: =head2
28655 #: ../fish/guestfish-actions.pod:4002
28656 msgid "sh-lines"
28657 msgstr ""
28658
28659 # type: verbatim
28660 #. type: verbatim
28661 #: ../fish/guestfish-actions.pod:4004
28662 #, no-wrap
28663 msgid ""
28664 " sh-lines command\n"
28665 "\n"
28666 msgstr ""
28667
28668 # type: textblock
28669 #. type: textblock
28670 #: ../fish/guestfish-actions.pod:4006
28671 msgid "This is the same as L</sh>, but splits the result into a list of lines."
28672 msgstr ""
28673
28674 # type: textblock
28675 #. type: textblock
28676 #: ../fish/guestfish-actions.pod:4009
28677 msgid "See also: L</command-lines>"
28678 msgstr ""
28679
28680 # type: =head2
28681 #. type: =head2
28682 #: ../fish/guestfish-actions.pod:4011
28683 msgid "sleep"
28684 msgstr ""
28685
28686 # type: verbatim
28687 #. type: verbatim
28688 #: ../fish/guestfish-actions.pod:4013
28689 #, no-wrap
28690 msgid ""
28691 " sleep secs\n"
28692 "\n"
28693 msgstr ""
28694
28695 # type: =head2
28696 #. type: =head2
28697 #: ../fish/guestfish-actions.pod:4017
28698 msgid "stat"
28699 msgstr ""
28700
28701 # type: verbatim
28702 #. type: verbatim
28703 #: ../fish/guestfish-actions.pod:4019
28704 #, no-wrap
28705 msgid ""
28706 " stat path\n"
28707 "\n"
28708 msgstr ""
28709
28710 # type: =head2
28711 #. type: =head2
28712 #: ../fish/guestfish-actions.pod:4025
28713 msgid "statvfs"
28714 msgstr ""
28715
28716 # type: verbatim
28717 #. type: verbatim
28718 #: ../fish/guestfish-actions.pod:4027
28719 #, no-wrap
28720 msgid ""
28721 " statvfs path\n"
28722 "\n"
28723 msgstr ""
28724
28725 # type: =head2
28726 #. type: =head2
28727 #: ../fish/guestfish-actions.pod:4035
28728 msgid "strings"
28729 msgstr ""
28730
28731 # type: verbatim
28732 #. type: verbatim
28733 #: ../fish/guestfish-actions.pod:4037
28734 #, no-wrap
28735 msgid ""
28736 " strings path\n"
28737 "\n"
28738 msgstr ""
28739
28740 # type: =head2
28741 #. type: =head2
28742 #: ../fish/guestfish-actions.pod:4045
28743 msgid "strings-e"
28744 msgstr ""
28745
28746 # type: verbatim
28747 #. type: verbatim
28748 #: ../fish/guestfish-actions.pod:4047
28749 #, no-wrap
28750 msgid ""
28751 " strings-e encoding path\n"
28752 "\n"
28753 msgstr ""
28754
28755 # type: textblock
28756 #. type: textblock
28757 #: ../fish/guestfish-actions.pod:4049
28758 msgid ""
28759 "This is like the L</strings> command, but allows you to specify the encoding "
28760 "of strings that are looked for in the source file C<path>."
28761 msgstr ""
28762
28763 # type: textblock
28764 #. type: textblock
28765 #: ../fish/guestfish-actions.pod:4059
28766 msgid ""
28767 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28768 "ISO-8859-X (this is what L</strings> uses)."
28769 msgstr ""
28770
28771 # type: =head2
28772 #. type: =head2
28773 #: ../fish/guestfish-actions.pod:4091
28774 msgid "swapoff-device"
28775 msgstr ""
28776
28777 # type: verbatim
28778 #. type: verbatim
28779 #: ../fish/guestfish-actions.pod:4093
28780 #, no-wrap
28781 msgid ""
28782 " swapoff-device device\n"
28783 "\n"
28784 msgstr ""
28785
28786 # type: textblock
28787 #. type: textblock
28788 #: ../fish/guestfish-actions.pod:4095
28789 msgid ""
28790 "This command disables the libguestfs appliance swap device or partition "
28791 "named C<device>.  See L</swapon-device>."
28792 msgstr ""
28793
28794 # type: =head2
28795 #. type: =head2
28796 #: ../fish/guestfish-actions.pod:4099
28797 msgid "swapoff-file"
28798 msgstr ""
28799
28800 # type: verbatim
28801 #. type: verbatim
28802 #: ../fish/guestfish-actions.pod:4101
28803 #, no-wrap
28804 msgid ""
28805 " swapoff-file file\n"
28806 "\n"
28807 msgstr ""
28808
28809 # type: =head2
28810 #. type: =head2
28811 #: ../fish/guestfish-actions.pod:4105
28812 msgid "swapoff-label"
28813 msgstr ""
28814
28815 # type: verbatim
28816 #. type: verbatim
28817 #: ../fish/guestfish-actions.pod:4107
28818 #, no-wrap
28819 msgid ""
28820 " swapoff-label label\n"
28821 "\n"
28822 msgstr ""
28823
28824 # type: =head2
28825 #. type: =head2
28826 #: ../fish/guestfish-actions.pod:4112
28827 msgid "swapoff-uuid"
28828 msgstr ""
28829
28830 # type: verbatim
28831 #. type: verbatim
28832 #: ../fish/guestfish-actions.pod:4114
28833 #, no-wrap
28834 msgid ""
28835 " swapoff-uuid uuid\n"
28836 "\n"
28837 msgstr ""
28838
28839 # type: =head2
28840 #. type: =head2
28841 #: ../fish/guestfish-actions.pod:4119
28842 msgid "swapon-device"
28843 msgstr ""
28844
28845 # type: verbatim
28846 #. type: verbatim
28847 #: ../fish/guestfish-actions.pod:4121
28848 #, no-wrap
28849 msgid ""
28850 " swapon-device device\n"
28851 "\n"
28852 msgstr ""
28853
28854 # type: textblock
28855 #. type: textblock
28856 #: ../fish/guestfish-actions.pod:4123
28857 msgid ""
28858 "This command enables the libguestfs appliance to use the swap device or "
28859 "partition named C<device>.  The increased memory is made available for all "
28860 "commands, for example those run using L</command> or L</sh>."
28861 msgstr ""
28862
28863 # type: =head2
28864 #. type: =head2
28865 #: ../fish/guestfish-actions.pod:4135
28866 msgid "swapon-file"
28867 msgstr ""
28868
28869 # type: verbatim
28870 #. type: verbatim
28871 #: ../fish/guestfish-actions.pod:4137
28872 #, no-wrap
28873 msgid ""
28874 " swapon-file file\n"
28875 "\n"
28876 msgstr ""
28877
28878 # type: textblock
28879 #. type: textblock
28880 #: ../fish/guestfish-actions.pod:4139
28881 msgid ""
28882 "This command enables swap to a file.  See L</swapon-device> for other notes."
28883 msgstr ""
28884
28885 # type: =head2
28886 #. type: =head2
28887 #: ../fish/guestfish-actions.pod:4142
28888 msgid "swapon-label"
28889 msgstr ""
28890
28891 # type: verbatim
28892 #. type: verbatim
28893 #: ../fish/guestfish-actions.pod:4144
28894 #, no-wrap
28895 msgid ""
28896 " swapon-label label\n"
28897 "\n"
28898 msgstr ""
28899
28900 # type: textblock
28901 #. type: textblock
28902 #: ../fish/guestfish-actions.pod:4146
28903 msgid ""
28904 "This command enables swap to a labeled swap partition.  See L</swapon-"
28905 "device> for other notes."
28906 msgstr ""
28907
28908 # type: =head2
28909 #. type: =head2
28910 #: ../fish/guestfish-actions.pod:4149
28911 msgid "swapon-uuid"
28912 msgstr ""
28913
28914 # type: verbatim
28915 #. type: verbatim
28916 #: ../fish/guestfish-actions.pod:4151
28917 #, no-wrap
28918 msgid ""
28919 " swapon-uuid uuid\n"
28920 "\n"
28921 msgstr ""
28922
28923 # type: textblock
28924 #. type: textblock
28925 #: ../fish/guestfish-actions.pod:4153
28926 msgid ""
28927 "This command enables swap to a swap partition with the given UUID.  See L</"
28928 "swapon-device> for other notes."
28929 msgstr ""
28930
28931 # type: =head2
28932 #. type: =head2
28933 #: ../fish/guestfish-actions.pod:4156
28934 msgid "sync"
28935 msgstr ""
28936
28937 # type: verbatim
28938 #. type: verbatim
28939 #: ../fish/guestfish-actions.pod:4158
28940 #, no-wrap
28941 msgid ""
28942 " sync\n"
28943 "\n"
28944 msgstr ""
28945
28946 # type: =head2
28947 #. type: =head2
28948 #: ../fish/guestfish-actions.pod:4166
28949 msgid "tail"
28950 msgstr ""
28951
28952 # type: verbatim
28953 #. type: verbatim
28954 #: ../fish/guestfish-actions.pod:4168
28955 #, no-wrap
28956 msgid ""
28957 " tail path\n"
28958 "\n"
28959 msgstr ""
28960
28961 # type: =head2
28962 #. type: =head2
28963 #: ../fish/guestfish-actions.pod:4176
28964 msgid "tail-n"
28965 msgstr ""
28966
28967 # type: verbatim
28968 #. type: verbatim
28969 #: ../fish/guestfish-actions.pod:4178
28970 #, no-wrap
28971 msgid ""
28972 " tail-n nrlines path\n"
28973 "\n"
28974 msgstr ""
28975
28976 # type: =head2
28977 #. type: =head2
28978 #: ../fish/guestfish-actions.pod:4191
28979 msgid "tar-in"
28980 msgstr ""
28981
28982 # type: verbatim
28983 #. type: verbatim
28984 #: ../fish/guestfish-actions.pod:4193
28985 #, no-wrap
28986 msgid ""
28987 " tar-in (tarfile|-) directory\n"
28988 "\n"
28989 msgstr ""
28990
28991 # type: textblock
28992 #. type: textblock
28993 #: ../fish/guestfish-actions.pod:4198
28994 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
28995 msgstr ""
28996
28997 # type: =head2
28998 #. type: =head2
28999 #: ../fish/guestfish-actions.pod:4203
29000 msgid "tar-out"
29001 msgstr ""
29002
29003 # type: verbatim
29004 #. type: verbatim
29005 #: ../fish/guestfish-actions.pod:4205
29006 #, no-wrap
29007 msgid ""
29008 " tar-out directory (tarfile|-)\n"
29009 "\n"
29010 msgstr ""
29011
29012 # type: textblock
29013 #. type: textblock
29014 #: ../fish/guestfish-actions.pod:4210
29015 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29016 msgstr ""
29017
29018 # type: =head2
29019 #. type: =head2
29020 #: ../fish/guestfish-actions.pod:4215
29021 msgid "tgz-in"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:4217
29027 #, no-wrap
29028 msgid ""
29029 " tgz-in (tarball|-) directory\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: textblock
29034 #. type: textblock
29035 #: ../fish/guestfish-actions.pod:4222
29036 msgid "To upload an uncompressed tarball, use L</tar-in>."
29037 msgstr ""
29038
29039 # type: =head2
29040 #. type: =head2
29041 #: ../fish/guestfish-actions.pod:4226
29042 msgid "tgz-out"
29043 msgstr ""
29044
29045 # type: verbatim
29046 #. type: verbatim
29047 #: ../fish/guestfish-actions.pod:4228
29048 #, no-wrap
29049 msgid ""
29050 " tgz-out directory (tarball|-)\n"
29051 "\n"
29052 msgstr ""
29053
29054 # type: textblock
29055 #. type: textblock
29056 #: ../fish/guestfish-actions.pod:4233
29057 msgid "To download an uncompressed tarball, use L</tar-out>."
29058 msgstr ""
29059
29060 # type: =head2
29061 #. type: =head2
29062 #: ../fish/guestfish-actions.pod:4237
29063 msgid "touch"
29064 msgstr ""
29065
29066 # type: verbatim
29067 #. type: verbatim
29068 #: ../fish/guestfish-actions.pod:4239
29069 #, no-wrap
29070 msgid ""
29071 " touch path\n"
29072 "\n"
29073 msgstr ""
29074
29075 # type: =head2
29076 #. type: =head2
29077 #: ../fish/guestfish-actions.pod:4248
29078 msgid "truncate"
29079 msgstr ""
29080
29081 # type: verbatim
29082 #. type: verbatim
29083 #: ../fish/guestfish-actions.pod:4250
29084 #, no-wrap
29085 msgid ""
29086 " truncate path\n"
29087 "\n"
29088 msgstr ""
29089
29090 # type: =head2
29091 #. type: =head2
29092 #: ../fish/guestfish-actions.pod:4255
29093 msgid "truncate-size"
29094 msgstr ""
29095
29096 # type: verbatim
29097 #. type: verbatim
29098 #: ../fish/guestfish-actions.pod:4257
29099 #, no-wrap
29100 msgid ""
29101 " truncate-size path size\n"
29102 "\n"
29103 msgstr ""
29104
29105 # type: textblock
29106 #. type: textblock
29107 #: ../fish/guestfish-actions.pod:4262
29108 msgid ""
29109 "If the current file size is less than C<size> then the file is extended to "
29110 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29111 "blocks are not allocated for the file until you write to it).  To create a "
29112 "non-sparse file of zeroes, use L</fallocate64> instead."
29113 msgstr ""
29114
29115 # type: =head2
29116 #. type: =head2
29117 #: ../fish/guestfish-actions.pod:4268
29118 msgid "tune2fs-l"
29119 msgstr ""
29120
29121 # type: verbatim
29122 #. type: verbatim
29123 #: ../fish/guestfish-actions.pod:4270
29124 #, no-wrap
29125 msgid ""
29126 " tune2fs-l device\n"
29127 "\n"
29128 msgstr ""
29129
29130 # type: =head2
29131 #. type: =head2
29132 #: ../fish/guestfish-actions.pod:4280
29133 msgid "txz-in"
29134 msgstr ""
29135
29136 # type: verbatim
29137 #. type: verbatim
29138 #: ../fish/guestfish-actions.pod:4282
29139 #, no-wrap
29140 msgid ""
29141 " txz-in (tarball|-) directory\n"
29142 "\n"
29143 msgstr ""
29144
29145 # type: =head2
29146 #. type: =head2
29147 #: ../fish/guestfish-actions.pod:4289
29148 msgid "txz-out"
29149 msgstr ""
29150
29151 # type: verbatim
29152 #. type: verbatim
29153 #: ../fish/guestfish-actions.pod:4291
29154 #, no-wrap
29155 msgid ""
29156 " txz-out directory (tarball|-)\n"
29157 "\n"
29158 msgstr ""
29159
29160 # type: =head2
29161 #. type: =head2
29162 #: ../fish/guestfish-actions.pod:4298
29163 msgid "umask"
29164 msgstr ""
29165
29166 # type: verbatim
29167 #. type: verbatim
29168 #: ../fish/guestfish-actions.pod:4300
29169 #, no-wrap
29170 msgid ""
29171 " umask mask\n"
29172 "\n"
29173 msgstr ""
29174
29175 # type: textblock
29176 #. type: textblock
29177 #: ../fish/guestfish-actions.pod:4314
29178 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29179 msgstr ""
29180
29181 # type: =head2
29182 #. type: =head2
29183 #: ../fish/guestfish-actions.pod:4319
29184 msgid "umount"
29185 msgstr ""
29186
29187 # type: =head2
29188 #. type: =head2
29189 #: ../fish/guestfish-actions.pod:4321
29190 msgid "unmount"
29191 msgstr ""
29192
29193 # type: verbatim
29194 #. type: verbatim
29195 #: ../fish/guestfish-actions.pod:4323
29196 #, no-wrap
29197 msgid ""
29198 " umount pathordevice\n"
29199 "\n"
29200 msgstr ""
29201
29202 # type: =head2
29203 #. type: =head2
29204 #: ../fish/guestfish-actions.pod:4329
29205 msgid "umount-all"
29206 msgstr ""
29207
29208 # type: =head2
29209 #. type: =head2
29210 #: ../fish/guestfish-actions.pod:4331
29211 msgid "unmount-all"
29212 msgstr ""
29213
29214 # type: verbatim
29215 #. type: verbatim
29216 #: ../fish/guestfish-actions.pod:4333
29217 #, no-wrap
29218 msgid ""
29219 " umount-all\n"
29220 "\n"
29221 msgstr ""
29222
29223 # type: =head2
29224 #. type: =head2
29225 #: ../fish/guestfish-actions.pod:4339
29226 msgid "upload"
29227 msgstr ""
29228
29229 # type: verbatim
29230 #. type: verbatim
29231 #: ../fish/guestfish-actions.pod:4341
29232 #, no-wrap
29233 msgid ""
29234 " upload (filename|-) remotefilename\n"
29235 "\n"
29236 msgstr ""
29237
29238 # type: textblock
29239 #. type: textblock
29240 #: ../fish/guestfish-actions.pod:4348
29241 msgid "See also L</download>."
29242 msgstr ""
29243
29244 # type: =head2
29245 #. type: =head2
29246 #: ../fish/guestfish-actions.pod:4352
29247 msgid "upload-offset"
29248 msgstr ""
29249
29250 # type: verbatim
29251 #. type: verbatim
29252 #: ../fish/guestfish-actions.pod:4354
29253 #, no-wrap
29254 msgid ""
29255 " upload-offset (filename|-) remotefilename offset\n"
29256 "\n"
29257 msgstr ""
29258
29259 # type: textblock
29260 #. type: textblock
29261 #: ../fish/guestfish-actions.pod:4366
29262 msgid ""
29263 "Note that there is no limit on the amount of data that can be uploaded with "
29264 "this call, unlike with L</pwrite>, and this call always writes the full "
29265 "amount unless an error occurs."
29266 msgstr ""
29267
29268 # type: textblock
29269 #. type: textblock
29270 #: ../fish/guestfish-actions.pod:4371
29271 msgid "See also L</upload>, L</pwrite>."
29272 msgstr ""
29273
29274 # type: =head2
29275 #. type: =head2
29276 #: ../fish/guestfish-actions.pod:4375
29277 msgid "utimens"
29278 msgstr ""
29279
29280 # type: verbatim
29281 #. type: verbatim
29282 #: ../fish/guestfish-actions.pod:4377
29283 #, no-wrap
29284 msgid ""
29285 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29286 "\n"
29287 msgstr ""
29288
29289 # type: =head2
29290 #. type: =head2
29291 #: ../fish/guestfish-actions.pod:4396
29292 msgid "version"
29293 msgstr ""
29294
29295 # type: verbatim
29296 #. type: verbatim
29297 #: ../fish/guestfish-actions.pod:4398
29298 #, no-wrap
29299 msgid ""
29300 " version\n"
29301 "\n"
29302 msgstr ""
29303
29304 # type: textblock
29305 #. type: textblock
29306 #: ../fish/guestfish-actions.pod:4425
29307 msgid ""
29308 "I<Note:> Don't use this call to test for availability of features.  In "
29309 "enterprise distributions we backport features from later versions into "
29310 "earlier versions, making this an unreliable way to test for features.  Use "
29311 "L</available> instead."
29312 msgstr ""
29313
29314 # type: =head2
29315 #. type: =head2
29316 #: ../fish/guestfish-actions.pod:4431
29317 msgid "vfs-label"
29318 msgstr ""
29319
29320 # type: verbatim
29321 #. type: verbatim
29322 #: ../fish/guestfish-actions.pod:4433
29323 #, no-wrap
29324 msgid ""
29325 " vfs-label device\n"
29326 "\n"
29327 msgstr ""
29328
29329 # type: textblock
29330 #. type: textblock
29331 #: ../fish/guestfish-actions.pod:4440
29332 msgid "To find a filesystem from the label, use L</findfs-label>."
29333 msgstr ""
29334
29335 # type: =head2
29336 #. type: =head2
29337 #: ../fish/guestfish-actions.pod:4442
29338 msgid "vfs-type"
29339 msgstr ""
29340
29341 # type: verbatim
29342 #. type: verbatim
29343 #: ../fish/guestfish-actions.pod:4444
29344 #, no-wrap
29345 msgid ""
29346 " vfs-type device\n"
29347 "\n"
29348 msgstr ""
29349
29350 # type: =head2
29351 #. type: =head2
29352 #: ../fish/guestfish-actions.pod:4454
29353 msgid "vfs-uuid"
29354 msgstr ""
29355
29356 # type: verbatim
29357 #. type: verbatim
29358 #: ../fish/guestfish-actions.pod:4456
29359 #, no-wrap
29360 msgid ""
29361 " vfs-uuid device\n"
29362 "\n"
29363 msgstr ""
29364
29365 # type: textblock
29366 #. type: textblock
29367 #: ../fish/guestfish-actions.pod:4463
29368 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29369 msgstr ""
29370
29371 # type: =head2
29372 #. type: =head2
29373 #: ../fish/guestfish-actions.pod:4465
29374 msgid "vg-activate"
29375 msgstr ""
29376
29377 # type: verbatim
29378 #. type: verbatim
29379 #: ../fish/guestfish-actions.pod:4467
29380 #, no-wrap
29381 msgid ""
29382 " vg-activate true|false 'volgroups ...'\n"
29383 "\n"
29384 msgstr ""
29385
29386 # type: =head2
29387 #. type: =head2
29388 #: ../fish/guestfish-actions.pod:4480
29389 msgid "vg-activate-all"
29390 msgstr ""
29391
29392 # type: verbatim
29393 #. type: verbatim
29394 #: ../fish/guestfish-actions.pod:4482
29395 #, no-wrap
29396 msgid ""
29397 " vg-activate-all true|false\n"
29398 "\n"
29399 msgstr ""
29400
29401 # type: =head2
29402 #. type: =head2
29403 #: ../fish/guestfish-actions.pod:4492
29404 msgid "vgcreate"
29405 msgstr ""
29406
29407 # type: verbatim
29408 #. type: verbatim
29409 #: ../fish/guestfish-actions.pod:4494
29410 #, no-wrap
29411 msgid ""
29412 " vgcreate volgroup 'physvols ...'\n"
29413 "\n"
29414 msgstr ""
29415
29416 # type: =head2
29417 #. type: =head2
29418 #: ../fish/guestfish-actions.pod:4499
29419 msgid "vglvuuids"
29420 msgstr ""
29421
29422 # type: verbatim
29423 #. type: verbatim
29424 #: ../fish/guestfish-actions.pod:4501
29425 #, no-wrap
29426 msgid ""
29427 " vglvuuids vgname\n"
29428 "\n"
29429 msgstr ""
29430
29431 # type: textblock
29432 #. type: textblock
29433 #: ../fish/guestfish-actions.pod:4506
29434 msgid ""
29435 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29436 "logical volumes and volume groups."
29437 msgstr ""
29438
29439 # type: textblock
29440 #. type: textblock
29441 #: ../fish/guestfish-actions.pod:4509
29442 msgid "See also L</vgpvuuids>."
29443 msgstr ""
29444
29445 # type: =head2
29446 #. type: =head2
29447 #: ../fish/guestfish-actions.pod:4511
29448 msgid "vgpvuuids"
29449 msgstr ""
29450
29451 # type: verbatim
29452 #. type: verbatim
29453 #: ../fish/guestfish-actions.pod:4513
29454 #, no-wrap
29455 msgid ""
29456 " vgpvuuids vgname\n"
29457 "\n"
29458 msgstr ""
29459
29460 # type: textblock
29461 #. type: textblock
29462 #: ../fish/guestfish-actions.pod:4518
29463 msgid ""
29464 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29465 "physical volumes and volume groups."
29466 msgstr ""
29467
29468 # type: textblock
29469 #. type: textblock
29470 #: ../fish/guestfish-actions.pod:4521
29471 msgid "See also L</vglvuuids>."
29472 msgstr ""
29473
29474 # type: =head2
29475 #. type: =head2
29476 #: ../fish/guestfish-actions.pod:4523
29477 msgid "vgremove"
29478 msgstr ""
29479
29480 # type: verbatim
29481 #. type: verbatim
29482 #: ../fish/guestfish-actions.pod:4525
29483 #, no-wrap
29484 msgid ""
29485 " vgremove vgname\n"
29486 "\n"
29487 msgstr ""
29488
29489 # type: =head2
29490 #. type: =head2
29491 #: ../fish/guestfish-actions.pod:4532
29492 msgid "vgrename"
29493 msgstr ""
29494
29495 # type: verbatim
29496 #. type: verbatim
29497 #: ../fish/guestfish-actions.pod:4534
29498 #, no-wrap
29499 msgid ""
29500 " vgrename volgroup newvolgroup\n"
29501 "\n"
29502 msgstr ""
29503
29504 # type: =head2
29505 #. type: =head2
29506 #: ../fish/guestfish-actions.pod:4538
29507 msgid "vgs"
29508 msgstr ""
29509
29510 # type: verbatim
29511 #. type: verbatim
29512 #: ../fish/guestfish-actions.pod:4540
29513 #, no-wrap
29514 msgid ""
29515 " vgs\n"
29516 "\n"
29517 msgstr ""
29518
29519 # type: textblock
29520 #. type: textblock
29521 #: ../fish/guestfish-actions.pod:4548
29522 msgid "See also L</vgs-full>."
29523 msgstr ""
29524
29525 # type: =head2
29526 #. type: =head2
29527 #: ../fish/guestfish-actions.pod:4550
29528 msgid "vgs-full"
29529 msgstr ""
29530
29531 # type: verbatim
29532 #. type: verbatim
29533 #: ../fish/guestfish-actions.pod:4552
29534 #, no-wrap
29535 msgid ""
29536 " vgs-full\n"
29537 "\n"
29538 msgstr ""
29539
29540 # type: =head2
29541 #. type: =head2
29542 #: ../fish/guestfish-actions.pod:4557
29543 msgid "vgscan"
29544 msgstr ""
29545
29546 # type: verbatim
29547 #. type: verbatim
29548 #: ../fish/guestfish-actions.pod:4559
29549 #, no-wrap
29550 msgid ""
29551 " vgscan\n"
29552 "\n"
29553 msgstr ""
29554
29555 # type: =head2
29556 #. type: =head2
29557 #: ../fish/guestfish-actions.pod:4564
29558 msgid "vguuid"
29559 msgstr ""
29560
29561 # type: verbatim
29562 #. type: verbatim
29563 #: ../fish/guestfish-actions.pod:4566
29564 #, no-wrap
29565 msgid ""
29566 " vguuid vgname\n"
29567 "\n"
29568 msgstr ""
29569
29570 # type: =head2
29571 #. type: =head2
29572 #: ../fish/guestfish-actions.pod:4570
29573 msgid "wc-c"
29574 msgstr ""
29575
29576 # type: verbatim
29577 #. type: verbatim
29578 #: ../fish/guestfish-actions.pod:4572
29579 #, no-wrap
29580 msgid ""
29581 " wc-c path\n"
29582 "\n"
29583 msgstr ""
29584
29585 # type: =head2
29586 #. type: =head2
29587 #: ../fish/guestfish-actions.pod:4577
29588 msgid "wc-l"
29589 msgstr ""
29590
29591 # type: verbatim
29592 #. type: verbatim
29593 #: ../fish/guestfish-actions.pod:4579
29594 #, no-wrap
29595 msgid ""
29596 " wc-l path\n"
29597 "\n"
29598 msgstr ""
29599
29600 # type: =head2
29601 #. type: =head2
29602 #: ../fish/guestfish-actions.pod:4584
29603 msgid "wc-w"
29604 msgstr ""
29605
29606 # type: verbatim
29607 #. type: verbatim
29608 #: ../fish/guestfish-actions.pod:4586
29609 #, no-wrap
29610 msgid ""
29611 " wc-w path\n"
29612 "\n"
29613 msgstr ""
29614
29615 # type: =head2
29616 #. type: =head2
29617 #: ../fish/guestfish-actions.pod:4591
29618 msgid "write"
29619 msgstr ""
29620
29621 # type: verbatim
29622 #. type: verbatim
29623 #: ../fish/guestfish-actions.pod:4593
29624 #, no-wrap
29625 msgid ""
29626 " write path content\n"
29627 "\n"
29628 msgstr ""
29629
29630 # type: =head2
29631 #. type: =head2
29632 #: ../fish/guestfish-actions.pod:4601
29633 msgid "write-file"
29634 msgstr ""
29635
29636 # type: verbatim
29637 #. type: verbatim
29638 #: ../fish/guestfish-actions.pod:4603
29639 #, no-wrap
29640 msgid ""
29641 " write-file path content size\n"
29642 "\n"
29643 msgstr ""
29644
29645 # type: =head2
29646 #. type: =head2
29647 #: ../fish/guestfish-actions.pod:4626
29648 msgid "zegrep"
29649 msgstr ""
29650
29651 # type: verbatim
29652 #. type: verbatim
29653 #: ../fish/guestfish-actions.pod:4628
29654 #, no-wrap
29655 msgid ""
29656 " zegrep regex path\n"
29657 "\n"
29658 msgstr ""
29659
29660 # type: =head2
29661 #. type: =head2
29662 #: ../fish/guestfish-actions.pod:4636
29663 msgid "zegrepi"
29664 msgstr ""
29665
29666 # type: verbatim
29667 #. type: verbatim
29668 #: ../fish/guestfish-actions.pod:4638
29669 #, no-wrap
29670 msgid ""
29671 " zegrepi regex path\n"
29672 "\n"
29673 msgstr ""
29674
29675 # type: =head2
29676 #. type: =head2
29677 #: ../fish/guestfish-actions.pod:4646
29678 msgid "zero"
29679 msgstr ""
29680
29681 # type: verbatim
29682 #. type: verbatim
29683 #: ../fish/guestfish-actions.pod:4648
29684 #, no-wrap
29685 msgid ""
29686 " zero device\n"
29687 "\n"
29688 msgstr ""
29689
29690 # type: textblock
29691 #. type: textblock
29692 #: ../fish/guestfish-actions.pod:4656
29693 msgid "See also: L</zero-device>, L</scrub-device>."
29694 msgstr ""
29695
29696 # type: =head2
29697 #. type: =head2
29698 #: ../fish/guestfish-actions.pod:4658
29699 msgid "zero-device"
29700 msgstr ""
29701
29702 # type: verbatim
29703 #. type: verbatim
29704 #: ../fish/guestfish-actions.pod:4660
29705 #, no-wrap
29706 msgid ""
29707 " zero-device device\n"
29708 "\n"
29709 msgstr ""
29710
29711 # type: textblock
29712 #. type: textblock
29713 #: ../fish/guestfish-actions.pod:4662
29714 msgid ""
29715 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
29716 "which just zeroes the first few blocks of a device."
29717 msgstr ""
29718
29719 # type: =head2
29720 #. type: =head2
29721 #: ../fish/guestfish-actions.pod:4669
29722 msgid "zerofree"
29723 msgstr ""
29724
29725 # type: verbatim
29726 #. type: verbatim
29727 #: ../fish/guestfish-actions.pod:4671
29728 #, no-wrap
29729 msgid ""
29730 " zerofree device\n"
29731 "\n"
29732 msgstr ""
29733
29734 # type: =head2
29735 #. type: =head2
29736 #: ../fish/guestfish-actions.pod:4684
29737 msgid "zfgrep"
29738 msgstr ""
29739
29740 # type: verbatim
29741 #. type: verbatim
29742 #: ../fish/guestfish-actions.pod:4686
29743 #, no-wrap
29744 msgid ""
29745 " zfgrep pattern path\n"
29746 "\n"
29747 msgstr ""
29748
29749 # type: =head2
29750 #. type: =head2
29751 #: ../fish/guestfish-actions.pod:4694
29752 msgid "zfgrepi"
29753 msgstr ""
29754
29755 # type: verbatim
29756 #. type: verbatim
29757 #: ../fish/guestfish-actions.pod:4696
29758 #, no-wrap
29759 msgid ""
29760 " zfgrepi pattern path\n"
29761 "\n"
29762 msgstr ""
29763
29764 # type: =head2
29765 #. type: =head2
29766 #: ../fish/guestfish-actions.pod:4704
29767 msgid "zfile"
29768 msgstr ""
29769
29770 # type: verbatim
29771 #. type: verbatim
29772 #: ../fish/guestfish-actions.pod:4706
29773 #, no-wrap
29774 msgid ""
29775 " zfile meth path\n"
29776 "\n"
29777 msgstr ""
29778
29779 # type: textblock
29780 #. type: textblock
29781 #: ../fish/guestfish-actions.pod:4713
29782 msgid ""
29783 "Since 1.0.63, use L</file> instead which can now process compressed files."
29784 msgstr ""
29785
29786 # type: =head2
29787 #. type: =head2
29788 #: ../fish/guestfish-actions.pod:4723
29789 msgid "zgrep"
29790 msgstr ""
29791
29792 # type: verbatim
29793 #. type: verbatim
29794 #: ../fish/guestfish-actions.pod:4725
29795 #, no-wrap
29796 msgid ""
29797 " zgrep regex path\n"
29798 "\n"
29799 msgstr ""
29800
29801 # type: =head2
29802 #. type: =head2
29803 #: ../fish/guestfish-actions.pod:4733
29804 msgid "zgrepi"
29805 msgstr ""
29806
29807 # type: verbatim
29808 #. type: verbatim
29809 #: ../fish/guestfish-actions.pod:4735
29810 #, no-wrap
29811 msgid ""
29812 " zgrepi regex path\n"
29813 "\n"
29814 msgstr ""
29815
29816 # type: =head2
29817 #. type: =head2
29818 #: ../fish/guestfish-commands.pod:1
29819 msgid "alloc"
29820 msgstr ""
29821
29822 # type: =head2
29823 #. type: =head2
29824 #: ../fish/guestfish-commands.pod:3
29825 msgid "allocate"
29826 msgstr ""
29827
29828 # type: verbatim
29829 #. type: verbatim
29830 #: ../fish/guestfish-commands.pod:5
29831 #, no-wrap
29832 msgid ""
29833 " alloc filename size\n"
29834 "\n"
29835 msgstr ""
29836
29837 # type: textblock
29838 #. type: textblock
29839 #: ../fish/guestfish-commands.pod:7
29840 msgid ""
29841 "This creates an empty (zeroed) file of the given size, and then adds so it "
29842 "can be further examined."
29843 msgstr ""
29844
29845 # type: textblock
29846 #. type: textblock
29847 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
29848 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
29849 msgstr ""
29850
29851 # type: textblock
29852 #. type: textblock
29853 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
29854 msgid "Size can be specified using standard suffixes, eg. C<1M>."
29855 msgstr ""
29856
29857 # type: textblock
29858 #. type: textblock
29859 #: ../fish/guestfish-commands.pod:14
29860 msgid ""
29861 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
29862 "image, see L</PREPARED DISK IMAGES>."
29863 msgstr ""
29864
29865 # type: =head2
29866 #. type: =head2
29867 #: ../fish/guestfish-commands.pod:17
29868 msgid "copy-in"
29869 msgstr ""
29870
29871 # type: verbatim
29872 #. type: verbatim
29873 #: ../fish/guestfish-commands.pod:19
29874 #, no-wrap
29875 msgid ""
29876 " copy-in local [local ...] /remotedir\n"
29877 "\n"
29878 msgstr ""
29879
29880 # type: textblock
29881 #. type: textblock
29882 #: ../fish/guestfish-commands.pod:21
29883 msgid ""
29884 "C<copy-in> copies local files or directories recursively into the disk "
29885 "image, placing them in the directory called C</remotedir> (which must "
29886 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
29887 "other commands as necessary."
29888 msgstr ""
29889
29890 # type: textblock
29891 #. type: textblock
29892 #: ../fish/guestfish-commands.pod:26
29893 msgid ""
29894 "Multiple local files and directories can be specified, but the last "
29895 "parameter must always be a remote directory.  Wildcards cannot be used."
29896 msgstr ""
29897
29898 # type: =head2
29899 #. type: =head2
29900 #: ../fish/guestfish-commands.pod:30
29901 msgid "copy-out"
29902 msgstr ""
29903
29904 # type: verbatim
29905 #. type: verbatim
29906 #: ../fish/guestfish-commands.pod:32
29907 #, no-wrap
29908 msgid ""
29909 " copy-out remote [remote ...] localdir\n"
29910 "\n"
29911 msgstr ""
29912
29913 # type: textblock
29914 #. type: textblock
29915 #: ../fish/guestfish-commands.pod:34
29916 msgid ""
29917 "C<copy-out> copies remote files or directories recursively out of the disk "
29918 "image, placing them on the host disk in a local directory called C<localdir> "
29919 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
29920 "download>, L</tar-out> and other commands as necessary."
29921 msgstr ""
29922
29923 # type: textblock
29924 #. type: textblock
29925 #: ../fish/guestfish-commands.pod:40
29926 msgid ""
29927 "Multiple remote files and directories can be specified, but the last "
29928 "parameter must always be a local directory.  To download to the current "
29929 "directory, use C<.> as in:"
29930 msgstr ""
29931
29932 # type: verbatim
29933 #. type: verbatim
29934 #: ../fish/guestfish-commands.pod:44
29935 #, no-wrap
29936 msgid ""
29937 " copy-out /home .\n"
29938 "\n"
29939 msgstr ""
29940
29941 # type: textblock
29942 #. type: textblock
29943 #: ../fish/guestfish-commands.pod:46
29944 msgid ""
29945 "Wildcards cannot be used in the ordinary command, but you can use them with "
29946 "the help of L</glob> like this:"
29947 msgstr ""
29948
29949 # type: verbatim
29950 #. type: verbatim
29951 #: ../fish/guestfish-commands.pod:49
29952 #, no-wrap
29953 msgid ""
29954 " glob copy-out /home/* .\n"
29955 "\n"
29956 msgstr ""
29957
29958 # type: =head2
29959 #. type: =head2
29960 #: ../fish/guestfish-commands.pod:51
29961 msgid "echo"
29962 msgstr ""
29963
29964 # type: verbatim
29965 #. type: verbatim
29966 #: ../fish/guestfish-commands.pod:53
29967 #, no-wrap
29968 msgid ""
29969 " echo [params ...]\n"
29970 "\n"
29971 msgstr ""
29972
29973 # type: textblock
29974 #. type: textblock
29975 #: ../fish/guestfish-commands.pod:55
29976 msgid "This echos the parameters to the terminal."
29977 msgstr ""
29978
29979 # type: =head2
29980 #. type: =head2
29981 #: ../fish/guestfish-commands.pod:57
29982 msgid "edit"
29983 msgstr ""
29984
29985 # type: =head2
29986 #. type: =head2
29987 #: ../fish/guestfish-commands.pod:59
29988 msgid "vi"
29989 msgstr ""
29990
29991 # type: =head2
29992 #. type: =head2
29993 #: ../fish/guestfish-commands.pod:61
29994 msgid "emacs"
29995 msgstr ""
29996
29997 # type: verbatim
29998 #. type: verbatim
29999 #: ../fish/guestfish-commands.pod:63
30000 #, no-wrap
30001 msgid ""
30002 " edit filename\n"
30003 "\n"
30004 msgstr ""
30005
30006 # type: textblock
30007 #. type: textblock
30008 #: ../fish/guestfish-commands.pod:65
30009 msgid ""
30010 "This is used to edit a file.  It downloads the file, edits it locally using "
30011 "your editor, then uploads the result."
30012 msgstr ""
30013
30014 # type: textblock
30015 #. type: textblock
30016 #: ../fish/guestfish-commands.pod:68
30017 msgid ""
30018 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30019 "or C<emacs> you will get those corresponding editors."
30020 msgstr ""
30021
30022 # type: =head2
30023 #. type: =head2
30024 #: ../fish/guestfish-commands.pod:72
30025 msgid "glob"
30026 msgstr ""
30027
30028 # type: verbatim
30029 #. type: verbatim
30030 #: ../fish/guestfish-commands.pod:74
30031 #, no-wrap
30032 msgid ""
30033 " glob command args...\n"
30034 "\n"
30035 msgstr ""
30036
30037 # type: textblock
30038 #. type: textblock
30039 #: ../fish/guestfish-commands.pod:76
30040 msgid ""
30041 "Expand wildcards in any paths in the args list, and run C<command> "
30042 "repeatedly on each matching path."
30043 msgstr ""
30044
30045 # type: textblock
30046 #. type: textblock
30047 #: ../fish/guestfish-commands.pod:79
30048 msgid "See L</WILDCARDS AND GLOBBING>."
30049 msgstr ""
30050
30051 # type: =head2
30052 #. type: =head2
30053 #: ../fish/guestfish-commands.pod:81
30054 msgid "hexedit"
30055 msgstr ""
30056
30057 # type: verbatim
30058 #. type: verbatim
30059 #: ../fish/guestfish-commands.pod:83
30060 #, no-wrap
30061 msgid ""
30062 " hexedit <filename|device>\n"
30063 " hexedit <filename|device> <max>\n"
30064 " hexedit <filename|device> <start> <max>\n"
30065 "\n"
30066 msgstr ""
30067
30068 # type: textblock
30069 #. type: textblock
30070 #: ../fish/guestfish-commands.pod:87
30071 msgid ""
30072 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30073 "device."
30074 msgstr ""
30075
30076 # type: textblock
30077 #. type: textblock
30078 #: ../fish/guestfish-commands.pod:90
30079 msgid ""
30080 "This command works by downloading potentially the whole file or device, "
30081 "editing it locally, then uploading it.  If the file or device is large, you "
30082 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30083 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30084 "usual modifiers allowed such as C<1M> (1 megabyte)."
30085 msgstr ""
30086
30087 # type: textblock
30088 #. type: textblock
30089 #: ../fish/guestfish-commands.pod:97
30090 msgid "For example to edit the first few sectors of a disk you might do:"
30091 msgstr ""
30092
30093 # type: verbatim
30094 #. type: verbatim
30095 #: ../fish/guestfish-commands.pod:100
30096 #, no-wrap
30097 msgid ""
30098 " hexedit /dev/sda 1M\n"
30099 "\n"
30100 msgstr ""
30101
30102 # type: textblock
30103 #. type: textblock
30104 #: ../fish/guestfish-commands.pod:102
30105 msgid ""
30106 "which would allow you to edit anywhere within the first megabyte of the disk."
30107 msgstr ""
30108
30109 # type: textblock
30110 #. type: textblock
30111 #: ../fish/guestfish-commands.pod:105
30112 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30113 msgstr ""
30114
30115 # type: verbatim
30116 #. type: verbatim
30117 #: ../fish/guestfish-commands.pod:107
30118 #, no-wrap
30119 msgid ""
30120 " hexedit /dev/sda1 0x400 0x400\n"
30121 "\n"
30122 msgstr ""
30123
30124 # type: textblock
30125 #. type: textblock
30126 #: ../fish/guestfish-commands.pod:109
30127 msgid "(assuming the superblock is in the standard location)."
30128 msgstr ""
30129
30130 # type: textblock
30131 #. type: textblock
30132 #: ../fish/guestfish-commands.pod:111
30133 msgid ""
30134 "This command requires the external L<hexedit(1)> program.  You can specify "
30135 "another program to use by setting the C<HEXEDITOR> environment variable."
30136 msgstr ""
30137
30138 # type: textblock
30139 #. type: textblock
30140 #: ../fish/guestfish-commands.pod:115
30141 msgid "See also L</hexdump>."
30142 msgstr ""
30143
30144 # type: =head2
30145 #. type: =head2
30146 #: ../fish/guestfish-commands.pod:117
30147 msgid "lcd"
30148 msgstr ""
30149
30150 # type: verbatim
30151 #. type: verbatim
30152 #: ../fish/guestfish-commands.pod:119
30153 #, no-wrap
30154 msgid ""
30155 " lcd directory\n"
30156 "\n"
30157 msgstr ""
30158
30159 # type: textblock
30160 #. type: textblock
30161 #: ../fish/guestfish-commands.pod:121
30162 msgid ""
30163 "Change the local directory, ie. the current directory of guestfish itself."
30164 msgstr ""
30165
30166 # type: textblock
30167 #. type: textblock
30168 #: ../fish/guestfish-commands.pod:124
30169 msgid "Note that C<!cd> won't do what you might expect."
30170 msgstr ""
30171
30172 # type: =head2
30173 #. type: =head2
30174 #: ../fish/guestfish-commands.pod:126
30175 msgid "man"
30176 msgstr ""
30177
30178 # type: =head2
30179 #. type: =head2
30180 #: ../fish/guestfish-commands.pod:128
30181 msgid "manual"
30182 msgstr ""
30183
30184 # type: verbatim
30185 #. type: verbatim
30186 #: ../fish/guestfish-commands.pod:130
30187 #, no-wrap
30188 msgid ""
30189 "  man\n"
30190 "\n"
30191 msgstr ""
30192
30193 # type: textblock
30194 #. type: textblock
30195 #: ../fish/guestfish-commands.pod:132
30196 msgid "Opens the manual page for guestfish."
30197 msgstr ""
30198
30199 # type: =head2
30200 #. type: =head2
30201 #: ../fish/guestfish-commands.pod:134
30202 msgid "more"
30203 msgstr ""
30204
30205 # type: =head2
30206 #. type: =head2
30207 #: ../fish/guestfish-commands.pod:136
30208 msgid "less"
30209 msgstr ""
30210
30211 # type: verbatim
30212 #. type: verbatim
30213 #: ../fish/guestfish-commands.pod:138
30214 #, no-wrap
30215 msgid ""
30216 " more filename\n"
30217 "\n"
30218 msgstr ""
30219
30220 # type: verbatim
30221 #. type: verbatim
30222 #: ../fish/guestfish-commands.pod:140
30223 #, no-wrap
30224 msgid ""
30225 " less filename\n"
30226 "\n"
30227 msgstr ""
30228
30229 # type: textblock
30230 #. type: textblock
30231 #: ../fish/guestfish-commands.pod:142
30232 msgid "This is used to view a file."
30233 msgstr ""
30234
30235 # type: textblock
30236 #. type: textblock
30237 #: ../fish/guestfish-commands.pod:144
30238 msgid ""
30239 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30240 "C<less> you will get the C<less> command specifically."
30241 msgstr ""
30242
30243 # type: =head2
30244 #. type: =head2
30245 #: ../fish/guestfish-commands.pod:147
30246 msgid "reopen"
30247 msgstr ""
30248
30249 # type: verbatim
30250 #. type: verbatim
30251 #: ../fish/guestfish-commands.pod:149
30252 #, no-wrap
30253 msgid ""
30254 "  reopen\n"
30255 "\n"
30256 msgstr ""
30257
30258 # type: textblock
30259 #. type: textblock
30260 #: ../fish/guestfish-commands.pod:151
30261 msgid ""
30262 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30263 "normally, because the handle is closed properly when guestfish exits.  "
30264 "However this is occasionally useful for testing."
30265 msgstr ""
30266
30267 # type: =head2
30268 #. type: =head2
30269 #: ../fish/guestfish-commands.pod:155
30270 msgid "sparse"
30271 msgstr ""
30272
30273 # type: verbatim
30274 #. type: verbatim
30275 #: ../fish/guestfish-commands.pod:157
30276 #, no-wrap
30277 msgid ""
30278 " sparse filename size\n"
30279 "\n"
30280 msgstr ""
30281
30282 # type: textblock
30283 #. type: textblock
30284 #: ../fish/guestfish-commands.pod:159
30285 msgid ""
30286 "This creates an empty sparse file of the given size, and then adds so it can "
30287 "be further examined."
30288 msgstr ""
30289
30290 # type: textblock
30291 #. type: textblock
30292 #: ../fish/guestfish-commands.pod:162
30293 msgid ""
30294 "In all respects it works the same as the L</alloc> command, except that the "
30295 "image file is allocated sparsely, which means that disk blocks are not "
30296 "assigned to the file until they are needed.  Sparse disk files only use "
30297 "space when written to, but they are slower and there is a danger you could "
30298 "run out of real disk space during a write operation."
30299 msgstr ""
30300
30301 # type: =head2
30302 #. type: =head2
30303 #: ../fish/guestfish-commands.pod:172
30304 msgid "supported"
30305 msgstr ""
30306
30307 # type: verbatim
30308 #. type: verbatim
30309 #: ../fish/guestfish-commands.pod:174
30310 #, no-wrap
30311 msgid ""
30312 " supported\n"
30313 "\n"
30314 msgstr ""
30315
30316 # type: textblock
30317 #. type: textblock
30318 #: ../fish/guestfish-commands.pod:176
30319 msgid ""
30320 "This command returns a list of the optional groups known to the daemon, and "
30321 "indicates which ones are supported by this build of the libguestfs appliance."
30322 msgstr ""
30323
30324 # type: textblock
30325 #. type: textblock
30326 #: ../fish/guestfish-commands.pod:180
30327 msgid "See also L<guestfs(3)/AVAILABILITY>."
30328 msgstr ""
30329
30330 # type: =head2
30331 #. type: =head2
30332 #: ../fish/guestfish-commands.pod:182
30333 msgid "time"
30334 msgstr ""
30335
30336 # type: verbatim
30337 #. type: verbatim
30338 #: ../fish/guestfish-commands.pod:184
30339 #, no-wrap
30340 msgid ""
30341 " time command args...\n"
30342 "\n"
30343 msgstr ""
30344
30345 # type: textblock
30346 #. type: textblock
30347 #: ../fish/guestfish-commands.pod:186
30348 msgid ""
30349 "Run the command as usual, but print the elapsed time afterwards.  This can "
30350 "be useful for benchmarking operations."
30351 msgstr ""
30352
30353 # type: textblock
30354 #. type: textblock
30355 #: ../test-tool/libguestfs-test-tool.pod:5
30356 msgid "libguestfs-test-tool - End user tests for libguestfs"
30357 msgstr ""
30358
30359 # type: verbatim
30360 #. type: verbatim
30361 #: ../test-tool/libguestfs-test-tool.pod:9
30362 #, no-wrap
30363 msgid ""
30364 " libguestfs-test-tool [--options]\n"
30365 "\n"
30366 msgstr ""
30367
30368 # type: textblock
30369 #. type: textblock
30370 #: ../test-tool/libguestfs-test-tool.pod:13
30371 msgid ""
30372 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30373 "and developers, to allow them to check basic libguestfs functionality is "
30374 "working.  This is needed because libguestfs occasionally breaks for reasons "
30375 "beyond our control: usually because of changes in the underlying qemu or "
30376 "kernel packages, or the host environment."
30377 msgstr ""
30378
30379 # type: textblock
30380 #. type: textblock
30381 #: ../test-tool/libguestfs-test-tool.pod:20
30382 msgid "If you suspect a problem in libguestfs, then just run:"
30383 msgstr ""
30384
30385 # type: verbatim
30386 #. type: verbatim
30387 #: ../test-tool/libguestfs-test-tool.pod:22
30388 #, no-wrap
30389 msgid ""
30390 " libguestfs-test-tool\n"
30391 "\n"
30392 msgstr ""
30393
30394 # type: textblock
30395 #. type: textblock
30396 #: ../test-tool/libguestfs-test-tool.pod:24
30397 msgid "It will print lots of diagnostic messages."
30398 msgstr ""
30399
30400 # type: textblock
30401 #. type: textblock
30402 #: ../test-tool/libguestfs-test-tool.pod:26
30403 msgid "If it runs to completion successfully, you will see this near the end:"
30404 msgstr ""
30405
30406 # type: verbatim
30407 #. type: verbatim
30408 #: ../test-tool/libguestfs-test-tool.pod:28
30409 #, no-wrap
30410 msgid ""
30411 " ===== TEST FINISHED OK =====\n"
30412 "\n"
30413 msgstr ""
30414
30415 # type: textblock
30416 #. type: textblock
30417 #: ../test-tool/libguestfs-test-tool.pod:30
30418 msgid "and the test tool will exit with code 0."
30419 msgstr ""
30420
30421 # type: textblock
30422 #. type: textblock
30423 #: ../test-tool/libguestfs-test-tool.pod:32
30424 msgid ""
30425 "If it fails (and/or exits with non-zero error code), please paste the "
30426 "B<complete, unedited> output of the test tool into a bug report.  More "
30427 "information about reporting bugs can be found on the L<http://libguestfs.org/"
30428 "> website."
30429 msgstr ""
30430
30431 # type: =item
30432 #. type: =item
30433 #: ../test-tool/libguestfs-test-tool.pod:41
30434 msgid "I<--help>"
30435 msgstr ""
30436
30437 # type: textblock
30438 #. type: textblock
30439 #: ../test-tool/libguestfs-test-tool.pod:43
30440 msgid "Display short usage information and exit."
30441 msgstr ""
30442
30443 # type: =item
30444 #. type: =item
30445 #: ../test-tool/libguestfs-test-tool.pod:45
30446 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
30447 msgstr ""
30448
30449 # type: textblock
30450 #. type: textblock
30451 #: ../test-tool/libguestfs-test-tool.pod:47
30452 msgid ""
30453 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
30454 "normally look in the C<$libexec> directory that was configured when the tool "
30455 "was built."
30456 msgstr ""
30457
30458 # type: =item
30459 #. type: =item
30460 #: ../test-tool/libguestfs-test-tool.pod:51
30461 msgid "I<--qemu qemu_binary>"
30462 msgstr ""
30463
30464 # type: textblock
30465 #. type: textblock
30466 #: ../test-tool/libguestfs-test-tool.pod:53
30467 msgid ""
30468 "If you have downloaded another qemu binary, point this option at the full "
30469 "path of the binary to try it."
30470 msgstr ""
30471
30472 # type: =item
30473 #. type: =item
30474 #: ../test-tool/libguestfs-test-tool.pod:56
30475 msgid "I<--qemudir qemu_source_dir>"
30476 msgstr ""
30477
30478 # type: textblock
30479 #. type: textblock
30480 #: ../test-tool/libguestfs-test-tool.pod:58
30481 msgid ""
30482 "If you have compiled qemu from source, point this option at the source "
30483 "directory to try it."
30484 msgstr ""
30485
30486 # type: =item
30487 #. type: =item
30488 #: ../test-tool/libguestfs-test-tool.pod:61
30489 msgid "I<--timeout N>"
30490 msgstr ""
30491
30492 # type: textblock
30493 #. type: textblock
30494 #: ../test-tool/libguestfs-test-tool.pod:63
30495 msgid ""
30496 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30497 "does not usually need to be adjusted unless your machine is very slow."
30498 msgstr ""
30499
30500 # type: =head1
30501 #. type: =head1
30502 #: ../test-tool/libguestfs-test-tool.pod:69
30503 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30504 msgstr ""
30505
30506 # type: textblock
30507 #. type: textblock
30508 #: ../test-tool/libguestfs-test-tool.pod:71
30509 msgid ""
30510 "If you have compiled another version of qemu from source and would like to "
30511 "try that, then you can use the I<--qemudir> option to point to the qemu "
30512 "source directory."
30513 msgstr ""
30514
30515 # type: textblock
30516 #. type: textblock
30517 #: ../test-tool/libguestfs-test-tool.pod:75
30518 msgid ""
30519 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30520 "option to point to the binary."
30521 msgstr ""
30522
30523 # type: textblock
30524 #. type: textblock
30525 #: ../test-tool/libguestfs-test-tool.pod:78
30526 msgid ""
30527 "When using an alternate qemu with libguestfs, usually you would need to "
30528 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
30529 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
30530 "use either of the I<--qemudir> or I<--qemu> options."
30531 msgstr ""
30532
30533 # type: textblock
30534 #. type: textblock
30535 #: ../test-tool/libguestfs-test-tool.pod:85
30536 msgid ""
30537 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30538 "I<1> if there was an error."
30539 msgstr ""
30540
30541 # type: =item
30542 #. type: =item
30543 #: ../test-tool/libguestfs-test-tool.pod:92
30544 msgid "/usr/libexec/libguestfs-test-tool-helper"
30545 msgstr ""
30546
30547 # type: textblock
30548 #. type: textblock
30549 #: ../test-tool/libguestfs-test-tool.pod:94
30550 msgid ""
30551 "This helper program is run inside the appliance and provides additional "
30552 "tests."
30553 msgstr ""
30554
30555 # type: =item
30556 #. type: =item
30557 #: ../test-tool/libguestfs-test-tool.pod:97
30558 msgid "/usr/bin/mkisofs"
30559 msgstr ""
30560
30561 # type: textblock
30562 #. type: textblock
30563 #: ../test-tool/libguestfs-test-tool.pod:99
30564 msgid ""
30565 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
30566 "which is used as part of the tests."
30567 msgstr ""
30568
30569 # type: textblock
30570 #. type: textblock
30571 #: ../test-tool/libguestfs-test-tool.pod:106
30572 msgid ""
30573 "For the full list of environment variables which may affect libguestfs, "
30574 "please see the L<guestfs(3)> manual page."
30575 msgstr ""
30576
30577 # type: textblock
30578 #. type: textblock
30579 #: ../test-tool/libguestfs-test-tool.pod:111
30580 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30581 msgstr ""
30582
30583 # type: textblock
30584 #. type: textblock
30585 #: ../test-tool/libguestfs-test-tool.pod:121
30586 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
30587 msgstr ""
30588
30589 # type: textblock
30590 #. type: textblock
30591 #: ../fuse/guestmount.pod:5
30592 msgid ""
30593 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30594 msgstr ""
30595
30596 # type: verbatim
30597 #. type: verbatim
30598 #: ../fuse/guestmount.pod:9
30599 #, no-wrap
30600 msgid ""
30601 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30602 "\n"
30603 msgstr ""
30604
30605 # type: verbatim
30606 #. type: verbatim
30607 #: ../fuse/guestmount.pod:11
30608 #, no-wrap
30609 msgid ""
30610 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30611 "\n"
30612 msgstr ""
30613
30614 # type: verbatim
30615 #. type: verbatim
30616 #: ../fuse/guestmount.pod:13
30617 #, no-wrap
30618 msgid ""
30619 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30620 "\n"
30621 msgstr ""
30622
30623 # type: textblock
30624 #. type: textblock
30625 #: ../fuse/guestmount.pod:17
30626 msgid ""
30627 "You must I<not> use C<guestmount> in read-write mode on live virtual "
30628 "machines.  If you do this, you risk disk corruption in the VM."
30629 msgstr ""
30630
30631 # type: textblock
30632 #. type: textblock
30633 #: ../fuse/guestmount.pod:22
30634 msgid ""
30635 "The guestmount program can be used to mount virtual machine filesystems and "
30636 "other disk images on the host.  It uses libguestfs for access to the guest "
30637 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
30638 "a mountable device."
30639 msgstr ""
30640
30641 # type: textblock
30642 #. type: textblock
30643 #: ../fuse/guestmount.pod:27
30644 msgid ""
30645 "Along with other options, you have to give at least one device (I<-a> "
30646 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
30647 "option) or use the I<-i> inspection option.  How this works is better "
30648 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
30649 "below."
30650 msgstr ""
30651
30652 # type: textblock
30653 #. type: textblock
30654 #: ../fuse/guestmount.pod:33
30655 msgid ""
30656 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
30657 "by you, and the filesystem will not be visible to any other users unless you "
30658 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
30659 "the filesystem, use the C<fusermount -u> command."
30660 msgstr ""
30661
30662 # type: textblock
30663 #. type: textblock
30664 #: ../fuse/guestmount.pod:41
30665 msgid ""
30666 "For a typical Windows guest which has its main filesystem on the first "
30667 "partition:"
30668 msgstr ""
30669
30670 # type: verbatim
30671 #. type: verbatim
30672 #: ../fuse/guestmount.pod:44
30673 #, no-wrap
30674 msgid ""
30675 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
30676 "\n"
30677 msgstr ""
30678
30679 # type: textblock
30680 #. type: textblock
30681 #: ../fuse/guestmount.pod:46
30682 msgid ""
30683 "For a typical Linux guest which has a /boot filesystem on the first "
30684 "partition, and the root filesystem on a logical volume:"
30685 msgstr ""
30686
30687 # type: verbatim
30688 #. type: verbatim
30689 #: ../fuse/guestmount.pod:49
30690 #, no-wrap
30691 msgid ""
30692 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
30693 "\n"
30694 msgstr ""
30695
30696 # type: textblock
30697 #. type: textblock
30698 #: ../fuse/guestmount.pod:51
30699 msgid "To get libguestfs to detect guest mountpoints for you:"
30700 msgstr ""
30701
30702 # type: verbatim
30703 #. type: verbatim
30704 #: ../fuse/guestmount.pod:53
30705 #, no-wrap
30706 msgid ""
30707 " guestmount -a guest.img -i --ro /mnt\n"
30708 "\n"
30709 msgstr ""
30710
30711 # type: textblock
30712 #. type: textblock
30713 #: ../fuse/guestmount.pod:55
30714 msgid "For a libvirt guest called \"Guest\" you could do:"
30715 msgstr ""
30716
30717 # type: verbatim
30718 #. type: verbatim
30719 #: ../fuse/guestmount.pod:57
30720 #, no-wrap
30721 msgid ""
30722 " guestmount -d Guest -i --ro /mnt\n"
30723 "\n"
30724 msgstr ""
30725
30726 # type: textblock
30727 #. type: textblock
30728 #: ../fuse/guestmount.pod:59
30729 msgid ""
30730 "If you don't know what filesystems are contained in a guest or disk image, "
30731 "use L<virt-filesystems(1)> first:"
30732 msgstr ""
30733
30734 # type: verbatim
30735 #. type: verbatim
30736 #: ../fuse/guestmount.pod:62
30737 #, no-wrap
30738 msgid ""
30739 " virt-filesystems MyGuest\n"
30740 "\n"
30741 msgstr ""
30742
30743 # type: textblock
30744 #. type: textblock
30745 #: ../fuse/guestmount.pod:64
30746 msgid ""
30747 "If you want to trace the libguestfs calls but without excessive debugging "
30748 "information, we recommend:"
30749 msgstr ""
30750
30751 # type: verbatim
30752 #. type: verbatim
30753 #: ../fuse/guestmount.pod:67
30754 #, no-wrap
30755 msgid ""
30756 " guestmount [...] --trace /mnt\n"
30757 "\n"
30758 msgstr ""
30759
30760 # type: textblock
30761 #. type: textblock
30762 #: ../fuse/guestmount.pod:69
30763 msgid "If you want to debug the program, we recommend:"
30764 msgstr ""
30765
30766 # type: verbatim
30767 #. type: verbatim
30768 #: ../fuse/guestmount.pod:71
30769 #, no-wrap
30770 msgid ""
30771 " guestmount [...] --trace --verbose /mnt\n"
30772 "\n"
30773 msgstr ""
30774
30775 # type: =item
30776 #. type: =item
30777 #: ../fuse/guestmount.pod:77
30778 msgid "B<-a image> | B<--add image>"
30779 msgstr ""
30780
30781 # type: textblock
30782 #. type: textblock
30783 #: ../fuse/guestmount.pod:79
30784 msgid "Add a block device or virtual machine image."
30785 msgstr ""
30786
30787 # type: =item
30788 #. type: =item
30789 #: ../fuse/guestmount.pod:84
30790 msgid "B<-c URI> | B<--connect URI>"
30791 msgstr ""
30792
30793 # type: =item
30794 #. type: =item
30795 #: ../fuse/guestmount.pod:90
30796 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
30797 msgstr ""
30798
30799 # type: =item
30800 #. type: =item
30801 #: ../fuse/guestmount.pod:96
30802 msgid "B<--dir-cache-timeout N>"
30803 msgstr ""
30804
30805 # type: textblock
30806 #. type: textblock
30807 #: ../fuse/guestmount.pod:98
30808 msgid ""
30809 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
30810 "seconds.  The readdir cache [actually, there are several semi-independent "
30811 "caches] is populated after a readdir(2) call with the stat and extended "
30812 "attributes of the files in the directory, in anticipation that they will be "
30813 "requested soon after."
30814 msgstr ""
30815
30816 # type: textblock
30817 #. type: textblock
30818 #: ../fuse/guestmount.pod:104
30819 msgid ""
30820 "There is also a different attribute cache implemented by FUSE (see the FUSE "
30821 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
30822 "requests, only cache existing ones."
30823 msgstr ""
30824
30825 # type: =item
30826 #. type: =item
30827 #: ../fuse/guestmount.pod:115
30828 msgid "B<--format=raw|qcow2|..> | B<--format>"
30829 msgstr ""
30830
30831 # type: textblock
30832 #. type: textblock
30833 #: ../fuse/guestmount.pod:122
30834 msgid ""
30835 "If you have untrusted raw-format guest disk images, you should use this "
30836 "option to specify the disk format.  This avoids a possible security problem "
30837 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
30838 "guestfs_add_drive_opts>."
30839 msgstr ""
30840
30841 # type: =item
30842 #. type: =item
30843 #: ../fuse/guestmount.pod:127
30844 msgid "B<--fuse-help>"
30845 msgstr ""
30846
30847 # type: textblock
30848 #. type: textblock
30849 #: ../fuse/guestmount.pod:129
30850 msgid "Display help on special FUSE options (see I<-o> below)."
30851 msgstr ""
30852
30853 # type: textblock
30854 #. type: textblock
30855 #: ../fuse/guestmount.pod:133
30856 msgid "Display brief help and exit."
30857 msgstr ""
30858
30859 # type: =item
30860 #. type: =item
30861 #: ../fuse/guestmount.pod:135
30862 msgid "B<-i> | B<--inspector>"
30863 msgstr ""
30864
30865 # type: =item
30866 #. type: =item
30867 #: ../fuse/guestmount.pod:146
30868 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
30869 msgstr ""
30870
30871 # type: textblock
30872 #. type: textblock
30873 #: ../fuse/guestmount.pod:148
30874 msgid ""
30875 "Mount the named partition or logical volume on the given mountpoint B<in the "
30876 "guest> (this has nothing to do with mountpoints in the host)."
30877 msgstr ""
30878
30879 # type: textblock
30880 #. type: textblock
30881 #: ../fuse/guestmount.pod:151
30882 msgid ""
30883 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
30884 "something on C</>."
30885 msgstr ""
30886
30887 # type: =item
30888 #. type: =item
30889 #: ../fuse/guestmount.pod:154
30890 msgid "B<-n> | B<--no-sync>"
30891 msgstr ""
30892
30893 # type: textblock
30894 #. type: textblock
30895 #: ../fuse/guestmount.pod:156
30896 msgid ""
30897 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
30898 "unmounted.  If you specify this option, then we don't attempt to sync the "
30899 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
30900 msgstr ""
30901
30902 # type: =item
30903 #. type: =item
30904 #: ../fuse/guestmount.pod:161
30905 msgid "B<-o option> | B<--option option>"
30906 msgstr ""
30907
30908 # type: textblock
30909 #. type: textblock
30910 #: ../fuse/guestmount.pod:163
30911 msgid "Pass extra options to FUSE."
30912 msgstr ""
30913
30914 # type: textblock
30915 #. type: textblock
30916 #: ../fuse/guestmount.pod:165
30917 msgid ""
30918 "To get a list of all the extra options supported by FUSE, use the command "
30919 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
30920 "of them are a good idea."
30921 msgstr ""
30922
30923 # type: verbatim
30924 #. type: verbatim
30925 #: ../fuse/guestmount.pod:169
30926 #, no-wrap
30927 msgid ""
30928 " guestmount --fuse-help\n"
30929 "\n"
30930 msgstr ""
30931
30932 # type: textblock
30933 #. type: textblock
30934 #: ../fuse/guestmount.pod:171
30935 msgid "Some potentially useful FUSE options:"
30936 msgstr ""
30937
30938 # type: =item
30939 #. type: =item
30940 #: ../fuse/guestmount.pod:175
30941 msgid "B<-o allow_other>"
30942 msgstr ""
30943
30944 # type: textblock
30945 #. type: textblock
30946 #: ../fuse/guestmount.pod:177
30947 msgid "Allow other users to see the filesystem."
30948 msgstr ""
30949
30950 # type: =item
30951 #. type: =item
30952 #: ../fuse/guestmount.pod:179
30953 msgid "B<-o attr_timeout=N>"
30954 msgstr ""
30955
30956 # type: textblock
30957 #. type: textblock
30958 #: ../fuse/guestmount.pod:181
30959 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
30960 msgstr ""
30961
30962 # type: =item
30963 #. type: =item
30964 #: ../fuse/guestmount.pod:183
30965 msgid "B<-o kernel_cache>"
30966 msgstr ""
30967
30968 # type: textblock
30969 #. type: textblock
30970 #: ../fuse/guestmount.pod:185
30971 msgid ""
30972 "Allow the kernel to cache files (reduces the number of reads that have to go "
30973 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
30974 "afford the extra memory usage."
30975 msgstr ""
30976
30977 # type: =item
30978 #. type: =item
30979 #: ../fuse/guestmount.pod:189
30980 msgid "B<-o uid=N> B<-o gid=N>"
30981 msgstr ""
30982
30983 # type: textblock
30984 #. type: textblock
30985 #: ../fuse/guestmount.pod:191
30986 msgid ""
30987 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
30988 "the chosen values."
30989 msgstr ""
30990
30991 # type: =item
30992 #. type: =item
30993 #: ../fuse/guestmount.pod:196
30994 msgid "B<-r> | B<--ro>"
30995 msgstr ""
30996
30997 # type: textblock
30998 #. type: textblock
30999 #: ../fuse/guestmount.pod:198
31000 msgid ""
31001 "Add devices and mount everything read-only.  Also disallow writes and make "
31002 "the disk appear read-only to FUSE."
31003 msgstr ""
31004
31005 # type: textblock
31006 #. type: textblock
31007 #: ../fuse/guestmount.pod:201
31008 msgid ""
31009 "This is highly recommended if you are not going to edit the guest disk.  If "
31010 "the guest is running and this option is I<not> supplied, then there is a "
31011 "strong risk of disk corruption in the guest.  We try to prevent this from "
31012 "happening, but it is not always possible."
31013 msgstr ""
31014
31015 # type: textblock
31016 #. type: textblock
31017 #: ../fuse/guestmount.pod:206
31018 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31019 msgstr ""
31020
31021 # type: textblock
31022 #. type: textblock
31023 #: ../fuse/guestmount.pod:210
31024 msgid "Enable SELinux support for the guest."
31025 msgstr ""
31026
31027 # type: =item
31028 #. type: =item
31029 #: ../fuse/guestmount.pod:212
31030 msgid "B<-v> | B<--verbose>"
31031 msgstr ""
31032
31033 # type: textblock
31034 #. type: textblock
31035 #: ../fuse/guestmount.pod:214
31036 msgid "Enable verbose messages from underlying libguestfs."
31037 msgstr ""
31038
31039 # type: =item
31040 #. type: =item
31041 #: ../fuse/guestmount.pod:216
31042 msgid "B<-V> | B<--version>"
31043 msgstr ""
31044
31045 # type: textblock
31046 #. type: textblock
31047 #: ../fuse/guestmount.pod:218
31048 msgid "Display the program version and exit."
31049 msgstr ""
31050
31051 # type: =item
31052 #. type: =item
31053 #: ../fuse/guestmount.pod:220
31054 msgid "B<-w> | B<--rw>"
31055 msgstr ""
31056
31057 # type: textblock
31058 #. type: textblock
31059 #: ../fuse/guestmount.pod:222
31060 msgid ""
31061 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
31062 "FOR READ AND WRITE>."
31063 msgstr ""
31064
31065 # type: =item
31066 #. type: =item
31067 #: ../fuse/guestmount.pod:225
31068 msgid "B<-x> | B<--trace>"
31069 msgstr ""
31070
31071 # type: textblock
31072 #. type: textblock
31073 #: ../fuse/guestmount.pod:227
31074 msgid "Trace libguestfs calls and entry into each FUSE function."
31075 msgstr ""
31076
31077 # type: textblock
31078 #. type: textblock
31079 #: ../fuse/guestmount.pod:229
31080 msgid "This also stops the daemon from forking into the background."
31081 msgstr ""
31082
31083 # type: textblock
31084 #. type: textblock
31085 #: ../fuse/guestmount.pod:235
31086 msgid ""
31087 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
31088 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
31089 "net/>."
31090 msgstr ""
31091
31092 # type: textblock
31093 #. type: textblock
31094 #: ../tools/virt-edit.pl:34
31095 msgid "virt-edit - Edit a file in a virtual machine"
31096 msgstr ""
31097
31098 # type: verbatim
31099 #. type: verbatim
31100 #: ../tools/virt-edit.pl:38
31101 #, no-wrap
31102 msgid ""
31103 " virt-edit [--options] domname file\n"
31104 "\n"
31105 msgstr ""
31106
31107 # type: verbatim
31108 #. type: verbatim
31109 #: ../tools/virt-edit.pl:40
31110 #, no-wrap
31111 msgid ""
31112 " virt-edit [--options] disk.img [disk.img ...] file\n"
31113 "\n"
31114 msgstr ""
31115
31116 # type: verbatim
31117 #. type: verbatim
31118 #: ../tools/virt-edit.pl:42
31119 #, no-wrap
31120 msgid ""
31121 " virt-edit [domname|disk.img] file -e 'expr'\n"
31122 "\n"
31123 msgstr ""
31124
31125 # type: textblock
31126 #. type: textblock
31127 #: ../tools/virt-edit.pl:46
31128 msgid ""
31129 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
31130 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
31131 "doing this, but doesn't catch all cases."
31132 msgstr ""
31133
31134 # type: textblock
31135 #. type: textblock
31136 #: ../tools/virt-edit.pl:52
31137 msgid ""
31138 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
31139 "the named virtual machine (or disk image)."
31140 msgstr ""
31141
31142 # type: textblock
31143 #. type: textblock
31144 #: ../tools/virt-edit.pl:55
31145 msgid ""
31146 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
31147 "you should look at the L<guestfish(1)> tool."
31148 msgstr ""
31149
31150 # type: textblock
31151 #. type: textblock
31152 #: ../tools/virt-edit.pl:60
31153 msgid "Edit the named files interactively:"
31154 msgstr ""
31155
31156 # type: verbatim
31157 #. type: verbatim
31158 #: ../tools/virt-edit.pl:62
31159 #, no-wrap
31160 msgid ""
31161 " virt-edit mydomain /boot/grub/grub.conf\n"
31162 "\n"
31163 msgstr ""
31164
31165 # type: verbatim
31166 #. type: verbatim
31167 #: ../tools/virt-edit.pl:64
31168 #, no-wrap
31169 msgid ""
31170 " virt-edit mydomain /etc/passwd\n"
31171 "\n"
31172 msgstr ""
31173
31174 # type: textblock
31175 #. type: textblock
31176 #: ../tools/virt-edit.pl:66
31177 msgid ""
31178 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
31179 "below).  To change the init default level to 5:"
31180 msgstr ""
31181
31182 # type: verbatim
31183 #. type: verbatim
31184 #: ../tools/virt-edit.pl:70
31185 #, no-wrap
31186 msgid ""
31187 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
31188 "\n"
31189 msgstr ""
31190
31191 # type: textblock
31192 #. type: textblock
31193 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
31194 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
31195 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
31196 msgid "Display brief help."
31197 msgstr ""
31198
31199 # type: textblock
31200 #. type: textblock
31201 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
31202 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
31203 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
31204 #: ../tools/virt-list-partitions.pl:72
31205 msgid "Display version number and exit."
31206 msgstr ""
31207
31208 # type: =item
31209 #. type: =item
31210 #: ../tools/virt-edit.pl:96
31211 msgid "B<--backup extension> | B<-b extension>"
31212 msgstr ""
31213
31214 # type: textblock
31215 #. type: textblock
31216 #: ../tools/virt-edit.pl:98
31217 msgid ""
31218 "Create a backup of the original file I<in the guest disk image>.  The backup "
31219 "has the original filename with C<extension> added."
31220 msgstr ""
31221
31222 # type: textblock
31223 #. type: textblock
31224 #: ../tools/virt-edit.pl:101
31225 msgid ""
31226 "Usually the first character of C<extension> would be a dot C<.> so you would "
31227 "write:"
31228 msgstr ""
31229
31230 # type: verbatim
31231 #. type: verbatim
31232 #: ../tools/virt-edit.pl:104
31233 #, no-wrap
31234 msgid ""
31235 " virt-edit -b .orig [etc]\n"
31236 "\n"
31237 msgstr ""
31238
31239 # type: textblock
31240 #. type: textblock
31241 #: ../tools/virt-edit.pl:106
31242 msgid "By default, no backup file is made."
31243 msgstr ""
31244
31245 # type: =item
31246 #. type: =item
31247 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
31248 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
31249 #: ../tools/virt-list-partitions.pl:78
31250 msgid "B<--connect URI> | B<-c URI>"
31251 msgstr ""
31252
31253 # type: textblock
31254 #. type: textblock
31255 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
31256 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
31257 #: ../tools/virt-list-partitions.pl:80
31258 msgid ""
31259 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31260 "to the default libvirt hypervisor."
31261 msgstr ""
31262
31263 # type: textblock
31264 #. type: textblock
31265 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
31266 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
31267 #: ../tools/virt-list-partitions.pl:83
31268 msgid ""
31269 "If you specify guest block devices directly, then libvirt is not used at all."
31270 msgstr ""
31271
31272 # type: =item
31273 #. type: =item
31274 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
31275 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
31276 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
31277 msgid "B<--format> raw"
31278 msgstr ""
31279
31280 # type: textblock
31281 #. type: textblock
31282 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
31283 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
31284 #: ../tools/virt-list-partitions.pl:92
31285 msgid ""
31286 "Specify the format of disk images given on the command line.  If this is "
31287 "omitted then the format is autodetected from the content of the disk image."
31288 msgstr ""
31289
31290 # type: textblock
31291 #. type: textblock
31292 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
31293 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
31294 #: ../tools/virt-list-partitions.pl:96
31295 msgid ""
31296 "If disk images are requested from libvirt, then this program asks libvirt "
31297 "for this information.  In this case, the value of the format parameter is "
31298 "ignored."
31299 msgstr ""
31300
31301 # type: textblock
31302 #. type: textblock
31303 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
31304 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
31305 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
31306 #: ../tools/virt-list-partitions.pl:100
31307 msgid ""
31308 "If working with untrusted raw-format guest disk images, you should ensure "
31309 "the format is always specified."
31310 msgstr ""
31311
31312 # type: =item
31313 #. type: =item
31314 #: ../tools/virt-edit.pl:141
31315 msgid "B<--expr EXPR> | B<-e EXPR>"
31316 msgstr ""
31317
31318 # type: textblock
31319 #. type: textblock
31320 #: ../tools/virt-edit.pl:143
31321 msgid ""
31322 "Instead of launching the external editor, non-interactively apply the Perl "
31323 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
31324 "EDITING> below."
31325 msgstr ""
31326
31327 # type: textblock
31328 #. type: textblock
31329 #: ../tools/virt-edit.pl:147
31330 msgid ""
31331 "Be careful to properly quote the expression to prevent it from being altered "
31332 "by the shell."
31333 msgstr ""
31334
31335 # type: =head1
31336 #. type: =head1
31337 #: ../tools/virt-edit.pl:268
31338 msgid "NON-INTERACTIVE EDITING"
31339 msgstr ""
31340
31341 # type: textblock
31342 #. type: textblock
31343 #: ../tools/virt-edit.pl:270
31344 msgid ""
31345 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
31346 "administrator can interactively edit the file."
31347 msgstr ""
31348
31349 # type: textblock
31350 #. type: textblock
31351 #: ../tools/virt-edit.pl:273
31352 msgid ""
31353 "There are two ways also to use C<virt-edit> from scripts in order to make "
31354 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
31355 "like this, it's less error-prone to write scripts directly using the "
31356 "libguestfs API and Augeas for configuration file editing.)"
31357 msgstr ""
31358
31359 # type: textblock
31360 #. type: textblock
31361 #: ../tools/virt-edit.pl:279
31362 msgid ""
31363 "The first method is to temporarily set C<$EDITOR> to any script or program "
31364 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
31365 "update C<tmpfile> in place however it likes."
31366 msgstr ""
31367
31368 # type: textblock
31369 #. type: textblock
31370 #: ../tools/virt-edit.pl:283
31371 msgid ""
31372 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
31373 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
31374 "instances of C<foo> with C<bar> in a file:"
31375 msgstr ""
31376
31377 # type: verbatim
31378 #. type: verbatim
31379 #: ../tools/virt-edit.pl:287
31380 #, no-wrap
31381 msgid ""
31382 " virt-edit domname filename -e 's/foo/bar/'\n"
31383 "\n"
31384 msgstr ""
31385
31386 # type: textblock
31387 #. type: textblock
31388 #: ../tools/virt-edit.pl:289
31389 msgid ""
31390 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
31391 "For example to delete root's password you could do:"
31392 msgstr ""
31393
31394 # type: verbatim
31395 #. type: verbatim
31396 #: ../tools/virt-edit.pl:292
31397 #, no-wrap
31398 msgid ""
31399 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
31400 "\n"
31401 msgstr ""
31402
31403 # type: textblock
31404 #. type: textblock
31405 #: ../tools/virt-edit.pl:294
31406 msgid ""
31407 "What really happens is that the snippet is evaluated as a Perl expression "
31408 "for each line of the file.  The line, including the final C<\\n>, is passed "
31409 "in C<$_> and the expression should update C<$_> or leave it unchanged."
31410 msgstr ""
31411
31412 # type: textblock
31413 #. type: textblock
31414 #: ../tools/virt-edit.pl:299
31415 msgid ""
31416 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
31417 "C<apache> user account from the password file you can do:"
31418 msgstr ""
31419
31420 # type: verbatim
31421 #. type: verbatim
31422 #: ../tools/virt-edit.pl:302
31423 #, no-wrap
31424 msgid ""
31425 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
31426 "\n"
31427 msgstr ""
31428
31429 # type: textblock
31430 #. type: textblock
31431 #: ../tools/virt-edit.pl:304
31432 msgid ""
31433 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
31434 "the end of the file is rather difficult this way since there is no concept "
31435 "of \"last line of the file\" - your expression just doesn't get called "
31436 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
31437 "want to do this."
31438 msgstr ""
31439
31440 # type: textblock
31441 #. type: textblock
31442 #: ../tools/virt-edit.pl:310
31443 msgid ""
31444 "The variable C<$lineno> contains the current line number.  As is "
31445 "traditional, the first line in the file is number C<1>."
31446 msgstr ""
31447
31448 # type: textblock
31449 #. type: textblock
31450 #: ../tools/virt-edit.pl:313
31451 msgid ""
31452 "The return value from the expression is ignored, but the expression may call "
31453 "C<die> in order to abort the whole program, leaving the original file "
31454 "untouched."
31455 msgstr ""
31456
31457 # type: textblock
31458 #. type: textblock
31459 #: ../tools/virt-edit.pl:317
31460 msgid ""
31461 "Remember when matching the end of a line that C<$_> may contain the final C<"
31462 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
31463 "newline then neither of these.  Thus to match or substitute some text at the "
31464 "end of a line, use this regular expression:"
31465 msgstr ""
31466
31467 # type: verbatim
31468 #. type: verbatim
31469 #: ../tools/virt-edit.pl:322
31470 #, no-wrap
31471 msgid ""
31472 " /some text(\\r?\\n)?$/\n"
31473 "\n"
31474 msgstr ""
31475
31476 # type: textblock
31477 #. type: textblock
31478 #: ../tools/virt-edit.pl:324
31479 msgid ""
31480 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
31481 "$_> itself (since that would remove all newlines from the file):"
31482 msgstr ""
31483
31484 # type: verbatim
31485 #. type: verbatim
31486 #: ../tools/virt-edit.pl:328
31487 #, no-wrap
31488 msgid ""
31489 " my $m = $_; chomp $m; $m =~ /some text$/\n"
31490 "\n"
31491 msgstr ""
31492
31493 # type: =item
31494 #. type: =item
31495 #: ../tools/virt-edit.pl:334
31496 msgid "C<EDITOR>"
31497 msgstr ""
31498
31499 # type: textblock
31500 #. type: textblock
31501 #: ../tools/virt-edit.pl:336
31502 msgid ""
31503 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
31504 "\"emacs -nw\">"
31505 msgstr ""
31506
31507 # type: textblock
31508 #. type: textblock
31509 #: ../tools/virt-edit.pl:339
31510 msgid "If not set, C<vi> is used."
31511 msgstr ""
31512
31513 # type: =head2
31514 #. type: =head1
31515 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
31516 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
31517 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:527
31518 #: ../tools/virt-list-partitions.pl:250
31519 msgid "SHELL QUOTING"
31520 msgstr ""
31521
31522 # type: textblock
31523 #. type: textblock
31524 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
31525 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
31526 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:529
31527 #: ../tools/virt-list-partitions.pl:252
31528 msgid ""
31529 "Libvirt guest names can contain arbitrary characters, some of which have "
31530 "meaning to the shell such as C<#> and space.  You may need to quote or "
31531 "escape these characters on the command line.  See the shell manual page L<sh"
31532 "(1)> for details."
31533 msgstr ""
31534
31535 #. type: textblock
31536 #: ../tools/virt-edit.pl:352
31537 msgid ""
31538 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
31539 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
31540 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
31541 msgstr ""
31542
31543 # type: =head1
31544 #. type: =head1
31545 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
31546 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
31547 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:559
31548 #: ../tools/virt-list-partitions.pl:269
31549 msgid "AUTHOR"
31550 msgstr ""
31551
31552 # type: textblock
31553 #. type: textblock
31554 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
31555 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
31556 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:561
31557 #: ../tools/virt-list-partitions.pl:271
31558 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31559 msgstr ""
31560
31561 # type: textblock
31562 #. type: textblock
31563 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
31564 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31565 msgstr ""
31566
31567 # type: textblock
31568 #. type: textblock
31569 #: ../tools/virt-win-reg.pl:37
31570 msgid ""
31571 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
31572 msgstr ""
31573
31574 # type: verbatim
31575 #. type: verbatim
31576 #: ../tools/virt-win-reg.pl:41
31577 #, no-wrap
31578 msgid ""
31579 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31580 "\n"
31581 msgstr ""
31582
31583 # type: verbatim
31584 #. type: verbatim
31585 #: ../tools/virt-win-reg.pl:43
31586 #, no-wrap
31587 msgid ""
31588 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31589 "\n"
31590 msgstr ""
31591
31592 # type: verbatim
31593 #. type: verbatim
31594 #: ../tools/virt-win-reg.pl:45
31595 #, no-wrap
31596 msgid ""
31597 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31598 "\n"
31599 msgstr ""
31600
31601 # type: verbatim
31602 #. type: verbatim
31603 #: ../tools/virt-win-reg.pl:47
31604 #, no-wrap
31605 msgid ""
31606 " virt-win-reg --merge domname [input.reg ...]\n"
31607 "\n"
31608 msgstr ""
31609
31610 # type: verbatim
31611 #. type: verbatim
31612 #: ../tools/virt-win-reg.pl:49
31613 #, no-wrap
31614 msgid ""
31615 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31616 "\n"
31617 msgstr ""
31618
31619 # type: textblock
31620 #. type: textblock
31621 #: ../tools/virt-win-reg.pl:53
31622 msgid ""
31623 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
31624 "virtual machines.  If you do this, you I<will> get irreversible disk "
31625 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
31626 "but doesn't catch all cases."
31627 msgstr ""
31628
31629 # type: textblock
31630 #. type: textblock
31631 #: ../tools/virt-win-reg.pl:58
31632 msgid ""
31633 "Modifying the Windows Registry is an inherently risky operation.  The format "
31634 "is deliberately obscure and undocumented, and Registry changes can leave the "
31635 "system unbootable.  Therefore when using the C<--merge> option, make sure "
31636 "you have a reliable backup first."
31637 msgstr ""
31638
31639 # type: textblock
31640 #. type: textblock
31641 #: ../tools/virt-win-reg.pl:65
31642 msgid ""
31643 "This program can export and merge Windows Registry entries from a Windows "
31644 "guest."
31645 msgstr ""
31646
31647 # type: textblock
31648 #. type: textblock
31649 #: ../tools/virt-win-reg.pl:68
31650 msgid ""
31651 "The first parameter is the libvirt guest name or the raw disk image of a "
31652 "Windows guest."
31653 msgstr ""
31654
31655 # type: textblock
31656 #. type: textblock
31657 #: ../tools/virt-win-reg.pl:71
31658 msgid ""
31659 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
31660 "exported (recursively).  For example:"
31661 msgstr ""
31662
31663 # type: verbatim
31664 #. type: verbatim
31665 #: ../tools/virt-win-reg.pl:74
31666 #, no-wrap
31667 msgid ""
31668 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
31669 "\n"
31670 msgstr ""
31671
31672 # type: textblock
31673 #. type: textblock
31674 #: ../tools/virt-win-reg.pl:76
31675 msgid ""
31676 "You can also display single values from within registry keys, for example:"
31677 msgstr ""
31678
31679 # type: verbatim
31680 #. type: verbatim
31681 #: ../tools/virt-win-reg.pl:79
31682 #, no-wrap
31683 msgid ""
31684 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
31685 " $ virt-win-reg Windows7 $cvkey ProductName\n"
31686 " Windows 7 Enterprise\n"
31687 "\n"
31688 msgstr ""
31689
31690 # type: textblock
31691 #. type: textblock
31692 #: ../tools/virt-win-reg.pl:83
31693 msgid ""
31694 "With C<--merge>, you can merge a textual regedit file into the Windows "
31695 "Registry:"
31696 msgstr ""
31697
31698 # type: verbatim
31699 #. type: verbatim
31700 #: ../tools/virt-win-reg.pl:86
31701 #, no-wrap
31702 msgid ""
31703 " $ virt-win-reg --merge Windows7 changes.reg\n"
31704 "\n"
31705 msgstr ""
31706
31707 # type: =head2
31708 #. type: =head1
31709 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
31710 msgid "NOTE"
31711 msgstr ""
31712
31713 # type: textblock
31714 #. type: textblock
31715 #: ../tools/virt-win-reg.pl:90
31716 msgid ""
31717 "This program is only meant for simple access to the registry.  If you want "
31718 "to do complicated things with the registry, we suggest you download the "
31719 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
31720 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
31721 "L<hivexregedit(1)>."
31722 msgstr ""
31723
31724 # type: =item
31725 #. type: =item
31726 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
31727 msgid "B<--debug>"
31728 msgstr ""
31729
31730 # type: textblock
31731 #. type: textblock
31732 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
31733 msgid "Enable debugging messages."
31734 msgstr ""
31735
31736 # type: =item
31737 #. type: =item
31738 #: ../tools/virt-win-reg.pl:157
31739 msgid "B<--merge>"
31740 msgstr ""
31741
31742 # type: textblock
31743 #. type: textblock
31744 #: ../tools/virt-win-reg.pl:159
31745 msgid ""
31746 "In merge mode, this merges a textual regedit file into the Windows Registry "
31747 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
31748 "displays or exports Registry entries instead."
31749 msgstr ""
31750
31751 # type: textblock
31752 #. type: textblock
31753 #: ../tools/virt-win-reg.pl:163
31754 msgid ""
31755 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
31756 "result in disk corruption.  However exporting (without this flag)  is always "
31757 "safe."
31758 msgstr ""
31759
31760 # type: =item
31761 #. type: =item
31762 #: ../tools/virt-win-reg.pl:171
31763 msgid "B<--encoding> UTF-16LE|ASCII"
31764 msgstr ""
31765
31766 # type: textblock
31767 #. type: textblock
31768 #: ../tools/virt-win-reg.pl:173
31769 msgid ""
31770 "When merging (only), you may need to specify the encoding for strings to be "
31771 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
31772 "(3)/ENCODING STRINGS>."
31773 msgstr ""
31774
31775 # type: textblock
31776 #. type: textblock
31777 #: ../tools/virt-win-reg.pl:177
31778 msgid ""
31779 "The default is to use UTF-16LE, which should work with recent versions of "
31780 "Windows."
31781 msgstr ""
31782
31783 # type: =head2
31784 #. type: =head1
31785 #: ../tools/virt-win-reg.pl:402
31786 msgid "SUPPORTED SYSTEMS"
31787 msgstr ""
31788
31789 # type: textblock
31790 #. type: textblock
31791 #: ../tools/virt-win-reg.pl:404
31792 msgid ""
31793 "The program currently supports Windows NT-derived guests starting with "
31794 "Windows XP through to at least Windows 7."
31795 msgstr ""
31796
31797 # type: textblock
31798 #. type: textblock
31799 #: ../tools/virt-win-reg.pl:407
31800 msgid ""
31801 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
31802 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
31803 "and C<HKEY_USERS\\.DEFAULT>."
31804 msgstr ""
31805
31806 # type: textblock
31807 #. type: textblock
31808 #: ../tools/virt-win-reg.pl:411
31809 msgid ""
31810 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
31811 "C<HKEY_USERS>."
31812 msgstr ""
31813
31814 # type: textblock
31815 #. type: textblock
31816 #: ../tools/virt-win-reg.pl:414
31817 msgid ""
31818 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
31819 "time."
31820 msgstr ""
31821
31822 # type: =head2
31823 #. type: =head1
31824 #: ../tools/virt-win-reg.pl:417
31825 msgid "ENCODING"
31826 msgstr ""
31827
31828 # type: textblock
31829 #. type: textblock
31830 #: ../tools/virt-win-reg.pl:419
31831 msgid ""
31832 "C<virt-win-reg> expects that regedit files have already been reencoded in "
31833 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
31834 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
31835 "Windows-style line endings, you may need to reencode the whole file before "
31836 "or after processing."
31837 msgstr ""
31838
31839 # type: textblock
31840 #. type: textblock
31841 #: ../tools/virt-win-reg.pl:425
31842 msgid ""
31843 "To reencode a file from Windows format to Linux (before processing it with "
31844 "the C<--merge> option), you would do something like this:"
31845 msgstr ""
31846
31847 # type: verbatim
31848 #. type: verbatim
31849 #: ../tools/virt-win-reg.pl:428
31850 #, no-wrap
31851 msgid ""
31852 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
31853 "\n"
31854 msgstr ""
31855
31856 # type: textblock
31857 #. type: textblock
31858 #: ../tools/virt-win-reg.pl:430
31859 msgid ""
31860 "To go in the opposite direction, after exporting and before sending the file "
31861 "to a Windows user, do something like this:"
31862 msgstr ""
31863
31864 # type: verbatim
31865 #. type: verbatim
31866 #: ../tools/virt-win-reg.pl:433
31867 #, no-wrap
31868 msgid ""
31869 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
31870 "\n"
31871 msgstr ""
31872
31873 # type: textblock
31874 #. type: textblock
31875 #: ../tools/virt-win-reg.pl:435
31876 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
31877 msgstr ""
31878
31879 # type: textblock
31880 #. type: textblock
31881 #: ../tools/virt-win-reg.pl:437
31882 msgid ""
31883 "If you are unsure about the current encoding, use the L<file(1)> command.  "
31884 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
31885 "style (CRLF) line endings, like this:"
31886 msgstr ""
31887
31888 # type: verbatim
31889 #. type: verbatim
31890 #: ../tools/virt-win-reg.pl:441
31891 #, no-wrap
31892 msgid ""
31893 " $ file software.reg\n"
31894 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
31895 " with CRLF line terminators\n"
31896 "\n"
31897 msgstr ""
31898
31899 # type: textblock
31900 #. type: textblock
31901 #: ../tools/virt-win-reg.pl:445
31902 msgid "This file would need conversion before you could C<--merge> it."
31903 msgstr ""
31904
31905 # type: =head2
31906 #. type: =head1
31907 #: ../tools/virt-win-reg.pl:447
31908 msgid "CurrentControlSet etc."
31909 msgstr ""
31910
31911 # type: textblock
31912 #. type: textblock
31913 #: ../tools/virt-win-reg.pl:449
31914 msgid ""
31915 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
31916 "Registry at the level of the hive file, and therefore you cannot modify "
31917 "these."
31918 msgstr ""
31919
31920 # type: textblock
31921 #. type: textblock
31922 #: ../tools/virt-win-reg.pl:453
31923 msgid ""
31924 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
31925 "circumstances it might refer to another control set.  The way to find out is "
31926 "to look at the C<HKLM\\SYSTEM\\Select> key:"
31927 msgstr ""
31928
31929 # type: verbatim
31930 #. type: verbatim
31931 #: ../tools/virt-win-reg.pl:457
31932 #, no-wrap
31933 msgid ""
31934 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
31935 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
31936 " \"Current\"=dword:00000001\n"
31937 " \"Default\"=dword:00000001\n"
31938 " \"Failed\"=dword:00000000\n"
31939 " \"LastKnownGood\"=dword:00000002\n"
31940 "\n"
31941 msgstr ""
31942
31943 # type: textblock
31944 #. type: textblock
31945 #: ../tools/virt-win-reg.pl:464
31946 msgid "\"Current\" is the one which Windows will choose when it boots."
31947 msgstr ""
31948
31949 # type: textblock
31950 #. type: textblock
31951 #: ../tools/virt-win-reg.pl:466
31952 msgid ""
31953 "Similarly, other C<Current...> keys in the path may need to be replaced."
31954 msgstr ""
31955
31956 # type: =head1
31957 #. type: =head1
31958 #: ../tools/virt-win-reg.pl:469
31959 msgid "WINDOWS TIPS"
31960 msgstr ""
31961
31962 # type: textblock
31963 #. type: textblock
31964 #: ../tools/virt-win-reg.pl:471
31965 msgid ""
31966 "Note that some of these tips modify the guest disk image.  The guest I<must> "
31967 "be shut off, else you will get disk corruption."
31968 msgstr ""
31969
31970 # type: =head2
31971 #. type: =head2
31972 #: ../tools/virt-win-reg.pl:474
31973 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
31974 msgstr ""
31975
31976 # type: textblock
31977 #. type: textblock
31978 #: ../tools/virt-win-reg.pl:476
31979 msgid ""
31980 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
31981 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
31982 "is uploaded into C<C:\\>:"
31983 msgstr ""
31984
31985 # type: verbatim
31986 #. type: verbatim
31987 #: ../tools/virt-win-reg.pl:480
31988 #, no-wrap
31989 msgid ""
31990 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
31991 "\n"
31992 msgstr ""
31993
31994 # type: textblock
31995 #. type: textblock
31996 #: ../tools/virt-win-reg.pl:482
31997 msgid "Prepare a regedit file containing the registry change:"
31998 msgstr ""
31999
32000 # type: verbatim
32001 #. type: verbatim
32002 #: ../tools/virt-win-reg.pl:484
32003 #, no-wrap
32004 msgid ""
32005 " cat > test.reg <<'EOF'\n"
32006 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
32007 " \"Test\"=\"c:\\\\test.bat\"\n"
32008 " EOF\n"
32009 "\n"
32010 msgstr ""
32011
32012 # type: textblock
32013 #. type: textblock
32014 #: ../tools/virt-win-reg.pl:489
32015 msgid ""
32016 "In this example we use the key C<RunOnce> which means that the script will "
32017 "run precisely once when the first user logs in.  If you want it to run every "
32018 "time a user logs in, replace C<RunOnce> with C<Run>."
32019 msgstr ""
32020
32021 # type: textblock
32022 #. type: textblock
32023 #: ../tools/virt-win-reg.pl:493
32024 msgid "Now update the registry:"
32025 msgstr ""
32026
32027 # type: verbatim
32028 #. type: verbatim
32029 #: ../tools/virt-win-reg.pl:495
32030 #, no-wrap
32031 msgid ""
32032 " virt-win-reg --merge WindowsGuest test.reg\n"
32033 "\n"
32034 msgstr ""
32035
32036 # type: =head2
32037 #. type: =head2
32038 #: ../tools/virt-win-reg.pl:497
32039 msgid "INSTALLING A SERVICE"
32040 msgstr ""
32041
32042 # type: textblock
32043 #. type: textblock
32044 #: ../tools/virt-win-reg.pl:499
32045 msgid ""
32046 "This section assumes you are familiar with Windows services, and you either "
32047 "have a program which handles the Windows Service Control Protocol directly "
32048 "or you want to run any program using a service wrapper like SrvAny or the "
32049 "free RHSrvAny."
32050 msgstr ""
32051
32052 # type: textblock
32053 #. type: textblock
32054 #: ../tools/virt-win-reg.pl:504
32055 msgid ""
32056 "First upload the program and optionally the service wrapper.  In this case "
32057 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
32058 msgstr ""
32059
32060 # type: verbatim
32061 #. type: verbatim
32062 #: ../tools/virt-win-reg.pl:508
32063 #, no-wrap
32064 msgid ""
32065 " guestfish -i -d WindowsGuest <<EOF\n"
32066 "   upload rhsrvany.exe /rhsrvany.exe\n"
32067 "   upload test.exe /test.exe\n"
32068 " EOF\n"
32069 "\n"
32070 msgstr ""
32071
32072 # type: textblock
32073 #. type: textblock
32074 #: ../tools/virt-win-reg.pl:513
32075 msgid ""
32076 "Prepare a regedit file containing the registry changes.  In this example, "
32077 "the first registry change is needed for the service itself or the service "
32078 "wrapper (if used).  The second registry change is only needed because I am "
32079 "using the RHSrvAny service wrapper."
32080 msgstr ""
32081
32082 # type: verbatim
32083 #. type: verbatim
32084 #: ../tools/virt-win-reg.pl:518
32085 #, no-wrap
32086 msgid ""
32087 " cat > service.reg <<'EOF'\n"
32088 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
32089 " \"Type\"=dword:00000010\n"
32090 " \"Start\"=dword:00000002\n"
32091 " \"ErrorControl\"=dword:00000001\n"
32092 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
32093 " \"DisplayName\"=\"RHSrvAny\"\n"
32094 " \"ObjectName\"=\"NetworkService\"\n"
32095 " \n"
32096 msgstr ""
32097
32098 # type: verbatim
32099 #. type: verbatim
32100 #: ../tools/virt-win-reg.pl:527
32101 #, no-wrap
32102 msgid ""
32103 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
32104 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
32105 " \"PWD\"=\"c:\\\\Temp\"\n"
32106 " EOF\n"
32107 "\n"
32108 msgstr ""
32109
32110 # type: textblock
32111 #. type: textblock
32112 #: ../tools/virt-win-reg.pl:538
32113 msgid ""
32114 "For use of C<ControlSet001> see the section above in this manual page.  You "
32115 "may need to adjust this according to the control set that is in use by the "
32116 "guest."
32117 msgstr ""
32118
32119 # type: textblock
32120 #. type: textblock
32121 #: ../tools/virt-win-reg.pl:544
32122 msgid ""
32123 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
32124 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
32125 "privileged account."
32126 msgstr ""
32127
32128 # type: textblock
32129 #. type: textblock
32130 #: ../tools/virt-win-reg.pl:550
32131 msgid ""
32132 "For the meaning of the magic numbers, see this Microsoft KB article: "
32133 "L<http://support.microsoft.com/kb/103000>."
32134 msgstr ""
32135
32136 # type: textblock
32137 #. type: textblock
32138 #: ../tools/virt-win-reg.pl:555
32139 msgid "Update the registry:"
32140 msgstr ""
32141
32142 # type: verbatim
32143 #. type: verbatim
32144 #: ../tools/virt-win-reg.pl:557
32145 #, no-wrap
32146 msgid ""
32147 " virt-win-reg --merge WindowsGuest service.reg\n"
32148 "\n"
32149 msgstr ""
32150
32151 # type: textblock
32152 #. type: textblock
32153 #: ../tools/virt-win-reg.pl:561
32154 msgid ""
32155 "Be careful when passing parameters containing C<\\> (backslash) in the "
32156 "shell.  Usually you will have to use 'single quotes' or double backslashes "
32157 "(but not both) to protect them from the shell."
32158 msgstr ""
32159
32160 # type: textblock
32161 #. type: textblock
32162 #: ../tools/virt-win-reg.pl:565
32163 msgid "Paths and value names are case-insensitive."
32164 msgstr ""
32165
32166 # type: textblock
32167 #. type: textblock
32168 #: ../tools/virt-win-reg.pl:574
32169 msgid ""
32170 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
32171 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
32172 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32173 msgstr ""
32174
32175 # type: textblock
32176 #. type: textblock
32177 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
32178 msgid ""
32179 "When reporting bugs, please enable debugging and capture the I<complete> "
32180 "output:"
32181 msgstr ""
32182
32183 # type: verbatim
32184 #. type: verbatim
32185 #: ../tools/virt-win-reg.pl:592
32186 #, no-wrap
32187 msgid ""
32188 " export LIBGUESTFS_DEBUG=1\n"
32189 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
32190 "\n"
32191 msgstr ""
32192
32193 # type: textblock
32194 #. type: textblock
32195 #: ../tools/virt-win-reg.pl:595
32196 msgid ""
32197 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
32198 "redhat.com/>"
32199 msgstr ""
32200
32201 # type: textblock
32202 #. type: textblock
32203 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
32204 #: ../tools/virt-make-fs.pl:565
32205 msgid "Copyright (C) 2010 Red Hat Inc."
32206 msgstr ""
32207
32208 # type: textblock
32209 #. type: textblock
32210 #: ../tools/virt-resize.pl:42
32211 msgid "virt-resize - Resize a virtual machine disk"
32212 msgstr ""
32213
32214 # type: verbatim
32215 #. type: verbatim
32216 #: ../tools/virt-resize.pl:46
32217 #, no-wrap
32218 msgid ""
32219 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
32220 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
32221 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
32222 "\n"
32223 msgstr ""
32224
32225 # type: textblock
32226 #. type: textblock
32227 #: ../tools/virt-resize.pl:52
32228 msgid ""
32229 "Virt-resize is a tool which can resize a virtual machine disk, making it "
32230 "larger or smaller overall, and resizing or deleting any partitions contained "
32231 "within."
32232 msgstr ""
32233
32234 # type: textblock
32235 #. type: textblock
32236 #: ../tools/virt-resize.pl:56
32237 msgid ""
32238 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
32239 "not> be used on live virtual machines - for consistent results, shut the "
32240 "virtual machine down before resizing it."
32241 msgstr ""
32242
32243 # type: textblock
32244 #. type: textblock
32245 #: ../tools/virt-resize.pl:60
32246 msgid ""
32247 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
32248 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
32249 msgstr ""
32250
32251 # type: textblock
32252 #. type: textblock
32253 #: ../tools/virt-resize.pl:66
32254 msgid ""
32255 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
32256 "fill the extra 5GB of space."
32257 msgstr ""
32258
32259 #. type: verbatim
32260 #: ../tools/virt-resize.pl:69
32261 #, no-wrap
32262 msgid ""
32263 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
32264 " virt-filesystems --long -h --all -a olddisk\n"
32265 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
32266 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
32267 "\n"
32268 msgstr ""
32269
32270 # type: textblock
32271 #. type: textblock
32272 #: ../tools/virt-resize.pl:74
32273 msgid ""
32274 "As above, but make the /boot partition 200MB bigger, while giving the "
32275 "remaining space to /dev/sda2:"
32276 msgstr ""
32277
32278 # type: verbatim
32279 #. type: verbatim
32280 #: ../tools/virt-resize.pl:77
32281 #, no-wrap
32282 msgid ""
32283 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
32284 "\n"
32285 msgstr ""
32286
32287 # type: textblock
32288 #. type: textblock
32289 #: ../tools/virt-resize.pl:79
32290 msgid "As above, but the output format will be uncompressed qcow2:"
32291 msgstr ""
32292
32293 # type: verbatim
32294 #. type: verbatim
32295 #: ../tools/virt-resize.pl:81
32296 #, no-wrap
32297 msgid ""
32298 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
32299 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
32300 "\n"
32301 msgstr ""
32302
32303 # type: =head1
32304 #. type: =head1
32305 #: ../tools/virt-resize.pl:84
32306 msgid "DETAILED USAGE"
32307 msgstr ""
32308
32309 # type: =head2
32310 #. type: =head2
32311 #: ../tools/virt-resize.pl:86
32312 msgid "EXPANDING A VIRTUAL MACHINE DISK"
32313 msgstr ""
32314
32315 # type: =item
32316 #. type: =item
32317 #: ../tools/virt-resize.pl:90
32318 msgid "1. Shut down the virtual machine"
32319 msgstr ""
32320
32321 # type: =item
32322 #. type: =item
32323 #: ../tools/virt-resize.pl:92
32324 msgid "2. Locate input disk image"
32325 msgstr ""
32326
32327 # type: textblock
32328 #. type: textblock
32329 #: ../tools/virt-resize.pl:94
32330 msgid ""
32331 "Locate the input disk image (ie. the file or device on the host containing "
32332 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
32333 "dumpxml> like this to find the disk image name:"
32334 msgstr ""
32335
32336 # type: verbatim
32337 #. type: verbatim
32338 #: ../tools/virt-resize.pl:98
32339 #, no-wrap
32340 msgid ""
32341 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
32342 " Found 1 nodes:\n"
32343 " -- NODE --\n"
32344 " <source dev=\"/dev/vg/lv_guest\" />\n"
32345 "\n"
32346 msgstr ""
32347
32348 # type: =item
32349 #. type: =item
32350 #: ../tools/virt-resize.pl:103
32351 msgid "3. Look at current sizing"
32352 msgstr ""
32353
32354 # type: textblock
32355 #. type: textblock
32356 #: ../tools/virt-resize.pl:105
32357 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
32358 msgstr ""
32359
32360 # type: verbatim
32361 #. type: verbatim
32362 #: ../tools/virt-resize.pl:108
32363 #, no-wrap
32364 msgid ""
32365 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
32366 " Name       Type       Size  Parent\n"
32367 " /dev/sda1  partition  101M  /dev/sda\n"
32368 " /dev/sda2  partition  7.9G  /dev/sda\n"
32369 " /dev/sda   device     8.0G  -\n"
32370 "\n"
32371 msgstr ""
32372
32373 # type: textblock
32374 #. type: textblock
32375 #: ../tools/virt-resize.pl:114
32376 msgid ""
32377 "(This example is a virtual machine with an 8 GB disk which we would like to "
32378 "expand up to 10 GB)."
32379 msgstr ""
32380
32381 # type: =item
32382 #. type: =item
32383 #: ../tools/virt-resize.pl:117
32384 msgid "4. Create output disk"
32385 msgstr ""
32386
32387 # type: textblock
32388 #. type: textblock
32389 #: ../tools/virt-resize.pl:119
32390 msgid ""
32391 "Virt-resize cannot do in-place disk modifications.  You have to have space "
32392 "to store the resized output disk."
32393 msgstr ""
32394
32395 # type: textblock
32396 #. type: textblock
32397 #: ../tools/virt-resize.pl:122
32398 msgid ""
32399 "To store the resized disk image in a file, create a file of a suitable size:"
32400 msgstr ""
32401
32402 # type: verbatim
32403 #. type: verbatim
32404 #: ../tools/virt-resize.pl:125
32405 #, no-wrap
32406 msgid ""
32407 " # rm -f outdisk\n"
32408 " # truncate -s 10G outdisk\n"
32409 "\n"
32410 msgstr ""
32411
32412 # type: textblock
32413 #. type: textblock
32414 #: ../tools/virt-resize.pl:128
32415 msgid "Or use L<lvcreate(1)> to create a logical volume:"
32416 msgstr ""
32417
32418 # type: verbatim
32419 #. type: verbatim
32420 #: ../tools/virt-resize.pl:130
32421 #, no-wrap
32422 msgid ""
32423 " # lvcreate -L 10G -n lv_name vg_name\n"
32424 "\n"
32425 msgstr ""
32426
32427 # type: textblock
32428 #. type: textblock
32429 #: ../tools/virt-resize.pl:132
32430 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
32431 msgstr ""
32432
32433 # type: verbatim
32434 #. type: verbatim
32435 #: ../tools/virt-resize.pl:134
32436 #, no-wrap
32437 msgid ""
32438 " # virsh pool-list\n"
32439 " # virsh vol-create-as poolname newvol 10G\n"
32440 "\n"
32441 msgstr ""
32442
32443 # type: =item
32444 #. type: =item
32445 #: ../tools/virt-resize.pl:137
32446 msgid "5. Resize"
32447 msgstr ""
32448
32449 # type: textblock
32450 #. type: textblock
32451 #: ../tools/virt-resize.pl:139
32452 msgid ""
32453 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
32454 "file) and the output disk.  The output disk is the one created in the "
32455 "previous step."
32456 msgstr ""
32457
32458 # type: verbatim
32459 #. type: verbatim
32460 #: ../tools/virt-resize.pl:143
32461 #, no-wrap
32462 msgid ""
32463 " # virt-resize indisk outdisk\n"
32464 "\n"
32465 msgstr ""
32466
32467 # type: textblock
32468 #. type: textblock
32469 #: ../tools/virt-resize.pl:145
32470 msgid ""
32471 "This command just copies disk image C<indisk> to disk image C<outdisk> "
32472 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
32473 "larger, then an extra, empty partition is created at the end of the disk "
32474 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
32475 "error."
32476 msgstr ""
32477
32478 # type: textblock
32479 #. type: textblock
32480 #: ../tools/virt-resize.pl:151
32481 msgid ""
32482 "More realistically you'd want to expand existing partitions in the disk "
32483 "image by passing extra options (for the full list see the L</OPTIONS> "
32484 "section below)."
32485 msgstr ""
32486
32487 # type: textblock
32488 #. type: textblock
32489 #: ../tools/virt-resize.pl:155
32490 msgid ""
32491 "L</--expand> is the most useful option.  It expands the named partition "
32492 "within the disk to fill any extra space:"
32493 msgstr ""
32494
32495 # type: verbatim
32496 #. type: verbatim
32497 #: ../tools/virt-resize.pl:158
32498 #, no-wrap
32499 msgid ""
32500 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
32501 "\n"
32502 msgstr ""
32503
32504 # type: textblock
32505 #. type: textblock
32506 #: ../tools/virt-resize.pl:160
32507 msgid ""
32508 "(In this case, an extra partition is I<not> created at the end of the disk, "
32509 "because there will be no unused space)."
32510 msgstr ""
32511
32512 # type: textblock
32513 #. type: textblock
32514 #: ../tools/virt-resize.pl:163
32515 msgid ""
32516 "L</--resize> is the other commonly used option.  The following would "
32517 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
32518 "rest of the available space:"
32519 msgstr ""
32520
32521 # type: verbatim
32522 #. type: verbatim
32523 #: ../tools/virt-resize.pl:167
32524 #, no-wrap
32525 msgid ""
32526 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
32527 "     indisk outdisk\n"
32528 "\n"
32529 msgstr ""
32530
32531 # type: textblock
32532 #. type: textblock
32533 #: ../tools/virt-resize.pl:170
32534 msgid ""
32535 "If the expanded partition in the image contains a filesystem or LVM PV, then "
32536 "if virt-resize knows how, it will resize the contents, the equivalent of "
32537 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
32538 ">.  However virt-resize does not know how to resize some filesystems, so you "
32539 "would have to online resize them after booting the guest."
32540 msgstr ""
32541
32542 # type: textblock
32543 #. type: textblock
32544 #: ../tools/virt-resize.pl:177
32545 msgid "Other options are covered below."
32546 msgstr ""
32547
32548 # type: =item
32549 #. type: =item
32550 #: ../tools/virt-resize.pl:179
32551 msgid "6. Test"
32552 msgstr ""
32553
32554 # type: textblock
32555 #. type: textblock
32556 #: ../tools/virt-resize.pl:181
32557 msgid "Thoroughly test the new disk image I<before> discarding the old one."
32558 msgstr ""
32559
32560 # type: textblock
32561 #. type: textblock
32562 #: ../tools/virt-resize.pl:183
32563 msgid "If you are using libvirt, edit the XML to point at the new disk:"
32564 msgstr ""
32565
32566 # type: verbatim
32567 #. type: verbatim
32568 #: ../tools/virt-resize.pl:185
32569 #, no-wrap
32570 msgid ""
32571 " # virsh edit guestname\n"
32572 "\n"
32573 msgstr ""
32574
32575 # type: textblock
32576 #. type: textblock
32577 #: ../tools/virt-resize.pl:187
32578 msgid ""
32579 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
32580 "html#elementsDisks>"
32581 msgstr ""
32582
32583 # type: textblock
32584 #. type: textblock
32585 #: ../tools/virt-resize.pl:190
32586 msgid "Then start up the domain with the new, resized disk:"
32587 msgstr ""
32588
32589 # type: verbatim
32590 #. type: verbatim
32591 #: ../tools/virt-resize.pl:192
32592 #, no-wrap
32593 msgid ""
32594 " # virsh start guestname\n"
32595 "\n"
32596 msgstr ""
32597
32598 # type: textblock
32599 #. type: textblock
32600 #: ../tools/virt-resize.pl:194
32601 msgid ""
32602 "and check that it still works.  See also the L</NOTES> section below for "
32603 "additional information."
32604 msgstr ""
32605
32606 # type: =item
32607 #. type: =item
32608 #: ../tools/virt-resize.pl:197
32609 msgid "7. Resize LVs etc inside the guest"
32610 msgstr ""
32611
32612 # type: textblock
32613 #. type: textblock
32614 #: ../tools/virt-resize.pl:199
32615 msgid "(This can also be done offline using L<guestfish(1)>)"
32616 msgstr ""
32617
32618 # type: textblock
32619 #. type: textblock
32620 #: ../tools/virt-resize.pl:201
32621 msgid ""
32622 "Once the guest has booted you should see the new space available, at least "
32623 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
32624 "may need to resize LVs inside PVs, and also resize filesystem types that "
32625 "virt-resize does not know how to expand."
32626 msgstr ""
32627
32628 # type: =head2
32629 #. type: =head2
32630 #: ../tools/virt-resize.pl:208
32631 msgid "SHRINKING A VIRTUAL MACHINE DISK"
32632 msgstr ""
32633
32634 # type: textblock
32635 #. type: textblock
32636 #: ../tools/virt-resize.pl:210
32637 msgid ""
32638 "Shrinking is somewhat more complex than expanding, and only an overview is "
32639 "given here."
32640 msgstr ""
32641
32642 # type: textblock
32643 #. type: textblock
32644 #: ../tools/virt-resize.pl:213
32645 msgid ""
32646 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
32647 "filesystems).  The user has to shrink content before passing the disk image "
32648 "to virt-resize, and virt-resize will check that the content has been shrunk "
32649 "properly."
32650 msgstr ""
32651
32652 # type: textblock
32653 #. type: textblock
32654 #: ../tools/virt-resize.pl:218
32655 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
32656 msgstr ""
32657
32658 # type: textblock
32659 #. type: textblock
32660 #: ../tools/virt-resize.pl:220
32661 msgid ""
32662 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
32663 "steps 3 and 4 above to allocate a new disk image."
32664 msgstr ""
32665
32666 # type: textblock
32667 #. type: textblock
32668 #: ../tools/virt-resize.pl:223
32669 msgid ""
32670 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
32671 msgstr ""
32672
32673 # type: =head2
32674 #. type: =head2
32675 #: ../tools/virt-resize.pl:226
32676 msgid "IGNORING OR DELETING PARTITIONS"
32677 msgstr ""
32678
32679 # type: textblock
32680 #. type: textblock
32681 #: ../tools/virt-resize.pl:228
32682 msgid ""
32683 "virt-resize also gives a convenient way to ignore or delete partitions when "
32684 "copying from the input disk to the output disk.  Ignoring a partition speeds "
32685 "up the copy where you don't care about the existing contents of a "
32686 "partition.  Deleting a partition removes it completely, but note that it "
32687 "also renumbers any partitions after the one which is deleted, which can "
32688 "leave some guests unbootable."
32689 msgstr ""
32690
32691 # type: =head2
32692 #. type: =head2
32693 #: ../tools/virt-resize.pl:235
32694 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
32695 msgstr ""
32696
32697 # type: textblock
32698 #. type: textblock
32699 #: ../tools/virt-resize.pl:237
32700 msgid ""
32701 "If the input disk is in qcow2 format, then you may prefer that the output is "
32702 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
32703 "the fly.  The output format is simply determined by the format of the empty "
32704 "output container that you provide.  Thus to create qcow2 output, use:"
32705 msgstr ""
32706
32707 # type: verbatim
32708 #. type: verbatim
32709 #: ../tools/virt-resize.pl:243
32710 #, no-wrap
32711 msgid ""
32712 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
32713 "\n"
32714 msgstr ""
32715
32716 # type: textblock
32717 #. type: textblock
32718 #: ../tools/virt-resize.pl:245
32719 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
32720 msgstr ""
32721
32722 # type: textblock
32723 #. type: textblock
32724 #: ../tools/virt-resize.pl:247
32725 msgid "Similarly, to get non-sparse raw output use:"
32726 msgstr ""
32727
32728 # type: verbatim
32729 #. type: verbatim
32730 #: ../tools/virt-resize.pl:249
32731 #, no-wrap
32732 msgid ""
32733 " fallocate -l size outdisk\n"
32734 "\n"
32735 msgstr ""
32736
32737 # type: textblock
32738 #. type: textblock
32739 #: ../tools/virt-resize.pl:251
32740 msgid ""
32741 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
32742 "dev/zero of=outdisk bs=1M count=..>)"
32743 msgstr ""
32744
32745 # type: textblock
32746 #. type: textblock
32747 #: ../tools/virt-resize.pl:264
32748 msgid "Display help."
32749 msgstr ""
32750
32751 # type: =item
32752 #. type: =item
32753 #: ../tools/virt-resize.pl:278
32754 msgid "B<--resize part=size>"
32755 msgstr ""
32756
32757 # type: textblock
32758 #. type: textblock
32759 #: ../tools/virt-resize.pl:280
32760 msgid ""
32761 "Resize the named partition (expanding or shrinking it) so that it has the "
32762 "given size."
32763 msgstr ""
32764
32765 # type: textblock
32766 #. type: textblock
32767 #: ../tools/virt-resize.pl:283
32768 msgid ""
32769 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
32770 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
32771 "Exabytes; or as a percentage of the current size; or as a relative number or "
32772 "percentage.  For example:"
32773 msgstr ""
32774
32775 # type: verbatim
32776 #. type: verbatim
32777 #: ../tools/virt-resize.pl:288
32778 #, no-wrap
32779 msgid ""
32780 " --resize /dev/sda2=10G\n"
32781 "\n"
32782 msgstr ""
32783
32784 # type: verbatim
32785 #. type: verbatim
32786 #: ../tools/virt-resize.pl:290
32787 #, no-wrap
32788 msgid ""
32789 " --resize /dev/sda4=90%\n"
32790 "\n"
32791 msgstr ""
32792
32793 # type: verbatim
32794 #. type: verbatim
32795 #: ../tools/virt-resize.pl:292
32796 #, no-wrap
32797 msgid ""
32798 " --resize /dev/sda2=+1G\n"
32799 "\n"
32800 msgstr ""
32801
32802 # type: verbatim
32803 #. type: verbatim
32804 #: ../tools/virt-resize.pl:294
32805 #, no-wrap
32806 msgid ""
32807 " --resize /dev/sda2=-200M\n"
32808 "\n"
32809 msgstr ""
32810
32811 # type: verbatim
32812 #. type: verbatim
32813 #: ../tools/virt-resize.pl:296
32814 #, no-wrap
32815 msgid ""
32816 " --resize /dev/sda1=+128K\n"
32817 "\n"
32818 msgstr ""
32819
32820 # type: verbatim
32821 #. type: verbatim
32822 #: ../tools/virt-resize.pl:298
32823 #, no-wrap
32824 msgid ""
32825 " --resize /dev/sda1=+10%\n"
32826 "\n"
32827 msgstr ""
32828
32829 # type: verbatim
32830 #. type: verbatim
32831 #: ../tools/virt-resize.pl:300
32832 #, no-wrap
32833 msgid ""
32834 " --resize /dev/sda1=-10%\n"
32835 "\n"
32836 msgstr ""
32837
32838 # type: textblock
32839 #. type: textblock
32840 #: ../tools/virt-resize.pl:302
32841 msgid ""
32842 "You can increase the size of any partition.  Virt-resize will expand the "
32843 "direct content of the partition if it knows how (see C<--expand> below)."
32844 msgstr ""
32845
32846 # type: textblock
32847 #. type: textblock
32848 #: ../tools/virt-resize.pl:306
32849 msgid ""
32850 "You can only I<decrease> the size of partitions that contain filesystems or "
32851 "PVs which have already been shrunk.  Virt-resize will check this has been "
32852 "done before proceeding, or else will print an error (see also C<--resize-"
32853 "force>)."
32854 msgstr ""
32855
32856 # type: textblock
32857 #. type: textblock
32858 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
32859 #: ../tools/virt-resize.pl:420
32860 msgid "You can give this option multiple times."
32861 msgstr ""
32862
32863 # type: =item
32864 #. type: =item
32865 #: ../tools/virt-resize.pl:317
32866 msgid "B<--resize-force part=size>"
32867 msgstr ""
32868
32869 # type: textblock
32870 #. type: textblock
32871 #: ../tools/virt-resize.pl:319
32872 msgid ""
32873 "This is the same as C<--resize> except that it will let you decrease the "
32874 "size of any partition.  Generally this means you will lose any data which "
32875 "was at the end of the partition you shrink, but you may not care about that "
32876 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
32877 "as a swap partition)."
32878 msgstr ""
32879
32880 # type: textblock
32881 #. type: textblock
32882 #: ../tools/virt-resize.pl:325
32883 msgid "See also the C<--ignore> option."
32884 msgstr ""
32885
32886 # type: =item
32887 #. type: =item
32888 #: ../tools/virt-resize.pl:331
32889 msgid "B<--expand part>"
32890 msgstr ""
32891
32892 # type: textblock
32893 #. type: textblock
32894 #: ../tools/virt-resize.pl:333
32895 msgid ""
32896 "Expand the named partition so it uses up all extra space (space left over "
32897 "after any other resize changes that you request have been done)."
32898 msgstr ""
32899
32900 # type: textblock
32901 #. type: textblock
32902 #: ../tools/virt-resize.pl:336
32903 msgid ""
32904 "If virt-resize knows how, it will expand the direct content of the "
32905 "partition.  For example, if the partition is an LVM PV, it will expand the "
32906 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
32907 "content it doesn't know about alone."
32908 msgstr ""
32909
32910 # type: textblock
32911 #. type: textblock
32912 #: ../tools/virt-resize.pl:341
32913 msgid "Currently virt-resize can resize:"
32914 msgstr ""
32915
32916 # type: textblock
32917 #. type: textblock
32918 #: ../tools/virt-resize.pl:347
32919 msgid ""
32920 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
32921 "partition."
32922 msgstr ""
32923
32924 # type: textblock
32925 #. type: textblock
32926 #: ../tools/virt-resize.pl:352
32927 msgid ""
32928 "NTFS filesystems contained directly in a partition, if libguestfs was "
32929 "compiled with support for NTFS."
32930 msgstr ""
32931
32932 # type: textblock
32933 #. type: textblock
32934 #: ../tools/virt-resize.pl:355
32935 msgid ""
32936 "The filesystem must have been shut down consistently last time it was used.  "
32937 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
32938 "consistency check, so at the first boot after resizing Windows will check "
32939 "the disk."
32940 msgstr ""
32941
32942 # type: textblock
32943 #. type: textblock
32944 #: ../tools/virt-resize.pl:362
32945 msgid ""
32946 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
32947 "inside the PV, but see the C<--LV-expand> option.  The user could also "
32948 "resize LVs as desired after boot."
32949 msgstr ""
32950
32951 # type: textblock
32952 #. type: textblock
32953 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
32954 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
32955 msgstr ""
32956
32957 # type: =item
32958 #. type: =item
32959 #: ../tools/virt-resize.pl:374
32960 msgid "B<--shrink part>"
32961 msgstr ""
32962
32963 # type: textblock
32964 #. type: textblock
32965 #: ../tools/virt-resize.pl:376
32966 msgid ""
32967 "Shrink the named partition until the overall disk image fits in the "
32968 "destination.  The named partition B<must> contain a filesystem or PV which "
32969 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
32970 "online tools).  Virt-resize will check this and give an error if it has not "
32971 "been done."
32972 msgstr ""
32973
32974 # type: textblock
32975 #. type: textblock
32976 #: ../tools/virt-resize.pl:382
32977 msgid ""
32978 "The amount by which the overall disk must be shrunk (after carrying out all "
32979 "other operations requested by the user) is called the \"deficit\".  For "
32980 "example, a straight copy (assume no other operations)  from a 5GB disk image "
32981 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
32982 "would give an error unless the user specified a partition to shrink and that "
32983 "partition had more than a gigabyte of free space."
32984 msgstr ""
32985
32986 # type: =item
32987 #. type: =item
32988 #: ../tools/virt-resize.pl:396
32989 msgid "B<--ignore part>"
32990 msgstr ""
32991
32992 # type: textblock
32993 #. type: textblock
32994 #: ../tools/virt-resize.pl:398
32995 msgid ""
32996 "Ignore the named partition.  Effectively this means the partition is "
32997 "allocated on the destination disk, but the content is not copied across from "
32998 "the source disk.  The content of the partition will be blank (all zero "
32999 "bytes)."
33000 msgstr ""
33001
33002 # type: =item
33003 #. type: =item
33004 #: ../tools/virt-resize.pl:409
33005 msgid "B<--delete part>"
33006 msgstr ""
33007
33008 # type: textblock
33009 #. type: textblock
33010 #: ../tools/virt-resize.pl:411
33011 msgid ""
33012 "Delete the named partition.  It would be more accurate to describe this as "
33013 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
33014 "the original disk image is left intact."
33015 msgstr ""
33016
33017 # type: textblock
33018 #. type: textblock
33019 #: ../tools/virt-resize.pl:415
33020 msgid ""
33021 "Note that when you delete a partition, then anything contained in the "
33022 "partition is also deleted.  Furthermore, this causes any partitions that "
33023 "come after to be I<renumbered>, which can easily make your guest unbootable."
33024 msgstr ""
33025
33026 # type: =item
33027 #. type: =item
33028 #: ../tools/virt-resize.pl:426
33029 msgid "B<--LV-expand logvol>"
33030 msgstr ""
33031
33032 # type: textblock
33033 #. type: textblock
33034 #: ../tools/virt-resize.pl:428
33035 msgid ""
33036 "This takes the logical volume and, as a final step, expands it to fill all "
33037 "the space available in its volume group.  A typical usage, assuming a Linux "
33038 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
33039 "lv_root> would be:"
33040 msgstr ""
33041
33042 # type: verbatim
33043 #. type: verbatim
33044 #: ../tools/virt-resize.pl:433
33045 #, no-wrap
33046 msgid ""
33047 " virt-resize indisk outdisk \\\n"
33048 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
33049 "\n"
33050 msgstr ""
33051
33052 # type: textblock
33053 #. type: textblock
33054 #: ../tools/virt-resize.pl:436
33055 msgid ""
33056 "This would first expand the partition (and PV), and then expand the root "
33057 "device to fill the extra space in the PV."
33058 msgstr ""
33059
33060 # type: textblock
33061 #. type: textblock
33062 #: ../tools/virt-resize.pl:439
33063 msgid ""
33064 "The contents of the LV are also resized if virt-resize knows how to do "
33065 "that.  You can stop virt-resize from trying to expand the content by using "
33066 "the option C<--no-expand-content>."
33067 msgstr ""
33068
33069 # type: textblock
33070 #. type: textblock
33071 #: ../tools/virt-resize.pl:443
33072 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
33073 msgstr ""
33074
33075 # type: textblock
33076 #. type: textblock
33077 #: ../tools/virt-resize.pl:446
33078 msgid ""
33079 "You can give this option multiple times, I<but> it doesn't make sense to do "
33080 "this unless the logical volumes you specify are all in different volume "
33081 "groups."
33082 msgstr ""
33083
33084 # type: =item
33085 #. type: =item
33086 #: ../tools/virt-resize.pl:454
33087 msgid "B<--no-copy-boot-loader>"
33088 msgstr ""
33089
33090 # type: textblock
33091 #. type: textblock
33092 #: ../tools/virt-resize.pl:456
33093 msgid ""
33094 "By default, virt-resize copies over some sectors at the start of the disk "
33095 "(up to the beginning of the first partition).  Commonly these sectors "
33096 "contain the Master Boot Record (MBR) and the boot loader, and are required "
33097 "in order for the guest to boot correctly."
33098 msgstr ""
33099
33100 # type: textblock
33101 #. type: textblock
33102 #: ../tools/virt-resize.pl:461
33103 msgid ""
33104 "If you specify this flag, then this initial copy is not done.  You may need "
33105 "to reinstall the boot loader in this case."
33106 msgstr ""
33107
33108 # type: =item
33109 #. type: =item
33110 #: ../tools/virt-resize.pl:469
33111 msgid "B<--no-extra-partition>"
33112 msgstr ""
33113
33114 # type: textblock
33115 #. type: textblock
33116 #: ../tools/virt-resize.pl:471
33117 msgid ""
33118 "By default, virt-resize creates an extra partition if there is any extra, "
33119 "unused space after all resizing has happened.  Use this option to prevent "
33120 "the extra partition from being created.  If you do this then the extra space "
33121 "will be inaccessible until you run fdisk, parted, or some other partitioning "
33122 "tool in the guest."
33123 msgstr ""
33124
33125 # type: textblock
33126 #. type: textblock
33127 #: ../tools/virt-resize.pl:477
33128 msgid ""
33129 "Note that if the surplus space is smaller than 10 MB, no extra partition "
33130 "will be created."
33131 msgstr ""
33132
33133 # type: =item
33134 #. type: =item
33135 #: ../tools/virt-resize.pl:484
33136 msgid "B<--no-expand-content>"
33137 msgstr ""
33138
33139 # type: textblock
33140 #. type: textblock
33141 #: ../tools/virt-resize.pl:486
33142 msgid ""
33143 "By default, virt-resize will try to expand the direct contents of "
33144 "partitions, if it knows how (see C<--expand> option above)."
33145 msgstr ""
33146
33147 # type: textblock
33148 #. type: textblock
33149 #: ../tools/virt-resize.pl:489
33150 msgid ""
33151 "If you give the C<--no-expand-content> option then virt-resize will not "
33152 "attempt this."
33153 msgstr ""
33154
33155 # type: =item
33156 #. type: =item
33157 #: ../tools/virt-resize.pl:496
33158 msgid "B<-d> | B<--debug>"
33159 msgstr ""
33160
33161 # type: =item
33162 #. type: =item
33163 #: ../tools/virt-resize.pl:504
33164 msgid "B<-n> | B<--dryrun>"
33165 msgstr ""
33166
33167 # type: textblock
33168 #. type: textblock
33169 #: ../tools/virt-resize.pl:506
33170 msgid "Print a summary of what would be done, but don't do anything."
33171 msgstr ""
33172
33173 # type: =item
33174 #. type: =item
33175 #: ../tools/virt-resize.pl:512
33176 msgid "B<-q> | B<--quiet>"
33177 msgstr ""
33178
33179 # type: textblock
33180 #. type: textblock
33181 #: ../tools/virt-resize.pl:514
33182 msgid "Don't print the summary."
33183 msgstr ""
33184
33185 # type: textblock
33186 #. type: textblock
33187 #: ../tools/virt-resize.pl:522
33188 msgid ""
33189 "Specify the format of the input disk image.  If this flag is not given then "
33190 "it is auto-detected from the image itself."
33191 msgstr ""
33192
33193 # type: textblock
33194 #. type: textblock
33195 #: ../tools/virt-resize.pl:528
33196 msgid ""
33197 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
33198 "AND NON-SPARSE RAW FORMATS>."
33199 msgstr ""
33200
33201 # type: =item
33202 #. type: =item
33203 #: ../tools/virt-resize.pl:535
33204 msgid "B<--output-format> raw"
33205 msgstr ""
33206
33207 # type: textblock
33208 #. type: textblock
33209 #: ../tools/virt-resize.pl:537
33210 msgid ""
33211 "Specify the format of the output disk image.  If this flag is not given then "
33212 "it is auto-detected from the image itself."
33213 msgstr ""
33214
33215 # type: textblock
33216 #. type: textblock
33217 #: ../tools/virt-resize.pl:543
33218 msgid ""
33219 "Note that you still need to create the output disk with the right format.  "
33220 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
33221 msgstr ""
33222
33223 # type: =head1
33224 #. type: =head1
33225 #: ../tools/virt-resize.pl:1419
33226 msgid "NOTES"
33227 msgstr ""
33228
33229 # type: =head2
33230 #. type: =head2
33231 #: ../tools/virt-resize.pl:1421
33232 msgid "\"Partition 1 does not end on cylinder boundary.\""
33233 msgstr ""
33234
33235 # type: textblock
33236 #. type: textblock
33237 #: ../tools/virt-resize.pl:1423
33238 msgid ""
33239 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
33240 "means the partitions will not be aligned to the ancient CHS geometry.  "
33241 "However CHS geometry is meaningless for disks manufactured since the early "
33242 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
33243 "cylinders is not required by any modern operating system."
33244 msgstr ""
33245
33246 # type: =head2
33247 #. type: =head2
33248 #: ../tools/virt-resize.pl:1430
33249 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
33250 msgstr ""
33251
33252 # type: textblock
33253 #. type: textblock
33254 #: ../tools/virt-resize.pl:1432
33255 msgid ""
33256 "In Windows Vista and later versions, Microsoft switched to using a separate "
33257 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
33258 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
33259 "the boot partition.  Doing so seems to break the guest completely.  However "
33260 "expanding the second partition (ie. C: drive) should work."
33261 msgstr ""
33262
33263 # type: textblock
33264 #. type: textblock
33265 #: ../tools/virt-resize.pl:1439
33266 msgid ""
33267 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
33268 "NTFS partitions have been expanded.  This is just a safety check and (unless "
33269 "it find errors) is nothing to worry about."
33270 msgstr ""
33271
33272 # type: =head2
33273 #. type: =head2
33274 #: ../tools/virt-resize.pl:1443
33275 msgid "GUEST BOOT STUCK AT \"GRUB\""
33276 msgstr ""
33277
33278 # type: textblock
33279 #. type: textblock
33280 #: ../tools/virt-resize.pl:1445
33281 msgid ""
33282 "If a Linux guest does not boot after resizing, and the boot is stuck after "
33283 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
33284 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
33285 "although we think is to do with partition alignment."
33286 msgstr ""
33287
33288 # type: verbatim
33289 #. type: verbatim
33290 #: ../tools/virt-resize.pl:1450
33291 #, no-wrap
33292 msgid ""
33293 " guestfish -i -a newdisk\n"
33294 " ><fs> cat /boot/grub/device.map\n"
33295 " # check the contents of this file are sensible or\n"
33296 " # edit the file if necessary\n"
33297 " ><fs> grub-install / /dev/vda\n"
33298 " ><fs> exit\n"
33299 "\n"
33300 msgstr ""
33301
33302 # type: textblock
33303 #. type: textblock
33304 #: ../tools/virt-resize.pl:1457
33305 msgid ""
33306 "For more flexible guest reconfiguration, including if you need to specify "
33307 "other parameters to grub-install, use L<virt-rescue(1)>."
33308 msgstr ""
33309
33310 # type: =head1
33311 #. type: =head1
33312 #: ../tools/virt-resize.pl:1460
33313 msgid "ALTERNATIVE TOOLS"
33314 msgstr ""
33315
33316 # type: textblock
33317 #. type: textblock
33318 #: ../tools/virt-resize.pl:1462
33319 msgid ""
33320 "There are several proprietary tools for resizing partitions.  We won't "
33321 "mention any here."
33322 msgstr ""
33323
33324 # type: textblock
33325 #. type: textblock
33326 #: ../tools/virt-resize.pl:1465
33327 msgid ""
33328 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
33329 "operations on disk images.  They can resize and move partitions, but I don't "
33330 "think they can do anything with the contents, and they certainly don't "
33331 "understand LVM."
33332 msgstr ""
33333
33334 # type: textblock
33335 #. type: textblock
33336 #: ../tools/virt-resize.pl:1470
33337 msgid ""
33338 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
33339 "but at a much lower level.  You will probably end up hand-calculating sector "
33340 "offsets, which is something that virt-resize was designed to avoid.  If you "
33341 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
33342 "C<--debug> flag."
33343 msgstr ""
33344
33345 # type: textblock
33346 #. type: textblock
33347 #: ../tools/virt-resize.pl:1485
33348 msgid ""
33349 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
33350 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
33351 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
33352 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
33353 "libguestfs.org/>."
33354 msgstr ""
33355
33356 # type: textblock
33357 #. type: textblock
33358 #: ../tools/virt-list-filesystems.pl:32
33359 msgid ""
33360 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33361 msgstr ""
33362
33363 # type: verbatim
33364 #. type: verbatim
33365 #: ../tools/virt-list-filesystems.pl:36
33366 #, no-wrap
33367 msgid ""
33368 " virt-list-filesystems [--options] domname\n"
33369 "\n"
33370 msgstr ""
33371
33372 # type: verbatim
33373 #. type: verbatim
33374 #: ../tools/virt-list-filesystems.pl:38
33375 #, no-wrap
33376 msgid ""
33377 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33378 "\n"
33379 msgstr ""
33380
33381 # type: textblock
33382 #. type: textblock
33383 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33384 msgid ""
33385 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33386 "replacement."
33387 msgstr ""
33388
33389 # type: textblock
33390 #. type: textblock
33391 #: ../tools/virt-list-filesystems.pl:45
33392 msgid ""
33393 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33394 "are contained in a virtual machine or disk image."
33395 msgstr ""
33396
33397 # type: textblock
33398 #. type: textblock
33399 #: ../tools/virt-list-filesystems.pl:49
33400 msgid ""
33401 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33402 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33403 "> tool."
33404 msgstr ""
33405
33406 # type: =item
33407 #. type: =item
33408 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33409 msgid "B<-l> | B<--long>"
33410 msgstr ""
33411
33412 # type: textblock
33413 #. type: textblock
33414 #: ../tools/virt-list-filesystems.pl:108
33415 msgid ""
33416 "With this option, C<virt-list-filesystems> displays the type of each "
33417 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33418 msgstr ""
33419
33420 # type: =item
33421 #. type: =item
33422 #: ../tools/virt-list-filesystems.pl:115
33423 msgid "B<-a> | B<--all>"
33424 msgstr ""
33425
33426 # type: textblock
33427 #. type: textblock
33428 #: ../tools/virt-list-filesystems.pl:117
33429 msgid ""
33430 "Normally we only show mountable filesystems.  If this option is given then "
33431 "swap devices are shown too."
33432 msgstr ""
33433
33434 # type: textblock
33435 #. type: textblock
33436 #: ../tools/virt-list-filesystems.pl:191
33437 msgid ""
33438 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33439 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33440 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33441 msgstr ""
33442
33443 # type: textblock
33444 #. type: textblock
33445 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33446 msgid "Copyright (C) 2009 Red Hat Inc."
33447 msgstr ""
33448
33449 # type: textblock
33450 #. type: textblock
33451 #: ../tools/virt-tar.pl:33
33452 msgid "virt-tar - Extract or upload files to a virtual machine"
33453 msgstr ""
33454
33455 # type: verbatim
33456 #. type: verbatim
33457 #: ../tools/virt-tar.pl:37
33458 #, no-wrap
33459 msgid ""
33460 " virt-tar [--options] -x domname directory tarball\n"
33461 "\n"
33462 msgstr ""
33463
33464 # type: verbatim
33465 #. type: verbatim
33466 #: ../tools/virt-tar.pl:39
33467 #, no-wrap
33468 msgid ""
33469 " virt-tar [--options] -u domname tarball directory\n"
33470 "\n"
33471 msgstr ""
33472
33473 # type: verbatim
33474 #. type: verbatim
33475 #: ../tools/virt-tar.pl:41
33476 #, no-wrap
33477 msgid ""
33478 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33479 "\n"
33480 msgstr ""
33481
33482 # type: verbatim
33483 #. type: verbatim
33484 #: ../tools/virt-tar.pl:43
33485 #, no-wrap
33486 msgid ""
33487 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33488 "\n"
33489 msgstr ""
33490
33491 #. type: textblock
33492 #: ../tools/virt-tar.pl:47
33493 msgid ""
33494 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33495 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33496 msgstr ""
33497
33498 # type: textblock
33499 #. type: textblock
33500 #: ../tools/virt-tar.pl:52
33501 msgid "Download C</home> from the VM into a local tarball:"
33502 msgstr ""
33503
33504 # type: verbatim
33505 #. type: verbatim
33506 #: ../tools/virt-tar.pl:54
33507 #, no-wrap
33508 msgid ""
33509 " virt-tar -x domname /home home.tar\n"
33510 "\n"
33511 msgstr ""
33512
33513 # type: verbatim
33514 #. type: verbatim
33515 #: ../tools/virt-tar.pl:56
33516 #, no-wrap
33517 msgid ""
33518 " virt-tar -zx domname /home home.tar.gz\n"
33519 "\n"
33520 msgstr ""
33521
33522 # type: textblock
33523 #. type: textblock
33524 #: ../tools/virt-tar.pl:58
33525 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33526 msgstr ""
33527
33528 # type: verbatim
33529 #. type: verbatim
33530 #: ../tools/virt-tar.pl:60
33531 #, no-wrap
33532 msgid ""
33533 " virt-tar -u domname uploadstuff.tar /tmp\n"
33534 "\n"
33535 msgstr ""
33536
33537 # type: verbatim
33538 #. type: verbatim
33539 #: ../tools/virt-tar.pl:62
33540 #, no-wrap
33541 msgid ""
33542 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33543 "\n"
33544 msgstr ""
33545
33546 # type: textblock
33547 #. type: textblock
33548 #: ../tools/virt-tar.pl:66
33549 msgid ""
33550 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33551 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33552 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33553 msgstr ""
33554
33555 # type: textblock
33556 #. type: textblock
33557 #: ../tools/virt-tar.pl:71
33558 msgid ""
33559 "You can use C<-x> (extract) on live virtual machines, but you might get "
33560 "inconsistent results or errors if there is filesystem activity inside the "
33561 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33562 "work, but the only way to guarantee consistent results is if the virtual "
33563 "machine is shut down."
33564 msgstr ""
33565
33566 # type: textblock
33567 #. type: textblock
33568 #: ../tools/virt-tar.pl:79
33569 msgid ""
33570 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33571 "parts of a guest filesystem.  There are many possibilities: making backups, "
33572 "uploading data files, snooping on guest activity, fixing or customizing "
33573 "guests, etc."
33574 msgstr ""
33575
33576 # type: textblock
33577 #. type: textblock
33578 #: ../tools/virt-tar.pl:84
33579 msgid ""
33580 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33581 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33582 "should look at the L<guestfish(1)> tool."
33583 msgstr ""
33584
33585 # type: textblock
33586 #. type: textblock
33587 #: ../tools/virt-tar.pl:88
33588 msgid ""
33589 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33590 "its contents (recursively) from the virtual machine into a local tarball.  "
33591 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33592 "virtual machine.  You cannot use these two options together."
33593 msgstr ""
33594
33595 # type: textblock
33596 #. type: textblock
33597 #: ../tools/virt-tar.pl:94
33598 msgid ""
33599 "In addition, you may need to use the C<-z> (gZip) option to enable "
33600 "compression.  When uploading, you have to specify C<-z> if the upload file "
33601 "is compressed because virt-tar won't detect this on its own."
33602 msgstr ""
33603
33604 # type: textblock
33605 #. type: textblock
33606 #: ../tools/virt-tar.pl:98
33607 msgid ""
33608 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33609 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33610 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33611 "the L<libguestfs(3)> API)."
33612 msgstr ""
33613
33614 # type: =item
33615 #. type: =item
33616 #: ../tools/virt-tar.pl:156
33617 msgid "B<-x> | B<--extract> | B<--download>"
33618 msgstr ""
33619
33620 # type: =item
33621 #. type: =item
33622 #: ../tools/virt-tar.pl:158
33623 msgid "B<-u> | B<--upload>"
33624 msgstr ""
33625
33626 # type: textblock
33627 #. type: textblock
33628 #: ../tools/virt-tar.pl:160
33629 msgid ""
33630 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33631 "local tarball."
33632 msgstr ""
33633
33634 # type: textblock
33635 #. type: textblock
33636 #: ../tools/virt-tar.pl:163
33637 msgid ""
33638 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
33639 "Please read the L</WARNING> section above before using this option."
33640 msgstr ""
33641
33642 # type: textblock
33643 #. type: textblock
33644 #: ../tools/virt-tar.pl:167
33645 msgid "You must specify exactly one of these options."
33646 msgstr ""
33647
33648 # type: =item
33649 #. type: =item
33650 #: ../tools/virt-tar.pl:173
33651 msgid "B<-z> | B<--gzip>"
33652 msgstr ""
33653
33654 # type: textblock
33655 #. type: textblock
33656 #: ../tools/virt-tar.pl:175
33657 msgid "Specify that the input or output tarball is gzip-compressed."
33658 msgstr ""
33659
33660 #. type: textblock
33661 #: ../tools/virt-tar.pl:288
33662 msgid ""
33663 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
33664 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
33665 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33666 "org/>."
33667 msgstr ""
33668
33669 # type: textblock
33670 #. type: textblock
33671 #: ../tools/virt-make-fs.pl:37
33672 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33673 msgstr ""
33674
33675 # type: verbatim
33676 #. type: verbatim
33677 #: ../tools/virt-make-fs.pl:41
33678 #, no-wrap
33679 msgid ""
33680 " virt-make-fs [--options] input.tar output.img\n"
33681 "\n"
33682 msgstr ""
33683
33684 # type: verbatim
33685 #. type: verbatim
33686 #: ../tools/virt-make-fs.pl:43
33687 #, no-wrap
33688 msgid ""
33689 " virt-make-fs [--options] input.tar.gz output.img\n"
33690 "\n"
33691 msgstr ""
33692
33693 # type: verbatim
33694 #. type: verbatim
33695 #: ../tools/virt-make-fs.pl:45
33696 #, no-wrap
33697 msgid ""
33698 " virt-make-fs [--options] directory output.img\n"
33699 "\n"
33700 msgstr ""
33701
33702 # type: textblock
33703 #. type: textblock
33704 #: ../tools/virt-make-fs.pl:49
33705 msgid ""
33706 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
33707 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
33708 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
33709 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
33710 "you want to attach these filesystems to existing virtual machines (eg. to "
33711 "import large amounts of read-only data to a VM)."
33712 msgstr ""
33713
33714 # type: textblock
33715 #. type: textblock
33716 #: ../tools/virt-make-fs.pl:57
33717 msgid "Basic usage is:"
33718 msgstr ""
33719
33720 # type: verbatim
33721 #. type: verbatim
33722 #: ../tools/virt-make-fs.pl:59
33723 #, no-wrap
33724 msgid ""
33725 " virt-make-fs input output\n"
33726 "\n"
33727 msgstr ""
33728
33729 # type: textblock
33730 #. type: textblock
33731 #: ../tools/virt-make-fs.pl:61
33732 msgid ""
33733 "where C<input> is either a directory containing files that you want to add, "
33734 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
33735 "C<output> is a disk image.  The input type is detected automatically.  The "
33736 "output disk image defaults to a raw ext2 image unless you specify extra "
33737 "flags (see L</OPTIONS> below)."
33738 msgstr ""
33739
33740 # type: =head2
33741 #. type: =head2
33742 #: ../tools/virt-make-fs.pl:67
33743 msgid "EXTRA SPACE"
33744 msgstr ""
33745
33746 # type: textblock
33747 #. type: textblock
33748 #: ../tools/virt-make-fs.pl:69
33749 msgid ""
33750 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
33751 "the files that it contains, but might have extra space.  Depending on how "
33752 "you are going to use the output, you might think this extra space is wasted "
33753 "and want to minimize it, or you might want to leave space so that more files "
33754 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
33755 "but you can use the C<--size> flag to leave space in the filesystem if you "
33756 "want it."
33757 msgstr ""
33758
33759 # type: textblock
33760 #. type: textblock
33761 #: ../tools/virt-make-fs.pl:77
33762 msgid ""
33763 "An alternative way to leave extra space but not make the output image any "
33764 "bigger is to use an alternative disk image format (instead of the default "
33765 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
33766 "image format (check your hypervisor supports this before using it).  This "
33767 "allows you to choose a large C<--size> but the extra space won't actually be "
33768 "allocated in the image until you try to store something in it."
33769 msgstr ""
33770
33771 # type: textblock
33772 #. type: textblock
33773 #: ../tools/virt-make-fs.pl:85
33774 msgid ""
33775 "Don't forget that you can also use local commands including L<resize2fs(8)> "
33776 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
33777 "resize to build another image from scratch."
33778 msgstr ""
33779
33780 # type: =head3
33781 #. type: =head3
33782 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
33783 #: ../tools/virt-make-fs.pl:142
33784 msgid "EXAMPLE"
33785 msgstr ""
33786
33787 # type: verbatim
33788 #. type: verbatim
33789 #: ../tools/virt-make-fs.pl:91
33790 #, no-wrap
33791 msgid ""
33792 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
33793 "\n"
33794 msgstr ""
33795
33796 # type: =head2
33797 #. type: =head2
33798 #: ../tools/virt-make-fs.pl:93
33799 msgid "FILESYSTEM TYPE"
33800 msgstr ""
33801
33802 # type: textblock
33803 #. type: textblock
33804 #: ../tools/virt-make-fs.pl:95
33805 msgid ""
33806 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
33807 "libguestfs supports can be used (but I<not> read-only formats like "
33808 "ISO9660).  Here are some of the more common choices:"
33809 msgstr ""
33810
33811 # type: =item
33812 #. type: =item
33813 #: ../tools/virt-make-fs.pl:101
33814 msgid "I<ext3>"
33815 msgstr ""
33816
33817 # type: textblock
33818 #. type: textblock
33819 #: ../tools/virt-make-fs.pl:103
33820 msgid ""
33821 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
33822 "you are not going to use the filesystem in a way that requires the journal, "
33823 "then this is just wasted overhead."
33824 msgstr ""
33825
33826 # type: =item
33827 #. type: =item
33828 #: ../tools/virt-make-fs.pl:107
33829 msgid "I<ntfs> or I<vfat>"
33830 msgstr ""
33831
33832 # type: textblock
33833 #. type: textblock
33834 #: ../tools/virt-make-fs.pl:109
33835 msgid "Useful if exporting data to a Windows guest."
33836 msgstr ""
33837
33838 # type: textblock
33839 #. type: textblock
33840 #: ../tools/virt-make-fs.pl:111
33841 msgid ""
33842 "I<Note for vfat>: The tar archive or local directory must only contain files "
33843 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
33844 "program running within libguestfs is unable to change the ownership of non-"
33845 "root files, since vfat itself does not support this."
33846 msgstr ""
33847
33848 # type: =item
33849 #. type: =item
33850 #: ../tools/virt-make-fs.pl:116
33851 msgid "I<minix>"
33852 msgstr ""
33853
33854 # type: textblock
33855 #. type: textblock
33856 #: ../tools/virt-make-fs.pl:118
33857 msgid ""
33858 "Lower overhead than C<ext2>, but certain limitations on filename length and "
33859 "total filesystem size."
33860 msgstr ""
33861
33862 # type: verbatim
33863 #. type: verbatim
33864 #: ../tools/virt-make-fs.pl:125
33865 #, no-wrap
33866 msgid ""
33867 " virt-make-fs --type=minix input minixfs.img\n"
33868 "\n"
33869 msgstr ""
33870
33871 # type: =head2
33872 #. type: =head2
33873 #: ../tools/virt-make-fs.pl:127
33874 msgid "TO PARTITION OR NOT TO PARTITION"
33875 msgstr ""
33876
33877 # type: textblock
33878 #. type: textblock
33879 #: ../tools/virt-make-fs.pl:129
33880 msgid "Optionally virt-make-fs can add a partition table to the output disk."
33881 msgstr ""
33882
33883 # type: textblock
33884 #. type: textblock
33885 #: ../tools/virt-make-fs.pl:131
33886 msgid ""
33887 "Adding a partition can make the disk image more compatible with certain "
33888 "virtualized operating systems which don't expect to see a filesystem "
33889 "directly located on a block device (Linux doesn't care and will happily "
33890 "handle both types)."
33891 msgstr ""
33892
33893 # type: textblock
33894 #. type: textblock
33895 #: ../tools/virt-make-fs.pl:136
33896 msgid ""
33897 "On the other hand, if you have a partition table then the output image is no "
33898 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
33899 "directly on a partitioned disk image.  (However libguestfs tools such as "
33900 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
33901 msgstr ""
33902
33903 # type: textblock
33904 #. type: textblock
33905 #: ../tools/virt-make-fs.pl:144
33906 msgid "Add an MBR partition:"
33907 msgstr ""
33908
33909 # type: verbatim
33910 #. type: verbatim
33911 #: ../tools/virt-make-fs.pl:146
33912 #, no-wrap
33913 msgid ""
33914 " virt-make-fs --partition -- input disk.img\n"
33915 "\n"
33916 msgstr ""
33917
33918 # type: textblock
33919 #. type: textblock
33920 #: ../tools/virt-make-fs.pl:148
33921 msgid ""
33922 "If the output disk image could be terabyte-sized or larger, it's better to "
33923 "use an EFI/GPT-compatible partition table:"
33924 msgstr ""
33925
33926 # type: verbatim
33927 #. type: verbatim
33928 #: ../tools/virt-make-fs.pl:151
33929 #, no-wrap
33930 msgid ""
33931 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
33932 "\n"
33933 msgstr ""
33934
33935 # type: textblock
33936 #. type: textblock
33937 #: ../tools/virt-make-fs.pl:179
33938 msgid "Enable debugging information."
33939 msgstr ""
33940
33941 # type: =item
33942 #. type: =item
33943 #: ../tools/virt-make-fs.pl:185
33944 msgid "B<--size=E<lt>NE<gt>>"
33945 msgstr ""
33946
33947 # type: =item
33948 #. type: =item
33949 #: ../tools/virt-make-fs.pl:187
33950 msgid "B<--size=+E<lt>NE<gt>>"
33951 msgstr ""
33952
33953 # type: =item
33954 #. type: =item
33955 #: ../tools/virt-make-fs.pl:189
33956 msgid "B<-s E<lt>NE<gt>>"
33957 msgstr ""
33958
33959 # type: =item
33960 #. type: =item
33961 #: ../tools/virt-make-fs.pl:191
33962 msgid "B<-s +E<lt>NE<gt>>"
33963 msgstr ""
33964
33965 # type: textblock
33966 #. type: textblock
33967 #: ../tools/virt-make-fs.pl:193
33968 msgid ""
33969 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
33970 msgstr ""
33971
33972 # type: textblock
33973 #. type: textblock
33974 #: ../tools/virt-make-fs.pl:196
33975 msgid ""
33976 "If this option is I<not> given, then the output image will be just large "
33977 "enough to contain all the files, with not much wasted space."
33978 msgstr ""
33979
33980 # type: textblock
33981 #. type: textblock
33982 #: ../tools/virt-make-fs.pl:199
33983 msgid ""
33984 "To choose a fixed size output disk, specify an absolute number followed by b/"
33985 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33986 "Petabytes or Exabytes.  This must be large enough to contain all the input "
33987 "files, else you will get an error."
33988 msgstr ""
33989
33990 # type: textblock
33991 #. type: textblock
33992 #: ../tools/virt-make-fs.pl:204
33993 msgid ""
33994 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
33995 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33996 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
33997 "the input files, and (approximately) an extra 200 MB free space."
33998 msgstr ""
33999
34000 # type: textblock
34001 #. type: textblock
34002 #: ../tools/virt-make-fs.pl:210
34003 msgid ""
34004 "Note that virt-make-fs estimates free space, and therefore will not produce "
34005 "filesystems containing precisely the free space requested.  (It is much more "
34006 "expensive and time-consuming to produce a filesystem which has precisely the "
34007 "desired free space)."
34008 msgstr ""
34009
34010 # type: =item
34011 #. type: =item
34012 #: ../tools/virt-make-fs.pl:219
34013 msgid "B<--format=E<lt>fmtE<gt>>"
34014 msgstr ""
34015
34016 # type: =item
34017 #. type: =item
34018 #: ../tools/virt-make-fs.pl:221
34019 msgid "B<-F E<lt>fmtE<gt>>"
34020 msgstr ""
34021
34022 # type: textblock
34023 #. type: textblock
34024 #: ../tools/virt-make-fs.pl:223
34025 msgid "Choose the output disk image format."
34026 msgstr ""
34027
34028 # type: textblock
34029 #. type: textblock
34030 #: ../tools/virt-make-fs.pl:225
34031 msgid "The default is C<raw> (raw disk image)."
34032 msgstr ""
34033
34034 # type: textblock
34035 #. type: textblock
34036 #: ../tools/virt-make-fs.pl:227
34037 msgid ""
34038 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34039 "that would really make sense here is C<qcow2>."
34040 msgstr ""
34041
34042 # type: =item
34043 #. type: =item
34044 #: ../tools/virt-make-fs.pl:234
34045 msgid "B<--type=E<lt>fsE<gt>>"
34046 msgstr ""
34047
34048 # type: =item
34049 #. type: =item
34050 #: ../tools/virt-make-fs.pl:236
34051 msgid "B<-t E<lt>fsE<gt>>"
34052 msgstr ""
34053
34054 # type: textblock
34055 #. type: textblock
34056 #: ../tools/virt-make-fs.pl:238
34057 msgid "Choose the output filesystem type."
34058 msgstr ""
34059
34060 # type: textblock
34061 #. type: textblock
34062 #: ../tools/virt-make-fs.pl:240
34063 msgid "The default is C<ext2>."
34064 msgstr ""
34065
34066 # type: textblock
34067 #. type: textblock
34068 #: ../tools/virt-make-fs.pl:242
34069 msgid ""
34070 "Any filesystem which is supported read-write by libguestfs can be used here."
34071 msgstr ""
34072
34073 # type: =item
34074 #. type: =item
34075 #: ../tools/virt-make-fs.pl:249
34076 msgid "B<--partition>"
34077 msgstr ""
34078
34079 # type: =item
34080 #. type: =item
34081 #: ../tools/virt-make-fs.pl:251
34082 msgid "B<--partition=E<lt>parttypeE<gt>>"
34083 msgstr ""
34084
34085 # type: textblock
34086 #. type: textblock
34087 #: ../tools/virt-make-fs.pl:253
34088 msgid ""
34089 "If specified, this flag adds an MBR partition table to the output disk image."
34090 msgstr ""
34091
34092 # type: textblock
34093 #. type: textblock
34094 #: ../tools/virt-make-fs.pl:256
34095 msgid ""
34096 "You can change the partition table type, eg. C<--partition=gpt> for large "
34097 "disks."
34098 msgstr ""
34099
34100 # type: textblock
34101 #. type: textblock
34102 #: ../tools/virt-make-fs.pl:259
34103 msgid ""
34104 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34105 "might consider the next parameter to be the partition type.  For example:"
34106 msgstr ""
34107
34108 # type: verbatim
34109 #. type: verbatim
34110 #: ../tools/virt-make-fs.pl:263
34111 #, no-wrap
34112 msgid ""
34113 " virt-make-fs --partition input.tar ...\n"
34114 "\n"
34115 msgstr ""
34116
34117 # type: textblock
34118 #. type: textblock
34119 #: ../tools/virt-make-fs.pl:265
34120 msgid ""
34121 "would cause virt-make-fs to think you wanted to use a partition type of "
34122 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34123 "dash) between options and the input file argument:"
34124 msgstr ""
34125
34126 # type: verbatim
34127 #. type: verbatim
34128 #: ../tools/virt-make-fs.pl:269
34129 #, no-wrap
34130 msgid ""
34131 " virt-make-fs --partition -- input.tar ...\n"
34132 "\n"
34133 msgstr ""
34134
34135 #. type: textblock
34136 #: ../tools/virt-make-fs.pl:536
34137 msgid ""
34138 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34139 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34140 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34141 msgstr ""
34142
34143 # type: verbatim
34144 #. type: verbatim
34145 #: ../tools/virt-make-fs.pl:553
34146 #, no-wrap
34147 msgid ""
34148 " export LIBGUESTFS_DEBUG=1\n"
34149 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34150 "\n"
34151 msgstr ""
34152
34153 # type: textblock
34154 #. type: textblock
34155 #: ../tools/virt-make-fs.pl:556
34156 msgid ""
34157 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34158 "redhat.com/>"
34159 msgstr ""
34160
34161 # type: textblock
34162 #. type: textblock
34163 #: ../tools/virt-list-partitions.pl:32
34164 msgid ""
34165 "virt-list-partitions - List partitions in a virtual machine or disk image"
34166 msgstr ""
34167
34168 # type: verbatim
34169 #. type: verbatim
34170 #: ../tools/virt-list-partitions.pl:36
34171 #, no-wrap
34172 msgid ""
34173 " virt-list-partitions [--options] domname\n"
34174 "\n"
34175 msgstr ""
34176
34177 # type: verbatim
34178 #. type: verbatim
34179 #: ../tools/virt-list-partitions.pl:38
34180 #, no-wrap
34181 msgid ""
34182 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34183 "\n"
34184 msgstr ""
34185
34186 # type: textblock
34187 #. type: textblock
34188 #: ../tools/virt-list-partitions.pl:45
34189 msgid ""
34190 "C<virt-list-partitions> is a command line tool to list the partitions that "
34191 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34192 "first step to using L<virt-resize(1)>."
34193 msgstr ""
34194
34195 # type: textblock
34196 #. type: textblock
34197 #: ../tools/virt-list-partitions.pl:50
34198 msgid ""
34199 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34200 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34201 "> tool."
34202 msgstr ""
34203
34204 # type: =item
34205 #. type: =item
34206 #: ../tools/virt-list-partitions.pl:107
34207 msgid "B<-h> | B<--human-readable>"
34208 msgstr ""
34209
34210 # type: textblock
34211 #. type: textblock
34212 #: ../tools/virt-list-partitions.pl:109
34213 msgid "Show sizes in human-readable form (eg. \"1G\")."
34214 msgstr ""
34215
34216 # type: textblock
34217 #. type: textblock
34218 #: ../tools/virt-list-partitions.pl:117
34219 msgid ""
34220 "With this option, C<virt-list-partitions> displays the type and size of each "
34221 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34222 msgstr ""
34223
34224 # type: =item
34225 #. type: =item
34226 #: ../tools/virt-list-partitions.pl:124
34227 msgid "B<-t> | B<--total>"
34228 msgstr ""
34229
34230 # type: textblock
34231 #. type: textblock
34232 #: ../tools/virt-list-partitions.pl:126
34233 msgid ""
34234 "Display the total size of each block device (as a separate row or rows)."
34235 msgstr ""
34236
34237 # type: textblock
34238 #. type: textblock
34239 #: ../tools/virt-list-partitions.pl:259
34240 msgid ""
34241 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34242 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34243 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34244 msgstr ""