dd2e3563a78ad5c65e2413ba93f7fb1c2a37949c
[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-15 14:52+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
24 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "名前"
29
30 # type: textblock
31 #. type: textblock
32 #: ../src/guestfs.pod:5
33 msgid "guestfs - Library for accessing and modifying virtual machine images"
34 msgstr ""
35
36 # type: =head1
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
41 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
42 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
43 #: ../tools/virt-list-partitions.pl:34
44 msgid "SYNOPSIS"
45 msgstr ""
46
47 # type: verbatim
48 #. type: verbatim
49 #: ../src/guestfs.pod:9
50 #, no-wrap
51 msgid ""
52 " #include <guestfs.h>\n"
53 " \n"
54 msgstr ""
55
56 # type: verbatim
57 #. type: verbatim
58 #: ../src/guestfs.pod:11
59 #, no-wrap
60 msgid ""
61 " guestfs_h *g = guestfs_create ();\n"
62 " guestfs_add_drive (g, \"guest.img\");\n"
63 " guestfs_launch (g);\n"
64 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
65 " guestfs_touch (g, \"/hello\");\n"
66 " guestfs_umount (g, \"/\");\n"
67 " guestfs_close (g);\n"
68 "\n"
69 msgstr ""
70
71 # type: verbatim
72 #. type: verbatim
73 #: ../src/guestfs.pod:19
74 #, no-wrap
75 msgid ""
76 " cc prog.c -o prog -lguestfs\n"
77 "or:\n"
78 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
79 "\n"
80 msgstr ""
81
82 # type: =head1
83 #. type: =head1
84 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
85 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
86 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
87 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
88 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
89 #: ../tools/virt-list-partitions.pl:40
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 # type: textblock
94 #. type: textblock
95 #: ../src/guestfs.pod:25
96 msgid ""
97 "Libguestfs is a library for accessing and modifying guest disk images.  "
98 "Amongst the things this is good for: making batch configuration changes to "
99 "guests, getting disk used/free statistics (see also: virt-df), migrating "
100 "between virtualization systems (see also: virt-p2v), performing partial "
101 "backups, performing partial guest clones, cloning guests and changing "
102 "registry/UUID/hostname info, and much else besides."
103 msgstr ""
104
105 # type: textblock
106 #. type: textblock
107 #: ../src/guestfs.pod:33
108 msgid ""
109 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
110 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
111 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
112 "qcow2, vmdk."
113 msgstr ""
114
115 # type: textblock
116 #. type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #. type: textblock
126 #: ../src/guestfs.pod:43
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #. type: textblock
136 #: ../src/guestfs.pod:48
137 msgid ""
138 "You don't need to be root to use libguestfs, although obviously you do need "
139 "enough permissions to access the disk images."
140 msgstr ""
141
142 # type: textblock
143 #. type: textblock
144 #: ../src/guestfs.pod:51
145 msgid ""
146 "Libguestfs is a large API because it can do many things.  For a gentle "
147 "introduction, please read the L</API OVERVIEW> section next."
148 msgstr ""
149
150 # type: textblock
151 #. type: textblock
152 #: ../src/guestfs.pod:54
153 msgid ""
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
155 "page."
156 msgstr ""
157
158 # type: =head1
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr ""
163
164 # type: textblock
165 #. type: textblock
166 #: ../src/guestfs.pod:59
167 msgid ""
168 "This section provides a gentler overview of the libguestfs API.  We also try "
169 "to group API calls together, where that may not be obvious from reading "
170 "about the individual calls in the main section of this manual."
171 msgstr ""
172
173 # type: =head2
174 #. type: =head2
175 #: ../src/guestfs.pod:64
176 msgid "HANDLES"
177 msgstr ""
178
179 # type: textblock
180 #. type: textblock
181 #: ../src/guestfs.pod:66
182 msgid ""
183 "Before you can use libguestfs calls, you have to create a handle.  Then you "
184 "must add at least one disk image to the handle, followed by launching the "
185 "handle, then performing whatever operations you want, and finally closing "
186 "the handle.  By convention we use the single letter C<g> for the name of the "
187 "handle variable, although of course you can use any name you want."
188 msgstr ""
189
190 # type: textblock
191 #. type: textblock
192 #: ../src/guestfs.pod:73
193 msgid "The general structure of all libguestfs-using programs looks like this:"
194 msgstr ""
195
196 # type: verbatim
197 #. type: verbatim
198 #: ../src/guestfs.pod:76
199 #, no-wrap
200 msgid ""
201 " guestfs_h *g = guestfs_create ();\n"
202 " \n"
203 msgstr ""
204
205 # type: verbatim
206 #. type: verbatim
207 #: ../src/guestfs.pod:78
208 #, no-wrap
209 msgid ""
210 " /* Call guestfs_add_drive additional times if there are\n"
211 "  * multiple disk images.\n"
212 "  */\n"
213 " guestfs_add_drive (g, \"guest.img\");\n"
214 " \n"
215 msgstr ""
216
217 # type: verbatim
218 #. type: verbatim
219 #: ../src/guestfs.pod:83
220 #, no-wrap
221 msgid ""
222 " /* Most manipulation calls won't work until you've launched\n"
223 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
224 "  * and _before_ other commands.\n"
225 "  */\n"
226 " guestfs_launch (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #. type: verbatim
232 #: ../src/guestfs.pod:89
233 #, no-wrap
234 msgid ""
235 " /* Now you can examine what partitions, LVs etc are available.\n"
236 "  */\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
239 " \n"
240 msgstr ""
241
242 # type: verbatim
243 #. type: verbatim
244 #: ../src/guestfs.pod:94
245 #, no-wrap
246 msgid ""
247 " /* To access a filesystem in the image, you must mount it.\n"
248 "  */\n"
249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
250 " \n"
251 msgstr ""
252
253 # type: verbatim
254 #. type: verbatim
255 #: ../src/guestfs.pod:98
256 #, no-wrap
257 msgid ""
258 " /* Now you can perform filesystem actions on the guest\n"
259 "  * disk image.\n"
260 "  */\n"
261 " guestfs_touch (g, \"/hello\");\n"
262 "\n"
263 msgstr ""
264
265 # type: verbatim
266 #. type: verbatim
267 #: ../src/guestfs.pod:103
268 #, no-wrap
269 msgid ""
270 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
271 "  * it is done automatically when you close the handle.  See\n"
272 "  * discussion of autosync in this page.\n"
273 "  */\n"
274 " guestfs_sync (g);\n"
275 " \n"
276 msgstr ""
277
278 # type: verbatim
279 #. type: verbatim
280 #: ../src/guestfs.pod:109
281 #, no-wrap
282 msgid ""
283 " /* Close the handle 'g'. */\n"
284 " guestfs_close (g);\n"
285 "\n"
286 msgstr ""
287
288 # type: textblock
289 #. type: textblock
290 #: ../src/guestfs.pod:112
291 msgid ""
292 "The code above doesn't include any error checking.  In real code you should "
293 "check return values carefully for errors.  In general all functions that "
294 "return integers return C<-1> on error, and all functions that return "
295 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
296 "how to handle errors, and consult the documentation for each function call "
297 "below to see precisely how they return error indications.  See L<guestfs-"
298 "examples(3)> for fully worked examples."
299 msgstr ""
300
301 # type: =head2
302 #. type: =head2
303 #: ../src/guestfs.pod:121
304 msgid "DISK IMAGES"
305 msgstr ""
306
307 # type: textblock
308 #. type: textblock
309 #: ../src/guestfs.pod:123
310 msgid ""
311 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
312 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
313 "actual block device, or simply an empty file of zeroes that you have created "
314 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
315 "of these."
316 msgstr ""
317
318 # type: textblock
319 #. type: textblock
320 #: ../src/guestfs.pod:129
321 msgid ""
322 "The call you should use in modern code for adding drives is L</"
323 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
324 "specifying that the format is raw, do:"
325 msgstr ""
326
327 # type: verbatim
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 # type: textblock
339 #. type: textblock
340 #: ../src/guestfs.pod:137
341 msgid "You can add a disk read-only using:"
342 msgstr ""
343
344 # type: verbatim
345 #. type: verbatim
346 #: ../src/guestfs.pod:139
347 #, no-wrap
348 msgid ""
349 " guestfs_add_drive_opts (g, filename,\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
351 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
352 "                         -1);\n"
353 "\n"
354 msgstr ""
355
356 # type: textblock
357 #. type: textblock
358 #: ../src/guestfs.pod:144
359 msgid ""
360 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
361 "libguestfs won't modify the file."
362 msgstr ""
363
364 # type: textblock
365 #. type: textblock
366 #: ../src/guestfs.pod:147
367 msgid ""
368 "Be extremely cautious if the disk image is in use, eg. if it is being used "
369 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
370 "corruption, but adding it read-only is safe."
371 msgstr ""
372
373 # type: textblock
374 #. type: textblock
375 #: ../src/guestfs.pod:151
376 msgid ""
377 "You must add at least one disk image, and you may add multiple disk images.  "
378 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
379 "first one you added), C</dev/sdb> (for the second one you added), etc."
380 msgstr ""
381
382 # type: textblock
383 #. type: textblock
384 #: ../src/guestfs.pod:156
385 msgid ""
386 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
387 "can call L</guestfs_list_devices> to get a list of the device names, in the "
388 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
389 msgstr ""
390
391 # type: =head2
392 #. type: =head2
393 #: ../src/guestfs.pod:161
394 msgid "MOUNTING"
395 msgstr ""
396
397 #. type: textblock
398 #: ../src/guestfs.pod:163
399 msgid ""
400 "Before you can read or write files, create directories and so on in a disk "
401 "image that contains filesystems, you have to mount those filesystems using "
402 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
403 "a disk image contains (for example) one partition with a filesystem on that "
404 "partition, then you can mount it directly:"
405 msgstr ""
406
407 #. type: verbatim
408 #: ../src/guestfs.pod:170
409 #, no-wrap
410 msgid ""
411 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
412 "\n"
413 msgstr ""
414
415 #. type: textblock
416 #: ../src/guestfs.pod:172
417 msgid ""
418 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
419 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
420 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
421 "that these are libguestfs virtual devices, and are nothing to do with host "
422 "devices."
423 msgstr ""
424
425 #. type: textblock
426 #: ../src/guestfs.pod:178
427 msgid ""
428 "If you are given a disk image and you don't know what it contains then you "
429 "have to find out.  Libguestfs can do that too: use L</"
430 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
431 "LVs, and either try mounting each to see what is mountable, or else examine "
432 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
433 "filesystems, use L</guestfs_list_filesystems>."
434 msgstr ""
435
436 #. type: textblock
437 #: ../src/guestfs.pod:186
438 msgid ""
439 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
440 "L</INSPECTION> below).  But you might find it easier to look at higher level "
441 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
442 msgstr ""
443
444 #. type: textblock
445 #: ../src/guestfs.pod:191
446 msgid ""
447 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
448 "several other variations of the C<guestfs_mount_*> call."
449 msgstr ""
450
451 # type: =head2
452 #. type: =head2
453 #: ../src/guestfs.pod:194
454 msgid "FILESYSTEM ACCESS AND MODIFICATION"
455 msgstr ""
456
457 # type: textblock
458 #. type: textblock
459 #: ../src/guestfs.pod:196
460 msgid ""
461 "The majority of the libguestfs API consists of fairly low-level calls for "
462 "accessing and modifying the files, directories, symlinks etc on mounted "
463 "filesystems.  There are over a hundred such calls which you can find listed "
464 "in detail below in this man page, and we don't even pretend to cover them "
465 "all in this overview."
466 msgstr ""
467
468 # type: textblock
469 #. type: textblock
470 #: ../src/guestfs.pod:202
471 msgid ""
472 "Specify filenames as full paths, starting with C<\"/\"> and including the "
473 "mount point."
474 msgstr ""
475
476 # type: textblock
477 #. type: textblock
478 #: ../src/guestfs.pod:205
479 msgid ""
480 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
481 "the file called C<\"etc/passwd\"> then you could do:"
482 msgstr ""
483
484 # type: verbatim
485 #. type: verbatim
486 #: ../src/guestfs.pod:208
487 #, no-wrap
488 msgid ""
489 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
490 "\n"
491 msgstr ""
492
493 # type: textblock
494 #. type: textblock
495 #: ../src/guestfs.pod:210
496 msgid ""
497 "This would return C<data> as a newly allocated buffer containing the full "
498 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
499 "or C<NULL> if there was an error."
500 msgstr ""
501
502 # type: textblock
503 #. type: textblock
504 #: ../src/guestfs.pod:214
505 msgid ""
506 "As another example, to create a top-level directory on that filesystem "
507 "called C<\"var\"> you would do:"
508 msgstr ""
509
510 # type: verbatim
511 #. type: verbatim
512 #: ../src/guestfs.pod:217
513 #, no-wrap
514 msgid ""
515 " guestfs_mkdir (g, \"/var\");\n"
516 "\n"
517 msgstr ""
518
519 # type: textblock
520 #. type: textblock
521 #: ../src/guestfs.pod:219
522 msgid "To create a symlink you could do:"
523 msgstr ""
524
525 # type: verbatim
526 #. type: verbatim
527 #: ../src/guestfs.pod:221
528 #, no-wrap
529 msgid ""
530 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
531 "               \"/etc/rc3.d/S30portmap\");\n"
532 "\n"
533 msgstr ""
534
535 # type: textblock
536 #. type: textblock
537 #: ../src/guestfs.pod:224
538 msgid ""
539 "Libguestfs will reject attempts to use relative paths and there is no "
540 "concept of a current working directory."
541 msgstr ""
542
543 # type: textblock
544 #. type: textblock
545 #: ../src/guestfs.pod:227
546 msgid ""
547 "Libguestfs can return errors in many situations: for example if the "
548 "filesystem isn't writable, or if a file or directory that you requested "
549 "doesn't exist.  If you are using the C API (documented here)  you have to "
550 "check for those error conditions after each call.  (Other language bindings "
551 "turn these errors into exceptions)."
552 msgstr ""
553
554 # type: textblock
555 #. type: textblock
556 #: ../src/guestfs.pod:233
557 msgid ""
558 "File writes are affected by the per-handle umask, set by calling L</"
559 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
560 msgstr ""
561
562 # type: =head2
563 #. type: =head2
564 #: ../src/guestfs.pod:236
565 msgid "PARTITIONING"
566 msgstr ""
567
568 # type: textblock
569 #. type: textblock
570 #: ../src/guestfs.pod:238
571 msgid ""
572 "Libguestfs contains API calls to read, create and modify partition tables on "
573 "disk images."
574 msgstr ""
575
576 # type: textblock
577 #. type: textblock
578 #: ../src/guestfs.pod:241
579 msgid ""
580 "In the common case where you want to create a single partition covering the "
581 "whole disk, you should use the L</guestfs_part_disk> call:"
582 msgstr ""
583
584 # type: verbatim
585 #. type: verbatim
586 #: ../src/guestfs.pod:245
587 #, no-wrap
588 msgid ""
589 " const char *parttype = \"mbr\";\n"
590 " if (disk_is_larger_than_2TB)\n"
591 "   parttype = \"gpt\";\n"
592 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
593 "\n"
594 msgstr ""
595
596 # type: textblock
597 #. type: textblock
598 #: ../src/guestfs.pod:250
599 msgid ""
600 "Obviously this effectively wipes anything that was on that disk image before."
601 msgstr ""
602
603 # type: =head2
604 #. type: =head2
605 #: ../src/guestfs.pod:253
606 msgid "LVM2"
607 msgstr ""
608
609 # type: textblock
610 #. type: textblock
611 #: ../src/guestfs.pod:255
612 msgid ""
613 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
614 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
615 "you familiarize yourself with the concepts of physical volumes, volume "
616 "groups and logical volumes."
617 msgstr ""
618
619 # type: textblock
620 #. type: textblock
621 #: ../src/guestfs.pod:260
622 msgid ""
623 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
624 "tldp.org/HOWTO/LVM-HOWTO/>."
625 msgstr ""
626
627 # type: =head2
628 #. type: =head2
629 #: ../src/guestfs.pod:263
630 msgid "DOWNLOADING"
631 msgstr ""
632
633 #. type: textblock
634 #: ../src/guestfs.pod:265
635 msgid ""
636 "Use L</guestfs_cat> to download small, text only files.  This call is "
637 "limited to files which are less than 2 MB and which cannot contain any ASCII "
638 "NUL (C<\\0>) characters.  However the API is very simple to use."
639 msgstr ""
640
641 # type: textblock
642 #. type: textblock
643 #: ../src/guestfs.pod:269
644 msgid ""
645 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
646 "bit data, since it returns a (pointer, size) pair.  However it is still "
647 "limited to \"small\" files, less than 2 MB."
648 msgstr ""
649
650 # type: textblock
651 #. type: textblock
652 #: ../src/guestfs.pod:273
653 msgid ""
654 "L</guestfs_download> can be used to download any file, with no limits on "
655 "content or size (even files larger than 4 GB)."
656 msgstr ""
657
658 # type: textblock
659 #. type: textblock
660 #: ../src/guestfs.pod:276
661 msgid ""
662 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
663 msgstr ""
664
665 # type: =head2
666 #. type: =head2
667 #: ../src/guestfs.pod:279
668 msgid "UPLOADING"
669 msgstr ""
670
671 # type: textblock
672 #. type: textblock
673 #: ../src/guestfs.pod:281
674 msgid ""
675 "It's often the case that you want to write a file or files to the disk image."
676 msgstr ""
677
678 # type: textblock
679 #. type: textblock
680 #: ../src/guestfs.pod:284
681 msgid ""
682 "To write a small file with fixed content, use L</guestfs_write>.  To create "
683 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
684 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
685 "of other functions for creating test files, for example L</guestfs_fill> and "
686 "L</guestfs_fill_pattern>."
687 msgstr ""
688
689 # type: textblock
690 #. type: textblock
691 #: ../src/guestfs.pod:290
692 msgid ""
693 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
694 "file content or size (even files larger than 4 GB)."
695 msgstr ""
696
697 # type: textblock
698 #. type: textblock
699 #: ../src/guestfs.pod:293
700 msgid ""
701 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
702 msgstr ""
703
704 # type: textblock
705 #. type: textblock
706 #: ../src/guestfs.pod:295
707 msgid ""
708 "However the fastest way to upload I<large numbers of arbitrary files> is to "
709 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
710 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
711 "in a predictable way (eg. adding it last after all other drives) then you "
712 "can get the device name from L</guestfs_list_devices> and mount it directly "
713 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
714 "portable between kernel versions, and they don't support labels or UUIDs.  "
715 "If you want to pre-build an image or you need to mount it using a label or "
716 "UUID, use an ISO image instead."
717 msgstr ""
718
719 # type: =head2
720 #. type: =head2
721 #: ../src/guestfs.pod:306
722 msgid "COPYING"
723 msgstr ""
724
725 # type: textblock
726 #. type: textblock
727 #: ../src/guestfs.pod:308
728 msgid ""
729 "There are various different commands for copying between files and devices "
730 "and in and out of the guest filesystem.  These are summarised in the table "
731 "below."
732 msgstr ""
733
734 # type: =item
735 #. type: =item
736 #: ../src/guestfs.pod:314
737 msgid "B<file> to B<file>"
738 msgstr ""
739
740 # type: textblock
741 #. type: textblock
742 #: ../src/guestfs.pod:316
743 msgid ""
744 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
745 "directories recursively."
746 msgstr ""
747
748 # type: =item
749 #. type: =item
750 #: ../src/guestfs.pod:319
751 msgid "B<file or device> to B<file or device>"
752 msgstr ""
753
754 # type: textblock
755 #. type: textblock
756 #: ../src/guestfs.pod:321
757 msgid ""
758 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
759 "devices in the guest."
760 msgstr ""
761
762 # type: textblock
763 #. type: textblock
764 #: ../src/guestfs.pod:324
765 msgid "Example: duplicate the contents of an LV:"
766 msgstr ""
767
768 # type: verbatim
769 #. type: verbatim
770 #: ../src/guestfs.pod:326
771 #, no-wrap
772 msgid ""
773 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
774 "\n"
775 msgstr ""
776
777 # type: textblock
778 #. type: textblock
779 #: ../src/guestfs.pod:328
780 msgid ""
781 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
782 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
783 "guestfs_copy_size>."
784 msgstr ""
785
786 # type: =item
787 #. type: =item
788 #: ../src/guestfs.pod:332
789 msgid "B<file on the host> to B<file or device>"
790 msgstr ""
791
792 # type: textblock
793 #. type: textblock
794 #: ../src/guestfs.pod:334
795 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
796 msgstr ""
797
798 # type: =item
799 #. type: =item
800 #: ../src/guestfs.pod:336
801 msgid "B<file or device> to B<file on the host>"
802 msgstr ""
803
804 # type: textblock
805 #. type: textblock
806 #: ../src/guestfs.pod:338
807 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
808 msgstr ""
809
810 # type: =head2
811 #. type: =head2
812 #: ../src/guestfs.pod:342
813 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
814 msgstr ""
815
816 # type: textblock
817 #. type: textblock
818 #: ../src/guestfs.pod:344
819 msgid ""
820 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
821 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
822 "appears you can only upload and download to files.  However many Un*x-like "
823 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
824 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
825 "and arbitrary file descriptor N."
826 msgstr ""
827
828 # type: textblock
829 #. type: textblock
830 #: ../src/guestfs.pod:352
831 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
832 msgstr ""
833
834 #. type: verbatim
835 #: ../src/guestfs.pod:355
836 #, no-wrap
837 msgid ""
838 " guestfs_download (g, filename, \"/dev/stdout\");\n"
839 "\n"
840 msgstr ""
841
842 # type: textblock
843 #. type: textblock
844 #: ../src/guestfs.pod:357
845 msgid "and you can write tar output to a pipe C<fd> by doing:"
846 msgstr ""
847
848 #. type: verbatim
849 #: ../src/guestfs.pod:359
850 #, no-wrap
851 msgid ""
852 " char devfd[64];\n"
853 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
854 " guestfs_tar_out (g, \"/\", devfd);\n"
855 "\n"
856 msgstr ""
857
858 # type: =head2
859 #. type: =head2
860 #: ../src/guestfs.pod:363
861 msgid "LISTING FILES"
862 msgstr ""
863
864 # type: textblock
865 #. type: textblock
866 #: ../src/guestfs.pod:365
867 msgid ""
868 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
869 "L<guestfish(1)>-equivalent command C<ll>)."
870 msgstr ""
871
872 # type: textblock
873 #. type: textblock
874 #: ../src/guestfs.pod:368
875 msgid ""
876 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
877 "programs, as a flat list of strings."
878 msgstr ""
879
880 # type: textblock
881 #. type: textblock
882 #: ../src/guestfs.pod:371
883 msgid ""
884 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
885 "directory, plus additional information about each one.  It is more "
886 "equivalent to using the L<readdir(3)> call on a local filesystem."
887 msgstr ""
888
889 # type: textblock
890 #. type: textblock
891 #: ../src/guestfs.pod:375
892 msgid ""
893 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
894 msgstr ""
895
896 # type: =head2
897 #. type: =head2
898 #: ../src/guestfs.pod:378
899 msgid "RUNNING COMMANDS"
900 msgstr ""
901
902 # type: textblock
903 #. type: textblock
904 #: ../src/guestfs.pod:380
905 msgid ""
906 "Although libguestfs is primarily an API for manipulating files inside guest "
907 "images, we also provide some limited facilities for running commands inside "
908 "guests."
909 msgstr ""
910
911 # type: textblock
912 #. type: textblock
913 #: ../src/guestfs.pod:384
914 msgid "There are many limitations to this:"
915 msgstr ""
916
917 # type: =item
918 #. type: =item
919 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
920 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
921 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1031
922 #: ../src/guestfs.pod:1035 ../src/guestfs.pod:1039 ../src/guestfs.pod:1044
923 #: ../src/guestfs.pod:1052 ../src/guestfs.pod:1071 ../src/guestfs.pod:1079
924 #: ../src/guestfs.pod:1101 ../src/guestfs.pod:1105 ../src/guestfs.pod:1109
925 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1121
926 #: ../src/guestfs.pod:1603 ../src/guestfs.pod:1608 ../src/guestfs.pod:1612
927 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1727 ../src/guestfs.pod:1731
928 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2089 ../src/guestfs.pod:2094
929 #: ../src/guestfs.pod:2100 ../src/guestfs.pod:2564 ../src/guestfs.pod:2568
930 #: ../src/guestfs.pod:2572 ../src/guestfs.pod:2576
931 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
932 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
933 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
934 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
935 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
936 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
937 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
938 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
939 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
940 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
941 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
942 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:427
943 #: ../fish/guestfish.pod:431 ../fish/guestfish.pod:435
944 #: ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13
945 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:373
946 #: ../fish/guestfish-actions.pod:381 ../fish/guestfish-actions.pod:388
947 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:1065
948 #: ../fish/guestfish-actions.pod:1069 ../fish/guestfish-actions.pod:1073
949 #: ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1085
950 #: ../fish/guestfish-actions.pod:1089 ../fish/guestfish-actions.pod:1093
951 #: ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107
952 #: ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1201
953 #: ../fish/guestfish-actions.pod:1205 ../fish/guestfish-actions.pod:1210
954 #: ../fish/guestfish-actions.pod:1215 ../fish/guestfish-actions.pod:1257
955 #: ../fish/guestfish-actions.pod:1261 ../fish/guestfish-actions.pod:1266
956 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
957 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
958 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
959 msgid "*"
960 msgstr ""
961
962 # type: textblock
963 #. type: textblock
964 #: ../src/guestfs.pod:390
965 msgid ""
966 "The kernel version that the command runs under will be different from what "
967 "it expects."
968 msgstr ""
969
970 # type: textblock
971 #. type: textblock
972 #: ../src/guestfs.pod:395
973 msgid ""
974 "If the command needs to communicate with daemons, then most likely they "
975 "won't be running."
976 msgstr ""
977
978 # type: textblock
979 #. type: textblock
980 #: ../src/guestfs.pod:400
981 msgid "The command will be running in limited memory."
982 msgstr ""
983
984 # type: textblock
985 #. type: textblock
986 #: ../src/guestfs.pod:404
987 msgid ""
988 "The network may not be available unless you enable it (see L</"
989 "guestfs_set_network>)."
990 msgstr ""
991
992 # type: textblock
993 #. type: textblock
994 #: ../src/guestfs.pod:409
995 msgid "Only supports Linux guests (not Windows, BSD, etc)."
996 msgstr ""
997
998 # type: textblock
999 #. type: textblock
1000 #: ../src/guestfs.pod:413
1001 msgid ""
1002 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1003 msgstr ""
1004
1005 # type: textblock
1006 #. type: textblock
1007 #: ../src/guestfs.pod:418
1008 msgid ""
1009 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1010 "See L</SELINUX> in this manpage."
1011 msgstr ""
1012
1013 # type: textblock
1014 #. type: textblock
1015 #: ../src/guestfs.pod:423
1016 msgid ""
1017 "I<Security:> It is not safe to run commands from untrusted, possibly "
1018 "malicious guests.  These commands may attempt to exploit your program by "
1019 "sending unexpected output.  They could also try to exploit the Linux kernel "
1020 "or qemu provided by the libguestfs appliance.  They could use the network "
1021 "provided by the libguestfs appliance to bypass ordinary network partitions "
1022 "and firewalls.  They could use the elevated privileges or different SELinux "
1023 "context of your program to their advantage."
1024 msgstr ""
1025
1026 # type: textblock
1027 #. type: textblock
1028 #: ../src/guestfs.pod:432
1029 msgid ""
1030 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1031 "(a script which runs when the guest next boots normally), and to have this "
1032 "script run the commands you want in the normal context of the running guest, "
1033 "network security and so on.  For information about other security issues, "
1034 "see L</SECURITY>."
1035 msgstr ""
1036
1037 # type: textblock
1038 #. type: textblock
1039 #: ../src/guestfs.pod:440
1040 msgid ""
1041 "The two main API calls to run commands are L</guestfs_command> and L</"
1042 "guestfs_sh> (there are also variations)."
1043 msgstr ""
1044
1045 # type: textblock
1046 #. type: textblock
1047 #: ../src/guestfs.pod:443
1048 msgid ""
1049 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1050 "shell globs, redirections, etc will work."
1051 msgstr ""
1052
1053 # type: =head2
1054 #. type: =head2
1055 #: ../src/guestfs.pod:446
1056 msgid "CONFIGURATION FILES"
1057 msgstr ""
1058
1059 # type: textblock
1060 #. type: textblock
1061 #: ../src/guestfs.pod:448
1062 msgid ""
1063 "To read and write configuration files in Linux guest filesystems, we "
1064 "strongly recommend using Augeas.  For example, Augeas understands how to "
1065 "read and write, say, a Linux shadow password file or X.org configuration "
1066 "file, and so avoids you having to write that code."
1067 msgstr ""
1068
1069 # type: textblock
1070 #. type: textblock
1071 #: ../src/guestfs.pod:453
1072 msgid ""
1073 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1074 "document Augeas itself here because there is excellent documentation on the "
1075 "L<http://augeas.net/> website."
1076 msgstr ""
1077
1078 # type: textblock
1079 #. type: textblock
1080 #: ../src/guestfs.pod:457
1081 msgid ""
1082 "If you don't want to use Augeas (you fool!) then try calling L</"
1083 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1084 "over."
1085 msgstr ""
1086
1087 # type: =head2
1088 #. type: =head2
1089 #: ../src/guestfs.pod:461
1090 msgid "SELINUX"
1091 msgstr ""
1092
1093 # type: textblock
1094 #. type: textblock
1095 #: ../src/guestfs.pod:463
1096 msgid ""
1097 "We support SELinux guests.  To ensure that labeling happens correctly in "
1098 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1099 msgstr ""
1100
1101 # type: =item
1102 #. type: =item
1103 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1224 ../src/guestfs.pod:1355
1104 #: ../src/guestfs.pod:2128
1105 msgid "1."
1106 msgstr ""
1107
1108 # type: textblock
1109 #. type: textblock
1110 #: ../src/guestfs.pod:471
1111 msgid "Before launching, do:"
1112 msgstr ""
1113
1114 # type: verbatim
1115 #. type: verbatim
1116 #: ../src/guestfs.pod:473
1117 #, no-wrap
1118 msgid ""
1119 " guestfs_set_selinux (g, 1);\n"
1120 "\n"
1121 msgstr ""
1122
1123 # type: =item
1124 #. type: =item
1125 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1228 ../src/guestfs.pod:1359
1126 #: ../src/guestfs.pod:2153
1127 msgid "2."
1128 msgstr ""
1129
1130 # type: textblock
1131 #. type: textblock
1132 #: ../src/guestfs.pod:477
1133 msgid ""
1134 "After mounting the guest's filesystem(s), load the policy.  This is best "
1135 "done by running the L<load_policy(8)> command in the guest itself:"
1136 msgstr ""
1137
1138 # type: verbatim
1139 #. type: verbatim
1140 #: ../src/guestfs.pod:481
1141 #, no-wrap
1142 msgid ""
1143 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1144 "\n"
1145 msgstr ""
1146
1147 # type: textblock
1148 #. type: textblock
1149 #: ../src/guestfs.pod:483
1150 msgid ""
1151 "(Older versions of C<load_policy> require you to specify the name of the "
1152 "policy file)."
1153 msgstr ""
1154
1155 # type: =item
1156 #. type: =item
1157 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1365
1158 msgid "3."
1159 msgstr ""
1160
1161 # type: textblock
1162 #. type: textblock
1163 #: ../src/guestfs.pod:488
1164 msgid ""
1165 "Optionally, set the security context for the API.  The correct security "
1166 "context to use can only be known by inspecting the guest.  As an example:"
1167 msgstr ""
1168
1169 # type: verbatim
1170 #. type: verbatim
1171 #: ../src/guestfs.pod:492
1172 #, no-wrap
1173 msgid ""
1174 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #. type: textblock
1180 #: ../src/guestfs.pod:496
1181 msgid "This will work for running commands and editing existing files."
1182 msgstr ""
1183
1184 # type: textblock
1185 #. type: textblock
1186 #: ../src/guestfs.pod:498
1187 msgid ""
1188 "When new files are created, you may need to label them explicitly, for "
1189 "example by running the external command C<restorecon pathname>."
1190 msgstr ""
1191
1192 # type: =head2
1193 #. type: =head2
1194 #: ../src/guestfs.pod:502
1195 msgid "UMASK"
1196 msgstr ""
1197
1198 # type: textblock
1199 #. type: textblock
1200 #: ../src/guestfs.pod:504
1201 msgid ""
1202 "Certain calls are affected by the current file mode creation mask (the "
1203 "\"umask\").  In particular ones which create files or directories, such as "
1204 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1205 "either the default mode that the file is created with or modifies the mode "
1206 "that you supply."
1207 msgstr ""
1208
1209 # type: textblock
1210 #. type: textblock
1211 #: ../src/guestfs.pod:510
1212 msgid ""
1213 "The default umask is C<022>, so files are created with modes such as C<0644> "
1214 "and directories with C<0755>."
1215 msgstr ""
1216
1217 # type: textblock
1218 #. type: textblock
1219 #: ../src/guestfs.pod:513
1220 msgid ""
1221 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1222 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1223 "guestfs_chmod> after creating each file or directory."
1224 msgstr ""
1225
1226 # type: textblock
1227 #. type: textblock
1228 #: ../src/guestfs.pod:517
1229 msgid "For more information about umask, see L<umask(2)>."
1230 msgstr ""
1231
1232 # type: =head1
1233 #. type: =head1
1234 #: ../src/guestfs.pod:519 ../fish/guestfish.pod: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 #: ../src/guestfs.pod:552
1302 msgid ""
1303 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1304 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1305 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1306 "version 1.5.3 the most frequently used part of this library has been "
1307 "rewritten in C and moved into the core code)."
1308 msgstr ""
1309
1310 # type: textblock
1311 #. type: textblock
1312 #: ../src/guestfs.pod:559
1313 msgid ""
1314 "Add all disks belonging to the unknown virtual machine and call L</"
1315 "guestfs_launch> in the usual way."
1316 msgstr ""
1317
1318 # type: textblock
1319 #. type: textblock
1320 #: ../src/guestfs.pod:562
1321 msgid ""
1322 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1323 "and certain heuristics, and returns a list of operating systems that were "
1324 "found.  An empty list means none were found.  A single element is the root "
1325 "filesystem of the operating system.  For dual- or multi-boot guests, "
1326 "multiple roots can be returned, each one corresponding to a separate "
1327 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1328 "world of virtualization, but since this scenario can happen, we have built "
1329 "libguestfs to deal with it.)"
1330 msgstr ""
1331
1332 # type: textblock
1333 #. type: textblock
1334 #: ../src/guestfs.pod:571
1335 msgid ""
1336 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1337 "to get additional details about that operating system.  For example, call L</"
1338 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1339 "Windows and Linux-based operating systems respectively."
1340 msgstr ""
1341
1342 # type: textblock
1343 #. type: textblock
1344 #: ../src/guestfs.pod:577
1345 msgid ""
1346 "Un*x-like and Linux-based operating systems usually consist of several "
1347 "filesystems which are mounted at boot time (for example, a separate boot "
1348 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1349 "filesystems correspond to mount points.  Call "
1350 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1351 "hash table like this example:"
1352 msgstr ""
1353
1354 # type: verbatim
1355 #. type: verbatim
1356 #: ../src/guestfs.pod:584
1357 #, no-wrap
1358 msgid ""
1359 " /boot => /dev/sda1\n"
1360 " /     => /dev/vg_guest/lv_root\n"
1361 " /usr  => /dev/vg_guest/lv_usr\n"
1362 "\n"
1363 msgstr ""
1364
1365 # type: textblock
1366 #. type: textblock
1367 #: ../src/guestfs.pod:588
1368 msgid ""
1369 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1370 "filesystems as suggested."
1371 msgstr ""
1372
1373 # type: textblock
1374 #. type: textblock
1375 #: ../src/guestfs.pod:591
1376 msgid ""
1377 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1378 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1379 msgstr ""
1380
1381 # type: textblock
1382 #. type: textblock
1383 #: ../src/guestfs.pod:595
1384 msgid ""
1385 "Inspection currently only works for some common operating systems.  "
1386 "Contributors are welcome to send patches for other operating systems that we "
1387 "currently cannot detect."
1388 msgstr ""
1389
1390 # type: textblock
1391 #. type: textblock
1392 #: ../src/guestfs.pod:599
1393 msgid ""
1394 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1395 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1396 "encrypted devices."
1397 msgstr ""
1398
1399 # type: textblock
1400 #. type: textblock
1401 #: ../src/guestfs.pod:603
1402 msgid ""
1403 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1404 "inspection and caches the results in the guest handle.  Subsequent calls to "
1405 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1406 "read the disks.  If you change the content of the guest disks, you can redo "
1407 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1408 "guestfs_inspect_list_applications> works a little differently from the other "
1409 "calls and does read the disks.  See documentation for that function for "
1410 "details)."
1411 msgstr ""
1412
1413 #. type: =head3
1414 #: ../src/guestfs.pod:612
1415 msgid "INSPECTING INSTALL DISKS"
1416 msgstr ""
1417
1418 #. type: textblock
1419 #: ../src/guestfs.pod:614
1420 msgid ""
1421 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1422 "CDs and more."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../src/guestfs.pod:617
1427 msgid ""
1428 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1429 "system, which currently can be C<installed> (a regular operating system) or "
1430 "C<installer> (some sort of install disk)."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../src/guestfs.pod:621
1435 msgid ""
1436 "Further information is available about the operating system that can be "
1437 "installed using the regular inspection APIs like L</"
1438 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../src/guestfs.pod:626
1443 msgid ""
1444 "Some additional information specific to installer disks is also available "
1445 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1446 "guestfs_inspect_is_multipart> calls."
1447 msgstr ""
1448
1449 # type: =head2
1450 #. type: =head2
1451 #: ../src/guestfs.pod:631
1452 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1453 msgstr ""
1454
1455 # type: textblock
1456 #. type: textblock
1457 #: ../src/guestfs.pod:633
1458 msgid ""
1459 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1460 "ntfs-3g.org/> driver."
1461 msgstr ""
1462
1463 # type: =head3
1464 #. type: =head3
1465 #: ../src/guestfs.pod:636
1466 msgid "DRIVE LETTERS AND PATHS"
1467 msgstr ""
1468
1469 # type: textblock
1470 #. type: textblock
1471 #: ../src/guestfs.pod:638
1472 msgid ""
1473 "DOS and Windows still use drive letters, and the filesystems are always "
1474 "treated as case insensitive by Windows itself, and therefore you might find "
1475 "a Windows configuration file referring to a path like C<c:\\windows"
1476 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1477 "might be referred to as C</WINDOWS/System32>."
1478 msgstr ""
1479
1480 # type: textblock
1481 #. type: textblock
1482 #: ../src/guestfs.pod:644
1483 msgid ""
1484 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1485 "libguestfs to read the appropriate Windows Registry and configuration files, "
1486 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1487 "inspector(1)>)."
1488 msgstr ""
1489
1490 # type: textblock
1491 #. type: textblock
1492 #: ../src/guestfs.pod:649
1493 msgid ""
1494 "Replacing backslash characters with forward slash characters is also outside "
1495 "the scope of libguestfs, but something that you can easily do."
1496 msgstr ""
1497
1498 # type: textblock
1499 #. type: textblock
1500 #: ../src/guestfs.pod:652
1501 msgid ""
1502 "Where we can help is in resolving the case insensitivity of paths.  For "
1503 "this, call L</guestfs_case_sensitive_path>."
1504 msgstr ""
1505
1506 # type: =head3
1507 #. type: =head3
1508 #: ../src/guestfs.pod:655
1509 msgid "ACCESSING THE WINDOWS REGISTRY"
1510 msgstr ""
1511
1512 # type: textblock
1513 #. type: textblock
1514 #: ../src/guestfs.pod:657
1515 msgid ""
1516 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1517 "files, through the library C<hivex> which is part of the libguestfs project "
1518 "although ships as a separate tarball.  You have to locate and download the "
1519 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1520 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1521 "reg(1)> for more help on this issue."
1522 msgstr ""
1523
1524 # type: =head3
1525 #. type: =head3
1526 #: ../src/guestfs.pod:665
1527 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1528 msgstr ""
1529
1530 # type: textblock
1531 #. type: textblock
1532 #: ../src/guestfs.pod:667
1533 msgid ""
1534 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1535 "provide something which looks like a Linux symlink.  The way it tries to do "
1536 "the rewriting is described here:"
1537 msgstr ""
1538
1539 # type: textblock
1540 #. type: textblock
1541 #: ../src/guestfs.pod:671
1542 msgid ""
1543 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1544 "symbolic-links/>"
1545 msgstr ""
1546
1547 # type: textblock
1548 #. type: textblock
1549 #: ../src/guestfs.pod:673
1550 msgid ""
1551 "The essential problem is that ntfs-3g simply does not have enough "
1552 "information to do a correct job.  NTFS links can contain drive letters and "
1553 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1554 "It is almost certainly the case that libguestfs callers should ignore what "
1555 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1556 msgstr ""
1557
1558 # type: textblock
1559 #. type: textblock
1560 #: ../src/guestfs.pod:680
1561 msgid ""
1562 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1563 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1564 "attribute, and read the raw reparse data from that (you can find the format "
1565 "documented in various places around the web)."
1566 msgstr ""
1567
1568 # type: =head3
1569 #. type: =head3
1570 #: ../src/guestfs.pod:685
1571 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1572 msgstr ""
1573
1574 # type: textblock
1575 #. type: textblock
1576 #: ../src/guestfs.pod:687
1577 msgid ""
1578 "There are other useful extended attributes that can be read from ntfs-3g "
1579 "filesystems (using L</guestfs_getxattr>).  See:"
1580 msgstr ""
1581
1582 # type: textblock
1583 #. type: textblock
1584 #: ../src/guestfs.pod:690
1585 msgid ""
1586 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1587 msgstr ""
1588
1589 # type: =head2
1590 #. type: =head2
1591 #: ../src/guestfs.pod:692
1592 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1593 msgstr ""
1594
1595 # type: textblock
1596 #. type: textblock
1597 #: ../src/guestfs.pod:694
1598 msgid ""
1599 "Although we don't want to discourage you from using the C API, we will "
1600 "mention here that the same API is also available in other languages."
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../src/guestfs.pod:697
1605 msgid ""
1606 "The API is broadly identical in all supported languages.  This means that "
1607 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1608 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1609 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1610 "each language."
1611 msgstr ""
1612
1613 # type: textblock
1614 #. type: textblock
1615 #: ../src/guestfs.pod:703
1616 msgid ""
1617 "Error messages are automatically transformed into exceptions if the language "
1618 "supports it."
1619 msgstr ""
1620
1621 # type: textblock
1622 #. type: textblock
1623 #: ../src/guestfs.pod:706
1624 msgid ""
1625 "We don't try to \"object orientify\" parts of the API in OO languages, "
1626 "although contributors are welcome to write higher level APIs above what we "
1627 "provide in their favourite languages if they wish."
1628 msgstr ""
1629
1630 # type: =item
1631 #. type: =item
1632 #: ../src/guestfs.pod:712
1633 msgid "B<C++>"
1634 msgstr ""
1635
1636 # type: textblock
1637 #. type: textblock
1638 #: ../src/guestfs.pod:714
1639 msgid ""
1640 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1641 "identical to the C API.  C++ classes and exceptions are not used."
1642 msgstr ""
1643
1644 # type: =item
1645 #. type: =item
1646 #: ../src/guestfs.pod:718
1647 msgid "B<C#>"
1648 msgstr ""
1649
1650 # type: textblock
1651 #. type: textblock
1652 #: ../src/guestfs.pod:720
1653 msgid ""
1654 "The C# bindings are highly experimental.  Please read the warnings at the "
1655 "top of C<csharp/Libguestfs.cs>."
1656 msgstr ""
1657
1658 # type: =item
1659 #. type: =item
1660 #: ../src/guestfs.pod:723
1661 msgid "B<Haskell>"
1662 msgstr ""
1663
1664 # type: textblock
1665 #. type: textblock
1666 #: ../src/guestfs.pod:725
1667 msgid ""
1668 "This is the only language binding that is working but incomplete.  Only "
1669 "calls which return simple integers have been bound in Haskell, and we are "
1670 "looking for help to complete this binding."
1671 msgstr ""
1672
1673 # type: =item
1674 #. type: =item
1675 #: ../src/guestfs.pod:729
1676 msgid "B<Java>"
1677 msgstr ""
1678
1679 # type: textblock
1680 #. type: textblock
1681 #: ../src/guestfs.pod:731
1682 msgid ""
1683 "Full documentation is contained in the Javadoc which is distributed with "
1684 "libguestfs."
1685 msgstr ""
1686
1687 # type: =item
1688 #. type: =item
1689 #: ../src/guestfs.pod:734
1690 msgid "B<OCaml>"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../src/guestfs.pod:736
1695 msgid "See L<guestfs-ocaml(3)>."
1696 msgstr ""
1697
1698 # type: =item
1699 #. type: =item
1700 #: ../src/guestfs.pod:738
1701 msgid "B<Perl>"
1702 msgstr ""
1703
1704 #. type: textblock
1705 #: ../src/guestfs.pod:740
1706 msgid "See L<Sys::Guestfs(3)>."
1707 msgstr ""
1708
1709 # type: =item
1710 #. type: =item
1711 #: ../src/guestfs.pod:742
1712 msgid "B<PHP>"
1713 msgstr ""
1714
1715 # type: textblock
1716 #. type: textblock
1717 #: ../src/guestfs.pod:744
1718 msgid ""
1719 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1720 "the php-libguestfs package for your distribution."
1721 msgstr ""
1722
1723 # type: textblock
1724 #. type: textblock
1725 #: ../src/guestfs.pod:747
1726 msgid "The PHP binding only works correctly on 64 bit machines."
1727 msgstr ""
1728
1729 # type: =item
1730 #. type: =item
1731 #: ../src/guestfs.pod:749
1732 msgid "B<Python>"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../src/guestfs.pod:751
1737 msgid "See L<guestfs-python(3)>."
1738 msgstr ""
1739
1740 # type: =item
1741 #. type: =item
1742 #: ../src/guestfs.pod:753
1743 msgid "B<Ruby>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../src/guestfs.pod:755
1748 msgid "See L<guestfs-ruby(3)>."
1749 msgstr ""
1750
1751 # type: =item
1752 #. type: =item
1753 #: ../src/guestfs.pod:757
1754 msgid "B<shell scripts>"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../src/guestfs.pod:759
1759 msgid "See L<guestfish(1)>."
1760 msgstr ""
1761
1762 # type: =head2
1763 #. type: =head2
1764 #: ../src/guestfs.pod:763
1765 msgid "LIBGUESTFS GOTCHAS"
1766 msgstr ""
1767
1768 # type: textblock
1769 #. type: textblock
1770 #: ../src/guestfs.pod:765
1771 msgid ""
1772 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1773 "system [...] that works in the way it is documented but is counterintuitive "
1774 "and almost invites mistakes.\""
1775 msgstr ""
1776
1777 # type: textblock
1778 #. type: textblock
1779 #: ../src/guestfs.pod:769
1780 msgid ""
1781 "Since we developed libguestfs and the associated tools, there are several "
1782 "things we would have designed differently, but are now stuck with for "
1783 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1784 "release, you can expect these to change.  Beware of them."
1785 msgstr ""
1786
1787 # type: =item
1788 #. type: =item
1789 #: ../src/guestfs.pod:777
1790 msgid "Autosync / forgetting to sync."
1791 msgstr ""
1792
1793 # type: textblock
1794 #. type: textblock
1795 #: ../src/guestfs.pod:779
1796 msgid ""
1797 "When modifying a filesystem from C or another language, you B<must> unmount "
1798 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1799 "libguestfs handle.  You can also call:"
1800 msgstr ""
1801
1802 # type: verbatim
1803 #. type: verbatim
1804 #: ../src/guestfs.pod:783
1805 #, no-wrap
1806 msgid ""
1807 " guestfs_set_autosync (g, 1);\n"
1808 "\n"
1809 msgstr ""
1810
1811 # type: textblock
1812 #. type: textblock
1813 #: ../src/guestfs.pod:785
1814 msgid ""
1815 "to have the unmount/sync done automatically for you when the handle 'g' is "
1816 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1817 msgstr ""
1818
1819 # type: textblock
1820 #. type: textblock
1821 #: ../src/guestfs.pod:789
1822 msgid ""
1823 "If you forget to do this, then it is entirely possible that your changes "
1824 "won't be written out, or will be partially written, or (very rarely) that "
1825 "you'll get disk corruption."
1826 msgstr ""
1827
1828 # type: textblock
1829 #. type: textblock
1830 #: ../src/guestfs.pod:793
1831 msgid ""
1832 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1833 "guestfish scripts that forget to sync will work just fine, which can make "
1834 "this very puzzling if you are trying to debug a problem."
1835 msgstr ""
1836
1837 # type: textblock
1838 #. type: textblock
1839 #: ../src/guestfs.pod:797
1840 msgid ""
1841 "Update: Autosync is enabled by default for all API users starting from "
1842 "libguestfs 1.5.24."
1843 msgstr ""
1844
1845 # type: =item
1846 #. type: =item
1847 #: ../src/guestfs.pod:800
1848 msgid "Mount option C<-o sync> should not be the default."
1849 msgstr ""
1850
1851 # type: textblock
1852 #. type: textblock
1853 #: ../src/guestfs.pod:802
1854 msgid ""
1855 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1856 "However C<-o sync> does not add any reliability benefit, but does have a "
1857 "very large performance impact."
1858 msgstr ""
1859
1860 # type: textblock
1861 #. type: textblock
1862 #: ../src/guestfs.pod:806
1863 msgid ""
1864 "The work around is to use L</guestfs_mount_options> and set the mount "
1865 "options that you actually want to use."
1866 msgstr ""
1867
1868 # type: =item
1869 #. type: =item
1870 #: ../src/guestfs.pod:809
1871 msgid "Read-only should be the default."
1872 msgstr ""
1873
1874 # type: textblock
1875 #. type: textblock
1876 #: ../src/guestfs.pod:811
1877 msgid ""
1878 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1879 "specify I<--rw> if you want to make changes to the image."
1880 msgstr ""
1881
1882 # type: textblock
1883 #. type: textblock
1884 #: ../src/guestfs.pod:814
1885 msgid "This would reduce the potential to corrupt live VM images."
1886 msgstr ""
1887
1888 # type: textblock
1889 #. type: textblock
1890 #: ../src/guestfs.pod:816
1891 msgid ""
1892 "Note that many filesystems change the disk when you just mount and unmount, "
1893 "even if you didn't perform any writes.  You need to use L</"
1894 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1895 msgstr ""
1896
1897 # type: =item
1898 #. type: =item
1899 #: ../src/guestfs.pod:820
1900 msgid "guestfish command line is hard to use."
1901 msgstr ""
1902
1903 # type: textblock
1904 #. type: textblock
1905 #: ../src/guestfs.pod:822
1906 msgid ""
1907 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1908 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1909 "exist, so it fails.  In earlier versions of guestfish the error message was "
1910 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1911 "we should have used C<guestfish -c command> to run commands."
1912 msgstr ""
1913
1914 # type: =item
1915 #. type: =item
1916 #: ../src/guestfs.pod:829
1917 msgid "guestfish megabyte modifiers don't work right on all commands"
1918 msgstr ""
1919
1920 # type: textblock
1921 #. type: textblock
1922 #: ../src/guestfs.pod:831
1923 msgid ""
1924 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1925 "other modifiers).  What guestfish actually does is to multiply the number "
1926 "part by the modifier part and pass the result to the C API.  However this "
1927 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1928 "expecting some other unit (eg. megabytes)."
1929 msgstr ""
1930
1931 # type: textblock
1932 #. type: textblock
1933 #: ../src/guestfs.pod:838
1934 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1935 msgstr ""
1936
1937 # type: verbatim
1938 #. type: verbatim
1939 #: ../src/guestfs.pod:840
1940 #, no-wrap
1941 msgid ""
1942 " lvcreate LV VG 100M\n"
1943 "\n"
1944 msgstr ""
1945
1946 # type: textblock
1947 #. type: textblock
1948 #: ../src/guestfs.pod:842
1949 msgid ""
1950 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1951 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1952 "megabytes * megabytes) logical volume.  The error message you get from this "
1953 "is also a little obscure."
1954 msgstr ""
1955
1956 # type: textblock
1957 #. type: textblock
1958 #: ../src/guestfs.pod:847
1959 msgid ""
1960 "This could be fixed in the generator by specially marking parameters and "
1961 "return values which take bytes or other units."
1962 msgstr ""
1963
1964 # type: =item
1965 #. type: =item
1966 #: ../src/guestfs.pod:850
1967 msgid "Ambiguity between devices and paths"
1968 msgstr ""
1969
1970 # type: textblock
1971 #. type: textblock
1972 #: ../src/guestfs.pod:852
1973 msgid ""
1974 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1975 "sdb2>) and a similar pathname.  A file might just happen to be called "
1976 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1977 msgstr ""
1978
1979 # type: textblock
1980 #. type: textblock
1981 #: ../src/guestfs.pod:857
1982 msgid ""
1983 "In the current API we usually resolve this ambiguity by having two separate "
1984 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1985 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1986 "detecting if the path supplied begins with C</dev/>."
1987 msgstr ""
1988
1989 # type: textblock
1990 #. type: textblock
1991 #: ../src/guestfs.pod:863
1992 msgid ""
1993 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1994 "make paths/devices into structured names.  One way to do this would be to "
1995 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1996 "aspect of grub.  Another way would be to use a structured type, equivalent "
1997 "to this OCaml type:"
1998 msgstr ""
1999
2000 # type: verbatim
2001 #. type: verbatim
2002 #: ../src/guestfs.pod:869
2003 #, no-wrap
2004 msgid ""
2005 " type path = Path of string | Device of int | Partition of int * int\n"
2006 "\n"
2007 msgstr ""
2008
2009 # type: textblock
2010 #. type: textblock
2011 #: ../src/guestfs.pod:871
2012 msgid "which would allow you to pass arguments like:"
2013 msgstr ""
2014
2015 # type: verbatim
2016 #. type: verbatim
2017 #: ../src/guestfs.pod:873
2018 #, no-wrap
2019 msgid ""
2020 " Path \"/foo/bar\"\n"
2021 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2022 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2023 " Path \"/dev/sdb2\"    (* not a device *)\n"
2024 "\n"
2025 msgstr ""
2026
2027 # type: textblock
2028 #. type: textblock
2029 #: ../src/guestfs.pod:878
2030 msgid ""
2031 "As you can see there are still problems to resolve even with this "
2032 "representation.  Also consider how it might work in guestfish."
2033 msgstr ""
2034
2035 # type: =head2
2036 #. type: =head2
2037 #: ../src/guestfs.pod:883
2038 msgid "PROTOCOL LIMITS"
2039 msgstr ""
2040
2041 # type: textblock
2042 #. type: textblock
2043 #: ../src/guestfs.pod:885
2044 msgid ""
2045 "Internally libguestfs uses a message-based protocol to pass API calls and "
2046 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2047 "plenty more detail about this).  The maximum message size used by the "
2048 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2049 "aware of this limit.  The API calls which may be affected are individually "
2050 "documented, with a link back to this section of the documentation."
2051 msgstr ""
2052
2053 # type: textblock
2054 #. type: textblock
2055 #: ../src/guestfs.pod:893
2056 msgid ""
2057 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2058 "a simple string.  Because this string is at some point internally encoded as "
2059 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2060 "the requested file is larger than this then you will get an error."
2061 msgstr ""
2062
2063 # type: textblock
2064 #. type: textblock
2065 #: ../src/guestfs.pod:899
2066 msgid ""
2067 "In order to transfer large files into and out of the guest filesystem, you "
2068 "need to use particular calls that support this.  The sections L</UPLOADING> "
2069 "and L</DOWNLOADING> document how to do this."
2070 msgstr ""
2071
2072 # type: textblock
2073 #. type: textblock
2074 #: ../src/guestfs.pod:903
2075 msgid ""
2076 "You might also consider mounting the disk image using our FUSE filesystem "
2077 "support (L<guestmount(1)>)."
2078 msgstr ""
2079
2080 # type: =head2
2081 #. type: =head2
2082 #: ../src/guestfs.pod:906
2083 msgid "KEYS AND PASSPHRASES"
2084 msgstr ""
2085
2086 # type: textblock
2087 #. type: textblock
2088 #: ../src/guestfs.pod:908
2089 msgid ""
2090 "Certain libguestfs calls take a parameter that contains sensitive key "
2091 "material, passed in as a C string."
2092 msgstr ""
2093
2094 # type: textblock
2095 #. type: textblock
2096 #: ../src/guestfs.pod:911
2097 msgid ""
2098 "In the future we would hope to change the libguestfs implementation so that "
2099 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2100 "swap.  However this is I<not> done at the moment, because of the complexity "
2101 "of such an implementation."
2102 msgstr ""
2103
2104 # type: textblock
2105 #. type: textblock
2106 #: ../src/guestfs.pod:916
2107 msgid ""
2108 "Therefore you should be aware that any key parameter you pass to libguestfs "
2109 "might end up being written out to the swap partition.  If this is a concern, "
2110 "scrub the swap partition or don't use libguestfs on encrypted devices."
2111 msgstr ""
2112
2113 # type: =head1
2114 #. type: =head2
2115 #: ../src/guestfs.pod:921
2116 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2117 msgstr ""
2118
2119 # type: textblock
2120 #. type: textblock
2121 #: ../src/guestfs.pod:923
2122 msgid ""
2123 "All high-level libguestfs actions are synchronous.  If you want to use "
2124 "libguestfs asynchronously then you must create a thread."
2125 msgstr ""
2126
2127 # type: textblock
2128 #. type: textblock
2129 #: ../src/guestfs.pod:926
2130 msgid ""
2131 "Only use the handle from a single thread.  Either use the handle exclusively "
2132 "from one thread, or provide your own mutex so that two threads cannot issue "
2133 "calls on the same handle at the same time."
2134 msgstr ""
2135
2136 # type: textblock
2137 #. type: textblock
2138 #: ../src/guestfs.pod:930
2139 msgid ""
2140 "See the graphical program guestfs-browser for one possible architecture for "
2141 "multithreaded programs using libvirt and libguestfs."
2142 msgstr ""
2143
2144 # type: =head1
2145 #. type: =head2
2146 #: ../src/guestfs.pod:933
2147 msgid "PATH"
2148 msgstr ""
2149
2150 # type: textblock
2151 #. type: textblock
2152 #: ../src/guestfs.pod:935
2153 msgid ""
2154 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #. type: textblock
2160 #: ../src/guestfs.pod:938
2161 msgid ""
2162 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2163 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2164 msgstr ""
2165
2166 # type: textblock
2167 #. type: textblock
2168 #: ../src/guestfs.pod:941
2169 msgid ""
2170 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2171 "to change the directories that libguestfs will search in.  The value is a "
2172 "colon-separated list of paths.  The current directory is I<not> searched "
2173 "unless the path contains an empty element or C<.>.  For example "
2174 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2175 "then C</usr/lib/guestfs>."
2176 msgstr ""
2177
2178 # type: =head1
2179 #. type: =head2
2180 #: ../src/guestfs.pod:948
2181 msgid "QEMU WRAPPERS"
2182 msgstr ""
2183
2184 # type: textblock
2185 #. type: textblock
2186 #: ../src/guestfs.pod:950
2187 msgid ""
2188 "If you want to compile your own qemu, run qemu from a non-standard location, "
2189 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2190 "around qemu."
2191 msgstr ""
2192
2193 # type: textblock
2194 #. type: textblock
2195 #: ../src/guestfs.pod:954
2196 msgid ""
2197 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2198 "last command in the shell script (so that qemu replaces the shell and "
2199 "becomes the direct child of the libguestfs-using program).  If you don't do "
2200 "this, then the qemu process won't be cleaned up correctly."
2201 msgstr ""
2202
2203 # type: textblock
2204 #. type: textblock
2205 #: ../src/guestfs.pod:959
2206 msgid ""
2207 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2208 "source:"
2209 msgstr ""
2210
2211 # type: verbatim
2212 #. type: verbatim
2213 #: ../src/guestfs.pod:962
2214 #, no-wrap
2215 msgid ""
2216 " #!/bin/sh -\n"
2217 " qemudir=/home/rjones/d/qemu\n"
2218 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2219 "\n"
2220 msgstr ""
2221
2222 # type: textblock
2223 #. type: textblock
2224 #: ../src/guestfs.pod:966
2225 msgid ""
2226 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2227 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2228 "example:"
2229 msgstr ""
2230
2231 # type: verbatim
2232 #. type: verbatim
2233 #: ../src/guestfs.pod:970
2234 #, no-wrap
2235 msgid ""
2236 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2237 "\n"
2238 msgstr ""
2239
2240 # type: textblock
2241 #. type: textblock
2242 #: ../src/guestfs.pod:972
2243 msgid ""
2244 "Note that libguestfs also calls qemu with the -help and -version options in "
2245 "order to determine features."
2246 msgstr ""
2247
2248 # type: =head2
2249 #. type: =head2
2250 #: ../src/guestfs.pod:975
2251 msgid "ABI GUARANTEE"
2252 msgstr ""
2253
2254 # type: textblock
2255 #. type: textblock
2256 #: ../src/guestfs.pod:977
2257 msgid ""
2258 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2259 "actions as outlined in this section.  Although we will deprecate some "
2260 "actions, for example if they get replaced by newer calls, we will keep the "
2261 "old actions forever.  This allows you the developer to program in confidence "
2262 "against the libguestfs API."
2263 msgstr ""
2264
2265 # type: =head1
2266 #. type: =head2
2267 #: ../src/guestfs.pod:983
2268 msgid "BLOCK DEVICE NAMING"
2269 msgstr ""
2270
2271 # type: textblock
2272 #. type: textblock
2273 #: ../src/guestfs.pod:985
2274 msgid ""
2275 "In the kernel there is now quite a profusion of schemata for naming block "
2276 "devices (in this context, by I<block device> I mean a physical or virtual "
2277 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2278 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2279 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2280 "for the old IDE driver (particularly for SATA devices) those devices also "
2281 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2282 "paravirtualized drivers.  This has created several different naming systems, "
2283 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2284 msgstr ""
2285
2286 # type: textblock
2287 #. type: textblock
2288 #: ../src/guestfs.pod:997
2289 msgid ""
2290 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2291 "Linux kernel to access block devices.  We can run a variety of appliances "
2292 "based on a variety of Linux kernels."
2293 msgstr ""
2294
2295 # type: textblock
2296 #. type: textblock
2297 #: ../src/guestfs.pod:1001
2298 msgid ""
2299 "This causes a problem for libguestfs because many API calls use device or "
2300 "partition names.  Working scripts and the recipe (example) scripts that we "
2301 "make available over the internet could fail if the naming scheme changes."
2302 msgstr ""
2303
2304 # type: textblock
2305 #. type: textblock
2306 #: ../src/guestfs.pod:1006
2307 msgid ""
2308 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2309 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2310 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2311 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2312 msgstr ""
2313
2314 # type: textblock
2315 #. type: textblock
2316 #: ../src/guestfs.pod:1012
2317 msgid ""
2318 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2319 "L</guestfs_list_partitions> and similar calls return the true names of the "
2320 "devices and partitions as known to the appliance."
2321 msgstr ""
2322
2323 # type: =head2
2324 #. type: =head3
2325 #: ../src/guestfs.pod:1017
2326 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2327 msgstr ""
2328
2329 # type: textblock
2330 #. type: textblock
2331 #: ../src/guestfs.pod:1019
2332 msgid ""
2333 "Usually this translation is transparent.  However in some (very rare)  cases "
2334 "you may need to know the exact algorithm.  Such cases include where you use "
2335 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2336 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2337 msgstr ""
2338
2339 # type: textblock
2340 #. type: textblock
2341 #: ../src/guestfs.pod:1025
2342 msgid ""
2343 "The algorithm is applied only to I<parameters> which are known to be either "
2344 "device or partition names.  Return values from functions such as L</"
2345 "guestfs_list_devices> are never changed."
2346 msgstr ""
2347
2348 # type: textblock
2349 #. type: textblock
2350 #: ../src/guestfs.pod:1033
2351 msgid "Is the string a parameter which is a device or partition name?"
2352 msgstr ""
2353
2354 # type: textblock
2355 #. type: textblock
2356 #: ../src/guestfs.pod:1037
2357 msgid "Does the string begin with C</dev/sd>?"
2358 msgstr ""
2359
2360 # type: textblock
2361 #. type: textblock
2362 #: ../src/guestfs.pod:1041
2363 msgid ""
2364 "Does the named device exist? If so, we use that device.  However if I<not> "
2365 "then we continue with this algorithm."
2366 msgstr ""
2367
2368 # type: textblock
2369 #. type: textblock
2370 #: ../src/guestfs.pod:1046
2371 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2372 msgstr ""
2373
2374 # type: textblock
2375 #. type: textblock
2376 #: ../src/guestfs.pod:1048
2377 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2378 msgstr ""
2379
2380 # type: textblock
2381 #. type: textblock
2382 #: ../src/guestfs.pod:1050
2383 msgid "If that named device exists, use it.  If not, continue."
2384 msgstr ""
2385
2386 # type: textblock
2387 #. type: textblock
2388 #: ../src/guestfs.pod:1054
2389 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2390 msgstr ""
2391
2392 # type: textblock
2393 #. type: textblock
2394 #: ../src/guestfs.pod:1056
2395 msgid "If that named device exists, use it.  If not, return an error."
2396 msgstr ""
2397
2398 # type: =head3
2399 #. type: =head3
2400 #: ../src/guestfs.pod:1060
2401 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2402 msgstr ""
2403
2404 # type: textblock
2405 #. type: textblock
2406 #: ../src/guestfs.pod:1062
2407 msgid ""
2408 "Although the standard naming scheme and automatic translation is useful for "
2409 "simple programs and guestfish scripts, for larger programs it is best not to "
2410 "rely on this mechanism."
2411 msgstr ""
2412
2413 # type: textblock
2414 #. type: textblock
2415 #: ../src/guestfs.pod:1066
2416 msgid ""
2417 "Where possible for maximum future portability programs using libguestfs "
2418 "should use these future-proof techniques:"
2419 msgstr ""
2420
2421 # type: textblock
2422 #. type: textblock
2423 #: ../src/guestfs.pod:1073
2424 msgid ""
2425 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2426 "device names, and then use those names directly."
2427 msgstr ""
2428
2429 # type: textblock
2430 #. type: textblock
2431 #: ../src/guestfs.pod:1076
2432 msgid ""
2433 "Since those device names exist by definition, they will never be translated."
2434 msgstr ""
2435
2436 # type: textblock
2437 #. type: textblock
2438 #: ../src/guestfs.pod:1081
2439 msgid ""
2440 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2441 "filesystem labels."
2442 msgstr ""
2443
2444 # type: =head1
2445 #. type: =head1
2446 #: ../src/guestfs.pod:1086
2447 msgid "SECURITY"
2448 msgstr ""
2449
2450 # type: textblock
2451 #. type: textblock
2452 #: ../src/guestfs.pod:1088
2453 msgid ""
2454 "This section discusses security implications of using libguestfs, "
2455 "particularly with untrusted or malicious guests or disk images."
2456 msgstr ""
2457
2458 # type: =head2
2459 #. type: =head2
2460 #: ../src/guestfs.pod:1091
2461 msgid "GENERAL SECURITY CONSIDERATIONS"
2462 msgstr ""
2463
2464 # type: textblock
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1093
2467 msgid ""
2468 "Be careful with any files or data that you download from a guest (by "
2469 "\"download\" we mean not just the L</guestfs_download> command but any "
2470 "command that reads files, filenames, directories or anything else from a "
2471 "disk image).  An attacker could manipulate the data to fool your program "
2472 "into doing the wrong thing.  Consider cases such as:"
2473 msgstr ""
2474
2475 # type: textblock
2476 #. type: textblock
2477 #: ../src/guestfs.pod:1103
2478 msgid "the data (file etc) not being present"
2479 msgstr ""
2480
2481 # type: textblock
2482 #. type: textblock
2483 #: ../src/guestfs.pod:1107
2484 msgid "being present but empty"
2485 msgstr ""
2486
2487 # type: textblock
2488 #. type: textblock
2489 #: ../src/guestfs.pod:1111
2490 msgid "being much larger than normal"
2491 msgstr ""
2492
2493 # type: textblock
2494 #. type: textblock
2495 #: ../src/guestfs.pod:1115
2496 msgid "containing arbitrary 8 bit data"
2497 msgstr ""
2498
2499 # type: textblock
2500 #. type: textblock
2501 #: ../src/guestfs.pod:1119
2502 msgid "being in an unexpected character encoding"
2503 msgstr ""
2504
2505 # type: textblock
2506 #. type: textblock
2507 #: ../src/guestfs.pod:1123
2508 msgid "containing homoglyphs."
2509 msgstr ""
2510
2511 # type: =head2
2512 #. type: =head2
2513 #: ../src/guestfs.pod:1127
2514 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2515 msgstr ""
2516
2517 # type: textblock
2518 #. type: textblock
2519 #: ../src/guestfs.pod:1129
2520 msgid ""
2521 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2522 "(VFS) module can sometimes be escalated into exploits by deliberately "
2523 "creating a malicious, malformed filesystem.  These exploits are very severe "
2524 "for two reasons.  Firstly there are very many filesystem drivers in the "
2525 "kernel, and many of them are infrequently used and not much developer "
2526 "attention has been paid to the code.  Linux userspace helps potential "
2527 "crackers by detecting the filesystem type and automatically choosing the "
2528 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2529 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2530 "exploit (worse in some ways), giving immediate and total access to the "
2531 "system right down to the hardware level."
2532 msgstr ""
2533
2534 # type: textblock
2535 #. type: textblock
2536 #: ../src/guestfs.pod:1142
2537 msgid ""
2538 "That explains why you should never mount a filesystem from an untrusted "
2539 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2540 "inside a qemu virtual machine, usually running as a non-root user.  The "
2541 "attacker would need to write a filesystem which first exploited the kernel, "
2542 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2543 "the libguestfs protocol, and finally to be as serious as the host kernel "
2544 "exploit it would need to escalate its privileges to root.  This multi-step "
2545 "escalation, performed by a static piece of data, is thought to be extremely "
2546 "hard to do, although we never say 'never' about security issues."
2547 msgstr ""
2548
2549 # type: textblock
2550 #. type: textblock
2551 #: ../src/guestfs.pod:1153
2552 msgid ""
2553 "In any case callers can reduce the attack surface by forcing the filesystem "
2554 "type when mounting (use L</guestfs_mount_vfs>)."
2555 msgstr ""
2556
2557 # type: =head2
2558 #. type: =head2
2559 #: ../src/guestfs.pod:1156
2560 msgid "PROTOCOL SECURITY"
2561 msgstr ""
2562
2563 # type: textblock
2564 #. type: textblock
2565 #: ../src/guestfs.pod:1158
2566 msgid ""
2567 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2568 "defined upper message size.  However a program that uses libguestfs must "
2569 "also take care - for example you can write a program that downloads a binary "
2570 "from a disk image and executes it locally, and no amount of protocol "
2571 "security will save you from the consequences."
2572 msgstr ""
2573
2574 # type: =head2
2575 #. type: =head2
2576 #: ../src/guestfs.pod:1164
2577 msgid "INSPECTION SECURITY"
2578 msgstr ""
2579
2580 # type: textblock
2581 #. type: textblock
2582 #: ../src/guestfs.pod:1166
2583 msgid ""
2584 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2585 "directly from the guest, and these could contain any 8 bit data.  Callers "
2586 "should be careful to escape these before printing them to a structured file "
2587 "(for example, use HTML escaping if creating a web page)."
2588 msgstr ""
2589
2590 # type: textblock
2591 #. type: textblock
2592 #: ../src/guestfs.pod:1172
2593 msgid ""
2594 "Guest configuration may be altered in unusual ways by the administrator of "
2595 "the virtual machine, and may not reflect reality (particularly for untrusted "
2596 "or actively malicious guests).  For example we parse the hostname from "
2597 "configuration files like C</etc/sysconfig/network> that we find in the "
2598 "guest, but the guest administrator can easily manipulate these files to "
2599 "provide the wrong hostname."
2600 msgstr ""
2601
2602 # type: textblock
2603 #. type: textblock
2604 #: ../src/guestfs.pod:1180
2605 msgid ""
2606 "The inspection API parses guest configuration using two external libraries: "
2607 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2608 "designed to be robust in the face of malicious data, although denial of "
2609 "service attacks are still possible, for example with oversized configuration "
2610 "files."
2611 msgstr ""
2612
2613 # type: =head2
2614 #. type: =head2
2615 #: ../src/guestfs.pod:1186
2616 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2617 msgstr ""
2618
2619 # type: textblock
2620 #. type: textblock
2621 #: ../src/guestfs.pod:1188
2622 msgid ""
2623 "Be very cautious about running commands from the guest.  By running a "
2624 "command in the guest, you are giving CPU time to a binary that you do not "
2625 "control, under the same user account as the library, albeit wrapped in qemu "
2626 "virtualization.  More information and alternatives can be found in the "
2627 "section L</RUNNING COMMANDS>."
2628 msgstr ""
2629
2630 # type: =head2
2631 #. type: =head2
2632 #: ../src/guestfs.pod:1194
2633 msgid "CVE-2010-3851"
2634 msgstr ""
2635
2636 # type: textblock
2637 #. type: textblock
2638 #: ../src/guestfs.pod:1196
2639 msgid "https://bugzilla.redhat.com/642934"
2640 msgstr ""
2641
2642 # type: textblock
2643 #. type: textblock
2644 #: ../src/guestfs.pod:1198
2645 msgid ""
2646 "This security bug concerns the automatic disk format detection that qemu "
2647 "does on disk images."
2648 msgstr ""
2649
2650 # type: textblock
2651 #. type: textblock
2652 #: ../src/guestfs.pod:1201
2653 msgid ""
2654 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2655 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2656 "for one of the known headers, and if none is found then assuming the disk "
2657 "image must be raw."
2658 msgstr ""
2659
2660 # type: textblock
2661 #. type: textblock
2662 #: ../src/guestfs.pod:1206
2663 msgid ""
2664 "This allows a guest which has been given a raw disk image to write some "
2665 "other header.  At next boot (or when the disk image is accessed by "
2666 "libguestfs) qemu would do autodetection and think the disk image format was, "
2667 "say, qcow2 based on the header written by the guest."
2668 msgstr ""
2669
2670 # type: textblock
2671 #. type: textblock
2672 #: ../src/guestfs.pod:1211
2673 msgid ""
2674 "This in itself would not be a problem, but qcow2 offers many features, one "
2675 "of which is to allow a disk image to refer to another image (called the "
2676 "\"backing disk\").  It does this by placing the path to the backing disk "
2677 "into the qcow2 header.  This path is not validated and could point to any "
2678 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2679 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2680 "control of the attacker."
2681 msgstr ""
2682
2683 # type: textblock
2684 #. type: textblock
2685 #: ../src/guestfs.pod:1219
2686 msgid ""
2687 "In libguestfs this is rather hard to exploit except under two circumstances:"
2688 msgstr ""
2689
2690 # type: textblock
2691 #. type: textblock
2692 #: ../src/guestfs.pod:1226
2693 msgid "You have enabled the network or have opened the disk in write mode."
2694 msgstr ""
2695
2696 # type: textblock
2697 #. type: textblock
2698 #: ../src/guestfs.pod:1230
2699 msgid ""
2700 "You are also running untrusted code from the guest (see L</RUNNING "
2701 "COMMANDS>)."
2702 msgstr ""
2703
2704 # type: textblock
2705 #. type: textblock
2706 #: ../src/guestfs.pod:1235
2707 msgid ""
2708 "The way to avoid this is to specify the expected disk format when adding "
2709 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2710 "should always do this if the disk is raw format, and it's a good idea for "
2711 "other cases too."
2712 msgstr ""
2713
2714 # type: textblock
2715 #. type: textblock
2716 #: ../src/guestfs.pod:1240
2717 msgid ""
2718 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2719 "format is fetched from libvirt and passed through."
2720 msgstr ""
2721
2722 # type: textblock
2723 #. type: textblock
2724 #: ../src/guestfs.pod:1243
2725 msgid ""
2726 "For libguestfs tools, use the I<--format> command line parameter as "
2727 "appropriate."
2728 msgstr ""
2729
2730 # type: =head1
2731 #. type: =head1
2732 #: ../src/guestfs.pod:1246
2733 msgid "CONNECTION MANAGEMENT"
2734 msgstr ""
2735
2736 # type: =head2
2737 #. type: =head2
2738 #: ../src/guestfs.pod:1248
2739 msgid "guestfs_h *"
2740 msgstr ""
2741
2742 # type: textblock
2743 #. type: textblock
2744 #: ../src/guestfs.pod:1250
2745 msgid ""
2746 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2747 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2748 "handle and release all resources used."
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1254
2754 msgid ""
2755 "For information on using multiple handles and threads, see the section L</"
2756 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2757 msgstr ""
2758
2759 # type: =head2
2760 #. type: =head2
2761 #: ../src/guestfs.pod:1257
2762 msgid "guestfs_create"
2763 msgstr ""
2764
2765 # type: verbatim
2766 #. type: verbatim
2767 #: ../src/guestfs.pod:1259
2768 #, no-wrap
2769 msgid ""
2770 " guestfs_h *guestfs_create (void);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #. type: textblock
2776 #: ../src/guestfs.pod:1261
2777 msgid "Create a connection handle."
2778 msgstr ""
2779
2780 # type: textblock
2781 #. type: textblock
2782 #: ../src/guestfs.pod:1263
2783 msgid ""
2784 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2785 "on the handle at least once."
2786 msgstr ""
2787
2788 # type: textblock
2789 #. type: textblock
2790 #: ../src/guestfs.pod:1266
2791 msgid ""
2792 "This function returns a non-NULL pointer to a handle on success or NULL on "
2793 "error."
2794 msgstr ""
2795
2796 # type: textblock
2797 #. type: textblock
2798 #: ../src/guestfs.pod:1269
2799 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2800 msgstr ""
2801
2802 # type: textblock
2803 #. type: textblock
2804 #: ../src/guestfs.pod:1271
2805 msgid ""
2806 "You may also want to configure error handling for the handle.  See L</ERROR "
2807 "HANDLING> section below."
2808 msgstr ""
2809
2810 # type: =head2
2811 #. type: =head2
2812 #: ../src/guestfs.pod:1274
2813 msgid "guestfs_close"
2814 msgstr ""
2815
2816 # type: verbatim
2817 #. type: verbatim
2818 #: ../src/guestfs.pod:1276
2819 #, no-wrap
2820 msgid ""
2821 " void guestfs_close (guestfs_h *g);\n"
2822 "\n"
2823 msgstr ""
2824
2825 # type: textblock
2826 #. type: textblock
2827 #: ../src/guestfs.pod:1278
2828 msgid "This closes the connection handle and frees up all resources used."
2829 msgstr ""
2830
2831 # type: =head1
2832 #. type: =head1
2833 #: ../src/guestfs.pod:1280
2834 msgid "ERROR HANDLING"
2835 msgstr ""
2836
2837 # type: textblock
2838 #. type: textblock
2839 #: ../src/guestfs.pod:1282
2840 msgid ""
2841 "API functions can return errors.  For example, almost all functions that "
2842 "return C<int> will return C<-1> to indicate an error."
2843 msgstr ""
2844
2845 # type: textblock
2846 #. type: textblock
2847 #: ../src/guestfs.pod:1285
2848 msgid ""
2849 "Additional information is available for errors: an error message string and "
2850 "optionally an error number (errno) if the thing that failed was a system "
2851 "call."
2852 msgstr ""
2853
2854 # type: textblock
2855 #. type: textblock
2856 #: ../src/guestfs.pod:1289
2857 msgid ""
2858 "You can get at the additional information about the last error on the handle "
2859 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2860 "up an error handler with L</guestfs_set_error_handler>."
2861 msgstr ""
2862
2863 # type: textblock
2864 #. type: textblock
2865 #: ../src/guestfs.pod:1294
2866 msgid ""
2867 "When the handle is created, a default error handler is installed which "
2868 "prints the error message string to C<stderr>.  For small short-running "
2869 "command line programs it is sufficient to do:"
2870 msgstr ""
2871
2872 # type: verbatim
2873 #. type: verbatim
2874 #: ../src/guestfs.pod:1298
2875 #, no-wrap
2876 msgid ""
2877 " if (guestfs_launch (g) == -1)\n"
2878 "   exit (EXIT_FAILURE);\n"
2879 "\n"
2880 msgstr ""
2881
2882 # type: textblock
2883 #. type: textblock
2884 #: ../src/guestfs.pod:1301
2885 msgid ""
2886 "since the default error handler will ensure that an error message has been "
2887 "printed to C<stderr> before the program exits."
2888 msgstr ""
2889
2890 # type: textblock
2891 #. type: textblock
2892 #: ../src/guestfs.pod:1304
2893 msgid ""
2894 "For other programs the caller will almost certainly want to install an "
2895 "alternate error handler or do error handling in-line like this:"
2896 msgstr ""
2897
2898 # type: verbatim
2899 #. type: verbatim
2900 #: ../src/guestfs.pod:1307
2901 #, no-wrap
2902 msgid ""
2903 " g = guestfs_create ();\n"
2904 " \n"
2905 msgstr ""
2906
2907 # type: verbatim
2908 #. type: verbatim
2909 #: ../src/guestfs.pod:1309
2910 #, no-wrap
2911 msgid ""
2912 " /* This disables the default behaviour of printing errors\n"
2913 "    on stderr. */\n"
2914 " guestfs_set_error_handler (g, NULL, NULL);\n"
2915 " \n"
2916 msgstr ""
2917
2918 # type: verbatim
2919 #. type: verbatim
2920 #: ../src/guestfs.pod:1313
2921 #, no-wrap
2922 msgid ""
2923 " if (guestfs_launch (g) == -1) {\n"
2924 "   /* Examine the error message and print it etc. */\n"
2925 "   char *msg = guestfs_last_error (g);\n"
2926 "   int errnum = guestfs_last_errno (g);\n"
2927 "   fprintf (stderr, \"%s\\n\", msg);\n"
2928 "   /* ... */\n"
2929 "  }\n"
2930 "\n"
2931 msgstr ""
2932
2933 # type: textblock
2934 #. type: textblock
2935 #: ../src/guestfs.pod:1321
2936 msgid ""
2937 "Out of memory errors are handled differently.  The default action is to call "
2938 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2939 "guestfs_set_out_of_memory_handler>."
2940 msgstr ""
2941
2942 # type: textblock
2943 #. type: textblock
2944 #: ../src/guestfs.pod:1325
2945 msgid ""
2946 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2947 "because there is no handle if this happens there is no way to get additional "
2948 "error information.  However L</guestfs_create> is supposed to be a "
2949 "lightweight operation which can only fail because of insufficient memory (it "
2950 "returns NULL in this case)."
2951 msgstr ""
2952
2953 # type: =head2
2954 #. type: =head2
2955 #: ../src/guestfs.pod:1331
2956 msgid "guestfs_last_error"
2957 msgstr ""
2958
2959 # type: verbatim
2960 #. type: verbatim
2961 #: ../src/guestfs.pod:1333
2962 #, no-wrap
2963 msgid ""
2964 " const char *guestfs_last_error (guestfs_h *g);\n"
2965 "\n"
2966 msgstr ""
2967
2968 # type: textblock
2969 #. type: textblock
2970 #: ../src/guestfs.pod:1335
2971 msgid ""
2972 "This returns the last error message that happened on C<g>.  If there has not "
2973 "been an error since the handle was created, then this returns C<NULL>."
2974 msgstr ""
2975
2976 # type: textblock
2977 #. type: textblock
2978 #: ../src/guestfs.pod:1339
2979 msgid ""
2980 "The lifetime of the returned string is until the next error occurs, or L</"
2981 "guestfs_close> is called."
2982 msgstr ""
2983
2984 # type: =head2
2985 #. type: =head2
2986 #: ../src/guestfs.pod:1342
2987 msgid "guestfs_last_errno"
2988 msgstr ""
2989
2990 # type: verbatim
2991 #. type: verbatim
2992 #: ../src/guestfs.pod:1344
2993 #, no-wrap
2994 msgid ""
2995 " int guestfs_last_errno (guestfs_h *g);\n"
2996 "\n"
2997 msgstr ""
2998
2999 # type: textblock
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1346
3002 msgid "This returns the last error number (errno) that happened on C<g>."
3003 msgstr ""
3004
3005 # type: textblock
3006 #. type: textblock
3007 #: ../src/guestfs.pod:1348
3008 msgid "If successful, an errno integer not equal to zero is returned."
3009 msgstr ""
3010
3011 # type: textblock
3012 #. type: textblock
3013 #: ../src/guestfs.pod:1350
3014 msgid ""
3015 "If no error, this returns 0.  This call can return 0 in three situations:"
3016 msgstr ""
3017
3018 # type: textblock
3019 #. type: textblock
3020 #: ../src/guestfs.pod:1357
3021 msgid "There has not been any error on the handle."
3022 msgstr ""
3023
3024 # type: textblock
3025 #. type: textblock
3026 #: ../src/guestfs.pod:1361
3027 msgid ""
3028 "There has been an error but the errno was meaningless.  This corresponds to "
3029 "the case where the error did not come from a failed system call, but for "
3030 "some other reason."
3031 msgstr ""
3032
3033 # type: textblock
3034 #. type: textblock
3035 #: ../src/guestfs.pod:1367
3036 msgid ""
3037 "There was an error from a failed system call, but for some reason the errno "
3038 "was not captured and returned.  This usually indicates a bug in libguestfs."
3039 msgstr ""
3040
3041 # type: textblock
3042 #. type: textblock
3043 #: ../src/guestfs.pod:1373
3044 msgid ""
3045 "Libguestfs tries to convert the errno from inside the applicance into a "
3046 "corresponding errno for the caller (not entirely trivial: the appliance "
3047 "might be running a completely different operating system from the library "
3048 "and error numbers are not standardized across Un*xen).  If this could not be "
3049 "done, then the error is translated to C<EINVAL>.  In practice this should "
3050 "only happen in very rare circumstances."
3051 msgstr ""
3052
3053 # type: =head2
3054 #. type: =head2
3055 #: ../src/guestfs.pod:1381
3056 msgid "guestfs_set_error_handler"
3057 msgstr ""
3058
3059 # type: verbatim
3060 #. type: verbatim
3061 #: ../src/guestfs.pod:1383
3062 #, no-wrap
3063 msgid ""
3064 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3065 "                                           void *opaque,\n"
3066 "                                           const char *msg);\n"
3067 " void guestfs_set_error_handler (guestfs_h *g,\n"
3068 "                                 guestfs_error_handler_cb cb,\n"
3069 "                                 void *opaque);\n"
3070 "\n"
3071 msgstr ""
3072
3073 # type: textblock
3074 #. type: textblock
3075 #: ../src/guestfs.pod:1390
3076 msgid ""
3077 "The callback C<cb> will be called if there is an error.  The parameters "
3078 "passed to the callback are an opaque data pointer and the error message "
3079 "string."
3080 msgstr ""
3081
3082 # type: textblock
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1394
3085 msgid ""
3086 "C<errno> is not passed to the callback.  To get that the callback must call "
3087 "L</guestfs_last_errno>."
3088 msgstr ""
3089
3090 # type: textblock
3091 #. type: textblock
3092 #: ../src/guestfs.pod:1397
3093 msgid ""
3094 "Note that the message string C<msg> is freed as soon as the callback "
3095 "function returns, so if you want to stash it somewhere you must make your "
3096 "own copy."
3097 msgstr ""
3098
3099 # type: textblock
3100 #. type: textblock
3101 #: ../src/guestfs.pod:1401
3102 msgid "The default handler prints messages on C<stderr>."
3103 msgstr ""
3104
3105 # type: textblock
3106 #. type: textblock
3107 #: ../src/guestfs.pod:1403
3108 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3109 msgstr ""
3110
3111 # type: =head2
3112 #. type: =head2
3113 #: ../src/guestfs.pod:1405
3114 msgid "guestfs_get_error_handler"
3115 msgstr ""
3116
3117 # type: verbatim
3118 #. type: verbatim
3119 #: ../src/guestfs.pod:1407
3120 #, no-wrap
3121 msgid ""
3122 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3123 "                                                     void **opaque_rtn);\n"
3124 "\n"
3125 msgstr ""
3126
3127 # type: textblock
3128 #. type: textblock
3129 #: ../src/guestfs.pod:1410
3130 msgid "Returns the current error handler callback."
3131 msgstr ""
3132
3133 # type: =head2
3134 #. type: =head2
3135 #: ../src/guestfs.pod:1412
3136 msgid "guestfs_set_out_of_memory_handler"
3137 msgstr ""
3138
3139 # type: verbatim
3140 #. type: verbatim
3141 #: ../src/guestfs.pod:1414
3142 #, no-wrap
3143 msgid ""
3144 " typedef void (*guestfs_abort_cb) (void);\n"
3145 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3146 "                                        guestfs_abort_cb);\n"
3147 "\n"
3148 msgstr ""
3149
3150 # type: textblock
3151 #. type: textblock
3152 #: ../src/guestfs.pod:1418
3153 msgid ""
3154 "The callback C<cb> will be called if there is an out of memory situation.  "
3155 "I<Note this callback must not return>."
3156 msgstr ""
3157
3158 # type: textblock
3159 #. type: textblock
3160 #: ../src/guestfs.pod:1421
3161 msgid "The default is to call L<abort(3)>."
3162 msgstr ""
3163
3164 # type: textblock
3165 #. type: textblock
3166 #: ../src/guestfs.pod:1423
3167 msgid ""
3168 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3169 msgstr ""
3170
3171 # type: =head2
3172 #. type: =head2
3173 #: ../src/guestfs.pod:1426
3174 msgid "guestfs_get_out_of_memory_handler"
3175 msgstr ""
3176
3177 # type: verbatim
3178 #. type: verbatim
3179 #: ../src/guestfs.pod:1428
3180 #, no-wrap
3181 msgid ""
3182 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3183 "\n"
3184 msgstr ""
3185
3186 # type: textblock
3187 #. type: textblock
3188 #: ../src/guestfs.pod:1430
3189 msgid "This returns the current out of memory handler."
3190 msgstr ""
3191
3192 # type: =head1
3193 #. type: =head1
3194 #: ../src/guestfs.pod:1432
3195 msgid "API CALLS"
3196 msgstr ""
3197
3198 # type: textblock
3199 #. type: textblock
3200 #: ../src/guestfs.pod:1434 ../fish/guestfish.pod:958
3201 msgid "@ACTIONS@"
3202 msgstr ""
3203
3204 # type: =head1
3205 #. type: =head1
3206 #: ../src/guestfs.pod:1436
3207 msgid "STRUCTURES"
3208 msgstr ""
3209
3210 # type: textblock
3211 #. type: textblock
3212 #: ../src/guestfs.pod:1438
3213 msgid "@STRUCTS@"
3214 msgstr ""
3215
3216 # type: =head1
3217 #. type: =head1
3218 #: ../src/guestfs.pod:1440
3219 msgid "AVAILABILITY"
3220 msgstr ""
3221
3222 # type: =head2
3223 #. type: =head2
3224 #: ../src/guestfs.pod:1442
3225 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3226 msgstr ""
3227
3228 # type: textblock
3229 #. type: textblock
3230 #: ../src/guestfs.pod:1444
3231 msgid ""
3232 "Using L</guestfs_available> you can test availability of the following "
3233 "groups of functions.  This test queries the appliance to see if the "
3234 "appliance you are currently using supports the functionality."
3235 msgstr ""
3236
3237 # type: textblock
3238 #. type: textblock
3239 #: ../src/guestfs.pod:1449
3240 msgid "@AVAILABILITY@"
3241 msgstr ""
3242
3243 # type: =head2
3244 #. type: =head2
3245 #: ../src/guestfs.pod:1451
3246 msgid "GUESTFISH supported COMMAND"
3247 msgstr ""
3248
3249 # type: textblock
3250 #. type: textblock
3251 #: ../src/guestfs.pod:1453
3252 msgid ""
3253 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3254 "prints out the available groups and whether they are supported by this build "
3255 "of libguestfs.  Note however that you have to do C<run> first."
3256 msgstr ""
3257
3258 # type: =head2
3259 #. type: =head2
3260 #: ../src/guestfs.pod:1458
3261 msgid "SINGLE CALLS AT COMPILE TIME"
3262 msgstr ""
3263
3264 # type: textblock
3265 #. type: textblock
3266 #: ../src/guestfs.pod:1460
3267 msgid ""
3268 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3269 "function, such as:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #. type: verbatim
3274 #: ../src/guestfs.pod:1463
3275 #, no-wrap
3276 msgid ""
3277 " #define LIBGUESTFS_HAVE_DD 1\n"
3278 "\n"
3279 msgstr ""
3280
3281 # type: textblock
3282 #. type: textblock
3283 #: ../src/guestfs.pod:1465
3284 msgid "if L</guestfs_dd> is available."
3285 msgstr ""
3286
3287 # type: textblock
3288 #. type: textblock
3289 #: ../src/guestfs.pod:1467
3290 msgid ""
3291 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3292 "function is available at compile time, we recommended using build tools such "
3293 "as autoconf or cmake.  For example in autotools you could use:"
3294 msgstr ""
3295
3296 # type: verbatim
3297 #. type: verbatim
3298 #: ../src/guestfs.pod:1472
3299 #, no-wrap
3300 msgid ""
3301 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3302 " AC_CHECK_FUNCS([guestfs_dd])\n"
3303 "\n"
3304 msgstr ""
3305
3306 # type: textblock
3307 #. type: textblock
3308 #: ../src/guestfs.pod:1475
3309 msgid ""
3310 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3311 "in your program."
3312 msgstr ""
3313
3314 # type: =head2
3315 #. type: =head2
3316 #: ../src/guestfs.pod:1478
3317 msgid "SINGLE CALLS AT RUN TIME"
3318 msgstr ""
3319
3320 # type: textblock
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1480
3323 msgid ""
3324 "Testing at compile time doesn't guarantee that a function really exists in "
3325 "the library.  The reason is that you might be dynamically linked against a "
3326 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3327 "This situation unfortunately results in a segmentation fault, which is a "
3328 "shortcoming of the C dynamic linking system itself."
3329 msgstr ""
3330
3331 # type: textblock
3332 #. type: textblock
3333 #: ../src/guestfs.pod:1487
3334 msgid ""
3335 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3336 "in this example program (note that you still need the compile time check as "
3337 "well):"
3338 msgstr ""
3339
3340 # type: verbatim
3341 #. type: verbatim
3342 #: ../src/guestfs.pod:1491
3343 #, no-wrap
3344 msgid ""
3345 " #include <stdio.h>\n"
3346 " #include <stdlib.h>\n"
3347 " #include <unistd.h>\n"
3348 " #include <dlfcn.h>\n"
3349 " #include <guestfs.h>\n"
3350 " \n"
3351 msgstr ""
3352
3353 # type: verbatim
3354 #. type: verbatim
3355 #: ../src/guestfs.pod:1497
3356 #, no-wrap
3357 msgid ""
3358 " main ()\n"
3359 " {\n"
3360 " #ifdef LIBGUESTFS_HAVE_DD\n"
3361 "   void *dl;\n"
3362 "   int has_function;\n"
3363 " \n"
3364 msgstr ""
3365
3366 # type: verbatim
3367 #. type: verbatim
3368 #: ../src/guestfs.pod:1503
3369 #, no-wrap
3370 msgid ""
3371 "   /* Test if the function guestfs_dd is really available. */\n"
3372 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3373 "   if (!dl) {\n"
3374 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3375 "     exit (EXIT_FAILURE);\n"
3376 "   }\n"
3377 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3378 "   dlclose (dl);\n"
3379 " \n"
3380 msgstr ""
3381
3382 # type: verbatim
3383 #. type: verbatim
3384 #: ../src/guestfs.pod:1512
3385 #, no-wrap
3386 msgid ""
3387 "   if (!has_function)\n"
3388 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3389 "   else {\n"
3390 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3391 "     /* Now it's safe to call\n"
3392 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3393 "     */\n"
3394 "   }\n"
3395 " #else\n"
3396 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3397 " #endif\n"
3398 "  }\n"
3399 "\n"
3400 msgstr ""
3401
3402 # type: textblock
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1525
3405 msgid ""
3406 "You may think the above is an awful lot of hassle, and it is.  There are "
3407 "other ways outside of the C linking system to ensure that this kind of "
3408 "incompatibility never arises, such as using package versioning:"
3409 msgstr ""
3410
3411 # type: verbatim
3412 #. type: verbatim
3413 #: ../src/guestfs.pod:1530
3414 #, no-wrap
3415 msgid ""
3416 " Requires: libguestfs >= 1.0.80\n"
3417 "\n"
3418 msgstr ""
3419
3420 # type: =head1
3421 #. type: =head1
3422 #: ../src/guestfs.pod:1532
3423 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3424 msgstr ""
3425
3426 # type: textblock
3427 #. type: textblock
3428 #: ../src/guestfs.pod:1534
3429 msgid ""
3430 "A recent feature of the API is the introduction of calls which take optional "
3431 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3432 "takes variable arguments (ie. C<...>), as in this example:"
3433 msgstr ""
3434
3435 # type: verbatim
3436 #. type: verbatim
3437 #: ../src/guestfs.pod:1539
3438 #, no-wrap
3439 msgid ""
3440 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3441 "\n"
3442 msgstr ""
3443
3444 # type: textblock
3445 #. type: textblock
3446 #: ../src/guestfs.pod:1541
3447 msgid ""
3448 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3449 "call with no optional arguments specified:"
3450 msgstr ""
3451
3452 # type: verbatim
3453 #. type: verbatim
3454 #: ../src/guestfs.pod:1544
3455 #, no-wrap
3456 msgid ""
3457 " guestfs_add_drive_opts (g, filename, -1);\n"
3458 "\n"
3459 msgstr ""
3460
3461 # type: textblock
3462 #. type: textblock
3463 #: ../src/guestfs.pod:1546
3464 msgid "With a single optional argument:"
3465 msgstr ""
3466
3467 # type: verbatim
3468 #. type: verbatim
3469 #: ../src/guestfs.pod:1548
3470 #, no-wrap
3471 msgid ""
3472 " guestfs_add_drive_opts (g, filename,\n"
3473 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3474 "                         -1);\n"
3475 "\n"
3476 msgstr ""
3477
3478 # type: textblock
3479 #. type: textblock
3480 #: ../src/guestfs.pod:1552
3481 msgid "With two:"
3482 msgstr ""
3483
3484 # type: verbatim
3485 #. type: verbatim
3486 #: ../src/guestfs.pod:1554
3487 #, no-wrap
3488 msgid ""
3489 " guestfs_add_drive_opts (g, filename,\n"
3490 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3491 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3492 "                         -1);\n"
3493 "\n"
3494 msgstr ""
3495
3496 # type: textblock
3497 #. type: textblock
3498 #: ../src/guestfs.pod:1559
3499 msgid ""
3500 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3501 "happen!"
3502 msgstr ""
3503
3504 # type: =head2
3505 #. type: =head2
3506 #: ../src/guestfs.pod:1562
3507 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3508 msgstr ""
3509
3510 # type: textblock
3511 #. type: textblock
3512 #: ../src/guestfs.pod:1564
3513 msgid ""
3514 "The second variant has the same name with the suffix C<_va>, which works the "
3515 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3516 "example function, this is declared:"
3517 msgstr ""
3518
3519 # type: verbatim
3520 #. type: verbatim
3521 #: ../src/guestfs.pod:1568
3522 #, no-wrap
3523 msgid ""
3524 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3525 "                                va_list args);\n"
3526 "\n"
3527 msgstr ""
3528
3529 # type: =head2
3530 #. type: =head2
3531 #: ../src/guestfs.pod:1571
3532 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3533 msgstr ""
3534
3535 # type: textblock
3536 #. type: textblock
3537 #: ../src/guestfs.pod:1573
3538 msgid ""
3539 "The third variant is useful where you need to construct these calls.  You "
3540 "pass in a structure where you fill in the optional fields.  The structure "
3541 "has a bitmask as the first element which you must set to indicate which "
3542 "fields you have filled in.  For our example function the structure and call "
3543 "are declared:"
3544 msgstr ""
3545
3546 # type: verbatim
3547 #. type: verbatim
3548 #: ../src/guestfs.pod:1579
3549 #, no-wrap
3550 msgid ""
3551 " struct guestfs_add_drive_opts_argv {\n"
3552 "   uint64_t bitmask;\n"
3553 "   int readonly;\n"
3554 "   const char *format;\n"
3555 "   /* ... */\n"
3556 " };\n"
3557 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3558 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3559 "\n"
3560 msgstr ""
3561
3562 # type: textblock
3563 #. type: textblock
3564 #: ../src/guestfs.pod:1588
3565 msgid "You could call it like this:"
3566 msgstr ""
3567
3568 # type: verbatim
3569 #. type: verbatim
3570 #: ../src/guestfs.pod:1590
3571 #, no-wrap
3572 msgid ""
3573 " struct guestfs_add_drive_opts_argv optargs = {\n"
3574 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3575 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3576 "   .readonly = 1,\n"
3577 "   .format = \"qcow2\"\n"
3578 " };\n"
3579 " \n"
3580 msgstr ""
3581
3582 # type: verbatim
3583 #. type: verbatim
3584 #: ../src/guestfs.pod:1597
3585 #, no-wrap
3586 msgid ""
3587 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3588 "\n"
3589 msgstr ""
3590
3591 # type: textblock
3592 #. type: textblock
3593 #: ../src/guestfs.pod:1599 ../src/guestfs-actions.pod:11
3594 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3595 #: ../fish/guestfish-actions.pod:1253 ../tools/virt-win-reg.pl:532
3596 msgid "Notes:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #. type: textblock
3601 #: ../src/guestfs.pod:1605
3602 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3603 msgstr ""
3604
3605 # type: textblock
3606 #. type: textblock
3607 #: ../src/guestfs.pod:1610
3608 msgid "You do not need to fill in all fields of the structure."
3609 msgstr ""
3610
3611 # type: textblock
3612 #. type: textblock
3613 #: ../src/guestfs.pod:1614
3614 msgid ""
3615 "There must be a one-to-one correspondence between fields of the structure "
3616 "that are filled in, and bits set in the bitmask."
3617 msgstr ""
3618
3619 # type: =head2
3620 #. type: =head2
3621 #: ../src/guestfs.pod:1619
3622 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3623 msgstr ""
3624
3625 # type: textblock
3626 #. type: textblock
3627 #: ../src/guestfs.pod:1621
3628 msgid ""
3629 "In other languages, optional arguments are expressed in the way that is "
3630 "natural for that language.  We refer you to the language-specific "
3631 "documentation for more details on that."
3632 msgstr ""
3633
3634 # type: textblock
3635 #. type: textblock
3636 #: ../src/guestfs.pod:1625
3637 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3638 msgstr ""
3639
3640 # type: =head2
3641 #. type: =head2
3642 #: ../src/guestfs.pod:1627
3643 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3644 msgstr ""
3645
3646 # type: textblock
3647 #. type: textblock
3648 #: ../src/guestfs.pod:1629
3649 msgid ""
3650 "The child process generates events in some situations.  Current events "
3651 "include: receiving a log message, the child process exits."
3652 msgstr ""
3653
3654 # type: textblock
3655 #. type: textblock
3656 #: ../src/guestfs.pod:1632
3657 msgid ""
3658 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3659 "types of events."
3660 msgstr ""
3661
3662 # type: textblock
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1635
3665 msgid ""
3666 "Only I<one callback of each type> can be registered for each handle.  "
3667 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3668 "that type.  Cancel all callbacks of this type by calling this function with "
3669 "C<cb> set to C<NULL>."
3670 msgstr ""
3671
3672 # type: =head2
3673 #. type: =head2
3674 #: ../src/guestfs.pod:1640
3675 msgid "guestfs_set_log_message_callback"
3676 msgstr ""
3677
3678 # type: verbatim
3679 #. type: verbatim
3680 #: ../src/guestfs.pod:1642
3681 #, no-wrap
3682 msgid ""
3683 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3684 "                                         char *buf, int len);\n"
3685 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3686 "                                        guestfs_log_message_cb cb,\n"
3687 "                                        void *opaque);\n"
3688 "\n"
3689 msgstr ""
3690
3691 # type: textblock
3692 #. type: textblock
3693 #: ../src/guestfs.pod:1648
3694 msgid ""
3695 "The callback function C<cb> will be called whenever qemu or the guest writes "
3696 "anything to the console."
3697 msgstr ""
3698
3699 # type: textblock
3700 #. type: textblock
3701 #: ../src/guestfs.pod:1651
3702 msgid "Use this function to capture kernel messages and similar."
3703 msgstr ""
3704
3705 # type: textblock
3706 #. type: textblock
3707 #: ../src/guestfs.pod:1653
3708 msgid ""
3709 "Normally there is no log message handler, and log messages are just "
3710 "discarded."
3711 msgstr ""
3712
3713 # type: =head2
3714 #. type: =head2
3715 #: ../src/guestfs.pod:1656
3716 msgid "guestfs_set_subprocess_quit_callback"
3717 msgstr ""
3718
3719 # type: verbatim
3720 #. type: verbatim
3721 #: ../src/guestfs.pod:1658
3722 #, no-wrap
3723 msgid ""
3724 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3725 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3726 "                                            guestfs_subprocess_quit_cb cb,\n"
3727 "                                            void *opaque);\n"
3728 "\n"
3729 msgstr ""
3730
3731 # type: textblock
3732 #. type: textblock
3733 #: ../src/guestfs.pod:1663
3734 msgid ""
3735 "The callback function C<cb> will be called when the child process quits, "
3736 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3737 "corresponds to a transition from any state to the CONFIG state)."
3738 msgstr ""
3739
3740 # type: =head2
3741 #. type: =head2
3742 #: ../src/guestfs.pod:1668
3743 msgid "guestfs_set_launch_done_callback"
3744 msgstr ""
3745
3746 # type: verbatim
3747 #. type: verbatim
3748 #: ../src/guestfs.pod:1670
3749 #, no-wrap
3750 msgid ""
3751 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3752 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3753 "                                        guestfs_launch_done_cb cb,\n"
3754 "                                        void *opaque);\n"
3755 "\n"
3756 msgstr ""
3757
3758 # type: textblock
3759 #. type: textblock
3760 #: ../src/guestfs.pod:1675
3761 msgid ""
3762 "The callback function C<cb> will be called when the child process becomes "
3763 "ready first time after it has been launched.  (This corresponds to a "
3764 "transition from LAUNCHING to the READY state)."
3765 msgstr ""
3766
3767 # type: =head2
3768 #. type: =head2
3769 #: ../src/guestfs.pod:1679
3770 msgid "guestfs_set_close_callback"
3771 msgstr ""
3772
3773 # type: verbatim
3774 #. type: verbatim
3775 #: ../src/guestfs.pod:1681
3776 #, no-wrap
3777 msgid ""
3778 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3779 " void guestfs_set_close_callback (guestfs_h *g,\n"
3780 "                                  guestfs_close_cb cb,\n"
3781 "                                  void *opaque);\n"
3782 "\n"
3783 msgstr ""
3784
3785 # type: textblock
3786 #. type: textblock
3787 #: ../src/guestfs.pod:1686
3788 msgid ""
3789 "The callback function C<cb> will be called while the handle is being closed "
3790 "(synchronously from L</guestfs_close>)."
3791 msgstr ""
3792
3793 # type: textblock
3794 #. type: textblock
3795 #: ../src/guestfs.pod:1689
3796 msgid ""
3797 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3798 "handles that are open when the program exits.  This means that this callback "
3799 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3800 "problems in higher-level languages (eg. if your HLL interpreter has already "
3801 "been cleaned up by the time this is called, and if your callback then jumps "
3802 "into some HLL function)."
3803 msgstr ""
3804
3805 # type: =head2
3806 #. type: =head2
3807 #: ../src/guestfs.pod:1697
3808 msgid "guestfs_set_progress_callback"
3809 msgstr ""
3810
3811 # type: verbatim
3812 #. type: verbatim
3813 #: ../src/guestfs.pod:1699
3814 #, no-wrap
3815 msgid ""
3816 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3817 "                                      int proc_nr, int serial,\n"
3818 "                                      uint64_t position, uint64_t total);\n"
3819 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3820 "                                     guestfs_progress_cb cb,\n"
3821 "                                     void *opaque);\n"
3822 "\n"
3823 msgstr ""
3824
3825 # type: textblock
3826 #. type: textblock
3827 #: ../src/guestfs.pod:1706
3828 msgid ""
3829 "Some long-running operations can generate progress messages.  If this "
3830 "callback is registered, then it will be called each time a progress message "
3831 "is generated (usually two seconds after the operation started, and three "
3832 "times per second thereafter until it completes, although the frequency may "
3833 "change in future versions)."
3834 msgstr ""
3835
3836 # type: textblock
3837 #. type: textblock
3838 #: ../src/guestfs.pod:1712
3839 msgid ""
3840 "The callback receives two numbers: C<position> and C<total>.  The units of "
3841 "C<total> are not defined, although for some operations C<total> may relate "
3842 "in some way to the amount of data to be transferred (eg. in bytes or "
3843 "megabytes), and C<position> may be the portion which has been transferred."
3844 msgstr ""
3845
3846 # type: textblock
3847 #. type: textblock
3848 #: ../src/guestfs.pod:1718
3849 msgid "The only defined and stable parts of the API are:"
3850 msgstr ""
3851
3852 # type: textblock
3853 #. type: textblock
3854 #: ../src/guestfs.pod:1724
3855 msgid ""
3856 "The callback can display to the user some type of progress bar or indicator "
3857 "which shows the ratio of C<position>:C<total>."
3858 msgstr ""
3859
3860 # type: textblock
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1729
3863 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3864 msgstr ""
3865
3866 # type: textblock
3867 #. type: textblock
3868 #: ../src/guestfs.pod:1733
3869 msgid ""
3870 "If any progress notification is sent during a call, then a final progress "
3871 "notification is always sent when C<position> = C<total>."
3872 msgstr ""
3873
3874 # type: textblock
3875 #. type: textblock
3876 #: ../src/guestfs.pod:1736
3877 msgid ""
3878 "This is to simplify caller code, so callers can easily set the progress "
3879 "indicator to \"100%\" at the end of the operation, without requiring special "
3880 "code to detect this case."
3881 msgstr ""
3882
3883 # type: textblock
3884 #. type: textblock
3885 #: ../src/guestfs.pod:1742
3886 msgid ""
3887 "The callback also receives the procedure number and serial number of the "
3888 "call.  These are only useful for debugging protocol issues, and the callback "
3889 "can normally ignore them.  The callback may want to print these numbers in "
3890 "error messages or debugging messages."
3891 msgstr ""
3892
3893 # type: =head1
3894 #. type: =head1
3895 #: ../src/guestfs.pod:1747
3896 msgid "PRIVATE DATA AREA"
3897 msgstr ""
3898
3899 # type: textblock
3900 #. type: textblock
3901 #: ../src/guestfs.pod:1749
3902 msgid ""
3903 "You can attach named pieces of private data to the libguestfs handle, and "
3904 "fetch them by name for the lifetime of the handle.  This is called the "
3905 "private data area and is only available from the C API."
3906 msgstr ""
3907
3908 # type: textblock
3909 #. type: textblock
3910 #: ../src/guestfs.pod:1753
3911 msgid "To attach a named piece of data, use the following call:"
3912 msgstr ""
3913
3914 # type: verbatim
3915 #. type: verbatim
3916 #: ../src/guestfs.pod:1755
3917 #, no-wrap
3918 msgid ""
3919 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3920 "\n"
3921 msgstr ""
3922
3923 # type: textblock
3924 #. type: textblock
3925 #: ../src/guestfs.pod:1757
3926 msgid ""
3927 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3928 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3929 "overwritten."
3930 msgstr ""
3931
3932 # type: textblock
3933 #. type: textblock
3934 #: ../src/guestfs.pod:1761
3935 msgid ""
3936 "You can use any C<key> you want, but names beginning with an underscore "
3937 "character are reserved for internal libguestfs purposes (for implementing "
3938 "language bindings).  It is recommended to prefix the name with some unique "
3939 "string to avoid collisions with other users."
3940 msgstr ""
3941
3942 # type: textblock
3943 #. type: textblock
3944 #: ../src/guestfs.pod:1766
3945 msgid "To retrieve the pointer, use:"
3946 msgstr ""
3947
3948 # type: verbatim
3949 #. type: verbatim
3950 #: ../src/guestfs.pod:1768
3951 #, no-wrap
3952 msgid ""
3953 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3954 "\n"
3955 msgstr ""
3956
3957 # type: textblock
3958 #. type: textblock
3959 #: ../src/guestfs.pod:1770
3960 msgid ""
3961 "This function returns C<NULL> if either no data is found associated with "
3962 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3963 "C<NULL>."
3964 msgstr ""
3965
3966 # type: textblock
3967 #. type: textblock
3968 #: ../src/guestfs.pod:1774
3969 msgid ""
3970 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3971 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3972 "all.  In particular, libguestfs does I<not> try to free the data when the "
3973 "handle is closed.  If the data must be freed, then the caller must either "
3974 "free it before calling L</guestfs_close> or must set up a close callback to "
3975 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3976 "can be registered for a handle)."
3977 msgstr ""
3978
3979 # type: textblock
3980 #. type: textblock
3981 #: ../src/guestfs.pod:1782
3982 msgid ""
3983 "The private data area is implemented using a hash table, and should be "
3984 "reasonably efficient for moderate numbers of keys."
3985 msgstr ""
3986
3987 # type: =end
3988 #. type: =end
3989 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790
3990 msgid "html"
3991 msgstr ""
3992
3993 # type: textblock
3994 #. type: textblock
3995 #: ../src/guestfs.pod:1787
3996 msgid ""
3997 "<!-- old anchor for the next section --> <a name="
3998 "\"state_machine_and_low_level_event_api\"/>"
3999 msgstr ""
4000
4001 # type: =head1
4002 #. type: =head1
4003 #: ../src/guestfs.pod:1792
4004 msgid "ARCHITECTURE"
4005 msgstr ""
4006
4007 # type: textblock
4008 #. type: textblock
4009 #: ../src/guestfs.pod:1794
4010 msgid ""
4011 "Internally, libguestfs is implemented by running an appliance (a special "
4012 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4013 "process of the main program."
4014 msgstr ""
4015
4016 # type: verbatim
4017 #. type: verbatim
4018 #: ../src/guestfs.pod:1798
4019 #, no-wrap
4020 msgid ""
4021 "  ___________________\n"
4022 " /                   \\\n"
4023 " | main program      |\n"
4024 " |                   |\n"
4025 " |                   |           child process / appliance\n"
4026 " |                   |           __________________________\n"
4027 " |                   |          / qemu                     \\\n"
4028 " +-------------------+   RPC    |      +-----------------+ |\n"
4029 " | libguestfs     <--------------------> guestfsd        | |\n"
4030 " |                   |          |      +-----------------+ |\n"
4031 " \\___________________/          |      | Linux kernel    | |\n"
4032 "                                |      +--^--------------+ |\n"
4033 "                                \\_________|________________/\n"
4034 "                                          |\n"
4035 "                                   _______v______\n"
4036 "                                  /              \\\n"
4037 "                                  | Device or    |\n"
4038 "                                  | disk image   |\n"
4039 "                                  \\______________/\n"
4040 "\n"
4041 msgstr ""
4042
4043 # type: textblock
4044 #. type: textblock
4045 #: ../src/guestfs.pod:1818
4046 msgid ""
4047 "The library, linked to the main program, creates the child process and hence "
4048 "the appliance in the L</guestfs_launch> function."
4049 msgstr ""
4050
4051 # type: textblock
4052 #. type: textblock
4053 #: ../src/guestfs.pod:1821
4054 msgid ""
4055 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4056 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4057 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4058 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4059 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4060 "attached to the qemu process which translates device access by the "
4061 "appliance's Linux kernel into accesses to the image."
4062 msgstr ""
4063
4064 # type: textblock
4065 #. type: textblock
4066 #: ../src/guestfs.pod:1830
4067 msgid ""
4068 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4069 "Although the disk image you are attached to might also be used by some "
4070 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4071 "care if both libguestfs's qemu process and your virtual machine are trying "
4072 "to update the disk image at the same time, since these usually results in "
4073 "massive disk corruption)."
4074 msgstr ""
4075
4076 # type: =head1
4077 #. type: =head1
4078 #: ../src/guestfs.pod:1837
4079 msgid "STATE MACHINE"
4080 msgstr ""
4081
4082 # type: textblock
4083 #. type: textblock
4084 #: ../src/guestfs.pod:1839
4085 msgid "libguestfs uses a state machine to model the child process:"
4086 msgstr ""
4087
4088 # type: verbatim
4089 #. type: verbatim
4090 #: ../src/guestfs.pod:1841
4091 #, no-wrap
4092 msgid ""
4093 "                         |\n"
4094 "                    guestfs_create\n"
4095 "                         |\n"
4096 "                         |\n"
4097 "                     ____V_____\n"
4098 "                    /          \\\n"
4099 "                    |  CONFIG  |\n"
4100 "                    \\__________/\n"
4101 "                     ^ ^   ^  \\\n"
4102 "                    /  |    \\  \\ guestfs_launch\n"
4103 "                   /   |    _\\__V______\n"
4104 "                  /    |   /           \\\n"
4105 "                 /     |   | LAUNCHING |\n"
4106 "                /      |   \\___________/\n"
4107 "               /       |       /\n"
4108 "              /        |  guestfs_launch\n"
4109 "             /         |     /\n"
4110 "    ______  /        __|____V\n"
4111 "   /      \\ ------> /        \\\n"
4112 "   | BUSY |         | READY  |\n"
4113 "   \\______/ <------ \\________/\n"
4114 "\n"
4115 msgstr ""
4116
4117 # type: textblock
4118 #. type: textblock
4119 #: ../src/guestfs.pod:1863
4120 msgid ""
4121 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4122 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4123 "(3) alternating between READY and BUSY as commands are issued to, and "
4124 "carried out by, the child process."
4125 msgstr ""
4126
4127 # type: textblock
4128 #. type: textblock
4129 #: ../src/guestfs.pod:1868
4130 msgid ""
4131 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4132 "asynchronously at any time (eg. due to some internal error), and that causes "
4133 "the state to transition back to CONFIG."
4134 msgstr ""
4135
4136 # type: textblock
4137 #. type: textblock
4138 #: ../src/guestfs.pod:1872
4139 msgid ""
4140 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4141 "issued when in the CONFIG state."
4142 msgstr ""
4143
4144 # type: textblock
4145 #. type: textblock
4146 #: ../src/guestfs.pod:1875
4147 msgid ""
4148 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4149 "L</guestfs_launch> blocks until the child process is READY to accept "
4150 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4151 "moves the state from CONFIG to LAUNCHING while it is running."
4152 msgstr ""
4153
4154 # type: textblock
4155 #. type: textblock
4156 #: ../src/guestfs.pod:1881
4157 msgid ""
4158 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4159 "state.  These API calls block waiting for the command to be carried out (ie. "
4160 "the state to transition to BUSY and then back to READY).  There are no non-"
4161 "blocking versions, and no way to issue more than one command per handle at "
4162 "the same time."
4163 msgstr ""
4164
4165 # type: textblock
4166 #. type: textblock
4167 #: ../src/guestfs.pod:1887
4168 msgid ""
4169 "Finally, the child process sends asynchronous messages back to the main "
4170 "program, such as kernel log messages.  You can register a callback to "
4171 "receive these messages."
4172 msgstr ""
4173
4174 # type: =head1
4175 #. type: =head1
4176 #: ../src/guestfs.pod:1891
4177 msgid "INTERNALS"
4178 msgstr ""
4179
4180 # type: =head2
4181 #. type: =head2
4182 #: ../src/guestfs.pod:1893
4183 msgid "COMMUNICATION PROTOCOL"
4184 msgstr ""
4185
4186 # type: textblock
4187 #. type: textblock
4188 #: ../src/guestfs.pod:1895
4189 msgid ""
4190 "Don't rely on using this protocol directly.  This section documents how it "
4191 "currently works, but it may change at any time."
4192 msgstr ""
4193
4194 # type: textblock
4195 #. type: textblock
4196 #: ../src/guestfs.pod:1898
4197 msgid ""
4198 "The protocol used to talk between the library and the daemon running inside "
4199 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4200 "1014, RFC 1832, RFC 4506)."
4201 msgstr ""
4202
4203 # type: textblock
4204 #. type: textblock
4205 #: ../src/guestfs.pod:1902
4206 msgid ""
4207 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4208 "this file is automatically generated)."
4209 msgstr ""
4210
4211 # type: textblock
4212 #. type: textblock
4213 #: ../src/guestfs.pod:1905
4214 msgid ""
4215 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4216 "and C<FileOut> parameters, which are handled with very simple request/reply "
4217 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4218 "parameters, which use the same request and reply messages, but they may also "
4219 "be followed by files sent using a chunked encoding."
4220 msgstr ""
4221
4222 # type: =head3
4223 #. type: =head3
4224 #: ../src/guestfs.pod:1912
4225 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4226 msgstr ""
4227
4228 # type: textblock
4229 #. type: textblock
4230 #: ../src/guestfs.pod:1914
4231 msgid "For ordinary functions, the request message is:"
4232 msgstr ""
4233
4234 # type: verbatim
4235 #. type: verbatim
4236 #: ../src/guestfs.pod:1916
4237 #, no-wrap
4238 msgid ""
4239 " total length (header + arguments,\n"
4240 "      but not including the length word itself)\n"
4241 " struct guestfs_message_header (encoded as XDR)\n"
4242 " struct guestfs_<foo>_args (encoded as XDR)\n"
4243 "\n"
4244 msgstr ""
4245
4246 # type: textblock
4247 #. type: textblock
4248 #: ../src/guestfs.pod:1921
4249 msgid ""
4250 "The total length field allows the daemon to allocate a fixed size buffer "
4251 "into which it slurps the rest of the message.  As a result, the total length "
4252 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4253 "effective size of any request is limited to somewhere under this size."
4254 msgstr ""
4255
4256 # type: textblock
4257 #. type: textblock
4258 #: ../src/guestfs.pod:1927
4259 msgid ""
4260 "Note also that many functions don't take any arguments, in which case the "
4261 "C<guestfs_I<foo>_args> is completely omitted."
4262 msgstr ""
4263
4264 # type: textblock
4265 #. type: textblock
4266 #: ../src/guestfs.pod:1930
4267 msgid ""
4268 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4269 "receiver knows what type of args structure to expect, or none at all."
4270 msgstr ""
4271
4272 # type: textblock
4273 #. type: textblock
4274 #: ../src/guestfs.pod:1934
4275 msgid ""
4276 "For functions that take optional arguments, the optional arguments are "
4277 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4278 "arguments.  A bitmask in the header indicates which optional arguments are "
4279 "meaningful.  The bitmask is also checked to see if it contains bits set "
4280 "which the daemon does not know about (eg. if more optional arguments were "
4281 "added in a later version of the library), and this causes the call to be "
4282 "rejected."
4283 msgstr ""
4284
4285 # type: textblock
4286 #. type: textblock
4287 #: ../src/guestfs.pod:1942
4288 msgid "The reply message for ordinary functions is:"
4289 msgstr ""
4290
4291 # type: verbatim
4292 #. type: verbatim
4293 #: ../src/guestfs.pod:1944
4294 #, no-wrap
4295 msgid ""
4296 " total length (header + ret,\n"
4297 "      but not including the length word itself)\n"
4298 " struct guestfs_message_header (encoded as XDR)\n"
4299 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4300 "\n"
4301 msgstr ""
4302
4303 # type: textblock
4304 #. type: textblock
4305 #: ../src/guestfs.pod:1949
4306 msgid ""
4307 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4308 "functions that return no formal return values."
4309 msgstr ""
4310
4311 # type: textblock
4312 #. type: textblock
4313 #: ../src/guestfs.pod:1952
4314 msgid ""
4315 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4316 msgstr ""
4317
4318 # type: textblock
4319 #. type: textblock
4320 #: ../src/guestfs.pod:1955
4321 msgid ""
4322 "In the case of an error, a flag is set in the header, and the reply message "
4323 "is slightly changed:"
4324 msgstr ""
4325
4326 # type: verbatim
4327 #. type: verbatim
4328 #: ../src/guestfs.pod:1958
4329 #, no-wrap
4330 msgid ""
4331 " total length (header + error,\n"
4332 "      but not including the length word itself)\n"
4333 " struct guestfs_message_header (encoded as XDR)\n"
4334 " struct guestfs_message_error (encoded as XDR)\n"
4335 "\n"
4336 msgstr ""
4337
4338 # type: textblock
4339 #. type: textblock
4340 #: ../src/guestfs.pod:1963
4341 msgid ""
4342 "The C<guestfs_message_error> structure contains the error message as a "
4343 "string."
4344 msgstr ""
4345
4346 # type: =head3
4347 #. type: =head3
4348 #: ../src/guestfs.pod:1966
4349 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4350 msgstr ""
4351
4352 # type: textblock
4353 #. type: textblock
4354 #: ../src/guestfs.pod:1968
4355 msgid ""
4356 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4357 "The normal request message is sent (see above).  However this is followed by "
4358 "a sequence of file chunks."
4359 msgstr ""
4360
4361 # type: verbatim
4362 #. type: verbatim
4363 #: ../src/guestfs.pod:1972
4364 #, no-wrap
4365 msgid ""
4366 " total length (header + arguments,\n"
4367 "      but not including the length word itself,\n"
4368 "      and not including the chunks)\n"
4369 " struct guestfs_message_header (encoded as XDR)\n"
4370 " struct guestfs_<foo>_args (encoded as XDR)\n"
4371 " sequence of chunks for FileIn param #0\n"
4372 " sequence of chunks for FileIn param #1 etc.\n"
4373 "\n"
4374 msgstr ""
4375
4376 # type: textblock
4377 #. type: textblock
4378 #: ../src/guestfs.pod:1980
4379 msgid "The \"sequence of chunks\" is:"
4380 msgstr ""
4381
4382 # type: verbatim
4383 #. type: verbatim
4384 #: ../src/guestfs.pod:1982
4385 #, no-wrap
4386 msgid ""
4387 " length of chunk (not including length word itself)\n"
4388 " struct guestfs_chunk (encoded as XDR)\n"
4389 " length of chunk\n"
4390 " struct guestfs_chunk (encoded as XDR)\n"
4391 "   ...\n"
4392 " length of chunk\n"
4393 " struct guestfs_chunk (with data.data_len == 0)\n"
4394 "\n"
4395 msgstr ""
4396
4397 # type: textblock
4398 #. type: textblock
4399 #: ../src/guestfs.pod:1990
4400 msgid ""
4401 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4402 "is set in the final chunk to indicate either successful completion or early "
4403 "cancellation."
4404 msgstr ""
4405
4406 # type: textblock
4407 #. type: textblock
4408 #: ../src/guestfs.pod:1994
4409 msgid ""
4410 "At time of writing there are no functions that have more than one FileIn "
4411 "parameter.  However this is (theoretically) supported, by sending the "
4412 "sequence of chunks for each FileIn parameter one after another (from left to "
4413 "right)."
4414 msgstr ""
4415
4416 # type: textblock
4417 #. type: textblock
4418 #: ../src/guestfs.pod:1999
4419 msgid ""
4420 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4421 "transfer.  The library does this by sending a chunk with a special flag set "
4422 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4423 "RPC, does I<not> send any reply, and goes back to reading the next request."
4424 msgstr ""
4425
4426 # type: textblock
4427 #. type: textblock
4428 #: ../src/guestfs.pod:2005
4429 msgid ""
4430 "The daemon may also cancel.  It does this by writing a special word "
4431 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4432 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4433 "cancel chunk).  The special word is chosen so that even if cancellation "
4434 "happens right at the end of the transfer (after the library has finished "
4435 "writing and has started listening for the reply), the \"spurious\" cancel "
4436 "flag will not be confused with the reply message."
4437 msgstr ""
4438
4439 # type: textblock
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2014
4442 msgid ""
4443 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4444 "limit), and also files where the size is not known in advance (eg. from "
4445 "pipes or sockets).  However the chunks are rather small "
4446 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4447 "to keep much in memory."
4448 msgstr ""
4449
4450 # type: =head3
4451 #. type: =head3
4452 #: ../src/guestfs.pod:2020
4453 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4454 msgstr ""
4455
4456 # type: textblock
4457 #. type: textblock
4458 #: ../src/guestfs.pod:2022
4459 msgid ""
4460 "The protocol for FileOut parameters is exactly the same as for FileIn "
4461 "parameters, but with the roles of daemon and library reversed."
4462 msgstr ""
4463
4464 # type: verbatim
4465 #. type: verbatim
4466 #: ../src/guestfs.pod:2025
4467 #, no-wrap
4468 msgid ""
4469 " total length (header + ret,\n"
4470 "      but not including the length word itself,\n"
4471 "      and not including the chunks)\n"
4472 " struct guestfs_message_header (encoded as XDR)\n"
4473 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4474 " sequence of chunks for FileOut param #0\n"
4475 " sequence of chunks for FileOut param #1 etc.\n"
4476 "\n"
4477 msgstr ""
4478
4479 # type: =head3
4480 #. type: =head3
4481 #: ../src/guestfs.pod:2033
4482 msgid "INITIAL MESSAGE"
4483 msgstr ""
4484
4485 # type: textblock
4486 #. type: textblock
4487 #: ../src/guestfs.pod:2035
4488 msgid ""
4489 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4490 "which indicates that the guest and daemon is alive.  This is what L</"
4491 "guestfs_launch> waits for."
4492 msgstr ""
4493
4494 # type: =head3
4495 #. type: =head3
4496 #: ../src/guestfs.pod:2039
4497 msgid "PROGRESS NOTIFICATION MESSAGES"
4498 msgstr ""
4499
4500 # type: textblock
4501 #. type: textblock
4502 #: ../src/guestfs.pod:2041
4503 msgid ""
4504 "The daemon may send progress notification messages at any time.  These are "
4505 "distinguished by the normal length word being replaced by "
4506 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4507 msgstr ""
4508
4509 # type: textblock
4510 #. type: textblock
4511 #: ../src/guestfs.pod:2045
4512 msgid ""
4513 "The library turns them into progress callbacks (see "
4514 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
4515 "discards them if not."
4516 msgstr ""
4517
4518 # type: textblock
4519 #. type: textblock
4520 #: ../src/guestfs.pod:2049
4521 msgid ""
4522 "The daemon self-limits the frequency of progress messages it sends (see "
4523 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4524 "messages."
4525 msgstr ""
4526
4527 # type: =head1
4528 #. type: =head1
4529 #: ../src/guestfs.pod:2053
4530 msgid "LIBGUESTFS VERSION NUMBERS"
4531 msgstr ""
4532
4533 # type: textblock
4534 #. type: textblock
4535 #: ../src/guestfs.pod:2055
4536 msgid ""
4537 "Since April 2010, libguestfs has started to make separate development and "
4538 "stable releases, along with corresponding branches in our git repository.  "
4539 "These separate releases can be identified by version number:"
4540 msgstr ""
4541
4542 # type: verbatim
4543 #. type: verbatim
4544 #: ../src/guestfs.pod:2060
4545 #, no-wrap
4546 msgid ""
4547 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4548 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4549 "       |\n"
4550 "       v\n"
4551 " 1  .  3  .  5\n"
4552 " ^           ^\n"
4553 " |           |\n"
4554 " |           `-------- sub-version\n"
4555 " |\n"
4556 " `------ always '1' because we don't change the ABI\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #. type: textblock
4562 #: ../src/guestfs.pod:2071
4563 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4564 msgstr ""
4565
4566 # type: textblock
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2073
4569 msgid ""
4570 "As time passes we cherry pick fixes from the development branch and backport "
4571 "those into the stable branch, the effect being that the stable branch should "
4572 "get more stable and less buggy over time.  So the stable releases are ideal "
4573 "for people who don't need new features but would just like the software to "
4574 "work."
4575 msgstr ""
4576
4577 # type: textblock
4578 #. type: textblock
4579 #: ../src/guestfs.pod:2079
4580 msgid "Our criteria for backporting changes are:"
4581 msgstr ""
4582
4583 # type: textblock
4584 #. type: textblock
4585 #: ../src/guestfs.pod:2085
4586 msgid ""
4587 "Documentation changes which don't affect any code are backported unless the "
4588 "documentation refers to a future feature which is not in stable."
4589 msgstr ""
4590
4591 # type: textblock
4592 #. type: textblock
4593 #: ../src/guestfs.pod:2091
4594 msgid ""
4595 "Bug fixes which are not controversial, fix obvious problems, and have been "
4596 "well tested are backported."
4597 msgstr ""
4598
4599 # type: textblock
4600 #. type: textblock
4601 #: ../src/guestfs.pod:2096
4602 msgid ""
4603 "Simple rearrangements of code which shouldn't affect how it works get "
4604 "backported.  This is so that the code in the two branches doesn't get too "
4605 "far out of step, allowing us to backport future fixes more easily."
4606 msgstr ""
4607
4608 # type: textblock
4609 #. type: textblock
4610 #: ../src/guestfs.pod:2102
4611 msgid ""
4612 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4613 "exceptional case: the new feature is required in order to implement an "
4614 "important bug fix."
4615 msgstr ""
4616
4617 # type: textblock
4618 #. type: textblock
4619 #: ../src/guestfs.pod:2108
4620 msgid ""
4621 "A new stable branch starts when we think the new features in development are "
4622 "substantial and compelling enough over the current stable branch to warrant "
4623 "it.  When that happens we create new stable and development versions 1.N.0 "
4624 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4625 "stable at this point, but by backporting fixes from development, that branch "
4626 "will stabilize over time."
4627 msgstr ""
4628
4629 #. type: =head1
4630 #: ../src/guestfs.pod:2116
4631 msgid "EXTENDING LIBGUESTFS"
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../src/guestfs.pod:2118
4636 msgid "ADDING A NEW API ACTION"
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../src/guestfs.pod:2120
4641 msgid ""
4642 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4643 "documentation) are generated, and this makes it easy to extend the "
4644 "libguestfs API."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../src/guestfs.pod:2124
4649 msgid "To add a new API action there are two changes:"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../src/guestfs.pod:2130
4654 msgid ""
4655 "You need to add a description of the call (name, parameters, return type, "
4656 "tests, documentation) to C<generator/generator_actions.ml>."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../src/guestfs.pod:2133
4661 msgid ""
4662 "There are two sorts of API action, depending on whether the call goes "
4663 "through to the daemon in the appliance, or is serviced entirely by the "
4664 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4665 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4666 "an example of the latter, since a trace flag is maintained in the handle and "
4667 "all tracing is done on the library side."
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../src/guestfs.pod:2141
4672 msgid ""
4673 "Most new actions are of the first type, and get added to the "
4674 "C<daemon_functions> list.  Each function has a unique procedure number used "
4675 "in the RPC protocol which is assigned to that action when we publish "
4676 "libguestfs and cannot be reused.  Take the latest procedure number and "
4677 "increment it."
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../src/guestfs.pod:2147
4682 msgid ""
4683 "For library-only actions of the second type, add to the "
4684 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4685 "library and do not travel over the RPC mechanism to the daemon, these "
4686 "functions do not need a procedure number, and so the procedure number is set "
4687 "to C<-1>."
4688 msgstr ""
4689
4690 #. type: textblock
4691 #: ../src/guestfs.pod:2155
4692 msgid "Implement the action (in C):"
4693 msgstr ""
4694
4695 #. type: textblock
4696 #: ../src/guestfs.pod:2157
4697 msgid ""
4698 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4699 "C<daemon/> directory."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../src/guestfs.pod:2160
4704 msgid ""
4705 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4706 "(note: double underscore) in the C<src/> directory."
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2163
4711 msgid "In either case, use another function as an example of what to do."
4712 msgstr ""
4713
4714 #. type: textblock
4715 #: ../src/guestfs.pod:2167
4716 msgid "After making these changes, use C<make> to compile."
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../src/guestfs.pod:2169
4721 msgid ""
4722 "Note that you don't need to implement the RPC, language bindings, manual "
4723 "pages or anything else.  It's all automatically generated from the OCaml "
4724 "description."
4725 msgstr ""
4726
4727 #. type: =head2
4728 #: ../src/guestfs.pod:2173
4729 msgid "ADDING TESTS FOR AN API ACTION"
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2175
4734 msgid ""
4735 "You can supply zero or as many tests as you want per API call.  The tests "
4736 "can either be added as part of the API description (C<generator/"
4737 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4738 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4739 "slower, so if possible use the first method."
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../src/guestfs.pod:2181
4744 msgid ""
4745 "The following describes the test environment used when you add an API test "
4746 "in C<generator_actions.ml>."
4747 msgstr ""
4748
4749 #. type: textblock
4750 #: ../src/guestfs.pod:2184
4751 msgid "The test environment has 4 block devices:"
4752 msgstr ""
4753
4754 #. type: =item
4755 #: ../src/guestfs.pod:2188
4756 msgid "C</dev/sda> 500MB"
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../src/guestfs.pod:2190
4761 msgid "General block device for testing."
4762 msgstr ""
4763
4764 #. type: =item
4765 #: ../src/guestfs.pod:2192
4766 msgid "C</dev/sdb> 50MB"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../src/guestfs.pod:2194
4771 msgid ""
4772 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4773 "operations."
4774 msgstr ""
4775
4776 #. type: =item
4777 #: ../src/guestfs.pod:2197
4778 msgid "C</dev/sdc> 10MB"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2199
4783 msgid "Used in a few tests where two block devices are needed."
4784 msgstr ""
4785
4786 #. type: =item
4787 #: ../src/guestfs.pod:2201
4788 msgid "C</dev/sdd>"
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../src/guestfs.pod:2203
4793 msgid "ISO with fixed content (see C<images/test.iso>)."
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../src/guestfs.pod:2207
4798 msgid ""
4799 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4800 "appliance and block devices are reused between tests.  So don't try testing "
4801 "L</guestfs_kill_subprocess> :-x"
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../src/guestfs.pod:2211
4806 msgid ""
4807 "Each test starts with an initial scenario, selected using one of the "
4808 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4809 "initialize the disks mentioned above in a particular way as documented in "
4810 "C<generator_types.ml>.  You should not assume anything about the previous "
4811 "contents of other disks that are not initialized."
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2217
4816 msgid ""
4817 "You can add a prerequisite clause to any individual test.  This is a run-"
4818 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4819 "testing a command which might not work on all variations of libguestfs "
4820 "builds.  A test that has prerequisite of C<Always> means to run "
4821 "unconditionally."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../src/guestfs.pod:2223
4826 msgid ""
4827 "In addition, packagers can skip individual tests by setting environment "
4828 "variables before running C<make check>."
4829 msgstr ""
4830
4831 #. type: verbatim
4832 #: ../src/guestfs.pod:2226
4833 #, no-wrap
4834 msgid ""
4835 " SKIP_TEST_<CMD>_<NUM>=1\n"
4836 "\n"
4837 msgstr ""
4838
4839 #. type: textblock
4840 #: ../src/guestfs.pod:2228
4841 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../src/guestfs.pod:2230
4846 msgid "or:"
4847 msgstr ""
4848
4849 #. type: verbatim
4850 #: ../src/guestfs.pod:2232
4851 #, no-wrap
4852 msgid ""
4853 " SKIP_TEST_<CMD>=1\n"
4854 "\n"
4855 msgstr ""
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2234
4859 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2236
4864 msgid "Packagers can run only certain tests by setting for example:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../src/guestfs.pod:2238
4869 #, no-wrap
4870 msgid ""
4871 " TEST_ONLY=\"vfs_type zerofree\"\n"
4872 "\n"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../src/guestfs.pod:2240
4877 msgid ""
4878 "See C<capitests/tests.c> for more details of how these environment variables "
4879 "work."
4880 msgstr ""
4881
4882 #. type: =head2
4883 #: ../src/guestfs.pod:2243
4884 msgid "DEBUGGING NEW API ACTIONS"
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../src/guestfs.pod:2245
4889 msgid "Test new actions work before submitting them."
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../src/guestfs.pod:2247
4894 msgid "You can use guestfish to try out new commands."
4895 msgstr ""
4896
4897 #. type: textblock
4898 #: ../src/guestfs.pod:2249
4899 msgid ""
4900 "Debugging the daemon is a problem because it runs inside a minimal "
4901 "environment.  However you can fprintf messages in the daemon to stderr, and "
4902 "they will show up if you use C<guestfish -v>."
4903 msgstr ""
4904
4905 #. type: =head2
4906 #: ../src/guestfs.pod:2253
4907 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../src/guestfs.pod:2255
4912 msgid ""
4913 "Our C source code generally adheres to some basic code-formatting "
4914 "conventions.  The existing code base is not totally consistent on this "
4915 "front, but we do prefer that contributed code be formatted similarly.  In "
4916 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4917 "indentation level, and other than that, follow the K&R style."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../src/guestfs.pod:2261
4922 msgid ""
4923 "If you use Emacs, add the following to one of one of your start-up files (e."
4924 "g., ~/.emacs), to help ensure that you get indentation right:"
4925 msgstr ""
4926
4927 #. type: verbatim
4928 #: ../src/guestfs.pod:2264
4929 #, no-wrap
4930 msgid ""
4931 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4932 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4933 " (add-hook 'find-file-hook\n"
4934 "     '(lambda () (if (and buffer-file-name\n"
4935 "                          (string-match \"/libguestfs\\\\>\"\n"
4936 "                              (buffer-file-name))\n"
4937 "                          (not (string-equal mode-name \"Change Log\"))\n"
4938 "                          (not (string-equal mode-name \"Makefile\")))\n"
4939 "                     (setq indent-tabs-mode nil))))\n"
4940 " \n"
4941 msgstr ""
4942
4943 #. type: verbatim
4944 #: ../src/guestfs.pod:2274
4945 #, no-wrap
4946 msgid ""
4947 " ;;; When editing C sources in libguestfs, use this style.\n"
4948 " (defun libguestfs-c-mode ()\n"
4949 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4950 "   (interactive)\n"
4951 "   (c-set-style \"K&R\")\n"
4952 "   (setq c-indent-level 2)\n"
4953 "   (setq c-basic-offset 2))\n"
4954 " (add-hook 'c-mode-hook\n"
4955 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4956 "                               (buffer-file-name))\n"
4957 "                           (libguestfs-c-mode))))\n"
4958 "\n"
4959 msgstr ""
4960
4961 #. type: textblock
4962 #: ../src/guestfs.pod:2286
4963 msgid "Enable warnings when compiling (and fix any problems this finds):"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../src/guestfs.pod:2289
4968 #, no-wrap
4969 msgid ""
4970 " ./configure --enable-gcc-warnings\n"
4971 "\n"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../src/guestfs.pod:2291
4976 msgid "Useful targets are:"
4977 msgstr ""
4978
4979 #. type: verbatim
4980 #: ../src/guestfs.pod:2293
4981 #, no-wrap
4982 msgid ""
4983 " make syntax-check  # checks the syntax of the C code\n"
4984 " make check         # runs the test suite\n"
4985 "\n"
4986 msgstr ""
4987
4988 #. type: =head2
4989 #: ../src/guestfs.pod:2296
4990 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../src/guestfs.pod:2298
4995 msgid ""
4996 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4997 "which are used to do shell quoting."
4998 msgstr ""
4999
5000 #. type: =item
5001 #: ../src/guestfs.pod:2303
5002 msgid "%Q"
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../src/guestfs.pod:2305
5007 msgid ""
5008 "Simple shell quoted string.  Any spaces or other shell characters are "
5009 "escaped for you."
5010 msgstr ""
5011
5012 #. type: =item
5013 #: ../src/guestfs.pod:2308
5014 msgid "%R"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../src/guestfs.pod:2310
5019 msgid ""
5020 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5021 "the sysroot."
5022 msgstr ""
5023
5024 # type: textblock
5025 #. type: textblock
5026 #: ../src/guestfs.pod:2315 ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
5027 msgid "For example:"
5028 msgstr ""
5029
5030 #. type: verbatim
5031 #: ../src/guestfs.pod:2317
5032 #, no-wrap
5033 msgid ""
5034 " asprintf (&cmd, \"cat %R\", path);\n"
5035 "\n"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../src/guestfs.pod:2319
5040 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5041 msgstr ""
5042
5043 #. type: textblock
5044 #: ../src/guestfs.pod:2321
5045 msgid ""
5046 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5047 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5048 "they are not passed via the shell (instead, straight to exec).  You probably "
5049 "want to use the C<sysroot_path()> function however."
5050 msgstr ""
5051
5052 #. type: =head2
5053 #: ../src/guestfs.pod:2327
5054 msgid "SUBMITTING YOUR NEW API ACTIONS"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../src/guestfs.pod:2329
5059 msgid ""
5060 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5061 "libguestfs> and CC to L<rjones@redhat.com>."
5062 msgstr ""
5063
5064 #. type: =head2
5065 #: ../src/guestfs.pod:2333
5066 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../src/guestfs.pod:2335
5071 msgid "We support i18n (gettext anyhow) in the library."
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2337
5076 msgid ""
5077 "However many messages come from the daemon, and we don't translate those at "
5078 "the moment.  One reason is that the appliance generally has all locale files "
5079 "removed from it, because they take up a lot of space.  So we'd have to readd "
5080 "some of those, as well as copying our PO files into the appliance."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../src/guestfs.pod:2343
5085 msgid ""
5086 "Debugging messages are never translated, since they are intended for the "
5087 "programmers."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../src/guestfs.pod:2346
5092 msgid "SOURCE CODE SUBDIRECTORIES"
5093 msgstr ""
5094
5095 #. type: =item
5096 #: ../src/guestfs.pod:2350
5097 msgid "C<appliance>"
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../src/guestfs.pod:2352
5102 msgid "The libguestfs appliance, build scripts and so on."
5103 msgstr ""
5104
5105 #. type: =item
5106 #: ../src/guestfs.pod:2354
5107 msgid "C<capitests>"
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../src/guestfs.pod:2356
5112 msgid "Automated tests of the C API."
5113 msgstr ""
5114
5115 #. type: =item
5116 #: ../src/guestfs.pod:2358
5117 msgid "C<cat>"
5118 msgstr ""
5119
5120 #. type: textblock
5121 #: ../src/guestfs.pod:2360
5122 msgid ""
5123 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5124 "documentation."
5125 msgstr ""
5126
5127 #. type: =item
5128 #: ../src/guestfs.pod:2363
5129 msgid "C<contrib>"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../src/guestfs.pod:2365
5134 msgid "Outside contributions, experimental parts."
5135 msgstr ""
5136
5137 #. type: =item
5138 #: ../src/guestfs.pod:2367
5139 msgid "C<daemon>"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../src/guestfs.pod:2369
5144 msgid ""
5145 "The daemon that runs inside the libguestfs appliance and carries out actions."
5146 msgstr ""
5147
5148 #. type: =item
5149 #: ../src/guestfs.pod:2372
5150 msgid "C<df>"
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../src/guestfs.pod:2374
5155 msgid "L<virt-df(1)> command and documentation."
5156 msgstr ""
5157
5158 #. type: =item
5159 #: ../src/guestfs.pod:2376
5160 msgid "C<examples>"
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../src/guestfs.pod:2378
5165 msgid "C API example code."
5166 msgstr ""
5167
5168 #. type: =item
5169 #: ../src/guestfs.pod:2380
5170 msgid "C<fish>"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../src/guestfs.pod:2382
5175 msgid ""
5176 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5177 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5178 "L<virt-tar-out(1)>."
5179 msgstr ""
5180
5181 #. type: =item
5182 #: ../src/guestfs.pod:2386
5183 msgid "C<fuse>"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2388
5188 msgid ""
5189 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5190 msgstr ""
5191
5192 #. type: =item
5193 #: ../src/guestfs.pod:2390
5194 msgid "C<generator>"
5195 msgstr ""
5196
5197 #. type: textblock
5198 #: ../src/guestfs.pod:2392
5199 msgid ""
5200 "The crucially important generator, used to automatically generate large "
5201 "amounts of boilerplate C code for things like RPC and bindings."
5202 msgstr ""
5203
5204 #. type: =item
5205 #: ../src/guestfs.pod:2395
5206 msgid "C<images>"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../src/guestfs.pod:2397
5211 msgid "Files used by the test suite."
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../src/guestfs.pod:2399
5216 msgid "Some \"phony\" guest images which we test against."
5217 msgstr ""
5218
5219 #. type: =item
5220 #: ../src/guestfs.pod:2401
5221 msgid "C<inspector>"
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../src/guestfs.pod:2403
5226 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5227 msgstr ""
5228
5229 #. type: =item
5230 #: ../src/guestfs.pod:2405
5231 msgid "C<logo>"
5232 msgstr ""
5233
5234 #. type: textblock
5235 #: ../src/guestfs.pod:2407
5236 msgid "Logo used on the website.  The fish is called Arthur by the way."
5237 msgstr ""
5238
5239 #. type: =item
5240 #: ../src/guestfs.pod:2409
5241 msgid "C<m4>"
5242 msgstr ""
5243
5244 #. type: textblock
5245 #: ../src/guestfs.pod:2411
5246 msgid "M4 macros used by autoconf."
5247 msgstr ""
5248
5249 #. type: =item
5250 #: ../src/guestfs.pod:2413
5251 msgid "C<po>"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../src/guestfs.pod:2415
5256 msgid "Translations of simple gettext strings."
5257 msgstr ""
5258
5259 #. type: =item
5260 #: ../src/guestfs.pod:2417
5261 msgid "C<po-docs>"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../src/guestfs.pod:2419
5266 msgid ""
5267 "The build infrastructure and PO files for translations of manpages and POD "
5268 "files.  Eventually this will be combined with the C<po> directory, but that "
5269 "is rather complicated."
5270 msgstr ""
5271
5272 #. type: =item
5273 #: ../src/guestfs.pod:2423
5274 msgid "C<regressions>"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../src/guestfs.pod:2425
5279 msgid "Regression tests."
5280 msgstr ""
5281
5282 #. type: =item
5283 #: ../src/guestfs.pod:2427
5284 msgid "C<rescue>"
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../src/guestfs.pod:2429
5289 msgid "L<virt-rescue(1)> command and documentation."
5290 msgstr ""
5291
5292 #. type: =item
5293 #: ../src/guestfs.pod:2431
5294 msgid "C<src>"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../src/guestfs.pod:2433
5299 msgid "Source code to the C library."
5300 msgstr ""
5301
5302 #. type: =item
5303 #: ../src/guestfs.pod:2435
5304 msgid "C<tools>"
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../src/guestfs.pod:2437
5309 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5310 msgstr ""
5311
5312 #. type: =item
5313 #: ../src/guestfs.pod:2439
5314 msgid "C<test-tool>"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../src/guestfs.pod:2441
5319 msgid ""
5320 "Test tool for end users to test if their qemu/kernel combination will work "
5321 "with libguestfs."
5322 msgstr ""
5323
5324 #. type: =item
5325 #: ../src/guestfs.pod:2444
5326 msgid "C<csharp>"
5327 msgstr ""
5328
5329 #. type: =item
5330 #: ../src/guestfs.pod:2446
5331 msgid "C<haskell>"
5332 msgstr ""
5333
5334 #. type: =item
5335 #: ../src/guestfs.pod:2448
5336 msgid "C<java>"
5337 msgstr ""
5338
5339 #. type: =item
5340 #: ../src/guestfs.pod:2450
5341 msgid "C<ocaml>"
5342 msgstr ""
5343
5344 #. type: =item
5345 #: ../src/guestfs.pod:2452
5346 msgid "C<php>"
5347 msgstr ""
5348
5349 #. type: =item
5350 #: ../src/guestfs.pod:2454
5351 msgid "C<perl>"
5352 msgstr ""
5353
5354 #. type: =item
5355 #: ../src/guestfs.pod:2456
5356 msgid "C<python>"
5357 msgstr ""
5358
5359 #. type: =item
5360 #: ../src/guestfs.pod:2458
5361 msgid "C<ruby>"
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2460
5366 msgid "Language bindings."
5367 msgstr ""
5368
5369 # type: =head1
5370 #. type: =head1
5371 #: ../src/guestfs.pod:2464 ../fish/guestfish.pod:965
5372 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5373 msgid "ENVIRONMENT VARIABLES"
5374 msgstr ""
5375
5376 # type: =item
5377 #. type: =item
5378 #: ../src/guestfs.pod:2468 ../fish/guestfish.pod:991
5379 msgid "LIBGUESTFS_APPEND"
5380 msgstr ""
5381
5382 # type: textblock
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2470 ../fish/guestfish.pod:993
5385 msgid "Pass additional options to the guest kernel."
5386 msgstr ""
5387
5388 # type: =item
5389 #. type: =item
5390 #: ../src/guestfs.pod:2472 ../fish/guestfish.pod:995
5391 msgid "LIBGUESTFS_DEBUG"
5392 msgstr ""
5393
5394 # type: textblock
5395 #. type: textblock
5396 #: ../src/guestfs.pod:2474
5397 msgid ""
5398 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5399 "effect as calling C<guestfs_set_verbose (g, 1)>."
5400 msgstr ""
5401
5402 # type: =item
5403 #. type: =item
5404 #: ../src/guestfs.pod:2477 ../fish/guestfish.pod:1000
5405 msgid "LIBGUESTFS_MEMSIZE"
5406 msgstr ""
5407
5408 # type: textblock
5409 #. type: textblock
5410 #: ../src/guestfs.pod:2479 ../fish/guestfish.pod:1002
5411 msgid ""
5412 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5413 msgstr ""
5414
5415 # type: verbatim
5416 #. type: verbatim
5417 #: ../src/guestfs.pod:2482 ../fish/guestfish.pod:1005
5418 #, no-wrap
5419 msgid ""
5420 " LIBGUESTFS_MEMSIZE=700\n"
5421 "\n"
5422 msgstr ""
5423
5424 # type: =item
5425 #. type: =item
5426 #: ../src/guestfs.pod:2484 ../fish/guestfish.pod:1007
5427 msgid "LIBGUESTFS_PATH"
5428 msgstr ""
5429
5430 # type: textblock
5431 #. type: textblock
5432 #: ../src/guestfs.pod:2486
5433 msgid ""
5434 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
5435 "the discussion of paths in section PATH above."
5436 msgstr ""
5437
5438 # type: =item
5439 #. type: =item
5440 #: ../src/guestfs.pod:2489 ../fish/guestfish.pod:1012
5441 msgid "LIBGUESTFS_QEMU"
5442 msgstr ""
5443
5444 # type: textblock
5445 #. type: textblock
5446 #: ../src/guestfs.pod:2491 ../fish/guestfish.pod:1014
5447 msgid ""
5448 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5449 "which was found at compile time by the configure script is used."
5450 msgstr ""
5451
5452 # type: textblock
5453 #. type: textblock
5454 #: ../src/guestfs.pod:2495
5455 msgid "See also L</QEMU WRAPPERS> above."
5456 msgstr ""
5457
5458 # type: =item
5459 #. type: =item
5460 #: ../src/guestfs.pod:2497 ../fish/guestfish.pod:1018
5461 msgid "LIBGUESTFS_TRACE"
5462 msgstr ""
5463
5464 # type: textblock
5465 #. type: textblock
5466 #: ../src/guestfs.pod:2499
5467 msgid ""
5468 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5469 "effect as calling C<guestfs_set_trace (g, 1)>."
5470 msgstr ""
5471
5472 # type: =item
5473 #. type: =item
5474 #: ../src/guestfs.pod:2502 ../fish/guestfish.pod:1027
5475 msgid "TMPDIR"
5476 msgstr ""
5477
5478 # type: textblock
5479 #. type: textblock
5480 #: ../src/guestfs.pod:2504 ../fish/guestfish.pod:1029
5481 msgid "Location of temporary directory, defaults to C</tmp>."
5482 msgstr ""
5483
5484 # type: textblock
5485 #. type: textblock
5486 #: ../src/guestfs.pod:2506 ../fish/guestfish.pod:1031
5487 msgid ""
5488 "If libguestfs was compiled to use the supermin appliance then the real "
5489 "appliance is cached in this directory, shared between all handles belonging "
5490 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5491 "use in case C</tmp> is not large enough."
5492 msgstr ""
5493
5494 # type: =head1
5495 #. type: =head1
5496 #: ../src/guestfs.pod:2514 ../fish/guestfish.pod:1089
5497 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
5498 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5499 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
5500 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:534
5501 #: ../tools/virt-list-partitions.pl:257
5502 msgid "SEE ALSO"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2516
5507 msgid ""
5508 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5509 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5510 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5511 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5512 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5513 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5514 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5515 msgstr ""
5516
5517 # type: textblock
5518 #. type: textblock
5519 #: ../src/guestfs.pod:2543
5520 msgid ""
5521 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5522 "(8)>, L<disktype(1)>."
5523 msgstr ""
5524
5525 # type: =head1
5526 #. type: =head1
5527 #: ../src/guestfs.pod:2550 ../tools/virt-win-reg.pl:587
5528 #: ../tools/virt-make-fs.pl:548
5529 msgid "BUGS"
5530 msgstr ""
5531
5532 # type: textblock
5533 #. type: textblock
5534 #: ../src/guestfs.pod:2552
5535 msgid "To get a list of bugs against libguestfs use this link:"
5536 msgstr ""
5537
5538 # type: textblock
5539 #. type: textblock
5540 #: ../src/guestfs.pod:2554
5541 msgid ""
5542 "L<https://bugzilla.redhat.com/buglist.cgi?"
5543 "component=libguestfs&product=Virtualization+Tools>"
5544 msgstr ""
5545
5546 # type: textblock
5547 #. type: textblock
5548 #: ../src/guestfs.pod:2556
5549 msgid "To report a new bug against libguestfs use this link:"
5550 msgstr ""
5551
5552 # type: textblock
5553 #. type: textblock
5554 #: ../src/guestfs.pod:2558
5555 msgid ""
5556 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5557 "component=libguestfs&product=Virtualization+Tools>"
5558 msgstr ""
5559
5560 # type: textblock
5561 #. type: textblock
5562 #: ../src/guestfs.pod:2560
5563 msgid "When reporting a bug, please check:"
5564 msgstr ""
5565
5566 # type: textblock
5567 #. type: textblock
5568 #: ../src/guestfs.pod:2566
5569 msgid "That the bug hasn't been reported already."
5570 msgstr ""
5571
5572 # type: textblock
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2570
5575 msgid "That you are testing a recent version."
5576 msgstr ""
5577
5578 # type: textblock
5579 #. type: textblock
5580 #: ../src/guestfs.pod:2574
5581 msgid "Describe the bug accurately, and give a way to reproduce it."
5582 msgstr ""
5583
5584 # type: textblock
5585 #. type: textblock
5586 #: ../src/guestfs.pod:2578
5587 msgid ""
5588 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5589 "bug report."
5590 msgstr ""
5591
5592 # type: =head1
5593 #. type: =head1
5594 #: ../src/guestfs.pod:2583 ../fish/guestfish.pod:1112
5595 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
5596 msgid "AUTHORS"
5597 msgstr ""
5598
5599 # type: textblock
5600 #. type: textblock
5601 #: ../src/guestfs.pod:2585 ../fish/guestfish.pod:1114
5602 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
5603 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5604 msgstr ""
5605
5606 # type: =head1
5607 #. type: =head1
5608 #: ../src/guestfs.pod:2587 ../fish/guestfish.pod:1116
5609 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
5610 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
5611 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
5612 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:563
5613 #: ../tools/virt-list-partitions.pl:273
5614 msgid "COPYRIGHT"
5615 msgstr ""
5616
5617 # type: textblock
5618 #. type: textblock
5619 #: ../src/guestfs.pod:2589 ../fish/guestfish.pod:1118
5620 #: ../fuse/guestmount.pod:250
5621 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
5622 msgstr ""
5623
5624 # type: textblock
5625 #. type: textblock
5626 #: ../src/guestfs.pod:2592
5627 msgid ""
5628 "This library is free software; you can redistribute it and/or modify it "
5629 "under the terms of the GNU Lesser General Public License as published by the "
5630 "Free Software Foundation; either version 2 of the License, or (at your "
5631 "option) any later version."
5632 msgstr ""
5633
5634 # type: textblock
5635 #. type: textblock
5636 #: ../src/guestfs.pod:2597
5637 msgid ""
5638 "This library is distributed in the hope that it will be useful, but WITHOUT "
5639 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5640 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5641 "for more details."
5642 msgstr ""
5643
5644 # type: textblock
5645 #. type: textblock
5646 #: ../src/guestfs.pod:2602
5647 msgid ""
5648 "You should have received a copy of the GNU Lesser General Public License "
5649 "along with this library; if not, write to the Free Software Foundation, "
5650 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5651 msgstr ""
5652
5653 # type: =head2
5654 #. type: =head2
5655 #: ../src/guestfs-actions.pod:1
5656 msgid "guestfs_add_cdrom"
5657 msgstr ""
5658
5659 # type: verbatim
5660 #. type: verbatim
5661 #: ../src/guestfs-actions.pod:3
5662 #, no-wrap
5663 msgid ""
5664 " int\n"
5665 " guestfs_add_cdrom (guestfs_h *g,\n"
5666 "                    const char *filename);\n"
5667 "\n"
5668 msgstr ""
5669
5670 # type: textblock
5671 #. type: textblock
5672 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5673 msgid "This function adds a virtual CD-ROM disk image to the guest."
5674 msgstr ""
5675
5676 # type: textblock
5677 #. type: textblock
5678 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5679 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5680 msgstr ""
5681
5682 # type: textblock
5683 #. type: textblock
5684 #: ../src/guestfs-actions.pod:17
5685 msgid ""
5686 "This call checks for the existence of C<filename>.  This stops you from "
5687 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5688 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5689 "instead."
5690 msgstr ""
5691
5692 # type: textblock
5693 #. type: textblock
5694 #: ../src/guestfs-actions.pod:24
5695 msgid ""
5696 "If you just want to add an ISO file (often you use this as an efficient way "
5697 "to transfer large files into the guest), then you should probably use "
5698 "C<guestfs_add_drive_ro> instead."
5699 msgstr ""
5700
5701 # type: textblock
5702 #. type: textblock
5703 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
5704 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
5705 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
5706 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
5707 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
5708 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
5709 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
5710 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
5711 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
5712 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5713 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5714 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
5715 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
5716 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
5717 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
5718 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
5719 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
5720 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
5721 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
5722 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2243
5723 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
5724 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3318
5725 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353
5726 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3522
5727 #: ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3549
5728 #: ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3600
5729 #: ../src/guestfs-actions.pod:3672 ../src/guestfs-actions.pod:3692
5730 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3732
5731 #: ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3787
5732 #: ../src/guestfs-actions.pod:3806 ../src/guestfs-actions.pod:3825
5733 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3872
5734 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924
5735 #: ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3952
5736 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4062
5737 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4095
5738 #: ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4164
5739 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4198
5740 #: ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4226
5741 #: ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4258
5742 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4322
5743 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4426
5744 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4464
5745 #: ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4493
5746 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4521
5747 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4571
5748 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4606
5749 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4637
5750 #: ../src/guestfs-actions.pod:4686 ../src/guestfs-actions.pod:4723
5751 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4765
5752 #: ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4800
5753 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4991
5754 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5031
5755 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5129
5756 #: ../src/guestfs-actions.pod:5146 ../src/guestfs-actions.pod:5159
5757 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5462
5758 #: ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500
5759 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5524
5760 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5550
5761 #: ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580
5762 #: ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5620
5763 #: ../src/guestfs-actions.pod:5639 ../src/guestfs-actions.pod:5657
5764 #: ../src/guestfs-actions.pod:5680 ../src/guestfs-actions.pod:5698
5765 #: ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5738
5766 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5774
5767 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5826
5768 #: ../src/guestfs-actions.pod:5845 ../src/guestfs-actions.pod:5869
5769 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5899
5770 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5955
5771 #: ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:6004
5772 #: ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6233
5773 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6258
5774 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6293
5775 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6319
5776 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6347
5777 #: ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6423
5778 #: ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6455
5779 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6485
5780 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6541
5781 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6596
5782 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6627
5783 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6697
5784 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6834
5785 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:6903
5786 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:6961
5787 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7048
5788 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7140
5789 #: ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7188
5790 msgid "This function returns 0 on success or -1 on error."
5791 msgstr ""
5792
5793 # type: textblock
5794 #. type: textblock
5795 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
5796 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
5797 #: ../fish/guestfish-actions.pod:151 ../fish/guestfish-actions.pod:165
5798 msgid ""
5799 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5800 "instead."
5801 msgstr ""
5802
5803 # type: textblock
5804 #. type: textblock
5805 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
5806 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
5807 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
5808 #: ../src/guestfs-actions.pod:4283 ../src/guestfs-actions.pod:7082
5809 #: ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:31
5810 #: ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:168
5811 #: ../fish/guestfish-actions.pod:949 ../fish/guestfish-actions.pod:1306
5812 #: ../fish/guestfish-actions.pod:1320 ../fish/guestfish-actions.pod:2895
5813 #: ../fish/guestfish-actions.pod:4710 ../fish/guestfish-actions.pod:4807
5814 msgid ""
5815 "Deprecated functions will not be removed from the API, but the fact that "
5816 "they are deprecated indicates that there are problems with correct use of "
5817 "these functions."
5818 msgstr ""
5819
5820 # type: textblock
5821 #. type: textblock
5822 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
5823 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
5824 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
5825 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3335
5826 #: ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:5659
5827 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5886
5828 #: ../src/guestfs-actions.pod:6349 ../src/guestfs-actions.pod:6474
5829 #: ../src/guestfs-actions.pod:6996
5830 msgid "(Added in 0.3)"
5831 msgstr ""
5832
5833 # type: =head2
5834 #. type: =head2
5835 #: ../src/guestfs-actions.pod:41
5836 msgid "guestfs_add_domain"
5837 msgstr ""
5838
5839 # type: verbatim
5840 #. type: verbatim
5841 #: ../src/guestfs-actions.pod:43
5842 #, no-wrap
5843 msgid ""
5844 " int\n"
5845 " guestfs_add_domain (guestfs_h *g,\n"
5846 "                     const char *dom,\n"
5847 "                     ...);\n"
5848 "\n"
5849 msgstr ""
5850
5851 # type: textblock
5852 #. type: textblock
5853 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
5854 #: ../src/guestfs-actions.pod:4297
5855 msgid ""
5856 "You may supply a list of optional arguments to this call.  Use zero or more "
5857 "of the following pairs of parameters, and terminate the list with C<-1> on "
5858 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5859 msgstr ""
5860
5861 # type: verbatim
5862 #. type: verbatim
5863 #: ../src/guestfs-actions.pod:53
5864 #, no-wrap
5865 msgid ""
5866 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5867 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5868 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #. type: textblock
5874 #: ../src/guestfs-actions.pod:57
5875 msgid ""
5876 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5877 "It works by connecting to libvirt, requesting the domain and domain XML from "
5878 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5879 "one."
5880 msgstr ""
5881
5882 # type: textblock
5883 #. type: textblock
5884 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
5885 msgid ""
5886 "The number of disks added is returned.  This operation is atomic: if an "
5887 "error is returned, then no disks are added."
5888 msgstr ""
5889
5890 # type: textblock
5891 #. type: textblock
5892 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
5893 msgid ""
5894 "This function does some minimal checks to make sure the libvirt domain is "
5895 "not running (unless C<readonly> is true).  In a future version we will try "
5896 "to acquire the libvirt lock on each disk."
5897 msgstr ""
5898
5899 # type: textblock
5900 #. type: textblock
5901 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
5902 msgid ""
5903 "Disks must be accessible locally.  This often means that adding disks from a "
5904 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5905 "unless those disks are accessible via the same device path locally too."
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:58
5910 msgid ""
5911 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5912 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5913 "libvirt URI (or one set through an environment variable, see the libvirt "
5914 "documentation for full details)."
5915 msgstr ""
5916
5917 # type: textblock
5918 #. type: textblock
5919 #: ../src/guestfs-actions.pod:80
5920 msgid ""
5921 "The other optional parameters are passed directly through to "
5922 "C<guestfs_add_drive_opts>."
5923 msgstr ""
5924
5925 # type: textblock
5926 #. type: textblock
5927 #: ../src/guestfs-actions.pod:83 ../src/guestfs-actions.pod:336
5928 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
5929 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
5930 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
5931 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
5932 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
5933 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
5934 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2701
5935 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:4709
5936 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:5243
5937 #: ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:6582
5938 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7020
5939 #: ../src/guestfs-actions.pod:7033
5940 msgid "On error this function returns -1."
5941 msgstr ""
5942
5943 # type: textblock
5944 #. type: textblock
5945 #: ../src/guestfs-actions.pod:85
5946 msgid "(Added in 1.7.4)"
5947 msgstr ""
5948
5949 # type: =head2
5950 #. type: =head2
5951 #: ../src/guestfs-actions.pod:87
5952 msgid "guestfs_add_domain_va"
5953 msgstr ""
5954
5955 # type: verbatim
5956 #. type: verbatim
5957 #: ../src/guestfs-actions.pod:89
5958 #, no-wrap
5959 msgid ""
5960 " int\n"
5961 " guestfs_add_domain_va (guestfs_h *g,\n"
5962 "                        const char *dom,\n"
5963 "                        va_list args);\n"
5964 "\n"
5965 msgstr ""
5966
5967 # type: textblock
5968 #. type: textblock
5969 #: ../src/guestfs-actions.pod:94
5970 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5971 msgstr ""
5972
5973 # type: textblock
5974 #. type: textblock
5975 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
5976 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
5977 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4348
5978 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5979 msgstr ""
5980
5981 # type: =head2
5982 #. type: =head2
5983 #: ../src/guestfs-actions.pod:98
5984 msgid "guestfs_add_domain_argv"
5985 msgstr ""
5986
5987 # type: verbatim
5988 #. type: verbatim
5989 #: ../src/guestfs-actions.pod:100
5990 #, no-wrap
5991 msgid ""
5992 " int\n"
5993 " guestfs_add_domain_argv (guestfs_h *g,\n"
5994 "                          const char *dom,\n"
5995 "                          const struct guestfs_add_domain_argv *optargs);\n"
5996 "\n"
5997 msgstr ""
5998
5999 # type: textblock
6000 #. type: textblock
6001 #: ../src/guestfs-actions.pod:105
6002 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6003 msgstr ""
6004
6005 # type: =head2
6006 #. type: =head2
6007 #: ../src/guestfs-actions.pod:109
6008 msgid "guestfs_add_drive"
6009 msgstr ""
6010
6011 # type: verbatim
6012 #. type: verbatim
6013 #: ../src/guestfs-actions.pod:111
6014 #, no-wrap
6015 msgid ""
6016 " int\n"
6017 " guestfs_add_drive (guestfs_h *g,\n"
6018 "                    const char *filename);\n"
6019 "\n"
6020 msgstr ""
6021
6022 # type: textblock
6023 #. type: textblock
6024 #: ../src/guestfs-actions.pod:115
6025 msgid ""
6026 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6027 "optional parameters, so the disk is added writable, with the format being "
6028 "detected automatically."
6029 msgstr ""
6030
6031 # type: textblock
6032 #. type: textblock
6033 #: ../src/guestfs-actions.pod:119
6034 msgid ""
6035 "Automatic detection of the format opens you up to a potential security hole "
6036 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6037 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6038 "you should think about replacing calls to this function with calls to "
6039 "C<guestfs_add_drive_opts>, and specifying the format."
6040 msgstr ""
6041
6042 # type: =head2
6043 #. type: =head2
6044 #: ../src/guestfs-actions.pod:130
6045 msgid "guestfs_add_drive_opts"
6046 msgstr ""
6047
6048 # type: verbatim
6049 #. type: verbatim
6050 #: ../src/guestfs-actions.pod:132
6051 #, no-wrap
6052 msgid ""
6053 " int\n"
6054 " guestfs_add_drive_opts (guestfs_h *g,\n"
6055 "                         const char *filename,\n"
6056 "                         ...);\n"
6057 "\n"
6058 msgstr ""
6059
6060 # type: verbatim
6061 #. type: verbatim
6062 #: ../src/guestfs-actions.pod:142
6063 #, no-wrap
6064 msgid ""
6065 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6066 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6067 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6068 "\n"
6069 msgstr ""
6070
6071 # type: textblock
6072 #. type: textblock
6073 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:90
6074 msgid ""
6075 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6076 "The first time you call this function, the disk appears as C</dev/sda>, the "
6077 "second time as C</dev/sdb>, and so on."
6078 msgstr ""
6079
6080 # type: textblock
6081 #. type: textblock
6082 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:95
6083 msgid ""
6084 "You don't necessarily need to be root when using libguestfs.  However you "
6085 "obviously do need sufficient permissions to access the filename for whatever "
6086 "operations you want to perform (ie. read access if you just want to read the "
6087 "image or write access if you want to modify the image)."
6088 msgstr ""
6089
6090 # type: textblock
6091 #. type: textblock
6092 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:101
6093 msgid "This call checks that C<filename> exists."
6094 msgstr ""
6095
6096 # type: textblock
6097 #. type: textblock
6098 #: ../src/guestfs-actions.pod:159 ../src/guestfs-actions.pod:4307
6099 #: ../fish/guestfish-actions.pod:103 ../fish/guestfish-actions.pod:2906
6100 msgid "The optional arguments are:"
6101 msgstr ""
6102
6103 # type: =item
6104 #. type: =item
6105 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:107
6106 msgid "C<readonly>"
6107 msgstr ""
6108
6109 # type: textblock
6110 #. type: textblock
6111 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
6112 msgid ""
6113 "If true then the image is treated as read-only.  Writes are still allowed, "
6114 "but they are stored in a temporary snapshot overlay which is discarded at "
6115 "the end.  The disk that you add is not modified."
6116 msgstr ""
6117
6118 # type: =item
6119 #. type: =item
6120 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:113
6121 msgid "C<format>"
6122 msgstr ""
6123
6124 # type: textblock
6125 #. type: textblock
6126 #: ../src/guestfs-actions.pod:171
6127 msgid ""
6128 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6129 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6130 "Possible formats include C<raw> and C<qcow2>."
6131 msgstr ""
6132
6133 # type: textblock
6134 #. type: textblock
6135 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:119
6136 msgid ""
6137 "Automatic detection of the format opens you up to a potential security hole "
6138 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6139 "RHBZ#642934.  Specifying the format closes this security hole."
6140 msgstr ""
6141
6142 # type: =item
6143 #. type: =item
6144 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:124
6145 msgid "C<iface>"
6146 msgstr ""
6147
6148 # type: textblock
6149 #. type: textblock
6150 #: ../src/guestfs-actions.pod:182
6151 msgid ""
6152 "This rarely-used option lets you emulate the behaviour of the deprecated "
6153 "C<guestfs_add_drive_with_if> call (q.v.)"
6154 msgstr ""
6155
6156 # type: textblock
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:189
6159 msgid "(Added in 1.5.23)"
6160 msgstr ""
6161
6162 # type: =head2
6163 #. type: =head2
6164 #: ../src/guestfs-actions.pod:191
6165 msgid "guestfs_add_drive_opts_va"
6166 msgstr ""
6167
6168 # type: verbatim
6169 #. type: verbatim
6170 #: ../src/guestfs-actions.pod:193
6171 #, no-wrap
6172 msgid ""
6173 " int\n"
6174 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6175 "                            const char *filename,\n"
6176 "                            va_list args);\n"
6177 "\n"
6178 msgstr ""
6179
6180 # type: textblock
6181 #. type: textblock
6182 #: ../src/guestfs-actions.pod:198
6183 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6184 msgstr ""
6185
6186 # type: =head2
6187 #. type: =head2
6188 #: ../src/guestfs-actions.pod:202
6189 msgid "guestfs_add_drive_opts_argv"
6190 msgstr ""
6191
6192 # type: verbatim
6193 #. type: verbatim
6194 #: ../src/guestfs-actions.pod:204
6195 #, no-wrap
6196 msgid ""
6197 " int\n"
6198 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6199 "                              const char *filename,\n"
6200 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6201 "\n"
6202 msgstr ""
6203
6204 # type: textblock
6205 #. type: textblock
6206 #: ../src/guestfs-actions.pod:209
6207 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6208 msgstr ""
6209
6210 # type: =head2
6211 #. type: =head2
6212 #: ../src/guestfs-actions.pod:213
6213 msgid "guestfs_add_drive_ro"
6214 msgstr ""
6215
6216 # type: verbatim
6217 #. type: verbatim
6218 #: ../src/guestfs-actions.pod:215
6219 #, no-wrap
6220 msgid ""
6221 " int\n"
6222 " guestfs_add_drive_ro (guestfs_h *g,\n"
6223 "                       const char *filename);\n"
6224 "\n"
6225 msgstr ""
6226
6227 # type: textblock
6228 #. type: textblock
6229 #: ../src/guestfs-actions.pod:219
6230 msgid ""
6231 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6232 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6233 "disk is added read-only, with the format being detected automatically."
6234 msgstr ""
6235
6236 # type: textblock
6237 #. type: textblock
6238 #: ../src/guestfs-actions.pod:226
6239 msgid "(Added in 1.0.38)"
6240 msgstr ""
6241
6242 # type: =head2
6243 #. type: =head2
6244 #: ../src/guestfs-actions.pod:228
6245 msgid "guestfs_add_drive_ro_with_if"
6246 msgstr ""
6247
6248 # type: verbatim
6249 #. type: verbatim
6250 #: ../src/guestfs-actions.pod:230
6251 #, no-wrap
6252 msgid ""
6253 " int\n"
6254 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6255 "                               const char *filename,\n"
6256 "                               const char *iface);\n"
6257 "\n"
6258 msgstr ""
6259
6260 # type: textblock
6261 #. type: textblock
6262 #: ../src/guestfs-actions.pod:235
6263 msgid ""
6264 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6265 "QEMU interface emulation to use at run time."
6266 msgstr ""
6267
6268 # type: textblock
6269 #. type: textblock
6270 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
6271 #: ../src/guestfs-actions.pod:2333
6272 msgid "(Added in 1.0.84)"
6273 msgstr ""
6274
6275 # type: =head2
6276 #. type: =head2
6277 #: ../src/guestfs-actions.pod:249
6278 msgid "guestfs_add_drive_with_if"
6279 msgstr ""
6280
6281 # type: verbatim
6282 #. type: verbatim
6283 #: ../src/guestfs-actions.pod:251
6284 #, no-wrap
6285 msgid ""
6286 " int\n"
6287 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6288 "                            const char *filename,\n"
6289 "                            const char *iface);\n"
6290 "\n"
6291 msgstr ""
6292
6293 # type: textblock
6294 #. type: textblock
6295 #: ../src/guestfs-actions.pod:256
6296 msgid ""
6297 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6298 "QEMU interface emulation to use at run time."
6299 msgstr ""
6300
6301 # type: =head2
6302 #. type: =head2
6303 #: ../src/guestfs-actions.pod:270
6304 msgid "guestfs_aug_clear"
6305 msgstr ""
6306
6307 # type: verbatim
6308 #. type: verbatim
6309 #: ../src/guestfs-actions.pod:272
6310 #, no-wrap
6311 msgid ""
6312 " int\n"
6313 " guestfs_aug_clear (guestfs_h *g,\n"
6314 "                    const char *augpath);\n"
6315 "\n"
6316 msgstr ""
6317
6318 # type: textblock
6319 #. type: textblock
6320 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:176
6321 msgid ""
6322 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6323 "L<augtool(1)> C<clear> command."
6324 msgstr ""
6325
6326 # type: textblock
6327 #. type: textblock
6328 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
6329 msgid "(Added in 1.3.4)"
6330 msgstr ""
6331
6332 # type: =head2
6333 #. type: =head2
6334 #: ../src/guestfs-actions.pod:283
6335 msgid "guestfs_aug_close"
6336 msgstr ""
6337
6338 # type: verbatim
6339 #. type: verbatim
6340 #: ../src/guestfs-actions.pod:285
6341 #, no-wrap
6342 msgid ""
6343 " int\n"
6344 " guestfs_aug_close (guestfs_h *g);\n"
6345 "\n"
6346 msgstr ""
6347
6348 # type: textblock
6349 #. type: textblock
6350 #: ../src/guestfs-actions.pod:288
6351 msgid ""
6352 "Close the current Augeas handle and free up any resources used by it.  After "
6353 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6354 "any other Augeas functions."
6355 msgstr ""
6356
6357 # type: textblock
6358 #. type: textblock
6359 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
6360 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
6361 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
6362 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
6363 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
6364 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
6365 #: ../src/guestfs-actions.pod:5320
6366 msgid "(Added in 0.7)"
6367 msgstr ""
6368
6369 # type: =head2
6370 #. type: =head2
6371 #: ../src/guestfs-actions.pod:297
6372 msgid "guestfs_aug_defnode"
6373 msgstr ""
6374
6375 # type: verbatim
6376 #. type: verbatim
6377 #: ../src/guestfs-actions.pod:299
6378 #, no-wrap
6379 msgid ""
6380 " struct guestfs_int_bool *\n"
6381 " guestfs_aug_defnode (guestfs_h *g,\n"
6382 "                      const char *name,\n"
6383 "                      const char *expr,\n"
6384 "                      const char *val);\n"
6385 "\n"
6386 msgstr ""
6387
6388 # type: textblock
6389 #. type: textblock
6390 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:192
6391 msgid ""
6392 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6393 msgstr ""
6394
6395 # type: textblock
6396 #. type: textblock
6397 #: ../src/guestfs-actions.pod:308
6398 msgid ""
6399 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6400 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6401 "containing that single node."
6402 msgstr ""
6403
6404 # type: textblock
6405 #. type: textblock
6406 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:199
6407 msgid ""
6408 "On success this returns a pair containing the number of nodes in the "
6409 "nodeset, and a boolean flag if a node was created."
6410 msgstr ""
6411
6412 # type: textblock
6413 #. type: textblock
6414 #: ../src/guestfs-actions.pod:316
6415 msgid ""
6416 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6417 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6418 msgstr ""
6419
6420 # type: =head2
6421 #. type: =head2
6422 #: ../src/guestfs-actions.pod:322
6423 msgid "guestfs_aug_defvar"
6424 msgstr ""
6425
6426 # type: verbatim
6427 #. type: verbatim
6428 #: ../src/guestfs-actions.pod:324
6429 #, no-wrap
6430 msgid ""
6431 " int\n"
6432 " guestfs_aug_defvar (guestfs_h *g,\n"
6433 "                     const char *name,\n"
6434 "                     const char *expr);\n"
6435 "\n"
6436 msgstr ""
6437
6438 # type: textblock
6439 #. type: textblock
6440 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:207
6441 msgid ""
6442 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6443 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6444 msgstr ""
6445
6446 # type: textblock
6447 #. type: textblock
6448 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:211
6449 msgid ""
6450 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6451 "evaluates to something which is not a nodeset."
6452 msgstr ""
6453
6454 # type: =head2
6455 #. type: =head2
6456 #: ../src/guestfs-actions.pod:340
6457 msgid "guestfs_aug_get"
6458 msgstr ""
6459
6460 # type: verbatim
6461 #. type: verbatim
6462 #: ../src/guestfs-actions.pod:342
6463 #, no-wrap
6464 msgid ""
6465 " char *\n"
6466 " guestfs_aug_get (guestfs_h *g,\n"
6467 "                  const char *augpath);\n"
6468 "\n"
6469 msgstr ""
6470
6471 # type: textblock
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:218
6474 msgid ""
6475 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6476 "node, the C<value> is returned."
6477 msgstr ""
6478
6479 # type: textblock
6480 #. type: textblock
6481 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
6482 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
6483 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
6484 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
6485 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
6486 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
6487 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
6488 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
6489 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2298
6490 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
6491 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2673
6492 #: ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2818
6493 #: ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2904
6494 #: ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:3494
6495 #: ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:4014
6496 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4855
6497 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5218
6498 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5445
6499 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6041
6500 #: ../src/guestfs-actions.pod:6058 ../src/guestfs-actions.pod:6082
6501 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:6775
6502 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6973
6503 #: ../src/guestfs-actions.pod:7245
6504 msgid ""
6505 "This function returns a string, or NULL on error.  I<The caller must free "
6506 "the returned string after use>."
6507 msgstr ""
6508
6509 # type: =head2
6510 #. type: =head2
6511 #: ../src/guestfs-actions.pod:354
6512 msgid "guestfs_aug_init"
6513 msgstr ""
6514
6515 # type: verbatim
6516 #. type: verbatim
6517 #: ../src/guestfs-actions.pod:356
6518 #, no-wrap
6519 msgid ""
6520 " int\n"
6521 " guestfs_aug_init (guestfs_h *g,\n"
6522 "                   const char *root,\n"
6523 "                   int flags);\n"
6524 "\n"
6525 msgstr ""
6526
6527 # type: textblock
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:225
6530 msgid ""
6531 "Create a new Augeas handle for editing configuration files.  If there was "
6532 "any previous Augeas handle associated with this guestfs session, then it is "
6533 "closed."
6534 msgstr ""
6535
6536 # type: textblock
6537 #. type: textblock
6538 #: ../src/guestfs-actions.pod:365
6539 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6540 msgstr ""
6541
6542 # type: textblock
6543 #. type: textblock
6544 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:232
6545 msgid ""
6546 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6547 msgstr ""
6548
6549 # type: textblock
6550 #. type: textblock
6551 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:235
6552 msgid ""
6553 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6554 "logical I<or> of the following integers:"
6555 msgstr ""
6556
6557 # type: =item
6558 #. type: =item
6559 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:241
6560 msgid "C<AUG_SAVE_BACKUP> = 1"
6561 msgstr ""
6562
6563 # type: textblock
6564 #. type: textblock
6565 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
6566 msgid "Keep the original file with a C<.augsave> extension."
6567 msgstr ""
6568
6569 # type: =item
6570 #. type: =item
6571 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
6572 msgid "C<AUG_SAVE_NEWFILE> = 2"
6573 msgstr ""
6574
6575 # type: textblock
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
6578 msgid ""
6579 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6580 "original.  Overrides C<AUG_SAVE_BACKUP>."
6581 msgstr ""
6582
6583 # type: =item
6584 #. type: =item
6585 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:250
6586 msgid "C<AUG_TYPE_CHECK> = 4"
6587 msgstr ""
6588
6589 # type: textblock
6590 #. type: textblock
6591 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
6592 msgid "Typecheck lenses (can be expensive)."
6593 msgstr ""
6594
6595 # type: =item
6596 #. type: =item
6597 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
6598 msgid "C<AUG_NO_STDINC> = 8"
6599 msgstr ""
6600
6601 # type: textblock
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
6604 msgid "Do not use standard load path for modules."
6605 msgstr ""
6606
6607 # type: =item
6608 #. type: =item
6609 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
6610 msgid "C<AUG_SAVE_NOOP> = 16"
6611 msgstr ""
6612
6613 # type: textblock
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
6616 msgid "Make save a no-op, just record what would have been changed."
6617 msgstr ""
6618
6619 # type: =item
6620 #. type: =item
6621 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
6622 msgid "C<AUG_NO_LOAD> = 32"
6623 msgstr ""
6624
6625 # type: textblock
6626 #. type: textblock
6627 #: ../src/guestfs-actions.pod:400
6628 msgid "Do not load the tree in C<guestfs_aug_init>."
6629 msgstr ""
6630
6631 # type: textblock
6632 #. type: textblock
6633 #: ../src/guestfs-actions.pod:404
6634 msgid "To close the handle, you can call C<guestfs_aug_close>."
6635 msgstr ""
6636
6637 # type: textblock
6638 #. type: textblock
6639 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:270
6640 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6641 msgstr ""
6642
6643 # type: =head2
6644 #. type: =head2
6645 #: ../src/guestfs-actions.pod:412
6646 msgid "guestfs_aug_insert"
6647 msgstr ""
6648
6649 # type: verbatim
6650 #. type: verbatim
6651 #: ../src/guestfs-actions.pod:414
6652 #, no-wrap
6653 msgid ""
6654 " int\n"
6655 " guestfs_aug_insert (guestfs_h *g,\n"
6656 "                     const char *augpath,\n"
6657 "                     const char *label,\n"
6658 "                     int before);\n"
6659 "\n"
6660 msgstr ""
6661
6662 # type: textblock
6663 #. type: textblock
6664 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:276
6665 msgid ""
6666 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6667 "or after C<path> (depending on the boolean flag C<before>)."
6668 msgstr ""
6669
6670 # type: textblock
6671 #. type: textblock
6672 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:280
6673 msgid ""
6674 "C<path> must match exactly one existing node in the tree, and C<label> must "
6675 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6676 msgstr ""
6677
6678 # type: =head2
6679 #. type: =head2
6680 #: ../src/guestfs-actions.pod:432
6681 msgid "guestfs_aug_load"
6682 msgstr ""
6683
6684 # type: verbatim
6685 #. type: verbatim
6686 #: ../src/guestfs-actions.pod:434
6687 #, no-wrap
6688 msgid ""
6689 " int\n"
6690 " guestfs_aug_load (guestfs_h *g);\n"
6691 "\n"
6692 msgstr ""
6693
6694 # type: textblock
6695 #. type: textblock
6696 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:288
6697 msgid "Load files into the tree."
6698 msgstr ""
6699
6700 # type: textblock
6701 #. type: textblock
6702 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
6703 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6704 msgstr ""
6705
6706 # type: =head2
6707 #. type: =head2
6708 #: ../src/guestfs-actions.pod:446
6709 msgid "guestfs_aug_ls"
6710 msgstr ""
6711
6712 # type: verbatim
6713 #. type: verbatim
6714 #: ../src/guestfs-actions.pod:448
6715 #, no-wrap
6716 msgid ""
6717 " char **\n"
6718 " guestfs_aug_ls (guestfs_h *g,\n"
6719 "                 const char *augpath);\n"
6720 "\n"
6721 msgstr ""
6722
6723 # type: textblock
6724 #. type: textblock
6725 #: ../src/guestfs-actions.pod:452
6726 msgid ""
6727 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6728 "sorting the resulting nodes into alphabetical order."
6729 msgstr ""
6730
6731 # type: textblock
6732 #. type: textblock
6733 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
6734 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
6735 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
6736 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
6737 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2178
6738 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
6739 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
6740 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
6741 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2861
6742 #: ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:3414
6743 #: ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:3581
6744 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4670
6745 #: ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5316
6746 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:6098
6747 #: ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6214
6748 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6384
6749 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6886
6750 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:7098
6751 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7202
6752 #: ../src/guestfs-actions.pod:7221 ../src/guestfs-actions.pod:7267
6753 #: ../src/guestfs-actions.pod:7286
6754 msgid ""
6755 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6756 ">), or NULL if there was an error.  I<The caller must free the strings and "
6757 "the array after use>."
6758 msgstr ""
6759
6760 # type: textblock
6761 #. type: textblock
6762 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
6763 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
6764 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3238
6765 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3877
6766 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4097
6767 #: ../src/guestfs-actions.pod:4260 ../src/guestfs-actions.pod:4674
6768 #: ../src/guestfs-actions.pod:5131 ../src/guestfs-actions.pod:5526
6769 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5552
6770 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6598
6771 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6850
6772 #: ../src/guestfs-actions.pod:7086
6773 msgid "(Added in 0.8)"
6774 msgstr ""
6775
6776 # type: =head2
6777 #. type: =head2
6778 #: ../src/guestfs-actions.pod:461
6779 msgid "guestfs_aug_match"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #. type: verbatim
6784 #: ../src/guestfs-actions.pod:463
6785 #, no-wrap
6786 msgid ""
6787 " char **\n"
6788 " guestfs_aug_match (guestfs_h *g,\n"
6789 "                    const char *augpath);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: textblock
6794 #. type: textblock
6795 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:304
6796 msgid ""
6797 "Returns a list of paths which match the path expression C<path>.  The "
6798 "returned paths are sufficiently qualified so that they match exactly one "
6799 "node in the current tree."
6800 msgstr ""
6801
6802 # type: =head2
6803 #. type: =head2
6804 #: ../src/guestfs-actions.pod:477
6805 msgid "guestfs_aug_mv"
6806 msgstr ""
6807
6808 # type: verbatim
6809 #. type: verbatim
6810 #: ../src/guestfs-actions.pod:479
6811 #, no-wrap
6812 msgid ""
6813 " int\n"
6814 " guestfs_aug_mv (guestfs_h *g,\n"
6815 "                 const char *src,\n"
6816 "                 const char *dest);\n"
6817 "\n"
6818 msgstr ""
6819
6820 # type: textblock
6821 #. type: textblock
6822 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:312
6823 msgid ""
6824 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6825 "C<dest> is overwritten if it exists."
6826 msgstr ""
6827
6828 # type: =head2
6829 #. type: =head2
6830 #: ../src/guestfs-actions.pod:491
6831 msgid "guestfs_aug_rm"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #. type: verbatim
6836 #: ../src/guestfs-actions.pod:493
6837 #, no-wrap
6838 msgid ""
6839 " int\n"
6840 " guestfs_aug_rm (guestfs_h *g,\n"
6841 "                 const char *augpath);\n"
6842 "\n"
6843 msgstr ""
6844
6845 # type: textblock
6846 #. type: textblock
6847 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:319
6848 msgid "Remove C<path> and all of its children."
6849 msgstr ""
6850
6851 # type: textblock
6852 #. type: textblock
6853 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
6854 msgid "On success this returns the number of entries which were removed."
6855 msgstr ""
6856
6857 # type: =head2
6858 #. type: =head2
6859 #: ../src/guestfs-actions.pod:505
6860 msgid "guestfs_aug_save"
6861 msgstr ""
6862
6863 # type: verbatim
6864 #. type: verbatim
6865 #: ../src/guestfs-actions.pod:507
6866 #, no-wrap
6867 msgid ""
6868 " int\n"
6869 " guestfs_aug_save (guestfs_h *g);\n"
6870 "\n"
6871 msgstr ""
6872
6873 # type: textblock
6874 #. type: textblock
6875 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:327
6876 msgid "This writes all pending changes to disk."
6877 msgstr ""
6878
6879 # type: textblock
6880 #. type: textblock
6881 #: ../src/guestfs-actions.pod:512
6882 msgid ""
6883 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6884 "are saved."
6885 msgstr ""
6886
6887 # type: =head2
6888 #. type: =head2
6889 #: ../src/guestfs-actions.pod:519
6890 msgid "guestfs_aug_set"
6891 msgstr ""
6892
6893 # type: verbatim
6894 #. type: verbatim
6895 #: ../src/guestfs-actions.pod:521
6896 #, no-wrap
6897 msgid ""
6898 " int\n"
6899 " guestfs_aug_set (guestfs_h *g,\n"
6900 "                  const char *augpath,\n"
6901 "                  const char *val);\n"
6902 "\n"
6903 msgstr ""
6904
6905 # type: textblock
6906 #. type: textblock
6907 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:336
6908 msgid "Set the value associated with C<path> to C<val>."
6909 msgstr ""
6910
6911 # type: textblock
6912 #. type: textblock
6913 #: ../src/guestfs-actions.pod:528
6914 msgid ""
6915 "In the Augeas API, it is possible to clear a node by setting the value to "
6916 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6917 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6918 msgstr ""
6919
6920 # type: =head2
6921 #. type: =head2
6922 #: ../src/guestfs-actions.pod:537
6923 msgid "guestfs_available"
6924 msgstr ""
6925
6926 # type: verbatim
6927 #. type: verbatim
6928 #: ../src/guestfs-actions.pod:539
6929 #, no-wrap
6930 msgid ""
6931 " int\n"
6932 " guestfs_available (guestfs_h *g,\n"
6933 "                    char *const *groups);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #. type: textblock
6939 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:347
6940 msgid ""
6941 "This command is used to check the availability of some groups of "
6942 "functionality in the appliance, which not all builds of the libguestfs "
6943 "appliance will be able to provide."
6944 msgstr ""
6945
6946 # type: textblock
6947 #. type: textblock
6948 #: ../src/guestfs-actions.pod:547
6949 msgid ""
6950 "The libguestfs groups, and the functions that those groups correspond to, "
6951 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6952 "runtime by calling C<guestfs_available_all_groups>."
6953 msgstr ""
6954
6955 # type: textblock
6956 #. type: textblock
6957 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:356
6958 msgid ""
6959 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6960 "\"]> would check for the availability of the Linux inotify functions and "
6961 "Augeas (configuration file editing) functions."
6962 msgstr ""
6963
6964 # type: textblock
6965 #. type: textblock
6966 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:361
6967 msgid "The command returns no error if I<all> requested groups are available."
6968 msgstr ""
6969
6970 # type: textblock
6971 #. type: textblock
6972 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
6973 msgid ""
6974 "It fails with an error if one or more of the requested groups is unavailable "
6975 "in the appliance."
6976 msgstr ""
6977
6978 # type: textblock
6979 #. type: textblock
6980 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:366
6981 msgid ""
6982 "If an unknown group name is included in the list of groups then an error is "
6983 "always returned."
6984 msgstr ""
6985
6986 # type: textblock
6987 #. type: textblock
6988 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:369
6989 msgid "I<Notes:>"
6990 msgstr ""
6991
6992 # type: textblock
6993 #. type: textblock
6994 #: ../src/guestfs-actions.pod:571
6995 msgid "You must call C<guestfs_launch> before calling this function."
6996 msgstr ""
6997
6998 # type: textblock
6999 #. type: textblock
7000 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:377
7001 msgid ""
7002 "The reason is because we don't know what groups are supported by the "
7003 "appliance/daemon until it is running and can be queried."
7004 msgstr ""
7005
7006 # type: textblock
7007 #. type: textblock
7008 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:383
7009 msgid ""
7010 "If a group of functions is available, this does not necessarily mean that "
7011 "they will work.  You still have to check for errors when calling individual "
7012 "API functions even if they are available."
7013 msgstr ""
7014
7015 # type: textblock
7016 #. type: textblock
7017 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:390
7018 msgid ""
7019 "It is usually the job of distro packagers to build complete functionality "
7020 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7021 "with all requirements satisfied, will support everything."
7022 msgstr ""
7023
7024 # type: textblock
7025 #. type: textblock
7026 #: ../src/guestfs-actions.pod:593
7027 msgid ""
7028 "This call was added in version C<1.0.80>.  In previous versions of "
7029 "libguestfs all you could do would be to speculatively execute a command to "
7030 "find out if the daemon implemented it.  See also C<guestfs_version>."
7031 msgstr ""
7032
7033 # type: textblock
7034 #. type: textblock
7035 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
7036 msgid "(Added in 1.0.80)"
7037 msgstr ""
7038
7039 # type: =head2
7040 #. type: =head2
7041 #: ../src/guestfs-actions.pod:604
7042 msgid "guestfs_available_all_groups"
7043 msgstr ""
7044
7045 # type: verbatim
7046 #. type: verbatim
7047 #: ../src/guestfs-actions.pod:606
7048 #, no-wrap
7049 msgid ""
7050 " char **\n"
7051 " guestfs_available_all_groups (guestfs_h *g);\n"
7052 "\n"
7053 msgstr ""
7054
7055 # type: textblock
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:609
7058 msgid ""
7059 "This command returns a list of all optional groups that this daemon knows "
7060 "about.  Note this returns both supported and unsupported groups.  To find "
7061 "out which ones the daemon can actually support you have to call "
7062 "C<guestfs_available> on each member of the returned list."
7063 msgstr ""
7064
7065 # type: textblock
7066 #. type: textblock
7067 #: ../src/guestfs-actions.pod:615
7068 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:621
7074 msgid "(Added in 1.3.15)"
7075 msgstr ""
7076
7077 # type: =head2
7078 #. type: =head2
7079 #: ../src/guestfs-actions.pod:623
7080 msgid "guestfs_base64_in"
7081 msgstr ""
7082
7083 # type: verbatim
7084 #. type: verbatim
7085 #: ../src/guestfs-actions.pod:625
7086 #, no-wrap
7087 msgid ""
7088 " int\n"
7089 " guestfs_base64_in (guestfs_h *g,\n"
7090 "                    const char *base64file,\n"
7091 "                    const char *filename);\n"
7092 "\n"
7093 msgstr ""
7094
7095 # type: textblock
7096 #. type: textblock
7097 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:420
7098 msgid ""
7099 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7100 msgstr ""
7101
7102 # type: textblock
7103 #. type: textblock
7104 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
7105 msgid "(Added in 1.3.5)"
7106 msgstr ""
7107
7108 # type: =head2
7109 #. type: =head2
7110 #: ../src/guestfs-actions.pod:637
7111 msgid "guestfs_base64_out"
7112 msgstr ""
7113
7114 # type: verbatim
7115 #. type: verbatim
7116 #: ../src/guestfs-actions.pod:639
7117 #, no-wrap
7118 msgid ""
7119 " int\n"
7120 " guestfs_base64_out (guestfs_h *g,\n"
7121 "                     const char *filename,\n"
7122 "                     const char *base64file);\n"
7123 "\n"
7124 msgstr ""
7125
7126 # type: textblock
7127 #. type: textblock
7128 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:429
7129 msgid ""
7130 "This command downloads the contents of C<filename>, writing it out to local "
7131 "file C<base64file> encoded as base64."
7132 msgstr ""
7133
7134 # type: =head2
7135 #. type: =head2
7136 #: ../src/guestfs-actions.pod:651
7137 msgid "guestfs_blockdev_flushbufs"
7138 msgstr ""
7139
7140 # type: verbatim
7141 #. type: verbatim
7142 #: ../src/guestfs-actions.pod:653
7143 #, no-wrap
7144 msgid ""
7145 " int\n"
7146 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7147 "                             const char *device);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #. type: textblock
7153 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:438
7154 msgid ""
7155 "This tells the kernel to flush internal buffers associated with C<device>."
7156 msgstr ""
7157
7158 # type: textblock
7159 #. type: textblock
7160 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
7161 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
7162 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
7163 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
7164 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
7165 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:452
7166 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:471
7167 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:496
7168 #: ../fish/guestfish-actions.pod:504 ../fish/guestfish-actions.pod:515
7169 #: ../fish/guestfish-actions.pod:523 ../fish/guestfish-actions.pod:531
7170 msgid "This uses the L<blockdev(8)> command."
7171 msgstr ""
7172
7173 # type: textblock
7174 #. type: textblock
7175 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
7176 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
7177 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
7178 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
7179 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
7180 msgid "(Added in 0.9.3)"
7181 msgstr ""
7182
7183 # type: =head2
7184 #. type: =head2
7185 #: ../src/guestfs-actions.pod:666
7186 msgid "guestfs_blockdev_getbsz"
7187 msgstr ""
7188
7189 # type: verbatim
7190 #. type: verbatim
7191 #: ../src/guestfs-actions.pod:668
7192 #, no-wrap
7193 msgid ""
7194 " int\n"
7195 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7196 "                          const char *device);\n"
7197 "\n"
7198 msgstr ""
7199
7200 # type: textblock
7201 #. type: textblock
7202 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:447
7203 msgid "This returns the block size of a device."
7204 msgstr ""
7205
7206 # type: textblock
7207 #. type: textblock
7208 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
7209 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:512
7210 msgid ""
7211 "(Note this is different from both I<size in blocks> and I<filesystem block "
7212 "size>)."
7213 msgstr ""
7214
7215 # type: =head2
7216 #. type: =head2
7217 #: ../src/guestfs-actions.pod:683
7218 msgid "guestfs_blockdev_getro"
7219 msgstr ""
7220
7221 # type: verbatim
7222 #. type: verbatim
7223 #: ../src/guestfs-actions.pod:685
7224 #, no-wrap
7225 msgid ""
7226 " int\n"
7227 " guestfs_blockdev_getro (guestfs_h *g,\n"
7228 "                         const char *device);\n"
7229 "\n"
7230 msgstr ""
7231
7232 # type: textblock
7233 #. type: textblock
7234 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:458
7235 msgid ""
7236 "Returns a boolean indicating if the block device is read-only (true if read-"
7237 "only, false if not)."
7238 msgstr ""
7239
7240 # type: textblock
7241 #. type: textblock
7242 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
7243 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
7244 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
7245 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
7246 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
7247 #: ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2964
7248 #: ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3146
7249 #: ../src/guestfs-actions.pod:3160 ../src/guestfs-actions.pod:3175
7250 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3205
7251 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3236
7252 #: ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3263
7253 #: ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3292
7254 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:4819
7255 msgid "This function returns a C truth value on success or -1 on error."
7256 msgstr ""
7257
7258 # type: =head2
7259 #. type: =head2
7260 #: ../src/guestfs-actions.pod:698
7261 msgid "guestfs_blockdev_getsize64"
7262 msgstr ""
7263
7264 # type: verbatim
7265 #. type: verbatim
7266 #: ../src/guestfs-actions.pod:700
7267 #, no-wrap
7268 msgid ""
7269 " int64_t\n"
7270 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7271 "                             const char *device);\n"
7272 "\n"
7273 msgstr ""
7274
7275 # type: textblock
7276 #. type: textblock
7277 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:467
7278 msgid "This returns the size of the device in bytes."
7279 msgstr ""
7280
7281 # type: textblock
7282 #. type: textblock
7283 #: ../src/guestfs-actions.pod:706
7284 msgid "See also C<guestfs_blockdev_getsz>."
7285 msgstr ""
7286
7287 # type: =head2
7288 #. type: =head2
7289 #: ../src/guestfs-actions.pod:714
7290 msgid "guestfs_blockdev_getss"
7291 msgstr ""
7292
7293 # type: verbatim
7294 #. type: verbatim
7295 #: ../src/guestfs-actions.pod:716
7296 #, no-wrap
7297 msgid ""
7298 " int\n"
7299 " guestfs_blockdev_getss (guestfs_h *g,\n"
7300 "                         const char *device);\n"
7301 "\n"
7302 msgstr ""
7303
7304 # type: textblock
7305 #. type: textblock
7306 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:477
7307 msgid ""
7308 "This returns the size of sectors on a block device.  Usually 512, but can be "
7309 "larger for modern devices."
7310 msgstr ""
7311
7312 # type: textblock
7313 #. type: textblock
7314 #: ../src/guestfs-actions.pod:723
7315 msgid ""
7316 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7317 "that)."
7318 msgstr ""
7319
7320 # type: =head2
7321 #. type: =head2
7322 #: ../src/guestfs-actions.pod:732
7323 msgid "guestfs_blockdev_getsz"
7324 msgstr ""
7325
7326 # type: verbatim
7327 #. type: verbatim
7328 #: ../src/guestfs-actions.pod:734
7329 #, no-wrap
7330 msgid ""
7331 " int64_t\n"
7332 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7333 "                         const char *device);\n"
7334 "\n"
7335 msgstr ""
7336
7337 # type: textblock
7338 #. type: textblock
7339 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:489
7340 msgid ""
7341 "This returns the size of the device in units of 512-byte sectors (even if "
7342 "the sectorsize isn't 512 bytes ... weird)."
7343 msgstr ""
7344
7345 # type: textblock
7346 #. type: textblock
7347 #: ../src/guestfs-actions.pod:741
7348 msgid ""
7349 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7350 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7351 msgstr ""
7352
7353 # type: =head2
7354 #. type: =head2
7355 #: ../src/guestfs-actions.pod:751
7356 msgid "guestfs_blockdev_rereadpt"
7357 msgstr ""
7358
7359 # type: verbatim
7360 #. type: verbatim
7361 #: ../src/guestfs-actions.pod:753
7362 #, no-wrap
7363 msgid ""
7364 " int\n"
7365 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7366 "                            const char *device);\n"
7367 "\n"
7368 msgstr ""
7369
7370 # type: textblock
7371 #. type: textblock
7372 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:502
7373 msgid "Reread the partition table on C<device>."
7374 msgstr ""
7375
7376 # type: =head2
7377 #. type: =head2
7378 #: ../src/guestfs-actions.pod:765
7379 msgid "guestfs_blockdev_setbsz"
7380 msgstr ""
7381
7382 # type: verbatim
7383 #. type: verbatim
7384 #: ../src/guestfs-actions.pod:767
7385 #, no-wrap
7386 msgid ""
7387 " int\n"
7388 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7389 "                          const char *device,\n"
7390 "                          int blocksize);\n"
7391 "\n"
7392 msgstr ""
7393
7394 # type: textblock
7395 #. type: textblock
7396 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:510
7397 msgid "This sets the block size of a device."
7398 msgstr ""
7399
7400 # type: =head2
7401 #. type: =head2
7402 #: ../src/guestfs-actions.pod:783
7403 msgid "guestfs_blockdev_setro"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #. type: verbatim
7408 #: ../src/guestfs-actions.pod:785
7409 #, no-wrap
7410 msgid ""
7411 " int\n"
7412 " guestfs_blockdev_setro (guestfs_h *g,\n"
7413 "                         const char *device);\n"
7414 "\n"
7415 msgstr ""
7416
7417 # type: textblock
7418 #. type: textblock
7419 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:521
7420 msgid "Sets the block device named C<device> to read-only."
7421 msgstr ""
7422
7423 # type: =head2
7424 #. type: =head2
7425 #: ../src/guestfs-actions.pod:797
7426 msgid "guestfs_blockdev_setrw"
7427 msgstr ""
7428
7429 # type: verbatim
7430 #. type: verbatim
7431 #: ../src/guestfs-actions.pod:799
7432 #, no-wrap
7433 msgid ""
7434 " int\n"
7435 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7436 "                         const char *device);\n"
7437 "\n"
7438 msgstr ""
7439
7440 # type: textblock
7441 #. type: textblock
7442 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:529
7443 msgid "Sets the block device named C<device> to read-write."
7444 msgstr ""
7445
7446 # type: =head2
7447 #. type: =head2
7448 #: ../src/guestfs-actions.pod:811
7449 msgid "guestfs_case_sensitive_path"
7450 msgstr ""
7451
7452 # type: verbatim
7453 #. type: verbatim
7454 #: ../src/guestfs-actions.pod:813
7455 #, no-wrap
7456 msgid ""
7457 " char *\n"
7458 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7459 "                              const char *path);\n"
7460 "\n"
7461 msgstr ""
7462
7463 # type: textblock
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:537
7466 msgid ""
7467 "This can be used to resolve case insensitive paths on a filesystem which is "
7468 "case sensitive.  The use case is to resolve paths which you have read from "
7469 "Windows configuration files or the Windows Registry, to the true path."
7470 msgstr ""
7471
7472 # type: textblock
7473 #. type: textblock
7474 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:542
7475 msgid ""
7476 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7477 "(and probably others), which is that although the underlying filesystem is "
7478 "case-insensitive, the driver exports the filesystem to Linux as case-"
7479 "sensitive."
7480 msgstr ""
7481
7482 # type: textblock
7483 #. type: textblock
7484 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:547
7485 msgid ""
7486 "One consequence of this is that special directories such as C<c:\\windows> "
7487 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7488 "precise details of how they were created.  In Windows itself this would not "
7489 "be a problem."
7490 msgstr ""
7491
7492 # type: textblock
7493 #. type: textblock
7494 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:553
7495 msgid ""
7496 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7497 "#posixfilenames1>"
7498 msgstr ""
7499
7500 # type: textblock
7501 #. type: textblock
7502 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:556
7503 msgid ""
7504 "This function resolves the true case of each element in the path and returns "
7505 "the case-sensitive path."
7506 msgstr ""
7507
7508 # type: textblock
7509 #. type: textblock
7510 #: ../src/guestfs-actions.pod:839
7511 msgid ""
7512 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7513 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7514 "how the directories were originally created under Windows)."
7515 msgstr ""
7516
7517 # type: textblock
7518 #. type: textblock
7519 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:564
7520 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7521 msgstr ""
7522
7523 # type: textblock
7524 #. type: textblock
7525 #: ../src/guestfs-actions.pod:847
7526 msgid "See also C<guestfs_realpath>."
7527 msgstr ""
7528
7529 # type: textblock
7530 #. type: textblock
7531 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6778
7532 msgid "(Added in 1.0.75)"
7533 msgstr ""
7534
7535 # type: =head2
7536 #. type: =head2
7537 #: ../src/guestfs-actions.pod:854
7538 msgid "guestfs_cat"
7539 msgstr ""
7540
7541 # type: verbatim
7542 #. type: verbatim
7543 #: ../src/guestfs-actions.pod:856
7544 #, no-wrap
7545 msgid ""
7546 " char *\n"
7547 " guestfs_cat (guestfs_h *g,\n"
7548 "              const char *path);\n"
7549 "\n"
7550 msgstr ""
7551
7552 # type: textblock
7553 #. type: textblock
7554 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5306
7555 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3541
7556 msgid "Return the contents of the file named C<path>."
7557 msgstr ""
7558
7559 # type: textblock
7560 #. type: textblock
7561 #: ../src/guestfs-actions.pod:862
7562 msgid ""
7563 "Note that this function cannot correctly handle binary files (specifically, "
7564 "files containing C<\\0> character which is treated as end of string).  For "
7565 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7566 "functions which have a more complex interface."
7567 msgstr ""
7568
7569 # type: textblock
7570 #. type: textblock
7571 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
7572 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
7573 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
7574 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
7575 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
7576 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
7577 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
7578 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:5114
7579 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5271
7580 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:6163
7581 #: ../src/guestfs-actions.pod:6218 ../src/guestfs-actions.pod:6364
7582 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:7050
7583 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7102
7584 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7206
7585 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7271
7586 #: ../src/guestfs-actions.pod:7290 ../fish/guestfish-actions.pod:580
7587 #: ../fish/guestfish-actions.pod:715 ../fish/guestfish-actions.pod:727
7588 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:913
7589 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990
7590 #: ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1480
7591 #: ../fish/guestfish-actions.pod:1490 ../fish/guestfish-actions.pod:1518
7592 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:1543
7593 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:3411
7594 #: ../fish/guestfish-actions.pod:3426 ../fish/guestfish-actions.pod:3502
7595 #: ../fish/guestfish-actions.pod:3519 ../fish/guestfish-actions.pod:3534
7596 #: ../fish/guestfish-actions.pod:4130 ../fish/guestfish-actions.pod:4176
7597 #: ../fish/guestfish-actions.pod:4261 ../fish/guestfish-actions.pod:4276
7598 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4704
7599 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4731
7600 #: ../fish/guestfish-actions.pod:4779 ../fish/guestfish-actions.pod:4789
7601 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4828
7602 msgid ""
7603 "Because of the message protocol, there is a transfer limit of somewhere "
7604 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7605 msgstr ""
7606
7607 # type: textblock
7608 #. type: textblock
7609 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3418
7610 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3497
7611 #: ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3990
7612 #: ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:5194
7613 #: ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:6937
7614 #: ../src/guestfs-actions.pod:6951
7615 msgid "(Added in 0.4)"
7616 msgstr ""
7617
7618 # type: =head2
7619 #. type: =head2
7620 #: ../src/guestfs-actions.pod:875
7621 msgid "guestfs_checksum"
7622 msgstr ""
7623
7624 # type: verbatim
7625 #. type: verbatim
7626 #: ../src/guestfs-actions.pod:877
7627 #, no-wrap
7628 msgid ""
7629 " char *\n"
7630 " guestfs_checksum (guestfs_h *g,\n"
7631 "                   const char *csumtype,\n"
7632 "                   const char *path);\n"
7633 "\n"
7634 msgstr ""
7635
7636 # type: textblock
7637 #. type: textblock
7638 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:587
7639 msgid ""
7640 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7641 msgstr ""
7642
7643 # type: textblock
7644 #. type: textblock
7645 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:590
7646 msgid ""
7647 "The type of checksum to compute is given by the C<csumtype> parameter which "
7648 "must have one of the following values:"
7649 msgstr ""
7650
7651 # type: =item
7652 #. type: =item
7653 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:595
7654 msgid "C<crc>"
7655 msgstr ""
7656
7657 # type: textblock
7658 #. type: textblock
7659 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
7660 msgid ""
7661 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7662 "C<cksum> command."
7663 msgstr ""
7664
7665 # type: =item
7666 #. type: =item
7667 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:600
7668 msgid "C<md5>"
7669 msgstr ""
7670
7671 # type: textblock
7672 #. type: textblock
7673 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
7674 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7675 msgstr ""
7676
7677 # type: =item
7678 #. type: =item
7679 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
7680 msgid "C<sha1>"
7681 msgstr ""
7682
7683 # type: textblock
7684 #. type: textblock
7685 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
7686 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7687 msgstr ""
7688
7689 # type: =item
7690 #. type: =item
7691 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
7692 msgid "C<sha224>"
7693 msgstr ""
7694
7695 # type: textblock
7696 #. type: textblock
7697 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
7698 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7699 msgstr ""
7700
7701 # type: =item
7702 #. type: =item
7703 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
7704 msgid "C<sha256>"
7705 msgstr ""
7706
7707 # type: textblock
7708 #. type: textblock
7709 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
7710 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7711 msgstr ""
7712
7713 # type: =item
7714 #. type: =item
7715 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
7716 msgid "C<sha384>"
7717 msgstr ""
7718
7719 # type: textblock
7720 #. type: textblock
7721 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
7722 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7723 msgstr ""
7724
7725 # type: =item
7726 #. type: =item
7727 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
7728 msgid "C<sha512>"
7729 msgstr ""
7730
7731 # type: textblock
7732 #. type: textblock
7733 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
7734 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7735 msgstr ""
7736
7737 # type: textblock
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:626
7740 msgid "The checksum is returned as a printable string."
7741 msgstr ""
7742
7743 # type: textblock
7744 #. type: textblock
7745 #: ../src/guestfs-actions.pod:923
7746 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7747 msgstr ""
7748
7749 # type: textblock
7750 #. type: textblock
7751 #: ../src/guestfs-actions.pod:925
7752 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7753 msgstr ""
7754
7755 # type: textblock
7756 #. type: textblock
7757 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
7758 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3162
7759 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3252
7760 #: ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:6634
7761 msgid "(Added in 1.0.2)"
7762 msgstr ""
7763
7764 # type: =head2
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:932
7767 msgid "guestfs_checksum_device"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #. type: verbatim
7772 #: ../src/guestfs-actions.pod:934
7773 #, no-wrap
7774 msgid ""
7775 " char *\n"
7776 " guestfs_checksum_device (guestfs_h *g,\n"
7777 "                          const char *csumtype,\n"
7778 "                          const char *device);\n"
7779 "\n"
7780 msgstr ""
7781
7782 # type: textblock
7783 #. type: textblock
7784 #: ../src/guestfs-actions.pod:939
7785 msgid ""
7786 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7787 "device named C<device>.  For the types of checksums supported see the "
7788 "C<guestfs_checksum> command."
7789 msgstr ""
7790
7791 # type: textblock
7792 #. type: textblock
7793 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4725
7794 #: ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4821
7795 #: ../src/guestfs-actions.pod:4839 ../src/guestfs-actions.pod:5015
7796 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
7797 #: ../src/guestfs-actions.pod:6963
7798 msgid "(Added in 1.3.2)"
7799 msgstr ""
7800
7801 # type: =head2
7802 #. type: =head2
7803 #: ../src/guestfs-actions.pod:948
7804 msgid "guestfs_checksums_out"
7805 msgstr ""
7806
7807 # type: verbatim
7808 #. type: verbatim
7809 #: ../src/guestfs-actions.pod:950
7810 #, no-wrap
7811 msgid ""
7812 " int\n"
7813 " guestfs_checksums_out (guestfs_h *g,\n"
7814 "                        const char *csumtype,\n"
7815 "                        const char *directory,\n"
7816 "                        const char *sumsfile);\n"
7817 "\n"
7818 msgstr ""
7819
7820 # type: textblock
7821 #. type: textblock
7822 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:644
7823 msgid ""
7824 "This command computes the checksums of all regular files in C<directory> and "
7825 "then emits a list of those checksums to the local output file C<sumsfile>."
7826 msgstr ""
7827
7828 # type: textblock
7829 #. type: textblock
7830 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:648
7831 msgid ""
7832 "This can be used for verifying the integrity of a virtual machine.  However "
7833 "to be properly secure you should pay attention to the output of the checksum "
7834 "command (it uses the ones from GNU coreutils).  In particular when the "
7835 "filename is not printable, coreutils uses a special backslash syntax.  For "
7836 "more information, see the GNU coreutils info file."
7837 msgstr ""
7838
7839 # type: textblock
7840 #. type: textblock
7841 #: ../src/guestfs-actions.pod:970
7842 msgid "(Added in 1.3.7)"
7843 msgstr ""
7844
7845 # type: =head2
7846 #. type: =head2
7847 #: ../src/guestfs-actions.pod:972
7848 msgid "guestfs_chmod"
7849 msgstr ""
7850
7851 # type: verbatim
7852 #. type: verbatim
7853 #: ../src/guestfs-actions.pod:974
7854 #, no-wrap
7855 msgid ""
7856 " int\n"
7857 " guestfs_chmod (guestfs_h *g,\n"
7858 "                int mode,\n"
7859 "                const char *path);\n"
7860 "\n"
7861 msgstr ""
7862
7863 # type: textblock
7864 #. type: textblock
7865 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:662
7866 msgid ""
7867 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7868 "supported."
7869 msgstr ""
7870
7871 # type: textblock
7872 #. type: textblock
7873 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:665
7874 msgid ""
7875 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7876 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7877 "C<700>."
7878 msgstr ""
7879
7880 # type: textblock
7881 #. type: textblock
7882 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4241
7883 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:4443
7884 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:669
7885 #: ../fish/guestfish-actions.pod:2870 ../fish/guestfish-actions.pod:2986
7886 #: ../fish/guestfish-actions.pod:2996 ../fish/guestfish-actions.pod:3006
7887 msgid "The mode actually set is affected by the umask."
7888 msgstr ""
7889
7890 # type: =head2
7891 #. type: =head2
7892 #: ../src/guestfs-actions.pod:992
7893 msgid "guestfs_chown"
7894 msgstr ""
7895
7896 # type: verbatim
7897 #. type: verbatim
7898 #: ../src/guestfs-actions.pod:994
7899 #, no-wrap
7900 msgid ""
7901 " int\n"
7902 " guestfs_chown (guestfs_h *g,\n"
7903 "                int owner,\n"
7904 "                int group,\n"
7905 "                const char *path);\n"
7906 "\n"
7907 msgstr ""
7908
7909 # type: textblock
7910 #. type: textblock
7911 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:675
7912 msgid "Change the file owner to C<owner> and group to C<group>."
7913 msgstr ""
7914
7915 # type: textblock
7916 #. type: textblock
7917 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3349
7918 #: ../fish/guestfish-actions.pod:677 ../fish/guestfish-actions.pod:2328
7919 msgid ""
7920 "Only numeric uid and gid are supported.  If you want to use names, you will "
7921 "need to locate and parse the password file yourself (Augeas support makes "
7922 "this relatively easy)."
7923 msgstr ""
7924
7925 # type: =head2
7926 #. type: =head2
7927 #: ../src/guestfs-actions.pod:1010
7928 msgid "guestfs_command"
7929 msgstr ""
7930
7931 # type: verbatim
7932 #. type: verbatim
7933 #: ../src/guestfs-actions.pod:1012
7934 #, no-wrap
7935 msgid ""
7936 " char *\n"
7937 " guestfs_command (guestfs_h *g,\n"
7938 "                  char *const *arguments);\n"
7939 "\n"
7940 msgstr ""
7941
7942 # type: textblock
7943 #. type: textblock
7944 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:685
7945 msgid ""
7946 "This call runs a command from the guest filesystem.  The filesystem must be "
7947 "mounted, and must contain a compatible operating system (ie. something "
7948 "Linux, with the same or compatible processor architecture)."
7949 msgstr ""
7950
7951 # type: textblock
7952 #. type: textblock
7953 #: ../src/guestfs-actions.pod:1021
7954 msgid ""
7955 "The single parameter is an argv-style list of arguments.  The first element "
7956 "is the name of the program to run.  Subsequent elements are parameters.  The "
7957 "list must be non-empty (ie. must contain a program name).  Note that the "
7958 "command runs directly, and is I<not> invoked via the shell (see "
7959 "C<guestfs_sh>)."
7960 msgstr ""
7961
7962 # type: textblock
7963 #. type: textblock
7964 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:697
7965 msgid "The return value is anything printed to I<stdout> by the command."
7966 msgstr ""
7967
7968 # type: textblock
7969 #. type: textblock
7970 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:700
7971 msgid ""
7972 "If the command returns a non-zero exit status, then this function returns an "
7973 "error message.  The error message string is the content of I<stderr> from "
7974 "the command."
7975 msgstr ""
7976
7977 # type: textblock
7978 #. type: textblock
7979 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:704
7980 msgid ""
7981 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7982 "bin>.  If you require a program from another location, you should provide "
7983 "the full path in the first parameter."
7984 msgstr ""
7985
7986 # type: textblock
7987 #. type: textblock
7988 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:709
7989 msgid ""
7990 "Shared libraries and data files required by the program must be available on "
7991 "filesystems which are mounted in the correct places.  It is the caller's "
7992 "responsibility to ensure all filesystems that are needed are mounted at the "
7993 "right locations."
7994 msgstr ""
7995
7996 # type: textblock
7997 #. type: textblock
7998 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
7999 #: ../src/guestfs-actions.pod:1535
8000 msgid "(Added in 0.9.1)"
8001 msgstr ""
8002
8003 # type: =head2
8004 #. type: =head2
8005 #: ../src/guestfs-actions.pod:1054
8006 msgid "guestfs_command_lines"
8007 msgstr ""
8008
8009 # type: verbatim
8010 #. type: verbatim
8011 #: ../src/guestfs-actions.pod:1056
8012 #, no-wrap
8013 msgid ""
8014 " char **\n"
8015 " guestfs_command_lines (guestfs_h *g,\n"
8016 "                        char *const *arguments);\n"
8017 "\n"
8018 msgstr ""
8019
8020 # type: textblock
8021 #. type: textblock
8022 #: ../src/guestfs-actions.pod:1060
8023 msgid ""
8024 "This is the same as C<guestfs_command>, but splits the result into a list of "
8025 "lines."
8026 msgstr ""
8027
8028 # type: textblock
8029 #. type: textblock
8030 #: ../src/guestfs-actions.pod:1063
8031 msgid "See also: C<guestfs_sh_lines>"
8032 msgstr ""
8033
8034 # type: =head2
8035 #. type: =head2
8036 #: ../src/guestfs-actions.pod:1074
8037 msgid "guestfs_config"
8038 msgstr ""
8039
8040 # type: verbatim
8041 #. type: verbatim
8042 #: ../src/guestfs-actions.pod:1076
8043 #, no-wrap
8044 msgid ""
8045 " int\n"
8046 " guestfs_config (guestfs_h *g,\n"
8047 "                 const char *qemuparam,\n"
8048 "                 const char *qemuvalue);\n"
8049 "\n"
8050 msgstr ""
8051
8052 # type: textblock
8053 #. type: textblock
8054 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:734
8055 msgid ""
8056 "This can be used to add arbitrary qemu command line parameters of the form "
8057 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8058 "setting some parameters which would interfere with parameters that we use."
8059 msgstr ""
8060
8061 # type: textblock
8062 #. type: textblock
8063 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:739
8064 msgid "The first character of C<param> string must be a C<-> (dash)."
8065 msgstr ""
8066
8067 # type: textblock
8068 #. type: textblock
8069 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
8070 msgid "C<value> can be NULL."
8071 msgstr ""
8072
8073 # type: =head2
8074 #. type: =head2
8075 #: ../src/guestfs-actions.pod:1094
8076 msgid "guestfs_copy_size"
8077 msgstr ""
8078
8079 # type: verbatim
8080 #. type: verbatim
8081 #: ../src/guestfs-actions.pod:1096
8082 #, no-wrap
8083 msgid ""
8084 " int\n"
8085 " guestfs_copy_size (guestfs_h *g,\n"
8086 "                    const char *src,\n"
8087 "                    const char *dest,\n"
8088 "                    int64_t size);\n"
8089 "\n"
8090 msgstr ""
8091
8092 # type: textblock
8093 #. type: textblock
8094 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:747
8095 msgid ""
8096 "This command copies exactly C<size> bytes from one source device or file "
8097 "C<src> to another destination device or file C<dest>."
8098 msgstr ""
8099
8100 # type: textblock
8101 #. type: textblock
8102 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:750
8103 msgid ""
8104 "Note this will fail if the source is too short or if the destination is not "
8105 "large enough."
8106 msgstr ""
8107
8108 # type: textblock
8109 #. type: textblock
8110 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
8111 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
8112 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6629
8113 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7142
8114 #: ../src/guestfs-actions.pod:7161
8115 msgid ""
8116 "This long-running command can generate progress notification messages so "
8117 "that the caller can display a progress bar or indicator.  To receive these "
8118 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8119 "guestfs_set_progress_callback>."
8120 msgstr ""
8121
8122 # type: textblock
8123 #. type: textblock
8124 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:4017
8125 #: ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:6870
8126 #: ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6976
8127 msgid "(Added in 1.0.87)"
8128 msgstr ""
8129
8130 # type: =head2
8131 #. type: =head2
8132 #: ../src/guestfs-actions.pod:1117
8133 msgid "guestfs_cp"
8134 msgstr ""
8135
8136 # type: verbatim
8137 #. type: verbatim
8138 #: ../src/guestfs-actions.pod:1119
8139 #, no-wrap
8140 msgid ""
8141 " int\n"
8142 " guestfs_cp (guestfs_h *g,\n"
8143 "             const char *src,\n"
8144 "             const char *dest);\n"
8145 "\n"
8146 msgstr ""
8147
8148 # type: textblock
8149 #. type: textblock
8150 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:757
8151 msgid ""
8152 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8153 "destination filename or destination directory."
8154 msgstr ""
8155
8156 # type: textblock
8157 #. type: textblock
8158 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
8159 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
8160 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4688
8161 #: ../src/guestfs-actions.pod:5065
8162 msgid "(Added in 1.0.18)"
8163 msgstr ""
8164
8165 # type: =head2
8166 #. type: =head2
8167 #: ../src/guestfs-actions.pod:1131
8168 msgid "guestfs_cp_a"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #. type: verbatim
8173 #: ../src/guestfs-actions.pod:1133
8174 #, no-wrap
8175 msgid ""
8176 " int\n"
8177 " guestfs_cp_a (guestfs_h *g,\n"
8178 "               const char *src,\n"
8179 "               const char *dest);\n"
8180 "\n"
8181 msgstr ""
8182
8183 # type: textblock
8184 #. type: textblock
8185 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:764
8186 msgid ""
8187 "This copies a file or directory from C<src> to C<dest> recursively using the "
8188 "C<cp -a> command."
8189 msgstr ""
8190
8191 # type: =head2
8192 #. type: =head2
8193 #: ../src/guestfs-actions.pod:1145
8194 msgid "guestfs_dd"
8195 msgstr ""
8196
8197 # type: verbatim
8198 #. type: verbatim
8199 #: ../src/guestfs-actions.pod:1147
8200 #, no-wrap
8201 msgid ""
8202 " int\n"
8203 " guestfs_dd (guestfs_h *g,\n"
8204 "             const char *src,\n"
8205 "             const char *dest);\n"
8206 "\n"
8207 msgstr ""
8208
8209 # type: textblock
8210 #. type: textblock
8211 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
8212 msgid ""
8213 "This command copies from one source device or file C<src> to another "
8214 "destination device or file C<dest>.  Normally you would use this to copy to "
8215 "or from a device or partition, for example to duplicate a filesystem."
8216 msgstr ""
8217
8218 # type: textblock
8219 #. type: textblock
8220 #: ../src/guestfs-actions.pod:1157
8221 msgid ""
8222 "If the destination is a device, it must be as large or larger than the "
8223 "source file or device, otherwise the copy will fail.  This command cannot do "
8224 "partial copies (see C<guestfs_copy_size>)."
8225 msgstr ""
8226
8227 # type: =head2
8228 #. type: =head2
8229 #: ../src/guestfs-actions.pod:1165
8230 msgid "guestfs_df"
8231 msgstr ""
8232
8233 # type: verbatim
8234 #. type: verbatim
8235 #: ../src/guestfs-actions.pod:1167
8236 #, no-wrap
8237 msgid ""
8238 " char *\n"
8239 " guestfs_df (guestfs_h *g);\n"
8240 "\n"
8241 msgstr ""
8242
8243 # type: textblock
8244 #. type: textblock
8245 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:784
8246 msgid "This command runs the C<df> command to report disk space used."
8247 msgstr ""
8248
8249 # type: textblock
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
8252 msgid ""
8253 "This command is mostly useful for interactive sessions.  It is I<not> "
8254 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8255 "from programs."
8256 msgstr ""
8257
8258 # type: textblock
8259 #. type: textblock
8260 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
8261 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2263
8262 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
8263 #: ../src/guestfs-actions.pod:4127 ../src/guestfs-actions.pod:4588
8264 #: ../src/guestfs-actions.pod:6367 ../src/guestfs-actions.pod:6391
8265 #: ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7022
8266 #: ../src/guestfs-actions.pod:7035
8267 msgid "(Added in 1.0.54)"
8268 msgstr ""
8269
8270 # type: =head2
8271 #. type: =head2
8272 #: ../src/guestfs-actions.pod:1181
8273 msgid "guestfs_df_h"
8274 msgstr ""
8275
8276 # type: verbatim
8277 #. type: verbatim
8278 #: ../src/guestfs-actions.pod:1183
8279 #, no-wrap
8280 msgid ""
8281 " char *\n"
8282 " guestfs_df_h (guestfs_h *g);\n"
8283 "\n"
8284 msgstr ""
8285
8286 # type: textblock
8287 #. type: textblock
8288 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:794
8289 msgid ""
8290 "This command runs the C<df -h> command to report disk space used in human-"
8291 "readable format."
8292 msgstr ""
8293
8294 # type: =head2
8295 #. type: =head2
8296 #: ../src/guestfs-actions.pod:1198
8297 msgid "guestfs_dmesg"
8298 msgstr ""
8299
8300 # type: verbatim
8301 #. type: verbatim
8302 #: ../src/guestfs-actions.pod:1200
8303 #, no-wrap
8304 msgid ""
8305 " char *\n"
8306 " guestfs_dmesg (guestfs_h *g);\n"
8307 "\n"
8308 msgstr ""
8309
8310 # type: textblock
8311 #. type: textblock
8312 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:805
8313 msgid ""
8314 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8315 "This is sometimes useful for extended debugging of problems."
8316 msgstr ""
8317
8318 # type: textblock
8319 #. type: textblock
8320 #: ../src/guestfs-actions.pod:1207
8321 msgid ""
8322 "Another way to get the same information is to enable verbose messages with "
8323 "C<guestfs_set_verbose> or by setting the environment variable "
8324 "C<LIBGUESTFS_DEBUG=1> before running the program."
8325 msgstr ""
8326
8327 # type: =head2
8328 #. type: =head2
8329 #: ../src/guestfs-actions.pod:1217
8330 msgid "guestfs_download"
8331 msgstr ""
8332
8333 # type: verbatim
8334 #. type: verbatim
8335 #: ../src/guestfs-actions.pod:1219
8336 #, no-wrap
8337 msgid ""
8338 " int\n"
8339 " guestfs_download (guestfs_h *g,\n"
8340 "                   const char *remotefilename,\n"
8341 "                   const char *filename);\n"
8342 "\n"
8343 msgstr ""
8344
8345 # type: textblock
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
8348 #: ../fish/guestfish-actions.pod:818 ../fish/guestfish-actions.pod:831
8349 msgid ""
8350 "Download file C<remotefilename> and save it as C<filename> on the local "
8351 "machine."
8352 msgstr ""
8353
8354 # type: textblock
8355 #. type: textblock
8356 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6623
8357 #: ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4434
8358 msgid "C<filename> can also be a named pipe."
8359 msgstr ""
8360
8361 # type: textblock
8362 #. type: textblock
8363 #: ../src/guestfs-actions.pod:1229
8364 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8365 msgstr ""
8366
8367 # type: =head2
8368 #. type: =head2
8369 #: ../src/guestfs-actions.pod:1240
8370 msgid "guestfs_download_offset"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #. type: verbatim
8375 #: ../src/guestfs-actions.pod:1242
8376 #, no-wrap
8377 msgid ""
8378 " int\n"
8379 " guestfs_download_offset (guestfs_h *g,\n"
8380 "                          const char *remotefilename,\n"
8381 "                          const char *filename,\n"
8382 "                          int64_t offset,\n"
8383 "                          int64_t size);\n"
8384 "\n"
8385 msgstr ""
8386
8387 # type: textblock
8388 #. type: textblock
8389 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:834
8390 msgid ""
8391 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8392 "region must be within the file or device)."
8393 msgstr ""
8394
8395 # type: textblock
8396 #. type: textblock
8397 #: ../src/guestfs-actions.pod:1255
8398 msgid ""
8399 "Note that there is no limit on the amount of data that can be downloaded "
8400 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8401 "full amount unless an error occurs."
8402 msgstr ""
8403
8404 # type: textblock
8405 #. type: textblock
8406 #: ../src/guestfs-actions.pod:1260
8407 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8408 msgstr ""
8409
8410 # type: textblock
8411 #. type: textblock
8412 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6668
8413 msgid "(Added in 1.5.17)"
8414 msgstr ""
8415
8416 # type: =head2
8417 #. type: =head2
8418 #: ../src/guestfs-actions.pod:1271
8419 msgid "guestfs_drop_caches"
8420 msgstr ""
8421
8422 # type: verbatim
8423 #. type: verbatim
8424 #: ../src/guestfs-actions.pod:1273
8425 #, no-wrap
8426 msgid ""
8427 " int\n"
8428 " guestfs_drop_caches (guestfs_h *g,\n"
8429 "                      int whattodrop);\n"
8430 "\n"
8431 msgstr ""
8432
8433 # type: textblock
8434 #. type: textblock
8435 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:850
8436 msgid ""
8437 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8438 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8439 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8440 msgstr ""
8441
8442 # type: textblock
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:855
8445 msgid "Setting C<whattodrop> to 3 should drop everything."
8446 msgstr ""
8447
8448 # type: textblock
8449 #. type: textblock
8450 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
8451 msgid ""
8452 "This automatically calls L<sync(2)> before the operation, so that the "
8453 "maximum guest memory is freed."
8454 msgstr ""
8455
8456 # type: =head2
8457 #. type: =head2
8458 #: ../src/guestfs-actions.pod:1291
8459 msgid "guestfs_du"
8460 msgstr ""
8461
8462 # type: verbatim
8463 #. type: verbatim
8464 #: ../src/guestfs-actions.pod:1293
8465 #, no-wrap
8466 msgid ""
8467 " int64_t\n"
8468 " guestfs_du (guestfs_h *g,\n"
8469 "             const char *path);\n"
8470 "\n"
8471 msgstr ""
8472
8473 # type: textblock
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:864
8476 msgid ""
8477 "This command runs the C<du -s> command to estimate file space usage for "
8478 "C<path>."
8479 msgstr ""
8480
8481 # type: textblock
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:867
8484 msgid ""
8485 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8486 "estimate includes the contents of the directory and all subdirectories "
8487 "(recursively)."
8488 msgstr ""
8489
8490 # type: textblock
8491 #. type: textblock
8492 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:871
8493 msgid ""
8494 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8495 msgstr ""
8496
8497 # type: =head2
8498 #. type: =head2
8499 #: ../src/guestfs-actions.pod:1311
8500 msgid "guestfs_e2fsck_f"
8501 msgstr ""
8502
8503 # type: verbatim
8504 #. type: verbatim
8505 #: ../src/guestfs-actions.pod:1313
8506 #, no-wrap
8507 msgid ""
8508 " int\n"
8509 " guestfs_e2fsck_f (guestfs_h *g,\n"
8510 "                   const char *device);\n"
8511 "\n"
8512 msgstr ""
8513
8514 # type: textblock
8515 #. type: textblock
8516 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:878
8517 msgid ""
8518 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8519 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
8520 "clean (C<-f>)."
8521 msgstr ""
8522
8523 # type: textblock
8524 #. type: textblock
8525 #: ../src/guestfs-actions.pod:1321
8526 msgid ""
8527 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8528 "Normally you should use C<guestfs_fsck>."
8529 msgstr ""
8530
8531 # type: textblock
8532 #. type: textblock
8533 #: ../src/guestfs-actions.pod:1326
8534 msgid "(Added in 1.0.29)"
8535 msgstr ""
8536
8537 # type: =head2
8538 #. type: =head2
8539 #: ../src/guestfs-actions.pod:1328
8540 msgid "guestfs_echo_daemon"
8541 msgstr ""
8542
8543 # type: verbatim
8544 #. type: verbatim
8545 #: ../src/guestfs-actions.pod:1330
8546 #, no-wrap
8547 msgid ""
8548 " char *\n"
8549 " guestfs_echo_daemon (guestfs_h *g,\n"
8550 "                      char *const *words);\n"
8551 "\n"
8552 msgstr ""
8553
8554 # type: textblock
8555 #. type: textblock
8556 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:889
8557 msgid ""
8558 "This command concatenates the list of C<words> passed with single spaces "
8559 "between them and returns the resulting string."
8560 msgstr ""
8561
8562 # type: textblock
8563 #. type: textblock
8564 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:892
8565 msgid "You can use this command to test the connection through to the daemon."
8566 msgstr ""
8567
8568 # type: textblock
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:1339
8571 msgid "See also C<guestfs_ping_daemon>."
8572 msgstr ""
8573
8574 # type: textblock
8575 #. type: textblock
8576 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
8577 #: ../src/guestfs-actions.pod:5871
8578 msgid "(Added in 1.0.69)"
8579 msgstr ""
8580
8581 # type: =head2
8582 #. type: =head2
8583 #: ../src/guestfs-actions.pod:1346
8584 msgid "guestfs_egrep"
8585 msgstr ""
8586
8587 # type: verbatim
8588 #. type: verbatim
8589 #: ../src/guestfs-actions.pod:1348
8590 #, no-wrap
8591 msgid ""
8592 " char **\n"
8593 " guestfs_egrep (guestfs_h *g,\n"
8594 "                const char *regex,\n"
8595 "                const char *path);\n"
8596 "\n"
8597 msgstr ""
8598
8599 # type: textblock
8600 #. type: textblock
8601 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:900
8602 msgid ""
8603 "This calls the external C<egrep> program and returns the matching lines."
8604 msgstr ""
8605
8606 # type: textblock
8607 #. type: textblock
8608 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
8609 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
8610 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2201
8611 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
8612 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
8613 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
8614 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3510
8615 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3537
8616 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:4523
8617 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:5448
8618 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6247
8619 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6273
8620 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6308
8621 #: ../src/guestfs-actions.pod:6321 ../src/guestfs-actions.pod:6334
8622 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7124
8623 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7228
8624 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7293
8625 msgid "(Added in 1.0.66)"
8626 msgstr ""
8627
8628 # type: =head2
8629 #. type: =head2
8630 #: ../src/guestfs-actions.pod:1365
8631 msgid "guestfs_egrepi"
8632 msgstr ""
8633
8634 # type: verbatim
8635 #. type: verbatim
8636 #: ../src/guestfs-actions.pod:1367
8637 #, no-wrap
8638 msgid ""
8639 " char **\n"
8640 " guestfs_egrepi (guestfs_h *g,\n"
8641 "                 const char *regex,\n"
8642 "                 const char *path);\n"
8643 "\n"
8644 msgstr ""
8645
8646 # type: textblock
8647 #. type: textblock
8648 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:910
8649 msgid ""
8650 "This calls the external C<egrep -i> program and returns the matching lines."
8651 msgstr ""
8652
8653 # type: =head2
8654 #. type: =head2
8655 #: ../src/guestfs-actions.pod:1384
8656 msgid "guestfs_equal"
8657 msgstr ""
8658
8659 # type: verbatim
8660 #. type: verbatim
8661 #: ../src/guestfs-actions.pod:1386
8662 #, no-wrap
8663 msgid ""
8664 " int\n"
8665 " guestfs_equal (guestfs_h *g,\n"
8666 "                const char *file1,\n"
8667 "                const char *file2);\n"
8668 "\n"
8669 msgstr ""
8670
8671 # type: textblock
8672 #. type: textblock
8673 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:920
8674 msgid ""
8675 "This compares the two files C<file1> and C<file2> and returns true if their "
8676 "content is exactly equal, or false otherwise."
8677 msgstr ""
8678
8679 # type: textblock
8680 #. type: textblock
8681 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:923
8682 msgid "The external L<cmp(1)> program is used for the comparison."
8683 msgstr ""
8684
8685 # type: =head2
8686 #. type: =head2
8687 #: ../src/guestfs-actions.pod:1400
8688 msgid "guestfs_exists"
8689 msgstr ""
8690
8691 # type: verbatim
8692 #. type: verbatim
8693 #: ../src/guestfs-actions.pod:1402
8694 #, no-wrap
8695 msgid ""
8696 " int\n"
8697 " guestfs_exists (guestfs_h *g,\n"
8698 "                 const char *path);\n"
8699 "\n"
8700 msgstr ""
8701
8702 # type: textblock
8703 #. type: textblock
8704 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:929
8705 msgid ""
8706 "This returns C<true> if and only if there is a file, directory (or anything) "
8707 "with the given C<path> name."
8708 msgstr ""
8709
8710 # type: textblock
8711 #. type: textblock
8712 #: ../src/guestfs-actions.pod:1409
8713 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8714 msgstr ""
8715
8716 # type: =head2
8717 #. type: =head2
8718 #: ../src/guestfs-actions.pod:1415
8719 msgid "guestfs_fallocate"
8720 msgstr ""
8721
8722 # type: verbatim
8723 #. type: verbatim
8724 #: ../src/guestfs-actions.pod:1417
8725 #, no-wrap
8726 msgid ""
8727 " int\n"
8728 " guestfs_fallocate (guestfs_h *g,\n"
8729 "                    const char *path,\n"
8730 "                    int len);\n"
8731 "\n"
8732 msgstr ""
8733
8734 # type: textblock
8735 #. type: textblock
8736 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
8737 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:957
8738 msgid ""
8739 "This command preallocates a file (containing zero bytes) named C<path> of "
8740 "size C<len> bytes.  If the file exists already, it is overwritten."
8741 msgstr ""
8742
8743 # type: textblock
8744 #. type: textblock
8745 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:942
8746 msgid ""
8747 "Do not confuse this with the guestfish-specific C<alloc> command which "
8748 "allocates a file in the host and attaches it as a device."
8749 msgstr ""
8750
8751 # type: textblock
8752 #. type: textblock
8753 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:946
8754 msgid ""
8755 "This function is deprecated.  In new code, use the C<fallocate64> call "
8756 "instead."
8757 msgstr ""
8758
8759 # type: =head2
8760 #. type: =head2
8761 #: ../src/guestfs-actions.pod:1441
8762 msgid "guestfs_fallocate64"
8763 msgstr ""
8764
8765 # type: verbatim
8766 #. type: verbatim
8767 #: ../src/guestfs-actions.pod:1443
8768 #, no-wrap
8769 msgid ""
8770 " int\n"
8771 " guestfs_fallocate64 (guestfs_h *g,\n"
8772 "                      const char *path,\n"
8773 "                      int64_t len);\n"
8774 "\n"
8775 msgstr ""
8776
8777 # type: textblock
8778 #. type: textblock
8779 #: ../src/guestfs-actions.pod:1452
8780 msgid ""
8781 "Note that this call allocates disk blocks for the file.  To create a sparse "
8782 "file use C<guestfs_truncate_size> instead."
8783 msgstr ""
8784
8785 # type: textblock
8786 #. type: textblock
8787 #: ../src/guestfs-actions.pod:1455
8788 msgid ""
8789 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8790 "oversight it only allowed 30 bit lengths to be specified, effectively "
8791 "limiting the maximum size of files created through that call to 1GB."
8792 msgstr ""
8793
8794 # type: textblock
8795 #. type: textblock
8796 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:969
8797 msgid ""
8798 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8799 "commands which create a file in the host and attach it as a device."
8800 msgstr ""
8801
8802 # type: textblock
8803 #. type: textblock
8804 #: ../src/guestfs-actions.pod:1466
8805 msgid "(Added in 1.3.17)"
8806 msgstr ""
8807
8808 # type: =head2
8809 #. type: =head2
8810 #: ../src/guestfs-actions.pod:1468
8811 msgid "guestfs_fgrep"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #. type: verbatim
8816 #: ../src/guestfs-actions.pod:1470
8817 #, no-wrap
8818 msgid ""
8819 " char **\n"
8820 " guestfs_fgrep (guestfs_h *g,\n"
8821 "                const char *pattern,\n"
8822 "                const char *path);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:977
8829 msgid ""
8830 "This calls the external C<fgrep> program and returns the matching lines."
8831 msgstr ""
8832
8833 # type: =head2
8834 #. type: =head2
8835 #: ../src/guestfs-actions.pod:1487
8836 msgid "guestfs_fgrepi"
8837 msgstr ""
8838
8839 # type: verbatim
8840 #. type: verbatim
8841 #: ../src/guestfs-actions.pod:1489
8842 #, no-wrap
8843 msgid ""
8844 " char **\n"
8845 " guestfs_fgrepi (guestfs_h *g,\n"
8846 "                 const char *pattern,\n"
8847 "                 const char *path);\n"
8848 "\n"
8849 msgstr ""
8850
8851 # type: textblock
8852 #. type: textblock
8853 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:987
8854 msgid ""
8855 "This calls the external C<fgrep -i> program and returns the matching lines."
8856 msgstr ""
8857
8858 # type: =head2
8859 #. type: =head2
8860 #: ../src/guestfs-actions.pod:1506
8861 msgid "guestfs_file"
8862 msgstr ""
8863
8864 # type: verbatim
8865 #. type: verbatim
8866 #: ../src/guestfs-actions.pod:1508
8867 #, no-wrap
8868 msgid ""
8869 " char *\n"
8870 " guestfs_file (guestfs_h *g,\n"
8871 "               const char *path);\n"
8872 "\n"
8873 msgstr ""
8874
8875 # type: textblock
8876 #. type: textblock
8877 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:997
8878 msgid ""
8879 "This call uses the standard L<file(1)> command to determine the type or "
8880 "contents of the file."
8881 msgstr ""
8882
8883 # type: textblock
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1000
8886 msgid ""
8887 "This call will also transparently look inside various types of compressed "
8888 "file."
8889 msgstr ""
8890
8891 # type: textblock
8892 #. type: textblock
8893 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1003
8894 msgid ""
8895 "The exact command which runs is C<file -zb path>.  Note in particular that "
8896 "the filename is not prepended to the output (the C<-b> option)."
8897 msgstr ""
8898
8899 # type: textblock
8900 #. type: textblock
8901 #: ../src/guestfs-actions.pod:1522
8902 msgid ""
8903 "This command can also be used on C</dev/> devices (and partitions, LV "
8904 "names).  You can for example use this to determine if a device contains a "
8905 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8906 msgstr ""
8907
8908 # type: textblock
8909 #. type: textblock
8910 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1012
8911 msgid ""
8912 "If the C<path> does not begin with C</dev/> then this command only works for "
8913 "the content of regular files.  For other file types (directory, symbolic "
8914 "link etc) it will just return the string C<directory> etc."
8915 msgstr ""
8916
8917 # type: =head2
8918 #. type: =head2
8919 #: ../src/guestfs-actions.pod:1537
8920 msgid "guestfs_file_architecture"
8921 msgstr ""
8922
8923 # type: verbatim
8924 #. type: verbatim
8925 #: ../src/guestfs-actions.pod:1539
8926 #, no-wrap
8927 msgid ""
8928 " char *\n"
8929 " guestfs_file_architecture (guestfs_h *g,\n"
8930 "                            const char *filename);\n"
8931 "\n"
8932 msgstr ""
8933
8934 # type: textblock
8935 #. type: textblock
8936 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1021
8937 msgid ""
8938 "This detects the architecture of the binary C<filename>, and returns it if "
8939 "known."
8940 msgstr ""
8941
8942 # type: textblock
8943 #. type: textblock
8944 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8945 msgid "Currently defined architectures are:"
8946 msgstr ""
8947
8948 # type: =item
8949 #. type: =item
8950 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1028
8951 msgid "\"i386\""
8952 msgstr ""
8953
8954 # type: textblock
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
8957 msgid ""
8958 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8959 "irrespective of the precise processor requirements of the binary."
8960 msgstr ""
8961
8962 # type: =item
8963 #. type: =item
8964 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1033
8965 msgid "\"x86_64\""
8966 msgstr ""
8967
8968 # type: textblock
8969 #. type: textblock
8970 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
8971 msgid "64 bit x86-64."
8972 msgstr ""
8973
8974 # type: =item
8975 #. type: =item
8976 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
8977 msgid "\"sparc\""
8978 msgstr ""
8979
8980 # type: textblock
8981 #. type: textblock
8982 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
8983 msgid "32 bit SPARC."
8984 msgstr ""
8985
8986 # type: =item
8987 #. type: =item
8988 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
8989 msgid "\"sparc64\""
8990 msgstr ""
8991
8992 # type: textblock
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
8995 msgid "64 bit SPARC V9 and above."
8996 msgstr ""
8997
8998 # type: =item
8999 #. type: =item
9000 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
9001 msgid "\"ia64\""
9002 msgstr ""
9003
9004 # type: textblock
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
9007 msgid "Intel Itanium."
9008 msgstr ""
9009
9010 # type: =item
9011 #. type: =item
9012 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
9013 msgid "\"ppc\""
9014 msgstr ""
9015
9016 # type: textblock
9017 #. type: textblock
9018 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
9019 msgid "32 bit Power PC."
9020 msgstr ""
9021
9022 # type: =item
9023 #. type: =item
9024 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
9025 msgid "\"ppc64\""
9026 msgstr ""
9027
9028 # type: textblock
9029 #. type: textblock
9030 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
9031 msgid "64 bit Power PC."
9032 msgstr ""
9033
9034 # type: textblock
9035 #. type: textblock
9036 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1059
9037 msgid "Libguestfs may return other architecture strings in future."
9038 msgstr ""
9039
9040 # type: textblock
9041 #. type: textblock
9042 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
9043 msgid "The function works on at least the following types of files:"
9044 msgstr ""
9045
9046 # type: textblock
9047 #. type: textblock
9048 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1067
9049 msgid "many types of Un*x and Linux binary"
9050 msgstr ""
9051
9052 # type: textblock
9053 #. type: textblock
9054 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1071
9055 msgid "many types of Un*x and Linux shared library"
9056 msgstr ""
9057
9058 # type: textblock
9059 #. type: textblock
9060 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1075
9061 msgid "Windows Win32 and Win64 binaries"
9062 msgstr ""
9063
9064 # type: textblock
9065 #. type: textblock
9066 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1079
9067 msgid "Windows Win32 and Win64 DLLs"
9068 msgstr ""
9069
9070 # type: textblock
9071 #. type: textblock
9072 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
9073 msgid "Win32 binaries and DLLs return C<i386>."
9074 msgstr ""
9075
9076 # type: textblock
9077 #. type: textblock
9078 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
9079 msgid "Win64 binaries and DLLs return C<x86_64>."
9080 msgstr ""
9081
9082 # type: textblock
9083 #. type: textblock
9084 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1087
9085 msgid "Linux kernel modules"
9086 msgstr ""
9087
9088 # type: textblock
9089 #. type: textblock
9090 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1091
9091 msgid "Linux new-style initrd images"
9092 msgstr ""
9093
9094 # type: textblock
9095 #. type: textblock
9096 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1095
9097 msgid "some non-x86 Linux vmlinuz kernels"
9098 msgstr ""
9099
9100 # type: textblock
9101 #. type: textblock
9102 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1099
9103 msgid "What it can't do currently:"
9104 msgstr ""
9105
9106 # type: textblock
9107 #. type: textblock
9108 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1105
9109 msgid "static libraries (libfoo.a)"
9110 msgstr ""
9111
9112 # type: textblock
9113 #. type: textblock
9114 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1109
9115 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9116 msgstr ""
9117
9118 # type: textblock
9119 #. type: textblock
9120 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1113
9121 msgid "x86 Linux vmlinuz kernels"
9122 msgstr ""
9123
9124 # type: textblock
9125 #. type: textblock
9126 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
9127 msgid ""
9128 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9129 "compressed code, and are horribly hard to unpack.  If you want to find the "
9130 "architecture of a kernel, use the architecture of the associated initrd or "
9131 "kernel module(s) instead."
9132 msgstr ""
9133
9134 # type: textblock
9135 #. type: textblock
9136 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
9137 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2508
9138 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
9139 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2724
9140 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2845
9141 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:3133
9142 #: ../src/guestfs-actions.pod:3265
9143 msgid "(Added in 1.5.3)"
9144 msgstr ""
9145
9146 # type: =head2
9147 #. type: =head2
9148 #: ../src/guestfs-actions.pod:1649
9149 msgid "guestfs_filesize"
9150 msgstr ""
9151
9152 # type: verbatim
9153 #. type: verbatim
9154 #: ../src/guestfs-actions.pod:1651
9155 #, no-wrap
9156 msgid ""
9157 " int64_t\n"
9158 " guestfs_filesize (guestfs_h *g,\n"
9159 "                   const char *file);\n"
9160 "\n"
9161 msgstr ""
9162
9163 # type: textblock
9164 #. type: textblock
9165 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1126
9166 msgid "This command returns the size of C<file> in bytes."
9167 msgstr ""
9168
9169 # type: textblock
9170 #. type: textblock
9171 #: ../src/guestfs-actions.pod:1657
9172 msgid ""
9173 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9174 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9175 "devices, use C<guestfs_blockdev_getsize64>."
9176 msgstr ""
9177
9178 # type: textblock
9179 #. type: textblock
9180 #: ../src/guestfs-actions.pod:1663
9181 msgid "(Added in 1.0.82)"
9182 msgstr ""
9183
9184 # type: =head2
9185 #. type: =head2
9186 #: ../src/guestfs-actions.pod:1665
9187 msgid "guestfs_fill"
9188 msgstr ""
9189
9190 # type: verbatim
9191 #. type: verbatim
9192 #: ../src/guestfs-actions.pod:1667
9193 #, no-wrap
9194 msgid ""
9195 " int\n"
9196 " guestfs_fill (guestfs_h *g,\n"
9197 "               int c,\n"
9198 "               int len,\n"
9199 "               const char *path);\n"
9200 "\n"
9201 msgstr ""
9202
9203 # type: textblock
9204 #. type: textblock
9205 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1136
9206 msgid ""
9207 "This command creates a new file called C<path>.  The initial content of the "
9208 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9209 "[0..255]>."
9210 msgstr ""
9211
9212 # type: textblock
9213 #. type: textblock
9214 #: ../src/guestfs-actions.pod:1677
9215 msgid ""
9216 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9217 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9218 "bytes use C<guestfs_fill_pattern>."
9219 msgstr ""
9220
9221 # type: textblock
9222 #. type: textblock
9223 #: ../src/guestfs-actions.pod:1689
9224 msgid "(Added in 1.0.79)"
9225 msgstr ""
9226
9227 # type: =head2
9228 #. type: =head2
9229 #: ../src/guestfs-actions.pod:1691
9230 msgid "guestfs_fill_pattern"
9231 msgstr ""
9232
9233 # type: verbatim
9234 #. type: verbatim
9235 #: ../src/guestfs-actions.pod:1693
9236 #, no-wrap
9237 msgid ""
9238 " int\n"
9239 " guestfs_fill_pattern (guestfs_h *g,\n"
9240 "                       const char *pattern,\n"
9241 "                       int len,\n"
9242 "                       const char *path);\n"
9243 "\n"
9244 msgstr ""
9245
9246 # type: textblock
9247 #. type: textblock
9248 #: ../src/guestfs-actions.pod:1699
9249 msgid ""
9250 "This function is like C<guestfs_fill> except that it creates a new file of "
9251 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9252 "pattern is truncated if necessary to ensure the length of the file is "
9253 "exactly C<len> bytes."
9254 msgstr ""
9255
9256 # type: textblock
9257 #. type: textblock
9258 #: ../src/guestfs-actions.pod:1711
9259 msgid "(Added in 1.3.12)"
9260 msgstr ""
9261
9262 # type: =head2
9263 #. type: =head2
9264 #: ../src/guestfs-actions.pod:1713
9265 msgid "guestfs_find"
9266 msgstr ""
9267
9268 # type: verbatim
9269 #. type: verbatim
9270 #: ../src/guestfs-actions.pod:1715
9271 #, no-wrap
9272 msgid ""
9273 " char **\n"
9274 " guestfs_find (guestfs_h *g,\n"
9275 "               const char *directory);\n"
9276 "\n"
9277 msgstr ""
9278
9279 # type: textblock
9280 #. type: textblock
9281 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1158
9282 msgid ""
9283 "This command lists out all files and directories, recursively, starting at "
9284 "C<directory>.  It is essentially equivalent to running the shell command "
9285 "C<find directory -print> but some post-processing happens on the output, "
9286 "described below."
9287 msgstr ""
9288
9289 # type: textblock
9290 #. type: textblock
9291 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1163
9292 msgid ""
9293 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9294 "structure was:"
9295 msgstr ""
9296
9297 # type: verbatim
9298 #. type: verbatim
9299 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1166
9300 #, no-wrap
9301 msgid ""
9302 " /tmp/a\n"
9303 " /tmp/b\n"
9304 " /tmp/c/d\n"
9305 "\n"
9306 msgstr ""
9307
9308 # type: textblock
9309 #. type: textblock
9310 #: ../src/guestfs-actions.pod:1731
9311 msgid ""
9312 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9313 msgstr ""
9314
9315 # type: verbatim
9316 #. type: verbatim
9317 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1173
9318 #, no-wrap
9319 msgid ""
9320 " a\n"
9321 " b\n"
9322 " c\n"
9323 " c/d\n"
9324 "\n"
9325 msgstr ""
9326
9327 # type: textblock
9328 #. type: textblock
9329 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1178
9330 msgid "If C<directory> is not a directory, then this command returns an error."
9331 msgstr ""
9332
9333 # type: textblock
9334 #. type: textblock
9335 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1181
9336 msgid "The returned list is sorted."
9337 msgstr ""
9338
9339 # type: textblock
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:1744
9342 msgid "See also C<guestfs_find0>."
9343 msgstr ""
9344
9345 # type: textblock
9346 #. type: textblock
9347 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3954
9348 #: ../src/guestfs-actions.pod:5483
9349 msgid "(Added in 1.0.27)"
9350 msgstr ""
9351
9352 # type: =head2
9353 #. type: =head2
9354 #: ../src/guestfs-actions.pod:1755
9355 msgid "guestfs_find0"
9356 msgstr ""
9357
9358 # type: verbatim
9359 #. type: verbatim
9360 #: ../src/guestfs-actions.pod:1757
9361 #, no-wrap
9362 msgid ""
9363 " int\n"
9364 " guestfs_find0 (guestfs_h *g,\n"
9365 "                const char *directory,\n"
9366 "                const char *files);\n"
9367 "\n"
9368 msgstr ""
9369
9370 # type: textblock
9371 #. type: textblock
9372 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1192
9373 msgid ""
9374 "This command lists out all files and directories, recursively, starting at "
9375 "C<directory>, placing the resulting list in the external file called "
9376 "C<files>."
9377 msgstr ""
9378
9379 # type: textblock
9380 #. type: textblock
9381 #: ../src/guestfs-actions.pod:1766
9382 msgid ""
9383 "This command works the same way as C<guestfs_find> with the following "
9384 "exceptions:"
9385 msgstr ""
9386
9387 # type: textblock
9388 #. type: textblock
9389 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1203
9390 msgid "The resulting list is written to an external file."
9391 msgstr ""
9392
9393 # type: textblock
9394 #. type: textblock
9395 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1207
9396 msgid ""
9397 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9398 "L<find(1)> option I<-print0>."
9399 msgstr ""
9400
9401 # type: textblock
9402 #. type: textblock
9403 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1212
9404 msgid "This command is not limited in the number of names that it can return."
9405 msgstr ""
9406
9407 # type: textblock
9408 #. type: textblock
9409 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1217
9410 msgid "The result list is not sorted."
9411 msgstr ""
9412
9413 # type: textblock
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:1793
9416 msgid "(Added in 1.0.74)"
9417 msgstr ""
9418
9419 # type: =head2
9420 #. type: =head2
9421 #: ../src/guestfs-actions.pod:1795
9422 msgid "guestfs_findfs_label"
9423 msgstr ""
9424
9425 # type: verbatim
9426 #. type: verbatim
9427 #: ../src/guestfs-actions.pod:1797
9428 #, no-wrap
9429 msgid ""
9430 " char *\n"
9431 " guestfs_findfs_label (guestfs_h *g,\n"
9432 "                       const char *label);\n"
9433 "\n"
9434 msgstr ""
9435
9436 # type: textblock
9437 #. type: textblock
9438 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1227
9439 msgid ""
9440 "This command searches the filesystems and returns the one which has the "
9441 "given label.  An error is returned if no such filesystem can be found."
9442 msgstr ""
9443
9444 # type: textblock
9445 #. type: textblock
9446 #: ../src/guestfs-actions.pod:1805
9447 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9448 msgstr ""
9449
9450 # type: =head2
9451 #. type: =head2
9452 #: ../src/guestfs-actions.pod:1812
9453 msgid "guestfs_findfs_uuid"
9454 msgstr ""
9455
9456 # type: verbatim
9457 #. type: verbatim
9458 #: ../src/guestfs-actions.pod:1814
9459 #, no-wrap
9460 msgid ""
9461 " char *\n"
9462 " guestfs_findfs_uuid (guestfs_h *g,\n"
9463 "                      const char *uuid);\n"
9464 "\n"
9465 msgstr ""
9466
9467 # type: textblock
9468 #. type: textblock
9469 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1237
9470 msgid ""
9471 "This command searches the filesystems and returns the one which has the "
9472 "given UUID.  An error is returned if no such filesystem can be found."
9473 msgstr ""
9474
9475 # type: textblock
9476 #. type: textblock
9477 #: ../src/guestfs-actions.pod:1822
9478 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9479 msgstr ""
9480
9481 # type: =head2
9482 #. type: =head2
9483 #: ../src/guestfs-actions.pod:1829
9484 msgid "guestfs_fsck"
9485 msgstr ""
9486
9487 # type: verbatim
9488 #. type: verbatim
9489 #: ../src/guestfs-actions.pod:1831
9490 #, no-wrap
9491 msgid ""
9492 " int\n"
9493 " guestfs_fsck (guestfs_h *g,\n"
9494 "               const char *fstype,\n"
9495 "               const char *device);\n"
9496 "\n"
9497 msgstr ""
9498
9499 # type: textblock
9500 #. type: textblock
9501 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1247
9502 msgid ""
9503 "This runs the filesystem checker (fsck) on C<device> which should have "
9504 "filesystem type C<fstype>."
9505 msgstr ""
9506
9507 # type: textblock
9508 #. type: textblock
9509 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1250
9510 msgid ""
9511 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9512 "codes from C<fsck>."
9513 msgstr ""
9514
9515 # type: textblock
9516 #. type: textblock
9517 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1259
9518 msgid "Multiple status codes can be summed together."
9519 msgstr ""
9520
9521 # type: textblock
9522 #. type: textblock
9523 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1263
9524 msgid ""
9525 "A non-zero return code can mean \"success\", for example if errors have been "
9526 "corrected on the filesystem."
9527 msgstr ""
9528
9529 # type: textblock
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1268
9532 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9533 msgstr ""
9534
9535 # type: textblock
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1273
9538 msgid ""
9539 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9540 msgstr ""
9541
9542 # type: textblock
9543 #. type: textblock
9544 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:7147
9545 msgid "(Added in 1.0.16)"
9546 msgstr ""
9547
9548 # type: =head2
9549 #. type: =head2
9550 #: ../src/guestfs-actions.pod:1868
9551 msgid "guestfs_get_append"
9552 msgstr ""
9553
9554 # type: verbatim
9555 #. type: verbatim
9556 #: ../src/guestfs-actions.pod:1870
9557 #, no-wrap
9558 msgid ""
9559 " const char *\n"
9560 " guestfs_get_append (guestfs_h *g);\n"
9561 "\n"
9562 msgstr ""
9563
9564 # type: textblock
9565 #. type: textblock
9566 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1279
9567 msgid ""
9568 "Return the additional kernel options which are added to the guest kernel "
9569 "command line."
9570 msgstr ""
9571
9572 # type: textblock
9573 #. type: textblock
9574 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1282
9575 msgid "If C<NULL> then no options are added."
9576 msgstr ""
9577
9578 # type: textblock
9579 #. type: textblock
9580 #: ../src/guestfs-actions.pod:1878
9581 msgid ""
9582 "This function returns a string which may be NULL.  There is no way to return "
9583 "an error from this function.  The string is owned by the guest handle and "
9584 "must I<not> be freed."
9585 msgstr ""
9586
9587 # type: textblock
9588 #. type: textblock
9589 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:5161
9590 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:6009
9591 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6044
9592 #: ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6818
9593 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7190
9594 msgid "(Added in 1.0.26)"
9595 msgstr ""
9596
9597 # type: =head2
9598 #. type: =head2
9599 #: ../src/guestfs-actions.pod:1884
9600 msgid "guestfs_get_autosync"
9601 msgstr ""
9602
9603 # type: verbatim
9604 #. type: verbatim
9605 #: ../src/guestfs-actions.pod:1886
9606 #, no-wrap
9607 msgid ""
9608 " int\n"
9609 " guestfs_get_autosync (guestfs_h *g);\n"
9610 "\n"
9611 msgstr ""
9612
9613 # type: textblock
9614 #. type: textblock
9615 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9616 msgid "Get the autosync flag."
9617 msgstr ""
9618
9619 # type: =head2
9620 #. type: =head2
9621 #: ../src/guestfs-actions.pod:1895
9622 msgid "guestfs_get_direct"
9623 msgstr ""
9624
9625 # type: verbatim
9626 #. type: verbatim
9627 #: ../src/guestfs-actions.pod:1897
9628 #, no-wrap
9629 msgid ""
9630 " int\n"
9631 " guestfs_get_direct (guestfs_h *g);\n"
9632 "\n"
9633 msgstr ""
9634
9635 # type: textblock
9636 #. type: textblock
9637 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1294
9638 msgid "Return the direct appliance mode flag."
9639 msgstr ""
9640
9641 # type: textblock
9642 #. type: textblock
9643 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5682
9644 msgid "(Added in 1.0.72)"
9645 msgstr ""
9646
9647 # type: =head2
9648 #. type: =head2
9649 #: ../src/guestfs-actions.pod:1906
9650 msgid "guestfs_get_e2label"
9651 msgstr ""
9652
9653 # type: verbatim
9654 #. type: verbatim
9655 #: ../src/guestfs-actions.pod:1908
9656 #, no-wrap
9657 msgid ""
9658 " char *\n"
9659 " guestfs_get_e2label (guestfs_h *g,\n"
9660 "                      const char *device);\n"
9661 "\n"
9662 msgstr ""
9663
9664 # type: textblock
9665 #. type: textblock
9666 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1300
9667 msgid ""
9668 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9669 msgstr ""
9670
9671 # type: textblock
9672 #. type: textblock
9673 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1303
9674 msgid ""
9675 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9676 msgstr ""
9677
9678 # type: textblock
9679 #. type: textblock
9680 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
9681 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5719
9682 msgid "(Added in 1.0.15)"
9683 msgstr ""
9684
9685 # type: =head2
9686 #. type: =head2
9687 #: ../src/guestfs-actions.pod:1927
9688 msgid "guestfs_get_e2uuid"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #. type: verbatim
9693 #: ../src/guestfs-actions.pod:1929
9694 #, no-wrap
9695 msgid ""
9696 " char *\n"
9697 " guestfs_get_e2uuid (guestfs_h *g,\n"
9698 "                     const char *device);\n"
9699 "\n"
9700 msgstr ""
9701
9702 # type: textblock
9703 #. type: textblock
9704 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1314
9705 msgid ""
9706 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9707 msgstr ""
9708
9709 # type: textblock
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1317
9712 msgid ""
9713 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9714 msgstr ""
9715
9716 # type: =head2
9717 #. type: =head2
9718 #: ../src/guestfs-actions.pod:1948
9719 msgid "guestfs_get_memsize"
9720 msgstr ""
9721
9722 # type: verbatim
9723 #. type: verbatim
9724 #: ../src/guestfs-actions.pod:1950
9725 #, no-wrap
9726 msgid ""
9727 " int\n"
9728 " guestfs_get_memsize (guestfs_h *g);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #. type: textblock
9734 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1328
9735 msgid ""
9736 "This gets the memory size in megabytes allocated to the qemu subprocess."
9737 msgstr ""
9738
9739 # type: textblock
9740 #. type: textblock
9741 #: ../src/guestfs-actions.pod:1956
9742 msgid ""
9743 "If C<guestfs_set_memsize> was not called on this handle, and if "
9744 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9745 "value for memsize."
9746 msgstr ""
9747
9748 # type: textblock
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
9751 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5842
9752 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386
9753 #: ../fish/guestfish-actions.pod:3841 ../fish/guestfish-actions.pod:3928
9754 msgid ""
9755 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9756 msgstr ""
9757
9758 # type: textblock
9759 #. type: textblock
9760 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4245
9761 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4447
9762 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4478
9763 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4508
9764 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5740
9765 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6584
9766 msgid "(Added in 1.0.55)"
9767 msgstr ""
9768
9769 # type: =head2
9770 #. type: =head2
9771 #: ../src/guestfs-actions.pod:1967
9772 msgid "guestfs_get_network"
9773 msgstr ""
9774
9775 # type: verbatim
9776 #. type: verbatim
9777 #: ../src/guestfs-actions.pod:1969
9778 #, no-wrap
9779 msgid ""
9780 " int\n"
9781 " guestfs_get_network (guestfs_h *g);\n"
9782 "\n"
9783 msgstr ""
9784
9785 # type: textblock
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1342
9788 msgid "This returns the enable network flag."
9789 msgstr ""
9790
9791 # type: textblock
9792 #. type: textblock
9793 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5759
9794 msgid "(Added in 1.5.4)"
9795 msgstr ""
9796
9797 # type: =head2
9798 #. type: =head2
9799 #: ../src/guestfs-actions.pod:1978
9800 msgid "guestfs_get_path"
9801 msgstr ""
9802
9803 # type: verbatim
9804 #. type: verbatim
9805 #: ../src/guestfs-actions.pod:1980
9806 #, no-wrap
9807 msgid ""
9808 " const char *\n"
9809 " guestfs_get_path (guestfs_h *g);\n"
9810 "\n"
9811 msgstr ""
9812
9813 # type: textblock
9814 #. type: textblock
9815 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1348
9816 msgid "Return the current search path."
9817 msgstr ""
9818
9819 # type: textblock
9820 #. type: textblock
9821 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
9822 msgid ""
9823 "This is always non-NULL.  If it wasn't set already, then this will return "
9824 "the default path."
9825 msgstr ""
9826
9827 # type: textblock
9828 #. type: textblock
9829 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
9830 msgid ""
9831 "This function returns a string, or NULL on error.  The string is owned by "
9832 "the guest handle and must I<not> be freed."
9833 msgstr ""
9834
9835 # type: =head2
9836 #. type: =head2
9837 #: ../src/guestfs-actions.pod:1993
9838 msgid "guestfs_get_pid"
9839 msgstr ""
9840
9841 # type: verbatim
9842 #. type: verbatim
9843 #: ../src/guestfs-actions.pod:1995
9844 #, no-wrap
9845 msgid ""
9846 " int\n"
9847 " guestfs_get_pid (guestfs_h *g);\n"
9848 "\n"
9849 msgstr ""
9850
9851 # type: textblock
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1359
9854 msgid ""
9855 "Return the process ID of the qemu subprocess.  If there is no qemu "
9856 "subprocess, then this will return an error."
9857 msgstr ""
9858
9859 # type: textblock
9860 #. type: textblock
9861 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1362
9862 msgid "This is an internal call used for debugging and testing."
9863 msgstr ""
9864
9865 # type: textblock
9866 #. type: textblock
9867 #: ../src/guestfs-actions.pod:2005
9868 msgid "(Added in 1.0.56)"
9869 msgstr ""
9870
9871 # type: =head2
9872 #. type: =head2
9873 #: ../src/guestfs-actions.pod:2007
9874 msgid "guestfs_get_qemu"
9875 msgstr ""
9876
9877 # type: verbatim
9878 #. type: verbatim
9879 #: ../src/guestfs-actions.pod:2009
9880 #, no-wrap
9881 msgid ""
9882 " const char *\n"
9883 " guestfs_get_qemu (guestfs_h *g);\n"
9884 "\n"
9885 msgstr ""
9886
9887 # type: textblock
9888 #. type: textblock
9889 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1368
9890 msgid "Return the current qemu binary."
9891 msgstr ""
9892
9893 # type: textblock
9894 #. type: textblock
9895 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
9896 msgid ""
9897 "This is always non-NULL.  If it wasn't set already, then this will return "
9898 "the default qemu binary name."
9899 msgstr ""
9900
9901 # type: textblock
9902 #. type: textblock
9903 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5804
9904 msgid "(Added in 1.0.6)"
9905 msgstr ""
9906
9907 # type: =head2
9908 #. type: =head2
9909 #: ../src/guestfs-actions.pod:2022
9910 msgid "guestfs_get_recovery_proc"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #. type: verbatim
9915 #: ../src/guestfs-actions.pod:2024
9916 #, no-wrap
9917 msgid ""
9918 " int\n"
9919 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #. type: textblock
9925 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9926 msgid "Return the recovery process enabled flag."
9927 msgstr ""
9928
9929 # type: textblock
9930 #. type: textblock
9931 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3355
9932 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:4052
9933 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:5091
9934 #: ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5828
9935 #: ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6507
9936 #: ../src/guestfs-actions.pod:6699
9937 msgid "(Added in 1.0.77)"
9938 msgstr ""
9939
9940 # type: =head2
9941 #. type: =head2
9942 #: ../src/guestfs-actions.pod:2033
9943 msgid "guestfs_get_selinux"
9944 msgstr ""
9945
9946 # type: verbatim
9947 #. type: verbatim
9948 #: ../src/guestfs-actions.pod:2035
9949 #, no-wrap
9950 msgid ""
9951 " int\n"
9952 " guestfs_get_selinux (guestfs_h *g);\n"
9953 "\n"
9954 msgstr ""
9955
9956 # type: textblock
9957 #. type: textblock
9958 #: ../src/guestfs-actions.pod:2038
9959 msgid ""
9960 "This returns the current setting of the selinux flag which is passed to the "
9961 "appliance at boot time.  See C<guestfs_set_selinux>."
9962 msgstr ""
9963
9964 # type: textblock
9965 #. type: textblock
9966 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
9967 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5901
9968 msgid "(Added in 1.0.67)"
9969 msgstr ""
9970
9971 # type: =head2
9972 #. type: =head2
9973 #: ../src/guestfs-actions.pod:2048
9974 msgid "guestfs_get_state"
9975 msgstr ""
9976
9977 # type: verbatim
9978 #. type: verbatim
9979 #: ../src/guestfs-actions.pod:2050
9980 #, no-wrap
9981 msgid ""
9982 " int\n"
9983 " guestfs_get_state (guestfs_h *g);\n"
9984 "\n"
9985 msgstr ""
9986
9987 # type: textblock
9988 #. type: textblock
9989 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1393
9990 msgid ""
9991 "This returns the current state as an opaque integer.  This is only useful "
9992 "for printing debug and internal error messages."
9993 msgstr ""
9994
9995 # type: textblock
9996 #. type: textblock
9997 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3158
9998 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3248
9999 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:1396
10000 #: ../fish/guestfish-actions.pod:2210 ../fish/guestfish-actions.pod:2228
10001 #: ../fish/guestfish-actions.pod:2266 ../fish/guestfish-actions.pod:2282
10002 msgid "For more information on states, see L<guestfs(3)>."
10003 msgstr ""
10004
10005 # type: =head2
10006 #. type: =head2
10007 #: ../src/guestfs-actions.pod:2062
10008 msgid "guestfs_get_trace"
10009 msgstr ""
10010
10011 # type: verbatim
10012 #. type: verbatim
10013 #: ../src/guestfs-actions.pod:2064
10014 #, no-wrap
10015 msgid ""
10016 " int\n"
10017 " guestfs_get_trace (guestfs_h *g);\n"
10018 "\n"
10019 msgstr ""
10020
10021 # type: textblock
10022 #. type: textblock
10023 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1402
10024 msgid "Return the command trace flag."
10025 msgstr ""
10026
10027 # type: =head2
10028 #. type: =head2
10029 #: ../src/guestfs-actions.pod:2073
10030 msgid "guestfs_get_umask"
10031 msgstr ""
10032
10033 # type: verbatim
10034 #. type: verbatim
10035 #: ../src/guestfs-actions.pod:2075
10036 #, no-wrap
10037 msgid ""
10038 " int\n"
10039 " guestfs_get_umask (guestfs_h *g);\n"
10040 "\n"
10041 msgstr ""
10042
10043 # type: textblock
10044 #. type: textblock
10045 #: ../src/guestfs-actions.pod:2078
10046 msgid ""
10047 "Return the current umask.  By default the umask is C<022> unless it has been "
10048 "set by calling C<guestfs_umask>."
10049 msgstr ""
10050
10051 # type: =head2
10052 #. type: =head2
10053 #: ../src/guestfs-actions.pod:2085
10054 msgid "guestfs_get_verbose"
10055 msgstr ""
10056
10057 # type: verbatim
10058 #. type: verbatim
10059 #: ../src/guestfs-actions.pod:2087
10060 #, no-wrap
10061 msgid ""
10062 " int\n"
10063 " guestfs_get_verbose (guestfs_h *g);\n"
10064 "\n"
10065 msgstr ""
10066
10067 # type: textblock
10068 #. type: textblock
10069 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10070 msgid "This returns the verbose messages flag."
10071 msgstr ""
10072
10073 # type: =head2
10074 #. type: =head2
10075 #: ../src/guestfs-actions.pod:2096
10076 msgid "guestfs_getcon"
10077 msgstr ""
10078
10079 # type: verbatim
10080 #. type: verbatim
10081 #: ../src/guestfs-actions.pod:2098
10082 #, no-wrap
10083 msgid ""
10084 " char *\n"
10085 " guestfs_getcon (guestfs_h *g);\n"
10086 "\n"
10087 msgstr ""
10088
10089 # type: textblock
10090 #. type: textblock
10091 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1421
10092 msgid "This gets the SELinux security context of the daemon."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:2103
10098 msgid ""
10099 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10100 msgstr ""
10101
10102 # type: =head2
10103 #. type: =head2
10104 #: ../src/guestfs-actions.pod:2111
10105 msgid "guestfs_getxattr"
10106 msgstr ""
10107
10108 # type: verbatim
10109 #. type: verbatim
10110 #: ../src/guestfs-actions.pod:2113
10111 #, no-wrap
10112 msgid ""
10113 " char *\n"
10114 " guestfs_getxattr (guestfs_h *g,\n"
10115 "                   const char *path,\n"
10116 "                   const char *name,\n"
10117 "                   size_t *size_r);\n"
10118 "\n"
10119 msgstr ""
10120
10121 # type: textblock
10122 #. type: textblock
10123 #: ../src/guestfs-actions.pod:2119
10124 msgid ""
10125 "Get a single extended attribute from file C<path> named C<name>.  This call "
10126 "follows symlinks.  If you want to lookup an extended attribute for the "
10127 "symlink itself, use C<guestfs_lgetxattr>."
10128 msgstr ""
10129
10130 # type: textblock
10131 #. type: textblock
10132 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:3369
10133 msgid ""
10134 "Normally it is better to get all extended attributes from a file in one go "
10135 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10136 "implementations are buggy and do not provide a way to list out attributes.  "
10137 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10138 "extended attributes you want in advance and call this function."
10139 msgstr ""
10140
10141 # type: textblock
10142 #. type: textblock
10143 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:3376
10144 #: ../fish/guestfish-actions.pod:1441 ../fish/guestfish-actions.pod:2347
10145 msgid ""
10146 "Extended attribute values are blobs of binary data.  If there is no extended "
10147 "attribute named C<name>, this returns an error."
10148 msgstr ""
10149
10150 # type: textblock
10151 #. type: textblock
10152 #: ../src/guestfs-actions.pod:2133
10153 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10154 msgstr ""
10155
10156 # type: textblock
10157 #. type: textblock
10158 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:2326
10159 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:5084
10160 #: ../src/guestfs-actions.pod:5110 ../src/guestfs-actions.pod:5291
10161 msgid ""
10162 "This function returns a buffer, or NULL on error.  The size of the returned "
10163 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10164 "after use>."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:3385
10169 msgid "(Added in 1.7.24)"
10170 msgstr ""
10171
10172 # type: =head2
10173 #. type: =head2
10174 #: ../src/guestfs-actions.pod:2141
10175 msgid "guestfs_getxattrs"
10176 msgstr ""
10177
10178 # type: verbatim
10179 #. type: verbatim
10180 #: ../src/guestfs-actions.pod:2143
10181 #, no-wrap
10182 msgid ""
10183 " struct guestfs_xattr_list *\n"
10184 " guestfs_getxattrs (guestfs_h *g,\n"
10185 "                    const char *path);\n"
10186 "\n"
10187 msgstr ""
10188
10189 # type: textblock
10190 #. type: textblock
10191 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1450
10192 msgid ""
10193 "This call lists the extended attributes of the file or directory C<path>."
10194 msgstr ""
10195
10196 # type: textblock
10197 #. type: textblock
10198 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1453
10199 msgid ""
10200 "At the system call level, this is a combination of the L<listxattr(2)> and "
10201 "L<getxattr(2)> calls."
10202 msgstr ""
10203
10204 # type: textblock
10205 #. type: textblock
10206 #: ../src/guestfs-actions.pod:2153
10207 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10208 msgstr ""
10209
10210 # type: textblock
10211 #. type: textblock
10212 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3397
10213 #: ../src/guestfs-actions.pod:4048
10214 msgid ""
10215 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10216 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10217 msgstr ""
10218
10219 # type: textblock
10220 #. type: textblock
10221 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3401
10222 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3602
10223 #: ../src/guestfs-actions.pod:5464 ../src/guestfs-actions.pod:5920
10224 #: ../src/guestfs-actions.pod:7255
10225 msgid "(Added in 1.0.59)"
10226 msgstr ""
10227
10228 # type: =head2
10229 #. type: =head2
10230 #: ../src/guestfs-actions.pod:2161
10231 msgid "guestfs_glob_expand"
10232 msgstr ""
10233
10234 # type: verbatim
10235 #. type: verbatim
10236 #: ../src/guestfs-actions.pod:2163
10237 #, no-wrap
10238 msgid ""
10239 " char **\n"
10240 " guestfs_glob_expand (guestfs_h *g,\n"
10241 "                      const char *pattern);\n"
10242 "\n"
10243 msgstr ""
10244
10245 # type: textblock
10246 #. type: textblock
10247 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1462
10248 msgid ""
10249 "This command searches for all the pathnames matching C<pattern> according to "
10250 "the wildcard expansion rules used by the shell."
10251 msgstr ""
10252
10253 # type: textblock
10254 #. type: textblock
10255 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1466
10256 msgid ""
10257 "If no paths match, then this returns an empty list (note: not an error)."
10258 msgstr ""
10259
10260 # type: textblock
10261 #. type: textblock
10262 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1469
10263 msgid ""
10264 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10265 "GLOB_BRACE>.  See that manual page for more details."
10266 msgstr ""
10267
10268 # type: textblock
10269 #. type: textblock
10270 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:6085
10271 #: ../src/guestfs-actions.pod:6102
10272 msgid "(Added in 1.0.50)"
10273 msgstr ""
10274
10275 # type: =head2
10276 #. type: =head2
10277 #: ../src/guestfs-actions.pod:2184
10278 msgid "guestfs_grep"
10279 msgstr ""
10280
10281 # type: verbatim
10282 #. type: verbatim
10283 #: ../src/guestfs-actions.pod:2186
10284 #, no-wrap
10285 msgid ""
10286 " char **\n"
10287 " guestfs_grep (guestfs_h *g,\n"
10288 "               const char *regex,\n"
10289 "               const char *path);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #. type: textblock
10295 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1477
10296 msgid "This calls the external C<grep> program and returns the matching lines."
10297 msgstr ""
10298
10299 # type: =head2
10300 #. type: =head2
10301 #: ../src/guestfs-actions.pod:2203
10302 msgid "guestfs_grepi"
10303 msgstr ""
10304
10305 # type: verbatim
10306 #. type: verbatim
10307 #: ../src/guestfs-actions.pod:2205
10308 #, no-wrap
10309 msgid ""
10310 " char **\n"
10311 " guestfs_grepi (guestfs_h *g,\n"
10312 "                const char *regex,\n"
10313 "                const char *path);\n"
10314 "\n"
10315 msgstr ""
10316
10317 # type: textblock
10318 #. type: textblock
10319 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1487
10320 msgid ""
10321 "This calls the external C<grep -i> program and returns the matching lines."
10322 msgstr ""
10323
10324 # type: =head2
10325 #. type: =head2
10326 #: ../src/guestfs-actions.pod:2222
10327 msgid "guestfs_grub_install"
10328 msgstr ""
10329
10330 # type: verbatim
10331 #. type: verbatim
10332 #: ../src/guestfs-actions.pod:2224
10333 #, no-wrap
10334 msgid ""
10335 " int\n"
10336 " guestfs_grub_install (guestfs_h *g,\n"
10337 "                       const char *root,\n"
10338 "                       const char *device);\n"
10339 "\n"
10340 msgstr ""
10341
10342 # type: textblock
10343 #. type: textblock
10344 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1497
10345 msgid ""
10346 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10347 "the root directory being C<root>."
10348 msgstr ""
10349
10350 # type: textblock
10351 #. type: textblock
10352 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1500
10353 msgid ""
10354 "Note: If grub-install reports the error \"No suitable drive was found in the "
10355 "generated device map.\" it may be that you need to create a C</boot/grub/"
10356 "device.map> file first that contains the mapping between grub device names "
10357 "and Linux device names.  It is usually sufficient to create a file "
10358 "containing:"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #. type: verbatim
10363 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1507
10364 #, no-wrap
10365 msgid ""
10366 " (hd0) /dev/vda\n"
10367 "\n"
10368 msgstr ""
10369
10370 # type: textblock
10371 #. type: textblock
10372 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1509
10373 msgid "replacing C</dev/vda> with the name of the installation device."
10374 msgstr ""
10375
10376 # type: textblock
10377 #. type: textblock
10378 #: ../src/guestfs-actions.pod:2245
10379 msgid "(Added in 1.0.17)"
10380 msgstr ""
10381
10382 # type: =head2
10383 #. type: =head2
10384 #: ../src/guestfs-actions.pod:2247
10385 msgid "guestfs_head"
10386 msgstr ""
10387
10388 # type: verbatim
10389 #. type: verbatim
10390 #: ../src/guestfs-actions.pod:2249
10391 #, no-wrap
10392 msgid ""
10393 " char **\n"
10394 " guestfs_head (guestfs_h *g,\n"
10395 "               const char *path);\n"
10396 "\n"
10397 msgstr ""
10398
10399 # type: textblock
10400 #. type: textblock
10401 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1515
10402 msgid ""
10403 "This command returns up to the first 10 lines of a file as a list of strings."
10404 msgstr ""
10405
10406 # type: =head2
10407 #. type: =head2
10408 #: ../src/guestfs-actions.pod:2265
10409 msgid "guestfs_head_n"
10410 msgstr ""
10411
10412 # type: verbatim
10413 #. type: verbatim
10414 #: ../src/guestfs-actions.pod:2267
10415 #, no-wrap
10416 msgid ""
10417 " char **\n"
10418 " guestfs_head_n (guestfs_h *g,\n"
10419 "                 int nrlines,\n"
10420 "                 const char *path);\n"
10421 "\n"
10422 msgstr ""
10423
10424 # type: textblock
10425 #. type: textblock
10426 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1525
10427 msgid ""
10428 "If the parameter C<nrlines> is a positive number, this returns the first "
10429 "C<nrlines> lines of the file C<path>."
10430 msgstr ""
10431
10432 # type: textblock
10433 #. type: textblock
10434 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1528
10435 msgid ""
10436 "If the parameter C<nrlines> is a negative number, this returns lines from "
10437 "the file C<path>, excluding the last C<nrlines> lines."
10438 msgstr ""
10439
10440 # type: textblock
10441 #. type: textblock
10442 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6382
10443 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4274
10444 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10445 msgstr ""
10446
10447 # type: =head2
10448 #. type: =head2
10449 #: ../src/guestfs-actions.pod:2289
10450 msgid "guestfs_hexdump"
10451 msgstr ""
10452
10453 # type: verbatim
10454 #. type: verbatim
10455 #: ../src/guestfs-actions.pod:2291
10456 #, no-wrap
10457 msgid ""
10458 " char *\n"
10459 " guestfs_hexdump (guestfs_h *g,\n"
10460 "                  const char *path);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #. type: textblock
10466 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1540
10467 msgid ""
10468 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10469 "readable, canonical hex dump of the file."
10470 msgstr ""
10471
10472 # type: textblock
10473 #. type: textblock
10474 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6166
10475 #: ../src/guestfs-actions.pod:6221
10476 msgid "(Added in 1.0.22)"
10477 msgstr ""
10478
10479 # type: =head2
10480 #. type: =head2
10481 #: ../src/guestfs-actions.pod:2306
10482 msgid "guestfs_initrd_cat"
10483 msgstr ""
10484
10485 # type: verbatim
10486 #. type: verbatim
10487 #: ../src/guestfs-actions.pod:2308
10488 #, no-wrap
10489 msgid ""
10490 " char *\n"
10491 " guestfs_initrd_cat (guestfs_h *g,\n"
10492 "                     const char *initrdpath,\n"
10493 "                     const char *filename,\n"
10494 "                     size_t *size_r);\n"
10495 "\n"
10496 msgstr ""
10497
10498 # type: textblock
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1550
10501 msgid ""
10502 "This command unpacks the file C<filename> from the initrd file called "
10503 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10504 "character."
10505 msgstr ""
10506
10507 # type: textblock
10508 #. type: textblock
10509 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1554
10510 msgid ""
10511 "For example, in guestfish you could use the following command to examine the "
10512 "boot script (usually called C</init>)  contained in a Linux initrd or "
10513 "initramfs image:"
10514 msgstr ""
10515
10516 # type: verbatim
10517 #. type: verbatim
10518 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1558
10519 #, no-wrap
10520 msgid ""
10521 " initrd-cat /boot/initrd-<version>.img init\n"
10522 "\n"
10523 msgstr ""
10524
10525 # type: textblock
10526 #. type: textblock
10527 #: ../src/guestfs-actions.pod:2324
10528 msgid "See also C<guestfs_initrd_list>."
10529 msgstr ""
10530
10531 # type: =head2
10532 #. type: =head2
10533 #: ../src/guestfs-actions.pod:2335
10534 msgid "guestfs_initrd_list"
10535 msgstr ""
10536
10537 # type: verbatim
10538 #. type: verbatim
10539 #: ../src/guestfs-actions.pod:2337
10540 #, no-wrap
10541 msgid ""
10542 " char **\n"
10543 " guestfs_initrd_list (guestfs_h *g,\n"
10544 "                      const char *path);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #. type: textblock
10550 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1569
10551 msgid "This command lists out files contained in an initrd."
10552 msgstr ""
10553
10554 # type: textblock
10555 #. type: textblock
10556 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1571
10557 msgid ""
10558 "The files are listed without any initial C</> character.  The files are "
10559 "listed in the order they appear (not necessarily alphabetical).  Directory "
10560 "names are listed as separate items."
10561 msgstr ""
10562
10563 # type: textblock
10564 #. type: textblock
10565 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1575
10566 msgid ""
10567 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10568 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10569 "files)."
10570 msgstr ""
10571
10572 # type: =head2
10573 #. type: =head2
10574 #: ../src/guestfs-actions.pod:2357
10575 msgid "guestfs_inotify_add_watch"
10576 msgstr ""
10577
10578 # type: verbatim
10579 #. type: verbatim
10580 #: ../src/guestfs-actions.pod:2359
10581 #, no-wrap
10582 msgid ""
10583 " int64_t\n"
10584 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10585 "                            const char *path,\n"
10586 "                            int mask);\n"
10587 "\n"
10588 msgstr ""
10589
10590 # type: textblock
10591 #. type: textblock
10592 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1583
10593 msgid "Watch C<path> for the events listed in C<mask>."
10594 msgstr ""
10595
10596 # type: textblock
10597 #. type: textblock
10598 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1585
10599 msgid ""
10600 "Note that if C<path> is a directory then events within that directory are "
10601 "watched, but this does I<not> happen recursively (in subdirectories)."
10602 msgstr ""
10603
10604 # type: textblock
10605 #. type: textblock
10606 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1589
10607 msgid ""
10608 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10609 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10610 msgstr ""
10611
10612 # type: =head2
10613 #. type: =head2
10614 #: ../src/guestfs-actions.pod:2378
10615 msgid "guestfs_inotify_close"
10616 msgstr ""
10617
10618 # type: verbatim
10619 #. type: verbatim
10620 #: ../src/guestfs-actions.pod:2380
10621 #, no-wrap
10622 msgid ""
10623 " int\n"
10624 " guestfs_inotify_close (guestfs_h *g);\n"
10625 "\n"
10626 msgstr ""
10627
10628 # type: textblock
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1597
10631 msgid ""
10632 "This closes the inotify handle which was previously opened by inotify_init.  "
10633 "It removes all watches, throws away any pending events, and deallocates all "
10634 "resources."
10635 msgstr ""
10636
10637 # type: =head2
10638 #. type: =head2
10639 #: ../src/guestfs-actions.pod:2391
10640 msgid "guestfs_inotify_files"
10641 msgstr ""
10642
10643 # type: verbatim
10644 #. type: verbatim
10645 #: ../src/guestfs-actions.pod:2393
10646 #, no-wrap
10647 msgid ""
10648 " char **\n"
10649 " guestfs_inotify_files (guestfs_h *g);\n"
10650 "\n"
10651 msgstr ""
10652
10653 # type: textblock
10654 #. type: textblock
10655 #: ../src/guestfs-actions.pod:2396
10656 msgid ""
10657 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10658 "returns a list of pathnames of objects that were touched.  The returned "
10659 "pathnames are sorted and deduplicated."
10660 msgstr ""
10661
10662 # type: =head2
10663 #. type: =head2
10664 #: ../src/guestfs-actions.pod:2406
10665 msgid "guestfs_inotify_init"
10666 msgstr ""
10667
10668 # type: verbatim
10669 #. type: verbatim
10670 #: ../src/guestfs-actions.pod:2408
10671 #, no-wrap
10672 msgid ""
10673 " int\n"
10674 " guestfs_inotify_init (guestfs_h *g,\n"
10675 "                       int maxevents);\n"
10676 "\n"
10677 msgstr ""
10678
10679 # type: textblock
10680 #. type: textblock
10681 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1613
10682 msgid ""
10683 "This command creates a new inotify handle.  The inotify subsystem can be "
10684 "used to notify events which happen to objects in the guest filesystem."
10685 msgstr ""
10686
10687 # type: textblock
10688 #. type: textblock
10689 #: ../src/guestfs-actions.pod:2416
10690 msgid ""
10691 "C<maxevents> is the maximum number of events which will be queued up between "
10692 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10693 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10694 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10695 "throws away events, but records the fact that it threw them away by setting "
10696 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10697 "C<guestfs_inotify_read>)."
10698 msgstr ""
10699
10700 # type: textblock
10701 #. type: textblock
10702 #: ../src/guestfs-actions.pod:2426
10703 msgid ""
10704 "Before any events are generated, you have to add some watches to the "
10705 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10706 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10707 msgstr ""
10708
10709 # type: textblock
10710 #. type: textblock
10711 #: ../src/guestfs-actions.pod:2432
10712 msgid ""
10713 "Queued up events should be read periodically by calling "
10714 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10715 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10716 "often enough then you risk the internal queue overflowing."
10717 msgstr ""
10718
10719 # type: textblock
10720 #. type: textblock
10721 #: ../src/guestfs-actions.pod:2439
10722 msgid ""
10723 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10724 "This also removes any watches automatically."
10725 msgstr ""
10726
10727 # type: textblock
10728 #. type: textblock
10729 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1644
10730 msgid ""
10731 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10732 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10733 "that there is one global inotify handle per libguestfs instance."
10734 msgstr ""
10735
10736 # type: =head2
10737 #. type: =head2
10738 #: ../src/guestfs-actions.pod:2452
10739 msgid "guestfs_inotify_read"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #. type: verbatim
10744 #: ../src/guestfs-actions.pod:2454
10745 #, no-wrap
10746 msgid ""
10747 " struct guestfs_inotify_event_list *\n"
10748 " guestfs_inotify_read (guestfs_h *g);\n"
10749 "\n"
10750 msgstr ""
10751
10752 # type: textblock
10753 #. type: textblock
10754 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1653
10755 msgid ""
10756 "Return the complete queue of events that have happened since the previous "
10757 "read call."
10758 msgstr ""
10759
10760 # type: textblock
10761 #. type: textblock
10762 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1656
10763 msgid "If no events have happened, this returns an empty list."
10764 msgstr ""
10765
10766 # type: textblock
10767 #. type: textblock
10768 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1658
10769 msgid ""
10770 "I<Note>: In order to make sure that all events have been read, you must call "
10771 "this function repeatedly until it returns an empty list.  The reason is that "
10772 "the call will read events up to the maximum appliance-to-host message size "
10773 "and leave remaining events in the queue."
10774 msgstr ""
10775
10776 # type: textblock
10777 #. type: textblock
10778 #: ../src/guestfs-actions.pod:2468
10779 msgid ""
10780 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10781 "there was an error.  I<The caller must call "
10782 "C<guestfs_free_inotify_event_list> after use>."
10783 msgstr ""
10784
10785 # type: =head2
10786 #. type: =head2
10787 #: ../src/guestfs-actions.pod:2474
10788 msgid "guestfs_inotify_rm_watch"
10789 msgstr ""
10790
10791 # type: verbatim
10792 #. type: verbatim
10793 #: ../src/guestfs-actions.pod:2476
10794 #, no-wrap
10795 msgid ""
10796 " int\n"
10797 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10798 "                           int wd);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #. type: textblock
10804 #: ../src/guestfs-actions.pod:2480
10805 msgid ""
10806 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10807 msgstr ""
10808
10809 # type: =head2
10810 #. type: =head2
10811 #: ../src/guestfs-actions.pod:2487
10812 msgid "guestfs_inspect_get_arch"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #. type: verbatim
10817 #: ../src/guestfs-actions.pod:2489
10818 #, no-wrap
10819 msgid ""
10820 " char *\n"
10821 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10822 "                           const char *root);\n"
10823 "\n"
10824 msgstr ""
10825
10826 # type: textblock
10827 #. type: textblock
10828 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
10829 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
10830 #: ../src/guestfs-actions.pod:2662 ../src/guestfs-actions.pod:2684
10831 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2732
10832 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2798
10833 #: ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2873
10834 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2938
10835 #: ../src/guestfs-actions.pod:2955 ../src/guestfs-actions.pod:2972
10836 #: ../src/guestfs-actions.pod:2991
10837 msgid ""
10838 "This function should only be called with a root device string as returned by "
10839 "C<guestfs_inspect_os>."
10840 msgstr ""
10841
10842 # type: textblock
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2496
10845 msgid ""
10846 "This returns the architecture of the inspected operating system.  The "
10847 "possible return values are listed under C<guestfs_file_architecture>."
10848 msgstr ""
10849
10850 # type: textblock
10851 #. type: textblock
10852 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1682
10853 msgid ""
10854 "If the architecture could not be determined, then the string C<unknown> is "
10855 "returned."
10856 msgstr ""
10857
10858 # type: textblock
10859 #. type: textblock
10860 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
10861 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2671
10862 #: ../src/guestfs-actions.pod:2699 ../src/guestfs-actions.pod:2785
10863 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2840
10864 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2902
10865 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:2945
10866 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:2981
10867 #: ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3125
10868 #: ../fish/guestfish-actions.pod:1685 ../fish/guestfish-actions.pod:1759
10869 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1826
10870 #: ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1911
10871 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1952
10872 #: ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2000
10873 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2029
10874 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2057
10875 #: ../fish/guestfish-actions.pod:2156 ../fish/guestfish-actions.pod:2190
10876 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10877 msgstr ""
10878
10879 # type: =head2
10880 #. type: =head2
10881 #: ../src/guestfs-actions.pod:2510
10882 msgid "guestfs_inspect_get_distro"
10883 msgstr ""
10884
10885 # type: verbatim
10886 #. type: verbatim
10887 #: ../src/guestfs-actions.pod:2512
10888 #, no-wrap
10889 msgid ""
10890 " char *\n"
10891 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10892 "                             const char *root);\n"
10893 "\n"
10894 msgstr ""
10895
10896 # type: textblock
10897 #. type: textblock
10898 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1694
10899 msgid ""
10900 "This returns the distro (distribution) of the inspected operating system."
10901 msgstr ""
10902
10903 # type: textblock
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1697
10906 msgid "Currently defined distros are:"
10907 msgstr ""
10908
10909 # type: =item
10910 #. type: =item
10911 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1701
10912 msgid "\"archlinux\""
10913 msgstr ""
10914
10915 # type: textblock
10916 #. type: textblock
10917 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1703
10918 msgid "Arch Linux."
10919 msgstr ""
10920
10921 # type: =item
10922 #. type: =item
10923 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1705
10924 msgid "\"debian\""
10925 msgstr ""
10926
10927 # type: textblock
10928 #. type: textblock
10929 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1707
10930 msgid "Debian."
10931 msgstr ""
10932
10933 # type: =item
10934 #. type: =item
10935 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1709
10936 msgid "\"fedora\""
10937 msgstr ""
10938
10939 # type: textblock
10940 #. type: textblock
10941 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1711
10942 msgid "Fedora."
10943 msgstr ""
10944
10945 # type: =item
10946 #. type: =item
10947 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1713
10948 msgid "\"gentoo\""
10949 msgstr ""
10950
10951 # type: textblock
10952 #. type: textblock
10953 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1715
10954 msgid "Gentoo."
10955 msgstr ""
10956
10957 # type: =item
10958 #. type: =item
10959 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1717
10960 msgid "\"linuxmint\""
10961 msgstr ""
10962
10963 # type: textblock
10964 #. type: textblock
10965 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1719
10966 msgid "Linux Mint."
10967 msgstr ""
10968
10969 # type: =item
10970 #. type: =item
10971 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1721
10972 msgid "\"mandriva\""
10973 msgstr ""
10974
10975 # type: textblock
10976 #. type: textblock
10977 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1723
10978 msgid "Mandriva."
10979 msgstr ""
10980
10981 # type: =item
10982 #. type: =item
10983 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1725
10984 msgid "\"meego\""
10985 msgstr ""
10986
10987 # type: textblock
10988 #. type: textblock
10989 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1727
10990 msgid "MeeGo."
10991 msgstr ""
10992
10993 # type: =item
10994 #. type: =item
10995 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1729
10996 msgid "\"pardus\""
10997 msgstr ""
10998
10999 # type: textblock
11000 #. type: textblock
11001 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1731
11002 msgid "Pardus."
11003 msgstr ""
11004
11005 # type: =item
11006 #. type: =item
11007 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1733
11008 msgid "\"redhat-based\""
11009 msgstr ""
11010
11011 # type: textblock
11012 #. type: textblock
11013 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1735
11014 msgid "Some Red Hat-derived distro."
11015 msgstr ""
11016
11017 # type: =item
11018 #. type: =item
11019 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1737
11020 msgid "\"rhel\""
11021 msgstr ""
11022
11023 # type: textblock
11024 #. type: textblock
11025 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1739
11026 msgid "Red Hat Enterprise Linux and some derivatives."
11027 msgstr ""
11028
11029 # type: =item
11030 #. type: =item
11031 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1741
11032 msgid "\"ubuntu\""
11033 msgstr ""
11034
11035 # type: textblock
11036 #. type: textblock
11037 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1743
11038 msgid "Ubuntu."
11039 msgstr ""
11040
11041 # type: =item
11042 #. type: =item
11043 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2642
11044 #: ../src/guestfs-actions.pod:2893 ../fish/guestfish-actions.pod:1745
11045 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1991
11046 msgid "\"unknown\""
11047 msgstr ""
11048
11049 # type: textblock
11050 #. type: textblock
11051 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1747
11052 msgid "The distro could not be determined."
11053 msgstr ""
11054
11055 # type: =item
11056 #. type: =item
11057 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2885
11058 #: ../fish/guestfish-actions.pod:1749 ../fish/guestfish-actions.pod:1983
11059 msgid "\"windows\""
11060 msgstr ""
11061
11062 # type: textblock
11063 #. type: textblock
11064 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1751
11065 msgid ""
11066 "Windows does not have distributions.  This string is returned if the OS type "
11067 "is Windows."
11068 msgstr ""
11069
11070 # type: textblock
11071 #. type: textblock
11072 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2648
11073 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1756
11074 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1997
11075 msgid ""
11076 "Future versions of libguestfs may return other strings here.  The caller "
11077 "should be prepared to handle any string."
11078 msgstr ""
11079
11080 # type: =head2
11081 #. type: =head2
11082 #: ../src/guestfs-actions.pod:2591
11083 msgid "guestfs_inspect_get_filesystems"
11084 msgstr ""
11085
11086 # type: verbatim
11087 #. type: verbatim
11088 #: ../src/guestfs-actions.pod:2593
11089 #, no-wrap
11090 msgid ""
11091 " char **\n"
11092 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11093 "                                  const char *root);\n"
11094 "\n"
11095 msgstr ""
11096
11097 # type: textblock
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1768
11100 msgid ""
11101 "This returns a list of all the filesystems that we think are associated with "
11102 "this operating system.  This includes the root filesystem, other ordinary "
11103 "filesystems, and non-mounted devices like swap partitions."
11104 msgstr ""
11105
11106 # type: textblock
11107 #. type: textblock
11108 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1773
11109 msgid ""
11110 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11111 "to be shared between operating systems."
11112 msgstr ""
11113
11114 # type: textblock
11115 #. type: textblock
11116 #: ../src/guestfs-actions.pod:2608
11117 msgid ""
11118 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11119 "C<guestfs_inspect_get_mountpoints>."
11120 msgstr ""
11121
11122 #. type: =head2
11123 #: ../src/guestfs-actions.pod:2617
11124 msgid "guestfs_inspect_get_format"
11125 msgstr ""
11126
11127 #. type: verbatim
11128 #: ../src/guestfs-actions.pod:2619
11129 #, no-wrap
11130 msgid ""
11131 " char *\n"
11132 " guestfs_inspect_get_format (guestfs_h *g,\n"
11133 "                             const char *root);\n"
11134 "\n"
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1786
11139 msgid ""
11140 "This returns the format of the inspected operating system.  You can use it "
11141 "to detect install images, live CDs and similar."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1789
11146 msgid "Currently defined formats are:"
11147 msgstr ""
11148
11149 #. type: =item
11150 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1793
11151 msgid "\"installed\""
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1795
11156 msgid "This is an installed operating system."
11157 msgstr ""
11158
11159 #. type: =item
11160 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1797
11161 msgid "\"installer\""
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1799
11166 msgid ""
11167 "The disk image being inspected is not an installed operating system, but a "
11168 "I<bootable> install disk, live CD, or similar."
11169 msgstr ""
11170
11171 #. type: textblock
11172 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1804
11173 msgid "The format of this disk image is not known."
11174 msgstr ""
11175
11176 # type: =head2
11177 #. type: =head2
11178 #: ../src/guestfs-actions.pod:2656
11179 msgid "guestfs_inspect_get_hostname"
11180 msgstr ""
11181
11182 # type: verbatim
11183 #. type: verbatim
11184 #: ../src/guestfs-actions.pod:2658
11185 #, no-wrap
11186 msgid ""
11187 " char *\n"
11188 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11189 "                               const char *root);\n"
11190 "\n"
11191 msgstr ""
11192
11193 # type: textblock
11194 #. type: textblock
11195 #: ../src/guestfs-actions.pod:2665 ../fish/guestfish-actions.pod:1820
11196 msgid ""
11197 "This function returns the hostname of the operating system as found by "
11198 "inspection of the guest's configuration files."
11199 msgstr ""
11200
11201 # type: textblock
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1823
11204 msgid ""
11205 "If the hostname could not be determined, then the string C<unknown> is "
11206 "returned."
11207 msgstr ""
11208
11209 # type: textblock
11210 #. type: textblock
11211 #: ../src/guestfs-actions.pod:2676
11212 msgid "(Added in 1.7.9)"
11213 msgstr ""
11214
11215 # type: =head2
11216 #. type: =head2
11217 #: ../src/guestfs-actions.pod:2678
11218 msgid "guestfs_inspect_get_major_version"
11219 msgstr ""
11220
11221 # type: verbatim
11222 #. type: verbatim
11223 #: ../src/guestfs-actions.pod:2680
11224 #, no-wrap
11225 msgid ""
11226 " int\n"
11227 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11228 "                                    const char *root);\n"
11229 "\n"
11230 msgstr ""
11231
11232 # type: textblock
11233 #. type: textblock
11234 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1835
11235 msgid ""
11236 "This returns the major version number of the inspected operating system."
11237 msgstr ""
11238
11239 # type: textblock
11240 #. type: textblock
11241 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1838
11242 msgid ""
11243 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11244 "popular public names used by the operating system.  Notably the operating "
11245 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11246 "1).  You can find out the real versions corresponding to releases of Windows "
11247 "by consulting Wikipedia or MSDN."
11248 msgstr ""
11249
11250 # type: textblock
11251 #. type: textblock
11252 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2717
11253 #: ../fish/guestfish-actions.pod:1845 ../fish/guestfish-actions.pod:1859
11254 msgid "If the version could not be determined, then C<0> is returned."
11255 msgstr ""
11256
11257 # type: =head2
11258 #. type: =head2
11259 #: ../src/guestfs-actions.pod:2705
11260 msgid "guestfs_inspect_get_minor_version"
11261 msgstr ""
11262
11263 # type: verbatim
11264 #. type: verbatim
11265 #: ../src/guestfs-actions.pod:2707
11266 #, no-wrap
11267 msgid ""
11268 " int\n"
11269 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11270 "                                    const char *root);\n"
11271 "\n"
11272 msgstr ""
11273
11274 # type: textblock
11275 #. type: textblock
11276 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1856
11277 msgid ""
11278 "This returns the minor version number of the inspected operating system."
11279 msgstr ""
11280
11281 # type: textblock
11282 #. type: textblock
11283 #: ../src/guestfs-actions.pod:2719
11284 msgid ""
11285 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11286 "C<guestfs_inspect_get_major_version>."
11287 msgstr ""
11288
11289 # type: =head2
11290 #. type: =head2
11291 #: ../src/guestfs-actions.pod:2726
11292 msgid "guestfs_inspect_get_mountpoints"
11293 msgstr ""
11294
11295 # type: verbatim
11296 #. type: verbatim
11297 #: ../src/guestfs-actions.pod:2728
11298 #, no-wrap
11299 msgid ""
11300 " char **\n"
11301 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11302 "                                  const char *root);\n"
11303 "\n"
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1871
11308 msgid ""
11309 "This returns a hash of where we think the filesystems associated with this "
11310 "operating system should be mounted.  Callers should note that this is at "
11311 "best an educated guess made by reading configuration files such as C</etc/"
11312 "fstab>.  I<In particular note> that this may return filesystems which are "
11313 "non-existent or not mountable and callers should be prepared to handle or "
11314 "ignore failures if they try to mount them."
11315 msgstr ""
11316
11317 # type: textblock
11318 #. type: textblock
11319 #: ../src/guestfs-actions.pod:2744 ../fish/guestfish-actions.pod:1880
11320 msgid ""
11321 "Each element in the returned hashtable has a key which is the path of the "
11322 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11323 "mounted there (eg. C</dev/sda1>)."
11324 msgstr ""
11325
11326 # type: textblock
11327 #. type: textblock
11328 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:1885
11329 msgid ""
11330 "Non-mounted devices such as swap devices are I<not> returned in this list."
11331 msgstr ""
11332
11333 # type: textblock
11334 #. type: textblock
11335 #: ../src/guestfs-actions.pod:2752
11336 msgid ""
11337 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11338 "C<guestfs_inspect_get_filesystems>."
11339 msgstr ""
11340
11341 # type: textblock
11342 #. type: textblock
11343 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3454
11344 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:6523
11345 msgid ""
11346 "This function returns a NULL-terminated array of strings, or NULL if there "
11347 "was an error.  The array of strings will always have length C<2n+1>, where "
11348 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11349 "caller must free the strings and the array after use>."
11350 msgstr ""
11351
11352 # type: =head2
11353 #. type: =head2
11354 #: ../src/guestfs-actions.pod:2763
11355 msgid "guestfs_inspect_get_package_format"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #. type: verbatim
11360 #: ../src/guestfs-actions.pod:2765
11361 #, no-wrap
11362 msgid ""
11363 " char *\n"
11364 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11365 "                                     const char *root);\n"
11366 "\n"
11367 msgstr ""
11368
11369 # type: textblock
11370 #. type: textblock
11371 #: ../src/guestfs-actions.pod:2772
11372 msgid ""
11373 "This function and C<guestfs_inspect_get_package_management> return the "
11374 "package format and package management tool used by the inspected operating "
11375 "system.  For example for Fedora these functions would return C<rpm> (package "
11376 "format) and C<yum> (package management)."
11377 msgstr ""
11378
11379 # type: textblock
11380 #. type: textblock
11381 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1904
11382 msgid ""
11383 "This returns the string C<unknown> if we could not determine the package "
11384 "format I<or> if the operating system does not have a real packaging system "
11385 "(eg. Windows)."
11386 msgstr ""
11387
11388 # type: textblock
11389 #. type: textblock
11390 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1908
11391 msgid ""
11392 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11393 "Future versions of libguestfs may return other strings."
11394 msgstr ""
11395
11396 # type: textblock
11397 #. type: textblock
11398 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2821
11399 msgid "(Added in 1.7.5)"
11400 msgstr ""
11401
11402 # type: =head2
11403 #. type: =head2
11404 #: ../src/guestfs-actions.pod:2792
11405 msgid "guestfs_inspect_get_package_management"
11406 msgstr ""
11407
11408 # type: verbatim
11409 #. type: verbatim
11410 #: ../src/guestfs-actions.pod:2794
11411 #, no-wrap
11412 msgid ""
11413 " char *\n"
11414 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11415 "                                         const char *root);\n"
11416 "\n"
11417 msgstr ""
11418
11419 # type: textblock
11420 #. type: textblock
11421 #: ../src/guestfs-actions.pod:2801
11422 msgid ""
11423 "C<guestfs_inspect_get_package_format> and this function return the package "
11424 "format and package management tool used by the inspected operating system.  "
11425 "For example for Fedora these functions would return C<rpm> (package format) "
11426 "and C<yum> (package management)."
11427 msgstr ""
11428
11429 # type: textblock
11430 #. type: textblock
11431 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:1926
11432 msgid ""
11433 "This returns the string C<unknown> if we could not determine the package "
11434 "management tool I<or> if the operating system does not have a real packaging "
11435 "system (eg. Windows)."
11436 msgstr ""
11437
11438 # type: textblock
11439 #. type: textblock
11440 #: ../src/guestfs-actions.pod:2811 ../fish/guestfish-actions.pod:1930
11441 msgid ""
11442 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11443 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11444 "libguestfs may return other strings."
11445 msgstr ""
11446
11447 # type: =head2
11448 #. type: =head2
11449 #: ../src/guestfs-actions.pod:2823
11450 msgid "guestfs_inspect_get_product_name"
11451 msgstr ""
11452
11453 # type: verbatim
11454 #. type: verbatim
11455 #: ../src/guestfs-actions.pod:2825
11456 #, no-wrap
11457 msgid ""
11458 " char *\n"
11459 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11460 "                                   const char *root);\n"
11461 "\n"
11462 msgstr ""
11463
11464 # type: textblock
11465 #. type: textblock
11466 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1944
11467 msgid ""
11468 "This returns the product name of the inspected operating system.  The "
11469 "product name is generally some freeform string which can be displayed to the "
11470 "user, but should not be parsed by programs."
11471 msgstr ""
11472
11473 # type: textblock
11474 #. type: textblock
11475 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1949
11476 msgid ""
11477 "If the product name could not be determined, then the string C<unknown> is "
11478 "returned."
11479 msgstr ""
11480
11481 # type: =head2
11482 #. type: =head2
11483 #: ../src/guestfs-actions.pod:2847
11484 msgid "guestfs_inspect_get_roots"
11485 msgstr ""
11486
11487 # type: verbatim
11488 #. type: verbatim
11489 #: ../src/guestfs-actions.pod:2849
11490 #, no-wrap
11491 msgid ""
11492 " char **\n"
11493 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11494 "\n"
11495 msgstr ""
11496
11497 # type: textblock
11498 #. type: textblock
11499 #: ../src/guestfs-actions.pod:2852
11500 msgid ""
11501 "This function is a convenient way to get the list of root devices, as "
11502 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11503 "the whole inspection process."
11504 msgstr ""
11505
11506 # type: textblock
11507 #. type: textblock
11508 #: ../src/guestfs-actions.pod:2856
11509 msgid ""
11510 "This returns an empty list if either no root devices were found or the "
11511 "caller has not called C<guestfs_inspect_os>."
11512 msgstr ""
11513
11514 # type: textblock
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:2865
11517 msgid "(Added in 1.7.3)"
11518 msgstr ""
11519
11520 # type: =head2
11521 #. type: =head2
11522 #: ../src/guestfs-actions.pod:2867
11523 msgid "guestfs_inspect_get_type"
11524 msgstr ""
11525
11526 # type: verbatim
11527 #. type: verbatim
11528 #: ../src/guestfs-actions.pod:2869
11529 #, no-wrap
11530 msgid ""
11531 " char *\n"
11532 " guestfs_inspect_get_type (guestfs_h *g,\n"
11533 "                           const char *root);\n"
11534 "\n"
11535 msgstr ""
11536
11537 # type: textblock
11538 #. type: textblock
11539 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1974
11540 msgid ""
11541 "This returns the type of the inspected operating system.  Currently defined "
11542 "types are:"
11543 msgstr ""
11544
11545 # type: =item
11546 #. type: =item
11547 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1979
11548 msgid "\"linux\""
11549 msgstr ""
11550
11551 # type: textblock
11552 #. type: textblock
11553 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:1981
11554 msgid "Any Linux-based operating system."
11555 msgstr ""
11556
11557 # type: textblock
11558 #. type: textblock
11559 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1985
11560 msgid "Any Microsoft Windows operating system."
11561 msgstr ""
11562
11563 # type: =item
11564 #. type: =item
11565 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1987
11566 msgid "\"freebsd\""
11567 msgstr ""
11568
11569 # type: textblock
11570 #. type: textblock
11571 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1989
11572 msgid "FreeBSD."
11573 msgstr ""
11574
11575 # type: textblock
11576 #. type: textblock
11577 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:1993
11578 msgid "The operating system type could not be determined."
11579 msgstr ""
11580
11581 # type: =head2
11582 #. type: =head2
11583 #: ../src/guestfs-actions.pod:2909
11584 msgid "guestfs_inspect_get_windows_systemroot"
11585 msgstr ""
11586
11587 # type: verbatim
11588 #. type: verbatim
11589 #: ../src/guestfs-actions.pod:2911
11590 #, no-wrap
11591 msgid ""
11592 " char *\n"
11593 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11594 "                                         const char *root);\n"
11595 "\n"
11596 msgstr ""
11597
11598 # type: textblock
11599 #. type: textblock
11600 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2009
11601 msgid ""
11602 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11603 "is a directory path such as C</WINDOWS>."
11604 msgstr ""
11605
11606 # type: textblock
11607 #. type: textblock
11608 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2012
11609 msgid ""
11610 "This call assumes that the guest is Windows and that the systemroot could be "
11611 "determined by inspection.  If this is not the case then an error is returned."
11612 msgstr ""
11613
11614 # type: textblock
11615 #. type: textblock
11616 #: ../src/guestfs-actions.pod:2930
11617 msgid "(Added in 1.5.25)"
11618 msgstr ""
11619
11620 #. type: =head2
11621 #: ../src/guestfs-actions.pod:2932
11622 msgid "guestfs_inspect_is_live"
11623 msgstr ""
11624
11625 #. type: verbatim
11626 #: ../src/guestfs-actions.pod:2934
11627 #, no-wrap
11628 msgid ""
11629 " int\n"
11630 " guestfs_inspect_is_live (guestfs_h *g,\n"
11631 "                          const char *root);\n"
11632 "\n"
11633 msgstr ""
11634
11635 #. type: textblock
11636 #: ../src/guestfs-actions.pod:2941
11637 msgid ""
11638 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11639 "disk), then this returns true if a live image was detected on the disk."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../src/guestfs-actions.pod:2949
11644 msgid "guestfs_inspect_is_multipart"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../src/guestfs-actions.pod:2951
11649 #, no-wrap
11650 msgid ""
11651 " int\n"
11652 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11653 "                               const char *root);\n"
11654 "\n"
11655 msgstr ""
11656
11657 #. type: textblock
11658 #: ../src/guestfs-actions.pod:2958
11659 msgid ""
11660 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11661 "disk), then this returns true if the disk is part of a set."
11662 msgstr ""
11663
11664 #. type: =head2
11665 #: ../src/guestfs-actions.pod:2966
11666 msgid "guestfs_inspect_is_netinst"
11667 msgstr ""
11668
11669 #. type: verbatim
11670 #: ../src/guestfs-actions.pod:2968
11671 #, no-wrap
11672 msgid ""
11673 " int\n"
11674 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11675 "                             const char *root);\n"
11676 "\n"
11677 msgstr ""
11678
11679 #. type: textblock
11680 #: ../src/guestfs-actions.pod:2975
11681 msgid ""
11682 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11683 "disk), then this returns true if the disk is a network installer, ie. not a "
11684 "self-contained install CD but one which is likely to require network access "
11685 "to complete the install."
11686 msgstr ""
11687
11688 # type: =head2
11689 #. type: =head2
11690 #: ../src/guestfs-actions.pod:2985
11691 msgid "guestfs_inspect_list_applications"
11692 msgstr ""
11693
11694 # type: verbatim
11695 #. type: verbatim
11696 #: ../src/guestfs-actions.pod:2987
11697 #, no-wrap
11698 msgid ""
11699 " struct guestfs_application_list *\n"
11700 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11701 "                                    const char *root);\n"
11702 "\n"
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2994 ../fish/guestfish-actions.pod:2066
11708 msgid "Return the list of applications installed in the operating system."
11709 msgstr ""
11710
11711 # type: textblock
11712 #. type: textblock
11713 #: ../src/guestfs-actions.pod:2996
11714 msgid ""
11715 "I<Note:> This call works differently from other parts of the inspection "
11716 "API.  You have to call C<guestfs_inspect_os>, then "
11717 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11718 "this.  Listing applications is a significantly more difficult operation "
11719 "which requires access to the full filesystem.  Also note that unlike the "
11720 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11721 "the libguestfs handle, this call actually reads parts of the mounted "
11722 "filesystems during the call."
11723 msgstr ""
11724
11725 # type: textblock
11726 #. type: textblock
11727 #: ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:2078
11728 msgid ""
11729 "This returns an empty list if the inspection code was not able to determine "
11730 "the list of applications."
11731 msgstr ""
11732
11733 # type: textblock
11734 #. type: textblock
11735 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2081
11736 msgid "The application structure contains the following fields:"
11737 msgstr ""
11738
11739 # type: =item
11740 #. type: =item
11741 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2085
11742 msgid "C<app_name>"
11743 msgstr ""
11744
11745 # type: textblock
11746 #. type: textblock
11747 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2087
11748 msgid ""
11749 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11750 "guests, this is the package name."
11751 msgstr ""
11752
11753 # type: =item
11754 #. type: =item
11755 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2090
11756 msgid "C<app_display_name>"
11757 msgstr ""
11758
11759 # type: textblock
11760 #. type: textblock
11761 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2092
11762 msgid ""
11763 "The display name of the application, sometimes localized to the install "
11764 "language of the guest operating system."
11765 msgstr ""
11766
11767 # type: textblock
11768 #. type: textblock
11769 #: ../src/guestfs-actions.pod:3023 ../fish/guestfish-actions.pod:2095
11770 msgid ""
11771 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11772 "to display something can use C<app_name> instead."
11773 msgstr ""
11774
11775 # type: =item
11776 #. type: =item
11777 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2098
11778 msgid "C<app_epoch>"
11779 msgstr ""
11780
11781 # type: textblock
11782 #. type: textblock
11783 #: ../src/guestfs-actions.pod:3028 ../fish/guestfish-actions.pod:2100
11784 msgid ""
11785 "For package managers which use epochs, this contains the epoch of the "
11786 "package (an integer).  If unavailable, this is returned as C<0>."
11787 msgstr ""
11788
11789 # type: =item
11790 #. type: =item
11791 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2103
11792 msgid "C<app_version>"
11793 msgstr ""
11794
11795 # type: textblock
11796 #. type: textblock
11797 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2105
11798 msgid ""
11799 "The version string of the application or package.  If unavailable this is "
11800 "returned as an empty string C<\"\">."
11801 msgstr ""
11802
11803 # type: =item
11804 #. type: =item
11805 #: ../src/guestfs-actions.pod:3036 ../fish/guestfish-actions.pod:2108
11806 msgid "C<app_release>"
11807 msgstr ""
11808
11809 # type: textblock
11810 #. type: textblock
11811 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2110
11812 msgid ""
11813 "The release string of the application or package, for package managers that "
11814 "use this.  If unavailable this is returned as an empty string C<\"\">."
11815 msgstr ""
11816
11817 # type: =item
11818 #. type: =item
11819 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2114
11820 msgid "C<app_install_path>"
11821 msgstr ""
11822
11823 # type: textblock
11824 #. type: textblock
11825 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2116
11826 msgid ""
11827 "The installation path of the application (on operating systems such as "
11828 "Windows which use installation paths).  This path is in the format used by "
11829 "the guest operating system, it is not a libguestfs path."
11830 msgstr ""
11831
11832 # type: textblock
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2121
11835 msgid "If unavailable this is returned as an empty string C<\"\">."
11836 msgstr ""
11837
11838 # type: =item
11839 #. type: =item
11840 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2123
11841 msgid "C<app_trans_path>"
11842 msgstr ""
11843
11844 # type: textblock
11845 #. type: textblock
11846 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2125
11847 msgid ""
11848 "The install path translated into a libguestfs path.  If unavailable this is "
11849 "returned as an empty string C<\"\">."
11850 msgstr ""
11851
11852 # type: =item
11853 #. type: =item
11854 #: ../src/guestfs-actions.pod:3056 ../fish/guestfish-actions.pod:2128
11855 msgid "C<app_publisher>"
11856 msgstr ""
11857
11858 # type: textblock
11859 #. type: textblock
11860 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2130
11861 msgid ""
11862 "The name of the publisher of the application, for package managers that use "
11863 "this.  If unavailable this is returned as an empty string C<\"\">."
11864 msgstr ""
11865
11866 # type: =item
11867 #. type: =item
11868 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2134
11869 msgid "C<app_url>"
11870 msgstr ""
11871
11872 # type: textblock
11873 #. type: textblock
11874 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2136
11875 msgid ""
11876 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11877 "returned as an empty string C<\"\">."
11878 msgstr ""
11879
11880 # type: =item
11881 #. type: =item
11882 #: ../src/guestfs-actions.pod:3067 ../fish/guestfish-actions.pod:2139
11883 msgid "C<app_source_package>"
11884 msgstr ""
11885
11886 # type: textblock
11887 #. type: textblock
11888 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2141
11889 msgid ""
11890 "For packaging systems which support this, the name of the source package.  "
11891 "If unavailable this is returned as an empty string C<\"\">."
11892 msgstr ""
11893
11894 # type: =item
11895 #. type: =item
11896 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2144
11897 msgid "C<app_summary>"
11898 msgstr ""
11899
11900 # type: textblock
11901 #. type: textblock
11902 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2146
11903 msgid ""
11904 "A short (usually one line) description of the application or package.  If "
11905 "unavailable this is returned as an empty string C<\"\">."
11906 msgstr ""
11907
11908 # type: =item
11909 #. type: =item
11910 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2149
11911 msgid "C<app_description>"
11912 msgstr ""
11913
11914 # type: textblock
11915 #. type: textblock
11916 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2151
11917 msgid ""
11918 "A longer description of the application or package.  If unavailable this is "
11919 "returned as an empty string C<\"\">."
11920 msgstr ""
11921
11922 # type: textblock
11923 #. type: textblock
11924 #: ../src/guestfs-actions.pod:3086
11925 msgid ""
11926 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11927 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11928 "after use>."
11929 msgstr ""
11930
11931 # type: textblock
11932 #. type: textblock
11933 #: ../src/guestfs-actions.pod:3090
11934 msgid "(Added in 1.7.8)"
11935 msgstr ""
11936
11937 # type: =head2
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:3092
11940 msgid "guestfs_inspect_os"
11941 msgstr ""
11942
11943 # type: verbatim
11944 #. type: verbatim
11945 #: ../src/guestfs-actions.pod:3094
11946 #, no-wrap
11947 msgid ""
11948 " char **\n"
11949 " guestfs_inspect_os (guestfs_h *g);\n"
11950 "\n"
11951 msgstr ""
11952
11953 # type: textblock
11954 #. type: textblock
11955 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2162
11956 msgid ""
11957 "This function uses other libguestfs functions and certain heuristics to "
11958 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11959 "for operating systems."
11960 msgstr ""
11961
11962 # type: textblock
11963 #. type: textblock
11964 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2166
11965 msgid "The list returned is empty if no operating systems were found."
11966 msgstr ""
11967
11968 # type: textblock
11969 #. type: textblock
11970 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2168
11971 msgid ""
11972 "If one operating system was found, then this returns a list with a single "
11973 "element, which is the name of the root filesystem of this operating system.  "
11974 "It is also possible for this function to return a list containing more than "
11975 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11976 "element being the root filesystem of one of the operating systems."
11977 msgstr ""
11978
11979 # type: textblock
11980 #. type: textblock
11981 #: ../src/guestfs-actions.pod:3110
11982 msgid ""
11983 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11984 "functions in order to query further information about each operating system, "
11985 "such as the name and version."
11986 msgstr ""
11987
11988 # type: textblock
11989 #. type: textblock
11990 #: ../src/guestfs-actions.pod:3115
11991 msgid ""
11992 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11993 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11994 "the contents.  This should be called with no disks currently mounted.  The "
11995 "function may also use Augeas, so any existing Augeas handle will be closed."
11996 msgstr ""
11997
11998 # type: textblock
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2186
12001 msgid ""
12002 "This function cannot decrypt encrypted disks.  The caller must do that first "
12003 "(supplying the necessary keys) if the disk is encrypted."
12004 msgstr ""
12005
12006 # type: textblock
12007 #. type: textblock
12008 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3412
12009 #: ../src/guestfs-actions.pod:3474
12010 msgid "See also C<guestfs_list_filesystems>."
12011 msgstr ""
12012
12013 # type: =head2
12014 #. type: =head2
12015 #: ../src/guestfs-actions.pod:3135
12016 msgid "guestfs_is_blockdev"
12017 msgstr ""
12018
12019 # type: verbatim
12020 #. type: verbatim
12021 #: ../src/guestfs-actions.pod:3137
12022 #, no-wrap
12023 msgid ""
12024 " int\n"
12025 " guestfs_is_blockdev (guestfs_h *g,\n"
12026 "                      const char *path);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #. type: textblock
12032 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2198
12033 msgid ""
12034 "This returns C<true> if and only if there is a block device with the given "
12035 "C<path> name."
12036 msgstr ""
12037
12038 # type: textblock
12039 #. type: textblock
12040 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3173
12041 #: ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3218
12042 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3290
12043 #: ../src/guestfs-actions.pod:3305
12044 msgid "See also C<guestfs_stat>."
12045 msgstr ""
12046
12047 # type: textblock
12048 #. type: textblock
12049 #: ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3177
12050 #: ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3294
12051 #: ../src/guestfs-actions.pod:3309
12052 msgid "(Added in 1.5.10)"
12053 msgstr ""
12054
12055 # type: =head2
12056 #. type: =head2
12057 #: ../src/guestfs-actions.pod:3150
12058 msgid "guestfs_is_busy"
12059 msgstr ""
12060
12061 # type: verbatim
12062 #. type: verbatim
12063 #: ../src/guestfs-actions.pod:3152
12064 #, no-wrap
12065 msgid ""
12066 " int\n"
12067 " guestfs_is_busy (guestfs_h *g);\n"
12068 "\n"
12069 msgstr ""
12070
12071 # type: textblock
12072 #. type: textblock
12073 #: ../src/guestfs-actions.pod:3155 ../fish/guestfish-actions.pod:2207
12074 msgid ""
12075 "This returns true iff this handle is busy processing a command (in the "
12076 "C<BUSY> state)."
12077 msgstr ""
12078
12079 # type: =head2
12080 #. type: =head2
12081 #: ../src/guestfs-actions.pod:3164
12082 msgid "guestfs_is_chardev"
12083 msgstr ""
12084
12085 # type: verbatim
12086 #. type: verbatim
12087 #: ../src/guestfs-actions.pod:3166
12088 #, no-wrap
12089 msgid ""
12090 " int\n"
12091 " guestfs_is_chardev (guestfs_h *g,\n"
12092 "                     const char *path);\n"
12093 "\n"
12094 msgstr ""
12095
12096 # type: textblock
12097 #. type: textblock
12098 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2216
12099 msgid ""
12100 "This returns C<true> if and only if there is a character device with the "
12101 "given C<path> name."
12102 msgstr ""
12103
12104 # type: =head2
12105 #. type: =head2
12106 #: ../src/guestfs-actions.pod:3179
12107 msgid "guestfs_is_config"
12108 msgstr ""
12109
12110 # type: verbatim
12111 #. type: verbatim
12112 #: ../src/guestfs-actions.pod:3181
12113 #, no-wrap
12114 msgid ""
12115 " int\n"
12116 " guestfs_is_config (guestfs_h *g);\n"
12117 "\n"
12118 msgstr ""
12119
12120 # type: textblock
12121 #. type: textblock
12122 #: ../src/guestfs-actions.pod:3184 ../fish/guestfish-actions.pod:2225
12123 msgid ""
12124 "This returns true iff this handle is being configured (in the C<CONFIG> "
12125 "state)."
12126 msgstr ""
12127
12128 # type: =head2
12129 #. type: =head2
12130 #: ../src/guestfs-actions.pod:3193
12131 msgid "guestfs_is_dir"
12132 msgstr ""
12133
12134 # type: verbatim
12135 #. type: verbatim
12136 #: ../src/guestfs-actions.pod:3195
12137 #, no-wrap
12138 msgid ""
12139 " int\n"
12140 " guestfs_is_dir (guestfs_h *g,\n"
12141 "                 const char *path);\n"
12142 "\n"
12143 msgstr ""
12144
12145 # type: textblock
12146 #. type: textblock
12147 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2234
12148 msgid ""
12149 "This returns C<true> if and only if there is a directory with the given "
12150 "C<path> name.  Note that it returns false for other objects like files."
12151 msgstr ""
12152
12153 # type: =head2
12154 #. type: =head2
12155 #: ../src/guestfs-actions.pod:3209
12156 msgid "guestfs_is_fifo"
12157 msgstr ""
12158
12159 # type: verbatim
12160 #. type: verbatim
12161 #: ../src/guestfs-actions.pod:3211
12162 #, no-wrap
12163 msgid ""
12164 " int\n"
12165 " guestfs_is_fifo (guestfs_h *g,\n"
12166 "                  const char *path);\n"
12167 "\n"
12168 msgstr ""
12169
12170 # type: textblock
12171 #. type: textblock
12172 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2244
12173 msgid ""
12174 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12175 "given C<path> name."
12176 msgstr ""
12177
12178 # type: =head2
12179 #. type: =head2
12180 #: ../src/guestfs-actions.pod:3224
12181 msgid "guestfs_is_file"
12182 msgstr ""
12183
12184 # type: verbatim
12185 #. type: verbatim
12186 #: ../src/guestfs-actions.pod:3226
12187 #, no-wrap
12188 msgid ""
12189 " int\n"
12190 " guestfs_is_file (guestfs_h *g,\n"
12191 "                  const char *path);\n"
12192 "\n"
12193 msgstr ""
12194
12195 # type: textblock
12196 #. type: textblock
12197 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2253
12198 msgid ""
12199 "This returns C<true> if and only if there is a regular file with the given "
12200 "C<path> name.  Note that it returns false for other objects like directories."
12201 msgstr ""
12202
12203 # type: =head2
12204 #. type: =head2
12205 #: ../src/guestfs-actions.pod:3240
12206 msgid "guestfs_is_launching"
12207 msgstr ""
12208
12209 # type: verbatim
12210 #. type: verbatim
12211 #: ../src/guestfs-actions.pod:3242
12212 #, no-wrap
12213 msgid ""
12214 " int\n"
12215 " guestfs_is_launching (guestfs_h *g);\n"
12216 "\n"
12217 msgstr ""
12218
12219 # type: textblock
12220 #. type: textblock
12221 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2263
12222 msgid ""
12223 "This returns true iff this handle is launching the subprocess (in the "
12224 "C<LAUNCHING> state)."
12225 msgstr ""
12226
12227 # type: =head2
12228 #. type: =head2
12229 #: ../src/guestfs-actions.pod:3254
12230 msgid "guestfs_is_lv"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #. type: verbatim
12235 #: ../src/guestfs-actions.pod:3256
12236 #, no-wrap
12237 msgid ""
12238 " int\n"
12239 " guestfs_is_lv (guestfs_h *g,\n"
12240 "                const char *device);\n"
12241 "\n"
12242 msgstr ""
12243
12244 # type: textblock
12245 #. type: textblock
12246 #: ../src/guestfs-actions.pod:3260 ../fish/guestfish-actions.pod:2272
12247 msgid ""
12248 "This command tests whether C<device> is a logical volume, and returns true "
12249 "iff this is the case."
12250 msgstr ""
12251
12252 # type: =head2
12253 #. type: =head2
12254 #: ../src/guestfs-actions.pod:3267
12255 msgid "guestfs_is_ready"
12256 msgstr ""
12257
12258 # type: verbatim
12259 #. type: verbatim
12260 #: ../src/guestfs-actions.pod:3269
12261 #, no-wrap
12262 msgid ""
12263 " int\n"
12264 " guestfs_is_ready (guestfs_h *g);\n"
12265 "\n"
12266 msgstr ""
12267
12268 # type: textblock
12269 #. type: textblock
12270 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2279
12271 msgid ""
12272 "This returns true iff this handle is ready to accept commands (in the "
12273 "C<READY> state)."
12274 msgstr ""
12275
12276 # type: =head2
12277 #. type: =head2
12278 #: ../src/guestfs-actions.pod:3281
12279 msgid "guestfs_is_socket"
12280 msgstr ""
12281
12282 # type: verbatim
12283 #. type: verbatim
12284 #: ../src/guestfs-actions.pod:3283
12285 #, no-wrap
12286 msgid ""
12287 " int\n"
12288 " guestfs_is_socket (guestfs_h *g,\n"
12289 "                    const char *path);\n"
12290 "\n"
12291 msgstr ""
12292
12293 # type: textblock
12294 #. type: textblock
12295 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2288
12296 msgid ""
12297 "This returns C<true> if and only if there is a Unix domain socket with the "
12298 "given C<path> name."
12299 msgstr ""
12300
12301 # type: =head2
12302 #. type: =head2
12303 #: ../src/guestfs-actions.pod:3296
12304 msgid "guestfs_is_symlink"
12305 msgstr ""
12306
12307 # type: verbatim
12308 #. type: verbatim
12309 #: ../src/guestfs-actions.pod:3298
12310 #, no-wrap
12311 msgid ""
12312 " int\n"
12313 " guestfs_is_symlink (guestfs_h *g,\n"
12314 "                     const char *path);\n"
12315 "\n"
12316 msgstr ""
12317
12318 # type: textblock
12319 #. type: textblock
12320 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2297
12321 msgid ""
12322 "This returns C<true> if and only if there is a symbolic link with the given "
12323 "C<path> name."
12324 msgstr ""
12325
12326 # type: =head2
12327 #. type: =head2
12328 #: ../src/guestfs-actions.pod:3311
12329 msgid "guestfs_kill_subprocess"
12330 msgstr ""
12331
12332 # type: verbatim
12333 #. type: verbatim
12334 #: ../src/guestfs-actions.pod:3313
12335 #, no-wrap
12336 msgid ""
12337 " int\n"
12338 " guestfs_kill_subprocess (guestfs_h *g);\n"
12339 "\n"
12340 msgstr ""
12341
12342 # type: textblock
12343 #. type: textblock
12344 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2306
12345 msgid "This kills the qemu subprocess.  You should never need to call this."
12346 msgstr ""
12347
12348 # type: =head2
12349 #. type: =head2
12350 #: ../src/guestfs-actions.pod:3322
12351 msgid "guestfs_launch"
12352 msgstr ""
12353
12354 # type: verbatim
12355 #. type: verbatim
12356 #: ../src/guestfs-actions.pod:3324
12357 #, no-wrap
12358 msgid ""
12359 " int\n"
12360 " guestfs_launch (guestfs_h *g);\n"
12361 "\n"
12362 msgstr ""
12363
12364 # type: textblock
12365 #. type: textblock
12366 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2314
12367 msgid ""
12368 "Internally libguestfs is implemented by running a virtual machine using "
12369 "L<qemu(1)>."
12370 msgstr ""
12371
12372 # type: textblock
12373 #. type: textblock
12374 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2317
12375 msgid ""
12376 "You should call this after configuring the handle (eg. adding drives) but "
12377 "before performing any actions."
12378 msgstr ""
12379
12380 # type: =head2
12381 #. type: =head2
12382 #: ../src/guestfs-actions.pod:3337
12383 msgid "guestfs_lchown"
12384 msgstr ""
12385
12386 # type: verbatim
12387 #. type: verbatim
12388 #: ../src/guestfs-actions.pod:3339
12389 #, no-wrap
12390 msgid ""
12391 " int\n"
12392 " guestfs_lchown (guestfs_h *g,\n"
12393 "                 int owner,\n"
12394 "                 int group,\n"
12395 "                 const char *path);\n"
12396 "\n"
12397 msgstr ""
12398
12399 # type: textblock
12400 #. type: textblock
12401 #: ../src/guestfs-actions.pod:3345
12402 msgid ""
12403 "Change the file owner to C<owner> and group to C<group>.  This is like "
12404 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12405 "changed, not the target."
12406 msgstr ""
12407
12408 # type: =head2
12409 #. type: =head2
12410 #: ../src/guestfs-actions.pod:3357
12411 msgid "guestfs_lgetxattr"
12412 msgstr ""
12413
12414 # type: verbatim
12415 #. type: verbatim
12416 #: ../src/guestfs-actions.pod:3359
12417 #, no-wrap
12418 msgid ""
12419 " char *\n"
12420 " guestfs_lgetxattr (guestfs_h *g,\n"
12421 "                    const char *path,\n"
12422 "                    const char *name,\n"
12423 "                    size_t *size_r);\n"
12424 "\n"
12425 msgstr ""
12426
12427 # type: textblock
12428 #. type: textblock
12429 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2336
12430 msgid ""
12431 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12432 "is a symlink, then this call returns an extended attribute from the symlink."
12433 msgstr ""
12434
12435 # type: textblock
12436 #. type: textblock
12437 #: ../src/guestfs-actions.pod:3379
12438 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12439 msgstr ""
12440
12441 # type: =head2
12442 #. type: =head2
12443 #: ../src/guestfs-actions.pod:3387
12444 msgid "guestfs_lgetxattrs"
12445 msgstr ""
12446
12447 # type: verbatim
12448 #. type: verbatim
12449 #: ../src/guestfs-actions.pod:3389
12450 #, no-wrap
12451 msgid ""
12452 " struct guestfs_xattr_list *\n"
12453 " guestfs_lgetxattrs (guestfs_h *g,\n"
12454 "                     const char *path);\n"
12455 "\n"
12456 msgstr ""
12457
12458 # type: textblock
12459 #. type: textblock
12460 #: ../src/guestfs-actions.pod:3393
12461 msgid ""
12462 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12463 "then it returns the extended attributes of the link itself."
12464 msgstr ""
12465
12466 # type: =head2
12467 #. type: =head2
12468 #: ../src/guestfs-actions.pod:3403
12469 msgid "guestfs_list_devices"
12470 msgstr ""
12471
12472 # type: verbatim
12473 #. type: verbatim
12474 #: ../src/guestfs-actions.pod:3405
12475 #, no-wrap
12476 msgid ""
12477 " char **\n"
12478 " guestfs_list_devices (guestfs_h *g);\n"
12479 "\n"
12480 msgstr ""
12481
12482 # type: textblock
12483 #. type: textblock
12484 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2364
12485 msgid "List all the block devices."
12486 msgstr ""
12487
12488 # type: textblock
12489 #. type: textblock
12490 #: ../src/guestfs-actions.pod:3410 ../fish/guestfish-actions.pod:2366
12491 msgid "The full block device names are returned, eg. C</dev/sda>."
12492 msgstr ""
12493
12494 # type: =head2
12495 #. type: =head2
12496 #: ../src/guestfs-actions.pod:3420
12497 msgid "guestfs_list_filesystems"
12498 msgstr ""
12499
12500 # type: verbatim
12501 #. type: verbatim
12502 #: ../src/guestfs-actions.pod:3422
12503 #, no-wrap
12504 msgid ""
12505 " char **\n"
12506 " guestfs_list_filesystems (guestfs_h *g);\n"
12507 "\n"
12508 msgstr ""
12509
12510 # type: textblock
12511 #. type: textblock
12512 #: ../src/guestfs-actions.pod:3425 ../fish/guestfish-actions.pod:2374
12513 msgid ""
12514 "This inspection command looks for filesystems on partitions, block devices "
12515 "and logical volumes, returning a list of devices containing filesystems and "
12516 "their type."
12517 msgstr ""
12518
12519 # type: textblock
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2378
12522 msgid ""
12523 "The return value is a hash, where the keys are the devices containing "
12524 "filesystems, and the values are the filesystem types.  For example:"
12525 msgstr ""
12526
12527 # type: verbatim
12528 #. type: verbatim
12529 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2382
12530 #, no-wrap
12531 msgid ""
12532 " \"/dev/sda1\" => \"ntfs\"\n"
12533 " \"/dev/sda2\" => \"ext2\"\n"
12534 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12535 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12536 "\n"
12537 msgstr ""
12538
12539 # type: textblock
12540 #. type: textblock
12541 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2387
12542 msgid ""
12543 "The value can have the special value \"unknown\", meaning the content of the "
12544 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12545 msgstr ""
12546
12547 # type: textblock
12548 #. type: textblock
12549 #: ../src/guestfs-actions.pod:3442
12550 msgid ""
12551 "This command runs other libguestfs commands, which might include "
12552 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12553 "soon after launch and only when nothing is mounted."
12554 msgstr ""
12555
12556 # type: textblock
12557 #. type: textblock
12558 #: ../src/guestfs-actions.pod:3446
12559 msgid ""
12560 "Not all of the filesystems returned will be mountable.  In particular, swap "
12561 "partitions are returned in the list.  Also this command does not check that "
12562 "each filesystem found is valid and mountable, and some filesystems might be "
12563 "mountable but require special options.  Filesystems may not all belong to a "
12564 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:5051
12570 msgid "(Added in 1.5.15)"
12571 msgstr ""
12572
12573 # type: =head2
12574 #. type: =head2
12575 #: ../src/guestfs-actions.pod:3462
12576 msgid "guestfs_list_partitions"
12577 msgstr ""
12578
12579 # type: verbatim
12580 #. type: verbatim
12581 #: ../src/guestfs-actions.pod:3464
12582 #, no-wrap
12583 msgid ""
12584 " char **\n"
12585 " guestfs_list_partitions (guestfs_h *g);\n"
12586 "\n"
12587 msgstr ""
12588
12589 # type: textblock
12590 #. type: textblock
12591 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2407
12592 msgid "List all the partitions detected on all block devices."
12593 msgstr ""
12594
12595 # type: textblock
12596 #. type: textblock
12597 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2409
12598 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12599 msgstr ""
12600
12601 # type: textblock
12602 #. type: textblock
12603 #: ../src/guestfs-actions.pod:3471
12604 msgid ""
12605 "This does not return logical volumes.  For that you will need to call "
12606 "C<guestfs_lvs>."
12607 msgstr ""
12608
12609 # type: =head2
12610 #. type: =head2
12611 #: ../src/guestfs-actions.pod:3482
12612 msgid "guestfs_ll"
12613 msgstr ""
12614
12615 # type: verbatim
12616 #. type: verbatim
12617 #: ../src/guestfs-actions.pod:3484
12618 #, no-wrap
12619 msgid ""
12620 " char *\n"
12621 " guestfs_ll (guestfs_h *g,\n"
12622 "             const char *directory);\n"
12623 "\n"
12624 msgstr ""
12625
12626 # type: textblock
12627 #. type: textblock
12628 #: ../src/guestfs-actions.pod:3488 ../fish/guestfish-actions.pod:2420
12629 msgid ""
12630 "List the files in C<directory> (relative to the root directory, there is no "
12631 "cwd) in the format of 'ls -la'."
12632 msgstr ""
12633
12634 # type: textblock
12635 #. type: textblock
12636 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2423
12637 msgid ""
12638 "This command is mostly useful for interactive sessions.  It is I<not> "
12639 "intended that you try to parse the output string."
12640 msgstr ""
12641
12642 # type: =head2
12643 #. type: =head2
12644 #: ../src/guestfs-actions.pod:3499
12645 msgid "guestfs_ln"
12646 msgstr ""
12647
12648 # type: verbatim
12649 #. type: verbatim
12650 #: ../src/guestfs-actions.pod:3501
12651 #, no-wrap
12652 msgid ""
12653 " int\n"
12654 " guestfs_ln (guestfs_h *g,\n"
12655 "             const char *target,\n"
12656 "             const char *linkname);\n"
12657 "\n"
12658 msgstr ""
12659
12660 # type: textblock
12661 #. type: textblock
12662 #: ../src/guestfs-actions.pod:3506 ../fish/guestfish-actions.pod:2430
12663 msgid "This command creates a hard link using the C<ln> command."
12664 msgstr ""
12665
12666 # type: =head2
12667 #. type: =head2
12668 #: ../src/guestfs-actions.pod:3512
12669 msgid "guestfs_ln_f"
12670 msgstr ""
12671
12672 # type: verbatim
12673 #. type: verbatim
12674 #: ../src/guestfs-actions.pod:3514
12675 #, no-wrap
12676 msgid ""
12677 " int\n"
12678 " guestfs_ln_f (guestfs_h *g,\n"
12679 "               const char *target,\n"
12680 "               const char *linkname);\n"
12681 "\n"
12682 msgstr ""
12683
12684 # type: textblock
12685 #. type: textblock
12686 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2436
12687 msgid ""
12688 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
12689 "option removes the link (C<linkname>) if it exists already."
12690 msgstr ""
12691
12692 # type: =head2
12693 #. type: =head2
12694 #: ../src/guestfs-actions.pod:3526
12695 msgid "guestfs_ln_s"
12696 msgstr ""
12697
12698 # type: verbatim
12699 #. type: verbatim
12700 #: ../src/guestfs-actions.pod:3528
12701 #, no-wrap
12702 msgid ""
12703 " int\n"
12704 " guestfs_ln_s (guestfs_h *g,\n"
12705 "               const char *target,\n"
12706 "               const char *linkname);\n"
12707 "\n"
12708 msgstr ""
12709
12710 # type: textblock
12711 #. type: textblock
12712 #: ../src/guestfs-actions.pod:3533 ../fish/guestfish-actions.pod:2443
12713 msgid "This command creates a symbolic link using the C<ln -s> command."
12714 msgstr ""
12715
12716 # type: =head2
12717 #. type: =head2
12718 #: ../src/guestfs-actions.pod:3539
12719 msgid "guestfs_ln_sf"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #. type: verbatim
12724 #: ../src/guestfs-actions.pod:3541
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_ln_sf (guestfs_h *g,\n"
12729 "                const char *target,\n"
12730 "                const char *linkname);\n"
12731 "\n"
12732 msgstr ""
12733
12734 # type: textblock
12735 #. type: textblock
12736 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2449
12737 msgid ""
12738 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
12739 "option removes the link (C<linkname>) if it exists already."
12740 msgstr ""
12741
12742 # type: =head2
12743 #. type: =head2
12744 #: ../src/guestfs-actions.pod:3553
12745 msgid "guestfs_lremovexattr"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #. type: verbatim
12750 #: ../src/guestfs-actions.pod:3555
12751 #, no-wrap
12752 msgid ""
12753 " int\n"
12754 " guestfs_lremovexattr (guestfs_h *g,\n"
12755 "                       const char *xattr,\n"
12756 "                       const char *path);\n"
12757 "\n"
12758 msgstr ""
12759
12760 # type: textblock
12761 #. type: textblock
12762 #: ../src/guestfs-actions.pod:3560
12763 msgid ""
12764 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12765 "link, then it removes an extended attribute of the link itself."
12766 msgstr ""
12767
12768 # type: =head2
12769 #. type: =head2
12770 #: ../src/guestfs-actions.pod:3568
12771 msgid "guestfs_ls"
12772 msgstr ""
12773
12774 # type: verbatim
12775 #. type: verbatim
12776 #: ../src/guestfs-actions.pod:3570
12777 #, no-wrap
12778 msgid ""
12779 " char **\n"
12780 " guestfs_ls (guestfs_h *g,\n"
12781 "             const char *directory);\n"
12782 "\n"
12783 msgstr ""
12784
12785 # type: textblock
12786 #. type: textblock
12787 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2464
12788 msgid ""
12789 "List the files in C<directory> (relative to the root directory, there is no "
12790 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12791 msgstr ""
12792
12793 # type: textblock
12794 #. type: textblock
12795 #: ../src/guestfs-actions.pod:3578
12796 msgid ""
12797 "This command is mostly useful for interactive sessions.  Programs should "
12798 "probably use C<guestfs_readdir> instead."
12799 msgstr ""
12800
12801 # type: =head2
12802 #. type: =head2
12803 #: ../src/guestfs-actions.pod:3587
12804 msgid "guestfs_lsetxattr"
12805 msgstr ""
12806
12807 # type: verbatim
12808 #. type: verbatim
12809 #: ../src/guestfs-actions.pod:3589
12810 #, no-wrap
12811 msgid ""
12812 " int\n"
12813 " guestfs_lsetxattr (guestfs_h *g,\n"
12814 "                    const char *xattr,\n"
12815 "                    const char *val,\n"
12816 "                    int vallen,\n"
12817 "                    const char *path);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #. type: textblock
12823 #: ../src/guestfs-actions.pod:3596
12824 msgid ""
12825 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12826 "then it sets an extended attribute of the link itself."
12827 msgstr ""
12828
12829 # type: =head2
12830 #. type: =head2
12831 #: ../src/guestfs-actions.pod:3604
12832 msgid "guestfs_lstat"
12833 msgstr ""
12834
12835 # type: verbatim
12836 #. type: verbatim
12837 #: ../src/guestfs-actions.pod:3606
12838 #, no-wrap
12839 msgid ""
12840 " struct guestfs_stat *\n"
12841 " guestfs_lstat (guestfs_h *g,\n"
12842 "                const char *path);\n"
12843 "\n"
12844 msgstr ""
12845
12846 # type: textblock
12847 #. type: textblock
12848 #: ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:6122
12849 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:4109
12850 msgid "Returns file information for the given C<path>."
12851 msgstr ""
12852
12853 # type: textblock
12854 #. type: textblock
12855 #: ../src/guestfs-actions.pod:3612
12856 msgid ""
12857 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12858 "link, then the link is stat-ed, not the file it refers to."
12859 msgstr ""
12860
12861 # type: textblock
12862 #. type: textblock
12863 #: ../src/guestfs-actions.pod:3616 ../fish/guestfish-actions.pod:2489
12864 msgid "This is the same as the C<lstat(2)> system call."
12865 msgstr ""
12866
12867 # type: textblock
12868 #. type: textblock
12869 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:6126
12870 msgid ""
12871 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12872 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12873 msgstr ""
12874
12875 # type: textblock
12876 #. type: textblock
12877 #: ../src/guestfs-actions.pod:3622 ../src/guestfs-actions.pod:6130
12878 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6529
12879 msgid "(Added in 0.9.2)"
12880 msgstr ""
12881
12882 # type: =head2
12883 #. type: =head2
12884 #: ../src/guestfs-actions.pod:3624
12885 msgid "guestfs_lstatlist"
12886 msgstr ""
12887
12888 # type: verbatim
12889 #. type: verbatim
12890 #: ../src/guestfs-actions.pod:3626
12891 #, no-wrap
12892 msgid ""
12893 " struct guestfs_stat_list *\n"
12894 " guestfs_lstatlist (guestfs_h *g,\n"
12895 "                    const char *path,\n"
12896 "                    char *const *names);\n"
12897 "\n"
12898 msgstr ""
12899
12900 # type: textblock
12901 #. type: textblock
12902 #: ../src/guestfs-actions.pod:3631
12903 msgid ""
12904 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12905 "files, where all files are in the directory C<path>.  C<names> is the list "
12906 "of files from this directory."
12907 msgstr ""
12908
12909 # type: textblock
12910 #. type: textblock
12911 #: ../src/guestfs-actions.pod:3635 ../fish/guestfish-actions.pod:2499
12912 msgid ""
12913 "On return you get a list of stat structs, with a one-to-one correspondence "
12914 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12915 "then the C<ino> field of that structure is set to C<-1>."
12916 msgstr ""
12917
12918 # type: textblock
12919 #. type: textblock
12920 #: ../src/guestfs-actions.pod:3640
12921 msgid ""
12922 "This call is intended for programs that want to efficiently list a directory "
12923 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12924 "for a similarly efficient call for getting extended attributes.  Very long "
12925 "directory listings might cause the protocol message size to be exceeded, "
12926 "causing this call to fail.  The caller must split up such requests into "
12927 "smaller groups of names."
12928 msgstr ""
12929
12930 # type: textblock
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:3648
12933 msgid ""
12934 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12935 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12936 msgstr ""
12937
12938 # type: =head2
12939 #. type: =head2
12940 #: ../src/guestfs-actions.pod:3654
12941 msgid "guestfs_luks_add_key"
12942 msgstr ""
12943
12944 # type: verbatim
12945 #. type: verbatim
12946 #: ../src/guestfs-actions.pod:3656
12947 #, no-wrap
12948 msgid ""
12949 " int\n"
12950 " guestfs_luks_add_key (guestfs_h *g,\n"
12951 "                       const char *device,\n"
12952 "                       const char *key,\n"
12953 "                       const char *newkey,\n"
12954 "                       int keyslot);\n"
12955 "\n"
12956 msgstr ""
12957
12958 # type: textblock
12959 #. type: textblock
12960 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2516
12961 msgid ""
12962 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12963 "existing key, and is used to access the device.  C<newkey> is the new key to "
12964 "add.  C<keyslot> is the key slot that will be replaced."
12965 msgstr ""
12966
12967 # type: textblock
12968 #. type: textblock
12969 #: ../src/guestfs-actions.pod:3668
12970 msgid ""
12971 "Note that if C<keyslot> already contains a key, then this command will "
12972 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12973 msgstr ""
12974
12975 # type: textblock
12976 #. type: textblock
12977 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3714
12978 #: ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:3757
12979 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3808
12980 msgid ""
12981 "This function takes a key or passphrase parameter which could contain "
12982 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12983 "information."
12984 msgstr ""
12985
12986 # type: textblock
12987 #. type: textblock
12988 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3718
12989 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
12990 msgid "(Added in 1.5.2)"
12991 msgstr ""
12992
12993 # type: =head2
12994 #. type: =head2
12995 #: ../src/guestfs-actions.pod:3680
12996 msgid "guestfs_luks_close"
12997 msgstr ""
12998
12999 # type: verbatim
13000 #. type: verbatim
13001 #: ../src/guestfs-actions.pod:3682
13002 #, no-wrap
13003 msgid ""
13004 " int\n"
13005 " guestfs_luks_close (guestfs_h *g,\n"
13006 "                     const char *device);\n"
13007 "\n"
13008 msgstr ""
13009
13010 # type: textblock
13011 #. type: textblock
13012 #: ../src/guestfs-actions.pod:3686
13013 msgid ""
13014 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13015 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13016 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13017 "underlying block device."
13018 msgstr ""
13019
13020 # type: textblock
13021 #. type: textblock
13022 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3793
13023 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3862
13024 #: ../src/guestfs-actions.pod:3910
13025 msgid "(Added in 1.5.1)"
13026 msgstr ""
13027
13028 # type: =head2
13029 #. type: =head2
13030 #: ../src/guestfs-actions.pod:3696
13031 msgid "guestfs_luks_format"
13032 msgstr ""
13033
13034 # type: verbatim
13035 #. type: verbatim
13036 #: ../src/guestfs-actions.pod:3698
13037 #, no-wrap
13038 msgid ""
13039 " int\n"
13040 " guestfs_luks_format (guestfs_h *g,\n"
13041 "                      const char *device,\n"
13042 "                      const char *key,\n"
13043 "                      int keyslot);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #. type: textblock
13049 #: ../src/guestfs-actions.pod:3704 ../fish/guestfish-actions.pod:2542
13050 msgid ""
13051 "This command erases existing data on C<device> and formats the device as a "
13052 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13053 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13054 msgstr ""
13055
13056 # type: textblock
13057 #. type: textblock
13058 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3734
13059 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4802
13060 #: ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5957
13061 #: ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:6006
13062 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:2550
13063 #: ../fish/guestfish-actions.pod:2563 ../fish/guestfish-actions.pod:2647
13064 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3728
13065 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4024
13066 #: ../fish/guestfish-actions.pod:4039 ../fish/guestfish-actions.pod:4754
13067 msgid ""
13068 "B<This command is dangerous.  Without careful use you can easily destroy all "
13069 "your data>."
13070 msgstr ""
13071
13072 # type: =head2
13073 #. type: =head2
13074 #: ../src/guestfs-actions.pod:3720
13075 msgid "guestfs_luks_format_cipher"
13076 msgstr ""
13077
13078 # type: verbatim
13079 #. type: verbatim
13080 #: ../src/guestfs-actions.pod:3722
13081 #, no-wrap
13082 msgid ""
13083 " int\n"
13084 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13085 "                             const char *device,\n"
13086 "                             const char *key,\n"
13087 "                             int keyslot,\n"
13088 "                             const char *cipher);\n"
13089 "\n"
13090 msgstr ""
13091
13092 # type: textblock
13093 #. type: textblock
13094 #: ../src/guestfs-actions.pod:3729
13095 msgid ""
13096 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13097 "set the C<cipher> used."
13098 msgstr ""
13099
13100 # type: =head2
13101 #. type: =head2
13102 #: ../src/guestfs-actions.pod:3743
13103 msgid "guestfs_luks_kill_slot"
13104 msgstr ""
13105
13106 # type: verbatim
13107 #. type: verbatim
13108 #: ../src/guestfs-actions.pod:3745
13109 #, no-wrap
13110 msgid ""
13111 " int\n"
13112 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13113 "                         const char *device,\n"
13114 "                         const char *key,\n"
13115 "                         int keyslot);\n"
13116 "\n"
13117 msgstr ""
13118
13119 # type: textblock
13120 #. type: textblock
13121 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2570
13122 msgid ""
13123 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13124 "device C<device>.  C<key> must be one of the I<other> keys."
13125 msgstr ""
13126
13127 # type: =head2
13128 #. type: =head2
13129 #: ../src/guestfs-actions.pod:3763
13130 msgid "guestfs_luks_open"
13131 msgstr ""
13132
13133 # type: verbatim
13134 #. type: verbatim
13135 #: ../src/guestfs-actions.pod:3765
13136 #, no-wrap
13137 msgid ""
13138 " int\n"
13139 " guestfs_luks_open (guestfs_h *g,\n"
13140 "                    const char *device,\n"
13141 "                    const char *key,\n"
13142 "                    const char *mapname);\n"
13143 "\n"
13144 msgstr ""
13145
13146 # type: textblock
13147 #. type: textblock
13148 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2581
13149 msgid ""
13150 "This command opens a block device which has been encrypted according to the "
13151 "Linux Unified Key Setup (LUKS) standard."
13152 msgstr ""
13153
13154 # type: textblock
13155 #. type: textblock
13156 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2584
13157 msgid "C<device> is the encrypted block device or partition."
13158 msgstr ""
13159
13160 # type: textblock
13161 #. type: textblock
13162 #: ../src/guestfs-actions.pod:3776 ../fish/guestfish-actions.pod:2586
13163 msgid ""
13164 "The caller must supply one of the keys associated with the LUKS block "
13165 "device, in the C<key> parameter."
13166 msgstr ""
13167
13168 # type: textblock
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2589
13171 msgid ""
13172 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13173 "writes to this block device are decrypted from and encrypted to the "
13174 "underlying C<device> respectively."
13175 msgstr ""
13176
13177 # type: textblock
13178 #. type: textblock
13179 #: ../src/guestfs-actions.pod:3783
13180 msgid ""
13181 "If this block device contains LVM volume groups, then calling "
13182 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13183 "visible."
13184 msgstr ""
13185
13186 # type: =head2
13187 #. type: =head2
13188 #: ../src/guestfs-actions.pod:3795
13189 msgid "guestfs_luks_open_ro"
13190 msgstr ""
13191
13192 # type: verbatim
13193 #. type: verbatim
13194 #: ../src/guestfs-actions.pod:3797
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_luks_open_ro (guestfs_h *g,\n"
13199 "                       const char *device,\n"
13200 "                       const char *key,\n"
13201 "                       const char *mapname);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #. type: textblock
13207 #: ../src/guestfs-actions.pod:3803
13208 msgid ""
13209 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13210 "created."
13211 msgstr ""
13212
13213 # type: =head2
13214 #. type: =head2
13215 #: ../src/guestfs-actions.pod:3814
13216 msgid "guestfs_lvcreate"
13217 msgstr ""
13218
13219 # type: verbatim
13220 #. type: verbatim
13221 #: ../src/guestfs-actions.pod:3816
13222 #, no-wrap
13223 msgid ""
13224 " int\n"
13225 " guestfs_lvcreate (guestfs_h *g,\n"
13226 "                   const char *logvol,\n"
13227 "                   const char *volgroup,\n"
13228 "                   int mbytes);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #. type: textblock
13234 #: ../src/guestfs-actions.pod:3822 ../fish/guestfish-actions.pod:2614
13235 msgid ""
13236 "This creates an LVM logical volume called C<logvol> on the volume group "
13237 "C<volgroup>, with C<size> megabytes."
13238 msgstr ""
13239
13240 # type: =head2
13241 #. type: =head2
13242 #: ../src/guestfs-actions.pod:3829
13243 msgid "guestfs_lvm_canonical_lv_name"
13244 msgstr ""
13245
13246 # type: verbatim
13247 #. type: verbatim
13248 #: ../src/guestfs-actions.pod:3831
13249 #, no-wrap
13250 msgid ""
13251 " char *\n"
13252 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13253 "                                const char *lvname);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #. type: textblock
13259 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2621
13260 msgid ""
13261 "This converts alternative naming schemes for LVs that you might find to the "
13262 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13263 "LV>."
13264 msgstr ""
13265
13266 # type: textblock
13267 #. type: textblock
13268 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2625
13269 msgid ""
13270 "This command returns an error if the C<lvname> parameter does not refer to a "
13271 "logical volume."
13272 msgstr ""
13273
13274 # type: textblock
13275 #. type: textblock
13276 #: ../src/guestfs-actions.pod:3842
13277 msgid "See also C<guestfs_is_lv>."
13278 msgstr ""
13279
13280 # type: textblock
13281 #. type: textblock
13282 #: ../src/guestfs-actions.pod:3847
13283 msgid "(Added in 1.5.24)"
13284 msgstr ""
13285
13286 # type: =head2
13287 #. type: =head2
13288 #: ../src/guestfs-actions.pod:3849
13289 msgid "guestfs_lvm_clear_filter"
13290 msgstr ""
13291
13292 # type: verbatim
13293 #. type: verbatim
13294 #: ../src/guestfs-actions.pod:3851
13295 #, no-wrap
13296 msgid ""
13297 " int\n"
13298 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13299 "\n"
13300 msgstr ""
13301
13302 # type: textblock
13303 #. type: textblock
13304 #: ../src/guestfs-actions.pod:3854
13305 msgid ""
13306 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13307 "see every block device."
13308 msgstr ""
13309
13310 # type: textblock
13311 #. type: textblock
13312 #: ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3899
13313 #: ../fish/guestfish-actions.pod:2637 ../fish/guestfish-actions.pod:2668
13314 msgid ""
13315 "This command also clears the LVM cache and performs a volume group scan."
13316 msgstr ""
13317
13318 # type: =head2
13319 #. type: =head2
13320 #: ../src/guestfs-actions.pod:3864
13321 msgid "guestfs_lvm_remove_all"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #. type: verbatim
13326 #: ../src/guestfs-actions.pod:3866
13327 #, no-wrap
13328 msgid ""
13329 " int\n"
13330 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13331 "\n"
13332 msgstr ""
13333
13334 # type: textblock
13335 #. type: textblock
13336 #: ../src/guestfs-actions.pod:3869 ../fish/guestfish-actions.pod:2644
13337 msgid ""
13338 "This command removes all LVM logical volumes, volume groups and physical "
13339 "volumes."
13340 msgstr ""
13341
13342 # type: =head2
13343 #. type: =head2
13344 #: ../src/guestfs-actions.pod:3879
13345 msgid "guestfs_lvm_set_filter"
13346 msgstr ""
13347
13348 # type: verbatim
13349 #. type: verbatim
13350 #: ../src/guestfs-actions.pod:3881
13351 #, no-wrap
13352 msgid ""
13353 " int\n"
13354 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13355 "                         char *const *devices);\n"
13356 "\n"
13357 msgstr ""
13358
13359 # type: textblock
13360 #. type: textblock
13361 #: ../src/guestfs-actions.pod:3885 ../fish/guestfish-actions.pod:2654
13362 msgid ""
13363 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13364 "block devices in the list C<devices>, and will ignore all other attached "
13365 "block devices."
13366 msgstr ""
13367
13368 # type: textblock
13369 #. type: textblock
13370 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2658
13371 msgid ""
13372 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13373 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13374 "there are two types of duplication possible: either cloned PVs/VGs which "
13375 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13376 "same name.  In normal operation you cannot create this situation, but you "
13377 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13378 "inside the LVM metadata."
13379 msgstr ""
13380
13381 # type: textblock
13382 #. type: textblock
13383 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2671
13384 msgid "You can filter whole block devices or individual partitions."
13385 msgstr ""
13386
13387 # type: textblock
13388 #. type: textblock
13389 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2673
13390 msgid ""
13391 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13392 "filesystem), even if you are not filtering out that VG."
13393 msgstr ""
13394
13395 # type: =head2
13396 #. type: =head2
13397 #: ../src/guestfs-actions.pod:3912
13398 msgid "guestfs_lvremove"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #. type: verbatim
13403 #: ../src/guestfs-actions.pod:3914
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_lvremove (guestfs_h *g,\n"
13408 "                   const char *device);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:2681
13415 msgid ""
13416 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13417 "LV, such as C</dev/VG/LV>."
13418 msgstr ""
13419
13420 # type: textblock
13421 #. type: textblock
13422 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2684
13423 msgid ""
13424 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13425 "dev/VG>."
13426 msgstr ""
13427
13428 # type: textblock
13429 #. type: textblock
13430 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5148
13431 #: ../src/guestfs-actions.pod:6905
13432 msgid "(Added in 1.0.13)"
13433 msgstr ""
13434
13435 # type: =head2
13436 #. type: =head2
13437 #: ../src/guestfs-actions.pod:3928
13438 msgid "guestfs_lvrename"
13439 msgstr ""
13440
13441 # type: verbatim
13442 #. type: verbatim
13443 #: ../src/guestfs-actions.pod:3930
13444 #, no-wrap
13445 msgid ""
13446 " int\n"
13447 " guestfs_lvrename (guestfs_h *g,\n"
13448 "                   const char *logvol,\n"
13449 "                   const char *newlogvol);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #. type: textblock
13455 #: ../src/guestfs-actions.pod:3935 ../fish/guestfish-actions.pod:2691
13456 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13457 msgstr ""
13458
13459 # type: textblock
13460 #. type: textblock
13461 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:6918
13462 msgid "(Added in 1.0.83)"
13463 msgstr ""
13464
13465 # type: =head2
13466 #. type: =head2
13467 #: ../src/guestfs-actions.pod:3941
13468 msgid "guestfs_lvresize"
13469 msgstr ""
13470
13471 # type: verbatim
13472 #. type: verbatim
13473 #: ../src/guestfs-actions.pod:3943
13474 #, no-wrap
13475 msgid ""
13476 " int\n"
13477 " guestfs_lvresize (guestfs_h *g,\n"
13478 "                   const char *device,\n"
13479 "                   int mbytes);\n"
13480 "\n"
13481 msgstr ""
13482
13483 # type: textblock
13484 #. type: textblock
13485 #: ../src/guestfs-actions.pod:3948 ../fish/guestfish-actions.pod:2697
13486 msgid ""
13487 "This resizes (expands or shrinks) an existing LVM logical volume to "
13488 "C<mbytes>.  When reducing, data in the reduced part is lost."
13489 msgstr ""
13490
13491 # type: =head2
13492 #. type: =head2
13493 #: ../src/guestfs-actions.pod:3956
13494 msgid "guestfs_lvresize_free"
13495 msgstr ""
13496
13497 # type: verbatim
13498 #. type: verbatim
13499 #: ../src/guestfs-actions.pod:3958
13500 #, no-wrap
13501 msgid ""
13502 " int\n"
13503 " guestfs_lvresize_free (guestfs_h *g,\n"
13504 "                        const char *lv,\n"
13505 "                        int percent);\n"
13506 "\n"
13507 msgstr ""
13508
13509 # type: textblock
13510 #. type: textblock
13511 #: ../src/guestfs-actions.pod:3963 ../fish/guestfish-actions.pod:2705
13512 msgid ""
13513 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13514 "remaining free space in the volume group.  Commonly you would call this with "
13515 "pc = 100 which expands the logical volume as much as possible, using all "
13516 "remaining free space in the volume group."
13517 msgstr ""
13518
13519 # type: textblock
13520 #. type: textblock
13521 #: ../src/guestfs-actions.pod:3971
13522 msgid "(Added in 1.3.3)"
13523 msgstr ""
13524
13525 # type: =head2
13526 #. type: =head2
13527 #: ../src/guestfs-actions.pod:3973
13528 msgid "guestfs_lvs"
13529 msgstr ""
13530
13531 # type: verbatim
13532 #. type: verbatim
13533 #: ../src/guestfs-actions.pod:3975
13534 #, no-wrap
13535 msgid ""
13536 " char **\n"
13537 " guestfs_lvs (guestfs_h *g);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #. type: textblock
13543 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2715
13544 msgid ""
13545 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13546 "(8)> command."
13547 msgstr ""
13548
13549 # type: textblock
13550 #. type: textblock
13551 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2718
13552 msgid ""
13553 "This returns a list of the logical volume device names (eg. C</dev/"
13554 "VolGroup00/LogVol00>)."
13555 msgstr ""
13556
13557 # type: textblock
13558 #. type: textblock
13559 #: ../src/guestfs-actions.pod:3984
13560 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13561 msgstr ""
13562
13563 # type: =head2
13564 #. type: =head2
13565 #: ../src/guestfs-actions.pod:3992
13566 msgid "guestfs_lvs_full"
13567 msgstr ""
13568
13569 # type: verbatim
13570 #. type: verbatim
13571 #: ../src/guestfs-actions.pod:3994
13572 #, no-wrap
13573 msgid ""
13574 " struct guestfs_lvm_lv_list *\n"
13575 " guestfs_lvs_full (guestfs_h *g);\n"
13576 "\n"
13577 msgstr ""
13578
13579 # type: textblock
13580 #. type: textblock
13581 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:2727
13582 msgid ""
13583 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13584 "(8)> command.  The \"full\" version includes all fields."
13585 msgstr ""
13586
13587 # type: textblock
13588 #. type: textblock
13589 #: ../src/guestfs-actions.pod:4000
13590 msgid ""
13591 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13592 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13593 msgstr ""
13594
13595 # type: =head2
13596 #. type: =head2
13597 #: ../src/guestfs-actions.pod:4006
13598 msgid "guestfs_lvuuid"
13599 msgstr ""
13600
13601 # type: verbatim
13602 #. type: verbatim
13603 #: ../src/guestfs-actions.pod:4008
13604 #, no-wrap
13605 msgid ""
13606 " char *\n"
13607 " guestfs_lvuuid (guestfs_h *g,\n"
13608 "                 const char *device);\n"
13609 "\n"
13610 msgstr ""
13611
13612 # type: textblock
13613 #. type: textblock
13614 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2734
13615 msgid "This command returns the UUID of the LVM LV C<device>."
13616 msgstr ""
13617
13618 # type: =head2
13619 #. type: =head2
13620 #: ../src/guestfs-actions.pod:4019
13621 msgid "guestfs_lxattrlist"
13622 msgstr ""
13623
13624 # type: verbatim
13625 #. type: verbatim
13626 #: ../src/guestfs-actions.pod:4021
13627 #, no-wrap
13628 msgid ""
13629 " struct guestfs_xattr_list *\n"
13630 " guestfs_lxattrlist (guestfs_h *g,\n"
13631 "                     const char *path,\n"
13632 "                     char *const *names);\n"
13633 "\n"
13634 msgstr ""
13635
13636 # type: textblock
13637 #. type: textblock
13638 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2740
13639 msgid ""
13640 "This call allows you to get the extended attributes of multiple files, where "
13641 "all files are in the directory C<path>.  C<names> is the list of files from "
13642 "this directory."
13643 msgstr ""
13644
13645 # type: textblock
13646 #. type: textblock
13647 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2744
13648 msgid ""
13649 "On return you get a flat list of xattr structs which must be interpreted "
13650 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13651 "C<attrval> in this struct is zero-length to indicate there was an error "
13652 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13653 "number (the number of following attributes for this file, which could be C<"
13654 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13655 "for the first named file.  This repeats for the second and subsequent files."
13656 msgstr ""
13657
13658 # type: textblock
13659 #. type: textblock
13660 #: ../src/guestfs-actions.pod:4040
13661 msgid ""
13662 "This call is intended for programs that want to efficiently list a directory "
13663 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13664 "a similarly efficient call for getting standard stats.  Very long directory "
13665 "listings might cause the protocol message size to be exceeded, causing this "
13666 "call to fail.  The caller must split up such requests into smaller groups of "
13667 "names."
13668 msgstr ""
13669
13670 # type: =head2
13671 #. type: =head2
13672 #: ../src/guestfs-actions.pod:4054
13673 msgid "guestfs_mkdir"
13674 msgstr ""
13675
13676 # type: verbatim
13677 #. type: verbatim
13678 #: ../src/guestfs-actions.pod:4056
13679 #, no-wrap
13680 msgid ""
13681 " int\n"
13682 " guestfs_mkdir (guestfs_h *g,\n"
13683 "                const char *path);\n"
13684 "\n"
13685 msgstr ""
13686
13687 # type: textblock
13688 #. type: textblock
13689 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:2766
13690 msgid "Create a directory named C<path>."
13691 msgstr ""
13692
13693 # type: =head2
13694 #. type: =head2
13695 #: ../src/guestfs-actions.pod:4066
13696 msgid "guestfs_mkdir_mode"
13697 msgstr ""
13698
13699 # type: verbatim
13700 #. type: verbatim
13701 #: ../src/guestfs-actions.pod:4068
13702 #, no-wrap
13703 msgid ""
13704 " int\n"
13705 " guestfs_mkdir_mode (guestfs_h *g,\n"
13706 "                     const char *path,\n"
13707 "                     int mode);\n"
13708 "\n"
13709 msgstr ""
13710
13711 # type: textblock
13712 #. type: textblock
13713 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2772
13714 msgid ""
13715 "This command creates a directory, setting the initial permissions of the "
13716 "directory to C<mode>."
13717 msgstr ""
13718
13719 # type: textblock
13720 #. type: textblock
13721 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2775
13722 msgid ""
13723 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13724 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13725 "other ways."
13726 msgstr ""
13727
13728 # type: textblock
13729 #. type: textblock
13730 #: ../src/guestfs-actions.pod:4080
13731 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13732 msgstr ""
13733
13734 # type: =head2
13735 #. type: =head2
13736 #: ../src/guestfs-actions.pod:4086
13737 msgid "guestfs_mkdir_p"
13738 msgstr ""
13739
13740 # type: verbatim
13741 #. type: verbatim
13742 #: ../src/guestfs-actions.pod:4088
13743 #, no-wrap
13744 msgid ""
13745 " int\n"
13746 " guestfs_mkdir_p (guestfs_h *g,\n"
13747 "                  const char *path);\n"
13748 "\n"
13749 msgstr ""
13750
13751 # type: textblock
13752 #. type: textblock
13753 #: ../src/guestfs-actions.pod:4092 ../fish/guestfish-actions.pod:2785
13754 msgid ""
13755 "Create a directory named C<path>, creating any parent directories as "
13756 "necessary.  This is like the C<mkdir -p> shell command."
13757 msgstr ""
13758
13759 # type: =head2
13760 #. type: =head2
13761 #: ../src/guestfs-actions.pod:4099
13762 msgid "guestfs_mkdtemp"
13763 msgstr ""
13764
13765 # type: verbatim
13766 #. type: verbatim
13767 #: ../src/guestfs-actions.pod:4101
13768 #, no-wrap
13769 msgid ""
13770 " char *\n"
13771 " guestfs_mkdtemp (guestfs_h *g,\n"
13772 "                  const char *template);\n"
13773 "\n"
13774 msgstr ""
13775
13776 # type: textblock
13777 #. type: textblock
13778 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:2792
13779 msgid ""
13780 "This command creates a temporary directory.  The C<template> parameter "
13781 "should be a full pathname for the temporary directory name with the final "
13782 "six characters being \"XXXXXX\"."
13783 msgstr ""
13784
13785 # type: textblock
13786 #. type: textblock
13787 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2797
13788 msgid ""
13789 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13790 "being suitable for Windows filesystems."
13791 msgstr ""
13792
13793 # type: textblock
13794 #. type: textblock
13795 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2800
13796 msgid "The name of the temporary directory that was created is returned."
13797 msgstr ""
13798
13799 # type: textblock
13800 #. type: textblock
13801 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2803
13802 msgid "The temporary directory is created with mode 0700 and is owned by root."
13803 msgstr ""
13804
13805 # type: textblock
13806 #. type: textblock
13807 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2806
13808 msgid ""
13809 "The caller is responsible for deleting the temporary directory and its "
13810 "contents after use."
13811 msgstr ""
13812
13813 # type: textblock
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:2809
13816 msgid "See also: L<mkdtemp(3)>"
13817 msgstr ""
13818
13819 # type: =head2
13820 #. type: =head2
13821 #: ../src/guestfs-actions.pod:4129
13822 msgid "guestfs_mke2fs_J"
13823 msgstr ""
13824
13825 # type: verbatim
13826 #. type: verbatim
13827 #: ../src/guestfs-actions.pod:4131
13828 #, no-wrap
13829 msgid ""
13830 " int\n"
13831 " guestfs_mke2fs_J (guestfs_h *g,\n"
13832 "                   const char *fstype,\n"
13833 "                   int blocksize,\n"
13834 "                   const char *device,\n"
13835 "                   const char *journal);\n"
13836 "\n"
13837 msgstr ""
13838
13839 # type: textblock
13840 #. type: textblock
13841 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2815
13842 msgid ""
13843 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13844 "C<journal>.  It is equivalent to the command:"
13845 msgstr ""
13846
13847 # type: verbatim
13848 #. type: verbatim
13849 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2819
13850 #, no-wrap
13851 msgid ""
13852 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13853 "\n"
13854 msgstr ""
13855
13856 # type: textblock
13857 #. type: textblock
13858 #: ../src/guestfs-actions.pod:4144
13859 msgid "See also C<guestfs_mke2journal>."
13860 msgstr ""
13861
13862 # type: textblock
13863 #. type: textblock
13864 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4166
13865 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4200
13866 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:4228
13867 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4538
13868 msgid "(Added in 1.0.68)"
13869 msgstr ""
13870
13871 # type: =head2
13872 #. type: =head2
13873 #: ../src/guestfs-actions.pod:4150
13874 msgid "guestfs_mke2fs_JL"
13875 msgstr ""
13876
13877 # type: verbatim
13878 #. type: verbatim
13879 #: ../src/guestfs-actions.pod:4152
13880 #, no-wrap
13881 msgid ""
13882 " int\n"
13883 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13884 "                    const char *fstype,\n"
13885 "                    int blocksize,\n"
13886 "                    const char *device,\n"
13887 "                    const char *label);\n"
13888 "\n"
13889 msgstr ""
13890
13891 # type: textblock
13892 #. type: textblock
13893 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2827
13894 msgid ""
13895 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13896 "the journal labeled C<label>."
13897 msgstr ""
13898
13899 # type: textblock
13900 #. type: textblock
13901 #: ../src/guestfs-actions.pod:4162
13902 msgid "See also C<guestfs_mke2journal_L>."
13903 msgstr ""
13904
13905 # type: =head2
13906 #. type: =head2
13907 #: ../src/guestfs-actions.pod:4168
13908 msgid "guestfs_mke2fs_JU"
13909 msgstr ""
13910
13911 # type: verbatim
13912 #. type: verbatim
13913 #: ../src/guestfs-actions.pod:4170
13914 #, no-wrap
13915 msgid ""
13916 " int\n"
13917 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13918 "                    const char *fstype,\n"
13919 "                    int blocksize,\n"
13920 "                    const char *device,\n"
13921 "                    const char *uuid);\n"
13922 "\n"
13923 msgstr ""
13924
13925 # type: textblock
13926 #. type: textblock
13927 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2836
13928 msgid ""
13929 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13930 "the journal with UUID C<uuid>."
13931 msgstr ""
13932
13933 # type: textblock
13934 #. type: textblock
13935 #: ../src/guestfs-actions.pod:4180
13936 msgid "See also C<guestfs_mke2journal_U>."
13937 msgstr ""
13938
13939 # type: =head2
13940 #. type: =head2
13941 #: ../src/guestfs-actions.pod:4186
13942 msgid "guestfs_mke2journal"
13943 msgstr ""
13944
13945 # type: verbatim
13946 #. type: verbatim
13947 #: ../src/guestfs-actions.pod:4188
13948 #, no-wrap
13949 msgid ""
13950 " int\n"
13951 " guestfs_mke2journal (guestfs_h *g,\n"
13952 "                      int blocksize,\n"
13953 "                      const char *device);\n"
13954 "\n"
13955 msgstr ""
13956
13957 # type: textblock
13958 #. type: textblock
13959 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:2845
13960 msgid ""
13961 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13962 "command:"
13963 msgstr ""
13964
13965 # type: verbatim
13966 #. type: verbatim
13967 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:2848
13968 #, no-wrap
13969 msgid ""
13970 " mke2fs -O journal_dev -b blocksize device\n"
13971 "\n"
13972 msgstr ""
13973
13974 # type: =head2
13975 #. type: =head2
13976 #: ../src/guestfs-actions.pod:4202
13977 msgid "guestfs_mke2journal_L"
13978 msgstr ""
13979
13980 # type: verbatim
13981 #. type: verbatim
13982 #: ../src/guestfs-actions.pod:4204
13983 #, no-wrap
13984 msgid ""
13985 " int\n"
13986 " guestfs_mke2journal_L (guestfs_h *g,\n"
13987 "                        int blocksize,\n"
13988 "                        const char *label,\n"
13989 "                        const char *device);\n"
13990 "\n"
13991 msgstr ""
13992
13993 # type: textblock
13994 #. type: textblock
13995 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:2854
13996 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13997 msgstr ""
13998
13999 # type: =head2
14000 #. type: =head2
14001 #: ../src/guestfs-actions.pod:4216
14002 msgid "guestfs_mke2journal_U"
14003 msgstr ""
14004
14005 # type: verbatim
14006 #. type: verbatim
14007 #: ../src/guestfs-actions.pod:4218
14008 #, no-wrap
14009 msgid ""
14010 " int\n"
14011 " guestfs_mke2journal_U (guestfs_h *g,\n"
14012 "                        int blocksize,\n"
14013 "                        const char *uuid,\n"
14014 "                        const char *device);\n"
14015 "\n"
14016 msgstr ""
14017
14018 # type: textblock
14019 #. type: textblock
14020 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:2860
14021 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14022 msgstr ""
14023
14024 # type: =head2
14025 #. type: =head2
14026 #: ../src/guestfs-actions.pod:4230
14027 msgid "guestfs_mkfifo"
14028 msgstr ""
14029
14030 # type: verbatim
14031 #. type: verbatim
14032 #: ../src/guestfs-actions.pod:4232
14033 #, no-wrap
14034 msgid ""
14035 " int\n"
14036 " guestfs_mkfifo (guestfs_h *g,\n"
14037 "                 int mode,\n"
14038 "                 const char *path);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #. type: textblock
14044 #: ../src/guestfs-actions.pod:4237
14045 msgid ""
14046 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14047 "is just a convenient wrapper around C<guestfs_mknod>."
14048 msgstr ""
14049
14050 # type: =head2
14051 #. type: =head2
14052 #: ../src/guestfs-actions.pod:4247
14053 msgid "guestfs_mkfs"
14054 msgstr ""
14055
14056 # type: verbatim
14057 #. type: verbatim
14058 #: ../src/guestfs-actions.pod:4249
14059 #, no-wrap
14060 msgid ""
14061 " int\n"
14062 " guestfs_mkfs (guestfs_h *g,\n"
14063 "               const char *fstype,\n"
14064 "               const char *device);\n"
14065 "\n"
14066 msgstr ""
14067
14068 # type: textblock
14069 #. type: textblock
14070 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2876
14071 msgid ""
14072 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14073 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14074 msgstr ""
14075
14076 # type: =head2
14077 #. type: =head2
14078 #: ../src/guestfs-actions.pod:4262
14079 msgid "guestfs_mkfs_b"
14080 msgstr ""
14081
14082 # type: verbatim
14083 #. type: verbatim
14084 #: ../src/guestfs-actions.pod:4264
14085 #, no-wrap
14086 msgid ""
14087 " int\n"
14088 " guestfs_mkfs_b (guestfs_h *g,\n"
14089 "                 const char *fstype,\n"
14090 "                 int blocksize,\n"
14091 "                 const char *device);\n"
14092 "\n"
14093 msgstr ""
14094
14095 # type: textblock
14096 #. type: textblock
14097 #: ../src/guestfs-actions.pod:4270
14098 msgid ""
14099 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14100 "block size of the resulting filesystem.  Supported block sizes depend on the "
14101 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14102 msgstr ""
14103
14104 # type: textblock
14105 #. type: textblock
14106 #: ../src/guestfs-actions.pod:4275 ../src/guestfs-actions.pod:4317
14107 #: ../fish/guestfish-actions.pod:2889 ../fish/guestfish-actions.pod:2916
14108 msgid ""
14109 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14110 "cluster size."
14111 msgstr ""
14112
14113 # type: textblock
14114 #. type: textblock
14115 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2892
14116 msgid ""
14117 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14118 msgstr ""
14119
14120 # type: =head2
14121 #. type: =head2
14122 #: ../src/guestfs-actions.pod:4289
14123 msgid "guestfs_mkfs_opts"
14124 msgstr ""
14125
14126 # type: verbatim
14127 #. type: verbatim
14128 #: ../src/guestfs-actions.pod:4291
14129 #, no-wrap
14130 msgid ""
14131 " int\n"
14132 " guestfs_mkfs_opts (guestfs_h *g,\n"
14133 "                    const char *fstype,\n"
14134 "                    const char *device,\n"
14135 "                    ...);\n"
14136 "\n"
14137 msgstr ""
14138
14139 # type: verbatim
14140 #. type: verbatim
14141 #: ../src/guestfs-actions.pod:4302
14142 #, no-wrap
14143 msgid ""
14144 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14145 "\n"
14146 msgstr ""
14147
14148 # type: textblock
14149 #. type: textblock
14150 #: ../src/guestfs-actions.pod:4304 ../fish/guestfish-actions.pod:2903
14151 msgid ""
14152 "This function creates a filesystem on C<device>.  The filesystem type is "
14153 "C<fstype>, for example C<ext3>."
14154 msgstr ""
14155
14156 # type: =item
14157 #. type: =item
14158 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2910
14159 msgid "C<blocksize>"
14160 msgstr ""
14161
14162 # type: textblock
14163 #. type: textblock
14164 #: ../src/guestfs-actions.pod:4313 ../fish/guestfish-actions.pod:2912
14165 msgid ""
14166 "The filesystem block size.  Supported block sizes depend on the filesystem "
14167 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14168 "filesystems."
14169 msgstr ""
14170
14171 #. type: textblock
14172 #: ../src/guestfs-actions.pod:4324
14173 msgid "(Added in 1.7.19)"
14174 msgstr ""
14175
14176 # type: =head2
14177 #. type: =head2
14178 #: ../src/guestfs-actions.pod:4326
14179 msgid "guestfs_mkfs_opts_va"
14180 msgstr ""
14181
14182 # type: verbatim
14183 #. type: verbatim
14184 #: ../src/guestfs-actions.pod:4328
14185 #, no-wrap
14186 msgid ""
14187 " int\n"
14188 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14189 "                       const char *fstype,\n"
14190 "                       const char *device,\n"
14191 "                       va_list args);\n"
14192 "\n"
14193 msgstr ""
14194
14195 # type: textblock
14196 #. type: textblock
14197 #: ../src/guestfs-actions.pod:4334
14198 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14199 msgstr ""
14200
14201 # type: =head2
14202 #. type: =head2
14203 #: ../src/guestfs-actions.pod:4338
14204 msgid "guestfs_mkfs_opts_argv"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #. type: verbatim
14209 #: ../src/guestfs-actions.pod:4340
14210 #, no-wrap
14211 msgid ""
14212 " int\n"
14213 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14214 "                         const char *fstype,\n"
14215 "                         const char *device,\n"
14216 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: textblock
14221 #. type: textblock
14222 #: ../src/guestfs-actions.pod:4346
14223 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14224 msgstr ""
14225
14226 # type: =head2
14227 #. type: =head2
14228 #: ../src/guestfs-actions.pod:4350
14229 msgid "guestfs_mkmountpoint"
14230 msgstr ""
14231
14232 # type: verbatim
14233 #. type: verbatim
14234 #: ../src/guestfs-actions.pod:4352
14235 #, no-wrap
14236 msgid ""
14237 " int\n"
14238 " guestfs_mkmountpoint (guestfs_h *g,\n"
14239 "                       const char *exemptpath);\n"
14240 "\n"
14241 msgstr ""
14242
14243 # type: textblock
14244 #. type: textblock
14245 #: ../src/guestfs-actions.pod:4356
14246 msgid ""
14247 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14248 "that can be used to create extra mountpoints before mounting the first "
14249 "filesystem."
14250 msgstr ""
14251
14252 # type: textblock
14253 #. type: textblock
14254 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2931
14255 msgid ""
14256 "These calls are I<only> necessary in some very limited circumstances, mainly "
14257 "the case where you want to mount a mix of unrelated and/or read-only "
14258 "filesystems together."
14259 msgstr ""
14260
14261 # type: textblock
14262 #. type: textblock
14263 #: ../src/guestfs-actions.pod:4364 ../fish/guestfish-actions.pod:2935
14264 msgid ""
14265 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14266 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14267 "inside that.  You can unpack this as follows in guestfish:"
14268 msgstr ""
14269
14270 # type: verbatim
14271 #. type: verbatim
14272 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2940
14273 #, no-wrap
14274 msgid ""
14275 " add-ro Fedora-11-i686-Live.iso\n"
14276 " run\n"
14277 " mkmountpoint /cd\n"
14278 " mkmountpoint /sqsh\n"
14279 " mkmountpoint /ext3fs\n"
14280 " mount /dev/sda /cd\n"
14281 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14282 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14283 "\n"
14284 msgstr ""
14285
14286 # type: textblock
14287 #. type: textblock
14288 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2949
14289 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14290 msgstr ""
14291
14292 # type: textblock
14293 #. type: textblock
14294 #: ../src/guestfs-actions.pod:4380
14295 msgid ""
14296 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14297 "may get unexpected errors if you try to mix these calls.  It is safest to "
14298 "manually unmount filesystems and remove mountpoints after use."
14299 msgstr ""
14300
14301 # type: textblock
14302 #. type: textblock
14303 #: ../src/guestfs-actions.pod:4384
14304 msgid ""
14305 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14306 "first, so for this to work for manual mountpoints, you must ensure that the "
14307 "innermost mountpoints have the longest pathnames, as in the example code "
14308 "above."
14309 msgstr ""
14310
14311 # type: textblock
14312 #. type: textblock
14313 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2960
14314 msgid ""
14315 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14316 msgstr ""
14317
14318 # type: textblock
14319 #. type: textblock
14320 #: ../src/guestfs-actions.pod:4391
14321 msgid ""
14322 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14323 "means that C<guestfs_umount_all> is called when the handle is closed which "
14324 "can also trigger these issues."
14325 msgstr ""
14326
14327 # type: textblock
14328 #. type: textblock
14329 #: ../src/guestfs-actions.pod:4397 ../src/guestfs-actions.pod:4656
14330 #: ../src/guestfs-actions.pod:5566
14331 msgid "(Added in 1.0.62)"
14332 msgstr ""
14333
14334 # type: =head2
14335 #. type: =head2
14336 #: ../src/guestfs-actions.pod:4399
14337 msgid "guestfs_mknod"
14338 msgstr ""
14339
14340 # type: verbatim
14341 #. type: verbatim
14342 #: ../src/guestfs-actions.pod:4401
14343 #, no-wrap
14344 msgid ""
14345 " int\n"
14346 " guestfs_mknod (guestfs_h *g,\n"
14347 "                int mode,\n"
14348 "                int devmajor,\n"
14349 "                int devminor,\n"
14350 "                const char *path);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #. type: textblock
14356 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:2970
14357 msgid ""
14358 "This call creates block or character special devices, or named pipes (FIFOs)."
14359 msgstr ""
14360
14361 # type: textblock
14362 #. type: textblock
14363 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2973
14364 msgid ""
14365 "The C<mode> parameter should be the mode, using the standard constants.  "
14366 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14367 "used when creating block and character special devices."
14368 msgstr ""
14369
14370 # type: textblock
14371 #. type: textblock
14372 #: ../src/guestfs-actions.pod:4416
14373 msgid ""
14374 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14375 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14376 "regular file).  These constants are available in the standard Linux header "
14377 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14378 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14379 "the appropriate constant for you."
14380 msgstr ""
14381
14382 # type: =head2
14383 #. type: =head2
14384 #: ../src/guestfs-actions.pod:4430
14385 msgid "guestfs_mknod_b"
14386 msgstr ""
14387
14388 # type: verbatim
14389 #. type: verbatim
14390 #: ../src/guestfs-actions.pod:4432
14391 #, no-wrap
14392 msgid ""
14393 " int\n"
14394 " guestfs_mknod_b (guestfs_h *g,\n"
14395 "                  int mode,\n"
14396 "                  int devmajor,\n"
14397 "                  int devminor,\n"
14398 "                  const char *path);\n"
14399 "\n"
14400 msgstr ""
14401
14402 # type: textblock
14403 #. type: textblock
14404 #: ../src/guestfs-actions.pod:4439
14405 msgid ""
14406 "This call creates a block device node called C<path> with mode C<mode> and "
14407 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14408 "wrapper around C<guestfs_mknod>."
14409 msgstr ""
14410
14411 # type: =head2
14412 #. type: =head2
14413 #: ../src/guestfs-actions.pod:4449
14414 msgid "guestfs_mknod_c"
14415 msgstr ""
14416
14417 # type: verbatim
14418 #. type: verbatim
14419 #: ../src/guestfs-actions.pod:4451
14420 #, no-wrap
14421 msgid ""
14422 " int\n"
14423 " guestfs_mknod_c (guestfs_h *g,\n"
14424 "                  int mode,\n"
14425 "                  int devmajor,\n"
14426 "                  int devminor,\n"
14427 "                  const char *path);\n"
14428 "\n"
14429 msgstr ""
14430
14431 # type: textblock
14432 #. type: textblock
14433 #: ../src/guestfs-actions.pod:4458
14434 msgid ""
14435 "This call creates a char device node called C<path> with mode C<mode> and "
14436 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14437 "wrapper around C<guestfs_mknod>."
14438 msgstr ""
14439
14440 # type: =head2
14441 #. type: =head2
14442 #: ../src/guestfs-actions.pod:4468
14443 msgid "guestfs_mkswap"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #. type: verbatim
14448 #: ../src/guestfs-actions.pod:4470
14449 #, no-wrap
14450 msgid ""
14451 " int\n"
14452 " guestfs_mkswap (guestfs_h *g,\n"
14453 "                 const char *device);\n"
14454 "\n"
14455 msgstr ""
14456
14457 # type: textblock
14458 #. type: textblock
14459 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:3012
14460 msgid "Create a swap partition on C<device>."
14461 msgstr ""
14462
14463 # type: =head2
14464 #. type: =head2
14465 #: ../src/guestfs-actions.pod:4480
14466 msgid "guestfs_mkswap_L"
14467 msgstr ""
14468
14469 # type: verbatim
14470 #. type: verbatim
14471 #: ../src/guestfs-actions.pod:4482
14472 #, no-wrap
14473 msgid ""
14474 " int\n"
14475 " guestfs_mkswap_L (guestfs_h *g,\n"
14476 "                   const char *label,\n"
14477 "                   const char *device);\n"
14478 "\n"
14479 msgstr ""
14480
14481 # type: textblock
14482 #. type: textblock
14483 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3018
14484 msgid "Create a swap partition on C<device> with label C<label>."
14485 msgstr ""
14486
14487 # type: textblock
14488 #. type: textblock
14489 #: ../src/guestfs-actions.pod:4489 ../fish/guestfish-actions.pod:3020
14490 msgid ""
14491 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14492 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14493 "or swap tools."
14494 msgstr ""
14495
14496 # type: =head2
14497 #. type: =head2
14498 #: ../src/guestfs-actions.pod:4497
14499 msgid "guestfs_mkswap_U"
14500 msgstr ""
14501
14502 # type: verbatim
14503 #. type: verbatim
14504 #: ../src/guestfs-actions.pod:4499
14505 #, no-wrap
14506 msgid ""
14507 " int\n"
14508 " guestfs_mkswap_U (guestfs_h *g,\n"
14509 "                   const char *uuid,\n"
14510 "                   const char *device);\n"
14511 "\n"
14512 msgstr ""
14513
14514 # type: textblock
14515 #. type: textblock
14516 #: ../src/guestfs-actions.pod:4504 ../fish/guestfish-actions.pod:3028
14517 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14518 msgstr ""
14519
14520 # type: =head2
14521 #. type: =head2
14522 #: ../src/guestfs-actions.pod:4510
14523 msgid "guestfs_mkswap_file"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #. type: verbatim
14528 #: ../src/guestfs-actions.pod:4512
14529 #, no-wrap
14530 msgid ""
14531 " int\n"
14532 " guestfs_mkswap_file (guestfs_h *g,\n"
14533 "                      const char *path);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3034
14540 msgid "Create a swap file."
14541 msgstr ""
14542
14543 # type: textblock
14544 #. type: textblock
14545 #: ../src/guestfs-actions.pod:4518
14546 msgid ""
14547 "This command just writes a swap file signature to an existing file.  To "
14548 "create the file itself, use something like C<guestfs_fallocate>."
14549 msgstr ""
14550
14551 # type: =head2
14552 #. type: =head2
14553 #: ../src/guestfs-actions.pod:4525
14554 msgid "guestfs_modprobe"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #. type: verbatim
14559 #: ../src/guestfs-actions.pod:4527
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_modprobe (guestfs_h *g,\n"
14564 "                   const char *modulename);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: textblock
14569 #. type: textblock
14570 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3043
14571 msgid "This loads a kernel module in the appliance."
14572 msgstr ""
14573
14574 # type: textblock
14575 #. type: textblock
14576 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3045
14577 msgid ""
14578 "The kernel module must have been whitelisted when libguestfs was built (see "
14579 "C<appliance/kmod.whitelist.in> in the source)."
14580 msgstr ""
14581
14582 # type: =head2
14583 #. type: =head2
14584 #: ../src/guestfs-actions.pod:4540
14585 msgid "guestfs_mount"
14586 msgstr ""
14587
14588 # type: verbatim
14589 #. type: verbatim
14590 #: ../src/guestfs-actions.pod:4542
14591 #, no-wrap
14592 msgid ""
14593 " int\n"
14594 " guestfs_mount (guestfs_h *g,\n"
14595 "                const char *device,\n"
14596 "                const char *mountpoint);\n"
14597 "\n"
14598 msgstr ""
14599
14600 # type: textblock
14601 #. type: textblock
14602 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3052
14603 msgid ""
14604 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14605 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14606 "those block devices contain partitions, they will have the usual names (eg. "
14607 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14608 msgstr ""
14609
14610 # type: textblock
14611 #. type: textblock
14612 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3058
14613 msgid ""
14614 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14615 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14616 "mounted on directories which already exist."
14617 msgstr ""
14618
14619 # type: textblock
14620 #. type: textblock
14621 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3063
14622 msgid ""
14623 "The mounted filesystem is writable, if we have sufficient permissions on the "
14624 "underlying device."
14625 msgstr ""
14626
14627 # type: textblock
14628 #. type: textblock
14629 #: ../src/guestfs-actions.pod:4561
14630 msgid ""
14631 "B<Important note:> When you use this call, the filesystem options C<sync> "
14632 "and C<noatime> are set implicitly.  This was originally done because we "
14633 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14634 "very large negative performance impact and negligible effect on "
14635 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14636 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14637 "(use an empty string for the first parameter if you don't want any options)."
14638 msgstr ""
14639
14640 # type: =head2
14641 #. type: =head2
14642 #: ../src/guestfs-actions.pod:4575
14643 msgid "guestfs_mount_loop"
14644 msgstr ""
14645
14646 # type: verbatim
14647 #. type: verbatim
14648 #: ../src/guestfs-actions.pod:4577
14649 #, no-wrap
14650 msgid ""
14651 " int\n"
14652 " guestfs_mount_loop (guestfs_h *g,\n"
14653 "                     const char *file,\n"
14654 "                     const char *mountpoint);\n"
14655 "\n"
14656 msgstr ""
14657
14658 # type: textblock
14659 #. type: textblock
14660 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3080
14661 msgid ""
14662 "This command lets you mount C<file> (a filesystem image in a file) on a "
14663 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14664 "mountpoint>."
14665 msgstr ""
14666
14667 # type: =head2
14668 #. type: =head2
14669 #: ../src/guestfs-actions.pod:4590
14670 msgid "guestfs_mount_options"
14671 msgstr ""
14672
14673 # type: verbatim
14674 #. type: verbatim
14675 #: ../src/guestfs-actions.pod:4592
14676 #, no-wrap
14677 msgid ""
14678 " int\n"
14679 " guestfs_mount_options (guestfs_h *g,\n"
14680 "                        const char *options,\n"
14681 "                        const char *device,\n"
14682 "                        const char *mountpoint);\n"
14683 "\n"
14684 msgstr ""
14685
14686 # type: textblock
14687 #. type: textblock
14688 #: ../src/guestfs-actions.pod:4598
14689 msgid ""
14690 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14691 "the mount options as for the L<mount(8)> I<-o> flag."
14692 msgstr ""
14693
14694 # type: textblock
14695 #. type: textblock
14696 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3092
14697 msgid ""
14698 "If the C<options> parameter is an empty string, then no options are passed "
14699 "(all options default to whatever the filesystem uses)."
14700 msgstr ""
14701
14702 # type: textblock
14703 #. type: textblock
14704 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4622
14705 #: ../src/guestfs-actions.pod:4639
14706 msgid "(Added in 1.0.10)"
14707 msgstr ""
14708
14709 # type: =head2
14710 #. type: =head2
14711 #: ../src/guestfs-actions.pod:4610
14712 msgid "guestfs_mount_ro"
14713 msgstr ""
14714
14715 # type: verbatim
14716 #. type: verbatim
14717 #: ../src/guestfs-actions.pod:4612
14718 #, no-wrap
14719 msgid ""
14720 " int\n"
14721 " guestfs_mount_ro (guestfs_h *g,\n"
14722 "                   const char *device,\n"
14723 "                   const char *mountpoint);\n"
14724 "\n"
14725 msgstr ""
14726
14727 # type: textblock
14728 #. type: textblock
14729 #: ../src/guestfs-actions.pod:4617
14730 msgid ""
14731 "This is the same as the C<guestfs_mount> command, but it mounts the "
14732 "filesystem with the read-only (I<-o ro>) flag."
14733 msgstr ""
14734
14735 # type: =head2
14736 #. type: =head2
14737 #: ../src/guestfs-actions.pod:4624
14738 msgid "guestfs_mount_vfs"
14739 msgstr ""
14740
14741 # type: verbatim
14742 #. type: verbatim
14743 #: ../src/guestfs-actions.pod:4626
14744 #, no-wrap
14745 msgid ""
14746 " int\n"
14747 " guestfs_mount_vfs (guestfs_h *g,\n"
14748 "                    const char *options,\n"
14749 "                    const char *vfstype,\n"
14750 "                    const char *device,\n"
14751 "                    const char *mountpoint);\n"
14752 "\n"
14753 msgstr ""
14754
14755 # type: textblock
14756 #. type: textblock
14757 #: ../src/guestfs-actions.pod:4633
14758 msgid ""
14759 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14760 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14761 "t> flags."
14762 msgstr ""
14763
14764 # type: =head2
14765 #. type: =head2
14766 #: ../src/guestfs-actions.pod:4641
14767 msgid "guestfs_mountpoints"
14768 msgstr ""
14769
14770 # type: verbatim
14771 #. type: verbatim
14772 #: ../src/guestfs-actions.pod:4643
14773 #, no-wrap
14774 msgid ""
14775 " char **\n"
14776 " guestfs_mountpoints (guestfs_h *g);\n"
14777 "\n"
14778 msgstr ""
14779
14780 # type: textblock
14781 #. type: textblock
14782 #: ../src/guestfs-actions.pod:4646
14783 msgid ""
14784 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14785 "devices.  This one returns a hash table (map) of device name to directory "
14786 "where the device is mounted."
14787 msgstr ""
14788
14789 # type: =head2
14790 #. type: =head2
14791 #: ../src/guestfs-actions.pod:4658
14792 msgid "guestfs_mounts"
14793 msgstr ""
14794
14795 # type: verbatim
14796 #. type: verbatim
14797 #: ../src/guestfs-actions.pod:4660
14798 #, no-wrap
14799 msgid ""
14800 " char **\n"
14801 " guestfs_mounts (guestfs_h *g);\n"
14802 "\n"
14803 msgstr ""
14804
14805 # type: textblock
14806 #. type: textblock
14807 #: ../src/guestfs-actions.pod:4663 ../fish/guestfish-actions.pod:3123
14808 msgid ""
14809 "This returns the list of currently mounted filesystems.  It returns the list "
14810 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14811 msgstr ""
14812
14813 # type: textblock
14814 #. type: textblock
14815 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3126
14816 msgid "Some internal mounts are not shown."
14817 msgstr ""
14818
14819 # type: textblock
14820 #. type: textblock
14821 #: ../src/guestfs-actions.pod:4668
14822 msgid "See also: C<guestfs_mountpoints>"
14823 msgstr ""
14824
14825 # type: =head2
14826 #. type: =head2
14827 #: ../src/guestfs-actions.pod:4676
14828 msgid "guestfs_mv"
14829 msgstr ""
14830
14831 # type: verbatim
14832 #. type: verbatim
14833 #: ../src/guestfs-actions.pod:4678
14834 #, no-wrap
14835 msgid ""
14836 " int\n"
14837 " guestfs_mv (guestfs_h *g,\n"
14838 "             const char *src,\n"
14839 "             const char *dest);\n"
14840 "\n"
14841 msgstr ""
14842
14843 # type: textblock
14844 #. type: textblock
14845 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3134
14846 msgid ""
14847 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14848 "destination filename or destination directory."
14849 msgstr ""
14850
14851 # type: =head2
14852 #. type: =head2
14853 #: ../src/guestfs-actions.pod:4690
14854 msgid "guestfs_ntfs_3g_probe"
14855 msgstr ""
14856
14857 # type: verbatim
14858 #. type: verbatim
14859 #: ../src/guestfs-actions.pod:4692
14860 #, no-wrap
14861 msgid ""
14862 " int\n"
14863 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14864 "                        int rw,\n"
14865 "                        const char *device);\n"
14866 "\n"
14867 msgstr ""
14868
14869 # type: textblock
14870 #. type: textblock
14871 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3141
14872 msgid ""
14873 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14874 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14875 "write, and some cannot be mounted at all)."
14876 msgstr ""
14877
14878 # type: textblock
14879 #. type: textblock
14880 #: ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:3145
14881 msgid ""
14882 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14883 "can be mounted read-write.  Set it to false if you want to test if the "
14884 "volume can be mounted read-only."
14885 msgstr ""
14886
14887 # type: textblock
14888 #. type: textblock
14889 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3149
14890 msgid ""
14891 "The return value is an integer which C<0> if the operation would succeed, or "
14892 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14893 msgstr ""
14894
14895 # type: textblock
14896 #. type: textblock
14897 #: ../src/guestfs-actions.pod:4711
14898 msgid "(Added in 1.0.43)"
14899 msgstr ""
14900
14901 # type: =head2
14902 #. type: =head2
14903 #: ../src/guestfs-actions.pod:4713
14904 msgid "guestfs_ntfsresize"
14905 msgstr ""
14906
14907 # type: verbatim
14908 #. type: verbatim
14909 #: ../src/guestfs-actions.pod:4715
14910 #, no-wrap
14911 msgid ""
14912 " int\n"
14913 " guestfs_ntfsresize (guestfs_h *g,\n"
14914 "                     const char *device);\n"
14915 "\n"
14916 msgstr ""
14917
14918 # type: textblock
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3157
14921 msgid ""
14922 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14923 "size of the underlying device.  See also L<ntfsresize(8)>."
14924 msgstr ""
14925
14926 # type: =head2
14927 #. type: =head2
14928 #: ../src/guestfs-actions.pod:4727
14929 msgid "guestfs_ntfsresize_size"
14930 msgstr ""
14931
14932 # type: verbatim
14933 #. type: verbatim
14934 #: ../src/guestfs-actions.pod:4729
14935 #, no-wrap
14936 msgid ""
14937 " int\n"
14938 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14939 "                          const char *device,\n"
14940 "                          int64_t size);\n"
14941 "\n"
14942 msgstr ""
14943
14944 # type: textblock
14945 #. type: textblock
14946 #: ../src/guestfs-actions.pod:4734
14947 msgid ""
14948 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14949 "to specify the new size (in bytes) explicitly."
14950 msgstr ""
14951
14952 # type: textblock
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:5175
14955 #: ../src/guestfs-actions.pod:5248 ../src/guestfs-actions.pod:5514
14956 #: ../src/guestfs-actions.pod:7053
14957 msgid "(Added in 1.3.14)"
14958 msgstr ""
14959
14960 # type: =head2
14961 #. type: =head2
14962 #: ../src/guestfs-actions.pod:4741
14963 msgid "guestfs_part_add"
14964 msgstr ""
14965
14966 # type: verbatim
14967 #. type: verbatim
14968 #: ../src/guestfs-actions.pod:4743
14969 #, no-wrap
14970 msgid ""
14971 " int\n"
14972 " guestfs_part_add (guestfs_h *g,\n"
14973 "                   const char *device,\n"
14974 "                   const char *prlogex,\n"
14975 "                   int64_t startsect,\n"
14976 "                   int64_t endsect);\n"
14977 "\n"
14978 msgstr ""
14979
14980 # type: textblock
14981 #. type: textblock
14982 #: ../src/guestfs-actions.pod:4750
14983 msgid ""
14984 "This command adds a partition to C<device>.  If there is no partition table "
14985 "on the device, call C<guestfs_part_init> first."
14986 msgstr ""
14987
14988 # type: textblock
14989 #. type: textblock
14990 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3175
14991 msgid ""
14992 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14993 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14994 "C<logical>) and C<e> (or C<extended>) partition types."
14995 msgstr ""
14996
14997 # type: textblock
14998 #. type: textblock
14999 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3180
15000 msgid ""
15001 "C<startsect> and C<endsect> are the start and end of the partition in "
15002 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15003 "from the end of the disk (C<-1> is the last sector)."
15004 msgstr ""
15005
15006 # type: textblock
15007 #. type: textblock
15008 #: ../src/guestfs-actions.pod:4762
15009 msgid ""
15010 "Creating a partition which covers the whole disk is not so easy.  Use "
15011 "C<guestfs_part_disk> to do that."
15012 msgstr ""
15013
15014 # type: textblock
15015 #. type: textblock
15016 #: ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4805
15017 #: ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4936
15018 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:4993
15019 #: ../src/guestfs-actions.pod:5033
15020 msgid "(Added in 1.0.78)"
15021 msgstr ""
15022
15023 # type: =head2
15024 #. type: =head2
15025 #: ../src/guestfs-actions.pod:4769
15026 msgid "guestfs_part_del"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #. type: verbatim
15031 #: ../src/guestfs-actions.pod:4771
15032 #, no-wrap
15033 msgid ""
15034 " int\n"
15035 " guestfs_part_del (guestfs_h *g,\n"
15036 "                   const char *device,\n"
15037 "                   int partnum);\n"
15038 "\n"
15039 msgstr ""
15040
15041 # type: textblock
15042 #. type: textblock
15043 #: ../src/guestfs-actions.pod:4776 ../fish/guestfish-actions.pod:3191
15044 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15045 msgstr ""
15046
15047 # type: textblock
15048 #. type: textblock
15049 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3193
15050 msgid ""
15051 "Note that in the case of MBR partitioning, deleting an extended partition "
15052 "also deletes any logical partitions it contains."
15053 msgstr ""
15054
15055 # type: =head2
15056 #. type: =head2
15057 #: ../src/guestfs-actions.pod:4786
15058 msgid "guestfs_part_disk"
15059 msgstr ""
15060
15061 # type: verbatim
15062 #. type: verbatim
15063 #: ../src/guestfs-actions.pod:4788
15064 #, no-wrap
15065 msgid ""
15066 " int\n"
15067 " guestfs_part_disk (guestfs_h *g,\n"
15068 "                    const char *device,\n"
15069 "                    const char *parttype);\n"
15070 "\n"
15071 msgstr ""
15072
15073 # type: textblock
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:4793
15076 msgid ""
15077 "This command is simply a combination of C<guestfs_part_init> followed by "
15078 "C<guestfs_part_add> to create a single primary partition covering the whole "
15079 "disk."
15080 msgstr ""
15081
15082 # type: textblock
15083 #. type: textblock
15084 #: ../src/guestfs-actions.pod:4797
15085 msgid ""
15086 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15087 "possible values are described in C<guestfs_part_init>."
15088 msgstr ""
15089
15090 # type: =head2
15091 #. type: =head2
15092 #: ../src/guestfs-actions.pod:4807
15093 msgid "guestfs_part_get_bootable"
15094 msgstr ""
15095
15096 # type: verbatim
15097 #. type: verbatim
15098 #: ../src/guestfs-actions.pod:4809
15099 #, no-wrap
15100 msgid ""
15101 " int\n"
15102 " guestfs_part_get_bootable (guestfs_h *g,\n"
15103 "                            const char *device,\n"
15104 "                            int partnum);\n"
15105 "\n"
15106 msgstr ""
15107
15108 # type: textblock
15109 #. type: textblock
15110 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3215
15111 msgid ""
15112 "This command returns true if the partition C<partnum> on C<device> has the "
15113 "bootable flag set."
15114 msgstr ""
15115
15116 # type: textblock
15117 #. type: textblock
15118 #: ../src/guestfs-actions.pod:4817
15119 msgid "See also C<guestfs_part_set_bootable>."
15120 msgstr ""
15121
15122 # type: =head2
15123 #. type: =head2
15124 #: ../src/guestfs-actions.pod:4823
15125 msgid "guestfs_part_get_mbr_id"
15126 msgstr ""
15127
15128 # type: verbatim
15129 #. type: verbatim
15130 #: ../src/guestfs-actions.pod:4825
15131 #, no-wrap
15132 msgid ""
15133 " int\n"
15134 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15135 "                          const char *device,\n"
15136 "                          int partnum);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #. type: textblock
15142 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3224
15143 msgid ""
15144 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15145 "partition C<partnum>."
15146 msgstr ""
15147
15148 # type: textblock
15149 #. type: textblock
15150 #: ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:5009
15151 msgid ""
15152 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15153 "undefined results for other partition table types (see "
15154 "C<guestfs_part_get_parttype>)."
15155 msgstr ""
15156
15157 # type: =head2
15158 #. type: =head2
15159 #: ../src/guestfs-actions.pod:4841
15160 msgid "guestfs_part_get_parttype"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #. type: verbatim
15165 #: ../src/guestfs-actions.pod:4843
15166 #, no-wrap
15167 msgid ""
15168 " char *\n"
15169 " guestfs_part_get_parttype (guestfs_h *g,\n"
15170 "                            const char *device);\n"
15171 "\n"
15172 msgstr ""
15173
15174 # type: textblock
15175 #. type: textblock
15176 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3235
15177 msgid ""
15178 "This command examines the partition table on C<device> and returns the "
15179 "partition table type (format) being used."
15180 msgstr ""
15181
15182 # type: textblock
15183 #. type: textblock
15184 #: ../src/guestfs-actions.pod:4850
15185 msgid ""
15186 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15187 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15188 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15189 msgstr ""
15190
15191 # type: =head2
15192 #. type: =head2
15193 #: ../src/guestfs-actions.pod:4860
15194 msgid "guestfs_part_init"
15195 msgstr ""
15196
15197 # type: verbatim
15198 #. type: verbatim
15199 #: ../src/guestfs-actions.pod:4862
15200 #, no-wrap
15201 msgid ""
15202 " int\n"
15203 " guestfs_part_init (guestfs_h *g,\n"
15204 "                    const char *device,\n"
15205 "                    const char *parttype);\n"
15206 "\n"
15207 msgstr ""
15208
15209 # type: textblock
15210 #. type: textblock
15211 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3247
15212 msgid ""
15213 "This creates an empty partition table on C<device> of one of the partition "
15214 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15215 "(for large disks)."
15216 msgstr ""
15217
15218 # type: textblock
15219 #. type: textblock
15220 #: ../src/guestfs-actions.pod:4871
15221 msgid ""
15222 "Initially there are no partitions.  Following this, you should call "
15223 "C<guestfs_part_add> for each partition required."
15224 msgstr ""
15225
15226 # type: textblock
15227 #. type: textblock
15228 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3254
15229 msgid "Possible values for C<parttype> are:"
15230 msgstr ""
15231
15232 # type: =item
15233 #. type: =item
15234 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3258
15235 msgid "B<efi> | B<gpt>"
15236 msgstr ""
15237
15238 # type: textblock
15239 #. type: textblock
15240 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3260
15241 msgid "Intel EFI / GPT partition table."
15242 msgstr ""
15243
15244 # type: textblock
15245 #. type: textblock
15246 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3262
15247 msgid ""
15248 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15249 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15250 "the C<mbr> format."
15251 msgstr ""
15252
15253 # type: =item
15254 #. type: =item
15255 #: ../src/guestfs-actions.pod:4886 ../fish/guestfish-actions.pod:3266
15256 msgid "B<mbr> | B<msdos>"
15257 msgstr ""
15258
15259 # type: textblock
15260 #. type: textblock
15261 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3268
15262 msgid ""
15263 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15264 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15265 "TB.  For large disks we recommend using C<gpt>."
15266 msgstr ""
15267
15268 # type: textblock
15269 #. type: textblock
15270 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3275
15271 msgid ""
15272 "Other partition table types that may work but are not supported include:"
15273 msgstr ""
15274
15275 # type: =item
15276 #. type: =item
15277 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3280
15278 msgid "B<aix>"
15279 msgstr ""
15280
15281 # type: textblock
15282 #. type: textblock
15283 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3282
15284 msgid "AIX disk labels."
15285 msgstr ""
15286
15287 # type: =item
15288 #. type: =item
15289 #: ../src/guestfs-actions.pod:4904 ../fish/guestfish-actions.pod:3284
15290 msgid "B<amiga> | B<rdb>"
15291 msgstr ""
15292
15293 # type: textblock
15294 #. type: textblock
15295 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3286
15296 msgid "Amiga \"Rigid Disk Block\" format."
15297 msgstr ""
15298
15299 # type: =item
15300 #. type: =item
15301 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3288
15302 msgid "B<bsd>"
15303 msgstr ""
15304
15305 # type: textblock
15306 #. type: textblock
15307 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3290
15308 msgid "BSD disk labels."
15309 msgstr ""
15310
15311 # type: =item
15312 #. type: =item
15313 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3292
15314 msgid "B<dasd>"
15315 msgstr ""
15316
15317 # type: textblock
15318 #. type: textblock
15319 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3294
15320 msgid "DASD, used on IBM mainframes."
15321 msgstr ""
15322
15323 # type: =item
15324 #. type: =item
15325 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3296
15326 msgid "B<dvh>"
15327 msgstr ""
15328
15329 # type: textblock
15330 #. type: textblock
15331 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3298
15332 msgid "MIPS/SGI volumes."
15333 msgstr ""
15334
15335 # type: =item
15336 #. type: =item
15337 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3300
15338 msgid "B<mac>"
15339 msgstr ""
15340
15341 # type: textblock
15342 #. type: textblock
15343 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3302
15344 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15345 msgstr ""
15346
15347 # type: =item
15348 #. type: =item
15349 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3304
15350 msgid "B<pc98>"
15351 msgstr ""
15352
15353 # type: textblock
15354 #. type: textblock
15355 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3306
15356 msgid "NEC PC-98 format, common in Japan apparently."
15357 msgstr ""
15358
15359 # type: =item
15360 #. type: =item
15361 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3308
15362 msgid "B<sun>"
15363 msgstr ""
15364
15365 # type: textblock
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3310
15368 msgid "Sun disk labels."
15369 msgstr ""
15370
15371 # type: =head2
15372 #. type: =head2
15373 #: ../src/guestfs-actions.pod:4938
15374 msgid "guestfs_part_list"
15375 msgstr ""
15376
15377 # type: verbatim
15378 #. type: verbatim
15379 #: ../src/guestfs-actions.pod:4940
15380 #, no-wrap
15381 msgid ""
15382 " struct guestfs_partition_list *\n"
15383 " guestfs_part_list (guestfs_h *g,\n"
15384 "                    const char *device);\n"
15385 "\n"
15386 msgstr ""
15387
15388 # type: textblock
15389 #. type: textblock
15390 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3318
15391 msgid ""
15392 "This command parses the partition table on C<device> and returns the list of "
15393 "partitions found."
15394 msgstr ""
15395
15396 # type: textblock
15397 #. type: textblock
15398 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3321
15399 msgid "The fields in the returned structure are:"
15400 msgstr ""
15401
15402 # type: =item
15403 #. type: =item
15404 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3325
15405 msgid "B<part_num>"
15406 msgstr ""
15407
15408 # type: textblock
15409 #. type: textblock
15410 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3327
15411 msgid "Partition number, counting from 1."
15412 msgstr ""
15413
15414 # type: =item
15415 #. type: =item
15416 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3329
15417 msgid "B<part_start>"
15418 msgstr ""
15419
15420 # type: textblock
15421 #. type: textblock
15422 #: ../src/guestfs-actions.pod:4957
15423 msgid ""
15424 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15425 "the device's sector size, see C<guestfs_blockdev_getss>."
15426 msgstr ""
15427
15428 # type: =item
15429 #. type: =item
15430 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3334
15431 msgid "B<part_end>"
15432 msgstr ""
15433
15434 # type: textblock
15435 #. type: textblock
15436 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3336
15437 msgid "End of the partition in bytes."
15438 msgstr ""
15439
15440 # type: =item
15441 #. type: =item
15442 #: ../src/guestfs-actions.pod:4964 ../fish/guestfish-actions.pod:3338
15443 msgid "B<part_size>"
15444 msgstr ""
15445
15446 # type: textblock
15447 #. type: textblock
15448 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3340
15449 msgid "Size of the partition in bytes."
15450 msgstr ""
15451
15452 # type: textblock
15453 #. type: textblock
15454 #: ../src/guestfs-actions.pod:4970
15455 msgid ""
15456 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15457 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15458 "use>."
15459 msgstr ""
15460
15461 # type: =head2
15462 #. type: =head2
15463 #: ../src/guestfs-actions.pod:4976
15464 msgid "guestfs_part_set_bootable"
15465 msgstr ""
15466
15467 # type: verbatim
15468 #. type: verbatim
15469 #: ../src/guestfs-actions.pod:4978
15470 #, no-wrap
15471 msgid ""
15472 " int\n"
15473 " guestfs_part_set_bootable (guestfs_h *g,\n"
15474 "                            const char *device,\n"
15475 "                            int partnum,\n"
15476 "                            int bootable);\n"
15477 "\n"
15478 msgstr ""
15479
15480 # type: textblock
15481 #. type: textblock
15482 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3348
15483 msgid ""
15484 "This sets the bootable flag on partition numbered C<partnum> on device "
15485 "C<device>.  Note that partitions are numbered from 1."
15486 msgstr ""
15487
15488 # type: textblock
15489 #. type: textblock
15490 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3351
15491 msgid ""
15492 "The bootable flag is used by some operating systems (notably Windows) to "
15493 "determine which partition to boot from.  It is by no means universally "
15494 "recognized."
15495 msgstr ""
15496
15497 # type: =head2
15498 #. type: =head2
15499 #: ../src/guestfs-actions.pod:4995
15500 msgid "guestfs_part_set_mbr_id"
15501 msgstr ""
15502
15503 # type: verbatim
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:4997
15506 #, no-wrap
15507 msgid ""
15508 " int\n"
15509 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15510 "                          const char *device,\n"
15511 "                          int partnum,\n"
15512 "                          int idbyte);\n"
15513 "\n"
15514 msgstr ""
15515
15516 # type: textblock
15517 #. type: textblock
15518 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3359
15519 msgid ""
15520 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15521 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15522 "documentation are in fact hexadecimal numbers, but usually documented "
15523 "without any leading \"0x\" which might be confusing."
15524 msgstr ""
15525
15526 # type: =head2
15527 #. type: =head2
15528 #: ../src/guestfs-actions.pod:5017
15529 msgid "guestfs_part_set_name"
15530 msgstr ""
15531
15532 # type: verbatim
15533 #. type: verbatim
15534 #: ../src/guestfs-actions.pod:5019
15535 #, no-wrap
15536 msgid ""
15537 " int\n"
15538 " guestfs_part_set_name (guestfs_h *g,\n"
15539 "                        const char *device,\n"
15540 "                        int partnum,\n"
15541 "                        const char *name);\n"
15542 "\n"
15543 msgstr ""
15544
15545 # type: textblock
15546 #. type: textblock
15547 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3373
15548 msgid ""
15549 "This sets the partition name on partition numbered C<partnum> on device "
15550 "C<device>.  Note that partitions are numbered from 1."
15551 msgstr ""
15552
15553 # type: textblock
15554 #. type: textblock
15555 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3376
15556 msgid ""
15557 "The partition name can only be set on certain types of partition table.  "
15558 "This works on C<gpt> but not on C<mbr> partitions."
15559 msgstr ""
15560
15561 # type: =head2
15562 #. type: =head2
15563 #: ../src/guestfs-actions.pod:5035
15564 msgid "guestfs_part_to_dev"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #. type: verbatim
15569 #: ../src/guestfs-actions.pod:5037
15570 #, no-wrap
15571 msgid ""
15572 " char *\n"
15573 " guestfs_part_to_dev (guestfs_h *g,\n"
15574 "                      const char *partition);\n"
15575 "\n"
15576 msgstr ""
15577
15578 # type: textblock
15579 #. type: textblock
15580 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3383
15581 msgid ""
15582 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15583 "partition number, returning the device name (eg. \"/dev/sdb\")."
15584 msgstr ""
15585
15586 # type: textblock
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:5045
15589 msgid ""
15590 "The named partition must exist, for example as a string returned from "
15591 "C<guestfs_list_partitions>."
15592 msgstr ""
15593
15594 # type: =head2
15595 #. type: =head2
15596 #: ../src/guestfs-actions.pod:5053
15597 msgid "guestfs_ping_daemon"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #. type: verbatim
15602 #: ../src/guestfs-actions.pod:5055
15603 #, no-wrap
15604 msgid ""
15605 " int\n"
15606 " guestfs_ping_daemon (guestfs_h *g);\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: textblock
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3394
15613 msgid ""
15614 "This is a test probe into the guestfs daemon running inside the qemu "
15615 "subprocess.  Calling this function checks that the daemon responds to the "
15616 "ping message, without affecting the daemon or attached block device(s) in "
15617 "any other way."
15618 msgstr ""
15619
15620 # type: =head2
15621 #. type: =head2
15622 #: ../src/guestfs-actions.pod:5067
15623 msgid "guestfs_pread"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #. type: verbatim
15628 #: ../src/guestfs-actions.pod:5069
15629 #, no-wrap
15630 msgid ""
15631 " char *\n"
15632 " guestfs_pread (guestfs_h *g,\n"
15633 "                const char *path,\n"
15634 "                int count,\n"
15635 "                int64_t offset,\n"
15636 "                size_t *size_r);\n"
15637 "\n"
15638 msgstr ""
15639
15640 # type: textblock
15641 #. type: textblock
15642 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3403
15643 msgid ""
15644 "This command lets you read part of a file.  It reads C<count> bytes of the "
15645 "file, starting at C<offset>, from file C<path>."
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5105
15651 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3421
15652 msgid ""
15653 "This may read fewer bytes than requested.  For further details see the "
15654 "L<pread(2)> system call."
15655 msgstr ""
15656
15657 # type: textblock
15658 #. type: textblock
15659 #: ../src/guestfs-actions.pod:5082
15660 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15661 msgstr ""
15662
15663 # type: =head2
15664 #. type: =head2
15665 #: ../src/guestfs-actions.pod:5093
15666 msgid "guestfs_pread_device"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #. type: verbatim
15671 #: ../src/guestfs-actions.pod:5095
15672 #, no-wrap
15673 msgid ""
15674 " char *\n"
15675 " guestfs_pread_device (guestfs_h *g,\n"
15676 "                       const char *device,\n"
15677 "                       int count,\n"
15678 "                       int64_t offset,\n"
15679 "                       size_t *size_r);\n"
15680 "\n"
15681 msgstr ""
15682
15683 # type: textblock
15684 #. type: textblock
15685 #: ../src/guestfs-actions.pod:5102 ../fish/guestfish-actions.pod:3418
15686 msgid ""
15687 "This command lets you read part of a file.  It reads C<count> bytes of "
15688 "C<device>, starting at C<offset>."
15689 msgstr ""
15690
15691 # type: textblock
15692 #. type: textblock
15693 #: ../src/guestfs-actions.pod:5108
15694 msgid "See also C<guestfs_pread>."
15695 msgstr ""
15696
15697 # type: textblock
15698 #. type: textblock
15699 #: ../src/guestfs-actions.pod:5117
15700 msgid "(Added in 1.5.21)"
15701 msgstr ""
15702
15703 # type: =head2
15704 #. type: =head2
15705 #: ../src/guestfs-actions.pod:5119
15706 msgid "guestfs_pvcreate"
15707 msgstr ""
15708
15709 # type: verbatim
15710 #. type: verbatim
15711 #: ../src/guestfs-actions.pod:5121
15712 #, no-wrap
15713 msgid ""
15714 " int\n"
15715 " guestfs_pvcreate (guestfs_h *g,\n"
15716 "                   const char *device);\n"
15717 "\n"
15718 msgstr ""
15719
15720 # type: textblock
15721 #. type: textblock
15722 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3433
15723 msgid ""
15724 "This creates an LVM physical volume on the named C<device>, where C<device> "
15725 "should usually be a partition name such as C</dev/sda1>."
15726 msgstr ""
15727
15728 # type: =head2
15729 #. type: =head2
15730 #: ../src/guestfs-actions.pod:5133
15731 msgid "guestfs_pvremove"
15732 msgstr ""
15733
15734 # type: verbatim
15735 #. type: verbatim
15736 #: ../src/guestfs-actions.pod:5135
15737 #, no-wrap
15738 msgid ""
15739 " int\n"
15740 " guestfs_pvremove (guestfs_h *g,\n"
15741 "                   const char *device);\n"
15742 "\n"
15743 msgstr ""
15744
15745 # type: textblock
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3441
15748 msgid ""
15749 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15750 "it."
15751 msgstr ""
15752
15753 # type: textblock
15754 #. type: textblock
15755 #: ../src/guestfs-actions.pod:5142 ../fish/guestfish-actions.pod:3444
15756 msgid ""
15757 "The implementation uses the C<pvremove> command which refuses to wipe "
15758 "physical volumes that contain any volume groups, so you have to remove those "
15759 "first."
15760 msgstr ""
15761
15762 # type: =head2
15763 #. type: =head2
15764 #: ../src/guestfs-actions.pod:5150
15765 msgid "guestfs_pvresize"
15766 msgstr ""
15767
15768 # type: verbatim
15769 #. type: verbatim
15770 #: ../src/guestfs-actions.pod:5152
15771 #, no-wrap
15772 msgid ""
15773 " int\n"
15774 " guestfs_pvresize (guestfs_h *g,\n"
15775 "                   const char *device);\n"
15776 "\n"
15777 msgstr ""
15778
15779 # type: textblock
15780 #. type: textblock
15781 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3452
15782 msgid ""
15783 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15784 "the new size of the underlying device."
15785 msgstr ""
15786
15787 # type: =head2
15788 #. type: =head2
15789 #: ../src/guestfs-actions.pod:5163
15790 msgid "guestfs_pvresize_size"
15791 msgstr ""
15792
15793 # type: verbatim
15794 #. type: verbatim
15795 #: ../src/guestfs-actions.pod:5165
15796 #, no-wrap
15797 msgid ""
15798 " int\n"
15799 " guestfs_pvresize_size (guestfs_h *g,\n"
15800 "                        const char *device,\n"
15801 "                        int64_t size);\n"
15802 "\n"
15803 msgstr ""
15804
15805 # type: textblock
15806 #. type: textblock
15807 #: ../src/guestfs-actions.pod:5170
15808 msgid ""
15809 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15810 "specify the new size (in bytes) explicitly."
15811 msgstr ""
15812
15813 # type: =head2
15814 #. type: =head2
15815 #: ../src/guestfs-actions.pod:5177
15816 msgid "guestfs_pvs"
15817 msgstr ""
15818
15819 # type: verbatim
15820 #. type: verbatim
15821 #: ../src/guestfs-actions.pod:5179
15822 #, no-wrap
15823 msgid ""
15824 " char **\n"
15825 " guestfs_pvs (guestfs_h *g);\n"
15826 "\n"
15827 msgstr ""
15828
15829 # type: textblock
15830 #. type: textblock
15831 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3466
15832 msgid ""
15833 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15834 "(8)> command."
15835 msgstr ""
15836
15837 # type: textblock
15838 #. type: textblock
15839 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3469
15840 msgid ""
15841 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15842 "sda2>)."
15843 msgstr ""
15844
15845 # type: textblock
15846 #. type: textblock
15847 #: ../src/guestfs-actions.pod:5188
15848 msgid "See also C<guestfs_pvs_full>."
15849 msgstr ""
15850
15851 # type: =head2
15852 #. type: =head2
15853 #: ../src/guestfs-actions.pod:5196
15854 msgid "guestfs_pvs_full"
15855 msgstr ""
15856
15857 # type: verbatim
15858 #. type: verbatim
15859 #: ../src/guestfs-actions.pod:5198
15860 #, no-wrap
15861 msgid ""
15862 " struct guestfs_lvm_pv_list *\n"
15863 " guestfs_pvs_full (guestfs_h *g);\n"
15864 "\n"
15865 msgstr ""
15866
15867 # type: textblock
15868 #. type: textblock
15869 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3478
15870 msgid ""
15871 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15872 "(8)> command.  The \"full\" version includes all fields."
15873 msgstr ""
15874
15875 # type: textblock
15876 #. type: textblock
15877 #: ../src/guestfs-actions.pod:5204
15878 msgid ""
15879 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15880 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15881 msgstr ""
15882
15883 # type: =head2
15884 #. type: =head2
15885 #: ../src/guestfs-actions.pod:5210
15886 msgid "guestfs_pvuuid"
15887 msgstr ""
15888
15889 # type: verbatim
15890 #. type: verbatim
15891 #: ../src/guestfs-actions.pod:5212
15892 #, no-wrap
15893 msgid ""
15894 " char *\n"
15895 " guestfs_pvuuid (guestfs_h *g,\n"
15896 "                 const char *device);\n"
15897 "\n"
15898 msgstr ""
15899
15900 # type: textblock
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:5216 ../fish/guestfish-actions.pod:3485
15903 msgid "This command returns the UUID of the LVM PV C<device>."
15904 msgstr ""
15905
15906 # type: =head2
15907 #. type: =head2
15908 #: ../src/guestfs-actions.pod:5223
15909 msgid "guestfs_pwrite"
15910 msgstr ""
15911
15912 # type: verbatim
15913 #. type: verbatim
15914 #: ../src/guestfs-actions.pod:5225
15915 #, no-wrap
15916 msgid ""
15917 " int\n"
15918 " guestfs_pwrite (guestfs_h *g,\n"
15919 "                 const char *path,\n"
15920 "                 const char *content,\n"
15921 "                 size_t content_size,\n"
15922 "                 int64_t offset);\n"
15923 "\n"
15924 msgstr ""
15925
15926 # type: textblock
15927 #. type: textblock
15928 #: ../src/guestfs-actions.pod:5232 ../fish/guestfish-actions.pod:3491
15929 msgid ""
15930 "This command writes to part of a file.  It writes the data buffer C<content> "
15931 "to the file C<path> starting at offset C<offset>."
15932 msgstr ""
15933
15934 # type: textblock
15935 #. type: textblock
15936 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3494
15937 msgid ""
15938 "This command implements the L<pwrite(2)> system call, and like that system "
15939 "call it may not write the full data requested.  The return value is the "
15940 "number of bytes that were actually written to the file.  This could even be "
15941 "0, although short writes are unlikely for regular files in ordinary "
15942 "circumstances."
15943 msgstr ""
15944
15945 # type: textblock
15946 #. type: textblock
15947 #: ../src/guestfs-actions.pod:5241
15948 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15949 msgstr ""
15950
15951 # type: =head2
15952 #. type: =head2
15953 #: ../src/guestfs-actions.pod:5250
15954 msgid "guestfs_pwrite_device"
15955 msgstr ""
15956
15957 # type: verbatim
15958 #. type: verbatim
15959 #: ../src/guestfs-actions.pod:5252
15960 #, no-wrap
15961 msgid ""
15962 " int\n"
15963 " guestfs_pwrite_device (guestfs_h *g,\n"
15964 "                        const char *device,\n"
15965 "                        const char *content,\n"
15966 "                        size_t content_size,\n"
15967 "                        int64_t offset);\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: textblock
15972 #. type: textblock
15973 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
15974 msgid ""
15975 "This command writes to part of a device.  It writes the data buffer "
15976 "C<content> to C<device> starting at offset C<offset>."
15977 msgstr ""
15978
15979 # type: textblock
15980 #. type: textblock
15981 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:3512
15982 msgid ""
15983 "This command implements the L<pwrite(2)> system call, and like that system "
15984 "call it may not write the full data requested (although short writes to disk "
15985 "devices and partitions are probably impossible with standard Linux kernels)."
15986 msgstr ""
15987
15988 # type: textblock
15989 #. type: textblock
15990 #: ../src/guestfs-actions.pod:5267
15991 msgid "See also C<guestfs_pwrite>."
15992 msgstr ""
15993
15994 # type: textblock
15995 #. type: textblock
15996 #: ../src/guestfs-actions.pod:5274
15997 msgid "(Added in 1.5.20)"
15998 msgstr ""
15999
16000 # type: =head2
16001 #. type: =head2
16002 #: ../src/guestfs-actions.pod:5276
16003 msgid "guestfs_read_file"
16004 msgstr ""
16005
16006 # type: verbatim
16007 #. type: verbatim
16008 #: ../src/guestfs-actions.pod:5278
16009 #, no-wrap
16010 msgid ""
16011 " char *\n"
16012 " guestfs_read_file (guestfs_h *g,\n"
16013 "                    const char *path,\n"
16014 "                    size_t *size_r);\n"
16015 "\n"
16016 msgstr ""
16017
16018 # type: textblock
16019 #. type: textblock
16020 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3526
16021 msgid "This calls returns the contents of the file C<path> as a buffer."
16022 msgstr ""
16023
16024 # type: textblock
16025 #. type: textblock
16026 #: ../src/guestfs-actions.pod:5286
16027 msgid ""
16028 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16029 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16030 "function is limited in the total size of file that can be handled."
16031 msgstr ""
16032
16033 # type: textblock
16034 #. type: textblock
16035 #: ../src/guestfs-actions.pod:5298
16036 msgid "(Added in 1.0.63)"
16037 msgstr ""
16038
16039 # type: =head2
16040 #. type: =head2
16041 #: ../src/guestfs-actions.pod:5300
16042 msgid "guestfs_read_lines"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #. type: verbatim
16047 #: ../src/guestfs-actions.pod:5302
16048 #, no-wrap
16049 msgid ""
16050 " char **\n"
16051 " guestfs_read_lines (guestfs_h *g,\n"
16052 "                     const char *path);\n"
16053 "\n"
16054 msgstr ""
16055
16056 # type: textblock
16057 #. type: textblock
16058 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3543
16059 msgid ""
16060 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16061 "C<CRLF> character sequences are I<not> returned."
16062 msgstr ""
16063
16064 # type: textblock
16065 #. type: textblock
16066 #: ../src/guestfs-actions.pod:5311
16067 msgid ""
16068 "Note that this function cannot correctly handle binary files (specifically, "
16069 "files containing C<\\0> character which is treated as end of line).  For "
16070 "those you need to use the C<guestfs_read_file> function which has a more "
16071 "complex interface."
16072 msgstr ""
16073
16074 # type: =head2
16075 #. type: =head2
16076 #: ../src/guestfs-actions.pod:5322
16077 msgid "guestfs_readdir"
16078 msgstr ""
16079
16080 # type: verbatim
16081 #. type: verbatim
16082 #: ../src/guestfs-actions.pod:5324
16083 #, no-wrap
16084 msgid ""
16085 " struct guestfs_dirent_list *\n"
16086 " guestfs_readdir (guestfs_h *g,\n"
16087 "                  const char *dir);\n"
16088 "\n"
16089 msgstr ""
16090
16091 # type: textblock
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3555
16094 msgid "This returns the list of directory entries in directory C<dir>."
16095 msgstr ""
16096
16097 # type: textblock
16098 #. type: textblock
16099 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3557
16100 msgid ""
16101 "All entries in the directory are returned, including C<.> and C<..>.  The "
16102 "entries are I<not> sorted, but returned in the same order as the underlying "
16103 "filesystem."
16104 msgstr ""
16105
16106 # type: textblock
16107 #. type: textblock
16108 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3561
16109 msgid ""
16110 "Also this call returns basic file type information about each file.  The "
16111 "C<ftyp> field will contain one of the following characters:"
16112 msgstr ""
16113
16114 # type: =item
16115 #. type: =item
16116 #: ../src/guestfs-actions.pod:5339 ../fish/guestfish-actions.pod:3566
16117 msgid "'b'"
16118 msgstr ""
16119
16120 # type: textblock
16121 #. type: textblock
16122 #: ../src/guestfs-actions.pod:5341 ../fish/guestfish-actions.pod:3568
16123 msgid "Block special"
16124 msgstr ""
16125
16126 # type: =item
16127 #. type: =item
16128 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3570
16129 msgid "'c'"
16130 msgstr ""
16131
16132 # type: textblock
16133 #. type: textblock
16134 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3572
16135 msgid "Char special"
16136 msgstr ""
16137
16138 # type: =item
16139 #. type: =item
16140 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:3574
16141 msgid "'d'"
16142 msgstr ""
16143
16144 # type: textblock
16145 #. type: textblock
16146 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3576
16147 msgid "Directory"
16148 msgstr ""
16149
16150 # type: =item
16151 #. type: =item
16152 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:3578
16153 msgid "'f'"
16154 msgstr ""
16155
16156 # type: textblock
16157 #. type: textblock
16158 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3580
16159 msgid "FIFO (named pipe)"
16160 msgstr ""
16161
16162 # type: =item
16163 #. type: =item
16164 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3582
16165 msgid "'l'"
16166 msgstr ""
16167
16168 # type: textblock
16169 #. type: textblock
16170 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3584
16171 msgid "Symbolic link"
16172 msgstr ""
16173
16174 # type: =item
16175 #. type: =item
16176 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3586
16177 msgid "'r'"
16178 msgstr ""
16179
16180 # type: textblock
16181 #. type: textblock
16182 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3588
16183 msgid "Regular file"
16184 msgstr ""
16185
16186 # type: =item
16187 #. type: =item
16188 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3590
16189 msgid "'s'"
16190 msgstr ""
16191
16192 # type: textblock
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3592
16195 msgid "Socket"
16196 msgstr ""
16197
16198 # type: =item
16199 #. type: =item
16200 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3594
16201 msgid "'u'"
16202 msgstr ""
16203
16204 # type: textblock
16205 #. type: textblock
16206 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:3596
16207 msgid "Unknown file type"
16208 msgstr ""
16209
16210 # type: =item
16211 #. type: =item
16212 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3598
16213 msgid "'?'"
16214 msgstr ""
16215
16216 # type: textblock
16217 #. type: textblock
16218 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3600
16219 msgid ""
16220 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16221 msgstr ""
16222
16223 # type: textblock
16224 #. type: textblock
16225 #: ../src/guestfs-actions.pod:5378
16226 msgid ""
16227 "This function is primarily intended for use by programs.  To get a simple "
16228 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16229 "consumption, use C<guestfs_ll>."
16230 msgstr ""
16231
16232 # type: textblock
16233 #. type: textblock
16234 #: ../src/guestfs-actions.pod:5382
16235 msgid ""
16236 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16237 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16238 msgstr ""
16239
16240 # type: =head2
16241 #. type: =head2
16242 #: ../src/guestfs-actions.pod:5388
16243 msgid "guestfs_readlink"
16244 msgstr ""
16245
16246 # type: verbatim
16247 #. type: verbatim
16248 #: ../src/guestfs-actions.pod:5390
16249 #, no-wrap
16250 msgid ""
16251 " char *\n"
16252 " guestfs_readlink (guestfs_h *g,\n"
16253 "                   const char *path);\n"
16254 "\n"
16255 msgstr ""
16256
16257 # type: textblock
16258 #. type: textblock
16259 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3613
16260 msgid "This command reads the target of a symbolic link."
16261 msgstr ""
16262
16263 # type: =head2
16264 #. type: =head2
16265 #: ../src/guestfs-actions.pod:5401
16266 msgid "guestfs_readlinklist"
16267 msgstr ""
16268
16269 # type: verbatim
16270 #. type: verbatim
16271 #: ../src/guestfs-actions.pod:5403
16272 #, no-wrap
16273 msgid ""
16274 " char **\n"
16275 " guestfs_readlinklist (guestfs_h *g,\n"
16276 "                       const char *path,\n"
16277 "                       char *const *names);\n"
16278 "\n"
16279 msgstr ""
16280
16281 # type: textblock
16282 #. type: textblock
16283 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3619
16284 msgid ""
16285 "This call allows you to do a C<readlink> operation on multiple files, where "
16286 "all files are in the directory C<path>.  C<names> is the list of files from "
16287 "this directory."
16288 msgstr ""
16289
16290 # type: textblock
16291 #. type: textblock
16292 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3623
16293 msgid ""
16294 "On return you get a list of strings, with a one-to-one correspondence to the "
16295 "C<names> list.  Each string is the value of the symbolic link."
16296 msgstr ""
16297
16298 # type: textblock
16299 #. type: textblock
16300 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3627
16301 msgid ""
16302 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16303 "result string is the empty string C<\"\">.  However the whole operation is "
16304 "completed even if there were C<readlink(2)> errors, and so you can call this "
16305 "function with names where you don't know if they are symbolic links already "
16306 "(albeit slightly less efficient)."
16307 msgstr ""
16308
16309 # type: textblock
16310 #. type: textblock
16311 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3634
16312 msgid ""
16313 "This call is intended for programs that want to efficiently list a directory "
16314 "contents without making many round-trips.  Very long directory listings "
16315 "might cause the protocol message size to be exceeded, causing this call to "
16316 "fail.  The caller must split up such requests into smaller groups of names."
16317 msgstr ""
16318
16319 # type: =head2
16320 #. type: =head2
16321 #: ../src/guestfs-actions.pod:5436
16322 msgid "guestfs_realpath"
16323 msgstr ""
16324
16325 # type: verbatim
16326 #. type: verbatim
16327 #: ../src/guestfs-actions.pod:5438
16328 #, no-wrap
16329 msgid ""
16330 " char *\n"
16331 " guestfs_realpath (guestfs_h *g,\n"
16332 "                   const char *path);\n"
16333 "\n"
16334 msgstr ""
16335
16336 # type: textblock
16337 #. type: textblock
16338 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3645
16339 msgid ""
16340 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16341 "has no C<.>, C<..> or symbolic link path elements."
16342 msgstr ""
16343
16344 # type: =head2
16345 #. type: =head2
16346 #: ../src/guestfs-actions.pod:5450
16347 msgid "guestfs_removexattr"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #. type: verbatim
16352 #: ../src/guestfs-actions.pod:5452
16353 #, no-wrap
16354 msgid ""
16355 " int\n"
16356 " guestfs_removexattr (guestfs_h *g,\n"
16357 "                      const char *xattr,\n"
16358 "                      const char *path);\n"
16359 "\n"
16360 msgstr ""
16361
16362 # type: textblock
16363 #. type: textblock
16364 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3652
16365 msgid ""
16366 "This call removes the extended attribute named C<xattr> of the file C<path>."
16367 msgstr ""
16368
16369 # type: textblock
16370 #. type: textblock
16371 #: ../src/guestfs-actions.pod:5460
16372 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16373 msgstr ""
16374
16375 # type: =head2
16376 #. type: =head2
16377 #: ../src/guestfs-actions.pod:5466
16378 msgid "guestfs_resize2fs"
16379 msgstr ""
16380
16381 # type: verbatim
16382 #. type: verbatim
16383 #: ../src/guestfs-actions.pod:5468
16384 #, no-wrap
16385 msgid ""
16386 " int\n"
16387 " guestfs_resize2fs (guestfs_h *g,\n"
16388 "                    const char *device);\n"
16389 "\n"
16390 msgstr ""
16391
16392 # type: textblock
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:5472 ../fish/guestfish-actions.pod:3661
16395 msgid ""
16396 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16397 "underlying device."
16398 msgstr ""
16399
16400 # type: textblock
16401 #. type: textblock
16402 #: ../src/guestfs-actions.pod:5475
16403 msgid ""
16404 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16405 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16406 "sometimes gives an error about this and sometimes not.  In any case, it is "
16407 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16408 msgstr ""
16409
16410 #. type: =head2
16411 #: ../src/guestfs-actions.pod:5485
16412 msgid "guestfs_resize2fs_M"
16413 msgstr ""
16414
16415 #. type: verbatim
16416 #: ../src/guestfs-actions.pod:5487
16417 #, no-wrap
16418 msgid ""
16419 " int\n"
16420 " guestfs_resize2fs_M (guestfs_h *g,\n"
16421 "                      const char *device);\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../src/guestfs-actions.pod:5491
16427 msgid ""
16428 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
16429 "resized to its minimum size.  This works like the C<-M> option to the "
16430 "C<resize2fs> command."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../src/guestfs-actions.pod:5495
16435 msgid ""
16436 "To get the resulting size of the filesystem you should call "
16437 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
16438 "These two numbers, multiplied together, give the resulting size of the "
16439 "minimal filesystem in bytes."
16440 msgstr ""
16441
16442 # type: =head2
16443 #. type: =head2
16444 #: ../src/guestfs-actions.pod:5502
16445 msgid "guestfs_resize2fs_size"
16446 msgstr ""
16447
16448 # type: verbatim
16449 #. type: verbatim
16450 #: ../src/guestfs-actions.pod:5504
16451 #, no-wrap
16452 msgid ""
16453 " int\n"
16454 " guestfs_resize2fs_size (guestfs_h *g,\n"
16455 "                         const char *device,\n"
16456 "                         int64_t size);\n"
16457 "\n"
16458 msgstr ""
16459
16460 # type: textblock
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:5509
16463 msgid ""
16464 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16465 "to specify the new size (in bytes) explicitly."
16466 msgstr ""
16467
16468 # type: =head2
16469 #. type: =head2
16470 #: ../src/guestfs-actions.pod:5516
16471 msgid "guestfs_rm"
16472 msgstr ""
16473
16474 # type: verbatim
16475 #. type: verbatim
16476 #: ../src/guestfs-actions.pod:5518
16477 #, no-wrap
16478 msgid ""
16479 " int\n"
16480 " guestfs_rm (guestfs_h *g,\n"
16481 "             const char *path);\n"
16482 "\n"
16483 msgstr ""
16484
16485 # type: textblock
16486 #. type: textblock
16487 #: ../src/guestfs-actions.pod:5522 ../fish/guestfish-actions.pod:3694
16488 msgid "Remove the single file C<path>."
16489 msgstr ""
16490
16491 # type: =head2
16492 #. type: =head2
16493 #: ../src/guestfs-actions.pod:5528
16494 msgid "guestfs_rm_rf"
16495 msgstr ""
16496
16497 # type: verbatim
16498 #. type: verbatim
16499 #: ../src/guestfs-actions.pod:5530
16500 #, no-wrap
16501 msgid ""
16502 " int\n"
16503 " guestfs_rm_rf (guestfs_h *g,\n"
16504 "                const char *path);\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: textblock
16509 #. type: textblock
16510 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:3700
16511 msgid ""
16512 "Remove the file or directory C<path>, recursively removing the contents if "
16513 "its a directory.  This is like the C<rm -rf> shell command."
16514 msgstr ""
16515
16516 # type: =head2
16517 #. type: =head2
16518 #: ../src/guestfs-actions.pod:5542
16519 msgid "guestfs_rmdir"
16520 msgstr ""
16521
16522 # type: verbatim
16523 #. type: verbatim
16524 #: ../src/guestfs-actions.pod:5544
16525 #, no-wrap
16526 msgid ""
16527 " int\n"
16528 " guestfs_rmdir (guestfs_h *g,\n"
16529 "                const char *path);\n"
16530 "\n"
16531 msgstr ""
16532
16533 # type: textblock
16534 #. type: textblock
16535 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3708
16536 msgid "Remove the single directory C<path>."
16537 msgstr ""
16538
16539 # type: =head2
16540 #. type: =head2
16541 #: ../src/guestfs-actions.pod:5554
16542 msgid "guestfs_rmmountpoint"
16543 msgstr ""
16544
16545 # type: verbatim
16546 #. type: verbatim
16547 #: ../src/guestfs-actions.pod:5556
16548 #, no-wrap
16549 msgid ""
16550 " int\n"
16551 " guestfs_rmmountpoint (guestfs_h *g,\n"
16552 "                       const char *exemptpath);\n"
16553 "\n"
16554 msgstr ""
16555
16556 # type: textblock
16557 #. type: textblock
16558 #: ../src/guestfs-actions.pod:5560
16559 msgid ""
16560 "This calls removes a mountpoint that was previously created with "
16561 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16562 msgstr ""
16563
16564 # type: =head2
16565 #. type: =head2
16566 #: ../src/guestfs-actions.pod:5568
16567 msgid "guestfs_scrub_device"
16568 msgstr ""
16569
16570 # type: verbatim
16571 #. type: verbatim
16572 #: ../src/guestfs-actions.pod:5570
16573 #, no-wrap
16574 msgid ""
16575 " int\n"
16576 " guestfs_scrub_device (guestfs_h *g,\n"
16577 "                       const char *device);\n"
16578 "\n"
16579 msgstr ""
16580
16581 # type: textblock
16582 #. type: textblock
16583 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3722
16584 msgid ""
16585 "This command writes patterns over C<device> to make data retrieval more "
16586 "difficult."
16587 msgstr ""
16588
16589 # type: textblock
16590 #. type: textblock
16591 #: ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:5598
16592 #: ../src/guestfs-actions.pod:5617 ../fish/guestfish-actions.pod:3725
16593 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:3753
16594 msgid ""
16595 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16596 "more details."
16597 msgstr ""
16598
16599 # type: textblock
16600 #. type: textblock
16601 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5603
16602 #: ../src/guestfs-actions.pod:5622
16603 msgid "(Added in 1.0.52)"
16604 msgstr ""
16605
16606 # type: =head2
16607 #. type: =head2
16608 #: ../src/guestfs-actions.pod:5587
16609 msgid "guestfs_scrub_file"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #. type: verbatim
16614 #: ../src/guestfs-actions.pod:5589
16615 #, no-wrap
16616 msgid ""
16617 " int\n"
16618 " guestfs_scrub_file (guestfs_h *g,\n"
16619 "                     const char *file);\n"
16620 "\n"
16621 msgstr ""
16622
16623 # type: textblock
16624 #. type: textblock
16625 #: ../src/guestfs-actions.pod:5593 ../fish/guestfish-actions.pod:3735
16626 msgid ""
16627 "This command writes patterns over a file to make data retrieval more "
16628 "difficult."
16629 msgstr ""
16630
16631 # type: textblock
16632 #. type: textblock
16633 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3738
16634 msgid "The file is I<removed> after scrubbing."
16635 msgstr ""
16636
16637 # type: =head2
16638 #. type: =head2
16639 #: ../src/guestfs-actions.pod:5605
16640 msgid "guestfs_scrub_freespace"
16641 msgstr ""
16642
16643 # type: verbatim
16644 #. type: verbatim
16645 #: ../src/guestfs-actions.pod:5607
16646 #, no-wrap
16647 msgid ""
16648 " int\n"
16649 " guestfs_scrub_freespace (guestfs_h *g,\n"
16650 "                          const char *dir);\n"
16651 "\n"
16652 msgstr ""
16653
16654 # type: textblock
16655 #. type: textblock
16656 #: ../src/guestfs-actions.pod:5611
16657 msgid ""
16658 "This command creates the directory C<dir> and then fills it with files until "
16659 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16660 "and deletes them.  The intention is to scrub any free space on the partition "
16661 "containing C<dir>."
16662 msgstr ""
16663
16664 # type: =head2
16665 #. type: =head2
16666 #: ../src/guestfs-actions.pod:5624
16667 msgid "guestfs_set_append"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #. type: verbatim
16672 #: ../src/guestfs-actions.pod:5626
16673 #, no-wrap
16674 msgid ""
16675 " int\n"
16676 " guestfs_set_append (guestfs_h *g,\n"
16677 "                     const char *append);\n"
16678 "\n"
16679 msgstr ""
16680
16681 # type: textblock
16682 #. type: textblock
16683 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3762
16684 msgid ""
16685 "This function is used to add additional options to the guest kernel command "
16686 "line."
16687 msgstr ""
16688
16689 # type: textblock
16690 #. type: textblock
16691 #: ../src/guestfs-actions.pod:5633 ../fish/guestfish-actions.pod:3765
16692 msgid ""
16693 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16694 "environment variable."
16695 msgstr ""
16696
16697 # type: textblock
16698 #. type: textblock
16699 #: ../src/guestfs-actions.pod:5636 ../fish/guestfish-actions.pod:3768
16700 msgid ""
16701 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16702 "(libguestfs always adds a few of its own)."
16703 msgstr ""
16704
16705 # type: =head2
16706 #. type: =head2
16707 #: ../src/guestfs-actions.pod:5643
16708 msgid "guestfs_set_autosync"
16709 msgstr ""
16710
16711 # type: verbatim
16712 #. type: verbatim
16713 #: ../src/guestfs-actions.pod:5645
16714 #, no-wrap
16715 msgid ""
16716 " int\n"
16717 " guestfs_set_autosync (guestfs_h *g,\n"
16718 "                       int autosync);\n"
16719 "\n"
16720 msgstr ""
16721
16722 # type: textblock
16723 #. type: textblock
16724 #: ../src/guestfs-actions.pod:5649
16725 msgid ""
16726 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16727 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
16728 "the handle is closed (also if the program exits without closing handles)."
16729 msgstr ""
16730
16731 # type: textblock
16732 #. type: textblock
16733 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3782
16734 msgid ""
16735 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16736 "disabled by default)."
16737 msgstr ""
16738
16739 # type: =head2
16740 #. type: =head2
16741 #: ../src/guestfs-actions.pod:5661
16742 msgid "guestfs_set_direct"
16743 msgstr ""
16744
16745 # type: verbatim
16746 #. type: verbatim
16747 #: ../src/guestfs-actions.pod:5663
16748 #, no-wrap
16749 msgid ""
16750 " int\n"
16751 " guestfs_set_direct (guestfs_h *g,\n"
16752 "                     int direct);\n"
16753 "\n"
16754 msgstr ""
16755
16756 # type: textblock
16757 #. type: textblock
16758 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3791
16759 msgid ""
16760 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16761 "passed directly through to the appliance once it is launched."
16762 msgstr ""
16763
16764 # type: textblock
16765 #. type: textblock
16766 #: ../src/guestfs-actions.pod:5671
16767 msgid ""
16768 "One consequence of this is that log messages aren't caught by the library "
16769 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16770 "stdout."
16771 msgstr ""
16772
16773 # type: textblock
16774 #. type: textblock
16775 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3799
16776 msgid "You probably don't want to use this unless you know what you are doing."
16777 msgstr ""
16778
16779 # type: textblock
16780 #. type: textblock
16781 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3802
16782 msgid "The default is disabled."
16783 msgstr ""
16784
16785 # type: =head2
16786 #. type: =head2
16787 #: ../src/guestfs-actions.pod:5684
16788 msgid "guestfs_set_e2label"
16789 msgstr ""
16790
16791 # type: verbatim
16792 #. type: verbatim
16793 #: ../src/guestfs-actions.pod:5686
16794 #, no-wrap
16795 msgid ""
16796 " int\n"
16797 " guestfs_set_e2label (guestfs_h *g,\n"
16798 "                      const char *device,\n"
16799 "                      const char *label);\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: textblock
16804 #. type: textblock
16805 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3808
16806 msgid ""
16807 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16808 "C<label>.  Filesystem labels are limited to 16 characters."
16809 msgstr ""
16810
16811 # type: textblock
16812 #. type: textblock
16813 #: ../src/guestfs-actions.pod:5695
16814 msgid ""
16815 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16816 "the existing label on a filesystem."
16817 msgstr ""
16818
16819 # type: =head2
16820 #. type: =head2
16821 #: ../src/guestfs-actions.pod:5702
16822 msgid "guestfs_set_e2uuid"
16823 msgstr ""
16824
16825 # type: verbatim
16826 #. type: verbatim
16827 #: ../src/guestfs-actions.pod:5704
16828 #, no-wrap
16829 msgid ""
16830 " int\n"
16831 " guestfs_set_e2uuid (guestfs_h *g,\n"
16832 "                     const char *device,\n"
16833 "                     const char *uuid);\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: textblock
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3819
16840 msgid ""
16841 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16842 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16843 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16844 msgstr ""
16845
16846 # type: textblock
16847 #. type: textblock
16848 #: ../src/guestfs-actions.pod:5714
16849 msgid ""
16850 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16851 "the existing UUID of a filesystem."
16852 msgstr ""
16853
16854 # type: =head2
16855 #. type: =head2
16856 #: ../src/guestfs-actions.pod:5721
16857 msgid "guestfs_set_memsize"
16858 msgstr ""
16859
16860 # type: verbatim
16861 #. type: verbatim
16862 #: ../src/guestfs-actions.pod:5723
16863 #, no-wrap
16864 msgid ""
16865 " int\n"
16866 " guestfs_set_memsize (guestfs_h *g,\n"
16867 "                      int memsize);\n"
16868 "\n"
16869 msgstr ""
16870
16871 # type: textblock
16872 #. type: textblock
16873 #: ../src/guestfs-actions.pod:5727
16874 msgid ""
16875 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16876 "This only has any effect if called before C<guestfs_launch>."
16877 msgstr ""
16878
16879 # type: textblock
16880 #. type: textblock
16881 #: ../src/guestfs-actions.pod:5731 ../fish/guestfish-actions.pod:3837
16882 msgid ""
16883 "You can also change this by setting the environment variable "
16884 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16885 msgstr ""
16886
16887 # type: =head2
16888 #. type: =head2
16889 #: ../src/guestfs-actions.pod:5742
16890 msgid "guestfs_set_network"
16891 msgstr ""
16892
16893 # type: verbatim
16894 #. type: verbatim
16895 #: ../src/guestfs-actions.pod:5744
16896 #, no-wrap
16897 msgid ""
16898 " int\n"
16899 " guestfs_set_network (guestfs_h *g,\n"
16900 "                      int network);\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: textblock
16905 #. type: textblock
16906 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3850
16907 msgid ""
16908 "If C<network> is true, then the network is enabled in the libguestfs "
16909 "appliance.  The default is false."
16910 msgstr ""
16911
16912 # type: textblock
16913 #. type: textblock
16914 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:3853
16915 msgid ""
16916 "This affects whether commands are able to access the network (see L<guestfs"
16917 "(3)/RUNNING COMMANDS>)."
16918 msgstr ""
16919
16920 # type: textblock
16921 #. type: textblock
16922 #: ../src/guestfs-actions.pod:5754
16923 msgid ""
16924 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16925 "effect."
16926 msgstr ""
16927
16928 # type: =head2
16929 #. type: =head2
16930 #: ../src/guestfs-actions.pod:5761
16931 msgid "guestfs_set_path"
16932 msgstr ""
16933
16934 # type: verbatim
16935 #. type: verbatim
16936 #: ../src/guestfs-actions.pod:5763
16937 #, no-wrap
16938 msgid ""
16939 " int\n"
16940 " guestfs_set_path (guestfs_h *g,\n"
16941 "                   const char *searchpath);\n"
16942 "\n"
16943 msgstr ""
16944
16945 # type: textblock
16946 #. type: textblock
16947 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:3865
16948 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16949 msgstr ""
16950
16951 # type: textblock
16952 #. type: textblock
16953 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3867
16954 msgid ""
16955 "The default is C<$libdir/guestfs> unless overridden by setting "
16956 "C<LIBGUESTFS_PATH> environment variable."
16957 msgstr ""
16958
16959 # type: textblock
16960 #. type: textblock
16961 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3870
16962 msgid "Setting C<path> to C<NULL> restores the default path."
16963 msgstr ""
16964
16965 # type: =head2
16966 #. type: =head2
16967 #: ../src/guestfs-actions.pod:5778
16968 msgid "guestfs_set_qemu"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #. type: verbatim
16973 #: ../src/guestfs-actions.pod:5780
16974 #, no-wrap
16975 msgid ""
16976 " int\n"
16977 " guestfs_set_qemu (guestfs_h *g,\n"
16978 "                   const char *qemu);\n"
16979 "\n"
16980 msgstr ""
16981
16982 # type: textblock
16983 #. type: textblock
16984 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3878
16985 msgid "Set the qemu binary that we will use."
16986 msgstr ""
16987
16988 # type: textblock
16989 #. type: textblock
16990 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3880
16991 msgid ""
16992 "The default is chosen when the library was compiled by the configure script."
16993 msgstr ""
16994
16995 # type: textblock
16996 #. type: textblock
16997 #: ../src/guestfs-actions.pod:5789 ../fish/guestfish-actions.pod:3883
16998 msgid ""
16999 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17000 "variable."
17001 msgstr ""
17002
17003 # type: textblock
17004 #. type: textblock
17005 #: ../src/guestfs-actions.pod:5792 ../fish/guestfish-actions.pod:3886
17006 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17007 msgstr ""
17008
17009 # type: textblock
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:3888
17012 msgid ""
17013 "Note that you should call this function as early as possible after creating "
17014 "the handle.  This is because some pre-launch operations depend on testing "
17015 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17016 "don't retest features, and so you might see inconsistent results.  Using the "
17017 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17018 "the qemu binary at the same time as the handle is created."
17019 msgstr ""
17020
17021 # type: =head2
17022 #. type: =head2
17023 #: ../src/guestfs-actions.pod:5806
17024 msgid "guestfs_set_recovery_proc"
17025 msgstr ""
17026
17027 # type: verbatim
17028 #. type: verbatim
17029 #: ../src/guestfs-actions.pod:5808
17030 #, no-wrap
17031 msgid ""
17032 " int\n"
17033 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17034 "                            int recoveryproc);\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: textblock
17039 #. type: textblock
17040 #: ../src/guestfs-actions.pod:5812
17041 msgid ""
17042 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17043 "not create a recovery process.  The purpose of the recovery process is to "
17044 "stop runaway qemu processes in the case where the main program aborts "
17045 "abruptly."
17046 msgstr ""
17047
17048 # type: textblock
17049 #. type: textblock
17050 #: ../src/guestfs-actions.pod:5817
17051 msgid ""
17052 "This only has any effect if called before C<guestfs_launch>, and the default "
17053 "is true."
17054 msgstr ""
17055
17056 # type: textblock
17057 #. type: textblock
17058 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3910
17059 msgid ""
17060 "About the only time when you would want to disable this is if the main "
17061 "process will fork itself into the background (\"daemonize\" itself).  In "
17062 "this case the recovery process thinks that the main program has disappeared "
17063 "and so kills qemu, which is not very helpful."
17064 msgstr ""
17065
17066 # type: =head2
17067 #. type: =head2
17068 #: ../src/guestfs-actions.pod:5830
17069 msgid "guestfs_set_selinux"
17070 msgstr ""
17071
17072 # type: verbatim
17073 #. type: verbatim
17074 #: ../src/guestfs-actions.pod:5832
17075 #, no-wrap
17076 msgid ""
17077 " int\n"
17078 " guestfs_set_selinux (guestfs_h *g,\n"
17079 "                      int selinux);\n"
17080 "\n"
17081 msgstr ""
17082
17083 # type: textblock
17084 #. type: textblock
17085 #: ../src/guestfs-actions.pod:5836 ../fish/guestfish-actions.pod:3922
17086 msgid ""
17087 "This sets the selinux flag that is passed to the appliance at boot time.  "
17088 "The default is C<selinux=0> (disabled)."
17089 msgstr ""
17090
17091 # type: textblock
17092 #. type: textblock
17093 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3925
17094 msgid ""
17095 "Note that if SELinux is enabled, it is always in Permissive mode "
17096 "(C<enforcing=0>)."
17097 msgstr ""
17098
17099 # type: =head2
17100 #. type: =head2
17101 #: ../src/guestfs-actions.pod:5849
17102 msgid "guestfs_set_trace"
17103 msgstr ""
17104
17105 # type: verbatim
17106 #. type: verbatim
17107 #: ../src/guestfs-actions.pod:5851
17108 #, no-wrap
17109 msgid ""
17110 " int\n"
17111 " guestfs_set_trace (guestfs_h *g,\n"
17112 "                    int trace);\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: textblock
17117 #. type: textblock
17118 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3937
17119 msgid ""
17120 "If the command trace flag is set to 1, then commands are printed on stderr "
17121 "before they are executed in a format which is very similar to the one used "
17122 "by guestfish.  In other words, you can run a program with this enabled, and "
17123 "you will get out a script which you can feed to guestfish to perform the "
17124 "same set of actions."
17125 msgstr ""
17126
17127 # type: textblock
17128 #. type: textblock
17129 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3944
17130 msgid ""
17131 "If you want to trace C API calls into libguestfs (and other libraries) then "
17132 "possibly a better way is to use the external ltrace(1) command."
17133 msgstr ""
17134
17135 # type: textblock
17136 #. type: textblock
17137 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3948
17138 msgid ""
17139 "Command traces are disabled unless the environment variable "
17140 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17141 msgstr ""
17142
17143 # type: =head2
17144 #. type: =head2
17145 #: ../src/guestfs-actions.pod:5873
17146 msgid "guestfs_set_verbose"
17147 msgstr ""
17148
17149 # type: verbatim
17150 #. type: verbatim
17151 #: ../src/guestfs-actions.pod:5875
17152 #, no-wrap
17153 msgid ""
17154 " int\n"
17155 " guestfs_set_verbose (guestfs_h *g,\n"
17156 "                      int verbose);\n"
17157 "\n"
17158 msgstr ""
17159
17160 # type: textblock
17161 #. type: textblock
17162 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3957
17163 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
17164 msgstr ""
17165
17166 # type: textblock
17167 #. type: textblock
17168 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3959
17169 msgid ""
17170 "Verbose messages are disabled unless the environment variable "
17171 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17172 msgstr ""
17173
17174 # type: =head2
17175 #. type: =head2
17176 #: ../src/guestfs-actions.pod:5888
17177 msgid "guestfs_setcon"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #. type: verbatim
17182 #: ../src/guestfs-actions.pod:5890
17183 #, no-wrap
17184 msgid ""
17185 " int\n"
17186 " guestfs_setcon (guestfs_h *g,\n"
17187 "                 const char *context);\n"
17188 "\n"
17189 msgstr ""
17190
17191 # type: textblock
17192 #. type: textblock
17193 #: ../src/guestfs-actions.pod:5894 ../fish/guestfish-actions.pod:3966
17194 msgid ""
17195 "This sets the SELinux security context of the daemon to the string "
17196 "C<context>."
17197 msgstr ""
17198
17199 # type: textblock
17200 #. type: textblock
17201 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3969
17202 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17203 msgstr ""
17204
17205 # type: =head2
17206 #. type: =head2
17207 #: ../src/guestfs-actions.pod:5903
17208 msgid "guestfs_setxattr"
17209 msgstr ""
17210
17211 # type: verbatim
17212 #. type: verbatim
17213 #: ../src/guestfs-actions.pod:5905
17214 #, no-wrap
17215 msgid ""
17216 " int\n"
17217 " guestfs_setxattr (guestfs_h *g,\n"
17218 "                   const char *xattr,\n"
17219 "                   const char *val,\n"
17220 "                   int vallen,\n"
17221 "                   const char *path);\n"
17222 "\n"
17223 msgstr ""
17224
17225 # type: textblock
17226 #. type: textblock
17227 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3975
17228 msgid ""
17229 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17230 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17231 msgstr ""
17232
17233 # type: textblock
17234 #. type: textblock
17235 #: ../src/guestfs-actions.pod:5916
17236 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17237 msgstr ""
17238
17239 # type: =head2
17240 #. type: =head2
17241 #: ../src/guestfs-actions.pod:5922
17242 msgid "guestfs_sfdisk"
17243 msgstr ""
17244
17245 # type: verbatim
17246 #. type: verbatim
17247 #: ../src/guestfs-actions.pod:5924
17248 #, no-wrap
17249 msgid ""
17250 " int\n"
17251 " guestfs_sfdisk (guestfs_h *g,\n"
17252 "                 const char *device,\n"
17253 "                 int cyls,\n"
17254 "                 int heads,\n"
17255 "                 int sectors,\n"
17256 "                 char *const *lines);\n"
17257 "\n"
17258 msgstr ""
17259
17260 # type: textblock
17261 #. type: textblock
17262 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3985
17263 msgid ""
17264 "This is a direct interface to the L<sfdisk(8)> program for creating "
17265 "partitions on block devices."
17266 msgstr ""
17267
17268 # type: textblock
17269 #. type: textblock
17270 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3988
17271 msgid "C<device> should be a block device, for example C</dev/sda>."
17272 msgstr ""
17273
17274 # type: textblock
17275 #. type: textblock
17276 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3990
17277 msgid ""
17278 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17279 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17280 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17281 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17282 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17283 "the kernel) cannot work out the right geometry and you will need to tell it."
17284 msgstr ""
17285
17286 # type: textblock
17287 #. type: textblock
17288 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:3998
17289 msgid ""
17290 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17291 "refer to the L<sfdisk(8)> manpage."
17292 msgstr ""
17293
17294 # type: textblock
17295 #. type: textblock
17296 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4001
17297 msgid ""
17298 "To create a single partition occupying the whole disk, you would pass "
17299 "C<lines> as a single element list, when the single element being the string "
17300 "C<,> (comma)."
17301 msgstr ""
17302
17303 # type: textblock
17304 #. type: textblock
17305 #: ../src/guestfs-actions.pod:5952
17306 msgid ""
17307 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17308 msgstr ""
17309
17310 # type: =head2
17311 #. type: =head2
17312 #: ../src/guestfs-actions.pod:5962
17313 msgid "guestfs_sfdiskM"
17314 msgstr ""
17315
17316 # type: verbatim
17317 #. type: verbatim
17318 #: ../src/guestfs-actions.pod:5964
17319 #, no-wrap
17320 msgid ""
17321 " int\n"
17322 " guestfs_sfdiskM (guestfs_h *g,\n"
17323 "                  const char *device,\n"
17324 "                  char *const *lines);\n"
17325 "\n"
17326 msgstr ""
17327
17328 # type: textblock
17329 #. type: textblock
17330 #: ../src/guestfs-actions.pod:5969
17331 msgid ""
17332 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17333 "partition sizes are specified in megabytes only (rounded to the nearest "
17334 "cylinder) and you don't need to specify the cyls, heads and sectors "
17335 "parameters which were rarely if ever used anyway."
17336 msgstr ""
17337
17338 # type: textblock
17339 #. type: textblock
17340 #: ../src/guestfs-actions.pod:5975
17341 msgid ""
17342 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17343 "C<guestfs_part_disk>"
17344 msgstr ""
17345
17346 # type: =head2
17347 #. type: =head2
17348 #: ../src/guestfs-actions.pod:5985
17349 msgid "guestfs_sfdisk_N"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #. type: verbatim
17354 #: ../src/guestfs-actions.pod:5987
17355 #, no-wrap
17356 msgid ""
17357 " int\n"
17358 " guestfs_sfdisk_N (guestfs_h *g,\n"
17359 "                   const char *device,\n"
17360 "                   int partnum,\n"
17361 "                   int cyls,\n"
17362 "                   int heads,\n"
17363 "                   int sectors,\n"
17364 "                   const char *line);\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: textblock
17369 #. type: textblock
17370 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:4031
17371 msgid ""
17372 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17373 "(note: C<n> counts from 1)."
17374 msgstr ""
17375
17376 # type: textblock
17377 #. type: textblock
17378 #: ../src/guestfs-actions.pod:5999
17379 msgid ""
17380 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17381 "for the cyls/heads/sectors parameters."
17382 msgstr ""
17383
17384 # type: textblock
17385 #. type: textblock
17386 #: ../src/guestfs-actions.pod:6002
17387 msgid "See also: C<guestfs_part_add>"
17388 msgstr ""
17389
17390 # type: =head2
17391 #. type: =head2
17392 #: ../src/guestfs-actions.pod:6011
17393 msgid "guestfs_sfdisk_disk_geometry"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #. type: verbatim
17398 #: ../src/guestfs-actions.pod:6013
17399 #, no-wrap
17400 msgid ""
17401 " char *\n"
17402 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17403 "                               const char *device);\n"
17404 "\n"
17405 msgstr ""
17406
17407 # type: textblock
17408 #. type: textblock
17409 #: ../src/guestfs-actions.pod:6017
17410 msgid ""
17411 "This displays the disk geometry of C<device> read from the partition table.  "
17412 "Especially in the case where the underlying block device has been resized, "
17413 "this can be different from the kernel's idea of the geometry (see "
17414 "C<guestfs_sfdisk_kernel_geometry>)."
17415 msgstr ""
17416
17417 # type: textblock
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6038
17420 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4060
17421 msgid "The result is in human-readable format, and not designed to be parsed."
17422 msgstr ""
17423
17424 # type: =head2
17425 #. type: =head2
17426 #: ../src/guestfs-actions.pod:6030
17427 msgid "guestfs_sfdisk_kernel_geometry"
17428 msgstr ""
17429
17430 # type: verbatim
17431 #. type: verbatim
17432 #: ../src/guestfs-actions.pod:6032
17433 #, no-wrap
17434 msgid ""
17435 " char *\n"
17436 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17437 "                                 const char *device);\n"
17438 "\n"
17439 msgstr ""
17440
17441 # type: textblock
17442 #. type: textblock
17443 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4058
17444 msgid "This displays the kernel's idea of the geometry of C<device>."
17445 msgstr ""
17446
17447 # type: =head2
17448 #. type: =head2
17449 #: ../src/guestfs-actions.pod:6046
17450 msgid "guestfs_sfdisk_l"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #. type: verbatim
17455 #: ../src/guestfs-actions.pod:6048
17456 #, no-wrap
17457 msgid ""
17458 " char *\n"
17459 " guestfs_sfdisk_l (guestfs_h *g,\n"
17460 "                   const char *device);\n"
17461 "\n"
17462 msgstr ""
17463
17464 # type: textblock
17465 #. type: textblock
17466 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4067
17467 msgid ""
17468 "This displays the partition table on C<device>, in the human-readable output "
17469 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17470 msgstr ""
17471
17472 # type: textblock
17473 #. type: textblock
17474 #: ../src/guestfs-actions.pod:6056
17475 msgid "See also: C<guestfs_part_list>"
17476 msgstr ""
17477
17478 # type: =head2
17479 #. type: =head2
17480 #: ../src/guestfs-actions.pod:6063
17481 msgid "guestfs_sh"
17482 msgstr ""
17483
17484 # type: verbatim
17485 #. type: verbatim
17486 #: ../src/guestfs-actions.pod:6065
17487 #, no-wrap
17488 msgid ""
17489 " char *\n"
17490 " guestfs_sh (guestfs_h *g,\n"
17491 "             const char *command);\n"
17492 "\n"
17493 msgstr ""
17494
17495 # type: textblock
17496 #. type: textblock
17497 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:4077
17498 msgid ""
17499 "This call runs a command from the guest filesystem via the guest's C</bin/"
17500 "sh>."
17501 msgstr ""
17502
17503 # type: textblock
17504 #. type: textblock
17505 #: ../src/guestfs-actions.pod:6072
17506 msgid "This is like C<guestfs_command>, but passes the command to:"
17507 msgstr ""
17508
17509 # type: verbatim
17510 #. type: verbatim
17511 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4082
17512 #, no-wrap
17513 msgid ""
17514 " /bin/sh -c \"command\"\n"
17515 "\n"
17516 msgstr ""
17517
17518 # type: textblock
17519 #. type: textblock
17520 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4084
17521 msgid ""
17522 "Depending on the guest's shell, this usually results in wildcards being "
17523 "expanded, shell expressions being interpolated and so on."
17524 msgstr ""
17525
17526 # type: textblock
17527 #. type: textblock
17528 #: ../src/guestfs-actions.pod:6080
17529 msgid "All the provisos about C<guestfs_command> apply to this call."
17530 msgstr ""
17531
17532 # type: =head2
17533 #. type: =head2
17534 #: ../src/guestfs-actions.pod:6087
17535 msgid "guestfs_sh_lines"
17536 msgstr ""
17537
17538 # type: verbatim
17539 #. type: verbatim
17540 #: ../src/guestfs-actions.pod:6089
17541 #, no-wrap
17542 msgid ""
17543 " char **\n"
17544 " guestfs_sh_lines (guestfs_h *g,\n"
17545 "                   const char *command);\n"
17546 "\n"
17547 msgstr ""
17548
17549 # type: textblock
17550 #. type: textblock
17551 #: ../src/guestfs-actions.pod:6093
17552 msgid ""
17553 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17554 "lines."
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:6096
17560 msgid "See also: C<guestfs_command_lines>"
17561 msgstr ""
17562
17563 # type: =head2
17564 #. type: =head2
17565 #: ../src/guestfs-actions.pod:6104
17566 msgid "guestfs_sleep"
17567 msgstr ""
17568
17569 # type: verbatim
17570 #. type: verbatim
17571 #: ../src/guestfs-actions.pod:6106
17572 #, no-wrap
17573 msgid ""
17574 " int\n"
17575 " guestfs_sleep (guestfs_h *g,\n"
17576 "                int secs);\n"
17577 "\n"
17578 msgstr ""
17579
17580 # type: textblock
17581 #. type: textblock
17582 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4103
17583 msgid "Sleep for C<secs> seconds."
17584 msgstr ""
17585
17586 # type: textblock
17587 #. type: textblock
17588 #: ../src/guestfs-actions.pod:6114
17589 msgid "(Added in 1.0.41)"
17590 msgstr ""
17591
17592 # type: =head2
17593 #. type: =head2
17594 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-structs.pod:109
17595 msgid "guestfs_stat"
17596 msgstr ""
17597
17598 # type: verbatim
17599 #. type: verbatim
17600 #: ../src/guestfs-actions.pod:6118
17601 #, no-wrap
17602 msgid ""
17603 " struct guestfs_stat *\n"
17604 " guestfs_stat (guestfs_h *g,\n"
17605 "               const char *path);\n"
17606 "\n"
17607 msgstr ""
17608
17609 # type: textblock
17610 #. type: textblock
17611 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4111
17612 msgid "This is the same as the C<stat(2)> system call."
17613 msgstr ""
17614
17615 # type: =head2
17616 #. type: =head2
17617 #: ../src/guestfs-actions.pod:6132 ../src/guestfs-structs.pod:135
17618 msgid "guestfs_statvfs"
17619 msgstr ""
17620
17621 # type: verbatim
17622 #. type: verbatim
17623 #: ../src/guestfs-actions.pod:6134
17624 #, no-wrap
17625 msgid ""
17626 " struct guestfs_statvfs *\n"
17627 " guestfs_statvfs (guestfs_h *g,\n"
17628 "                  const char *path);\n"
17629 "\n"
17630 msgstr ""
17631
17632 # type: textblock
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4117
17635 msgid ""
17636 "Returns file system statistics for any mounted file system.  C<path> should "
17637 "be a file or directory in the mounted file system (typically it is the mount "
17638 "point itself, but it doesn't need to be)."
17639 msgstr ""
17640
17641 # type: textblock
17642 #. type: textblock
17643 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4121
17644 msgid "This is the same as the C<statvfs(2)> system call."
17645 msgstr ""
17646
17647 # type: textblock
17648 #. type: textblock
17649 #: ../src/guestfs-actions.pod:6144
17650 msgid ""
17651 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17652 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17653 msgstr ""
17654
17655 # type: =head2
17656 #. type: =head2
17657 #: ../src/guestfs-actions.pod:6150
17658 msgid "guestfs_strings"
17659 msgstr ""
17660
17661 # type: verbatim
17662 #. type: verbatim
17663 #: ../src/guestfs-actions.pod:6152
17664 #, no-wrap
17665 msgid ""
17666 " char **\n"
17667 " guestfs_strings (guestfs_h *g,\n"
17668 "                  const char *path);\n"
17669 "\n"
17670 msgstr ""
17671
17672 # type: textblock
17673 #. type: textblock
17674 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4127
17675 msgid ""
17676 "This runs the L<strings(1)> command on a file and returns the list of "
17677 "printable strings found."
17678 msgstr ""
17679
17680 # type: =head2
17681 #. type: =head2
17682 #: ../src/guestfs-actions.pod:6168
17683 msgid "guestfs_strings_e"
17684 msgstr ""
17685
17686 # type: verbatim
17687 #. type: verbatim
17688 #: ../src/guestfs-actions.pod:6170
17689 #, no-wrap
17690 msgid ""
17691 " char **\n"
17692 " guestfs_strings_e (guestfs_h *g,\n"
17693 "                    const char *encoding,\n"
17694 "                    const char *path);\n"
17695 "\n"
17696 msgstr ""
17697
17698 # type: textblock
17699 #. type: textblock
17700 #: ../src/guestfs-actions.pod:6175
17701 msgid ""
17702 "This is like the C<guestfs_strings> command, but allows you to specify the "
17703 "encoding of strings that are looked for in the source file C<path>."
17704 msgstr ""
17705
17706 # type: textblock
17707 #. type: textblock
17708 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4141
17709 msgid "Allowed encodings are:"
17710 msgstr ""
17711
17712 # type: =item
17713 #. type: =item
17714 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4145
17715 msgid "s"
17716 msgstr ""
17717
17718 # type: textblock
17719 #. type: textblock
17720 #: ../src/guestfs-actions.pod:6185
17721 msgid ""
17722 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17723 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17724 msgstr ""
17725
17726 # type: =item
17727 #. type: =item
17728 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4150
17729 msgid "S"
17730 msgstr ""
17731
17732 # type: textblock
17733 #. type: textblock
17734 #: ../src/guestfs-actions.pod:6190 ../fish/guestfish-actions.pod:4152
17735 msgid "Single 8-bit-byte characters."
17736 msgstr ""
17737
17738 # type: =item
17739 #. type: =item
17740 #: ../src/guestfs-actions.pod:6192 ../fish/guestfish-actions.pod:4154
17741 msgid "b"
17742 msgstr ""
17743
17744 # type: textblock
17745 #. type: textblock
17746 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4156
17747 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17748 msgstr ""
17749
17750 # type: =item
17751 #. type: =item
17752 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4159
17753 msgid "l (lower case letter L)"
17754 msgstr ""
17755
17756 # type: textblock
17757 #. type: textblock
17758 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4161
17759 msgid ""
17760 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17761 "examining binaries in Windows guests."
17762 msgstr ""
17763
17764 # type: =item
17765 #. type: =item
17766 #: ../src/guestfs-actions.pod:6202 ../fish/guestfish-actions.pod:4164
17767 msgid "B"
17768 msgstr ""
17769
17770 # type: textblock
17771 #. type: textblock
17772 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4166
17773 msgid "32-bit big endian such as UCS-4BE."
17774 msgstr ""
17775
17776 # type: =item
17777 #. type: =item
17778 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4168
17779 msgid "L"
17780 msgstr ""
17781
17782 # type: textblock
17783 #. type: textblock
17784 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4170
17785 msgid "32-bit little endian such as UCS-4LE."
17786 msgstr ""
17787
17788 # type: textblock
17789 #. type: textblock
17790 #: ../src/guestfs-actions.pod:6212 ../fish/guestfish-actions.pod:4174
17791 msgid "The returned strings are transcoded to UTF-8."
17792 msgstr ""
17793
17794 # type: =head2
17795 #. type: =head2
17796 #: ../src/guestfs-actions.pod:6223
17797 msgid "guestfs_swapoff_device"
17798 msgstr ""
17799
17800 # type: verbatim
17801 #. type: verbatim
17802 #: ../src/guestfs-actions.pod:6225
17803 #, no-wrap
17804 msgid ""
17805 " int\n"
17806 " guestfs_swapoff_device (guestfs_h *g,\n"
17807 "                         const char *device);\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: textblock
17812 #. type: textblock
17813 #: ../src/guestfs-actions.pod:6229
17814 msgid ""
17815 "This command disables the libguestfs appliance swap device or partition "
17816 "named C<device>.  See C<guestfs_swapon_device>."
17817 msgstr ""
17818
17819 # type: =head2
17820 #. type: =head2
17821 #: ../src/guestfs-actions.pod:6237
17822 msgid "guestfs_swapoff_file"
17823 msgstr ""
17824
17825 # type: verbatim
17826 #. type: verbatim
17827 #: ../src/guestfs-actions.pod:6239
17828 #, no-wrap
17829 msgid ""
17830 " int\n"
17831 " guestfs_swapoff_file (guestfs_h *g,\n"
17832 "                       const char *file);\n"
17833 "\n"
17834 msgstr ""
17835
17836 # type: textblock
17837 #. type: textblock
17838 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4191
17839 msgid "This command disables the libguestfs appliance swap on file."
17840 msgstr ""
17841
17842 # type: =head2
17843 #. type: =head2
17844 #: ../src/guestfs-actions.pod:6249
17845 msgid "guestfs_swapoff_label"
17846 msgstr ""
17847
17848 # type: verbatim
17849 #. type: verbatim
17850 #: ../src/guestfs-actions.pod:6251
17851 #, no-wrap
17852 msgid ""
17853 " int\n"
17854 " guestfs_swapoff_label (guestfs_h *g,\n"
17855 "                        const char *label);\n"
17856 "\n"
17857 msgstr ""
17858
17859 # type: textblock
17860 #. type: textblock
17861 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4197
17862 msgid ""
17863 "This command disables the libguestfs appliance swap on labeled swap "
17864 "partition."
17865 msgstr ""
17866
17867 # type: =head2
17868 #. type: =head2
17869 #: ../src/guestfs-actions.pod:6262
17870 msgid "guestfs_swapoff_uuid"
17871 msgstr ""
17872
17873 # type: verbatim
17874 #. type: verbatim
17875 #: ../src/guestfs-actions.pod:6264
17876 #, no-wrap
17877 msgid ""
17878 " int\n"
17879 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17880 "                       const char *uuid);\n"
17881 "\n"
17882 msgstr ""
17883
17884 # type: textblock
17885 #. type: textblock
17886 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4204
17887 msgid ""
17888 "This command disables the libguestfs appliance swap partition with the given "
17889 "UUID."
17890 msgstr ""
17891
17892 # type: =head2
17893 #. type: =head2
17894 #: ../src/guestfs-actions.pod:6275
17895 msgid "guestfs_swapon_device"
17896 msgstr ""
17897
17898 # type: verbatim
17899 #. type: verbatim
17900 #: ../src/guestfs-actions.pod:6277
17901 #, no-wrap
17902 msgid ""
17903 " int\n"
17904 " guestfs_swapon_device (guestfs_h *g,\n"
17905 "                        const char *device);\n"
17906 "\n"
17907 msgstr ""
17908
17909 # type: textblock
17910 #. type: textblock
17911 #: ../src/guestfs-actions.pod:6281
17912 msgid ""
17913 "This command enables the libguestfs appliance to use the swap device or "
17914 "partition named C<device>.  The increased memory is made available for all "
17915 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17916 msgstr ""
17917
17918 # type: textblock
17919 #. type: textblock
17920 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4216
17921 msgid ""
17922 "Note that you should not swap to existing guest swap partitions unless you "
17923 "know what you are doing.  They may contain hibernation information, or other "
17924 "information that the guest doesn't want you to trash.  You also risk leaking "
17925 "information about the host to the guest this way.  Instead, attach a new "
17926 "host device to the guest and swap on that."
17927 msgstr ""
17928
17929 # type: =head2
17930 #. type: =head2
17931 #: ../src/guestfs-actions.pod:6297
17932 msgid "guestfs_swapon_file"
17933 msgstr ""
17934
17935 # type: verbatim
17936 #. type: verbatim
17937 #: ../src/guestfs-actions.pod:6299
17938 #, no-wrap
17939 msgid ""
17940 " int\n"
17941 " guestfs_swapon_file (guestfs_h *g,\n"
17942 "                      const char *file);\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: textblock
17947 #. type: textblock
17948 #: ../src/guestfs-actions.pod:6303
17949 msgid ""
17950 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17951 "notes."
17952 msgstr ""
17953
17954 # type: =head2
17955 #. type: =head2
17956 #: ../src/guestfs-actions.pod:6310
17957 msgid "guestfs_swapon_label"
17958 msgstr ""
17959
17960 # type: verbatim
17961 #. type: verbatim
17962 #: ../src/guestfs-actions.pod:6312
17963 #, no-wrap
17964 msgid ""
17965 " int\n"
17966 " guestfs_swapon_label (guestfs_h *g,\n"
17967 "                       const char *label);\n"
17968 "\n"
17969 msgstr ""
17970
17971 # type: textblock
17972 #. type: textblock
17973 #: ../src/guestfs-actions.pod:6316
17974 msgid ""
17975 "This command enables swap to a labeled swap partition.  See "
17976 "C<guestfs_swapon_device> for other notes."
17977 msgstr ""
17978
17979 # type: =head2
17980 #. type: =head2
17981 #: ../src/guestfs-actions.pod:6323
17982 msgid "guestfs_swapon_uuid"
17983 msgstr ""
17984
17985 # type: verbatim
17986 #. type: verbatim
17987 #: ../src/guestfs-actions.pod:6325
17988 #, no-wrap
17989 msgid ""
17990 " int\n"
17991 " guestfs_swapon_uuid (guestfs_h *g,\n"
17992 "                      const char *uuid);\n"
17993 "\n"
17994 msgstr ""
17995
17996 # type: textblock
17997 #. type: textblock
17998 #: ../src/guestfs-actions.pod:6329
17999 msgid ""
18000 "This command enables swap to a swap partition with the given UUID.  See "
18001 "C<guestfs_swapon_device> for other notes."
18002 msgstr ""
18003
18004 # type: =head2
18005 #. type: =head2
18006 #: ../src/guestfs-actions.pod:6336
18007 msgid "guestfs_sync"
18008 msgstr ""
18009
18010 # type: verbatim
18011 #. type: verbatim
18012 #: ../src/guestfs-actions.pod:6338
18013 #, no-wrap
18014 msgid ""
18015 " int\n"
18016 " guestfs_sync (guestfs_h *g);\n"
18017 "\n"
18018 msgstr ""
18019
18020 # type: textblock
18021 #. type: textblock
18022 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4248
18023 msgid ""
18024 "This syncs the disk, so that any writes are flushed through to the "
18025 "underlying disk image."
18026 msgstr ""
18027
18028 # type: textblock
18029 #. type: textblock
18030 #: ../src/guestfs-actions.pod:6344 ../fish/guestfish-actions.pod:4251
18031 msgid ""
18032 "You should always call this if you have modified a disk image, before "
18033 "closing the handle."
18034 msgstr ""
18035
18036 # type: =head2
18037 #. type: =head2
18038 #: ../src/guestfs-actions.pod:6351
18039 msgid "guestfs_tail"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #. type: verbatim
18044 #: ../src/guestfs-actions.pod:6353
18045 #, no-wrap
18046 msgid ""
18047 " char **\n"
18048 " guestfs_tail (guestfs_h *g,\n"
18049 "               const char *path);\n"
18050 "\n"
18051 msgstr ""
18052
18053 # type: textblock
18054 #. type: textblock
18055 #: ../src/guestfs-actions.pod:6357 ../fish/guestfish-actions.pod:4258
18056 msgid ""
18057 "This command returns up to the last 10 lines of a file as a list of strings."
18058 msgstr ""
18059
18060 # type: =head2
18061 #. type: =head2
18062 #: ../src/guestfs-actions.pod:6369
18063 msgid "guestfs_tail_n"
18064 msgstr ""
18065
18066 # type: verbatim
18067 #. type: verbatim
18068 #: ../src/guestfs-actions.pod:6371
18069 #, no-wrap
18070 msgid ""
18071 " char **\n"
18072 " guestfs_tail_n (guestfs_h *g,\n"
18073 "                 int nrlines,\n"
18074 "                 const char *path);\n"
18075 "\n"
18076 msgstr ""
18077
18078 # type: textblock
18079 #. type: textblock
18080 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4268
18081 msgid ""
18082 "If the parameter C<nrlines> is a positive number, this returns the last "
18083 "C<nrlines> lines of the file C<path>."
18084 msgstr ""
18085
18086 # type: textblock
18087 #. type: textblock
18088 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4271
18089 msgid ""
18090 "If the parameter C<nrlines> is a negative number, this returns lines from "
18091 "the file C<path>, starting with the C<-nrlines>th line."
18092 msgstr ""
18093
18094 # type: =head2
18095 #. type: =head2
18096 #: ../src/guestfs-actions.pod:6393
18097 msgid "guestfs_tar_in"
18098 msgstr ""
18099
18100 # type: verbatim
18101 #. type: verbatim
18102 #: ../src/guestfs-actions.pod:6395
18103 #, no-wrap
18104 msgid ""
18105 " int\n"
18106 " guestfs_tar_in (guestfs_h *g,\n"
18107 "                 const char *tarfile,\n"
18108 "                 const char *directory);\n"
18109 "\n"
18110 msgstr ""
18111
18112 # type: textblock
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4283
18115 msgid ""
18116 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18117 "tar file) into C<directory>."
18118 msgstr ""
18119
18120 # type: textblock
18121 #. type: textblock
18122 #: ../src/guestfs-actions.pod:6403
18123 msgid ""
18124 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18125 msgstr ""
18126
18127 # type: textblock
18128 #. type: textblock
18129 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6425
18130 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6457
18131 msgid "(Added in 1.0.3)"
18132 msgstr ""
18133
18134 # type: =head2
18135 #. type: =head2
18136 #: ../src/guestfs-actions.pod:6410
18137 msgid "guestfs_tar_out"
18138 msgstr ""
18139
18140 # type: verbatim
18141 #. type: verbatim
18142 #: ../src/guestfs-actions.pod:6412
18143 #, no-wrap
18144 msgid ""
18145 " int\n"
18146 " guestfs_tar_out (guestfs_h *g,\n"
18147 "                  const char *directory,\n"
18148 "                  const char *tarfile);\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: textblock
18153 #. type: textblock
18154 #: ../src/guestfs-actions.pod:6417 ../fish/guestfish-actions.pod:4295
18155 msgid ""
18156 "This command packs the contents of C<directory> and downloads it to local "
18157 "file C<tarfile>."
18158 msgstr ""
18159
18160 # type: textblock
18161 #. type: textblock
18162 #: ../src/guestfs-actions.pod:6420
18163 msgid ""
18164 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18165 "C<guestfs_txz_out>."
18166 msgstr ""
18167
18168 # type: =head2
18169 #. type: =head2
18170 #: ../src/guestfs-actions.pod:6427
18171 msgid "guestfs_tgz_in"
18172 msgstr ""
18173
18174 # type: verbatim
18175 #. type: verbatim
18176 #: ../src/guestfs-actions.pod:6429
18177 #, no-wrap
18178 msgid ""
18179 " int\n"
18180 " guestfs_tgz_in (guestfs_h *g,\n"
18181 "                 const char *tarball,\n"
18182 "                 const char *directory);\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #. type: textblock
18188 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4307
18189 msgid ""
18190 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18191 "tar file) into C<directory>."
18192 msgstr ""
18193
18194 # type: textblock
18195 #. type: textblock
18196 #: ../src/guestfs-actions.pod:6437
18197 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18198 msgstr ""
18199
18200 # type: =head2
18201 #. type: =head2
18202 #: ../src/guestfs-actions.pod:6443
18203 msgid "guestfs_tgz_out"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #. type: verbatim
18208 #: ../src/guestfs-actions.pod:6445
18209 #, no-wrap
18210 msgid ""
18211 " int\n"
18212 " guestfs_tgz_out (guestfs_h *g,\n"
18213 "                  const char *directory,\n"
18214 "                  const char *tarball);\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: textblock
18219 #. type: textblock
18220 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4318
18221 msgid ""
18222 "This command packs the contents of C<directory> and downloads it to local "
18223 "file C<tarball>."
18224 msgstr ""
18225
18226 # type: textblock
18227 #. type: textblock
18228 #: ../src/guestfs-actions.pod:6453
18229 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18230 msgstr ""
18231
18232 # type: =head2
18233 #. type: =head2
18234 #: ../src/guestfs-actions.pod:6459
18235 msgid "guestfs_touch"
18236 msgstr ""
18237
18238 # type: verbatim
18239 #. type: verbatim
18240 #: ../src/guestfs-actions.pod:6461
18241 #, no-wrap
18242 msgid ""
18243 " int\n"
18244 " guestfs_touch (guestfs_h *g,\n"
18245 "                const char *path);\n"
18246 "\n"
18247 msgstr ""
18248
18249 # type: textblock
18250 #. type: textblock
18251 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4329
18252 msgid ""
18253 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18254 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18255 "length file."
18256 msgstr ""
18257
18258 # type: textblock
18259 #. type: textblock
18260 #: ../src/guestfs-actions.pod:6469 ../fish/guestfish-actions.pod:4333
18261 msgid ""
18262 "This command only works on regular files, and will fail on other file types "
18263 "such as directories, symbolic links, block special etc."
18264 msgstr ""
18265
18266 # type: =head2
18267 #. type: =head2
18268 #: ../src/guestfs-actions.pod:6476
18269 msgid "guestfs_truncate"
18270 msgstr ""
18271
18272 # type: verbatim
18273 #. type: verbatim
18274 #: ../src/guestfs-actions.pod:6478
18275 #, no-wrap
18276 msgid ""
18277 " int\n"
18278 " guestfs_truncate (guestfs_h *g,\n"
18279 "                   const char *path);\n"
18280 "\n"
18281 msgstr ""
18282
18283 # type: textblock
18284 #. type: textblock
18285 #: ../src/guestfs-actions.pod:6482 ../fish/guestfish-actions.pod:4340
18286 msgid ""
18287 "This command truncates C<path> to a zero-length file.  The file must exist "
18288 "already."
18289 msgstr ""
18290
18291 # type: =head2
18292 #. type: =head2
18293 #: ../src/guestfs-actions.pod:6489
18294 msgid "guestfs_truncate_size"
18295 msgstr ""
18296
18297 # type: verbatim
18298 #. type: verbatim
18299 #: ../src/guestfs-actions.pod:6491
18300 #, no-wrap
18301 msgid ""
18302 " int\n"
18303 " guestfs_truncate_size (guestfs_h *g,\n"
18304 "                        const char *path,\n"
18305 "                        int64_t size);\n"
18306 "\n"
18307 msgstr ""
18308
18309 # type: textblock
18310 #. type: textblock
18311 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4347
18312 msgid ""
18313 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18314 "already."
18315 msgstr ""
18316
18317 # type: textblock
18318 #. type: textblock
18319 #: ../src/guestfs-actions.pod:6499
18320 msgid ""
18321 "If the current file size is less than C<size> then the file is extended to "
18322 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18323 "blocks are not allocated for the file until you write to it).  To create a "
18324 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18325 msgstr ""
18326
18327 # type: =head2
18328 #. type: =head2
18329 #: ../src/guestfs-actions.pod:6509
18330 msgid "guestfs_tune2fs_l"
18331 msgstr ""
18332
18333 # type: verbatim
18334 #. type: verbatim
18335 #: ../src/guestfs-actions.pod:6511
18336 #, no-wrap
18337 msgid ""
18338 " char **\n"
18339 " guestfs_tune2fs_l (guestfs_h *g,\n"
18340 "                    const char *device);\n"
18341 "\n"
18342 msgstr ""
18343
18344 # type: textblock
18345 #. type: textblock
18346 #: ../src/guestfs-actions.pod:6515 ../fish/guestfish-actions.pod:4360
18347 msgid ""
18348 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18349 "C<device>."
18350 msgstr ""
18351
18352 # type: textblock
18353 #. type: textblock
18354 #: ../src/guestfs-actions.pod:6518 ../fish/guestfish-actions.pod:4363
18355 msgid ""
18356 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18357 "for more details.  The list of fields returned isn't clearly defined, and "
18358 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18359 "and the filesystem itself."
18360 msgstr ""
18361
18362 # type: =head2
18363 #. type: =head2
18364 #: ../src/guestfs-actions.pod:6531
18365 msgid "guestfs_txz_in"
18366 msgstr ""
18367
18368 # type: verbatim
18369 #. type: verbatim
18370 #: ../src/guestfs-actions.pod:6533
18371 #, no-wrap
18372 msgid ""
18373 " int\n"
18374 " guestfs_txz_in (guestfs_h *g,\n"
18375 "                 const char *tarball,\n"
18376 "                 const char *directory);\n"
18377 "\n"
18378 msgstr ""
18379
18380 # type: textblock
18381 #. type: textblock
18382 #: ../src/guestfs-actions.pod:6538 ../fish/guestfish-actions.pod:4372
18383 msgid ""
18384 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18385 "tar file) into C<directory>."
18386 msgstr ""
18387
18388 # type: =head2
18389 #. type: =head2
18390 #: ../src/guestfs-actions.pod:6545
18391 msgid "guestfs_txz_out"
18392 msgstr ""
18393
18394 # type: verbatim
18395 #. type: verbatim
18396 #: ../src/guestfs-actions.pod:6547
18397 #, no-wrap
18398 msgid ""
18399 " int\n"
18400 " guestfs_txz_out (guestfs_h *g,\n"
18401 "                  const char *directory,\n"
18402 "                  const char *tarball);\n"
18403 "\n"
18404 msgstr ""
18405
18406 # type: textblock
18407 #. type: textblock
18408 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4381
18409 msgid ""
18410 "This command packs the contents of C<directory> and downloads it to local "
18411 "file C<tarball> (as an xz compressed tar archive)."
18412 msgstr ""
18413
18414 # type: =head2
18415 #. type: =head2
18416 #: ../src/guestfs-actions.pod:6559
18417 msgid "guestfs_umask"
18418 msgstr ""
18419
18420 # type: verbatim
18421 #. type: verbatim
18422 #: ../src/guestfs-actions.pod:6561
18423 #, no-wrap
18424 msgid ""
18425 " int\n"
18426 " guestfs_umask (guestfs_h *g,\n"
18427 "                int mask);\n"
18428 "\n"
18429 msgstr ""
18430
18431 # type: textblock
18432 #. type: textblock
18433 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4390
18434 msgid ""
18435 "This function sets the mask used for creating new files and device nodes to "
18436 "C<mask & 0777>."
18437 msgstr ""
18438
18439 # type: textblock
18440 #. type: textblock
18441 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4393
18442 msgid ""
18443 "Typical umask values would be C<022> which creates new files with "
18444 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18445 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18446 msgstr ""
18447
18448 # type: textblock
18449 #. type: textblock
18450 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4398
18451 msgid ""
18452 "The default umask is C<022>.  This is important because it means that "
18453 "directories and device nodes will be created with C<0644> or C<0755> mode "
18454 "even if you specify C<0777>."
18455 msgstr ""
18456
18457 # type: textblock
18458 #. type: textblock
18459 #: ../src/guestfs-actions.pod:6577
18460 msgid ""
18461 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18462 "C<guestfs_mkdir>."
18463 msgstr ""
18464
18465 # type: textblock
18466 #. type: textblock
18467 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4405
18468 msgid "This call returns the previous umask."
18469 msgstr ""
18470
18471 # type: =head2
18472 #. type: =head2
18473 #: ../src/guestfs-actions.pod:6586
18474 msgid "guestfs_umount"
18475 msgstr ""
18476
18477 # type: verbatim
18478 #. type: verbatim
18479 #: ../src/guestfs-actions.pod:6588
18480 #, no-wrap
18481 msgid ""
18482 " int\n"
18483 " guestfs_umount (guestfs_h *g,\n"
18484 "                 const char *pathordevice);\n"
18485 "\n"
18486 msgstr ""
18487
18488 # type: textblock
18489 #. type: textblock
18490 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4413
18491 msgid ""
18492 "This unmounts the given filesystem.  The filesystem may be specified either "
18493 "by its mountpoint (path) or the device which contains the filesystem."
18494 msgstr ""
18495
18496 # type: =head2
18497 #. type: =head2
18498 #: ../src/guestfs-actions.pod:6600
18499 msgid "guestfs_umount_all"
18500 msgstr ""
18501
18502 # type: verbatim
18503 #. type: verbatim
18504 #: ../src/guestfs-actions.pod:6602
18505 #, no-wrap
18506 msgid ""
18507 " int\n"
18508 " guestfs_umount_all (guestfs_h *g);\n"
18509 "\n"
18510 msgstr ""
18511
18512 # type: textblock
18513 #. type: textblock
18514 #: ../src/guestfs-actions.pod:6605 ../fish/guestfish-actions.pod:4423
18515 msgid "This unmounts all mounted filesystems."
18516 msgstr ""
18517
18518 # type: textblock
18519 #. type: textblock
18520 #: ../src/guestfs-actions.pod:6607 ../fish/guestfish-actions.pod:4425
18521 msgid "Some internal mounts are not unmounted by this call."
18522 msgstr ""
18523
18524 # type: =head2
18525 #. type: =head2
18526 #: ../src/guestfs-actions.pod:6613
18527 msgid "guestfs_upload"
18528 msgstr ""
18529
18530 # type: verbatim
18531 #. type: verbatim
18532 #: ../src/guestfs-actions.pod:6615
18533 #, no-wrap
18534 msgid ""
18535 " int\n"
18536 " guestfs_upload (guestfs_h *g,\n"
18537 "                 const char *filename,\n"
18538 "                 const char *remotefilename);\n"
18539 "\n"
18540 msgstr ""
18541
18542 # type: textblock
18543 #. type: textblock
18544 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6644
18545 #: ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4444
18546 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18547 msgstr ""
18548
18549 # type: textblock
18550 #. type: textblock
18551 #: ../src/guestfs-actions.pod:6625
18552 msgid "See also C<guestfs_download>."
18553 msgstr ""
18554
18555 # type: =head2
18556 #. type: =head2
18557 #: ../src/guestfs-actions.pod:6636
18558 msgid "guestfs_upload_offset"
18559 msgstr ""
18560
18561 # type: verbatim
18562 #. type: verbatim
18563 #: ../src/guestfs-actions.pod:6638
18564 #, no-wrap
18565 msgid ""
18566 " int\n"
18567 " guestfs_upload_offset (guestfs_h *g,\n"
18568 "                        const char *filename,\n"
18569 "                        const char *remotefilename,\n"
18570 "                        int64_t offset);\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: textblock
18575 #. type: textblock
18576 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4447
18577 msgid ""
18578 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18579 "The intention is to overwrite parts of existing files or devices, although "
18580 "if a non-existant file is specified then it is created with a \"hole\" "
18581 "before C<offset>.  The size of the data written is implicit in the size of "
18582 "the source C<filename>."
18583 msgstr ""
18584
18585 # type: textblock
18586 #. type: textblock
18587 #: ../src/guestfs-actions.pod:6654
18588 msgid ""
18589 "Note that there is no limit on the amount of data that can be uploaded with "
18590 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18591 "full amount unless an error occurs."
18592 msgstr ""
18593
18594 # type: textblock
18595 #. type: textblock
18596 #: ../src/guestfs-actions.pod:6659
18597 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18598 msgstr ""
18599
18600 # type: =head2
18601 #. type: =head2
18602 #: ../src/guestfs-actions.pod:6670
18603 msgid "guestfs_utimens"
18604 msgstr ""
18605
18606 # type: verbatim
18607 #. type: verbatim
18608 #: ../src/guestfs-actions.pod:6672
18609 #, no-wrap
18610 msgid ""
18611 " int\n"
18612 " guestfs_utimens (guestfs_h *g,\n"
18613 "                  const char *path,\n"
18614 "                  int64_t atsecs,\n"
18615 "                  int64_t atnsecs,\n"
18616 "                  int64_t mtsecs,\n"
18617 "                  int64_t mtnsecs);\n"
18618 "\n"
18619 msgstr ""
18620
18621 # type: textblock
18622 #. type: textblock
18623 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4467
18624 msgid "This command sets the timestamps of a file with nanosecond precision."
18625 msgstr ""
18626
18627 # type: textblock
18628 #. type: textblock
18629 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4470
18630 msgid ""
18631 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18632 "from the epoch."
18633 msgstr ""
18634
18635 # type: textblock
18636 #. type: textblock
18637 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4473
18638 msgid ""
18639 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18640 "nanoseconds from the epoch."
18641 msgstr ""
18642
18643 # type: textblock
18644 #. type: textblock
18645 #: ../src/guestfs-actions.pod:6689 ../fish/guestfish-actions.pod:4476
18646 msgid ""
18647 "If the C<*nsecs> field contains the special value C<-1> then the "
18648 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18649 "ignored in this case)."
18650 msgstr ""
18651
18652 # type: textblock
18653 #. type: textblock
18654 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:4480
18655 msgid ""
18656 "If the C<*nsecs> field contains the special value C<-2> then the "
18657 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18658 "in this case)."
18659 msgstr ""
18660
18661 # type: =head2
18662 #. type: =head2
18663 #: ../src/guestfs-actions.pod:6701 ../src/guestfs-structs.pod:175
18664 msgid "guestfs_version"
18665 msgstr ""
18666
18667 # type: verbatim
18668 #. type: verbatim
18669 #: ../src/guestfs-actions.pod:6703
18670 #, no-wrap
18671 msgid ""
18672 " struct guestfs_version *\n"
18673 " guestfs_version (guestfs_h *g);\n"
18674 "\n"
18675 msgstr ""
18676
18677 # type: textblock
18678 #. type: textblock
18679 #: ../src/guestfs-actions.pod:6706 ../fish/guestfish-actions.pod:4488
18680 msgid ""
18681 "Return the libguestfs version number that the program is linked against."
18682 msgstr ""
18683
18684 # type: textblock
18685 #. type: textblock
18686 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4491
18687 msgid ""
18688 "Note that because of dynamic linking this is not necessarily the version of "
18689 "libguestfs that you compiled against.  You can compile the program, and then "
18690 "at runtime dynamically link against a completely different C<libguestfs.so> "
18691 "library."
18692 msgstr ""
18693
18694 # type: textblock
18695 #. type: textblock
18696 #: ../src/guestfs-actions.pod:6714 ../fish/guestfish-actions.pod:4496
18697 msgid ""
18698 "This call was added in version C<1.0.58>.  In previous versions of "
18699 "libguestfs there was no way to get the version number.  From C code you can "
18700 "use dynamic linker functions to find out if this symbol exists (if it "
18701 "doesn't, then it's an earlier version)."
18702 msgstr ""
18703
18704 # type: textblock
18705 #. type: textblock
18706 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4502
18707 msgid ""
18708 "The call returns a structure with four elements.  The first three (C<major>, "
18709 "C<minor> and C<release>) are numbers and correspond to the usual version "
18710 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18711 "but may be used for distro-specific information."
18712 msgstr ""
18713
18714 # type: textblock
18715 #. type: textblock
18716 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4508
18717 msgid ""
18718 "To construct the original version string: C<$major.$minor.$release$extra>"
18719 msgstr ""
18720
18721 # type: textblock
18722 #. type: textblock
18723 #: ../src/guestfs-actions.pod:6729 ../fish/guestfish-actions.pod:4511
18724 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18725 msgstr ""
18726
18727 # type: textblock
18728 #. type: textblock
18729 #: ../src/guestfs-actions.pod:6731
18730 msgid ""
18731 "I<Note:> Don't use this call to test for availability of features.  In "
18732 "enterprise distributions we backport features from later versions into "
18733 "earlier versions, making this an unreliable way to test for features.  Use "
18734 "C<guestfs_available> instead."
18735 msgstr ""
18736
18737 # type: textblock
18738 #. type: textblock
18739 #: ../src/guestfs-actions.pod:6737
18740 msgid ""
18741 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18742 "error.  I<The caller must call C<guestfs_free_version> after use>."
18743 msgstr ""
18744
18745 # type: textblock
18746 #. type: textblock
18747 #: ../src/guestfs-actions.pod:6741
18748 msgid "(Added in 1.0.58)"
18749 msgstr ""
18750
18751 # type: =head2
18752 #. type: =head2
18753 #: ../src/guestfs-actions.pod:6743
18754 msgid "guestfs_vfs_label"
18755 msgstr ""
18756
18757 # type: verbatim
18758 #. type: verbatim
18759 #: ../src/guestfs-actions.pod:6745
18760 #, no-wrap
18761 msgid ""
18762 " char *\n"
18763 " guestfs_vfs_label (guestfs_h *g,\n"
18764 "                    const char *device);\n"
18765 "\n"
18766 msgstr ""
18767
18768 # type: textblock
18769 #. type: textblock
18770 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4523
18771 msgid "This returns the filesystem label of the filesystem on C<device>."
18772 msgstr ""
18773
18774 # type: textblock
18775 #. type: textblock
18776 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4526
18777 msgid "If the filesystem is unlabeled, this returns the empty string."
18778 msgstr ""
18779
18780 # type: textblock
18781 #. type: textblock
18782 #: ../src/guestfs-actions.pod:6754
18783 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18784 msgstr ""
18785
18786 # type: textblock
18787 #. type: textblock
18788 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6796
18789 msgid "(Added in 1.3.18)"
18790 msgstr ""
18791
18792 # type: =head2
18793 #. type: =head2
18794 #: ../src/guestfs-actions.pod:6761
18795 msgid "guestfs_vfs_type"
18796 msgstr ""
18797
18798 # type: verbatim
18799 #. type: verbatim
18800 #: ../src/guestfs-actions.pod:6763
18801 #, no-wrap
18802 msgid ""
18803 " char *\n"
18804 " guestfs_vfs_type (guestfs_h *g,\n"
18805 "                   const char *device);\n"
18806 "\n"
18807 msgstr ""
18808
18809 # type: textblock
18810 #. type: textblock
18811 #: ../src/guestfs-actions.pod:6767 ../fish/guestfish-actions.pod:4534
18812 msgid ""
18813 "This command gets the filesystem type corresponding to the filesystem on "
18814 "C<device>."
18815 msgstr ""
18816
18817 # type: textblock
18818 #. type: textblock
18819 #: ../src/guestfs-actions.pod:6770 ../fish/guestfish-actions.pod:4537
18820 msgid ""
18821 "For most filesystems, the result is the name of the Linux VFS module which "
18822 "would be used to mount this filesystem if you mounted it without specifying "
18823 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18824 msgstr ""
18825
18826 # type: =head2
18827 #. type: =head2
18828 #: ../src/guestfs-actions.pod:6780
18829 msgid "guestfs_vfs_uuid"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #. type: verbatim
18834 #: ../src/guestfs-actions.pod:6782
18835 #, no-wrap
18836 msgid ""
18837 " char *\n"
18838 " guestfs_vfs_uuid (guestfs_h *g,\n"
18839 "                   const char *device);\n"
18840 "\n"
18841 msgstr ""
18842
18843 # type: textblock
18844 #. type: textblock
18845 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4546
18846 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18847 msgstr ""
18848
18849 # type: textblock
18850 #. type: textblock
18851 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4549
18852 msgid "If the filesystem does not have a UUID, this returns the empty string."
18853 msgstr ""
18854
18855 # type: textblock
18856 #. type: textblock
18857 #: ../src/guestfs-actions.pod:6791
18858 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18859 msgstr ""
18860
18861 # type: =head2
18862 #. type: =head2
18863 #: ../src/guestfs-actions.pod:6798
18864 msgid "guestfs_vg_activate"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #. type: verbatim
18869 #: ../src/guestfs-actions.pod:6800
18870 #, no-wrap
18871 msgid ""
18872 " int\n"
18873 " guestfs_vg_activate (guestfs_h *g,\n"
18874 "                      int activate,\n"
18875 "                      char *const *volgroups);\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #. type: textblock
18881 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4557
18882 msgid ""
18883 "This command activates or (if C<activate> is false) deactivates all logical "
18884 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18885 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18886 "deactivated, then those devices disappear."
18887 msgstr ""
18888
18889 # type: textblock
18890 #. type: textblock
18891 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4563
18892 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18893 msgstr ""
18894
18895 # type: textblock
18896 #. type: textblock
18897 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4565
18898 msgid ""
18899 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18900 "activated or deactivated."
18901 msgstr ""
18902
18903 # type: =head2
18904 #. type: =head2
18905 #: ../src/guestfs-actions.pod:6820
18906 msgid "guestfs_vg_activate_all"
18907 msgstr ""
18908
18909 # type: verbatim
18910 #. type: verbatim
18911 #: ../src/guestfs-actions.pod:6822
18912 #, no-wrap
18913 msgid ""
18914 " int\n"
18915 " guestfs_vg_activate_all (guestfs_h *g,\n"
18916 "                          int activate);\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: textblock
18921 #. type: textblock
18922 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4572
18923 msgid ""
18924 "This command activates or (if C<activate> is false) deactivates all logical "
18925 "volumes in all volume groups.  If activated, then they are made known to the "
18926 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18927 "those devices disappear."
18928 msgstr ""
18929
18930 # type: textblock
18931 #. type: textblock
18932 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4578
18933 msgid "This command is the same as running C<vgchange -a y|n>"
18934 msgstr ""
18935
18936 # type: =head2
18937 #. type: =head2
18938 #: ../src/guestfs-actions.pod:6838
18939 msgid "guestfs_vgcreate"
18940 msgstr ""
18941
18942 # type: verbatim
18943 #. type: verbatim
18944 #: ../src/guestfs-actions.pod:6840
18945 #, no-wrap
18946 msgid ""
18947 " int\n"
18948 " guestfs_vgcreate (guestfs_h *g,\n"
18949 "                   const char *volgroup,\n"
18950 "                   char *const *physvols);\n"
18951 "\n"
18952 msgstr ""
18953
18954 # type: textblock
18955 #. type: textblock
18956 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4584
18957 msgid ""
18958 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18959 "of physical volumes C<physvols>."
18960 msgstr ""
18961
18962 # type: =head2
18963 #. type: =head2
18964 #: ../src/guestfs-actions.pod:6852
18965 msgid "guestfs_vglvuuids"
18966 msgstr ""
18967
18968 # type: verbatim
18969 #. type: verbatim
18970 #: ../src/guestfs-actions.pod:6854
18971 #, no-wrap
18972 msgid ""
18973 " char **\n"
18974 " guestfs_vglvuuids (guestfs_h *g,\n"
18975 "                    const char *vgname);\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: textblock
18980 #. type: textblock
18981 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4591
18982 msgid ""
18983 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18984 "volumes created in this volume group."
18985 msgstr ""
18986
18987 # type: textblock
18988 #. type: textblock
18989 #: ../src/guestfs-actions.pod:6861
18990 msgid ""
18991 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18992 "associate logical volumes and volume groups."
18993 msgstr ""
18994
18995 # type: textblock
18996 #. type: textblock
18997 #: ../src/guestfs-actions.pod:6864
18998 msgid "See also C<guestfs_vgpvuuids>."
18999 msgstr ""
19000
19001 # type: =head2
19002 #. type: =head2
19003 #: ../src/guestfs-actions.pod:6872
19004 msgid "guestfs_vgpvuuids"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #. type: verbatim
19009 #: ../src/guestfs-actions.pod:6874
19010 #, no-wrap
19011 msgid ""
19012 " char **\n"
19013 " guestfs_vgpvuuids (guestfs_h *g,\n"
19014 "                    const char *vgname);\n"
19015 "\n"
19016 msgstr ""
19017
19018 # type: textblock
19019 #. type: textblock
19020 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4603
19021 msgid ""
19022 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19023 "volumes that this volume group resides on."
19024 msgstr ""
19025
19026 # type: textblock
19027 #. type: textblock
19028 #: ../src/guestfs-actions.pod:6881
19029 msgid ""
19030 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19031 "associate physical volumes and volume groups."
19032 msgstr ""
19033
19034 # type: textblock
19035 #. type: textblock
19036 #: ../src/guestfs-actions.pod:6884
19037 msgid "See also C<guestfs_vglvuuids>."
19038 msgstr ""
19039
19040 # type: =head2
19041 #. type: =head2
19042 #: ../src/guestfs-actions.pod:6892
19043 msgid "guestfs_vgremove"
19044 msgstr ""
19045
19046 # type: verbatim
19047 #. type: verbatim
19048 #: ../src/guestfs-actions.pod:6894
19049 #, no-wrap
19050 msgid ""
19051 " int\n"
19052 " guestfs_vgremove (guestfs_h *g,\n"
19053 "                   const char *vgname);\n"
19054 "\n"
19055 msgstr ""
19056
19057 # type: textblock
19058 #. type: textblock
19059 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4615
19060 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19061 msgstr ""
19062
19063 # type: textblock
19064 #. type: textblock
19065 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4617
19066 msgid ""
19067 "This also forcibly removes all logical volumes in the volume group (if any)."
19068 msgstr ""
19069
19070 # type: =head2
19071 #. type: =head2
19072 #: ../src/guestfs-actions.pod:6907
19073 msgid "guestfs_vgrename"
19074 msgstr ""
19075
19076 # type: verbatim
19077 #. type: verbatim
19078 #: ../src/guestfs-actions.pod:6909
19079 #, no-wrap
19080 msgid ""
19081 " int\n"
19082 " guestfs_vgrename (guestfs_h *g,\n"
19083 "                   const char *volgroup,\n"
19084 "                   const char *newvolgroup);\n"
19085 "\n"
19086 msgstr ""
19087
19088 # type: textblock
19089 #. type: textblock
19090 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4624
19091 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19092 msgstr ""
19093
19094 # type: =head2
19095 #. type: =head2
19096 #: ../src/guestfs-actions.pod:6920
19097 msgid "guestfs_vgs"
19098 msgstr ""
19099
19100 # type: verbatim
19101 #. type: verbatim
19102 #: ../src/guestfs-actions.pod:6922
19103 #, no-wrap
19104 msgid ""
19105 " char **\n"
19106 " guestfs_vgs (guestfs_h *g);\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4630
19113 msgid ""
19114 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19115 "> command."
19116 msgstr ""
19117
19118 # type: textblock
19119 #. type: textblock
19120 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4633
19121 msgid ""
19122 "This returns a list of just the volume group names that were detected (eg. "
19123 "C<VolGroup00>)."
19124 msgstr ""
19125
19126 # type: textblock
19127 #. type: textblock
19128 #: ../src/guestfs-actions.pod:6931
19129 msgid "See also C<guestfs_vgs_full>."
19130 msgstr ""
19131
19132 # type: =head2
19133 #. type: =head2
19134 #: ../src/guestfs-actions.pod:6939
19135 msgid "guestfs_vgs_full"
19136 msgstr ""
19137
19138 # type: verbatim
19139 #. type: verbatim
19140 #: ../src/guestfs-actions.pod:6941
19141 #, no-wrap
19142 msgid ""
19143 " struct guestfs_lvm_vg_list *\n"
19144 " guestfs_vgs_full (guestfs_h *g);\n"
19145 "\n"
19146 msgstr ""
19147
19148 # type: textblock
19149 #. type: textblock
19150 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4642
19151 msgid ""
19152 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19153 "> command.  The \"full\" version includes all fields."
19154 msgstr ""
19155
19156 # type: textblock
19157 #. type: textblock
19158 #: ../src/guestfs-actions.pod:6947
19159 msgid ""
19160 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19161 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19162 msgstr ""
19163
19164 # type: =head2
19165 #. type: =head2
19166 #: ../src/guestfs-actions.pod:6953
19167 msgid "guestfs_vgscan"
19168 msgstr ""
19169
19170 # type: verbatim
19171 #. type: verbatim
19172 #: ../src/guestfs-actions.pod:6955
19173 #, no-wrap
19174 msgid ""
19175 " int\n"
19176 " guestfs_vgscan (guestfs_h *g);\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4649
19183 msgid ""
19184 "This rescans all block devices and rebuilds the list of LVM physical "
19185 "volumes, volume groups and logical volumes."
19186 msgstr ""
19187
19188 # type: =head2
19189 #. type: =head2
19190 #: ../src/guestfs-actions.pod:6965
19191 msgid "guestfs_vguuid"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #. type: verbatim
19196 #: ../src/guestfs-actions.pod:6967
19197 #, no-wrap
19198 msgid ""
19199 " char *\n"
19200 " guestfs_vguuid (guestfs_h *g,\n"
19201 "                 const char *vgname);\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #. type: textblock
19207 #: ../src/guestfs-actions.pod:6971 ../fish/guestfish-actions.pod:4656
19208 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19209 msgstr ""
19210
19211 # type: =head2
19212 #. type: =head2
19213 #: ../src/guestfs-actions.pod:6978
19214 msgid "guestfs_wait_ready"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #. type: verbatim
19219 #: ../src/guestfs-actions.pod:6980
19220 #, no-wrap
19221 msgid ""
19222 " int\n"
19223 " guestfs_wait_ready (guestfs_h *g);\n"
19224 "\n"
19225 msgstr ""
19226
19227 # type: textblock
19228 #. type: textblock
19229 #: ../src/guestfs-actions.pod:6983
19230 msgid "This function is a no op."
19231 msgstr ""
19232
19233 # type: textblock
19234 #. type: textblock
19235 #: ../src/guestfs-actions.pod:6985
19236 msgid ""
19237 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19238 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19239 "is no longer necessary because C<guestfs_launch> now does the waiting."
19240 msgstr ""
19241
19242 # type: textblock
19243 #. type: textblock
19244 #: ../src/guestfs-actions.pod:6990
19245 msgid ""
19246 "If you see any calls to this function in code then you can just remove them, "
19247 "unless you want to retain compatibility with older versions of the API."
19248 msgstr ""
19249
19250 # type: =head2
19251 #. type: =head2
19252 #: ../src/guestfs-actions.pod:6998
19253 msgid "guestfs_wc_c"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #. type: verbatim
19258 #: ../src/guestfs-actions.pod:7000
19259 #, no-wrap
19260 msgid ""
19261 " int\n"
19262 " guestfs_wc_c (guestfs_h *g,\n"
19263 "               const char *path);\n"
19264 "\n"
19265 msgstr ""
19266
19267 # type: textblock
19268 #. type: textblock
19269 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4662
19270 msgid ""
19271 "This command counts the characters in a file, using the C<wc -c> external "
19272 "command."
19273 msgstr ""
19274
19275 # type: =head2
19276 #. type: =head2
19277 #: ../src/guestfs-actions.pod:7011
19278 msgid "guestfs_wc_l"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #. type: verbatim
19283 #: ../src/guestfs-actions.pod:7013
19284 #, no-wrap
19285 msgid ""
19286 " int\n"
19287 " guestfs_wc_l (guestfs_h *g,\n"
19288 "               const char *path);\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #. type: textblock
19294 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4669
19295 msgid ""
19296 "This command counts the lines in a file, using the C<wc -l> external command."
19297 msgstr ""
19298
19299 # type: =head2
19300 #. type: =head2
19301 #: ../src/guestfs-actions.pod:7024
19302 msgid "guestfs_wc_w"
19303 msgstr ""
19304
19305 # type: verbatim
19306 #. type: verbatim
19307 #: ../src/guestfs-actions.pod:7026
19308 #, no-wrap
19309 msgid ""
19310 " int\n"
19311 " guestfs_wc_w (guestfs_h *g,\n"
19312 "               const char *path);\n"
19313 "\n"
19314 msgstr ""
19315
19316 # type: textblock
19317 #. type: textblock
19318 #: ../src/guestfs-actions.pod:7030 ../fish/guestfish-actions.pod:4676
19319 msgid ""
19320 "This command counts the words in a file, using the C<wc -w> external command."
19321 msgstr ""
19322
19323 # type: =head2
19324 #. type: =head2
19325 #: ../src/guestfs-actions.pod:7037
19326 msgid "guestfs_write"
19327 msgstr ""
19328
19329 # type: verbatim
19330 #. type: verbatim
19331 #: ../src/guestfs-actions.pod:7039
19332 #, no-wrap
19333 msgid ""
19334 " int\n"
19335 " guestfs_write (guestfs_h *g,\n"
19336 "                const char *path,\n"
19337 "                const char *content,\n"
19338 "                size_t content_size);\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #. type: textblock
19344 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4683
19345 msgid ""
19346 "This call creates a file called C<path>.  The content of the file is the "
19347 "string C<content> (which can contain any 8 bit data)."
19348 msgstr ""
19349
19350 # type: =head2
19351 #. type: =head2
19352 #: ../src/guestfs-actions.pod:7055
19353 msgid "guestfs_write_file"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #. type: verbatim
19358 #: ../src/guestfs-actions.pod:7057
19359 #, no-wrap
19360 msgid ""
19361 " int\n"
19362 " guestfs_write_file (guestfs_h *g,\n"
19363 "                     const char *path,\n"
19364 "                     const char *content,\n"
19365 "                     int size);\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #. type: textblock
19371 #: ../src/guestfs-actions.pod:7063 ../fish/guestfish-actions.pod:4693
19372 msgid ""
19373 "This call creates a file called C<path>.  The contents of the file is the "
19374 "string C<content> (which can contain any 8 bit data), with length C<size>."
19375 msgstr ""
19376
19377 # type: textblock
19378 #. type: textblock
19379 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4697
19380 msgid ""
19381 "As a special case, if C<size> is C<0> then the length is calculated using "
19382 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19383 msgstr ""
19384
19385 # type: textblock
19386 #. type: textblock
19387 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4701
19388 msgid ""
19389 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19390 "I<not> work, even if the length is specified."
19391 msgstr ""
19392
19393 # type: textblock
19394 #. type: textblock
19395 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4707
19396 msgid ""
19397 "This function is deprecated.  In new code, use the C<write> call instead."
19398 msgstr ""
19399
19400 # type: =head2
19401 #. type: =head2
19402 #: ../src/guestfs-actions.pod:7088
19403 msgid "guestfs_zegrep"
19404 msgstr ""
19405
19406 # type: verbatim
19407 #. type: verbatim
19408 #: ../src/guestfs-actions.pod:7090
19409 #, no-wrap
19410 msgid ""
19411 " char **\n"
19412 " guestfs_zegrep (guestfs_h *g,\n"
19413 "                 const char *regex,\n"
19414 "                 const char *path);\n"
19415 "\n"
19416 msgstr ""
19417
19418 # type: textblock
19419 #. type: textblock
19420 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4718
19421 msgid ""
19422 "This calls the external C<zegrep> program and returns the matching lines."
19423 msgstr ""
19424
19425 # type: =head2
19426 #. type: =head2
19427 #: ../src/guestfs-actions.pod:7107
19428 msgid "guestfs_zegrepi"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #. type: verbatim
19433 #: ../src/guestfs-actions.pod:7109
19434 #, no-wrap
19435 msgid ""
19436 " char **\n"
19437 " guestfs_zegrepi (guestfs_h *g,\n"
19438 "                  const char *regex,\n"
19439 "                  const char *path);\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #. type: textblock
19445 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4728
19446 msgid ""
19447 "This calls the external C<zegrep -i> program and returns the matching lines."
19448 msgstr ""
19449
19450 # type: =head2
19451 #. type: =head2
19452 #: ../src/guestfs-actions.pod:7126
19453 msgid "guestfs_zero"
19454 msgstr ""
19455
19456 # type: verbatim
19457 #. type: verbatim
19458 #: ../src/guestfs-actions.pod:7128
19459 #, no-wrap
19460 msgid ""
19461 " int\n"
19462 " guestfs_zero (guestfs_h *g,\n"
19463 "               const char *device);\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: textblock
19468 #. type: textblock
19469 #: ../src/guestfs-actions.pod:7132 ../fish/guestfish-actions.pod:4738
19470 msgid "This command writes zeroes over the first few blocks of C<device>."
19471 msgstr ""
19472
19473 # type: textblock
19474 #. type: textblock
19475 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:4740
19476 msgid ""
19477 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19478 "securely wipe the device).  It should be sufficient to remove any partition "
19479 "tables, filesystem superblocks and so on."
19480 msgstr ""
19481
19482 # type: textblock
19483 #. type: textblock
19484 #: ../src/guestfs-actions.pod:7138
19485 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
19486 msgstr ""
19487
19488 # type: =head2
19489 #. type: =head2
19490 #: ../src/guestfs-actions.pod:7149
19491 msgid "guestfs_zero_device"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #. type: verbatim
19496 #: ../src/guestfs-actions.pod:7151
19497 #, no-wrap
19498 msgid ""
19499 " int\n"
19500 " guestfs_zero_device (guestfs_h *g,\n"
19501 "                      const char *device);\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: textblock
19506 #. type: textblock
19507 #: ../src/guestfs-actions.pod:7155
19508 msgid ""
19509 "This command writes zeroes over the entire C<device>.  Compare with "
19510 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19511 msgstr ""
19512
19513 # type: textblock
19514 #. type: textblock
19515 #: ../src/guestfs-actions.pod:7169
19516 msgid "(Added in 1.3.1)"
19517 msgstr ""
19518
19519 # type: =head2
19520 #. type: =head2
19521 #: ../src/guestfs-actions.pod:7171
19522 msgid "guestfs_zerofree"
19523 msgstr ""
19524
19525 # type: verbatim
19526 #. type: verbatim
19527 #: ../src/guestfs-actions.pod:7173
19528 #, no-wrap
19529 msgid ""
19530 " int\n"
19531 " guestfs_zerofree (guestfs_h *g,\n"
19532 "                   const char *device);\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: textblock
19537 #. type: textblock
19538 #: ../src/guestfs-actions.pod:7177 ../fish/guestfish-actions.pod:4761
19539 msgid ""
19540 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19541 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19542 "possible to compress the filesystem more effectively."
19543 msgstr ""
19544
19545 # type: textblock
19546 #. type: textblock
19547 #: ../src/guestfs-actions.pod:7182 ../fish/guestfish-actions.pod:4766
19548 msgid "You should B<not> run this program if the filesystem is mounted."
19549 msgstr ""
19550
19551 # type: textblock
19552 #. type: textblock
19553 #: ../src/guestfs-actions.pod:7185 ../fish/guestfish-actions.pod:4769
19554 msgid ""
19555 "It is possible that using this program can damage the filesystem or data on "
19556 "the filesystem."
19557 msgstr ""
19558
19559 # type: =head2
19560 #. type: =head2
19561 #: ../src/guestfs-actions.pod:7192
19562 msgid "guestfs_zfgrep"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #. type: verbatim
19567 #: ../src/guestfs-actions.pod:7194
19568 #, no-wrap
19569 msgid ""
19570 " char **\n"
19571 " guestfs_zfgrep (guestfs_h *g,\n"
19572 "                 const char *pattern,\n"
19573 "                 const char *path);\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: textblock
19578 #. type: textblock
19579 #: ../src/guestfs-actions.pod:7199 ../fish/guestfish-actions.pod:4776
19580 msgid ""
19581 "This calls the external C<zfgrep> program and returns the matching lines."
19582 msgstr ""
19583
19584 # type: =head2
19585 #. type: =head2
19586 #: ../src/guestfs-actions.pod:7211
19587 msgid "guestfs_zfgrepi"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #. type: verbatim
19592 #: ../src/guestfs-actions.pod:7213
19593 #, no-wrap
19594 msgid ""
19595 " char **\n"
19596 " guestfs_zfgrepi (guestfs_h *g,\n"
19597 "                  const char *pattern,\n"
19598 "                  const char *path);\n"
19599 "\n"
19600 msgstr ""
19601
19602 # type: textblock
19603 #. type: textblock
19604 #: ../src/guestfs-actions.pod:7218 ../fish/guestfish-actions.pod:4786
19605 msgid ""
19606 "This calls the external C<zfgrep -i> program and returns the matching lines."
19607 msgstr ""
19608
19609 # type: =head2
19610 #. type: =head2
19611 #: ../src/guestfs-actions.pod:7230
19612 msgid "guestfs_zfile"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #. type: verbatim
19617 #: ../src/guestfs-actions.pod:7232
19618 #, no-wrap
19619 msgid ""
19620 " char *\n"
19621 " guestfs_zfile (guestfs_h *g,\n"
19622 "                const char *meth,\n"
19623 "                const char *path);\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: textblock
19628 #. type: textblock
19629 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4796
19630 msgid ""
19631 "This command runs C<file> after first decompressing C<path> using C<method>."
19632 msgstr ""
19633
19634 # type: textblock
19635 #. type: textblock
19636 #: ../src/guestfs-actions.pod:7240 ../fish/guestfish-actions.pod:4799
19637 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19638 msgstr ""
19639
19640 # type: textblock
19641 #. type: textblock
19642 #: ../src/guestfs-actions.pod:7242
19643 msgid ""
19644 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19645 "files."
19646 msgstr ""
19647
19648 # type: textblock
19649 #. type: textblock
19650 #: ../src/guestfs-actions.pod:7248 ../fish/guestfish-actions.pod:4804
19651 msgid ""
19652 "This function is deprecated.  In new code, use the C<file> call instead."
19653 msgstr ""
19654
19655 # type: =head2
19656 #. type: =head2
19657 #: ../src/guestfs-actions.pod:7257
19658 msgid "guestfs_zgrep"
19659 msgstr ""
19660
19661 # type: verbatim
19662 #. type: verbatim
19663 #: ../src/guestfs-actions.pod:7259
19664 #, no-wrap
19665 msgid ""
19666 " char **\n"
19667 " guestfs_zgrep (guestfs_h *g,\n"
19668 "                const char *regex,\n"
19669 "                const char *path);\n"
19670 "\n"
19671 msgstr ""
19672
19673 # type: textblock
19674 #. type: textblock
19675 #: ../src/guestfs-actions.pod:7264 ../fish/guestfish-actions.pod:4815
19676 msgid ""
19677 "This calls the external C<zgrep> program and returns the matching lines."
19678 msgstr ""
19679
19680 # type: =head2
19681 #. type: =head2
19682 #: ../src/guestfs-actions.pod:7276
19683 msgid "guestfs_zgrepi"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #. type: verbatim
19688 #: ../src/guestfs-actions.pod:7278
19689 #, no-wrap
19690 msgid ""
19691 " char **\n"
19692 " guestfs_zgrepi (guestfs_h *g,\n"
19693 "                 const char *regex,\n"
19694 "                 const char *path);\n"
19695 "\n"
19696 msgstr ""
19697
19698 # type: textblock
19699 #. type: textblock
19700 #: ../src/guestfs-actions.pod:7283 ../fish/guestfish-actions.pod:4825
19701 msgid ""
19702 "This calls the external C<zgrep -i> program and returns the matching lines."
19703 msgstr ""
19704
19705 # type: =item
19706 #. type: =item
19707 #: ../src/guestfs-availability.pod:3
19708 msgid "B<augeas>"
19709 msgstr ""
19710
19711 # type: textblock
19712 #. type: textblock
19713 #: ../src/guestfs-availability.pod:5
19714 msgid ""
19715 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
19716 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
19717 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
19718 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
19719 "L</guestfs_aug_save> L</guestfs_aug_set>"
19720 msgstr ""
19721
19722 # type: =item
19723 #. type: =item
19724 #: ../src/guestfs-availability.pod:21
19725 msgid "B<inotify>"
19726 msgstr ""
19727
19728 # type: textblock
19729 #. type: textblock
19730 #: ../src/guestfs-availability.pod:23
19731 msgid ""
19732 "The following functions: L</guestfs_inotify_add_watch> L</"
19733 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
19734 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19735 msgstr ""
19736
19737 # type: =item
19738 #. type: =item
19739 #: ../src/guestfs-availability.pod:31
19740 msgid "B<linuxfsuuid>"
19741 msgstr ""
19742
19743 # type: textblock
19744 #. type: textblock
19745 #: ../src/guestfs-availability.pod:33
19746 msgid ""
19747 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
19748 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19749 msgstr ""
19750
19751 # type: =item
19752 #. type: =item
19753 #: ../src/guestfs-availability.pod:40
19754 msgid "B<linuxmodules>"
19755 msgstr ""
19756
19757 # type: textblock
19758 #. type: textblock
19759 #: ../src/guestfs-availability.pod:42
19760 msgid "The following functions: L</guestfs_modprobe>"
19761 msgstr ""
19762
19763 # type: =item
19764 #. type: =item
19765 #: ../src/guestfs-availability.pod:45
19766 msgid "B<linuxxattrs>"
19767 msgstr ""
19768
19769 # type: textblock
19770 #. type: textblock
19771 #: ../src/guestfs-availability.pod:47
19772 msgid ""
19773 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
19774 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
19775 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
19776 "guestfs_setxattr>"
19777 msgstr ""
19778
19779 # type: =item
19780 #. type: =item
19781 #: ../src/guestfs-availability.pod:58
19782 msgid "B<luks>"
19783 msgstr ""
19784
19785 # type: textblock
19786 #. type: textblock
19787 #: ../src/guestfs-availability.pod:60
19788 msgid ""
19789 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
19790 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
19791 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
19792 msgstr ""
19793
19794 # type: =item
19795 #. type: =item
19796 #: ../src/guestfs-availability.pod:69
19797 msgid "B<lvm2>"
19798 msgstr ""
19799
19800 # type: textblock
19801 #. type: textblock
19802 #: ../src/guestfs-availability.pod:71
19803 msgid ""
19804 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
19805 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
19806 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
19807 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
19808 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
19809 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
19810 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
19811 msgstr ""
19812
19813 # type: =item
19814 #. type: =item
19815 #: ../src/guestfs-availability.pod:94
19816 msgid "B<mknod>"
19817 msgstr ""
19818
19819 # type: textblock
19820 #. type: textblock
19821 #: ../src/guestfs-availability.pod:96
19822 msgid ""
19823 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19824 "guestfs_mknod_b> L</guestfs_mknod_c>"
19825 msgstr ""
19826
19827 # type: =item
19828 #. type: =item
19829 #: ../src/guestfs-availability.pod:102
19830 msgid "B<ntfs3g>"
19831 msgstr ""
19832
19833 # type: textblock
19834 #. type: textblock
19835 #: ../src/guestfs-availability.pod:104
19836 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19837 msgstr ""
19838
19839 # type: =item
19840 #. type: =item
19841 #: ../src/guestfs-availability.pod:107
19842 msgid "B<ntfsprogs>"
19843 msgstr ""
19844
19845 # type: textblock
19846 #. type: textblock
19847 #: ../src/guestfs-availability.pod:109
19848 msgid ""
19849 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19850 msgstr ""
19851
19852 # type: =item
19853 #. type: =item
19854 #: ../src/guestfs-availability.pod:113
19855 msgid "B<realpath>"
19856 msgstr ""
19857
19858 # type: textblock
19859 #. type: textblock
19860 #: ../src/guestfs-availability.pod:115
19861 msgid "The following functions: L</guestfs_realpath>"
19862 msgstr ""
19863
19864 # type: =item
19865 #. type: =item
19866 #: ../src/guestfs-availability.pod:118
19867 msgid "B<scrub>"
19868 msgstr ""
19869
19870 # type: textblock
19871 #. type: textblock
19872 #: ../src/guestfs-availability.pod:120
19873 msgid ""
19874 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19875 "guestfs_scrub_freespace>"
19876 msgstr ""
19877
19878 # type: =item
19879 #. type: =item
19880 #: ../src/guestfs-availability.pod:125
19881 msgid "B<selinux>"
19882 msgstr ""
19883
19884 # type: textblock
19885 #. type: textblock
19886 #: ../src/guestfs-availability.pod:127
19887 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19888 msgstr ""
19889
19890 # type: =item
19891 #. type: =item
19892 #: ../src/guestfs-availability.pod:131
19893 msgid "B<xz>"
19894 msgstr ""
19895
19896 # type: textblock
19897 #. type: textblock
19898 #: ../src/guestfs-availability.pod:133
19899 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19900 msgstr ""
19901
19902 # type: =item
19903 #. type: =item
19904 #: ../src/guestfs-availability.pod:137
19905 msgid "B<zerofree>"
19906 msgstr ""
19907
19908 # type: textblock
19909 #. type: textblock
19910 #: ../src/guestfs-availability.pod:139
19911 msgid "The following functions: L</guestfs_zerofree>"
19912 msgstr ""
19913
19914 # type: =head2
19915 #. type: =head2
19916 #: ../src/guestfs-structs.pod:1
19917 msgid "guestfs_int_bool"
19918 msgstr ""
19919
19920 # type: verbatim
19921 #. type: verbatim
19922 #: ../src/guestfs-structs.pod:3
19923 #, no-wrap
19924 msgid ""
19925 " struct guestfs_int_bool {\n"
19926 "   int32_t i;\n"
19927 "   int32_t b;\n"
19928 " };\n"
19929 " \n"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #. type: verbatim
19934 #: ../src/guestfs-structs.pod:8
19935 #, no-wrap
19936 msgid ""
19937 " struct guestfs_int_bool_list {\n"
19938 "   uint32_t len; /* Number of elements in list. */\n"
19939 "   struct guestfs_int_bool *val; /* Elements. */\n"
19940 " };\n"
19941 " \n"
19942 msgstr ""
19943
19944 # type: verbatim
19945 #. type: verbatim
19946 #: ../src/guestfs-structs.pod:13
19947 #, no-wrap
19948 msgid ""
19949 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19950 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19951 "\n"
19952 msgstr ""
19953
19954 # type: =head2
19955 #. type: =head2
19956 #: ../src/guestfs-structs.pod:16
19957 msgid "guestfs_lvm_pv"
19958 msgstr ""
19959
19960 # type: verbatim
19961 #. type: verbatim
19962 #: ../src/guestfs-structs.pod:18
19963 #, no-wrap
19964 msgid ""
19965 " struct guestfs_lvm_pv {\n"
19966 "   char *pv_name;\n"
19967 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19968 "   char pv_uuid[32];\n"
19969 "   char *pv_fmt;\n"
19970 "   uint64_t pv_size;\n"
19971 "   uint64_t dev_size;\n"
19972 "   uint64_t pv_free;\n"
19973 "   uint64_t pv_used;\n"
19974 "   char *pv_attr;\n"
19975 "   int64_t pv_pe_count;\n"
19976 "   int64_t pv_pe_alloc_count;\n"
19977 "   char *pv_tags;\n"
19978 "   uint64_t pe_start;\n"
19979 "   int64_t pv_mda_count;\n"
19980 "   uint64_t pv_mda_free;\n"
19981 " };\n"
19982 " \n"
19983 msgstr ""
19984
19985 # type: verbatim
19986 #. type: verbatim
19987 #: ../src/guestfs-structs.pod:36
19988 #, no-wrap
19989 msgid ""
19990 " struct guestfs_lvm_pv_list {\n"
19991 "   uint32_t len; /* Number of elements in list. */\n"
19992 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19993 " };\n"
19994 " \n"
19995 msgstr ""
19996
19997 # type: verbatim
19998 #. type: verbatim
19999 #: ../src/guestfs-structs.pod:41
20000 #, no-wrap
20001 msgid ""
20002 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20003 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20004 "\n"
20005 msgstr ""
20006
20007 # type: =head2
20008 #. type: =head2
20009 #: ../src/guestfs-structs.pod:44
20010 msgid "guestfs_lvm_vg"
20011 msgstr ""
20012
20013 # type: verbatim
20014 #. type: verbatim
20015 #: ../src/guestfs-structs.pod:46
20016 #, no-wrap
20017 msgid ""
20018 " struct guestfs_lvm_vg {\n"
20019 "   char *vg_name;\n"
20020 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20021 "   char vg_uuid[32];\n"
20022 "   char *vg_fmt;\n"
20023 "   char *vg_attr;\n"
20024 "   uint64_t vg_size;\n"
20025 "   uint64_t vg_free;\n"
20026 "   char *vg_sysid;\n"
20027 "   uint64_t vg_extent_size;\n"
20028 "   int64_t vg_extent_count;\n"
20029 "   int64_t vg_free_count;\n"
20030 "   int64_t max_lv;\n"
20031 "   int64_t max_pv;\n"
20032 "   int64_t pv_count;\n"
20033 "   int64_t lv_count;\n"
20034 "   int64_t snap_count;\n"
20035 "   int64_t vg_seqno;\n"
20036 "   char *vg_tags;\n"
20037 "   int64_t vg_mda_count;\n"
20038 "   uint64_t vg_mda_free;\n"
20039 " };\n"
20040 " \n"
20041 msgstr ""
20042
20043 # type: verbatim
20044 #. type: verbatim
20045 #: ../src/guestfs-structs.pod:69
20046 #, no-wrap
20047 msgid ""
20048 " struct guestfs_lvm_vg_list {\n"
20049 "   uint32_t len; /* Number of elements in list. */\n"
20050 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20051 " };\n"
20052 " \n"
20053 msgstr ""
20054
20055 # type: verbatim
20056 #. type: verbatim
20057 #: ../src/guestfs-structs.pod:74
20058 #, no-wrap
20059 msgid ""
20060 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20061 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20062 "\n"
20063 msgstr ""
20064
20065 # type: =head2
20066 #. type: =head2
20067 #: ../src/guestfs-structs.pod:77
20068 msgid "guestfs_lvm_lv"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #. type: verbatim
20073 #: ../src/guestfs-structs.pod:79
20074 #, no-wrap
20075 msgid ""
20076 " struct guestfs_lvm_lv {\n"
20077 "   char *lv_name;\n"
20078 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20079 "   char lv_uuid[32];\n"
20080 "   char *lv_attr;\n"
20081 "   int64_t lv_major;\n"
20082 "   int64_t lv_minor;\n"
20083 "   int64_t lv_kernel_major;\n"
20084 "   int64_t lv_kernel_minor;\n"
20085 "   uint64_t lv_size;\n"
20086 "   int64_t seg_count;\n"
20087 "   char *origin;\n"
20088 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20089 "   float snap_percent;\n"
20090 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20091 "   float copy_percent;\n"
20092 "   char *move_pv;\n"
20093 "   char *lv_tags;\n"
20094 "   char *mirror_log;\n"
20095 "   char *modules;\n"
20096 " };\n"
20097 " \n"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #. type: verbatim
20102 #: ../src/guestfs-structs.pod:101
20103 #, no-wrap
20104 msgid ""
20105 " struct guestfs_lvm_lv_list {\n"
20106 "   uint32_t len; /* Number of elements in list. */\n"
20107 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20108 " };\n"
20109 " \n"
20110 msgstr ""
20111
20112 # type: verbatim
20113 #. type: verbatim
20114 #: ../src/guestfs-structs.pod:106
20115 #, no-wrap
20116 msgid ""
20117 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20118 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20119 "\n"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #. type: verbatim
20124 #: ../src/guestfs-structs.pod:111
20125 #, no-wrap
20126 msgid ""
20127 " struct guestfs_stat {\n"
20128 "   int64_t dev;\n"
20129 "   int64_t ino;\n"
20130 "   int64_t mode;\n"
20131 "   int64_t nlink;\n"
20132 "   int64_t uid;\n"
20133 "   int64_t gid;\n"
20134 "   int64_t rdev;\n"
20135 "   int64_t size;\n"
20136 "   int64_t blksize;\n"
20137 "   int64_t blocks;\n"
20138 "   int64_t atime;\n"
20139 "   int64_t mtime;\n"
20140 "   int64_t ctime;\n"
20141 " };\n"
20142 " \n"
20143 msgstr ""
20144
20145 # type: verbatim
20146 #. type: verbatim
20147 #: ../src/guestfs-structs.pod:127
20148 #, no-wrap
20149 msgid ""
20150 " struct guestfs_stat_list {\n"
20151 "   uint32_t len; /* Number of elements in list. */\n"
20152 "   struct guestfs_stat *val; /* Elements. */\n"
20153 " };\n"
20154 " \n"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #. type: verbatim
20159 #: ../src/guestfs-structs.pod:132
20160 #, no-wrap
20161 msgid ""
20162 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20163 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #. type: verbatim
20169 #: ../src/guestfs-structs.pod:137
20170 #, no-wrap
20171 msgid ""
20172 " struct guestfs_statvfs {\n"
20173 "   int64_t bsize;\n"
20174 "   int64_t frsize;\n"
20175 "   int64_t blocks;\n"
20176 "   int64_t bfree;\n"
20177 "   int64_t bavail;\n"
20178 "   int64_t files;\n"
20179 "   int64_t ffree;\n"
20180 "   int64_t favail;\n"
20181 "   int64_t fsid;\n"
20182 "   int64_t flag;\n"
20183 "   int64_t namemax;\n"
20184 " };\n"
20185 " \n"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #. type: verbatim
20190 #: ../src/guestfs-structs.pod:151
20191 #, no-wrap
20192 msgid ""
20193 " struct guestfs_statvfs_list {\n"
20194 "   uint32_t len; /* Number of elements in list. */\n"
20195 "   struct guestfs_statvfs *val; /* Elements. */\n"
20196 " };\n"
20197 " \n"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #. type: verbatim
20202 #: ../src/guestfs-structs.pod:156
20203 #, no-wrap
20204 msgid ""
20205 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20206 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20207 "\n"
20208 msgstr ""
20209
20210 # type: =head2
20211 #. type: =head2
20212 #: ../src/guestfs-structs.pod:159
20213 msgid "guestfs_dirent"
20214 msgstr ""
20215
20216 # type: verbatim
20217 #. type: verbatim
20218 #: ../src/guestfs-structs.pod:161
20219 #, no-wrap
20220 msgid ""
20221 " struct guestfs_dirent {\n"
20222 "   int64_t ino;\n"
20223 "   char ftyp;\n"
20224 "   char *name;\n"
20225 " };\n"
20226 " \n"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #. type: verbatim
20231 #: ../src/guestfs-structs.pod:167
20232 #, no-wrap
20233 msgid ""
20234 " struct guestfs_dirent_list {\n"
20235 "   uint32_t len; /* Number of elements in list. */\n"
20236 "   struct guestfs_dirent *val; /* Elements. */\n"
20237 " };\n"
20238 " \n"
20239 msgstr ""
20240
20241 # type: verbatim
20242 #. type: verbatim
20243 #: ../src/guestfs-structs.pod:172
20244 #, no-wrap
20245 msgid ""
20246 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20247 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20248 "\n"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #. type: verbatim
20253 #: ../src/guestfs-structs.pod:177
20254 #, no-wrap
20255 msgid ""
20256 " struct guestfs_version {\n"
20257 "   int64_t major;\n"
20258 "   int64_t minor;\n"
20259 "   int64_t release;\n"
20260 "   char *extra;\n"
20261 " };\n"
20262 " \n"
20263 msgstr ""
20264
20265 # type: verbatim
20266 #. type: verbatim
20267 #: ../src/guestfs-structs.pod:184
20268 #, no-wrap
20269 msgid ""
20270 " struct guestfs_version_list {\n"
20271 "   uint32_t len; /* Number of elements in list. */\n"
20272 "   struct guestfs_version *val; /* Elements. */\n"
20273 " };\n"
20274 " \n"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #. type: verbatim
20279 #: ../src/guestfs-structs.pod:189
20280 #, no-wrap
20281 msgid ""
20282 " void guestfs_free_version (struct guestfs_free_version *);\n"
20283 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20284 "\n"
20285 msgstr ""
20286
20287 # type: =head2
20288 #. type: =head2
20289 #: ../src/guestfs-structs.pod:192
20290 msgid "guestfs_xattr"
20291 msgstr ""
20292
20293 # type: verbatim
20294 #. type: verbatim
20295 #: ../src/guestfs-structs.pod:194
20296 #, no-wrap
20297 msgid ""
20298 " struct guestfs_xattr {\n"
20299 "   char *attrname;\n"
20300 "   /* The next two fields describe a byte array. */\n"
20301 "   uint32_t attrval_len;\n"
20302 "   char *attrval;\n"
20303 " };\n"
20304 " \n"
20305 msgstr ""
20306
20307 # type: verbatim
20308 #. type: verbatim
20309 #: ../src/guestfs-structs.pod:201
20310 #, no-wrap
20311 msgid ""
20312 " struct guestfs_xattr_list {\n"
20313 "   uint32_t len; /* Number of elements in list. */\n"
20314 "   struct guestfs_xattr *val; /* Elements. */\n"
20315 " };\n"
20316 " \n"
20317 msgstr ""
20318
20319 # type: verbatim
20320 #. type: verbatim
20321 #: ../src/guestfs-structs.pod:206
20322 #, no-wrap
20323 msgid ""
20324 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20325 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20326 "\n"
20327 msgstr ""
20328
20329 # type: =head2
20330 #. type: =head2
20331 #: ../src/guestfs-structs.pod:209
20332 msgid "guestfs_inotify_event"
20333 msgstr ""
20334
20335 # type: verbatim
20336 #. type: verbatim
20337 #: ../src/guestfs-structs.pod:211
20338 #, no-wrap
20339 msgid ""
20340 " struct guestfs_inotify_event {\n"
20341 "   int64_t in_wd;\n"
20342 "   uint32_t in_mask;\n"
20343 "   uint32_t in_cookie;\n"
20344 "   char *in_name;\n"
20345 " };\n"
20346 " \n"
20347 msgstr ""
20348
20349 # type: verbatim
20350 #. type: verbatim
20351 #: ../src/guestfs-structs.pod:218
20352 #, no-wrap
20353 msgid ""
20354 " struct guestfs_inotify_event_list {\n"
20355 "   uint32_t len; /* Number of elements in list. */\n"
20356 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20357 " };\n"
20358 " \n"
20359 msgstr ""
20360
20361 # type: verbatim
20362 #. type: verbatim
20363 #: ../src/guestfs-structs.pod:223
20364 #, no-wrap
20365 msgid ""
20366 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20367 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20368 "\n"
20369 msgstr ""
20370
20371 # type: =head2
20372 #. type: =head2
20373 #: ../src/guestfs-structs.pod:226
20374 msgid "guestfs_partition"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #. type: verbatim
20379 #: ../src/guestfs-structs.pod:228
20380 #, no-wrap
20381 msgid ""
20382 " struct guestfs_partition {\n"
20383 "   int32_t part_num;\n"
20384 "   uint64_t part_start;\n"
20385 "   uint64_t part_end;\n"
20386 "   uint64_t part_size;\n"
20387 " };\n"
20388 " \n"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #. type: verbatim
20393 #: ../src/guestfs-structs.pod:235
20394 #, no-wrap
20395 msgid ""
20396 " struct guestfs_partition_list {\n"
20397 "   uint32_t len; /* Number of elements in list. */\n"
20398 "   struct guestfs_partition *val; /* Elements. */\n"
20399 " };\n"
20400 " \n"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #. type: verbatim
20405 #: ../src/guestfs-structs.pod:240
20406 #, no-wrap
20407 msgid ""
20408 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20409 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20410 "\n"
20411 msgstr ""
20412
20413 # type: =head2
20414 #. type: =head2
20415 #: ../src/guestfs-structs.pod:243
20416 msgid "guestfs_application"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #. type: verbatim
20421 #: ../src/guestfs-structs.pod:245
20422 #, no-wrap
20423 msgid ""
20424 " struct guestfs_application {\n"
20425 "   char *app_name;\n"
20426 "   char *app_display_name;\n"
20427 "   int32_t app_epoch;\n"
20428 "   char *app_version;\n"
20429 "   char *app_release;\n"
20430 "   char *app_install_path;\n"
20431 "   char *app_trans_path;\n"
20432 "   char *app_publisher;\n"
20433 "   char *app_url;\n"
20434 "   char *app_source_package;\n"
20435 "   char *app_summary;\n"
20436 "   char *app_description;\n"
20437 " };\n"
20438 " \n"
20439 msgstr ""
20440
20441 # type: verbatim
20442 #. type: verbatim
20443 #: ../src/guestfs-structs.pod:260
20444 #, no-wrap
20445 msgid ""
20446 " struct guestfs_application_list {\n"
20447 "   uint32_t len; /* Number of elements in list. */\n"
20448 "   struct guestfs_application *val; /* Elements. */\n"
20449 " };\n"
20450 " \n"
20451 msgstr ""
20452
20453 # type: verbatim
20454 #. type: verbatim
20455 #: ../src/guestfs-structs.pod:265
20456 #, no-wrap
20457 msgid ""
20458 " void guestfs_free_application (struct guestfs_free_application *);\n"
20459 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: textblock
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:5
20466 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #. type: verbatim
20471 #: ../fish/guestfish.pod:9
20472 #, no-wrap
20473 msgid ""
20474 " guestfish [--options] [commands]\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #. type: verbatim
20480 #: ../fish/guestfish.pod:11
20481 #, no-wrap
20482 msgid ""
20483 " guestfish\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #. type: verbatim
20489 #: ../fish/guestfish.pod:13
20490 #, no-wrap
20491 msgid ""
20492 " guestfish [--ro|--rw] -a disk.img\n"
20493 "\n"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #. type: verbatim
20498 #: ../fish/guestfish.pod:15
20499 #, no-wrap
20500 msgid ""
20501 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: verbatim
20506 #. type: verbatim
20507 #: ../fish/guestfish.pod:17
20508 #, no-wrap
20509 msgid ""
20510 " guestfish -d libvirt-domain\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:19
20517 #, no-wrap
20518 msgid ""
20519 " guestfish [--ro|--rw] -a disk.img -i\n"
20520 "\n"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #. type: verbatim
20525 #: ../fish/guestfish.pod:21
20526 #, no-wrap
20527 msgid ""
20528 " guestfish -d libvirt-domain -i\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: =head1
20533 #. type: =head1
20534 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
20535 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20536 msgid "WARNING"
20537 msgstr ""
20538
20539 # type: textblock
20540 #. type: textblock
20541 #: ../fish/guestfish.pod:25
20542 msgid ""
20543 "Using guestfish in read/write mode on live virtual machines can be "
20544 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20545 "option to use guestfish safely if the disk image or virtual machine might be "
20546 "live."
20547 msgstr ""
20548
20549 # type: textblock
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:32
20552 msgid ""
20553 "Guestfish is a shell and command-line tool for examining and modifying "
20554 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20555 "functionality of the guestfs API, see L<guestfs(3)>."
20556 msgstr ""
20557
20558 # type: textblock
20559 #. type: textblock
20560 #: ../fish/guestfish.pod:36
20561 msgid ""
20562 "Guestfish gives you structured access to the libguestfs API, from shell "
20563 "scripts or the command line or interactively.  If you want to rescue a "
20564 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20565 "command."
20566 msgstr ""
20567
20568 # type: =head1
20569 #. type: =head1
20570 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
20571 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
20572 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
20573 msgid "EXAMPLES"
20574 msgstr ""
20575
20576 # type: =head2
20577 #. type: =head2
20578 #: ../fish/guestfish.pod:43
20579 msgid "As an interactive shell"
20580 msgstr ""
20581
20582 # type: verbatim
20583 #. type: verbatim
20584 #: ../fish/guestfish.pod:45
20585 #, no-wrap
20586 msgid ""
20587 " $ guestfish\n"
20588 " \n"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #. type: verbatim
20593 #: ../fish/guestfish.pod:47
20594 #, no-wrap
20595 msgid ""
20596 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20597 " editing virtual machine filesystems.\n"
20598 " \n"
20599 msgstr ""
20600
20601 # type: verbatim
20602 #. type: verbatim
20603 #: ../fish/guestfish.pod:50
20604 #, no-wrap
20605 msgid ""
20606 " Type: 'help' for a list of commands\n"
20607 "       'man' to read the manual\n"
20608 "       'quit' to quit the shell\n"
20609 " \n"
20610 msgstr ""
20611
20612 # type: verbatim
20613 #. type: verbatim
20614 #: ../fish/guestfish.pod:54
20615 #, no-wrap
20616 msgid ""
20617 " ><fs> add-ro disk.img\n"
20618 " ><fs> run\n"
20619 " ><fs> list-filesystems\n"
20620 " /dev/sda1: ext4\n"
20621 " /dev/vg_guest/lv_root: ext4\n"
20622 " /dev/vg_guest/lv_swap: swap\n"
20623 " ><fs> mount /dev/vg_guest/lv_root /\n"
20624 " ><fs> cat /etc/fstab\n"
20625 " # /etc/fstab\n"
20626 " # Created by anaconda\n"
20627 " [...]\n"
20628 " ><fs> exit\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #. type: =head2
20634 #: ../fish/guestfish.pod:67
20635 msgid "From shell scripts"
20636 msgstr ""
20637
20638 # type: textblock
20639 #. type: textblock
20640 #: ../fish/guestfish.pod:69
20641 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #. type: verbatim
20646 #: ../fish/guestfish.pod:71
20647 #, no-wrap
20648 msgid ""
20649 " guestfish <<_EOF_\n"
20650 " add disk.img\n"
20651 " run\n"
20652 " mount /dev/vg_guest/lv_root /\n"
20653 " write /etc/motd \"Welcome, new users\"\n"
20654 " _EOF_\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: textblock
20659 #. type: textblock
20660 #: ../fish/guestfish.pod:78
20661 msgid "List the LVM logical volumes in a disk image:"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #. type: verbatim
20666 #: ../fish/guestfish.pod:80
20667 #, no-wrap
20668 msgid ""
20669 " guestfish -a disk.img --ro <<_EOF_\n"
20670 " run\n"
20671 " lvs\n"
20672 " _EOF_\n"
20673 "\n"
20674 msgstr ""
20675
20676 # type: textblock
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:85
20679 msgid "List all the filesystems in a disk image:"
20680 msgstr ""
20681
20682 # type: verbatim
20683 #. type: verbatim
20684 #: ../fish/guestfish.pod:87
20685 #, no-wrap
20686 msgid ""
20687 " guestfish -a disk.img --ro <<_EOF_\n"
20688 " run\n"
20689 " list-filesystems\n"
20690 " _EOF_\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: =head2
20695 #. type: =head2
20696 #: ../fish/guestfish.pod:92
20697 msgid "On one command line"
20698 msgstr ""
20699
20700 # type: textblock
20701 #. type: textblock
20702 #: ../fish/guestfish.pod:94
20703 msgid "Update C</etc/resolv.conf> in a guest:"
20704 msgstr ""
20705
20706 # type: verbatim
20707 #. type: verbatim
20708 #: ../fish/guestfish.pod:96
20709 #, no-wrap
20710 msgid ""
20711 " guestfish \\\n"
20712 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20713 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: textblock
20718 #. type: textblock
20719 #: ../fish/guestfish.pod:100
20720 msgid "Edit C</boot/grub/grub.conf> interactively:"
20721 msgstr ""
20722
20723 # type: verbatim
20724 #. type: verbatim
20725 #: ../fish/guestfish.pod:102
20726 #, no-wrap
20727 msgid ""
20728 " guestfish --rw --add disk.img \\\n"
20729 "   --mount /dev/vg_guest/lv_root \\\n"
20730 "   --mount /dev/sda1:/boot \\\n"
20731 "   edit /boot/grub/grub.conf\n"
20732 "\n"
20733 msgstr ""
20734
20735 # type: =head2
20736 #. type: =head2
20737 #: ../fish/guestfish.pod:107
20738 msgid "Mount disks automatically"
20739 msgstr ""
20740
20741 # type: textblock
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:109
20744 msgid ""
20745 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20746 msgstr ""
20747
20748 # type: verbatim
20749 #. type: verbatim
20750 #: ../fish/guestfish.pod:112
20751 #, no-wrap
20752 msgid ""
20753 " guestfish --ro -a disk.img -i cat /etc/group\n"
20754 "\n"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #. type: verbatim
20759 #: ../fish/guestfish.pod:114
20760 #, no-wrap
20761 msgid ""
20762 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20763 "\n"
20764 msgstr ""
20765
20766 # type: textblock
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:116
20769 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #. type: verbatim
20774 #: ../fish/guestfish.pod:118
20775 #, no-wrap
20776 msgid ""
20777 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20778 "\n"
20779 msgstr ""
20780
20781 # type: =head2
20782 #. type: =head2
20783 #: ../fish/guestfish.pod:120
20784 msgid "As a script interpreter"
20785 msgstr ""
20786
20787 # type: textblock
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:122
20790 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #. type: verbatim
20795 #: ../fish/guestfish.pod:124
20796 #, no-wrap
20797 msgid ""
20798 " #!/usr/bin/guestfish -f\n"
20799 " sparse test1.img 100M\n"
20800 " run\n"
20801 " part-disk /dev/sda mbr\n"
20802 " mkfs ext2 /dev/sda1\n"
20803 "\n"
20804 msgstr ""
20805
20806 # type: =head2
20807 #. type: =head2
20808 #: ../fish/guestfish.pod:130
20809 msgid "Start with a prepared disk"
20810 msgstr ""
20811
20812 # type: textblock
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:132
20815 msgid ""
20816 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20817 "single ext2-formatted partition:"
20818 msgstr ""
20819
20820 # type: verbatim
20821 #. type: verbatim
20822 #: ../fish/guestfish.pod:135
20823 #, no-wrap
20824 msgid ""
20825 " guestfish -N fs\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: textblock
20830 #. type: textblock
20831 #: ../fish/guestfish.pod:137
20832 msgid "To list what is available do:"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #. type: verbatim
20837 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
20838 #, no-wrap
20839 msgid ""
20840 " guestfish -N help | less\n"
20841 "\n"
20842 msgstr ""
20843
20844 # type: =head2
20845 #. type: =head2
20846 #: ../fish/guestfish.pod:141
20847 msgid "Remote control"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #. type: verbatim
20852 #: ../fish/guestfish.pod:143
20853 #, no-wrap
20854 msgid ""
20855 " eval \"`guestfish --listen`\"\n"
20856 " guestfish --remote add-ro disk.img\n"
20857 " guestfish --remote run\n"
20858 " guestfish --remote lvs\n"
20859 "\n"
20860 msgstr ""
20861
20862 # type: =head1
20863 #. type: =head1
20864 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20865 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
20866 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
20867 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
20868 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20869 msgid "OPTIONS"
20870 msgstr ""
20871
20872 # type: =item
20873 #. type: =item
20874 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
20875 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
20876 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
20877 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
20878 #: ../tools/virt-list-partitions.pl:62
20879 msgid "B<--help>"
20880 msgstr ""
20881
20882 # type: textblock
20883 #. type: textblock
20884 #: ../fish/guestfish.pod:154
20885 msgid "Displays general help on options."
20886 msgstr ""
20887
20888 # type: =item
20889 #. type: =item
20890 #: ../fish/guestfish.pod:156
20891 msgid "B<-h>"
20892 msgstr ""
20893
20894 # type: =item
20895 #. type: =item
20896 #: ../fish/guestfish.pod:158
20897 msgid "B<--cmd-help>"
20898 msgstr ""
20899
20900 # type: textblock
20901 #. type: textblock
20902 #: ../fish/guestfish.pod:160
20903 msgid "Lists all available guestfish commands."
20904 msgstr ""
20905
20906 # type: =item
20907 #. type: =item
20908 #: ../fish/guestfish.pod:162
20909 msgid "B<-h cmd>"
20910 msgstr ""
20911
20912 # type: =item
20913 #. type: =item
20914 #: ../fish/guestfish.pod:164
20915 msgid "B<--cmd-help cmd>"
20916 msgstr ""
20917
20918 # type: textblock
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:166
20921 msgid "Displays detailed help on a single command C<cmd>."
20922 msgstr ""
20923
20924 # type: =item
20925 #. type: =item
20926 #: ../fish/guestfish.pod:168
20927 msgid "B<-a image>"
20928 msgstr ""
20929
20930 # type: =item
20931 #. type: =item
20932 #: ../fish/guestfish.pod:170
20933 msgid "B<--add image>"
20934 msgstr ""
20935
20936 # type: textblock
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:172
20939 msgid "Add a block device or virtual machine image to the shell."
20940 msgstr ""
20941
20942 # type: textblock
20943 #. type: textblock
20944 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
20945 msgid ""
20946 "The format of the disk image is auto-detected.  To override this and force a "
20947 "particular format use the I<--format=..> option."
20948 msgstr ""
20949
20950 # type: textblock
20951 #. type: textblock
20952 #: ../fish/guestfish.pod:177
20953 msgid ""
20954 "Using this flag is mostly equivalent to using the C<add> command, with "
20955 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20956 "the I<--format:...> flag was given."
20957 msgstr ""
20958
20959 # type: =item
20960 #. type: =item
20961 #: ../fish/guestfish.pod:181
20962 msgid "B<-c URI>"
20963 msgstr ""
20964
20965 # type: =item
20966 #. type: =item
20967 #: ../fish/guestfish.pod:183
20968 msgid "B<--connect URI>"
20969 msgstr ""
20970
20971 # type: textblock
20972 #. type: textblock
20973 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
20974 msgid ""
20975 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20976 "URI to use.  The default is to use the default libvirt connection."
20977 msgstr ""
20978
20979 # type: =item
20980 #. type: =item
20981 #: ../fish/guestfish.pod:189
20982 msgid "B<--csh>"
20983 msgstr ""
20984
20985 # type: textblock
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:191
20988 msgid ""
20989 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20990 "section L</REMOTE CONTROL AND CSH> below."
20991 msgstr ""
20992
20993 # type: =item
20994 #. type: =item
20995 #: ../fish/guestfish.pod:194
20996 msgid "B<-d libvirt-domain>"
20997 msgstr ""
20998
20999 # type: =item
21000 #. type: =item
21001 #: ../fish/guestfish.pod:196
21002 msgid "B<--domain libvirt-domain>"
21003 msgstr ""
21004
21005 # type: textblock
21006 #. type: textblock
21007 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21008 msgid ""
21009 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21010 "used, then any libvirt domain can be used.  However in write mode, only "
21011 "libvirt domains which are shut down can be named here."
21012 msgstr ""
21013
21014 # type: textblock
21015 #. type: textblock
21016 #: ../fish/guestfish.pod:202
21017 msgid ""
21018 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21019 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21020 "if the I<--format:...> flag was given."
21021 msgstr ""
21022
21023 # type: =item
21024 #. type: =item
21025 #: ../fish/guestfish.pod:206
21026 msgid "B<-D>"
21027 msgstr ""
21028
21029 # type: =item
21030 #. type: =item
21031 #: ../fish/guestfish.pod:208
21032 msgid "B<--no-dest-paths>"
21033 msgstr ""
21034
21035 # type: textblock
21036 #. type: textblock
21037 #: ../fish/guestfish.pod:210
21038 msgid ""
21039 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21040 "to hit the tab key to complete paths on the guest filesystem, but this "
21041 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21042 "allow this feature to be disabled."
21043 msgstr ""
21044
21045 # type: =item
21046 #. type: =item
21047 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21048 msgid "B<--echo-keys>"
21049 msgstr ""
21050
21051 # type: textblock
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21054 msgid ""
21055 "When prompting for keys and passphrases, guestfish normally turns echoing "
21056 "off so you cannot see what you are typing.  If you are not worried about "
21057 "Tempest attacks and there is no one else in the room you can specify this "
21058 "flag to see what you are typing."
21059 msgstr ""
21060
21061 # type: =item
21062 #. type: =item
21063 #: ../fish/guestfish.pod:222
21064 msgid "B<-f file>"
21065 msgstr ""
21066
21067 # type: =item
21068 #. type: =item
21069 #: ../fish/guestfish.pod:224
21070 msgid "B<--file file>"
21071 msgstr ""
21072
21073 # type: textblock
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:226
21076 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21077 msgstr ""
21078
21079 # type: verbatim
21080 #. type: verbatim
21081 #: ../fish/guestfish.pod:229
21082 #, no-wrap
21083 msgid ""
21084 " #!/usr/bin/guestfish -f\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: =item
21089 #. type: =item
21090 #: ../fish/guestfish.pod:231
21091 msgid "B<--format=raw|qcow2|..>"
21092 msgstr ""
21093
21094 # type: =item
21095 #. type: =item
21096 #: ../fish/guestfish.pod:233
21097 msgid "B<--format>"
21098 msgstr ""
21099
21100 # type: textblock
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21103 msgid ""
21104 "The default for the I<-a> option is to auto-detect the format of the disk "
21105 "image.  Using this forces the disk format for I<-a> options which follow on "
21106 "the command line.  Using I<--format> with no argument switches back to auto-"
21107 "detection for subsequent I<-a> options."
21108 msgstr ""
21109
21110 # type: verbatim
21111 #. type: verbatim
21112 #: ../fish/guestfish.pod:242
21113 #, no-wrap
21114 msgid ""
21115 " guestfish --format=raw -a disk.img\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: textblock
21120 #. type: textblock
21121 #: ../fish/guestfish.pod:244
21122 msgid "forces raw format (no auto-detection) for C<disk.img>."
21123 msgstr ""
21124
21125 # type: verbatim
21126 #. type: verbatim
21127 #: ../fish/guestfish.pod:246
21128 #, no-wrap
21129 msgid ""
21130 " guestfish --format=raw -a disk.img --format -a another.img\n"
21131 "\n"
21132 msgstr ""
21133
21134 # type: textblock
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:248
21137 msgid ""
21138 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21139 "detection for C<another.img>."
21140 msgstr ""
21141
21142 # type: textblock
21143 #. type: textblock
21144 #: ../fish/guestfish.pod:251
21145 msgid ""
21146 "If you have untrusted raw-format guest disk images, you should use this "
21147 "option to specify the disk format.  This avoids a possible security problem "
21148 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21149 msgstr ""
21150
21151 # type: =item
21152 #. type: =item
21153 #: ../fish/guestfish.pod:256
21154 msgid "B<-i>"
21155 msgstr ""
21156
21157 # type: =item
21158 #. type: =item
21159 #: ../fish/guestfish.pod:258
21160 msgid "B<--inspector>"
21161 msgstr ""
21162
21163 # type: textblock
21164 #. type: textblock
21165 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21166 msgid ""
21167 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21168 "system and mount filesystems as they would be mounted on the real virtual "
21169 "machine."
21170 msgstr ""
21171
21172 # type: textblock
21173 #. type: textblock
21174 #: ../fish/guestfish.pod:264
21175 msgid "Typical usage is either:"
21176 msgstr ""
21177
21178 # type: verbatim
21179 #. type: verbatim
21180 #: ../fish/guestfish.pod:266
21181 #, no-wrap
21182 msgid ""
21183 " guestfish -d myguest -i\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: textblock
21188 #. type: textblock
21189 #: ../fish/guestfish.pod:268
21190 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #. type: verbatim
21195 #: ../fish/guestfish.pod:270
21196 #, no-wrap
21197 msgid ""
21198 " guestfish --ro -d myguest -i\n"
21199 "\n"
21200 msgstr ""
21201
21202 # type: textblock
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:272
21205 msgid "(for active domains, readonly), or specify the block device directly:"
21206 msgstr ""
21207
21208 # type: verbatim
21209 #. type: verbatim
21210 #: ../fish/guestfish.pod:274
21211 #, no-wrap
21212 msgid ""
21213 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21214 "\n"
21215 msgstr ""
21216
21217 # type: textblock
21218 #. type: textblock
21219 #: ../fish/guestfish.pod:276
21220 msgid ""
21221 "Note that the command line syntax changed slightly over older versions of "
21222 "guestfish.  You can still use the old syntax:"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #. type: verbatim
21227 #: ../fish/guestfish.pod:279
21228 #, no-wrap
21229 msgid ""
21230 " guestfish [--ro] -i disk.img\n"
21231 "\n"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #. type: verbatim
21236 #: ../fish/guestfish.pod:281
21237 #, no-wrap
21238 msgid ""
21239 " guestfish [--ro] -i libvirt-domain\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: textblock
21244 #. type: textblock
21245 #: ../fish/guestfish.pod:283
21246 msgid ""
21247 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21248 "then using other commands to mount the filesystems that were found."
21249 msgstr ""
21250
21251 # type: =item
21252 #. type: =item
21253 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21254 msgid "B<--keys-from-stdin>"
21255 msgstr ""
21256
21257 # type: textblock
21258 #. type: textblock
21259 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21260 msgid ""
21261 "Read key or passphrase parameters from stdin.  The default is to try to read "
21262 "passphrases from the user by opening C</dev/tty>."
21263 msgstr ""
21264
21265 # type: =item
21266 #. type: =item
21267 #: ../fish/guestfish.pod:292
21268 msgid "B<--listen>"
21269 msgstr ""
21270
21271 # type: textblock
21272 #. type: textblock
21273 #: ../fish/guestfish.pod:294
21274 msgid ""
21275 "Fork into the background and listen for remote commands.  See section L</"
21276 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21277 msgstr ""
21278
21279 # type: =item
21280 #. type: =item
21281 #: ../fish/guestfish.pod:297
21282 msgid "B<-m dev[:mountpoint]>"
21283 msgstr ""
21284
21285 # type: =item
21286 #. type: =item
21287 #: ../fish/guestfish.pod:299
21288 msgid "B<--mount dev[:mountpoint]>"
21289 msgstr ""
21290
21291 # type: textblock
21292 #. type: textblock
21293 #: ../fish/guestfish.pod:301
21294 msgid "Mount the named partition or logical volume on the given mountpoint."
21295 msgstr ""
21296
21297 # type: textblock
21298 #. type: textblock
21299 #: ../fish/guestfish.pod:303
21300 msgid "If the mountpoint is omitted, it defaults to C</>."
21301 msgstr ""
21302
21303 # type: textblock
21304 #. type: textblock
21305 #: ../fish/guestfish.pod:305
21306 msgid "You have to mount something on C</> before most commands will work."
21307 msgstr ""
21308
21309 # type: textblock
21310 #. type: textblock
21311 #: ../fish/guestfish.pod:307
21312 msgid ""
21313 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21314 "launched."
21315 msgstr ""
21316
21317 # type: textblock
21318 #. type: textblock
21319 #: ../fish/guestfish.pod:310
21320 msgid ""
21321 "If you don't know what filesystems a disk image contains, you can either run "
21322 "guestfish without this option, then list the partitions, filesystems and LVs "
21323 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21324 "commands), or you can use the L<virt-filesystems(1)> program."
21325 msgstr ""
21326
21327 # type: textblock
21328 #. type: textblock
21329 #: ../fish/guestfish.pod:316
21330 msgid ""
21331 "Using this flag is mostly equivalent to using the C<mount-options> command "
21332 "or the C<mount-ro> command if the I<--ro> flag was given."
21333 msgstr ""
21334
21335 # type: =item
21336 #. type: =item
21337 #: ../fish/guestfish.pod:319
21338 msgid "B<-n>"
21339 msgstr ""
21340
21341 # type: =item
21342 #. type: =item
21343 #: ../fish/guestfish.pod:321
21344 msgid "B<--no-sync>"
21345 msgstr ""
21346
21347 # type: textblock
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:323
21350 msgid ""
21351 "Disable autosync.  This is enabled by default.  See the discussion of "
21352 "autosync in the L<guestfs(3)> manpage."
21353 msgstr ""
21354
21355 # type: =item
21356 #. type: =item
21357 #: ../fish/guestfish.pod:326
21358 msgid "B<-N type>"
21359 msgstr ""
21360
21361 # type: =item
21362 #. type: =item
21363 #: ../fish/guestfish.pod:328
21364 msgid "B<--new type>"
21365 msgstr ""
21366
21367 # type: =item
21368 #. type: =item
21369 #: ../fish/guestfish.pod:330
21370 msgid "B<-N help>"
21371 msgstr ""
21372
21373 # type: textblock
21374 #. type: textblock
21375 #: ../fish/guestfish.pod:332
21376 msgid ""
21377 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
21378 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21379 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21380 "IMAGES> below."
21381 msgstr ""
21382
21383 # type: =item
21384 #. type: =item
21385 #: ../fish/guestfish.pod:337
21386 msgid "B<--progress-bars>"
21387 msgstr ""
21388
21389 # type: textblock
21390 #. type: textblock
21391 #: ../fish/guestfish.pod:339
21392 msgid "Enable progress bars, even when guestfish is used non-interactively."
21393 msgstr ""
21394
21395 # type: textblock
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:341
21398 msgid ""
21399 "Progress bars are enabled by default when guestfish is used as an "
21400 "interactive shell."
21401 msgstr ""
21402
21403 # type: =item
21404 #. type: =item
21405 #: ../fish/guestfish.pod:344
21406 msgid "B<--no-progress-bars>"
21407 msgstr ""
21408
21409 # type: textblock
21410 #. type: textblock
21411 #: ../fish/guestfish.pod:346
21412 msgid "Disable progress bars."
21413 msgstr ""
21414
21415 # type: =item
21416 #. type: =item
21417 #: ../fish/guestfish.pod:348
21418 msgid "B<--remote[=pid]>"
21419 msgstr ""
21420
21421 # type: textblock
21422 #. type: textblock
21423 #: ../fish/guestfish.pod:350
21424 msgid ""
21425 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21426 "CONTROL GUESTFISH OVER A SOCKET> below."
21427 msgstr ""
21428
21429 # type: =item
21430 #. type: =item
21431 #: ../fish/guestfish.pod:353
21432 msgid "B<-r>"
21433 msgstr ""
21434
21435 # type: =item
21436 #. type: =item
21437 #: ../fish/guestfish.pod:355
21438 msgid "B<--ro>"
21439 msgstr ""
21440
21441 # type: textblock
21442 #. type: textblock
21443 #: ../fish/guestfish.pod:357
21444 msgid ""
21445 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21446 "mounts are done read-only."
21447 msgstr ""
21448
21449 # type: textblock
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:360
21452 msgid ""
21453 "The option must always be used if the disk image or virtual machine might be "
21454 "running, and is generally recommended in cases where you don't need write "
21455 "access to the disk."
21456 msgstr ""
21457
21458 # type: textblock
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:364
21461 msgid ""
21462 "Note that prepared disk images created with I<-N> are not affected by this "
21463 "option.  Also commands like C<add> are not affected - you have to specify "
21464 "the C<readonly:true> option explicitly if you need it."
21465 msgstr ""
21466
21467 # type: textblock
21468 #. type: textblock
21469 #: ../fish/guestfish.pod:368
21470 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21471 msgstr ""
21472
21473 # type: =item
21474 #. type: =item
21475 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
21476 msgid "B<--selinux>"
21477 msgstr ""
21478
21479 # type: textblock
21480 #. type: textblock
21481 #: ../fish/guestfish.pod:372
21482 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21483 msgstr ""
21484
21485 # type: =item
21486 #. type: =item
21487 #: ../fish/guestfish.pod:374
21488 msgid "B<-v>"
21489 msgstr ""
21490
21491 # type: =item
21492 #. type: =item
21493 #: ../fish/guestfish.pod:376
21494 msgid "B<--verbose>"
21495 msgstr ""
21496
21497 # type: textblock
21498 #. type: textblock
21499 #: ../fish/guestfish.pod:378
21500 msgid ""
21501 "Enable very verbose messages.  This is particularly useful if you find a bug."
21502 msgstr ""
21503
21504 # type: =item
21505 #. type: =item
21506 #: ../fish/guestfish.pod:381
21507 msgid "B<-V>"
21508 msgstr ""
21509
21510 # type: =item
21511 #. type: =item
21512 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
21513 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
21514 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
21515 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21516 msgid "B<--version>"
21517 msgstr ""
21518
21519 # type: textblock
21520 #. type: textblock
21521 #: ../fish/guestfish.pod:385
21522 msgid "Display the guestfish / libguestfs version number and exit."
21523 msgstr ""
21524
21525 # type: =item
21526 #. type: =item
21527 #: ../fish/guestfish.pod:387
21528 msgid "B<-w>"
21529 msgstr ""
21530
21531 # type: =item
21532 #. type: =item
21533 #: ../fish/guestfish.pod:389
21534 msgid "B<--rw>"
21535 msgstr ""
21536
21537 # type: textblock
21538 #. type: textblock
21539 #: ../fish/guestfish.pod:391
21540 msgid ""
21541 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
21542 "WRITE> below."
21543 msgstr ""
21544
21545 # type: =item
21546 #. type: =item
21547 #: ../fish/guestfish.pod:394
21548 msgid "B<-x>"
21549 msgstr ""
21550
21551 # type: textblock
21552 #. type: textblock
21553 #: ../fish/guestfish.pod:396
21554 msgid "Echo each command before executing it."
21555 msgstr ""
21556
21557 # type: =head1
21558 #. type: =head1
21559 #: ../fish/guestfish.pod:400
21560 msgid "COMMANDS ON COMMAND LINE"
21561 msgstr ""
21562
21563 # type: textblock
21564 #. type: textblock
21565 #: ../fish/guestfish.pod:402
21566 msgid ""
21567 "Any additional (non-option) arguments are treated as commands to execute."
21568 msgstr ""
21569
21570 # type: textblock
21571 #. type: textblock
21572 #: ../fish/guestfish.pod:405
21573 msgid ""
21574 "Commands to execute should be separated by a colon (C<:>), where the colon "
21575 "is a separate parameter.  Thus:"
21576 msgstr ""
21577
21578 # type: verbatim
21579 #. type: verbatim
21580 #: ../fish/guestfish.pod:408
21581 #, no-wrap
21582 msgid ""
21583 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21584 "\n"
21585 msgstr ""
21586
21587 # type: textblock
21588 #. type: textblock
21589 #: ../fish/guestfish.pod:410
21590 msgid ""
21591 "If there are no additional arguments, then we enter a shell, either an "
21592 "interactive shell with a prompt (if the input is a terminal) or a non-"
21593 "interactive shell."
21594 msgstr ""
21595
21596 # type: textblock
21597 #. type: textblock
21598 #: ../fish/guestfish.pod:414
21599 msgid ""
21600 "In either command line mode or non-interactive shell, the first command that "
21601 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21602 "prompt) if a command fails, you can continue to enter commands."
21603 msgstr ""
21604
21605 # type: =head1
21606 #. type: =head1
21607 #: ../fish/guestfish.pod:419
21608 msgid "USING launch (OR run)"
21609 msgstr ""
21610
21611 # type: textblock
21612 #. type: textblock
21613 #: ../fish/guestfish.pod:421
21614 msgid ""
21615 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21616 "then launch it, then mount any disks you need, and finally issue actions/"
21617 "commands.  So the general order of the day is:"
21618 msgstr ""
21619
21620 # type: textblock
21621 #. type: textblock
21622 #: ../fish/guestfish.pod:429
21623 msgid "add or -a/--add"
21624 msgstr ""
21625
21626 # type: textblock
21627 #. type: textblock
21628 #: ../fish/guestfish.pod:433
21629 msgid "launch (aka run)"
21630 msgstr ""
21631
21632 # type: textblock
21633 #. type: textblock
21634 #: ../fish/guestfish.pod:437
21635 msgid "mount or -m/--mount"
21636 msgstr ""
21637
21638 # type: textblock
21639 #. type: textblock
21640 #: ../fish/guestfish.pod:441
21641 msgid "any other commands"
21642 msgstr ""
21643
21644 # type: textblock
21645 #. type: textblock
21646 #: ../fish/guestfish.pod:445
21647 msgid ""
21648 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21649 "guest before mounting or performing any other commands."
21650 msgstr ""
21651
21652 # type: textblock
21653 #. type: textblock
21654 #: ../fish/guestfish.pod:448
21655 msgid ""
21656 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21657 "I<--new> options were given then C<run> is done automatically, simply "
21658 "because guestfish can't perform the action you asked for without doing this."
21659 msgstr ""
21660
21661 # type: =head1
21662 #. type: =head1
21663 #: ../fish/guestfish.pod:453
21664 msgid "OPENING DISKS FOR READ AND WRITE"
21665 msgstr ""
21666
21667 # type: textblock
21668 #. type: textblock
21669 #: ../fish/guestfish.pod:455
21670 msgid ""
21671 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
21672 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
21673 "open disk images read-only or for writing."
21674 msgstr ""
21675
21676 # type: textblock
21677 #. type: textblock
21678 #: ../fish/guestfish.pod:459
21679 msgid ""
21680 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
21681 "disk images supplied on the command line for write.  To open a disk image "
21682 "read-only you have to do I<-a image --ro>."
21683 msgstr ""
21684
21685 # type: textblock
21686 #. type: textblock
21687 #: ../fish/guestfish.pod:463
21688 msgid ""
21689 "This matters: If you accidentally open a live VM disk image writable then "
21690 "you will cause irreversible disk corruption."
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fish/guestfish.pod:466
21695 msgid ""
21696 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
21697 "images will be opened read-only.  You will have to either specify "
21698 "I<guestfish --rw> or change a configuration file in order to get write "
21699 "access for disk images specified by those other command line options."
21700 msgstr ""
21701
21702 # type: textblock
21703 #. type: textblock
21704 #: ../fish/guestfish.pod:471
21705 msgid ""
21706 "This version of guestfish has a I<--rw> option which does nothing (it is "
21707 "already the default).  However it is highly recommended that you use this "
21708 "option to indicate that guestfish needs write access, and to prepare your "
21709 "scripts for the day when this option will be required for write access."
21710 msgstr ""
21711
21712 # type: textblock
21713 #. type: textblock
21714 #: ../fish/guestfish.pod:477
21715 msgid ""
21716 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21717 "other libguestfs program apart from guestfish and guestmount."
21718 msgstr ""
21719
21720 # type: =head1
21721 #. type: =head1
21722 #: ../fish/guestfish.pod:480
21723 msgid "QUOTING"
21724 msgstr ""
21725
21726 # type: textblock
21727 #. type: textblock
21728 #: ../fish/guestfish.pod:482
21729 msgid ""
21730 "You can quote ordinary parameters using either single or double quotes.  For "
21731 "example:"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #. type: verbatim
21736 #: ../fish/guestfish.pod:485
21737 #, no-wrap
21738 msgid ""
21739 " add \"file with a space.img\"\n"
21740 "\n"
21741 msgstr ""
21742
21743 # type: verbatim
21744 #. type: verbatim
21745 #: ../fish/guestfish.pod:487
21746 #, no-wrap
21747 msgid ""
21748 " rm '/file name'\n"
21749 "\n"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #. type: verbatim
21754 #: ../fish/guestfish.pod:489
21755 #, no-wrap
21756 msgid ""
21757 " rm '/\"'\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: textblock
21762 #. type: textblock
21763 #: ../fish/guestfish.pod:491
21764 msgid ""
21765 "A few commands require a list of strings to be passed.  For these, use a "
21766 "whitespace-separated list, enclosed in quotes.  Strings containing "
21767 "whitespace to be passed through must be enclosed in single quotes.  A "
21768 "literal single quote must be escaped with a backslash."
21769 msgstr ""
21770
21771 # type: verbatim
21772 #. type: verbatim
21773 #: ../fish/guestfish.pod:496
21774 #, no-wrap
21775 msgid ""
21776 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21777 " command \"/bin/echo 'foo      bar'\"\n"
21778 " command \"/bin/echo \\'foo\\'\"\n"
21779 "\n"
21780 msgstr ""
21781
21782 # type: =head1
21783 #. type: =head1
21784 #: ../fish/guestfish.pod:500
21785 msgid "OPTIONAL ARGUMENTS"
21786 msgstr ""
21787
21788 # type: textblock
21789 #. type: textblock
21790 #: ../fish/guestfish.pod:502
21791 msgid ""
21792 "Some commands take optional arguments.  These arguments appear in this "
21793 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21794 msgstr ""
21795
21796 # type: verbatim
21797 #. type: verbatim
21798 #: ../fish/guestfish.pod:506
21799 #, no-wrap
21800 msgid ""
21801 " add-drive-opts filename\n"
21802 "\n"
21803 msgstr ""
21804
21805 # type: verbatim
21806 #. type: verbatim
21807 #: ../fish/guestfish.pod:508
21808 #, no-wrap
21809 msgid ""
21810 " add-drive-opts filename readonly:true\n"
21811 "\n"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #. type: verbatim
21816 #: ../fish/guestfish.pod:510
21817 #, no-wrap
21818 msgid ""
21819 " add-drive-opts filename format:qcow2 readonly:false\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: textblock
21824 #. type: textblock
21825 #: ../fish/guestfish.pod:512
21826 msgid ""
21827 "Each optional argument can appear at most once.  All optional arguments must "
21828 "appear after the required ones."
21829 msgstr ""
21830
21831 # type: =head1
21832 #. type: =head1
21833 #: ../fish/guestfish.pod:515
21834 msgid "NUMBERS"
21835 msgstr ""
21836
21837 # type: textblock
21838 #. type: textblock
21839 #: ../fish/guestfish.pod:517
21840 msgid ""
21841 "This section applies to all commands which can take integers as parameters."
21842 msgstr ""
21843
21844 # type: =head2
21845 #. type: =head2
21846 #: ../fish/guestfish.pod:520
21847 msgid "SIZE SUFFIX"
21848 msgstr ""
21849
21850 # type: textblock
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:522
21853 msgid ""
21854 "When the command takes a parameter measured in bytes, you can use one of the "
21855 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21856 msgstr ""
21857
21858 # type: =item
21859 #. type: =item
21860 #: ../fish/guestfish.pod:528
21861 msgid "B<k> or B<K> or B<KiB>"
21862 msgstr ""
21863
21864 # type: textblock
21865 #. type: textblock
21866 #: ../fish/guestfish.pod:530
21867 msgid "The size in kilobytes (multiplied by 1024)."
21868 msgstr ""
21869
21870 # type: =item
21871 #. type: =item
21872 #: ../fish/guestfish.pod:532
21873 msgid "B<KB>"
21874 msgstr ""
21875
21876 # type: textblock
21877 #. type: textblock
21878 #: ../fish/guestfish.pod:534
21879 msgid "The size in SI 1000 byte units."
21880 msgstr ""
21881
21882 # type: =item
21883 #. type: =item
21884 #: ../fish/guestfish.pod:536
21885 msgid "B<M> or B<MiB>"
21886 msgstr ""
21887
21888 # type: textblock
21889 #. type: textblock
21890 #: ../fish/guestfish.pod:538
21891 msgid "The size in megabytes (multiplied by 1048576)."
21892 msgstr ""
21893
21894 # type: =item
21895 #. type: =item
21896 #: ../fish/guestfish.pod:540
21897 msgid "B<MB>"
21898 msgstr ""
21899
21900 # type: textblock
21901 #. type: textblock
21902 #: ../fish/guestfish.pod:542
21903 msgid "The size in SI 1000000 byte units."
21904 msgstr ""
21905
21906 # type: =item
21907 #. type: =item
21908 #: ../fish/guestfish.pod:544
21909 msgid "B<G> or B<GiB>"
21910 msgstr ""
21911
21912 # type: textblock
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:546
21915 msgid "The size in gigabytes (multiplied by 2**30)."
21916 msgstr ""
21917
21918 # type: =item
21919 #. type: =item
21920 #: ../fish/guestfish.pod:548
21921 msgid "B<GB>"
21922 msgstr ""
21923
21924 # type: textblock
21925 #. type: textblock
21926 #: ../fish/guestfish.pod:550
21927 msgid "The size in SI 10**9 byte units."
21928 msgstr ""
21929
21930 # type: =item
21931 #. type: =item
21932 #: ../fish/guestfish.pod:552
21933 msgid "B<T> or B<TiB>"
21934 msgstr ""
21935
21936 # type: textblock
21937 #. type: textblock
21938 #: ../fish/guestfish.pod:554
21939 msgid "The size in terabytes (multiplied by 2**40)."
21940 msgstr ""
21941
21942 # type: =item
21943 #. type: =item
21944 #: ../fish/guestfish.pod:556
21945 msgid "B<TB>"
21946 msgstr ""
21947
21948 # type: textblock
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:558
21951 msgid "The size in SI 10**12 byte units."
21952 msgstr ""
21953
21954 # type: =item
21955 #. type: =item
21956 #: ../fish/guestfish.pod:560
21957 msgid "B<P> or B<PiB>"
21958 msgstr ""
21959
21960 # type: textblock
21961 #. type: textblock
21962 #: ../fish/guestfish.pod:562
21963 msgid "The size in petabytes (multiplied by 2**50)."
21964 msgstr ""
21965
21966 # type: =item
21967 #. type: =item
21968 #: ../fish/guestfish.pod:564
21969 msgid "B<PB>"
21970 msgstr ""
21971
21972 # type: textblock
21973 #. type: textblock
21974 #: ../fish/guestfish.pod:566
21975 msgid "The size in SI 10**15 byte units."
21976 msgstr ""
21977
21978 # type: =item
21979 #. type: =item
21980 #: ../fish/guestfish.pod:568
21981 msgid "B<E> or B<EiB>"
21982 msgstr ""
21983
21984 # type: textblock
21985 #. type: textblock
21986 #: ../fish/guestfish.pod:570
21987 msgid "The size in exabytes (multiplied by 2**60)."
21988 msgstr ""
21989
21990 # type: =item
21991 #. type: =item
21992 #: ../fish/guestfish.pod:572
21993 msgid "B<EB>"
21994 msgstr ""
21995
21996 # type: textblock
21997 #. type: textblock
21998 #: ../fish/guestfish.pod:574
21999 msgid "The size in SI 10**18 byte units."
22000 msgstr ""
22001
22002 # type: =item
22003 #. type: =item
22004 #: ../fish/guestfish.pod:576
22005 msgid "B<Z> or B<ZiB>"
22006 msgstr ""
22007
22008 # type: textblock
22009 #. type: textblock
22010 #: ../fish/guestfish.pod:578
22011 msgid "The size in zettabytes (multiplied by 2**70)."
22012 msgstr ""
22013
22014 # type: =item
22015 #. type: =item
22016 #: ../fish/guestfish.pod:580
22017 msgid "B<ZB>"
22018 msgstr ""
22019
22020 # type: textblock
22021 #. type: textblock
22022 #: ../fish/guestfish.pod:582
22023 msgid "The size in SI 10**21 byte units."
22024 msgstr ""
22025
22026 # type: =item
22027 #. type: =item
22028 #: ../fish/guestfish.pod:584
22029 msgid "B<Y> or B<YiB>"
22030 msgstr ""
22031
22032 # type: textblock
22033 #. type: textblock
22034 #: ../fish/guestfish.pod:586
22035 msgid "The size in yottabytes (multiplied by 2**80)."
22036 msgstr ""
22037
22038 # type: =item
22039 #. type: =item
22040 #: ../fish/guestfish.pod:588
22041 msgid "B<YB>"
22042 msgstr ""
22043
22044 # type: textblock
22045 #. type: textblock
22046 #: ../fish/guestfish.pod:590
22047 msgid "The size in SI 10**24 byte units."
22048 msgstr ""
22049
22050 # type: verbatim
22051 #. type: verbatim
22052 #: ../fish/guestfish.pod:596
22053 #, no-wrap
22054 msgid ""
22055 " truncate-size /file 1G\n"
22056 "\n"
22057 msgstr ""
22058
22059 # type: textblock
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:598
22062 msgid "would truncate the file to 1 gigabyte."
22063 msgstr ""
22064
22065 # type: textblock
22066 #. type: textblock
22067 #: ../fish/guestfish.pod:600
22068 msgid ""
22069 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22070 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22071 "suffix will probably not do what you expect."
22072 msgstr ""
22073
22074 # type: =head2
22075 #. type: =head2
22076 #: ../fish/guestfish.pod:604
22077 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22078 msgstr ""
22079
22080 # type: textblock
22081 #. type: textblock
22082 #: ../fish/guestfish.pod:606
22083 msgid ""
22084 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22085 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #. type: verbatim
22090 #: ../fish/guestfish.pod:609
22091 #, no-wrap
22092 msgid ""
22093 " 1234      decimal number 1234\n"
22094 " 02322     octal number, equivalent to decimal 1234\n"
22095 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: textblock
22100 #. type: textblock
22101 #: ../fish/guestfish.pod:613
22102 msgid ""
22103 "When using the C<chmod> command, you almost always want to specify an octal "
22104 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22105 "L<chmod(1)> program):"
22106 msgstr ""
22107
22108 # type: verbatim
22109 #. type: verbatim
22110 #: ../fish/guestfish.pod:617
22111 #, no-wrap
22112 msgid ""
22113 " chmod 0777 /public  # OK\n"
22114 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22115 "\n"
22116 msgstr ""
22117
22118 # type: textblock
22119 #. type: textblock
22120 #: ../fish/guestfish.pod:620
22121 msgid ""
22122 "Commands that return numbers usually print them in decimal, but some "
22123 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22124 "octal, preceeded by C<0>)."
22125 msgstr ""
22126
22127 # type: =head1
22128 #. type: =head1
22129 #: ../fish/guestfish.pod:624
22130 msgid "WILDCARDS AND GLOBBING"
22131 msgstr ""
22132
22133 # type: textblock
22134 #. type: textblock
22135 #: ../fish/guestfish.pod:626
22136 msgid ""
22137 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22138 "(globbing) by default.  So for example the following will not do what you "
22139 "expect:"
22140 msgstr ""
22141
22142 # type: verbatim
22143 #. type: verbatim
22144 #: ../fish/guestfish.pod:630
22145 #, no-wrap
22146 msgid ""
22147 " rm-rf /home/*\n"
22148 "\n"
22149 msgstr ""
22150
22151 # type: textblock
22152 #. type: textblock
22153 #: ../fish/guestfish.pod:632
22154 msgid ""
22155 "Assuming you don't have a directory called literally C</home/*> then the "
22156 "above command will return an error."
22157 msgstr ""
22158
22159 # type: textblock
22160 #. type: textblock
22161 #: ../fish/guestfish.pod:635
22162 msgid "To perform wildcard expansion, use the C<glob> command."
22163 msgstr ""
22164
22165 # type: verbatim
22166 #. type: verbatim
22167 #: ../fish/guestfish.pod:637
22168 #, no-wrap
22169 msgid ""
22170 " glob rm-rf /home/*\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: textblock
22175 #. type: textblock
22176 #: ../fish/guestfish.pod:639
22177 msgid ""
22178 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22179 "many times), equivalent to:"
22180 msgstr ""
22181
22182 # type: verbatim
22183 #. type: verbatim
22184 #: ../fish/guestfish.pod:642
22185 #, no-wrap
22186 msgid ""
22187 " rm-rf /home/jim\n"
22188 " rm-rf /home/joe\n"
22189 " rm-rf /home/mary\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: textblock
22194 #. type: textblock
22195 #: ../fish/guestfish.pod:646
22196 msgid "C<glob> only works on simple guest paths and not on device names."
22197 msgstr ""
22198
22199 # type: textblock
22200 #. type: textblock
22201 #: ../fish/guestfish.pod:648
22202 msgid ""
22203 "If you have several parameters, each containing a wildcard, then glob will "
22204 "perform a Cartesian product."
22205 msgstr ""
22206
22207 # type: =head1
22208 #. type: =head1
22209 #: ../fish/guestfish.pod:651
22210 msgid "COMMENTS"
22211 msgstr ""
22212
22213 # type: textblock
22214 #. type: textblock
22215 #: ../fish/guestfish.pod:653
22216 msgid ""
22217 "Any line which starts with a I<#> character is treated as a comment and "
22218 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22219 "a command.  For example:"
22220 msgstr ""
22221
22222 # type: verbatim
22223 #. type: verbatim
22224 #: ../fish/guestfish.pod:657
22225 #, no-wrap
22226 msgid ""
22227 " # this is a comment\n"
22228 "         # this is a comment\n"
22229 " foo # NOT a comment\n"
22230 "\n"
22231 msgstr ""
22232
22233 # type: textblock
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:661
22236 msgid "Blank lines are also ignored."
22237 msgstr ""
22238
22239 # type: =head1
22240 #. type: =head1
22241 #: ../fish/guestfish.pod:663
22242 msgid "RUNNING COMMANDS LOCALLY"
22243 msgstr ""
22244
22245 # type: textblock
22246 #. type: textblock
22247 #: ../fish/guestfish.pod:665
22248 msgid ""
22249 "Any line which starts with a I<!> character is treated as a command sent to "
22250 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #. type: verbatim
22255 #: ../fish/guestfish.pod:669
22256 #, no-wrap
22257 msgid ""
22258 " !mkdir local\n"
22259 " tgz-out /remote local/remote-data.tar.gz\n"
22260 "\n"
22261 msgstr ""
22262
22263 # type: textblock
22264 #. type: textblock
22265 #: ../fish/guestfish.pod:672
22266 msgid ""
22267 "will create a directory C<local> on the host, and then export the contents "
22268 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22269 "(See C<tgz-out>)."
22270 msgstr ""
22271
22272 # type: textblock
22273 #. type: textblock
22274 #: ../fish/guestfish.pod:676
22275 msgid ""
22276 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22277 "effect, due to the way that subprocesses work in Unix."
22278 msgstr ""
22279
22280 # type: =head1
22281 #. type: =head1
22282 #: ../fish/guestfish.pod:679
22283 msgid "PIPES"
22284 msgstr ""
22285
22286 # type: textblock
22287 #. type: textblock
22288 #: ../fish/guestfish.pod:681
22289 msgid ""
22290 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22291 "command (a guestfish command) to the second command (any host command).  For "
22292 "example:"
22293 msgstr ""
22294
22295 # type: verbatim
22296 #. type: verbatim
22297 #: ../fish/guestfish.pod:685
22298 #, no-wrap
22299 msgid ""
22300 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22301 "\n"
22302 msgstr ""
22303
22304 # type: textblock
22305 #. type: textblock
22306 #: ../fish/guestfish.pod:687
22307 msgid ""
22308 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22309 "program).  The above command would list all accounts in the guest filesystem "
22310 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22311 msgstr ""
22312
22313 # type: verbatim
22314 #. type: verbatim
22315 #: ../fish/guestfish.pod:692
22316 #, no-wrap
22317 msgid ""
22318 " hexdump /bin/ls | head\n"
22319 " list-devices | tail -1\n"
22320 " tgz-out / - | tar ztf -\n"
22321 "\n"
22322 msgstr ""
22323
22324 # type: textblock
22325 #. type: textblock
22326 #: ../fish/guestfish.pod:696
22327 msgid ""
22328 "The space before the pipe symbol is required, any space after the pipe "
22329 "symbol is optional.  Everything after the pipe symbol is just passed "
22330 "straight to the host shell, so it can contain redirections, globs and "
22331 "anything else that makes sense on the host side."
22332 msgstr ""
22333
22334 # type: textblock
22335 #. type: textblock
22336 #: ../fish/guestfish.pod:701
22337 msgid ""
22338 "To use a literal argument which begins with a pipe symbol, you have to quote "
22339 "it, eg:"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #. type: verbatim
22344 #: ../fish/guestfish.pod:704
22345 #, no-wrap
22346 msgid ""
22347 " echo \"|\"\n"
22348 "\n"
22349 msgstr ""
22350
22351 # type: =head1
22352 #. type: =head1
22353 #: ../fish/guestfish.pod:706
22354 msgid "HOME DIRECTORIES"
22355 msgstr ""
22356
22357 # type: textblock
22358 #. type: textblock
22359 #: ../fish/guestfish.pod:708
22360 msgid ""
22361 "If a parameter starts with the character C<~> then the tilde may be expanded "
22362 "as a home directory path (either C<~> for the current user's home directory, "
22363 "or C<~user> for another user)."
22364 msgstr ""
22365
22366 # type: textblock
22367 #. type: textblock
22368 #: ../fish/guestfish.pod:712
22369 msgid ""
22370 "Note that home directory expansion happens for users known I<on the host>, "
22371 "not in the guest filesystem."
22372 msgstr ""
22373
22374 # type: textblock
22375 #. type: textblock
22376 #: ../fish/guestfish.pod:715
22377 msgid ""
22378 "To use a literal argument which begins with a tilde, you have to quote it, "
22379 "eg:"
22380 msgstr ""
22381
22382 # type: verbatim
22383 #. type: verbatim
22384 #: ../fish/guestfish.pod:718
22385 #, no-wrap
22386 msgid ""
22387 " echo \"~\"\n"
22388 "\n"
22389 msgstr ""
22390
22391 # type: textblock
22392 #. type: textblock
22393 #: ../fish/guestfish.pod:722
22394 msgid ""
22395 "Libguestfs has some support for Linux guests encrypted according to the "
22396 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22397 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22398 "LUKS is supported."
22399 msgstr ""
22400
22401 # type: textblock
22402 #. type: textblock
22403 #: ../fish/guestfish.pod:727
22404 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22405 msgstr ""
22406
22407 # type: verbatim
22408 #. type: verbatim
22409 #: ../fish/guestfish.pod:729
22410 #, no-wrap
22411 msgid ""
22412 " ><fs> vfs-type /dev/sda2\n"
22413 " crypto_LUKS\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: textblock
22418 #. type: textblock
22419 #: ../fish/guestfish.pod:732
22420 msgid ""
22421 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22422 "device called C</dev/mapper/luksdev>."
22423 msgstr ""
22424
22425 # type: verbatim
22426 #. type: verbatim
22427 #: ../fish/guestfish.pod:735
22428 #, no-wrap
22429 msgid ""
22430 " ><fs> luks-open /dev/sda2 luksdev\n"
22431 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: textblock
22436 #. type: textblock
22437 #: ../fish/guestfish.pod:738
22438 msgid ""
22439 "Finally you have to tell LVM to scan for volume groups on the newly created "
22440 "mapper device:"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #. type: verbatim
22445 #: ../fish/guestfish.pod:741
22446 #, no-wrap
22447 msgid ""
22448 " vgscan\n"
22449 " vg-activate-all true\n"
22450 "\n"
22451 msgstr ""
22452
22453 # type: textblock
22454 #. type: textblock
22455 #: ../fish/guestfish.pod:744
22456 msgid "The logical volume(s) can now be mounted in the usual way."
22457 msgstr ""
22458
22459 # type: textblock
22460 #. type: textblock
22461 #: ../fish/guestfish.pod:746
22462 msgid ""
22463 "Before closing a LUKS device you must unmount any logical volumes on it and "
22464 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22465 "one.  Then you can close the mapper device:"
22466 msgstr ""
22467
22468 # type: verbatim
22469 #. type: verbatim
22470 #: ../fish/guestfish.pod:750
22471 #, no-wrap
22472 msgid ""
22473 " vg-activate false /dev/VG\n"
22474 " luks-close /dev/mapper/luksdev\n"
22475 "\n"
22476 msgstr ""
22477
22478 # type: =head1
22479 #. type: =head1
22480 #: ../fish/guestfish.pod:753
22481 msgid "WINDOWS PATHS"
22482 msgstr ""
22483
22484 # type: textblock
22485 #. type: textblock
22486 #: ../fish/guestfish.pod:755
22487 msgid ""
22488 "If a path is prefixed with C<win:> then you can use Windows-style paths "
22489 "(with some limitations).  The following commands are equivalent:"
22490 msgstr ""
22491
22492 # type: verbatim
22493 #. type: verbatim
22494 #: ../fish/guestfish.pod:758
22495 #, no-wrap
22496 msgid ""
22497 " file /WINDOWS/system32/config/system.LOG\n"
22498 "\n"
22499 msgstr ""
22500
22501 # type: verbatim
22502 #. type: verbatim
22503 #: ../fish/guestfish.pod:760
22504 #, no-wrap
22505 msgid ""
22506 " file win:/windows/system32/config/system.log\n"
22507 "\n"
22508 msgstr ""
22509
22510 # type: verbatim
22511 #. type: verbatim
22512 #: ../fish/guestfish.pod:762
22513 #, no-wrap
22514 msgid ""
22515 " file win:\\windows\\system32\\config\\system.log\n"
22516 "\n"
22517 msgstr ""
22518
22519 # type: verbatim
22520 #. type: verbatim
22521 #: ../fish/guestfish.pod:764
22522 #, no-wrap
22523 msgid ""
22524 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
22525 "\n"
22526 msgstr ""
22527
22528 # type: textblock
22529 #. type: textblock
22530 #: ../fish/guestfish.pod:766
22531 msgid ""
22532 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
22533 "handles case insensitivity like Windows would.  This only works in argument "
22534 "positions that expect a path."
22535 msgstr ""
22536
22537 # type: =head1
22538 #. type: =head1
22539 #: ../fish/guestfish.pod:770
22540 msgid "UPLOADING AND DOWNLOADING FILES"
22541 msgstr ""
22542
22543 # type: textblock
22544 #. type: textblock
22545 #: ../fish/guestfish.pod:772
22546 msgid ""
22547 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22548 "others which upload from or download to a local file, you can use the "
22549 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22550 msgstr ""
22551
22552 # type: verbatim
22553 #. type: verbatim
22554 #: ../fish/guestfish.pod:776
22555 #, no-wrap
22556 msgid ""
22557 " upload - /foo\n"
22558 "\n"
22559 msgstr ""
22560
22561 # type: textblock
22562 #. type: textblock
22563 #: ../fish/guestfish.pod:778
22564 msgid ""
22565 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22566 msgstr ""
22567
22568 # type: verbatim
22569 #. type: verbatim
22570 #: ../fish/guestfish.pod:781
22571 #, no-wrap
22572 msgid ""
22573 " tar-out /etc - | tar tf -\n"
22574 "\n"
22575 msgstr ""
22576
22577 # type: textblock
22578 #. type: textblock
22579 #: ../fish/guestfish.pod:783
22580 msgid ""
22581 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22582 "command (see L</PIPES>)."
22583 msgstr ""
22584
22585 # type: textblock
22586 #. type: textblock
22587 #: ../fish/guestfish.pod:786
22588 msgid ""
22589 "When using C<-> to read from stdin, the input is read up to the end of "
22590 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22591 "some arbitrary end marker:"
22592 msgstr ""
22593
22594 # type: verbatim
22595 #. type: verbatim
22596 #: ../fish/guestfish.pod:790
22597 #, no-wrap
22598 msgid ""
22599 " upload -<<END /foo\n"
22600 " input line 1\n"
22601 " input line 2\n"
22602 " input line 3\n"
22603 " END\n"
22604 "\n"
22605 msgstr ""
22606
22607 # type: textblock
22608 #. type: textblock
22609 #: ../fish/guestfish.pod:796
22610 msgid ""
22611 "Any string of characters can be used instead of C<END>.  The end marker must "
22612 "appear on a line of its own, without any preceeding or following characters "
22613 "(not even spaces)."
22614 msgstr ""
22615
22616 # type: textblock
22617 #. type: textblock
22618 #: ../fish/guestfish.pod:800
22619 msgid ""
22620 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22621 "upload local files (so-called \"FileIn\" parameters in the generator)."
22622 msgstr ""
22623
22624 # type: =head1
22625 #. type: =head1
22626 #: ../fish/guestfish.pod:803
22627 msgid "EXIT ON ERROR BEHAVIOUR"
22628 msgstr ""
22629
22630 # type: textblock
22631 #. type: textblock
22632 #: ../fish/guestfish.pod:805
22633 msgid ""
22634 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22635 "taking commands from a human over a tty), and will exit on the first error "
22636 "in non-interactive mode (scripts, commands given on the command line)."
22637 msgstr ""
22638
22639 # type: textblock
22640 #. type: textblock
22641 #: ../fish/guestfish.pod:810
22642 msgid ""
22643 "If you prefix a command with a I<-> character, then that command will not "
22644 "cause guestfish to exit, even if that (one) command returns an error."
22645 msgstr ""
22646
22647 # type: =head1
22648 #. type: =head1
22649 #: ../fish/guestfish.pod:814
22650 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22651 msgstr ""
22652
22653 # type: textblock
22654 #. type: textblock
22655 #: ../fish/guestfish.pod:816
22656 msgid ""
22657 "Guestfish can be remote-controlled over a socket.  This is useful "
22658 "particularly in shell scripts where you want to make several different "
22659 "changes to a filesystem, but you don't want the overhead of starting up a "
22660 "guestfish process each time."
22661 msgstr ""
22662
22663 # type: textblock
22664 #. type: textblock
22665 #: ../fish/guestfish.pod:821
22666 msgid "Start a guestfish server process using:"
22667 msgstr ""
22668
22669 # type: verbatim
22670 #. type: verbatim
22671 #: ../fish/guestfish.pod:823
22672 #, no-wrap
22673 msgid ""
22674 " eval \"`guestfish --listen`\"\n"
22675 "\n"
22676 msgstr ""
22677
22678 # type: textblock
22679 #. type: textblock
22680 #: ../fish/guestfish.pod:825
22681 msgid "and then send it commands by doing:"
22682 msgstr ""
22683
22684 # type: verbatim
22685 #. type: verbatim
22686 #: ../fish/guestfish.pod:827
22687 #, no-wrap
22688 msgid ""
22689 " guestfish --remote cmd [...]\n"
22690 "\n"
22691 msgstr ""
22692
22693 # type: textblock
22694 #. type: textblock
22695 #: ../fish/guestfish.pod:829
22696 msgid "To cause the server to exit, send it the exit command:"
22697 msgstr ""
22698
22699 # type: verbatim
22700 #. type: verbatim
22701 #: ../fish/guestfish.pod:831
22702 #, no-wrap
22703 msgid ""
22704 " guestfish --remote exit\n"
22705 "\n"
22706 msgstr ""
22707
22708 # type: textblock
22709 #. type: textblock
22710 #: ../fish/guestfish.pod:833
22711 msgid ""
22712 "Note that the server will normally exit if there is an error in a command.  "
22713 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22714 "BEHAVIOUR>."
22715 msgstr ""
22716
22717 # type: =head2
22718 #. type: =head2
22719 #: ../fish/guestfish.pod:837
22720 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22721 msgstr ""
22722
22723 # type: textblock
22724 #. type: textblock
22725 #: ../fish/guestfish.pod:839
22726 msgid ""
22727 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22728 "is how the I<--remote> option knows where to send the commands.  You can "
22729 "have several guestfish listener processes running using:"
22730 msgstr ""
22731
22732 # type: verbatim
22733 #. type: verbatim
22734 #: ../fish/guestfish.pod:843
22735 #, no-wrap
22736 msgid ""
22737 " eval \"`guestfish --listen`\"\n"
22738 " pid1=$GUESTFISH_PID\n"
22739 " eval \"`guestfish --listen`\"\n"
22740 " pid2=$GUESTFISH_PID\n"
22741 " ...\n"
22742 " guestfish --remote=$pid1 cmd\n"
22743 " guestfish --remote=$pid2 cmd\n"
22744 "\n"
22745 msgstr ""
22746
22747 # type: =head2
22748 #. type: =head2
22749 #: ../fish/guestfish.pod:851
22750 msgid "REMOTE CONTROL AND CSH"
22751 msgstr ""
22752
22753 # type: textblock
22754 #. type: textblock
22755 #: ../fish/guestfish.pod:853
22756 msgid ""
22757 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22758 "option:"
22759 msgstr ""
22760
22761 # type: verbatim
22762 #. type: verbatim
22763 #: ../fish/guestfish.pod:856
22764 #, no-wrap
22765 msgid ""
22766 " eval \"`guestfish --listen --csh`\"\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: =head2
22771 #. type: =head2
22772 #: ../fish/guestfish.pod:858
22773 msgid "REMOTE CONTROL DETAILS"
22774 msgstr ""
22775
22776 # type: textblock
22777 #. type: textblock
22778 #: ../fish/guestfish.pod:860
22779 msgid ""
22780 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22781 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22782 "and C<$PID> is the process ID of the server."
22783 msgstr ""
22784
22785 # type: textblock
22786 #. type: textblock
22787 #: ../fish/guestfish.pod:864
22788 msgid "Guestfish client and server versions must match exactly."
22789 msgstr ""
22790
22791 # type: =head1
22792 #. type: =head1
22793 #: ../fish/guestfish.pod:866
22794 msgid "PREPARED DISK IMAGES"
22795 msgstr ""
22796
22797 # type: textblock
22798 #. type: textblock
22799 #: ../fish/guestfish.pod:868
22800 msgid ""
22801 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22802 "preformatted disk images that guestfish can make for you to save typing.  "
22803 "This is particularly useful for testing purposes.  This option is used "
22804 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22805 "can be mixed with I<-a>)."
22806 msgstr ""
22807
22808 # type: textblock
22809 #. type: textblock
22810 #: ../fish/guestfish.pod:874
22811 msgid ""
22812 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22813 "the second and so on.  Existing files in the current directory are "
22814 "I<overwritten>."
22815 msgstr ""
22816
22817 # type: textblock
22818 #. type: textblock
22819 #: ../fish/guestfish.pod:878
22820 msgid ""
22821 "The type briefly describes how the disk should be sized, partitioned, how "
22822 "filesystem(s) should be created, and how content should be added.  "
22823 "Optionally the type can be followed by extra parameters, separated by C<:> "
22824 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22825 "allocated disk, containing a single partition, with the partition formatted "
22826 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22827 "disk instead."
22828 msgstr ""
22829
22830 # type: textblock
22831 #. type: textblock
22832 #: ../fish/guestfish.pod:886
22833 msgid "To list the available types and any extra parameters they take, run:"
22834 msgstr ""
22835
22836 # type: textblock
22837 #. type: textblock
22838 #: ../fish/guestfish.pod:890
22839 msgid ""
22840 "Note that the prepared filesystem is not mounted.  You would usually have to "
22841 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22842 msgstr ""
22843
22844 # type: textblock
22845 #. type: textblock
22846 #: ../fish/guestfish.pod:894
22847 msgid ""
22848 "If any I<-N> or I<--new> options are given, the guest is automatically "
22849 "launched."
22850 msgstr ""
22851
22852 # type: textblock
22853 #. type: textblock
22854 #: ../fish/guestfish.pod:899
22855 msgid "Create a 100MB disk with an ext4-formatted partition:"
22856 msgstr ""
22857
22858 # type: verbatim
22859 #. type: verbatim
22860 #: ../fish/guestfish.pod:901
22861 #, no-wrap
22862 msgid ""
22863 " guestfish -N fs:ext4\n"
22864 "\n"
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:903
22870 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22871 msgstr ""
22872
22873 # type: verbatim
22874 #. type: verbatim
22875 #: ../fish/guestfish.pod:905
22876 #, no-wrap
22877 msgid ""
22878 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22879 "\n"
22880 msgstr ""
22881
22882 # type: textblock
22883 #. type: textblock
22884 #: ../fish/guestfish.pod:907
22885 msgid "Create a blank 200MB disk:"
22886 msgstr ""
22887
22888 # type: verbatim
22889 #. type: verbatim
22890 #: ../fish/guestfish.pod:909
22891 #, no-wrap
22892 msgid ""
22893 " guestfish -N disk:200M\n"
22894 "\n"
22895 msgstr ""
22896
22897 # type: =head1
22898 #. type: =head1
22899 #: ../fish/guestfish.pod:911
22900 msgid "PROGRESS BARS"
22901 msgstr ""
22902
22903 # type: textblock
22904 #. type: textblock
22905 #: ../fish/guestfish.pod:913
22906 msgid ""
22907 "Some (not all) long-running commands send progress notification messages as "
22908 "they are running.  Guestfish turns these messages into progress bars."
22909 msgstr ""
22910
22911 # type: textblock
22912 #. type: textblock
22913 #: ../fish/guestfish.pod:917
22914 msgid ""
22915 "When a command that supports progress bars takes longer than two seconds to "
22916 "run, and if progress bars are enabled, then you will see one appearing below "
22917 "the command:"
22918 msgstr ""
22919
22920 # type: verbatim
22921 #. type: verbatim
22922 #: ../fish/guestfish.pod:921
22923 #, no-wrap
22924 msgid ""
22925 " ><fs> copy-size /large-file /another-file 2048M\n"
22926 " / 10% [#####-----------------------------------------] 00:30\n"
22927 "\n"
22928 msgstr ""
22929
22930 # type: textblock
22931 #. type: textblock
22932 #: ../fish/guestfish.pod:924
22933 msgid ""
22934 "The spinner on the left hand side moves round once for every progress "
22935 "notification received from the backend.  This is a (reasonably) golden "
22936 "assurance that the command is \"doing something\" even if the progress bar "
22937 "is not moving, because the command is able to send the progress "
22938 "notifications.  When the bar reaches 100% and the command finishes, the "
22939 "spinner disappears."
22940 msgstr ""
22941
22942 # type: textblock
22943 #. type: textblock
22944 #: ../fish/guestfish.pod:931
22945 msgid ""
22946 "Progress bars are enabled by default when guestfish is used interactively.  "
22947 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22948 "and you can disable them completely using I<--no-progress-bars>."
22949 msgstr ""
22950
22951 # type: =head1
22952 #. type: =head1
22953 #: ../fish/guestfish.pod:936
22954 msgid "GUESTFISH COMMANDS"
22955 msgstr ""
22956
22957 # type: textblock
22958 #. type: textblock
22959 #: ../fish/guestfish.pod:938
22960 msgid ""
22961 "The commands in this section are guestfish convenience commands, in other "
22962 "words, they are not part of the L<guestfs(3)> API."
22963 msgstr ""
22964
22965 # type: =head2
22966 #. type: =head2
22967 #: ../fish/guestfish.pod:941
22968 msgid "help"
22969 msgstr ""
22970
22971 # type: verbatim
22972 #. type: verbatim
22973 #: ../fish/guestfish.pod:943
22974 #, no-wrap
22975 msgid ""
22976 " help\n"
22977 " help cmd\n"
22978 "\n"
22979 msgstr ""
22980
22981 # type: textblock
22982 #. type: textblock
22983 #: ../fish/guestfish.pod:946
22984 msgid "Without any parameter, this provides general help."
22985 msgstr ""
22986
22987 # type: textblock
22988 #. type: textblock
22989 #: ../fish/guestfish.pod:948
22990 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22991 msgstr ""
22992
22993 # type: =head2
22994 #. type: =head2
22995 #: ../fish/guestfish.pod:950
22996 msgid "quit | exit"
22997 msgstr ""
22998
22999 # type: textblock
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:952
23002 msgid "This exits guestfish.  You can also use C<^D> key."
23003 msgstr ""
23004
23005 # type: textblock
23006 #. type: textblock
23007 #: ../fish/guestfish.pod:954
23008 msgid "@FISH_COMMANDS@"
23009 msgstr ""
23010
23011 # type: =head1
23012 #. type: =head1
23013 #: ../fish/guestfish.pod:956
23014 msgid "COMMANDS"
23015 msgstr ""
23016
23017 # type: =head1
23018 #. type: =head1
23019 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
23020 msgid "EXIT CODE"
23021 msgstr ""
23022
23023 # type: textblock
23024 #. type: textblock
23025 #: ../fish/guestfish.pod:962
23026 msgid ""
23027 "guestfish returns 0 if the commands completed without error, or 1 if there "
23028 "was an error."
23029 msgstr ""
23030
23031 # type: =item
23032 #. type: =item
23033 #: ../fish/guestfish.pod:969
23034 msgid "EDITOR"
23035 msgstr ""
23036
23037 # type: textblock
23038 #. type: textblock
23039 #: ../fish/guestfish.pod:971
23040 msgid ""
23041 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23042 "C<vi>."
23043 msgstr ""
23044
23045 # type: =item
23046 #. type: =item
23047 #: ../fish/guestfish.pod:974
23048 msgid "GUESTFISH_PID"
23049 msgstr ""
23050
23051 # type: textblock
23052 #. type: textblock
23053 #: ../fish/guestfish.pod:976
23054 msgid ""
23055 "Used with the I<--remote> option to specify the remote guestfish process to "
23056 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23057 msgstr ""
23058
23059 # type: =item
23060 #. type: =item
23061 #: ../fish/guestfish.pod:980
23062 msgid "HEXEDITOR"
23063 msgstr ""
23064
23065 # type: textblock
23066 #. type: textblock
23067 #: ../fish/guestfish.pod:982
23068 msgid ""
23069 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23070 "not specified, the external L<hexedit(1)> program is used."
23071 msgstr ""
23072
23073 # type: =item
23074 #. type: =item
23075 #: ../fish/guestfish.pod:986
23076 msgid "HOME"
23077 msgstr ""
23078
23079 # type: textblock
23080 #. type: textblock
23081 #: ../fish/guestfish.pod:988
23082 msgid ""
23083 "If compiled with GNU readline support, various files in the home directory "
23084 "can be used.  See L</FILES>."
23085 msgstr ""
23086
23087 # type: textblock
23088 #. type: textblock
23089 #: ../fish/guestfish.pod:997
23090 msgid ""
23091 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23092 "effect as using the B<-v> option."
23093 msgstr ""
23094
23095 # type: textblock
23096 #. type: textblock
23097 #: ../fish/guestfish.pod:1009
23098 msgid ""
23099 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23100 "the discussion of paths in L<guestfs(3)>."
23101 msgstr ""
23102
23103 # type: textblock
23104 #. type: textblock
23105 #: ../fish/guestfish.pod:1020
23106 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23107 msgstr ""
23108
23109 # type: =item
23110 #. type: =item
23111 #: ../fish/guestfish.pod:1022
23112 msgid "PAGER"
23113 msgstr ""
23114
23115 # type: textblock
23116 #. type: textblock
23117 #: ../fish/guestfish.pod:1024
23118 msgid ""
23119 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23120 "C<more>."
23121 msgstr ""
23122
23123 # type: =head1
23124 #. type: =head1
23125 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
23126 msgid "FILES"
23127 msgstr ""
23128
23129 # type: =item
23130 #. type: =item
23131 #: ../fish/guestfish.pod:1043
23132 msgid "$HOME/.guestfish"
23133 msgstr ""
23134
23135 # type: textblock
23136 #. type: textblock
23137 #: ../fish/guestfish.pod:1045
23138 msgid ""
23139 "If compiled with GNU readline support, then the command history is saved in "
23140 "this file."
23141 msgstr ""
23142
23143 # type: =item
23144 #. type: =item
23145 #: ../fish/guestfish.pod:1048
23146 msgid "$HOME/.inputrc"
23147 msgstr ""
23148
23149 # type: =item
23150 #. type: =item
23151 #: ../fish/guestfish.pod:1050
23152 msgid "/etc/inputrc"
23153 msgstr ""
23154
23155 # type: textblock
23156 #. type: textblock
23157 #: ../fish/guestfish.pod:1052
23158 msgid ""
23159 "If compiled with GNU readline support, then these files can be used to "
23160 "configure readline.  For further information, please see L<readline(3)/"
23161 "INITIALIZATION FILE>."
23162 msgstr ""
23163
23164 # type: textblock
23165 #. type: textblock
23166 #: ../fish/guestfish.pod:1056
23167 msgid "To write rules which only apply to guestfish, use:"
23168 msgstr ""
23169
23170 # type: verbatim
23171 #. type: verbatim
23172 #: ../fish/guestfish.pod:1058
23173 #, no-wrap
23174 msgid ""
23175 " $if guestfish\n"
23176 " ...\n"
23177 " $endif\n"
23178 "\n"
23179 msgstr ""
23180
23181 # type: textblock
23182 #. type: textblock
23183 #: ../fish/guestfish.pod:1062
23184 msgid ""
23185 "Variables that you can set in inputrc that change the behaviour of guestfish "
23186 "in useful ways include:"
23187 msgstr ""
23188
23189 # type: =item
23190 #. type: =item
23191 #: ../fish/guestfish.pod:1067
23192 msgid "completion-ignore-case (default: on)"
23193 msgstr ""
23194
23195 # type: textblock
23196 #. type: textblock
23197 #: ../fish/guestfish.pod:1069
23198 msgid ""
23199 "By default, guestfish will ignore case when tab-completing paths on the "
23200 "disk.  Use:"
23201 msgstr ""
23202
23203 # type: verbatim
23204 #. type: verbatim
23205 #: ../fish/guestfish.pod:1072
23206 #, no-wrap
23207 msgid ""
23208 " set completion-ignore-case off\n"
23209 "\n"
23210 msgstr ""
23211
23212 # type: textblock
23213 #. type: textblock
23214 #: ../fish/guestfish.pod:1074
23215 msgid "to make guestfish case sensitive."
23216 msgstr ""
23217
23218 # type: =item
23219 #. type: =item
23220 #: ../fish/guestfish.pod:1078
23221 msgid "test1.img"
23222 msgstr ""
23223
23224 # type: =item
23225 #. type: =item
23226 #: ../fish/guestfish.pod:1080
23227 msgid "test2.img (etc)"
23228 msgstr ""
23229
23230 # type: textblock
23231 #. type: textblock
23232 #: ../fish/guestfish.pod:1082
23233 msgid ""
23234 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23235 "will be created in the file C<test1.img> in the current directory.  The "
23236 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23237 "the same name will be overwritten."
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../fish/guestfish.pod:1091
23242 msgid ""
23243 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23244 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23245 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23246 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23247 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23248 ">, L<hexedit(1)>."
23249 msgstr ""
23250
23251 # type: textblock
23252 #. type: textblock
23253 #: ../fish/guestfish.pod:1121 ../test-tool/libguestfs-test-tool.pod:124
23254 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:372
23255 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
23256 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23257 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
23258 msgid ""
23259 "This program is free software; you can redistribute it and/or modify it "
23260 "under the terms of the GNU General Public License as published by the Free "
23261 "Software Foundation; either version 2 of the License, or (at your option) "
23262 "any later version."
23263 msgstr ""
23264
23265 # type: textblock
23266 #. type: textblock
23267 #: ../fish/guestfish.pod:1126 ../test-tool/libguestfs-test-tool.pod:129
23268 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:377
23269 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
23270 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23271 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
23272 msgid ""
23273 "This program is distributed in the hope that it will be useful, but WITHOUT "
23274 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23275 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23276 "more details."
23277 msgstr ""
23278
23279 # type: textblock
23280 #. type: textblock
23281 #: ../fish/guestfish.pod:1131 ../test-tool/libguestfs-test-tool.pod:134
23282 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:382
23283 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
23284 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23285 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
23286 msgid ""
23287 "You should have received a copy of the GNU General Public License along with "
23288 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23289 "Ave, Cambridge, MA 02139, USA."
23290 msgstr ""
23291
23292 # type: =head2
23293 #. type: =head2
23294 #: ../fish/guestfish-actions.pod:1
23295 msgid "add-cdrom"
23296 msgstr ""
23297
23298 # type: verbatim
23299 #. type: verbatim
23300 #: ../fish/guestfish-actions.pod:3
23301 #, no-wrap
23302 msgid ""
23303 " add-cdrom filename\n"
23304 "\n"
23305 msgstr ""
23306
23307 # type: textblock
23308 #. type: textblock
23309 #: ../fish/guestfish-actions.pod:15
23310 msgid ""
23311 "This call checks for the existence of C<filename>.  This stops you from "
23312 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23313 "and C<http:> URLs.  To specify those, use the general L</config> call "
23314 "instead."
23315 msgstr ""
23316
23317 # type: textblock
23318 #. type: textblock
23319 #: ../fish/guestfish-actions.pod:22
23320 msgid ""
23321 "If you just want to add an ISO file (often you use this as an efficient way "
23322 "to transfer large files into the guest), then you should probably use L</add-"
23323 "drive-ro> instead."
23324 msgstr ""
23325
23326 # type: =head2
23327 #. type: =head2
23328 #: ../fish/guestfish-actions.pod:35
23329 msgid "add-domain"
23330 msgstr ""
23331
23332 # type: =head2
23333 #. type: =head2
23334 #: ../fish/guestfish-actions.pod:37
23335 msgid "domain"
23336 msgstr ""
23337
23338 # type: verbatim
23339 #. type: verbatim
23340 #: ../fish/guestfish-actions.pod:39
23341 #, no-wrap
23342 msgid ""
23343 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
23344 "\n"
23345 msgstr ""
23346
23347 # type: textblock
23348 #. type: textblock
23349 #: ../fish/guestfish-actions.pod:41
23350 msgid ""
23351 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23352 "It works by connecting to libvirt, requesting the domain and domain XML from "
23353 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
23354 msgstr ""
23355
23356 # type: textblock
23357 #. type: textblock
23358 #: ../fish/guestfish-actions.pod:64
23359 msgid ""
23360 "The other optional parameters are passed directly through to L</add-drive-"
23361 "opts>."
23362 msgstr ""
23363
23364 # type: textblock
23365 #. type: textblock
23366 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131
23367 #: ../fish/guestfish-actions.pod:2921
23368 msgid ""
23369 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
23370 msgstr ""
23371
23372 # type: =head2
23373 #. type: =head2
23374 #: ../fish/guestfish-actions.pod:69
23375 msgid "add-drive"
23376 msgstr ""
23377
23378 # type: verbatim
23379 #. type: verbatim
23380 #: ../fish/guestfish-actions.pod:71
23381 #, no-wrap
23382 msgid ""
23383 " add-drive filename\n"
23384 "\n"
23385 msgstr ""
23386
23387 # type: textblock
23388 #. type: textblock
23389 #: ../fish/guestfish-actions.pod:73
23390 msgid ""
23391 "This function is the equivalent of calling L</add-drive-opts> with no "
23392 "optional parameters, so the disk is added writable, with the format being "
23393 "detected automatically."
23394 msgstr ""
23395
23396 # type: textblock
23397 #. type: textblock
23398 #: ../fish/guestfish-actions.pod:77
23399 msgid ""
23400 "Automatic detection of the format opens you up to a potential security hole "
23401 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23402 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23403 "you should think about replacing calls to this function with calls to L</add-"
23404 "drive-opts>, and specifying the format."
23405 msgstr ""
23406
23407 # type: =head2
23408 #. type: =head2
23409 #: ../fish/guestfish-actions.pod:84
23410 msgid "add-drive-opts"
23411 msgstr ""
23412
23413 # type: =head2
23414 #. type: =head2
23415 #: ../fish/guestfish-actions.pod:86
23416 msgid "add"
23417 msgstr ""
23418
23419 # type: verbatim
23420 #. type: verbatim
23421 #: ../fish/guestfish-actions.pod:88
23422 #, no-wrap
23423 msgid ""
23424 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23425 "\n"
23426 msgstr ""
23427
23428 # type: textblock
23429 #. type: textblock
23430 #: ../fish/guestfish-actions.pod:115
23431 msgid ""
23432 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
23433 "add-drive-ro>) then the format is automatically detected.  Possible formats "
23434 "include C<raw> and C<qcow2>."
23435 msgstr ""
23436
23437 # type: textblock
23438 #. type: textblock
23439 #: ../fish/guestfish-actions.pod:126
23440 msgid ""
23441 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
23442 "add-drive-with-if> call (q.v.)"
23443 msgstr ""
23444
23445 # type: =head2
23446 #. type: =head2
23447 #: ../fish/guestfish-actions.pod:133
23448 msgid "add-drive-ro"
23449 msgstr ""
23450
23451 # type: =head2
23452 #. type: =head2
23453 #: ../fish/guestfish-actions.pod:135
23454 msgid "add-ro"
23455 msgstr ""
23456
23457 # type: verbatim
23458 #. type: verbatim
23459 #: ../fish/guestfish-actions.pod:137
23460 #, no-wrap
23461 msgid ""
23462 " add-drive-ro filename\n"
23463 "\n"
23464 msgstr ""
23465
23466 # type: textblock
23467 #. type: textblock
23468 #: ../fish/guestfish-actions.pod:139
23469 msgid ""
23470 "This function is the equivalent of calling L</add-drive-opts> with the "
23471 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23472 "is added read-only, with the format being detected automatically."
23473 msgstr ""
23474
23475 # type: =head2
23476 #. type: =head2
23477 #: ../fish/guestfish-actions.pod:144
23478 msgid "add-drive-ro-with-if"
23479 msgstr ""
23480
23481 # type: verbatim
23482 #. type: verbatim
23483 #: ../fish/guestfish-actions.pod:146
23484 #, no-wrap
23485 msgid ""
23486 " add-drive-ro-with-if filename iface\n"
23487 "\n"
23488 msgstr ""
23489
23490 # type: textblock
23491 #. type: textblock
23492 #: ../fish/guestfish-actions.pod:148
23493 msgid ""
23494 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23495 "interface emulation to use at run time."
23496 msgstr ""
23497
23498 # type: =head2
23499 #. type: =head2
23500 #: ../fish/guestfish-actions.pod:158
23501 msgid "add-drive-with-if"
23502 msgstr ""
23503
23504 # type: verbatim
23505 #. type: verbatim
23506 #: ../fish/guestfish-actions.pod:160
23507 #, no-wrap
23508 msgid ""
23509 " add-drive-with-if filename iface\n"
23510 "\n"
23511 msgstr ""
23512
23513 # type: textblock
23514 #. type: textblock
23515 #: ../fish/guestfish-actions.pod:162
23516 msgid ""
23517 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23518 "interface emulation to use at run time."
23519 msgstr ""
23520
23521 # type: =head2
23522 #. type: =head2
23523 #: ../fish/guestfish-actions.pod:172
23524 msgid "aug-clear"
23525 msgstr ""
23526
23527 # type: verbatim
23528 #. type: verbatim
23529 #: ../fish/guestfish-actions.pod:174
23530 #, no-wrap
23531 msgid ""
23532 " aug-clear augpath\n"
23533 "\n"
23534 msgstr ""
23535
23536 # type: =head2
23537 #. type: =head2
23538 #: ../fish/guestfish-actions.pod:179
23539 msgid "aug-close"
23540 msgstr ""
23541
23542 # type: verbatim
23543 #. type: verbatim
23544 #: ../fish/guestfish-actions.pod:181
23545 #, no-wrap
23546 msgid ""
23547 " aug-close\n"
23548 "\n"
23549 msgstr ""
23550
23551 # type: textblock
23552 #. type: textblock
23553 #: ../fish/guestfish-actions.pod:183
23554 msgid ""
23555 "Close the current Augeas handle and free up any resources used by it.  After "
23556 "calling this, you have to call L</aug-init> again before you can use any "
23557 "other Augeas functions."
23558 msgstr ""
23559
23560 # type: =head2
23561 #. type: =head2
23562 #: ../fish/guestfish-actions.pod:188
23563 msgid "aug-defnode"
23564 msgstr ""
23565
23566 # type: verbatim
23567 #. type: verbatim
23568 #: ../fish/guestfish-actions.pod:190
23569 #, no-wrap
23570 msgid ""
23571 " aug-defnode name expr val\n"
23572 "\n"
23573 msgstr ""
23574
23575 # type: textblock
23576 #. type: textblock
23577 #: ../fish/guestfish-actions.pod:195
23578 msgid ""
23579 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23580 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23581 "containing that single node."
23582 msgstr ""
23583
23584 # type: =head2
23585 #. type: =head2
23586 #: ../fish/guestfish-actions.pod:203
23587 msgid "aug-defvar"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #. type: verbatim
23592 #: ../fish/guestfish-actions.pod:205
23593 #, no-wrap
23594 msgid ""
23595 " aug-defvar name expr\n"
23596 "\n"
23597 msgstr ""
23598
23599 # type: =head2
23600 #. type: =head2
23601 #: ../fish/guestfish-actions.pod:214
23602 msgid "aug-get"
23603 msgstr ""
23604
23605 # type: verbatim
23606 #. type: verbatim
23607 #: ../fish/guestfish-actions.pod:216
23608 #, no-wrap
23609 msgid ""
23610 " aug-get augpath\n"
23611 "\n"
23612 msgstr ""
23613
23614 # type: =head2
23615 #. type: =head2
23616 #: ../fish/guestfish-actions.pod:221
23617 msgid "aug-init"
23618 msgstr ""
23619
23620 # type: verbatim
23621 #. type: verbatim
23622 #: ../fish/guestfish-actions.pod:223
23623 #, no-wrap
23624 msgid ""
23625 " aug-init root flags\n"
23626 "\n"
23627 msgstr ""
23628
23629 # type: textblock
23630 #. type: textblock
23631 #: ../fish/guestfish-actions.pod:229
23632 msgid "You must call this before using any other L</aug-*> commands."
23633 msgstr ""
23634
23635 # type: textblock
23636 #. type: textblock
23637 #: ../fish/guestfish-actions.pod:264
23638 msgid "Do not load the tree in L</aug-init>."
23639 msgstr ""
23640
23641 # type: textblock
23642 #. type: textblock
23643 #: ../fish/guestfish-actions.pod:268
23644 msgid "To close the handle, you can call L</aug-close>."
23645 msgstr ""
23646
23647 # type: =head2
23648 #. type: =head2
23649 #: ../fish/guestfish-actions.pod:272
23650 msgid "aug-insert"
23651 msgstr ""
23652
23653 # type: verbatim
23654 #. type: verbatim
23655 #: ../fish/guestfish-actions.pod:274
23656 #, no-wrap
23657 msgid ""
23658 " aug-insert augpath label true|false\n"
23659 "\n"
23660 msgstr ""
23661
23662 # type: =head2
23663 #. type: =head2
23664 #: ../fish/guestfish-actions.pod:284
23665 msgid "aug-load"
23666 msgstr ""
23667
23668 # type: verbatim
23669 #. type: verbatim
23670 #: ../fish/guestfish-actions.pod:286
23671 #, no-wrap
23672 msgid ""
23673 " aug-load\n"
23674 "\n"
23675 msgstr ""
23676
23677 # type: =head2
23678 #. type: =head2
23679 #: ../fish/guestfish-actions.pod:293
23680 msgid "aug-ls"
23681 msgstr ""
23682
23683 # type: verbatim
23684 #. type: verbatim
23685 #: ../fish/guestfish-actions.pod:295
23686 #, no-wrap
23687 msgid ""
23688 " aug-ls augpath\n"
23689 "\n"
23690 msgstr ""
23691
23692 # type: textblock
23693 #. type: textblock
23694 #: ../fish/guestfish-actions.pod:297
23695 msgid ""
23696 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23697 "resulting nodes into alphabetical order."
23698 msgstr ""
23699
23700 # type: =head2
23701 #. type: =head2
23702 #: ../fish/guestfish-actions.pod:300
23703 msgid "aug-match"
23704 msgstr ""
23705
23706 # type: verbatim
23707 #. type: verbatim
23708 #: ../fish/guestfish-actions.pod:302
23709 #, no-wrap
23710 msgid ""
23711 " aug-match augpath\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: =head2
23716 #. type: =head2
23717 #: ../fish/guestfish-actions.pod:308
23718 msgid "aug-mv"
23719 msgstr ""
23720
23721 # type: verbatim
23722 #. type: verbatim
23723 #: ../fish/guestfish-actions.pod:310
23724 #, no-wrap
23725 msgid ""
23726 " aug-mv src dest\n"
23727 "\n"
23728 msgstr ""
23729
23730 # type: =head2
23731 #. type: =head2
23732 #: ../fish/guestfish-actions.pod:315
23733 msgid "aug-rm"
23734 msgstr ""
23735
23736 # type: verbatim
23737 #. type: verbatim
23738 #: ../fish/guestfish-actions.pod:317
23739 #, no-wrap
23740 msgid ""
23741 " aug-rm augpath\n"
23742 "\n"
23743 msgstr ""
23744
23745 # type: =head2
23746 #. type: =head2
23747 #: ../fish/guestfish-actions.pod:323
23748 msgid "aug-save"
23749 msgstr ""
23750
23751 # type: verbatim
23752 #. type: verbatim
23753 #: ../fish/guestfish-actions.pod:325
23754 #, no-wrap
23755 msgid ""
23756 " aug-save\n"
23757 "\n"
23758 msgstr ""
23759
23760 # type: textblock
23761 #. type: textblock
23762 #: ../fish/guestfish-actions.pod:329
23763 msgid ""
23764 "The flags which were passed to L</aug-init> affect exactly how files are "
23765 "saved."
23766 msgstr ""
23767
23768 # type: =head2
23769 #. type: =head2
23770 #: ../fish/guestfish-actions.pod:332
23771 msgid "aug-set"
23772 msgstr ""
23773
23774 # type: verbatim
23775 #. type: verbatim
23776 #: ../fish/guestfish-actions.pod:334
23777 #, no-wrap
23778 msgid ""
23779 " aug-set augpath val\n"
23780 "\n"
23781 msgstr ""
23782
23783 # type: textblock
23784 #. type: textblock
23785 #: ../fish/guestfish-actions.pod:338
23786 msgid ""
23787 "In the Augeas API, it is possible to clear a node by setting the value to "
23788 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23789 "this call.  Instead you must use the L</aug-clear> call."
23790 msgstr ""
23791
23792 # type: =head2
23793 #. type: =head2
23794 #: ../fish/guestfish-actions.pod:343
23795 msgid "available"
23796 msgstr ""
23797
23798 # type: verbatim
23799 #. type: verbatim
23800 #: ../fish/guestfish-actions.pod:345
23801 #, no-wrap
23802 msgid ""
23803 " available 'groups ...'\n"
23804 "\n"
23805 msgstr ""
23806
23807 # type: textblock
23808 #. type: textblock
23809 #: ../fish/guestfish-actions.pod:351
23810 msgid ""
23811 "The libguestfs groups, and the functions that those groups correspond to, "
23812 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23813 "runtime by calling L</available-all-groups>."
23814 msgstr ""
23815
23816 # type: textblock
23817 #. type: textblock
23818 #: ../fish/guestfish-actions.pod:375
23819 msgid "You must call L</launch> before calling this function."
23820 msgstr ""
23821
23822 # type: textblock
23823 #. type: textblock
23824 #: ../fish/guestfish-actions.pod:397
23825 msgid ""
23826 "This call was added in version C<1.0.80>.  In previous versions of "
23827 "libguestfs all you could do would be to speculatively execute a command to "
23828 "find out if the daemon implemented it.  See also L</version>."
23829 msgstr ""
23830
23831 # type: =head2
23832 #. type: =head2
23833 #: ../fish/guestfish-actions.pod:404
23834 msgid "available-all-groups"
23835 msgstr ""
23836
23837 # type: verbatim
23838 #. type: verbatim
23839 #: ../fish/guestfish-actions.pod:406
23840 #, no-wrap
23841 msgid ""
23842 " available-all-groups\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #. type: textblock
23848 #: ../fish/guestfish-actions.pod:408
23849 msgid ""
23850 "This command returns a list of all optional groups that this daemon knows "
23851 "about.  Note this returns both supported and unsupported groups.  To find "
23852 "out which ones the daemon can actually support you have to call L</"
23853 "available> on each member of the returned list."
23854 msgstr ""
23855
23856 # type: textblock
23857 #. type: textblock
23858 #: ../fish/guestfish-actions.pod:414
23859 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23860 msgstr ""
23861
23862 # type: =head2
23863 #. type: =head2
23864 #: ../fish/guestfish-actions.pod:416
23865 msgid "base64-in"
23866 msgstr ""
23867
23868 # type: verbatim
23869 #. type: verbatim
23870 #: ../fish/guestfish-actions.pod:418
23871 #, no-wrap
23872 msgid ""
23873 " base64-in (base64file|-) filename\n"
23874 "\n"
23875 msgstr ""
23876
23877 # type: textblock
23878 #. type: textblock
23879 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432
23880 #: ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825
23881 #: ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221
23882 #: ../fish/guestfish-actions.pod:4289 ../fish/guestfish-actions.pod:4301
23883 #: ../fish/guestfish-actions.pod:4312 ../fish/guestfish-actions.pod:4323
23884 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4384
23885 #: ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:4461
23886 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23887 msgstr ""
23888
23889 # type: =head2
23890 #. type: =head2
23891 #: ../fish/guestfish-actions.pod:425
23892 msgid "base64-out"
23893 msgstr ""
23894
23895 # type: verbatim
23896 #. type: verbatim
23897 #: ../fish/guestfish-actions.pod:427
23898 #, no-wrap
23899 msgid ""
23900 " base64-out filename (base64file|-)\n"
23901 "\n"
23902 msgstr ""
23903
23904 # type: =head2
23905 #. type: =head2
23906 #: ../fish/guestfish-actions.pod:434
23907 msgid "blockdev-flushbufs"
23908 msgstr ""
23909
23910 # type: verbatim
23911 #. type: verbatim
23912 #: ../fish/guestfish-actions.pod:436
23913 #, no-wrap
23914 msgid ""
23915 " blockdev-flushbufs device\n"
23916 "\n"
23917 msgstr ""
23918
23919 # type: =head2
23920 #. type: =head2
23921 #: ../fish/guestfish-actions.pod:443
23922 msgid "blockdev-getbsz"
23923 msgstr ""
23924
23925 # type: verbatim
23926 #. type: verbatim
23927 #: ../fish/guestfish-actions.pod:445
23928 #, no-wrap
23929 msgid ""
23930 " blockdev-getbsz device\n"
23931 "\n"
23932 msgstr ""
23933
23934 # type: =head2
23935 #. type: =head2
23936 #: ../fish/guestfish-actions.pod:454
23937 msgid "blockdev-getro"
23938 msgstr ""
23939
23940 # type: verbatim
23941 #. type: verbatim
23942 #: ../fish/guestfish-actions.pod:456
23943 #, no-wrap
23944 msgid ""
23945 " blockdev-getro device\n"
23946 "\n"
23947 msgstr ""
23948
23949 # type: =head2
23950 #. type: =head2
23951 #: ../fish/guestfish-actions.pod:463
23952 msgid "blockdev-getsize64"
23953 msgstr ""
23954
23955 # type: verbatim
23956 #. type: verbatim
23957 #: ../fish/guestfish-actions.pod:465
23958 #, no-wrap
23959 msgid ""
23960 " blockdev-getsize64 device\n"
23961 "\n"
23962 msgstr ""
23963
23964 # type: textblock
23965 #. type: textblock
23966 #: ../fish/guestfish-actions.pod:469
23967 msgid "See also L</blockdev-getsz>."
23968 msgstr ""
23969
23970 # type: =head2
23971 #. type: =head2
23972 #: ../fish/guestfish-actions.pod:473
23973 msgid "blockdev-getss"
23974 msgstr ""
23975
23976 # type: verbatim
23977 #. type: verbatim
23978 #: ../fish/guestfish-actions.pod:475
23979 #, no-wrap
23980 msgid ""
23981 " blockdev-getss device\n"
23982 "\n"
23983 msgstr ""
23984
23985 # type: textblock
23986 #. type: textblock
23987 #: ../fish/guestfish-actions.pod:480
23988 msgid ""
23989 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
23990 msgstr ""
23991
23992 # type: =head2
23993 #. type: =head2
23994 #: ../fish/guestfish-actions.pod:485
23995 msgid "blockdev-getsz"
23996 msgstr ""
23997
23998 # type: verbatim
23999 #. type: verbatim
24000 #: ../fish/guestfish-actions.pod:487
24001 #, no-wrap
24002 msgid ""
24003 " blockdev-getsz device\n"
24004 "\n"
24005 msgstr ""
24006
24007 # type: textblock
24008 #. type: textblock
24009 #: ../fish/guestfish-actions.pod:492
24010 msgid ""
24011 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24012 "blockdev-getsize64> for the more useful I<size in bytes>."
24013 msgstr ""
24014
24015 # type: =head2
24016 #. type: =head2
24017 #: ../fish/guestfish-actions.pod:498
24018 msgid "blockdev-rereadpt"
24019 msgstr ""
24020
24021 # type: verbatim
24022 #. type: verbatim
24023 #: ../fish/guestfish-actions.pod:500
24024 #, no-wrap
24025 msgid ""
24026 " blockdev-rereadpt device\n"
24027 "\n"
24028 msgstr ""
24029
24030 # type: =head2
24031 #. type: =head2
24032 #: ../fish/guestfish-actions.pod:506
24033 msgid "blockdev-setbsz"
24034 msgstr ""
24035
24036 # type: verbatim
24037 #. type: verbatim
24038 #: ../fish/guestfish-actions.pod:508
24039 #, no-wrap
24040 msgid ""
24041 " blockdev-setbsz device blocksize\n"
24042 "\n"
24043 msgstr ""
24044
24045 # type: =head2
24046 #. type: =head2
24047 #: ../fish/guestfish-actions.pod:517
24048 msgid "blockdev-setro"
24049 msgstr ""
24050
24051 # type: verbatim
24052 #. type: verbatim
24053 #: ../fish/guestfish-actions.pod:519
24054 #, no-wrap
24055 msgid ""
24056 " blockdev-setro device\n"
24057 "\n"
24058 msgstr ""
24059
24060 # type: =head2
24061 #. type: =head2
24062 #: ../fish/guestfish-actions.pod:525
24063 msgid "blockdev-setrw"
24064 msgstr ""
24065
24066 # type: verbatim
24067 #. type: verbatim
24068 #: ../fish/guestfish-actions.pod:527
24069 #, no-wrap
24070 msgid ""
24071 " blockdev-setrw device\n"
24072 "\n"
24073 msgstr ""
24074
24075 # type: =head2
24076 #. type: =head2
24077 #: ../fish/guestfish-actions.pod:533
24078 msgid "case-sensitive-path"
24079 msgstr ""
24080
24081 # type: verbatim
24082 #. type: verbatim
24083 #: ../fish/guestfish-actions.pod:535
24084 #, no-wrap
24085 msgid ""
24086 " case-sensitive-path path\n"
24087 "\n"
24088 msgstr ""
24089
24090 # type: textblock
24091 #. type: textblock
24092 #: ../fish/guestfish-actions.pod:559
24093 msgid ""
24094 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24095 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24096 "the directories were originally created under Windows)."
24097 msgstr ""
24098
24099 # type: textblock
24100 #. type: textblock
24101 #: ../fish/guestfish-actions.pod:567
24102 msgid "See also L</realpath>."
24103 msgstr ""
24104
24105 # type: =head2
24106 #. type: =head2
24107 #: ../fish/guestfish-actions.pod:569
24108 msgid "cat"
24109 msgstr ""
24110
24111 # type: verbatim
24112 #. type: verbatim
24113 #: ../fish/guestfish-actions.pod:571
24114 #, no-wrap
24115 msgid ""
24116 " cat path\n"
24117 "\n"
24118 msgstr ""
24119
24120 # type: textblock
24121 #. type: textblock
24122 #: ../fish/guestfish-actions.pod:575
24123 msgid ""
24124 "Note that this function cannot correctly handle binary files (specifically, "
24125 "files containing C<\\0> character which is treated as end of string).  For "
24126 "those you need to use the L</read-file> or L</download> functions which have "
24127 "a more complex interface."
24128 msgstr ""
24129
24130 # type: =head2
24131 #. type: =head2
24132 #: ../fish/guestfish-actions.pod:583
24133 msgid "checksum"
24134 msgstr ""
24135
24136 # type: verbatim
24137 #. type: verbatim
24138 #: ../fish/guestfish-actions.pod:585
24139 #, no-wrap
24140 msgid ""
24141 " checksum csumtype path\n"
24142 "\n"
24143 msgstr ""
24144
24145 # type: textblock
24146 #. type: textblock
24147 #: ../fish/guestfish-actions.pod:628
24148 msgid "To get the checksum for a device, use L</checksum-device>."
24149 msgstr ""
24150
24151 # type: textblock
24152 #. type: textblock
24153 #: ../fish/guestfish-actions.pod:630
24154 msgid "To get the checksums for many files, use L</checksums-out>."
24155 msgstr ""
24156
24157 # type: =head2
24158 #. type: =head2
24159 #: ../fish/guestfish-actions.pod:632
24160 msgid "checksum-device"
24161 msgstr ""
24162
24163 # type: verbatim
24164 #. type: verbatim
24165 #: ../fish/guestfish-actions.pod:634
24166 #, no-wrap
24167 msgid ""
24168 " checksum-device csumtype device\n"
24169 "\n"
24170 msgstr ""
24171
24172 # type: textblock
24173 #. type: textblock
24174 #: ../fish/guestfish-actions.pod:636
24175 msgid ""
24176 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24177 "device named C<device>.  For the types of checksums supported see the L</"
24178 "checksum> command."
24179 msgstr ""
24180
24181 # type: =head2
24182 #. type: =head2
24183 #: ../fish/guestfish-actions.pod:640
24184 msgid "checksums-out"
24185 msgstr ""
24186
24187 # type: verbatim
24188 #. type: verbatim
24189 #: ../fish/guestfish-actions.pod:642
24190 #, no-wrap
24191 msgid ""
24192 " checksums-out csumtype directory (sumsfile|-)\n"
24193 "\n"
24194 msgstr ""
24195
24196 # type: =head2
24197 #. type: =head2
24198 #: ../fish/guestfish-actions.pod:658
24199 msgid "chmod"
24200 msgstr ""
24201
24202 # type: verbatim
24203 #. type: verbatim
24204 #: ../fish/guestfish-actions.pod:660
24205 #, no-wrap
24206 msgid ""
24207 " chmod mode path\n"
24208 "\n"
24209 msgstr ""
24210
24211 # type: =head2
24212 #. type: =head2
24213 #: ../fish/guestfish-actions.pod:671
24214 msgid "chown"
24215 msgstr ""
24216
24217 # type: verbatim
24218 #. type: verbatim
24219 #: ../fish/guestfish-actions.pod:673
24220 #, no-wrap
24221 msgid ""
24222 " chown owner group path\n"
24223 "\n"
24224 msgstr ""
24225
24226 # type: =head2
24227 #. type: =head2
24228 #: ../fish/guestfish-actions.pod:681
24229 msgid "command"
24230 msgstr ""
24231
24232 # type: verbatim
24233 #. type: verbatim
24234 #: ../fish/guestfish-actions.pod:683
24235 #, no-wrap
24236 msgid ""
24237 " command 'arguments ...'\n"
24238 "\n"
24239 msgstr ""
24240
24241 # type: textblock
24242 #. type: textblock
24243 #: ../fish/guestfish-actions.pod:690
24244 msgid ""
24245 "The single parameter is an argv-style list of arguments.  The first element "
24246 "is the name of the program to run.  Subsequent elements are parameters.  The "
24247 "list must be non-empty (ie. must contain a program name).  Note that the "
24248 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24249 msgstr ""
24250
24251 # type: =head2
24252 #. type: =head2
24253 #: ../fish/guestfish-actions.pod:718
24254 msgid "command-lines"
24255 msgstr ""
24256
24257 # type: verbatim
24258 #. type: verbatim
24259 #: ../fish/guestfish-actions.pod:720
24260 #, no-wrap
24261 msgid ""
24262 " command-lines 'arguments ...'\n"
24263 "\n"
24264 msgstr ""
24265
24266 # type: textblock
24267 #. type: textblock
24268 #: ../fish/guestfish-actions.pod:722
24269 msgid ""
24270 "This is the same as L</command>, but splits the result into a list of lines."
24271 msgstr ""
24272
24273 # type: textblock
24274 #. type: textblock
24275 #: ../fish/guestfish-actions.pod:725
24276 msgid "See also: L</sh-lines>"
24277 msgstr ""
24278
24279 # type: =head2
24280 #. type: =head2
24281 #: ../fish/guestfish-actions.pod:730
24282 msgid "config"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #. type: verbatim
24287 #: ../fish/guestfish-actions.pod:732
24288 #, no-wrap
24289 msgid ""
24290 " config qemuparam qemuvalue\n"
24291 "\n"
24292 msgstr ""
24293
24294 # type: =head2
24295 #. type: =head2
24296 #: ../fish/guestfish-actions.pod:743
24297 msgid "copy-size"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #. type: verbatim
24302 #: ../fish/guestfish-actions.pod:745
24303 #, no-wrap
24304 msgid ""
24305 " copy-size src dest size\n"
24306 "\n"
24307 msgstr ""
24308
24309 # type: =head2
24310 #. type: =head2
24311 #: ../fish/guestfish-actions.pod:753
24312 msgid "cp"
24313 msgstr ""
24314
24315 # type: verbatim
24316 #. type: verbatim
24317 #: ../fish/guestfish-actions.pod:755
24318 #, no-wrap
24319 msgid ""
24320 " cp src dest\n"
24321 "\n"
24322 msgstr ""
24323
24324 # type: =head2
24325 #. type: =head2
24326 #: ../fish/guestfish-actions.pod:760
24327 msgid "cp-a"
24328 msgstr ""
24329
24330 # type: verbatim
24331 #. type: verbatim
24332 #: ../fish/guestfish-actions.pod:762
24333 #, no-wrap
24334 msgid ""
24335 " cp-a src dest\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: =head2
24340 #. type: =head2
24341 #: ../fish/guestfish-actions.pod:767
24342 msgid "dd"
24343 msgstr ""
24344
24345 # type: verbatim
24346 #. type: verbatim
24347 #: ../fish/guestfish-actions.pod:769
24348 #, no-wrap
24349 msgid ""
24350 " dd src dest\n"
24351 "\n"
24352 msgstr ""
24353
24354 # type: textblock
24355 #. type: textblock
24356 #: ../fish/guestfish-actions.pod:776
24357 msgid ""
24358 "If the destination is a device, it must be as large or larger than the "
24359 "source file or device, otherwise the copy will fail.  This command cannot do "
24360 "partial copies (see L</copy-size>)."
24361 msgstr ""
24362
24363 # type: =head2
24364 #. type: =head2
24365 #: ../fish/guestfish-actions.pod:780
24366 msgid "df"
24367 msgstr ""
24368
24369 # type: verbatim
24370 #. type: verbatim
24371 #: ../fish/guestfish-actions.pod:782
24372 #, no-wrap
24373 msgid ""
24374 " df\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #. type: textblock
24380 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
24381 msgid ""
24382 "This command is mostly useful for interactive sessions.  It is I<not> "
24383 "intended that you try to parse the output string.  Use L</statvfs> from "
24384 "programs."
24385 msgstr ""
24386
24387 # type: =head2
24388 #. type: =head2
24389 #: ../fish/guestfish-actions.pod:790
24390 msgid "df-h"
24391 msgstr ""
24392
24393 # type: verbatim
24394 #. type: verbatim
24395 #: ../fish/guestfish-actions.pod:792
24396 #, no-wrap
24397 msgid ""
24398 " df-h\n"
24399 "\n"
24400 msgstr ""
24401
24402 # type: =head2
24403 #. type: =head2
24404 #: ../fish/guestfish-actions.pod:801
24405 msgid "dmesg"
24406 msgstr ""
24407
24408 # type: verbatim
24409 #. type: verbatim
24410 #: ../fish/guestfish-actions.pod:803
24411 #, no-wrap
24412 msgid ""
24413 " dmesg\n"
24414 "\n"
24415 msgstr ""
24416
24417 # type: textblock
24418 #. type: textblock
24419 #: ../fish/guestfish-actions.pod:809
24420 msgid ""
24421 "Another way to get the same information is to enable verbose messages with "
24422 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24423 "before running the program."
24424 msgstr ""
24425
24426 # type: =head2
24427 #. type: =head2
24428 #: ../fish/guestfish-actions.pod:814
24429 msgid "download"
24430 msgstr ""
24431
24432 # type: verbatim
24433 #. type: verbatim
24434 #: ../fish/guestfish-actions.pod:816
24435 #, no-wrap
24436 msgid ""
24437 " download remotefilename (filename|-)\n"
24438 "\n"
24439 msgstr ""
24440
24441 # type: textblock
24442 #. type: textblock
24443 #: ../fish/guestfish-actions.pod:823
24444 msgid "See also L</upload>, L</cat>."
24445 msgstr ""
24446
24447 # type: =head2
24448 #. type: =head2
24449 #: ../fish/guestfish-actions.pod:827
24450 msgid "download-offset"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #. type: verbatim
24455 #: ../fish/guestfish-actions.pod:829
24456 #, no-wrap
24457 msgid ""
24458 " download-offset remotefilename (filename|-) offset size\n"
24459 "\n"
24460 msgstr ""
24461
24462 # type: textblock
24463 #. type: textblock
24464 #: ../fish/guestfish-actions.pod:837
24465 msgid ""
24466 "Note that there is no limit on the amount of data that can be downloaded "
24467 "with this call, unlike with L</pread>, and this call always reads the full "
24468 "amount unless an error occurs."
24469 msgstr ""
24470
24471 # type: textblock
24472 #. type: textblock
24473 #: ../fish/guestfish-actions.pod:842
24474 msgid "See also L</download>, L</pread>."
24475 msgstr ""
24476
24477 # type: =head2
24478 #. type: =head2
24479 #: ../fish/guestfish-actions.pod:846
24480 msgid "drop-caches"
24481 msgstr ""
24482
24483 # type: verbatim
24484 #. type: verbatim
24485 #: ../fish/guestfish-actions.pod:848
24486 #, no-wrap
24487 msgid ""
24488 " drop-caches whattodrop\n"
24489 "\n"
24490 msgstr ""
24491
24492 # type: =head2
24493 #. type: =head2
24494 #: ../fish/guestfish-actions.pod:860
24495 msgid "du"
24496 msgstr ""
24497
24498 # type: verbatim
24499 #. type: verbatim
24500 #: ../fish/guestfish-actions.pod:862
24501 #, no-wrap
24502 msgid ""
24503 " du path\n"
24504 "\n"
24505 msgstr ""
24506
24507 # type: =head2
24508 #. type: =head2
24509 #: ../fish/guestfish-actions.pod:874
24510 msgid "e2fsck-f"
24511 msgstr ""
24512
24513 # type: verbatim
24514 #. type: verbatim
24515 #: ../fish/guestfish-actions.pod:876
24516 #, no-wrap
24517 msgid ""
24518 " e2fsck-f device\n"
24519 "\n"
24520 msgstr ""
24521
24522 # type: textblock
24523 #. type: textblock
24524 #: ../fish/guestfish-actions.pod:882
24525 msgid ""
24526 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24527 "should use L</fsck>."
24528 msgstr ""
24529
24530 # type: =head2
24531 #. type: =head2
24532 #: ../fish/guestfish-actions.pod:885
24533 msgid "echo-daemon"
24534 msgstr ""
24535
24536 # type: verbatim
24537 #. type: verbatim
24538 #: ../fish/guestfish-actions.pod:887
24539 #, no-wrap
24540 msgid ""
24541 " echo-daemon 'words ...'\n"
24542 "\n"
24543 msgstr ""
24544
24545 # type: textblock
24546 #. type: textblock
24547 #: ../fish/guestfish-actions.pod:894
24548 msgid "See also L</ping-daemon>."
24549 msgstr ""
24550
24551 # type: =head2
24552 #. type: =head2
24553 #: ../fish/guestfish-actions.pod:896
24554 msgid "egrep"
24555 msgstr ""
24556
24557 # type: verbatim
24558 #. type: verbatim
24559 #: ../fish/guestfish-actions.pod:898
24560 #, no-wrap
24561 msgid ""
24562 " egrep regex path\n"
24563 "\n"
24564 msgstr ""
24565
24566 # type: =head2
24567 #. type: =head2
24568 #: ../fish/guestfish-actions.pod:906
24569 msgid "egrepi"
24570 msgstr ""
24571
24572 # type: verbatim
24573 #. type: verbatim
24574 #: ../fish/guestfish-actions.pod:908
24575 #, no-wrap
24576 msgid ""
24577 " egrepi regex path\n"
24578 "\n"
24579 msgstr ""
24580
24581 # type: =head2
24582 #. type: =head2
24583 #: ../fish/guestfish-actions.pod:916
24584 msgid "equal"
24585 msgstr ""
24586
24587 # type: verbatim
24588 #. type: verbatim
24589 #: ../fish/guestfish-actions.pod:918
24590 #, no-wrap
24591 msgid ""
24592 " equal file1 file2\n"
24593 "\n"
24594 msgstr ""
24595
24596 # type: =head2
24597 #. type: =head2
24598 #: ../fish/guestfish-actions.pod:925
24599 msgid "exists"
24600 msgstr ""
24601
24602 # type: verbatim
24603 #. type: verbatim
24604 #: ../fish/guestfish-actions.pod:927
24605 #, no-wrap
24606 msgid ""
24607 " exists path\n"
24608 "\n"
24609 msgstr ""
24610
24611 # type: textblock
24612 #. type: textblock
24613 #: ../fish/guestfish-actions.pod:932
24614 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24615 msgstr ""
24616
24617 # type: =head2
24618 #. type: =head2
24619 #: ../fish/guestfish-actions.pod:934
24620 msgid "fallocate"
24621 msgstr ""
24622
24623 # type: verbatim
24624 #. type: verbatim
24625 #: ../fish/guestfish-actions.pod:936
24626 #, no-wrap
24627 msgid ""
24628 " fallocate path len\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: =head2
24633 #. type: =head2
24634 #: ../fish/guestfish-actions.pod:953
24635 msgid "fallocate64"
24636 msgstr ""
24637
24638 # type: verbatim
24639 #. type: verbatim
24640 #: ../fish/guestfish-actions.pod:955
24641 #, no-wrap
24642 msgid ""
24643 " fallocate64 path len\n"
24644 "\n"
24645 msgstr ""
24646
24647 # type: textblock
24648 #. type: textblock
24649 #: ../fish/guestfish-actions.pod:961
24650 msgid ""
24651 "Note that this call allocates disk blocks for the file.  To create a sparse "
24652 "file use L</truncate-size> instead."
24653 msgstr ""
24654
24655 # type: textblock
24656 #. type: textblock
24657 #: ../fish/guestfish-actions.pod:964
24658 msgid ""
24659 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24660 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24661 "maximum size of files created through that call to 1GB."
24662 msgstr ""
24663
24664 # type: =head2
24665 #. type: =head2
24666 #: ../fish/guestfish-actions.pod:973
24667 msgid "fgrep"
24668 msgstr ""
24669
24670 # type: verbatim
24671 #. type: verbatim
24672 #: ../fish/guestfish-actions.pod:975
24673 #, no-wrap
24674 msgid ""
24675 " fgrep pattern path\n"
24676 "\n"
24677 msgstr ""
24678
24679 # type: =head2
24680 #. type: =head2
24681 #: ../fish/guestfish-actions.pod:983
24682 msgid "fgrepi"
24683 msgstr ""
24684
24685 # type: verbatim
24686 #. type: verbatim
24687 #: ../fish/guestfish-actions.pod:985
24688 #, no-wrap
24689 msgid ""
24690 " fgrepi pattern path\n"
24691 "\n"
24692 msgstr ""
24693
24694 # type: =head2
24695 #. type: =head2
24696 #: ../fish/guestfish-actions.pod:993
24697 msgid "file"
24698 msgstr ""
24699
24700 # type: verbatim
24701 #. type: verbatim
24702 #: ../fish/guestfish-actions.pod:995
24703 #, no-wrap
24704 msgid ""
24705 " file path\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: textblock
24710 #. type: textblock
24711 #: ../fish/guestfish-actions.pod:1007
24712 msgid ""
24713 "This command can also be used on C</dev/> devices (and partitions, LV "
24714 "names).  You can for example use this to determine if a device contains a "
24715 "filesystem, although it's usually better to use L</vfs-type>."
24716 msgstr ""
24717
24718 # type: =head2
24719 #. type: =head2
24720 #: ../fish/guestfish-actions.pod:1017
24721 msgid "file-architecture"
24722 msgstr ""
24723
24724 # type: verbatim
24725 #. type: verbatim
24726 #: ../fish/guestfish-actions.pod:1019
24727 #, no-wrap
24728 msgid ""
24729 " file-architecture filename\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: =head2
24734 #. type: =head2
24735 #: ../fish/guestfish-actions.pod:1122
24736 msgid "filesize"
24737 msgstr ""
24738
24739 # type: verbatim
24740 #. type: verbatim
24741 #: ../fish/guestfish-actions.pod:1124
24742 #, no-wrap
24743 msgid ""
24744 " filesize file\n"
24745 "\n"
24746 msgstr ""
24747
24748 # type: textblock
24749 #. type: textblock
24750 #: ../fish/guestfish-actions.pod:1128
24751 msgid ""
24752 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24753 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24754 msgstr ""
24755
24756 # type: =head2
24757 #. type: =head2
24758 #: ../fish/guestfish-actions.pod:1132
24759 msgid "fill"
24760 msgstr ""
24761
24762 # type: verbatim
24763 #. type: verbatim
24764 #: ../fish/guestfish-actions.pod:1134
24765 #, no-wrap
24766 msgid ""
24767 " fill c len path\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: textblock
24772 #. type: textblock
24773 #: ../fish/guestfish-actions.pod:1140
24774 msgid ""
24775 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24776 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
24777 "L</fill-pattern>."
24778 msgstr ""
24779
24780 # type: =head2
24781 #. type: =head2
24782 #: ../fish/guestfish-actions.pod:1145
24783 msgid "fill-pattern"
24784 msgstr ""
24785
24786 # type: verbatim
24787 #. type: verbatim
24788 #: ../fish/guestfish-actions.pod:1147
24789 #, no-wrap
24790 msgid ""
24791 " fill-pattern pattern len path\n"
24792 "\n"
24793 msgstr ""
24794
24795 # type: textblock
24796 #. type: textblock
24797 #: ../fish/guestfish-actions.pod:1149
24798 msgid ""
24799 "This function is like L</fill> except that it creates a new file of length "
24800 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
24801 "is truncated if necessary to ensure the length of the file is exactly C<len> "
24802 "bytes."
24803 msgstr ""
24804
24805 # type: =head2
24806 #. type: =head2
24807 #: ../fish/guestfish-actions.pod:1154
24808 msgid "find"
24809 msgstr ""
24810
24811 # type: verbatim
24812 #. type: verbatim
24813 #: ../fish/guestfish-actions.pod:1156
24814 #, no-wrap
24815 msgid ""
24816 " find directory\n"
24817 "\n"
24818 msgstr ""
24819
24820 # type: textblock
24821 #. type: textblock
24822 #: ../fish/guestfish-actions.pod:1170
24823 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24824 msgstr ""
24825
24826 # type: textblock
24827 #. type: textblock
24828 #: ../fish/guestfish-actions.pod:1183
24829 msgid "See also L</find0>."
24830 msgstr ""
24831
24832 # type: =head2
24833 #. type: =head2
24834 #: ../fish/guestfish-actions.pod:1188
24835 msgid "find0"
24836 msgstr ""
24837
24838 # type: verbatim
24839 #. type: verbatim
24840 #: ../fish/guestfish-actions.pod:1190
24841 #, no-wrap
24842 msgid ""
24843 " find0 directory (files|-)\n"
24844 "\n"
24845 msgstr ""
24846
24847 # type: textblock
24848 #. type: textblock
24849 #: ../fish/guestfish-actions.pod:1196
24850 msgid ""
24851 "This command works the same way as L</find> with the following exceptions:"
24852 msgstr ""
24853
24854 # type: =head2
24855 #. type: =head2
24856 #: ../fish/guestfish-actions.pod:1223
24857 msgid "findfs-label"
24858 msgstr ""
24859
24860 # type: verbatim
24861 #. type: verbatim
24862 #: ../fish/guestfish-actions.pod:1225
24863 #, no-wrap
24864 msgid ""
24865 " findfs-label label\n"
24866 "\n"
24867 msgstr ""
24868
24869 # type: textblock
24870 #. type: textblock
24871 #: ../fish/guestfish-actions.pod:1231
24872 msgid "To find the label of a filesystem, use L</vfs-label>."
24873 msgstr ""
24874
24875 # type: =head2
24876 #. type: =head2
24877 #: ../fish/guestfish-actions.pod:1233
24878 msgid "findfs-uuid"
24879 msgstr ""
24880
24881 # type: verbatim
24882 #. type: verbatim
24883 #: ../fish/guestfish-actions.pod:1235
24884 #, no-wrap
24885 msgid ""
24886 " findfs-uuid uuid\n"
24887 "\n"
24888 msgstr ""
24889
24890 # type: textblock
24891 #. type: textblock
24892 #: ../fish/guestfish-actions.pod:1241
24893 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24894 msgstr ""
24895
24896 # type: =head2
24897 #. type: =head2
24898 #: ../fish/guestfish-actions.pod:1243
24899 msgid "fsck"
24900 msgstr ""
24901
24902 # type: verbatim
24903 #. type: verbatim
24904 #: ../fish/guestfish-actions.pod:1245
24905 #, no-wrap
24906 msgid ""
24907 " fsck fstype device\n"
24908 "\n"
24909 msgstr ""
24910
24911 # type: =head2
24912 #. type: =head2
24913 #: ../fish/guestfish-actions.pod:1275
24914 msgid "get-append"
24915 msgstr ""
24916
24917 # type: verbatim
24918 #. type: verbatim
24919 #: ../fish/guestfish-actions.pod:1277
24920 #, no-wrap
24921 msgid ""
24922 " get-append\n"
24923 "\n"
24924 msgstr ""
24925
24926 # type: =head2
24927 #. type: =head2
24928 #: ../fish/guestfish-actions.pod:1284
24929 msgid "get-autosync"
24930 msgstr ""
24931
24932 # type: verbatim
24933 #. type: verbatim
24934 #: ../fish/guestfish-actions.pod:1286
24935 #, no-wrap
24936 msgid ""
24937 " get-autosync\n"
24938 "\n"
24939 msgstr ""
24940
24941 # type: =head2
24942 #. type: =head2
24943 #: ../fish/guestfish-actions.pod:1290
24944 msgid "get-direct"
24945 msgstr ""
24946
24947 # type: verbatim
24948 #. type: verbatim
24949 #: ../fish/guestfish-actions.pod:1292
24950 #, no-wrap
24951 msgid ""
24952 " get-direct\n"
24953 "\n"
24954 msgstr ""
24955
24956 # type: =head2
24957 #. type: =head2
24958 #: ../fish/guestfish-actions.pod:1296
24959 msgid "get-e2label"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #. type: verbatim
24964 #: ../fish/guestfish-actions.pod:1298
24965 #, no-wrap
24966 msgid ""
24967 " get-e2label device\n"
24968 "\n"
24969 msgstr ""
24970
24971 # type: =head2
24972 #. type: =head2
24973 #: ../fish/guestfish-actions.pod:1310
24974 msgid "get-e2uuid"
24975 msgstr ""
24976
24977 # type: verbatim
24978 #. type: verbatim
24979 #: ../fish/guestfish-actions.pod:1312
24980 #, no-wrap
24981 msgid ""
24982 " get-e2uuid device\n"
24983 "\n"
24984 msgstr ""
24985
24986 # type: =head2
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:1324
24989 msgid "get-memsize"
24990 msgstr ""
24991
24992 # type: verbatim
24993 #. type: verbatim
24994 #: ../fish/guestfish-actions.pod:1326
24995 #, no-wrap
24996 msgid ""
24997 " get-memsize\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: textblock
25002 #. type: textblock
25003 #: ../fish/guestfish-actions.pod:1331
25004 msgid ""
25005 "If L</set-memsize> was not called on this handle, and if "
25006 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25007 "value for memsize."
25008 msgstr ""
25009
25010 # type: =head2
25011 #. type: =head2
25012 #: ../fish/guestfish-actions.pod:1338
25013 msgid "get-network"
25014 msgstr ""
25015
25016 # type: verbatim
25017 #. type: verbatim
25018 #: ../fish/guestfish-actions.pod:1340
25019 #, no-wrap
25020 msgid ""
25021 " get-network\n"
25022 "\n"
25023 msgstr ""
25024
25025 # type: =head2
25026 #. type: =head2
25027 #: ../fish/guestfish-actions.pod:1344
25028 msgid "get-path"
25029 msgstr ""
25030
25031 # type: verbatim
25032 #. type: verbatim
25033 #: ../fish/guestfish-actions.pod:1346
25034 #, no-wrap
25035 msgid ""
25036 " get-path\n"
25037 "\n"
25038 msgstr ""
25039
25040 # type: =head2
25041 #. type: =head2
25042 #: ../fish/guestfish-actions.pod:1353
25043 msgid "get-pid"
25044 msgstr ""
25045
25046 # type: =head2
25047 #. type: =head2
25048 #: ../fish/guestfish-actions.pod:1355
25049 msgid "pid"
25050 msgstr ""
25051
25052 # type: verbatim
25053 #. type: verbatim
25054 #: ../fish/guestfish-actions.pod:1357
25055 #, no-wrap
25056 msgid ""
25057 " get-pid\n"
25058 "\n"
25059 msgstr ""
25060
25061 # type: =head2
25062 #. type: =head2
25063 #: ../fish/guestfish-actions.pod:1364
25064 msgid "get-qemu"
25065 msgstr ""
25066
25067 # type: verbatim
25068 #. type: verbatim
25069 #: ../fish/guestfish-actions.pod:1366
25070 #, no-wrap
25071 msgid ""
25072 " get-qemu\n"
25073 "\n"
25074 msgstr ""
25075
25076 # type: =head2
25077 #. type: =head2
25078 #: ../fish/guestfish-actions.pod:1373
25079 msgid "get-recovery-proc"
25080 msgstr ""
25081
25082 # type: verbatim
25083 #. type: verbatim
25084 #: ../fish/guestfish-actions.pod:1375
25085 #, no-wrap
25086 msgid ""
25087 " get-recovery-proc\n"
25088 "\n"
25089 msgstr ""
25090
25091 # type: =head2
25092 #. type: =head2
25093 #: ../fish/guestfish-actions.pod:1379
25094 msgid "get-selinux"
25095 msgstr ""
25096
25097 # type: verbatim
25098 #. type: verbatim
25099 #: ../fish/guestfish-actions.pod:1381
25100 #, no-wrap
25101 msgid ""
25102 " get-selinux\n"
25103 "\n"
25104 msgstr ""
25105
25106 # type: textblock
25107 #. type: textblock
25108 #: ../fish/guestfish-actions.pod:1383
25109 msgid ""
25110 "This returns the current setting of the selinux flag which is passed to the "
25111 "appliance at boot time.  See L</set-selinux>."
25112 msgstr ""
25113
25114 # type: =head2
25115 #. type: =head2
25116 #: ../fish/guestfish-actions.pod:1389
25117 msgid "get-state"
25118 msgstr ""
25119
25120 # type: verbatim
25121 #. type: verbatim
25122 #: ../fish/guestfish-actions.pod:1391
25123 #, no-wrap
25124 msgid ""
25125 " get-state\n"
25126 "\n"
25127 msgstr ""
25128
25129 # type: =head2
25130 #. type: =head2
25131 #: ../fish/guestfish-actions.pod:1398
25132 msgid "get-trace"
25133 msgstr ""
25134
25135 # type: verbatim
25136 #. type: verbatim
25137 #: ../fish/guestfish-actions.pod:1400
25138 #, no-wrap
25139 msgid ""
25140 " get-trace\n"
25141 "\n"
25142 msgstr ""
25143
25144 # type: =head2
25145 #. type: =head2
25146 #: ../fish/guestfish-actions.pod:1404
25147 msgid "get-umask"
25148 msgstr ""
25149
25150 # type: verbatim
25151 #. type: verbatim
25152 #: ../fish/guestfish-actions.pod:1406
25153 #, no-wrap
25154 msgid ""
25155 " get-umask\n"
25156 "\n"
25157 msgstr ""
25158
25159 # type: textblock
25160 #. type: textblock
25161 #: ../fish/guestfish-actions.pod:1408
25162 msgid ""
25163 "Return the current umask.  By default the umask is C<022> unless it has been "
25164 "set by calling L</umask>."
25165 msgstr ""
25166
25167 # type: =head2
25168 #. type: =head2
25169 #: ../fish/guestfish-actions.pod:1411
25170 msgid "get-verbose"
25171 msgstr ""
25172
25173 # type: verbatim
25174 #. type: verbatim
25175 #: ../fish/guestfish-actions.pod:1413
25176 #, no-wrap
25177 msgid ""
25178 " get-verbose\n"
25179 "\n"
25180 msgstr ""
25181
25182 # type: =head2
25183 #. type: =head2
25184 #: ../fish/guestfish-actions.pod:1417
25185 msgid "getcon"
25186 msgstr ""
25187
25188 # type: verbatim
25189 #. type: verbatim
25190 #: ../fish/guestfish-actions.pod:1419
25191 #, no-wrap
25192 msgid ""
25193 " getcon\n"
25194 "\n"
25195 msgstr ""
25196
25197 # type: textblock
25198 #. type: textblock
25199 #: ../fish/guestfish-actions.pod:1423
25200 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25201 msgstr ""
25202
25203 # type: =head2
25204 #. type: =head2
25205 #: ../fish/guestfish-actions.pod:1426
25206 msgid "getxattr"
25207 msgstr ""
25208
25209 # type: verbatim
25210 #. type: verbatim
25211 #: ../fish/guestfish-actions.pod:1428
25212 #, no-wrap
25213 msgid ""
25214 " getxattr path name\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #. type: textblock
25220 #: ../fish/guestfish-actions.pod:1430
25221 msgid ""
25222 "Get a single extended attribute from file C<path> named C<name>.  This call "
25223 "follows symlinks.  If you want to lookup an extended attribute for the "
25224 "symlink itself, use L</lgetxattr>."
25225 msgstr ""
25226
25227 # type: textblock
25228 #. type: textblock
25229 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2340
25230 msgid ""
25231 "Normally it is better to get all extended attributes from a file in one go "
25232 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25233 "buggy and do not provide a way to list out attributes.  For these "
25234 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25235 "attributes you want in advance and call this function."
25236 msgstr ""
25237
25238 # type: textblock
25239 #. type: textblock
25240 #: ../fish/guestfish-actions.pod:1444
25241 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25242 msgstr ""
25243
25244 # type: =head2
25245 #. type: =head2
25246 #: ../fish/guestfish-actions.pod:1446
25247 msgid "getxattrs"
25248 msgstr ""
25249
25250 # type: verbatim
25251 #. type: verbatim
25252 #: ../fish/guestfish-actions.pod:1448
25253 #, no-wrap
25254 msgid ""
25255 " getxattrs path\n"
25256 "\n"
25257 msgstr ""
25258
25259 # type: textblock
25260 #. type: textblock
25261 #: ../fish/guestfish-actions.pod:1456
25262 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25263 msgstr ""
25264
25265 # type: =head2
25266 #. type: =head2
25267 #: ../fish/guestfish-actions.pod:1458
25268 msgid "glob-expand"
25269 msgstr ""
25270
25271 # type: verbatim
25272 #. type: verbatim
25273 #: ../fish/guestfish-actions.pod:1460
25274 #, no-wrap
25275 msgid ""
25276 " glob-expand pattern\n"
25277 "\n"
25278 msgstr ""
25279
25280 # type: =head2
25281 #. type: =head2
25282 #: ../fish/guestfish-actions.pod:1473
25283 msgid "grep"
25284 msgstr ""
25285
25286 # type: verbatim
25287 #. type: verbatim
25288 #: ../fish/guestfish-actions.pod:1475
25289 #, no-wrap
25290 msgid ""
25291 " grep regex path\n"
25292 "\n"
25293 msgstr ""
25294
25295 # type: =head2
25296 #. type: =head2
25297 #: ../fish/guestfish-actions.pod:1483
25298 msgid "grepi"
25299 msgstr ""
25300
25301 # type: verbatim
25302 #. type: verbatim
25303 #: ../fish/guestfish-actions.pod:1485
25304 #, no-wrap
25305 msgid ""
25306 " grepi regex path\n"
25307 "\n"
25308 msgstr ""
25309
25310 # type: =head2
25311 #. type: =head2
25312 #: ../fish/guestfish-actions.pod:1493
25313 msgid "grub-install"
25314 msgstr ""
25315
25316 # type: verbatim
25317 #. type: verbatim
25318 #: ../fish/guestfish-actions.pod:1495
25319 #, no-wrap
25320 msgid ""
25321 " grub-install root device\n"
25322 "\n"
25323 msgstr ""
25324
25325 # type: =head2
25326 #. type: =head2
25327 #: ../fish/guestfish-actions.pod:1511
25328 msgid "head"
25329 msgstr ""
25330
25331 # type: verbatim
25332 #. type: verbatim
25333 #: ../fish/guestfish-actions.pod:1513
25334 #, no-wrap
25335 msgid ""
25336 " head path\n"
25337 "\n"
25338 msgstr ""
25339
25340 # type: =head2
25341 #. type: =head2
25342 #: ../fish/guestfish-actions.pod:1521
25343 msgid "head-n"
25344 msgstr ""
25345
25346 # type: verbatim
25347 #. type: verbatim
25348 #: ../fish/guestfish-actions.pod:1523
25349 #, no-wrap
25350 msgid ""
25351 " head-n nrlines path\n"
25352 "\n"
25353 msgstr ""
25354
25355 # type: =head2
25356 #. type: =head2
25357 #: ../fish/guestfish-actions.pod:1536
25358 msgid "hexdump"
25359 msgstr ""
25360
25361 # type: verbatim
25362 #. type: verbatim
25363 #: ../fish/guestfish-actions.pod:1538
25364 #, no-wrap
25365 msgid ""
25366 " hexdump path\n"
25367 "\n"
25368 msgstr ""
25369
25370 # type: =head2
25371 #. type: =head2
25372 #: ../fish/guestfish-actions.pod:1546
25373 msgid "initrd-cat"
25374 msgstr ""
25375
25376 # type: verbatim
25377 #. type: verbatim
25378 #: ../fish/guestfish-actions.pod:1548
25379 #, no-wrap
25380 msgid ""
25381 " initrd-cat initrdpath filename\n"
25382 "\n"
25383 msgstr ""
25384
25385 # type: textblock
25386 #. type: textblock
25387 #: ../fish/guestfish-actions.pod:1560
25388 msgid "See also L</initrd-list>."
25389 msgstr ""
25390
25391 # type: =head2
25392 #. type: =head2
25393 #: ../fish/guestfish-actions.pod:1565
25394 msgid "initrd-list"
25395 msgstr ""
25396
25397 # type: verbatim
25398 #. type: verbatim
25399 #: ../fish/guestfish-actions.pod:1567
25400 #, no-wrap
25401 msgid ""
25402 " initrd-list path\n"
25403 "\n"
25404 msgstr ""
25405
25406 # type: =head2
25407 #. type: =head2
25408 #: ../fish/guestfish-actions.pod:1579
25409 msgid "inotify-add-watch"
25410 msgstr ""
25411
25412 # type: verbatim
25413 #. type: verbatim
25414 #: ../fish/guestfish-actions.pod:1581
25415 #, no-wrap
25416 msgid ""
25417 " inotify-add-watch path mask\n"
25418 "\n"
25419 msgstr ""
25420
25421 # type: =head2
25422 #. type: =head2
25423 #: ../fish/guestfish-actions.pod:1593
25424 msgid "inotify-close"
25425 msgstr ""
25426
25427 # type: verbatim
25428 #. type: verbatim
25429 #: ../fish/guestfish-actions.pod:1595
25430 #, no-wrap
25431 msgid ""
25432 " inotify-close\n"
25433 "\n"
25434 msgstr ""
25435
25436 # type: =head2
25437 #. type: =head2
25438 #: ../fish/guestfish-actions.pod:1601
25439 msgid "inotify-files"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #. type: verbatim
25444 #: ../fish/guestfish-actions.pod:1603
25445 #, no-wrap
25446 msgid ""
25447 " inotify-files\n"
25448 "\n"
25449 msgstr ""
25450
25451 # type: textblock
25452 #. type: textblock
25453 #: ../fish/guestfish-actions.pod:1605
25454 msgid ""
25455 "This function is a helpful wrapper around L</inotify-read> which just "
25456 "returns a list of pathnames of objects that were touched.  The returned "
25457 "pathnames are sorted and deduplicated."
25458 msgstr ""
25459
25460 # type: =head2
25461 #. type: =head2
25462 #: ../fish/guestfish-actions.pod:1609
25463 msgid "inotify-init"
25464 msgstr ""
25465
25466 # type: verbatim
25467 #. type: verbatim
25468 #: ../fish/guestfish-actions.pod:1611
25469 #, no-wrap
25470 msgid ""
25471 " inotify-init maxevents\n"
25472 "\n"
25473 msgstr ""
25474
25475 # type: textblock
25476 #. type: textblock
25477 #: ../fish/guestfish-actions.pod:1617
25478 msgid ""
25479 "C<maxevents> is the maximum number of events which will be queued up between "
25480 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
25481 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
25482 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
25483 "but records the fact that it threw them away by setting a flag "
25484 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25485 msgstr ""
25486
25487 # type: textblock
25488 #. type: textblock
25489 #: ../fish/guestfish-actions.pod:1627
25490 msgid ""
25491 "Before any events are generated, you have to add some watches to the "
25492 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
25493 "L</inotify-watch-all>."
25494 msgstr ""
25495
25496 # type: textblock
25497 #. type: textblock
25498 #: ../fish/guestfish-actions.pod:1633
25499 msgid ""
25500 "Queued up events should be read periodically by calling L</inotify-read> (or "
25501 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
25502 "If you don't read the events out often enough then you risk the internal "
25503 "queue overflowing."
25504 msgstr ""
25505
25506 # type: textblock
25507 #. type: textblock
25508 #: ../fish/guestfish-actions.pod:1640
25509 msgid ""
25510 "The handle should be closed after use by calling L</inotify-close>.  This "
25511 "also removes any watches automatically."
25512 msgstr ""
25513
25514 # type: =head2
25515 #. type: =head2
25516 #: ../fish/guestfish-actions.pod:1649
25517 msgid "inotify-read"
25518 msgstr ""
25519
25520 # type: verbatim
25521 #. type: verbatim
25522 #: ../fish/guestfish-actions.pod:1651
25523 #, no-wrap
25524 msgid ""
25525 " inotify-read\n"
25526 "\n"
25527 msgstr ""
25528
25529 # type: =head2
25530 #. type: =head2
25531 #: ../fish/guestfish-actions.pod:1664
25532 msgid "inotify-rm-watch"
25533 msgstr ""
25534
25535 # type: verbatim
25536 #. type: verbatim
25537 #: ../fish/guestfish-actions.pod:1666
25538 #, no-wrap
25539 msgid ""
25540 " inotify-rm-watch wd\n"
25541 "\n"
25542 msgstr ""
25543
25544 # type: textblock
25545 #. type: textblock
25546 #: ../fish/guestfish-actions.pod:1668
25547 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25548 msgstr ""
25549
25550 # type: =head2
25551 #. type: =head2
25552 #: ../fish/guestfish-actions.pod:1671
25553 msgid "inspect-get-arch"
25554 msgstr ""
25555
25556 # type: verbatim
25557 #. type: verbatim
25558 #: ../fish/guestfish-actions.pod:1673
25559 #, no-wrap
25560 msgid ""
25561 " inspect-get-arch root\n"
25562 "\n"
25563 msgstr ""
25564
25565 # type: textblock
25566 #. type: textblock
25567 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691
25568 #: ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783
25569 #: ../fish/guestfish-actions.pod:1817 ../fish/guestfish-actions.pod:1832
25570 #: ../fish/guestfish-actions.pod:1853 ../fish/guestfish-actions.pod:1868
25571 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1917
25572 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1971
25573 #: ../fish/guestfish-actions.pod:2006 ../fish/guestfish-actions.pod:2022
25574 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2048
25575 #: ../fish/guestfish-actions.pod:2063
25576 msgid ""
25577 "This function should only be called with a root device string as returned by "
25578 "L</inspect-os>."
25579 msgstr ""
25580
25581 # type: textblock
25582 #. type: textblock
25583 #: ../fish/guestfish-actions.pod:1678
25584 msgid ""
25585 "This returns the architecture of the inspected operating system.  The "
25586 "possible return values are listed under L</file-architecture>."
25587 msgstr ""
25588
25589 # type: =head2
25590 #. type: =head2
25591 #: ../fish/guestfish-actions.pod:1687
25592 msgid "inspect-get-distro"
25593 msgstr ""
25594
25595 # type: verbatim
25596 #. type: verbatim
25597 #: ../fish/guestfish-actions.pod:1689
25598 #, no-wrap
25599 msgid ""
25600 " inspect-get-distro root\n"
25601 "\n"
25602 msgstr ""
25603
25604 # type: =head2
25605 #. type: =head2
25606 #: ../fish/guestfish-actions.pod:1761
25607 msgid "inspect-get-filesystems"
25608 msgstr ""
25609
25610 # type: verbatim
25611 #. type: verbatim
25612 #: ../fish/guestfish-actions.pod:1763
25613 #, no-wrap
25614 msgid ""
25615 " inspect-get-filesystems root\n"
25616 "\n"
25617 msgstr ""
25618
25619 # type: textblock
25620 #. type: textblock
25621 #: ../fish/guestfish-actions.pod:1776
25622 msgid ""
25623 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25624 "get-mountpoints>."
25625 msgstr ""
25626
25627 #. type: =head2
25628 #: ../fish/guestfish-actions.pod:1779
25629 msgid "inspect-get-format"
25630 msgstr ""
25631
25632 #. type: verbatim
25633 #: ../fish/guestfish-actions.pod:1781
25634 #, no-wrap
25635 msgid ""
25636 " inspect-get-format root\n"
25637 "\n"
25638 msgstr ""
25639
25640 # type: =head2
25641 #. type: =head2
25642 #: ../fish/guestfish-actions.pod:1813
25643 msgid "inspect-get-hostname"
25644 msgstr ""
25645
25646 # type: verbatim
25647 #. type: verbatim
25648 #: ../fish/guestfish-actions.pod:1815
25649 #, no-wrap
25650 msgid ""
25651 " inspect-get-hostname root\n"
25652 "\n"
25653 msgstr ""
25654
25655 # type: =head2
25656 #. type: =head2
25657 #: ../fish/guestfish-actions.pod:1828
25658 msgid "inspect-get-major-version"
25659 msgstr ""
25660
25661 # type: verbatim
25662 #. type: verbatim
25663 #: ../fish/guestfish-actions.pod:1830
25664 #, no-wrap
25665 msgid ""
25666 " inspect-get-major-version root\n"
25667 "\n"
25668 msgstr ""
25669
25670 # type: =head2
25671 #. type: =head2
25672 #: ../fish/guestfish-actions.pod:1849
25673 msgid "inspect-get-minor-version"
25674 msgstr ""
25675
25676 # type: verbatim
25677 #. type: verbatim
25678 #: ../fish/guestfish-actions.pod:1851
25679 #, no-wrap
25680 msgid ""
25681 " inspect-get-minor-version root\n"
25682 "\n"
25683 msgstr ""
25684
25685 # type: textblock
25686 #. type: textblock
25687 #: ../fish/guestfish-actions.pod:1861
25688 msgid ""
25689 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25690 "get-major-version>."
25691 msgstr ""
25692
25693 # type: =head2
25694 #. type: =head2
25695 #: ../fish/guestfish-actions.pod:1864
25696 msgid "inspect-get-mountpoints"
25697 msgstr ""
25698
25699 # type: verbatim
25700 #. type: verbatim
25701 #: ../fish/guestfish-actions.pod:1866
25702 #, no-wrap
25703 msgid ""
25704 " inspect-get-mountpoints root\n"
25705 "\n"
25706 msgstr ""
25707
25708 # type: textblock
25709 #. type: textblock
25710 #: ../fish/guestfish-actions.pod:1888
25711 msgid ""
25712 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25713 "get-filesystems>."
25714 msgstr ""
25715
25716 # type: =head2
25717 #. type: =head2
25718 #: ../fish/guestfish-actions.pod:1891
25719 msgid "inspect-get-package-format"
25720 msgstr ""
25721
25722 # type: verbatim
25723 #. type: verbatim
25724 #: ../fish/guestfish-actions.pod:1893
25725 #, no-wrap
25726 msgid ""
25727 " inspect-get-package-format root\n"
25728 "\n"
25729 msgstr ""
25730
25731 # type: textblock
25732 #. type: textblock
25733 #: ../fish/guestfish-actions.pod:1898
25734 msgid ""
25735 "This function and L</inspect-get-package-management> return the package "
25736 "format and package management tool used by the inspected operating system.  "
25737 "For example for Fedora these functions would return C<rpm> (package format) "
25738 "and C<yum> (package management)."
25739 msgstr ""
25740
25741 # type: =head2
25742 #. type: =head2
25743 #: ../fish/guestfish-actions.pod:1913
25744 msgid "inspect-get-package-management"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:1915
25750 #, no-wrap
25751 msgid ""
25752 " inspect-get-package-management root\n"
25753 "\n"
25754 msgstr ""
25755
25756 # type: textblock
25757 #. type: textblock
25758 #: ../fish/guestfish-actions.pod:1920
25759 msgid ""
25760 "L</inspect-get-package-format> and this function return the package format "
25761 "and package management tool used by the inspected operating system.  For "
25762 "example for Fedora these functions would return C<rpm> (package format) and "
25763 "C<yum> (package management)."
25764 msgstr ""
25765
25766 # type: =head2
25767 #. type: =head2
25768 #: ../fish/guestfish-actions.pod:1937
25769 msgid "inspect-get-product-name"
25770 msgstr ""
25771
25772 # type: verbatim
25773 #. type: verbatim
25774 #: ../fish/guestfish-actions.pod:1939
25775 #, no-wrap
25776 msgid ""
25777 " inspect-get-product-name root\n"
25778 "\n"
25779 msgstr ""
25780
25781 # type: =head2
25782 #. type: =head2
25783 #: ../fish/guestfish-actions.pod:1954
25784 msgid "inspect-get-roots"
25785 msgstr ""
25786
25787 # type: verbatim
25788 #. type: verbatim
25789 #: ../fish/guestfish-actions.pod:1956
25790 #, no-wrap
25791 msgid ""
25792 " inspect-get-roots\n"
25793 "\n"
25794 msgstr ""
25795
25796 # type: textblock
25797 #. type: textblock
25798 #: ../fish/guestfish-actions.pod:1958
25799 msgid ""
25800 "This function is a convenient way to get the list of root devices, as "
25801 "returned from a previous call to L</inspect-os>, but without redoing the "
25802 "whole inspection process."
25803 msgstr ""
25804
25805 # type: textblock
25806 #. type: textblock
25807 #: ../fish/guestfish-actions.pod:1962
25808 msgid ""
25809 "This returns an empty list if either no root devices were found or the "
25810 "caller has not called L</inspect-os>."
25811 msgstr ""
25812
25813 # type: =head2
25814 #. type: =head2
25815 #: ../fish/guestfish-actions.pod:1967
25816 msgid "inspect-get-type"
25817 msgstr ""
25818
25819 # type: verbatim
25820 #. type: verbatim
25821 #: ../fish/guestfish-actions.pod:1969
25822 #, no-wrap
25823 msgid ""
25824 " inspect-get-type root\n"
25825 "\n"
25826 msgstr ""
25827
25828 # type: =head2
25829 #. type: =head2
25830 #: ../fish/guestfish-actions.pod:2002
25831 msgid "inspect-get-windows-systemroot"
25832 msgstr ""
25833
25834 # type: verbatim
25835 #. type: verbatim
25836 #: ../fish/guestfish-actions.pod:2004
25837 #, no-wrap
25838 msgid ""
25839 " inspect-get-windows-systemroot root\n"
25840 "\n"
25841 msgstr ""
25842
25843 #. type: =head2
25844 #: ../fish/guestfish-actions.pod:2018
25845 msgid "inspect-is-live"
25846 msgstr ""
25847
25848 #. type: verbatim
25849 #: ../fish/guestfish-actions.pod:2020
25850 #, no-wrap
25851 msgid ""
25852 " inspect-is-live root\n"
25853 "\n"
25854 msgstr ""
25855
25856 #. type: textblock
25857 #: ../fish/guestfish-actions.pod:2025
25858 msgid ""
25859 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25860 "then this returns true if a live image was detected on the disk."
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../fish/guestfish-actions.pod:2031
25865 msgid "inspect-is-multipart"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../fish/guestfish-actions.pod:2033
25870 #, no-wrap
25871 msgid ""
25872 " inspect-is-multipart root\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../fish/guestfish-actions.pod:2038
25878 msgid ""
25879 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25880 "then this returns true if the disk is part of a set."
25881 msgstr ""
25882
25883 #. type: =head2
25884 #: ../fish/guestfish-actions.pod:2044
25885 msgid "inspect-is-netinst"
25886 msgstr ""
25887
25888 #. type: verbatim
25889 #: ../fish/guestfish-actions.pod:2046
25890 #, no-wrap
25891 msgid ""
25892 " inspect-is-netinst root\n"
25893 "\n"
25894 msgstr ""
25895
25896 #. type: textblock
25897 #: ../fish/guestfish-actions.pod:2051
25898 msgid ""
25899 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25900 "then this returns true if the disk is a network installer, ie. not a self-"
25901 "contained install CD but one which is likely to require network access to "
25902 "complete the install."
25903 msgstr ""
25904
25905 # type: =head2
25906 #. type: =head2
25907 #: ../fish/guestfish-actions.pod:2059
25908 msgid "inspect-list-applications"
25909 msgstr ""
25910
25911 # type: verbatim
25912 #. type: verbatim
25913 #: ../fish/guestfish-actions.pod:2061
25914 #, no-wrap
25915 msgid ""
25916 " inspect-list-applications root\n"
25917 "\n"
25918 msgstr ""
25919
25920 # type: textblock
25921 #. type: textblock
25922 #: ../fish/guestfish-actions.pod:2068
25923 msgid ""
25924 "I<Note:> This call works differently from other parts of the inspection "
25925 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
25926 "then mount up the disks, before calling this.  Listing applications is a "
25927 "significantly more difficult operation which requires access to the full "
25928 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
25929 "are just returning data cached in the libguestfs handle, this call actually "
25930 "reads parts of the mounted filesystems during the call."
25931 msgstr ""
25932
25933 # type: =head2
25934 #. type: =head2
25935 #: ../fish/guestfish-actions.pod:2158
25936 msgid "inspect-os"
25937 msgstr ""
25938
25939 # type: verbatim
25940 #. type: verbatim
25941 #: ../fish/guestfish-actions.pod:2160
25942 #, no-wrap
25943 msgid ""
25944 " inspect-os\n"
25945 "\n"
25946 msgstr ""
25947
25948 # type: textblock
25949 #. type: textblock
25950 #: ../fish/guestfish-actions.pod:2175
25951 msgid ""
25952 "You can pass the root string(s) returned to other L</inspect-get-*> "
25953 "functions in order to query further information about each operating system, "
25954 "such as the name and version."
25955 msgstr ""
25956
25957 # type: textblock
25958 #. type: textblock
25959 #: ../fish/guestfish-actions.pod:2180
25960 msgid ""
25961 "This function uses other libguestfs features such as L</mount-ro> and L</"
25962 "umount-all> in order to mount and unmount filesystems and look at the "
25963 "contents.  This should be called with no disks currently mounted.  The "
25964 "function may also use Augeas, so any existing Augeas handle will be closed."
25965 msgstr ""
25966
25967 # type: textblock
25968 #. type: textblock
25969 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2368
25970 #: ../fish/guestfish-actions.pod:2414
25971 msgid "See also L</list-filesystems>."
25972 msgstr ""
25973
25974 # type: =head2
25975 #. type: =head2
25976 #: ../fish/guestfish-actions.pod:2194
25977 msgid "is-blockdev"
25978 msgstr ""
25979
25980 # type: verbatim
25981 #. type: verbatim
25982 #: ../fish/guestfish-actions.pod:2196
25983 #, no-wrap
25984 msgid ""
25985 " is-blockdev path\n"
25986 "\n"
25987 msgstr ""
25988
25989 # type: textblock
25990 #. type: textblock
25991 #: ../fish/guestfish-actions.pod:2201 ../fish/guestfish-actions.pod:2219
25992 #: ../fish/guestfish-actions.pod:2238 ../fish/guestfish-actions.pod:2247
25993 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2291
25994 #: ../fish/guestfish-actions.pod:2300
25995 msgid "See also L</stat>."
25996 msgstr ""
25997
25998 # type: =head2
25999 #. type: =head2
26000 #: ../fish/guestfish-actions.pod:2203
26001 msgid "is-busy"
26002 msgstr ""
26003
26004 # type: verbatim
26005 #. type: verbatim
26006 #: ../fish/guestfish-actions.pod:2205
26007 #, no-wrap
26008 msgid ""
26009 " is-busy\n"
26010 "\n"
26011 msgstr ""
26012
26013 # type: =head2
26014 #. type: =head2
26015 #: ../fish/guestfish-actions.pod:2212
26016 msgid "is-chardev"
26017 msgstr ""
26018
26019 # type: verbatim
26020 #. type: verbatim
26021 #: ../fish/guestfish-actions.pod:2214
26022 #, no-wrap
26023 msgid ""
26024 " is-chardev path\n"
26025 "\n"
26026 msgstr ""
26027
26028 # type: =head2
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:2221
26031 msgid "is-config"
26032 msgstr ""
26033
26034 # type: verbatim
26035 #. type: verbatim
26036 #: ../fish/guestfish-actions.pod:2223
26037 #, no-wrap
26038 msgid ""
26039 " is-config\n"
26040 "\n"
26041 msgstr ""
26042
26043 # type: =head2
26044 #. type: =head2
26045 #: ../fish/guestfish-actions.pod:2230
26046 msgid "is-dir"
26047 msgstr ""
26048
26049 # type: verbatim
26050 #. type: verbatim
26051 #: ../fish/guestfish-actions.pod:2232
26052 #, no-wrap
26053 msgid ""
26054 " is-dir path\n"
26055 "\n"
26056 msgstr ""
26057
26058 # type: =head2
26059 #. type: =head2
26060 #: ../fish/guestfish-actions.pod:2240
26061 msgid "is-fifo"
26062 msgstr ""
26063
26064 # type: verbatim
26065 #. type: verbatim
26066 #: ../fish/guestfish-actions.pod:2242
26067 #, no-wrap
26068 msgid ""
26069 " is-fifo path\n"
26070 "\n"
26071 msgstr ""
26072
26073 # type: =head2
26074 #. type: =head2
26075 #: ../fish/guestfish-actions.pod:2249
26076 msgid "is-file"
26077 msgstr ""
26078
26079 # type: verbatim
26080 #. type: verbatim
26081 #: ../fish/guestfish-actions.pod:2251
26082 #, no-wrap
26083 msgid ""
26084 " is-file path\n"
26085 "\n"
26086 msgstr ""
26087
26088 # type: =head2
26089 #. type: =head2
26090 #: ../fish/guestfish-actions.pod:2259
26091 msgid "is-launching"
26092 msgstr ""
26093
26094 # type: verbatim
26095 #. type: verbatim
26096 #: ../fish/guestfish-actions.pod:2261
26097 #, no-wrap
26098 msgid ""
26099 " is-launching\n"
26100 "\n"
26101 msgstr ""
26102
26103 # type: =head2
26104 #. type: =head2
26105 #: ../fish/guestfish-actions.pod:2268
26106 msgid "is-lv"
26107 msgstr ""
26108
26109 # type: verbatim
26110 #. type: verbatim
26111 #: ../fish/guestfish-actions.pod:2270
26112 #, no-wrap
26113 msgid ""
26114 " is-lv device\n"
26115 "\n"
26116 msgstr ""
26117
26118 # type: =head2
26119 #. type: =head2
26120 #: ../fish/guestfish-actions.pod:2275
26121 msgid "is-ready"
26122 msgstr ""
26123
26124 # type: verbatim
26125 #. type: verbatim
26126 #: ../fish/guestfish-actions.pod:2277
26127 #, no-wrap
26128 msgid ""
26129 " is-ready\n"
26130 "\n"
26131 msgstr ""
26132
26133 # type: =head2
26134 #. type: =head2
26135 #: ../fish/guestfish-actions.pod:2284
26136 msgid "is-socket"
26137 msgstr ""
26138
26139 # type: verbatim
26140 #. type: verbatim
26141 #: ../fish/guestfish-actions.pod:2286
26142 #, no-wrap
26143 msgid ""
26144 " is-socket path\n"
26145 "\n"
26146 msgstr ""
26147
26148 # type: =head2
26149 #. type: =head2
26150 #: ../fish/guestfish-actions.pod:2293
26151 msgid "is-symlink"
26152 msgstr ""
26153
26154 # type: verbatim
26155 #. type: verbatim
26156 #: ../fish/guestfish-actions.pod:2295
26157 #, no-wrap
26158 msgid ""
26159 " is-symlink path\n"
26160 "\n"
26161 msgstr ""
26162
26163 # type: =head2
26164 #. type: =head2
26165 #: ../fish/guestfish-actions.pod:2302
26166 msgid "kill-subprocess"
26167 msgstr ""
26168
26169 # type: verbatim
26170 #. type: verbatim
26171 #: ../fish/guestfish-actions.pod:2304
26172 #, no-wrap
26173 msgid ""
26174 " kill-subprocess\n"
26175 "\n"
26176 msgstr ""
26177
26178 # type: =head2
26179 #. type: =head2
26180 #: ../fish/guestfish-actions.pod:2308
26181 msgid "launch"
26182 msgstr ""
26183
26184 # type: =head2
26185 #. type: =head2
26186 #: ../fish/guestfish-actions.pod:2310
26187 msgid "run"
26188 msgstr ""
26189
26190 # type: verbatim
26191 #. type: verbatim
26192 #: ../fish/guestfish-actions.pod:2312
26193 #, no-wrap
26194 msgid ""
26195 " launch\n"
26196 "\n"
26197 msgstr ""
26198
26199 # type: =head2
26200 #. type: =head2
26201 #: ../fish/guestfish-actions.pod:2320
26202 msgid "lchown"
26203 msgstr ""
26204
26205 # type: verbatim
26206 #. type: verbatim
26207 #: ../fish/guestfish-actions.pod:2322
26208 #, no-wrap
26209 msgid ""
26210 " lchown owner group path\n"
26211 "\n"
26212 msgstr ""
26213
26214 # type: textblock
26215 #. type: textblock
26216 #: ../fish/guestfish-actions.pod:2324
26217 msgid ""
26218 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
26219 "chown> but if C<path> is a symlink then the link itself is changed, not the "
26220 "target."
26221 msgstr ""
26222
26223 # type: =head2
26224 #. type: =head2
26225 #: ../fish/guestfish-actions.pod:2332
26226 msgid "lgetxattr"
26227 msgstr ""
26228
26229 # type: verbatim
26230 #. type: verbatim
26231 #: ../fish/guestfish-actions.pod:2334
26232 #, no-wrap
26233 msgid ""
26234 " lgetxattr path name\n"
26235 "\n"
26236 msgstr ""
26237
26238 # type: textblock
26239 #. type: textblock
26240 #: ../fish/guestfish-actions.pod:2350
26241 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26242 msgstr ""
26243
26244 # type: =head2
26245 #. type: =head2
26246 #: ../fish/guestfish-actions.pod:2352
26247 msgid "lgetxattrs"
26248 msgstr ""
26249
26250 # type: verbatim
26251 #. type: verbatim
26252 #: ../fish/guestfish-actions.pod:2354
26253 #, no-wrap
26254 msgid ""
26255 " lgetxattrs path\n"
26256 "\n"
26257 msgstr ""
26258
26259 # type: textblock
26260 #. type: textblock
26261 #: ../fish/guestfish-actions.pod:2356
26262 msgid ""
26263 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
26264 "it returns the extended attributes of the link itself."
26265 msgstr ""
26266
26267 # type: =head2
26268 #. type: =head2
26269 #: ../fish/guestfish-actions.pod:2360
26270 msgid "list-devices"
26271 msgstr ""
26272
26273 # type: verbatim
26274 #. type: verbatim
26275 #: ../fish/guestfish-actions.pod:2362
26276 #, no-wrap
26277 msgid ""
26278 " list-devices\n"
26279 "\n"
26280 msgstr ""
26281
26282 # type: =head2
26283 #. type: =head2
26284 #: ../fish/guestfish-actions.pod:2370
26285 msgid "list-filesystems"
26286 msgstr ""
26287
26288 # type: verbatim
26289 #. type: verbatim
26290 #: ../fish/guestfish-actions.pod:2372
26291 #, no-wrap
26292 msgid ""
26293 " list-filesystems\n"
26294 "\n"
26295 msgstr ""
26296
26297 # type: textblock
26298 #. type: textblock
26299 #: ../fish/guestfish-actions.pod:2391
26300 msgid ""
26301 "This command runs other libguestfs commands, which might include L</mount> "
26302 "and L</umount>, and therefore you should use this soon after launch and only "
26303 "when nothing is mounted."
26304 msgstr ""
26305
26306 # type: textblock
26307 #. type: textblock
26308 #: ../fish/guestfish-actions.pod:2395
26309 msgid ""
26310 "Not all of the filesystems returned will be mountable.  In particular, swap "
26311 "partitions are returned in the list.  Also this command does not check that "
26312 "each filesystem found is valid and mountable, and some filesystems might be "
26313 "mountable but require special options.  Filesystems may not all belong to a "
26314 "single logical operating system (use L</inspect-os> to look for OSes)."
26315 msgstr ""
26316
26317 # type: =head2
26318 #. type: =head2
26319 #: ../fish/guestfish-actions.pod:2403
26320 msgid "list-partitions"
26321 msgstr ""
26322
26323 # type: verbatim
26324 #. type: verbatim
26325 #: ../fish/guestfish-actions.pod:2405
26326 #, no-wrap
26327 msgid ""
26328 " list-partitions\n"
26329 "\n"
26330 msgstr ""
26331
26332 # type: textblock
26333 #. type: textblock
26334 #: ../fish/guestfish-actions.pod:2411
26335 msgid ""
26336 "This does not return logical volumes.  For that you will need to call L</"
26337 "lvs>."
26338 msgstr ""
26339
26340 # type: =head2
26341 #. type: =head2
26342 #: ../fish/guestfish-actions.pod:2416
26343 msgid "ll"
26344 msgstr ""
26345
26346 # type: verbatim
26347 #. type: verbatim
26348 #: ../fish/guestfish-actions.pod:2418
26349 #, no-wrap
26350 msgid ""
26351 " ll directory\n"
26352 "\n"
26353 msgstr ""
26354
26355 # type: =head2
26356 #. type: =head2
26357 #: ../fish/guestfish-actions.pod:2426
26358 msgid "ln"
26359 msgstr ""
26360
26361 # type: verbatim
26362 #. type: verbatim
26363 #: ../fish/guestfish-actions.pod:2428
26364 #, no-wrap
26365 msgid ""
26366 " ln target linkname\n"
26367 "\n"
26368 msgstr ""
26369
26370 # type: =head2
26371 #. type: =head2
26372 #: ../fish/guestfish-actions.pod:2432
26373 msgid "ln-f"
26374 msgstr ""
26375
26376 # type: verbatim
26377 #. type: verbatim
26378 #: ../fish/guestfish-actions.pod:2434
26379 #, no-wrap
26380 msgid ""
26381 " ln-f target linkname\n"
26382 "\n"
26383 msgstr ""
26384
26385 # type: =head2
26386 #. type: =head2
26387 #: ../fish/guestfish-actions.pod:2439
26388 msgid "ln-s"
26389 msgstr ""
26390
26391 # type: verbatim
26392 #. type: verbatim
26393 #: ../fish/guestfish-actions.pod:2441
26394 #, no-wrap
26395 msgid ""
26396 " ln-s target linkname\n"
26397 "\n"
26398 msgstr ""
26399
26400 # type: =head2
26401 #. type: =head2
26402 #: ../fish/guestfish-actions.pod:2445
26403 msgid "ln-sf"
26404 msgstr ""
26405
26406 # type: verbatim
26407 #. type: verbatim
26408 #: ../fish/guestfish-actions.pod:2447
26409 #, no-wrap
26410 msgid ""
26411 " ln-sf target linkname\n"
26412 "\n"
26413 msgstr ""
26414
26415 # type: =head2
26416 #. type: =head2
26417 #: ../fish/guestfish-actions.pod:2452
26418 msgid "lremovexattr"
26419 msgstr ""
26420
26421 # type: verbatim
26422 #. type: verbatim
26423 #: ../fish/guestfish-actions.pod:2454
26424 #, no-wrap
26425 msgid ""
26426 " lremovexattr xattr path\n"
26427 "\n"
26428 msgstr ""
26429
26430 # type: textblock
26431 #. type: textblock
26432 #: ../fish/guestfish-actions.pod:2456
26433 msgid ""
26434 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
26435 "it removes an extended attribute of the link itself."
26436 msgstr ""
26437
26438 # type: =head2
26439 #. type: =head2
26440 #: ../fish/guestfish-actions.pod:2460
26441 msgid "ls"
26442 msgstr ""
26443
26444 # type: verbatim
26445 #. type: verbatim
26446 #: ../fish/guestfish-actions.pod:2462
26447 #, no-wrap
26448 msgid ""
26449 " ls directory\n"
26450 "\n"
26451 msgstr ""
26452
26453 # type: textblock
26454 #. type: textblock
26455 #: ../fish/guestfish-actions.pod:2468
26456 msgid ""
26457 "This command is mostly useful for interactive sessions.  Programs should "
26458 "probably use L</readdir> instead."
26459 msgstr ""
26460
26461 # type: =head2
26462 #. type: =head2
26463 #: ../fish/guestfish-actions.pod:2471
26464 msgid "lsetxattr"
26465 msgstr ""
26466
26467 # type: verbatim
26468 #. type: verbatim
26469 #: ../fish/guestfish-actions.pod:2473
26470 #, no-wrap
26471 msgid ""
26472 " lsetxattr xattr val vallen path\n"
26473 "\n"
26474 msgstr ""
26475
26476 # type: textblock
26477 #. type: textblock
26478 #: ../fish/guestfish-actions.pod:2475
26479 msgid ""
26480 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
26481 "sets an extended attribute of the link itself."
26482 msgstr ""
26483
26484 # type: =head2
26485 #. type: =head2
26486 #: ../fish/guestfish-actions.pod:2479
26487 msgid "lstat"
26488 msgstr ""
26489
26490 # type: verbatim
26491 #. type: verbatim
26492 #: ../fish/guestfish-actions.pod:2481
26493 #, no-wrap
26494 msgid ""
26495 " lstat path\n"
26496 "\n"
26497 msgstr ""
26498
26499 # type: textblock
26500 #. type: textblock
26501 #: ../fish/guestfish-actions.pod:2485
26502 msgid ""
26503 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
26504 "the link is stat-ed, not the file it refers to."
26505 msgstr ""
26506
26507 # type: =head2
26508 #. type: =head2
26509 #: ../fish/guestfish-actions.pod:2491
26510 msgid "lstatlist"
26511 msgstr ""
26512
26513 # type: verbatim
26514 #. type: verbatim
26515 #: ../fish/guestfish-actions.pod:2493
26516 #, no-wrap
26517 msgid ""
26518 " lstatlist path 'names ...'\n"
26519 "\n"
26520 msgstr ""
26521
26522 # type: textblock
26523 #. type: textblock
26524 #: ../fish/guestfish-actions.pod:2495
26525 msgid ""
26526 "This call allows you to perform the L</lstat> operation on multiple files, "
26527 "where all files are in the directory C<path>.  C<names> is the list of files "
26528 "from this directory."
26529 msgstr ""
26530
26531 # type: textblock
26532 #. type: textblock
26533 #: ../fish/guestfish-actions.pod:2504
26534 msgid ""
26535 "This call is intended for programs that want to efficiently list a directory "
26536 "contents without making many round-trips.  See also L</lxattrlist> for a "
26537 "similarly efficient call for getting extended attributes.  Very long "
26538 "directory listings might cause the protocol message size to be exceeded, "
26539 "causing this call to fail.  The caller must split up such requests into "
26540 "smaller groups of names."
26541 msgstr ""
26542
26543 # type: =head2
26544 #. type: =head2
26545 #: ../fish/guestfish-actions.pod:2512
26546 msgid "luks-add-key"
26547 msgstr ""
26548
26549 # type: verbatim
26550 #. type: verbatim
26551 #: ../fish/guestfish-actions.pod:2514
26552 #, no-wrap
26553 msgid ""
26554 " luks-add-key device keyslot\n"
26555 "\n"
26556 msgstr ""
26557
26558 # type: textblock
26559 #. type: textblock
26560 #: ../fish/guestfish-actions.pod:2521
26561 msgid ""
26562 "Note that if C<keyslot> already contains a key, then this command will "
26563 "fail.  You have to use L</luks-kill-slot> first to remove that key."
26564 msgstr ""
26565
26566 # type: textblock
26567 #. type: textblock
26568 #: ../fish/guestfish-actions.pod:2525 ../fish/guestfish-actions.pod:2547
26569 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2574
26570 #: ../fish/guestfish-actions.pod:2597 ../fish/guestfish-actions.pod:2607
26571 msgid ""
26572 "This command has one or more key or passphrase parameters.  Guestfish will "
26573 "prompt for these separately."
26574 msgstr ""
26575
26576 # type: =head2
26577 #. type: =head2
26578 #: ../fish/guestfish-actions.pod:2528
26579 msgid "luks-close"
26580 msgstr ""
26581
26582 # type: verbatim
26583 #. type: verbatim
26584 #: ../fish/guestfish-actions.pod:2530
26585 #, no-wrap
26586 msgid ""
26587 " luks-close device\n"
26588 "\n"
26589 msgstr ""
26590
26591 # type: textblock
26592 #. type: textblock
26593 #: ../fish/guestfish-actions.pod:2532
26594 msgid ""
26595 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
26596 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
26597 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
26598 "block device."
26599 msgstr ""
26600
26601 # type: =head2
26602 #. type: =head2
26603 #: ../fish/guestfish-actions.pod:2538
26604 msgid "luks-format"
26605 msgstr ""
26606
26607 # type: verbatim
26608 #. type: verbatim
26609 #: ../fish/guestfish-actions.pod:2540
26610 #, no-wrap
26611 msgid ""
26612 " luks-format device keyslot\n"
26613 "\n"
26614 msgstr ""
26615
26616 # type: =head2
26617 #. type: =head2
26618 #: ../fish/guestfish-actions.pod:2553
26619 msgid "luks-format-cipher"
26620 msgstr ""
26621
26622 # type: verbatim
26623 #. type: verbatim
26624 #: ../fish/guestfish-actions.pod:2555
26625 #, no-wrap
26626 msgid ""
26627 " luks-format-cipher device keyslot cipher\n"
26628 "\n"
26629 msgstr ""
26630
26631 # type: textblock
26632 #. type: textblock
26633 #: ../fish/guestfish-actions.pod:2557
26634 msgid ""
26635 "This command is the same as L</luks-format> but it also allows you to set "
26636 "the C<cipher> used."
26637 msgstr ""
26638
26639 # type: =head2
26640 #. type: =head2
26641 #: ../fish/guestfish-actions.pod:2566
26642 msgid "luks-kill-slot"
26643 msgstr ""
26644
26645 # type: verbatim
26646 #. type: verbatim
26647 #: ../fish/guestfish-actions.pod:2568
26648 #, no-wrap
26649 msgid ""
26650 " luks-kill-slot device keyslot\n"
26651 "\n"
26652 msgstr ""
26653
26654 # type: =head2
26655 #. type: =head2
26656 #: ../fish/guestfish-actions.pod:2577
26657 msgid "luks-open"
26658 msgstr ""
26659
26660 # type: verbatim
26661 #. type: verbatim
26662 #: ../fish/guestfish-actions.pod:2579
26663 #, no-wrap
26664 msgid ""
26665 " luks-open device mapname\n"
26666 "\n"
26667 msgstr ""
26668
26669 # type: textblock
26670 #. type: textblock
26671 #: ../fish/guestfish-actions.pod:2593
26672 msgid ""
26673 "If this block device contains LVM volume groups, then calling L</vgscan> "
26674 "followed by L</vg-activate-all> will make them visible."
26675 msgstr ""
26676
26677 # type: =head2
26678 #. type: =head2
26679 #: ../fish/guestfish-actions.pod:2600
26680 msgid "luks-open-ro"
26681 msgstr ""
26682
26683 # type: verbatim
26684 #. type: verbatim
26685 #: ../fish/guestfish-actions.pod:2602
26686 #, no-wrap
26687 msgid ""
26688 " luks-open-ro device mapname\n"
26689 "\n"
26690 msgstr ""
26691
26692 # type: textblock
26693 #. type: textblock
26694 #: ../fish/guestfish-actions.pod:2604
26695 msgid ""
26696 "This is the same as L</luks-open> except that a read-only mapping is created."
26697 msgstr ""
26698
26699 # type: =head2
26700 #. type: =head2
26701 #: ../fish/guestfish-actions.pod:2610
26702 msgid "lvcreate"
26703 msgstr ""
26704
26705 # type: verbatim
26706 #. type: verbatim
26707 #: ../fish/guestfish-actions.pod:2612
26708 #, no-wrap
26709 msgid ""
26710 " lvcreate logvol volgroup mbytes\n"
26711 "\n"
26712 msgstr ""
26713
26714 # type: =head2
26715 #. type: =head2
26716 #: ../fish/guestfish-actions.pod:2617
26717 msgid "lvm-canonical-lv-name"
26718 msgstr ""
26719
26720 # type: verbatim
26721 #. type: verbatim
26722 #: ../fish/guestfish-actions.pod:2619
26723 #, no-wrap
26724 msgid ""
26725 " lvm-canonical-lv-name lvname\n"
26726 "\n"
26727 msgstr ""
26728
26729 # type: textblock
26730 #. type: textblock
26731 #: ../fish/guestfish-actions.pod:2628
26732 msgid "See also L</is-lv>."
26733 msgstr ""
26734
26735 # type: =head2
26736 #. type: =head2
26737 #: ../fish/guestfish-actions.pod:2630
26738 msgid "lvm-clear-filter"
26739 msgstr ""
26740
26741 # type: verbatim
26742 #. type: verbatim
26743 #: ../fish/guestfish-actions.pod:2632
26744 #, no-wrap
26745 msgid ""
26746 " lvm-clear-filter\n"
26747 "\n"
26748 msgstr ""
26749
26750 # type: textblock
26751 #. type: textblock
26752 #: ../fish/guestfish-actions.pod:2634
26753 msgid ""
26754 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
26755 "block device."
26756 msgstr ""
26757
26758 # type: =head2
26759 #. type: =head2
26760 #: ../fish/guestfish-actions.pod:2640
26761 msgid "lvm-remove-all"
26762 msgstr ""
26763
26764 # type: verbatim
26765 #. type: verbatim
26766 #: ../fish/guestfish-actions.pod:2642
26767 #, no-wrap
26768 msgid ""
26769 " lvm-remove-all\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: =head2
26774 #. type: =head2
26775 #: ../fish/guestfish-actions.pod:2650
26776 msgid "lvm-set-filter"
26777 msgstr ""
26778
26779 # type: verbatim
26780 #. type: verbatim
26781 #: ../fish/guestfish-actions.pod:2652
26782 #, no-wrap
26783 msgid ""
26784 " lvm-set-filter 'devices ...'\n"
26785 "\n"
26786 msgstr ""
26787
26788 # type: =head2
26789 #. type: =head2
26790 #: ../fish/guestfish-actions.pod:2677
26791 msgid "lvremove"
26792 msgstr ""
26793
26794 # type: verbatim
26795 #. type: verbatim
26796 #: ../fish/guestfish-actions.pod:2679
26797 #, no-wrap
26798 msgid ""
26799 " lvremove device\n"
26800 "\n"
26801 msgstr ""
26802
26803 # type: =head2
26804 #. type: =head2
26805 #: ../fish/guestfish-actions.pod:2687
26806 msgid "lvrename"
26807 msgstr ""
26808
26809 # type: verbatim
26810 #. type: verbatim
26811 #: ../fish/guestfish-actions.pod:2689
26812 #, no-wrap
26813 msgid ""
26814 " lvrename logvol newlogvol\n"
26815 "\n"
26816 msgstr ""
26817
26818 # type: =head2
26819 #. type: =head2
26820 #: ../fish/guestfish-actions.pod:2693
26821 msgid "lvresize"
26822 msgstr ""
26823
26824 # type: verbatim
26825 #. type: verbatim
26826 #: ../fish/guestfish-actions.pod:2695
26827 #, no-wrap
26828 msgid ""
26829 " lvresize device mbytes\n"
26830 "\n"
26831 msgstr ""
26832
26833 # type: =head2
26834 #. type: =head2
26835 #: ../fish/guestfish-actions.pod:2701
26836 msgid "lvresize-free"
26837 msgstr ""
26838
26839 # type: verbatim
26840 #. type: verbatim
26841 #: ../fish/guestfish-actions.pod:2703
26842 #, no-wrap
26843 msgid ""
26844 " lvresize-free lv percent\n"
26845 "\n"
26846 msgstr ""
26847
26848 # type: =head2
26849 #. type: =head2
26850 #: ../fish/guestfish-actions.pod:2711
26851 msgid "lvs"
26852 msgstr ""
26853
26854 # type: verbatim
26855 #. type: verbatim
26856 #: ../fish/guestfish-actions.pod:2713
26857 #, no-wrap
26858 msgid ""
26859 " lvs\n"
26860 "\n"
26861 msgstr ""
26862
26863 # type: textblock
26864 #. type: textblock
26865 #: ../fish/guestfish-actions.pod:2721
26866 msgid "See also L</lvs-full>, L</list-filesystems>."
26867 msgstr ""
26868
26869 # type: =head2
26870 #. type: =head2
26871 #: ../fish/guestfish-actions.pod:2723
26872 msgid "lvs-full"
26873 msgstr ""
26874
26875 # type: verbatim
26876 #. type: verbatim
26877 #: ../fish/guestfish-actions.pod:2725
26878 #, no-wrap
26879 msgid ""
26880 " lvs-full\n"
26881 "\n"
26882 msgstr ""
26883
26884 # type: =head2
26885 #. type: =head2
26886 #: ../fish/guestfish-actions.pod:2730
26887 msgid "lvuuid"
26888 msgstr ""
26889
26890 # type: verbatim
26891 #. type: verbatim
26892 #: ../fish/guestfish-actions.pod:2732
26893 #, no-wrap
26894 msgid ""
26895 " lvuuid device\n"
26896 "\n"
26897 msgstr ""
26898
26899 # type: =head2
26900 #. type: =head2
26901 #: ../fish/guestfish-actions.pod:2736
26902 msgid "lxattrlist"
26903 msgstr ""
26904
26905 # type: verbatim
26906 #. type: verbatim
26907 #: ../fish/guestfish-actions.pod:2738
26908 #, no-wrap
26909 msgid ""
26910 " lxattrlist path 'names ...'\n"
26911 "\n"
26912 msgstr ""
26913
26914 # type: textblock
26915 #. type: textblock
26916 #: ../fish/guestfish-actions.pod:2754
26917 msgid ""
26918 "This call is intended for programs that want to efficiently list a directory "
26919 "contents without making many round-trips.  See also L</lstatlist> for a "
26920 "similarly efficient call for getting standard stats.  Very long directory "
26921 "listings might cause the protocol message size to be exceeded, causing this "
26922 "call to fail.  The caller must split up such requests into smaller groups of "
26923 "names."
26924 msgstr ""
26925
26926 # type: =head2
26927 #. type: =head2
26928 #: ../fish/guestfish-actions.pod:2762
26929 msgid "mkdir"
26930 msgstr ""
26931
26932 # type: verbatim
26933 #. type: verbatim
26934 #: ../fish/guestfish-actions.pod:2764
26935 #, no-wrap
26936 msgid ""
26937 " mkdir path\n"
26938 "\n"
26939 msgstr ""
26940
26941 # type: =head2
26942 #. type: =head2
26943 #: ../fish/guestfish-actions.pod:2768
26944 msgid "mkdir-mode"
26945 msgstr ""
26946
26947 # type: verbatim
26948 #. type: verbatim
26949 #: ../fish/guestfish-actions.pod:2770
26950 #, no-wrap
26951 msgid ""
26952 " mkdir-mode path mode\n"
26953 "\n"
26954 msgstr ""
26955
26956 # type: textblock
26957 #. type: textblock
26958 #: ../fish/guestfish-actions.pod:2779
26959 msgid "See also L</mkdir>, L</umask>"
26960 msgstr ""
26961
26962 # type: =head2
26963 #. type: =head2
26964 #: ../fish/guestfish-actions.pod:2781
26965 msgid "mkdir-p"
26966 msgstr ""
26967
26968 # type: verbatim
26969 #. type: verbatim
26970 #: ../fish/guestfish-actions.pod:2783
26971 #, no-wrap
26972 msgid ""
26973 " mkdir-p path\n"
26974 "\n"
26975 msgstr ""
26976
26977 # type: =head2
26978 #. type: =head2
26979 #: ../fish/guestfish-actions.pod:2788
26980 msgid "mkdtemp"
26981 msgstr ""
26982
26983 # type: verbatim
26984 #. type: verbatim
26985 #: ../fish/guestfish-actions.pod:2790
26986 #, no-wrap
26987 msgid ""
26988 " mkdtemp template\n"
26989 "\n"
26990 msgstr ""
26991
26992 # type: =head2
26993 #. type: =head2
26994 #: ../fish/guestfish-actions.pod:2811
26995 msgid "mke2fs-J"
26996 msgstr ""
26997
26998 # type: verbatim
26999 #. type: verbatim
27000 #: ../fish/guestfish-actions.pod:2813
27001 #, no-wrap
27002 msgid ""
27003 " mke2fs-J fstype blocksize device journal\n"
27004 "\n"
27005 msgstr ""
27006
27007 # type: textblock
27008 #. type: textblock
27009 #: ../fish/guestfish-actions.pod:2821
27010 msgid "See also L</mke2journal>."
27011 msgstr ""
27012
27013 # type: =head2
27014 #. type: =head2
27015 #: ../fish/guestfish-actions.pod:2823
27016 msgid "mke2fs-JL"
27017 msgstr ""
27018
27019 # type: verbatim
27020 #. type: verbatim
27021 #: ../fish/guestfish-actions.pod:2825
27022 #, no-wrap
27023 msgid ""
27024 " mke2fs-JL fstype blocksize device label\n"
27025 "\n"
27026 msgstr ""
27027
27028 # type: textblock
27029 #. type: textblock
27030 #: ../fish/guestfish-actions.pod:2830
27031 msgid "See also L</mke2journal-L>."
27032 msgstr ""
27033
27034 # type: =head2
27035 #. type: =head2
27036 #: ../fish/guestfish-actions.pod:2832
27037 msgid "mke2fs-JU"
27038 msgstr ""
27039
27040 # type: verbatim
27041 #. type: verbatim
27042 #: ../fish/guestfish-actions.pod:2834
27043 #, no-wrap
27044 msgid ""
27045 " mke2fs-JU fstype blocksize device uuid\n"
27046 "\n"
27047 msgstr ""
27048
27049 # type: textblock
27050 #. type: textblock
27051 #: ../fish/guestfish-actions.pod:2839
27052 msgid "See also L</mke2journal-U>."
27053 msgstr ""
27054
27055 # type: =head2
27056 #. type: =head2
27057 #: ../fish/guestfish-actions.pod:2841
27058 msgid "mke2journal"
27059 msgstr ""
27060
27061 # type: verbatim
27062 #. type: verbatim
27063 #: ../fish/guestfish-actions.pod:2843
27064 #, no-wrap
27065 msgid ""
27066 " mke2journal blocksize device\n"
27067 "\n"
27068 msgstr ""
27069
27070 # type: =head2
27071 #. type: =head2
27072 #: ../fish/guestfish-actions.pod:2850
27073 msgid "mke2journal-L"
27074 msgstr ""
27075
27076 # type: verbatim
27077 #. type: verbatim
27078 #: ../fish/guestfish-actions.pod:2852
27079 #, no-wrap
27080 msgid ""
27081 " mke2journal-L blocksize label device\n"
27082 "\n"
27083 msgstr ""
27084
27085 # type: =head2
27086 #. type: =head2
27087 #: ../fish/guestfish-actions.pod:2856
27088 msgid "mke2journal-U"
27089 msgstr ""
27090
27091 # type: verbatim
27092 #. type: verbatim
27093 #: ../fish/guestfish-actions.pod:2858
27094 #, no-wrap
27095 msgid ""
27096 " mke2journal-U blocksize uuid device\n"
27097 "\n"
27098 msgstr ""
27099
27100 # type: =head2
27101 #. type: =head2
27102 #: ../fish/guestfish-actions.pod:2862
27103 msgid "mkfifo"
27104 msgstr ""
27105
27106 # type: verbatim
27107 #. type: verbatim
27108 #: ../fish/guestfish-actions.pod:2864
27109 #, no-wrap
27110 msgid ""
27111 " mkfifo mode path\n"
27112 "\n"
27113 msgstr ""
27114
27115 # type: textblock
27116 #. type: textblock
27117 #: ../fish/guestfish-actions.pod:2866
27118 msgid ""
27119 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27120 "is just a convenient wrapper around L</mknod>."
27121 msgstr ""
27122
27123 # type: =head2
27124 #. type: =head2
27125 #: ../fish/guestfish-actions.pod:2872
27126 msgid "mkfs"
27127 msgstr ""
27128
27129 # type: verbatim
27130 #. type: verbatim
27131 #: ../fish/guestfish-actions.pod:2874
27132 #, no-wrap
27133 msgid ""
27134 " mkfs fstype device\n"
27135 "\n"
27136 msgstr ""
27137
27138 # type: =head2
27139 #. type: =head2
27140 #: ../fish/guestfish-actions.pod:2880
27141 msgid "mkfs-b"
27142 msgstr ""
27143
27144 # type: verbatim
27145 #. type: verbatim
27146 #: ../fish/guestfish-actions.pod:2882
27147 #, no-wrap
27148 msgid ""
27149 " mkfs-b fstype blocksize device\n"
27150 "\n"
27151 msgstr ""
27152
27153 # type: textblock
27154 #. type: textblock
27155 #: ../fish/guestfish-actions.pod:2884
27156 msgid ""
27157 "This call is similar to L</mkfs>, but it allows you to control the block "
27158 "size of the resulting filesystem.  Supported block sizes depend on the "
27159 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27160 msgstr ""
27161
27162 # type: =head2
27163 #. type: =head2
27164 #: ../fish/guestfish-actions.pod:2899
27165 msgid "mkfs-opts"
27166 msgstr ""
27167
27168 # type: verbatim
27169 #. type: verbatim
27170 #: ../fish/guestfish-actions.pod:2901
27171 #, no-wrap
27172 msgid ""
27173 " mkfs-opts fstype device [blocksize:..]\n"
27174 "\n"
27175 msgstr ""
27176
27177 # type: =head2
27178 #. type: =head2
27179 #: ../fish/guestfish-actions.pod:2923
27180 msgid "mkmountpoint"
27181 msgstr ""
27182
27183 # type: verbatim
27184 #. type: verbatim
27185 #: ../fish/guestfish-actions.pod:2925
27186 #, no-wrap
27187 msgid ""
27188 " mkmountpoint exemptpath\n"
27189 "\n"
27190 msgstr ""
27191
27192 # type: textblock
27193 #. type: textblock
27194 #: ../fish/guestfish-actions.pod:2927
27195 msgid ""
27196 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
27197 "to create extra mountpoints before mounting the first filesystem."
27198 msgstr ""
27199
27200 # type: textblock
27201 #. type: textblock
27202 #: ../fish/guestfish-actions.pod:2951
27203 msgid ""
27204 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27205 "unexpected errors if you try to mix these calls.  It is safest to manually "
27206 "unmount filesystems and remove mountpoints after use."
27207 msgstr ""
27208
27209 # type: textblock
27210 #. type: textblock
27211 #: ../fish/guestfish-actions.pod:2955
27212 msgid ""
27213 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27214 "for this to work for manual mountpoints, you must ensure that the innermost "
27215 "mountpoints have the longest pathnames, as in the example code above."
27216 msgstr ""
27217
27218 # type: textblock
27219 #. type: textblock
27220 #: ../fish/guestfish-actions.pod:2962
27221 msgid ""
27222 "Autosync [see L</set-autosync>, this is set by default on handles] means "
27223 "that L</umount-all> is called when the handle is closed which can also "
27224 "trigger these issues."
27225 msgstr ""
27226
27227 # type: =head2
27228 #. type: =head2
27229 #: ../fish/guestfish-actions.pod:2966
27230 msgid "mknod"
27231 msgstr ""
27232
27233 # type: verbatim
27234 #. type: verbatim
27235 #: ../fish/guestfish-actions.pod:2968
27236 #, no-wrap
27237 msgid ""
27238 " mknod mode devmajor devminor path\n"
27239 "\n"
27240 msgstr ""
27241
27242 # type: textblock
27243 #. type: textblock
27244 #: ../fish/guestfish-actions.pod:2978
27245 msgid ""
27246 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27247 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27248 "regular file).  These constants are available in the standard Linux header "
27249 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
27250 "wrappers around this command which bitwise OR in the appropriate constant "
27251 "for you."
27252 msgstr ""
27253
27254 # type: =head2
27255 #. type: =head2
27256 #: ../fish/guestfish-actions.pod:2988
27257 msgid "mknod-b"
27258 msgstr ""
27259
27260 # type: verbatim
27261 #. type: verbatim
27262 #: ../fish/guestfish-actions.pod:2990
27263 #, no-wrap
27264 msgid ""
27265 " mknod-b mode devmajor devminor path\n"
27266 "\n"
27267 msgstr ""
27268
27269 # type: textblock
27270 #. type: textblock
27271 #: ../fish/guestfish-actions.pod:2992
27272 msgid ""
27273 "This call creates a block device node called C<path> with mode C<mode> and "
27274 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27275 "wrapper around L</mknod>."
27276 msgstr ""
27277
27278 # type: =head2
27279 #. type: =head2
27280 #: ../fish/guestfish-actions.pod:2998
27281 msgid "mknod-c"
27282 msgstr ""
27283
27284 # type: verbatim
27285 #. type: verbatim
27286 #: ../fish/guestfish-actions.pod:3000
27287 #, no-wrap
27288 msgid ""
27289 " mknod-c mode devmajor devminor path\n"
27290 "\n"
27291 msgstr ""
27292
27293 # type: textblock
27294 #. type: textblock
27295 #: ../fish/guestfish-actions.pod:3002
27296 msgid ""
27297 "This call creates a char device node called C<path> with mode C<mode> and "
27298 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27299 "wrapper around L</mknod>."
27300 msgstr ""
27301
27302 # type: =head2
27303 #. type: =head2
27304 #: ../fish/guestfish-actions.pod:3008
27305 msgid "mkswap"
27306 msgstr ""
27307
27308 # type: verbatim
27309 #. type: verbatim
27310 #: ../fish/guestfish-actions.pod:3010
27311 #, no-wrap
27312 msgid ""
27313 " mkswap device\n"
27314 "\n"
27315 msgstr ""
27316
27317 # type: =head2
27318 #. type: =head2
27319 #: ../fish/guestfish-actions.pod:3014
27320 msgid "mkswap-L"
27321 msgstr ""
27322
27323 # type: verbatim
27324 #. type: verbatim
27325 #: ../fish/guestfish-actions.pod:3016
27326 #, no-wrap
27327 msgid ""
27328 " mkswap-L label device\n"
27329 "\n"
27330 msgstr ""
27331
27332 # type: =head2
27333 #. type: =head2
27334 #: ../fish/guestfish-actions.pod:3024
27335 msgid "mkswap-U"
27336 msgstr ""
27337
27338 # type: verbatim
27339 #. type: verbatim
27340 #: ../fish/guestfish-actions.pod:3026
27341 #, no-wrap
27342 msgid ""
27343 " mkswap-U uuid device\n"
27344 "\n"
27345 msgstr ""
27346
27347 # type: =head2
27348 #. type: =head2
27349 #: ../fish/guestfish-actions.pod:3030
27350 msgid "mkswap-file"
27351 msgstr ""
27352
27353 # type: verbatim
27354 #. type: verbatim
27355 #: ../fish/guestfish-actions.pod:3032
27356 #, no-wrap
27357 msgid ""
27358 " mkswap-file path\n"
27359 "\n"
27360 msgstr ""
27361
27362 # type: textblock
27363 #. type: textblock
27364 #: ../fish/guestfish-actions.pod:3036
27365 msgid ""
27366 "This command just writes a swap file signature to an existing file.  To "
27367 "create the file itself, use something like L</fallocate>."
27368 msgstr ""
27369
27370 # type: =head2
27371 #. type: =head2
27372 #: ../fish/guestfish-actions.pod:3039
27373 msgid "modprobe"
27374 msgstr ""
27375
27376 # type: verbatim
27377 #. type: verbatim
27378 #: ../fish/guestfish-actions.pod:3041
27379 #, no-wrap
27380 msgid ""
27381 " modprobe modulename\n"
27382 "\n"
27383 msgstr ""
27384
27385 # type: =head2
27386 #. type: =head2
27387 #: ../fish/guestfish-actions.pod:3048
27388 msgid "mount"
27389 msgstr ""
27390
27391 # type: verbatim
27392 #. type: verbatim
27393 #: ../fish/guestfish-actions.pod:3050
27394 #, no-wrap
27395 msgid ""
27396 " mount device mountpoint\n"
27397 "\n"
27398 msgstr ""
27399
27400 # type: textblock
27401 #. type: textblock
27402 #: ../fish/guestfish-actions.pod:3066
27403 msgid ""
27404 "B<Important note:> When you use this call, the filesystem options C<sync> "
27405 "and C<noatime> are set implicitly.  This was originally done because we "
27406 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27407 "very large negative performance impact and negligible effect on "
27408 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27409 "code that needs performance, and instead use L</mount-options> (use an empty "
27410 "string for the first parameter if you don't want any options)."
27411 msgstr ""
27412
27413 # type: =head2
27414 #. type: =head2
27415 #: ../fish/guestfish-actions.pod:3076
27416 msgid "mount-loop"
27417 msgstr ""
27418
27419 # type: verbatim
27420 #. type: verbatim
27421 #: ../fish/guestfish-actions.pod:3078
27422 #, no-wrap
27423 msgid ""
27424 " mount-loop file mountpoint\n"
27425 "\n"
27426 msgstr ""
27427
27428 # type: =head2
27429 #. type: =head2
27430 #: ../fish/guestfish-actions.pod:3084
27431 msgid "mount-options"
27432 msgstr ""
27433
27434 # type: verbatim
27435 #. type: verbatim
27436 #: ../fish/guestfish-actions.pod:3086
27437 #, no-wrap
27438 msgid ""
27439 " mount-options options device mountpoint\n"
27440 "\n"
27441 msgstr ""
27442
27443 # type: textblock
27444 #. type: textblock
27445 #: ../fish/guestfish-actions.pod:3088
27446 msgid ""
27447 "This is the same as the L</mount> command, but it allows you to set the "
27448 "mount options as for the L<mount(8)> I<-o> flag."
27449 msgstr ""
27450
27451 # type: =head2
27452 #. type: =head2
27453 #: ../fish/guestfish-actions.pod:3096
27454 msgid "mount-ro"
27455 msgstr ""
27456
27457 # type: verbatim
27458 #. type: verbatim
27459 #: ../fish/guestfish-actions.pod:3098
27460 #, no-wrap
27461 msgid ""
27462 " mount-ro device mountpoint\n"
27463 "\n"
27464 msgstr ""
27465
27466 # type: textblock
27467 #. type: textblock
27468 #: ../fish/guestfish-actions.pod:3100
27469 msgid ""
27470 "This is the same as the L</mount> command, but it mounts the filesystem with "
27471 "the read-only (I<-o ro>) flag."
27472 msgstr ""
27473
27474 # type: =head2
27475 #. type: =head2
27476 #: ../fish/guestfish-actions.pod:3103
27477 msgid "mount-vfs"
27478 msgstr ""
27479
27480 # type: verbatim
27481 #. type: verbatim
27482 #: ../fish/guestfish-actions.pod:3105
27483 #, no-wrap
27484 msgid ""
27485 " mount-vfs options vfstype device mountpoint\n"
27486 "\n"
27487 msgstr ""
27488
27489 # type: textblock
27490 #. type: textblock
27491 #: ../fish/guestfish-actions.pod:3107
27492 msgid ""
27493 "This is the same as the L</mount> command, but it allows you to set both the "
27494 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27495 msgstr ""
27496
27497 # type: =head2
27498 #. type: =head2
27499 #: ../fish/guestfish-actions.pod:3111
27500 msgid "mountpoints"
27501 msgstr ""
27502
27503 # type: verbatim
27504 #. type: verbatim
27505 #: ../fish/guestfish-actions.pod:3113
27506 #, no-wrap
27507 msgid ""
27508 " mountpoints\n"
27509 "\n"
27510 msgstr ""
27511
27512 # type: textblock
27513 #. type: textblock
27514 #: ../fish/guestfish-actions.pod:3115
27515 msgid ""
27516 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27517 "This one returns a hash table (map) of device name to directory where the "
27518 "device is mounted."
27519 msgstr ""
27520
27521 # type: =head2
27522 #. type: =head2
27523 #: ../fish/guestfish-actions.pod:3119
27524 msgid "mounts"
27525 msgstr ""
27526
27527 # type: verbatim
27528 #. type: verbatim
27529 #: ../fish/guestfish-actions.pod:3121
27530 #, no-wrap
27531 msgid ""
27532 " mounts\n"
27533 "\n"
27534 msgstr ""
27535
27536 # type: textblock
27537 #. type: textblock
27538 #: ../fish/guestfish-actions.pod:3128
27539 msgid "See also: L</mountpoints>"
27540 msgstr ""
27541
27542 # type: =head2
27543 #. type: =head2
27544 #: ../fish/guestfish-actions.pod:3130
27545 msgid "mv"
27546 msgstr ""
27547
27548 # type: verbatim
27549 #. type: verbatim
27550 #: ../fish/guestfish-actions.pod:3132
27551 #, no-wrap
27552 msgid ""
27553 " mv src dest\n"
27554 "\n"
27555 msgstr ""
27556
27557 # type: =head2
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:3137
27560 msgid "ntfs-3g-probe"
27561 msgstr ""
27562
27563 # type: verbatim
27564 #. type: verbatim
27565 #: ../fish/guestfish-actions.pod:3139
27566 #, no-wrap
27567 msgid ""
27568 " ntfs-3g-probe true|false device\n"
27569 "\n"
27570 msgstr ""
27571
27572 # type: =head2
27573 #. type: =head2
27574 #: ../fish/guestfish-actions.pod:3153
27575 msgid "ntfsresize"
27576 msgstr ""
27577
27578 # type: verbatim
27579 #. type: verbatim
27580 #: ../fish/guestfish-actions.pod:3155
27581 #, no-wrap
27582 msgid ""
27583 " ntfsresize device\n"
27584 "\n"
27585 msgstr ""
27586
27587 # type: =head2
27588 #. type: =head2
27589 #: ../fish/guestfish-actions.pod:3161
27590 msgid "ntfsresize-size"
27591 msgstr ""
27592
27593 # type: verbatim
27594 #. type: verbatim
27595 #: ../fish/guestfish-actions.pod:3163
27596 #, no-wrap
27597 msgid ""
27598 " ntfsresize-size device size\n"
27599 "\n"
27600 msgstr ""
27601
27602 # type: textblock
27603 #. type: textblock
27604 #: ../fish/guestfish-actions.pod:3165
27605 msgid ""
27606 "This command is the same as L</ntfsresize> except that it allows you to "
27607 "specify the new size (in bytes) explicitly."
27608 msgstr ""
27609
27610 # type: =head2
27611 #. type: =head2
27612 #: ../fish/guestfish-actions.pod:3168
27613 msgid "part-add"
27614 msgstr ""
27615
27616 # type: verbatim
27617 #. type: verbatim
27618 #: ../fish/guestfish-actions.pod:3170
27619 #, no-wrap
27620 msgid ""
27621 " part-add device prlogex startsect endsect\n"
27622 "\n"
27623 msgstr ""
27624
27625 # type: textblock
27626 #. type: textblock
27627 #: ../fish/guestfish-actions.pod:3172
27628 msgid ""
27629 "This command adds a partition to C<device>.  If there is no partition table "
27630 "on the device, call L</part-init> first."
27631 msgstr ""
27632
27633 # type: textblock
27634 #. type: textblock
27635 #: ../fish/guestfish-actions.pod:3184
27636 msgid ""
27637 "Creating a partition which covers the whole disk is not so easy.  Use L</"
27638 "part-disk> to do that."
27639 msgstr ""
27640
27641 # type: =head2
27642 #. type: =head2
27643 #: ../fish/guestfish-actions.pod:3187
27644 msgid "part-del"
27645 msgstr ""
27646
27647 # type: verbatim
27648 #. type: verbatim
27649 #: ../fish/guestfish-actions.pod:3189
27650 #, no-wrap
27651 msgid ""
27652 " part-del device partnum\n"
27653 "\n"
27654 msgstr ""
27655
27656 # type: =head2
27657 #. type: =head2
27658 #: ../fish/guestfish-actions.pod:3197
27659 msgid "part-disk"
27660 msgstr ""
27661
27662 # type: verbatim
27663 #. type: verbatim
27664 #: ../fish/guestfish-actions.pod:3199
27665 #, no-wrap
27666 msgid ""
27667 " part-disk device parttype\n"
27668 "\n"
27669 msgstr ""
27670
27671 # type: textblock
27672 #. type: textblock
27673 #: ../fish/guestfish-actions.pod:3201
27674 msgid ""
27675 "This command is simply a combination of L</part-init> followed by L</part-"
27676 "add> to create a single primary partition covering the whole disk."
27677 msgstr ""
27678
27679 # type: textblock
27680 #. type: textblock
27681 #: ../fish/guestfish-actions.pod:3205
27682 msgid ""
27683 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27684 "possible values are described in L</part-init>."
27685 msgstr ""
27686
27687 # type: =head2
27688 #. type: =head2
27689 #: ../fish/guestfish-actions.pod:3211
27690 msgid "part-get-bootable"
27691 msgstr ""
27692
27693 # type: verbatim
27694 #. type: verbatim
27695 #: ../fish/guestfish-actions.pod:3213
27696 #, no-wrap
27697 msgid ""
27698 " part-get-bootable device partnum\n"
27699 "\n"
27700 msgstr ""
27701
27702 # type: textblock
27703 #. type: textblock
27704 #: ../fish/guestfish-actions.pod:3218
27705 msgid "See also L</part-set-bootable>."
27706 msgstr ""
27707
27708 # type: =head2
27709 #. type: =head2
27710 #: ../fish/guestfish-actions.pod:3220
27711 msgid "part-get-mbr-id"
27712 msgstr ""
27713
27714 # type: verbatim
27715 #. type: verbatim
27716 #: ../fish/guestfish-actions.pod:3222
27717 #, no-wrap
27718 msgid ""
27719 " part-get-mbr-id device partnum\n"
27720 "\n"
27721 msgstr ""
27722
27723 # type: textblock
27724 #. type: textblock
27725 #: ../fish/guestfish-actions.pod:3227 ../fish/guestfish-actions.pod:3365
27726 msgid ""
27727 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27728 "undefined results for other partition table types (see L</part-get-"
27729 "parttype>)."
27730 msgstr ""
27731
27732 # type: =head2
27733 #. type: =head2
27734 #: ../fish/guestfish-actions.pod:3231
27735 msgid "part-get-parttype"
27736 msgstr ""
27737
27738 # type: verbatim
27739 #. type: verbatim
27740 #: ../fish/guestfish-actions.pod:3233
27741 #, no-wrap
27742 msgid ""
27743 " part-get-parttype device\n"
27744 "\n"
27745 msgstr ""
27746
27747 # type: textblock
27748 #. type: textblock
27749 #: ../fish/guestfish-actions.pod:3238
27750 msgid ""
27751 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27752 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27753 "possible, although unusual.  See L</part-init> for a full list."
27754 msgstr ""
27755
27756 # type: =head2
27757 #. type: =head2
27758 #: ../fish/guestfish-actions.pod:3243
27759 msgid "part-init"
27760 msgstr ""
27761
27762 # type: verbatim
27763 #. type: verbatim
27764 #: ../fish/guestfish-actions.pod:3245
27765 #, no-wrap
27766 msgid ""
27767 " part-init device parttype\n"
27768 "\n"
27769 msgstr ""
27770
27771 # type: textblock
27772 #. type: textblock
27773 #: ../fish/guestfish-actions.pod:3251
27774 msgid ""
27775 "Initially there are no partitions.  Following this, you should call L</part-"
27776 "add> for each partition required."
27777 msgstr ""
27778
27779 # type: =head2
27780 #. type: =head2
27781 #: ../fish/guestfish-actions.pod:3314
27782 msgid "part-list"
27783 msgstr ""
27784
27785 # type: verbatim
27786 #. type: verbatim
27787 #: ../fish/guestfish-actions.pod:3316
27788 #, no-wrap
27789 msgid ""
27790 " part-list device\n"
27791 "\n"
27792 msgstr ""
27793
27794 # type: textblock
27795 #. type: textblock
27796 #: ../fish/guestfish-actions.pod:3331
27797 msgid ""
27798 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27799 "the device's sector size, see L</blockdev-getss>."
27800 msgstr ""
27801
27802 # type: =head2
27803 #. type: =head2
27804 #: ../fish/guestfish-actions.pod:3344
27805 msgid "part-set-bootable"
27806 msgstr ""
27807
27808 # type: verbatim
27809 #. type: verbatim
27810 #: ../fish/guestfish-actions.pod:3346
27811 #, no-wrap
27812 msgid ""
27813 " part-set-bootable device partnum true|false\n"
27814 "\n"
27815 msgstr ""
27816
27817 # type: =head2
27818 #. type: =head2
27819 #: ../fish/guestfish-actions.pod:3355
27820 msgid "part-set-mbr-id"
27821 msgstr ""
27822
27823 # type: verbatim
27824 #. type: verbatim
27825 #: ../fish/guestfish-actions.pod:3357
27826 #, no-wrap
27827 msgid ""
27828 " part-set-mbr-id device partnum idbyte\n"
27829 "\n"
27830 msgstr ""
27831
27832 # type: =head2
27833 #. type: =head2
27834 #: ../fish/guestfish-actions.pod:3369
27835 msgid "part-set-name"
27836 msgstr ""
27837
27838 # type: verbatim
27839 #. type: verbatim
27840 #: ../fish/guestfish-actions.pod:3371
27841 #, no-wrap
27842 msgid ""
27843 " part-set-name device partnum name\n"
27844 "\n"
27845 msgstr ""
27846
27847 # type: =head2
27848 #. type: =head2
27849 #: ../fish/guestfish-actions.pod:3379
27850 msgid "part-to-dev"
27851 msgstr ""
27852
27853 # type: verbatim
27854 #. type: verbatim
27855 #: ../fish/guestfish-actions.pod:3381
27856 #, no-wrap
27857 msgid ""
27858 " part-to-dev partition\n"
27859 "\n"
27860 msgstr ""
27861
27862 # type: textblock
27863 #. type: textblock
27864 #: ../fish/guestfish-actions.pod:3387
27865 msgid ""
27866 "The named partition must exist, for example as a string returned from L</"
27867 "list-partitions>."
27868 msgstr ""
27869
27870 # type: =head2
27871 #. type: =head2
27872 #: ../fish/guestfish-actions.pod:3390
27873 msgid "ping-daemon"
27874 msgstr ""
27875
27876 # type: verbatim
27877 #. type: verbatim
27878 #: ../fish/guestfish-actions.pod:3392
27879 #, no-wrap
27880 msgid ""
27881 " ping-daemon\n"
27882 "\n"
27883 msgstr ""
27884
27885 # type: =head2
27886 #. type: =head2
27887 #: ../fish/guestfish-actions.pod:3399
27888 msgid "pread"
27889 msgstr ""
27890
27891 # type: verbatim
27892 #. type: verbatim
27893 #: ../fish/guestfish-actions.pod:3401
27894 #, no-wrap
27895 msgid ""
27896 " pread path count offset\n"
27897 "\n"
27898 msgstr ""
27899
27900 # type: textblock
27901 #. type: textblock
27902 #: ../fish/guestfish-actions.pod:3409
27903 msgid "See also L</pwrite>, L</pread-device>."
27904 msgstr ""
27905
27906 # type: =head2
27907 #. type: =head2
27908 #: ../fish/guestfish-actions.pod:3414
27909 msgid "pread-device"
27910 msgstr ""
27911
27912 # type: verbatim
27913 #. type: verbatim
27914 #: ../fish/guestfish-actions.pod:3416
27915 #, no-wrap
27916 msgid ""
27917 " pread-device device count offset\n"
27918 "\n"
27919 msgstr ""
27920
27921 # type: textblock
27922 #. type: textblock
27923 #: ../fish/guestfish-actions.pod:3424
27924 msgid "See also L</pread>."
27925 msgstr ""
27926
27927 # type: =head2
27928 #. type: =head2
27929 #: ../fish/guestfish-actions.pod:3429
27930 msgid "pvcreate"
27931 msgstr ""
27932
27933 # type: verbatim
27934 #. type: verbatim
27935 #: ../fish/guestfish-actions.pod:3431
27936 #, no-wrap
27937 msgid ""
27938 " pvcreate device\n"
27939 "\n"
27940 msgstr ""
27941
27942 # type: =head2
27943 #. type: =head2
27944 #: ../fish/guestfish-actions.pod:3437
27945 msgid "pvremove"
27946 msgstr ""
27947
27948 # type: verbatim
27949 #. type: verbatim
27950 #: ../fish/guestfish-actions.pod:3439
27951 #, no-wrap
27952 msgid ""
27953 " pvremove device\n"
27954 "\n"
27955 msgstr ""
27956
27957 # type: =head2
27958 #. type: =head2
27959 #: ../fish/guestfish-actions.pod:3448
27960 msgid "pvresize"
27961 msgstr ""
27962
27963 # type: verbatim
27964 #. type: verbatim
27965 #: ../fish/guestfish-actions.pod:3450
27966 #, no-wrap
27967 msgid ""
27968 " pvresize device\n"
27969 "\n"
27970 msgstr ""
27971
27972 # type: =head2
27973 #. type: =head2
27974 #: ../fish/guestfish-actions.pod:3455
27975 msgid "pvresize-size"
27976 msgstr ""
27977
27978 # type: verbatim
27979 #. type: verbatim
27980 #: ../fish/guestfish-actions.pod:3457
27981 #, no-wrap
27982 msgid ""
27983 " pvresize-size device size\n"
27984 "\n"
27985 msgstr ""
27986
27987 # type: textblock
27988 #. type: textblock
27989 #: ../fish/guestfish-actions.pod:3459
27990 msgid ""
27991 "This command is the same as L</pvresize> except that it allows you to "
27992 "specify the new size (in bytes) explicitly."
27993 msgstr ""
27994
27995 # type: =head2
27996 #. type: =head2
27997 #: ../fish/guestfish-actions.pod:3462
27998 msgid "pvs"
27999 msgstr ""
28000
28001 # type: verbatim
28002 #. type: verbatim
28003 #: ../fish/guestfish-actions.pod:3464
28004 #, no-wrap
28005 msgid ""
28006 " pvs\n"
28007 "\n"
28008 msgstr ""
28009
28010 # type: textblock
28011 #. type: textblock
28012 #: ../fish/guestfish-actions.pod:3472
28013 msgid "See also L</pvs-full>."
28014 msgstr ""
28015
28016 # type: =head2
28017 #. type: =head2
28018 #: ../fish/guestfish-actions.pod:3474
28019 msgid "pvs-full"
28020 msgstr ""
28021
28022 # type: verbatim
28023 #. type: verbatim
28024 #: ../fish/guestfish-actions.pod:3476
28025 #, no-wrap
28026 msgid ""
28027 " pvs-full\n"
28028 "\n"
28029 msgstr ""
28030
28031 # type: =head2
28032 #. type: =head2
28033 #: ../fish/guestfish-actions.pod:3481
28034 msgid "pvuuid"
28035 msgstr ""
28036
28037 # type: verbatim
28038 #. type: verbatim
28039 #: ../fish/guestfish-actions.pod:3483
28040 #, no-wrap
28041 msgid ""
28042 " pvuuid device\n"
28043 "\n"
28044 msgstr ""
28045
28046 # type: =head2
28047 #. type: =head2
28048 #: ../fish/guestfish-actions.pod:3487
28049 msgid "pwrite"
28050 msgstr ""
28051
28052 # type: verbatim
28053 #. type: verbatim
28054 #: ../fish/guestfish-actions.pod:3489
28055 #, no-wrap
28056 msgid ""
28057 " pwrite path content offset\n"
28058 "\n"
28059 msgstr ""
28060
28061 # type: textblock
28062 #. type: textblock
28063 #: ../fish/guestfish-actions.pod:3500
28064 msgid "See also L</pread>, L</pwrite-device>."
28065 msgstr ""
28066
28067 # type: =head2
28068 #. type: =head2
28069 #: ../fish/guestfish-actions.pod:3505
28070 msgid "pwrite-device"
28071 msgstr ""
28072
28073 # type: verbatim
28074 #. type: verbatim
28075 #: ../fish/guestfish-actions.pod:3507
28076 #, no-wrap
28077 msgid ""
28078 " pwrite-device device content offset\n"
28079 "\n"
28080 msgstr ""
28081
28082 # type: textblock
28083 #. type: textblock
28084 #: ../fish/guestfish-actions.pod:3517
28085 msgid "See also L</pwrite>."
28086 msgstr ""
28087
28088 # type: =head2
28089 #. type: =head2
28090 #: ../fish/guestfish-actions.pod:3522
28091 msgid "read-file"
28092 msgstr ""
28093
28094 # type: verbatim
28095 #. type: verbatim
28096 #: ../fish/guestfish-actions.pod:3524
28097 #, no-wrap
28098 msgid ""
28099 " read-file path\n"
28100 "\n"
28101 msgstr ""
28102
28103 # type: textblock
28104 #. type: textblock
28105 #: ../fish/guestfish-actions.pod:3529
28106 msgid ""
28107 "Unlike L</cat>, this function can correctly handle files that contain "
28108 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28109 "is limited in the total size of file that can be handled."
28110 msgstr ""
28111
28112 # type: =head2
28113 #. type: =head2
28114 #: ../fish/guestfish-actions.pod:3537
28115 msgid "read-lines"
28116 msgstr ""
28117
28118 # type: verbatim
28119 #. type: verbatim
28120 #: ../fish/guestfish-actions.pod:3539
28121 #, no-wrap
28122 msgid ""
28123 " read-lines path\n"
28124 "\n"
28125 msgstr ""
28126
28127 # type: textblock
28128 #. type: textblock
28129 #: ../fish/guestfish-actions.pod:3546
28130 msgid ""
28131 "Note that this function cannot correctly handle binary files (specifically, "
28132 "files containing C<\\0> character which is treated as end of line).  For "
28133 "those you need to use the L</read-file> function which has a more complex "
28134 "interface."
28135 msgstr ""
28136
28137 # type: =head2
28138 #. type: =head2
28139 #: ../fish/guestfish-actions.pod:3551
28140 msgid "readdir"
28141 msgstr ""
28142
28143 # type: verbatim
28144 #. type: verbatim
28145 #: ../fish/guestfish-actions.pod:3553
28146 #, no-wrap
28147 msgid ""
28148 " readdir dir\n"
28149 "\n"
28150 msgstr ""
28151
28152 # type: textblock
28153 #. type: textblock
28154 #: ../fish/guestfish-actions.pod:3605
28155 msgid ""
28156 "This function is primarily intended for use by programs.  To get a simple "
28157 "list of names, use L</ls>.  To get a printable directory for human "
28158 "consumption, use L</ll>."
28159 msgstr ""
28160
28161 # type: =head2
28162 #. type: =head2
28163 #: ../fish/guestfish-actions.pod:3609
28164 msgid "readlink"
28165 msgstr ""
28166
28167 # type: verbatim
28168 #. type: verbatim
28169 #: ../fish/guestfish-actions.pod:3611
28170 #, no-wrap
28171 msgid ""
28172 " readlink path\n"
28173 "\n"
28174 msgstr ""
28175
28176 # type: =head2
28177 #. type: =head2
28178 #: ../fish/guestfish-actions.pod:3615
28179 msgid "readlinklist"
28180 msgstr ""
28181
28182 # type: verbatim
28183 #. type: verbatim
28184 #: ../fish/guestfish-actions.pod:3617
28185 #, no-wrap
28186 msgid ""
28187 " readlinklist path 'names ...'\n"
28188 "\n"
28189 msgstr ""
28190
28191 # type: =head2
28192 #. type: =head2
28193 #: ../fish/guestfish-actions.pod:3641
28194 msgid "realpath"
28195 msgstr ""
28196
28197 # type: verbatim
28198 #. type: verbatim
28199 #: ../fish/guestfish-actions.pod:3643
28200 #, no-wrap
28201 msgid ""
28202 " realpath path\n"
28203 "\n"
28204 msgstr ""
28205
28206 # type: =head2
28207 #. type: =head2
28208 #: ../fish/guestfish-actions.pod:3648
28209 msgid "removexattr"
28210 msgstr ""
28211
28212 # type: verbatim
28213 #. type: verbatim
28214 #: ../fish/guestfish-actions.pod:3650
28215 #, no-wrap
28216 msgid ""
28217 " removexattr xattr path\n"
28218 "\n"
28219 msgstr ""
28220
28221 # type: textblock
28222 #. type: textblock
28223 #: ../fish/guestfish-actions.pod:3655
28224 msgid "See also: L</lremovexattr>, L<attr(5)>."
28225 msgstr ""
28226
28227 # type: =head2
28228 #. type: =head2
28229 #: ../fish/guestfish-actions.pod:3657
28230 msgid "resize2fs"
28231 msgstr ""
28232
28233 # type: verbatim
28234 #. type: verbatim
28235 #: ../fish/guestfish-actions.pod:3659
28236 #, no-wrap
28237 msgid ""
28238 " resize2fs device\n"
28239 "\n"
28240 msgstr ""
28241
28242 # type: textblock
28243 #. type: textblock
28244 #: ../fish/guestfish-actions.pod:3664
28245 msgid ""
28246 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
28247 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
28248 "gives an error about this and sometimes not.  In any case, it is always safe "
28249 "to call L</e2fsck-f> before calling this function."
28250 msgstr ""
28251
28252 #. type: =head2
28253 #: ../fish/guestfish-actions.pod:3670
28254 msgid "resize2fs-M"
28255 msgstr ""
28256
28257 #. type: verbatim
28258 #: ../fish/guestfish-actions.pod:3672
28259 #, no-wrap
28260 msgid ""
28261 " resize2fs-M device\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: textblock
28266 #: ../fish/guestfish-actions.pod:3674
28267 msgid ""
28268 "This command is the same as L</resize2fs>, but the filesystem is resized to "
28269 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
28270 "command."
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../fish/guestfish-actions.pod:3678
28275 msgid ""
28276 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
28277 "and read the C<Block size> and C<Block count> values.  These two numbers, "
28278 "multiplied together, give the resulting size of the minimal filesystem in "
28279 "bytes."
28280 msgstr ""
28281
28282 # type: =head2
28283 #. type: =head2
28284 #: ../fish/guestfish-actions.pod:3683
28285 msgid "resize2fs-size"
28286 msgstr ""
28287
28288 # type: verbatim
28289 #. type: verbatim
28290 #: ../fish/guestfish-actions.pod:3685
28291 #, no-wrap
28292 msgid ""
28293 " resize2fs-size device size\n"
28294 "\n"
28295 msgstr ""
28296
28297 # type: textblock
28298 #. type: textblock
28299 #: ../fish/guestfish-actions.pod:3687
28300 msgid ""
28301 "This command is the same as L</resize2fs> except that it allows you to "
28302 "specify the new size (in bytes) explicitly."
28303 msgstr ""
28304
28305 # type: =head2
28306 #. type: =head2
28307 #: ../fish/guestfish-actions.pod:3690
28308 msgid "rm"
28309 msgstr ""
28310
28311 # type: verbatim
28312 #. type: verbatim
28313 #: ../fish/guestfish-actions.pod:3692
28314 #, no-wrap
28315 msgid ""
28316 " rm path\n"
28317 "\n"
28318 msgstr ""
28319
28320 # type: =head2
28321 #. type: =head2
28322 #: ../fish/guestfish-actions.pod:3696
28323 msgid "rm-rf"
28324 msgstr ""
28325
28326 # type: verbatim
28327 #. type: verbatim
28328 #: ../fish/guestfish-actions.pod:3698
28329 #, no-wrap
28330 msgid ""
28331 " rm-rf path\n"
28332 "\n"
28333 msgstr ""
28334
28335 # type: =head2
28336 #. type: =head2
28337 #: ../fish/guestfish-actions.pod:3704
28338 msgid "rmdir"
28339 msgstr ""
28340
28341 # type: verbatim
28342 #. type: verbatim
28343 #: ../fish/guestfish-actions.pod:3706
28344 #, no-wrap
28345 msgid ""
28346 " rmdir path\n"
28347 "\n"
28348 msgstr ""
28349
28350 # type: =head2
28351 #. type: =head2
28352 #: ../fish/guestfish-actions.pod:3710
28353 msgid "rmmountpoint"
28354 msgstr ""
28355
28356 # type: verbatim
28357 #. type: verbatim
28358 #: ../fish/guestfish-actions.pod:3712
28359 #, no-wrap
28360 msgid ""
28361 " rmmountpoint exemptpath\n"
28362 "\n"
28363 msgstr ""
28364
28365 # type: textblock
28366 #. type: textblock
28367 #: ../fish/guestfish-actions.pod:3714
28368 msgid ""
28369 "This calls removes a mountpoint that was previously created with L</"
28370 "mkmountpoint>.  See L</mkmountpoint> for full details."
28371 msgstr ""
28372
28373 # type: =head2
28374 #. type: =head2
28375 #: ../fish/guestfish-actions.pod:3718
28376 msgid "scrub-device"
28377 msgstr ""
28378
28379 # type: verbatim
28380 #. type: verbatim
28381 #: ../fish/guestfish-actions.pod:3720
28382 #, no-wrap
28383 msgid ""
28384 " scrub-device device\n"
28385 "\n"
28386 msgstr ""
28387
28388 # type: =head2
28389 #. type: =head2
28390 #: ../fish/guestfish-actions.pod:3731
28391 msgid "scrub-file"
28392 msgstr ""
28393
28394 # type: verbatim
28395 #. type: verbatim
28396 #: ../fish/guestfish-actions.pod:3733
28397 #, no-wrap
28398 msgid ""
28399 " scrub-file file\n"
28400 "\n"
28401 msgstr ""
28402
28403 # type: =head2
28404 #. type: =head2
28405 #: ../fish/guestfish-actions.pod:3743
28406 msgid "scrub-freespace"
28407 msgstr ""
28408
28409 # type: verbatim
28410 #. type: verbatim
28411 #: ../fish/guestfish-actions.pod:3745
28412 #, no-wrap
28413 msgid ""
28414 " scrub-freespace dir\n"
28415 "\n"
28416 msgstr ""
28417
28418 # type: textblock
28419 #. type: textblock
28420 #: ../fish/guestfish-actions.pod:3747
28421 msgid ""
28422 "This command creates the directory C<dir> and then fills it with files until "
28423 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28424 "deletes them.  The intention is to scrub any free space on the partition "
28425 "containing C<dir>."
28426 msgstr ""
28427
28428 # type: =head2
28429 #. type: =head2
28430 #: ../fish/guestfish-actions.pod:3756
28431 msgid "set-append"
28432 msgstr ""
28433
28434 # type: =head2
28435 #. type: =head2
28436 #: ../fish/guestfish-actions.pod:3758
28437 msgid "append"
28438 msgstr ""
28439
28440 # type: verbatim
28441 #. type: verbatim
28442 #: ../fish/guestfish-actions.pod:3760
28443 #, no-wrap
28444 msgid ""
28445 " set-append append\n"
28446 "\n"
28447 msgstr ""
28448
28449 # type: =head2
28450 #. type: =head2
28451 #: ../fish/guestfish-actions.pod:3771
28452 msgid "set-autosync"
28453 msgstr ""
28454
28455 # type: =head2
28456 #. type: =head2
28457 #: ../fish/guestfish-actions.pod:3773
28458 msgid "autosync"
28459 msgstr ""
28460
28461 # type: verbatim
28462 #. type: verbatim
28463 #: ../fish/guestfish-actions.pod:3775
28464 #, no-wrap
28465 msgid ""
28466 " set-autosync true|false\n"
28467 "\n"
28468 msgstr ""
28469
28470 # type: textblock
28471 #. type: textblock
28472 #: ../fish/guestfish-actions.pod:3777
28473 msgid ""
28474 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
28475 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
28476 "closed (also if the program exits without closing handles)."
28477 msgstr ""
28478
28479 # type: =head2
28480 #. type: =head2
28481 #: ../fish/guestfish-actions.pod:3785
28482 msgid "set-direct"
28483 msgstr ""
28484
28485 # type: =head2
28486 #. type: =head2
28487 #: ../fish/guestfish-actions.pod:3787
28488 msgid "direct"
28489 msgstr ""
28490
28491 # type: verbatim
28492 #. type: verbatim
28493 #: ../fish/guestfish-actions.pod:3789
28494 #, no-wrap
28495 msgid ""
28496 " set-direct true|false\n"
28497 "\n"
28498 msgstr ""
28499
28500 # type: textblock
28501 #. type: textblock
28502 #: ../fish/guestfish-actions.pod:3795
28503 msgid ""
28504 "One consequence of this is that log messages aren't caught by the library "
28505 "and handled by L</set-log-message-callback>, but go straight to stdout."
28506 msgstr ""
28507
28508 # type: =head2
28509 #. type: =head2
28510 #: ../fish/guestfish-actions.pod:3804
28511 msgid "set-e2label"
28512 msgstr ""
28513
28514 # type: verbatim
28515 #. type: verbatim
28516 #: ../fish/guestfish-actions.pod:3806
28517 #, no-wrap
28518 msgid ""
28519 " set-e2label device label\n"
28520 "\n"
28521 msgstr ""
28522
28523 # type: textblock
28524 #. type: textblock
28525 #: ../fish/guestfish-actions.pod:3812
28526 msgid ""
28527 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28528 "label on a filesystem."
28529 msgstr ""
28530
28531 # type: =head2
28532 #. type: =head2
28533 #: ../fish/guestfish-actions.pod:3815
28534 msgid "set-e2uuid"
28535 msgstr ""
28536
28537 # type: verbatim
28538 #. type: verbatim
28539 #: ../fish/guestfish-actions.pod:3817
28540 #, no-wrap
28541 msgid ""
28542 " set-e2uuid device uuid\n"
28543 "\n"
28544 msgstr ""
28545
28546 # type: textblock
28547 #. type: textblock
28548 #: ../fish/guestfish-actions.pod:3824
28549 msgid ""
28550 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28551 "UUID of a filesystem."
28552 msgstr ""
28553
28554 # type: =head2
28555 #. type: =head2
28556 #: ../fish/guestfish-actions.pod:3827
28557 msgid "set-memsize"
28558 msgstr ""
28559
28560 # type: =head2
28561 #. type: =head2
28562 #: ../fish/guestfish-actions.pod:3829
28563 msgid "memsize"
28564 msgstr ""
28565
28566 # type: verbatim
28567 #. type: verbatim
28568 #: ../fish/guestfish-actions.pod:3831
28569 #, no-wrap
28570 msgid ""
28571 " set-memsize memsize\n"
28572 "\n"
28573 msgstr ""
28574
28575 # type: textblock
28576 #. type: textblock
28577 #: ../fish/guestfish-actions.pod:3833
28578 msgid ""
28579 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28580 "This only has any effect if called before L</launch>."
28581 msgstr ""
28582
28583 # type: =head2
28584 #. type: =head2
28585 #: ../fish/guestfish-actions.pod:3844
28586 msgid "set-network"
28587 msgstr ""
28588
28589 # type: =head2
28590 #. type: =head2
28591 #: ../fish/guestfish-actions.pod:3846
28592 msgid "network"
28593 msgstr ""
28594
28595 # type: verbatim
28596 #. type: verbatim
28597 #: ../fish/guestfish-actions.pod:3848
28598 #, no-wrap
28599 msgid ""
28600 " set-network true|false\n"
28601 "\n"
28602 msgstr ""
28603
28604 # type: textblock
28605 #. type: textblock
28606 #: ../fish/guestfish-actions.pod:3856
28607 msgid ""
28608 "You must call this before calling L</launch>, otherwise it has no effect."
28609 msgstr ""
28610
28611 # type: =head2
28612 #. type: =head2
28613 #: ../fish/guestfish-actions.pod:3859
28614 msgid "set-path"
28615 msgstr ""
28616
28617 # type: =head2
28618 #. type: =head2
28619 #: ../fish/guestfish-actions.pod:3861
28620 msgid "path"
28621 msgstr ""
28622
28623 # type: verbatim
28624 #. type: verbatim
28625 #: ../fish/guestfish-actions.pod:3863
28626 #, no-wrap
28627 msgid ""
28628 " set-path searchpath\n"
28629 "\n"
28630 msgstr ""
28631
28632 # type: =head2
28633 #. type: =head2
28634 #: ../fish/guestfish-actions.pod:3872
28635 msgid "set-qemu"
28636 msgstr ""
28637
28638 # type: =head2
28639 #. type: =head2
28640 #: ../fish/guestfish-actions.pod:3874
28641 msgid "qemu"
28642 msgstr ""
28643
28644 # type: verbatim
28645 #. type: verbatim
28646 #: ../fish/guestfish-actions.pod:3876
28647 #, no-wrap
28648 msgid ""
28649 " set-qemu qemu\n"
28650 "\n"
28651 msgstr ""
28652
28653 # type: =head2
28654 #. type: =head2
28655 #: ../fish/guestfish-actions.pod:3896
28656 msgid "set-recovery-proc"
28657 msgstr ""
28658
28659 # type: =head2
28660 #. type: =head2
28661 #: ../fish/guestfish-actions.pod:3898
28662 msgid "recovery-proc"
28663 msgstr ""
28664
28665 # type: verbatim
28666 #. type: verbatim
28667 #: ../fish/guestfish-actions.pod:3900
28668 #, no-wrap
28669 msgid ""
28670 " set-recovery-proc true|false\n"
28671 "\n"
28672 msgstr ""
28673
28674 # type: textblock
28675 #. type: textblock
28676 #: ../fish/guestfish-actions.pod:3902
28677 msgid ""
28678 "If this is called with the parameter C<false> then L</launch> does not "
28679 "create a recovery process.  The purpose of the recovery process is to stop "
28680 "runaway qemu processes in the case where the main program aborts abruptly."
28681 msgstr ""
28682
28683 # type: textblock
28684 #. type: textblock
28685 #: ../fish/guestfish-actions.pod:3907
28686 msgid ""
28687 "This only has any effect if called before L</launch>, and the default is "
28688 "true."
28689 msgstr ""
28690
28691 # type: =head2
28692 #. type: =head2
28693 #: ../fish/guestfish-actions.pod:3916
28694 msgid "set-selinux"
28695 msgstr ""
28696
28697 # type: =head2
28698 #. type: =head2
28699 #: ../fish/guestfish-actions.pod:3918
28700 msgid "selinux"
28701 msgstr ""
28702
28703 # type: verbatim
28704 #. type: verbatim
28705 #: ../fish/guestfish-actions.pod:3920
28706 #, no-wrap
28707 msgid ""
28708 " set-selinux true|false\n"
28709 "\n"
28710 msgstr ""
28711
28712 # type: =head2
28713 #. type: =head2
28714 #: ../fish/guestfish-actions.pod:3931
28715 msgid "set-trace"
28716 msgstr ""
28717
28718 # type: =head2
28719 #. type: =head2
28720 #: ../fish/guestfish-actions.pod:3933
28721 msgid "trace"
28722 msgstr ""
28723
28724 # type: verbatim
28725 #. type: verbatim
28726 #: ../fish/guestfish-actions.pod:3935
28727 #, no-wrap
28728 msgid ""
28729 " set-trace true|false\n"
28730 "\n"
28731 msgstr ""
28732
28733 # type: =head2
28734 #. type: =head2
28735 #: ../fish/guestfish-actions.pod:3951
28736 msgid "set-verbose"
28737 msgstr ""
28738
28739 # type: =head2
28740 #. type: =head2
28741 #: ../fish/guestfish-actions.pod:3953
28742 msgid "verbose"
28743 msgstr ""
28744
28745 # type: verbatim
28746 #. type: verbatim
28747 #: ../fish/guestfish-actions.pod:3955
28748 #, no-wrap
28749 msgid ""
28750 " set-verbose true|false\n"
28751 "\n"
28752 msgstr ""
28753
28754 # type: =head2
28755 #. type: =head2
28756 #: ../fish/guestfish-actions.pod:3962
28757 msgid "setcon"
28758 msgstr ""
28759
28760 # type: verbatim
28761 #. type: verbatim
28762 #: ../fish/guestfish-actions.pod:3964
28763 #, no-wrap
28764 msgid ""
28765 " setcon context\n"
28766 "\n"
28767 msgstr ""
28768
28769 # type: =head2
28770 #. type: =head2
28771 #: ../fish/guestfish-actions.pod:3971
28772 msgid "setxattr"
28773 msgstr ""
28774
28775 # type: verbatim
28776 #. type: verbatim
28777 #: ../fish/guestfish-actions.pod:3973
28778 #, no-wrap
28779 msgid ""
28780 " setxattr xattr val vallen path\n"
28781 "\n"
28782 msgstr ""
28783
28784 # type: textblock
28785 #. type: textblock
28786 #: ../fish/guestfish-actions.pod:3979
28787 msgid "See also: L</lsetxattr>, L<attr(5)>."
28788 msgstr ""
28789
28790 # type: =head2
28791 #. type: =head2
28792 #: ../fish/guestfish-actions.pod:3981
28793 msgid "sfdisk"
28794 msgstr ""
28795
28796 # type: verbatim
28797 #. type: verbatim
28798 #: ../fish/guestfish-actions.pod:3983
28799 #, no-wrap
28800 msgid ""
28801 " sfdisk device cyls heads sectors 'lines ...'\n"
28802 "\n"
28803 msgstr ""
28804
28805 # type: textblock
28806 #. type: textblock
28807 #: ../fish/guestfish-actions.pod:4005
28808 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28809 msgstr ""
28810
28811 # type: =head2
28812 #. type: =head2
28813 #: ../fish/guestfish-actions.pod:4011
28814 msgid "sfdiskM"
28815 msgstr ""
28816
28817 # type: verbatim
28818 #. type: verbatim
28819 #: ../fish/guestfish-actions.pod:4013
28820 #, no-wrap
28821 msgid ""
28822 " sfdiskM device 'lines ...'\n"
28823 "\n"
28824 msgstr ""
28825
28826 # type: textblock
28827 #. type: textblock
28828 #: ../fish/guestfish-actions.pod:4015
28829 msgid ""
28830 "This is a simplified interface to the L</sfdisk> command, where partition "
28831 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28832 "you don't need to specify the cyls, heads and sectors parameters which were "
28833 "rarely if ever used anyway."
28834 msgstr ""
28835
28836 # type: textblock
28837 #. type: textblock
28838 #: ../fish/guestfish-actions.pod:4021
28839 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28840 msgstr ""
28841
28842 # type: =head2
28843 #. type: =head2
28844 #: ../fish/guestfish-actions.pod:4027
28845 msgid "sfdisk-N"
28846 msgstr ""
28847
28848 # type: verbatim
28849 #. type: verbatim
28850 #: ../fish/guestfish-actions.pod:4029
28851 #, no-wrap
28852 msgid ""
28853 " sfdisk-N device partnum cyls heads sectors line\n"
28854 "\n"
28855 msgstr ""
28856
28857 # type: textblock
28858 #. type: textblock
28859 #: ../fish/guestfish-actions.pod:4034
28860 msgid ""
28861 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28862 "cyls/heads/sectors parameters."
28863 msgstr ""
28864
28865 # type: textblock
28866 #. type: textblock
28867 #: ../fish/guestfish-actions.pod:4037
28868 msgid "See also: L</part-add>"
28869 msgstr ""
28870
28871 # type: =head2
28872 #. type: =head2
28873 #: ../fish/guestfish-actions.pod:4042
28874 msgid "sfdisk-disk-geometry"
28875 msgstr ""
28876
28877 # type: verbatim
28878 #. type: verbatim
28879 #: ../fish/guestfish-actions.pod:4044
28880 #, no-wrap
28881 msgid ""
28882 " sfdisk-disk-geometry device\n"
28883 "\n"
28884 msgstr ""
28885
28886 # type: textblock
28887 #. type: textblock
28888 #: ../fish/guestfish-actions.pod:4046
28889 msgid ""
28890 "This displays the disk geometry of C<device> read from the partition table.  "
28891 "Especially in the case where the underlying block device has been resized, "
28892 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
28893 "kernel-geometry>)."
28894 msgstr ""
28895
28896 # type: =head2
28897 #. type: =head2
28898 #: ../fish/guestfish-actions.pod:4054
28899 msgid "sfdisk-kernel-geometry"
28900 msgstr ""
28901
28902 # type: verbatim
28903 #. type: verbatim
28904 #: ../fish/guestfish-actions.pod:4056
28905 #, no-wrap
28906 msgid ""
28907 " sfdisk-kernel-geometry device\n"
28908 "\n"
28909 msgstr ""
28910
28911 # type: =head2
28912 #. type: =head2
28913 #: ../fish/guestfish-actions.pod:4063
28914 msgid "sfdisk-l"
28915 msgstr ""
28916
28917 # type: verbatim
28918 #. type: verbatim
28919 #: ../fish/guestfish-actions.pod:4065
28920 #, no-wrap
28921 msgid ""
28922 " sfdisk-l device\n"
28923 "\n"
28924 msgstr ""
28925
28926 # type: textblock
28927 #. type: textblock
28928 #: ../fish/guestfish-actions.pod:4071
28929 msgid "See also: L</part-list>"
28930 msgstr ""
28931
28932 # type: =head2
28933 #. type: =head2
28934 #: ../fish/guestfish-actions.pod:4073
28935 msgid "sh"
28936 msgstr ""
28937
28938 # type: verbatim
28939 #. type: verbatim
28940 #: ../fish/guestfish-actions.pod:4075
28941 #, no-wrap
28942 msgid ""
28943 " sh command\n"
28944 "\n"
28945 msgstr ""
28946
28947 # type: textblock
28948 #. type: textblock
28949 #: ../fish/guestfish-actions.pod:4080
28950 msgid "This is like L</command>, but passes the command to:"
28951 msgstr ""
28952
28953 # type: textblock
28954 #. type: textblock
28955 #: ../fish/guestfish-actions.pod:4088
28956 msgid "All the provisos about L</command> apply to this call."
28957 msgstr ""
28958
28959 # type: =head2
28960 #. type: =head2
28961 #: ../fish/guestfish-actions.pod:4090
28962 msgid "sh-lines"
28963 msgstr ""
28964
28965 # type: verbatim
28966 #. type: verbatim
28967 #: ../fish/guestfish-actions.pod:4092
28968 #, no-wrap
28969 msgid ""
28970 " sh-lines command\n"
28971 "\n"
28972 msgstr ""
28973
28974 # type: textblock
28975 #. type: textblock
28976 #: ../fish/guestfish-actions.pod:4094
28977 msgid "This is the same as L</sh>, but splits the result into a list of lines."
28978 msgstr ""
28979
28980 # type: textblock
28981 #. type: textblock
28982 #: ../fish/guestfish-actions.pod:4097
28983 msgid "See also: L</command-lines>"
28984 msgstr ""
28985
28986 # type: =head2
28987 #. type: =head2
28988 #: ../fish/guestfish-actions.pod:4099
28989 msgid "sleep"
28990 msgstr ""
28991
28992 # type: verbatim
28993 #. type: verbatim
28994 #: ../fish/guestfish-actions.pod:4101
28995 #, no-wrap
28996 msgid ""
28997 " sleep secs\n"
28998 "\n"
28999 msgstr ""
29000
29001 # type: =head2
29002 #. type: =head2
29003 #: ../fish/guestfish-actions.pod:4105
29004 msgid "stat"
29005 msgstr ""
29006
29007 # type: verbatim
29008 #. type: verbatim
29009 #: ../fish/guestfish-actions.pod:4107
29010 #, no-wrap
29011 msgid ""
29012 " stat path\n"
29013 "\n"
29014 msgstr ""
29015
29016 # type: =head2
29017 #. type: =head2
29018 #: ../fish/guestfish-actions.pod:4113
29019 msgid "statvfs"
29020 msgstr ""
29021
29022 # type: verbatim
29023 #. type: verbatim
29024 #: ../fish/guestfish-actions.pod:4115
29025 #, no-wrap
29026 msgid ""
29027 " statvfs path\n"
29028 "\n"
29029 msgstr ""
29030
29031 # type: =head2
29032 #. type: =head2
29033 #: ../fish/guestfish-actions.pod:4123
29034 msgid "strings"
29035 msgstr ""
29036
29037 # type: verbatim
29038 #. type: verbatim
29039 #: ../fish/guestfish-actions.pod:4125
29040 #, no-wrap
29041 msgid ""
29042 " strings path\n"
29043 "\n"
29044 msgstr ""
29045
29046 # type: =head2
29047 #. type: =head2
29048 #: ../fish/guestfish-actions.pod:4133
29049 msgid "strings-e"
29050 msgstr ""
29051
29052 # type: verbatim
29053 #. type: verbatim
29054 #: ../fish/guestfish-actions.pod:4135
29055 #, no-wrap
29056 msgid ""
29057 " strings-e encoding path\n"
29058 "\n"
29059 msgstr ""
29060
29061 # type: textblock
29062 #. type: textblock
29063 #: ../fish/guestfish-actions.pod:4137
29064 msgid ""
29065 "This is like the L</strings> command, but allows you to specify the encoding "
29066 "of strings that are looked for in the source file C<path>."
29067 msgstr ""
29068
29069 # type: textblock
29070 #. type: textblock
29071 #: ../fish/guestfish-actions.pod:4147
29072 msgid ""
29073 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29074 "ISO-8859-X (this is what L</strings> uses)."
29075 msgstr ""
29076
29077 # type: =head2
29078 #. type: =head2
29079 #: ../fish/guestfish-actions.pod:4179
29080 msgid "swapoff-device"
29081 msgstr ""
29082
29083 # type: verbatim
29084 #. type: verbatim
29085 #: ../fish/guestfish-actions.pod:4181
29086 #, no-wrap
29087 msgid ""
29088 " swapoff-device device\n"
29089 "\n"
29090 msgstr ""
29091
29092 # type: textblock
29093 #. type: textblock
29094 #: ../fish/guestfish-actions.pod:4183
29095 msgid ""
29096 "This command disables the libguestfs appliance swap device or partition "
29097 "named C<device>.  See L</swapon-device>."
29098 msgstr ""
29099
29100 # type: =head2
29101 #. type: =head2
29102 #: ../fish/guestfish-actions.pod:4187
29103 msgid "swapoff-file"
29104 msgstr ""
29105
29106 # type: verbatim
29107 #. type: verbatim
29108 #: ../fish/guestfish-actions.pod:4189
29109 #, no-wrap
29110 msgid ""
29111 " swapoff-file file\n"
29112 "\n"
29113 msgstr ""
29114
29115 # type: =head2
29116 #. type: =head2
29117 #: ../fish/guestfish-actions.pod:4193
29118 msgid "swapoff-label"
29119 msgstr ""
29120
29121 # type: verbatim
29122 #. type: verbatim
29123 #: ../fish/guestfish-actions.pod:4195
29124 #, no-wrap
29125 msgid ""
29126 " swapoff-label label\n"
29127 "\n"
29128 msgstr ""
29129
29130 # type: =head2
29131 #. type: =head2
29132 #: ../fish/guestfish-actions.pod:4200
29133 msgid "swapoff-uuid"
29134 msgstr ""
29135
29136 # type: verbatim
29137 #. type: verbatim
29138 #: ../fish/guestfish-actions.pod:4202
29139 #, no-wrap
29140 msgid ""
29141 " swapoff-uuid uuid\n"
29142 "\n"
29143 msgstr ""
29144
29145 # type: =head2
29146 #. type: =head2
29147 #: ../fish/guestfish-actions.pod:4207
29148 msgid "swapon-device"
29149 msgstr ""
29150
29151 # type: verbatim
29152 #. type: verbatim
29153 #: ../fish/guestfish-actions.pod:4209
29154 #, no-wrap
29155 msgid ""
29156 " swapon-device device\n"
29157 "\n"
29158 msgstr ""
29159
29160 # type: textblock
29161 #. type: textblock
29162 #: ../fish/guestfish-actions.pod:4211
29163 msgid ""
29164 "This command enables the libguestfs appliance to use the swap device or "
29165 "partition named C<device>.  The increased memory is made available for all "
29166 "commands, for example those run using L</command> or L</sh>."
29167 msgstr ""
29168
29169 # type: =head2
29170 #. type: =head2
29171 #: ../fish/guestfish-actions.pod:4223
29172 msgid "swapon-file"
29173 msgstr ""
29174
29175 # type: verbatim
29176 #. type: verbatim
29177 #: ../fish/guestfish-actions.pod:4225
29178 #, no-wrap
29179 msgid ""
29180 " swapon-file file\n"
29181 "\n"
29182 msgstr ""
29183
29184 # type: textblock
29185 #. type: textblock
29186 #: ../fish/guestfish-actions.pod:4227
29187 msgid ""
29188 "This command enables swap to a file.  See L</swapon-device> for other notes."
29189 msgstr ""
29190
29191 # type: =head2
29192 #. type: =head2
29193 #: ../fish/guestfish-actions.pod:4230
29194 msgid "swapon-label"
29195 msgstr ""
29196
29197 # type: verbatim
29198 #. type: verbatim
29199 #: ../fish/guestfish-actions.pod:4232
29200 #, no-wrap
29201 msgid ""
29202 " swapon-label label\n"
29203 "\n"
29204 msgstr ""
29205
29206 # type: textblock
29207 #. type: textblock
29208 #: ../fish/guestfish-actions.pod:4234
29209 msgid ""
29210 "This command enables swap to a labeled swap partition.  See L</swapon-"
29211 "device> for other notes."
29212 msgstr ""
29213
29214 # type: =head2
29215 #. type: =head2
29216 #: ../fish/guestfish-actions.pod:4237
29217 msgid "swapon-uuid"
29218 msgstr ""
29219
29220 # type: verbatim
29221 #. type: verbatim
29222 #: ../fish/guestfish-actions.pod:4239
29223 #, no-wrap
29224 msgid ""
29225 " swapon-uuid uuid\n"
29226 "\n"
29227 msgstr ""
29228
29229 # type: textblock
29230 #. type: textblock
29231 #: ../fish/guestfish-actions.pod:4241
29232 msgid ""
29233 "This command enables swap to a swap partition with the given UUID.  See L</"
29234 "swapon-device> for other notes."
29235 msgstr ""
29236
29237 # type: =head2
29238 #. type: =head2
29239 #: ../fish/guestfish-actions.pod:4244
29240 msgid "sync"
29241 msgstr ""
29242
29243 # type: verbatim
29244 #. type: verbatim
29245 #: ../fish/guestfish-actions.pod:4246
29246 #, no-wrap
29247 msgid ""
29248 " sync\n"
29249 "\n"
29250 msgstr ""
29251
29252 # type: =head2
29253 #. type: =head2
29254 #: ../fish/guestfish-actions.pod:4254
29255 msgid "tail"
29256 msgstr ""
29257
29258 # type: verbatim
29259 #. type: verbatim
29260 #: ../fish/guestfish-actions.pod:4256
29261 #, no-wrap
29262 msgid ""
29263 " tail path\n"
29264 "\n"
29265 msgstr ""
29266
29267 # type: =head2
29268 #. type: =head2
29269 #: ../fish/guestfish-actions.pod:4264
29270 msgid "tail-n"
29271 msgstr ""
29272
29273 # type: verbatim
29274 #. type: verbatim
29275 #: ../fish/guestfish-actions.pod:4266
29276 #, no-wrap
29277 msgid ""
29278 " tail-n nrlines path\n"
29279 "\n"
29280 msgstr ""
29281
29282 # type: =head2
29283 #. type: =head2
29284 #: ../fish/guestfish-actions.pod:4279
29285 msgid "tar-in"
29286 msgstr ""
29287
29288 # type: verbatim
29289 #. type: verbatim
29290 #: ../fish/guestfish-actions.pod:4281
29291 #, no-wrap
29292 msgid ""
29293 " tar-in (tarfile|-) directory\n"
29294 "\n"
29295 msgstr ""
29296
29297 # type: textblock
29298 #. type: textblock
29299 #: ../fish/guestfish-actions.pod:4286
29300 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
29301 msgstr ""
29302
29303 # type: =head2
29304 #. type: =head2
29305 #: ../fish/guestfish-actions.pod:4291
29306 msgid "tar-out"
29307 msgstr ""
29308
29309 # type: verbatim
29310 #. type: verbatim
29311 #: ../fish/guestfish-actions.pod:4293
29312 #, no-wrap
29313 msgid ""
29314 " tar-out directory (tarfile|-)\n"
29315 "\n"
29316 msgstr ""
29317
29318 # type: textblock
29319 #. type: textblock
29320 #: ../fish/guestfish-actions.pod:4298
29321 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29322 msgstr ""
29323
29324 # type: =head2
29325 #. type: =head2
29326 #: ../fish/guestfish-actions.pod:4303
29327 msgid "tgz-in"
29328 msgstr ""
29329
29330 # type: verbatim
29331 #. type: verbatim
29332 #: ../fish/guestfish-actions.pod:4305
29333 #, no-wrap
29334 msgid ""
29335 " tgz-in (tarball|-) directory\n"
29336 "\n"
29337 msgstr ""
29338
29339 # type: textblock
29340 #. type: textblock
29341 #: ../fish/guestfish-actions.pod:4310
29342 msgid "To upload an uncompressed tarball, use L</tar-in>."
29343 msgstr ""
29344
29345 # type: =head2
29346 #. type: =head2
29347 #: ../fish/guestfish-actions.pod:4314
29348 msgid "tgz-out"
29349 msgstr ""
29350
29351 # type: verbatim
29352 #. type: verbatim
29353 #: ../fish/guestfish-actions.pod:4316
29354 #, no-wrap
29355 msgid ""
29356 " tgz-out directory (tarball|-)\n"
29357 "\n"
29358 msgstr ""
29359
29360 # type: textblock
29361 #. type: textblock
29362 #: ../fish/guestfish-actions.pod:4321
29363 msgid "To download an uncompressed tarball, use L</tar-out>."
29364 msgstr ""
29365
29366 # type: =head2
29367 #. type: =head2
29368 #: ../fish/guestfish-actions.pod:4325
29369 msgid "touch"
29370 msgstr ""
29371
29372 # type: verbatim
29373 #. type: verbatim
29374 #: ../fish/guestfish-actions.pod:4327
29375 #, no-wrap
29376 msgid ""
29377 " touch path\n"
29378 "\n"
29379 msgstr ""
29380
29381 # type: =head2
29382 #. type: =head2
29383 #: ../fish/guestfish-actions.pod:4336
29384 msgid "truncate"
29385 msgstr ""
29386
29387 # type: verbatim
29388 #. type: verbatim
29389 #: ../fish/guestfish-actions.pod:4338
29390 #, no-wrap
29391 msgid ""
29392 " truncate path\n"
29393 "\n"
29394 msgstr ""
29395
29396 # type: =head2
29397 #. type: =head2
29398 #: ../fish/guestfish-actions.pod:4343
29399 msgid "truncate-size"
29400 msgstr ""
29401
29402 # type: verbatim
29403 #. type: verbatim
29404 #: ../fish/guestfish-actions.pod:4345
29405 #, no-wrap
29406 msgid ""
29407 " truncate-size path size\n"
29408 "\n"
29409 msgstr ""
29410
29411 # type: textblock
29412 #. type: textblock
29413 #: ../fish/guestfish-actions.pod:4350
29414 msgid ""
29415 "If the current file size is less than C<size> then the file is extended to "
29416 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29417 "blocks are not allocated for the file until you write to it).  To create a "
29418 "non-sparse file of zeroes, use L</fallocate64> instead."
29419 msgstr ""
29420
29421 # type: =head2
29422 #. type: =head2
29423 #: ../fish/guestfish-actions.pod:4356
29424 msgid "tune2fs-l"
29425 msgstr ""
29426
29427 # type: verbatim
29428 #. type: verbatim
29429 #: ../fish/guestfish-actions.pod:4358
29430 #, no-wrap
29431 msgid ""
29432 " tune2fs-l device\n"
29433 "\n"
29434 msgstr ""
29435
29436 # type: =head2
29437 #. type: =head2
29438 #: ../fish/guestfish-actions.pod:4368
29439 msgid "txz-in"
29440 msgstr ""
29441
29442 # type: verbatim
29443 #. type: verbatim
29444 #: ../fish/guestfish-actions.pod:4370
29445 #, no-wrap
29446 msgid ""
29447 " txz-in (tarball|-) directory\n"
29448 "\n"
29449 msgstr ""
29450
29451 # type: =head2
29452 #. type: =head2
29453 #: ../fish/guestfish-actions.pod:4377
29454 msgid "txz-out"
29455 msgstr ""
29456
29457 # type: verbatim
29458 #. type: verbatim
29459 #: ../fish/guestfish-actions.pod:4379
29460 #, no-wrap
29461 msgid ""
29462 " txz-out directory (tarball|-)\n"
29463 "\n"
29464 msgstr ""
29465
29466 # type: =head2
29467 #. type: =head2
29468 #: ../fish/guestfish-actions.pod:4386
29469 msgid "umask"
29470 msgstr ""
29471
29472 # type: verbatim
29473 #. type: verbatim
29474 #: ../fish/guestfish-actions.pod:4388
29475 #, no-wrap
29476 msgid ""
29477 " umask mask\n"
29478 "\n"
29479 msgstr ""
29480
29481 # type: textblock
29482 #. type: textblock
29483 #: ../fish/guestfish-actions.pod:4402
29484 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29485 msgstr ""
29486
29487 # type: =head2
29488 #. type: =head2
29489 #: ../fish/guestfish-actions.pod:4407
29490 msgid "umount"
29491 msgstr ""
29492
29493 # type: =head2
29494 #. type: =head2
29495 #: ../fish/guestfish-actions.pod:4409
29496 msgid "unmount"
29497 msgstr ""
29498
29499 # type: verbatim
29500 #. type: verbatim
29501 #: ../fish/guestfish-actions.pod:4411
29502 #, no-wrap
29503 msgid ""
29504 " umount pathordevice\n"
29505 "\n"
29506 msgstr ""
29507
29508 # type: =head2
29509 #. type: =head2
29510 #: ../fish/guestfish-actions.pod:4417
29511 msgid "umount-all"
29512 msgstr ""
29513
29514 # type: =head2
29515 #. type: =head2
29516 #: ../fish/guestfish-actions.pod:4419
29517 msgid "unmount-all"
29518 msgstr ""
29519
29520 # type: verbatim
29521 #. type: verbatim
29522 #: ../fish/guestfish-actions.pod:4421
29523 #, no-wrap
29524 msgid ""
29525 " umount-all\n"
29526 "\n"
29527 msgstr ""
29528
29529 # type: =head2
29530 #. type: =head2
29531 #: ../fish/guestfish-actions.pod:4427
29532 msgid "upload"
29533 msgstr ""
29534
29535 # type: verbatim
29536 #. type: verbatim
29537 #: ../fish/guestfish-actions.pod:4429
29538 #, no-wrap
29539 msgid ""
29540 " upload (filename|-) remotefilename\n"
29541 "\n"
29542 msgstr ""
29543
29544 # type: textblock
29545 #. type: textblock
29546 #: ../fish/guestfish-actions.pod:4436
29547 msgid "See also L</download>."
29548 msgstr ""
29549
29550 # type: =head2
29551 #. type: =head2
29552 #: ../fish/guestfish-actions.pod:4440
29553 msgid "upload-offset"
29554 msgstr ""
29555
29556 # type: verbatim
29557 #. type: verbatim
29558 #: ../fish/guestfish-actions.pod:4442
29559 #, no-wrap
29560 msgid ""
29561 " upload-offset (filename|-) remotefilename offset\n"
29562 "\n"
29563 msgstr ""
29564
29565 # type: textblock
29566 #. type: textblock
29567 #: ../fish/guestfish-actions.pod:4454
29568 msgid ""
29569 "Note that there is no limit on the amount of data that can be uploaded with "
29570 "this call, unlike with L</pwrite>, and this call always writes the full "
29571 "amount unless an error occurs."
29572 msgstr ""
29573
29574 # type: textblock
29575 #. type: textblock
29576 #: ../fish/guestfish-actions.pod:4459
29577 msgid "See also L</upload>, L</pwrite>."
29578 msgstr ""
29579
29580 # type: =head2
29581 #. type: =head2
29582 #: ../fish/guestfish-actions.pod:4463
29583 msgid "utimens"
29584 msgstr ""
29585
29586 # type: verbatim
29587 #. type: verbatim
29588 #: ../fish/guestfish-actions.pod:4465
29589 #, no-wrap
29590 msgid ""
29591 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29592 "\n"
29593 msgstr ""
29594
29595 # type: =head2
29596 #. type: =head2
29597 #: ../fish/guestfish-actions.pod:4484
29598 msgid "version"
29599 msgstr ""
29600
29601 # type: verbatim
29602 #. type: verbatim
29603 #: ../fish/guestfish-actions.pod:4486
29604 #, no-wrap
29605 msgid ""
29606 " version\n"
29607 "\n"
29608 msgstr ""
29609
29610 # type: textblock
29611 #. type: textblock
29612 #: ../fish/guestfish-actions.pod:4513
29613 msgid ""
29614 "I<Note:> Don't use this call to test for availability of features.  In "
29615 "enterprise distributions we backport features from later versions into "
29616 "earlier versions, making this an unreliable way to test for features.  Use "
29617 "L</available> instead."
29618 msgstr ""
29619
29620 # type: =head2
29621 #. type: =head2
29622 #: ../fish/guestfish-actions.pod:4519
29623 msgid "vfs-label"
29624 msgstr ""
29625
29626 # type: verbatim
29627 #. type: verbatim
29628 #: ../fish/guestfish-actions.pod:4521
29629 #, no-wrap
29630 msgid ""
29631 " vfs-label device\n"
29632 "\n"
29633 msgstr ""
29634
29635 # type: textblock
29636 #. type: textblock
29637 #: ../fish/guestfish-actions.pod:4528
29638 msgid "To find a filesystem from the label, use L</findfs-label>."
29639 msgstr ""
29640
29641 # type: =head2
29642 #. type: =head2
29643 #: ../fish/guestfish-actions.pod:4530
29644 msgid "vfs-type"
29645 msgstr ""
29646
29647 # type: verbatim
29648 #. type: verbatim
29649 #: ../fish/guestfish-actions.pod:4532
29650 #, no-wrap
29651 msgid ""
29652 " vfs-type device\n"
29653 "\n"
29654 msgstr ""
29655
29656 # type: =head2
29657 #. type: =head2
29658 #: ../fish/guestfish-actions.pod:4542
29659 msgid "vfs-uuid"
29660 msgstr ""
29661
29662 # type: verbatim
29663 #. type: verbatim
29664 #: ../fish/guestfish-actions.pod:4544
29665 #, no-wrap
29666 msgid ""
29667 " vfs-uuid device\n"
29668 "\n"
29669 msgstr ""
29670
29671 # type: textblock
29672 #. type: textblock
29673 #: ../fish/guestfish-actions.pod:4551
29674 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29675 msgstr ""
29676
29677 # type: =head2
29678 #. type: =head2
29679 #: ../fish/guestfish-actions.pod:4553
29680 msgid "vg-activate"
29681 msgstr ""
29682
29683 # type: verbatim
29684 #. type: verbatim
29685 #: ../fish/guestfish-actions.pod:4555
29686 #, no-wrap
29687 msgid ""
29688 " vg-activate true|false 'volgroups ...'\n"
29689 "\n"
29690 msgstr ""
29691
29692 # type: =head2
29693 #. type: =head2
29694 #: ../fish/guestfish-actions.pod:4568
29695 msgid "vg-activate-all"
29696 msgstr ""
29697
29698 # type: verbatim
29699 #. type: verbatim
29700 #: ../fish/guestfish-actions.pod:4570
29701 #, no-wrap
29702 msgid ""
29703 " vg-activate-all true|false\n"
29704 "\n"
29705 msgstr ""
29706
29707 # type: =head2
29708 #. type: =head2
29709 #: ../fish/guestfish-actions.pod:4580
29710 msgid "vgcreate"
29711 msgstr ""
29712
29713 # type: verbatim
29714 #. type: verbatim
29715 #: ../fish/guestfish-actions.pod:4582
29716 #, no-wrap
29717 msgid ""
29718 " vgcreate volgroup 'physvols ...'\n"
29719 "\n"
29720 msgstr ""
29721
29722 # type: =head2
29723 #. type: =head2
29724 #: ../fish/guestfish-actions.pod:4587
29725 msgid "vglvuuids"
29726 msgstr ""
29727
29728 # type: verbatim
29729 #. type: verbatim
29730 #: ../fish/guestfish-actions.pod:4589
29731 #, no-wrap
29732 msgid ""
29733 " vglvuuids vgname\n"
29734 "\n"
29735 msgstr ""
29736
29737 # type: textblock
29738 #. type: textblock
29739 #: ../fish/guestfish-actions.pod:4594
29740 msgid ""
29741 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29742 "logical volumes and volume groups."
29743 msgstr ""
29744
29745 # type: textblock
29746 #. type: textblock
29747 #: ../fish/guestfish-actions.pod:4597
29748 msgid "See also L</vgpvuuids>."
29749 msgstr ""
29750
29751 # type: =head2
29752 #. type: =head2
29753 #: ../fish/guestfish-actions.pod:4599
29754 msgid "vgpvuuids"
29755 msgstr ""
29756
29757 # type: verbatim
29758 #. type: verbatim
29759 #: ../fish/guestfish-actions.pod:4601
29760 #, no-wrap
29761 msgid ""
29762 " vgpvuuids vgname\n"
29763 "\n"
29764 msgstr ""
29765
29766 # type: textblock
29767 #. type: textblock
29768 #: ../fish/guestfish-actions.pod:4606
29769 msgid ""
29770 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29771 "physical volumes and volume groups."
29772 msgstr ""
29773
29774 # type: textblock
29775 #. type: textblock
29776 #: ../fish/guestfish-actions.pod:4609
29777 msgid "See also L</vglvuuids>."
29778 msgstr ""
29779
29780 # type: =head2
29781 #. type: =head2
29782 #: ../fish/guestfish-actions.pod:4611
29783 msgid "vgremove"
29784 msgstr ""
29785
29786 # type: verbatim
29787 #. type: verbatim
29788 #: ../fish/guestfish-actions.pod:4613
29789 #, no-wrap
29790 msgid ""
29791 " vgremove vgname\n"
29792 "\n"
29793 msgstr ""
29794
29795 # type: =head2
29796 #. type: =head2
29797 #: ../fish/guestfish-actions.pod:4620
29798 msgid "vgrename"
29799 msgstr ""
29800
29801 # type: verbatim
29802 #. type: verbatim
29803 #: ../fish/guestfish-actions.pod:4622
29804 #, no-wrap
29805 msgid ""
29806 " vgrename volgroup newvolgroup\n"
29807 "\n"
29808 msgstr ""
29809
29810 # type: =head2
29811 #. type: =head2
29812 #: ../fish/guestfish-actions.pod:4626
29813 msgid "vgs"
29814 msgstr ""
29815
29816 # type: verbatim
29817 #. type: verbatim
29818 #: ../fish/guestfish-actions.pod:4628
29819 #, no-wrap
29820 msgid ""
29821 " vgs\n"
29822 "\n"
29823 msgstr ""
29824
29825 # type: textblock
29826 #. type: textblock
29827 #: ../fish/guestfish-actions.pod:4636
29828 msgid "See also L</vgs-full>."
29829 msgstr ""
29830
29831 # type: =head2
29832 #. type: =head2
29833 #: ../fish/guestfish-actions.pod:4638
29834 msgid "vgs-full"
29835 msgstr ""
29836
29837 # type: verbatim
29838 #. type: verbatim
29839 #: ../fish/guestfish-actions.pod:4640
29840 #, no-wrap
29841 msgid ""
29842 " vgs-full\n"
29843 "\n"
29844 msgstr ""
29845
29846 # type: =head2
29847 #. type: =head2
29848 #: ../fish/guestfish-actions.pod:4645
29849 msgid "vgscan"
29850 msgstr ""
29851
29852 # type: verbatim
29853 #. type: verbatim
29854 #: ../fish/guestfish-actions.pod:4647
29855 #, no-wrap
29856 msgid ""
29857 " vgscan\n"
29858 "\n"
29859 msgstr ""
29860
29861 # type: =head2
29862 #. type: =head2
29863 #: ../fish/guestfish-actions.pod:4652
29864 msgid "vguuid"
29865 msgstr ""
29866
29867 # type: verbatim
29868 #. type: verbatim
29869 #: ../fish/guestfish-actions.pod:4654
29870 #, no-wrap
29871 msgid ""
29872 " vguuid vgname\n"
29873 "\n"
29874 msgstr ""
29875
29876 # type: =head2
29877 #. type: =head2
29878 #: ../fish/guestfish-actions.pod:4658
29879 msgid "wc-c"
29880 msgstr ""
29881
29882 # type: verbatim
29883 #. type: verbatim
29884 #: ../fish/guestfish-actions.pod:4660
29885 #, no-wrap
29886 msgid ""
29887 " wc-c path\n"
29888 "\n"
29889 msgstr ""
29890
29891 # type: =head2
29892 #. type: =head2
29893 #: ../fish/guestfish-actions.pod:4665
29894 msgid "wc-l"
29895 msgstr ""
29896
29897 # type: verbatim
29898 #. type: verbatim
29899 #: ../fish/guestfish-actions.pod:4667
29900 #, no-wrap
29901 msgid ""
29902 " wc-l path\n"
29903 "\n"
29904 msgstr ""
29905
29906 # type: =head2
29907 #. type: =head2
29908 #: ../fish/guestfish-actions.pod:4672
29909 msgid "wc-w"
29910 msgstr ""
29911
29912 # type: verbatim
29913 #. type: verbatim
29914 #: ../fish/guestfish-actions.pod:4674
29915 #, no-wrap
29916 msgid ""
29917 " wc-w path\n"
29918 "\n"
29919 msgstr ""
29920
29921 # type: =head2
29922 #. type: =head2
29923 #: ../fish/guestfish-actions.pod:4679
29924 msgid "write"
29925 msgstr ""
29926
29927 # type: verbatim
29928 #. type: verbatim
29929 #: ../fish/guestfish-actions.pod:4681
29930 #, no-wrap
29931 msgid ""
29932 " write path content\n"
29933 "\n"
29934 msgstr ""
29935
29936 # type: =head2
29937 #. type: =head2
29938 #: ../fish/guestfish-actions.pod:4689
29939 msgid "write-file"
29940 msgstr ""
29941
29942 # type: verbatim
29943 #. type: verbatim
29944 #: ../fish/guestfish-actions.pod:4691
29945 #, no-wrap
29946 msgid ""
29947 " write-file path content size\n"
29948 "\n"
29949 msgstr ""
29950
29951 # type: =head2
29952 #. type: =head2
29953 #: ../fish/guestfish-actions.pod:4714
29954 msgid "zegrep"
29955 msgstr ""
29956
29957 # type: verbatim
29958 #. type: verbatim
29959 #: ../fish/guestfish-actions.pod:4716
29960 #, no-wrap
29961 msgid ""
29962 " zegrep regex path\n"
29963 "\n"
29964 msgstr ""
29965
29966 # type: =head2
29967 #. type: =head2
29968 #: ../fish/guestfish-actions.pod:4724
29969 msgid "zegrepi"
29970 msgstr ""
29971
29972 # type: verbatim
29973 #. type: verbatim
29974 #: ../fish/guestfish-actions.pod:4726
29975 #, no-wrap
29976 msgid ""
29977 " zegrepi regex path\n"
29978 "\n"
29979 msgstr ""
29980
29981 # type: =head2
29982 #. type: =head2
29983 #: ../fish/guestfish-actions.pod:4734
29984 msgid "zero"
29985 msgstr ""
29986
29987 # type: verbatim
29988 #. type: verbatim
29989 #: ../fish/guestfish-actions.pod:4736
29990 #, no-wrap
29991 msgid ""
29992 " zero device\n"
29993 "\n"
29994 msgstr ""
29995
29996 # type: textblock
29997 #. type: textblock
29998 #: ../fish/guestfish-actions.pod:4744
29999 msgid "See also: L</zero-device>, L</scrub-device>."
30000 msgstr ""
30001
30002 # type: =head2
30003 #. type: =head2
30004 #: ../fish/guestfish-actions.pod:4746
30005 msgid "zero-device"
30006 msgstr ""
30007
30008 # type: verbatim
30009 #. type: verbatim
30010 #: ../fish/guestfish-actions.pod:4748
30011 #, no-wrap
30012 msgid ""
30013 " zero-device device\n"
30014 "\n"
30015 msgstr ""
30016
30017 # type: textblock
30018 #. type: textblock
30019 #: ../fish/guestfish-actions.pod:4750
30020 msgid ""
30021 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30022 "which just zeroes the first few blocks of a device."
30023 msgstr ""
30024
30025 # type: =head2
30026 #. type: =head2
30027 #: ../fish/guestfish-actions.pod:4757
30028 msgid "zerofree"
30029 msgstr ""
30030
30031 # type: verbatim
30032 #. type: verbatim
30033 #: ../fish/guestfish-actions.pod:4759
30034 #, no-wrap
30035 msgid ""
30036 " zerofree device\n"
30037 "\n"
30038 msgstr ""
30039
30040 # type: =head2
30041 #. type: =head2
30042 #: ../fish/guestfish-actions.pod:4772
30043 msgid "zfgrep"
30044 msgstr ""
30045
30046 # type: verbatim
30047 #. type: verbatim
30048 #: ../fish/guestfish-actions.pod:4774
30049 #, no-wrap
30050 msgid ""
30051 " zfgrep pattern path\n"
30052 "\n"
30053 msgstr ""
30054
30055 # type: =head2
30056 #. type: =head2
30057 #: ../fish/guestfish-actions.pod:4782
30058 msgid "zfgrepi"
30059 msgstr ""
30060
30061 # type: verbatim
30062 #. type: verbatim
30063 #: ../fish/guestfish-actions.pod:4784
30064 #, no-wrap
30065 msgid ""
30066 " zfgrepi pattern path\n"
30067 "\n"
30068 msgstr ""
30069
30070 # type: =head2
30071 #. type: =head2
30072 #: ../fish/guestfish-actions.pod:4792
30073 msgid "zfile"
30074 msgstr ""
30075
30076 # type: verbatim
30077 #. type: verbatim
30078 #: ../fish/guestfish-actions.pod:4794
30079 #, no-wrap
30080 msgid ""
30081 " zfile meth path\n"
30082 "\n"
30083 msgstr ""
30084
30085 # type: textblock
30086 #. type: textblock
30087 #: ../fish/guestfish-actions.pod:4801
30088 msgid ""
30089 "Since 1.0.63, use L</file> instead which can now process compressed files."
30090 msgstr ""
30091
30092 # type: =head2
30093 #. type: =head2
30094 #: ../fish/guestfish-actions.pod:4811
30095 msgid "zgrep"
30096 msgstr ""
30097
30098 # type: verbatim
30099 #. type: verbatim
30100 #: ../fish/guestfish-actions.pod:4813
30101 #, no-wrap
30102 msgid ""
30103 " zgrep regex path\n"
30104 "\n"
30105 msgstr ""
30106
30107 # type: =head2
30108 #. type: =head2
30109 #: ../fish/guestfish-actions.pod:4821
30110 msgid "zgrepi"
30111 msgstr ""
30112
30113 # type: verbatim
30114 #. type: verbatim
30115 #: ../fish/guestfish-actions.pod:4823
30116 #, no-wrap
30117 msgid ""
30118 " zgrepi regex path\n"
30119 "\n"
30120 msgstr ""
30121
30122 # type: =head2
30123 #. type: =head2
30124 #: ../fish/guestfish-commands.pod:1
30125 msgid "alloc"
30126 msgstr ""
30127
30128 # type: =head2
30129 #. type: =head2
30130 #: ../fish/guestfish-commands.pod:3
30131 msgid "allocate"
30132 msgstr ""
30133
30134 # type: verbatim
30135 #. type: verbatim
30136 #: ../fish/guestfish-commands.pod:5
30137 #, no-wrap
30138 msgid ""
30139 " alloc filename size\n"
30140 "\n"
30141 msgstr ""
30142
30143 # type: textblock
30144 #. type: textblock
30145 #: ../fish/guestfish-commands.pod:7
30146 msgid ""
30147 "This creates an empty (zeroed) file of the given size, and then adds so it "
30148 "can be further examined."
30149 msgstr ""
30150
30151 # type: textblock
30152 #. type: textblock
30153 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30154 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30155 msgstr ""
30156
30157 # type: textblock
30158 #. type: textblock
30159 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
30160 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30161 msgstr ""
30162
30163 # type: textblock
30164 #. type: textblock
30165 #: ../fish/guestfish-commands.pod:14
30166 msgid ""
30167 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30168 "image, see L</PREPARED DISK IMAGES>."
30169 msgstr ""
30170
30171 # type: =head2
30172 #. type: =head2
30173 #: ../fish/guestfish-commands.pod:17
30174 msgid "copy-in"
30175 msgstr ""
30176
30177 # type: verbatim
30178 #. type: verbatim
30179 #: ../fish/guestfish-commands.pod:19
30180 #, no-wrap
30181 msgid ""
30182 " copy-in local [local ...] /remotedir\n"
30183 "\n"
30184 msgstr ""
30185
30186 # type: textblock
30187 #. type: textblock
30188 #: ../fish/guestfish-commands.pod:21
30189 msgid ""
30190 "C<copy-in> copies local files or directories recursively into the disk "
30191 "image, placing them in the directory called C</remotedir> (which must "
30192 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
30193 "other commands as necessary."
30194 msgstr ""
30195
30196 # type: textblock
30197 #. type: textblock
30198 #: ../fish/guestfish-commands.pod:26
30199 msgid ""
30200 "Multiple local files and directories can be specified, but the last "
30201 "parameter must always be a remote directory.  Wildcards cannot be used."
30202 msgstr ""
30203
30204 # type: =head2
30205 #. type: =head2
30206 #: ../fish/guestfish-commands.pod:30
30207 msgid "copy-out"
30208 msgstr ""
30209
30210 # type: verbatim
30211 #. type: verbatim
30212 #: ../fish/guestfish-commands.pod:32
30213 #, no-wrap
30214 msgid ""
30215 " copy-out remote [remote ...] localdir\n"
30216 "\n"
30217 msgstr ""
30218
30219 # type: textblock
30220 #. type: textblock
30221 #: ../fish/guestfish-commands.pod:34
30222 msgid ""
30223 "C<copy-out> copies remote files or directories recursively out of the disk "
30224 "image, placing them on the host disk in a local directory called C<localdir> "
30225 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
30226 "download>, L</tar-out> and other commands as necessary."
30227 msgstr ""
30228
30229 # type: textblock
30230 #. type: textblock
30231 #: ../fish/guestfish-commands.pod:40
30232 msgid ""
30233 "Multiple remote files and directories can be specified, but the last "
30234 "parameter must always be a local directory.  To download to the current "
30235 "directory, use C<.> as in:"
30236 msgstr ""
30237
30238 # type: verbatim
30239 #. type: verbatim
30240 #: ../fish/guestfish-commands.pod:44
30241 #, no-wrap
30242 msgid ""
30243 " copy-out /home .\n"
30244 "\n"
30245 msgstr ""
30246
30247 # type: textblock
30248 #. type: textblock
30249 #: ../fish/guestfish-commands.pod:46
30250 msgid ""
30251 "Wildcards cannot be used in the ordinary command, but you can use them with "
30252 "the help of L</glob> like this:"
30253 msgstr ""
30254
30255 # type: verbatim
30256 #. type: verbatim
30257 #: ../fish/guestfish-commands.pod:49
30258 #, no-wrap
30259 msgid ""
30260 " glob copy-out /home/* .\n"
30261 "\n"
30262 msgstr ""
30263
30264 # type: =head2
30265 #. type: =head2
30266 #: ../fish/guestfish-commands.pod:51
30267 msgid "echo"
30268 msgstr ""
30269
30270 # type: verbatim
30271 #. type: verbatim
30272 #: ../fish/guestfish-commands.pod:53
30273 #, no-wrap
30274 msgid ""
30275 " echo [params ...]\n"
30276 "\n"
30277 msgstr ""
30278
30279 # type: textblock
30280 #. type: textblock
30281 #: ../fish/guestfish-commands.pod:55
30282 msgid "This echos the parameters to the terminal."
30283 msgstr ""
30284
30285 # type: =head2
30286 #. type: =head2
30287 #: ../fish/guestfish-commands.pod:57
30288 msgid "edit"
30289 msgstr ""
30290
30291 # type: =head2
30292 #. type: =head2
30293 #: ../fish/guestfish-commands.pod:59
30294 msgid "vi"
30295 msgstr ""
30296
30297 # type: =head2
30298 #. type: =head2
30299 #: ../fish/guestfish-commands.pod:61
30300 msgid "emacs"
30301 msgstr ""
30302
30303 # type: verbatim
30304 #. type: verbatim
30305 #: ../fish/guestfish-commands.pod:63
30306 #, no-wrap
30307 msgid ""
30308 " edit filename\n"
30309 "\n"
30310 msgstr ""
30311
30312 # type: textblock
30313 #. type: textblock
30314 #: ../fish/guestfish-commands.pod:65
30315 msgid ""
30316 "This is used to edit a file.  It downloads the file, edits it locally using "
30317 "your editor, then uploads the result."
30318 msgstr ""
30319
30320 # type: textblock
30321 #. type: textblock
30322 #: ../fish/guestfish-commands.pod:68
30323 msgid ""
30324 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30325 "or C<emacs> you will get those corresponding editors."
30326 msgstr ""
30327
30328 # type: =head2
30329 #. type: =head2
30330 #: ../fish/guestfish-commands.pod:72
30331 msgid "glob"
30332 msgstr ""
30333
30334 # type: verbatim
30335 #. type: verbatim
30336 #: ../fish/guestfish-commands.pod:74
30337 #, no-wrap
30338 msgid ""
30339 " glob command args...\n"
30340 "\n"
30341 msgstr ""
30342
30343 # type: textblock
30344 #. type: textblock
30345 #: ../fish/guestfish-commands.pod:76
30346 msgid ""
30347 "Expand wildcards in any paths in the args list, and run C<command> "
30348 "repeatedly on each matching path."
30349 msgstr ""
30350
30351 # type: textblock
30352 #. type: textblock
30353 #: ../fish/guestfish-commands.pod:79
30354 msgid "See L</WILDCARDS AND GLOBBING>."
30355 msgstr ""
30356
30357 # type: =head2
30358 #. type: =head2
30359 #: ../fish/guestfish-commands.pod:81
30360 msgid "hexedit"
30361 msgstr ""
30362
30363 # type: verbatim
30364 #. type: verbatim
30365 #: ../fish/guestfish-commands.pod:83
30366 #, no-wrap
30367 msgid ""
30368 " hexedit <filename|device>\n"
30369 " hexedit <filename|device> <max>\n"
30370 " hexedit <filename|device> <start> <max>\n"
30371 "\n"
30372 msgstr ""
30373
30374 # type: textblock
30375 #. type: textblock
30376 #: ../fish/guestfish-commands.pod:87
30377 msgid ""
30378 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30379 "device."
30380 msgstr ""
30381
30382 # type: textblock
30383 #. type: textblock
30384 #: ../fish/guestfish-commands.pod:90
30385 msgid ""
30386 "This command works by downloading potentially the whole file or device, "
30387 "editing it locally, then uploading it.  If the file or device is large, you "
30388 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30389 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30390 "usual modifiers allowed such as C<1M> (1 megabyte)."
30391 msgstr ""
30392
30393 # type: textblock
30394 #. type: textblock
30395 #: ../fish/guestfish-commands.pod:97
30396 msgid "For example to edit the first few sectors of a disk you might do:"
30397 msgstr ""
30398
30399 # type: verbatim
30400 #. type: verbatim
30401 #: ../fish/guestfish-commands.pod:100
30402 #, no-wrap
30403 msgid ""
30404 " hexedit /dev/sda 1M\n"
30405 "\n"
30406 msgstr ""
30407
30408 # type: textblock
30409 #. type: textblock
30410 #: ../fish/guestfish-commands.pod:102
30411 msgid ""
30412 "which would allow you to edit anywhere within the first megabyte of the disk."
30413 msgstr ""
30414
30415 # type: textblock
30416 #. type: textblock
30417 #: ../fish/guestfish-commands.pod:105
30418 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30419 msgstr ""
30420
30421 # type: verbatim
30422 #. type: verbatim
30423 #: ../fish/guestfish-commands.pod:107
30424 #, no-wrap
30425 msgid ""
30426 " hexedit /dev/sda1 0x400 0x400\n"
30427 "\n"
30428 msgstr ""
30429
30430 # type: textblock
30431 #. type: textblock
30432 #: ../fish/guestfish-commands.pod:109
30433 msgid "(assuming the superblock is in the standard location)."
30434 msgstr ""
30435
30436 # type: textblock
30437 #. type: textblock
30438 #: ../fish/guestfish-commands.pod:111
30439 msgid ""
30440 "This command requires the external L<hexedit(1)> program.  You can specify "
30441 "another program to use by setting the C<HEXEDITOR> environment variable."
30442 msgstr ""
30443
30444 # type: textblock
30445 #. type: textblock
30446 #: ../fish/guestfish-commands.pod:115
30447 msgid "See also L</hexdump>."
30448 msgstr ""
30449
30450 # type: =head2
30451 #. type: =head2
30452 #: ../fish/guestfish-commands.pod:117
30453 msgid "lcd"
30454 msgstr ""
30455
30456 # type: verbatim
30457 #. type: verbatim
30458 #: ../fish/guestfish-commands.pod:119
30459 #, no-wrap
30460 msgid ""
30461 " lcd directory\n"
30462 "\n"
30463 msgstr ""
30464
30465 # type: textblock
30466 #. type: textblock
30467 #: ../fish/guestfish-commands.pod:121
30468 msgid ""
30469 "Change the local directory, ie. the current directory of guestfish itself."
30470 msgstr ""
30471
30472 # type: textblock
30473 #. type: textblock
30474 #: ../fish/guestfish-commands.pod:124
30475 msgid "Note that C<!cd> won't do what you might expect."
30476 msgstr ""
30477
30478 # type: =head2
30479 #. type: =head2
30480 #: ../fish/guestfish-commands.pod:126
30481 msgid "man"
30482 msgstr ""
30483
30484 # type: =head2
30485 #. type: =head2
30486 #: ../fish/guestfish-commands.pod:128
30487 msgid "manual"
30488 msgstr ""
30489
30490 # type: verbatim
30491 #. type: verbatim
30492 #: ../fish/guestfish-commands.pod:130
30493 #, no-wrap
30494 msgid ""
30495 "  man\n"
30496 "\n"
30497 msgstr ""
30498
30499 # type: textblock
30500 #. type: textblock
30501 #: ../fish/guestfish-commands.pod:132
30502 msgid "Opens the manual page for guestfish."
30503 msgstr ""
30504
30505 # type: =head2
30506 #. type: =head2
30507 #: ../fish/guestfish-commands.pod:134
30508 msgid "more"
30509 msgstr ""
30510
30511 # type: =head2
30512 #. type: =head2
30513 #: ../fish/guestfish-commands.pod:136
30514 msgid "less"
30515 msgstr ""
30516
30517 # type: verbatim
30518 #. type: verbatim
30519 #: ../fish/guestfish-commands.pod:138
30520 #, no-wrap
30521 msgid ""
30522 " more filename\n"
30523 "\n"
30524 msgstr ""
30525
30526 # type: verbatim
30527 #. type: verbatim
30528 #: ../fish/guestfish-commands.pod:140
30529 #, no-wrap
30530 msgid ""
30531 " less filename\n"
30532 "\n"
30533 msgstr ""
30534
30535 # type: textblock
30536 #. type: textblock
30537 #: ../fish/guestfish-commands.pod:142
30538 msgid "This is used to view a file."
30539 msgstr ""
30540
30541 # type: textblock
30542 #. type: textblock
30543 #: ../fish/guestfish-commands.pod:144
30544 msgid ""
30545 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30546 "C<less> you will get the C<less> command specifically."
30547 msgstr ""
30548
30549 # type: =head2
30550 #. type: =head2
30551 #: ../fish/guestfish-commands.pod:147
30552 msgid "reopen"
30553 msgstr ""
30554
30555 # type: verbatim
30556 #. type: verbatim
30557 #: ../fish/guestfish-commands.pod:149
30558 #, no-wrap
30559 msgid ""
30560 "  reopen\n"
30561 "\n"
30562 msgstr ""
30563
30564 # type: textblock
30565 #. type: textblock
30566 #: ../fish/guestfish-commands.pod:151
30567 msgid ""
30568 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30569 "normally, because the handle is closed properly when guestfish exits.  "
30570 "However this is occasionally useful for testing."
30571 msgstr ""
30572
30573 # type: =head2
30574 #. type: =head2
30575 #: ../fish/guestfish-commands.pod:155
30576 msgid "sparse"
30577 msgstr ""
30578
30579 # type: verbatim
30580 #. type: verbatim
30581 #: ../fish/guestfish-commands.pod:157
30582 #, no-wrap
30583 msgid ""
30584 " sparse filename size\n"
30585 "\n"
30586 msgstr ""
30587
30588 # type: textblock
30589 #. type: textblock
30590 #: ../fish/guestfish-commands.pod:159
30591 msgid ""
30592 "This creates an empty sparse file of the given size, and then adds so it can "
30593 "be further examined."
30594 msgstr ""
30595
30596 # type: textblock
30597 #. type: textblock
30598 #: ../fish/guestfish-commands.pod:162
30599 msgid ""
30600 "In all respects it works the same as the L</alloc> command, except that the "
30601 "image file is allocated sparsely, which means that disk blocks are not "
30602 "assigned to the file until they are needed.  Sparse disk files only use "
30603 "space when written to, but they are slower and there is a danger you could "
30604 "run out of real disk space during a write operation."
30605 msgstr ""
30606
30607 # type: =head2
30608 #. type: =head2
30609 #: ../fish/guestfish-commands.pod:172
30610 msgid "supported"
30611 msgstr ""
30612
30613 # type: verbatim
30614 #. type: verbatim
30615 #: ../fish/guestfish-commands.pod:174
30616 #, no-wrap
30617 msgid ""
30618 " supported\n"
30619 "\n"
30620 msgstr ""
30621
30622 # type: textblock
30623 #. type: textblock
30624 #: ../fish/guestfish-commands.pod:176
30625 msgid ""
30626 "This command returns a list of the optional groups known to the daemon, and "
30627 "indicates which ones are supported by this build of the libguestfs appliance."
30628 msgstr ""
30629
30630 # type: textblock
30631 #. type: textblock
30632 #: ../fish/guestfish-commands.pod:180
30633 msgid "See also L<guestfs(3)/AVAILABILITY>."
30634 msgstr ""
30635
30636 # type: =head2
30637 #. type: =head2
30638 #: ../fish/guestfish-commands.pod:182
30639 msgid "time"
30640 msgstr ""
30641
30642 # type: verbatim
30643 #. type: verbatim
30644 #: ../fish/guestfish-commands.pod:184
30645 #, no-wrap
30646 msgid ""
30647 " time command args...\n"
30648 "\n"
30649 msgstr ""
30650
30651 # type: textblock
30652 #. type: textblock
30653 #: ../fish/guestfish-commands.pod:186
30654 msgid ""
30655 "Run the command as usual, but print the elapsed time afterwards.  This can "
30656 "be useful for benchmarking operations."
30657 msgstr ""
30658
30659 # type: textblock
30660 #. type: textblock
30661 #: ../test-tool/libguestfs-test-tool.pod:5
30662 msgid "libguestfs-test-tool - End user tests for libguestfs"
30663 msgstr ""
30664
30665 # type: verbatim
30666 #. type: verbatim
30667 #: ../test-tool/libguestfs-test-tool.pod:9
30668 #, no-wrap
30669 msgid ""
30670 " libguestfs-test-tool [--options]\n"
30671 "\n"
30672 msgstr ""
30673
30674 # type: textblock
30675 #. type: textblock
30676 #: ../test-tool/libguestfs-test-tool.pod:13
30677 msgid ""
30678 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30679 "and developers, to allow them to check basic libguestfs functionality is "
30680 "working.  This is needed because libguestfs occasionally breaks for reasons "
30681 "beyond our control: usually because of changes in the underlying qemu or "
30682 "kernel packages, or the host environment."
30683 msgstr ""
30684
30685 # type: textblock
30686 #. type: textblock
30687 #: ../test-tool/libguestfs-test-tool.pod:20
30688 msgid "If you suspect a problem in libguestfs, then just run:"
30689 msgstr ""
30690
30691 # type: verbatim
30692 #. type: verbatim
30693 #: ../test-tool/libguestfs-test-tool.pod:22
30694 #, no-wrap
30695 msgid ""
30696 " libguestfs-test-tool\n"
30697 "\n"
30698 msgstr ""
30699
30700 # type: textblock
30701 #. type: textblock
30702 #: ../test-tool/libguestfs-test-tool.pod:24
30703 msgid "It will print lots of diagnostic messages."
30704 msgstr ""
30705
30706 # type: textblock
30707 #. type: textblock
30708 #: ../test-tool/libguestfs-test-tool.pod:26
30709 msgid "If it runs to completion successfully, you will see this near the end:"
30710 msgstr ""
30711
30712 # type: verbatim
30713 #. type: verbatim
30714 #: ../test-tool/libguestfs-test-tool.pod:28
30715 #, no-wrap
30716 msgid ""
30717 " ===== TEST FINISHED OK =====\n"
30718 "\n"
30719 msgstr ""
30720
30721 # type: textblock
30722 #. type: textblock
30723 #: ../test-tool/libguestfs-test-tool.pod:30
30724 msgid "and the test tool will exit with code 0."
30725 msgstr ""
30726
30727 # type: textblock
30728 #. type: textblock
30729 #: ../test-tool/libguestfs-test-tool.pod:32
30730 msgid ""
30731 "If it fails (and/or exits with non-zero error code), please paste the "
30732 "B<complete, unedited> output of the test tool into a bug report.  More "
30733 "information about reporting bugs can be found on the L<http://libguestfs.org/"
30734 "> website."
30735 msgstr ""
30736
30737 # type: =item
30738 #. type: =item
30739 #: ../test-tool/libguestfs-test-tool.pod:41
30740 msgid "I<--help>"
30741 msgstr ""
30742
30743 # type: textblock
30744 #. type: textblock
30745 #: ../test-tool/libguestfs-test-tool.pod:43
30746 msgid "Display short usage information and exit."
30747 msgstr ""
30748
30749 # type: =item
30750 #. type: =item
30751 #: ../test-tool/libguestfs-test-tool.pod:45
30752 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
30753 msgstr ""
30754
30755 # type: textblock
30756 #. type: textblock
30757 #: ../test-tool/libguestfs-test-tool.pod:47
30758 msgid ""
30759 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
30760 "normally look in the C<$libexec> directory that was configured when the tool "
30761 "was built."
30762 msgstr ""
30763
30764 # type: =item
30765 #. type: =item
30766 #: ../test-tool/libguestfs-test-tool.pod:51
30767 msgid "I<--qemu qemu_binary>"
30768 msgstr ""
30769
30770 # type: textblock
30771 #. type: textblock
30772 #: ../test-tool/libguestfs-test-tool.pod:53
30773 msgid ""
30774 "If you have downloaded another qemu binary, point this option at the full "
30775 "path of the binary to try it."
30776 msgstr ""
30777
30778 # type: =item
30779 #. type: =item
30780 #: ../test-tool/libguestfs-test-tool.pod:56
30781 msgid "I<--qemudir qemu_source_dir>"
30782 msgstr ""
30783
30784 # type: textblock
30785 #. type: textblock
30786 #: ../test-tool/libguestfs-test-tool.pod:58
30787 msgid ""
30788 "If you have compiled qemu from source, point this option at the source "
30789 "directory to try it."
30790 msgstr ""
30791
30792 # type: =item
30793 #. type: =item
30794 #: ../test-tool/libguestfs-test-tool.pod:61
30795 msgid "I<--timeout N>"
30796 msgstr ""
30797
30798 # type: textblock
30799 #. type: textblock
30800 #: ../test-tool/libguestfs-test-tool.pod:63
30801 msgid ""
30802 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30803 "does not usually need to be adjusted unless your machine is very slow."
30804 msgstr ""
30805
30806 # type: =head1
30807 #. type: =head1
30808 #: ../test-tool/libguestfs-test-tool.pod:69
30809 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30810 msgstr ""
30811
30812 # type: textblock
30813 #. type: textblock
30814 #: ../test-tool/libguestfs-test-tool.pod:71
30815 msgid ""
30816 "If you have compiled another version of qemu from source and would like to "
30817 "try that, then you can use the I<--qemudir> option to point to the qemu "
30818 "source directory."
30819 msgstr ""
30820
30821 # type: textblock
30822 #. type: textblock
30823 #: ../test-tool/libguestfs-test-tool.pod:75
30824 msgid ""
30825 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30826 "option to point to the binary."
30827 msgstr ""
30828
30829 # type: textblock
30830 #. type: textblock
30831 #: ../test-tool/libguestfs-test-tool.pod:78
30832 msgid ""
30833 "When using an alternate qemu with libguestfs, usually you would need to "
30834 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
30835 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
30836 "use either of the I<--qemudir> or I<--qemu> options."
30837 msgstr ""
30838
30839 # type: textblock
30840 #. type: textblock
30841 #: ../test-tool/libguestfs-test-tool.pod:85
30842 msgid ""
30843 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30844 "I<1> if there was an error."
30845 msgstr ""
30846
30847 # type: =item
30848 #. type: =item
30849 #: ../test-tool/libguestfs-test-tool.pod:92
30850 msgid "/usr/libexec/libguestfs-test-tool-helper"
30851 msgstr ""
30852
30853 # type: textblock
30854 #. type: textblock
30855 #: ../test-tool/libguestfs-test-tool.pod:94
30856 msgid ""
30857 "This helper program is run inside the appliance and provides additional "
30858 "tests."
30859 msgstr ""
30860
30861 # type: =item
30862 #. type: =item
30863 #: ../test-tool/libguestfs-test-tool.pod:97
30864 msgid "/usr/bin/mkisofs"
30865 msgstr ""
30866
30867 # type: textblock
30868 #. type: textblock
30869 #: ../test-tool/libguestfs-test-tool.pod:99
30870 msgid ""
30871 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
30872 "which is used as part of the tests."
30873 msgstr ""
30874
30875 # type: textblock
30876 #. type: textblock
30877 #: ../test-tool/libguestfs-test-tool.pod:106
30878 msgid ""
30879 "For the full list of environment variables which may affect libguestfs, "
30880 "please see the L<guestfs(3)> manual page."
30881 msgstr ""
30882
30883 # type: textblock
30884 #. type: textblock
30885 #: ../test-tool/libguestfs-test-tool.pod:111
30886 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30887 msgstr ""
30888
30889 # type: textblock
30890 #. type: textblock
30891 #: ../test-tool/libguestfs-test-tool.pod:121
30892 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
30893 msgstr ""
30894
30895 # type: textblock
30896 #. type: textblock
30897 #: ../fuse/guestmount.pod:5
30898 msgid ""
30899 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30900 msgstr ""
30901
30902 # type: verbatim
30903 #. type: verbatim
30904 #: ../fuse/guestmount.pod:9
30905 #, no-wrap
30906 msgid ""
30907 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30908 "\n"
30909 msgstr ""
30910
30911 # type: verbatim
30912 #. type: verbatim
30913 #: ../fuse/guestmount.pod:11
30914 #, no-wrap
30915 msgid ""
30916 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30917 "\n"
30918 msgstr ""
30919
30920 # type: verbatim
30921 #. type: verbatim
30922 #: ../fuse/guestmount.pod:13
30923 #, no-wrap
30924 msgid ""
30925 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30926 "\n"
30927 msgstr ""
30928
30929 # type: textblock
30930 #. type: textblock
30931 #: ../fuse/guestmount.pod:17
30932 msgid ""
30933 "You must I<not> use C<guestmount> in read-write mode on live virtual "
30934 "machines.  If you do this, you risk disk corruption in the VM."
30935 msgstr ""
30936
30937 # type: textblock
30938 #. type: textblock
30939 #: ../fuse/guestmount.pod:22
30940 msgid ""
30941 "The guestmount program can be used to mount virtual machine filesystems and "
30942 "other disk images on the host.  It uses libguestfs for access to the guest "
30943 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
30944 "a mountable device."
30945 msgstr ""
30946
30947 # type: textblock
30948 #. type: textblock
30949 #: ../fuse/guestmount.pod:27
30950 msgid ""
30951 "Along with other options, you have to give at least one device (I<-a> "
30952 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
30953 "option) or use the I<-i> inspection option.  How this works is better "
30954 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
30955 "below."
30956 msgstr ""
30957
30958 # type: textblock
30959 #. type: textblock
30960 #: ../fuse/guestmount.pod:33
30961 msgid ""
30962 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
30963 "by you, and the filesystem will not be visible to any other users unless you "
30964 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
30965 "the filesystem, use the C<fusermount -u> command."
30966 msgstr ""
30967
30968 # type: textblock
30969 #. type: textblock
30970 #: ../fuse/guestmount.pod:41
30971 msgid ""
30972 "For a typical Windows guest which has its main filesystem on the first "
30973 "partition:"
30974 msgstr ""
30975
30976 # type: verbatim
30977 #. type: verbatim
30978 #: ../fuse/guestmount.pod:44
30979 #, no-wrap
30980 msgid ""
30981 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
30982 "\n"
30983 msgstr ""
30984
30985 # type: textblock
30986 #. type: textblock
30987 #: ../fuse/guestmount.pod:46
30988 msgid ""
30989 "For a typical Linux guest which has a /boot filesystem on the first "
30990 "partition, and the root filesystem on a logical volume:"
30991 msgstr ""
30992
30993 # type: verbatim
30994 #. type: verbatim
30995 #: ../fuse/guestmount.pod:49
30996 #, no-wrap
30997 msgid ""
30998 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
30999 "\n"
31000 msgstr ""
31001
31002 # type: textblock
31003 #. type: textblock
31004 #: ../fuse/guestmount.pod:51
31005 msgid "To get libguestfs to detect guest mountpoints for you:"
31006 msgstr ""
31007
31008 # type: verbatim
31009 #. type: verbatim
31010 #: ../fuse/guestmount.pod:53
31011 #, no-wrap
31012 msgid ""
31013 " guestmount -a guest.img -i --ro /mnt\n"
31014 "\n"
31015 msgstr ""
31016
31017 # type: textblock
31018 #. type: textblock
31019 #: ../fuse/guestmount.pod:55
31020 msgid "For a libvirt guest called \"Guest\" you could do:"
31021 msgstr ""
31022
31023 # type: verbatim
31024 #. type: verbatim
31025 #: ../fuse/guestmount.pod:57
31026 #, no-wrap
31027 msgid ""
31028 " guestmount -d Guest -i --ro /mnt\n"
31029 "\n"
31030 msgstr ""
31031
31032 # type: textblock
31033 #. type: textblock
31034 #: ../fuse/guestmount.pod:59
31035 msgid ""
31036 "If you don't know what filesystems are contained in a guest or disk image, "
31037 "use L<virt-filesystems(1)> first:"
31038 msgstr ""
31039
31040 # type: verbatim
31041 #. type: verbatim
31042 #: ../fuse/guestmount.pod:62
31043 #, no-wrap
31044 msgid ""
31045 " virt-filesystems MyGuest\n"
31046 "\n"
31047 msgstr ""
31048
31049 # type: textblock
31050 #. type: textblock
31051 #: ../fuse/guestmount.pod:64
31052 msgid ""
31053 "If you want to trace the libguestfs calls but without excessive debugging "
31054 "information, we recommend:"
31055 msgstr ""
31056
31057 # type: verbatim
31058 #. type: verbatim
31059 #: ../fuse/guestmount.pod:67
31060 #, no-wrap
31061 msgid ""
31062 " guestmount [...] --trace /mnt\n"
31063 "\n"
31064 msgstr ""
31065
31066 # type: textblock
31067 #. type: textblock
31068 #: ../fuse/guestmount.pod:69
31069 msgid "If you want to debug the program, we recommend:"
31070 msgstr ""
31071
31072 # type: verbatim
31073 #. type: verbatim
31074 #: ../fuse/guestmount.pod:71
31075 #, no-wrap
31076 msgid ""
31077 " guestmount [...] --trace --verbose /mnt\n"
31078 "\n"
31079 msgstr ""
31080
31081 # type: =item
31082 #. type: =item
31083 #: ../fuse/guestmount.pod:77
31084 msgid "B<-a image> | B<--add image>"
31085 msgstr ""
31086
31087 # type: textblock
31088 #. type: textblock
31089 #: ../fuse/guestmount.pod:79
31090 msgid "Add a block device or virtual machine image."
31091 msgstr ""
31092
31093 # type: =item
31094 #. type: =item
31095 #: ../fuse/guestmount.pod:84
31096 msgid "B<-c URI> | B<--connect URI>"
31097 msgstr ""
31098
31099 # type: =item
31100 #. type: =item
31101 #: ../fuse/guestmount.pod:90
31102 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31103 msgstr ""
31104
31105 # type: =item
31106 #. type: =item
31107 #: ../fuse/guestmount.pod:96
31108 msgid "B<--dir-cache-timeout N>"
31109 msgstr ""
31110
31111 # type: textblock
31112 #. type: textblock
31113 #: ../fuse/guestmount.pod:98
31114 msgid ""
31115 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31116 "seconds.  The readdir cache [actually, there are several semi-independent "
31117 "caches] is populated after a readdir(2) call with the stat and extended "
31118 "attributes of the files in the directory, in anticipation that they will be "
31119 "requested soon after."
31120 msgstr ""
31121
31122 # type: textblock
31123 #. type: textblock
31124 #: ../fuse/guestmount.pod:104
31125 msgid ""
31126 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31127 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31128 "requests, only cache existing ones."
31129 msgstr ""
31130
31131 # type: =item
31132 #. type: =item
31133 #: ../fuse/guestmount.pod:115
31134 msgid "B<--format=raw|qcow2|..> | B<--format>"
31135 msgstr ""
31136
31137 # type: textblock
31138 #. type: textblock
31139 #: ../fuse/guestmount.pod:122
31140 msgid ""
31141 "If you have untrusted raw-format guest disk images, you should use this "
31142 "option to specify the disk format.  This avoids a possible security problem "
31143 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31144 "guestfs_add_drive_opts>."
31145 msgstr ""
31146
31147 # type: =item
31148 #. type: =item
31149 #: ../fuse/guestmount.pod:127
31150 msgid "B<--fuse-help>"
31151 msgstr ""
31152
31153 # type: textblock
31154 #. type: textblock
31155 #: ../fuse/guestmount.pod:129
31156 msgid "Display help on special FUSE options (see I<-o> below)."
31157 msgstr ""
31158
31159 # type: textblock
31160 #. type: textblock
31161 #: ../fuse/guestmount.pod:133
31162 msgid "Display brief help and exit."
31163 msgstr ""
31164
31165 # type: =item
31166 #. type: =item
31167 #: ../fuse/guestmount.pod:135
31168 msgid "B<-i> | B<--inspector>"
31169 msgstr ""
31170
31171 # type: =item
31172 #. type: =item
31173 #: ../fuse/guestmount.pod:146
31174 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
31175 msgstr ""
31176
31177 # type: textblock
31178 #. type: textblock
31179 #: ../fuse/guestmount.pod:148
31180 msgid ""
31181 "Mount the named partition or logical volume on the given mountpoint B<in the "
31182 "guest> (this has nothing to do with mountpoints in the host)."
31183 msgstr ""
31184
31185 # type: textblock
31186 #. type: textblock
31187 #: ../fuse/guestmount.pod:151
31188 msgid ""
31189 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
31190 "something on C</>."
31191 msgstr ""
31192
31193 # type: =item
31194 #. type: =item
31195 #: ../fuse/guestmount.pod:154
31196 msgid "B<-n> | B<--no-sync>"
31197 msgstr ""
31198
31199 # type: textblock
31200 #. type: textblock
31201 #: ../fuse/guestmount.pod:156
31202 msgid ""
31203 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31204 "unmounted.  If you specify this option, then we don't attempt to sync the "
31205 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31206 msgstr ""
31207
31208 # type: =item
31209 #. type: =item
31210 #: ../fuse/guestmount.pod:161
31211 msgid "B<-o option> | B<--option option>"
31212 msgstr ""
31213
31214 # type: textblock
31215 #. type: textblock
31216 #: ../fuse/guestmount.pod:163
31217 msgid "Pass extra options to FUSE."
31218 msgstr ""
31219
31220 # type: textblock
31221 #. type: textblock
31222 #: ../fuse/guestmount.pod:165
31223 msgid ""
31224 "To get a list of all the extra options supported by FUSE, use the command "
31225 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
31226 "of them are a good idea."
31227 msgstr ""
31228
31229 # type: verbatim
31230 #. type: verbatim
31231 #: ../fuse/guestmount.pod:169
31232 #, no-wrap
31233 msgid ""
31234 " guestmount --fuse-help\n"
31235 "\n"
31236 msgstr ""
31237
31238 # type: textblock
31239 #. type: textblock
31240 #: ../fuse/guestmount.pod:171
31241 msgid "Some potentially useful FUSE options:"
31242 msgstr ""
31243
31244 # type: =item
31245 #. type: =item
31246 #: ../fuse/guestmount.pod:175
31247 msgid "B<-o allow_other>"
31248 msgstr ""
31249
31250 # type: textblock
31251 #. type: textblock
31252 #: ../fuse/guestmount.pod:177
31253 msgid "Allow other users to see the filesystem."
31254 msgstr ""
31255
31256 # type: =item
31257 #. type: =item
31258 #: ../fuse/guestmount.pod:179
31259 msgid "B<-o attr_timeout=N>"
31260 msgstr ""
31261
31262 # type: textblock
31263 #. type: textblock
31264 #: ../fuse/guestmount.pod:181
31265 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31266 msgstr ""
31267
31268 # type: =item
31269 #. type: =item
31270 #: ../fuse/guestmount.pod:183
31271 msgid "B<-o kernel_cache>"
31272 msgstr ""
31273
31274 # type: textblock
31275 #. type: textblock
31276 #: ../fuse/guestmount.pod:185
31277 msgid ""
31278 "Allow the kernel to cache files (reduces the number of reads that have to go "
31279 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
31280 "afford the extra memory usage."
31281 msgstr ""
31282
31283 # type: =item
31284 #. type: =item
31285 #: ../fuse/guestmount.pod:189
31286 msgid "B<-o uid=N> B<-o gid=N>"
31287 msgstr ""
31288
31289 # type: textblock
31290 #. type: textblock
31291 #: ../fuse/guestmount.pod:191
31292 msgid ""
31293 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
31294 "the chosen values."
31295 msgstr ""
31296
31297 # type: =item
31298 #. type: =item
31299 #: ../fuse/guestmount.pod:196
31300 msgid "B<-r> | B<--ro>"
31301 msgstr ""
31302
31303 # type: textblock
31304 #. type: textblock
31305 #: ../fuse/guestmount.pod:198
31306 msgid ""
31307 "Add devices and mount everything read-only.  Also disallow writes and make "
31308 "the disk appear read-only to FUSE."
31309 msgstr ""
31310
31311 # type: textblock
31312 #. type: textblock
31313 #: ../fuse/guestmount.pod:201
31314 msgid ""
31315 "This is highly recommended if you are not going to edit the guest disk.  If "
31316 "the guest is running and this option is I<not> supplied, then there is a "
31317 "strong risk of disk corruption in the guest.  We try to prevent this from "
31318 "happening, but it is not always possible."
31319 msgstr ""
31320
31321 # type: textblock
31322 #. type: textblock
31323 #: ../fuse/guestmount.pod:206
31324 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31325 msgstr ""
31326
31327 # type: textblock
31328 #. type: textblock
31329 #: ../fuse/guestmount.pod:210
31330 msgid "Enable SELinux support for the guest."
31331 msgstr ""
31332
31333 # type: =item
31334 #. type: =item
31335 #: ../fuse/guestmount.pod:212
31336 msgid "B<-v> | B<--verbose>"
31337 msgstr ""
31338
31339 # type: textblock
31340 #. type: textblock
31341 #: ../fuse/guestmount.pod:214
31342 msgid "Enable verbose messages from underlying libguestfs."
31343 msgstr ""
31344
31345 # type: =item
31346 #. type: =item
31347 #: ../fuse/guestmount.pod:216
31348 msgid "B<-V> | B<--version>"
31349 msgstr ""
31350
31351 # type: textblock
31352 #. type: textblock
31353 #: ../fuse/guestmount.pod:218
31354 msgid "Display the program version and exit."
31355 msgstr ""
31356
31357 # type: =item
31358 #. type: =item
31359 #: ../fuse/guestmount.pod:220
31360 msgid "B<-w> | B<--rw>"
31361 msgstr ""
31362
31363 # type: textblock
31364 #. type: textblock
31365 #: ../fuse/guestmount.pod:222
31366 msgid ""
31367 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
31368 "FOR READ AND WRITE>."
31369 msgstr ""
31370
31371 # type: =item
31372 #. type: =item
31373 #: ../fuse/guestmount.pod:225
31374 msgid "B<-x> | B<--trace>"
31375 msgstr ""
31376
31377 # type: textblock
31378 #. type: textblock
31379 #: ../fuse/guestmount.pod:227
31380 msgid "Trace libguestfs calls and entry into each FUSE function."
31381 msgstr ""
31382
31383 # type: textblock
31384 #. type: textblock
31385 #: ../fuse/guestmount.pod:229
31386 msgid "This also stops the daemon from forking into the background."
31387 msgstr ""
31388
31389 # type: textblock
31390 #. type: textblock
31391 #: ../fuse/guestmount.pod:235
31392 msgid ""
31393 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
31394 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
31395 "net/>."
31396 msgstr ""
31397
31398 # type: textblock
31399 #. type: textblock
31400 #: ../tools/virt-edit.pl:34
31401 msgid "virt-edit - Edit a file in a virtual machine"
31402 msgstr ""
31403
31404 # type: verbatim
31405 #. type: verbatim
31406 #: ../tools/virt-edit.pl:38
31407 #, no-wrap
31408 msgid ""
31409 " virt-edit [--options] domname file\n"
31410 "\n"
31411 msgstr ""
31412
31413 # type: verbatim
31414 #. type: verbatim
31415 #: ../tools/virt-edit.pl:40
31416 #, no-wrap
31417 msgid ""
31418 " virt-edit [--options] disk.img [disk.img ...] file\n"
31419 "\n"
31420 msgstr ""
31421
31422 # type: verbatim
31423 #. type: verbatim
31424 #: ../tools/virt-edit.pl:42
31425 #, no-wrap
31426 msgid ""
31427 " virt-edit [domname|disk.img] file -e 'expr'\n"
31428 "\n"
31429 msgstr ""
31430
31431 # type: textblock
31432 #. type: textblock
31433 #: ../tools/virt-edit.pl:46
31434 msgid ""
31435 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
31436 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
31437 "doing this, but doesn't catch all cases."
31438 msgstr ""
31439
31440 # type: textblock
31441 #. type: textblock
31442 #: ../tools/virt-edit.pl:52
31443 msgid ""
31444 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
31445 "the named virtual machine (or disk image)."
31446 msgstr ""
31447
31448 # type: textblock
31449 #. type: textblock
31450 #: ../tools/virt-edit.pl:55
31451 msgid ""
31452 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
31453 "you should look at the L<guestfish(1)> tool."
31454 msgstr ""
31455
31456 # type: textblock
31457 #. type: textblock
31458 #: ../tools/virt-edit.pl:60
31459 msgid "Edit the named files interactively:"
31460 msgstr ""
31461
31462 # type: verbatim
31463 #. type: verbatim
31464 #: ../tools/virt-edit.pl:62
31465 #, no-wrap
31466 msgid ""
31467 " virt-edit mydomain /boot/grub/grub.conf\n"
31468 "\n"
31469 msgstr ""
31470
31471 # type: verbatim
31472 #. type: verbatim
31473 #: ../tools/virt-edit.pl:64
31474 #, no-wrap
31475 msgid ""
31476 " virt-edit mydomain /etc/passwd\n"
31477 "\n"
31478 msgstr ""
31479
31480 # type: textblock
31481 #. type: textblock
31482 #: ../tools/virt-edit.pl:66
31483 msgid ""
31484 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
31485 "below).  To change the init default level to 5:"
31486 msgstr ""
31487
31488 # type: verbatim
31489 #. type: verbatim
31490 #: ../tools/virt-edit.pl:70
31491 #, no-wrap
31492 msgid ""
31493 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
31494 "\n"
31495 msgstr ""
31496
31497 # type: textblock
31498 #. type: textblock
31499 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
31500 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
31501 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
31502 msgid "Display brief help."
31503 msgstr ""
31504
31505 # type: textblock
31506 #. type: textblock
31507 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
31508 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
31509 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
31510 #: ../tools/virt-list-partitions.pl:72
31511 msgid "Display version number and exit."
31512 msgstr ""
31513
31514 # type: =item
31515 #. type: =item
31516 #: ../tools/virt-edit.pl:96
31517 msgid "B<--backup extension> | B<-b extension>"
31518 msgstr ""
31519
31520 # type: textblock
31521 #. type: textblock
31522 #: ../tools/virt-edit.pl:98
31523 msgid ""
31524 "Create a backup of the original file I<in the guest disk image>.  The backup "
31525 "has the original filename with C<extension> added."
31526 msgstr ""
31527
31528 # type: textblock
31529 #. type: textblock
31530 #: ../tools/virt-edit.pl:101
31531 msgid ""
31532 "Usually the first character of C<extension> would be a dot C<.> so you would "
31533 "write:"
31534 msgstr ""
31535
31536 # type: verbatim
31537 #. type: verbatim
31538 #: ../tools/virt-edit.pl:104
31539 #, no-wrap
31540 msgid ""
31541 " virt-edit -b .orig [etc]\n"
31542 "\n"
31543 msgstr ""
31544
31545 # type: textblock
31546 #. type: textblock
31547 #: ../tools/virt-edit.pl:106
31548 msgid "By default, no backup file is made."
31549 msgstr ""
31550
31551 # type: =item
31552 #. type: =item
31553 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
31554 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
31555 #: ../tools/virt-list-partitions.pl:78
31556 msgid "B<--connect URI> | B<-c URI>"
31557 msgstr ""
31558
31559 # type: textblock
31560 #. type: textblock
31561 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
31562 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
31563 #: ../tools/virt-list-partitions.pl:80
31564 msgid ""
31565 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31566 "to the default libvirt hypervisor."
31567 msgstr ""
31568
31569 # type: textblock
31570 #. type: textblock
31571 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
31572 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
31573 #: ../tools/virt-list-partitions.pl:83
31574 msgid ""
31575 "If you specify guest block devices directly, then libvirt is not used at all."
31576 msgstr ""
31577
31578 # type: =item
31579 #. type: =item
31580 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
31581 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
31582 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
31583 msgid "B<--format> raw"
31584 msgstr ""
31585
31586 # type: textblock
31587 #. type: textblock
31588 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
31589 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
31590 #: ../tools/virt-list-partitions.pl:92
31591 msgid ""
31592 "Specify the format of disk images given on the command line.  If this is "
31593 "omitted then the format is autodetected from the content of the disk image."
31594 msgstr ""
31595
31596 # type: textblock
31597 #. type: textblock
31598 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
31599 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
31600 #: ../tools/virt-list-partitions.pl:96
31601 msgid ""
31602 "If disk images are requested from libvirt, then this program asks libvirt "
31603 "for this information.  In this case, the value of the format parameter is "
31604 "ignored."
31605 msgstr ""
31606
31607 # type: textblock
31608 #. type: textblock
31609 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
31610 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
31611 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
31612 #: ../tools/virt-list-partitions.pl:100
31613 msgid ""
31614 "If working with untrusted raw-format guest disk images, you should ensure "
31615 "the format is always specified."
31616 msgstr ""
31617
31618 # type: =item
31619 #. type: =item
31620 #: ../tools/virt-edit.pl:141
31621 msgid "B<--expr EXPR> | B<-e EXPR>"
31622 msgstr ""
31623
31624 # type: textblock
31625 #. type: textblock
31626 #: ../tools/virt-edit.pl:143
31627 msgid ""
31628 "Instead of launching the external editor, non-interactively apply the Perl "
31629 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
31630 "EDITING> below."
31631 msgstr ""
31632
31633 # type: textblock
31634 #. type: textblock
31635 #: ../tools/virt-edit.pl:147
31636 msgid ""
31637 "Be careful to properly quote the expression to prevent it from being altered "
31638 "by the shell."
31639 msgstr ""
31640
31641 # type: =head1
31642 #. type: =head1
31643 #: ../tools/virt-edit.pl:268
31644 msgid "NON-INTERACTIVE EDITING"
31645 msgstr ""
31646
31647 # type: textblock
31648 #. type: textblock
31649 #: ../tools/virt-edit.pl:270
31650 msgid ""
31651 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
31652 "administrator can interactively edit the file."
31653 msgstr ""
31654
31655 # type: textblock
31656 #. type: textblock
31657 #: ../tools/virt-edit.pl:273
31658 msgid ""
31659 "There are two ways also to use C<virt-edit> from scripts in order to make "
31660 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
31661 "like this, it's less error-prone to write scripts directly using the "
31662 "libguestfs API and Augeas for configuration file editing.)"
31663 msgstr ""
31664
31665 # type: textblock
31666 #. type: textblock
31667 #: ../tools/virt-edit.pl:279
31668 msgid ""
31669 "The first method is to temporarily set C<$EDITOR> to any script or program "
31670 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
31671 "update C<tmpfile> in place however it likes."
31672 msgstr ""
31673
31674 # type: textblock
31675 #. type: textblock
31676 #: ../tools/virt-edit.pl:283
31677 msgid ""
31678 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
31679 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
31680 "instances of C<foo> with C<bar> in a file:"
31681 msgstr ""
31682
31683 # type: verbatim
31684 #. type: verbatim
31685 #: ../tools/virt-edit.pl:287
31686 #, no-wrap
31687 msgid ""
31688 " virt-edit domname filename -e 's/foo/bar/'\n"
31689 "\n"
31690 msgstr ""
31691
31692 # type: textblock
31693 #. type: textblock
31694 #: ../tools/virt-edit.pl:289
31695 msgid ""
31696 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
31697 "For example to delete root's password you could do:"
31698 msgstr ""
31699
31700 # type: verbatim
31701 #. type: verbatim
31702 #: ../tools/virt-edit.pl:292
31703 #, no-wrap
31704 msgid ""
31705 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
31706 "\n"
31707 msgstr ""
31708
31709 # type: textblock
31710 #. type: textblock
31711 #: ../tools/virt-edit.pl:294
31712 msgid ""
31713 "What really happens is that the snippet is evaluated as a Perl expression "
31714 "for each line of the file.  The line, including the final C<\\n>, is passed "
31715 "in C<$_> and the expression should update C<$_> or leave it unchanged."
31716 msgstr ""
31717
31718 # type: textblock
31719 #. type: textblock
31720 #: ../tools/virt-edit.pl:299
31721 msgid ""
31722 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
31723 "C<apache> user account from the password file you can do:"
31724 msgstr ""
31725
31726 # type: verbatim
31727 #. type: verbatim
31728 #: ../tools/virt-edit.pl:302
31729 #, no-wrap
31730 msgid ""
31731 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
31732 "\n"
31733 msgstr ""
31734
31735 # type: textblock
31736 #. type: textblock
31737 #: ../tools/virt-edit.pl:304
31738 msgid ""
31739 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
31740 "the end of the file is rather difficult this way since there is no concept "
31741 "of \"last line of the file\" - your expression just doesn't get called "
31742 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
31743 "want to do this."
31744 msgstr ""
31745
31746 # type: textblock
31747 #. type: textblock
31748 #: ../tools/virt-edit.pl:310
31749 msgid ""
31750 "The variable C<$lineno> contains the current line number.  As is "
31751 "traditional, the first line in the file is number C<1>."
31752 msgstr ""
31753
31754 # type: textblock
31755 #. type: textblock
31756 #: ../tools/virt-edit.pl:313
31757 msgid ""
31758 "The return value from the expression is ignored, but the expression may call "
31759 "C<die> in order to abort the whole program, leaving the original file "
31760 "untouched."
31761 msgstr ""
31762
31763 # type: textblock
31764 #. type: textblock
31765 #: ../tools/virt-edit.pl:317
31766 msgid ""
31767 "Remember when matching the end of a line that C<$_> may contain the final C<"
31768 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
31769 "newline then neither of these.  Thus to match or substitute some text at the "
31770 "end of a line, use this regular expression:"
31771 msgstr ""
31772
31773 # type: verbatim
31774 #. type: verbatim
31775 #: ../tools/virt-edit.pl:322
31776 #, no-wrap
31777 msgid ""
31778 " /some text(\\r?\\n)?$/\n"
31779 "\n"
31780 msgstr ""
31781
31782 # type: textblock
31783 #. type: textblock
31784 #: ../tools/virt-edit.pl:324
31785 msgid ""
31786 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
31787 "$_> itself (since that would remove all newlines from the file):"
31788 msgstr ""
31789
31790 # type: verbatim
31791 #. type: verbatim
31792 #: ../tools/virt-edit.pl:328
31793 #, no-wrap
31794 msgid ""
31795 " my $m = $_; chomp $m; $m =~ /some text$/\n"
31796 "\n"
31797 msgstr ""
31798
31799 # type: =item
31800 #. type: =item
31801 #: ../tools/virt-edit.pl:334
31802 msgid "C<EDITOR>"
31803 msgstr ""
31804
31805 # type: textblock
31806 #. type: textblock
31807 #: ../tools/virt-edit.pl:336
31808 msgid ""
31809 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
31810 "\"emacs -nw\">"
31811 msgstr ""
31812
31813 # type: textblock
31814 #. type: textblock
31815 #: ../tools/virt-edit.pl:339
31816 msgid "If not set, C<vi> is used."
31817 msgstr ""
31818
31819 # type: =head2
31820 #. type: =head1
31821 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
31822 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
31823 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:527
31824 #: ../tools/virt-list-partitions.pl:250
31825 msgid "SHELL QUOTING"
31826 msgstr ""
31827
31828 # type: textblock
31829 #. type: textblock
31830 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
31831 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
31832 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:529
31833 #: ../tools/virt-list-partitions.pl:252
31834 msgid ""
31835 "Libvirt guest names can contain arbitrary characters, some of which have "
31836 "meaning to the shell such as C<#> and space.  You may need to quote or "
31837 "escape these characters on the command line.  See the shell manual page L<sh"
31838 "(1)> for details."
31839 msgstr ""
31840
31841 #. type: textblock
31842 #: ../tools/virt-edit.pl:352
31843 msgid ""
31844 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
31845 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
31846 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
31847 msgstr ""
31848
31849 # type: =head1
31850 #. type: =head1
31851 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
31852 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
31853 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:559
31854 #: ../tools/virt-list-partitions.pl:269
31855 msgid "AUTHOR"
31856 msgstr ""
31857
31858 # type: textblock
31859 #. type: textblock
31860 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
31861 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
31862 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:561
31863 #: ../tools/virt-list-partitions.pl:271
31864 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31865 msgstr ""
31866
31867 # type: textblock
31868 #. type: textblock
31869 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
31870 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31871 msgstr ""
31872
31873 # type: textblock
31874 #. type: textblock
31875 #: ../tools/virt-win-reg.pl:37
31876 msgid ""
31877 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
31878 msgstr ""
31879
31880 # type: verbatim
31881 #. type: verbatim
31882 #: ../tools/virt-win-reg.pl:41
31883 #, no-wrap
31884 msgid ""
31885 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31886 "\n"
31887 msgstr ""
31888
31889 # type: verbatim
31890 #. type: verbatim
31891 #: ../tools/virt-win-reg.pl:43
31892 #, no-wrap
31893 msgid ""
31894 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31895 "\n"
31896 msgstr ""
31897
31898 # type: verbatim
31899 #. type: verbatim
31900 #: ../tools/virt-win-reg.pl:45
31901 #, no-wrap
31902 msgid ""
31903 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31904 "\n"
31905 msgstr ""
31906
31907 # type: verbatim
31908 #. type: verbatim
31909 #: ../tools/virt-win-reg.pl:47
31910 #, no-wrap
31911 msgid ""
31912 " virt-win-reg --merge domname [input.reg ...]\n"
31913 "\n"
31914 msgstr ""
31915
31916 # type: verbatim
31917 #. type: verbatim
31918 #: ../tools/virt-win-reg.pl:49
31919 #, no-wrap
31920 msgid ""
31921 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31922 "\n"
31923 msgstr ""
31924
31925 # type: textblock
31926 #. type: textblock
31927 #: ../tools/virt-win-reg.pl:53
31928 msgid ""
31929 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
31930 "virtual machines.  If you do this, you I<will> get irreversible disk "
31931 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
31932 "but doesn't catch all cases."
31933 msgstr ""
31934
31935 # type: textblock
31936 #. type: textblock
31937 #: ../tools/virt-win-reg.pl:58
31938 msgid ""
31939 "Modifying the Windows Registry is an inherently risky operation.  The format "
31940 "is deliberately obscure and undocumented, and Registry changes can leave the "
31941 "system unbootable.  Therefore when using the C<--merge> option, make sure "
31942 "you have a reliable backup first."
31943 msgstr ""
31944
31945 # type: textblock
31946 #. type: textblock
31947 #: ../tools/virt-win-reg.pl:65
31948 msgid ""
31949 "This program can export and merge Windows Registry entries from a Windows "
31950 "guest."
31951 msgstr ""
31952
31953 # type: textblock
31954 #. type: textblock
31955 #: ../tools/virt-win-reg.pl:68
31956 msgid ""
31957 "The first parameter is the libvirt guest name or the raw disk image of a "
31958 "Windows guest."
31959 msgstr ""
31960
31961 # type: textblock
31962 #. type: textblock
31963 #: ../tools/virt-win-reg.pl:71
31964 msgid ""
31965 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
31966 "exported (recursively).  For example:"
31967 msgstr ""
31968
31969 # type: verbatim
31970 #. type: verbatim
31971 #: ../tools/virt-win-reg.pl:74
31972 #, no-wrap
31973 msgid ""
31974 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
31975 "\n"
31976 msgstr ""
31977
31978 # type: textblock
31979 #. type: textblock
31980 #: ../tools/virt-win-reg.pl:76
31981 msgid ""
31982 "You can also display single values from within registry keys, for example:"
31983 msgstr ""
31984
31985 # type: verbatim
31986 #. type: verbatim
31987 #: ../tools/virt-win-reg.pl:79
31988 #, no-wrap
31989 msgid ""
31990 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
31991 " $ virt-win-reg Windows7 $cvkey ProductName\n"
31992 " Windows 7 Enterprise\n"
31993 "\n"
31994 msgstr ""
31995
31996 # type: textblock
31997 #. type: textblock
31998 #: ../tools/virt-win-reg.pl:83
31999 msgid ""
32000 "With C<--merge>, you can merge a textual regedit file into the Windows "
32001 "Registry:"
32002 msgstr ""
32003
32004 # type: verbatim
32005 #. type: verbatim
32006 #: ../tools/virt-win-reg.pl:86
32007 #, no-wrap
32008 msgid ""
32009 " $ virt-win-reg --merge Windows7 changes.reg\n"
32010 "\n"
32011 msgstr ""
32012
32013 # type: =head2
32014 #. type: =head1
32015 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32016 msgid "NOTE"
32017 msgstr ""
32018
32019 # type: textblock
32020 #. type: textblock
32021 #: ../tools/virt-win-reg.pl:90
32022 msgid ""
32023 "This program is only meant for simple access to the registry.  If you want "
32024 "to do complicated things with the registry, we suggest you download the "
32025 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32026 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32027 "L<hivexregedit(1)>."
32028 msgstr ""
32029
32030 # type: =item
32031 #. type: =item
32032 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32033 msgid "B<--debug>"
32034 msgstr ""
32035
32036 # type: textblock
32037 #. type: textblock
32038 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32039 msgid "Enable debugging messages."
32040 msgstr ""
32041
32042 # type: =item
32043 #. type: =item
32044 #: ../tools/virt-win-reg.pl:157
32045 msgid "B<--merge>"
32046 msgstr ""
32047
32048 # type: textblock
32049 #. type: textblock
32050 #: ../tools/virt-win-reg.pl:159
32051 msgid ""
32052 "In merge mode, this merges a textual regedit file into the Windows Registry "
32053 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32054 "displays or exports Registry entries instead."
32055 msgstr ""
32056
32057 # type: textblock
32058 #. type: textblock
32059 #: ../tools/virt-win-reg.pl:163
32060 msgid ""
32061 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32062 "result in disk corruption.  However exporting (without this flag)  is always "
32063 "safe."
32064 msgstr ""
32065
32066 # type: =item
32067 #. type: =item
32068 #: ../tools/virt-win-reg.pl:171
32069 msgid "B<--encoding> UTF-16LE|ASCII"
32070 msgstr ""
32071
32072 # type: textblock
32073 #. type: textblock
32074 #: ../tools/virt-win-reg.pl:173
32075 msgid ""
32076 "When merging (only), you may need to specify the encoding for strings to be "
32077 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32078 "(3)/ENCODING STRINGS>."
32079 msgstr ""
32080
32081 # type: textblock
32082 #. type: textblock
32083 #: ../tools/virt-win-reg.pl:177
32084 msgid ""
32085 "The default is to use UTF-16LE, which should work with recent versions of "
32086 "Windows."
32087 msgstr ""
32088
32089 # type: =head2
32090 #. type: =head1
32091 #: ../tools/virt-win-reg.pl:402
32092 msgid "SUPPORTED SYSTEMS"
32093 msgstr ""
32094
32095 # type: textblock
32096 #. type: textblock
32097 #: ../tools/virt-win-reg.pl:404
32098 msgid ""
32099 "The program currently supports Windows NT-derived guests starting with "
32100 "Windows XP through to at least Windows 7."
32101 msgstr ""
32102
32103 # type: textblock
32104 #. type: textblock
32105 #: ../tools/virt-win-reg.pl:407
32106 msgid ""
32107 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32108 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32109 "and C<HKEY_USERS\\.DEFAULT>."
32110 msgstr ""
32111
32112 # type: textblock
32113 #. type: textblock
32114 #: ../tools/virt-win-reg.pl:411
32115 msgid ""
32116 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32117 "C<HKEY_USERS>."
32118 msgstr ""
32119
32120 # type: textblock
32121 #. type: textblock
32122 #: ../tools/virt-win-reg.pl:414
32123 msgid ""
32124 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32125 "time."
32126 msgstr ""
32127
32128 # type: =head2
32129 #. type: =head1
32130 #: ../tools/virt-win-reg.pl:417
32131 msgid "ENCODING"
32132 msgstr ""
32133
32134 # type: textblock
32135 #. type: textblock
32136 #: ../tools/virt-win-reg.pl:419
32137 msgid ""
32138 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32139 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32140 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32141 "Windows-style line endings, you may need to reencode the whole file before "
32142 "or after processing."
32143 msgstr ""
32144
32145 # type: textblock
32146 #. type: textblock
32147 #: ../tools/virt-win-reg.pl:425
32148 msgid ""
32149 "To reencode a file from Windows format to Linux (before processing it with "
32150 "the C<--merge> option), you would do something like this:"
32151 msgstr ""
32152
32153 # type: verbatim
32154 #. type: verbatim
32155 #: ../tools/virt-win-reg.pl:428
32156 #, no-wrap
32157 msgid ""
32158 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32159 "\n"
32160 msgstr ""
32161
32162 # type: textblock
32163 #. type: textblock
32164 #: ../tools/virt-win-reg.pl:430
32165 msgid ""
32166 "To go in the opposite direction, after exporting and before sending the file "
32167 "to a Windows user, do something like this:"
32168 msgstr ""
32169
32170 # type: verbatim
32171 #. type: verbatim
32172 #: ../tools/virt-win-reg.pl:433
32173 #, no-wrap
32174 msgid ""
32175 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32176 "\n"
32177 msgstr ""
32178
32179 # type: textblock
32180 #. type: textblock
32181 #: ../tools/virt-win-reg.pl:435
32182 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32183 msgstr ""
32184
32185 # type: textblock
32186 #. type: textblock
32187 #: ../tools/virt-win-reg.pl:437
32188 msgid ""
32189 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32190 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32191 "style (CRLF) line endings, like this:"
32192 msgstr ""
32193
32194 # type: verbatim
32195 #. type: verbatim
32196 #: ../tools/virt-win-reg.pl:441
32197 #, no-wrap
32198 msgid ""
32199 " $ file software.reg\n"
32200 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32201 " with CRLF line terminators\n"
32202 "\n"
32203 msgstr ""
32204
32205 # type: textblock
32206 #. type: textblock
32207 #: ../tools/virt-win-reg.pl:445
32208 msgid "This file would need conversion before you could C<--merge> it."
32209 msgstr ""
32210
32211 # type: =head2
32212 #. type: =head1
32213 #: ../tools/virt-win-reg.pl:447
32214 msgid "CurrentControlSet etc."
32215 msgstr ""
32216
32217 # type: textblock
32218 #. type: textblock
32219 #: ../tools/virt-win-reg.pl:449
32220 msgid ""
32221 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
32222 "Registry at the level of the hive file, and therefore you cannot modify "
32223 "these."
32224 msgstr ""
32225
32226 # type: textblock
32227 #. type: textblock
32228 #: ../tools/virt-win-reg.pl:453
32229 msgid ""
32230 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
32231 "circumstances it might refer to another control set.  The way to find out is "
32232 "to look at the C<HKLM\\SYSTEM\\Select> key:"
32233 msgstr ""
32234
32235 # type: verbatim
32236 #. type: verbatim
32237 #: ../tools/virt-win-reg.pl:457
32238 #, no-wrap
32239 msgid ""
32240 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
32241 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
32242 " \"Current\"=dword:00000001\n"
32243 " \"Default\"=dword:00000001\n"
32244 " \"Failed\"=dword:00000000\n"
32245 " \"LastKnownGood\"=dword:00000002\n"
32246 "\n"
32247 msgstr ""
32248
32249 # type: textblock
32250 #. type: textblock
32251 #: ../tools/virt-win-reg.pl:464
32252 msgid "\"Current\" is the one which Windows will choose when it boots."
32253 msgstr ""
32254
32255 # type: textblock
32256 #. type: textblock
32257 #: ../tools/virt-win-reg.pl:466
32258 msgid ""
32259 "Similarly, other C<Current...> keys in the path may need to be replaced."
32260 msgstr ""
32261
32262 # type: =head1
32263 #. type: =head1
32264 #: ../tools/virt-win-reg.pl:469
32265 msgid "WINDOWS TIPS"
32266 msgstr ""
32267
32268 # type: textblock
32269 #. type: textblock
32270 #: ../tools/virt-win-reg.pl:471
32271 msgid ""
32272 "Note that some of these tips modify the guest disk image.  The guest I<must> "
32273 "be shut off, else you will get disk corruption."
32274 msgstr ""
32275
32276 # type: =head2
32277 #. type: =head2
32278 #: ../tools/virt-win-reg.pl:474
32279 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
32280 msgstr ""
32281
32282 # type: textblock
32283 #. type: textblock
32284 #: ../tools/virt-win-reg.pl:476
32285 msgid ""
32286 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
32287 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
32288 "is uploaded into C<C:\\>:"
32289 msgstr ""
32290
32291 # type: verbatim
32292 #. type: verbatim
32293 #: ../tools/virt-win-reg.pl:480
32294 #, no-wrap
32295 msgid ""
32296 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
32297 "\n"
32298 msgstr ""
32299
32300 # type: textblock
32301 #. type: textblock
32302 #: ../tools/virt-win-reg.pl:482
32303 msgid "Prepare a regedit file containing the registry change:"
32304 msgstr ""
32305
32306 # type: verbatim
32307 #. type: verbatim
32308 #: ../tools/virt-win-reg.pl:484
32309 #, no-wrap
32310 msgid ""
32311 " cat > test.reg <<'EOF'\n"
32312 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
32313 " \"Test\"=\"c:\\\\test.bat\"\n"
32314 " EOF\n"
32315 "\n"
32316 msgstr ""
32317
32318 # type: textblock
32319 #. type: textblock
32320 #: ../tools/virt-win-reg.pl:489
32321 msgid ""
32322 "In this example we use the key C<RunOnce> which means that the script will "
32323 "run precisely once when the first user logs in.  If you want it to run every "
32324 "time a user logs in, replace C<RunOnce> with C<Run>."
32325 msgstr ""
32326
32327 # type: textblock
32328 #. type: textblock
32329 #: ../tools/virt-win-reg.pl:493
32330 msgid "Now update the registry:"
32331 msgstr ""
32332
32333 # type: verbatim
32334 #. type: verbatim
32335 #: ../tools/virt-win-reg.pl:495
32336 #, no-wrap
32337 msgid ""
32338 " virt-win-reg --merge WindowsGuest test.reg\n"
32339 "\n"
32340 msgstr ""
32341
32342 # type: =head2
32343 #. type: =head2
32344 #: ../tools/virt-win-reg.pl:497
32345 msgid "INSTALLING A SERVICE"
32346 msgstr ""
32347
32348 # type: textblock
32349 #. type: textblock
32350 #: ../tools/virt-win-reg.pl:499
32351 msgid ""
32352 "This section assumes you are familiar with Windows services, and you either "
32353 "have a program which handles the Windows Service Control Protocol directly "
32354 "or you want to run any program using a service wrapper like SrvAny or the "
32355 "free RHSrvAny."
32356 msgstr ""
32357
32358 # type: textblock
32359 #. type: textblock
32360 #: ../tools/virt-win-reg.pl:504
32361 msgid ""
32362 "First upload the program and optionally the service wrapper.  In this case "
32363 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
32364 msgstr ""
32365
32366 # type: verbatim
32367 #. type: verbatim
32368 #: ../tools/virt-win-reg.pl:508
32369 #, no-wrap
32370 msgid ""
32371 " guestfish -i -d WindowsGuest <<EOF\n"
32372 "   upload rhsrvany.exe /rhsrvany.exe\n"
32373 "   upload test.exe /test.exe\n"
32374 " EOF\n"
32375 "\n"
32376 msgstr ""
32377
32378 # type: textblock
32379 #. type: textblock
32380 #: ../tools/virt-win-reg.pl:513
32381 msgid ""
32382 "Prepare a regedit file containing the registry changes.  In this example, "
32383 "the first registry change is needed for the service itself or the service "
32384 "wrapper (if used).  The second registry change is only needed because I am "
32385 "using the RHSrvAny service wrapper."
32386 msgstr ""
32387
32388 # type: verbatim
32389 #. type: verbatim
32390 #: ../tools/virt-win-reg.pl:518
32391 #, no-wrap
32392 msgid ""
32393 " cat > service.reg <<'EOF'\n"
32394 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
32395 " \"Type\"=dword:00000010\n"
32396 " \"Start\"=dword:00000002\n"
32397 " \"ErrorControl\"=dword:00000001\n"
32398 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
32399 " \"DisplayName\"=\"RHSrvAny\"\n"
32400 " \"ObjectName\"=\"NetworkService\"\n"
32401 " \n"
32402 msgstr ""
32403
32404 # type: verbatim
32405 #. type: verbatim
32406 #: ../tools/virt-win-reg.pl:527
32407 #, no-wrap
32408 msgid ""
32409 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
32410 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
32411 " \"PWD\"=\"c:\\\\Temp\"\n"
32412 " EOF\n"
32413 "\n"
32414 msgstr ""
32415
32416 # type: textblock
32417 #. type: textblock
32418 #: ../tools/virt-win-reg.pl:538
32419 msgid ""
32420 "For use of C<ControlSet001> see the section above in this manual page.  You "
32421 "may need to adjust this according to the control set that is in use by the "
32422 "guest."
32423 msgstr ""
32424
32425 # type: textblock
32426 #. type: textblock
32427 #: ../tools/virt-win-reg.pl:544
32428 msgid ""
32429 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
32430 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
32431 "privileged account."
32432 msgstr ""
32433
32434 # type: textblock
32435 #. type: textblock
32436 #: ../tools/virt-win-reg.pl:550
32437 msgid ""
32438 "For the meaning of the magic numbers, see this Microsoft KB article: "
32439 "L<http://support.microsoft.com/kb/103000>."
32440 msgstr ""
32441
32442 # type: textblock
32443 #. type: textblock
32444 #: ../tools/virt-win-reg.pl:555
32445 msgid "Update the registry:"
32446 msgstr ""
32447
32448 # type: verbatim
32449 #. type: verbatim
32450 #: ../tools/virt-win-reg.pl:557
32451 #, no-wrap
32452 msgid ""
32453 " virt-win-reg --merge WindowsGuest service.reg\n"
32454 "\n"
32455 msgstr ""
32456
32457 # type: textblock
32458 #. type: textblock
32459 #: ../tools/virt-win-reg.pl:561
32460 msgid ""
32461 "Be careful when passing parameters containing C<\\> (backslash) in the "
32462 "shell.  Usually you will have to use 'single quotes' or double backslashes "
32463 "(but not both) to protect them from the shell."
32464 msgstr ""
32465
32466 # type: textblock
32467 #. type: textblock
32468 #: ../tools/virt-win-reg.pl:565
32469 msgid "Paths and value names are case-insensitive."
32470 msgstr ""
32471
32472 # type: textblock
32473 #. type: textblock
32474 #: ../tools/virt-win-reg.pl:574
32475 msgid ""
32476 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
32477 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
32478 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32479 msgstr ""
32480
32481 # type: textblock
32482 #. type: textblock
32483 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
32484 msgid ""
32485 "When reporting bugs, please enable debugging and capture the I<complete> "
32486 "output:"
32487 msgstr ""
32488
32489 # type: verbatim
32490 #. type: verbatim
32491 #: ../tools/virt-win-reg.pl:592
32492 #, no-wrap
32493 msgid ""
32494 " export LIBGUESTFS_DEBUG=1\n"
32495 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
32496 "\n"
32497 msgstr ""
32498
32499 # type: textblock
32500 #. type: textblock
32501 #: ../tools/virt-win-reg.pl:595
32502 msgid ""
32503 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
32504 "redhat.com/>"
32505 msgstr ""
32506
32507 # type: textblock
32508 #. type: textblock
32509 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
32510 #: ../tools/virt-make-fs.pl:565
32511 msgid "Copyright (C) 2010 Red Hat Inc."
32512 msgstr ""
32513
32514 # type: textblock
32515 #. type: textblock
32516 #: ../tools/virt-resize.pl:42
32517 msgid "virt-resize - Resize a virtual machine disk"
32518 msgstr ""
32519
32520 # type: verbatim
32521 #. type: verbatim
32522 #: ../tools/virt-resize.pl:46
32523 #, no-wrap
32524 msgid ""
32525 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
32526 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
32527 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
32528 "\n"
32529 msgstr ""
32530
32531 # type: textblock
32532 #. type: textblock
32533 #: ../tools/virt-resize.pl:52
32534 msgid ""
32535 "Virt-resize is a tool which can resize a virtual machine disk, making it "
32536 "larger or smaller overall, and resizing or deleting any partitions contained "
32537 "within."
32538 msgstr ""
32539
32540 # type: textblock
32541 #. type: textblock
32542 #: ../tools/virt-resize.pl:56
32543 msgid ""
32544 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
32545 "not> be used on live virtual machines - for consistent results, shut the "
32546 "virtual machine down before resizing it."
32547 msgstr ""
32548
32549 # type: textblock
32550 #. type: textblock
32551 #: ../tools/virt-resize.pl:60
32552 msgid ""
32553 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
32554 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
32555 msgstr ""
32556
32557 # type: textblock
32558 #. type: textblock
32559 #: ../tools/virt-resize.pl:66
32560 msgid ""
32561 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
32562 "fill the extra 5GB of space."
32563 msgstr ""
32564
32565 #. type: verbatim
32566 #: ../tools/virt-resize.pl:69
32567 #, no-wrap
32568 msgid ""
32569 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
32570 " virt-filesystems --long -h --all -a olddisk\n"
32571 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
32572 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
32573 "\n"
32574 msgstr ""
32575
32576 # type: textblock
32577 #. type: textblock
32578 #: ../tools/virt-resize.pl:74
32579 msgid ""
32580 "As above, but make the /boot partition 200MB bigger, while giving the "
32581 "remaining space to /dev/sda2:"
32582 msgstr ""
32583
32584 # type: verbatim
32585 #. type: verbatim
32586 #: ../tools/virt-resize.pl:77
32587 #, no-wrap
32588 msgid ""
32589 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
32590 "\n"
32591 msgstr ""
32592
32593 # type: textblock
32594 #. type: textblock
32595 #: ../tools/virt-resize.pl:79
32596 msgid "As above, but the output format will be uncompressed qcow2:"
32597 msgstr ""
32598
32599 # type: verbatim
32600 #. type: verbatim
32601 #: ../tools/virt-resize.pl:81
32602 #, no-wrap
32603 msgid ""
32604 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
32605 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
32606 "\n"
32607 msgstr ""
32608
32609 # type: =head1
32610 #. type: =head1
32611 #: ../tools/virt-resize.pl:84
32612 msgid "DETAILED USAGE"
32613 msgstr ""
32614
32615 # type: =head2
32616 #. type: =head2
32617 #: ../tools/virt-resize.pl:86
32618 msgid "EXPANDING A VIRTUAL MACHINE DISK"
32619 msgstr ""
32620
32621 # type: =item
32622 #. type: =item
32623 #: ../tools/virt-resize.pl:90
32624 msgid "1. Shut down the virtual machine"
32625 msgstr ""
32626
32627 # type: =item
32628 #. type: =item
32629 #: ../tools/virt-resize.pl:92
32630 msgid "2. Locate input disk image"
32631 msgstr ""
32632
32633 # type: textblock
32634 #. type: textblock
32635 #: ../tools/virt-resize.pl:94
32636 msgid ""
32637 "Locate the input disk image (ie. the file or device on the host containing "
32638 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
32639 "dumpxml> like this to find the disk image name:"
32640 msgstr ""
32641
32642 # type: verbatim
32643 #. type: verbatim
32644 #: ../tools/virt-resize.pl:98
32645 #, no-wrap
32646 msgid ""
32647 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
32648 " Found 1 nodes:\n"
32649 " -- NODE --\n"
32650 " <source dev=\"/dev/vg/lv_guest\" />\n"
32651 "\n"
32652 msgstr ""
32653
32654 # type: =item
32655 #. type: =item
32656 #: ../tools/virt-resize.pl:103
32657 msgid "3. Look at current sizing"
32658 msgstr ""
32659
32660 # type: textblock
32661 #. type: textblock
32662 #: ../tools/virt-resize.pl:105
32663 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
32664 msgstr ""
32665
32666 # type: verbatim
32667 #. type: verbatim
32668 #: ../tools/virt-resize.pl:108
32669 #, no-wrap
32670 msgid ""
32671 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
32672 " Name       Type       Size  Parent\n"
32673 " /dev/sda1  partition  101M  /dev/sda\n"
32674 " /dev/sda2  partition  7.9G  /dev/sda\n"
32675 " /dev/sda   device     8.0G  -\n"
32676 "\n"
32677 msgstr ""
32678
32679 # type: textblock
32680 #. type: textblock
32681 #: ../tools/virt-resize.pl:114
32682 msgid ""
32683 "(This example is a virtual machine with an 8 GB disk which we would like to "
32684 "expand up to 10 GB)."
32685 msgstr ""
32686
32687 # type: =item
32688 #. type: =item
32689 #: ../tools/virt-resize.pl:117
32690 msgid "4. Create output disk"
32691 msgstr ""
32692
32693 # type: textblock
32694 #. type: textblock
32695 #: ../tools/virt-resize.pl:119
32696 msgid ""
32697 "Virt-resize cannot do in-place disk modifications.  You have to have space "
32698 "to store the resized output disk."
32699 msgstr ""
32700
32701 # type: textblock
32702 #. type: textblock
32703 #: ../tools/virt-resize.pl:122
32704 msgid ""
32705 "To store the resized disk image in a file, create a file of a suitable size:"
32706 msgstr ""
32707
32708 # type: verbatim
32709 #. type: verbatim
32710 #: ../tools/virt-resize.pl:125
32711 #, no-wrap
32712 msgid ""
32713 " # rm -f outdisk\n"
32714 " # truncate -s 10G outdisk\n"
32715 "\n"
32716 msgstr ""
32717
32718 # type: textblock
32719 #. type: textblock
32720 #: ../tools/virt-resize.pl:128
32721 msgid "Or use L<lvcreate(1)> to create a logical volume:"
32722 msgstr ""
32723
32724 # type: verbatim
32725 #. type: verbatim
32726 #: ../tools/virt-resize.pl:130
32727 #, no-wrap
32728 msgid ""
32729 " # lvcreate -L 10G -n lv_name vg_name\n"
32730 "\n"
32731 msgstr ""
32732
32733 # type: textblock
32734 #. type: textblock
32735 #: ../tools/virt-resize.pl:132
32736 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
32737 msgstr ""
32738
32739 # type: verbatim
32740 #. type: verbatim
32741 #: ../tools/virt-resize.pl:134
32742 #, no-wrap
32743 msgid ""
32744 " # virsh pool-list\n"
32745 " # virsh vol-create-as poolname newvol 10G\n"
32746 "\n"
32747 msgstr ""
32748
32749 # type: =item
32750 #. type: =item
32751 #: ../tools/virt-resize.pl:137
32752 msgid "5. Resize"
32753 msgstr ""
32754
32755 # type: textblock
32756 #. type: textblock
32757 #: ../tools/virt-resize.pl:139
32758 msgid ""
32759 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
32760 "file) and the output disk.  The output disk is the one created in the "
32761 "previous step."
32762 msgstr ""
32763
32764 # type: verbatim
32765 #. type: verbatim
32766 #: ../tools/virt-resize.pl:143
32767 #, no-wrap
32768 msgid ""
32769 " # virt-resize indisk outdisk\n"
32770 "\n"
32771 msgstr ""
32772
32773 # type: textblock
32774 #. type: textblock
32775 #: ../tools/virt-resize.pl:145
32776 msgid ""
32777 "This command just copies disk image C<indisk> to disk image C<outdisk> "
32778 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
32779 "larger, then an extra, empty partition is created at the end of the disk "
32780 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
32781 "error."
32782 msgstr ""
32783
32784 # type: textblock
32785 #. type: textblock
32786 #: ../tools/virt-resize.pl:151
32787 msgid ""
32788 "More realistically you'd want to expand existing partitions in the disk "
32789 "image by passing extra options (for the full list see the L</OPTIONS> "
32790 "section below)."
32791 msgstr ""
32792
32793 # type: textblock
32794 #. type: textblock
32795 #: ../tools/virt-resize.pl:155
32796 msgid ""
32797 "L</--expand> is the most useful option.  It expands the named partition "
32798 "within the disk to fill any extra space:"
32799 msgstr ""
32800
32801 # type: verbatim
32802 #. type: verbatim
32803 #: ../tools/virt-resize.pl:158
32804 #, no-wrap
32805 msgid ""
32806 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
32807 "\n"
32808 msgstr ""
32809
32810 # type: textblock
32811 #. type: textblock
32812 #: ../tools/virt-resize.pl:160
32813 msgid ""
32814 "(In this case, an extra partition is I<not> created at the end of the disk, "
32815 "because there will be no unused space)."
32816 msgstr ""
32817
32818 # type: textblock
32819 #. type: textblock
32820 #: ../tools/virt-resize.pl:163
32821 msgid ""
32822 "L</--resize> is the other commonly used option.  The following would "
32823 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
32824 "rest of the available space:"
32825 msgstr ""
32826
32827 # type: verbatim
32828 #. type: verbatim
32829 #: ../tools/virt-resize.pl:167
32830 #, no-wrap
32831 msgid ""
32832 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
32833 "     indisk outdisk\n"
32834 "\n"
32835 msgstr ""
32836
32837 # type: textblock
32838 #. type: textblock
32839 #: ../tools/virt-resize.pl:170
32840 msgid ""
32841 "If the expanded partition in the image contains a filesystem or LVM PV, then "
32842 "if virt-resize knows how, it will resize the contents, the equivalent of "
32843 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
32844 ">.  However virt-resize does not know how to resize some filesystems, so you "
32845 "would have to online resize them after booting the guest."
32846 msgstr ""
32847
32848 # type: textblock
32849 #. type: textblock
32850 #: ../tools/virt-resize.pl:177
32851 msgid "Other options are covered below."
32852 msgstr ""
32853
32854 # type: =item
32855 #. type: =item
32856 #: ../tools/virt-resize.pl:179
32857 msgid "6. Test"
32858 msgstr ""
32859
32860 # type: textblock
32861 #. type: textblock
32862 #: ../tools/virt-resize.pl:181
32863 msgid "Thoroughly test the new disk image I<before> discarding the old one."
32864 msgstr ""
32865
32866 # type: textblock
32867 #. type: textblock
32868 #: ../tools/virt-resize.pl:183
32869 msgid "If you are using libvirt, edit the XML to point at the new disk:"
32870 msgstr ""
32871
32872 # type: verbatim
32873 #. type: verbatim
32874 #: ../tools/virt-resize.pl:185
32875 #, no-wrap
32876 msgid ""
32877 " # virsh edit guestname\n"
32878 "\n"
32879 msgstr ""
32880
32881 # type: textblock
32882 #. type: textblock
32883 #: ../tools/virt-resize.pl:187
32884 msgid ""
32885 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
32886 "html#elementsDisks>"
32887 msgstr ""
32888
32889 # type: textblock
32890 #. type: textblock
32891 #: ../tools/virt-resize.pl:190
32892 msgid "Then start up the domain with the new, resized disk:"
32893 msgstr ""
32894
32895 # type: verbatim
32896 #. type: verbatim
32897 #: ../tools/virt-resize.pl:192
32898 #, no-wrap
32899 msgid ""
32900 " # virsh start guestname\n"
32901 "\n"
32902 msgstr ""
32903
32904 # type: textblock
32905 #. type: textblock
32906 #: ../tools/virt-resize.pl:194
32907 msgid ""
32908 "and check that it still works.  See also the L</NOTES> section below for "
32909 "additional information."
32910 msgstr ""
32911
32912 # type: =item
32913 #. type: =item
32914 #: ../tools/virt-resize.pl:197
32915 msgid "7. Resize LVs etc inside the guest"
32916 msgstr ""
32917
32918 # type: textblock
32919 #. type: textblock
32920 #: ../tools/virt-resize.pl:199
32921 msgid "(This can also be done offline using L<guestfish(1)>)"
32922 msgstr ""
32923
32924 # type: textblock
32925 #. type: textblock
32926 #: ../tools/virt-resize.pl:201
32927 msgid ""
32928 "Once the guest has booted you should see the new space available, at least "
32929 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
32930 "may need to resize LVs inside PVs, and also resize filesystem types that "
32931 "virt-resize does not know how to expand."
32932 msgstr ""
32933
32934 # type: =head2
32935 #. type: =head2
32936 #: ../tools/virt-resize.pl:208
32937 msgid "SHRINKING A VIRTUAL MACHINE DISK"
32938 msgstr ""
32939
32940 # type: textblock
32941 #. type: textblock
32942 #: ../tools/virt-resize.pl:210
32943 msgid ""
32944 "Shrinking is somewhat more complex than expanding, and only an overview is "
32945 "given here."
32946 msgstr ""
32947
32948 # type: textblock
32949 #. type: textblock
32950 #: ../tools/virt-resize.pl:213
32951 msgid ""
32952 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
32953 "filesystems).  The user has to shrink content before passing the disk image "
32954 "to virt-resize, and virt-resize will check that the content has been shrunk "
32955 "properly."
32956 msgstr ""
32957
32958 # type: textblock
32959 #. type: textblock
32960 #: ../tools/virt-resize.pl:218
32961 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
32962 msgstr ""
32963
32964 # type: textblock
32965 #. type: textblock
32966 #: ../tools/virt-resize.pl:220
32967 msgid ""
32968 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
32969 "steps 3 and 4 above to allocate a new disk image."
32970 msgstr ""
32971
32972 # type: textblock
32973 #. type: textblock
32974 #: ../tools/virt-resize.pl:223
32975 msgid ""
32976 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
32977 msgstr ""
32978
32979 # type: =head2
32980 #. type: =head2
32981 #: ../tools/virt-resize.pl:226
32982 msgid "IGNORING OR DELETING PARTITIONS"
32983 msgstr ""
32984
32985 # type: textblock
32986 #. type: textblock
32987 #: ../tools/virt-resize.pl:228
32988 msgid ""
32989 "virt-resize also gives a convenient way to ignore or delete partitions when "
32990 "copying from the input disk to the output disk.  Ignoring a partition speeds "
32991 "up the copy where you don't care about the existing contents of a "
32992 "partition.  Deleting a partition removes it completely, but note that it "
32993 "also renumbers any partitions after the one which is deleted, which can "
32994 "leave some guests unbootable."
32995 msgstr ""
32996
32997 # type: =head2
32998 #. type: =head2
32999 #: ../tools/virt-resize.pl:235
33000 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33001 msgstr ""
33002
33003 # type: textblock
33004 #. type: textblock
33005 #: ../tools/virt-resize.pl:237
33006 msgid ""
33007 "If the input disk is in qcow2 format, then you may prefer that the output is "
33008 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33009 "the fly.  The output format is simply determined by the format of the empty "
33010 "output container that you provide.  Thus to create qcow2 output, use:"
33011 msgstr ""
33012
33013 # type: verbatim
33014 #. type: verbatim
33015 #: ../tools/virt-resize.pl:243
33016 #, no-wrap
33017 msgid ""
33018 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33019 "\n"
33020 msgstr ""
33021
33022 # type: textblock
33023 #. type: textblock
33024 #: ../tools/virt-resize.pl:245
33025 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33026 msgstr ""
33027
33028 # type: textblock
33029 #. type: textblock
33030 #: ../tools/virt-resize.pl:247
33031 msgid "Similarly, to get non-sparse raw output use:"
33032 msgstr ""
33033
33034 # type: verbatim
33035 #. type: verbatim
33036 #: ../tools/virt-resize.pl:249
33037 #, no-wrap
33038 msgid ""
33039 " fallocate -l size outdisk\n"
33040 "\n"
33041 msgstr ""
33042
33043 # type: textblock
33044 #. type: textblock
33045 #: ../tools/virt-resize.pl:251
33046 msgid ""
33047 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33048 "dev/zero of=outdisk bs=1M count=..>)"
33049 msgstr ""
33050
33051 # type: textblock
33052 #. type: textblock
33053 #: ../tools/virt-resize.pl:264
33054 msgid "Display help."
33055 msgstr ""
33056
33057 # type: =item
33058 #. type: =item
33059 #: ../tools/virt-resize.pl:278
33060 msgid "B<--resize part=size>"
33061 msgstr ""
33062
33063 # type: textblock
33064 #. type: textblock
33065 #: ../tools/virt-resize.pl:280
33066 msgid ""
33067 "Resize the named partition (expanding or shrinking it) so that it has the "
33068 "given size."
33069 msgstr ""
33070
33071 # type: textblock
33072 #. type: textblock
33073 #: ../tools/virt-resize.pl:283
33074 msgid ""
33075 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33076 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33077 "Exabytes; or as a percentage of the current size; or as a relative number or "
33078 "percentage.  For example:"
33079 msgstr ""
33080
33081 # type: verbatim
33082 #. type: verbatim
33083 #: ../tools/virt-resize.pl:288
33084 #, no-wrap
33085 msgid ""
33086 " --resize /dev/sda2=10G\n"
33087 "\n"
33088 msgstr ""
33089
33090 # type: verbatim
33091 #. type: verbatim
33092 #: ../tools/virt-resize.pl:290
33093 #, no-wrap
33094 msgid ""
33095 " --resize /dev/sda4=90%\n"
33096 "\n"
33097 msgstr ""
33098
33099 # type: verbatim
33100 #. type: verbatim
33101 #: ../tools/virt-resize.pl:292
33102 #, no-wrap
33103 msgid ""
33104 " --resize /dev/sda2=+1G\n"
33105 "\n"
33106 msgstr ""
33107
33108 # type: verbatim
33109 #. type: verbatim
33110 #: ../tools/virt-resize.pl:294
33111 #, no-wrap
33112 msgid ""
33113 " --resize /dev/sda2=-200M\n"
33114 "\n"
33115 msgstr ""
33116
33117 # type: verbatim
33118 #. type: verbatim
33119 #: ../tools/virt-resize.pl:296
33120 #, no-wrap
33121 msgid ""
33122 " --resize /dev/sda1=+128K\n"
33123 "\n"
33124 msgstr ""
33125
33126 # type: verbatim
33127 #. type: verbatim
33128 #: ../tools/virt-resize.pl:298
33129 #, no-wrap
33130 msgid ""
33131 " --resize /dev/sda1=+10%\n"
33132 "\n"
33133 msgstr ""
33134
33135 # type: verbatim
33136 #. type: verbatim
33137 #: ../tools/virt-resize.pl:300
33138 #, no-wrap
33139 msgid ""
33140 " --resize /dev/sda1=-10%\n"
33141 "\n"
33142 msgstr ""
33143
33144 # type: textblock
33145 #. type: textblock
33146 #: ../tools/virt-resize.pl:302
33147 msgid ""
33148 "You can increase the size of any partition.  Virt-resize will expand the "
33149 "direct content of the partition if it knows how (see C<--expand> below)."
33150 msgstr ""
33151
33152 # type: textblock
33153 #. type: textblock
33154 #: ../tools/virt-resize.pl:306
33155 msgid ""
33156 "You can only I<decrease> the size of partitions that contain filesystems or "
33157 "PVs which have already been shrunk.  Virt-resize will check this has been "
33158 "done before proceeding, or else will print an error (see also C<--resize-"
33159 "force>)."
33160 msgstr ""
33161
33162 # type: textblock
33163 #. type: textblock
33164 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
33165 #: ../tools/virt-resize.pl:420
33166 msgid "You can give this option multiple times."
33167 msgstr ""
33168
33169 # type: =item
33170 #. type: =item
33171 #: ../tools/virt-resize.pl:317
33172 msgid "B<--resize-force part=size>"
33173 msgstr ""
33174
33175 # type: textblock
33176 #. type: textblock
33177 #: ../tools/virt-resize.pl:319
33178 msgid ""
33179 "This is the same as C<--resize> except that it will let you decrease the "
33180 "size of any partition.  Generally this means you will lose any data which "
33181 "was at the end of the partition you shrink, but you may not care about that "
33182 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
33183 "as a swap partition)."
33184 msgstr ""
33185
33186 # type: textblock
33187 #. type: textblock
33188 #: ../tools/virt-resize.pl:325
33189 msgid "See also the C<--ignore> option."
33190 msgstr ""
33191
33192 # type: =item
33193 #. type: =item
33194 #: ../tools/virt-resize.pl:331
33195 msgid "B<--expand part>"
33196 msgstr ""
33197
33198 # type: textblock
33199 #. type: textblock
33200 #: ../tools/virt-resize.pl:333
33201 msgid ""
33202 "Expand the named partition so it uses up all extra space (space left over "
33203 "after any other resize changes that you request have been done)."
33204 msgstr ""
33205
33206 # type: textblock
33207 #. type: textblock
33208 #: ../tools/virt-resize.pl:336
33209 msgid ""
33210 "If virt-resize knows how, it will expand the direct content of the "
33211 "partition.  For example, if the partition is an LVM PV, it will expand the "
33212 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
33213 "content it doesn't know about alone."
33214 msgstr ""
33215
33216 # type: textblock
33217 #. type: textblock
33218 #: ../tools/virt-resize.pl:341
33219 msgid "Currently virt-resize can resize:"
33220 msgstr ""
33221
33222 # type: textblock
33223 #. type: textblock
33224 #: ../tools/virt-resize.pl:347
33225 msgid ""
33226 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
33227 "partition."
33228 msgstr ""
33229
33230 # type: textblock
33231 #. type: textblock
33232 #: ../tools/virt-resize.pl:352
33233 msgid ""
33234 "NTFS filesystems contained directly in a partition, if libguestfs was "
33235 "compiled with support for NTFS."
33236 msgstr ""
33237
33238 # type: textblock
33239 #. type: textblock
33240 #: ../tools/virt-resize.pl:355
33241 msgid ""
33242 "The filesystem must have been shut down consistently last time it was used.  "
33243 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
33244 "consistency check, so at the first boot after resizing Windows will check "
33245 "the disk."
33246 msgstr ""
33247
33248 # type: textblock
33249 #. type: textblock
33250 #: ../tools/virt-resize.pl:362
33251 msgid ""
33252 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
33253 "inside the PV, but see the C<--LV-expand> option.  The user could also "
33254 "resize LVs as desired after boot."
33255 msgstr ""
33256
33257 # type: textblock
33258 #. type: textblock
33259 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
33260 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
33261 msgstr ""
33262
33263 # type: =item
33264 #. type: =item
33265 #: ../tools/virt-resize.pl:374
33266 msgid "B<--shrink part>"
33267 msgstr ""
33268
33269 # type: textblock
33270 #. type: textblock
33271 #: ../tools/virt-resize.pl:376
33272 msgid ""
33273 "Shrink the named partition until the overall disk image fits in the "
33274 "destination.  The named partition B<must> contain a filesystem or PV which "
33275 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
33276 "online tools).  Virt-resize will check this and give an error if it has not "
33277 "been done."
33278 msgstr ""
33279
33280 # type: textblock
33281 #. type: textblock
33282 #: ../tools/virt-resize.pl:382
33283 msgid ""
33284 "The amount by which the overall disk must be shrunk (after carrying out all "
33285 "other operations requested by the user) is called the \"deficit\".  For "
33286 "example, a straight copy (assume no other operations)  from a 5GB disk image "
33287 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
33288 "would give an error unless the user specified a partition to shrink and that "
33289 "partition had more than a gigabyte of free space."
33290 msgstr ""
33291
33292 # type: =item
33293 #. type: =item
33294 #: ../tools/virt-resize.pl:396
33295 msgid "B<--ignore part>"
33296 msgstr ""
33297
33298 # type: textblock
33299 #. type: textblock
33300 #: ../tools/virt-resize.pl:398
33301 msgid ""
33302 "Ignore the named partition.  Effectively this means the partition is "
33303 "allocated on the destination disk, but the content is not copied across from "
33304 "the source disk.  The content of the partition will be blank (all zero "
33305 "bytes)."
33306 msgstr ""
33307
33308 # type: =item
33309 #. type: =item
33310 #: ../tools/virt-resize.pl:409
33311 msgid "B<--delete part>"
33312 msgstr ""
33313
33314 # type: textblock
33315 #. type: textblock
33316 #: ../tools/virt-resize.pl:411
33317 msgid ""
33318 "Delete the named partition.  It would be more accurate to describe this as "
33319 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
33320 "the original disk image is left intact."
33321 msgstr ""
33322
33323 # type: textblock
33324 #. type: textblock
33325 #: ../tools/virt-resize.pl:415
33326 msgid ""
33327 "Note that when you delete a partition, then anything contained in the "
33328 "partition is also deleted.  Furthermore, this causes any partitions that "
33329 "come after to be I<renumbered>, which can easily make your guest unbootable."
33330 msgstr ""
33331
33332 # type: =item
33333 #. type: =item
33334 #: ../tools/virt-resize.pl:426
33335 msgid "B<--LV-expand logvol>"
33336 msgstr ""
33337
33338 # type: textblock
33339 #. type: textblock
33340 #: ../tools/virt-resize.pl:428
33341 msgid ""
33342 "This takes the logical volume and, as a final step, expands it to fill all "
33343 "the space available in its volume group.  A typical usage, assuming a Linux "
33344 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
33345 "lv_root> would be:"
33346 msgstr ""
33347
33348 # type: verbatim
33349 #. type: verbatim
33350 #: ../tools/virt-resize.pl:433
33351 #, no-wrap
33352 msgid ""
33353 " virt-resize indisk outdisk \\\n"
33354 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
33355 "\n"
33356 msgstr ""
33357
33358 # type: textblock
33359 #. type: textblock
33360 #: ../tools/virt-resize.pl:436
33361 msgid ""
33362 "This would first expand the partition (and PV), and then expand the root "
33363 "device to fill the extra space in the PV."
33364 msgstr ""
33365
33366 # type: textblock
33367 #. type: textblock
33368 #: ../tools/virt-resize.pl:439
33369 msgid ""
33370 "The contents of the LV are also resized if virt-resize knows how to do "
33371 "that.  You can stop virt-resize from trying to expand the content by using "
33372 "the option C<--no-expand-content>."
33373 msgstr ""
33374
33375 # type: textblock
33376 #. type: textblock
33377 #: ../tools/virt-resize.pl:443
33378 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
33379 msgstr ""
33380
33381 # type: textblock
33382 #. type: textblock
33383 #: ../tools/virt-resize.pl:446
33384 msgid ""
33385 "You can give this option multiple times, I<but> it doesn't make sense to do "
33386 "this unless the logical volumes you specify are all in different volume "
33387 "groups."
33388 msgstr ""
33389
33390 # type: =item
33391 #. type: =item
33392 #: ../tools/virt-resize.pl:454
33393 msgid "B<--no-copy-boot-loader>"
33394 msgstr ""
33395
33396 # type: textblock
33397 #. type: textblock
33398 #: ../tools/virt-resize.pl:456
33399 msgid ""
33400 "By default, virt-resize copies over some sectors at the start of the disk "
33401 "(up to the beginning of the first partition).  Commonly these sectors "
33402 "contain the Master Boot Record (MBR) and the boot loader, and are required "
33403 "in order for the guest to boot correctly."
33404 msgstr ""
33405
33406 # type: textblock
33407 #. type: textblock
33408 #: ../tools/virt-resize.pl:461
33409 msgid ""
33410 "If you specify this flag, then this initial copy is not done.  You may need "
33411 "to reinstall the boot loader in this case."
33412 msgstr ""
33413
33414 # type: =item
33415 #. type: =item
33416 #: ../tools/virt-resize.pl:469
33417 msgid "B<--no-extra-partition>"
33418 msgstr ""
33419
33420 # type: textblock
33421 #. type: textblock
33422 #: ../tools/virt-resize.pl:471
33423 msgid ""
33424 "By default, virt-resize creates an extra partition if there is any extra, "
33425 "unused space after all resizing has happened.  Use this option to prevent "
33426 "the extra partition from being created.  If you do this then the extra space "
33427 "will be inaccessible until you run fdisk, parted, or some other partitioning "
33428 "tool in the guest."
33429 msgstr ""
33430
33431 # type: textblock
33432 #. type: textblock
33433 #: ../tools/virt-resize.pl:477
33434 msgid ""
33435 "Note that if the surplus space is smaller than 10 MB, no extra partition "
33436 "will be created."
33437 msgstr ""
33438
33439 # type: =item
33440 #. type: =item
33441 #: ../tools/virt-resize.pl:484
33442 msgid "B<--no-expand-content>"
33443 msgstr ""
33444
33445 # type: textblock
33446 #. type: textblock
33447 #: ../tools/virt-resize.pl:486
33448 msgid ""
33449 "By default, virt-resize will try to expand the direct contents of "
33450 "partitions, if it knows how (see C<--expand> option above)."
33451 msgstr ""
33452
33453 # type: textblock
33454 #. type: textblock
33455 #: ../tools/virt-resize.pl:489
33456 msgid ""
33457 "If you give the C<--no-expand-content> option then virt-resize will not "
33458 "attempt this."
33459 msgstr ""
33460
33461 # type: =item
33462 #. type: =item
33463 #: ../tools/virt-resize.pl:496
33464 msgid "B<-d> | B<--debug>"
33465 msgstr ""
33466
33467 # type: =item
33468 #. type: =item
33469 #: ../tools/virt-resize.pl:504
33470 msgid "B<-n> | B<--dryrun>"
33471 msgstr ""
33472
33473 # type: textblock
33474 #. type: textblock
33475 #: ../tools/virt-resize.pl:506
33476 msgid "Print a summary of what would be done, but don't do anything."
33477 msgstr ""
33478
33479 # type: =item
33480 #. type: =item
33481 #: ../tools/virt-resize.pl:512
33482 msgid "B<-q> | B<--quiet>"
33483 msgstr ""
33484
33485 # type: textblock
33486 #. type: textblock
33487 #: ../tools/virt-resize.pl:514
33488 msgid "Don't print the summary."
33489 msgstr ""
33490
33491 # type: textblock
33492 #. type: textblock
33493 #: ../tools/virt-resize.pl:522
33494 msgid ""
33495 "Specify the format of the input disk image.  If this flag is not given then "
33496 "it is auto-detected from the image itself."
33497 msgstr ""
33498
33499 # type: textblock
33500 #. type: textblock
33501 #: ../tools/virt-resize.pl:528
33502 msgid ""
33503 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
33504 "AND NON-SPARSE RAW FORMATS>."
33505 msgstr ""
33506
33507 # type: =item
33508 #. type: =item
33509 #: ../tools/virt-resize.pl:535
33510 msgid "B<--output-format> raw"
33511 msgstr ""
33512
33513 # type: textblock
33514 #. type: textblock
33515 #: ../tools/virt-resize.pl:537
33516 msgid ""
33517 "Specify the format of the output disk image.  If this flag is not given then "
33518 "it is auto-detected from the image itself."
33519 msgstr ""
33520
33521 # type: textblock
33522 #. type: textblock
33523 #: ../tools/virt-resize.pl:543
33524 msgid ""
33525 "Note that you still need to create the output disk with the right format.  "
33526 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
33527 msgstr ""
33528
33529 # type: =head1
33530 #. type: =head1
33531 #: ../tools/virt-resize.pl:1419
33532 msgid "NOTES"
33533 msgstr ""
33534
33535 # type: =head2
33536 #. type: =head2
33537 #: ../tools/virt-resize.pl:1421
33538 msgid "\"Partition 1 does not end on cylinder boundary.\""
33539 msgstr ""
33540
33541 # type: textblock
33542 #. type: textblock
33543 #: ../tools/virt-resize.pl:1423
33544 msgid ""
33545 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
33546 "means the partitions will not be aligned to the ancient CHS geometry.  "
33547 "However CHS geometry is meaningless for disks manufactured since the early "
33548 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
33549 "cylinders is not required by any modern operating system."
33550 msgstr ""
33551
33552 # type: =head2
33553 #. type: =head2
33554 #: ../tools/virt-resize.pl:1430
33555 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
33556 msgstr ""
33557
33558 # type: textblock
33559 #. type: textblock
33560 #: ../tools/virt-resize.pl:1432
33561 msgid ""
33562 "In Windows Vista and later versions, Microsoft switched to using a separate "
33563 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
33564 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
33565 "the boot partition.  Doing so seems to break the guest completely.  However "
33566 "expanding the second partition (ie. C: drive) should work."
33567 msgstr ""
33568
33569 # type: textblock
33570 #. type: textblock
33571 #: ../tools/virt-resize.pl:1439
33572 msgid ""
33573 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
33574 "NTFS partitions have been expanded.  This is just a safety check and (unless "
33575 "it find errors) is nothing to worry about."
33576 msgstr ""
33577
33578 # type: =head2
33579 #. type: =head2
33580 #: ../tools/virt-resize.pl:1443
33581 msgid "GUEST BOOT STUCK AT \"GRUB\""
33582 msgstr ""
33583
33584 # type: textblock
33585 #. type: textblock
33586 #: ../tools/virt-resize.pl:1445
33587 msgid ""
33588 "If a Linux guest does not boot after resizing, and the boot is stuck after "
33589 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
33590 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
33591 "although we think is to do with partition alignment."
33592 msgstr ""
33593
33594 # type: verbatim
33595 #. type: verbatim
33596 #: ../tools/virt-resize.pl:1450
33597 #, no-wrap
33598 msgid ""
33599 " guestfish -i -a newdisk\n"
33600 " ><fs> cat /boot/grub/device.map\n"
33601 " # check the contents of this file are sensible or\n"
33602 " # edit the file if necessary\n"
33603 " ><fs> grub-install / /dev/vda\n"
33604 " ><fs> exit\n"
33605 "\n"
33606 msgstr ""
33607
33608 # type: textblock
33609 #. type: textblock
33610 #: ../tools/virt-resize.pl:1457
33611 msgid ""
33612 "For more flexible guest reconfiguration, including if you need to specify "
33613 "other parameters to grub-install, use L<virt-rescue(1)>."
33614 msgstr ""
33615
33616 # type: =head1
33617 #. type: =head1
33618 #: ../tools/virt-resize.pl:1460
33619 msgid "ALTERNATIVE TOOLS"
33620 msgstr ""
33621
33622 # type: textblock
33623 #. type: textblock
33624 #: ../tools/virt-resize.pl:1462
33625 msgid ""
33626 "There are several proprietary tools for resizing partitions.  We won't "
33627 "mention any here."
33628 msgstr ""
33629
33630 # type: textblock
33631 #. type: textblock
33632 #: ../tools/virt-resize.pl:1465
33633 msgid ""
33634 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
33635 "operations on disk images.  They can resize and move partitions, but I don't "
33636 "think they can do anything with the contents, and they certainly don't "
33637 "understand LVM."
33638 msgstr ""
33639
33640 # type: textblock
33641 #. type: textblock
33642 #: ../tools/virt-resize.pl:1470
33643 msgid ""
33644 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
33645 "but at a much lower level.  You will probably end up hand-calculating sector "
33646 "offsets, which is something that virt-resize was designed to avoid.  If you "
33647 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
33648 "C<--debug> flag."
33649 msgstr ""
33650
33651 # type: textblock
33652 #. type: textblock
33653 #: ../tools/virt-resize.pl:1485
33654 msgid ""
33655 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
33656 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
33657 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
33658 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
33659 "libguestfs.org/>."
33660 msgstr ""
33661
33662 # type: textblock
33663 #. type: textblock
33664 #: ../tools/virt-list-filesystems.pl:32
33665 msgid ""
33666 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33667 msgstr ""
33668
33669 # type: verbatim
33670 #. type: verbatim
33671 #: ../tools/virt-list-filesystems.pl:36
33672 #, no-wrap
33673 msgid ""
33674 " virt-list-filesystems [--options] domname\n"
33675 "\n"
33676 msgstr ""
33677
33678 # type: verbatim
33679 #. type: verbatim
33680 #: ../tools/virt-list-filesystems.pl:38
33681 #, no-wrap
33682 msgid ""
33683 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33684 "\n"
33685 msgstr ""
33686
33687 # type: textblock
33688 #. type: textblock
33689 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33690 msgid ""
33691 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33692 "replacement."
33693 msgstr ""
33694
33695 # type: textblock
33696 #. type: textblock
33697 #: ../tools/virt-list-filesystems.pl:45
33698 msgid ""
33699 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33700 "are contained in a virtual machine or disk image."
33701 msgstr ""
33702
33703 # type: textblock
33704 #. type: textblock
33705 #: ../tools/virt-list-filesystems.pl:49
33706 msgid ""
33707 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33708 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33709 "> tool."
33710 msgstr ""
33711
33712 # type: =item
33713 #. type: =item
33714 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33715 msgid "B<-l> | B<--long>"
33716 msgstr ""
33717
33718 # type: textblock
33719 #. type: textblock
33720 #: ../tools/virt-list-filesystems.pl:108
33721 msgid ""
33722 "With this option, C<virt-list-filesystems> displays the type of each "
33723 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33724 msgstr ""
33725
33726 # type: =item
33727 #. type: =item
33728 #: ../tools/virt-list-filesystems.pl:115
33729 msgid "B<-a> | B<--all>"
33730 msgstr ""
33731
33732 # type: textblock
33733 #. type: textblock
33734 #: ../tools/virt-list-filesystems.pl:117
33735 msgid ""
33736 "Normally we only show mountable filesystems.  If this option is given then "
33737 "swap devices are shown too."
33738 msgstr ""
33739
33740 # type: textblock
33741 #. type: textblock
33742 #: ../tools/virt-list-filesystems.pl:191
33743 msgid ""
33744 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33745 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33746 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33747 msgstr ""
33748
33749 # type: textblock
33750 #. type: textblock
33751 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33752 msgid "Copyright (C) 2009 Red Hat Inc."
33753 msgstr ""
33754
33755 # type: textblock
33756 #. type: textblock
33757 #: ../tools/virt-tar.pl:33
33758 msgid "virt-tar - Extract or upload files to a virtual machine"
33759 msgstr ""
33760
33761 # type: verbatim
33762 #. type: verbatim
33763 #: ../tools/virt-tar.pl:37
33764 #, no-wrap
33765 msgid ""
33766 " virt-tar [--options] -x domname directory tarball\n"
33767 "\n"
33768 msgstr ""
33769
33770 # type: verbatim
33771 #. type: verbatim
33772 #: ../tools/virt-tar.pl:39
33773 #, no-wrap
33774 msgid ""
33775 " virt-tar [--options] -u domname tarball directory\n"
33776 "\n"
33777 msgstr ""
33778
33779 # type: verbatim
33780 #. type: verbatim
33781 #: ../tools/virt-tar.pl:41
33782 #, no-wrap
33783 msgid ""
33784 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33785 "\n"
33786 msgstr ""
33787
33788 # type: verbatim
33789 #. type: verbatim
33790 #: ../tools/virt-tar.pl:43
33791 #, no-wrap
33792 msgid ""
33793 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33794 "\n"
33795 msgstr ""
33796
33797 #. type: textblock
33798 #: ../tools/virt-tar.pl:47
33799 msgid ""
33800 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33801 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33802 msgstr ""
33803
33804 # type: textblock
33805 #. type: textblock
33806 #: ../tools/virt-tar.pl:52
33807 msgid "Download C</home> from the VM into a local tarball:"
33808 msgstr ""
33809
33810 # type: verbatim
33811 #. type: verbatim
33812 #: ../tools/virt-tar.pl:54
33813 #, no-wrap
33814 msgid ""
33815 " virt-tar -x domname /home home.tar\n"
33816 "\n"
33817 msgstr ""
33818
33819 # type: verbatim
33820 #. type: verbatim
33821 #: ../tools/virt-tar.pl:56
33822 #, no-wrap
33823 msgid ""
33824 " virt-tar -zx domname /home home.tar.gz\n"
33825 "\n"
33826 msgstr ""
33827
33828 # type: textblock
33829 #. type: textblock
33830 #: ../tools/virt-tar.pl:58
33831 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33832 msgstr ""
33833
33834 # type: verbatim
33835 #. type: verbatim
33836 #: ../tools/virt-tar.pl:60
33837 #, no-wrap
33838 msgid ""
33839 " virt-tar -u domname uploadstuff.tar /tmp\n"
33840 "\n"
33841 msgstr ""
33842
33843 # type: verbatim
33844 #. type: verbatim
33845 #: ../tools/virt-tar.pl:62
33846 #, no-wrap
33847 msgid ""
33848 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33849 "\n"
33850 msgstr ""
33851
33852 # type: textblock
33853 #. type: textblock
33854 #: ../tools/virt-tar.pl:66
33855 msgid ""
33856 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33857 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33858 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33859 msgstr ""
33860
33861 # type: textblock
33862 #. type: textblock
33863 #: ../tools/virt-tar.pl:71
33864 msgid ""
33865 "You can use C<-x> (extract) on live virtual machines, but you might get "
33866 "inconsistent results or errors if there is filesystem activity inside the "
33867 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33868 "work, but the only way to guarantee consistent results is if the virtual "
33869 "machine is shut down."
33870 msgstr ""
33871
33872 # type: textblock
33873 #. type: textblock
33874 #: ../tools/virt-tar.pl:79
33875 msgid ""
33876 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33877 "parts of a guest filesystem.  There are many possibilities: making backups, "
33878 "uploading data files, snooping on guest activity, fixing or customizing "
33879 "guests, etc."
33880 msgstr ""
33881
33882 # type: textblock
33883 #. type: textblock
33884 #: ../tools/virt-tar.pl:84
33885 msgid ""
33886 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33887 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33888 "should look at the L<guestfish(1)> tool."
33889 msgstr ""
33890
33891 # type: textblock
33892 #. type: textblock
33893 #: ../tools/virt-tar.pl:88
33894 msgid ""
33895 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33896 "its contents (recursively) from the virtual machine into a local tarball.  "
33897 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33898 "virtual machine.  You cannot use these two options together."
33899 msgstr ""
33900
33901 # type: textblock
33902 #. type: textblock
33903 #: ../tools/virt-tar.pl:94
33904 msgid ""
33905 "In addition, you may need to use the C<-z> (gZip) option to enable "
33906 "compression.  When uploading, you have to specify C<-z> if the upload file "
33907 "is compressed because virt-tar won't detect this on its own."
33908 msgstr ""
33909
33910 # type: textblock
33911 #. type: textblock
33912 #: ../tools/virt-tar.pl:98
33913 msgid ""
33914 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33915 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33916 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33917 "the L<libguestfs(3)> API)."
33918 msgstr ""
33919
33920 # type: =item
33921 #. type: =item
33922 #: ../tools/virt-tar.pl:156
33923 msgid "B<-x> | B<--extract> | B<--download>"
33924 msgstr ""
33925
33926 # type: =item
33927 #. type: =item
33928 #: ../tools/virt-tar.pl:158
33929 msgid "B<-u> | B<--upload>"
33930 msgstr ""
33931
33932 # type: textblock
33933 #. type: textblock
33934 #: ../tools/virt-tar.pl:160
33935 msgid ""
33936 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33937 "local tarball."
33938 msgstr ""
33939
33940 # type: textblock
33941 #. type: textblock
33942 #: ../tools/virt-tar.pl:163
33943 msgid ""
33944 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
33945 "Please read the L</WARNING> section above before using this option."
33946 msgstr ""
33947
33948 # type: textblock
33949 #. type: textblock
33950 #: ../tools/virt-tar.pl:167
33951 msgid "You must specify exactly one of these options."
33952 msgstr ""
33953
33954 # type: =item
33955 #. type: =item
33956 #: ../tools/virt-tar.pl:173
33957 msgid "B<-z> | B<--gzip>"
33958 msgstr ""
33959
33960 # type: textblock
33961 #. type: textblock
33962 #: ../tools/virt-tar.pl:175
33963 msgid "Specify that the input or output tarball is gzip-compressed."
33964 msgstr ""
33965
33966 #. type: textblock
33967 #: ../tools/virt-tar.pl:288
33968 msgid ""
33969 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
33970 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
33971 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33972 "org/>."
33973 msgstr ""
33974
33975 # type: textblock
33976 #. type: textblock
33977 #: ../tools/virt-make-fs.pl:37
33978 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33979 msgstr ""
33980
33981 # type: verbatim
33982 #. type: verbatim
33983 #: ../tools/virt-make-fs.pl:41
33984 #, no-wrap
33985 msgid ""
33986 " virt-make-fs [--options] input.tar output.img\n"
33987 "\n"
33988 msgstr ""
33989
33990 # type: verbatim
33991 #. type: verbatim
33992 #: ../tools/virt-make-fs.pl:43
33993 #, no-wrap
33994 msgid ""
33995 " virt-make-fs [--options] input.tar.gz output.img\n"
33996 "\n"
33997 msgstr ""
33998
33999 # type: verbatim
34000 #. type: verbatim
34001 #: ../tools/virt-make-fs.pl:45
34002 #, no-wrap
34003 msgid ""
34004 " virt-make-fs [--options] directory output.img\n"
34005 "\n"
34006 msgstr ""
34007
34008 # type: textblock
34009 #. type: textblock
34010 #: ../tools/virt-make-fs.pl:49
34011 msgid ""
34012 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34013 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34014 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34015 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34016 "you want to attach these filesystems to existing virtual machines (eg. to "
34017 "import large amounts of read-only data to a VM)."
34018 msgstr ""
34019
34020 # type: textblock
34021 #. type: textblock
34022 #: ../tools/virt-make-fs.pl:57
34023 msgid "Basic usage is:"
34024 msgstr ""
34025
34026 # type: verbatim
34027 #. type: verbatim
34028 #: ../tools/virt-make-fs.pl:59
34029 #, no-wrap
34030 msgid ""
34031 " virt-make-fs input output\n"
34032 "\n"
34033 msgstr ""
34034
34035 # type: textblock
34036 #. type: textblock
34037 #: ../tools/virt-make-fs.pl:61
34038 msgid ""
34039 "where C<input> is either a directory containing files that you want to add, "
34040 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34041 "C<output> is a disk image.  The input type is detected automatically.  The "
34042 "output disk image defaults to a raw ext2 image unless you specify extra "
34043 "flags (see L</OPTIONS> below)."
34044 msgstr ""
34045
34046 # type: =head2
34047 #. type: =head2
34048 #: ../tools/virt-make-fs.pl:67
34049 msgid "EXTRA SPACE"
34050 msgstr ""
34051
34052 # type: textblock
34053 #. type: textblock
34054 #: ../tools/virt-make-fs.pl:69
34055 msgid ""
34056 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34057 "the files that it contains, but might have extra space.  Depending on how "
34058 "you are going to use the output, you might think this extra space is wasted "
34059 "and want to minimize it, or you might want to leave space so that more files "
34060 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34061 "but you can use the C<--size> flag to leave space in the filesystem if you "
34062 "want it."
34063 msgstr ""
34064
34065 # type: textblock
34066 #. type: textblock
34067 #: ../tools/virt-make-fs.pl:77
34068 msgid ""
34069 "An alternative way to leave extra space but not make the output image any "
34070 "bigger is to use an alternative disk image format (instead of the default "
34071 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34072 "image format (check your hypervisor supports this before using it).  This "
34073 "allows you to choose a large C<--size> but the extra space won't actually be "
34074 "allocated in the image until you try to store something in it."
34075 msgstr ""
34076
34077 # type: textblock
34078 #. type: textblock
34079 #: ../tools/virt-make-fs.pl:85
34080 msgid ""
34081 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34082 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
34083 "resize to build another image from scratch."
34084 msgstr ""
34085
34086 # type: =head3
34087 #. type: =head3
34088 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34089 #: ../tools/virt-make-fs.pl:142
34090 msgid "EXAMPLE"
34091 msgstr ""
34092
34093 # type: verbatim
34094 #. type: verbatim
34095 #: ../tools/virt-make-fs.pl:91
34096 #, no-wrap
34097 msgid ""
34098 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34099 "\n"
34100 msgstr ""
34101
34102 # type: =head2
34103 #. type: =head2
34104 #: ../tools/virt-make-fs.pl:93
34105 msgid "FILESYSTEM TYPE"
34106 msgstr ""
34107
34108 # type: textblock
34109 #. type: textblock
34110 #: ../tools/virt-make-fs.pl:95
34111 msgid ""
34112 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34113 "libguestfs supports can be used (but I<not> read-only formats like "
34114 "ISO9660).  Here are some of the more common choices:"
34115 msgstr ""
34116
34117 # type: =item
34118 #. type: =item
34119 #: ../tools/virt-make-fs.pl:101
34120 msgid "I<ext3>"
34121 msgstr ""
34122
34123 # type: textblock
34124 #. type: textblock
34125 #: ../tools/virt-make-fs.pl:103
34126 msgid ""
34127 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34128 "you are not going to use the filesystem in a way that requires the journal, "
34129 "then this is just wasted overhead."
34130 msgstr ""
34131
34132 # type: =item
34133 #. type: =item
34134 #: ../tools/virt-make-fs.pl:107
34135 msgid "I<ntfs> or I<vfat>"
34136 msgstr ""
34137
34138 # type: textblock
34139 #. type: textblock
34140 #: ../tools/virt-make-fs.pl:109
34141 msgid "Useful if exporting data to a Windows guest."
34142 msgstr ""
34143
34144 # type: textblock
34145 #. type: textblock
34146 #: ../tools/virt-make-fs.pl:111
34147 msgid ""
34148 "I<Note for vfat>: The tar archive or local directory must only contain files "
34149 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34150 "program running within libguestfs is unable to change the ownership of non-"
34151 "root files, since vfat itself does not support this."
34152 msgstr ""
34153
34154 # type: =item
34155 #. type: =item
34156 #: ../tools/virt-make-fs.pl:116
34157 msgid "I<minix>"
34158 msgstr ""
34159
34160 # type: textblock
34161 #. type: textblock
34162 #: ../tools/virt-make-fs.pl:118
34163 msgid ""
34164 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34165 "total filesystem size."
34166 msgstr ""
34167
34168 # type: verbatim
34169 #. type: verbatim
34170 #: ../tools/virt-make-fs.pl:125
34171 #, no-wrap
34172 msgid ""
34173 " virt-make-fs --type=minix input minixfs.img\n"
34174 "\n"
34175 msgstr ""
34176
34177 # type: =head2
34178 #. type: =head2
34179 #: ../tools/virt-make-fs.pl:127
34180 msgid "TO PARTITION OR NOT TO PARTITION"
34181 msgstr ""
34182
34183 # type: textblock
34184 #. type: textblock
34185 #: ../tools/virt-make-fs.pl:129
34186 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34187 msgstr ""
34188
34189 # type: textblock
34190 #. type: textblock
34191 #: ../tools/virt-make-fs.pl:131
34192 msgid ""
34193 "Adding a partition can make the disk image more compatible with certain "
34194 "virtualized operating systems which don't expect to see a filesystem "
34195 "directly located on a block device (Linux doesn't care and will happily "
34196 "handle both types)."
34197 msgstr ""
34198
34199 # type: textblock
34200 #. type: textblock
34201 #: ../tools/virt-make-fs.pl:136
34202 msgid ""
34203 "On the other hand, if you have a partition table then the output image is no "
34204 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34205 "directly on a partitioned disk image.  (However libguestfs tools such as "
34206 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34207 msgstr ""
34208
34209 # type: textblock
34210 #. type: textblock
34211 #: ../tools/virt-make-fs.pl:144
34212 msgid "Add an MBR partition:"
34213 msgstr ""
34214
34215 # type: verbatim
34216 #. type: verbatim
34217 #: ../tools/virt-make-fs.pl:146
34218 #, no-wrap
34219 msgid ""
34220 " virt-make-fs --partition -- input disk.img\n"
34221 "\n"
34222 msgstr ""
34223
34224 # type: textblock
34225 #. type: textblock
34226 #: ../tools/virt-make-fs.pl:148
34227 msgid ""
34228 "If the output disk image could be terabyte-sized or larger, it's better to "
34229 "use an EFI/GPT-compatible partition table:"
34230 msgstr ""
34231
34232 # type: verbatim
34233 #. type: verbatim
34234 #: ../tools/virt-make-fs.pl:151
34235 #, no-wrap
34236 msgid ""
34237 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34238 "\n"
34239 msgstr ""
34240
34241 # type: textblock
34242 #. type: textblock
34243 #: ../tools/virt-make-fs.pl:179
34244 msgid "Enable debugging information."
34245 msgstr ""
34246
34247 # type: =item
34248 #. type: =item
34249 #: ../tools/virt-make-fs.pl:185
34250 msgid "B<--size=E<lt>NE<gt>>"
34251 msgstr ""
34252
34253 # type: =item
34254 #. type: =item
34255 #: ../tools/virt-make-fs.pl:187
34256 msgid "B<--size=+E<lt>NE<gt>>"
34257 msgstr ""
34258
34259 # type: =item
34260 #. type: =item
34261 #: ../tools/virt-make-fs.pl:189
34262 msgid "B<-s E<lt>NE<gt>>"
34263 msgstr ""
34264
34265 # type: =item
34266 #. type: =item
34267 #: ../tools/virt-make-fs.pl:191
34268 msgid "B<-s +E<lt>NE<gt>>"
34269 msgstr ""
34270
34271 # type: textblock
34272 #. type: textblock
34273 #: ../tools/virt-make-fs.pl:193
34274 msgid ""
34275 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34276 msgstr ""
34277
34278 # type: textblock
34279 #. type: textblock
34280 #: ../tools/virt-make-fs.pl:196
34281 msgid ""
34282 "If this option is I<not> given, then the output image will be just large "
34283 "enough to contain all the files, with not much wasted space."
34284 msgstr ""
34285
34286 # type: textblock
34287 #. type: textblock
34288 #: ../tools/virt-make-fs.pl:199
34289 msgid ""
34290 "To choose a fixed size output disk, specify an absolute number followed by b/"
34291 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34292 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34293 "files, else you will get an error."
34294 msgstr ""
34295
34296 # type: textblock
34297 #. type: textblock
34298 #: ../tools/virt-make-fs.pl:204
34299 msgid ""
34300 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34301 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34302 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
34303 "the input files, and (approximately) an extra 200 MB free space."
34304 msgstr ""
34305
34306 # type: textblock
34307 #. type: textblock
34308 #: ../tools/virt-make-fs.pl:210
34309 msgid ""
34310 "Note that virt-make-fs estimates free space, and therefore will not produce "
34311 "filesystems containing precisely the free space requested.  (It is much more "
34312 "expensive and time-consuming to produce a filesystem which has precisely the "
34313 "desired free space)."
34314 msgstr ""
34315
34316 # type: =item
34317 #. type: =item
34318 #: ../tools/virt-make-fs.pl:219
34319 msgid "B<--format=E<lt>fmtE<gt>>"
34320 msgstr ""
34321
34322 # type: =item
34323 #. type: =item
34324 #: ../tools/virt-make-fs.pl:221
34325 msgid "B<-F E<lt>fmtE<gt>>"
34326 msgstr ""
34327
34328 # type: textblock
34329 #. type: textblock
34330 #: ../tools/virt-make-fs.pl:223
34331 msgid "Choose the output disk image format."
34332 msgstr ""
34333
34334 # type: textblock
34335 #. type: textblock
34336 #: ../tools/virt-make-fs.pl:225
34337 msgid "The default is C<raw> (raw disk image)."
34338 msgstr ""
34339
34340 # type: textblock
34341 #. type: textblock
34342 #: ../tools/virt-make-fs.pl:227
34343 msgid ""
34344 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34345 "that would really make sense here is C<qcow2>."
34346 msgstr ""
34347
34348 # type: =item
34349 #. type: =item
34350 #: ../tools/virt-make-fs.pl:234
34351 msgid "B<--type=E<lt>fsE<gt>>"
34352 msgstr ""
34353
34354 # type: =item
34355 #. type: =item
34356 #: ../tools/virt-make-fs.pl:236
34357 msgid "B<-t E<lt>fsE<gt>>"
34358 msgstr ""
34359
34360 # type: textblock
34361 #. type: textblock
34362 #: ../tools/virt-make-fs.pl:238
34363 msgid "Choose the output filesystem type."
34364 msgstr ""
34365
34366 # type: textblock
34367 #. type: textblock
34368 #: ../tools/virt-make-fs.pl:240
34369 msgid "The default is C<ext2>."
34370 msgstr ""
34371
34372 # type: textblock
34373 #. type: textblock
34374 #: ../tools/virt-make-fs.pl:242
34375 msgid ""
34376 "Any filesystem which is supported read-write by libguestfs can be used here."
34377 msgstr ""
34378
34379 # type: =item
34380 #. type: =item
34381 #: ../tools/virt-make-fs.pl:249
34382 msgid "B<--partition>"
34383 msgstr ""
34384
34385 # type: =item
34386 #. type: =item
34387 #: ../tools/virt-make-fs.pl:251
34388 msgid "B<--partition=E<lt>parttypeE<gt>>"
34389 msgstr ""
34390
34391 # type: textblock
34392 #. type: textblock
34393 #: ../tools/virt-make-fs.pl:253
34394 msgid ""
34395 "If specified, this flag adds an MBR partition table to the output disk image."
34396 msgstr ""
34397
34398 # type: textblock
34399 #. type: textblock
34400 #: ../tools/virt-make-fs.pl:256
34401 msgid ""
34402 "You can change the partition table type, eg. C<--partition=gpt> for large "
34403 "disks."
34404 msgstr ""
34405
34406 # type: textblock
34407 #. type: textblock
34408 #: ../tools/virt-make-fs.pl:259
34409 msgid ""
34410 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34411 "might consider the next parameter to be the partition type.  For example:"
34412 msgstr ""
34413
34414 # type: verbatim
34415 #. type: verbatim
34416 #: ../tools/virt-make-fs.pl:263
34417 #, no-wrap
34418 msgid ""
34419 " virt-make-fs --partition input.tar ...\n"
34420 "\n"
34421 msgstr ""
34422
34423 # type: textblock
34424 #. type: textblock
34425 #: ../tools/virt-make-fs.pl:265
34426 msgid ""
34427 "would cause virt-make-fs to think you wanted to use a partition type of "
34428 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34429 "dash) between options and the input file argument:"
34430 msgstr ""
34431
34432 # type: verbatim
34433 #. type: verbatim
34434 #: ../tools/virt-make-fs.pl:269
34435 #, no-wrap
34436 msgid ""
34437 " virt-make-fs --partition -- input.tar ...\n"
34438 "\n"
34439 msgstr ""
34440
34441 #. type: textblock
34442 #: ../tools/virt-make-fs.pl:536
34443 msgid ""
34444 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34445 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34446 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34447 msgstr ""
34448
34449 # type: verbatim
34450 #. type: verbatim
34451 #: ../tools/virt-make-fs.pl:553
34452 #, no-wrap
34453 msgid ""
34454 " export LIBGUESTFS_DEBUG=1\n"
34455 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34456 "\n"
34457 msgstr ""
34458
34459 # type: textblock
34460 #. type: textblock
34461 #: ../tools/virt-make-fs.pl:556
34462 msgid ""
34463 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34464 "redhat.com/>"
34465 msgstr ""
34466
34467 # type: textblock
34468 #. type: textblock
34469 #: ../tools/virt-list-partitions.pl:32
34470 msgid ""
34471 "virt-list-partitions - List partitions in a virtual machine or disk image"
34472 msgstr ""
34473
34474 # type: verbatim
34475 #. type: verbatim
34476 #: ../tools/virt-list-partitions.pl:36
34477 #, no-wrap
34478 msgid ""
34479 " virt-list-partitions [--options] domname\n"
34480 "\n"
34481 msgstr ""
34482
34483 # type: verbatim
34484 #. type: verbatim
34485 #: ../tools/virt-list-partitions.pl:38
34486 #, no-wrap
34487 msgid ""
34488 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34489 "\n"
34490 msgstr ""
34491
34492 # type: textblock
34493 #. type: textblock
34494 #: ../tools/virt-list-partitions.pl:45
34495 msgid ""
34496 "C<virt-list-partitions> is a command line tool to list the partitions that "
34497 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34498 "first step to using L<virt-resize(1)>."
34499 msgstr ""
34500
34501 # type: textblock
34502 #. type: textblock
34503 #: ../tools/virt-list-partitions.pl:50
34504 msgid ""
34505 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34506 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34507 "> tool."
34508 msgstr ""
34509
34510 # type: =item
34511 #. type: =item
34512 #: ../tools/virt-list-partitions.pl:107
34513 msgid "B<-h> | B<--human-readable>"
34514 msgstr ""
34515
34516 # type: textblock
34517 #. type: textblock
34518 #: ../tools/virt-list-partitions.pl:109
34519 msgid "Show sizes in human-readable form (eg. \"1G\")."
34520 msgstr ""
34521
34522 # type: textblock
34523 #. type: textblock
34524 #: ../tools/virt-list-partitions.pl:117
34525 msgid ""
34526 "With this option, C<virt-list-partitions> displays the type and size of each "
34527 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34528 msgstr ""
34529
34530 # type: =item
34531 #. type: =item
34532 #: ../tools/virt-list-partitions.pl:124
34533 msgid "B<-t> | B<--total>"
34534 msgstr ""
34535
34536 # type: textblock
34537 #. type: textblock
34538 #: ../tools/virt-list-partitions.pl:126
34539 msgid ""
34540 "Display the total size of each block device (as a separate row or rows)."
34541 msgstr ""
34542
34543 # type: textblock
34544 #. type: textblock
34545 #: ../tools/virt-list-partitions.pl:259
34546 msgid ""
34547 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34548 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34549 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34550 msgstr ""