1c2d62b03c5bd2968d025bfa121204388c9b2d08
[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-03-15 21:45+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:1088
922 #: ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1101
923 #: ../src/guestfs.pod:1109 ../src/guestfs.pod:1128 ../src/guestfs.pod:1136
924 #: ../src/guestfs.pod:1158 ../src/guestfs.pod:1162 ../src/guestfs.pod:1166
925 #: ../src/guestfs.pod:1170 ../src/guestfs.pod:1174 ../src/guestfs.pod:1178
926 #: ../src/guestfs.pod:1660 ../src/guestfs.pod:1665 ../src/guestfs.pod:1669
927 #: ../src/guestfs.pod:1770 ../src/guestfs.pod:1775 ../src/guestfs.pod:1779
928 #: ../src/guestfs.pod:2008 ../src/guestfs.pod:2013 ../src/guestfs.pod:2019
929 #: ../src/guestfs.pod:2027 ../src/guestfs.pod:2381 ../src/guestfs.pod:2387
930 #: ../src/guestfs.pod:2392 ../src/guestfs.pod:2398 ../src/guestfs.pod:2863
931 #: ../src/guestfs.pod:2867 ../src/guestfs.pod:2871 ../src/guestfs.pod:2875
932 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
933 #: ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:585
934 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:599
935 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
936 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1607
937 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1619
938 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1633
939 #: ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1641
940 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1783
941 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
942 #: ../src/guestfs-actions.pod:1854 ../src/guestfs-actions.pod:1858
943 #: ../src/guestfs-actions.pod:1863 ../fish/guestfish.pod:432
944 #: ../fish/guestfish.pod:436 ../fish/guestfish.pod:440
945 #: ../fish/guestfish.pod:444 ../fish/guestfish-actions.pod:13
946 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:380
947 #: ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:395
948 #: ../fish/guestfish-actions.pod:402 ../fish/guestfish-actions.pod:1072
949 #: ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080
950 #: ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1092
951 #: ../fish/guestfish-actions.pod:1096 ../fish/guestfish-actions.pod:1100
952 #: ../fish/guestfish-actions.pod:1110 ../fish/guestfish-actions.pod:1114
953 #: ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1208
954 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217
955 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1264
956 #: ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1273
957 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
958 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
959 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
960 msgid "*"
961 msgstr ""
962
963 # type: textblock
964 #. type: textblock
965 #: ../src/guestfs.pod:390
966 msgid ""
967 "The kernel version that the command runs under will be different from what "
968 "it expects."
969 msgstr ""
970
971 # type: textblock
972 #. type: textblock
973 #: ../src/guestfs.pod:395
974 msgid ""
975 "If the command needs to communicate with daemons, then most likely they "
976 "won't be running."
977 msgstr ""
978
979 # type: textblock
980 #. type: textblock
981 #: ../src/guestfs.pod:400
982 msgid "The command will be running in limited memory."
983 msgstr ""
984
985 # type: textblock
986 #. type: textblock
987 #: ../src/guestfs.pod:404
988 msgid ""
989 "The network may not be available unless you enable it (see L</"
990 "guestfs_set_network>)."
991 msgstr ""
992
993 # type: textblock
994 #. type: textblock
995 #: ../src/guestfs.pod:409
996 msgid "Only supports Linux guests (not Windows, BSD, etc)."
997 msgstr ""
998
999 # type: textblock
1000 #. type: textblock
1001 #: ../src/guestfs.pod:413
1002 msgid ""
1003 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1004 msgstr ""
1005
1006 # type: textblock
1007 #. type: textblock
1008 #: ../src/guestfs.pod:418
1009 msgid ""
1010 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1011 "See L</SELINUX> in this manpage."
1012 msgstr ""
1013
1014 # type: textblock
1015 #. type: textblock
1016 #: ../src/guestfs.pod:423
1017 msgid ""
1018 "I<Security:> It is not safe to run commands from untrusted, possibly "
1019 "malicious guests.  These commands may attempt to exploit your program by "
1020 "sending unexpected output.  They could also try to exploit the Linux kernel "
1021 "or qemu provided by the libguestfs appliance.  They could use the network "
1022 "provided by the libguestfs appliance to bypass ordinary network partitions "
1023 "and firewalls.  They could use the elevated privileges or different SELinux "
1024 "context of your program to their advantage."
1025 msgstr ""
1026
1027 # type: textblock
1028 #. type: textblock
1029 #: ../src/guestfs.pod:432
1030 msgid ""
1031 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1032 "(a script which runs when the guest next boots normally), and to have this "
1033 "script run the commands you want in the normal context of the running guest, "
1034 "network security and so on.  For information about other security issues, "
1035 "see L</SECURITY>."
1036 msgstr ""
1037
1038 # type: textblock
1039 #. type: textblock
1040 #: ../src/guestfs.pod:440
1041 msgid ""
1042 "The two main API calls to run commands are L</guestfs_command> and L</"
1043 "guestfs_sh> (there are also variations)."
1044 msgstr ""
1045
1046 # type: textblock
1047 #. type: textblock
1048 #: ../src/guestfs.pod:443
1049 msgid ""
1050 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1051 "shell globs, redirections, etc will work."
1052 msgstr ""
1053
1054 # type: =head2
1055 #. type: =head2
1056 #: ../src/guestfs.pod:446
1057 msgid "CONFIGURATION FILES"
1058 msgstr ""
1059
1060 # type: textblock
1061 #. type: textblock
1062 #: ../src/guestfs.pod:448
1063 msgid ""
1064 "To read and write configuration files in Linux guest filesystems, we "
1065 "strongly recommend using Augeas.  For example, Augeas understands how to "
1066 "read and write, say, a Linux shadow password file or X.org configuration "
1067 "file, and so avoids you having to write that code."
1068 msgstr ""
1069
1070 # type: textblock
1071 #. type: textblock
1072 #: ../src/guestfs.pod:453
1073 msgid ""
1074 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1075 "document Augeas itself here because there is excellent documentation on the "
1076 "L<http://augeas.net/> website."
1077 msgstr ""
1078
1079 # type: textblock
1080 #. type: textblock
1081 #: ../src/guestfs.pod:457
1082 msgid ""
1083 "If you don't want to use Augeas (you fool!) then try calling L</"
1084 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1085 "over."
1086 msgstr ""
1087
1088 # type: =head2
1089 #. type: =head2
1090 #: ../src/guestfs.pod:461
1091 msgid "SELINUX"
1092 msgstr ""
1093
1094 # type: textblock
1095 #. type: textblock
1096 #: ../src/guestfs.pod:463
1097 msgid ""
1098 "We support SELinux guests.  To ensure that labeling happens correctly in "
1099 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1100 msgstr ""
1101
1102 # type: =item
1103 #. type: =item
1104 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1281 ../src/guestfs.pod:1412
1105 #: ../src/guestfs.pod:2426
1106 msgid "1."
1107 msgstr ""
1108
1109 # type: textblock
1110 #. type: textblock
1111 #: ../src/guestfs.pod:471
1112 msgid "Before launching, do:"
1113 msgstr ""
1114
1115 # type: verbatim
1116 #. type: verbatim
1117 #: ../src/guestfs.pod:473
1118 #, no-wrap
1119 msgid ""
1120 " guestfs_set_selinux (g, 1);\n"
1121 "\n"
1122 msgstr ""
1123
1124 # type: =item
1125 #. type: =item
1126 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1285 ../src/guestfs.pod:1416
1127 #: ../src/guestfs.pod:2451
1128 msgid "2."
1129 msgstr ""
1130
1131 # type: textblock
1132 #. type: textblock
1133 #: ../src/guestfs.pod:477
1134 msgid ""
1135 "After mounting the guest's filesystem(s), load the policy.  This is best "
1136 "done by running the L<load_policy(8)> command in the guest itself:"
1137 msgstr ""
1138
1139 # type: verbatim
1140 #. type: verbatim
1141 #: ../src/guestfs.pod:481
1142 #, no-wrap
1143 msgid ""
1144 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1145 "\n"
1146 msgstr ""
1147
1148 # type: textblock
1149 #. type: textblock
1150 #: ../src/guestfs.pod:483
1151 msgid ""
1152 "(Older versions of C<load_policy> require you to specify the name of the "
1153 "policy file)."
1154 msgstr ""
1155
1156 # type: =item
1157 #. type: =item
1158 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1422
1159 msgid "3."
1160 msgstr ""
1161
1162 # type: textblock
1163 #. type: textblock
1164 #: ../src/guestfs.pod:488
1165 msgid ""
1166 "Optionally, set the security context for the API.  The correct security "
1167 "context to use can only be known by inspecting the guest.  As an example:"
1168 msgstr ""
1169
1170 # type: verbatim
1171 #. type: verbatim
1172 #: ../src/guestfs.pod:492
1173 #, no-wrap
1174 msgid ""
1175 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1176 "\n"
1177 msgstr ""
1178
1179 # type: textblock
1180 #. type: textblock
1181 #: ../src/guestfs.pod:496
1182 msgid "This will work for running commands and editing existing files."
1183 msgstr ""
1184
1185 # type: textblock
1186 #. type: textblock
1187 #: ../src/guestfs.pod:498
1188 msgid ""
1189 "When new files are created, you may need to label them explicitly, for "
1190 "example by running the external command C<restorecon pathname>."
1191 msgstr ""
1192
1193 # type: =head2
1194 #. type: =head2
1195 #: ../src/guestfs.pod:502
1196 msgid "UMASK"
1197 msgstr ""
1198
1199 # type: textblock
1200 #. type: textblock
1201 #: ../src/guestfs.pod:504
1202 msgid ""
1203 "Certain calls are affected by the current file mode creation mask (the "
1204 "\"umask\").  In particular ones which create files or directories, such as "
1205 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1206 "either the default mode that the file is created with or modifies the mode "
1207 "that you supply."
1208 msgstr ""
1209
1210 # type: textblock
1211 #. type: textblock
1212 #: ../src/guestfs.pod:510
1213 msgid ""
1214 "The default umask is C<022>, so files are created with modes such as C<0644> "
1215 "and directories with C<0755>."
1216 msgstr ""
1217
1218 # type: textblock
1219 #. type: textblock
1220 #: ../src/guestfs.pod:513
1221 msgid ""
1222 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1223 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1224 "guestfs_chmod> after creating each file or directory."
1225 msgstr ""
1226
1227 # type: textblock
1228 #. type: textblock
1229 #: ../src/guestfs.pod:517
1230 msgid "For more information about umask, see L<umask(2)>."
1231 msgstr ""
1232
1233 # type: =head1
1234 #. type: =head1
1235 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:751
1236 msgid "ENCRYPTED DISKS"
1237 msgstr ""
1238
1239 # type: textblock
1240 #. type: textblock
1241 #: ../src/guestfs.pod:521
1242 msgid ""
1243 "Libguestfs allows you to access Linux guests which have been encrypted using "
1244 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1245 "standard.  This includes nearly all whole disk encryption systems used by "
1246 "modern Linux guests."
1247 msgstr ""
1248
1249 # type: textblock
1250 #. type: textblock
1251 #: ../src/guestfs.pod:527
1252 msgid ""
1253 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1254 "returns the string C<crypto_LUKS>)."
1255 msgstr ""
1256
1257 # type: textblock
1258 #. type: textblock
1259 #: ../src/guestfs.pod:530
1260 msgid ""
1261 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1262 "will require the passphrase!"
1263 msgstr ""
1264
1265 # type: textblock
1266 #. type: textblock
1267 #: ../src/guestfs.pod:533
1268 msgid ""
1269 "Opening a LUKS device creates a new device mapper device called C</dev/"
1270 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1271 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1272 "from and encrypted to the underlying block device respectively."
1273 msgstr ""
1274
1275 # type: textblock
1276 #. type: textblock
1277 #: ../src/guestfs.pod:539
1278 msgid ""
1279 "LVM volume groups on the device can be made visible by calling L</"
1280 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1281 "(s) can now be mounted in the usual way."
1282 msgstr ""
1283
1284 # type: textblock
1285 #. type: textblock
1286 #: ../src/guestfs.pod:543
1287 msgid ""
1288 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1289 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1290 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1291 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1292 "underlying encrypted block device)."
1293 msgstr ""
1294
1295 # type: =head2
1296 #. type: =head2
1297 #: ../src/guestfs.pod:550
1298 msgid "INSPECTION"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../src/guestfs.pod:552
1303 msgid ""
1304 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1305 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1306 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1307 "version 1.5.3 the most frequently used part of this library has been "
1308 "rewritten in C and moved into the core code)."
1309 msgstr ""
1310
1311 # type: textblock
1312 #. type: textblock
1313 #: ../src/guestfs.pod:559
1314 msgid ""
1315 "Add all disks belonging to the unknown virtual machine and call L</"
1316 "guestfs_launch> in the usual way."
1317 msgstr ""
1318
1319 # type: textblock
1320 #. type: textblock
1321 #: ../src/guestfs.pod:562
1322 msgid ""
1323 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1324 "and certain heuristics, and returns a list of operating systems that were "
1325 "found.  An empty list means none were found.  A single element is the root "
1326 "filesystem of the operating system.  For dual- or multi-boot guests, "
1327 "multiple roots can be returned, each one corresponding to a separate "
1328 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1329 "world of virtualization, but since this scenario can happen, we have built "
1330 "libguestfs to deal with it.)"
1331 msgstr ""
1332
1333 # type: textblock
1334 #. type: textblock
1335 #: ../src/guestfs.pod:571
1336 msgid ""
1337 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1338 "to get additional details about that operating system.  For example, call L</"
1339 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1340 "Windows and Linux-based operating systems respectively."
1341 msgstr ""
1342
1343 # type: textblock
1344 #. type: textblock
1345 #: ../src/guestfs.pod:577
1346 msgid ""
1347 "Un*x-like and Linux-based operating systems usually consist of several "
1348 "filesystems which are mounted at boot time (for example, a separate boot "
1349 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1350 "filesystems correspond to mount points.  Call "
1351 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1352 "hash table like this example:"
1353 msgstr ""
1354
1355 # type: verbatim
1356 #. type: verbatim
1357 #: ../src/guestfs.pod:584
1358 #, no-wrap
1359 msgid ""
1360 " /boot => /dev/sda1\n"
1361 " /     => /dev/vg_guest/lv_root\n"
1362 " /usr  => /dev/vg_guest/lv_usr\n"
1363 "\n"
1364 msgstr ""
1365
1366 # type: textblock
1367 #. type: textblock
1368 #: ../src/guestfs.pod:588
1369 msgid ""
1370 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1371 "filesystems as suggested."
1372 msgstr ""
1373
1374 # type: textblock
1375 #. type: textblock
1376 #: ../src/guestfs.pod:591
1377 msgid ""
1378 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1379 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1380 msgstr ""
1381
1382 # type: textblock
1383 #. type: textblock
1384 #: ../src/guestfs.pod:595
1385 msgid ""
1386 "Inspection currently only works for some common operating systems.  "
1387 "Contributors are welcome to send patches for other operating systems that we "
1388 "currently cannot detect."
1389 msgstr ""
1390
1391 # type: textblock
1392 #. type: textblock
1393 #: ../src/guestfs.pod:599
1394 msgid ""
1395 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1396 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1397 "encrypted devices."
1398 msgstr ""
1399
1400 # type: textblock
1401 #. type: textblock
1402 #: ../src/guestfs.pod:603
1403 msgid ""
1404 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1405 "inspection and caches the results in the guest handle.  Subsequent calls to "
1406 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1407 "read the disks.  If you change the content of the guest disks, you can redo "
1408 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1409 "guestfs_inspect_list_applications> works a little differently from the other "
1410 "calls and does read the disks.  See documentation for that function for "
1411 "details)."
1412 msgstr ""
1413
1414 #. type: =head3
1415 #: ../src/guestfs.pod:612
1416 msgid "INSPECTING INSTALL DISKS"
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../src/guestfs.pod:614
1421 msgid ""
1422 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1423 "CDs and more."
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../src/guestfs.pod:617
1428 msgid ""
1429 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1430 "system, which currently can be C<installed> (a regular operating system) or "
1431 "C<installer> (some sort of install disk)."
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../src/guestfs.pod:621
1436 msgid ""
1437 "Further information is available about the operating system that can be "
1438 "installed using the regular inspection APIs like L</"
1439 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../src/guestfs.pod:626
1444 msgid ""
1445 "Some additional information specific to installer disks is also available "
1446 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1447 "guestfs_inspect_is_multipart> calls."
1448 msgstr ""
1449
1450 # type: =head2
1451 #. type: =head2
1452 #: ../src/guestfs.pod:631
1453 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1454 msgstr ""
1455
1456 # type: textblock
1457 #. type: textblock
1458 #: ../src/guestfs.pod:633
1459 msgid ""
1460 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1461 "ntfs-3g.org/> driver."
1462 msgstr ""
1463
1464 # type: =head3
1465 #. type: =head3
1466 #: ../src/guestfs.pod:636
1467 msgid "DRIVE LETTERS AND PATHS"
1468 msgstr ""
1469
1470 # type: textblock
1471 #. type: textblock
1472 #: ../src/guestfs.pod:638
1473 msgid ""
1474 "DOS and Windows still use drive letters, and the filesystems are always "
1475 "treated as case insensitive by Windows itself, and therefore you might find "
1476 "a Windows configuration file referring to a path like C<c:\\windows"
1477 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1478 "might be referred to as C</WINDOWS/System32>."
1479 msgstr ""
1480
1481 # type: textblock
1482 #. type: textblock
1483 #: ../src/guestfs.pod:644
1484 msgid ""
1485 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1486 "libguestfs to read the appropriate Windows Registry and configuration files, "
1487 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1488 "inspector(1)>)."
1489 msgstr ""
1490
1491 # type: textblock
1492 #. type: textblock
1493 #: ../src/guestfs.pod:649
1494 msgid ""
1495 "Replacing backslash characters with forward slash characters is also outside "
1496 "the scope of libguestfs, but something that you can easily do."
1497 msgstr ""
1498
1499 # type: textblock
1500 #. type: textblock
1501 #: ../src/guestfs.pod:652
1502 msgid ""
1503 "Where we can help is in resolving the case insensitivity of paths.  For "
1504 "this, call L</guestfs_case_sensitive_path>."
1505 msgstr ""
1506
1507 # type: =head3
1508 #. type: =head3
1509 #: ../src/guestfs.pod:655
1510 msgid "ACCESSING THE WINDOWS REGISTRY"
1511 msgstr ""
1512
1513 # type: textblock
1514 #. type: textblock
1515 #: ../src/guestfs.pod:657
1516 msgid ""
1517 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1518 "files, through the library C<hivex> which is part of the libguestfs project "
1519 "although ships as a separate tarball.  You have to locate and download the "
1520 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1521 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1522 "reg(1)> for more help on this issue."
1523 msgstr ""
1524
1525 # type: =head3
1526 #. type: =head3
1527 #: ../src/guestfs.pod:665
1528 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1529 msgstr ""
1530
1531 # type: textblock
1532 #. type: textblock
1533 #: ../src/guestfs.pod:667
1534 msgid ""
1535 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1536 "provide something which looks like a Linux symlink.  The way it tries to do "
1537 "the rewriting is described here:"
1538 msgstr ""
1539
1540 # type: textblock
1541 #. type: textblock
1542 #: ../src/guestfs.pod:671
1543 msgid ""
1544 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1545 "symbolic-links/>"
1546 msgstr ""
1547
1548 # type: textblock
1549 #. type: textblock
1550 #: ../src/guestfs.pod:673
1551 msgid ""
1552 "The essential problem is that ntfs-3g simply does not have enough "
1553 "information to do a correct job.  NTFS links can contain drive letters and "
1554 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1555 "It is almost certainly the case that libguestfs callers should ignore what "
1556 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1557 msgstr ""
1558
1559 # type: textblock
1560 #. type: textblock
1561 #: ../src/guestfs.pod:680
1562 msgid ""
1563 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1564 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1565 "attribute, and read the raw reparse data from that (you can find the format "
1566 "documented in various places around the web)."
1567 msgstr ""
1568
1569 # type: =head3
1570 #. type: =head3
1571 #: ../src/guestfs.pod:685
1572 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1573 msgstr ""
1574
1575 # type: textblock
1576 #. type: textblock
1577 #: ../src/guestfs.pod:687
1578 msgid ""
1579 "There are other useful extended attributes that can be read from ntfs-3g "
1580 "filesystems (using L</guestfs_getxattr>).  See:"
1581 msgstr ""
1582
1583 # type: textblock
1584 #. type: textblock
1585 #: ../src/guestfs.pod:690
1586 msgid ""
1587 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1588 msgstr ""
1589
1590 # type: =head2
1591 #. type: =head2
1592 #: ../src/guestfs.pod:692
1593 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1594 msgstr ""
1595
1596 # type: textblock
1597 #. type: textblock
1598 #: ../src/guestfs.pod:694
1599 msgid ""
1600 "Although we don't want to discourage you from using the C API, we will "
1601 "mention here that the same API is also available in other languages."
1602 msgstr ""
1603
1604 #. type: textblock
1605 #: ../src/guestfs.pod:697
1606 msgid ""
1607 "The API is broadly identical in all supported languages.  This means that "
1608 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1609 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1610 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1611 "each language."
1612 msgstr ""
1613
1614 # type: textblock
1615 #. type: textblock
1616 #: ../src/guestfs.pod:703
1617 msgid ""
1618 "Error messages are automatically transformed into exceptions if the language "
1619 "supports it."
1620 msgstr ""
1621
1622 # type: textblock
1623 #. type: textblock
1624 #: ../src/guestfs.pod:706
1625 msgid ""
1626 "We don't try to \"object orientify\" parts of the API in OO languages, "
1627 "although contributors are welcome to write higher level APIs above what we "
1628 "provide in their favourite languages if they wish."
1629 msgstr ""
1630
1631 # type: =item
1632 #. type: =item
1633 #: ../src/guestfs.pod:712
1634 msgid "B<C++>"
1635 msgstr ""
1636
1637 # type: textblock
1638 #. type: textblock
1639 #: ../src/guestfs.pod:714
1640 msgid ""
1641 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1642 "identical to the C API.  C++ classes and exceptions are not used."
1643 msgstr ""
1644
1645 # type: =item
1646 #. type: =item
1647 #: ../src/guestfs.pod:718
1648 msgid "B<C#>"
1649 msgstr ""
1650
1651 # type: textblock
1652 #. type: textblock
1653 #: ../src/guestfs.pod:720
1654 msgid ""
1655 "The C# bindings are highly experimental.  Please read the warnings at the "
1656 "top of C<csharp/Libguestfs.cs>."
1657 msgstr ""
1658
1659 # type: =item
1660 #. type: =item
1661 #: ../src/guestfs.pod:723
1662 msgid "B<Haskell>"
1663 msgstr ""
1664
1665 # type: textblock
1666 #. type: textblock
1667 #: ../src/guestfs.pod:725
1668 msgid ""
1669 "This is the only language binding that is working but incomplete.  Only "
1670 "calls which return simple integers have been bound in Haskell, and we are "
1671 "looking for help to complete this binding."
1672 msgstr ""
1673
1674 # type: =item
1675 #. type: =item
1676 #: ../src/guestfs.pod:729
1677 msgid "B<Java>"
1678 msgstr ""
1679
1680 # type: textblock
1681 #. type: textblock
1682 #: ../src/guestfs.pod:731
1683 msgid ""
1684 "Full documentation is contained in the Javadoc which is distributed with "
1685 "libguestfs."
1686 msgstr ""
1687
1688 # type: =item
1689 #. type: =item
1690 #: ../src/guestfs.pod:734
1691 msgid "B<OCaml>"
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../src/guestfs.pod:736
1696 msgid "See L<guestfs-ocaml(3)>."
1697 msgstr ""
1698
1699 # type: =item
1700 #. type: =item
1701 #: ../src/guestfs.pod:738
1702 msgid "B<Perl>"
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../src/guestfs.pod:740
1707 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1708 msgstr ""
1709
1710 # type: =item
1711 #. type: =item
1712 #: ../src/guestfs.pod:742
1713 msgid "B<PHP>"
1714 msgstr ""
1715
1716 # type: textblock
1717 #. type: textblock
1718 #: ../src/guestfs.pod:744
1719 msgid ""
1720 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1721 "the php-libguestfs package for your distribution."
1722 msgstr ""
1723
1724 # type: textblock
1725 #. type: textblock
1726 #: ../src/guestfs.pod:747
1727 msgid "The PHP binding only works correctly on 64 bit machines."
1728 msgstr ""
1729
1730 # type: =item
1731 #. type: =item
1732 #: ../src/guestfs.pod:749
1733 msgid "B<Python>"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../src/guestfs.pod:751
1738 msgid "See L<guestfs-python(3)>."
1739 msgstr ""
1740
1741 # type: =item
1742 #. type: =item
1743 #: ../src/guestfs.pod:753
1744 msgid "B<Ruby>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../src/guestfs.pod:755
1749 msgid "See L<guestfs-ruby(3)>."
1750 msgstr ""
1751
1752 # type: =item
1753 #. type: =item
1754 #: ../src/guestfs.pod:757
1755 msgid "B<shell scripts>"
1756 msgstr ""
1757
1758 #. type: textblock
1759 #: ../src/guestfs.pod:759
1760 msgid "See L<guestfish(1)>."
1761 msgstr ""
1762
1763 # type: =head2
1764 #. type: =head2
1765 #: ../src/guestfs.pod:763
1766 msgid "LIBGUESTFS GOTCHAS"
1767 msgstr ""
1768
1769 # type: textblock
1770 #. type: textblock
1771 #: ../src/guestfs.pod:765
1772 msgid ""
1773 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1774 "system [...] that works in the way it is documented but is counterintuitive "
1775 "and almost invites mistakes.\""
1776 msgstr ""
1777
1778 # type: textblock
1779 #. type: textblock
1780 #: ../src/guestfs.pod:769
1781 msgid ""
1782 "Since we developed libguestfs and the associated tools, there are several "
1783 "things we would have designed differently, but are now stuck with for "
1784 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1785 "release, you can expect these to change.  Beware of them."
1786 msgstr ""
1787
1788 # type: =item
1789 #. type: =item
1790 #: ../src/guestfs.pod:777
1791 msgid "Autosync / forgetting to sync."
1792 msgstr ""
1793
1794 # type: textblock
1795 #. type: textblock
1796 #: ../src/guestfs.pod:779
1797 msgid ""
1798 "When modifying a filesystem from C or another language, you B<must> unmount "
1799 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1800 "libguestfs handle.  You can also call:"
1801 msgstr ""
1802
1803 # type: verbatim
1804 #. type: verbatim
1805 #: ../src/guestfs.pod:783
1806 #, no-wrap
1807 msgid ""
1808 " guestfs_set_autosync (g, 1);\n"
1809 "\n"
1810 msgstr ""
1811
1812 # type: textblock
1813 #. type: textblock
1814 #: ../src/guestfs.pod:785
1815 msgid ""
1816 "to have the unmount/sync done automatically for you when the handle 'g' is "
1817 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1818 msgstr ""
1819
1820 # type: textblock
1821 #. type: textblock
1822 #: ../src/guestfs.pod:789
1823 msgid ""
1824 "If you forget to do this, then it is entirely possible that your changes "
1825 "won't be written out, or will be partially written, or (very rarely) that "
1826 "you'll get disk corruption."
1827 msgstr ""
1828
1829 # type: textblock
1830 #. type: textblock
1831 #: ../src/guestfs.pod:793
1832 msgid ""
1833 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1834 "guestfish scripts that forget to sync will work just fine, which can make "
1835 "this very puzzling if you are trying to debug a problem."
1836 msgstr ""
1837
1838 # type: textblock
1839 #. type: textblock
1840 #: ../src/guestfs.pod:797
1841 msgid ""
1842 "Update: Autosync is enabled by default for all API users starting from "
1843 "libguestfs 1.5.24."
1844 msgstr ""
1845
1846 # type: =item
1847 #. type: =item
1848 #: ../src/guestfs.pod:800
1849 msgid "Mount option C<-o sync> should not be the default."
1850 msgstr ""
1851
1852 # type: textblock
1853 #. type: textblock
1854 #: ../src/guestfs.pod:802
1855 msgid ""
1856 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1857 "However C<-o sync> does not add any reliability benefit, but does have a "
1858 "very large performance impact."
1859 msgstr ""
1860
1861 # type: textblock
1862 #. type: textblock
1863 #: ../src/guestfs.pod:806
1864 msgid ""
1865 "The work around is to use L</guestfs_mount_options> and set the mount "
1866 "options that you actually want to use."
1867 msgstr ""
1868
1869 # type: =item
1870 #. type: =item
1871 #: ../src/guestfs.pod:809
1872 msgid "Read-only should be the default."
1873 msgstr ""
1874
1875 # type: textblock
1876 #. type: textblock
1877 #: ../src/guestfs.pod:811
1878 msgid ""
1879 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1880 "specify I<--rw> if you want to make changes to the image."
1881 msgstr ""
1882
1883 # type: textblock
1884 #. type: textblock
1885 #: ../src/guestfs.pod:814
1886 msgid "This would reduce the potential to corrupt live VM images."
1887 msgstr ""
1888
1889 # type: textblock
1890 #. type: textblock
1891 #: ../src/guestfs.pod:816
1892 msgid ""
1893 "Note that many filesystems change the disk when you just mount and unmount, "
1894 "even if you didn't perform any writes.  You need to use L</"
1895 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1896 msgstr ""
1897
1898 # type: =item
1899 #. type: =item
1900 #: ../src/guestfs.pod:820
1901 msgid "guestfish command line is hard to use."
1902 msgstr ""
1903
1904 # type: textblock
1905 #. type: textblock
1906 #: ../src/guestfs.pod:822
1907 msgid ""
1908 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1909 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1910 "exist, so it fails.  In earlier versions of guestfish the error message was "
1911 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1912 "we should have used C<guestfish -c command> to run commands."
1913 msgstr ""
1914
1915 # type: =item
1916 #. type: =item
1917 #: ../src/guestfs.pod:829
1918 msgid "guestfish megabyte modifiers don't work right on all commands"
1919 msgstr ""
1920
1921 # type: textblock
1922 #. type: textblock
1923 #: ../src/guestfs.pod:831
1924 msgid ""
1925 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1926 "other modifiers).  What guestfish actually does is to multiply the number "
1927 "part by the modifier part and pass the result to the C API.  However this "
1928 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1929 "expecting some other unit (eg. megabytes)."
1930 msgstr ""
1931
1932 # type: textblock
1933 #. type: textblock
1934 #: ../src/guestfs.pod:838
1935 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1936 msgstr ""
1937
1938 # type: verbatim
1939 #. type: verbatim
1940 #: ../src/guestfs.pod:840
1941 #, no-wrap
1942 msgid ""
1943 " lvcreate LV VG 100M\n"
1944 "\n"
1945 msgstr ""
1946
1947 # type: textblock
1948 #. type: textblock
1949 #: ../src/guestfs.pod:842
1950 msgid ""
1951 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1952 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1953 "megabytes * megabytes) logical volume.  The error message you get from this "
1954 "is also a little obscure."
1955 msgstr ""
1956
1957 # type: textblock
1958 #. type: textblock
1959 #: ../src/guestfs.pod:847
1960 msgid ""
1961 "This could be fixed in the generator by specially marking parameters and "
1962 "return values which take bytes or other units."
1963 msgstr ""
1964
1965 # type: =item
1966 #. type: =item
1967 #: ../src/guestfs.pod:850
1968 msgid "Ambiguity between devices and paths"
1969 msgstr ""
1970
1971 # type: textblock
1972 #. type: textblock
1973 #: ../src/guestfs.pod:852
1974 msgid ""
1975 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1976 "sdb2>) and a similar pathname.  A file might just happen to be called "
1977 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1978 msgstr ""
1979
1980 # type: textblock
1981 #. type: textblock
1982 #: ../src/guestfs.pod:857
1983 msgid ""
1984 "In the current API we usually resolve this ambiguity by having two separate "
1985 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1986 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1987 "detecting if the path supplied begins with C</dev/>."
1988 msgstr ""
1989
1990 # type: textblock
1991 #. type: textblock
1992 #: ../src/guestfs.pod:863
1993 msgid ""
1994 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1995 "make paths/devices into structured names.  One way to do this would be to "
1996 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1997 "aspect of grub.  Another way would be to use a structured type, equivalent "
1998 "to this OCaml type:"
1999 msgstr ""
2000
2001 # type: verbatim
2002 #. type: verbatim
2003 #: ../src/guestfs.pod:869
2004 #, no-wrap
2005 msgid ""
2006 " type path = Path of string | Device of int | Partition of int * int\n"
2007 "\n"
2008 msgstr ""
2009
2010 # type: textblock
2011 #. type: textblock
2012 #: ../src/guestfs.pod:871
2013 msgid "which would allow you to pass arguments like:"
2014 msgstr ""
2015
2016 # type: verbatim
2017 #. type: verbatim
2018 #: ../src/guestfs.pod:873
2019 #, no-wrap
2020 msgid ""
2021 " Path \"/foo/bar\"\n"
2022 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2023 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2024 " Path \"/dev/sdb2\"    (* not a device *)\n"
2025 "\n"
2026 msgstr ""
2027
2028 # type: textblock
2029 #. type: textblock
2030 #: ../src/guestfs.pod:878
2031 msgid ""
2032 "As you can see there are still problems to resolve even with this "
2033 "representation.  Also consider how it might work in guestfish."
2034 msgstr ""
2035
2036 # type: =head2
2037 #. type: =head2
2038 #: ../src/guestfs.pod:883
2039 msgid "PROTOCOL LIMITS"
2040 msgstr ""
2041
2042 # type: textblock
2043 #. type: textblock
2044 #: ../src/guestfs.pod:885
2045 msgid ""
2046 "Internally libguestfs uses a message-based protocol to pass API calls and "
2047 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2048 "plenty more detail about this).  The maximum message size used by the "
2049 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2050 "aware of this limit.  The API calls which may be affected are individually "
2051 "documented, with a link back to this section of the documentation."
2052 msgstr ""
2053
2054 # type: textblock
2055 #. type: textblock
2056 #: ../src/guestfs.pod:893
2057 msgid ""
2058 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2059 "a simple string.  Because this string is at some point internally encoded as "
2060 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2061 "the requested file is larger than this then you will get an error."
2062 msgstr ""
2063
2064 # type: textblock
2065 #. type: textblock
2066 #: ../src/guestfs.pod:899
2067 msgid ""
2068 "In order to transfer large files into and out of the guest filesystem, you "
2069 "need to use particular calls that support this.  The sections L</UPLOADING> "
2070 "and L</DOWNLOADING> document how to do this."
2071 msgstr ""
2072
2073 # type: textblock
2074 #. type: textblock
2075 #: ../src/guestfs.pod:903
2076 msgid ""
2077 "You might also consider mounting the disk image using our FUSE filesystem "
2078 "support (L<guestmount(1)>)."
2079 msgstr ""
2080
2081 # type: =head2
2082 #. type: =head2
2083 #: ../src/guestfs.pod:906
2084 msgid "KEYS AND PASSPHRASES"
2085 msgstr ""
2086
2087 # type: textblock
2088 #. type: textblock
2089 #: ../src/guestfs.pod:908
2090 msgid ""
2091 "Certain libguestfs calls take a parameter that contains sensitive key "
2092 "material, passed in as a C string."
2093 msgstr ""
2094
2095 # type: textblock
2096 #. type: textblock
2097 #: ../src/guestfs.pod:911
2098 msgid ""
2099 "In the future we would hope to change the libguestfs implementation so that "
2100 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2101 "swap.  However this is I<not> done at the moment, because of the complexity "
2102 "of such an implementation."
2103 msgstr ""
2104
2105 # type: textblock
2106 #. type: textblock
2107 #: ../src/guestfs.pod:916
2108 msgid ""
2109 "Therefore you should be aware that any key parameter you pass to libguestfs "
2110 "might end up being written out to the swap partition.  If this is a concern, "
2111 "scrub the swap partition or don't use libguestfs on encrypted devices."
2112 msgstr ""
2113
2114 # type: =head1
2115 #. type: =head2
2116 #: ../src/guestfs.pod:921
2117 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2118 msgstr ""
2119
2120 # type: textblock
2121 #. type: textblock
2122 #: ../src/guestfs.pod:923
2123 msgid ""
2124 "All high-level libguestfs actions are synchronous.  If you want to use "
2125 "libguestfs asynchronously then you must create a thread."
2126 msgstr ""
2127
2128 # type: textblock
2129 #. type: textblock
2130 #: ../src/guestfs.pod:926
2131 msgid ""
2132 "Only use the handle from a single thread.  Either use the handle exclusively "
2133 "from one thread, or provide your own mutex so that two threads cannot issue "
2134 "calls on the same handle at the same time."
2135 msgstr ""
2136
2137 # type: textblock
2138 #. type: textblock
2139 #: ../src/guestfs.pod:930
2140 msgid ""
2141 "See the graphical program guestfs-browser for one possible architecture for "
2142 "multithreaded programs using libvirt and libguestfs."
2143 msgstr ""
2144
2145 # type: =head1
2146 #. type: =head2
2147 #: ../src/guestfs.pod:933
2148 msgid "PATH"
2149 msgstr ""
2150
2151 # type: textblock
2152 #. type: textblock
2153 #: ../src/guestfs.pod:935
2154 msgid ""
2155 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2156 "internal path."
2157 msgstr ""
2158
2159 # type: textblock
2160 #. type: textblock
2161 #: ../src/guestfs.pod:938
2162 msgid ""
2163 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2164 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2165 msgstr ""
2166
2167 # type: textblock
2168 #. type: textblock
2169 #: ../src/guestfs.pod:941
2170 msgid ""
2171 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2172 "to change the directories that libguestfs will search in.  The value is a "
2173 "colon-separated list of paths.  The current directory is I<not> searched "
2174 "unless the path contains an empty element or C<.>.  For example "
2175 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2176 "then C</usr/lib/guestfs>."
2177 msgstr ""
2178
2179 # type: =head1
2180 #. type: =head2
2181 #: ../src/guestfs.pod:948
2182 msgid "QEMU WRAPPERS"
2183 msgstr ""
2184
2185 # type: textblock
2186 #. type: textblock
2187 #: ../src/guestfs.pod:950
2188 msgid ""
2189 "If you want to compile your own qemu, run qemu from a non-standard location, "
2190 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2191 "around qemu."
2192 msgstr ""
2193
2194 # type: textblock
2195 #. type: textblock
2196 #: ../src/guestfs.pod:954
2197 msgid ""
2198 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2199 "last command in the shell script (so that qemu replaces the shell and "
2200 "becomes the direct child of the libguestfs-using program).  If you don't do "
2201 "this, then the qemu process won't be cleaned up correctly."
2202 msgstr ""
2203
2204 # type: textblock
2205 #. type: textblock
2206 #: ../src/guestfs.pod:959
2207 msgid ""
2208 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2209 "source:"
2210 msgstr ""
2211
2212 # type: verbatim
2213 #. type: verbatim
2214 #: ../src/guestfs.pod:962
2215 #, no-wrap
2216 msgid ""
2217 " #!/bin/sh -\n"
2218 " qemudir=/home/rjones/d/qemu\n"
2219 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2220 "\n"
2221 msgstr ""
2222
2223 # type: textblock
2224 #. type: textblock
2225 #: ../src/guestfs.pod:966
2226 msgid ""
2227 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2228 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2229 "example:"
2230 msgstr ""
2231
2232 # type: verbatim
2233 #. type: verbatim
2234 #: ../src/guestfs.pod:970
2235 #, no-wrap
2236 msgid ""
2237 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2238 "\n"
2239 msgstr ""
2240
2241 # type: textblock
2242 #. type: textblock
2243 #: ../src/guestfs.pod:972
2244 msgid ""
2245 "Note that libguestfs also calls qemu with the -help and -version options in "
2246 "order to determine features."
2247 msgstr ""
2248
2249 #. type: =head2
2250 #: ../src/guestfs.pod:975
2251 msgid "ATTACHING TO RUNNING DAEMONS"
2252 msgstr ""
2253
2254 #. type: textblock
2255 #: ../src/guestfs.pod:977
2256 msgid ""
2257 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2258 "babies.  Use with caution."
2259 msgstr ""
2260
2261 #. type: textblock
2262 #: ../src/guestfs.pod:980
2263 msgid ""
2264 "I<Note (2):> This section explains how to attach to a running daemon from a "
2265 "low level perspective.  For most users, simply using virt tools such as "
2266 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2267 msgstr ""
2268
2269 #. type: =head3
2270 #: ../src/guestfs.pod:984
2271 msgid "Using guestfs_set_attach_method"
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../src/guestfs.pod:986
2276 msgid ""
2277 "By calling L</guestfs_set_attach_method> you can change how the library "
2278 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2279 "ARCHITECTURE> for some background)."
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../src/guestfs.pod:990
2284 msgid ""
2285 "The normal attach method is C<appliance>, where a small appliance is created "
2286 "containing the daemon, and then the library connects to this."
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../src/guestfs.pod:993
2291 msgid ""
2292 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2293 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2294 "daemon over the Unix domain socket."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../src/guestfs.pod:997
2299 msgid ""
2300 "The normal use for this is to connect to a running virtual machine that "
2301 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2302 "files inside the live virtual machine."
2303 msgstr ""
2304
2305 #. type: =head3
2306 #: ../src/guestfs.pod:1001
2307 msgid "Using guestfs_add_domain with live flag"
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../src/guestfs.pod:1003
2312 msgid ""
2313 "L</guestfs_add_domain> provides some help for getting the correct attach "
2314 "method.  If you pass the C<live> option to this function, then (if the "
2315 "virtual machine is running) it will examine the libvirt XML looking for a "
2316 "virtio-serial channel to connect to:"
2317 msgstr ""
2318
2319 #. type: verbatim
2320 #: ../src/guestfs.pod:1009
2321 #, no-wrap
2322 msgid ""
2323 " <domain>\n"
2324 "   ...\n"
2325 "   <devices>\n"
2326 "     ...\n"
2327 "     <channel type='unix'>\n"
2328 "       <source mode='bind' path='/path/to/socket'/>\n"
2329 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2330 "     </channel>\n"
2331 "     ...\n"
2332 "   </devices>\n"
2333 " </domain>\n"
2334 "\n"
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../src/guestfs.pod:1021
2339 msgid ""
2340 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2341 "method to C<unix:/path/to/socket>."
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../src/guestfs.pod:1024
2346 msgid ""
2347 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2348 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2349 "to attach to and modify live virtual machines."
2350 msgstr ""
2351
2352 #. type: textblock
2353 #: ../src/guestfs.pod:1028
2354 msgid ""
2355 "The virtual machine needs to have been set up beforehand so that it has the "
2356 "virtio-serial channel and so that guestfsd is running inside it."
2357 msgstr ""
2358
2359 # type: =head2
2360 #. type: =head2
2361 #: ../src/guestfs.pod:1032
2362 msgid "ABI GUARANTEE"
2363 msgstr ""
2364
2365 # type: textblock
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1034
2368 msgid ""
2369 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2370 "actions as outlined in this section.  Although we will deprecate some "
2371 "actions, for example if they get replaced by newer calls, we will keep the "
2372 "old actions forever.  This allows you the developer to program in confidence "
2373 "against the libguestfs API."
2374 msgstr ""
2375
2376 # type: =head1
2377 #. type: =head2
2378 #: ../src/guestfs.pod:1040
2379 msgid "BLOCK DEVICE NAMING"
2380 msgstr ""
2381
2382 # type: textblock
2383 #. type: textblock
2384 #: ../src/guestfs.pod:1042
2385 msgid ""
2386 "In the kernel there is now quite a profusion of schemata for naming block "
2387 "devices (in this context, by I<block device> I mean a physical or virtual "
2388 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2389 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2390 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2391 "for the old IDE driver (particularly for SATA devices) those devices also "
2392 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2393 "paravirtualized drivers.  This has created several different naming systems, "
2394 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2395 msgstr ""
2396
2397 # type: textblock
2398 #. type: textblock
2399 #: ../src/guestfs.pod:1054
2400 msgid ""
2401 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2402 "Linux kernel to access block devices.  We can run a variety of appliances "
2403 "based on a variety of Linux kernels."
2404 msgstr ""
2405
2406 # type: textblock
2407 #. type: textblock
2408 #: ../src/guestfs.pod:1058
2409 msgid ""
2410 "This causes a problem for libguestfs because many API calls use device or "
2411 "partition names.  Working scripts and the recipe (example) scripts that we "
2412 "make available over the internet could fail if the naming scheme changes."
2413 msgstr ""
2414
2415 # type: textblock
2416 #. type: textblock
2417 #: ../src/guestfs.pod:1063
2418 msgid ""
2419 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2420 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2421 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2422 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2423 msgstr ""
2424
2425 # type: textblock
2426 #. type: textblock
2427 #: ../src/guestfs.pod:1069
2428 msgid ""
2429 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2430 "L</guestfs_list_partitions> and similar calls return the true names of the "
2431 "devices and partitions as known to the appliance."
2432 msgstr ""
2433
2434 # type: =head2
2435 #. type: =head3
2436 #: ../src/guestfs.pod:1074
2437 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2438 msgstr ""
2439
2440 # type: textblock
2441 #. type: textblock
2442 #: ../src/guestfs.pod:1076
2443 msgid ""
2444 "Usually this translation is transparent.  However in some (very rare)  cases "
2445 "you may need to know the exact algorithm.  Such cases include where you use "
2446 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2447 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2448 msgstr ""
2449
2450 # type: textblock
2451 #. type: textblock
2452 #: ../src/guestfs.pod:1082
2453 msgid ""
2454 "The algorithm is applied only to I<parameters> which are known to be either "
2455 "device or partition names.  Return values from functions such as L</"
2456 "guestfs_list_devices> are never changed."
2457 msgstr ""
2458
2459 # type: textblock
2460 #. type: textblock
2461 #: ../src/guestfs.pod:1090
2462 msgid "Is the string a parameter which is a device or partition name?"
2463 msgstr ""
2464
2465 # type: textblock
2466 #. type: textblock
2467 #: ../src/guestfs.pod:1094
2468 msgid "Does the string begin with C</dev/sd>?"
2469 msgstr ""
2470
2471 # type: textblock
2472 #. type: textblock
2473 #: ../src/guestfs.pod:1098
2474 msgid ""
2475 "Does the named device exist? If so, we use that device.  However if I<not> "
2476 "then we continue with this algorithm."
2477 msgstr ""
2478
2479 # type: textblock
2480 #. type: textblock
2481 #: ../src/guestfs.pod:1103
2482 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2483 msgstr ""
2484
2485 # type: textblock
2486 #. type: textblock
2487 #: ../src/guestfs.pod:1105
2488 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2489 msgstr ""
2490
2491 # type: textblock
2492 #. type: textblock
2493 #: ../src/guestfs.pod:1107
2494 msgid "If that named device exists, use it.  If not, continue."
2495 msgstr ""
2496
2497 # type: textblock
2498 #. type: textblock
2499 #: ../src/guestfs.pod:1111
2500 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2501 msgstr ""
2502
2503 # type: textblock
2504 #. type: textblock
2505 #: ../src/guestfs.pod:1113
2506 msgid "If that named device exists, use it.  If not, return an error."
2507 msgstr ""
2508
2509 # type: =head3
2510 #. type: =head3
2511 #: ../src/guestfs.pod:1117
2512 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2513 msgstr ""
2514
2515 # type: textblock
2516 #. type: textblock
2517 #: ../src/guestfs.pod:1119
2518 msgid ""
2519 "Although the standard naming scheme and automatic translation is useful for "
2520 "simple programs and guestfish scripts, for larger programs it is best not to "
2521 "rely on this mechanism."
2522 msgstr ""
2523
2524 # type: textblock
2525 #. type: textblock
2526 #: ../src/guestfs.pod:1123
2527 msgid ""
2528 "Where possible for maximum future portability programs using libguestfs "
2529 "should use these future-proof techniques:"
2530 msgstr ""
2531
2532 # type: textblock
2533 #. type: textblock
2534 #: ../src/guestfs.pod:1130
2535 msgid ""
2536 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2537 "device names, and then use those names directly."
2538 msgstr ""
2539
2540 # type: textblock
2541 #. type: textblock
2542 #: ../src/guestfs.pod:1133
2543 msgid ""
2544 "Since those device names exist by definition, they will never be translated."
2545 msgstr ""
2546
2547 # type: textblock
2548 #. type: textblock
2549 #: ../src/guestfs.pod:1138
2550 msgid ""
2551 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2552 "filesystem labels."
2553 msgstr ""
2554
2555 # type: =head1
2556 #. type: =head1
2557 #: ../src/guestfs.pod:1143
2558 msgid "SECURITY"
2559 msgstr ""
2560
2561 # type: textblock
2562 #. type: textblock
2563 #: ../src/guestfs.pod:1145
2564 msgid ""
2565 "This section discusses security implications of using libguestfs, "
2566 "particularly with untrusted or malicious guests or disk images."
2567 msgstr ""
2568
2569 # type: =head2
2570 #. type: =head2
2571 #: ../src/guestfs.pod:1148
2572 msgid "GENERAL SECURITY CONSIDERATIONS"
2573 msgstr ""
2574
2575 # type: textblock
2576 #. type: textblock
2577 #: ../src/guestfs.pod:1150
2578 msgid ""
2579 "Be careful with any files or data that you download from a guest (by "
2580 "\"download\" we mean not just the L</guestfs_download> command but any "
2581 "command that reads files, filenames, directories or anything else from a "
2582 "disk image).  An attacker could manipulate the data to fool your program "
2583 "into doing the wrong thing.  Consider cases such as:"
2584 msgstr ""
2585
2586 # type: textblock
2587 #. type: textblock
2588 #: ../src/guestfs.pod:1160
2589 msgid "the data (file etc) not being present"
2590 msgstr ""
2591
2592 # type: textblock
2593 #. type: textblock
2594 #: ../src/guestfs.pod:1164
2595 msgid "being present but empty"
2596 msgstr ""
2597
2598 # type: textblock
2599 #. type: textblock
2600 #: ../src/guestfs.pod:1168
2601 msgid "being much larger than normal"
2602 msgstr ""
2603
2604 # type: textblock
2605 #. type: textblock
2606 #: ../src/guestfs.pod:1172
2607 msgid "containing arbitrary 8 bit data"
2608 msgstr ""
2609
2610 # type: textblock
2611 #. type: textblock
2612 #: ../src/guestfs.pod:1176
2613 msgid "being in an unexpected character encoding"
2614 msgstr ""
2615
2616 # type: textblock
2617 #. type: textblock
2618 #: ../src/guestfs.pod:1180
2619 msgid "containing homoglyphs."
2620 msgstr ""
2621
2622 # type: =head2
2623 #. type: =head2
2624 #: ../src/guestfs.pod:1184
2625 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2626 msgstr ""
2627
2628 # type: textblock
2629 #. type: textblock
2630 #: ../src/guestfs.pod:1186
2631 msgid ""
2632 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2633 "(VFS) module can sometimes be escalated into exploits by deliberately "
2634 "creating a malicious, malformed filesystem.  These exploits are very severe "
2635 "for two reasons.  Firstly there are very many filesystem drivers in the "
2636 "kernel, and many of them are infrequently used and not much developer "
2637 "attention has been paid to the code.  Linux userspace helps potential "
2638 "crackers by detecting the filesystem type and automatically choosing the "
2639 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2640 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2641 "exploit (worse in some ways), giving immediate and total access to the "
2642 "system right down to the hardware level."
2643 msgstr ""
2644
2645 # type: textblock
2646 #. type: textblock
2647 #: ../src/guestfs.pod:1199
2648 msgid ""
2649 "That explains why you should never mount a filesystem from an untrusted "
2650 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2651 "inside a qemu virtual machine, usually running as a non-root user.  The "
2652 "attacker would need to write a filesystem which first exploited the kernel, "
2653 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2654 "the libguestfs protocol, and finally to be as serious as the host kernel "
2655 "exploit it would need to escalate its privileges to root.  This multi-step "
2656 "escalation, performed by a static piece of data, is thought to be extremely "
2657 "hard to do, although we never say 'never' about security issues."
2658 msgstr ""
2659
2660 # type: textblock
2661 #. type: textblock
2662 #: ../src/guestfs.pod:1210
2663 msgid ""
2664 "In any case callers can reduce the attack surface by forcing the filesystem "
2665 "type when mounting (use L</guestfs_mount_vfs>)."
2666 msgstr ""
2667
2668 # type: =head2
2669 #. type: =head2
2670 #: ../src/guestfs.pod:1213
2671 msgid "PROTOCOL SECURITY"
2672 msgstr ""
2673
2674 # type: textblock
2675 #. type: textblock
2676 #: ../src/guestfs.pod:1215
2677 msgid ""
2678 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2679 "defined upper message size.  However a program that uses libguestfs must "
2680 "also take care - for example you can write a program that downloads a binary "
2681 "from a disk image and executes it locally, and no amount of protocol "
2682 "security will save you from the consequences."
2683 msgstr ""
2684
2685 # type: =head2
2686 #. type: =head2
2687 #: ../src/guestfs.pod:1221
2688 msgid "INSPECTION SECURITY"
2689 msgstr ""
2690
2691 # type: textblock
2692 #. type: textblock
2693 #: ../src/guestfs.pod:1223
2694 msgid ""
2695 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2696 "directly from the guest, and these could contain any 8 bit data.  Callers "
2697 "should be careful to escape these before printing them to a structured file "
2698 "(for example, use HTML escaping if creating a web page)."
2699 msgstr ""
2700
2701 # type: textblock
2702 #. type: textblock
2703 #: ../src/guestfs.pod:1229
2704 msgid ""
2705 "Guest configuration may be altered in unusual ways by the administrator of "
2706 "the virtual machine, and may not reflect reality (particularly for untrusted "
2707 "or actively malicious guests).  For example we parse the hostname from "
2708 "configuration files like C</etc/sysconfig/network> that we find in the "
2709 "guest, but the guest administrator can easily manipulate these files to "
2710 "provide the wrong hostname."
2711 msgstr ""
2712
2713 # type: textblock
2714 #. type: textblock
2715 #: ../src/guestfs.pod:1237
2716 msgid ""
2717 "The inspection API parses guest configuration using two external libraries: "
2718 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2719 "designed to be robust in the face of malicious data, although denial of "
2720 "service attacks are still possible, for example with oversized configuration "
2721 "files."
2722 msgstr ""
2723
2724 # type: =head2
2725 #. type: =head2
2726 #: ../src/guestfs.pod:1243
2727 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2728 msgstr ""
2729
2730 # type: textblock
2731 #. type: textblock
2732 #: ../src/guestfs.pod:1245
2733 msgid ""
2734 "Be very cautious about running commands from the guest.  By running a "
2735 "command in the guest, you are giving CPU time to a binary that you do not "
2736 "control, under the same user account as the library, albeit wrapped in qemu "
2737 "virtualization.  More information and alternatives can be found in the "
2738 "section L</RUNNING COMMANDS>."
2739 msgstr ""
2740
2741 # type: =head2
2742 #. type: =head2
2743 #: ../src/guestfs.pod:1251
2744 msgid "CVE-2010-3851"
2745 msgstr ""
2746
2747 # type: textblock
2748 #. type: textblock
2749 #: ../src/guestfs.pod:1253
2750 msgid "https://bugzilla.redhat.com/642934"
2751 msgstr ""
2752
2753 # type: textblock
2754 #. type: textblock
2755 #: ../src/guestfs.pod:1255
2756 msgid ""
2757 "This security bug concerns the automatic disk format detection that qemu "
2758 "does on disk images."
2759 msgstr ""
2760
2761 # type: textblock
2762 #. type: textblock
2763 #: ../src/guestfs.pod:1258
2764 msgid ""
2765 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2766 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2767 "for one of the known headers, and if none is found then assuming the disk "
2768 "image must be raw."
2769 msgstr ""
2770
2771 # type: textblock
2772 #. type: textblock
2773 #: ../src/guestfs.pod:1263
2774 msgid ""
2775 "This allows a guest which has been given a raw disk image to write some "
2776 "other header.  At next boot (or when the disk image is accessed by "
2777 "libguestfs) qemu would do autodetection and think the disk image format was, "
2778 "say, qcow2 based on the header written by the guest."
2779 msgstr ""
2780
2781 # type: textblock
2782 #. type: textblock
2783 #: ../src/guestfs.pod:1268
2784 msgid ""
2785 "This in itself would not be a problem, but qcow2 offers many features, one "
2786 "of which is to allow a disk image to refer to another image (called the "
2787 "\"backing disk\").  It does this by placing the path to the backing disk "
2788 "into the qcow2 header.  This path is not validated and could point to any "
2789 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2790 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2791 "control of the attacker."
2792 msgstr ""
2793
2794 # type: textblock
2795 #. type: textblock
2796 #: ../src/guestfs.pod:1276
2797 msgid ""
2798 "In libguestfs this is rather hard to exploit except under two circumstances:"
2799 msgstr ""
2800
2801 # type: textblock
2802 #. type: textblock
2803 #: ../src/guestfs.pod:1283
2804 msgid "You have enabled the network or have opened the disk in write mode."
2805 msgstr ""
2806
2807 # type: textblock
2808 #. type: textblock
2809 #: ../src/guestfs.pod:1287
2810 msgid ""
2811 "You are also running untrusted code from the guest (see L</RUNNING "
2812 "COMMANDS>)."
2813 msgstr ""
2814
2815 # type: textblock
2816 #. type: textblock
2817 #: ../src/guestfs.pod:1292
2818 msgid ""
2819 "The way to avoid this is to specify the expected disk format when adding "
2820 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2821 "should always do this if the disk is raw format, and it's a good idea for "
2822 "other cases too."
2823 msgstr ""
2824
2825 # type: textblock
2826 #. type: textblock
2827 #: ../src/guestfs.pod:1297
2828 msgid ""
2829 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2830 "format is fetched from libvirt and passed through."
2831 msgstr ""
2832
2833 # type: textblock
2834 #. type: textblock
2835 #: ../src/guestfs.pod:1300
2836 msgid ""
2837 "For libguestfs tools, use the I<--format> command line parameter as "
2838 "appropriate."
2839 msgstr ""
2840
2841 # type: =head1
2842 #. type: =head1
2843 #: ../src/guestfs.pod:1303
2844 msgid "CONNECTION MANAGEMENT"
2845 msgstr ""
2846
2847 # type: =head2
2848 #. type: =head2
2849 #: ../src/guestfs.pod:1305
2850 msgid "guestfs_h *"
2851 msgstr ""
2852
2853 # type: textblock
2854 #. type: textblock
2855 #: ../src/guestfs.pod:1307
2856 msgid ""
2857 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2858 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2859 "handle and release all resources used."
2860 msgstr ""
2861
2862 # type: textblock
2863 #. type: textblock
2864 #: ../src/guestfs.pod:1311
2865 msgid ""
2866 "For information on using multiple handles and threads, see the section L</"
2867 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2868 msgstr ""
2869
2870 # type: =head2
2871 #. type: =head2
2872 #: ../src/guestfs.pod:1314
2873 msgid "guestfs_create"
2874 msgstr ""
2875
2876 # type: verbatim
2877 #. type: verbatim
2878 #: ../src/guestfs.pod:1316
2879 #, no-wrap
2880 msgid ""
2881 " guestfs_h *guestfs_create (void);\n"
2882 "\n"
2883 msgstr ""
2884
2885 # type: textblock
2886 #. type: textblock
2887 #: ../src/guestfs.pod:1318
2888 msgid "Create a connection handle."
2889 msgstr ""
2890
2891 # type: textblock
2892 #. type: textblock
2893 #: ../src/guestfs.pod:1320
2894 msgid ""
2895 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2896 "on the handle at least once."
2897 msgstr ""
2898
2899 # type: textblock
2900 #. type: textblock
2901 #: ../src/guestfs.pod:1323
2902 msgid ""
2903 "This function returns a non-NULL pointer to a handle on success or NULL on "
2904 "error."
2905 msgstr ""
2906
2907 # type: textblock
2908 #. type: textblock
2909 #: ../src/guestfs.pod:1326
2910 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2911 msgstr ""
2912
2913 # type: textblock
2914 #. type: textblock
2915 #: ../src/guestfs.pod:1328
2916 msgid ""
2917 "You may also want to configure error handling for the handle.  See L</ERROR "
2918 "HANDLING> section below."
2919 msgstr ""
2920
2921 # type: =head2
2922 #. type: =head2
2923 #: ../src/guestfs.pod:1331
2924 msgid "guestfs_close"
2925 msgstr ""
2926
2927 # type: verbatim
2928 #. type: verbatim
2929 #: ../src/guestfs.pod:1333
2930 #, no-wrap
2931 msgid ""
2932 " void guestfs_close (guestfs_h *g);\n"
2933 "\n"
2934 msgstr ""
2935
2936 # type: textblock
2937 #. type: textblock
2938 #: ../src/guestfs.pod:1335
2939 msgid "This closes the connection handle and frees up all resources used."
2940 msgstr ""
2941
2942 # type: =head1
2943 #. type: =head1
2944 #: ../src/guestfs.pod:1337
2945 msgid "ERROR HANDLING"
2946 msgstr ""
2947
2948 # type: textblock
2949 #. type: textblock
2950 #: ../src/guestfs.pod:1339
2951 msgid ""
2952 "API functions can return errors.  For example, almost all functions that "
2953 "return C<int> will return C<-1> to indicate an error."
2954 msgstr ""
2955
2956 # type: textblock
2957 #. type: textblock
2958 #: ../src/guestfs.pod:1342
2959 msgid ""
2960 "Additional information is available for errors: an error message string and "
2961 "optionally an error number (errno) if the thing that failed was a system "
2962 "call."
2963 msgstr ""
2964
2965 # type: textblock
2966 #. type: textblock
2967 #: ../src/guestfs.pod:1346
2968 msgid ""
2969 "You can get at the additional information about the last error on the handle "
2970 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2971 "up an error handler with L</guestfs_set_error_handler>."
2972 msgstr ""
2973
2974 # type: textblock
2975 #. type: textblock
2976 #: ../src/guestfs.pod:1351
2977 msgid ""
2978 "When the handle is created, a default error handler is installed which "
2979 "prints the error message string to C<stderr>.  For small short-running "
2980 "command line programs it is sufficient to do:"
2981 msgstr ""
2982
2983 # type: verbatim
2984 #. type: verbatim
2985 #: ../src/guestfs.pod:1355
2986 #, no-wrap
2987 msgid ""
2988 " if (guestfs_launch (g) == -1)\n"
2989 "   exit (EXIT_FAILURE);\n"
2990 "\n"
2991 msgstr ""
2992
2993 # type: textblock
2994 #. type: textblock
2995 #: ../src/guestfs.pod:1358
2996 msgid ""
2997 "since the default error handler will ensure that an error message has been "
2998 "printed to C<stderr> before the program exits."
2999 msgstr ""
3000
3001 # type: textblock
3002 #. type: textblock
3003 #: ../src/guestfs.pod:1361
3004 msgid ""
3005 "For other programs the caller will almost certainly want to install an "
3006 "alternate error handler or do error handling in-line like this:"
3007 msgstr ""
3008
3009 # type: verbatim
3010 #. type: verbatim
3011 #: ../src/guestfs.pod:1364
3012 #, no-wrap
3013 msgid ""
3014 " g = guestfs_create ();\n"
3015 " \n"
3016 msgstr ""
3017
3018 # type: verbatim
3019 #. type: verbatim
3020 #: ../src/guestfs.pod:1366
3021 #, no-wrap
3022 msgid ""
3023 " /* This disables the default behaviour of printing errors\n"
3024 "    on stderr. */\n"
3025 " guestfs_set_error_handler (g, NULL, NULL);\n"
3026 " \n"
3027 msgstr ""
3028
3029 # type: verbatim
3030 #. type: verbatim
3031 #: ../src/guestfs.pod:1370
3032 #, no-wrap
3033 msgid ""
3034 " if (guestfs_launch (g) == -1) {\n"
3035 "   /* Examine the error message and print it etc. */\n"
3036 "   char *msg = guestfs_last_error (g);\n"
3037 "   int errnum = guestfs_last_errno (g);\n"
3038 "   fprintf (stderr, \"%s\\n\", msg);\n"
3039 "   /* ... */\n"
3040 "  }\n"
3041 "\n"
3042 msgstr ""
3043
3044 # type: textblock
3045 #. type: textblock
3046 #: ../src/guestfs.pod:1378
3047 msgid ""
3048 "Out of memory errors are handled differently.  The default action is to call "
3049 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3050 "guestfs_set_out_of_memory_handler>."
3051 msgstr ""
3052
3053 # type: textblock
3054 #. type: textblock
3055 #: ../src/guestfs.pod:1382
3056 msgid ""
3057 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3058 "because there is no handle if this happens there is no way to get additional "
3059 "error information.  However L</guestfs_create> is supposed to be a "
3060 "lightweight operation which can only fail because of insufficient memory (it "
3061 "returns NULL in this case)."
3062 msgstr ""
3063
3064 # type: =head2
3065 #. type: =head2
3066 #: ../src/guestfs.pod:1388
3067 msgid "guestfs_last_error"
3068 msgstr ""
3069
3070 # type: verbatim
3071 #. type: verbatim
3072 #: ../src/guestfs.pod:1390
3073 #, no-wrap
3074 msgid ""
3075 " const char *guestfs_last_error (guestfs_h *g);\n"
3076 "\n"
3077 msgstr ""
3078
3079 # type: textblock
3080 #. type: textblock
3081 #: ../src/guestfs.pod:1392
3082 msgid ""
3083 "This returns the last error message that happened on C<g>.  If there has not "
3084 "been an error since the handle was created, then this returns C<NULL>."
3085 msgstr ""
3086
3087 # type: textblock
3088 #. type: textblock
3089 #: ../src/guestfs.pod:1396
3090 msgid ""
3091 "The lifetime of the returned string is until the next error occurs, or L</"
3092 "guestfs_close> is called."
3093 msgstr ""
3094
3095 # type: =head2
3096 #. type: =head2
3097 #: ../src/guestfs.pod:1399
3098 msgid "guestfs_last_errno"
3099 msgstr ""
3100
3101 # type: verbatim
3102 #. type: verbatim
3103 #: ../src/guestfs.pod:1401
3104 #, no-wrap
3105 msgid ""
3106 " int guestfs_last_errno (guestfs_h *g);\n"
3107 "\n"
3108 msgstr ""
3109
3110 # type: textblock
3111 #. type: textblock
3112 #: ../src/guestfs.pod:1403
3113 msgid "This returns the last error number (errno) that happened on C<g>."
3114 msgstr ""
3115
3116 # type: textblock
3117 #. type: textblock
3118 #: ../src/guestfs.pod:1405
3119 msgid "If successful, an errno integer not equal to zero is returned."
3120 msgstr ""
3121
3122 # type: textblock
3123 #. type: textblock
3124 #: ../src/guestfs.pod:1407
3125 msgid ""
3126 "If no error, this returns 0.  This call can return 0 in three situations:"
3127 msgstr ""
3128
3129 # type: textblock
3130 #. type: textblock
3131 #: ../src/guestfs.pod:1414
3132 msgid "There has not been any error on the handle."
3133 msgstr ""
3134
3135 # type: textblock
3136 #. type: textblock
3137 #: ../src/guestfs.pod:1418
3138 msgid ""
3139 "There has been an error but the errno was meaningless.  This corresponds to "
3140 "the case where the error did not come from a failed system call, but for "
3141 "some other reason."
3142 msgstr ""
3143
3144 # type: textblock
3145 #. type: textblock
3146 #: ../src/guestfs.pod:1424
3147 msgid ""
3148 "There was an error from a failed system call, but for some reason the errno "
3149 "was not captured and returned.  This usually indicates a bug in libguestfs."
3150 msgstr ""
3151
3152 # type: textblock
3153 #. type: textblock
3154 #: ../src/guestfs.pod:1430
3155 msgid ""
3156 "Libguestfs tries to convert the errno from inside the applicance into a "
3157 "corresponding errno for the caller (not entirely trivial: the appliance "
3158 "might be running a completely different operating system from the library "
3159 "and error numbers are not standardized across Un*xen).  If this could not be "
3160 "done, then the error is translated to C<EINVAL>.  In practice this should "
3161 "only happen in very rare circumstances."
3162 msgstr ""
3163
3164 # type: =head2
3165 #. type: =head2
3166 #: ../src/guestfs.pod:1438
3167 msgid "guestfs_set_error_handler"
3168 msgstr ""
3169
3170 # type: verbatim
3171 #. type: verbatim
3172 #: ../src/guestfs.pod:1440
3173 #, no-wrap
3174 msgid ""
3175 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3176 "                                           void *opaque,\n"
3177 "                                           const char *msg);\n"
3178 " void guestfs_set_error_handler (guestfs_h *g,\n"
3179 "                                 guestfs_error_handler_cb cb,\n"
3180 "                                 void *opaque);\n"
3181 "\n"
3182 msgstr ""
3183
3184 # type: textblock
3185 #. type: textblock
3186 #: ../src/guestfs.pod:1447
3187 msgid ""
3188 "The callback C<cb> will be called if there is an error.  The parameters "
3189 "passed to the callback are an opaque data pointer and the error message "
3190 "string."
3191 msgstr ""
3192
3193 # type: textblock
3194 #. type: textblock
3195 #: ../src/guestfs.pod:1451
3196 msgid ""
3197 "C<errno> is not passed to the callback.  To get that the callback must call "
3198 "L</guestfs_last_errno>."
3199 msgstr ""
3200
3201 # type: textblock
3202 #. type: textblock
3203 #: ../src/guestfs.pod:1454
3204 msgid ""
3205 "Note that the message string C<msg> is freed as soon as the callback "
3206 "function returns, so if you want to stash it somewhere you must make your "
3207 "own copy."
3208 msgstr ""
3209
3210 # type: textblock
3211 #. type: textblock
3212 #: ../src/guestfs.pod:1458
3213 msgid "The default handler prints messages on C<stderr>."
3214 msgstr ""
3215
3216 # type: textblock
3217 #. type: textblock
3218 #: ../src/guestfs.pod:1460
3219 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3220 msgstr ""
3221
3222 # type: =head2
3223 #. type: =head2
3224 #: ../src/guestfs.pod:1462
3225 msgid "guestfs_get_error_handler"
3226 msgstr ""
3227
3228 # type: verbatim
3229 #. type: verbatim
3230 #: ../src/guestfs.pod:1464
3231 #, no-wrap
3232 msgid ""
3233 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3234 "                                                     void **opaque_rtn);\n"
3235 "\n"
3236 msgstr ""
3237
3238 # type: textblock
3239 #. type: textblock
3240 #: ../src/guestfs.pod:1467
3241 msgid "Returns the current error handler callback."
3242 msgstr ""
3243
3244 # type: =head2
3245 #. type: =head2
3246 #: ../src/guestfs.pod:1469
3247 msgid "guestfs_set_out_of_memory_handler"
3248 msgstr ""
3249
3250 # type: verbatim
3251 #. type: verbatim
3252 #: ../src/guestfs.pod:1471
3253 #, no-wrap
3254 msgid ""
3255 " typedef void (*guestfs_abort_cb) (void);\n"
3256 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3257 "                                        guestfs_abort_cb);\n"
3258 "\n"
3259 msgstr ""
3260
3261 # type: textblock
3262 #. type: textblock
3263 #: ../src/guestfs.pod:1475
3264 msgid ""
3265 "The callback C<cb> will be called if there is an out of memory situation.  "
3266 "I<Note this callback must not return>."
3267 msgstr ""
3268
3269 # type: textblock
3270 #. type: textblock
3271 #: ../src/guestfs.pod:1478
3272 msgid "The default is to call L<abort(3)>."
3273 msgstr ""
3274
3275 # type: textblock
3276 #. type: textblock
3277 #: ../src/guestfs.pod:1480
3278 msgid ""
3279 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3280 msgstr ""
3281
3282 # type: =head2
3283 #. type: =head2
3284 #: ../src/guestfs.pod:1483
3285 msgid "guestfs_get_out_of_memory_handler"
3286 msgstr ""
3287
3288 # type: verbatim
3289 #. type: verbatim
3290 #: ../src/guestfs.pod:1485
3291 #, no-wrap
3292 msgid ""
3293 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3294 "\n"
3295 msgstr ""
3296
3297 # type: textblock
3298 #. type: textblock
3299 #: ../src/guestfs.pod:1487
3300 msgid "This returns the current out of memory handler."
3301 msgstr ""
3302
3303 # type: =head1
3304 #. type: =head1
3305 #: ../src/guestfs.pod:1489
3306 msgid "API CALLS"
3307 msgstr ""
3308
3309 # type: textblock
3310 #. type: textblock
3311 #: ../src/guestfs.pod:1491 ../fish/guestfish.pod:989
3312 msgid "@ACTIONS@"
3313 msgstr ""
3314
3315 # type: =head1
3316 #. type: =head1
3317 #: ../src/guestfs.pod:1493
3318 msgid "STRUCTURES"
3319 msgstr ""
3320
3321 # type: textblock
3322 #. type: textblock
3323 #: ../src/guestfs.pod:1495
3324 msgid "@STRUCTS@"
3325 msgstr ""
3326
3327 # type: =head1
3328 #. type: =head1
3329 #: ../src/guestfs.pod:1497
3330 msgid "AVAILABILITY"
3331 msgstr ""
3332
3333 # type: =head2
3334 #. type: =head2
3335 #: ../src/guestfs.pod:1499
3336 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3337 msgstr ""
3338
3339 # type: textblock
3340 #. type: textblock
3341 #: ../src/guestfs.pod:1501
3342 msgid ""
3343 "Using L</guestfs_available> you can test availability of the following "
3344 "groups of functions.  This test queries the appliance to see if the "
3345 "appliance you are currently using supports the functionality."
3346 msgstr ""
3347
3348 # type: textblock
3349 #. type: textblock
3350 #: ../src/guestfs.pod:1506
3351 msgid "@AVAILABILITY@"
3352 msgstr ""
3353
3354 # type: =head2
3355 #. type: =head2
3356 #: ../src/guestfs.pod:1508
3357 msgid "GUESTFISH supported COMMAND"
3358 msgstr ""
3359
3360 # type: textblock
3361 #. type: textblock
3362 #: ../src/guestfs.pod:1510
3363 msgid ""
3364 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3365 "prints out the available groups and whether they are supported by this build "
3366 "of libguestfs.  Note however that you have to do C<run> first."
3367 msgstr ""
3368
3369 # type: =head2
3370 #. type: =head2
3371 #: ../src/guestfs.pod:1515
3372 msgid "SINGLE CALLS AT COMPILE TIME"
3373 msgstr ""
3374
3375 # type: textblock
3376 #. type: textblock
3377 #: ../src/guestfs.pod:1517
3378 msgid ""
3379 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3380 "function, such as:"
3381 msgstr ""
3382
3383 # type: verbatim
3384 #. type: verbatim
3385 #: ../src/guestfs.pod:1520
3386 #, no-wrap
3387 msgid ""
3388 " #define LIBGUESTFS_HAVE_DD 1\n"
3389 "\n"
3390 msgstr ""
3391
3392 # type: textblock
3393 #. type: textblock
3394 #: ../src/guestfs.pod:1522
3395 msgid "if L</guestfs_dd> is available."
3396 msgstr ""
3397
3398 # type: textblock
3399 #. type: textblock
3400 #: ../src/guestfs.pod:1524
3401 msgid ""
3402 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3403 "function is available at compile time, we recommended using build tools such "
3404 "as autoconf or cmake.  For example in autotools you could use:"
3405 msgstr ""
3406
3407 # type: verbatim
3408 #. type: verbatim
3409 #: ../src/guestfs.pod:1529
3410 #, no-wrap
3411 msgid ""
3412 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3413 " AC_CHECK_FUNCS([guestfs_dd])\n"
3414 "\n"
3415 msgstr ""
3416
3417 # type: textblock
3418 #. type: textblock
3419 #: ../src/guestfs.pod:1532
3420 msgid ""
3421 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3422 "in your program."
3423 msgstr ""
3424
3425 # type: =head2
3426 #. type: =head2
3427 #: ../src/guestfs.pod:1535
3428 msgid "SINGLE CALLS AT RUN TIME"
3429 msgstr ""
3430
3431 # type: textblock
3432 #. type: textblock
3433 #: ../src/guestfs.pod:1537
3434 msgid ""
3435 "Testing at compile time doesn't guarantee that a function really exists in "
3436 "the library.  The reason is that you might be dynamically linked against a "
3437 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3438 "This situation unfortunately results in a segmentation fault, which is a "
3439 "shortcoming of the C dynamic linking system itself."
3440 msgstr ""
3441
3442 # type: textblock
3443 #. type: textblock
3444 #: ../src/guestfs.pod:1544
3445 msgid ""
3446 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3447 "in this example program (note that you still need the compile time check as "
3448 "well):"
3449 msgstr ""
3450
3451 # type: verbatim
3452 #. type: verbatim
3453 #: ../src/guestfs.pod:1548
3454 #, no-wrap
3455 msgid ""
3456 " #include <stdio.h>\n"
3457 " #include <stdlib.h>\n"
3458 " #include <unistd.h>\n"
3459 " #include <dlfcn.h>\n"
3460 " #include <guestfs.h>\n"
3461 " \n"
3462 msgstr ""
3463
3464 # type: verbatim
3465 #. type: verbatim
3466 #: ../src/guestfs.pod:1554
3467 #, no-wrap
3468 msgid ""
3469 " main ()\n"
3470 " {\n"
3471 " #ifdef LIBGUESTFS_HAVE_DD\n"
3472 "   void *dl;\n"
3473 "   int has_function;\n"
3474 " \n"
3475 msgstr ""
3476
3477 # type: verbatim
3478 #. type: verbatim
3479 #: ../src/guestfs.pod:1560
3480 #, no-wrap
3481 msgid ""
3482 "   /* Test if the function guestfs_dd is really available. */\n"
3483 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3484 "   if (!dl) {\n"
3485 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3486 "     exit (EXIT_FAILURE);\n"
3487 "   }\n"
3488 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3489 "   dlclose (dl);\n"
3490 " \n"
3491 msgstr ""
3492
3493 # type: verbatim
3494 #. type: verbatim
3495 #: ../src/guestfs.pod:1569
3496 #, no-wrap
3497 msgid ""
3498 "   if (!has_function)\n"
3499 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3500 "   else {\n"
3501 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3502 "     /* Now it's safe to call\n"
3503 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3504 "     */\n"
3505 "   }\n"
3506 " #else\n"
3507 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3508 " #endif\n"
3509 "  }\n"
3510 "\n"
3511 msgstr ""
3512
3513 # type: textblock
3514 #. type: textblock
3515 #: ../src/guestfs.pod:1582
3516 msgid ""
3517 "You may think the above is an awful lot of hassle, and it is.  There are "
3518 "other ways outside of the C linking system to ensure that this kind of "
3519 "incompatibility never arises, such as using package versioning:"
3520 msgstr ""
3521
3522 # type: verbatim
3523 #. type: verbatim
3524 #: ../src/guestfs.pod:1587
3525 #, no-wrap
3526 msgid ""
3527 " Requires: libguestfs >= 1.0.80\n"
3528 "\n"
3529 msgstr ""
3530
3531 # type: =head1
3532 #. type: =head1
3533 #: ../src/guestfs.pod:1589
3534 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3535 msgstr ""
3536
3537 # type: textblock
3538 #. type: textblock
3539 #: ../src/guestfs.pod:1591
3540 msgid ""
3541 "A recent feature of the API is the introduction of calls which take optional "
3542 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3543 "takes variable arguments (ie. C<...>), as in this example:"
3544 msgstr ""
3545
3546 # type: verbatim
3547 #. type: verbatim
3548 #: ../src/guestfs.pod:1596
3549 #, no-wrap
3550 msgid ""
3551 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3552 "\n"
3553 msgstr ""
3554
3555 # type: textblock
3556 #. type: textblock
3557 #: ../src/guestfs.pod:1598
3558 msgid ""
3559 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3560 "call with no optional arguments specified:"
3561 msgstr ""
3562
3563 # type: verbatim
3564 #. type: verbatim
3565 #: ../src/guestfs.pod:1601
3566 #, no-wrap
3567 msgid ""
3568 " guestfs_add_drive_opts (g, filename, -1);\n"
3569 "\n"
3570 msgstr ""
3571
3572 # type: textblock
3573 #. type: textblock
3574 #: ../src/guestfs.pod:1603
3575 msgid "With a single optional argument:"
3576 msgstr ""
3577
3578 # type: verbatim
3579 #. type: verbatim
3580 #: ../src/guestfs.pod:1605
3581 #, no-wrap
3582 msgid ""
3583 " guestfs_add_drive_opts (g, filename,\n"
3584 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3585 "                         -1);\n"
3586 "\n"
3587 msgstr ""
3588
3589 # type: textblock
3590 #. type: textblock
3591 #: ../src/guestfs.pod:1609
3592 msgid "With two:"
3593 msgstr ""
3594
3595 # type: verbatim
3596 #. type: verbatim
3597 #: ../src/guestfs.pod:1611
3598 #, no-wrap
3599 msgid ""
3600 " guestfs_add_drive_opts (g, filename,\n"
3601 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3602 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3603 "                         -1);\n"
3604 "\n"
3605 msgstr ""
3606
3607 # type: textblock
3608 #. type: textblock
3609 #: ../src/guestfs.pod:1616
3610 msgid ""
3611 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3612 "happen!"
3613 msgstr ""
3614
3615 # type: =head2
3616 #. type: =head2
3617 #: ../src/guestfs.pod:1619
3618 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3619 msgstr ""
3620
3621 # type: textblock
3622 #. type: textblock
3623 #: ../src/guestfs.pod:1621
3624 msgid ""
3625 "The second variant has the same name with the suffix C<_va>, which works the "
3626 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3627 "example function, this is declared:"
3628 msgstr ""
3629
3630 # type: verbatim
3631 #. type: verbatim
3632 #: ../src/guestfs.pod:1625
3633 #, no-wrap
3634 msgid ""
3635 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3636 "                                va_list args);\n"
3637 "\n"
3638 msgstr ""
3639
3640 # type: =head2
3641 #. type: =head2
3642 #: ../src/guestfs.pod:1628
3643 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3644 msgstr ""
3645
3646 # type: textblock
3647 #. type: textblock
3648 #: ../src/guestfs.pod:1630
3649 msgid ""
3650 "The third variant is useful where you need to construct these calls.  You "
3651 "pass in a structure where you fill in the optional fields.  The structure "
3652 "has a bitmask as the first element which you must set to indicate which "
3653 "fields you have filled in.  For our example function the structure and call "
3654 "are declared:"
3655 msgstr ""
3656
3657 # type: verbatim
3658 #. type: verbatim
3659 #: ../src/guestfs.pod:1636
3660 #, no-wrap
3661 msgid ""
3662 " struct guestfs_add_drive_opts_argv {\n"
3663 "   uint64_t bitmask;\n"
3664 "   int readonly;\n"
3665 "   const char *format;\n"
3666 "   /* ... */\n"
3667 " };\n"
3668 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3669 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3670 "\n"
3671 msgstr ""
3672
3673 # type: textblock
3674 #. type: textblock
3675 #: ../src/guestfs.pod:1645
3676 msgid "You could call it like this:"
3677 msgstr ""
3678
3679 # type: verbatim
3680 #. type: verbatim
3681 #: ../src/guestfs.pod:1647
3682 #, no-wrap
3683 msgid ""
3684 " struct guestfs_add_drive_opts_argv optargs = {\n"
3685 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3686 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3687 "   .readonly = 1,\n"
3688 "   .format = \"qcow2\"\n"
3689 " };\n"
3690 " \n"
3691 msgstr ""
3692
3693 # type: verbatim
3694 #. type: verbatim
3695 #: ../src/guestfs.pod:1654
3696 #, no-wrap
3697 msgid ""
3698 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3699 "\n"
3700 msgstr ""
3701
3702 # type: textblock
3703 #. type: textblock
3704 #: ../src/guestfs.pod:1656 ../src/guestfs-actions.pod:11
3705 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:9
3706 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3707 msgid "Notes:"
3708 msgstr ""
3709
3710 # type: textblock
3711 #. type: textblock
3712 #: ../src/guestfs.pod:1662
3713 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3714 msgstr ""
3715
3716 # type: textblock
3717 #. type: textblock
3718 #: ../src/guestfs.pod:1667
3719 msgid "You do not need to fill in all fields of the structure."
3720 msgstr ""
3721
3722 # type: textblock
3723 #. type: textblock
3724 #: ../src/guestfs.pod:1671
3725 msgid ""
3726 "There must be a one-to-one correspondence between fields of the structure "
3727 "that are filled in, and bits set in the bitmask."
3728 msgstr ""
3729
3730 # type: =head2
3731 #. type: =head2
3732 #: ../src/guestfs.pod:1676
3733 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3734 msgstr ""
3735
3736 # type: textblock
3737 #. type: textblock
3738 #: ../src/guestfs.pod:1678
3739 msgid ""
3740 "In other languages, optional arguments are expressed in the way that is "
3741 "natural for that language.  We refer you to the language-specific "
3742 "documentation for more details on that."
3743 msgstr ""
3744
3745 # type: textblock
3746 #. type: textblock
3747 #: ../src/guestfs.pod:1682
3748 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3749 msgstr ""
3750
3751 # type: =head2
3752 #. type: =head2
3753 #: ../src/guestfs.pod:1684
3754 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3755 msgstr ""
3756
3757 #. type: textblock
3758 #: ../src/guestfs.pod:1686
3759 msgid ""
3760 "B<Note:> This section documents the generic event mechanism introduced in "
3761 "libguestfs 1.10, which you should use in new code if possible.  The old "
3762 "functions C<guestfs_set_log_message_callback>, "
3763 "C<guestfs_set_subprocess_quit_callback>, "
3764 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3765 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3766 "page."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../src/guestfs.pod:1694
3771 msgid ""
3772 "Handles generate events when certain things happen, such as log messages "
3773 "being generated, progress messages during long-running operations, or the "
3774 "handle being closed.  The API calls described below let you register a "
3775 "callback to be called when events happen.  You can register multiple "
3776 "callbacks (for the same, different or overlapping sets of events), and "
3777 "individually remove callbacks.  If callbacks are not removed, then they "
3778 "remain in force until the handle is closed."
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../src/guestfs.pod:1702
3783 msgid ""
3784 "In the current implementation, events are only generated synchronously: that "
3785 "means that events (and hence callbacks) can only happen while you are in the "
3786 "middle of making another libguestfs call.  The callback is called in the "
3787 "same thread."
3788 msgstr ""
3789
3790 #. type: textblock
3791 #: ../src/guestfs.pod:1707
3792 msgid ""
3793 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3794 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3795 msgstr ""
3796
3797 #. type: =head3
3798 #: ../src/guestfs.pod:1711
3799 msgid "CLASSES OF EVENTS"
3800 msgstr ""
3801
3802 #. type: =item
3803 #: ../src/guestfs.pod:1715
3804 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../src/guestfs.pod:1718
3809 msgid ""
3810 "The callback function will be called while the handle is being closed "
3811 "(synchronously from L</guestfs_close>)."
3812 msgstr ""
3813
3814 # type: textblock
3815 #. type: textblock
3816 #: ../src/guestfs.pod:1721
3817 msgid ""
3818 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3819 "handles that are open when the program exits.  This means that this callback "
3820 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3821 "problems in higher-level languages (eg. if your HLL interpreter has already "
3822 "been cleaned up by the time this is called, and if your callback then jumps "
3823 "into some HLL function)."
3824 msgstr ""
3825
3826 #. type: textblock
3827 #: ../src/guestfs.pod:1728
3828 msgid ""
3829 "If no callback is registered: the handle is closed without any callback "
3830 "being invoked."
3831 msgstr ""
3832
3833 #. type: =item
3834 #: ../src/guestfs.pod:1731
3835 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../src/guestfs.pod:1734
3840 msgid ""
3841 "The callback function will be called when the child process quits, either "
3842 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3843 "corresponds to a transition from any state to the CONFIG state)."
3844 msgstr ""
3845
3846 #. type: textblock
3847 #: ../src/guestfs.pod:1738 ../src/guestfs.pod:1747
3848 msgid "If no callback is registered: the event is ignored."
3849 msgstr ""
3850
3851 #. type: =item
3852 #: ../src/guestfs.pod:1740
3853 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3854 msgstr ""
3855
3856 #. type: textblock
3857 #: ../src/guestfs.pod:1743
3858 msgid ""
3859 "The callback function will be called when the child process becomes ready "
3860 "first time after it has been launched.  (This corresponds to a transition "
3861 "from LAUNCHING to the READY state)."
3862 msgstr ""
3863
3864 #. type: =item
3865 #: ../src/guestfs.pod:1749
3866 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3867 msgstr ""
3868
3869 # type: textblock
3870 #. type: textblock
3871 #: ../src/guestfs.pod:1752
3872 msgid ""
3873 "Some long-running operations can generate progress messages.  If this "
3874 "callback is registered, then it will be called each time a progress message "
3875 "is generated (usually two seconds after the operation started, and three "
3876 "times per second thereafter until it completes, although the frequency may "
3877 "change in future versions)."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../src/guestfs.pod:1758
3882 msgid ""
3883 "The callback receives in the payload four unsigned 64 bit numbers which are "
3884 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3885 msgstr ""
3886
3887 #. type: textblock
3888 #: ../src/guestfs.pod:1761
3889 msgid ""
3890 "The units of C<total> are not defined, although for some operations C<total> "
3891 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3892 "or megabytes), and C<position> may be the portion which has been transferred."
3893 msgstr ""
3894
3895 # type: textblock
3896 #. type: textblock
3897 #: ../src/guestfs.pod:1766
3898 msgid "The only defined and stable parts of the API are:"
3899 msgstr ""
3900
3901 # type: textblock
3902 #. type: textblock
3903 #: ../src/guestfs.pod:1772
3904 msgid ""
3905 "The callback can display to the user some type of progress bar or indicator "
3906 "which shows the ratio of C<position>:C<total>."
3907 msgstr ""
3908
3909 # type: textblock
3910 #. type: textblock
3911 #: ../src/guestfs.pod:1777
3912 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3913 msgstr ""
3914
3915 # type: textblock
3916 #. type: textblock
3917 #: ../src/guestfs.pod:1781
3918 msgid ""
3919 "If any progress notification is sent during a call, then a final progress "
3920 "notification is always sent when C<position> = C<total>."
3921 msgstr ""
3922
3923 # type: textblock
3924 #. type: textblock
3925 #: ../src/guestfs.pod:1784
3926 msgid ""
3927 "This is to simplify caller code, so callers can easily set the progress "
3928 "indicator to \"100%\" at the end of the operation, without requiring special "
3929 "code to detect this case."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../src/guestfs.pod:1790
3934 msgid ""
3935 "The callback also receives the procedure number (C<proc_nr>) and serial "
3936 "number (C<serial>) of the call.  These are only useful for debugging "
3937 "protocol issues, and the callback can normally ignore them.  The callback "
3938 "may want to print these numbers in error messages or debugging messages."
3939 msgstr ""
3940
3941 #. type: textblock
3942 #: ../src/guestfs.pod:1796
3943 msgid "If no callback is registered: progress messages are discarded."
3944 msgstr ""
3945
3946 #. type: =item
3947 #: ../src/guestfs.pod:1798
3948 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3949 msgstr ""
3950
3951 #. type: textblock
3952 #: ../src/guestfs.pod:1801
3953 msgid ""
3954 "The callback function is called whenever a log message is generated by qemu, "
3955 "the appliance kernel, guestfsd (daemon), or utility programs."
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../src/guestfs.pod:1804
3960 msgid ""
3961 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3962 "guestfs_launch>) then additional debug messages are generated."
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
3967 msgid ""
3968 "If no callback is registered: the messages are discarded unless the verbose "
3969 "flag is set in which case they are sent to stderr.  You can override the "
3970 "printing of verbose messages to stderr by setting up a callback."
3971 msgstr ""
3972
3973 #. type: =item
3974 #: ../src/guestfs.pod:1812
3975 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3976 msgstr ""
3977
3978 #. type: textblock
3979 #: ../src/guestfs.pod:1815
3980 msgid ""
3981 "The callback function is called whenever a log message is generated by the "
3982 "library part of libguestfs."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../src/guestfs.pod:1818
3987 msgid ""
3988 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3989 "messages are generated."
3990 msgstr ""
3991
3992 #. type: =item
3993 #: ../src/guestfs.pod:1826
3994 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../src/guestfs.pod:1829
3999 msgid ""
4000 "The callback function is called whenever a trace message is generated.  This "
4001 "only applies if the trace flag (L</guestfs_set_trace>) is set."
4002 msgstr ""
4003
4004 #. type: textblock
4005 #: ../src/guestfs.pod:1832
4006 msgid ""
4007 "If no callback is registered: the messages are sent to stderr.  You can "
4008 "override the printing of trace messages to stderr by setting up a callback."
4009 msgstr ""
4010
4011 #. type: =head3
4012 #: ../src/guestfs.pod:1838
4013 msgid "guestfs_set_event_callback"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../src/guestfs.pod:1840
4018 #, no-wrap
4019 msgid ""
4020 " int guestfs_set_event_callback (guestfs_h *g,\n"
4021 "                                 guestfs_event_callback cb,\n"
4022 "                                 uint64_t event_bitmask,\n"
4023 "                                 int flags,\n"
4024 "                                 void *opaque);\n"
4025 "\n"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../src/guestfs.pod:1846
4030 msgid ""
4031 "This function registers a callback (C<cb>) for all event classes in the "
4032 "C<event_bitmask>."
4033 msgstr ""
4034
4035 #. type: textblock
4036 #: ../src/guestfs.pod:1849
4037 msgid ""
4038 "For example, to register for all log message events, you could call this "
4039 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4040 "To register a single callback for all possible classes of events, use "
4041 "C<GUESTFS_EVENT_ALL>."
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../src/guestfs.pod:1855
4046 msgid "C<flags> should always be passed as 0."
4047 msgstr ""
4048
4049 #. type: textblock
4050 #: ../src/guestfs.pod:1857
4051 msgid ""
4052 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4053 "it for any purpose."
4054 msgstr ""
4055
4056 #. type: textblock
4057 #: ../src/guestfs.pod:1860
4058 msgid ""
4059 "The return value is the event handle (an integer) which you can use to "
4060 "delete the callback (see below)."
4061 msgstr ""
4062
4063 #. type: textblock
4064 #: ../src/guestfs.pod:1863
4065 msgid ""
4066 "If there is an error, this function returns C<-1>, and sets the error in the "
4067 "handle in the usual way (see L</guestfs_last_error> etc.)"
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../src/guestfs.pod:1866
4072 msgid ""
4073 "Callbacks remain in effect until they are deleted, or until the handle is "
4074 "closed."
4075 msgstr ""
4076
4077 #. type: textblock
4078 #: ../src/guestfs.pod:1869
4079 msgid ""
4080 "In the case where multiple callbacks are registered for a particular event "
4081 "class, all of the callbacks are called.  The order in which multiple "
4082 "callbacks are called is not defined."
4083 msgstr ""
4084
4085 #. type: =head3
4086 #: ../src/guestfs.pod:1873
4087 msgid "guestfs_delete_event_callback"
4088 msgstr ""
4089
4090 #. type: verbatim
4091 #: ../src/guestfs.pod:1875
4092 #, no-wrap
4093 msgid ""
4094 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4095 "\n"
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../src/guestfs.pod:1877
4100 msgid ""
4101 "Delete a callback that was previously registered.  C<event_handle> should be "
4102 "the integer that was returned by a previous call to "
4103 "C<guestfs_set_event_callback> on the same handle."
4104 msgstr ""
4105
4106 #. type: =head3
4107 #: ../src/guestfs.pod:1881
4108 msgid "guestfs_event_callback"
4109 msgstr ""
4110
4111 #. type: verbatim
4112 #: ../src/guestfs.pod:1883
4113 #, no-wrap
4114 msgid ""
4115 " typedef void (*guestfs_event_callback) (\n"
4116 "                  guestfs_h *g,\n"
4117 "                  void *opaque,\n"
4118 "                  uint64_t event,\n"
4119 "                  int event_handle,\n"
4120 "                  int flags,\n"
4121 "                  const char *buf, size_t buf_len,\n"
4122 "                  const uint64_t *array, size_t array_len);\n"
4123 "\n"
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../src/guestfs.pod:1892
4128 msgid ""
4129 "This is the type of the event callback function that you have to provide."
4130 msgstr ""
4131
4132 #. type: textblock
4133 #: ../src/guestfs.pod:1895
4134 msgid ""
4135 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4136 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4137 "handle, and C<flags> which in the current API you should ignore."
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../src/guestfs.pod:1899
4142 msgid ""
4143 "The remaining parameters contain the event payload (if any).  Each event may "
4144 "contain a payload, which usually relates to the event class, but for future "
4145 "proofing your code should be written to handle any payload for any event "
4146 "class."
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../src/guestfs.pod:1904
4151 msgid ""
4152 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4153 "there is no message buffer).  Note that this message buffer can contain "
4154 "arbitrary 8 bit data, including NUL bytes."
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../src/guestfs.pod:1908
4159 msgid ""
4160 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4161 "moment this is only used for progress messages."
4162 msgstr ""
4163
4164 #. type: =head3
4165 #: ../src/guestfs.pod:1911
4166 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../src/guestfs.pod:1913
4171 msgid ""
4172 "One motivation for the generic event API was to allow GUI programs to "
4173 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4174 "unconditionally to C<stderr>."
4175 msgstr ""
4176
4177 #. type: textblock
4178 #: ../src/guestfs.pod:1917
4179 msgid ""
4180 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4181 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4182 "messages are not events; you must capture error messages separately)."
4183 msgstr ""
4184
4185 #. type: textblock
4186 #: ../src/guestfs.pod:1922
4187 msgid ""
4188 "Programs have to set up a callback to capture the classes of events of "
4189 "interest:"
4190 msgstr ""
4191
4192 #. type: verbatim
4193 #: ../src/guestfs.pod:1925
4194 #, no-wrap
4195 msgid ""
4196 " int eh =\n"
4197 "   guestfs_set_event_callback\n"
4198 "     (g, message_callback,\n"
4199 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4200 "      GUESTFS_EVENT_TRACE,\n"
4201 "      0, NULL) == -1)\n"
4202 " if (eh == -1) {\n"
4203 "   // handle error in the usual way\n"
4204 " }\n"
4205 "\n"
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../src/guestfs.pod:1935
4210 msgid ""
4211 "The callback can then direct messages to the appropriate place.  In this "
4212 "example, messages are directed to syslog:"
4213 msgstr ""
4214
4215 #. type: verbatim
4216 #: ../src/guestfs.pod:1938
4217 #, no-wrap
4218 msgid ""
4219 " static void\n"
4220 " message_callback (\n"
4221 "         guestfs_h *g,\n"
4222 "         void *opaque,\n"
4223 "         uint64_t event,\n"
4224 "         int event_handle,\n"
4225 "         int flags,\n"
4226 "         const char *buf, size_t buf_len,\n"
4227 "         const uint64_t *array, size_t array_len)\n"
4228 " {\n"
4229 "   const int priority = LOG_USER|LOG_INFO;\n"
4230 "   if (buf_len > 0)\n"
4231 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4232 " }\n"
4233 "\n"
4234 msgstr ""
4235
4236 # type: =head1
4237 #. type: =head1
4238 #: ../src/guestfs.pod:1953
4239 msgid "PRIVATE DATA AREA"
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../src/guestfs.pod:1955
4244 msgid ""
4245 "You can attach named pieces of private data to the libguestfs handle, fetch "
4246 "them by name, and walk over them, for the lifetime of the handle.  This is "
4247 "called the private data area and is only available from the C API."
4248 msgstr ""
4249
4250 # type: textblock
4251 #. type: textblock
4252 #: ../src/guestfs.pod:1960
4253 msgid "To attach a named piece of data, use the following call:"
4254 msgstr ""
4255
4256 # type: verbatim
4257 #. type: verbatim
4258 #: ../src/guestfs.pod:1962
4259 #, no-wrap
4260 msgid ""
4261 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4262 "\n"
4263 msgstr ""
4264
4265 # type: textblock
4266 #. type: textblock
4267 #: ../src/guestfs.pod:1964
4268 msgid ""
4269 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4270 "pointer (which can be C<NULL>).  Any previous item with the same name is "
4271 "overwritten."
4272 msgstr ""
4273
4274 # type: textblock
4275 #. type: textblock
4276 #: ../src/guestfs.pod:1968
4277 msgid ""
4278 "You can use any C<key> you want, but names beginning with an underscore "
4279 "character are reserved for internal libguestfs purposes (for implementing "
4280 "language bindings).  It is recommended to prefix the name with some unique "
4281 "string to avoid collisions with other users."
4282 msgstr ""
4283
4284 # type: textblock
4285 #. type: textblock
4286 #: ../src/guestfs.pod:1973
4287 msgid "To retrieve the pointer, use:"
4288 msgstr ""
4289
4290 # type: verbatim
4291 #. type: verbatim
4292 #: ../src/guestfs.pod:1975
4293 #, no-wrap
4294 msgid ""
4295 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4296 "\n"
4297 msgstr ""
4298
4299 # type: textblock
4300 #. type: textblock
4301 #: ../src/guestfs.pod:1977
4302 msgid ""
4303 "This function returns C<NULL> if either no data is found associated with "
4304 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4305 "C<NULL>."
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../src/guestfs.pod:1981
4310 msgid ""
4311 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4312 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4313 "all.  In particular, libguestfs does I<not> try to free the data when the "
4314 "handle is closed.  If the data must be freed, then the caller must either "
4315 "free it before calling L</guestfs_close> or must set up a close callback to "
4316 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4317 msgstr ""
4318
4319 #. type: textblock
4320 #: ../src/guestfs.pod:1988
4321 msgid "To walk over all entries, use these two functions:"
4322 msgstr ""
4323
4324 #. type: verbatim
4325 #: ../src/guestfs.pod:1990
4326 #, no-wrap
4327 msgid ""
4328 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4329 "\n"
4330 msgstr ""
4331
4332 #. type: verbatim
4333 #: ../src/guestfs.pod:1992
4334 #, no-wrap
4335 msgid ""
4336 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4337 "\n"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../src/guestfs.pod:1994
4342 msgid ""
4343 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4344 "not have any particular meaning -- keys are not returned in any defined "
4345 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4346 "corresponding data pointer is returned from the function.  C<NULL> is "
4347 "returned if there are no keys stored in the handle."
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../src/guestfs.pod:2000
4352 msgid ""
4353 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4354 "value of this function is also C<NULL> is there are no further entries to "
4355 "return."
4356 msgstr ""
4357
4358 #. type: textblock
4359 #: ../src/guestfs.pod:2004
4360 msgid "Notes about walking over entries:"
4361 msgstr ""
4362
4363 #. type: textblock
4364 #: ../src/guestfs.pod:2010
4365 msgid ""
4366 "You must not call C<guestfs_set_private> while walking over the entries."
4367 msgstr ""
4368
4369 #. type: textblock
4370 #: ../src/guestfs.pod:2015
4371 msgid ""
4372 "The handle maintains an internal iterator which is reset when you call "
4373 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4374 "call C<guestfs_set_private>."
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../src/guestfs.pod:2021
4379 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4380 msgstr ""
4381
4382 #. type: verbatim
4383 #: ../src/guestfs.pod:2023
4384 #, no-wrap
4385 msgid ""
4386 " guestfs_set_private (g, key, NULL);\n"
4387 "\n"
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../src/guestfs.pod:2025
4392 msgid "then that C<key> is not returned when walking."
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../src/guestfs.pod:2029
4397 msgid ""
4398 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4399 "C<guestfs_next_private> or C<guestfs_set_private>."
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../src/guestfs.pod:2035
4404 msgid ""
4405 "The following example code shows how to print all keys and data pointers "
4406 "that are associated with the handle C<g>:"
4407 msgstr ""
4408
4409 #. type: verbatim
4410 #: ../src/guestfs.pod:2038
4411 #, no-wrap
4412 msgid ""
4413 " const char *key;\n"
4414 " void *data = guestfs_first_private (g, &key);\n"
4415 " while (data != NULL)\n"
4416 "   {\n"
4417 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4418 "     data = guestfs_next_private (g, &key);\n"
4419 "   }\n"
4420 "\n"
4421 msgstr ""
4422
4423 #. type: textblock
4424 #: ../src/guestfs.pod:2046
4425 msgid ""
4426 "More commonly you are only interested in keys that begin with an application-"
4427 "specific prefix C<foo_>.  Modify the loop like so:"
4428 msgstr ""
4429
4430 #. type: verbatim
4431 #: ../src/guestfs.pod:2049
4432 #, no-wrap
4433 msgid ""
4434 " const char *key;\n"
4435 " void *data = guestfs_first_private (g, &key);\n"
4436 " while (data != NULL)\n"
4437 "   {\n"
4438 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4439 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4440 "     data = guestfs_next_private (g, &key);\n"
4441 "   }\n"
4442 "\n"
4443 msgstr ""
4444
4445 #. type: textblock
4446 #: ../src/guestfs.pod:2058
4447 msgid ""
4448 "If you need to modify keys while walking, then you have to jump back to the "
4449 "beginning of the loop.  For example, to delete all keys prefixed with "
4450 "C<foo_>:"
4451 msgstr ""
4452
4453 #. type: verbatim
4454 #: ../src/guestfs.pod:2062
4455 #, no-wrap
4456 msgid ""
4457 "  const char *key;\n"
4458 "  void *data;\n"
4459 " again:\n"
4460 "  data = guestfs_first_private (g, &key);\n"
4461 "  while (data != NULL)\n"
4462 "    {\n"
4463 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4464 "        {\n"
4465 "          guestfs_set_private (g, key, NULL);\n"
4466 "          /* note that 'key' pointer is now invalid, and so is\n"
4467 "             the internal iterator */\n"
4468 "          goto again;\n"
4469 "        }\n"
4470 "      data = guestfs_next_private (g, &key);\n"
4471 "    }\n"
4472 "\n"
4473 msgstr ""
4474
4475 #. type: textblock
4476 #: ../src/guestfs.pod:2078
4477 msgid ""
4478 "Note that the above loop is guaranteed to terminate because the keys are "
4479 "being deleted, but other manipulations of keys within the loop might not "
4480 "terminate unless you also maintain an indication of which keys have been "
4481 "visited."
4482 msgstr ""
4483
4484 # type: =end
4485 #. type: =end
4486 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4487 msgid "html"
4488 msgstr ""
4489
4490 # type: textblock
4491 #. type: textblock
4492 #: ../src/guestfs.pod:2085
4493 msgid ""
4494 "<!-- old anchor for the next section --> <a name="
4495 "\"state_machine_and_low_level_event_api\"/>"
4496 msgstr ""
4497
4498 # type: =head1
4499 #. type: =head1
4500 #: ../src/guestfs.pod:2090
4501 msgid "ARCHITECTURE"
4502 msgstr ""
4503
4504 # type: textblock
4505 #. type: textblock
4506 #: ../src/guestfs.pod:2092
4507 msgid ""
4508 "Internally, libguestfs is implemented by running an appliance (a special "
4509 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4510 "process of the main program."
4511 msgstr ""
4512
4513 # type: verbatim
4514 #. type: verbatim
4515 #: ../src/guestfs.pod:2096
4516 #, no-wrap
4517 msgid ""
4518 "  ___________________\n"
4519 " /                   \\\n"
4520 " | main program      |\n"
4521 " |                   |\n"
4522 " |                   |           child process / appliance\n"
4523 " |                   |           __________________________\n"
4524 " |                   |          / qemu                     \\\n"
4525 " +-------------------+   RPC    |      +-----------------+ |\n"
4526 " | libguestfs     <--------------------> guestfsd        | |\n"
4527 " |                   |          |      +-----------------+ |\n"
4528 " \\___________________/          |      | Linux kernel    | |\n"
4529 "                                |      +--^--------------+ |\n"
4530 "                                \\_________|________________/\n"
4531 "                                          |\n"
4532 "                                   _______v______\n"
4533 "                                  /              \\\n"
4534 "                                  | Device or    |\n"
4535 "                                  | disk image   |\n"
4536 "                                  \\______________/\n"
4537 "\n"
4538 msgstr ""
4539
4540 # type: textblock
4541 #. type: textblock
4542 #: ../src/guestfs.pod:2116
4543 msgid ""
4544 "The library, linked to the main program, creates the child process and hence "
4545 "the appliance in the L</guestfs_launch> function."
4546 msgstr ""
4547
4548 # type: textblock
4549 #. type: textblock
4550 #: ../src/guestfs.pod:2119
4551 msgid ""
4552 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4553 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4554 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4555 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4556 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4557 "attached to the qemu process which translates device access by the "
4558 "appliance's Linux kernel into accesses to the image."
4559 msgstr ""
4560
4561 # type: textblock
4562 #. type: textblock
4563 #: ../src/guestfs.pod:2128
4564 msgid ""
4565 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4566 "Although the disk image you are attached to might also be used by some "
4567 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4568 "care if both libguestfs's qemu process and your virtual machine are trying "
4569 "to update the disk image at the same time, since these usually results in "
4570 "massive disk corruption)."
4571 msgstr ""
4572
4573 # type: =head1
4574 #. type: =head1
4575 #: ../src/guestfs.pod:2135
4576 msgid "STATE MACHINE"
4577 msgstr ""
4578
4579 # type: textblock
4580 #. type: textblock
4581 #: ../src/guestfs.pod:2137
4582 msgid "libguestfs uses a state machine to model the child process:"
4583 msgstr ""
4584
4585 # type: verbatim
4586 #. type: verbatim
4587 #: ../src/guestfs.pod:2139
4588 #, no-wrap
4589 msgid ""
4590 "                         |\n"
4591 "                    guestfs_create\n"
4592 "                         |\n"
4593 "                         |\n"
4594 "                     ____V_____\n"
4595 "                    /          \\\n"
4596 "                    |  CONFIG  |\n"
4597 "                    \\__________/\n"
4598 "                     ^ ^   ^  \\\n"
4599 "                    /  |    \\  \\ guestfs_launch\n"
4600 "                   /   |    _\\__V______\n"
4601 "                  /    |   /           \\\n"
4602 "                 /     |   | LAUNCHING |\n"
4603 "                /      |   \\___________/\n"
4604 "               /       |       /\n"
4605 "              /        |  guestfs_launch\n"
4606 "             /         |     /\n"
4607 "    ______  /        __|____V\n"
4608 "   /      \\ ------> /        \\\n"
4609 "   | BUSY |         | READY  |\n"
4610 "   \\______/ <------ \\________/\n"
4611 "\n"
4612 msgstr ""
4613
4614 # type: textblock
4615 #. type: textblock
4616 #: ../src/guestfs.pod:2161
4617 msgid ""
4618 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4619 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4620 "(3) alternating between READY and BUSY as commands are issued to, and "
4621 "carried out by, the child process."
4622 msgstr ""
4623
4624 # type: textblock
4625 #. type: textblock
4626 #: ../src/guestfs.pod:2166
4627 msgid ""
4628 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4629 "asynchronously at any time (eg. due to some internal error), and that causes "
4630 "the state to transition back to CONFIG."
4631 msgstr ""
4632
4633 # type: textblock
4634 #. type: textblock
4635 #: ../src/guestfs.pod:2170
4636 msgid ""
4637 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4638 "issued when in the CONFIG state."
4639 msgstr ""
4640
4641 # type: textblock
4642 #. type: textblock
4643 #: ../src/guestfs.pod:2173
4644 msgid ""
4645 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4646 "L</guestfs_launch> blocks until the child process is READY to accept "
4647 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4648 "moves the state from CONFIG to LAUNCHING while it is running."
4649 msgstr ""
4650
4651 # type: textblock
4652 #. type: textblock
4653 #: ../src/guestfs.pod:2179
4654 msgid ""
4655 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4656 "state.  These API calls block waiting for the command to be carried out (ie. "
4657 "the state to transition to BUSY and then back to READY).  There are no non-"
4658 "blocking versions, and no way to issue more than one command per handle at "
4659 "the same time."
4660 msgstr ""
4661
4662 # type: textblock
4663 #. type: textblock
4664 #: ../src/guestfs.pod:2185
4665 msgid ""
4666 "Finally, the child process sends asynchronous messages back to the main "
4667 "program, such as kernel log messages.  You can register a callback to "
4668 "receive these messages."
4669 msgstr ""
4670
4671 # type: =head1
4672 #. type: =head1
4673 #: ../src/guestfs.pod:2189
4674 msgid "INTERNALS"
4675 msgstr ""
4676
4677 # type: =head2
4678 #. type: =head2
4679 #: ../src/guestfs.pod:2191
4680 msgid "COMMUNICATION PROTOCOL"
4681 msgstr ""
4682
4683 # type: textblock
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2193
4686 msgid ""
4687 "Don't rely on using this protocol directly.  This section documents how it "
4688 "currently works, but it may change at any time."
4689 msgstr ""
4690
4691 # type: textblock
4692 #. type: textblock
4693 #: ../src/guestfs.pod:2196
4694 msgid ""
4695 "The protocol used to talk between the library and the daemon running inside "
4696 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4697 "1014, RFC 1832, RFC 4506)."
4698 msgstr ""
4699
4700 # type: textblock
4701 #. type: textblock
4702 #: ../src/guestfs.pod:2200
4703 msgid ""
4704 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4705 "this file is automatically generated)."
4706 msgstr ""
4707
4708 # type: textblock
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2203
4711 msgid ""
4712 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4713 "and C<FileOut> parameters, which are handled with very simple request/reply "
4714 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4715 "parameters, which use the same request and reply messages, but they may also "
4716 "be followed by files sent using a chunked encoding."
4717 msgstr ""
4718
4719 # type: =head3
4720 #. type: =head3
4721 #: ../src/guestfs.pod:2210
4722 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4723 msgstr ""
4724
4725 # type: textblock
4726 #. type: textblock
4727 #: ../src/guestfs.pod:2212
4728 msgid "For ordinary functions, the request message is:"
4729 msgstr ""
4730
4731 # type: verbatim
4732 #. type: verbatim
4733 #: ../src/guestfs.pod:2214
4734 #, no-wrap
4735 msgid ""
4736 " total length (header + arguments,\n"
4737 "      but not including the length word itself)\n"
4738 " struct guestfs_message_header (encoded as XDR)\n"
4739 " struct guestfs_<foo>_args (encoded as XDR)\n"
4740 "\n"
4741 msgstr ""
4742
4743 # type: textblock
4744 #. type: textblock
4745 #: ../src/guestfs.pod:2219
4746 msgid ""
4747 "The total length field allows the daemon to allocate a fixed size buffer "
4748 "into which it slurps the rest of the message.  As a result, the total length "
4749 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4750 "effective size of any request is limited to somewhere under this size."
4751 msgstr ""
4752
4753 # type: textblock
4754 #. type: textblock
4755 #: ../src/guestfs.pod:2225
4756 msgid ""
4757 "Note also that many functions don't take any arguments, in which case the "
4758 "C<guestfs_I<foo>_args> is completely omitted."
4759 msgstr ""
4760
4761 # type: textblock
4762 #. type: textblock
4763 #: ../src/guestfs.pod:2228
4764 msgid ""
4765 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4766 "receiver knows what type of args structure to expect, or none at all."
4767 msgstr ""
4768
4769 # type: textblock
4770 #. type: textblock
4771 #: ../src/guestfs.pod:2232
4772 msgid ""
4773 "For functions that take optional arguments, the optional arguments are "
4774 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4775 "arguments.  A bitmask in the header indicates which optional arguments are "
4776 "meaningful.  The bitmask is also checked to see if it contains bits set "
4777 "which the daemon does not know about (eg. if more optional arguments were "
4778 "added in a later version of the library), and this causes the call to be "
4779 "rejected."
4780 msgstr ""
4781
4782 # type: textblock
4783 #. type: textblock
4784 #: ../src/guestfs.pod:2240
4785 msgid "The reply message for ordinary functions is:"
4786 msgstr ""
4787
4788 # type: verbatim
4789 #. type: verbatim
4790 #: ../src/guestfs.pod:2242
4791 #, no-wrap
4792 msgid ""
4793 " total length (header + ret,\n"
4794 "      but not including the length word itself)\n"
4795 " struct guestfs_message_header (encoded as XDR)\n"
4796 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4797 "\n"
4798 msgstr ""
4799
4800 # type: textblock
4801 #. type: textblock
4802 #: ../src/guestfs.pod:2247
4803 msgid ""
4804 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4805 "functions that return no formal return values."
4806 msgstr ""
4807
4808 # type: textblock
4809 #. type: textblock
4810 #: ../src/guestfs.pod:2250
4811 msgid ""
4812 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4813 msgstr ""
4814
4815 # type: textblock
4816 #. type: textblock
4817 #: ../src/guestfs.pod:2253
4818 msgid ""
4819 "In the case of an error, a flag is set in the header, and the reply message "
4820 "is slightly changed:"
4821 msgstr ""
4822
4823 # type: verbatim
4824 #. type: verbatim
4825 #: ../src/guestfs.pod:2256
4826 #, no-wrap
4827 msgid ""
4828 " total length (header + error,\n"
4829 "      but not including the length word itself)\n"
4830 " struct guestfs_message_header (encoded as XDR)\n"
4831 " struct guestfs_message_error (encoded as XDR)\n"
4832 "\n"
4833 msgstr ""
4834
4835 # type: textblock
4836 #. type: textblock
4837 #: ../src/guestfs.pod:2261
4838 msgid ""
4839 "The C<guestfs_message_error> structure contains the error message as a "
4840 "string."
4841 msgstr ""
4842
4843 # type: =head3
4844 #. type: =head3
4845 #: ../src/guestfs.pod:2264
4846 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4847 msgstr ""
4848
4849 # type: textblock
4850 #. type: textblock
4851 #: ../src/guestfs.pod:2266
4852 msgid ""
4853 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4854 "The normal request message is sent (see above).  However this is followed by "
4855 "a sequence of file chunks."
4856 msgstr ""
4857
4858 # type: verbatim
4859 #. type: verbatim
4860 #: ../src/guestfs.pod:2270
4861 #, no-wrap
4862 msgid ""
4863 " total length (header + arguments,\n"
4864 "      but not including the length word itself,\n"
4865 "      and not including the chunks)\n"
4866 " struct guestfs_message_header (encoded as XDR)\n"
4867 " struct guestfs_<foo>_args (encoded as XDR)\n"
4868 " sequence of chunks for FileIn param #0\n"
4869 " sequence of chunks for FileIn param #1 etc.\n"
4870 "\n"
4871 msgstr ""
4872
4873 # type: textblock
4874 #. type: textblock
4875 #: ../src/guestfs.pod:2278
4876 msgid "The \"sequence of chunks\" is:"
4877 msgstr ""
4878
4879 # type: verbatim
4880 #. type: verbatim
4881 #: ../src/guestfs.pod:2280
4882 #, no-wrap
4883 msgid ""
4884 " length of chunk (not including length word itself)\n"
4885 " struct guestfs_chunk (encoded as XDR)\n"
4886 " length of chunk\n"
4887 " struct guestfs_chunk (encoded as XDR)\n"
4888 "   ...\n"
4889 " length of chunk\n"
4890 " struct guestfs_chunk (with data.data_len == 0)\n"
4891 "\n"
4892 msgstr ""
4893
4894 # type: textblock
4895 #. type: textblock
4896 #: ../src/guestfs.pod:2288
4897 msgid ""
4898 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4899 "is set in the final chunk to indicate either successful completion or early "
4900 "cancellation."
4901 msgstr ""
4902
4903 # type: textblock
4904 #. type: textblock
4905 #: ../src/guestfs.pod:2292
4906 msgid ""
4907 "At time of writing there are no functions that have more than one FileIn "
4908 "parameter.  However this is (theoretically) supported, by sending the "
4909 "sequence of chunks for each FileIn parameter one after another (from left to "
4910 "right)."
4911 msgstr ""
4912
4913 # type: textblock
4914 #. type: textblock
4915 #: ../src/guestfs.pod:2297
4916 msgid ""
4917 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4918 "transfer.  The library does this by sending a chunk with a special flag set "
4919 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4920 "RPC, does I<not> send any reply, and goes back to reading the next request."
4921 msgstr ""
4922
4923 # type: textblock
4924 #. type: textblock
4925 #: ../src/guestfs.pod:2303
4926 msgid ""
4927 "The daemon may also cancel.  It does this by writing a special word "
4928 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4929 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4930 "cancel chunk).  The special word is chosen so that even if cancellation "
4931 "happens right at the end of the transfer (after the library has finished "
4932 "writing and has started listening for the reply), the \"spurious\" cancel "
4933 "flag will not be confused with the reply message."
4934 msgstr ""
4935
4936 # type: textblock
4937 #. type: textblock
4938 #: ../src/guestfs.pod:2312
4939 msgid ""
4940 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4941 "limit), and also files where the size is not known in advance (eg. from "
4942 "pipes or sockets).  However the chunks are rather small "
4943 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4944 "to keep much in memory."
4945 msgstr ""
4946
4947 # type: =head3
4948 #. type: =head3
4949 #: ../src/guestfs.pod:2318
4950 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4951 msgstr ""
4952
4953 # type: textblock
4954 #. type: textblock
4955 #: ../src/guestfs.pod:2320
4956 msgid ""
4957 "The protocol for FileOut parameters is exactly the same as for FileIn "
4958 "parameters, but with the roles of daemon and library reversed."
4959 msgstr ""
4960
4961 # type: verbatim
4962 #. type: verbatim
4963 #: ../src/guestfs.pod:2323
4964 #, no-wrap
4965 msgid ""
4966 " total length (header + ret,\n"
4967 "      but not including the length word itself,\n"
4968 "      and not including the chunks)\n"
4969 " struct guestfs_message_header (encoded as XDR)\n"
4970 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4971 " sequence of chunks for FileOut param #0\n"
4972 " sequence of chunks for FileOut param #1 etc.\n"
4973 "\n"
4974 msgstr ""
4975
4976 # type: =head3
4977 #. type: =head3
4978 #: ../src/guestfs.pod:2331
4979 msgid "INITIAL MESSAGE"
4980 msgstr ""
4981
4982 # type: textblock
4983 #. type: textblock
4984 #: ../src/guestfs.pod:2333
4985 msgid ""
4986 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4987 "which indicates that the guest and daemon is alive.  This is what L</"
4988 "guestfs_launch> waits for."
4989 msgstr ""
4990
4991 # type: =head3
4992 #. type: =head3
4993 #: ../src/guestfs.pod:2337
4994 msgid "PROGRESS NOTIFICATION MESSAGES"
4995 msgstr ""
4996
4997 # type: textblock
4998 #. type: textblock
4999 #: ../src/guestfs.pod:2339
5000 msgid ""
5001 "The daemon may send progress notification messages at any time.  These are "
5002 "distinguished by the normal length word being replaced by "
5003 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5004 msgstr ""
5005
5006 #. type: textblock
5007 #: ../src/guestfs.pod:2343
5008 msgid ""
5009 "The library turns them into progress callbacks (see L</"
5010 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5011 "if not."
5012 msgstr ""
5013
5014 # type: textblock
5015 #. type: textblock
5016 #: ../src/guestfs.pod:2347
5017 msgid ""
5018 "The daemon self-limits the frequency of progress messages it sends (see "
5019 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5020 "messages."
5021 msgstr ""
5022
5023 # type: =head1
5024 #. type: =head1
5025 #: ../src/guestfs.pod:2351
5026 msgid "LIBGUESTFS VERSION NUMBERS"
5027 msgstr ""
5028
5029 # type: textblock
5030 #. type: textblock
5031 #: ../src/guestfs.pod:2353
5032 msgid ""
5033 "Since April 2010, libguestfs has started to make separate development and "
5034 "stable releases, along with corresponding branches in our git repository.  "
5035 "These separate releases can be identified by version number:"
5036 msgstr ""
5037
5038 # type: verbatim
5039 #. type: verbatim
5040 #: ../src/guestfs.pod:2358
5041 #, no-wrap
5042 msgid ""
5043 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5044 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5045 "       |\n"
5046 "       v\n"
5047 " 1  .  3  .  5\n"
5048 " ^           ^\n"
5049 " |           |\n"
5050 " |           `-------- sub-version\n"
5051 " |\n"
5052 " `------ always '1' because we don't change the ABI\n"
5053 "\n"
5054 msgstr ""
5055
5056 # type: textblock
5057 #. type: textblock
5058 #: ../src/guestfs.pod:2369
5059 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5060 msgstr ""
5061
5062 # type: textblock
5063 #. type: textblock
5064 #: ../src/guestfs.pod:2371
5065 msgid ""
5066 "As time passes we cherry pick fixes from the development branch and backport "
5067 "those into the stable branch, the effect being that the stable branch should "
5068 "get more stable and less buggy over time.  So the stable releases are ideal "
5069 "for people who don't need new features but would just like the software to "
5070 "work."
5071 msgstr ""
5072
5073 # type: textblock
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2377
5076 msgid "Our criteria for backporting changes are:"
5077 msgstr ""
5078
5079 # type: textblock
5080 #. type: textblock
5081 #: ../src/guestfs.pod:2383
5082 msgid ""
5083 "Documentation changes which don't affect any code are backported unless the "
5084 "documentation refers to a future feature which is not in stable."
5085 msgstr ""
5086
5087 # type: textblock
5088 #. type: textblock
5089 #: ../src/guestfs.pod:2389
5090 msgid ""
5091 "Bug fixes which are not controversial, fix obvious problems, and have been "
5092 "well tested are backported."
5093 msgstr ""
5094
5095 # type: textblock
5096 #. type: textblock
5097 #: ../src/guestfs.pod:2394
5098 msgid ""
5099 "Simple rearrangements of code which shouldn't affect how it works get "
5100 "backported.  This is so that the code in the two branches doesn't get too "
5101 "far out of step, allowing us to backport future fixes more easily."
5102 msgstr ""
5103
5104 # type: textblock
5105 #. type: textblock
5106 #: ../src/guestfs.pod:2400
5107 msgid ""
5108 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5109 "exceptional case: the new feature is required in order to implement an "
5110 "important bug fix."
5111 msgstr ""
5112
5113 # type: textblock
5114 #. type: textblock
5115 #: ../src/guestfs.pod:2406
5116 msgid ""
5117 "A new stable branch starts when we think the new features in development are "
5118 "substantial and compelling enough over the current stable branch to warrant "
5119 "it.  When that happens we create new stable and development versions 1.N.0 "
5120 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5121 "stable at this point, but by backporting fixes from development, that branch "
5122 "will stabilize over time."
5123 msgstr ""
5124
5125 #. type: =head1
5126 #: ../src/guestfs.pod:2414
5127 msgid "EXTENDING LIBGUESTFS"
5128 msgstr ""
5129
5130 #. type: =head2
5131 #: ../src/guestfs.pod:2416
5132 msgid "ADDING A NEW API ACTION"
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../src/guestfs.pod:2418
5137 msgid ""
5138 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5139 "documentation) are generated, and this makes it easy to extend the "
5140 "libguestfs API."
5141 msgstr ""
5142
5143 #. type: textblock
5144 #: ../src/guestfs.pod:2422
5145 msgid "To add a new API action there are two changes:"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../src/guestfs.pod:2428
5150 msgid ""
5151 "You need to add a description of the call (name, parameters, return type, "
5152 "tests, documentation) to C<generator/generator_actions.ml>."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../src/guestfs.pod:2431
5157 msgid ""
5158 "There are two sorts of API action, depending on whether the call goes "
5159 "through to the daemon in the appliance, or is serviced entirely by the "
5160 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5161 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5162 "an example of the latter, since a trace flag is maintained in the handle and "
5163 "all tracing is done on the library side."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../src/guestfs.pod:2439
5168 msgid ""
5169 "Most new actions are of the first type, and get added to the "
5170 "C<daemon_functions> list.  Each function has a unique procedure number used "
5171 "in the RPC protocol which is assigned to that action when we publish "
5172 "libguestfs and cannot be reused.  Take the latest procedure number and "
5173 "increment it."
5174 msgstr ""
5175
5176 #. type: textblock
5177 #: ../src/guestfs.pod:2445
5178 msgid ""
5179 "For library-only actions of the second type, add to the "
5180 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5181 "library and do not travel over the RPC mechanism to the daemon, these "
5182 "functions do not need a procedure number, and so the procedure number is set "
5183 "to C<-1>."
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2453
5188 msgid "Implement the action (in C):"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../src/guestfs.pod:2455
5193 msgid ""
5194 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5195 "C<daemon/> directory."
5196 msgstr ""
5197
5198 #. type: textblock
5199 #: ../src/guestfs.pod:2458
5200 msgid ""
5201 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5202 "(note: double underscore) in the C<src/> directory."
5203 msgstr ""
5204
5205 #. type: textblock
5206 #: ../src/guestfs.pod:2461
5207 msgid "In either case, use another function as an example of what to do."
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../src/guestfs.pod:2465
5212 msgid "After making these changes, use C<make> to compile."
5213 msgstr ""
5214
5215 #. type: textblock
5216 #: ../src/guestfs.pod:2467
5217 msgid ""
5218 "Note that you don't need to implement the RPC, language bindings, manual "
5219 "pages or anything else.  It's all automatically generated from the OCaml "
5220 "description."
5221 msgstr ""
5222
5223 #. type: =head2
5224 #: ../src/guestfs.pod:2471
5225 msgid "ADDING TESTS FOR AN API ACTION"
5226 msgstr ""
5227
5228 #. type: textblock
5229 #: ../src/guestfs.pod:2473
5230 msgid ""
5231 "You can supply zero or as many tests as you want per API call.  The tests "
5232 "can either be added as part of the API description (C<generator/"
5233 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5234 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5235 "slower, so if possible use the first method."
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../src/guestfs.pod:2479
5240 msgid ""
5241 "The following describes the test environment used when you add an API test "
5242 "in C<generator_actions.ml>."
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../src/guestfs.pod:2482
5247 msgid "The test environment has 4 block devices:"
5248 msgstr ""
5249
5250 #. type: =item
5251 #: ../src/guestfs.pod:2486
5252 msgid "C</dev/sda> 500MB"
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../src/guestfs.pod:2488
5257 msgid "General block device for testing."
5258 msgstr ""
5259
5260 #. type: =item
5261 #: ../src/guestfs.pod:2490
5262 msgid "C</dev/sdb> 50MB"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../src/guestfs.pod:2492
5267 msgid ""
5268 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5269 "operations."
5270 msgstr ""
5271
5272 #. type: =item
5273 #: ../src/guestfs.pod:2495
5274 msgid "C</dev/sdc> 10MB"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../src/guestfs.pod:2497
5279 msgid "Used in a few tests where two block devices are needed."
5280 msgstr ""
5281
5282 #. type: =item
5283 #: ../src/guestfs.pod:2499
5284 msgid "C</dev/sdd>"
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../src/guestfs.pod:2501
5289 msgid "ISO with fixed content (see C<images/test.iso>)."
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../src/guestfs.pod:2505
5294 msgid ""
5295 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5296 "appliance and block devices are reused between tests.  So don't try testing "
5297 "L</guestfs_kill_subprocess> :-x"
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../src/guestfs.pod:2509
5302 msgid ""
5303 "Each test starts with an initial scenario, selected using one of the "
5304 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5305 "initialize the disks mentioned above in a particular way as documented in "
5306 "C<generator_types.ml>.  You should not assume anything about the previous "
5307 "contents of other disks that are not initialized."
5308 msgstr ""
5309
5310 #. type: textblock
5311 #: ../src/guestfs.pod:2515
5312 msgid ""
5313 "You can add a prerequisite clause to any individual test.  This is a run-"
5314 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5315 "testing a command which might not work on all variations of libguestfs "
5316 "builds.  A test that has prerequisite of C<Always> means to run "
5317 "unconditionally."
5318 msgstr ""
5319
5320 #. type: textblock
5321 #: ../src/guestfs.pod:2521
5322 msgid ""
5323 "In addition, packagers can skip individual tests by setting environment "
5324 "variables before running C<make check>."
5325 msgstr ""
5326
5327 #. type: verbatim
5328 #: ../src/guestfs.pod:2524
5329 #, no-wrap
5330 msgid ""
5331 " SKIP_TEST_<CMD>_<NUM>=1\n"
5332 "\n"
5333 msgstr ""
5334
5335 #. type: textblock
5336 #: ../src/guestfs.pod:2526
5337 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../src/guestfs.pod:2528
5342 msgid "or:"
5343 msgstr ""
5344
5345 #. type: verbatim
5346 #: ../src/guestfs.pod:2530
5347 #, no-wrap
5348 msgid ""
5349 " SKIP_TEST_<CMD>=1\n"
5350 "\n"
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../src/guestfs.pod:2532
5355 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5356 msgstr ""
5357
5358 #. type: textblock
5359 #: ../src/guestfs.pod:2534
5360 msgid "Packagers can run only certain tests by setting for example:"
5361 msgstr ""
5362
5363 #. type: verbatim
5364 #: ../src/guestfs.pod:2536
5365 #, no-wrap
5366 msgid ""
5367 " TEST_ONLY=\"vfs_type zerofree\"\n"
5368 "\n"
5369 msgstr ""
5370
5371 #. type: textblock
5372 #: ../src/guestfs.pod:2538
5373 msgid ""
5374 "See C<capitests/tests.c> for more details of how these environment variables "
5375 "work."
5376 msgstr ""
5377
5378 #. type: =head2
5379 #: ../src/guestfs.pod:2541
5380 msgid "DEBUGGING NEW API ACTIONS"
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2543
5385 msgid "Test new actions work before submitting them."
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../src/guestfs.pod:2545
5390 msgid "You can use guestfish to try out new commands."
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../src/guestfs.pod:2547
5395 msgid ""
5396 "Debugging the daemon is a problem because it runs inside a minimal "
5397 "environment.  However you can fprintf messages in the daemon to stderr, and "
5398 "they will show up if you use C<guestfish -v>."
5399 msgstr ""
5400
5401 #. type: =head2
5402 #: ../src/guestfs.pod:2551
5403 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../src/guestfs.pod:2553
5408 msgid ""
5409 "Our C source code generally adheres to some basic code-formatting "
5410 "conventions.  The existing code base is not totally consistent on this "
5411 "front, but we do prefer that contributed code be formatted similarly.  In "
5412 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5413 "indentation level, and other than that, follow the K&R style."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../src/guestfs.pod:2559
5418 msgid ""
5419 "If you use Emacs, add the following to one of one of your start-up files (e."
5420 "g., ~/.emacs), to help ensure that you get indentation right:"
5421 msgstr ""
5422
5423 #. type: verbatim
5424 #: ../src/guestfs.pod:2562
5425 #, no-wrap
5426 msgid ""
5427 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5428 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5429 " (add-hook 'find-file-hook\n"
5430 "     '(lambda () (if (and buffer-file-name\n"
5431 "                          (string-match \"/libguestfs\\\\>\"\n"
5432 "                              (buffer-file-name))\n"
5433 "                          (not (string-equal mode-name \"Change Log\"))\n"
5434 "                          (not (string-equal mode-name \"Makefile\")))\n"
5435 "                     (setq indent-tabs-mode nil))))\n"
5436 " \n"
5437 msgstr ""
5438
5439 #. type: verbatim
5440 #: ../src/guestfs.pod:2572
5441 #, no-wrap
5442 msgid ""
5443 " ;;; When editing C sources in libguestfs, use this style.\n"
5444 " (defun libguestfs-c-mode ()\n"
5445 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5446 "   (interactive)\n"
5447 "   (c-set-style \"K&R\")\n"
5448 "   (setq c-indent-level 2)\n"
5449 "   (setq c-basic-offset 2))\n"
5450 " (add-hook 'c-mode-hook\n"
5451 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5452 "                               (buffer-file-name))\n"
5453 "                           (libguestfs-c-mode))))\n"
5454 "\n"
5455 msgstr ""
5456
5457 #. type: textblock
5458 #: ../src/guestfs.pod:2584
5459 msgid "Enable warnings when compiling (and fix any problems this finds):"
5460 msgstr ""
5461
5462 #. type: verbatim
5463 #: ../src/guestfs.pod:2587
5464 #, no-wrap
5465 msgid ""
5466 " ./configure --enable-gcc-warnings\n"
5467 "\n"
5468 msgstr ""
5469
5470 #. type: textblock
5471 #: ../src/guestfs.pod:2589
5472 msgid "Useful targets are:"
5473 msgstr ""
5474
5475 #. type: verbatim
5476 #: ../src/guestfs.pod:2591
5477 #, no-wrap
5478 msgid ""
5479 " make syntax-check  # checks the syntax of the C code\n"
5480 " make check         # runs the test suite\n"
5481 "\n"
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../src/guestfs.pod:2594
5486 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../src/guestfs.pod:2596
5491 msgid ""
5492 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5493 "which are used to do shell quoting."
5494 msgstr ""
5495
5496 #. type: =item
5497 #: ../src/guestfs.pod:2601
5498 msgid "%Q"
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../src/guestfs.pod:2603
5503 msgid ""
5504 "Simple shell quoted string.  Any spaces or other shell characters are "
5505 "escaped for you."
5506 msgstr ""
5507
5508 #. type: =item
5509 #: ../src/guestfs.pod:2606
5510 msgid "%R"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../src/guestfs.pod:2608
5515 msgid ""
5516 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5517 "the sysroot."
5518 msgstr ""
5519
5520 # type: textblock
5521 #. type: textblock
5522 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:240 ../fish/guestfish.pod:599
5523 msgid "For example:"
5524 msgstr ""
5525
5526 #. type: verbatim
5527 #: ../src/guestfs.pod:2615
5528 #, no-wrap
5529 msgid ""
5530 " asprintf (&cmd, \"cat %R\", path);\n"
5531 "\n"
5532 msgstr ""
5533
5534 #. type: textblock
5535 #: ../src/guestfs.pod:2617
5536 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../src/guestfs.pod:2619
5541 msgid ""
5542 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5543 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5544 "they are not passed via the shell (instead, straight to exec).  You probably "
5545 "want to use the C<sysroot_path()> function however."
5546 msgstr ""
5547
5548 #. type: =head2
5549 #: ../src/guestfs.pod:2625
5550 msgid "SUBMITTING YOUR NEW API ACTIONS"
5551 msgstr ""
5552
5553 #. type: textblock
5554 #: ../src/guestfs.pod:2627
5555 msgid ""
5556 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5557 "libguestfs> and CC to L<rjones@redhat.com>."
5558 msgstr ""
5559
5560 #. type: =head2
5561 #: ../src/guestfs.pod:2631
5562 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../src/guestfs.pod:2633
5567 msgid "We support i18n (gettext anyhow) in the library."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../src/guestfs.pod:2635
5572 msgid ""
5573 "However many messages come from the daemon, and we don't translate those at "
5574 "the moment.  One reason is that the appliance generally has all locale files "
5575 "removed from it, because they take up a lot of space.  So we'd have to readd "
5576 "some of those, as well as copying our PO files into the appliance."
5577 msgstr ""
5578
5579 #. type: textblock
5580 #: ../src/guestfs.pod:2641
5581 msgid ""
5582 "Debugging messages are never translated, since they are intended for the "
5583 "programmers."
5584 msgstr ""
5585
5586 #. type: =head2
5587 #: ../src/guestfs.pod:2644
5588 msgid "SOURCE CODE SUBDIRECTORIES"
5589 msgstr ""
5590
5591 #. type: =item
5592 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5686
5593 #: ../fish/guestfish-actions.pod:3808
5594 msgid "C<appliance>"
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../src/guestfs.pod:2650
5599 msgid "The libguestfs appliance, build scripts and so on."
5600 msgstr ""
5601
5602 #. type: =item
5603 #: ../src/guestfs.pod:2652
5604 msgid "C<capitests>"
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../src/guestfs.pod:2654
5609 msgid "Automated tests of the C API."
5610 msgstr ""
5611
5612 #. type: =item
5613 #: ../src/guestfs.pod:2656
5614 msgid "C<cat>"
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../src/guestfs.pod:2658
5619 msgid ""
5620 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5621 "documentation."
5622 msgstr ""
5623
5624 #. type: =item
5625 #: ../src/guestfs.pod:2661
5626 msgid "C<contrib>"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../src/guestfs.pod:2663
5631 msgid "Outside contributions, experimental parts."
5632 msgstr ""
5633
5634 #. type: =item
5635 #: ../src/guestfs.pod:2665
5636 msgid "C<daemon>"
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../src/guestfs.pod:2667
5641 msgid ""
5642 "The daemon that runs inside the libguestfs appliance and carries out actions."
5643 msgstr ""
5644
5645 #. type: =item
5646 #: ../src/guestfs.pod:2670
5647 msgid "C<df>"
5648 msgstr ""
5649
5650 #. type: textblock
5651 #: ../src/guestfs.pod:2672
5652 msgid "L<virt-df(1)> command and documentation."
5653 msgstr ""
5654
5655 #. type: =item
5656 #: ../src/guestfs.pod:2674
5657 msgid "C<examples>"
5658 msgstr ""
5659
5660 #. type: textblock
5661 #: ../src/guestfs.pod:2676
5662 msgid "C API example code."
5663 msgstr ""
5664
5665 #. type: =item
5666 #: ../src/guestfs.pod:2678
5667 msgid "C<fish>"
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../src/guestfs.pod:2680
5672 msgid ""
5673 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5674 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5675 "L<virt-tar-out(1)>."
5676 msgstr ""
5677
5678 #. type: =item
5679 #: ../src/guestfs.pod:2684
5680 msgid "C<fuse>"
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../src/guestfs.pod:2686
5685 msgid ""
5686 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5687 msgstr ""
5688
5689 #. type: =item
5690 #: ../src/guestfs.pod:2688
5691 msgid "C<generator>"
5692 msgstr ""
5693
5694 #. type: textblock
5695 #: ../src/guestfs.pod:2690
5696 msgid ""
5697 "The crucially important generator, used to automatically generate large "
5698 "amounts of boilerplate C code for things like RPC and bindings."
5699 msgstr ""
5700
5701 #. type: =item
5702 #: ../src/guestfs.pod:2693
5703 msgid "C<images>"
5704 msgstr ""
5705
5706 #. type: textblock
5707 #: ../src/guestfs.pod:2695
5708 msgid "Files used by the test suite."
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../src/guestfs.pod:2697
5713 msgid "Some \"phony\" guest images which we test against."
5714 msgstr ""
5715
5716 #. type: =item
5717 #: ../src/guestfs.pod:2699
5718 msgid "C<inspector>"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../src/guestfs.pod:2701
5723 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5724 msgstr ""
5725
5726 #. type: =item
5727 #: ../src/guestfs.pod:2703
5728 msgid "C<logo>"
5729 msgstr ""
5730
5731 #. type: textblock
5732 #: ../src/guestfs.pod:2705
5733 msgid "Logo used on the website.  The fish is called Arthur by the way."
5734 msgstr ""
5735
5736 #. type: =item
5737 #: ../src/guestfs.pod:2707
5738 msgid "C<m4>"
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../src/guestfs.pod:2709
5743 msgid "M4 macros used by autoconf."
5744 msgstr ""
5745
5746 #. type: =item
5747 #: ../src/guestfs.pod:2711
5748 msgid "C<po>"
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../src/guestfs.pod:2713
5753 msgid "Translations of simple gettext strings."
5754 msgstr ""
5755
5756 #. type: =item
5757 #: ../src/guestfs.pod:2715
5758 msgid "C<po-docs>"
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../src/guestfs.pod:2717
5763 msgid ""
5764 "The build infrastructure and PO files for translations of manpages and POD "
5765 "files.  Eventually this will be combined with the C<po> directory, but that "
5766 "is rather complicated."
5767 msgstr ""
5768
5769 #. type: =item
5770 #: ../src/guestfs.pod:2721
5771 msgid "C<regressions>"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../src/guestfs.pod:2723
5776 msgid "Regression tests."
5777 msgstr ""
5778
5779 #. type: =item
5780 #: ../src/guestfs.pod:2725
5781 msgid "C<rescue>"
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../src/guestfs.pod:2727
5786 msgid "L<virt-rescue(1)> command and documentation."
5787 msgstr ""
5788
5789 #. type: =item
5790 #: ../src/guestfs.pod:2729
5791 msgid "C<src>"
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../src/guestfs.pod:2731
5796 msgid "Source code to the C library."
5797 msgstr ""
5798
5799 #. type: =item
5800 #: ../src/guestfs.pod:2733
5801 msgid "C<tools>"
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../src/guestfs.pod:2735
5806 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5807 msgstr ""
5808
5809 #. type: =item
5810 #: ../src/guestfs.pod:2737
5811 msgid "C<test-tool>"
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../src/guestfs.pod:2739
5816 msgid ""
5817 "Test tool for end users to test if their qemu/kernel combination will work "
5818 "with libguestfs."
5819 msgstr ""
5820
5821 #. type: =item
5822 #: ../src/guestfs.pod:2742
5823 msgid "C<csharp>"
5824 msgstr ""
5825
5826 #. type: =item
5827 #: ../src/guestfs.pod:2744
5828 msgid "C<haskell>"
5829 msgstr ""
5830
5831 #. type: =item
5832 #: ../src/guestfs.pod:2746
5833 msgid "C<java>"
5834 msgstr ""
5835
5836 #. type: =item
5837 #: ../src/guestfs.pod:2748
5838 msgid "C<ocaml>"
5839 msgstr ""
5840
5841 #. type: =item
5842 #: ../src/guestfs.pod:2750
5843 msgid "C<php>"
5844 msgstr ""
5845
5846 #. type: =item
5847 #: ../src/guestfs.pod:2752
5848 msgid "C<perl>"
5849 msgstr ""
5850
5851 #. type: =item
5852 #: ../src/guestfs.pod:2754
5853 msgid "C<python>"
5854 msgstr ""
5855
5856 #. type: =item
5857 #: ../src/guestfs.pod:2756
5858 msgid "C<ruby>"
5859 msgstr ""
5860
5861 #. type: textblock
5862 #: ../src/guestfs.pod:2758
5863 msgid "Language bindings."
5864 msgstr ""
5865
5866 # type: =head1
5867 #. type: =head1
5868 #: ../src/guestfs.pod:2762 ../fish/guestfish.pod:996
5869 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5870 msgid "ENVIRONMENT VARIABLES"
5871 msgstr ""
5872
5873 # type: =item
5874 #. type: =item
5875 #: ../src/guestfs.pod:2766 ../fish/guestfish.pod:1022
5876 msgid "LIBGUESTFS_APPEND"
5877 msgstr ""
5878
5879 # type: textblock
5880 #. type: textblock
5881 #: ../src/guestfs.pod:2768 ../fish/guestfish.pod:1024
5882 msgid "Pass additional options to the guest kernel."
5883 msgstr ""
5884
5885 # type: =item
5886 #. type: =item
5887 #: ../src/guestfs.pod:2770 ../fish/guestfish.pod:1026
5888 msgid "LIBGUESTFS_DEBUG"
5889 msgstr ""
5890
5891 # type: textblock
5892 #. type: textblock
5893 #: ../src/guestfs.pod:2772
5894 msgid ""
5895 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5896 "effect as calling C<guestfs_set_verbose (g, 1)>."
5897 msgstr ""
5898
5899 # type: =item
5900 #. type: =item
5901 #: ../src/guestfs.pod:2775 ../fish/guestfish.pod:1031
5902 msgid "LIBGUESTFS_MEMSIZE"
5903 msgstr ""
5904
5905 # type: textblock
5906 #. type: textblock
5907 #: ../src/guestfs.pod:2777 ../fish/guestfish.pod:1033
5908 msgid ""
5909 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5910 msgstr ""
5911
5912 # type: verbatim
5913 #. type: verbatim
5914 #: ../src/guestfs.pod:2780 ../fish/guestfish.pod:1036
5915 #, no-wrap
5916 msgid ""
5917 " LIBGUESTFS_MEMSIZE=700\n"
5918 "\n"
5919 msgstr ""
5920
5921 # type: =item
5922 #. type: =item
5923 #: ../src/guestfs.pod:2782 ../fish/guestfish.pod:1038
5924 msgid "LIBGUESTFS_PATH"
5925 msgstr ""
5926
5927 # type: textblock
5928 #. type: textblock
5929 #: ../src/guestfs.pod:2784
5930 msgid ""
5931 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
5932 "the discussion of paths in section PATH above."
5933 msgstr ""
5934
5935 # type: =item
5936 #. type: =item
5937 #: ../src/guestfs.pod:2787 ../fish/guestfish.pod:1043
5938 msgid "LIBGUESTFS_QEMU"
5939 msgstr ""
5940
5941 # type: textblock
5942 #. type: textblock
5943 #: ../src/guestfs.pod:2789 ../fish/guestfish.pod:1045
5944 msgid ""
5945 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5946 "which was found at compile time by the configure script is used."
5947 msgstr ""
5948
5949 # type: textblock
5950 #. type: textblock
5951 #: ../src/guestfs.pod:2793
5952 msgid "See also L</QEMU WRAPPERS> above."
5953 msgstr ""
5954
5955 # type: =item
5956 #. type: =item
5957 #: ../src/guestfs.pod:2795 ../fish/guestfish.pod:1049
5958 msgid "LIBGUESTFS_TRACE"
5959 msgstr ""
5960
5961 # type: textblock
5962 #. type: textblock
5963 #: ../src/guestfs.pod:2797
5964 msgid ""
5965 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5966 "effect as calling C<guestfs_set_trace (g, 1)>."
5967 msgstr ""
5968
5969 # type: =item
5970 #. type: =item
5971 #: ../src/guestfs.pod:2800 ../fish/guestfish.pod:1058
5972 msgid "TMPDIR"
5973 msgstr ""
5974
5975 #. type: textblock
5976 #: ../src/guestfs.pod:2802 ../fish/guestfish.pod:1060
5977 msgid ""
5978 "Location of temporary directory, defaults to C</tmp> except for the cached "
5979 "supermin appliance which defaults to C</var/tmp>."
5980 msgstr ""
5981
5982 #. type: textblock
5983 #: ../src/guestfs.pod:2805 ../fish/guestfish.pod:1063
5984 msgid ""
5985 "If libguestfs was compiled to use the supermin appliance then the real "
5986 "appliance is cached in this directory, shared between all handles belonging "
5987 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5988 "use in case C</var/tmp> is not large enough."
5989 msgstr ""
5990
5991 # type: =head1
5992 #. type: =head1
5993 #: ../src/guestfs.pod:2813 ../fish/guestfish.pod:1121
5994 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:238
5995 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5996 #: ../tools/virt-resize.pl:1489 ../tools/virt-list-filesystems.pl:189
5997 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5998 #: ../tools/virt-list-partitions.pl:257
5999 msgid "SEE ALSO"
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../src/guestfs.pod:2815
6004 msgid ""
6005 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6006 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6007 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6008 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6009 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6010 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6011 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6012 msgstr ""
6013
6014 # type: textblock
6015 #. type: textblock
6016 #: ../src/guestfs.pod:2842
6017 msgid ""
6018 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6019 "(8)>, L<disktype(1)>."
6020 msgstr ""
6021
6022 # type: =head1
6023 #. type: =head1
6024 #: ../src/guestfs.pod:2849 ../tools/virt-win-reg.pl:587
6025 #: ../tools/virt-make-fs.pl:553
6026 msgid "BUGS"
6027 msgstr ""
6028
6029 # type: textblock
6030 #. type: textblock
6031 #: ../src/guestfs.pod:2851
6032 msgid "To get a list of bugs against libguestfs use this link:"
6033 msgstr ""
6034
6035 # type: textblock
6036 #. type: textblock
6037 #: ../src/guestfs.pod:2853
6038 msgid ""
6039 "L<https://bugzilla.redhat.com/buglist.cgi?"
6040 "component=libguestfs&product=Virtualization+Tools>"
6041 msgstr ""
6042
6043 # type: textblock
6044 #. type: textblock
6045 #: ../src/guestfs.pod:2855
6046 msgid "To report a new bug against libguestfs use this link:"
6047 msgstr ""
6048
6049 # type: textblock
6050 #. type: textblock
6051 #: ../src/guestfs.pod:2857
6052 msgid ""
6053 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6054 "component=libguestfs&product=Virtualization+Tools>"
6055 msgstr ""
6056
6057 # type: textblock
6058 #. type: textblock
6059 #: ../src/guestfs.pod:2859
6060 msgid "When reporting a bug, please check:"
6061 msgstr ""
6062
6063 # type: textblock
6064 #. type: textblock
6065 #: ../src/guestfs.pod:2865
6066 msgid "That the bug hasn't been reported already."
6067 msgstr ""
6068
6069 # type: textblock
6070 #. type: textblock
6071 #: ../src/guestfs.pod:2869
6072 msgid "That you are testing a recent version."
6073 msgstr ""
6074
6075 # type: textblock
6076 #. type: textblock
6077 #: ../src/guestfs.pod:2873
6078 msgid "Describe the bug accurately, and give a way to reproduce it."
6079 msgstr ""
6080
6081 # type: textblock
6082 #. type: textblock
6083 #: ../src/guestfs.pod:2877
6084 msgid ""
6085 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6086 "bug report."
6087 msgstr ""
6088
6089 # type: =head1
6090 #. type: =head1
6091 #: ../src/guestfs.pod:2882 ../fish/guestfish.pod:1144
6092 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:249
6093 msgid "AUTHORS"
6094 msgstr ""
6095
6096 # type: textblock
6097 #. type: textblock
6098 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1146
6099 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:251
6100 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6101 msgstr ""
6102
6103 # type: =head1
6104 #. type: =head1
6105 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1148
6106 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:253
6107 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
6108 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:206
6109 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6110 #: ../tools/virt-list-partitions.pl:273
6111 msgid "COPYRIGHT"
6112 msgstr ""
6113
6114 # type: textblock
6115 #. type: textblock
6116 #: ../src/guestfs.pod:2888 ../fish/guestfish.pod:1150
6117 #: ../fuse/guestmount.pod:255
6118 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
6119 msgstr ""
6120
6121 # type: textblock
6122 #. type: textblock
6123 #: ../src/guestfs.pod:2891
6124 msgid ""
6125 "This library is free software; you can redistribute it and/or modify it "
6126 "under the terms of the GNU Lesser General Public License as published by the "
6127 "Free Software Foundation; either version 2 of the License, or (at your "
6128 "option) any later version."
6129 msgstr ""
6130
6131 # type: textblock
6132 #. type: textblock
6133 #: ../src/guestfs.pod:2896
6134 msgid ""
6135 "This library is distributed in the hope that it will be useful, but WITHOUT "
6136 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6137 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6138 "for more details."
6139 msgstr ""
6140
6141 # type: textblock
6142 #. type: textblock
6143 #: ../src/guestfs.pod:2901
6144 msgid ""
6145 "You should have received a copy of the GNU Lesser General Public License "
6146 "along with this library; if not, write to the Free Software Foundation, "
6147 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6148 msgstr ""
6149
6150 # type: =head2
6151 #. type: =head2
6152 #: ../src/guestfs-actions.pod:1
6153 msgid "guestfs_add_cdrom"
6154 msgstr ""
6155
6156 # type: verbatim
6157 #. type: verbatim
6158 #: ../src/guestfs-actions.pod:3
6159 #, no-wrap
6160 msgid ""
6161 " int\n"
6162 " guestfs_add_cdrom (guestfs_h *g,\n"
6163 "                    const char *filename);\n"
6164 "\n"
6165 msgstr ""
6166
6167 # type: textblock
6168 #. type: textblock
6169 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6170 msgid "This function adds a virtual CD-ROM disk image to the guest."
6171 msgstr ""
6172
6173 # type: textblock
6174 #. type: textblock
6175 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6176 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
6177 msgstr ""
6178
6179 # type: textblock
6180 #. type: textblock
6181 #: ../src/guestfs-actions.pod:17
6182 msgid ""
6183 "This call checks for the existence of C<filename>.  This stops you from "
6184 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6185 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6186 "instead."
6187 msgstr ""
6188
6189 # type: textblock
6190 #. type: textblock
6191 #: ../src/guestfs-actions.pod:24
6192 msgid ""
6193 "If you just want to add an ISO file (often you use this as an efficient way "
6194 "to transfer large files into the guest), then you should probably use "
6195 "C<guestfs_add_drive_ro> instead."
6196 msgstr ""
6197
6198 # type: textblock
6199 #. type: textblock
6200 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
6201 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
6202 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
6203 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
6204 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
6205 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
6206 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
6207 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
6208 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
6209 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
6210 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
6211 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
6212 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
6213 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
6214 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
6215 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
6216 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1332
6217 #: ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1472
6218 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1712
6219 #: ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2261
6220 #: ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2466
6221 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:3336
6222 #: ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3371
6223 #: ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3540
6224 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3567
6225 #: ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:3618
6226 #: ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:3710
6227 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3750
6228 #: ../src/guestfs-actions.pod:3773 ../src/guestfs-actions.pod:3805
6229 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3843
6230 #: ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3890
6231 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3942
6232 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:3970
6233 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:4080
6234 #: ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:4113
6235 #: ../src/guestfs-actions.pod:4164 ../src/guestfs-actions.pod:4182
6236 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4216
6237 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4244
6238 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:4276
6239 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4354
6240 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4458
6241 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:4496
6242 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4525
6243 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4553
6244 #: ../src/guestfs-actions.pod:4568 ../src/guestfs-actions.pod:4603
6245 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4638
6246 #: ../src/guestfs-actions.pod:4652 ../src/guestfs-actions.pod:4669
6247 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4755
6248 #: ../src/guestfs-actions.pod:4769 ../src/guestfs-actions.pod:4797
6249 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4832
6250 #: ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:5023
6251 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5063
6252 #: ../src/guestfs-actions.pod:5095 ../src/guestfs-actions.pod:5161
6253 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5191
6254 #: ../src/guestfs-actions.pod:5205 ../src/guestfs-actions.pod:5494
6255 #: ../src/guestfs-actions.pod:5513 ../src/guestfs-actions.pod:5532
6256 #: ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5556
6257 #: ../src/guestfs-actions.pod:5570 ../src/guestfs-actions.pod:5582
6258 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5612
6259 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5652
6260 #: ../src/guestfs-actions.pod:5671 ../src/guestfs-actions.pod:5701
6261 #: ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5740
6262 #: ../src/guestfs-actions.pod:5758 ../src/guestfs-actions.pod:5777
6263 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5817
6264 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5862
6265 #: ../src/guestfs-actions.pod:5886 ../src/guestfs-actions.pod:5905
6266 #: ../src/guestfs-actions.pod:5929 ../src/guestfs-actions.pod:5948
6267 #: ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:5982
6268 #: ../src/guestfs-actions.pod:6019 ../src/guestfs-actions.pod:6042
6269 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6176
6270 #: ../src/guestfs-actions.pod:6297 ../src/guestfs-actions.pod:6309
6271 #: ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6335
6272 #: ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6370
6273 #: ../src/guestfs-actions.pod:6383 ../src/guestfs-actions.pod:6396
6274 #: ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6470
6275 #: ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6503
6276 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6536
6277 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6569
6278 #: ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6619
6279 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:6673
6280 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6725
6281 #: ../src/guestfs-actions.pod:6761 ../src/guestfs-actions.pod:6880
6282 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6912
6283 #: ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6980
6284 #: ../src/guestfs-actions.pod:7025 ../src/guestfs-actions.pod:7058
6285 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7138
6286 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7223
6287 #: ../src/guestfs-actions.pod:7252
6288 msgid "This function returns 0 on success or -1 on error."
6289 msgstr ""
6290
6291 # type: textblock
6292 #. type: textblock
6293 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
6294 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
6295 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
6296 msgid ""
6297 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6298 "instead."
6299 msgstr ""
6300
6301 # type: textblock
6302 #. type: textblock
6303 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
6304 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1443
6305 #: ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:1960
6306 #: ../src/guestfs-actions.pod:4301 ../src/guestfs-actions.pod:7146
6307 #: ../src/guestfs-actions.pod:7315 ../fish/guestfish-actions.pod:31
6308 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
6309 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
6310 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:2908
6311 #: ../fish/guestfish-actions.pod:4766 ../fish/guestfish-actions.pod:4863
6312 msgid ""
6313 "Deprecated functions will not be removed from the API, but the fact that "
6314 "they are deprecated indicates that there are problems with correct use of "
6315 "these functions."
6316 msgstr ""
6317
6318 # type: textblock
6319 #. type: textblock
6320 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
6321 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1911
6322 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2112
6323 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3353
6324 #: ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5719
6325 #: ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:5950
6326 #: ../src/guestfs-actions.pod:6413 ../src/guestfs-actions.pod:6538
6327 #: ../src/guestfs-actions.pod:7060
6328 msgid "(Added in 0.3)"
6329 msgstr ""
6330
6331 # type: =head2
6332 #. type: =head2
6333 #: ../src/guestfs-actions.pod:41
6334 msgid "guestfs_add_domain"
6335 msgstr ""
6336
6337 # type: verbatim
6338 #. type: verbatim
6339 #: ../src/guestfs-actions.pod:43
6340 #, no-wrap
6341 msgid ""
6342 " int\n"
6343 " guestfs_add_domain (guestfs_h *g,\n"
6344 "                     const char *dom,\n"
6345 "                     ...);\n"
6346 "\n"
6347 msgstr ""
6348
6349 # type: textblock
6350 #. type: textblock
6351 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
6352 #: ../src/guestfs-actions.pod:4315
6353 msgid ""
6354 "You may supply a list of optional arguments to this call.  Use zero or more "
6355 "of the following pairs of parameters, and terminate the list with C<-1> on "
6356 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6357 msgstr ""
6358
6359 #. type: verbatim
6360 #: ../src/guestfs-actions.pod:53
6361 #, no-wrap
6362 msgid ""
6363 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6364 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6365 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6366 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6367 "\n"
6368 msgstr ""
6369
6370 # type: textblock
6371 #. type: textblock
6372 #: ../src/guestfs-actions.pod:58
6373 msgid ""
6374 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6375 "It works by connecting to libvirt, requesting the domain and domain XML from "
6376 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6377 "one."
6378 msgstr ""
6379
6380 # type: textblock
6381 #. type: textblock
6382 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
6383 msgid ""
6384 "The number of disks added is returned.  This operation is atomic: if an "
6385 "error is returned, then no disks are added."
6386 msgstr ""
6387
6388 # type: textblock
6389 #. type: textblock
6390 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
6391 msgid ""
6392 "This function does some minimal checks to make sure the libvirt domain is "
6393 "not running (unless C<readonly> is true).  In a future version we will try "
6394 "to acquire the libvirt lock on each disk."
6395 msgstr ""
6396
6397 # type: textblock
6398 #. type: textblock
6399 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
6400 msgid ""
6401 "Disks must be accessible locally.  This often means that adding disks from a "
6402 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6403 "unless those disks are accessible via the same device path locally too."
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
6408 msgid ""
6409 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6410 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6411 "libvirt URI (or one set through an environment variable, see the libvirt "
6412 "documentation for full details)."
6413 msgstr ""
6414
6415 #. type: textblock
6416 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
6417 msgid ""
6418 "The optional C<live> flag controls whether this call will try to connect to "
6419 "a running virtual machine C<guestfsd> process if it sees a suitable "
6420 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6421 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6422 "DAEMONS> for more information."
6423 msgstr ""
6424
6425 # type: textblock
6426 #. type: textblock
6427 #: ../src/guestfs-actions.pod:88
6428 msgid ""
6429 "The other optional parameters are passed directly through to "
6430 "C<guestfs_add_drive_opts>."
6431 msgstr ""
6432
6433 # type: textblock
6434 #. type: textblock
6435 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
6436 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
6437 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
6438 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
6439 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1872
6440 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
6441 #: ../src/guestfs-actions.pod:2076 ../src/guestfs-actions.pod:2099
6442 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2719
6443 #: ../src/guestfs-actions.pod:2740 ../src/guestfs-actions.pod:4741
6444 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:5275
6445 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:6646
6446 #: ../src/guestfs-actions.pod:7071 ../src/guestfs-actions.pod:7084
6447 #: ../src/guestfs-actions.pod:7097
6448 msgid "On error this function returns -1."
6449 msgstr ""
6450
6451 # type: textblock
6452 #. type: textblock
6453 #: ../src/guestfs-actions.pod:93
6454 msgid "(Added in 1.7.4)"
6455 msgstr ""
6456
6457 # type: =head2
6458 #. type: =head2
6459 #: ../src/guestfs-actions.pod:95
6460 msgid "guestfs_add_domain_va"
6461 msgstr ""
6462
6463 # type: verbatim
6464 #. type: verbatim
6465 #: ../src/guestfs-actions.pod:97
6466 #, no-wrap
6467 msgid ""
6468 " int\n"
6469 " guestfs_add_domain_va (guestfs_h *g,\n"
6470 "                        const char *dom,\n"
6471 "                        va_list args);\n"
6472 "\n"
6473 msgstr ""
6474
6475 # type: textblock
6476 #. type: textblock
6477 #: ../src/guestfs-actions.pod:102
6478 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6479 msgstr ""
6480
6481 # type: textblock
6482 #. type: textblock
6483 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
6484 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
6485 #: ../src/guestfs-actions.pod:4368 ../src/guestfs-actions.pod:4380
6486 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6487 msgstr ""
6488
6489 # type: =head2
6490 #. type: =head2
6491 #: ../src/guestfs-actions.pod:106
6492 msgid "guestfs_add_domain_argv"
6493 msgstr ""
6494
6495 # type: verbatim
6496 #. type: verbatim
6497 #: ../src/guestfs-actions.pod:108
6498 #, no-wrap
6499 msgid ""
6500 " int\n"
6501 " guestfs_add_domain_argv (guestfs_h *g,\n"
6502 "                          const char *dom,\n"
6503 "                          const struct guestfs_add_domain_argv *optargs);\n"
6504 "\n"
6505 msgstr ""
6506
6507 # type: textblock
6508 #. type: textblock
6509 #: ../src/guestfs-actions.pod:113
6510 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6511 msgstr ""
6512
6513 # type: =head2
6514 #. type: =head2
6515 #: ../src/guestfs-actions.pod:117
6516 msgid "guestfs_add_drive"
6517 msgstr ""
6518
6519 # type: verbatim
6520 #. type: verbatim
6521 #: ../src/guestfs-actions.pod:119
6522 #, no-wrap
6523 msgid ""
6524 " int\n"
6525 " guestfs_add_drive (guestfs_h *g,\n"
6526 "                    const char *filename);\n"
6527 "\n"
6528 msgstr ""
6529
6530 # type: textblock
6531 #. type: textblock
6532 #: ../src/guestfs-actions.pod:123
6533 msgid ""
6534 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6535 "optional parameters, so the disk is added writable, with the format being "
6536 "detected automatically."
6537 msgstr ""
6538
6539 # type: textblock
6540 #. type: textblock
6541 #: ../src/guestfs-actions.pod:127
6542 msgid ""
6543 "Automatic detection of the format opens you up to a potential security hole "
6544 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6545 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6546 "you should think about replacing calls to this function with calls to "
6547 "C<guestfs_add_drive_opts>, and specifying the format."
6548 msgstr ""
6549
6550 # type: =head2
6551 #. type: =head2
6552 #: ../src/guestfs-actions.pod:138
6553 msgid "guestfs_add_drive_opts"
6554 msgstr ""
6555
6556 # type: verbatim
6557 #. type: verbatim
6558 #: ../src/guestfs-actions.pod:140
6559 #, no-wrap
6560 msgid ""
6561 " int\n"
6562 " guestfs_add_drive_opts (guestfs_h *g,\n"
6563 "                         const char *filename,\n"
6564 "                         ...);\n"
6565 "\n"
6566 msgstr ""
6567
6568 # type: verbatim
6569 #. type: verbatim
6570 #: ../src/guestfs-actions.pod:150
6571 #, no-wrap
6572 msgid ""
6573 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6574 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6575 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6576 "\n"
6577 msgstr ""
6578
6579 # type: textblock
6580 #. type: textblock
6581 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6582 msgid ""
6583 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6584 "The first time you call this function, the disk appears as C</dev/sda>, the "
6585 "second time as C</dev/sdb>, and so on."
6586 msgstr ""
6587
6588 # type: textblock
6589 #. type: textblock
6590 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6591 msgid ""
6592 "You don't necessarily need to be root when using libguestfs.  However you "
6593 "obviously do need sufficient permissions to access the filename for whatever "
6594 "operations you want to perform (ie. read access if you just want to read the "
6595 "image or write access if you want to modify the image)."
6596 msgstr ""
6597
6598 # type: textblock
6599 #. type: textblock
6600 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6601 msgid "This call checks that C<filename> exists."
6602 msgstr ""
6603
6604 # type: textblock
6605 #. type: textblock
6606 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4326
6607 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:2919
6608 msgid "The optional arguments are:"
6609 msgstr ""
6610
6611 # type: =item
6612 #. type: =item
6613 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6614 msgid "C<readonly>"
6615 msgstr ""
6616
6617 # type: textblock
6618 #. type: textblock
6619 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6620 msgid ""
6621 "If true then the image is treated as read-only.  Writes are still allowed, "
6622 "but they are stored in a temporary snapshot overlay which is discarded at "
6623 "the end.  The disk that you add is not modified."
6624 msgstr ""
6625
6626 # type: =item
6627 #. type: =item
6628 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6629 msgid "C<format>"
6630 msgstr ""
6631
6632 # type: textblock
6633 #. type: textblock
6634 #: ../src/guestfs-actions.pod:179
6635 msgid ""
6636 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6637 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6638 "Possible formats include C<raw> and C<qcow2>."
6639 msgstr ""
6640
6641 # type: textblock
6642 #. type: textblock
6643 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6644 msgid ""
6645 "Automatic detection of the format opens you up to a potential security hole "
6646 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6647 "RHBZ#642934.  Specifying the format closes this security hole."
6648 msgstr ""
6649
6650 # type: =item
6651 #. type: =item
6652 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6653 msgid "C<iface>"
6654 msgstr ""
6655
6656 # type: textblock
6657 #. type: textblock
6658 #: ../src/guestfs-actions.pod:190
6659 msgid ""
6660 "This rarely-used option lets you emulate the behaviour of the deprecated "
6661 "C<guestfs_add_drive_with_if> call (q.v.)"
6662 msgstr ""
6663
6664 # type: textblock
6665 #. type: textblock
6666 #: ../src/guestfs-actions.pod:197
6667 msgid "(Added in 1.5.23)"
6668 msgstr ""
6669
6670 # type: =head2
6671 #. type: =head2
6672 #: ../src/guestfs-actions.pod:199
6673 msgid "guestfs_add_drive_opts_va"
6674 msgstr ""
6675
6676 # type: verbatim
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:201
6679 #, no-wrap
6680 msgid ""
6681 " int\n"
6682 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6683 "                            const char *filename,\n"
6684 "                            va_list args);\n"
6685 "\n"
6686 msgstr ""
6687
6688 # type: textblock
6689 #. type: textblock
6690 #: ../src/guestfs-actions.pod:206
6691 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6692 msgstr ""
6693
6694 # type: =head2
6695 #. type: =head2
6696 #: ../src/guestfs-actions.pod:210
6697 msgid "guestfs_add_drive_opts_argv"
6698 msgstr ""
6699
6700 # type: verbatim
6701 #. type: verbatim
6702 #: ../src/guestfs-actions.pod:212
6703 #, no-wrap
6704 msgid ""
6705 " int\n"
6706 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6707 "                              const char *filename,\n"
6708 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6709 "\n"
6710 msgstr ""
6711
6712 # type: textblock
6713 #. type: textblock
6714 #: ../src/guestfs-actions.pod:217
6715 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6716 msgstr ""
6717
6718 # type: =head2
6719 #. type: =head2
6720 #: ../src/guestfs-actions.pod:221
6721 msgid "guestfs_add_drive_ro"
6722 msgstr ""
6723
6724 # type: verbatim
6725 #. type: verbatim
6726 #: ../src/guestfs-actions.pod:223
6727 #, no-wrap
6728 msgid ""
6729 " int\n"
6730 " guestfs_add_drive_ro (guestfs_h *g,\n"
6731 "                       const char *filename);\n"
6732 "\n"
6733 msgstr ""
6734
6735 # type: textblock
6736 #. type: textblock
6737 #: ../src/guestfs-actions.pod:227
6738 msgid ""
6739 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6740 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6741 "disk is added read-only, with the format being detected automatically."
6742 msgstr ""
6743
6744 # type: textblock
6745 #. type: textblock
6746 #: ../src/guestfs-actions.pod:234
6747 msgid "(Added in 1.0.38)"
6748 msgstr ""
6749
6750 # type: =head2
6751 #. type: =head2
6752 #: ../src/guestfs-actions.pod:236
6753 msgid "guestfs_add_drive_ro_with_if"
6754 msgstr ""
6755
6756 # type: verbatim
6757 #. type: verbatim
6758 #: ../src/guestfs-actions.pod:238
6759 #, no-wrap
6760 msgid ""
6761 " int\n"
6762 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6763 "                               const char *filename,\n"
6764 "                               const char *iface);\n"
6765 "\n"
6766 msgstr ""
6767
6768 # type: textblock
6769 #. type: textblock
6770 #: ../src/guestfs-actions.pod:243
6771 msgid ""
6772 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6773 "QEMU interface emulation to use at run time."
6774 msgstr ""
6775
6776 # type: textblock
6777 #. type: textblock
6778 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6779 #: ../src/guestfs-actions.pod:2351
6780 msgid "(Added in 1.0.84)"
6781 msgstr ""
6782
6783 # type: =head2
6784 #. type: =head2
6785 #: ../src/guestfs-actions.pod:257
6786 msgid "guestfs_add_drive_with_if"
6787 msgstr ""
6788
6789 # type: verbatim
6790 #. type: verbatim
6791 #: ../src/guestfs-actions.pod:259
6792 #, no-wrap
6793 msgid ""
6794 " int\n"
6795 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6796 "                            const char *filename,\n"
6797 "                            const char *iface);\n"
6798 "\n"
6799 msgstr ""
6800
6801 # type: textblock
6802 #. type: textblock
6803 #: ../src/guestfs-actions.pod:264
6804 msgid ""
6805 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6806 "QEMU interface emulation to use at run time."
6807 msgstr ""
6808
6809 # type: =head2
6810 #. type: =head2
6811 #: ../src/guestfs-actions.pod:278
6812 msgid "guestfs_aug_clear"
6813 msgstr ""
6814
6815 # type: verbatim
6816 #. type: verbatim
6817 #: ../src/guestfs-actions.pod:280
6818 #, no-wrap
6819 msgid ""
6820 " int\n"
6821 " guestfs_aug_clear (guestfs_h *g,\n"
6822 "                    const char *augpath);\n"
6823 "\n"
6824 msgstr ""
6825
6826 # type: textblock
6827 #. type: textblock
6828 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6829 msgid ""
6830 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6831 "L<augtool(1)> C<clear> command."
6832 msgstr ""
6833
6834 # type: textblock
6835 #. type: textblock
6836 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2101
6837 msgid "(Added in 1.3.4)"
6838 msgstr ""
6839
6840 # type: =head2
6841 #. type: =head2
6842 #: ../src/guestfs-actions.pod:291
6843 msgid "guestfs_aug_close"
6844 msgstr ""
6845
6846 # type: verbatim
6847 #. type: verbatim
6848 #: ../src/guestfs-actions.pod:293
6849 #, no-wrap
6850 msgid ""
6851 " int\n"
6852 " guestfs_aug_close (guestfs_h *g);\n"
6853 "\n"
6854 msgstr ""
6855
6856 # type: textblock
6857 #. type: textblock
6858 #: ../src/guestfs-actions.pod:296
6859 msgid ""
6860 "Close the current Augeas handle and free up any resources used by it.  After "
6861 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6862 "any other Augeas functions."
6863 msgstr ""
6864
6865 # type: textblock
6866 #. type: textblock
6867 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6868 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6869 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6870 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6871 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6872 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6873 #: ../src/guestfs-actions.pod:5352
6874 msgid "(Added in 0.7)"
6875 msgstr ""
6876
6877 # type: =head2
6878 #. type: =head2
6879 #: ../src/guestfs-actions.pod:305
6880 msgid "guestfs_aug_defnode"
6881 msgstr ""
6882
6883 # type: verbatim
6884 #. type: verbatim
6885 #: ../src/guestfs-actions.pod:307
6886 #, no-wrap
6887 msgid ""
6888 " struct guestfs_int_bool *\n"
6889 " guestfs_aug_defnode (guestfs_h *g,\n"
6890 "                      const char *name,\n"
6891 "                      const char *expr,\n"
6892 "                      const char *val);\n"
6893 "\n"
6894 msgstr ""
6895
6896 # type: textblock
6897 #. type: textblock
6898 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6899 msgid ""
6900 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6901 msgstr ""
6902
6903 # type: textblock
6904 #. type: textblock
6905 #: ../src/guestfs-actions.pod:316
6906 msgid ""
6907 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6908 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6909 "containing that single node."
6910 msgstr ""
6911
6912 # type: textblock
6913 #. type: textblock
6914 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6915 msgid ""
6916 "On success this returns a pair containing the number of nodes in the "
6917 "nodeset, and a boolean flag if a node was created."
6918 msgstr ""
6919
6920 # type: textblock
6921 #. type: textblock
6922 #: ../src/guestfs-actions.pod:324
6923 msgid ""
6924 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6925 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6926 msgstr ""
6927
6928 # type: =head2
6929 #. type: =head2
6930 #: ../src/guestfs-actions.pod:330
6931 msgid "guestfs_aug_defvar"
6932 msgstr ""
6933
6934 # type: verbatim
6935 #. type: verbatim
6936 #: ../src/guestfs-actions.pod:332
6937 #, no-wrap
6938 msgid ""
6939 " int\n"
6940 " guestfs_aug_defvar (guestfs_h *g,\n"
6941 "                     const char *name,\n"
6942 "                     const char *expr);\n"
6943 "\n"
6944 msgstr ""
6945
6946 # type: textblock
6947 #. type: textblock
6948 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6949 msgid ""
6950 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6951 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6952 msgstr ""
6953
6954 # type: textblock
6955 #. type: textblock
6956 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6957 msgid ""
6958 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6959 "evaluates to something which is not a nodeset."
6960 msgstr ""
6961
6962 # type: =head2
6963 #. type: =head2
6964 #: ../src/guestfs-actions.pod:348
6965 msgid "guestfs_aug_get"
6966 msgstr ""
6967
6968 # type: verbatim
6969 #. type: verbatim
6970 #: ../src/guestfs-actions.pod:350
6971 #, no-wrap
6972 msgid ""
6973 " char *\n"
6974 " guestfs_aug_get (guestfs_h *g,\n"
6975 "                  const char *augpath);\n"
6976 "\n"
6977 msgstr ""
6978
6979 # type: textblock
6980 #. type: textblock
6981 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6982 msgid ""
6983 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6984 "node, the C<value> is returned."
6985 msgstr ""
6986
6987 # type: textblock
6988 #. type: textblock
6989 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
6990 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
6991 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
6992 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
6993 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1349
6994 #: ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1652
6995 #: ../src/guestfs-actions.pod:1815 ../src/guestfs-actions.pod:1832
6996 #: ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1933
6997 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:2124
6998 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2523
6999 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2671
7000 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2805
7001 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2860
7002 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:2945
7003 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3862
7004 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4142
7005 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:5080
7006 #: ../src/guestfs-actions.pod:5250 ../src/guestfs-actions.pod:5428
7007 #: ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:6089
7008 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6122
7009 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-actions.pod:6820
7010 #: ../src/guestfs-actions.pod:6839 ../src/guestfs-actions.pod:6857
7011 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7309
7012 msgid ""
7013 "This function returns a string, or NULL on error.  I<The caller must free "
7014 "the returned string after use>."
7015 msgstr ""
7016
7017 # type: =head2
7018 #. type: =head2
7019 #: ../src/guestfs-actions.pod:362
7020 msgid "guestfs_aug_init"
7021 msgstr ""
7022
7023 # type: verbatim
7024 #. type: verbatim
7025 #: ../src/guestfs-actions.pod:364
7026 #, no-wrap
7027 msgid ""
7028 " int\n"
7029 " guestfs_aug_init (guestfs_h *g,\n"
7030 "                   const char *root,\n"
7031 "                   int flags);\n"
7032 "\n"
7033 msgstr ""
7034
7035 # type: textblock
7036 #. type: textblock
7037 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
7038 msgid ""
7039 "Create a new Augeas handle for editing configuration files.  If there was "
7040 "any previous Augeas handle associated with this guestfs session, then it is "
7041 "closed."
7042 msgstr ""
7043
7044 # type: textblock
7045 #. type: textblock
7046 #: ../src/guestfs-actions.pod:373
7047 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7048 msgstr ""
7049
7050 # type: textblock
7051 #. type: textblock
7052 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
7053 msgid ""
7054 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7055 msgstr ""
7056
7057 # type: textblock
7058 #. type: textblock
7059 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
7060 msgid ""
7061 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7062 "logical I<or> of the following integers:"
7063 msgstr ""
7064
7065 # type: =item
7066 #. type: =item
7067 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
7068 msgid "C<AUG_SAVE_BACKUP> = 1"
7069 msgstr ""
7070
7071 # type: textblock
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
7074 msgid "Keep the original file with a C<.augsave> extension."
7075 msgstr ""
7076
7077 # type: =item
7078 #. type: =item
7079 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
7080 msgid "C<AUG_SAVE_NEWFILE> = 2"
7081 msgstr ""
7082
7083 # type: textblock
7084 #. type: textblock
7085 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
7086 msgid ""
7087 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7088 "original.  Overrides C<AUG_SAVE_BACKUP>."
7089 msgstr ""
7090
7091 # type: =item
7092 #. type: =item
7093 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
7094 msgid "C<AUG_TYPE_CHECK> = 4"
7095 msgstr ""
7096
7097 # type: textblock
7098 #. type: textblock
7099 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
7100 msgid "Typecheck lenses (can be expensive)."
7101 msgstr ""
7102
7103 # type: =item
7104 #. type: =item
7105 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
7106 msgid "C<AUG_NO_STDINC> = 8"
7107 msgstr ""
7108
7109 # type: textblock
7110 #. type: textblock
7111 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
7112 msgid "Do not use standard load path for modules."
7113 msgstr ""
7114
7115 # type: =item
7116 #. type: =item
7117 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
7118 msgid "C<AUG_SAVE_NOOP> = 16"
7119 msgstr ""
7120
7121 # type: textblock
7122 #. type: textblock
7123 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
7124 msgid "Make save a no-op, just record what would have been changed."
7125 msgstr ""
7126
7127 # type: =item
7128 #. type: =item
7129 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
7130 msgid "C<AUG_NO_LOAD> = 32"
7131 msgstr ""
7132
7133 # type: textblock
7134 #. type: textblock
7135 #: ../src/guestfs-actions.pod:408
7136 msgid "Do not load the tree in C<guestfs_aug_init>."
7137 msgstr ""
7138
7139 # type: textblock
7140 #. type: textblock
7141 #: ../src/guestfs-actions.pod:412
7142 msgid "To close the handle, you can call C<guestfs_aug_close>."
7143 msgstr ""
7144
7145 # type: textblock
7146 #. type: textblock
7147 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
7148 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7149 msgstr ""
7150
7151 # type: =head2
7152 #. type: =head2
7153 #: ../src/guestfs-actions.pod:420
7154 msgid "guestfs_aug_insert"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #. type: verbatim
7159 #: ../src/guestfs-actions.pod:422
7160 #, no-wrap
7161 msgid ""
7162 " int\n"
7163 " guestfs_aug_insert (guestfs_h *g,\n"
7164 "                     const char *augpath,\n"
7165 "                     const char *label,\n"
7166 "                     int before);\n"
7167 "\n"
7168 msgstr ""
7169
7170 # type: textblock
7171 #. type: textblock
7172 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
7173 msgid ""
7174 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7175 "or after C<path> (depending on the boolean flag C<before>)."
7176 msgstr ""
7177
7178 # type: textblock
7179 #. type: textblock
7180 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
7181 msgid ""
7182 "C<path> must match exactly one existing node in the tree, and C<label> must "
7183 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7184 msgstr ""
7185
7186 # type: =head2
7187 #. type: =head2
7188 #: ../src/guestfs-actions.pod:440
7189 msgid "guestfs_aug_load"
7190 msgstr ""
7191
7192 # type: verbatim
7193 #. type: verbatim
7194 #: ../src/guestfs-actions.pod:442
7195 #, no-wrap
7196 msgid ""
7197 " int\n"
7198 " guestfs_aug_load (guestfs_h *g);\n"
7199 "\n"
7200 msgstr ""
7201
7202 # type: textblock
7203 #. type: textblock
7204 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
7205 msgid "Load files into the tree."
7206 msgstr ""
7207
7208 # type: textblock
7209 #. type: textblock
7210 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
7211 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7212 msgstr ""
7213
7214 # type: =head2
7215 #. type: =head2
7216 #: ../src/guestfs-actions.pod:454
7217 msgid "guestfs_aug_ls"
7218 msgstr ""
7219
7220 # type: verbatim
7221 #. type: verbatim
7222 #: ../src/guestfs-actions.pod:456
7223 #, no-wrap
7224 msgid ""
7225 " char **\n"
7226 " guestfs_aug_ls (guestfs_h *g,\n"
7227 "                 const char *augpath);\n"
7228 "\n"
7229 msgstr ""
7230
7231 # type: textblock
7232 #. type: textblock
7233 #: ../src/guestfs-actions.pod:460
7234 msgid ""
7235 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7236 "sorting the resulting nodes into alphabetical order."
7237 msgstr ""
7238
7239 # type: textblock
7240 #. type: textblock
7241 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
7242 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
7243 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1383
7244 #: ../src/guestfs-actions.pod:1486 ../src/guestfs-actions.pod:1505
7245 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:2196
7246 #: ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:2231
7247 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:2298
7248 #: ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2418
7249 #: ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:2879
7250 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3432
7251 #: ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3599
7252 #: ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:4702
7253 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:5348
7254 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:6162
7255 #: ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6278
7256 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6448
7257 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6950
7258 #: ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7162
7259 #: ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7266
7260 #: ../src/guestfs-actions.pod:7285 ../src/guestfs-actions.pod:7331
7261 #: ../src/guestfs-actions.pod:7350
7262 msgid ""
7263 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7264 ">), or NULL if there was an error.  I<The caller must free the strings and "
7265 "the array after use>."
7266 msgstr ""
7267
7268 # type: textblock
7269 #. type: textblock
7270 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
7271 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1421
7272 #: ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:3256
7273 #: ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3895
7274 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4115
7275 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4706
7276 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5558
7277 #: ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:5584
7278 #: ../src/guestfs-actions.pod:6024 ../src/guestfs-actions.pod:6662
7279 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6914
7280 #: ../src/guestfs-actions.pod:7150
7281 msgid "(Added in 0.8)"
7282 msgstr ""
7283
7284 # type: =head2
7285 #. type: =head2
7286 #: ../src/guestfs-actions.pod:469
7287 msgid "guestfs_aug_match"
7288 msgstr ""
7289
7290 # type: verbatim
7291 #. type: verbatim
7292 #: ../src/guestfs-actions.pod:471
7293 #, no-wrap
7294 msgid ""
7295 " char **\n"
7296 " guestfs_aug_match (guestfs_h *g,\n"
7297 "                    const char *augpath);\n"
7298 "\n"
7299 msgstr ""
7300
7301 # type: textblock
7302 #. type: textblock
7303 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
7304 msgid ""
7305 "Returns a list of paths which match the path expression C<path>.  The "
7306 "returned paths are sufficiently qualified so that they match exactly one "
7307 "node in the current tree."
7308 msgstr ""
7309
7310 # type: =head2
7311 #. type: =head2
7312 #: ../src/guestfs-actions.pod:485
7313 msgid "guestfs_aug_mv"
7314 msgstr ""
7315
7316 # type: verbatim
7317 #. type: verbatim
7318 #: ../src/guestfs-actions.pod:487
7319 #, no-wrap
7320 msgid ""
7321 " int\n"
7322 " guestfs_aug_mv (guestfs_h *g,\n"
7323 "                 const char *src,\n"
7324 "                 const char *dest);\n"
7325 "\n"
7326 msgstr ""
7327
7328 # type: textblock
7329 #. type: textblock
7330 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
7331 msgid ""
7332 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7333 "C<dest> is overwritten if it exists."
7334 msgstr ""
7335
7336 # type: =head2
7337 #. type: =head2
7338 #: ../src/guestfs-actions.pod:499
7339 msgid "guestfs_aug_rm"
7340 msgstr ""
7341
7342 # type: verbatim
7343 #. type: verbatim
7344 #: ../src/guestfs-actions.pod:501
7345 #, no-wrap
7346 msgid ""
7347 " int\n"
7348 " guestfs_aug_rm (guestfs_h *g,\n"
7349 "                 const char *augpath);\n"
7350 "\n"
7351 msgstr ""
7352
7353 # type: textblock
7354 #. type: textblock
7355 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
7356 msgid "Remove C<path> and all of its children."
7357 msgstr ""
7358
7359 # type: textblock
7360 #. type: textblock
7361 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
7362 msgid "On success this returns the number of entries which were removed."
7363 msgstr ""
7364
7365 # type: =head2
7366 #. type: =head2
7367 #: ../src/guestfs-actions.pod:513
7368 msgid "guestfs_aug_save"
7369 msgstr ""
7370
7371 # type: verbatim
7372 #. type: verbatim
7373 #: ../src/guestfs-actions.pod:515
7374 #, no-wrap
7375 msgid ""
7376 " int\n"
7377 " guestfs_aug_save (guestfs_h *g);\n"
7378 "\n"
7379 msgstr ""
7380
7381 # type: textblock
7382 #. type: textblock
7383 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
7384 msgid "This writes all pending changes to disk."
7385 msgstr ""
7386
7387 # type: textblock
7388 #. type: textblock
7389 #: ../src/guestfs-actions.pod:520
7390 msgid ""
7391 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7392 "are saved."
7393 msgstr ""
7394
7395 # type: =head2
7396 #. type: =head2
7397 #: ../src/guestfs-actions.pod:527
7398 msgid "guestfs_aug_set"
7399 msgstr ""
7400
7401 # type: verbatim
7402 #. type: verbatim
7403 #: ../src/guestfs-actions.pod:529
7404 #, no-wrap
7405 msgid ""
7406 " int\n"
7407 " guestfs_aug_set (guestfs_h *g,\n"
7408 "                  const char *augpath,\n"
7409 "                  const char *val);\n"
7410 "\n"
7411 msgstr ""
7412
7413 # type: textblock
7414 #. type: textblock
7415 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
7416 msgid "Set the value associated with C<path> to C<val>."
7417 msgstr ""
7418
7419 # type: textblock
7420 #. type: textblock
7421 #: ../src/guestfs-actions.pod:536
7422 msgid ""
7423 "In the Augeas API, it is possible to clear a node by setting the value to "
7424 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7425 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7426 msgstr ""
7427
7428 # type: =head2
7429 #. type: =head2
7430 #: ../src/guestfs-actions.pod:545
7431 msgid "guestfs_available"
7432 msgstr ""
7433
7434 # type: verbatim
7435 #. type: verbatim
7436 #: ../src/guestfs-actions.pod:547
7437 #, no-wrap
7438 msgid ""
7439 " int\n"
7440 " guestfs_available (guestfs_h *g,\n"
7441 "                    char *const *groups);\n"
7442 "\n"
7443 msgstr ""
7444
7445 # type: textblock
7446 #. type: textblock
7447 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
7448 msgid ""
7449 "This command is used to check the availability of some groups of "
7450 "functionality in the appliance, which not all builds of the libguestfs "
7451 "appliance will be able to provide."
7452 msgstr ""
7453
7454 # type: textblock
7455 #. type: textblock
7456 #: ../src/guestfs-actions.pod:555
7457 msgid ""
7458 "The libguestfs groups, and the functions that those groups correspond to, "
7459 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7460 "runtime by calling C<guestfs_available_all_groups>."
7461 msgstr ""
7462
7463 # type: textblock
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
7466 msgid ""
7467 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7468 "\"]> would check for the availability of the Linux inotify functions and "
7469 "Augeas (configuration file editing) functions."
7470 msgstr ""
7471
7472 # type: textblock
7473 #. type: textblock
7474 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
7475 msgid "The command returns no error if I<all> requested groups are available."
7476 msgstr ""
7477
7478 # type: textblock
7479 #. type: textblock
7480 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
7481 msgid ""
7482 "It fails with an error if one or more of the requested groups is unavailable "
7483 "in the appliance."
7484 msgstr ""
7485
7486 # type: textblock
7487 #. type: textblock
7488 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
7489 msgid ""
7490 "If an unknown group name is included in the list of groups then an error is "
7491 "always returned."
7492 msgstr ""
7493
7494 # type: textblock
7495 #. type: textblock
7496 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
7497 msgid "I<Notes:>"
7498 msgstr ""
7499
7500 # type: textblock
7501 #. type: textblock
7502 #: ../src/guestfs-actions.pod:579
7503 msgid "You must call C<guestfs_launch> before calling this function."
7504 msgstr ""
7505
7506 # type: textblock
7507 #. type: textblock
7508 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
7509 msgid ""
7510 "The reason is because we don't know what groups are supported by the "
7511 "appliance/daemon until it is running and can be queried."
7512 msgstr ""
7513
7514 # type: textblock
7515 #. type: textblock
7516 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
7517 msgid ""
7518 "If a group of functions is available, this does not necessarily mean that "
7519 "they will work.  You still have to check for errors when calling individual "
7520 "API functions even if they are available."
7521 msgstr ""
7522
7523 # type: textblock
7524 #. type: textblock
7525 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
7526 msgid ""
7527 "It is usually the job of distro packagers to build complete functionality "
7528 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7529 "with all requirements satisfied, will support everything."
7530 msgstr ""
7531
7532 # type: textblock
7533 #. type: textblock
7534 #: ../src/guestfs-actions.pod:601
7535 msgid ""
7536 "This call was added in version C<1.0.80>.  In previous versions of "
7537 "libguestfs all you could do would be to speculatively execute a command to "
7538 "find out if the daemon implemented it.  See also C<guestfs_version>."
7539 msgstr ""
7540
7541 # type: textblock
7542 #. type: textblock
7543 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
7544 msgid "(Added in 1.0.80)"
7545 msgstr ""
7546
7547 # type: =head2
7548 #. type: =head2
7549 #: ../src/guestfs-actions.pod:612
7550 msgid "guestfs_available_all_groups"
7551 msgstr ""
7552
7553 # type: verbatim
7554 #. type: verbatim
7555 #: ../src/guestfs-actions.pod:614
7556 #, no-wrap
7557 msgid ""
7558 " char **\n"
7559 " guestfs_available_all_groups (guestfs_h *g);\n"
7560 "\n"
7561 msgstr ""
7562
7563 # type: textblock
7564 #. type: textblock
7565 #: ../src/guestfs-actions.pod:617
7566 msgid ""
7567 "This command returns a list of all optional groups that this daemon knows "
7568 "about.  Note this returns both supported and unsupported groups.  To find "
7569 "out which ones the daemon can actually support you have to call "
7570 "C<guestfs_available> on each member of the returned list."
7571 msgstr ""
7572
7573 # type: textblock
7574 #. type: textblock
7575 #: ../src/guestfs-actions.pod:623
7576 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7577 msgstr ""
7578
7579 # type: textblock
7580 #. type: textblock
7581 #: ../src/guestfs-actions.pod:629
7582 msgid "(Added in 1.3.15)"
7583 msgstr ""
7584
7585 # type: =head2
7586 #. type: =head2
7587 #: ../src/guestfs-actions.pod:631
7588 msgid "guestfs_base64_in"
7589 msgstr ""
7590
7591 # type: verbatim
7592 #. type: verbatim
7593 #: ../src/guestfs-actions.pod:633
7594 #, no-wrap
7595 msgid ""
7596 " int\n"
7597 " guestfs_base64_in (guestfs_h *g,\n"
7598 "                    const char *base64file,\n"
7599 "                    const char *filename);\n"
7600 "\n"
7601 msgstr ""
7602
7603 # type: textblock
7604 #. type: textblock
7605 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
7606 msgid ""
7607 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7608 msgstr ""
7609
7610 # type: textblock
7611 #. type: textblock
7612 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
7613 msgid "(Added in 1.3.5)"
7614 msgstr ""
7615
7616 # type: =head2
7617 #. type: =head2
7618 #: ../src/guestfs-actions.pod:645
7619 msgid "guestfs_base64_out"
7620 msgstr ""
7621
7622 # type: verbatim
7623 #. type: verbatim
7624 #: ../src/guestfs-actions.pod:647
7625 #, no-wrap
7626 msgid ""
7627 " int\n"
7628 " guestfs_base64_out (guestfs_h *g,\n"
7629 "                     const char *filename,\n"
7630 "                     const char *base64file);\n"
7631 "\n"
7632 msgstr ""
7633
7634 # type: textblock
7635 #. type: textblock
7636 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7637 msgid ""
7638 "This command downloads the contents of C<filename>, writing it out to local "
7639 "file C<base64file> encoded as base64."
7640 msgstr ""
7641
7642 # type: =head2
7643 #. type: =head2
7644 #: ../src/guestfs-actions.pod:659
7645 msgid "guestfs_blockdev_flushbufs"
7646 msgstr ""
7647
7648 # type: verbatim
7649 #. type: verbatim
7650 #: ../src/guestfs-actions.pod:661
7651 #, no-wrap
7652 msgid ""
7653 " int\n"
7654 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7655 "                             const char *device);\n"
7656 "\n"
7657 msgstr ""
7658
7659 # type: textblock
7660 #. type: textblock
7661 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7662 msgid ""
7663 "This tells the kernel to flush internal buffers associated with C<device>."
7664 msgstr ""
7665
7666 # type: textblock
7667 #. type: textblock
7668 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7669 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7670 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7671 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7672 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7673 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7674 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7675 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7676 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7677 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7678 msgid "This uses the L<blockdev(8)> command."
7679 msgstr ""
7680
7681 # type: textblock
7682 #. type: textblock
7683 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7684 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7685 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7686 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7687 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7688 msgid "(Added in 0.9.3)"
7689 msgstr ""
7690
7691 # type: =head2
7692 #. type: =head2
7693 #: ../src/guestfs-actions.pod:674
7694 msgid "guestfs_blockdev_getbsz"
7695 msgstr ""
7696
7697 # type: verbatim
7698 #. type: verbatim
7699 #: ../src/guestfs-actions.pod:676
7700 #, no-wrap
7701 msgid ""
7702 " int\n"
7703 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7704 "                          const char *device);\n"
7705 "\n"
7706 msgstr ""
7707
7708 # type: textblock
7709 #. type: textblock
7710 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7711 msgid "This returns the block size of a device."
7712 msgstr ""
7713
7714 # type: textblock
7715 #. type: textblock
7716 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7717 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7718 msgid ""
7719 "(Note this is different from both I<size in blocks> and I<filesystem block "
7720 "size>)."
7721 msgstr ""
7722
7723 # type: =head2
7724 #. type: =head2
7725 #: ../src/guestfs-actions.pod:691
7726 msgid "guestfs_blockdev_getro"
7727 msgstr ""
7728
7729 # type: verbatim
7730 #. type: verbatim
7731 #: ../src/guestfs-actions.pod:693
7732 #, no-wrap
7733 msgid ""
7734 " int\n"
7735 " guestfs_blockdev_getro (guestfs_h *g,\n"
7736 "                         const char *device);\n"
7737 "\n"
7738 msgstr ""
7739
7740 # type: textblock
7741 #. type: textblock
7742 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7743 msgid ""
7744 "Returns a boolean indicating if the block device is read-only (true if read-"
7745 "only, false if not)."
7746 msgstr ""
7747
7748 # type: textblock
7749 #. type: textblock
7750 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1404
7751 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1909
7752 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:1992
7753 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2062
7754 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
7755 #: ../src/guestfs-actions.pod:2965 ../src/guestfs-actions.pod:2982
7756 #: ../src/guestfs-actions.pod:3001 ../src/guestfs-actions.pod:3164
7757 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3193
7758 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3223
7759 #: ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3254
7760 #: ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3281
7761 #: ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3310
7762 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:4851
7763 msgid "This function returns a C truth value on success or -1 on error."
7764 msgstr ""
7765
7766 # type: =head2
7767 #. type: =head2
7768 #: ../src/guestfs-actions.pod:706
7769 msgid "guestfs_blockdev_getsize64"
7770 msgstr ""
7771
7772 # type: verbatim
7773 #. type: verbatim
7774 #: ../src/guestfs-actions.pod:708
7775 #, no-wrap
7776 msgid ""
7777 " int64_t\n"
7778 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7779 "                             const char *device);\n"
7780 "\n"
7781 msgstr ""
7782
7783 # type: textblock
7784 #. type: textblock
7785 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7786 msgid "This returns the size of the device in bytes."
7787 msgstr ""
7788
7789 # type: textblock
7790 #. type: textblock
7791 #: ../src/guestfs-actions.pod:714
7792 msgid "See also C<guestfs_blockdev_getsz>."
7793 msgstr ""
7794
7795 # type: =head2
7796 #. type: =head2
7797 #: ../src/guestfs-actions.pod:722
7798 msgid "guestfs_blockdev_getss"
7799 msgstr ""
7800
7801 # type: verbatim
7802 #. type: verbatim
7803 #: ../src/guestfs-actions.pod:724
7804 #, no-wrap
7805 msgid ""
7806 " int\n"
7807 " guestfs_blockdev_getss (guestfs_h *g,\n"
7808 "                         const char *device);\n"
7809 "\n"
7810 msgstr ""
7811
7812 # type: textblock
7813 #. type: textblock
7814 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7815 msgid ""
7816 "This returns the size of sectors on a block device.  Usually 512, but can be "
7817 "larger for modern devices."
7818 msgstr ""
7819
7820 # type: textblock
7821 #. type: textblock
7822 #: ../src/guestfs-actions.pod:731
7823 msgid ""
7824 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7825 "that)."
7826 msgstr ""
7827
7828 # type: =head2
7829 #. type: =head2
7830 #: ../src/guestfs-actions.pod:740
7831 msgid "guestfs_blockdev_getsz"
7832 msgstr ""
7833
7834 # type: verbatim
7835 #. type: verbatim
7836 #: ../src/guestfs-actions.pod:742
7837 #, no-wrap
7838 msgid ""
7839 " int64_t\n"
7840 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7841 "                         const char *device);\n"
7842 "\n"
7843 msgstr ""
7844
7845 # type: textblock
7846 #. type: textblock
7847 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7848 msgid ""
7849 "This returns the size of the device in units of 512-byte sectors (even if "
7850 "the sectorsize isn't 512 bytes ... weird)."
7851 msgstr ""
7852
7853 # type: textblock
7854 #. type: textblock
7855 #: ../src/guestfs-actions.pod:749
7856 msgid ""
7857 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7858 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7859 msgstr ""
7860
7861 # type: =head2
7862 #. type: =head2
7863 #: ../src/guestfs-actions.pod:759
7864 msgid "guestfs_blockdev_rereadpt"
7865 msgstr ""
7866
7867 # type: verbatim
7868 #. type: verbatim
7869 #: ../src/guestfs-actions.pod:761
7870 #, no-wrap
7871 msgid ""
7872 " int\n"
7873 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7874 "                            const char *device);\n"
7875 "\n"
7876 msgstr ""
7877
7878 # type: textblock
7879 #. type: textblock
7880 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7881 msgid "Reread the partition table on C<device>."
7882 msgstr ""
7883
7884 # type: =head2
7885 #. type: =head2
7886 #: ../src/guestfs-actions.pod:773
7887 msgid "guestfs_blockdev_setbsz"
7888 msgstr ""
7889
7890 # type: verbatim
7891 #. type: verbatim
7892 #: ../src/guestfs-actions.pod:775
7893 #, no-wrap
7894 msgid ""
7895 " int\n"
7896 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7897 "                          const char *device,\n"
7898 "                          int blocksize);\n"
7899 "\n"
7900 msgstr ""
7901
7902 # type: textblock
7903 #. type: textblock
7904 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7905 msgid "This sets the block size of a device."
7906 msgstr ""
7907
7908 # type: =head2
7909 #. type: =head2
7910 #: ../src/guestfs-actions.pod:791
7911 msgid "guestfs_blockdev_setro"
7912 msgstr ""
7913
7914 # type: verbatim
7915 #. type: verbatim
7916 #: ../src/guestfs-actions.pod:793
7917 #, no-wrap
7918 msgid ""
7919 " int\n"
7920 " guestfs_blockdev_setro (guestfs_h *g,\n"
7921 "                         const char *device);\n"
7922 "\n"
7923 msgstr ""
7924
7925 # type: textblock
7926 #. type: textblock
7927 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7928 msgid "Sets the block device named C<device> to read-only."
7929 msgstr ""
7930
7931 # type: =head2
7932 #. type: =head2
7933 #: ../src/guestfs-actions.pod:805
7934 msgid "guestfs_blockdev_setrw"
7935 msgstr ""
7936
7937 # type: verbatim
7938 #. type: verbatim
7939 #: ../src/guestfs-actions.pod:807
7940 #, no-wrap
7941 msgid ""
7942 " int\n"
7943 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7944 "                         const char *device);\n"
7945 "\n"
7946 msgstr ""
7947
7948 # type: textblock
7949 #. type: textblock
7950 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7951 msgid "Sets the block device named C<device> to read-write."
7952 msgstr ""
7953
7954 # type: =head2
7955 #. type: =head2
7956 #: ../src/guestfs-actions.pod:819
7957 msgid "guestfs_case_sensitive_path"
7958 msgstr ""
7959
7960 # type: verbatim
7961 #. type: verbatim
7962 #: ../src/guestfs-actions.pod:821
7963 #, no-wrap
7964 msgid ""
7965 " char *\n"
7966 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7967 "                              const char *path);\n"
7968 "\n"
7969 msgstr ""
7970
7971 # type: textblock
7972 #. type: textblock
7973 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7974 msgid ""
7975 "This can be used to resolve case insensitive paths on a filesystem which is "
7976 "case sensitive.  The use case is to resolve paths which you have read from "
7977 "Windows configuration files or the Windows Registry, to the true path."
7978 msgstr ""
7979
7980 # type: textblock
7981 #. type: textblock
7982 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7983 msgid ""
7984 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7985 "(and probably others), which is that although the underlying filesystem is "
7986 "case-insensitive, the driver exports the filesystem to Linux as case-"
7987 "sensitive."
7988 msgstr ""
7989
7990 # type: textblock
7991 #. type: textblock
7992 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
7993 msgid ""
7994 "One consequence of this is that special directories such as C<c:\\windows> "
7995 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7996 "precise details of how they were created.  In Windows itself this would not "
7997 "be a problem."
7998 msgstr ""
7999
8000 # type: textblock
8001 #. type: textblock
8002 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
8003 msgid ""
8004 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8005 "#posixfilenames1>"
8006 msgstr ""
8007
8008 # type: textblock
8009 #. type: textblock
8010 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
8011 msgid ""
8012 "This function resolves the true case of each element in the path and returns "
8013 "the case-sensitive path."
8014 msgstr ""
8015
8016 # type: textblock
8017 #. type: textblock
8018 #: ../src/guestfs-actions.pod:847
8019 msgid ""
8020 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8021 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8022 "how the directories were originally created under Windows)."
8023 msgstr ""
8024
8025 # type: textblock
8026 #. type: textblock
8027 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
8028 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8029 msgstr ""
8030
8031 # type: textblock
8032 #. type: textblock
8033 #: ../src/guestfs-actions.pod:855
8034 msgid "See also C<guestfs_realpath>."
8035 msgstr ""
8036
8037 # type: textblock
8038 #. type: textblock
8039 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6842
8040 msgid "(Added in 1.0.75)"
8041 msgstr ""
8042
8043 # type: =head2
8044 #. type: =head2
8045 #: ../src/guestfs-actions.pod:862
8046 msgid "guestfs_cat"
8047 msgstr ""
8048
8049 # type: verbatim
8050 #. type: verbatim
8051 #: ../src/guestfs-actions.pod:864
8052 #, no-wrap
8053 msgid ""
8054 " char *\n"
8055 " guestfs_cat (guestfs_h *g,\n"
8056 "              const char *path);\n"
8057 "\n"
8058 msgstr ""
8059
8060 # type: textblock
8061 #. type: textblock
8062 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5338
8063 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3567
8064 msgid "Return the contents of the file named C<path>."
8065 msgstr ""
8066
8067 # type: textblock
8068 #. type: textblock
8069 #: ../src/guestfs-actions.pod:870
8070 msgid ""
8071 "Note that this function cannot correctly handle binary files (specifically, "
8072 "files containing C<\\0> character which is treated as end of string).  For "
8073 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8074 "functions which have a more complex interface."
8075 msgstr ""
8076
8077 # type: textblock
8078 #. type: textblock
8079 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
8080 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1368
8081 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:1490
8082 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1758
8083 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2235
8084 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:2302
8085 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:2348
8086 #: ../src/guestfs-actions.pod:5120 ../src/guestfs-actions.pod:5146
8087 #: ../src/guestfs-actions.pod:5277 ../src/guestfs-actions.pod:5303
8088 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6227
8089 #: ../src/guestfs-actions.pod:6282 ../src/guestfs-actions.pod:6428
8090 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7114
8091 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7166
8092 #: ../src/guestfs-actions.pod:7185 ../src/guestfs-actions.pod:7270
8093 #: ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7335
8094 #: ../src/guestfs-actions.pod:7354 ../fish/guestfish-actions.pod:587
8095 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
8096 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
8097 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
8098 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
8099 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
8100 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
8101 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3437
8102 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3528
8103 #: ../fish/guestfish-actions.pod:3545 ../fish/guestfish-actions.pod:3560
8104 #: ../fish/guestfish-actions.pod:4186 ../fish/guestfish-actions.pod:4232
8105 #: ../fish/guestfish-actions.pod:4317 ../fish/guestfish-actions.pod:4332
8106 #: ../fish/guestfish-actions.pod:4742 ../fish/guestfish-actions.pod:4760
8107 #: ../fish/guestfish-actions.pod:4777 ../fish/guestfish-actions.pod:4787
8108 #: ../fish/guestfish-actions.pod:4835 ../fish/guestfish-actions.pod:4845
8109 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4884
8110 msgid ""
8111 "Because of the message protocol, there is a transfer limit of somewhere "
8112 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8113 msgstr ""
8114
8115 # type: textblock
8116 #. type: textblock
8117 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3436
8118 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3515
8119 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:4008
8120 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:5226
8121 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:7001
8122 #: ../src/guestfs-actions.pod:7015
8123 msgid "(Added in 0.4)"
8124 msgstr ""
8125
8126 # type: =head2
8127 #. type: =head2
8128 #: ../src/guestfs-actions.pod:883
8129 msgid "guestfs_checksum"
8130 msgstr ""
8131
8132 # type: verbatim
8133 #. type: verbatim
8134 #: ../src/guestfs-actions.pod:885
8135 #, no-wrap
8136 msgid ""
8137 " char *\n"
8138 " guestfs_checksum (guestfs_h *g,\n"
8139 "                   const char *csumtype,\n"
8140 "                   const char *path);\n"
8141 "\n"
8142 msgstr ""
8143
8144 # type: textblock
8145 #. type: textblock
8146 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
8147 msgid ""
8148 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8149 msgstr ""
8150
8151 # type: textblock
8152 #. type: textblock
8153 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
8154 msgid ""
8155 "The type of checksum to compute is given by the C<csumtype> parameter which "
8156 "must have one of the following values:"
8157 msgstr ""
8158
8159 # type: =item
8160 #. type: =item
8161 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
8162 msgid "C<crc>"
8163 msgstr ""
8164
8165 # type: textblock
8166 #. type: textblock
8167 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
8168 msgid ""
8169 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8170 "C<cksum> command."
8171 msgstr ""
8172
8173 # type: =item
8174 #. type: =item
8175 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
8176 msgid "C<md5>"
8177 msgstr ""
8178
8179 # type: textblock
8180 #. type: textblock
8181 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
8182 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8183 msgstr ""
8184
8185 # type: =item
8186 #. type: =item
8187 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
8188 msgid "C<sha1>"
8189 msgstr ""
8190
8191 # type: textblock
8192 #. type: textblock
8193 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
8194 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8195 msgstr ""
8196
8197 # type: =item
8198 #. type: =item
8199 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
8200 msgid "C<sha224>"
8201 msgstr ""
8202
8203 # type: textblock
8204 #. type: textblock
8205 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
8206 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8207 msgstr ""
8208
8209 # type: =item
8210 #. type: =item
8211 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
8212 msgid "C<sha256>"
8213 msgstr ""
8214
8215 # type: textblock
8216 #. type: textblock
8217 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
8218 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8219 msgstr ""
8220
8221 # type: =item
8222 #. type: =item
8223 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
8224 msgid "C<sha384>"
8225 msgstr ""
8226
8227 # type: textblock
8228 #. type: textblock
8229 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
8230 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8231 msgstr ""
8232
8233 # type: =item
8234 #. type: =item
8235 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
8236 msgid "C<sha512>"
8237 msgstr ""
8238
8239 # type: textblock
8240 #. type: textblock
8241 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
8242 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8243 msgstr ""
8244
8245 # type: textblock
8246 #. type: textblock
8247 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
8248 msgid "The checksum is returned as a printable string."
8249 msgstr ""
8250
8251 # type: textblock
8252 #. type: textblock
8253 #: ../src/guestfs-actions.pod:931
8254 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8255 msgstr ""
8256
8257 # type: textblock
8258 #. type: textblock
8259 #: ../src/guestfs-actions.pod:933
8260 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8261 msgstr ""
8262
8263 # type: textblock
8264 #. type: textblock
8265 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
8266 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:3180
8267 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3270
8268 #: ../src/guestfs-actions.pod:3297 ../src/guestfs-actions.pod:6698
8269 msgid "(Added in 1.0.2)"
8270 msgstr ""
8271
8272 # type: =head2
8273 #. type: =head2
8274 #: ../src/guestfs-actions.pod:940
8275 msgid "guestfs_checksum_device"
8276 msgstr ""
8277
8278 # type: verbatim
8279 #. type: verbatim
8280 #: ../src/guestfs-actions.pod:942
8281 #, no-wrap
8282 msgid ""
8283 " char *\n"
8284 " guestfs_checksum_device (guestfs_h *g,\n"
8285 "                          const char *csumtype,\n"
8286 "                          const char *device);\n"
8287 "\n"
8288 msgstr ""
8289
8290 # type: textblock
8291 #. type: textblock
8292 #: ../src/guestfs-actions.pod:947
8293 msgid ""
8294 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8295 "device named C<device>.  For the types of checksums supported see the "
8296 "C<guestfs_checksum> command."
8297 msgstr ""
8298
8299 # type: textblock
8300 #. type: textblock
8301 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4757
8302 #: ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4853
8303 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:5047
8304 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6621
8305 #: ../src/guestfs-actions.pod:7027
8306 msgid "(Added in 1.3.2)"
8307 msgstr ""
8308
8309 # type: =head2
8310 #. type: =head2
8311 #: ../src/guestfs-actions.pod:956
8312 msgid "guestfs_checksums_out"
8313 msgstr ""
8314
8315 # type: verbatim
8316 #. type: verbatim
8317 #: ../src/guestfs-actions.pod:958
8318 #, no-wrap
8319 msgid ""
8320 " int\n"
8321 " guestfs_checksums_out (guestfs_h *g,\n"
8322 "                        const char *csumtype,\n"
8323 "                        const char *directory,\n"
8324 "                        const char *sumsfile);\n"
8325 "\n"
8326 msgstr ""
8327
8328 # type: textblock
8329 #. type: textblock
8330 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
8331 msgid ""
8332 "This command computes the checksums of all regular files in C<directory> and "
8333 "then emits a list of those checksums to the local output file C<sumsfile>."
8334 msgstr ""
8335
8336 # type: textblock
8337 #. type: textblock
8338 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
8339 msgid ""
8340 "This can be used for verifying the integrity of a virtual machine.  However "
8341 "to be properly secure you should pay attention to the output of the checksum "
8342 "command (it uses the ones from GNU coreutils).  In particular when the "
8343 "filename is not printable, coreutils uses a special backslash syntax.  For "
8344 "more information, see the GNU coreutils info file."
8345 msgstr ""
8346
8347 # type: textblock
8348 #. type: textblock
8349 #: ../src/guestfs-actions.pod:978
8350 msgid "(Added in 1.3.7)"
8351 msgstr ""
8352
8353 # type: =head2
8354 #. type: =head2
8355 #: ../src/guestfs-actions.pod:980
8356 msgid "guestfs_chmod"
8357 msgstr ""
8358
8359 # type: verbatim
8360 #. type: verbatim
8361 #: ../src/guestfs-actions.pod:982
8362 #, no-wrap
8363 msgid ""
8364 " int\n"
8365 " guestfs_chmod (guestfs_h *g,\n"
8366 "                int mode,\n"
8367 "                const char *path);\n"
8368 "\n"
8369 msgstr ""
8370
8371 # type: textblock
8372 #. type: textblock
8373 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
8374 msgid ""
8375 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8376 "supported."
8377 msgstr ""
8378
8379 # type: textblock
8380 #. type: textblock
8381 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
8382 msgid ""
8383 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8384 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8385 "C<700>."
8386 msgstr ""
8387
8388 # type: textblock
8389 #. type: textblock
8390 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4259
8391 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:4475
8392 #: ../src/guestfs-actions.pod:4494 ../fish/guestfish-actions.pod:676
8393 #: ../fish/guestfish-actions.pod:2883 ../fish/guestfish-actions.pod:3012
8394 #: ../fish/guestfish-actions.pod:3022 ../fish/guestfish-actions.pod:3032
8395 msgid "The mode actually set is affected by the umask."
8396 msgstr ""
8397
8398 # type: =head2
8399 #. type: =head2
8400 #: ../src/guestfs-actions.pod:1000
8401 msgid "guestfs_chown"
8402 msgstr ""
8403
8404 # type: verbatim
8405 #. type: verbatim
8406 #: ../src/guestfs-actions.pod:1002
8407 #, no-wrap
8408 msgid ""
8409 " int\n"
8410 " guestfs_chown (guestfs_h *g,\n"
8411 "                int owner,\n"
8412 "                int group,\n"
8413 "                const char *path);\n"
8414 "\n"
8415 msgstr ""
8416
8417 # type: textblock
8418 #. type: textblock
8419 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
8420 msgid "Change the file owner to C<owner> and group to C<group>."
8421 msgstr ""
8422
8423 # type: textblock
8424 #. type: textblock
8425 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3367
8426 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2341
8427 msgid ""
8428 "Only numeric uid and gid are supported.  If you want to use names, you will "
8429 "need to locate and parse the password file yourself (Augeas support makes "
8430 "this relatively easy)."
8431 msgstr ""
8432
8433 # type: =head2
8434 #. type: =head2
8435 #: ../src/guestfs-actions.pod:1018
8436 msgid "guestfs_command"
8437 msgstr ""
8438
8439 # type: verbatim
8440 #. type: verbatim
8441 #: ../src/guestfs-actions.pod:1020
8442 #, no-wrap
8443 msgid ""
8444 " char *\n"
8445 " guestfs_command (guestfs_h *g,\n"
8446 "                  char *const *arguments);\n"
8447 "\n"
8448 msgstr ""
8449
8450 # type: textblock
8451 #. type: textblock
8452 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
8453 msgid ""
8454 "This call runs a command from the guest filesystem.  The filesystem must be "
8455 "mounted, and must contain a compatible operating system (ie. something "
8456 "Linux, with the same or compatible processor architecture)."
8457 msgstr ""
8458
8459 # type: textblock
8460 #. type: textblock
8461 #: ../src/guestfs-actions.pod:1029
8462 msgid ""
8463 "The single parameter is an argv-style list of arguments.  The first element "
8464 "is the name of the program to run.  Subsequent elements are parameters.  The "
8465 "list must be non-empty (ie. must contain a program name).  Note that the "
8466 "command runs directly, and is I<not> invoked via the shell (see "
8467 "C<guestfs_sh>)."
8468 msgstr ""
8469
8470 # type: textblock
8471 #. type: textblock
8472 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
8473 msgid "The return value is anything printed to I<stdout> by the command."
8474 msgstr ""
8475
8476 # type: textblock
8477 #. type: textblock
8478 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
8479 msgid ""
8480 "If the command returns a non-zero exit status, then this function returns an "
8481 "error message.  The error message string is the content of I<stderr> from "
8482 "the command."
8483 msgstr ""
8484
8485 # type: textblock
8486 #. type: textblock
8487 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
8488 msgid ""
8489 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8490 "bin>.  If you require a program from another location, you should provide "
8491 "the full path in the first parameter."
8492 msgstr ""
8493
8494 # type: textblock
8495 #. type: textblock
8496 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
8497 msgid ""
8498 "Shared libraries and data files required by the program must be available on "
8499 "filesystems which are mounted in the correct places.  It is the caller's "
8500 "responsibility to ensure all filesystems that are needed are mounted at the "
8501 "right locations."
8502 msgstr ""
8503
8504 # type: textblock
8505 #. type: textblock
8506 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
8507 #: ../src/guestfs-actions.pod:1543
8508 msgid "(Added in 0.9.1)"
8509 msgstr ""
8510
8511 # type: =head2
8512 #. type: =head2
8513 #: ../src/guestfs-actions.pod:1062
8514 msgid "guestfs_command_lines"
8515 msgstr ""
8516
8517 # type: verbatim
8518 #. type: verbatim
8519 #: ../src/guestfs-actions.pod:1064
8520 #, no-wrap
8521 msgid ""
8522 " char **\n"
8523 " guestfs_command_lines (guestfs_h *g,\n"
8524 "                        char *const *arguments);\n"
8525 "\n"
8526 msgstr ""
8527
8528 # type: textblock
8529 #. type: textblock
8530 #: ../src/guestfs-actions.pod:1068
8531 msgid ""
8532 "This is the same as C<guestfs_command>, but splits the result into a list of "
8533 "lines."
8534 msgstr ""
8535
8536 # type: textblock
8537 #. type: textblock
8538 #: ../src/guestfs-actions.pod:1071
8539 msgid "See also: C<guestfs_sh_lines>"
8540 msgstr ""
8541
8542 # type: =head2
8543 #. type: =head2
8544 #: ../src/guestfs-actions.pod:1082
8545 msgid "guestfs_config"
8546 msgstr ""
8547
8548 # type: verbatim
8549 #. type: verbatim
8550 #: ../src/guestfs-actions.pod:1084
8551 #, no-wrap
8552 msgid ""
8553 " int\n"
8554 " guestfs_config (guestfs_h *g,\n"
8555 "                 const char *qemuparam,\n"
8556 "                 const char *qemuvalue);\n"
8557 "\n"
8558 msgstr ""
8559
8560 # type: textblock
8561 #. type: textblock
8562 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
8563 msgid ""
8564 "This can be used to add arbitrary qemu command line parameters of the form "
8565 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8566 "setting some parameters which would interfere with parameters that we use."
8567 msgstr ""
8568
8569 # type: textblock
8570 #. type: textblock
8571 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
8572 msgid "The first character of C<param> string must be a C<-> (dash)."
8573 msgstr ""
8574
8575 # type: textblock
8576 #. type: textblock
8577 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
8578 msgid "C<value> can be NULL."
8579 msgstr ""
8580
8581 # type: =head2
8582 #. type: =head2
8583 #: ../src/guestfs-actions.pod:1102
8584 msgid "guestfs_copy_size"
8585 msgstr ""
8586
8587 # type: verbatim
8588 #. type: verbatim
8589 #: ../src/guestfs-actions.pod:1104
8590 #, no-wrap
8591 msgid ""
8592 " int\n"
8593 " guestfs_copy_size (guestfs_h *g,\n"
8594 "                    const char *src,\n"
8595 "                    const char *dest,\n"
8596 "                    int64_t size);\n"
8597 "\n"
8598 msgstr ""
8599
8600 # type: textblock
8601 #. type: textblock
8602 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
8603 msgid ""
8604 "This command copies exactly C<size> bytes from one source device or file "
8605 "C<src> to another destination device or file C<dest>."
8606 msgstr ""
8607
8608 # type: textblock
8609 #. type: textblock
8610 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
8611 msgid ""
8612 "Note this will fail if the source is too short or if the destination is not "
8613 "large enough."
8614 msgstr ""
8615
8616 # type: textblock
8617 #. type: textblock
8618 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
8619 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1692
8620 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:6693
8621 #: ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:7206
8622 #: ../src/guestfs-actions.pod:7225
8623 msgid ""
8624 "This long-running command can generate progress notification messages so "
8625 "that the caller can display a progress bar or indicator.  To receive these "
8626 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8627 "guestfs_set_progress_callback>."
8628 msgstr ""
8629
8630 # type: textblock
8631 #. type: textblock
8632 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4035
8633 #: ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:6934
8634 #: ../src/guestfs-actions.pod:6954 ../src/guestfs-actions.pod:7040
8635 msgid "(Added in 1.0.87)"
8636 msgstr ""
8637
8638 # type: =head2
8639 #. type: =head2
8640 #: ../src/guestfs-actions.pod:1125
8641 msgid "guestfs_cp"
8642 msgstr ""
8643
8644 # type: verbatim
8645 #. type: verbatim
8646 #: ../src/guestfs-actions.pod:1127
8647 #, no-wrap
8648 msgid ""
8649 " int\n"
8650 " guestfs_cp (guestfs_h *g,\n"
8651 "             const char *src,\n"
8652 "             const char *dest);\n"
8653 "\n"
8654 msgstr ""
8655
8656 # type: textblock
8657 #. type: textblock
8658 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
8659 msgid ""
8660 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8661 "destination filename or destination directory."
8662 msgstr ""
8663
8664 # type: textblock
8665 #. type: textblock
8666 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
8667 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
8668 #: ../src/guestfs-actions.pod:1406 ../src/guestfs-actions.pod:4720
8669 #: ../src/guestfs-actions.pod:5097
8670 msgid "(Added in 1.0.18)"
8671 msgstr ""
8672
8673 # type: =head2
8674 #. type: =head2
8675 #: ../src/guestfs-actions.pod:1139
8676 msgid "guestfs_cp_a"
8677 msgstr ""
8678
8679 # type: verbatim
8680 #. type: verbatim
8681 #: ../src/guestfs-actions.pod:1141
8682 #, no-wrap
8683 msgid ""
8684 " int\n"
8685 " guestfs_cp_a (guestfs_h *g,\n"
8686 "               const char *src,\n"
8687 "               const char *dest);\n"
8688 "\n"
8689 msgstr ""
8690
8691 # type: textblock
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
8694 msgid ""
8695 "This copies a file or directory from C<src> to C<dest> recursively using the "
8696 "C<cp -a> command."
8697 msgstr ""
8698
8699 # type: =head2
8700 #. type: =head2
8701 #: ../src/guestfs-actions.pod:1153
8702 msgid "guestfs_dd"
8703 msgstr ""
8704
8705 # type: verbatim
8706 #. type: verbatim
8707 #: ../src/guestfs-actions.pod:1155
8708 #, no-wrap
8709 msgid ""
8710 " int\n"
8711 " guestfs_dd (guestfs_h *g,\n"
8712 "             const char *src,\n"
8713 "             const char *dest);\n"
8714 "\n"
8715 msgstr ""
8716
8717 # type: textblock
8718 #. type: textblock
8719 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
8720 msgid ""
8721 "This command copies from one source device or file C<src> to another "
8722 "destination device or file C<dest>.  Normally you would use this to copy to "
8723 "or from a device or partition, for example to duplicate a filesystem."
8724 msgstr ""
8725
8726 # type: textblock
8727 #. type: textblock
8728 #: ../src/guestfs-actions.pod:1165
8729 msgid ""
8730 "If the destination is a device, it must be as large or larger than the "
8731 "source file or device, otherwise the copy will fail.  This command cannot do "
8732 "partial copies (see C<guestfs_copy_size>)."
8733 msgstr ""
8734
8735 # type: =head2
8736 #. type: =head2
8737 #: ../src/guestfs-actions.pod:1173
8738 msgid "guestfs_df"
8739 msgstr ""
8740
8741 # type: verbatim
8742 #. type: verbatim
8743 #: ../src/guestfs-actions.pod:1175
8744 #, no-wrap
8745 msgid ""
8746 " char *\n"
8747 " guestfs_df (guestfs_h *g);\n"
8748 "\n"
8749 msgstr ""
8750
8751 # type: textblock
8752 #. type: textblock
8753 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
8754 msgid "This command runs the C<df> command to report disk space used."
8755 msgstr ""
8756
8757 # type: textblock
8758 #. type: textblock
8759 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8760 msgid ""
8761 "This command is mostly useful for interactive sessions.  It is I<not> "
8762 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8763 "from programs."
8764 msgstr ""
8765
8766 # type: textblock
8767 #. type: textblock
8768 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8769 #: ../src/guestfs-actions.pod:1317 ../src/guestfs-actions.pod:2281
8770 #: ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2373
8771 #: ../src/guestfs-actions.pod:4145 ../src/guestfs-actions.pod:4620
8772 #: ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6455
8773 #: ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7086
8774 #: ../src/guestfs-actions.pod:7099
8775 msgid "(Added in 1.0.54)"
8776 msgstr ""
8777
8778 # type: =head2
8779 #. type: =head2
8780 #: ../src/guestfs-actions.pod:1189
8781 msgid "guestfs_df_h"
8782 msgstr ""
8783
8784 # type: verbatim
8785 #. type: verbatim
8786 #: ../src/guestfs-actions.pod:1191
8787 #, no-wrap
8788 msgid ""
8789 " char *\n"
8790 " guestfs_df_h (guestfs_h *g);\n"
8791 "\n"
8792 msgstr ""
8793
8794 # type: textblock
8795 #. type: textblock
8796 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8797 msgid ""
8798 "This command runs the C<df -h> command to report disk space used in human-"
8799 "readable format."
8800 msgstr ""
8801
8802 # type: =head2
8803 #. type: =head2
8804 #: ../src/guestfs-actions.pod:1206
8805 msgid "guestfs_dmesg"
8806 msgstr ""
8807
8808 # type: verbatim
8809 #. type: verbatim
8810 #: ../src/guestfs-actions.pod:1208
8811 #, no-wrap
8812 msgid ""
8813 " char *\n"
8814 " guestfs_dmesg (guestfs_h *g);\n"
8815 "\n"
8816 msgstr ""
8817
8818 # type: textblock
8819 #. type: textblock
8820 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8821 msgid ""
8822 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8823 "This is sometimes useful for extended debugging of problems."
8824 msgstr ""
8825
8826 # type: textblock
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1215
8829 msgid ""
8830 "Another way to get the same information is to enable verbose messages with "
8831 "C<guestfs_set_verbose> or by setting the environment variable "
8832 "C<LIBGUESTFS_DEBUG=1> before running the program."
8833 msgstr ""
8834
8835 # type: =head2
8836 #. type: =head2
8837 #: ../src/guestfs-actions.pod:1225
8838 msgid "guestfs_download"
8839 msgstr ""
8840
8841 # type: verbatim
8842 #. type: verbatim
8843 #: ../src/guestfs-actions.pod:1227
8844 #, no-wrap
8845 msgid ""
8846 " int\n"
8847 " guestfs_download (guestfs_h *g,\n"
8848 "                   const char *remotefilename,\n"
8849 "                   const char *filename);\n"
8850 "\n"
8851 msgstr ""
8852
8853 # type: textblock
8854 #. type: textblock
8855 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8856 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8857 msgid ""
8858 "Download file C<remotefilename> and save it as C<filename> on the local "
8859 "machine."
8860 msgstr ""
8861
8862 # type: textblock
8863 #. type: textblock
8864 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6687
8865 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4490
8866 msgid "C<filename> can also be a named pipe."
8867 msgstr ""
8868
8869 # type: textblock
8870 #. type: textblock
8871 #: ../src/guestfs-actions.pod:1237
8872 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8873 msgstr ""
8874
8875 # type: =head2
8876 #. type: =head2
8877 #: ../src/guestfs-actions.pod:1248
8878 msgid "guestfs_download_offset"
8879 msgstr ""
8880
8881 # type: verbatim
8882 #. type: verbatim
8883 #: ../src/guestfs-actions.pod:1250
8884 #, no-wrap
8885 msgid ""
8886 " int\n"
8887 " guestfs_download_offset (guestfs_h *g,\n"
8888 "                          const char *remotefilename,\n"
8889 "                          const char *filename,\n"
8890 "                          int64_t offset,\n"
8891 "                          int64_t size);\n"
8892 "\n"
8893 msgstr ""
8894
8895 # type: textblock
8896 #. type: textblock
8897 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8898 msgid ""
8899 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8900 "region must be within the file or device)."
8901 msgstr ""
8902
8903 # type: textblock
8904 #. type: textblock
8905 #: ../src/guestfs-actions.pod:1263
8906 msgid ""
8907 "Note that there is no limit on the amount of data that can be downloaded "
8908 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8909 "full amount unless an error occurs."
8910 msgstr ""
8911
8912 # type: textblock
8913 #. type: textblock
8914 #: ../src/guestfs-actions.pod:1268
8915 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8916 msgstr ""
8917
8918 # type: textblock
8919 #. type: textblock
8920 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6732
8921 msgid "(Added in 1.5.17)"
8922 msgstr ""
8923
8924 # type: =head2
8925 #. type: =head2
8926 #: ../src/guestfs-actions.pod:1279
8927 msgid "guestfs_drop_caches"
8928 msgstr ""
8929
8930 # type: verbatim
8931 #. type: verbatim
8932 #: ../src/guestfs-actions.pod:1281
8933 #, no-wrap
8934 msgid ""
8935 " int\n"
8936 " guestfs_drop_caches (guestfs_h *g,\n"
8937 "                      int whattodrop);\n"
8938 "\n"
8939 msgstr ""
8940
8941 # type: textblock
8942 #. type: textblock
8943 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8944 msgid ""
8945 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8946 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8947 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8948 msgstr ""
8949
8950 # type: textblock
8951 #. type: textblock
8952 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8953 msgid "Setting C<whattodrop> to 3 should drop everything."
8954 msgstr ""
8955
8956 # type: textblock
8957 #. type: textblock
8958 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8959 msgid ""
8960 "This automatically calls L<sync(2)> before the operation, so that the "
8961 "maximum guest memory is freed."
8962 msgstr ""
8963
8964 # type: =head2
8965 #. type: =head2
8966 #: ../src/guestfs-actions.pod:1299
8967 msgid "guestfs_du"
8968 msgstr ""
8969
8970 # type: verbatim
8971 #. type: verbatim
8972 #: ../src/guestfs-actions.pod:1301
8973 #, no-wrap
8974 msgid ""
8975 " int64_t\n"
8976 " guestfs_du (guestfs_h *g,\n"
8977 "             const char *path);\n"
8978 "\n"
8979 msgstr ""
8980
8981 # type: textblock
8982 #. type: textblock
8983 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
8984 msgid ""
8985 "This command runs the C<du -s> command to estimate file space usage for "
8986 "C<path>."
8987 msgstr ""
8988
8989 # type: textblock
8990 #. type: textblock
8991 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
8992 msgid ""
8993 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8994 "estimate includes the contents of the directory and all subdirectories "
8995 "(recursively)."
8996 msgstr ""
8997
8998 # type: textblock
8999 #. type: textblock
9000 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
9001 msgid ""
9002 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9003 msgstr ""
9004
9005 # type: =head2
9006 #. type: =head2
9007 #: ../src/guestfs-actions.pod:1319
9008 msgid "guestfs_e2fsck_f"
9009 msgstr ""
9010
9011 # type: verbatim
9012 #. type: verbatim
9013 #: ../src/guestfs-actions.pod:1321
9014 #, no-wrap
9015 msgid ""
9016 " int\n"
9017 " guestfs_e2fsck_f (guestfs_h *g,\n"
9018 "                   const char *device);\n"
9019 "\n"
9020 msgstr ""
9021
9022 # type: textblock
9023 #. type: textblock
9024 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:885
9025 msgid ""
9026 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9027 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
9028 "clean (C<-f>)."
9029 msgstr ""
9030
9031 # type: textblock
9032 #. type: textblock
9033 #: ../src/guestfs-actions.pod:1329
9034 msgid ""
9035 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9036 "Normally you should use C<guestfs_fsck>."
9037 msgstr ""
9038
9039 # type: textblock
9040 #. type: textblock
9041 #: ../src/guestfs-actions.pod:1334
9042 msgid "(Added in 1.0.29)"
9043 msgstr ""
9044
9045 # type: =head2
9046 #. type: =head2
9047 #: ../src/guestfs-actions.pod:1336
9048 msgid "guestfs_echo_daemon"
9049 msgstr ""
9050
9051 # type: verbatim
9052 #. type: verbatim
9053 #: ../src/guestfs-actions.pod:1338
9054 #, no-wrap
9055 msgid ""
9056 " char *\n"
9057 " guestfs_echo_daemon (guestfs_h *g,\n"
9058 "                      char *const *words);\n"
9059 "\n"
9060 msgstr ""
9061
9062 # type: textblock
9063 #. type: textblock
9064 #: ../src/guestfs-actions.pod:1342 ../fish/guestfish-actions.pod:896
9065 msgid ""
9066 "This command concatenates the list of C<words> passed with single spaces "
9067 "between them and returns the resulting string."
9068 msgstr ""
9069
9070 # type: textblock
9071 #. type: textblock
9072 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:899
9073 msgid "You can use this command to test the connection through to the daemon."
9074 msgstr ""
9075
9076 # type: textblock
9077 #. type: textblock
9078 #: ../src/guestfs-actions.pod:1347
9079 msgid "See also C<guestfs_ping_daemon>."
9080 msgstr ""
9081
9082 # type: textblock
9083 #. type: textblock
9084 #: ../src/guestfs-actions.pod:1352 ../src/guestfs-actions.pod:2089
9085 #: ../src/guestfs-actions.pod:5931
9086 msgid "(Added in 1.0.69)"
9087 msgstr ""
9088
9089 # type: =head2
9090 #. type: =head2
9091 #: ../src/guestfs-actions.pod:1354
9092 msgid "guestfs_egrep"
9093 msgstr ""
9094
9095 # type: verbatim
9096 #. type: verbatim
9097 #: ../src/guestfs-actions.pod:1356
9098 #, no-wrap
9099 msgid ""
9100 " char **\n"
9101 " guestfs_egrep (guestfs_h *g,\n"
9102 "                const char *regex,\n"
9103 "                const char *path);\n"
9104 "\n"
9105 msgstr ""
9106
9107 # type: textblock
9108 #. type: textblock
9109 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:907
9110 msgid ""
9111 "This calls the external C<egrep> program and returns the matching lines."
9112 msgstr ""
9113
9114 # type: textblock
9115 #. type: textblock
9116 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1390
9117 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1493
9118 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:2219
9119 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2394
9120 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2422
9121 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2490
9122 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:3528
9123 #: ../src/guestfs-actions.pod:3542 ../src/guestfs-actions.pod:3555
9124 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:4555
9125 #: ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5480
9126 #: ../src/guestfs-actions.pod:6299 ../src/guestfs-actions.pod:6311
9127 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6337
9128 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6372
9129 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6398
9130 #: ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7188
9131 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7292
9132 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7357
9133 msgid "(Added in 1.0.66)"
9134 msgstr ""
9135
9136 # type: =head2
9137 #. type: =head2
9138 #: ../src/guestfs-actions.pod:1373
9139 msgid "guestfs_egrepi"
9140 msgstr ""
9141
9142 # type: verbatim
9143 #. type: verbatim
9144 #: ../src/guestfs-actions.pod:1375
9145 #, no-wrap
9146 msgid ""
9147 " char **\n"
9148 " guestfs_egrepi (guestfs_h *g,\n"
9149 "                 const char *regex,\n"
9150 "                 const char *path);\n"
9151 "\n"
9152 msgstr ""
9153
9154 # type: textblock
9155 #. type: textblock
9156 #: ../src/guestfs-actions.pod:1380 ../fish/guestfish-actions.pod:917
9157 msgid ""
9158 "This calls the external C<egrep -i> program and returns the matching lines."
9159 msgstr ""
9160
9161 # type: =head2
9162 #. type: =head2
9163 #: ../src/guestfs-actions.pod:1392
9164 msgid "guestfs_equal"
9165 msgstr ""
9166
9167 # type: verbatim
9168 #. type: verbatim
9169 #: ../src/guestfs-actions.pod:1394
9170 #, no-wrap
9171 msgid ""
9172 " int\n"
9173 " guestfs_equal (guestfs_h *g,\n"
9174 "                const char *file1,\n"
9175 "                const char *file2);\n"
9176 "\n"
9177 msgstr ""
9178
9179 # type: textblock
9180 #. type: textblock
9181 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:927
9182 msgid ""
9183 "This compares the two files C<file1> and C<file2> and returns true if their "
9184 "content is exactly equal, or false otherwise."
9185 msgstr ""
9186
9187 # type: textblock
9188 #. type: textblock
9189 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:930
9190 msgid "The external L<cmp(1)> program is used for the comparison."
9191 msgstr ""
9192
9193 # type: =head2
9194 #. type: =head2
9195 #: ../src/guestfs-actions.pod:1408
9196 msgid "guestfs_exists"
9197 msgstr ""
9198
9199 # type: verbatim
9200 #. type: verbatim
9201 #: ../src/guestfs-actions.pod:1410
9202 #, no-wrap
9203 msgid ""
9204 " int\n"
9205 " guestfs_exists (guestfs_h *g,\n"
9206 "                 const char *path);\n"
9207 "\n"
9208 msgstr ""
9209
9210 # type: textblock
9211 #. type: textblock
9212 #: ../src/guestfs-actions.pod:1414 ../fish/guestfish-actions.pod:936
9213 msgid ""
9214 "This returns C<true> if and only if there is a file, directory (or anything) "
9215 "with the given C<path> name."
9216 msgstr ""
9217
9218 # type: textblock
9219 #. type: textblock
9220 #: ../src/guestfs-actions.pod:1417
9221 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9222 msgstr ""
9223
9224 # type: =head2
9225 #. type: =head2
9226 #: ../src/guestfs-actions.pod:1423
9227 msgid "guestfs_fallocate"
9228 msgstr ""
9229
9230 # type: verbatim
9231 #. type: verbatim
9232 #: ../src/guestfs-actions.pod:1425
9233 #, no-wrap
9234 msgid ""
9235 " int\n"
9236 " guestfs_fallocate (guestfs_h *g,\n"
9237 "                    const char *path,\n"
9238 "                    int len);\n"
9239 "\n"
9240 msgstr ""
9241
9242 # type: textblock
9243 #. type: textblock
9244 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1456
9245 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
9246 msgid ""
9247 "This command preallocates a file (containing zero bytes) named C<path> of "
9248 "size C<len> bytes.  If the file exists already, it is overwritten."
9249 msgstr ""
9250
9251 # type: textblock
9252 #. type: textblock
9253 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:949
9254 msgid ""
9255 "Do not confuse this with the guestfish-specific C<alloc> command which "
9256 "allocates a file in the host and attaches it as a device."
9257 msgstr ""
9258
9259 # type: textblock
9260 #. type: textblock
9261 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:953
9262 msgid ""
9263 "This function is deprecated.  In new code, use the C<fallocate64> call "
9264 "instead."
9265 msgstr ""
9266
9267 # type: =head2
9268 #. type: =head2
9269 #: ../src/guestfs-actions.pod:1449
9270 msgid "guestfs_fallocate64"
9271 msgstr ""
9272
9273 # type: verbatim
9274 #. type: verbatim
9275 #: ../src/guestfs-actions.pod:1451
9276 #, no-wrap
9277 msgid ""
9278 " int\n"
9279 " guestfs_fallocate64 (guestfs_h *g,\n"
9280 "                      const char *path,\n"
9281 "                      int64_t len);\n"
9282 "\n"
9283 msgstr ""
9284
9285 # type: textblock
9286 #. type: textblock
9287 #: ../src/guestfs-actions.pod:1460
9288 msgid ""
9289 "Note that this call allocates disk blocks for the file.  To create a sparse "
9290 "file use C<guestfs_truncate_size> instead."
9291 msgstr ""
9292
9293 # type: textblock
9294 #. type: textblock
9295 #: ../src/guestfs-actions.pod:1463
9296 msgid ""
9297 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9298 "oversight it only allowed 30 bit lengths to be specified, effectively "
9299 "limiting the maximum size of files created through that call to 1GB."
9300 msgstr ""
9301
9302 # type: textblock
9303 #. type: textblock
9304 #: ../src/guestfs-actions.pod:1468 ../fish/guestfish-actions.pod:976
9305 msgid ""
9306 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9307 "commands which create a file in the host and attach it as a device."
9308 msgstr ""
9309
9310 # type: textblock
9311 #. type: textblock
9312 #: ../src/guestfs-actions.pod:1474
9313 msgid "(Added in 1.3.17)"
9314 msgstr ""
9315
9316 # type: =head2
9317 #. type: =head2
9318 #: ../src/guestfs-actions.pod:1476
9319 msgid "guestfs_fgrep"
9320 msgstr ""
9321
9322 # type: verbatim
9323 #. type: verbatim
9324 #: ../src/guestfs-actions.pod:1478
9325 #, no-wrap
9326 msgid ""
9327 " char **\n"
9328 " guestfs_fgrep (guestfs_h *g,\n"
9329 "                const char *pattern,\n"
9330 "                const char *path);\n"
9331 "\n"
9332 msgstr ""
9333
9334 # type: textblock
9335 #. type: textblock
9336 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:984
9337 msgid ""
9338 "This calls the external C<fgrep> program and returns the matching lines."
9339 msgstr ""
9340
9341 # type: =head2
9342 #. type: =head2
9343 #: ../src/guestfs-actions.pod:1495
9344 msgid "guestfs_fgrepi"
9345 msgstr ""
9346
9347 # type: verbatim
9348 #. type: verbatim
9349 #: ../src/guestfs-actions.pod:1497
9350 #, no-wrap
9351 msgid ""
9352 " char **\n"
9353 " guestfs_fgrepi (guestfs_h *g,\n"
9354 "                 const char *pattern,\n"
9355 "                 const char *path);\n"
9356 "\n"
9357 msgstr ""
9358
9359 # type: textblock
9360 #. type: textblock
9361 #: ../src/guestfs-actions.pod:1502 ../fish/guestfish-actions.pod:994
9362 msgid ""
9363 "This calls the external C<fgrep -i> program and returns the matching lines."
9364 msgstr ""
9365
9366 # type: =head2
9367 #. type: =head2
9368 #: ../src/guestfs-actions.pod:1514
9369 msgid "guestfs_file"
9370 msgstr ""
9371
9372 # type: verbatim
9373 #. type: verbatim
9374 #: ../src/guestfs-actions.pod:1516
9375 #, no-wrap
9376 msgid ""
9377 " char *\n"
9378 " guestfs_file (guestfs_h *g,\n"
9379 "               const char *path);\n"
9380 "\n"
9381 msgstr ""
9382
9383 # type: textblock
9384 #. type: textblock
9385 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1004
9386 msgid ""
9387 "This call uses the standard L<file(1)> command to determine the type or "
9388 "contents of the file."
9389 msgstr ""
9390
9391 # type: textblock
9392 #. type: textblock
9393 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1007
9394 msgid ""
9395 "This call will also transparently look inside various types of compressed "
9396 "file."
9397 msgstr ""
9398
9399 # type: textblock
9400 #. type: textblock
9401 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1010
9402 msgid ""
9403 "The exact command which runs is C<file -zb path>.  Note in particular that "
9404 "the filename is not prepended to the output (the C<-b> option)."
9405 msgstr ""
9406
9407 # type: textblock
9408 #. type: textblock
9409 #: ../src/guestfs-actions.pod:1530
9410 msgid ""
9411 "This command can also be used on C</dev/> devices (and partitions, LV "
9412 "names).  You can for example use this to determine if a device contains a "
9413 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9414 msgstr ""
9415
9416 # type: textblock
9417 #. type: textblock
9418 #: ../src/guestfs-actions.pod:1535 ../fish/guestfish-actions.pod:1019
9419 msgid ""
9420 "If the C<path> does not begin with C</dev/> then this command only works for "
9421 "the content of regular files.  For other file types (directory, symbolic "
9422 "link etc) it will just return the string C<directory> etc."
9423 msgstr ""
9424
9425 # type: =head2
9426 #. type: =head2
9427 #: ../src/guestfs-actions.pod:1545
9428 msgid "guestfs_file_architecture"
9429 msgstr ""
9430
9431 # type: verbatim
9432 #. type: verbatim
9433 #: ../src/guestfs-actions.pod:1547
9434 #, no-wrap
9435 msgid ""
9436 " char *\n"
9437 " guestfs_file_architecture (guestfs_h *g,\n"
9438 "                            const char *filename);\n"
9439 "\n"
9440 msgstr ""
9441
9442 # type: textblock
9443 #. type: textblock
9444 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1028
9445 msgid ""
9446 "This detects the architecture of the binary C<filename>, and returns it if "
9447 "known."
9448 msgstr ""
9449
9450 # type: textblock
9451 #. type: textblock
9452 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1031
9453 msgid "Currently defined architectures are:"
9454 msgstr ""
9455
9456 # type: =item
9457 #. type: =item
9458 #: ../src/guestfs-actions.pod:1558 ../fish/guestfish-actions.pod:1035
9459 msgid "\"i386\""
9460 msgstr ""
9461
9462 # type: textblock
9463 #. type: textblock
9464 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1037
9465 msgid ""
9466 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9467 "irrespective of the precise processor requirements of the binary."
9468 msgstr ""
9469
9470 # type: =item
9471 #. type: =item
9472 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1040
9473 msgid "\"x86_64\""
9474 msgstr ""
9475
9476 # type: textblock
9477 #. type: textblock
9478 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1042
9479 msgid "64 bit x86-64."
9480 msgstr ""
9481
9482 # type: =item
9483 #. type: =item
9484 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1044
9485 msgid "\"sparc\""
9486 msgstr ""
9487
9488 # type: textblock
9489 #. type: textblock
9490 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1046
9491 msgid "32 bit SPARC."
9492 msgstr ""
9493
9494 # type: =item
9495 #. type: =item
9496 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1048
9497 msgid "\"sparc64\""
9498 msgstr ""
9499
9500 # type: textblock
9501 #. type: textblock
9502 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1050
9503 msgid "64 bit SPARC V9 and above."
9504 msgstr ""
9505
9506 # type: =item
9507 #. type: =item
9508 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1052
9509 msgid "\"ia64\""
9510 msgstr ""
9511
9512 # type: textblock
9513 #. type: textblock
9514 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1054
9515 msgid "Intel Itanium."
9516 msgstr ""
9517
9518 # type: =item
9519 #. type: =item
9520 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1056
9521 msgid "\"ppc\""
9522 msgstr ""
9523
9524 # type: textblock
9525 #. type: textblock
9526 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1058
9527 msgid "32 bit Power PC."
9528 msgstr ""
9529
9530 # type: =item
9531 #. type: =item
9532 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1060
9533 msgid "\"ppc64\""
9534 msgstr ""
9535
9536 # type: textblock
9537 #. type: textblock
9538 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1062
9539 msgid "64 bit Power PC."
9540 msgstr ""
9541
9542 # type: textblock
9543 #. type: textblock
9544 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1066
9545 msgid "Libguestfs may return other architecture strings in future."
9546 msgstr ""
9547
9548 # type: textblock
9549 #. type: textblock
9550 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1068
9551 msgid "The function works on at least the following types of files:"
9552 msgstr ""
9553
9554 # type: textblock
9555 #. type: textblock
9556 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1074
9557 msgid "many types of Un*x and Linux binary"
9558 msgstr ""
9559
9560 # type: textblock
9561 #. type: textblock
9562 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1078
9563 msgid "many types of Un*x and Linux shared library"
9564 msgstr ""
9565
9566 # type: textblock
9567 #. type: textblock
9568 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1082
9569 msgid "Windows Win32 and Win64 binaries"
9570 msgstr ""
9571
9572 # type: textblock
9573 #. type: textblock
9574 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1086
9575 msgid "Windows Win32 and Win64 DLLs"
9576 msgstr ""
9577
9578 # type: textblock
9579 #. type: textblock
9580 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1088
9581 msgid "Win32 binaries and DLLs return C<i386>."
9582 msgstr ""
9583
9584 # type: textblock
9585 #. type: textblock
9586 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1090
9587 msgid "Win64 binaries and DLLs return C<x86_64>."
9588 msgstr ""
9589
9590 # type: textblock
9591 #. type: textblock
9592 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1094
9593 msgid "Linux kernel modules"
9594 msgstr ""
9595
9596 # type: textblock
9597 #. type: textblock
9598 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1098
9599 msgid "Linux new-style initrd images"
9600 msgstr ""
9601
9602 # type: textblock
9603 #. type: textblock
9604 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1102
9605 msgid "some non-x86 Linux vmlinuz kernels"
9606 msgstr ""
9607
9608 # type: textblock
9609 #. type: textblock
9610 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1106
9611 msgid "What it can't do currently:"
9612 msgstr ""
9613
9614 # type: textblock
9615 #. type: textblock
9616 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1112
9617 msgid "static libraries (libfoo.a)"
9618 msgstr ""
9619
9620 # type: textblock
9621 #. type: textblock
9622 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1116
9623 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9624 msgstr ""
9625
9626 # type: textblock
9627 #. type: textblock
9628 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1120
9629 msgid "x86 Linux vmlinuz kernels"
9630 msgstr ""
9631
9632 # type: textblock
9633 #. type: textblock
9634 #: ../src/guestfs-actions.pod:1645 ../fish/guestfish-actions.pod:1122
9635 msgid ""
9636 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9637 "compressed code, and are horribly hard to unpack.  If you want to find the "
9638 "architecture of a kernel, use the architecture of the associated initrd or "
9639 "kernel module(s) instead."
9640 msgstr ""
9641
9642 # type: textblock
9643 #. type: textblock
9644 #: ../src/guestfs-actions.pod:1655 ../src/guestfs-actions.pod:1818
9645 #: ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:2526
9646 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2633
9647 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2742
9648 #: ../src/guestfs-actions.pod:2779 ../src/guestfs-actions.pod:2863
9649 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3151
9650 #: ../src/guestfs-actions.pod:3283
9651 msgid "(Added in 1.5.3)"
9652 msgstr ""
9653
9654 # type: =head2
9655 #. type: =head2
9656 #: ../src/guestfs-actions.pod:1657
9657 msgid "guestfs_filesize"
9658 msgstr ""
9659
9660 # type: verbatim
9661 #. type: verbatim
9662 #: ../src/guestfs-actions.pod:1659
9663 #, no-wrap
9664 msgid ""
9665 " int64_t\n"
9666 " guestfs_filesize (guestfs_h *g,\n"
9667 "                   const char *file);\n"
9668 "\n"
9669 msgstr ""
9670
9671 # type: textblock
9672 #. type: textblock
9673 #: ../src/guestfs-actions.pod:1663 ../fish/guestfish-actions.pod:1133
9674 msgid "This command returns the size of C<file> in bytes."
9675 msgstr ""
9676
9677 # type: textblock
9678 #. type: textblock
9679 #: ../src/guestfs-actions.pod:1665
9680 msgid ""
9681 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9682 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9683 "devices, use C<guestfs_blockdev_getsize64>."
9684 msgstr ""
9685
9686 # type: textblock
9687 #. type: textblock
9688 #: ../src/guestfs-actions.pod:1671
9689 msgid "(Added in 1.0.82)"
9690 msgstr ""
9691
9692 # type: =head2
9693 #. type: =head2
9694 #: ../src/guestfs-actions.pod:1673
9695 msgid "guestfs_fill"
9696 msgstr ""
9697
9698 # type: verbatim
9699 #. type: verbatim
9700 #: ../src/guestfs-actions.pod:1675
9701 #, no-wrap
9702 msgid ""
9703 " int\n"
9704 " guestfs_fill (guestfs_h *g,\n"
9705 "               int c,\n"
9706 "               int len,\n"
9707 "               const char *path);\n"
9708 "\n"
9709 msgstr ""
9710
9711 # type: textblock
9712 #. type: textblock
9713 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1143
9714 msgid ""
9715 "This command creates a new file called C<path>.  The initial content of the "
9716 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9717 "[0..255]>."
9718 msgstr ""
9719
9720 # type: textblock
9721 #. type: textblock
9722 #: ../src/guestfs-actions.pod:1685
9723 msgid ""
9724 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9725 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9726 "bytes use C<guestfs_fill_pattern>."
9727 msgstr ""
9728
9729 # type: textblock
9730 #. type: textblock
9731 #: ../src/guestfs-actions.pod:1697
9732 msgid "(Added in 1.0.79)"
9733 msgstr ""
9734
9735 # type: =head2
9736 #. type: =head2
9737 #: ../src/guestfs-actions.pod:1699
9738 msgid "guestfs_fill_pattern"
9739 msgstr ""
9740
9741 # type: verbatim
9742 #. type: verbatim
9743 #: ../src/guestfs-actions.pod:1701
9744 #, no-wrap
9745 msgid ""
9746 " int\n"
9747 " guestfs_fill_pattern (guestfs_h *g,\n"
9748 "                       const char *pattern,\n"
9749 "                       int len,\n"
9750 "                       const char *path);\n"
9751 "\n"
9752 msgstr ""
9753
9754 # type: textblock
9755 #. type: textblock
9756 #: ../src/guestfs-actions.pod:1707
9757 msgid ""
9758 "This function is like C<guestfs_fill> except that it creates a new file of "
9759 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9760 "pattern is truncated if necessary to ensure the length of the file is "
9761 "exactly C<len> bytes."
9762 msgstr ""
9763
9764 # type: textblock
9765 #. type: textblock
9766 #: ../src/guestfs-actions.pod:1719
9767 msgid "(Added in 1.3.12)"
9768 msgstr ""
9769
9770 # type: =head2
9771 #. type: =head2
9772 #: ../src/guestfs-actions.pod:1721
9773 msgid "guestfs_find"
9774 msgstr ""
9775
9776 # type: verbatim
9777 #. type: verbatim
9778 #: ../src/guestfs-actions.pod:1723
9779 #, no-wrap
9780 msgid ""
9781 " char **\n"
9782 " guestfs_find (guestfs_h *g,\n"
9783 "               const char *directory);\n"
9784 "\n"
9785 msgstr ""
9786
9787 # type: textblock
9788 #. type: textblock
9789 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1165
9790 msgid ""
9791 "This command lists out all files and directories, recursively, starting at "
9792 "C<directory>.  It is essentially equivalent to running the shell command "
9793 "C<find directory -print> but some post-processing happens on the output, "
9794 "described below."
9795 msgstr ""
9796
9797 # type: textblock
9798 #. type: textblock
9799 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1170
9800 msgid ""
9801 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9802 "structure was:"
9803 msgstr ""
9804
9805 # type: verbatim
9806 #. type: verbatim
9807 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1173
9808 #, no-wrap
9809 msgid ""
9810 " /tmp/a\n"
9811 " /tmp/b\n"
9812 " /tmp/c/d\n"
9813 "\n"
9814 msgstr ""
9815
9816 # type: textblock
9817 #. type: textblock
9818 #: ../src/guestfs-actions.pod:1739
9819 msgid ""
9820 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9821 msgstr ""
9822
9823 # type: verbatim
9824 #. type: verbatim
9825 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1180
9826 #, no-wrap
9827 msgid ""
9828 " a\n"
9829 " b\n"
9830 " c\n"
9831 " c/d\n"
9832 "\n"
9833 msgstr ""
9834
9835 # type: textblock
9836 #. type: textblock
9837 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1185
9838 msgid "If C<directory> is not a directory, then this command returns an error."
9839 msgstr ""
9840
9841 # type: textblock
9842 #. type: textblock
9843 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1188
9844 msgid "The returned list is sorted."
9845 msgstr ""
9846
9847 # type: textblock
9848 #. type: textblock
9849 #: ../src/guestfs-actions.pod:1752
9850 msgid "See also C<guestfs_find0>."
9851 msgstr ""
9852
9853 # type: textblock
9854 #. type: textblock
9855 #: ../src/guestfs-actions.pod:1761 ../src/guestfs-actions.pod:3972
9856 #: ../src/guestfs-actions.pod:5515
9857 msgid "(Added in 1.0.27)"
9858 msgstr ""
9859
9860 # type: =head2
9861 #. type: =head2
9862 #: ../src/guestfs-actions.pod:1763
9863 msgid "guestfs_find0"
9864 msgstr ""
9865
9866 # type: verbatim
9867 #. type: verbatim
9868 #: ../src/guestfs-actions.pod:1765
9869 #, no-wrap
9870 msgid ""
9871 " int\n"
9872 " guestfs_find0 (guestfs_h *g,\n"
9873 "                const char *directory,\n"
9874 "                const char *files);\n"
9875 "\n"
9876 msgstr ""
9877
9878 # type: textblock
9879 #. type: textblock
9880 #: ../src/guestfs-actions.pod:1770 ../fish/guestfish-actions.pod:1199
9881 msgid ""
9882 "This command lists out all files and directories, recursively, starting at "
9883 "C<directory>, placing the resulting list in the external file called "
9884 "C<files>."
9885 msgstr ""
9886
9887 # type: textblock
9888 #. type: textblock
9889 #: ../src/guestfs-actions.pod:1774
9890 msgid ""
9891 "This command works the same way as C<guestfs_find> with the following "
9892 "exceptions:"
9893 msgstr ""
9894
9895 # type: textblock
9896 #. type: textblock
9897 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1210
9898 msgid "The resulting list is written to an external file."
9899 msgstr ""
9900
9901 # type: textblock
9902 #. type: textblock
9903 #: ../src/guestfs-actions.pod:1785 ../fish/guestfish-actions.pod:1214
9904 msgid ""
9905 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9906 "L<find(1)> option I<-print0>."
9907 msgstr ""
9908
9909 # type: textblock
9910 #. type: textblock
9911 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1219
9912 msgid "This command is not limited in the number of names that it can return."
9913 msgstr ""
9914
9915 # type: textblock
9916 #. type: textblock
9917 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1224
9918 msgid "The result list is not sorted."
9919 msgstr ""
9920
9921 # type: textblock
9922 #. type: textblock
9923 #: ../src/guestfs-actions.pod:1801
9924 msgid "(Added in 1.0.74)"
9925 msgstr ""
9926
9927 # type: =head2
9928 #. type: =head2
9929 #: ../src/guestfs-actions.pod:1803
9930 msgid "guestfs_findfs_label"
9931 msgstr ""
9932
9933 # type: verbatim
9934 #. type: verbatim
9935 #: ../src/guestfs-actions.pod:1805
9936 #, no-wrap
9937 msgid ""
9938 " char *\n"
9939 " guestfs_findfs_label (guestfs_h *g,\n"
9940 "                       const char *label);\n"
9941 "\n"
9942 msgstr ""
9943
9944 # type: textblock
9945 #. type: textblock
9946 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1234
9947 msgid ""
9948 "This command searches the filesystems and returns the one which has the "
9949 "given label.  An error is returned if no such filesystem can be found."
9950 msgstr ""
9951
9952 # type: textblock
9953 #. type: textblock
9954 #: ../src/guestfs-actions.pod:1813
9955 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9956 msgstr ""
9957
9958 # type: =head2
9959 #. type: =head2
9960 #: ../src/guestfs-actions.pod:1820
9961 msgid "guestfs_findfs_uuid"
9962 msgstr ""
9963
9964 # type: verbatim
9965 #. type: verbatim
9966 #: ../src/guestfs-actions.pod:1822
9967 #, no-wrap
9968 msgid ""
9969 " char *\n"
9970 " guestfs_findfs_uuid (guestfs_h *g,\n"
9971 "                      const char *uuid);\n"
9972 "\n"
9973 msgstr ""
9974
9975 # type: textblock
9976 #. type: textblock
9977 #: ../src/guestfs-actions.pod:1826 ../fish/guestfish-actions.pod:1244
9978 msgid ""
9979 "This command searches the filesystems and returns the one which has the "
9980 "given UUID.  An error is returned if no such filesystem can be found."
9981 msgstr ""
9982
9983 # type: textblock
9984 #. type: textblock
9985 #: ../src/guestfs-actions.pod:1830
9986 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9987 msgstr ""
9988
9989 # type: =head2
9990 #. type: =head2
9991 #: ../src/guestfs-actions.pod:1837
9992 msgid "guestfs_fsck"
9993 msgstr ""
9994
9995 # type: verbatim
9996 #. type: verbatim
9997 #: ../src/guestfs-actions.pod:1839
9998 #, no-wrap
9999 msgid ""
10000 " int\n"
10001 " guestfs_fsck (guestfs_h *g,\n"
10002 "               const char *fstype,\n"
10003 "               const char *device);\n"
10004 "\n"
10005 msgstr ""
10006
10007 # type: textblock
10008 #. type: textblock
10009 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1254
10010 msgid ""
10011 "This runs the filesystem checker (fsck) on C<device> which should have "
10012 "filesystem type C<fstype>."
10013 msgstr ""
10014
10015 # type: textblock
10016 #. type: textblock
10017 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1257
10018 msgid ""
10019 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10020 "codes from C<fsck>."
10021 msgstr ""
10022
10023 # type: textblock
10024 #. type: textblock
10025 #: ../src/guestfs-actions.pod:1856 ../fish/guestfish-actions.pod:1266
10026 msgid "Multiple status codes can be summed together."
10027 msgstr ""
10028
10029 # type: textblock
10030 #. type: textblock
10031 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1270
10032 msgid ""
10033 "A non-zero return code can mean \"success\", for example if errors have been "
10034 "corrected on the filesystem."
10035 msgstr ""
10036
10037 # type: textblock
10038 #. type: textblock
10039 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1275
10040 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10041 msgstr ""
10042
10043 # type: textblock
10044 #. type: textblock
10045 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1280
10046 msgid ""
10047 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10048 msgstr ""
10049
10050 # type: textblock
10051 #. type: textblock
10052 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:7211
10053 msgid "(Added in 1.0.16)"
10054 msgstr ""
10055
10056 # type: =head2
10057 #. type: =head2
10058 #: ../src/guestfs-actions.pod:1876
10059 msgid "guestfs_get_append"
10060 msgstr ""
10061
10062 # type: verbatim
10063 #. type: verbatim
10064 #: ../src/guestfs-actions.pod:1878
10065 #, no-wrap
10066 msgid ""
10067 " const char *\n"
10068 " guestfs_get_append (guestfs_h *g);\n"
10069 "\n"
10070 msgstr ""
10071
10072 # type: textblock
10073 #. type: textblock
10074 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1286
10075 msgid ""
10076 "Return the additional kernel options which are added to the guest kernel "
10077 "command line."
10078 msgstr ""
10079
10080 # type: textblock
10081 #. type: textblock
10082 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1289
10083 msgid "If C<NULL> then no options are added."
10084 msgstr ""
10085
10086 # type: textblock
10087 #. type: textblock
10088 #: ../src/guestfs-actions.pod:1886
10089 msgid ""
10090 "This function returns a string which may be NULL.  There is no way to return "
10091 "an error from this function.  The string is owned by the guest handle and "
10092 "must I<not> be freed."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:5193
10098 #: ../src/guestfs-actions.pod:5673 ../src/guestfs-actions.pod:6073
10099 #: ../src/guestfs-actions.pod:6092 ../src/guestfs-actions.pod:6108
10100 #: ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6882
10101 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:7254
10102 msgid "(Added in 1.0.26)"
10103 msgstr ""
10104
10105 #. type: =head2
10106 #: ../src/guestfs-actions.pod:1892
10107 msgid "guestfs_get_attach_method"
10108 msgstr ""
10109
10110 #. type: verbatim
10111 #: ../src/guestfs-actions.pod:1894
10112 #, no-wrap
10113 msgid ""
10114 " char *\n"
10115 " guestfs_get_attach_method (guestfs_h *g);\n"
10116 "\n"
10117 msgstr ""
10118
10119 #. type: textblock
10120 #: ../src/guestfs-actions.pod:1897
10121 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10122 msgstr ""
10123
10124 # type: =head2
10125 #. type: =head2
10126 #: ../src/guestfs-actions.pod:1902
10127 msgid "guestfs_get_autosync"
10128 msgstr ""
10129
10130 # type: verbatim
10131 #. type: verbatim
10132 #: ../src/guestfs-actions.pod:1904
10133 #, no-wrap
10134 msgid ""
10135 " int\n"
10136 " guestfs_get_autosync (guestfs_h *g);\n"
10137 "\n"
10138 msgstr ""
10139
10140 # type: textblock
10141 #. type: textblock
10142 #: ../src/guestfs-actions.pod:1907 ../fish/guestfish-actions.pod:1301
10143 msgid "Get the autosync flag."
10144 msgstr ""
10145
10146 # type: =head2
10147 #. type: =head2
10148 #: ../src/guestfs-actions.pod:1913
10149 msgid "guestfs_get_direct"
10150 msgstr ""
10151
10152 # type: verbatim
10153 #. type: verbatim
10154 #: ../src/guestfs-actions.pod:1915
10155 #, no-wrap
10156 msgid ""
10157 " int\n"
10158 " guestfs_get_direct (guestfs_h *g);\n"
10159 "\n"
10160 msgstr ""
10161
10162 # type: textblock
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1307
10165 msgid "Return the direct appliance mode flag."
10166 msgstr ""
10167
10168 # type: textblock
10169 #. type: textblock
10170 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:5742
10171 msgid "(Added in 1.0.72)"
10172 msgstr ""
10173
10174 # type: =head2
10175 #. type: =head2
10176 #: ../src/guestfs-actions.pod:1924
10177 msgid "guestfs_get_e2label"
10178 msgstr ""
10179
10180 # type: verbatim
10181 #. type: verbatim
10182 #: ../src/guestfs-actions.pod:1926
10183 #, no-wrap
10184 msgid ""
10185 " char *\n"
10186 " guestfs_get_e2label (guestfs_h *g,\n"
10187 "                      const char *device);\n"
10188 "\n"
10189 msgstr ""
10190
10191 # type: textblock
10192 #. type: textblock
10193 #: ../src/guestfs-actions.pod:1930 ../fish/guestfish-actions.pod:1313
10194 msgid ""
10195 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10196 msgstr ""
10197
10198 # type: textblock
10199 #. type: textblock
10200 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1316
10201 msgid ""
10202 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10203 msgstr ""
10204
10205 # type: textblock
10206 #. type: textblock
10207 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:1964
10208 #: ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:5779
10209 msgid "(Added in 1.0.15)"
10210 msgstr ""
10211
10212 # type: =head2
10213 #. type: =head2
10214 #: ../src/guestfs-actions.pod:1945
10215 msgid "guestfs_get_e2uuid"
10216 msgstr ""
10217
10218 # type: verbatim
10219 #. type: verbatim
10220 #: ../src/guestfs-actions.pod:1947
10221 #, no-wrap
10222 msgid ""
10223 " char *\n"
10224 " guestfs_get_e2uuid (guestfs_h *g,\n"
10225 "                     const char *device);\n"
10226 "\n"
10227 msgstr ""
10228
10229 # type: textblock
10230 #. type: textblock
10231 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1327
10232 msgid ""
10233 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10234 msgstr ""
10235
10236 # type: textblock
10237 #. type: textblock
10238 #: ../src/guestfs-actions.pod:1957 ../fish/guestfish-actions.pod:1330
10239 msgid ""
10240 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10241 msgstr ""
10242
10243 # type: =head2
10244 #. type: =head2
10245 #: ../src/guestfs-actions.pod:1966
10246 msgid "guestfs_get_memsize"
10247 msgstr ""
10248
10249 # type: verbatim
10250 #. type: verbatim
10251 #: ../src/guestfs-actions.pod:1968
10252 #, no-wrap
10253 msgid ""
10254 " int\n"
10255 " guestfs_get_memsize (guestfs_h *g);\n"
10256 "\n"
10257 msgstr ""
10258
10259 # type: textblock
10260 #. type: textblock
10261 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1341
10262 msgid ""
10263 "This gets the memory size in megabytes allocated to the qemu subprocess."
10264 msgstr ""
10265
10266 # type: textblock
10267 #. type: textblock
10268 #: ../src/guestfs-actions.pod:1974
10269 msgid ""
10270 "If C<guestfs_set_memsize> was not called on this handle, and if "
10271 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10272 "value for memsize."
10273 msgstr ""
10274
10275 # type: textblock
10276 #. type: textblock
10277 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:2059
10278 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:5902
10279 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
10280 #: ../fish/guestfish-actions.pod:3893 ../fish/guestfish-actions.pod:3980
10281 msgid ""
10282 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10283 msgstr ""
10284
10285 # type: textblock
10286 #. type: textblock
10287 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:4263
10288 #: ../src/guestfs-actions.pod:4460 ../src/guestfs-actions.pod:4479
10289 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4510
10290 #: ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4540
10291 #: ../src/guestfs-actions.pod:5418 ../src/guestfs-actions.pod:5800
10292 #: ../src/guestfs-actions.pod:6047 ../src/guestfs-actions.pod:6648
10293 msgid "(Added in 1.0.55)"
10294 msgstr ""
10295
10296 # type: =head2
10297 #. type: =head2
10298 #: ../src/guestfs-actions.pod:1985
10299 msgid "guestfs_get_network"
10300 msgstr ""
10301
10302 # type: verbatim
10303 #. type: verbatim
10304 #: ../src/guestfs-actions.pod:1987
10305 #, no-wrap
10306 msgid ""
10307 " int\n"
10308 " guestfs_get_network (guestfs_h *g);\n"
10309 "\n"
10310 msgstr ""
10311
10312 # type: textblock
10313 #. type: textblock
10314 #: ../src/guestfs-actions.pod:1990 ../fish/guestfish-actions.pod:1355
10315 msgid "This returns the enable network flag."
10316 msgstr ""
10317
10318 # type: textblock
10319 #. type: textblock
10320 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:5819
10321 msgid "(Added in 1.5.4)"
10322 msgstr ""
10323
10324 # type: =head2
10325 #. type: =head2
10326 #: ../src/guestfs-actions.pod:1996
10327 msgid "guestfs_get_path"
10328 msgstr ""
10329
10330 # type: verbatim
10331 #. type: verbatim
10332 #: ../src/guestfs-actions.pod:1998
10333 #, no-wrap
10334 msgid ""
10335 " const char *\n"
10336 " guestfs_get_path (guestfs_h *g);\n"
10337 "\n"
10338 msgstr ""
10339
10340 # type: textblock
10341 #. type: textblock
10342 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1361
10343 msgid "Return the current search path."
10344 msgstr ""
10345
10346 # type: textblock
10347 #. type: textblock
10348 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1363
10349 msgid ""
10350 "This is always non-NULL.  If it wasn't set already, then this will return "
10351 "the default path."
10352 msgstr ""
10353
10354 # type: textblock
10355 #. type: textblock
10356 #: ../src/guestfs-actions.pod:2006 ../src/guestfs-actions.pod:2035
10357 msgid ""
10358 "This function returns a string, or NULL on error.  The string is owned by "
10359 "the guest handle and must I<not> be freed."
10360 msgstr ""
10361
10362 # type: =head2
10363 #. type: =head2
10364 #: ../src/guestfs-actions.pod:2011
10365 msgid "guestfs_get_pid"
10366 msgstr ""
10367
10368 # type: verbatim
10369 #. type: verbatim
10370 #: ../src/guestfs-actions.pod:2013
10371 #, no-wrap
10372 msgid ""
10373 " int\n"
10374 " guestfs_get_pid (guestfs_h *g);\n"
10375 "\n"
10376 msgstr ""
10377
10378 # type: textblock
10379 #. type: textblock
10380 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
10381 msgid ""
10382 "Return the process ID of the qemu subprocess.  If there is no qemu "
10383 "subprocess, then this will return an error."
10384 msgstr ""
10385
10386 # type: textblock
10387 #. type: textblock
10388 #: ../src/guestfs-actions.pod:2019 ../fish/guestfish-actions.pod:1375
10389 msgid "This is an internal call used for debugging and testing."
10390 msgstr ""
10391
10392 # type: textblock
10393 #. type: textblock
10394 #: ../src/guestfs-actions.pod:2023
10395 msgid "(Added in 1.0.56)"
10396 msgstr ""
10397
10398 # type: =head2
10399 #. type: =head2
10400 #: ../src/guestfs-actions.pod:2025
10401 msgid "guestfs_get_qemu"
10402 msgstr ""
10403
10404 # type: verbatim
10405 #. type: verbatim
10406 #: ../src/guestfs-actions.pod:2027
10407 #, no-wrap
10408 msgid ""
10409 " const char *\n"
10410 " guestfs_get_qemu (guestfs_h *g);\n"
10411 "\n"
10412 msgstr ""
10413
10414 # type: textblock
10415 #. type: textblock
10416 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1381
10417 msgid "Return the current qemu binary."
10418 msgstr ""
10419
10420 # type: textblock
10421 #. type: textblock
10422 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1383
10423 msgid ""
10424 "This is always non-NULL.  If it wasn't set already, then this will return "
10425 "the default qemu binary name."
10426 msgstr ""
10427
10428 # type: textblock
10429 #. type: textblock
10430 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:5864
10431 msgid "(Added in 1.0.6)"
10432 msgstr ""
10433
10434 # type: =head2
10435 #. type: =head2
10436 #: ../src/guestfs-actions.pod:2040
10437 msgid "guestfs_get_recovery_proc"
10438 msgstr ""
10439
10440 # type: verbatim
10441 #. type: verbatim
10442 #: ../src/guestfs-actions.pod:2042
10443 #, no-wrap
10444 msgid ""
10445 " int\n"
10446 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10447 "\n"
10448 msgstr ""
10449
10450 # type: textblock
10451 #. type: textblock
10452 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1390
10453 msgid "Return the recovery process enabled flag."
10454 msgstr ""
10455
10456 # type: textblock
10457 #. type: textblock
10458 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:3373
10459 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:4070
10460 #: ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:5123
10461 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5888
10462 #: ../src/guestfs-actions.pod:6551 ../src/guestfs-actions.pod:6571
10463 #: ../src/guestfs-actions.pod:6763
10464 msgid "(Added in 1.0.77)"
10465 msgstr ""
10466
10467 # type: =head2
10468 #. type: =head2
10469 #: ../src/guestfs-actions.pod:2051
10470 msgid "guestfs_get_selinux"
10471 msgstr ""
10472
10473 # type: verbatim
10474 #. type: verbatim
10475 #: ../src/guestfs-actions.pod:2053
10476 #, no-wrap
10477 msgid ""
10478 " int\n"
10479 " guestfs_get_selinux (guestfs_h *g);\n"
10480 "\n"
10481 msgstr ""
10482
10483 # type: textblock
10484 #. type: textblock
10485 #: ../src/guestfs-actions.pod:2056
10486 msgid ""
10487 "This returns the current setting of the selinux flag which is passed to the "
10488 "appliance at boot time.  See C<guestfs_set_selinux>."
10489 msgstr ""
10490
10491 # type: textblock
10492 #. type: textblock
10493 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:2127
10494 #: ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5965
10495 msgid "(Added in 1.0.67)"
10496 msgstr ""
10497
10498 # type: =head2
10499 #. type: =head2
10500 #: ../src/guestfs-actions.pod:2066
10501 msgid "guestfs_get_state"
10502 msgstr ""
10503
10504 # type: verbatim
10505 #. type: verbatim
10506 #: ../src/guestfs-actions.pod:2068
10507 #, no-wrap
10508 msgid ""
10509 " int\n"
10510 " guestfs_get_state (guestfs_h *g);\n"
10511 "\n"
10512 msgstr ""
10513
10514 # type: textblock
10515 #. type: textblock
10516 #: ../src/guestfs-actions.pod:2071 ../fish/guestfish-actions.pod:1406
10517 msgid ""
10518 "This returns the current state as an opaque integer.  This is only useful "
10519 "for printing debug and internal error messages."
10520 msgstr ""
10521
10522 # type: textblock
10523 #. type: textblock
10524 #: ../src/guestfs-actions.pod:2074 ../src/guestfs-actions.pod:3176
10525 #: ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3266
10526 #: ../src/guestfs-actions.pod:3293 ../fish/guestfish-actions.pod:1409
10527 #: ../fish/guestfish-actions.pod:2223 ../fish/guestfish-actions.pod:2241
10528 #: ../fish/guestfish-actions.pod:2279 ../fish/guestfish-actions.pod:2295
10529 msgid "For more information on states, see L<guestfs(3)>."
10530 msgstr ""
10531
10532 # type: =head2
10533 #. type: =head2
10534 #: ../src/guestfs-actions.pod:2080
10535 msgid "guestfs_get_trace"
10536 msgstr ""
10537
10538 # type: verbatim
10539 #. type: verbatim
10540 #: ../src/guestfs-actions.pod:2082
10541 #, no-wrap
10542 msgid ""
10543 " int\n"
10544 " guestfs_get_trace (guestfs_h *g);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #. type: textblock
10550 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1415
10551 msgid "Return the command trace flag."
10552 msgstr ""
10553
10554 # type: =head2
10555 #. type: =head2
10556 #: ../src/guestfs-actions.pod:2091
10557 msgid "guestfs_get_umask"
10558 msgstr ""
10559
10560 # type: verbatim
10561 #. type: verbatim
10562 #: ../src/guestfs-actions.pod:2093
10563 #, no-wrap
10564 msgid ""
10565 " int\n"
10566 " guestfs_get_umask (guestfs_h *g);\n"
10567 "\n"
10568 msgstr ""
10569
10570 # type: textblock
10571 #. type: textblock
10572 #: ../src/guestfs-actions.pod:2096
10573 msgid ""
10574 "Return the current umask.  By default the umask is C<022> unless it has been "
10575 "set by calling C<guestfs_umask>."
10576 msgstr ""
10577
10578 # type: =head2
10579 #. type: =head2
10580 #: ../src/guestfs-actions.pod:2103
10581 msgid "guestfs_get_verbose"
10582 msgstr ""
10583
10584 # type: verbatim
10585 #. type: verbatim
10586 #: ../src/guestfs-actions.pod:2105
10587 #, no-wrap
10588 msgid ""
10589 " int\n"
10590 " guestfs_get_verbose (guestfs_h *g);\n"
10591 "\n"
10592 msgstr ""
10593
10594 # type: textblock
10595 #. type: textblock
10596 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1428
10597 msgid "This returns the verbose messages flag."
10598 msgstr ""
10599
10600 # type: =head2
10601 #. type: =head2
10602 #: ../src/guestfs-actions.pod:2114
10603 msgid "guestfs_getcon"
10604 msgstr ""
10605
10606 # type: verbatim
10607 #. type: verbatim
10608 #: ../src/guestfs-actions.pod:2116
10609 #, no-wrap
10610 msgid ""
10611 " char *\n"
10612 " guestfs_getcon (guestfs_h *g);\n"
10613 "\n"
10614 msgstr ""
10615
10616 # type: textblock
10617 #. type: textblock
10618 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1434
10619 msgid "This gets the SELinux security context of the daemon."
10620 msgstr ""
10621
10622 # type: textblock
10623 #. type: textblock
10624 #: ../src/guestfs-actions.pod:2121
10625 msgid ""
10626 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10627 msgstr ""
10628
10629 # type: =head2
10630 #. type: =head2
10631 #: ../src/guestfs-actions.pod:2129
10632 msgid "guestfs_getxattr"
10633 msgstr ""
10634
10635 # type: verbatim
10636 #. type: verbatim
10637 #: ../src/guestfs-actions.pod:2131
10638 #, no-wrap
10639 msgid ""
10640 " char *\n"
10641 " guestfs_getxattr (guestfs_h *g,\n"
10642 "                   const char *path,\n"
10643 "                   const char *name,\n"
10644 "                   size_t *size_r);\n"
10645 "\n"
10646 msgstr ""
10647
10648 # type: textblock
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2137
10651 msgid ""
10652 "Get a single extended attribute from file C<path> named C<name>.  This call "
10653 "follows symlinks.  If you want to lookup an extended attribute for the "
10654 "symlink itself, use C<guestfs_lgetxattr>."
10655 msgstr ""
10656
10657 # type: textblock
10658 #. type: textblock
10659 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:3387
10660 msgid ""
10661 "Normally it is better to get all extended attributes from a file in one go "
10662 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10663 "implementations are buggy and do not provide a way to list out attributes.  "
10664 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10665 "extended attributes you want in advance and call this function."
10666 msgstr ""
10667
10668 # type: textblock
10669 #. type: textblock
10670 #: ../src/guestfs-actions.pod:2148 ../src/guestfs-actions.pod:3394
10671 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2360
10672 msgid ""
10673 "Extended attribute values are blobs of binary data.  If there is no extended "
10674 "attribute named C<name>, this returns an error."
10675 msgstr ""
10676
10677 # type: textblock
10678 #. type: textblock
10679 #: ../src/guestfs-actions.pod:2151
10680 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10681 msgstr ""
10682
10683 # type: textblock
10684 #. type: textblock
10685 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2344
10686 #: ../src/guestfs-actions.pod:3399 ../src/guestfs-actions.pod:5116
10687 #: ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5323
10688 msgid ""
10689 "This function returns a buffer, or NULL on error.  The size of the returned "
10690 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10691 "after use>."
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../src/guestfs-actions.pod:2157 ../src/guestfs-actions.pod:3403
10696 msgid "(Added in 1.7.24)"
10697 msgstr ""
10698
10699 # type: =head2
10700 #. type: =head2
10701 #: ../src/guestfs-actions.pod:2159
10702 msgid "guestfs_getxattrs"
10703 msgstr ""
10704
10705 # type: verbatim
10706 #. type: verbatim
10707 #: ../src/guestfs-actions.pod:2161
10708 #, no-wrap
10709 msgid ""
10710 " struct guestfs_xattr_list *\n"
10711 " guestfs_getxattrs (guestfs_h *g,\n"
10712 "                    const char *path);\n"
10713 "\n"
10714 msgstr ""
10715
10716 # type: textblock
10717 #. type: textblock
10718 #: ../src/guestfs-actions.pod:2165 ../fish/guestfish-actions.pod:1463
10719 msgid ""
10720 "This call lists the extended attributes of the file or directory C<path>."
10721 msgstr ""
10722
10723 # type: textblock
10724 #. type: textblock
10725 #: ../src/guestfs-actions.pod:2168 ../fish/guestfish-actions.pod:1466
10726 msgid ""
10727 "At the system call level, this is a combination of the L<listxattr(2)> and "
10728 "L<getxattr(2)> calls."
10729 msgstr ""
10730
10731 # type: textblock
10732 #. type: textblock
10733 #: ../src/guestfs-actions.pod:2171
10734 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10735 msgstr ""
10736
10737 # type: textblock
10738 #. type: textblock
10739 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:3415
10740 #: ../src/guestfs-actions.pod:4066
10741 msgid ""
10742 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10743 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10744 msgstr ""
10745
10746 # type: textblock
10747 #. type: textblock
10748 #: ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:3419
10749 #: ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3620
10750 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5984
10751 #: ../src/guestfs-actions.pod:7319
10752 msgid "(Added in 1.0.59)"
10753 msgstr ""
10754
10755 # type: =head2
10756 #. type: =head2
10757 #: ../src/guestfs-actions.pod:2179
10758 msgid "guestfs_glob_expand"
10759 msgstr ""
10760
10761 # type: verbatim
10762 #. type: verbatim
10763 #: ../src/guestfs-actions.pod:2181
10764 #, no-wrap
10765 msgid ""
10766 " char **\n"
10767 " guestfs_glob_expand (guestfs_h *g,\n"
10768 "                      const char *pattern);\n"
10769 "\n"
10770 msgstr ""
10771
10772 # type: textblock
10773 #. type: textblock
10774 #: ../src/guestfs-actions.pod:2185 ../fish/guestfish-actions.pod:1475
10775 msgid ""
10776 "This command searches for all the pathnames matching C<pattern> according to "
10777 "the wildcard expansion rules used by the shell."
10778 msgstr ""
10779
10780 # type: textblock
10781 #. type: textblock
10782 #: ../src/guestfs-actions.pod:2189 ../fish/guestfish-actions.pod:1479
10783 msgid ""
10784 "If no paths match, then this returns an empty list (note: not an error)."
10785 msgstr ""
10786
10787 # type: textblock
10788 #. type: textblock
10789 #: ../src/guestfs-actions.pod:2192 ../fish/guestfish-actions.pod:1482
10790 msgid ""
10791 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10792 "GLOB_BRACE>.  See that manual page for more details."
10793 msgstr ""
10794
10795 # type: textblock
10796 #. type: textblock
10797 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:6149
10798 #: ../src/guestfs-actions.pod:6166
10799 msgid "(Added in 1.0.50)"
10800 msgstr ""
10801
10802 # type: =head2
10803 #. type: =head2
10804 #: ../src/guestfs-actions.pod:2202
10805 msgid "guestfs_grep"
10806 msgstr ""
10807
10808 # type: verbatim
10809 #. type: verbatim
10810 #: ../src/guestfs-actions.pod:2204
10811 #, no-wrap
10812 msgid ""
10813 " char **\n"
10814 " guestfs_grep (guestfs_h *g,\n"
10815 "               const char *regex,\n"
10816 "               const char *path);\n"
10817 "\n"
10818 msgstr ""
10819
10820 # type: textblock
10821 #. type: textblock
10822 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1490
10823 msgid "This calls the external C<grep> program and returns the matching lines."
10824 msgstr ""
10825
10826 # type: =head2
10827 #. type: =head2
10828 #: ../src/guestfs-actions.pod:2221
10829 msgid "guestfs_grepi"
10830 msgstr ""
10831
10832 # type: verbatim
10833 #. type: verbatim
10834 #: ../src/guestfs-actions.pod:2223
10835 #, no-wrap
10836 msgid ""
10837 " char **\n"
10838 " guestfs_grepi (guestfs_h *g,\n"
10839 "                const char *regex,\n"
10840 "                const char *path);\n"
10841 "\n"
10842 msgstr ""
10843
10844 # type: textblock
10845 #. type: textblock
10846 #: ../src/guestfs-actions.pod:2228 ../fish/guestfish-actions.pod:1500
10847 msgid ""
10848 "This calls the external C<grep -i> program and returns the matching lines."
10849 msgstr ""
10850
10851 # type: =head2
10852 #. type: =head2
10853 #: ../src/guestfs-actions.pod:2240
10854 msgid "guestfs_grub_install"
10855 msgstr ""
10856
10857 # type: verbatim
10858 #. type: verbatim
10859 #: ../src/guestfs-actions.pod:2242
10860 #, no-wrap
10861 msgid ""
10862 " int\n"
10863 " guestfs_grub_install (guestfs_h *g,\n"
10864 "                       const char *root,\n"
10865 "                       const char *device);\n"
10866 "\n"
10867 msgstr ""
10868
10869 # type: textblock
10870 #. type: textblock
10871 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
10872 msgid ""
10873 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10874 "the root directory being C<root>."
10875 msgstr ""
10876
10877 # type: textblock
10878 #. type: textblock
10879 #: ../src/guestfs-actions.pod:2250 ../fish/guestfish-actions.pod:1513
10880 msgid ""
10881 "Note: If grub-install reports the error \"No suitable drive was found in the "
10882 "generated device map.\" it may be that you need to create a C</boot/grub/"
10883 "device.map> file first that contains the mapping between grub device names "
10884 "and Linux device names.  It is usually sufficient to create a file "
10885 "containing:"
10886 msgstr ""
10887
10888 # type: verbatim
10889 #. type: verbatim
10890 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1520
10891 #, no-wrap
10892 msgid ""
10893 " (hd0) /dev/vda\n"
10894 "\n"
10895 msgstr ""
10896
10897 # type: textblock
10898 #. type: textblock
10899 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1522
10900 msgid "replacing C</dev/vda> with the name of the installation device."
10901 msgstr ""
10902
10903 # type: textblock
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2263
10906 msgid "(Added in 1.0.17)"
10907 msgstr ""
10908
10909 # type: =head2
10910 #. type: =head2
10911 #: ../src/guestfs-actions.pod:2265
10912 msgid "guestfs_head"
10913 msgstr ""
10914
10915 # type: verbatim
10916 #. type: verbatim
10917 #: ../src/guestfs-actions.pod:2267
10918 #, no-wrap
10919 msgid ""
10920 " char **\n"
10921 " guestfs_head (guestfs_h *g,\n"
10922 "               const char *path);\n"
10923 "\n"
10924 msgstr ""
10925
10926 # type: textblock
10927 #. type: textblock
10928 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1528
10929 msgid ""
10930 "This command returns up to the first 10 lines of a file as a list of strings."
10931 msgstr ""
10932
10933 # type: =head2
10934 #. type: =head2
10935 #: ../src/guestfs-actions.pod:2283
10936 msgid "guestfs_head_n"
10937 msgstr ""
10938
10939 # type: verbatim
10940 #. type: verbatim
10941 #: ../src/guestfs-actions.pod:2285
10942 #, no-wrap
10943 msgid ""
10944 " char **\n"
10945 " guestfs_head_n (guestfs_h *g,\n"
10946 "                 int nrlines,\n"
10947 "                 const char *path);\n"
10948 "\n"
10949 msgstr ""
10950
10951 # type: textblock
10952 #. type: textblock
10953 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1538
10954 msgid ""
10955 "If the parameter C<nrlines> is a positive number, this returns the first "
10956 "C<nrlines> lines of the file C<path>."
10957 msgstr ""
10958
10959 # type: textblock
10960 #. type: textblock
10961 #: ../src/guestfs-actions.pod:2293 ../fish/guestfish-actions.pod:1541
10962 msgid ""
10963 "If the parameter C<nrlines> is a negative number, this returns lines from "
10964 "the file C<path>, excluding the last C<nrlines> lines."
10965 msgstr ""
10966
10967 # type: textblock
10968 #. type: textblock
10969 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6446
10970 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4330
10971 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10972 msgstr ""
10973
10974 # type: =head2
10975 #. type: =head2
10976 #: ../src/guestfs-actions.pod:2307
10977 msgid "guestfs_hexdump"
10978 msgstr ""
10979
10980 # type: verbatim
10981 #. type: verbatim
10982 #: ../src/guestfs-actions.pod:2309
10983 #, no-wrap
10984 msgid ""
10985 " char *\n"
10986 " guestfs_hexdump (guestfs_h *g,\n"
10987 "                  const char *path);\n"
10988 "\n"
10989 msgstr ""
10990
10991 # type: textblock
10992 #. type: textblock
10993 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
10994 msgid ""
10995 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10996 "readable, canonical hex dump of the file."
10997 msgstr ""
10998
10999 # type: textblock
11000 #. type: textblock
11001 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:6230
11002 #: ../src/guestfs-actions.pod:6285
11003 msgid "(Added in 1.0.22)"
11004 msgstr ""
11005
11006 # type: =head2
11007 #. type: =head2
11008 #: ../src/guestfs-actions.pod:2324
11009 msgid "guestfs_initrd_cat"
11010 msgstr ""
11011
11012 # type: verbatim
11013 #. type: verbatim
11014 #: ../src/guestfs-actions.pod:2326
11015 #, no-wrap
11016 msgid ""
11017 " char *\n"
11018 " guestfs_initrd_cat (guestfs_h *g,\n"
11019 "                     const char *initrdpath,\n"
11020 "                     const char *filename,\n"
11021 "                     size_t *size_r);\n"
11022 "\n"
11023 msgstr ""
11024
11025 # type: textblock
11026 #. type: textblock
11027 #: ../src/guestfs-actions.pod:2332 ../fish/guestfish-actions.pod:1563
11028 msgid ""
11029 "This command unpacks the file C<filename> from the initrd file called "
11030 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11031 "character."
11032 msgstr ""
11033
11034 # type: textblock
11035 #. type: textblock
11036 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
11037 msgid ""
11038 "For example, in guestfish you could use the following command to examine the "
11039 "boot script (usually called C</init>)  contained in a Linux initrd or "
11040 "initramfs image:"
11041 msgstr ""
11042
11043 # type: verbatim
11044 #. type: verbatim
11045 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
11046 #, no-wrap
11047 msgid ""
11048 " initrd-cat /boot/initrd-<version>.img init\n"
11049 "\n"
11050 msgstr ""
11051
11052 # type: textblock
11053 #. type: textblock
11054 #: ../src/guestfs-actions.pod:2342
11055 msgid "See also C<guestfs_initrd_list>."
11056 msgstr ""
11057
11058 # type: =head2
11059 #. type: =head2
11060 #: ../src/guestfs-actions.pod:2353
11061 msgid "guestfs_initrd_list"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #. type: verbatim
11066 #: ../src/guestfs-actions.pod:2355
11067 #, no-wrap
11068 msgid ""
11069 " char **\n"
11070 " guestfs_initrd_list (guestfs_h *g,\n"
11071 "                      const char *path);\n"
11072 "\n"
11073 msgstr ""
11074
11075 # type: textblock
11076 #. type: textblock
11077 #: ../src/guestfs-actions.pod:2359 ../fish/guestfish-actions.pod:1582
11078 msgid "This command lists out files contained in an initrd."
11079 msgstr ""
11080
11081 # type: textblock
11082 #. type: textblock
11083 #: ../src/guestfs-actions.pod:2361 ../fish/guestfish-actions.pod:1584
11084 msgid ""
11085 "The files are listed without any initial C</> character.  The files are "
11086 "listed in the order they appear (not necessarily alphabetical).  Directory "
11087 "names are listed as separate items."
11088 msgstr ""
11089
11090 # type: textblock
11091 #. type: textblock
11092 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1588
11093 msgid ""
11094 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11095 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11096 "files)."
11097 msgstr ""
11098
11099 # type: =head2
11100 #. type: =head2
11101 #: ../src/guestfs-actions.pod:2375
11102 msgid "guestfs_inotify_add_watch"
11103 msgstr ""
11104
11105 # type: verbatim
11106 #. type: verbatim
11107 #: ../src/guestfs-actions.pod:2377
11108 #, no-wrap
11109 msgid ""
11110 " int64_t\n"
11111 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11112 "                            const char *path,\n"
11113 "                            int mask);\n"
11114 "\n"
11115 msgstr ""
11116
11117 # type: textblock
11118 #. type: textblock
11119 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1596
11120 msgid "Watch C<path> for the events listed in C<mask>."
11121 msgstr ""
11122
11123 # type: textblock
11124 #. type: textblock
11125 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1598
11126 msgid ""
11127 "Note that if C<path> is a directory then events within that directory are "
11128 "watched, but this does I<not> happen recursively (in subdirectories)."
11129 msgstr ""
11130
11131 # type: textblock
11132 #. type: textblock
11133 #: ../src/guestfs-actions.pod:2388 ../fish/guestfish-actions.pod:1602
11134 msgid ""
11135 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11136 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11137 msgstr ""
11138
11139 # type: =head2
11140 #. type: =head2
11141 #: ../src/guestfs-actions.pod:2396
11142 msgid "guestfs_inotify_close"
11143 msgstr ""
11144
11145 # type: verbatim
11146 #. type: verbatim
11147 #: ../src/guestfs-actions.pod:2398
11148 #, no-wrap
11149 msgid ""
11150 " int\n"
11151 " guestfs_inotify_close (guestfs_h *g);\n"
11152 "\n"
11153 msgstr ""
11154
11155 # type: textblock
11156 #. type: textblock
11157 #: ../src/guestfs-actions.pod:2401 ../fish/guestfish-actions.pod:1610
11158 msgid ""
11159 "This closes the inotify handle which was previously opened by inotify_init.  "
11160 "It removes all watches, throws away any pending events, and deallocates all "
11161 "resources."
11162 msgstr ""
11163
11164 # type: =head2
11165 #. type: =head2
11166 #: ../src/guestfs-actions.pod:2409
11167 msgid "guestfs_inotify_files"
11168 msgstr ""
11169
11170 # type: verbatim
11171 #. type: verbatim
11172 #: ../src/guestfs-actions.pod:2411
11173 #, no-wrap
11174 msgid ""
11175 " char **\n"
11176 " guestfs_inotify_files (guestfs_h *g);\n"
11177 "\n"
11178 msgstr ""
11179
11180 # type: textblock
11181 #. type: textblock
11182 #: ../src/guestfs-actions.pod:2414
11183 msgid ""
11184 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11185 "returns a list of pathnames of objects that were touched.  The returned "
11186 "pathnames are sorted and deduplicated."
11187 msgstr ""
11188
11189 # type: =head2
11190 #. type: =head2
11191 #: ../src/guestfs-actions.pod:2424
11192 msgid "guestfs_inotify_init"
11193 msgstr ""
11194
11195 # type: verbatim
11196 #. type: verbatim
11197 #: ../src/guestfs-actions.pod:2426
11198 #, no-wrap
11199 msgid ""
11200 " int\n"
11201 " guestfs_inotify_init (guestfs_h *g,\n"
11202 "                       int maxevents);\n"
11203 "\n"
11204 msgstr ""
11205
11206 # type: textblock
11207 #. type: textblock
11208 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1626
11209 msgid ""
11210 "This command creates a new inotify handle.  The inotify subsystem can be "
11211 "used to notify events which happen to objects in the guest filesystem."
11212 msgstr ""
11213
11214 # type: textblock
11215 #. type: textblock
11216 #: ../src/guestfs-actions.pod:2434
11217 msgid ""
11218 "C<maxevents> is the maximum number of events which will be queued up between "
11219 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11220 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11221 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11222 "throws away events, but records the fact that it threw them away by setting "
11223 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11224 "C<guestfs_inotify_read>)."
11225 msgstr ""
11226
11227 # type: textblock
11228 #. type: textblock
11229 #: ../src/guestfs-actions.pod:2444
11230 msgid ""
11231 "Before any events are generated, you have to add some watches to the "
11232 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11233 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11234 msgstr ""
11235
11236 # type: textblock
11237 #. type: textblock
11238 #: ../src/guestfs-actions.pod:2450
11239 msgid ""
11240 "Queued up events should be read periodically by calling "
11241 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11242 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11243 "often enough then you risk the internal queue overflowing."
11244 msgstr ""
11245
11246 # type: textblock
11247 #. type: textblock
11248 #: ../src/guestfs-actions.pod:2457
11249 msgid ""
11250 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11251 "This also removes any watches automatically."
11252 msgstr ""
11253
11254 # type: textblock
11255 #. type: textblock
11256 #: ../src/guestfs-actions.pod:2461 ../fish/guestfish-actions.pod:1657
11257 msgid ""
11258 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11259 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11260 "that there is one global inotify handle per libguestfs instance."
11261 msgstr ""
11262
11263 # type: =head2
11264 #. type: =head2
11265 #: ../src/guestfs-actions.pod:2470
11266 msgid "guestfs_inotify_read"
11267 msgstr ""
11268
11269 # type: verbatim
11270 #. type: verbatim
11271 #: ../src/guestfs-actions.pod:2472
11272 #, no-wrap
11273 msgid ""
11274 " struct guestfs_inotify_event_list *\n"
11275 " guestfs_inotify_read (guestfs_h *g);\n"
11276 "\n"
11277 msgstr ""
11278
11279 # type: textblock
11280 #. type: textblock
11281 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1666
11282 msgid ""
11283 "Return the complete queue of events that have happened since the previous "
11284 "read call."
11285 msgstr ""
11286
11287 # type: textblock
11288 #. type: textblock
11289 #: ../src/guestfs-actions.pod:2478 ../fish/guestfish-actions.pod:1669
11290 msgid "If no events have happened, this returns an empty list."
11291 msgstr ""
11292
11293 # type: textblock
11294 #. type: textblock
11295 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1671
11296 msgid ""
11297 "I<Note>: In order to make sure that all events have been read, you must call "
11298 "this function repeatedly until it returns an empty list.  The reason is that "
11299 "the call will read events up to the maximum appliance-to-host message size "
11300 "and leave remaining events in the queue."
11301 msgstr ""
11302
11303 # type: textblock
11304 #. type: textblock
11305 #: ../src/guestfs-actions.pod:2486
11306 msgid ""
11307 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11308 "there was an error.  I<The caller must call "
11309 "C<guestfs_free_inotify_event_list> after use>."
11310 msgstr ""
11311
11312 # type: =head2
11313 #. type: =head2
11314 #: ../src/guestfs-actions.pod:2492
11315 msgid "guestfs_inotify_rm_watch"
11316 msgstr ""
11317
11318 # type: verbatim
11319 #. type: verbatim
11320 #: ../src/guestfs-actions.pod:2494
11321 #, no-wrap
11322 msgid ""
11323 " int\n"
11324 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11325 "                           int wd);\n"
11326 "\n"
11327 msgstr ""
11328
11329 # type: textblock
11330 #. type: textblock
11331 #: ../src/guestfs-actions.pod:2498
11332 msgid ""
11333 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11334 msgstr ""
11335
11336 # type: =head2
11337 #. type: =head2
11338 #: ../src/guestfs-actions.pod:2505
11339 msgid "guestfs_inspect_get_arch"
11340 msgstr ""
11341
11342 # type: verbatim
11343 #. type: verbatim
11344 #: ../src/guestfs-actions.pod:2507
11345 #, no-wrap
11346 msgid ""
11347 " char *\n"
11348 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11349 "                           const char *root);\n"
11350 "\n"
11351 msgstr ""
11352
11353 # type: textblock
11354 #. type: textblock
11355 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:2534
11356 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2641
11357 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2702
11358 #: ../src/guestfs-actions.pod:2729 ../src/guestfs-actions.pod:2750
11359 #: ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2816
11360 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2891
11361 #: ../src/guestfs-actions.pod:2933 ../src/guestfs-actions.pod:2956
11362 #: ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2990
11363 #: ../src/guestfs-actions.pod:3009
11364 msgid ""
11365 "This function should only be called with a root device string as returned by "
11366 "C<guestfs_inspect_os>."
11367 msgstr ""
11368
11369 # type: textblock
11370 #. type: textblock
11371 #: ../src/guestfs-actions.pod:2514
11372 msgid ""
11373 "This returns the architecture of the inspected operating system.  The "
11374 "possible return values are listed under C<guestfs_file_architecture>."
11375 msgstr ""
11376
11377 # type: textblock
11378 #. type: textblock
11379 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1695
11380 msgid ""
11381 "If the architecture could not be determined, then the string C<unknown> is "
11382 "returned."
11383 msgstr ""
11384
11385 # type: textblock
11386 #. type: textblock
11387 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2602
11388 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2689
11389 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2803
11390 #: ../src/guestfs-actions.pod:2834 ../src/guestfs-actions.pod:2858
11391 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:2920
11392 #: ../src/guestfs-actions.pod:2943 ../src/guestfs-actions.pod:2963
11393 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:2999
11394 #: ../src/guestfs-actions.pod:3102 ../src/guestfs-actions.pod:3143
11395 #: ../fish/guestfish-actions.pod:1698 ../fish/guestfish-actions.pod:1772
11396 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1839
11397 #: ../fish/guestfish-actions.pod:1860 ../fish/guestfish-actions.pod:1924
11398 #: ../fish/guestfish-actions.pod:1948 ../fish/guestfish-actions.pod:1965
11399 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:2013
11400 #: ../fish/guestfish-actions.pod:2029 ../fish/guestfish-actions.pod:2042
11401 #: ../fish/guestfish-actions.pod:2055 ../fish/guestfish-actions.pod:2070
11402 #: ../fish/guestfish-actions.pod:2169 ../fish/guestfish-actions.pod:2203
11403 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11404 msgstr ""
11405
11406 # type: =head2
11407 #. type: =head2
11408 #: ../src/guestfs-actions.pod:2528
11409 msgid "guestfs_inspect_get_distro"
11410 msgstr ""
11411
11412 # type: verbatim
11413 #. type: verbatim
11414 #: ../src/guestfs-actions.pod:2530
11415 #, no-wrap
11416 msgid ""
11417 " char *\n"
11418 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11419 "                             const char *root);\n"
11420 "\n"
11421 msgstr ""
11422
11423 # type: textblock
11424 #. type: textblock
11425 #: ../src/guestfs-actions.pod:2537 ../fish/guestfish-actions.pod:1707
11426 msgid ""
11427 "This returns the distro (distribution) of the inspected operating system."
11428 msgstr ""
11429
11430 # type: textblock
11431 #. type: textblock
11432 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1710
11433 msgid "Currently defined distros are:"
11434 msgstr ""
11435
11436 # type: =item
11437 #. type: =item
11438 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1714
11439 msgid "\"archlinux\""
11440 msgstr ""
11441
11442 # type: textblock
11443 #. type: textblock
11444 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1716
11445 msgid "Arch Linux."
11446 msgstr ""
11447
11448 # type: =item
11449 #. type: =item
11450 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1718
11451 msgid "\"debian\""
11452 msgstr ""
11453
11454 # type: textblock
11455 #. type: textblock
11456 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1720
11457 msgid "Debian."
11458 msgstr ""
11459
11460 # type: =item
11461 #. type: =item
11462 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1722
11463 msgid "\"fedora\""
11464 msgstr ""
11465
11466 # type: textblock
11467 #. type: textblock
11468 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1724
11469 msgid "Fedora."
11470 msgstr ""
11471
11472 # type: =item
11473 #. type: =item
11474 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1726
11475 msgid "\"gentoo\""
11476 msgstr ""
11477
11478 # type: textblock
11479 #. type: textblock
11480 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1728
11481 msgid "Gentoo."
11482 msgstr ""
11483
11484 # type: =item
11485 #. type: =item
11486 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1730
11487 msgid "\"linuxmint\""
11488 msgstr ""
11489
11490 # type: textblock
11491 #. type: textblock
11492 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1732
11493 msgid "Linux Mint."
11494 msgstr ""
11495
11496 # type: =item
11497 #. type: =item
11498 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1734
11499 msgid "\"mandriva\""
11500 msgstr ""
11501
11502 # type: textblock
11503 #. type: textblock
11504 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1736
11505 msgid "Mandriva."
11506 msgstr ""
11507
11508 # type: =item
11509 #. type: =item
11510 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1738
11511 msgid "\"meego\""
11512 msgstr ""
11513
11514 # type: textblock
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1740
11517 msgid "MeeGo."
11518 msgstr ""
11519
11520 # type: =item
11521 #. type: =item
11522 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1742
11523 msgid "\"pardus\""
11524 msgstr ""
11525
11526 # type: textblock
11527 #. type: textblock
11528 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1744
11529 msgid "Pardus."
11530 msgstr ""
11531
11532 # type: =item
11533 #. type: =item
11534 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1746
11535 msgid "\"redhat-based\""
11536 msgstr ""
11537
11538 # type: textblock
11539 #. type: textblock
11540 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1748
11541 msgid "Some Red Hat-derived distro."
11542 msgstr ""
11543
11544 # type: =item
11545 #. type: =item
11546 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1750
11547 msgid "\"rhel\""
11548 msgstr ""
11549
11550 # type: textblock
11551 #. type: textblock
11552 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1752
11553 msgid "Red Hat Enterprise Linux and some derivatives."
11554 msgstr ""
11555
11556 # type: =item
11557 #. type: =item
11558 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1754
11559 msgid "\"ubuntu\""
11560 msgstr ""
11561
11562 # type: textblock
11563 #. type: textblock
11564 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1756
11565 msgid "Ubuntu."
11566 msgstr ""
11567
11568 # type: =item
11569 #. type: =item
11570 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:2660
11571 #: ../src/guestfs-actions.pod:2911 ../fish/guestfish-actions.pod:1758
11572 #: ../fish/guestfish-actions.pod:1815 ../fish/guestfish-actions.pod:2004
11573 msgid "\"unknown\""
11574 msgstr ""
11575
11576 # type: textblock
11577 #. type: textblock
11578 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1760
11579 msgid "The distro could not be determined."
11580 msgstr ""
11581
11582 # type: =item
11583 #. type: =item
11584 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2903
11585 #: ../fish/guestfish-actions.pod:1762 ../fish/guestfish-actions.pod:1996
11586 msgid "\"windows\""
11587 msgstr ""
11588
11589 # type: textblock
11590 #. type: textblock
11591 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1764
11592 msgid ""
11593 "Windows does not have distributions.  This string is returned if the OS type "
11594 "is Windows."
11595 msgstr ""
11596
11597 # type: textblock
11598 #. type: textblock
11599 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2666
11600 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:1769
11601 #: ../fish/guestfish-actions.pod:1821 ../fish/guestfish-actions.pod:2010
11602 msgid ""
11603 "Future versions of libguestfs may return other strings here.  The caller "
11604 "should be prepared to handle any string."
11605 msgstr ""
11606
11607 # type: =head2
11608 #. type: =head2
11609 #: ../src/guestfs-actions.pod:2609
11610 msgid "guestfs_inspect_get_filesystems"
11611 msgstr ""
11612
11613 # type: verbatim
11614 #. type: verbatim
11615 #: ../src/guestfs-actions.pod:2611
11616 #, no-wrap
11617 msgid ""
11618 " char **\n"
11619 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11620 "                                  const char *root);\n"
11621 "\n"
11622 msgstr ""
11623
11624 # type: textblock
11625 #. type: textblock
11626 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1781
11627 msgid ""
11628 "This returns a list of all the filesystems that we think are associated with "
11629 "this operating system.  This includes the root filesystem, other ordinary "
11630 "filesystems, and non-mounted devices like swap partitions."
11631 msgstr ""
11632
11633 # type: textblock
11634 #. type: textblock
11635 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
11636 msgid ""
11637 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11638 "to be shared between operating systems."
11639 msgstr ""
11640
11641 # type: textblock
11642 #. type: textblock
11643 #: ../src/guestfs-actions.pod:2626
11644 msgid ""
11645 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11646 "C<guestfs_inspect_get_mountpoints>."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../src/guestfs-actions.pod:2635
11651 msgid "guestfs_inspect_get_format"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../src/guestfs-actions.pod:2637
11656 #, no-wrap
11657 msgid ""
11658 " char *\n"
11659 " guestfs_inspect_get_format (guestfs_h *g,\n"
11660 "                             const char *root);\n"
11661 "\n"
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1799
11666 msgid ""
11667 "This returns the format of the inspected operating system.  You can use it "
11668 "to detect install images, live CDs and similar."
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1802
11673 msgid "Currently defined formats are:"
11674 msgstr ""
11675
11676 #. type: =item
11677 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
11678 msgid "\"installed\""
11679 msgstr ""
11680
11681 #. type: textblock
11682 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1808
11683 msgid "This is an installed operating system."
11684 msgstr ""
11685
11686 #. type: =item
11687 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1810
11688 msgid "\"installer\""
11689 msgstr ""
11690
11691 #. type: textblock
11692 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1812
11693 msgid ""
11694 "The disk image being inspected is not an installed operating system, but a "
11695 "I<bootable> install disk, live CD, or similar."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1817
11700 msgid "The format of this disk image is not known."
11701 msgstr ""
11702
11703 # type: =head2
11704 #. type: =head2
11705 #: ../src/guestfs-actions.pod:2674
11706 msgid "guestfs_inspect_get_hostname"
11707 msgstr ""
11708
11709 # type: verbatim
11710 #. type: verbatim
11711 #: ../src/guestfs-actions.pod:2676
11712 #, no-wrap
11713 msgid ""
11714 " char *\n"
11715 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11716 "                               const char *root);\n"
11717 "\n"
11718 msgstr ""
11719
11720 # type: textblock
11721 #. type: textblock
11722 #: ../src/guestfs-actions.pod:2683 ../fish/guestfish-actions.pod:1833
11723 msgid ""
11724 "This function returns the hostname of the operating system as found by "
11725 "inspection of the guest's configuration files."
11726 msgstr ""
11727
11728 # type: textblock
11729 #. type: textblock
11730 #: ../src/guestfs-actions.pod:2686 ../fish/guestfish-actions.pod:1836
11731 msgid ""
11732 "If the hostname could not be determined, then the string C<unknown> is "
11733 "returned."
11734 msgstr ""
11735
11736 # type: textblock
11737 #. type: textblock
11738 #: ../src/guestfs-actions.pod:2694
11739 msgid "(Added in 1.7.9)"
11740 msgstr ""
11741
11742 # type: =head2
11743 #. type: =head2
11744 #: ../src/guestfs-actions.pod:2696
11745 msgid "guestfs_inspect_get_major_version"
11746 msgstr ""
11747
11748 # type: verbatim
11749 #. type: verbatim
11750 #: ../src/guestfs-actions.pod:2698
11751 #, no-wrap
11752 msgid ""
11753 " int\n"
11754 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11755 "                                    const char *root);\n"
11756 "\n"
11757 msgstr ""
11758
11759 # type: textblock
11760 #. type: textblock
11761 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1848
11762 msgid ""
11763 "This returns the major version number of the inspected operating system."
11764 msgstr ""
11765
11766 # type: textblock
11767 #. type: textblock
11768 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1851
11769 msgid ""
11770 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11771 "popular public names used by the operating system.  Notably the operating "
11772 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11773 "1).  You can find out the real versions corresponding to releases of Windows "
11774 "by consulting Wikipedia or MSDN."
11775 msgstr ""
11776
11777 # type: textblock
11778 #. type: textblock
11779 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2735
11780 #: ../fish/guestfish-actions.pod:1858 ../fish/guestfish-actions.pod:1872
11781 msgid "If the version could not be determined, then C<0> is returned."
11782 msgstr ""
11783
11784 # type: =head2
11785 #. type: =head2
11786 #: ../src/guestfs-actions.pod:2723
11787 msgid "guestfs_inspect_get_minor_version"
11788 msgstr ""
11789
11790 # type: verbatim
11791 #. type: verbatim
11792 #: ../src/guestfs-actions.pod:2725
11793 #, no-wrap
11794 msgid ""
11795 " int\n"
11796 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11797 "                                    const char *root);\n"
11798 "\n"
11799 msgstr ""
11800
11801 # type: textblock
11802 #. type: textblock
11803 #: ../src/guestfs-actions.pod:2732 ../fish/guestfish-actions.pod:1869
11804 msgid ""
11805 "This returns the minor version number of the inspected operating system."
11806 msgstr ""
11807
11808 # type: textblock
11809 #. type: textblock
11810 #: ../src/guestfs-actions.pod:2737
11811 msgid ""
11812 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11813 "C<guestfs_inspect_get_major_version>."
11814 msgstr ""
11815
11816 # type: =head2
11817 #. type: =head2
11818 #: ../src/guestfs-actions.pod:2744
11819 msgid "guestfs_inspect_get_mountpoints"
11820 msgstr ""
11821
11822 # type: verbatim
11823 #. type: verbatim
11824 #: ../src/guestfs-actions.pod:2746
11825 #, no-wrap
11826 msgid ""
11827 " char **\n"
11828 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11829 "                                  const char *root);\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1884
11835 msgid ""
11836 "This returns a hash of where we think the filesystems associated with this "
11837 "operating system should be mounted.  Callers should note that this is at "
11838 "best an educated guess made by reading configuration files such as C</etc/"
11839 "fstab>.  I<In particular note> that this may return filesystems which are "
11840 "non-existent or not mountable and callers should be prepared to handle or "
11841 "ignore failures if they try to mount them."
11842 msgstr ""
11843
11844 # type: textblock
11845 #. type: textblock
11846 #: ../src/guestfs-actions.pod:2762 ../fish/guestfish-actions.pod:1893
11847 msgid ""
11848 "Each element in the returned hashtable has a key which is the path of the "
11849 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11850 "mounted there (eg. C</dev/sda1>)."
11851 msgstr ""
11852
11853 # type: textblock
11854 #. type: textblock
11855 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1898
11856 msgid ""
11857 "Non-mounted devices such as swap devices are I<not> returned in this list."
11858 msgstr ""
11859
11860 # type: textblock
11861 #. type: textblock
11862 #: ../src/guestfs-actions.pod:2770
11863 msgid ""
11864 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11865 "C<guestfs_inspect_get_filesystems>."
11866 msgstr ""
11867
11868 # type: textblock
11869 #. type: textblock
11870 #: ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:3472
11871 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:6587
11872 msgid ""
11873 "This function returns a NULL-terminated array of strings, or NULL if there "
11874 "was an error.  The array of strings will always have length C<2n+1>, where "
11875 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11876 "caller must free the strings and the array after use>."
11877 msgstr ""
11878
11879 # type: =head2
11880 #. type: =head2
11881 #: ../src/guestfs-actions.pod:2781
11882 msgid "guestfs_inspect_get_package_format"
11883 msgstr ""
11884
11885 # type: verbatim
11886 #. type: verbatim
11887 #: ../src/guestfs-actions.pod:2783
11888 #, no-wrap
11889 msgid ""
11890 " char *\n"
11891 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11892 "                                     const char *root);\n"
11893 "\n"
11894 msgstr ""
11895
11896 # type: textblock
11897 #. type: textblock
11898 #: ../src/guestfs-actions.pod:2790
11899 msgid ""
11900 "This function and C<guestfs_inspect_get_package_management> return the "
11901 "package format and package management tool used by the inspected operating "
11902 "system.  For example for Fedora these functions would return C<rpm> (package "
11903 "format) and C<yum> (package management)."
11904 msgstr ""
11905
11906 # type: textblock
11907 #. type: textblock
11908 #: ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1917
11909 msgid ""
11910 "This returns the string C<unknown> if we could not determine the package "
11911 "format I<or> if the operating system does not have a real packaging system "
11912 "(eg. Windows)."
11913 msgstr ""
11914
11915 # type: textblock
11916 #. type: textblock
11917 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1921
11918 msgid ""
11919 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11920 "Future versions of libguestfs may return other strings."
11921 msgstr ""
11922
11923 # type: textblock
11924 #. type: textblock
11925 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2839
11926 msgid "(Added in 1.7.5)"
11927 msgstr ""
11928
11929 # type: =head2
11930 #. type: =head2
11931 #: ../src/guestfs-actions.pod:2810
11932 msgid "guestfs_inspect_get_package_management"
11933 msgstr ""
11934
11935 # type: verbatim
11936 #. type: verbatim
11937 #: ../src/guestfs-actions.pod:2812
11938 #, no-wrap
11939 msgid ""
11940 " char *\n"
11941 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11942 "                                         const char *root);\n"
11943 "\n"
11944 msgstr ""
11945
11946 # type: textblock
11947 #. type: textblock
11948 #: ../src/guestfs-actions.pod:2819
11949 msgid ""
11950 "C<guestfs_inspect_get_package_format> and this function return the package "
11951 "format and package management tool used by the inspected operating system.  "
11952 "For example for Fedora these functions would return C<rpm> (package format) "
11953 "and C<yum> (package management)."
11954 msgstr ""
11955
11956 # type: textblock
11957 #. type: textblock
11958 #: ../src/guestfs-actions.pod:2825 ../fish/guestfish-actions.pod:1939
11959 msgid ""
11960 "This returns the string C<unknown> if we could not determine the package "
11961 "management tool I<or> if the operating system does not have a real packaging "
11962 "system (eg. Windows)."
11963 msgstr ""
11964
11965 # type: textblock
11966 #. type: textblock
11967 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1943
11968 msgid ""
11969 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11970 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11971 "libguestfs may return other strings."
11972 msgstr ""
11973
11974 # type: =head2
11975 #. type: =head2
11976 #: ../src/guestfs-actions.pod:2841
11977 msgid "guestfs_inspect_get_product_name"
11978 msgstr ""
11979
11980 # type: verbatim
11981 #. type: verbatim
11982 #: ../src/guestfs-actions.pod:2843
11983 #, no-wrap
11984 msgid ""
11985 " char *\n"
11986 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11987 "                                   const char *root);\n"
11988 "\n"
11989 msgstr ""
11990
11991 # type: textblock
11992 #. type: textblock
11993 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1957
11994 msgid ""
11995 "This returns the product name of the inspected operating system.  The "
11996 "product name is generally some freeform string which can be displayed to the "
11997 "user, but should not be parsed by programs."
11998 msgstr ""
11999
12000 # type: textblock
12001 #. type: textblock
12002 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1962
12003 msgid ""
12004 "If the product name could not be determined, then the string C<unknown> is "
12005 "returned."
12006 msgstr ""
12007
12008 # type: =head2
12009 #. type: =head2
12010 #: ../src/guestfs-actions.pod:2865
12011 msgid "guestfs_inspect_get_roots"
12012 msgstr ""
12013
12014 # type: verbatim
12015 #. type: verbatim
12016 #: ../src/guestfs-actions.pod:2867
12017 #, no-wrap
12018 msgid ""
12019 " char **\n"
12020 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12021 "\n"
12022 msgstr ""
12023
12024 # type: textblock
12025 #. type: textblock
12026 #: ../src/guestfs-actions.pod:2870
12027 msgid ""
12028 "This function is a convenient way to get the list of root devices, as "
12029 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12030 "the whole inspection process."
12031 msgstr ""
12032
12033 # type: textblock
12034 #. type: textblock
12035 #: ../src/guestfs-actions.pod:2874
12036 msgid ""
12037 "This returns an empty list if either no root devices were found or the "
12038 "caller has not called C<guestfs_inspect_os>."
12039 msgstr ""
12040
12041 # type: textblock
12042 #. type: textblock
12043 #: ../src/guestfs-actions.pod:2883
12044 msgid "(Added in 1.7.3)"
12045 msgstr ""
12046
12047 # type: =head2
12048 #. type: =head2
12049 #: ../src/guestfs-actions.pod:2885
12050 msgid "guestfs_inspect_get_type"
12051 msgstr ""
12052
12053 # type: verbatim
12054 #. type: verbatim
12055 #: ../src/guestfs-actions.pod:2887
12056 #, no-wrap
12057 msgid ""
12058 " char *\n"
12059 " guestfs_inspect_get_type (guestfs_h *g,\n"
12060 "                           const char *root);\n"
12061 "\n"
12062 msgstr ""
12063
12064 # type: textblock
12065 #. type: textblock
12066 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1987
12067 msgid ""
12068 "This returns the type of the inspected operating system.  Currently defined "
12069 "types are:"
12070 msgstr ""
12071
12072 # type: =item
12073 #. type: =item
12074 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1992
12075 msgid "\"linux\""
12076 msgstr ""
12077
12078 # type: textblock
12079 #. type: textblock
12080 #: ../src/guestfs-actions.pod:2901 ../fish/guestfish-actions.pod:1994
12081 msgid "Any Linux-based operating system."
12082 msgstr ""
12083
12084 # type: textblock
12085 #. type: textblock
12086 #: ../src/guestfs-actions.pod:2905 ../fish/guestfish-actions.pod:1998
12087 msgid "Any Microsoft Windows operating system."
12088 msgstr ""
12089
12090 # type: =item
12091 #. type: =item
12092 #: ../src/guestfs-actions.pod:2907 ../fish/guestfish-actions.pod:2000
12093 msgid "\"freebsd\""
12094 msgstr ""
12095
12096 # type: textblock
12097 #. type: textblock
12098 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2002
12099 msgid "FreeBSD."
12100 msgstr ""
12101
12102 # type: textblock
12103 #. type: textblock
12104 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2006
12105 msgid "The operating system type could not be determined."
12106 msgstr ""
12107
12108 # type: =head2
12109 #. type: =head2
12110 #: ../src/guestfs-actions.pod:2927
12111 msgid "guestfs_inspect_get_windows_systemroot"
12112 msgstr ""
12113
12114 # type: verbatim
12115 #. type: verbatim
12116 #: ../src/guestfs-actions.pod:2929
12117 #, no-wrap
12118 msgid ""
12119 " char *\n"
12120 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12121 "                                         const char *root);\n"
12122 "\n"
12123 msgstr ""
12124
12125 # type: textblock
12126 #. type: textblock
12127 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2022
12128 msgid ""
12129 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12130 "is a directory path such as C</WINDOWS>."
12131 msgstr ""
12132
12133 # type: textblock
12134 #. type: textblock
12135 #: ../src/guestfs-actions.pod:2939 ../fish/guestfish-actions.pod:2025
12136 msgid ""
12137 "This call assumes that the guest is Windows and that the systemroot could be "
12138 "determined by inspection.  If this is not the case then an error is returned."
12139 msgstr ""
12140
12141 # type: textblock
12142 #. type: textblock
12143 #: ../src/guestfs-actions.pod:2948
12144 msgid "(Added in 1.5.25)"
12145 msgstr ""
12146
12147 #. type: =head2
12148 #: ../src/guestfs-actions.pod:2950
12149 msgid "guestfs_inspect_is_live"
12150 msgstr ""
12151
12152 #. type: verbatim
12153 #: ../src/guestfs-actions.pod:2952
12154 #, no-wrap
12155 msgid ""
12156 " int\n"
12157 " guestfs_inspect_is_live (guestfs_h *g,\n"
12158 "                          const char *root);\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../src/guestfs-actions.pod:2959
12164 msgid ""
12165 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12166 "disk), then this returns true if a live image was detected on the disk."
12167 msgstr ""
12168
12169 #. type: =head2
12170 #: ../src/guestfs-actions.pod:2967
12171 msgid "guestfs_inspect_is_multipart"
12172 msgstr ""
12173
12174 #. type: verbatim
12175 #: ../src/guestfs-actions.pod:2969
12176 #, no-wrap
12177 msgid ""
12178 " int\n"
12179 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12180 "                               const char *root);\n"
12181 "\n"
12182 msgstr ""
12183
12184 #. type: textblock
12185 #: ../src/guestfs-actions.pod:2976
12186 msgid ""
12187 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12188 "disk), then this returns true if the disk is part of a set."
12189 msgstr ""
12190
12191 #. type: =head2
12192 #: ../src/guestfs-actions.pod:2984
12193 msgid "guestfs_inspect_is_netinst"
12194 msgstr ""
12195
12196 #. type: verbatim
12197 #: ../src/guestfs-actions.pod:2986
12198 #, no-wrap
12199 msgid ""
12200 " int\n"
12201 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12202 "                             const char *root);\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../src/guestfs-actions.pod:2993
12208 msgid ""
12209 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12210 "disk), then this returns true if the disk is a network installer, ie. not a "
12211 "self-contained install CD but one which is likely to require network access "
12212 "to complete the install."
12213 msgstr ""
12214
12215 # type: =head2
12216 #. type: =head2
12217 #: ../src/guestfs-actions.pod:3003
12218 msgid "guestfs_inspect_list_applications"
12219 msgstr ""
12220
12221 # type: verbatim
12222 #. type: verbatim
12223 #: ../src/guestfs-actions.pod:3005
12224 #, no-wrap
12225 msgid ""
12226 " struct guestfs_application_list *\n"
12227 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12228 "                                    const char *root);\n"
12229 "\n"
12230 msgstr ""
12231
12232 # type: textblock
12233 #. type: textblock
12234 #: ../src/guestfs-actions.pod:3012 ../fish/guestfish-actions.pod:2079
12235 msgid "Return the list of applications installed in the operating system."
12236 msgstr ""
12237
12238 # type: textblock
12239 #. type: textblock
12240 #: ../src/guestfs-actions.pod:3014
12241 msgid ""
12242 "I<Note:> This call works differently from other parts of the inspection "
12243 "API.  You have to call C<guestfs_inspect_os>, then "
12244 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12245 "this.  Listing applications is a significantly more difficult operation "
12246 "which requires access to the full filesystem.  Also note that unlike the "
12247 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12248 "the libguestfs handle, this call actually reads parts of the mounted "
12249 "filesystems during the call."
12250 msgstr ""
12251
12252 # type: textblock
12253 #. type: textblock
12254 #: ../src/guestfs-actions.pod:3024 ../fish/guestfish-actions.pod:2091
12255 msgid ""
12256 "This returns an empty list if the inspection code was not able to determine "
12257 "the list of applications."
12258 msgstr ""
12259
12260 # type: textblock
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:3027 ../fish/guestfish-actions.pod:2094
12263 msgid "The application structure contains the following fields:"
12264 msgstr ""
12265
12266 # type: =item
12267 #. type: =item
12268 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2098
12269 msgid "C<app_name>"
12270 msgstr ""
12271
12272 # type: textblock
12273 #. type: textblock
12274 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2100
12275 msgid ""
12276 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12277 "guests, this is the package name."
12278 msgstr ""
12279
12280 # type: =item
12281 #. type: =item
12282 #: ../src/guestfs-actions.pod:3036 ../fish/guestfish-actions.pod:2103
12283 msgid "C<app_display_name>"
12284 msgstr ""
12285
12286 # type: textblock
12287 #. type: textblock
12288 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2105
12289 msgid ""
12290 "The display name of the application, sometimes localized to the install "
12291 "language of the guest operating system."
12292 msgstr ""
12293
12294 # type: textblock
12295 #. type: textblock
12296 #: ../src/guestfs-actions.pod:3041 ../fish/guestfish-actions.pod:2108
12297 msgid ""
12298 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12299 "to display something can use C<app_name> instead."
12300 msgstr ""
12301
12302 # type: =item
12303 #. type: =item
12304 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2111
12305 msgid "C<app_epoch>"
12306 msgstr ""
12307
12308 # type: textblock
12309 #. type: textblock
12310 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2113
12311 msgid ""
12312 "For package managers which use epochs, this contains the epoch of the "
12313 "package (an integer).  If unavailable, this is returned as C<0>."
12314 msgstr ""
12315
12316 # type: =item
12317 #. type: =item
12318 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2116
12319 msgid "C<app_version>"
12320 msgstr ""
12321
12322 # type: textblock
12323 #. type: textblock
12324 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2118
12325 msgid ""
12326 "The version string of the application or package.  If unavailable this is "
12327 "returned as an empty string C<\"\">."
12328 msgstr ""
12329
12330 # type: =item
12331 #. type: =item
12332 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2121
12333 msgid "C<app_release>"
12334 msgstr ""
12335
12336 # type: textblock
12337 #. type: textblock
12338 #: ../src/guestfs-actions.pod:3056 ../fish/guestfish-actions.pod:2123
12339 msgid ""
12340 "The release string of the application or package, for package managers that "
12341 "use this.  If unavailable this is returned as an empty string C<\"\">."
12342 msgstr ""
12343
12344 # type: =item
12345 #. type: =item
12346 #: ../src/guestfs-actions.pod:3060 ../fish/guestfish-actions.pod:2127
12347 msgid "C<app_install_path>"
12348 msgstr ""
12349
12350 # type: textblock
12351 #. type: textblock
12352 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2129
12353 msgid ""
12354 "The installation path of the application (on operating systems such as "
12355 "Windows which use installation paths).  This path is in the format used by "
12356 "the guest operating system, it is not a libguestfs path."
12357 msgstr ""
12358
12359 # type: textblock
12360 #. type: textblock
12361 #: ../src/guestfs-actions.pod:3067 ../fish/guestfish-actions.pod:2134
12362 msgid "If unavailable this is returned as an empty string C<\"\">."
12363 msgstr ""
12364
12365 # type: =item
12366 #. type: =item
12367 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2136
12368 msgid "C<app_trans_path>"
12369 msgstr ""
12370
12371 # type: textblock
12372 #. type: textblock
12373 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2138
12374 msgid ""
12375 "The install path translated into a libguestfs path.  If unavailable this is "
12376 "returned as an empty string C<\"\">."
12377 msgstr ""
12378
12379 # type: =item
12380 #. type: =item
12381 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2141
12382 msgid "C<app_publisher>"
12383 msgstr ""
12384
12385 # type: textblock
12386 #. type: textblock
12387 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2143
12388 msgid ""
12389 "The name of the publisher of the application, for package managers that use "
12390 "this.  If unavailable this is returned as an empty string C<\"\">."
12391 msgstr ""
12392
12393 # type: =item
12394 #. type: =item
12395 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2147
12396 msgid "C<app_url>"
12397 msgstr ""
12398
12399 # type: textblock
12400 #. type: textblock
12401 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2149
12402 msgid ""
12403 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12404 "returned as an empty string C<\"\">."
12405 msgstr ""
12406
12407 # type: =item
12408 #. type: =item
12409 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2152
12410 msgid "C<app_source_package>"
12411 msgstr ""
12412
12413 # type: textblock
12414 #. type: textblock
12415 #: ../src/guestfs-actions.pod:3087 ../fish/guestfish-actions.pod:2154
12416 msgid ""
12417 "For packaging systems which support this, the name of the source package.  "
12418 "If unavailable this is returned as an empty string C<\"\">."
12419 msgstr ""
12420
12421 # type: =item
12422 #. type: =item
12423 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2157
12424 msgid "C<app_summary>"
12425 msgstr ""
12426
12427 # type: textblock
12428 #. type: textblock
12429 #: ../src/guestfs-actions.pod:3092 ../fish/guestfish-actions.pod:2159
12430 msgid ""
12431 "A short (usually one line) description of the application or package.  If "
12432 "unavailable this is returned as an empty string C<\"\">."
12433 msgstr ""
12434
12435 # type: =item
12436 #. type: =item
12437 #: ../src/guestfs-actions.pod:3095 ../fish/guestfish-actions.pod:2162
12438 msgid "C<app_description>"
12439 msgstr ""
12440
12441 # type: textblock
12442 #. type: textblock
12443 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2164
12444 msgid ""
12445 "A longer description of the application or package.  If unavailable this is "
12446 "returned as an empty string C<\"\">."
12447 msgstr ""
12448
12449 # type: textblock
12450 #. type: textblock
12451 #: ../src/guestfs-actions.pod:3104
12452 msgid ""
12453 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12454 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12455 "after use>."
12456 msgstr ""
12457
12458 # type: textblock
12459 #. type: textblock
12460 #: ../src/guestfs-actions.pod:3108
12461 msgid "(Added in 1.7.8)"
12462 msgstr ""
12463
12464 # type: =head2
12465 #. type: =head2
12466 #: ../src/guestfs-actions.pod:3110
12467 msgid "guestfs_inspect_os"
12468 msgstr ""
12469
12470 # type: verbatim
12471 #. type: verbatim
12472 #: ../src/guestfs-actions.pod:3112
12473 #, no-wrap
12474 msgid ""
12475 " char **\n"
12476 " guestfs_inspect_os (guestfs_h *g);\n"
12477 "\n"
12478 msgstr ""
12479
12480 # type: textblock
12481 #. type: textblock
12482 #: ../src/guestfs-actions.pod:3115 ../fish/guestfish-actions.pod:2175
12483 msgid ""
12484 "This function uses other libguestfs functions and certain heuristics to "
12485 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12486 "for operating systems."
12487 msgstr ""
12488
12489 # type: textblock
12490 #. type: textblock
12491 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2179
12492 msgid "The list returned is empty if no operating systems were found."
12493 msgstr ""
12494
12495 # type: textblock
12496 #. type: textblock
12497 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2181
12498 msgid ""
12499 "If one operating system was found, then this returns a list with a single "
12500 "element, which is the name of the root filesystem of this operating system.  "
12501 "It is also possible for this function to return a list containing more than "
12502 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12503 "element being the root filesystem of one of the operating systems."
12504 msgstr ""
12505
12506 # type: textblock
12507 #. type: textblock
12508 #: ../src/guestfs-actions.pod:3128
12509 msgid ""
12510 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12511 "functions in order to query further information about each operating system, "
12512 "such as the name and version."
12513 msgstr ""
12514
12515 # type: textblock
12516 #. type: textblock
12517 #: ../src/guestfs-actions.pod:3133
12518 msgid ""
12519 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12520 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12521 "the contents.  This should be called with no disks currently mounted.  The "
12522 "function may also use Augeas, so any existing Augeas handle will be closed."
12523 msgstr ""
12524
12525 # type: textblock
12526 #. type: textblock
12527 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2199
12528 msgid ""
12529 "This function cannot decrypt encrypted disks.  The caller must do that first "
12530 "(supplying the necessary keys) if the disk is encrypted."
12531 msgstr ""
12532
12533 # type: textblock
12534 #. type: textblock
12535 #: ../src/guestfs-actions.pod:3145 ../src/guestfs-actions.pod:3430
12536 #: ../src/guestfs-actions.pod:3492
12537 msgid "See also C<guestfs_list_filesystems>."
12538 msgstr ""
12539
12540 # type: =head2
12541 #. type: =head2
12542 #: ../src/guestfs-actions.pod:3153
12543 msgid "guestfs_is_blockdev"
12544 msgstr ""
12545
12546 # type: verbatim
12547 #. type: verbatim
12548 #: ../src/guestfs-actions.pod:3155
12549 #, no-wrap
12550 msgid ""
12551 " int\n"
12552 " guestfs_is_blockdev (guestfs_h *g,\n"
12553 "                      const char *path);\n"
12554 "\n"
12555 msgstr ""
12556
12557 # type: textblock
12558 #. type: textblock
12559 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2211
12560 msgid ""
12561 "This returns C<true> if and only if there is a block device with the given "
12562 "C<path> name."
12563 msgstr ""
12564
12565 # type: textblock
12566 #. type: textblock
12567 #: ../src/guestfs-actions.pod:3162 ../src/guestfs-actions.pod:3191
12568 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3236
12569 #: ../src/guestfs-actions.pod:3252 ../src/guestfs-actions.pod:3308
12570 #: ../src/guestfs-actions.pod:3323
12571 msgid "See also C<guestfs_stat>."
12572 msgstr ""
12573
12574 # type: textblock
12575 #. type: textblock
12576 #: ../src/guestfs-actions.pod:3166 ../src/guestfs-actions.pod:3195
12577 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3312
12578 #: ../src/guestfs-actions.pod:3327
12579 msgid "(Added in 1.5.10)"
12580 msgstr ""
12581
12582 # type: =head2
12583 #. type: =head2
12584 #: ../src/guestfs-actions.pod:3168
12585 msgid "guestfs_is_busy"
12586 msgstr ""
12587
12588 # type: verbatim
12589 #. type: verbatim
12590 #: ../src/guestfs-actions.pod:3170
12591 #, no-wrap
12592 msgid ""
12593 " int\n"
12594 " guestfs_is_busy (guestfs_h *g);\n"
12595 "\n"
12596 msgstr ""
12597
12598 # type: textblock
12599 #. type: textblock
12600 #: ../src/guestfs-actions.pod:3173 ../fish/guestfish-actions.pod:2220
12601 msgid ""
12602 "This returns true iff this handle is busy processing a command (in the "
12603 "C<BUSY> state)."
12604 msgstr ""
12605
12606 # type: =head2
12607 #. type: =head2
12608 #: ../src/guestfs-actions.pod:3182
12609 msgid "guestfs_is_chardev"
12610 msgstr ""
12611
12612 # type: verbatim
12613 #. type: verbatim
12614 #: ../src/guestfs-actions.pod:3184
12615 #, no-wrap
12616 msgid ""
12617 " int\n"
12618 " guestfs_is_chardev (guestfs_h *g,\n"
12619 "                     const char *path);\n"
12620 "\n"
12621 msgstr ""
12622
12623 # type: textblock
12624 #. type: textblock
12625 #: ../src/guestfs-actions.pod:3188 ../fish/guestfish-actions.pod:2229
12626 msgid ""
12627 "This returns C<true> if and only if there is a character device with the "
12628 "given C<path> name."
12629 msgstr ""
12630
12631 # type: =head2
12632 #. type: =head2
12633 #: ../src/guestfs-actions.pod:3197
12634 msgid "guestfs_is_config"
12635 msgstr ""
12636
12637 # type: verbatim
12638 #. type: verbatim
12639 #: ../src/guestfs-actions.pod:3199
12640 #, no-wrap
12641 msgid ""
12642 " int\n"
12643 " guestfs_is_config (guestfs_h *g);\n"
12644 "\n"
12645 msgstr ""
12646
12647 # type: textblock
12648 #. type: textblock
12649 #: ../src/guestfs-actions.pod:3202 ../fish/guestfish-actions.pod:2238
12650 msgid ""
12651 "This returns true iff this handle is being configured (in the C<CONFIG> "
12652 "state)."
12653 msgstr ""
12654
12655 # type: =head2
12656 #. type: =head2
12657 #: ../src/guestfs-actions.pod:3211
12658 msgid "guestfs_is_dir"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #. type: verbatim
12663 #: ../src/guestfs-actions.pod:3213
12664 #, no-wrap
12665 msgid ""
12666 " int\n"
12667 " guestfs_is_dir (guestfs_h *g,\n"
12668 "                 const char *path);\n"
12669 "\n"
12670 msgstr ""
12671
12672 # type: textblock
12673 #. type: textblock
12674 #: ../src/guestfs-actions.pod:3217 ../fish/guestfish-actions.pod:2247
12675 msgid ""
12676 "This returns C<true> if and only if there is a directory with the given "
12677 "C<path> name.  Note that it returns false for other objects like files."
12678 msgstr ""
12679
12680 # type: =head2
12681 #. type: =head2
12682 #: ../src/guestfs-actions.pod:3227
12683 msgid "guestfs_is_fifo"
12684 msgstr ""
12685
12686 # type: verbatim
12687 #. type: verbatim
12688 #: ../src/guestfs-actions.pod:3229
12689 #, no-wrap
12690 msgid ""
12691 " int\n"
12692 " guestfs_is_fifo (guestfs_h *g,\n"
12693 "                  const char *path);\n"
12694 "\n"
12695 msgstr ""
12696
12697 # type: textblock
12698 #. type: textblock
12699 #: ../src/guestfs-actions.pod:3233 ../fish/guestfish-actions.pod:2257
12700 msgid ""
12701 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12702 "given C<path> name."
12703 msgstr ""
12704
12705 # type: =head2
12706 #. type: =head2
12707 #: ../src/guestfs-actions.pod:3242
12708 msgid "guestfs_is_file"
12709 msgstr ""
12710
12711 # type: verbatim
12712 #. type: verbatim
12713 #: ../src/guestfs-actions.pod:3244
12714 #, no-wrap
12715 msgid ""
12716 " int\n"
12717 " guestfs_is_file (guestfs_h *g,\n"
12718 "                  const char *path);\n"
12719 "\n"
12720 msgstr ""
12721
12722 # type: textblock
12723 #. type: textblock
12724 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2266
12725 msgid ""
12726 "This returns C<true> if and only if there is a regular file with the given "
12727 "C<path> name.  Note that it returns false for other objects like directories."
12728 msgstr ""
12729
12730 # type: =head2
12731 #. type: =head2
12732 #: ../src/guestfs-actions.pod:3258
12733 msgid "guestfs_is_launching"
12734 msgstr ""
12735
12736 # type: verbatim
12737 #. type: verbatim
12738 #: ../src/guestfs-actions.pod:3260
12739 #, no-wrap
12740 msgid ""
12741 " int\n"
12742 " guestfs_is_launching (guestfs_h *g);\n"
12743 "\n"
12744 msgstr ""
12745
12746 # type: textblock
12747 #. type: textblock
12748 #: ../src/guestfs-actions.pod:3263 ../fish/guestfish-actions.pod:2276
12749 msgid ""
12750 "This returns true iff this handle is launching the subprocess (in the "
12751 "C<LAUNCHING> state)."
12752 msgstr ""
12753
12754 # type: =head2
12755 #. type: =head2
12756 #: ../src/guestfs-actions.pod:3272
12757 msgid "guestfs_is_lv"
12758 msgstr ""
12759
12760 # type: verbatim
12761 #. type: verbatim
12762 #: ../src/guestfs-actions.pod:3274
12763 #, no-wrap
12764 msgid ""
12765 " int\n"
12766 " guestfs_is_lv (guestfs_h *g,\n"
12767 "                const char *device);\n"
12768 "\n"
12769 msgstr ""
12770
12771 # type: textblock
12772 #. type: textblock
12773 #: ../src/guestfs-actions.pod:3278 ../fish/guestfish-actions.pod:2285
12774 msgid ""
12775 "This command tests whether C<device> is a logical volume, and returns true "
12776 "iff this is the case."
12777 msgstr ""
12778
12779 # type: =head2
12780 #. type: =head2
12781 #: ../src/guestfs-actions.pod:3285
12782 msgid "guestfs_is_ready"
12783 msgstr ""
12784
12785 # type: verbatim
12786 #. type: verbatim
12787 #: ../src/guestfs-actions.pod:3287
12788 #, no-wrap
12789 msgid ""
12790 " int\n"
12791 " guestfs_is_ready (guestfs_h *g);\n"
12792 "\n"
12793 msgstr ""
12794
12795 # type: textblock
12796 #. type: textblock
12797 #: ../src/guestfs-actions.pod:3290 ../fish/guestfish-actions.pod:2292
12798 msgid ""
12799 "This returns true iff this handle is ready to accept commands (in the "
12800 "C<READY> state)."
12801 msgstr ""
12802
12803 # type: =head2
12804 #. type: =head2
12805 #: ../src/guestfs-actions.pod:3299
12806 msgid "guestfs_is_socket"
12807 msgstr ""
12808
12809 # type: verbatim
12810 #. type: verbatim
12811 #: ../src/guestfs-actions.pod:3301
12812 #, no-wrap
12813 msgid ""
12814 " int\n"
12815 " guestfs_is_socket (guestfs_h *g,\n"
12816 "                    const char *path);\n"
12817 "\n"
12818 msgstr ""
12819
12820 # type: textblock
12821 #. type: textblock
12822 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2301
12823 msgid ""
12824 "This returns C<true> if and only if there is a Unix domain socket with the "
12825 "given C<path> name."
12826 msgstr ""
12827
12828 # type: =head2
12829 #. type: =head2
12830 #: ../src/guestfs-actions.pod:3314
12831 msgid "guestfs_is_symlink"
12832 msgstr ""
12833
12834 # type: verbatim
12835 #. type: verbatim
12836 #: ../src/guestfs-actions.pod:3316
12837 #, no-wrap
12838 msgid ""
12839 " int\n"
12840 " guestfs_is_symlink (guestfs_h *g,\n"
12841 "                     const char *path);\n"
12842 "\n"
12843 msgstr ""
12844
12845 # type: textblock
12846 #. type: textblock
12847 #: ../src/guestfs-actions.pod:3320 ../fish/guestfish-actions.pod:2310
12848 msgid ""
12849 "This returns C<true> if and only if there is a symbolic link with the given "
12850 "C<path> name."
12851 msgstr ""
12852
12853 # type: =head2
12854 #. type: =head2
12855 #: ../src/guestfs-actions.pod:3329
12856 msgid "guestfs_kill_subprocess"
12857 msgstr ""
12858
12859 # type: verbatim
12860 #. type: verbatim
12861 #: ../src/guestfs-actions.pod:3331
12862 #, no-wrap
12863 msgid ""
12864 " int\n"
12865 " guestfs_kill_subprocess (guestfs_h *g);\n"
12866 "\n"
12867 msgstr ""
12868
12869 # type: textblock
12870 #. type: textblock
12871 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2319
12872 msgid "This kills the qemu subprocess.  You should never need to call this."
12873 msgstr ""
12874
12875 # type: =head2
12876 #. type: =head2
12877 #: ../src/guestfs-actions.pod:3340
12878 msgid "guestfs_launch"
12879 msgstr ""
12880
12881 # type: verbatim
12882 #. type: verbatim
12883 #: ../src/guestfs-actions.pod:3342
12884 #, no-wrap
12885 msgid ""
12886 " int\n"
12887 " guestfs_launch (guestfs_h *g);\n"
12888 "\n"
12889 msgstr ""
12890
12891 # type: textblock
12892 #. type: textblock
12893 #: ../src/guestfs-actions.pod:3345 ../fish/guestfish-actions.pod:2327
12894 msgid ""
12895 "Internally libguestfs is implemented by running a virtual machine using "
12896 "L<qemu(1)>."
12897 msgstr ""
12898
12899 # type: textblock
12900 #. type: textblock
12901 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2330
12902 msgid ""
12903 "You should call this after configuring the handle (eg. adding drives) but "
12904 "before performing any actions."
12905 msgstr ""
12906
12907 # type: =head2
12908 #. type: =head2
12909 #: ../src/guestfs-actions.pod:3355
12910 msgid "guestfs_lchown"
12911 msgstr ""
12912
12913 # type: verbatim
12914 #. type: verbatim
12915 #: ../src/guestfs-actions.pod:3357
12916 #, no-wrap
12917 msgid ""
12918 " int\n"
12919 " guestfs_lchown (guestfs_h *g,\n"
12920 "                 int owner,\n"
12921 "                 int group,\n"
12922 "                 const char *path);\n"
12923 "\n"
12924 msgstr ""
12925
12926 # type: textblock
12927 #. type: textblock
12928 #: ../src/guestfs-actions.pod:3363
12929 msgid ""
12930 "Change the file owner to C<owner> and group to C<group>.  This is like "
12931 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12932 "changed, not the target."
12933 msgstr ""
12934
12935 # type: =head2
12936 #. type: =head2
12937 #: ../src/guestfs-actions.pod:3375
12938 msgid "guestfs_lgetxattr"
12939 msgstr ""
12940
12941 # type: verbatim
12942 #. type: verbatim
12943 #: ../src/guestfs-actions.pod:3377
12944 #, no-wrap
12945 msgid ""
12946 " char *\n"
12947 " guestfs_lgetxattr (guestfs_h *g,\n"
12948 "                    const char *path,\n"
12949 "                    const char *name,\n"
12950 "                    size_t *size_r);\n"
12951 "\n"
12952 msgstr ""
12953
12954 # type: textblock
12955 #. type: textblock
12956 #: ../src/guestfs-actions.pod:3383 ../fish/guestfish-actions.pod:2349
12957 msgid ""
12958 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12959 "is a symlink, then this call returns an extended attribute from the symlink."
12960 msgstr ""
12961
12962 # type: textblock
12963 #. type: textblock
12964 #: ../src/guestfs-actions.pod:3397
12965 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12966 msgstr ""
12967
12968 # type: =head2
12969 #. type: =head2
12970 #: ../src/guestfs-actions.pod:3405
12971 msgid "guestfs_lgetxattrs"
12972 msgstr ""
12973
12974 # type: verbatim
12975 #. type: verbatim
12976 #: ../src/guestfs-actions.pod:3407
12977 #, no-wrap
12978 msgid ""
12979 " struct guestfs_xattr_list *\n"
12980 " guestfs_lgetxattrs (guestfs_h *g,\n"
12981 "                     const char *path);\n"
12982 "\n"
12983 msgstr ""
12984
12985 # type: textblock
12986 #. type: textblock
12987 #: ../src/guestfs-actions.pod:3411
12988 msgid ""
12989 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12990 "then it returns the extended attributes of the link itself."
12991 msgstr ""
12992
12993 # type: =head2
12994 #. type: =head2
12995 #: ../src/guestfs-actions.pod:3421
12996 msgid "guestfs_list_devices"
12997 msgstr ""
12998
12999 # type: verbatim
13000 #. type: verbatim
13001 #: ../src/guestfs-actions.pod:3423
13002 #, no-wrap
13003 msgid ""
13004 " char **\n"
13005 " guestfs_list_devices (guestfs_h *g);\n"
13006 "\n"
13007 msgstr ""
13008
13009 # type: textblock
13010 #. type: textblock
13011 #: ../src/guestfs-actions.pod:3426 ../fish/guestfish-actions.pod:2377
13012 msgid "List all the block devices."
13013 msgstr ""
13014
13015 # type: textblock
13016 #. type: textblock
13017 #: ../src/guestfs-actions.pod:3428 ../fish/guestfish-actions.pod:2379
13018 msgid "The full block device names are returned, eg. C</dev/sda>."
13019 msgstr ""
13020
13021 # type: =head2
13022 #. type: =head2
13023 #: ../src/guestfs-actions.pod:3438
13024 msgid "guestfs_list_filesystems"
13025 msgstr ""
13026
13027 # type: verbatim
13028 #. type: verbatim
13029 #: ../src/guestfs-actions.pod:3440
13030 #, no-wrap
13031 msgid ""
13032 " char **\n"
13033 " guestfs_list_filesystems (guestfs_h *g);\n"
13034 "\n"
13035 msgstr ""
13036
13037 # type: textblock
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:3443 ../fish/guestfish-actions.pod:2387
13040 msgid ""
13041 "This inspection command looks for filesystems on partitions, block devices "
13042 "and logical volumes, returning a list of devices containing filesystems and "
13043 "their type."
13044 msgstr ""
13045
13046 # type: textblock
13047 #. type: textblock
13048 #: ../src/guestfs-actions.pod:3447 ../fish/guestfish-actions.pod:2391
13049 msgid ""
13050 "The return value is a hash, where the keys are the devices containing "
13051 "filesystems, and the values are the filesystem types.  For example:"
13052 msgstr ""
13053
13054 # type: verbatim
13055 #. type: verbatim
13056 #: ../src/guestfs-actions.pod:3451 ../fish/guestfish-actions.pod:2395
13057 #, no-wrap
13058 msgid ""
13059 " \"/dev/sda1\" => \"ntfs\"\n"
13060 " \"/dev/sda2\" => \"ext2\"\n"
13061 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13062 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13063 "\n"
13064 msgstr ""
13065
13066 # type: textblock
13067 #. type: textblock
13068 #: ../src/guestfs-actions.pod:3456 ../fish/guestfish-actions.pod:2400
13069 msgid ""
13070 "The value can have the special value \"unknown\", meaning the content of the "
13071 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13072 msgstr ""
13073
13074 # type: textblock
13075 #. type: textblock
13076 #: ../src/guestfs-actions.pod:3460
13077 msgid ""
13078 "This command runs other libguestfs commands, which might include "
13079 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13080 "soon after launch and only when nothing is mounted."
13081 msgstr ""
13082
13083 # type: textblock
13084 #. type: textblock
13085 #: ../src/guestfs-actions.pod:3464
13086 msgid ""
13087 "Not all of the filesystems returned will be mountable.  In particular, swap "
13088 "partitions are returned in the list.  Also this command does not check that "
13089 "each filesystem found is valid and mountable, and some filesystems might be "
13090 "mountable but require special options.  Filesystems may not all belong to a "
13091 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13092 msgstr ""
13093
13094 # type: textblock
13095 #. type: textblock
13096 #: ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:5083
13097 msgid "(Added in 1.5.15)"
13098 msgstr ""
13099
13100 # type: =head2
13101 #. type: =head2
13102 #: ../src/guestfs-actions.pod:3480
13103 msgid "guestfs_list_partitions"
13104 msgstr ""
13105
13106 # type: verbatim
13107 #. type: verbatim
13108 #: ../src/guestfs-actions.pod:3482
13109 #, no-wrap
13110 msgid ""
13111 " char **\n"
13112 " guestfs_list_partitions (guestfs_h *g);\n"
13113 "\n"
13114 msgstr ""
13115
13116 # type: textblock
13117 #. type: textblock
13118 #: ../src/guestfs-actions.pod:3485 ../fish/guestfish-actions.pod:2420
13119 msgid "List all the partitions detected on all block devices."
13120 msgstr ""
13121
13122 # type: textblock
13123 #. type: textblock
13124 #: ../src/guestfs-actions.pod:3487 ../fish/guestfish-actions.pod:2422
13125 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13126 msgstr ""
13127
13128 # type: textblock
13129 #. type: textblock
13130 #: ../src/guestfs-actions.pod:3489
13131 msgid ""
13132 "This does not return logical volumes.  For that you will need to call "
13133 "C<guestfs_lvs>."
13134 msgstr ""
13135
13136 # type: =head2
13137 #. type: =head2
13138 #: ../src/guestfs-actions.pod:3500
13139 msgid "guestfs_ll"
13140 msgstr ""
13141
13142 # type: verbatim
13143 #. type: verbatim
13144 #: ../src/guestfs-actions.pod:3502
13145 #, no-wrap
13146 msgid ""
13147 " char *\n"
13148 " guestfs_ll (guestfs_h *g,\n"
13149 "             const char *directory);\n"
13150 "\n"
13151 msgstr ""
13152
13153 # type: textblock
13154 #. type: textblock
13155 #: ../src/guestfs-actions.pod:3506 ../fish/guestfish-actions.pod:2433
13156 msgid ""
13157 "List the files in C<directory> (relative to the root directory, there is no "
13158 "cwd) in the format of 'ls -la'."
13159 msgstr ""
13160
13161 # type: textblock
13162 #. type: textblock
13163 #: ../src/guestfs-actions.pod:3509 ../fish/guestfish-actions.pod:2436
13164 msgid ""
13165 "This command is mostly useful for interactive sessions.  It is I<not> "
13166 "intended that you try to parse the output string."
13167 msgstr ""
13168
13169 # type: =head2
13170 #. type: =head2
13171 #: ../src/guestfs-actions.pod:3517
13172 msgid "guestfs_ln"
13173 msgstr ""
13174
13175 # type: verbatim
13176 #. type: verbatim
13177 #: ../src/guestfs-actions.pod:3519
13178 #, no-wrap
13179 msgid ""
13180 " int\n"
13181 " guestfs_ln (guestfs_h *g,\n"
13182 "             const char *target,\n"
13183 "             const char *linkname);\n"
13184 "\n"
13185 msgstr ""
13186
13187 # type: textblock
13188 #. type: textblock
13189 #: ../src/guestfs-actions.pod:3524 ../fish/guestfish-actions.pod:2443
13190 msgid "This command creates a hard link using the C<ln> command."
13191 msgstr ""
13192
13193 # type: =head2
13194 #. type: =head2
13195 #: ../src/guestfs-actions.pod:3530
13196 msgid "guestfs_ln_f"
13197 msgstr ""
13198
13199 # type: verbatim
13200 #. type: verbatim
13201 #: ../src/guestfs-actions.pod:3532
13202 #, no-wrap
13203 msgid ""
13204 " int\n"
13205 " guestfs_ln_f (guestfs_h *g,\n"
13206 "               const char *target,\n"
13207 "               const char *linkname);\n"
13208 "\n"
13209 msgstr ""
13210
13211 # type: textblock
13212 #. type: textblock
13213 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2449
13214 msgid ""
13215 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
13216 "option removes the link (C<linkname>) if it exists already."
13217 msgstr ""
13218
13219 # type: =head2
13220 #. type: =head2
13221 #: ../src/guestfs-actions.pod:3544
13222 msgid "guestfs_ln_s"
13223 msgstr ""
13224
13225 # type: verbatim
13226 #. type: verbatim
13227 #: ../src/guestfs-actions.pod:3546
13228 #, no-wrap
13229 msgid ""
13230 " int\n"
13231 " guestfs_ln_s (guestfs_h *g,\n"
13232 "               const char *target,\n"
13233 "               const char *linkname);\n"
13234 "\n"
13235 msgstr ""
13236
13237 # type: textblock
13238 #. type: textblock
13239 #: ../src/guestfs-actions.pod:3551 ../fish/guestfish-actions.pod:2456
13240 msgid "This command creates a symbolic link using the C<ln -s> command."
13241 msgstr ""
13242
13243 # type: =head2
13244 #. type: =head2
13245 #: ../src/guestfs-actions.pod:3557
13246 msgid "guestfs_ln_sf"
13247 msgstr ""
13248
13249 # type: verbatim
13250 #. type: verbatim
13251 #: ../src/guestfs-actions.pod:3559
13252 #, no-wrap
13253 msgid ""
13254 " int\n"
13255 " guestfs_ln_sf (guestfs_h *g,\n"
13256 "                const char *target,\n"
13257 "                const char *linkname);\n"
13258 "\n"
13259 msgstr ""
13260
13261 # type: textblock
13262 #. type: textblock
13263 #: ../src/guestfs-actions.pod:3564 ../fish/guestfish-actions.pod:2462
13264 msgid ""
13265 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
13266 "option removes the link (C<linkname>) if it exists already."
13267 msgstr ""
13268
13269 # type: =head2
13270 #. type: =head2
13271 #: ../src/guestfs-actions.pod:3571
13272 msgid "guestfs_lremovexattr"
13273 msgstr ""
13274
13275 # type: verbatim
13276 #. type: verbatim
13277 #: ../src/guestfs-actions.pod:3573
13278 #, no-wrap
13279 msgid ""
13280 " int\n"
13281 " guestfs_lremovexattr (guestfs_h *g,\n"
13282 "                       const char *xattr,\n"
13283 "                       const char *path);\n"
13284 "\n"
13285 msgstr ""
13286
13287 # type: textblock
13288 #. type: textblock
13289 #: ../src/guestfs-actions.pod:3578
13290 msgid ""
13291 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13292 "link, then it removes an extended attribute of the link itself."
13293 msgstr ""
13294
13295 # type: =head2
13296 #. type: =head2
13297 #: ../src/guestfs-actions.pod:3586
13298 msgid "guestfs_ls"
13299 msgstr ""
13300
13301 # type: verbatim
13302 #. type: verbatim
13303 #: ../src/guestfs-actions.pod:3588
13304 #, no-wrap
13305 msgid ""
13306 " char **\n"
13307 " guestfs_ls (guestfs_h *g,\n"
13308 "             const char *directory);\n"
13309 "\n"
13310 msgstr ""
13311
13312 # type: textblock
13313 #. type: textblock
13314 #: ../src/guestfs-actions.pod:3592 ../fish/guestfish-actions.pod:2477
13315 msgid ""
13316 "List the files in C<directory> (relative to the root directory, there is no "
13317 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13318 msgstr ""
13319
13320 # type: textblock
13321 #. type: textblock
13322 #: ../src/guestfs-actions.pod:3596
13323 msgid ""
13324 "This command is mostly useful for interactive sessions.  Programs should "
13325 "probably use C<guestfs_readdir> instead."
13326 msgstr ""
13327
13328 # type: =head2
13329 #. type: =head2
13330 #: ../src/guestfs-actions.pod:3605
13331 msgid "guestfs_lsetxattr"
13332 msgstr ""
13333
13334 # type: verbatim
13335 #. type: verbatim
13336 #: ../src/guestfs-actions.pod:3607
13337 #, no-wrap
13338 msgid ""
13339 " int\n"
13340 " guestfs_lsetxattr (guestfs_h *g,\n"
13341 "                    const char *xattr,\n"
13342 "                    const char *val,\n"
13343 "                    int vallen,\n"
13344 "                    const char *path);\n"
13345 "\n"
13346 msgstr ""
13347
13348 # type: textblock
13349 #. type: textblock
13350 #: ../src/guestfs-actions.pod:3614
13351 msgid ""
13352 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13353 "then it sets an extended attribute of the link itself."
13354 msgstr ""
13355
13356 # type: =head2
13357 #. type: =head2
13358 #: ../src/guestfs-actions.pod:3622
13359 msgid "guestfs_lstat"
13360 msgstr ""
13361
13362 # type: verbatim
13363 #. type: verbatim
13364 #: ../src/guestfs-actions.pod:3624
13365 #, no-wrap
13366 msgid ""
13367 " struct guestfs_stat *\n"
13368 " guestfs_lstat (guestfs_h *g,\n"
13369 "                const char *path);\n"
13370 "\n"
13371 msgstr ""
13372
13373 # type: textblock
13374 #. type: textblock
13375 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:6186
13376 #: ../fish/guestfish-actions.pod:2496 ../fish/guestfish-actions.pod:4165
13377 msgid "Returns file information for the given C<path>."
13378 msgstr ""
13379
13380 # type: textblock
13381 #. type: textblock
13382 #: ../src/guestfs-actions.pod:3630
13383 msgid ""
13384 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13385 "link, then the link is stat-ed, not the file it refers to."
13386 msgstr ""
13387
13388 # type: textblock
13389 #. type: textblock
13390 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2502
13391 msgid "This is the same as the C<lstat(2)> system call."
13392 msgstr ""
13393
13394 # type: textblock
13395 #. type: textblock
13396 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:6190
13397 msgid ""
13398 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13399 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13400 msgstr ""
13401
13402 # type: textblock
13403 #. type: textblock
13404 #: ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:6194
13405 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6593
13406 msgid "(Added in 0.9.2)"
13407 msgstr ""
13408
13409 # type: =head2
13410 #. type: =head2
13411 #: ../src/guestfs-actions.pod:3642
13412 msgid "guestfs_lstatlist"
13413 msgstr ""
13414
13415 # type: verbatim
13416 #. type: verbatim
13417 #: ../src/guestfs-actions.pod:3644
13418 #, no-wrap
13419 msgid ""
13420 " struct guestfs_stat_list *\n"
13421 " guestfs_lstatlist (guestfs_h *g,\n"
13422 "                    const char *path,\n"
13423 "                    char *const *names);\n"
13424 "\n"
13425 msgstr ""
13426
13427 # type: textblock
13428 #. type: textblock
13429 #: ../src/guestfs-actions.pod:3649
13430 msgid ""
13431 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13432 "files, where all files are in the directory C<path>.  C<names> is the list "
13433 "of files from this directory."
13434 msgstr ""
13435
13436 # type: textblock
13437 #. type: textblock
13438 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2512
13439 msgid ""
13440 "On return you get a list of stat structs, with a one-to-one correspondence "
13441 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13442 "then the C<ino> field of that structure is set to C<-1>."
13443 msgstr ""
13444
13445 # type: textblock
13446 #. type: textblock
13447 #: ../src/guestfs-actions.pod:3658
13448 msgid ""
13449 "This call is intended for programs that want to efficiently list a directory "
13450 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13451 "for a similarly efficient call for getting extended attributes.  Very long "
13452 "directory listings might cause the protocol message size to be exceeded, "
13453 "causing this call to fail.  The caller must split up such requests into "
13454 "smaller groups of names."
13455 msgstr ""
13456
13457 # type: textblock
13458 #. type: textblock
13459 #: ../src/guestfs-actions.pod:3666
13460 msgid ""
13461 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13462 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13463 msgstr ""
13464
13465 # type: =head2
13466 #. type: =head2
13467 #: ../src/guestfs-actions.pod:3672
13468 msgid "guestfs_luks_add_key"
13469 msgstr ""
13470
13471 # type: verbatim
13472 #. type: verbatim
13473 #: ../src/guestfs-actions.pod:3674
13474 #, no-wrap
13475 msgid ""
13476 " int\n"
13477 " guestfs_luks_add_key (guestfs_h *g,\n"
13478 "                       const char *device,\n"
13479 "                       const char *key,\n"
13480 "                       const char *newkey,\n"
13481 "                       int keyslot);\n"
13482 "\n"
13483 msgstr ""
13484
13485 # type: textblock
13486 #. type: textblock
13487 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2529
13488 msgid ""
13489 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13490 "existing key, and is used to access the device.  C<newkey> is the new key to "
13491 "add.  C<keyslot> is the key slot that will be replaced."
13492 msgstr ""
13493
13494 # type: textblock
13495 #. type: textblock
13496 #: ../src/guestfs-actions.pod:3686
13497 msgid ""
13498 "Note that if C<keyslot> already contains a key, then this command will "
13499 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13500 msgstr ""
13501
13502 # type: textblock
13503 #. type: textblock
13504 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3732
13505 #: ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3775
13506 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:3826
13507 msgid ""
13508 "This function takes a key or passphrase parameter which could contain "
13509 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13510 "information."
13511 msgstr ""
13512
13513 # type: textblock
13514 #. type: textblock
13515 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3736
13516 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3779
13517 msgid "(Added in 1.5.2)"
13518 msgstr ""
13519
13520 # type: =head2
13521 #. type: =head2
13522 #: ../src/guestfs-actions.pod:3698
13523 msgid "guestfs_luks_close"
13524 msgstr ""
13525
13526 # type: verbatim
13527 #. type: verbatim
13528 #: ../src/guestfs-actions.pod:3700
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_luks_close (guestfs_h *g,\n"
13533 "                     const char *device);\n"
13534 "\n"
13535 msgstr ""
13536
13537 # type: textblock
13538 #. type: textblock
13539 #: ../src/guestfs-actions.pod:3704
13540 msgid ""
13541 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13542 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13543 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13544 "underlying block device."
13545 msgstr ""
13546
13547 # type: textblock
13548 #. type: textblock
13549 #: ../src/guestfs-actions.pod:3712 ../src/guestfs-actions.pod:3811
13550 #: ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:3880
13551 #: ../src/guestfs-actions.pod:3928
13552 msgid "(Added in 1.5.1)"
13553 msgstr ""
13554
13555 # type: =head2
13556 #. type: =head2
13557 #: ../src/guestfs-actions.pod:3714
13558 msgid "guestfs_luks_format"
13559 msgstr ""
13560
13561 # type: verbatim
13562 #. type: verbatim
13563 #: ../src/guestfs-actions.pod:3716
13564 #, no-wrap
13565 msgid ""
13566 " int\n"
13567 " guestfs_luks_format (guestfs_h *g,\n"
13568 "                      const char *device,\n"
13569 "                      const char *key,\n"
13570 "                      int keyslot);\n"
13571 "\n"
13572 msgstr ""
13573
13574 # type: textblock
13575 #. type: textblock
13576 #: ../src/guestfs-actions.pod:3722 ../fish/guestfish-actions.pod:2555
13577 msgid ""
13578 "This command erases existing data on C<device> and formats the device as a "
13579 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13580 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13581 msgstr ""
13582
13583 # type: textblock
13584 #. type: textblock
13585 #: ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3752
13586 #: ../src/guestfs-actions.pod:3892 ../src/guestfs-actions.pod:4834
13587 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:6021
13588 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6070
13589 #: ../src/guestfs-actions.pod:7230 ../fish/guestfish-actions.pod:2563
13590 #: ../fish/guestfish-actions.pod:2576 ../fish/guestfish-actions.pod:2660
13591 #: ../fish/guestfish-actions.pod:3234 ../fish/guestfish-actions.pod:3754
13592 #: ../fish/guestfish-actions.pod:4064 ../fish/guestfish-actions.pod:4080
13593 #: ../fish/guestfish-actions.pod:4095 ../fish/guestfish-actions.pod:4810
13594 msgid ""
13595 "B<This command is dangerous.  Without careful use you can easily destroy all "
13596 "your data>."
13597 msgstr ""
13598
13599 # type: =head2
13600 #. type: =head2
13601 #: ../src/guestfs-actions.pod:3738
13602 msgid "guestfs_luks_format_cipher"
13603 msgstr ""
13604
13605 # type: verbatim
13606 #. type: verbatim
13607 #: ../src/guestfs-actions.pod:3740
13608 #, no-wrap
13609 msgid ""
13610 " int\n"
13611 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13612 "                             const char *device,\n"
13613 "                             const char *key,\n"
13614 "                             int keyslot,\n"
13615 "                             const char *cipher);\n"
13616 "\n"
13617 msgstr ""
13618
13619 # type: textblock
13620 #. type: textblock
13621 #: ../src/guestfs-actions.pod:3747
13622 msgid ""
13623 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13624 "set the C<cipher> used."
13625 msgstr ""
13626
13627 # type: =head2
13628 #. type: =head2
13629 #: ../src/guestfs-actions.pod:3761
13630 msgid "guestfs_luks_kill_slot"
13631 msgstr ""
13632
13633 # type: verbatim
13634 #. type: verbatim
13635 #: ../src/guestfs-actions.pod:3763
13636 #, no-wrap
13637 msgid ""
13638 " int\n"
13639 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13640 "                         const char *device,\n"
13641 "                         const char *key,\n"
13642 "                         int keyslot);\n"
13643 "\n"
13644 msgstr ""
13645
13646 # type: textblock
13647 #. type: textblock
13648 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2583
13649 msgid ""
13650 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13651 "device C<device>.  C<key> must be one of the I<other> keys."
13652 msgstr ""
13653
13654 # type: =head2
13655 #. type: =head2
13656 #: ../src/guestfs-actions.pod:3781
13657 msgid "guestfs_luks_open"
13658 msgstr ""
13659
13660 # type: verbatim
13661 #. type: verbatim
13662 #: ../src/guestfs-actions.pod:3783
13663 #, no-wrap
13664 msgid ""
13665 " int\n"
13666 " guestfs_luks_open (guestfs_h *g,\n"
13667 "                    const char *device,\n"
13668 "                    const char *key,\n"
13669 "                    const char *mapname);\n"
13670 "\n"
13671 msgstr ""
13672
13673 # type: textblock
13674 #. type: textblock
13675 #: ../src/guestfs-actions.pod:3789 ../fish/guestfish-actions.pod:2594
13676 msgid ""
13677 "This command opens a block device which has been encrypted according to the "
13678 "Linux Unified Key Setup (LUKS) standard."
13679 msgstr ""
13680
13681 # type: textblock
13682 #. type: textblock
13683 #: ../src/guestfs-actions.pod:3792 ../fish/guestfish-actions.pod:2597
13684 msgid "C<device> is the encrypted block device or partition."
13685 msgstr ""
13686
13687 # type: textblock
13688 #. type: textblock
13689 #: ../src/guestfs-actions.pod:3794 ../fish/guestfish-actions.pod:2599
13690 msgid ""
13691 "The caller must supply one of the keys associated with the LUKS block "
13692 "device, in the C<key> parameter."
13693 msgstr ""
13694
13695 # type: textblock
13696 #. type: textblock
13697 #: ../src/guestfs-actions.pod:3797 ../fish/guestfish-actions.pod:2602
13698 msgid ""
13699 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13700 "writes to this block device are decrypted from and encrypted to the "
13701 "underlying C<device> respectively."
13702 msgstr ""
13703
13704 # type: textblock
13705 #. type: textblock
13706 #: ../src/guestfs-actions.pod:3801
13707 msgid ""
13708 "If this block device contains LVM volume groups, then calling "
13709 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13710 "visible."
13711 msgstr ""
13712
13713 # type: =head2
13714 #. type: =head2
13715 #: ../src/guestfs-actions.pod:3813
13716 msgid "guestfs_luks_open_ro"
13717 msgstr ""
13718
13719 # type: verbatim
13720 #. type: verbatim
13721 #: ../src/guestfs-actions.pod:3815
13722 #, no-wrap
13723 msgid ""
13724 " int\n"
13725 " guestfs_luks_open_ro (guestfs_h *g,\n"
13726 "                       const char *device,\n"
13727 "                       const char *key,\n"
13728 "                       const char *mapname);\n"
13729 "\n"
13730 msgstr ""
13731
13732 # type: textblock
13733 #. type: textblock
13734 #: ../src/guestfs-actions.pod:3821
13735 msgid ""
13736 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13737 "created."
13738 msgstr ""
13739
13740 # type: =head2
13741 #. type: =head2
13742 #: ../src/guestfs-actions.pod:3832
13743 msgid "guestfs_lvcreate"
13744 msgstr ""
13745
13746 # type: verbatim
13747 #. type: verbatim
13748 #: ../src/guestfs-actions.pod:3834
13749 #, no-wrap
13750 msgid ""
13751 " int\n"
13752 " guestfs_lvcreate (guestfs_h *g,\n"
13753 "                   const char *logvol,\n"
13754 "                   const char *volgroup,\n"
13755 "                   int mbytes);\n"
13756 "\n"
13757 msgstr ""
13758
13759 # type: textblock
13760 #. type: textblock
13761 #: ../src/guestfs-actions.pod:3840 ../fish/guestfish-actions.pod:2627
13762 msgid ""
13763 "This creates an LVM logical volume called C<logvol> on the volume group "
13764 "C<volgroup>, with C<size> megabytes."
13765 msgstr ""
13766
13767 # type: =head2
13768 #. type: =head2
13769 #: ../src/guestfs-actions.pod:3847
13770 msgid "guestfs_lvm_canonical_lv_name"
13771 msgstr ""
13772
13773 # type: verbatim
13774 #. type: verbatim
13775 #: ../src/guestfs-actions.pod:3849
13776 #, no-wrap
13777 msgid ""
13778 " char *\n"
13779 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13780 "                                const char *lvname);\n"
13781 "\n"
13782 msgstr ""
13783
13784 # type: textblock
13785 #. type: textblock
13786 #: ../src/guestfs-actions.pod:3853 ../fish/guestfish-actions.pod:2634
13787 msgid ""
13788 "This converts alternative naming schemes for LVs that you might find to the "
13789 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13790 "LV>."
13791 msgstr ""
13792
13793 # type: textblock
13794 #. type: textblock
13795 #: ../src/guestfs-actions.pod:3857 ../fish/guestfish-actions.pod:2638
13796 msgid ""
13797 "This command returns an error if the C<lvname> parameter does not refer to a "
13798 "logical volume."
13799 msgstr ""
13800
13801 # type: textblock
13802 #. type: textblock
13803 #: ../src/guestfs-actions.pod:3860
13804 msgid "See also C<guestfs_is_lv>."
13805 msgstr ""
13806
13807 # type: textblock
13808 #. type: textblock
13809 #: ../src/guestfs-actions.pod:3865
13810 msgid "(Added in 1.5.24)"
13811 msgstr ""
13812
13813 # type: =head2
13814 #. type: =head2
13815 #: ../src/guestfs-actions.pod:3867
13816 msgid "guestfs_lvm_clear_filter"
13817 msgstr ""
13818
13819 # type: verbatim
13820 #. type: verbatim
13821 #: ../src/guestfs-actions.pod:3869
13822 #, no-wrap
13823 msgid ""
13824 " int\n"
13825 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13826 "\n"
13827 msgstr ""
13828
13829 # type: textblock
13830 #. type: textblock
13831 #: ../src/guestfs-actions.pod:3872
13832 msgid ""
13833 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13834 "see every block device."
13835 msgstr ""
13836
13837 # type: textblock
13838 #. type: textblock
13839 #: ../src/guestfs-actions.pod:3875 ../src/guestfs-actions.pod:3917
13840 #: ../fish/guestfish-actions.pod:2650 ../fish/guestfish-actions.pod:2681
13841 msgid ""
13842 "This command also clears the LVM cache and performs a volume group scan."
13843 msgstr ""
13844
13845 # type: =head2
13846 #. type: =head2
13847 #: ../src/guestfs-actions.pod:3882
13848 msgid "guestfs_lvm_remove_all"
13849 msgstr ""
13850
13851 # type: verbatim
13852 #. type: verbatim
13853 #: ../src/guestfs-actions.pod:3884
13854 #, no-wrap
13855 msgid ""
13856 " int\n"
13857 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13858 "\n"
13859 msgstr ""
13860
13861 # type: textblock
13862 #. type: textblock
13863 #: ../src/guestfs-actions.pod:3887 ../fish/guestfish-actions.pod:2657
13864 msgid ""
13865 "This command removes all LVM logical volumes, volume groups and physical "
13866 "volumes."
13867 msgstr ""
13868
13869 # type: =head2
13870 #. type: =head2
13871 #: ../src/guestfs-actions.pod:3897
13872 msgid "guestfs_lvm_set_filter"
13873 msgstr ""
13874
13875 # type: verbatim
13876 #. type: verbatim
13877 #: ../src/guestfs-actions.pod:3899
13878 #, no-wrap
13879 msgid ""
13880 " int\n"
13881 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13882 "                         char *const *devices);\n"
13883 "\n"
13884 msgstr ""
13885
13886 # type: textblock
13887 #. type: textblock
13888 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:2667
13889 msgid ""
13890 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13891 "block devices in the list C<devices>, and will ignore all other attached "
13892 "block devices."
13893 msgstr ""
13894
13895 # type: textblock
13896 #. type: textblock
13897 #: ../src/guestfs-actions.pod:3907 ../fish/guestfish-actions.pod:2671
13898 msgid ""
13899 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13900 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13901 "there are two types of duplication possible: either cloned PVs/VGs which "
13902 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13903 "same name.  In normal operation you cannot create this situation, but you "
13904 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13905 "inside the LVM metadata."
13906 msgstr ""
13907
13908 # type: textblock
13909 #. type: textblock
13910 #: ../src/guestfs-actions.pod:3920 ../fish/guestfish-actions.pod:2684
13911 msgid "You can filter whole block devices or individual partitions."
13912 msgstr ""
13913
13914 # type: textblock
13915 #. type: textblock
13916 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2686
13917 msgid ""
13918 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13919 "filesystem), even if you are not filtering out that VG."
13920 msgstr ""
13921
13922 # type: =head2
13923 #. type: =head2
13924 #: ../src/guestfs-actions.pod:3930
13925 msgid "guestfs_lvremove"
13926 msgstr ""
13927
13928 # type: verbatim
13929 #. type: verbatim
13930 #: ../src/guestfs-actions.pod:3932
13931 #, no-wrap
13932 msgid ""
13933 " int\n"
13934 " guestfs_lvremove (guestfs_h *g,\n"
13935 "                   const char *device);\n"
13936 "\n"
13937 msgstr ""
13938
13939 # type: textblock
13940 #. type: textblock
13941 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2694
13942 msgid ""
13943 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13944 "LV, such as C</dev/VG/LV>."
13945 msgstr ""
13946
13947 # type: textblock
13948 #. type: textblock
13949 #: ../src/guestfs-actions.pod:3939 ../fish/guestfish-actions.pod:2697
13950 msgid ""
13951 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13952 "dev/VG>."
13953 msgstr ""
13954
13955 # type: textblock
13956 #. type: textblock
13957 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:5180
13958 #: ../src/guestfs-actions.pod:6969
13959 msgid "(Added in 1.0.13)"
13960 msgstr ""
13961
13962 # type: =head2
13963 #. type: =head2
13964 #: ../src/guestfs-actions.pod:3946
13965 msgid "guestfs_lvrename"
13966 msgstr ""
13967
13968 # type: verbatim
13969 #. type: verbatim
13970 #: ../src/guestfs-actions.pod:3948
13971 #, no-wrap
13972 msgid ""
13973 " int\n"
13974 " guestfs_lvrename (guestfs_h *g,\n"
13975 "                   const char *logvol,\n"
13976 "                   const char *newlogvol);\n"
13977 "\n"
13978 msgstr ""
13979
13980 # type: textblock
13981 #. type: textblock
13982 #: ../src/guestfs-actions.pod:3953 ../fish/guestfish-actions.pod:2704
13983 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13984 msgstr ""
13985
13986 # type: textblock
13987 #. type: textblock
13988 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6982
13989 msgid "(Added in 1.0.83)"
13990 msgstr ""
13991
13992 # type: =head2
13993 #. type: =head2
13994 #: ../src/guestfs-actions.pod:3959
13995 msgid "guestfs_lvresize"
13996 msgstr ""
13997
13998 # type: verbatim
13999 #. type: verbatim
14000 #: ../src/guestfs-actions.pod:3961
14001 #, no-wrap
14002 msgid ""
14003 " int\n"
14004 " guestfs_lvresize (guestfs_h *g,\n"
14005 "                   const char *device,\n"
14006 "                   int mbytes);\n"
14007 "\n"
14008 msgstr ""
14009
14010 # type: textblock
14011 #. type: textblock
14012 #: ../src/guestfs-actions.pod:3966 ../fish/guestfish-actions.pod:2710
14013 msgid ""
14014 "This resizes (expands or shrinks) an existing LVM logical volume to "
14015 "C<mbytes>.  When reducing, data in the reduced part is lost."
14016 msgstr ""
14017
14018 # type: =head2
14019 #. type: =head2
14020 #: ../src/guestfs-actions.pod:3974
14021 msgid "guestfs_lvresize_free"
14022 msgstr ""
14023
14024 # type: verbatim
14025 #. type: verbatim
14026 #: ../src/guestfs-actions.pod:3976
14027 #, no-wrap
14028 msgid ""
14029 " int\n"
14030 " guestfs_lvresize_free (guestfs_h *g,\n"
14031 "                        const char *lv,\n"
14032 "                        int percent);\n"
14033 "\n"
14034 msgstr ""
14035
14036 # type: textblock
14037 #. type: textblock
14038 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2718
14039 msgid ""
14040 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14041 "remaining free space in the volume group.  Commonly you would call this with "
14042 "pc = 100 which expands the logical volume as much as possible, using all "
14043 "remaining free space in the volume group."
14044 msgstr ""
14045
14046 # type: textblock
14047 #. type: textblock
14048 #: ../src/guestfs-actions.pod:3989
14049 msgid "(Added in 1.3.3)"
14050 msgstr ""
14051
14052 # type: =head2
14053 #. type: =head2
14054 #: ../src/guestfs-actions.pod:3991
14055 msgid "guestfs_lvs"
14056 msgstr ""
14057
14058 # type: verbatim
14059 #. type: verbatim
14060 #: ../src/guestfs-actions.pod:3993
14061 #, no-wrap
14062 msgid ""
14063 " char **\n"
14064 " guestfs_lvs (guestfs_h *g);\n"
14065 "\n"
14066 msgstr ""
14067
14068 # type: textblock
14069 #. type: textblock
14070 #: ../src/guestfs-actions.pod:3996 ../fish/guestfish-actions.pod:2728
14071 msgid ""
14072 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14073 "(8)> command."
14074 msgstr ""
14075
14076 # type: textblock
14077 #. type: textblock
14078 #: ../src/guestfs-actions.pod:3999 ../fish/guestfish-actions.pod:2731
14079 msgid ""
14080 "This returns a list of the logical volume device names (eg. C</dev/"
14081 "VolGroup00/LogVol00>)."
14082 msgstr ""
14083
14084 # type: textblock
14085 #. type: textblock
14086 #: ../src/guestfs-actions.pod:4002
14087 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14088 msgstr ""
14089
14090 # type: =head2
14091 #. type: =head2
14092 #: ../src/guestfs-actions.pod:4010
14093 msgid "guestfs_lvs_full"
14094 msgstr ""
14095
14096 # type: verbatim
14097 #. type: verbatim
14098 #: ../src/guestfs-actions.pod:4012
14099 #, no-wrap
14100 msgid ""
14101 " struct guestfs_lvm_lv_list *\n"
14102 " guestfs_lvs_full (guestfs_h *g);\n"
14103 "\n"
14104 msgstr ""
14105
14106 # type: textblock
14107 #. type: textblock
14108 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2740
14109 msgid ""
14110 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14111 "(8)> command.  The \"full\" version includes all fields."
14112 msgstr ""
14113
14114 # type: textblock
14115 #. type: textblock
14116 #: ../src/guestfs-actions.pod:4018
14117 msgid ""
14118 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14119 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14120 msgstr ""
14121
14122 # type: =head2
14123 #. type: =head2
14124 #: ../src/guestfs-actions.pod:4024
14125 msgid "guestfs_lvuuid"
14126 msgstr ""
14127
14128 # type: verbatim
14129 #. type: verbatim
14130 #: ../src/guestfs-actions.pod:4026
14131 #, no-wrap
14132 msgid ""
14133 " char *\n"
14134 " guestfs_lvuuid (guestfs_h *g,\n"
14135 "                 const char *device);\n"
14136 "\n"
14137 msgstr ""
14138
14139 # type: textblock
14140 #. type: textblock
14141 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2747
14142 msgid "This command returns the UUID of the LVM LV C<device>."
14143 msgstr ""
14144
14145 # type: =head2
14146 #. type: =head2
14147 #: ../src/guestfs-actions.pod:4037
14148 msgid "guestfs_lxattrlist"
14149 msgstr ""
14150
14151 # type: verbatim
14152 #. type: verbatim
14153 #: ../src/guestfs-actions.pod:4039
14154 #, no-wrap
14155 msgid ""
14156 " struct guestfs_xattr_list *\n"
14157 " guestfs_lxattrlist (guestfs_h *g,\n"
14158 "                     const char *path,\n"
14159 "                     char *const *names);\n"
14160 "\n"
14161 msgstr ""
14162
14163 # type: textblock
14164 #. type: textblock
14165 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2753
14166 msgid ""
14167 "This call allows you to get the extended attributes of multiple files, where "
14168 "all files are in the directory C<path>.  C<names> is the list of files from "
14169 "this directory."
14170 msgstr ""
14171
14172 # type: textblock
14173 #. type: textblock
14174 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2757
14175 msgid ""
14176 "On return you get a flat list of xattr structs which must be interpreted "
14177 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14178 "C<attrval> in this struct is zero-length to indicate there was an error "
14179 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14180 "number (the number of following attributes for this file, which could be C<"
14181 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14182 "for the first named file.  This repeats for the second and subsequent files."
14183 msgstr ""
14184
14185 # type: textblock
14186 #. type: textblock
14187 #: ../src/guestfs-actions.pod:4058
14188 msgid ""
14189 "This call is intended for programs that want to efficiently list a directory "
14190 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14191 "a similarly efficient call for getting standard stats.  Very long directory "
14192 "listings might cause the protocol message size to be exceeded, causing this "
14193 "call to fail.  The caller must split up such requests into smaller groups of "
14194 "names."
14195 msgstr ""
14196
14197 # type: =head2
14198 #. type: =head2
14199 #: ../src/guestfs-actions.pod:4072
14200 msgid "guestfs_mkdir"
14201 msgstr ""
14202
14203 # type: verbatim
14204 #. type: verbatim
14205 #: ../src/guestfs-actions.pod:4074
14206 #, no-wrap
14207 msgid ""
14208 " int\n"
14209 " guestfs_mkdir (guestfs_h *g,\n"
14210 "                const char *path);\n"
14211 "\n"
14212 msgstr ""
14213
14214 # type: textblock
14215 #. type: textblock
14216 #: ../src/guestfs-actions.pod:4078 ../fish/guestfish-actions.pod:2779
14217 msgid "Create a directory named C<path>."
14218 msgstr ""
14219
14220 # type: =head2
14221 #. type: =head2
14222 #: ../src/guestfs-actions.pod:4084
14223 msgid "guestfs_mkdir_mode"
14224 msgstr ""
14225
14226 # type: verbatim
14227 #. type: verbatim
14228 #: ../src/guestfs-actions.pod:4086
14229 #, no-wrap
14230 msgid ""
14231 " int\n"
14232 " guestfs_mkdir_mode (guestfs_h *g,\n"
14233 "                     const char *path,\n"
14234 "                     int mode);\n"
14235 "\n"
14236 msgstr ""
14237
14238 # type: textblock
14239 #. type: textblock
14240 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2785
14241 msgid ""
14242 "This command creates a directory, setting the initial permissions of the "
14243 "directory to C<mode>."
14244 msgstr ""
14245
14246 # type: textblock
14247 #. type: textblock
14248 #: ../src/guestfs-actions.pod:4094 ../fish/guestfish-actions.pod:2788
14249 msgid ""
14250 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14251 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14252 "other ways."
14253 msgstr ""
14254
14255 # type: textblock
14256 #. type: textblock
14257 #: ../src/guestfs-actions.pod:4098
14258 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14259 msgstr ""
14260
14261 # type: =head2
14262 #. type: =head2
14263 #: ../src/guestfs-actions.pod:4104
14264 msgid "guestfs_mkdir_p"
14265 msgstr ""
14266
14267 # type: verbatim
14268 #. type: verbatim
14269 #: ../src/guestfs-actions.pod:4106
14270 #, no-wrap
14271 msgid ""
14272 " int\n"
14273 " guestfs_mkdir_p (guestfs_h *g,\n"
14274 "                  const char *path);\n"
14275 "\n"
14276 msgstr ""
14277
14278 # type: textblock
14279 #. type: textblock
14280 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2798
14281 msgid ""
14282 "Create a directory named C<path>, creating any parent directories as "
14283 "necessary.  This is like the C<mkdir -p> shell command."
14284 msgstr ""
14285
14286 # type: =head2
14287 #. type: =head2
14288 #: ../src/guestfs-actions.pod:4117
14289 msgid "guestfs_mkdtemp"
14290 msgstr ""
14291
14292 # type: verbatim
14293 #. type: verbatim
14294 #: ../src/guestfs-actions.pod:4119
14295 #, no-wrap
14296 msgid ""
14297 " char *\n"
14298 " guestfs_mkdtemp (guestfs_h *g,\n"
14299 "                  const char *template);\n"
14300 "\n"
14301 msgstr ""
14302
14303 # type: textblock
14304 #. type: textblock
14305 #: ../src/guestfs-actions.pod:4123 ../fish/guestfish-actions.pod:2805
14306 msgid ""
14307 "This command creates a temporary directory.  The C<template> parameter "
14308 "should be a full pathname for the temporary directory name with the final "
14309 "six characters being \"XXXXXX\"."
14310 msgstr ""
14311
14312 # type: textblock
14313 #. type: textblock
14314 #: ../src/guestfs-actions.pod:4128 ../fish/guestfish-actions.pod:2810
14315 msgid ""
14316 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14317 "being suitable for Windows filesystems."
14318 msgstr ""
14319
14320 # type: textblock
14321 #. type: textblock
14322 #: ../src/guestfs-actions.pod:4131 ../fish/guestfish-actions.pod:2813
14323 msgid "The name of the temporary directory that was created is returned."
14324 msgstr ""
14325
14326 # type: textblock
14327 #. type: textblock
14328 #: ../src/guestfs-actions.pod:4134 ../fish/guestfish-actions.pod:2816
14329 msgid "The temporary directory is created with mode 0700 and is owned by root."
14330 msgstr ""
14331
14332 # type: textblock
14333 #. type: textblock
14334 #: ../src/guestfs-actions.pod:4137 ../fish/guestfish-actions.pod:2819
14335 msgid ""
14336 "The caller is responsible for deleting the temporary directory and its "
14337 "contents after use."
14338 msgstr ""
14339
14340 # type: textblock
14341 #. type: textblock
14342 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:2822
14343 msgid "See also: L<mkdtemp(3)>"
14344 msgstr ""
14345
14346 # type: =head2
14347 #. type: =head2
14348 #: ../src/guestfs-actions.pod:4147
14349 msgid "guestfs_mke2fs_J"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #. type: verbatim
14354 #: ../src/guestfs-actions.pod:4149
14355 #, no-wrap
14356 msgid ""
14357 " int\n"
14358 " guestfs_mke2fs_J (guestfs_h *g,\n"
14359 "                   const char *fstype,\n"
14360 "                   int blocksize,\n"
14361 "                   const char *device,\n"
14362 "                   const char *journal);\n"
14363 "\n"
14364 msgstr ""
14365
14366 # type: textblock
14367 #. type: textblock
14368 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2828
14369 msgid ""
14370 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14371 "C<journal>.  It is equivalent to the command:"
14372 msgstr ""
14373
14374 # type: verbatim
14375 #. type: verbatim
14376 #: ../src/guestfs-actions.pod:4160 ../fish/guestfish-actions.pod:2832
14377 #, no-wrap
14378 msgid ""
14379 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14380 "\n"
14381 msgstr ""
14382
14383 # type: textblock
14384 #. type: textblock
14385 #: ../src/guestfs-actions.pod:4162
14386 msgid "See also C<guestfs_mke2journal>."
14387 msgstr ""
14388
14389 # type: textblock
14390 #. type: textblock
14391 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4184
14392 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4218
14393 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4246
14394 #: ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:4570
14395 msgid "(Added in 1.0.68)"
14396 msgstr ""
14397
14398 # type: =head2
14399 #. type: =head2
14400 #: ../src/guestfs-actions.pod:4168
14401 msgid "guestfs_mke2fs_JL"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #. type: verbatim
14406 #: ../src/guestfs-actions.pod:4170
14407 #, no-wrap
14408 msgid ""
14409 " int\n"
14410 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14411 "                    const char *fstype,\n"
14412 "                    int blocksize,\n"
14413 "                    const char *device,\n"
14414 "                    const char *label);\n"
14415 "\n"
14416 msgstr ""
14417
14418 # type: textblock
14419 #. type: textblock
14420 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2840
14421 msgid ""
14422 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14423 "the journal labeled C<label>."
14424 msgstr ""
14425
14426 # type: textblock
14427 #. type: textblock
14428 #: ../src/guestfs-actions.pod:4180
14429 msgid "See also C<guestfs_mke2journal_L>."
14430 msgstr ""
14431
14432 # type: =head2
14433 #. type: =head2
14434 #: ../src/guestfs-actions.pod:4186
14435 msgid "guestfs_mke2fs_JU"
14436 msgstr ""
14437
14438 # type: verbatim
14439 #. type: verbatim
14440 #: ../src/guestfs-actions.pod:4188
14441 #, no-wrap
14442 msgid ""
14443 " int\n"
14444 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14445 "                    const char *fstype,\n"
14446 "                    int blocksize,\n"
14447 "                    const char *device,\n"
14448 "                    const char *uuid);\n"
14449 "\n"
14450 msgstr ""
14451
14452 # type: textblock
14453 #. type: textblock
14454 #: ../src/guestfs-actions.pod:4195 ../fish/guestfish-actions.pod:2849
14455 msgid ""
14456 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14457 "the journal with UUID C<uuid>."
14458 msgstr ""
14459
14460 # type: textblock
14461 #. type: textblock
14462 #: ../src/guestfs-actions.pod:4198
14463 msgid "See also C<guestfs_mke2journal_U>."
14464 msgstr ""
14465
14466 # type: =head2
14467 #. type: =head2
14468 #: ../src/guestfs-actions.pod:4204
14469 msgid "guestfs_mke2journal"
14470 msgstr ""
14471
14472 # type: verbatim
14473 #. type: verbatim
14474 #: ../src/guestfs-actions.pod:4206
14475 #, no-wrap
14476 msgid ""
14477 " int\n"
14478 " guestfs_mke2journal (guestfs_h *g,\n"
14479 "                      int blocksize,\n"
14480 "                      const char *device);\n"
14481 "\n"
14482 msgstr ""
14483
14484 # type: textblock
14485 #. type: textblock
14486 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:2858
14487 msgid ""
14488 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14489 "command:"
14490 msgstr ""
14491
14492 # type: verbatim
14493 #. type: verbatim
14494 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:2861
14495 #, no-wrap
14496 msgid ""
14497 " mke2fs -O journal_dev -b blocksize device\n"
14498 "\n"
14499 msgstr ""
14500
14501 # type: =head2
14502 #. type: =head2
14503 #: ../src/guestfs-actions.pod:4220
14504 msgid "guestfs_mke2journal_L"
14505 msgstr ""
14506
14507 # type: verbatim
14508 #. type: verbatim
14509 #: ../src/guestfs-actions.pod:4222
14510 #, no-wrap
14511 msgid ""
14512 " int\n"
14513 " guestfs_mke2journal_L (guestfs_h *g,\n"
14514 "                        int blocksize,\n"
14515 "                        const char *label,\n"
14516 "                        const char *device);\n"
14517 "\n"
14518 msgstr ""
14519
14520 # type: textblock
14521 #. type: textblock
14522 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2867
14523 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14524 msgstr ""
14525
14526 # type: =head2
14527 #. type: =head2
14528 #: ../src/guestfs-actions.pod:4234
14529 msgid "guestfs_mke2journal_U"
14530 msgstr ""
14531
14532 # type: verbatim
14533 #. type: verbatim
14534 #: ../src/guestfs-actions.pod:4236
14535 #, no-wrap
14536 msgid ""
14537 " int\n"
14538 " guestfs_mke2journal_U (guestfs_h *g,\n"
14539 "                        int blocksize,\n"
14540 "                        const char *uuid,\n"
14541 "                        const char *device);\n"
14542 "\n"
14543 msgstr ""
14544
14545 # type: textblock
14546 #. type: textblock
14547 #: ../src/guestfs-actions.pod:4242 ../fish/guestfish-actions.pod:2873
14548 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14549 msgstr ""
14550
14551 # type: =head2
14552 #. type: =head2
14553 #: ../src/guestfs-actions.pod:4248
14554 msgid "guestfs_mkfifo"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #. type: verbatim
14559 #: ../src/guestfs-actions.pod:4250
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_mkfifo (guestfs_h *g,\n"
14564 "                 int mode,\n"
14565 "                 const char *path);\n"
14566 "\n"
14567 msgstr ""
14568
14569 # type: textblock
14570 #. type: textblock
14571 #: ../src/guestfs-actions.pod:4255
14572 msgid ""
14573 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14574 "is just a convenient wrapper around C<guestfs_mknod>."
14575 msgstr ""
14576
14577 # type: =head2
14578 #. type: =head2
14579 #: ../src/guestfs-actions.pod:4265
14580 msgid "guestfs_mkfs"
14581 msgstr ""
14582
14583 # type: verbatim
14584 #. type: verbatim
14585 #: ../src/guestfs-actions.pod:4267
14586 #, no-wrap
14587 msgid ""
14588 " int\n"
14589 " guestfs_mkfs (guestfs_h *g,\n"
14590 "               const char *fstype,\n"
14591 "               const char *device);\n"
14592 "\n"
14593 msgstr ""
14594
14595 # type: textblock
14596 #. type: textblock
14597 #: ../src/guestfs-actions.pod:4272 ../fish/guestfish-actions.pod:2889
14598 msgid ""
14599 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14600 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14601 msgstr ""
14602
14603 # type: =head2
14604 #. type: =head2
14605 #: ../src/guestfs-actions.pod:4280
14606 msgid "guestfs_mkfs_b"
14607 msgstr ""
14608
14609 # type: verbatim
14610 #. type: verbatim
14611 #: ../src/guestfs-actions.pod:4282
14612 #, no-wrap
14613 msgid ""
14614 " int\n"
14615 " guestfs_mkfs_b (guestfs_h *g,\n"
14616 "                 const char *fstype,\n"
14617 "                 int blocksize,\n"
14618 "                 const char *device);\n"
14619 "\n"
14620 msgstr ""
14621
14622 # type: textblock
14623 #. type: textblock
14624 #: ../src/guestfs-actions.pod:4288
14625 msgid ""
14626 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14627 "block size of the resulting filesystem.  Supported block sizes depend on the "
14628 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14629 msgstr ""
14630
14631 # type: textblock
14632 #. type: textblock
14633 #: ../src/guestfs-actions.pod:4293 ../src/guestfs-actions.pod:4336
14634 #: ../fish/guestfish-actions.pod:2902 ../fish/guestfish-actions.pod:2929
14635 msgid ""
14636 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14637 "cluster size."
14638 msgstr ""
14639
14640 # type: textblock
14641 #. type: textblock
14642 #: ../src/guestfs-actions.pod:4298 ../fish/guestfish-actions.pod:2905
14643 msgid ""
14644 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14645 msgstr ""
14646
14647 # type: =head2
14648 #. type: =head2
14649 #: ../src/guestfs-actions.pod:4307
14650 msgid "guestfs_mkfs_opts"
14651 msgstr ""
14652
14653 # type: verbatim
14654 #. type: verbatim
14655 #: ../src/guestfs-actions.pod:4309
14656 #, no-wrap
14657 msgid ""
14658 " int\n"
14659 " guestfs_mkfs_opts (guestfs_h *g,\n"
14660 "                    const char *fstype,\n"
14661 "                    const char *device,\n"
14662 "                    ...);\n"
14663 "\n"
14664 msgstr ""
14665
14666 #. type: verbatim
14667 #: ../src/guestfs-actions.pod:4320
14668 #, no-wrap
14669 msgid ""
14670 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14671 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14672 "\n"
14673 msgstr ""
14674
14675 # type: textblock
14676 #. type: textblock
14677 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:2916
14678 msgid ""
14679 "This function creates a filesystem on C<device>.  The filesystem type is "
14680 "C<fstype>, for example C<ext3>."
14681 msgstr ""
14682
14683 # type: =item
14684 #. type: =item
14685 #: ../src/guestfs-actions.pod:4330 ../fish/guestfish-actions.pod:2923
14686 msgid "C<blocksize>"
14687 msgstr ""
14688
14689 # type: textblock
14690 #. type: textblock
14691 #: ../src/guestfs-actions.pod:4332 ../fish/guestfish-actions.pod:2925
14692 msgid ""
14693 "The filesystem block size.  Supported block sizes depend on the filesystem "
14694 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14695 "filesystems."
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:2932
14700 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14701 msgstr ""
14702
14703 #. type: =item
14704 #: ../src/guestfs-actions.pod:4341 ../fish/guestfish-actions.pod:2934
14705 msgid "C<features>"
14706 msgstr ""
14707
14708 #. type: textblock
14709 #: ../src/guestfs-actions.pod:4343 ../fish/guestfish-actions.pod:2936
14710 msgid "This passes the C<-O> parameter to the external mkfs program."
14711 msgstr ""
14712
14713 #. type: textblock
14714 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:2938
14715 msgid ""
14716 "For certain filesystem types, this allows extra filesystem features to be "
14717 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14718 msgstr ""
14719
14720 #. type: textblock
14721 #: ../src/guestfs-actions.pod:4349 ../fish/guestfish-actions.pod:2942
14722 msgid ""
14723 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14724 "type."
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../src/guestfs-actions.pod:4356
14729 msgid "(Added in 1.7.19)"
14730 msgstr ""
14731
14732 # type: =head2
14733 #. type: =head2
14734 #: ../src/guestfs-actions.pod:4358
14735 msgid "guestfs_mkfs_opts_va"
14736 msgstr ""
14737
14738 # type: verbatim
14739 #. type: verbatim
14740 #: ../src/guestfs-actions.pod:4360
14741 #, no-wrap
14742 msgid ""
14743 " int\n"
14744 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14745 "                       const char *fstype,\n"
14746 "                       const char *device,\n"
14747 "                       va_list args);\n"
14748 "\n"
14749 msgstr ""
14750
14751 # type: textblock
14752 #. type: textblock
14753 #: ../src/guestfs-actions.pod:4366
14754 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14755 msgstr ""
14756
14757 # type: =head2
14758 #. type: =head2
14759 #: ../src/guestfs-actions.pod:4370
14760 msgid "guestfs_mkfs_opts_argv"
14761 msgstr ""
14762
14763 # type: verbatim
14764 #. type: verbatim
14765 #: ../src/guestfs-actions.pod:4372
14766 #, no-wrap
14767 msgid ""
14768 " int\n"
14769 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14770 "                         const char *fstype,\n"
14771 "                         const char *device,\n"
14772 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14773 "\n"
14774 msgstr ""
14775
14776 # type: textblock
14777 #. type: textblock
14778 #: ../src/guestfs-actions.pod:4378
14779 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14780 msgstr ""
14781
14782 # type: =head2
14783 #. type: =head2
14784 #: ../src/guestfs-actions.pod:4382
14785 msgid "guestfs_mkmountpoint"
14786 msgstr ""
14787
14788 # type: verbatim
14789 #. type: verbatim
14790 #: ../src/guestfs-actions.pod:4384
14791 #, no-wrap
14792 msgid ""
14793 " int\n"
14794 " guestfs_mkmountpoint (guestfs_h *g,\n"
14795 "                       const char *exemptpath);\n"
14796 "\n"
14797 msgstr ""
14798
14799 # type: textblock
14800 #. type: textblock
14801 #: ../src/guestfs-actions.pod:4388
14802 msgid ""
14803 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14804 "that can be used to create extra mountpoints before mounting the first "
14805 "filesystem."
14806 msgstr ""
14807
14808 # type: textblock
14809 #. type: textblock
14810 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2957
14811 msgid ""
14812 "These calls are I<only> necessary in some very limited circumstances, mainly "
14813 "the case where you want to mount a mix of unrelated and/or read-only "
14814 "filesystems together."
14815 msgstr ""
14816
14817 # type: textblock
14818 #. type: textblock
14819 #: ../src/guestfs-actions.pod:4396 ../fish/guestfish-actions.pod:2961
14820 msgid ""
14821 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14822 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14823 "inside that.  You can unpack this as follows in guestfish:"
14824 msgstr ""
14825
14826 # type: verbatim
14827 #. type: verbatim
14828 #: ../src/guestfs-actions.pod:4401 ../fish/guestfish-actions.pod:2966
14829 #, no-wrap
14830 msgid ""
14831 " add-ro Fedora-11-i686-Live.iso\n"
14832 " run\n"
14833 " mkmountpoint /cd\n"
14834 " mkmountpoint /sqsh\n"
14835 " mkmountpoint /ext3fs\n"
14836 " mount /dev/sda /cd\n"
14837 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14838 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14839 "\n"
14840 msgstr ""
14841
14842 # type: textblock
14843 #. type: textblock
14844 #: ../src/guestfs-actions.pod:4410 ../fish/guestfish-actions.pod:2975
14845 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14846 msgstr ""
14847
14848 # type: textblock
14849 #. type: textblock
14850 #: ../src/guestfs-actions.pod:4412
14851 msgid ""
14852 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14853 "may get unexpected errors if you try to mix these calls.  It is safest to "
14854 "manually unmount filesystems and remove mountpoints after use."
14855 msgstr ""
14856
14857 # type: textblock
14858 #. type: textblock
14859 #: ../src/guestfs-actions.pod:4416
14860 msgid ""
14861 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14862 "first, so for this to work for manual mountpoints, you must ensure that the "
14863 "innermost mountpoints have the longest pathnames, as in the example code "
14864 "above."
14865 msgstr ""
14866
14867 # type: textblock
14868 #. type: textblock
14869 #: ../src/guestfs-actions.pod:4421 ../fish/guestfish-actions.pod:2986
14870 msgid ""
14871 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../src/guestfs-actions.pod:4423
14876 msgid ""
14877 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14878 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14879 "can also trigger these issues."
14880 msgstr ""
14881
14882 # type: textblock
14883 #. type: textblock
14884 #: ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4688
14885 #: ../src/guestfs-actions.pod:5598
14886 msgid "(Added in 1.0.62)"
14887 msgstr ""
14888
14889 # type: =head2
14890 #. type: =head2
14891 #: ../src/guestfs-actions.pod:4431
14892 msgid "guestfs_mknod"
14893 msgstr ""
14894
14895 # type: verbatim
14896 #. type: verbatim
14897 #: ../src/guestfs-actions.pod:4433
14898 #, no-wrap
14899 msgid ""
14900 " int\n"
14901 " guestfs_mknod (guestfs_h *g,\n"
14902 "                int mode,\n"
14903 "                int devmajor,\n"
14904 "                int devminor,\n"
14905 "                const char *path);\n"
14906 "\n"
14907 msgstr ""
14908
14909 # type: textblock
14910 #. type: textblock
14911 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:2996
14912 msgid ""
14913 "This call creates block or character special devices, or named pipes (FIFOs)."
14914 msgstr ""
14915
14916 # type: textblock
14917 #. type: textblock
14918 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:2999
14919 msgid ""
14920 "The C<mode> parameter should be the mode, using the standard constants.  "
14921 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14922 "used when creating block and character special devices."
14923 msgstr ""
14924
14925 # type: textblock
14926 #. type: textblock
14927 #: ../src/guestfs-actions.pod:4448
14928 msgid ""
14929 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14930 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14931 "regular file).  These constants are available in the standard Linux header "
14932 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14933 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14934 "the appropriate constant for you."
14935 msgstr ""
14936
14937 # type: =head2
14938 #. type: =head2
14939 #: ../src/guestfs-actions.pod:4462
14940 msgid "guestfs_mknod_b"
14941 msgstr ""
14942
14943 # type: verbatim
14944 #. type: verbatim
14945 #: ../src/guestfs-actions.pod:4464
14946 #, no-wrap
14947 msgid ""
14948 " int\n"
14949 " guestfs_mknod_b (guestfs_h *g,\n"
14950 "                  int mode,\n"
14951 "                  int devmajor,\n"
14952 "                  int devminor,\n"
14953 "                  const char *path);\n"
14954 "\n"
14955 msgstr ""
14956
14957 # type: textblock
14958 #. type: textblock
14959 #: ../src/guestfs-actions.pod:4471
14960 msgid ""
14961 "This call creates a block device node called C<path> with mode C<mode> and "
14962 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14963 "wrapper around C<guestfs_mknod>."
14964 msgstr ""
14965
14966 # type: =head2
14967 #. type: =head2
14968 #: ../src/guestfs-actions.pod:4481
14969 msgid "guestfs_mknod_c"
14970 msgstr ""
14971
14972 # type: verbatim
14973 #. type: verbatim
14974 #: ../src/guestfs-actions.pod:4483
14975 #, no-wrap
14976 msgid ""
14977 " int\n"
14978 " guestfs_mknod_c (guestfs_h *g,\n"
14979 "                  int mode,\n"
14980 "                  int devmajor,\n"
14981 "                  int devminor,\n"
14982 "                  const char *path);\n"
14983 "\n"
14984 msgstr ""
14985
14986 # type: textblock
14987 #. type: textblock
14988 #: ../src/guestfs-actions.pod:4490
14989 msgid ""
14990 "This call creates a char device node called C<path> with mode C<mode> and "
14991 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14992 "wrapper around C<guestfs_mknod>."
14993 msgstr ""
14994
14995 # type: =head2
14996 #. type: =head2
14997 #: ../src/guestfs-actions.pod:4500
14998 msgid "guestfs_mkswap"
14999 msgstr ""
15000
15001 # type: verbatim
15002 #. type: verbatim
15003 #: ../src/guestfs-actions.pod:4502
15004 #, no-wrap
15005 msgid ""
15006 " int\n"
15007 " guestfs_mkswap (guestfs_h *g,\n"
15008 "                 const char *device);\n"
15009 "\n"
15010 msgstr ""
15011
15012 # type: textblock
15013 #. type: textblock
15014 #: ../src/guestfs-actions.pod:4506 ../fish/guestfish-actions.pod:3038
15015 msgid "Create a swap partition on C<device>."
15016 msgstr ""
15017
15018 # type: =head2
15019 #. type: =head2
15020 #: ../src/guestfs-actions.pod:4512
15021 msgid "guestfs_mkswap_L"
15022 msgstr ""
15023
15024 # type: verbatim
15025 #. type: verbatim
15026 #: ../src/guestfs-actions.pod:4514
15027 #, no-wrap
15028 msgid ""
15029 " int\n"
15030 " guestfs_mkswap_L (guestfs_h *g,\n"
15031 "                   const char *label,\n"
15032 "                   const char *device);\n"
15033 "\n"
15034 msgstr ""
15035
15036 # type: textblock
15037 #. type: textblock
15038 #: ../src/guestfs-actions.pod:4519 ../fish/guestfish-actions.pod:3044
15039 msgid "Create a swap partition on C<device> with label C<label>."
15040 msgstr ""
15041
15042 # type: textblock
15043 #. type: textblock
15044 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:3046
15045 msgid ""
15046 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15047 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15048 "or swap tools."
15049 msgstr ""
15050
15051 # type: =head2
15052 #. type: =head2
15053 #: ../src/guestfs-actions.pod:4529
15054 msgid "guestfs_mkswap_U"
15055 msgstr ""
15056
15057 # type: verbatim
15058 #. type: verbatim
15059 #: ../src/guestfs-actions.pod:4531
15060 #, no-wrap
15061 msgid ""
15062 " int\n"
15063 " guestfs_mkswap_U (guestfs_h *g,\n"
15064 "                   const char *uuid,\n"
15065 "                   const char *device);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: textblock
15070 #. type: textblock
15071 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3054
15072 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15073 msgstr ""
15074
15075 # type: =head2
15076 #. type: =head2
15077 #: ../src/guestfs-actions.pod:4542
15078 msgid "guestfs_mkswap_file"
15079 msgstr ""
15080
15081 # type: verbatim
15082 #. type: verbatim
15083 #: ../src/guestfs-actions.pod:4544
15084 #, no-wrap
15085 msgid ""
15086 " int\n"
15087 " guestfs_mkswap_file (guestfs_h *g,\n"
15088 "                      const char *path);\n"
15089 "\n"
15090 msgstr ""
15091
15092 # type: textblock
15093 #. type: textblock
15094 #: ../src/guestfs-actions.pod:4548 ../fish/guestfish-actions.pod:3060
15095 msgid "Create a swap file."
15096 msgstr ""
15097
15098 # type: textblock
15099 #. type: textblock
15100 #: ../src/guestfs-actions.pod:4550
15101 msgid ""
15102 "This command just writes a swap file signature to an existing file.  To "
15103 "create the file itself, use something like C<guestfs_fallocate>."
15104 msgstr ""
15105
15106 # type: =head2
15107 #. type: =head2
15108 #: ../src/guestfs-actions.pod:4557
15109 msgid "guestfs_modprobe"
15110 msgstr ""
15111
15112 # type: verbatim
15113 #. type: verbatim
15114 #: ../src/guestfs-actions.pod:4559
15115 #, no-wrap
15116 msgid ""
15117 " int\n"
15118 " guestfs_modprobe (guestfs_h *g,\n"
15119 "                   const char *modulename);\n"
15120 "\n"
15121 msgstr ""
15122
15123 # type: textblock
15124 #. type: textblock
15125 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3069
15126 msgid "This loads a kernel module in the appliance."
15127 msgstr ""
15128
15129 # type: textblock
15130 #. type: textblock
15131 #: ../src/guestfs-actions.pod:4565 ../fish/guestfish-actions.pod:3071
15132 msgid ""
15133 "The kernel module must have been whitelisted when libguestfs was built (see "
15134 "C<appliance/kmod.whitelist.in> in the source)."
15135 msgstr ""
15136
15137 # type: =head2
15138 #. type: =head2
15139 #: ../src/guestfs-actions.pod:4572
15140 msgid "guestfs_mount"
15141 msgstr ""
15142
15143 # type: verbatim
15144 #. type: verbatim
15145 #: ../src/guestfs-actions.pod:4574
15146 #, no-wrap
15147 msgid ""
15148 " int\n"
15149 " guestfs_mount (guestfs_h *g,\n"
15150 "                const char *device,\n"
15151 "                const char *mountpoint);\n"
15152 "\n"
15153 msgstr ""
15154
15155 # type: textblock
15156 #. type: textblock
15157 #: ../src/guestfs-actions.pod:4579 ../fish/guestfish-actions.pod:3078
15158 msgid ""
15159 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15160 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15161 "those block devices contain partitions, they will have the usual names (eg. "
15162 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15163 msgstr ""
15164
15165 # type: textblock
15166 #. type: textblock
15167 #: ../src/guestfs-actions.pod:4585 ../fish/guestfish-actions.pod:3084
15168 msgid ""
15169 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15170 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15171 "mounted on directories which already exist."
15172 msgstr ""
15173
15174 # type: textblock
15175 #. type: textblock
15176 #: ../src/guestfs-actions.pod:4590 ../fish/guestfish-actions.pod:3089
15177 msgid ""
15178 "The mounted filesystem is writable, if we have sufficient permissions on the "
15179 "underlying device."
15180 msgstr ""
15181
15182 # type: textblock
15183 #. type: textblock
15184 #: ../src/guestfs-actions.pod:4593
15185 msgid ""
15186 "B<Important note:> When you use this call, the filesystem options C<sync> "
15187 "and C<noatime> are set implicitly.  This was originally done because we "
15188 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15189 "very large negative performance impact and negligible effect on "
15190 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15191 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15192 "(use an empty string for the first parameter if you don't want any options)."
15193 msgstr ""
15194
15195 # type: =head2
15196 #. type: =head2
15197 #: ../src/guestfs-actions.pod:4607
15198 msgid "guestfs_mount_loop"
15199 msgstr ""
15200
15201 # type: verbatim
15202 #. type: verbatim
15203 #: ../src/guestfs-actions.pod:4609
15204 #, no-wrap
15205 msgid ""
15206 " int\n"
15207 " guestfs_mount_loop (guestfs_h *g,\n"
15208 "                     const char *file,\n"
15209 "                     const char *mountpoint);\n"
15210 "\n"
15211 msgstr ""
15212
15213 # type: textblock
15214 #. type: textblock
15215 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3106
15216 msgid ""
15217 "This command lets you mount C<file> (a filesystem image in a file) on a "
15218 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15219 "mountpoint>."
15220 msgstr ""
15221
15222 # type: =head2
15223 #. type: =head2
15224 #: ../src/guestfs-actions.pod:4622
15225 msgid "guestfs_mount_options"
15226 msgstr ""
15227
15228 # type: verbatim
15229 #. type: verbatim
15230 #: ../src/guestfs-actions.pod:4624
15231 #, no-wrap
15232 msgid ""
15233 " int\n"
15234 " guestfs_mount_options (guestfs_h *g,\n"
15235 "                        const char *options,\n"
15236 "                        const char *device,\n"
15237 "                        const char *mountpoint);\n"
15238 "\n"
15239 msgstr ""
15240
15241 # type: textblock
15242 #. type: textblock
15243 #: ../src/guestfs-actions.pod:4630
15244 msgid ""
15245 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15246 "the mount options as for the L<mount(8)> I<-o> flag."
15247 msgstr ""
15248
15249 # type: textblock
15250 #. type: textblock
15251 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3118
15252 msgid ""
15253 "If the C<options> parameter is an empty string, then no options are passed "
15254 "(all options default to whatever the filesystem uses)."
15255 msgstr ""
15256
15257 # type: textblock
15258 #. type: textblock
15259 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4654
15260 #: ../src/guestfs-actions.pod:4671
15261 msgid "(Added in 1.0.10)"
15262 msgstr ""
15263
15264 # type: =head2
15265 #. type: =head2
15266 #: ../src/guestfs-actions.pod:4642
15267 msgid "guestfs_mount_ro"
15268 msgstr ""
15269
15270 # type: verbatim
15271 #. type: verbatim
15272 #: ../src/guestfs-actions.pod:4644
15273 #, no-wrap
15274 msgid ""
15275 " int\n"
15276 " guestfs_mount_ro (guestfs_h *g,\n"
15277 "                   const char *device,\n"
15278 "                   const char *mountpoint);\n"
15279 "\n"
15280 msgstr ""
15281
15282 # type: textblock
15283 #. type: textblock
15284 #: ../src/guestfs-actions.pod:4649
15285 msgid ""
15286 "This is the same as the C<guestfs_mount> command, but it mounts the "
15287 "filesystem with the read-only (I<-o ro>) flag."
15288 msgstr ""
15289
15290 # type: =head2
15291 #. type: =head2
15292 #: ../src/guestfs-actions.pod:4656
15293 msgid "guestfs_mount_vfs"
15294 msgstr ""
15295
15296 # type: verbatim
15297 #. type: verbatim
15298 #: ../src/guestfs-actions.pod:4658
15299 #, no-wrap
15300 msgid ""
15301 " int\n"
15302 " guestfs_mount_vfs (guestfs_h *g,\n"
15303 "                    const char *options,\n"
15304 "                    const char *vfstype,\n"
15305 "                    const char *device,\n"
15306 "                    const char *mountpoint);\n"
15307 "\n"
15308 msgstr ""
15309
15310 # type: textblock
15311 #. type: textblock
15312 #: ../src/guestfs-actions.pod:4665
15313 msgid ""
15314 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15315 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15316 "t> flags."
15317 msgstr ""
15318
15319 # type: =head2
15320 #. type: =head2
15321 #: ../src/guestfs-actions.pod:4673
15322 msgid "guestfs_mountpoints"
15323 msgstr ""
15324
15325 # type: verbatim
15326 #. type: verbatim
15327 #: ../src/guestfs-actions.pod:4675
15328 #, no-wrap
15329 msgid ""
15330 " char **\n"
15331 " guestfs_mountpoints (guestfs_h *g);\n"
15332 "\n"
15333 msgstr ""
15334
15335 # type: textblock
15336 #. type: textblock
15337 #: ../src/guestfs-actions.pod:4678
15338 msgid ""
15339 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15340 "devices.  This one returns a hash table (map) of device name to directory "
15341 "where the device is mounted."
15342 msgstr ""
15343
15344 # type: =head2
15345 #. type: =head2
15346 #: ../src/guestfs-actions.pod:4690
15347 msgid "guestfs_mounts"
15348 msgstr ""
15349
15350 # type: verbatim
15351 #. type: verbatim
15352 #: ../src/guestfs-actions.pod:4692
15353 #, no-wrap
15354 msgid ""
15355 " char **\n"
15356 " guestfs_mounts (guestfs_h *g);\n"
15357 "\n"
15358 msgstr ""
15359
15360 # type: textblock
15361 #. type: textblock
15362 #: ../src/guestfs-actions.pod:4695 ../fish/guestfish-actions.pod:3149
15363 msgid ""
15364 "This returns the list of currently mounted filesystems.  It returns the list "
15365 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15366 msgstr ""
15367
15368 # type: textblock
15369 #. type: textblock
15370 #: ../src/guestfs-actions.pod:4698 ../fish/guestfish-actions.pod:3152
15371 msgid "Some internal mounts are not shown."
15372 msgstr ""
15373
15374 # type: textblock
15375 #. type: textblock
15376 #: ../src/guestfs-actions.pod:4700
15377 msgid "See also: C<guestfs_mountpoints>"
15378 msgstr ""
15379
15380 # type: =head2
15381 #. type: =head2
15382 #: ../src/guestfs-actions.pod:4708
15383 msgid "guestfs_mv"
15384 msgstr ""
15385
15386 # type: verbatim
15387 #. type: verbatim
15388 #: ../src/guestfs-actions.pod:4710
15389 #, no-wrap
15390 msgid ""
15391 " int\n"
15392 " guestfs_mv (guestfs_h *g,\n"
15393 "             const char *src,\n"
15394 "             const char *dest);\n"
15395 "\n"
15396 msgstr ""
15397
15398 # type: textblock
15399 #. type: textblock
15400 #: ../src/guestfs-actions.pod:4715 ../fish/guestfish-actions.pod:3160
15401 msgid ""
15402 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15403 "destination filename or destination directory."
15404 msgstr ""
15405
15406 # type: =head2
15407 #. type: =head2
15408 #: ../src/guestfs-actions.pod:4722
15409 msgid "guestfs_ntfs_3g_probe"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #. type: verbatim
15414 #: ../src/guestfs-actions.pod:4724
15415 #, no-wrap
15416 msgid ""
15417 " int\n"
15418 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15419 "                        int rw,\n"
15420 "                        const char *device);\n"
15421 "\n"
15422 msgstr ""
15423
15424 # type: textblock
15425 #. type: textblock
15426 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3167
15427 msgid ""
15428 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15429 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15430 "write, and some cannot be mounted at all)."
15431 msgstr ""
15432
15433 # type: textblock
15434 #. type: textblock
15435 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3171
15436 msgid ""
15437 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15438 "can be mounted read-write.  Set it to false if you want to test if the "
15439 "volume can be mounted read-only."
15440 msgstr ""
15441
15442 # type: textblock
15443 #. type: textblock
15444 #: ../src/guestfs-actions.pod:4737 ../fish/guestfish-actions.pod:3175
15445 msgid ""
15446 "The return value is an integer which C<0> if the operation would succeed, or "
15447 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15448 msgstr ""
15449
15450 # type: textblock
15451 #. type: textblock
15452 #: ../src/guestfs-actions.pod:4743
15453 msgid "(Added in 1.0.43)"
15454 msgstr ""
15455
15456 # type: =head2
15457 #. type: =head2
15458 #: ../src/guestfs-actions.pod:4745
15459 msgid "guestfs_ntfsresize"
15460 msgstr ""
15461
15462 # type: verbatim
15463 #. type: verbatim
15464 #: ../src/guestfs-actions.pod:4747
15465 #, no-wrap
15466 msgid ""
15467 " int\n"
15468 " guestfs_ntfsresize (guestfs_h *g,\n"
15469 "                     const char *device);\n"
15470 "\n"
15471 msgstr ""
15472
15473 # type: textblock
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:4751 ../fish/guestfish-actions.pod:3183
15476 msgid ""
15477 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15478 "size of the underlying device.  See also L<ntfsresize(8)>."
15479 msgstr ""
15480
15481 # type: =head2
15482 #. type: =head2
15483 #: ../src/guestfs-actions.pod:4759
15484 msgid "guestfs_ntfsresize_size"
15485 msgstr ""
15486
15487 # type: verbatim
15488 #. type: verbatim
15489 #: ../src/guestfs-actions.pod:4761
15490 #, no-wrap
15491 msgid ""
15492 " int\n"
15493 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15494 "                          const char *device,\n"
15495 "                          int64_t size);\n"
15496 "\n"
15497 msgstr ""
15498
15499 # type: textblock
15500 #. type: textblock
15501 #: ../src/guestfs-actions.pod:4766
15502 msgid ""
15503 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15504 "to specify the new size (in bytes) explicitly."
15505 msgstr ""
15506
15507 # type: textblock
15508 #. type: textblock
15509 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5207
15510 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5546
15511 #: ../src/guestfs-actions.pod:7117
15512 msgid "(Added in 1.3.14)"
15513 msgstr ""
15514
15515 # type: =head2
15516 #. type: =head2
15517 #: ../src/guestfs-actions.pod:4773
15518 msgid "guestfs_part_add"
15519 msgstr ""
15520
15521 # type: verbatim
15522 #. type: verbatim
15523 #: ../src/guestfs-actions.pod:4775
15524 #, no-wrap
15525 msgid ""
15526 " int\n"
15527 " guestfs_part_add (guestfs_h *g,\n"
15528 "                   const char *device,\n"
15529 "                   const char *prlogex,\n"
15530 "                   int64_t startsect,\n"
15531 "                   int64_t endsect);\n"
15532 "\n"
15533 msgstr ""
15534
15535 # type: textblock
15536 #. type: textblock
15537 #: ../src/guestfs-actions.pod:4782
15538 msgid ""
15539 "This command adds a partition to C<device>.  If there is no partition table "
15540 "on the device, call C<guestfs_part_init> first."
15541 msgstr ""
15542
15543 # type: textblock
15544 #. type: textblock
15545 #: ../src/guestfs-actions.pod:4785 ../fish/guestfish-actions.pod:3201
15546 msgid ""
15547 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15548 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15549 "C<logical>) and C<e> (or C<extended>) partition types."
15550 msgstr ""
15551
15552 # type: textblock
15553 #. type: textblock
15554 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3206
15555 msgid ""
15556 "C<startsect> and C<endsect> are the start and end of the partition in "
15557 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15558 "from the end of the disk (C<-1> is the last sector)."
15559 msgstr ""
15560
15561 # type: textblock
15562 #. type: textblock
15563 #: ../src/guestfs-actions.pod:4794
15564 msgid ""
15565 "Creating a partition which covers the whole disk is not so easy.  Use "
15566 "C<guestfs_part_disk> to do that."
15567 msgstr ""
15568
15569 # type: textblock
15570 #. type: textblock
15571 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
15572 #: ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:4968
15573 #: ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5025
15574 #: ../src/guestfs-actions.pod:5065
15575 msgid "(Added in 1.0.78)"
15576 msgstr ""
15577
15578 # type: =head2
15579 #. type: =head2
15580 #: ../src/guestfs-actions.pod:4801
15581 msgid "guestfs_part_del"
15582 msgstr ""
15583
15584 # type: verbatim
15585 #. type: verbatim
15586 #: ../src/guestfs-actions.pod:4803
15587 #, no-wrap
15588 msgid ""
15589 " int\n"
15590 " guestfs_part_del (guestfs_h *g,\n"
15591 "                   const char *device,\n"
15592 "                   int partnum);\n"
15593 "\n"
15594 msgstr ""
15595
15596 # type: textblock
15597 #. type: textblock
15598 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3217
15599 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15600 msgstr ""
15601
15602 # type: textblock
15603 #. type: textblock
15604 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3219
15605 msgid ""
15606 "Note that in the case of MBR partitioning, deleting an extended partition "
15607 "also deletes any logical partitions it contains."
15608 msgstr ""
15609
15610 # type: =head2
15611 #. type: =head2
15612 #: ../src/guestfs-actions.pod:4818
15613 msgid "guestfs_part_disk"
15614 msgstr ""
15615
15616 # type: verbatim
15617 #. type: verbatim
15618 #: ../src/guestfs-actions.pod:4820
15619 #, no-wrap
15620 msgid ""
15621 " int\n"
15622 " guestfs_part_disk (guestfs_h *g,\n"
15623 "                    const char *device,\n"
15624 "                    const char *parttype);\n"
15625 "\n"
15626 msgstr ""
15627
15628 # type: textblock
15629 #. type: textblock
15630 #: ../src/guestfs-actions.pod:4825
15631 msgid ""
15632 "This command is simply a combination of C<guestfs_part_init> followed by "
15633 "C<guestfs_part_add> to create a single primary partition covering the whole "
15634 "disk."
15635 msgstr ""
15636
15637 # type: textblock
15638 #. type: textblock
15639 #: ../src/guestfs-actions.pod:4829
15640 msgid ""
15641 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15642 "possible values are described in C<guestfs_part_init>."
15643 msgstr ""
15644
15645 # type: =head2
15646 #. type: =head2
15647 #: ../src/guestfs-actions.pod:4839
15648 msgid "guestfs_part_get_bootable"
15649 msgstr ""
15650
15651 # type: verbatim
15652 #. type: verbatim
15653 #: ../src/guestfs-actions.pod:4841
15654 #, no-wrap
15655 msgid ""
15656 " int\n"
15657 " guestfs_part_get_bootable (guestfs_h *g,\n"
15658 "                            const char *device,\n"
15659 "                            int partnum);\n"
15660 "\n"
15661 msgstr ""
15662
15663 # type: textblock
15664 #. type: textblock
15665 #: ../src/guestfs-actions.pod:4846 ../fish/guestfish-actions.pod:3241
15666 msgid ""
15667 "This command returns true if the partition C<partnum> on C<device> has the "
15668 "bootable flag set."
15669 msgstr ""
15670
15671 # type: textblock
15672 #. type: textblock
15673 #: ../src/guestfs-actions.pod:4849
15674 msgid "See also C<guestfs_part_set_bootable>."
15675 msgstr ""
15676
15677 # type: =head2
15678 #. type: =head2
15679 #: ../src/guestfs-actions.pod:4855
15680 msgid "guestfs_part_get_mbr_id"
15681 msgstr ""
15682
15683 # type: verbatim
15684 #. type: verbatim
15685 #: ../src/guestfs-actions.pod:4857
15686 #, no-wrap
15687 msgid ""
15688 " int\n"
15689 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15690 "                          const char *device,\n"
15691 "                          int partnum);\n"
15692 "\n"
15693 msgstr ""
15694
15695 # type: textblock
15696 #. type: textblock
15697 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3250
15698 msgid ""
15699 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15700 "partition C<partnum>."
15701 msgstr ""
15702
15703 # type: textblock
15704 #. type: textblock
15705 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:5041
15706 msgid ""
15707 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15708 "undefined results for other partition table types (see "
15709 "C<guestfs_part_get_parttype>)."
15710 msgstr ""
15711
15712 # type: =head2
15713 #. type: =head2
15714 #: ../src/guestfs-actions.pod:4873
15715 msgid "guestfs_part_get_parttype"
15716 msgstr ""
15717
15718 # type: verbatim
15719 #. type: verbatim
15720 #: ../src/guestfs-actions.pod:4875
15721 #, no-wrap
15722 msgid ""
15723 " char *\n"
15724 " guestfs_part_get_parttype (guestfs_h *g,\n"
15725 "                            const char *device);\n"
15726 "\n"
15727 msgstr ""
15728
15729 # type: textblock
15730 #. type: textblock
15731 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3261
15732 msgid ""
15733 "This command examines the partition table on C<device> and returns the "
15734 "partition table type (format) being used."
15735 msgstr ""
15736
15737 # type: textblock
15738 #. type: textblock
15739 #: ../src/guestfs-actions.pod:4882
15740 msgid ""
15741 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15742 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15743 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15744 msgstr ""
15745
15746 # type: =head2
15747 #. type: =head2
15748 #: ../src/guestfs-actions.pod:4892
15749 msgid "guestfs_part_init"
15750 msgstr ""
15751
15752 # type: verbatim
15753 #. type: verbatim
15754 #: ../src/guestfs-actions.pod:4894
15755 #, no-wrap
15756 msgid ""
15757 " int\n"
15758 " guestfs_part_init (guestfs_h *g,\n"
15759 "                    const char *device,\n"
15760 "                    const char *parttype);\n"
15761 "\n"
15762 msgstr ""
15763
15764 # type: textblock
15765 #. type: textblock
15766 #: ../src/guestfs-actions.pod:4899 ../fish/guestfish-actions.pod:3273
15767 msgid ""
15768 "This creates an empty partition table on C<device> of one of the partition "
15769 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15770 "(for large disks)."
15771 msgstr ""
15772
15773 # type: textblock
15774 #. type: textblock
15775 #: ../src/guestfs-actions.pod:4903
15776 msgid ""
15777 "Initially there are no partitions.  Following this, you should call "
15778 "C<guestfs_part_add> for each partition required."
15779 msgstr ""
15780
15781 # type: textblock
15782 #. type: textblock
15783 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3280
15784 msgid "Possible values for C<parttype> are:"
15785 msgstr ""
15786
15787 # type: =item
15788 #. type: =item
15789 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3284
15790 msgid "B<efi> | B<gpt>"
15791 msgstr ""
15792
15793 # type: textblock
15794 #. type: textblock
15795 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3286
15796 msgid "Intel EFI / GPT partition table."
15797 msgstr ""
15798
15799 # type: textblock
15800 #. type: textblock
15801 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3288
15802 msgid ""
15803 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15804 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15805 "the C<mbr> format."
15806 msgstr ""
15807
15808 # type: =item
15809 #. type: =item
15810 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3292
15811 msgid "B<mbr> | B<msdos>"
15812 msgstr ""
15813
15814 # type: textblock
15815 #. type: textblock
15816 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3294
15817 msgid ""
15818 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15819 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15820 "TB.  For large disks we recommend using C<gpt>."
15821 msgstr ""
15822
15823 # type: textblock
15824 #. type: textblock
15825 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3301
15826 msgid ""
15827 "Other partition table types that may work but are not supported include:"
15828 msgstr ""
15829
15830 # type: =item
15831 #. type: =item
15832 #: ../src/guestfs-actions.pod:4932 ../fish/guestfish-actions.pod:3306
15833 msgid "B<aix>"
15834 msgstr ""
15835
15836 # type: textblock
15837 #. type: textblock
15838 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3308
15839 msgid "AIX disk labels."
15840 msgstr ""
15841
15842 # type: =item
15843 #. type: =item
15844 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3310
15845 msgid "B<amiga> | B<rdb>"
15846 msgstr ""
15847
15848 # type: textblock
15849 #. type: textblock
15850 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3312
15851 msgid "Amiga \"Rigid Disk Block\" format."
15852 msgstr ""
15853
15854 # type: =item
15855 #. type: =item
15856 #: ../src/guestfs-actions.pod:4940 ../fish/guestfish-actions.pod:3314
15857 msgid "B<bsd>"
15858 msgstr ""
15859
15860 # type: textblock
15861 #. type: textblock
15862 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3316
15863 msgid "BSD disk labels."
15864 msgstr ""
15865
15866 # type: =item
15867 #. type: =item
15868 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3318
15869 msgid "B<dasd>"
15870 msgstr ""
15871
15872 # type: textblock
15873 #. type: textblock
15874 #: ../src/guestfs-actions.pod:4946 ../fish/guestfish-actions.pod:3320
15875 msgid "DASD, used on IBM mainframes."
15876 msgstr ""
15877
15878 # type: =item
15879 #. type: =item
15880 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3322
15881 msgid "B<dvh>"
15882 msgstr ""
15883
15884 # type: textblock
15885 #. type: textblock
15886 #: ../src/guestfs-actions.pod:4950 ../fish/guestfish-actions.pod:3324
15887 msgid "MIPS/SGI volumes."
15888 msgstr ""
15889
15890 # type: =item
15891 #. type: =item
15892 #: ../src/guestfs-actions.pod:4952 ../fish/guestfish-actions.pod:3326
15893 msgid "B<mac>"
15894 msgstr ""
15895
15896 # type: textblock
15897 #. type: textblock
15898 #: ../src/guestfs-actions.pod:4954 ../fish/guestfish-actions.pod:3328
15899 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15900 msgstr ""
15901
15902 # type: =item
15903 #. type: =item
15904 #: ../src/guestfs-actions.pod:4956 ../fish/guestfish-actions.pod:3330
15905 msgid "B<pc98>"
15906 msgstr ""
15907
15908 # type: textblock
15909 #. type: textblock
15910 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3332
15911 msgid "NEC PC-98 format, common in Japan apparently."
15912 msgstr ""
15913
15914 # type: =item
15915 #. type: =item
15916 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3334
15917 msgid "B<sun>"
15918 msgstr ""
15919
15920 # type: textblock
15921 #. type: textblock
15922 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3336
15923 msgid "Sun disk labels."
15924 msgstr ""
15925
15926 # type: =head2
15927 #. type: =head2
15928 #: ../src/guestfs-actions.pod:4970
15929 msgid "guestfs_part_list"
15930 msgstr ""
15931
15932 # type: verbatim
15933 #. type: verbatim
15934 #: ../src/guestfs-actions.pod:4972
15935 #, no-wrap
15936 msgid ""
15937 " struct guestfs_partition_list *\n"
15938 " guestfs_part_list (guestfs_h *g,\n"
15939 "                    const char *device);\n"
15940 "\n"
15941 msgstr ""
15942
15943 # type: textblock
15944 #. type: textblock
15945 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3344
15946 msgid ""
15947 "This command parses the partition table on C<device> and returns the list of "
15948 "partitions found."
15949 msgstr ""
15950
15951 # type: textblock
15952 #. type: textblock
15953 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3347
15954 msgid "The fields in the returned structure are:"
15955 msgstr ""
15956
15957 # type: =item
15958 #. type: =item
15959 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3351
15960 msgid "B<part_num>"
15961 msgstr ""
15962
15963 # type: textblock
15964 #. type: textblock
15965 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3353
15966 msgid "Partition number, counting from 1."
15967 msgstr ""
15968
15969 # type: =item
15970 #. type: =item
15971 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3355
15972 msgid "B<part_start>"
15973 msgstr ""
15974
15975 # type: textblock
15976 #. type: textblock
15977 #: ../src/guestfs-actions.pod:4989
15978 msgid ""
15979 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15980 "the device's sector size, see C<guestfs_blockdev_getss>."
15981 msgstr ""
15982
15983 # type: =item
15984 #. type: =item
15985 #: ../src/guestfs-actions.pod:4992 ../fish/guestfish-actions.pod:3360
15986 msgid "B<part_end>"
15987 msgstr ""
15988
15989 # type: textblock
15990 #. type: textblock
15991 #: ../src/guestfs-actions.pod:4994 ../fish/guestfish-actions.pod:3362
15992 msgid "End of the partition in bytes."
15993 msgstr ""
15994
15995 # type: =item
15996 #. type: =item
15997 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3364
15998 msgid "B<part_size>"
15999 msgstr ""
16000
16001 # type: textblock
16002 #. type: textblock
16003 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3366
16004 msgid "Size of the partition in bytes."
16005 msgstr ""
16006
16007 # type: textblock
16008 #. type: textblock
16009 #: ../src/guestfs-actions.pod:5002
16010 msgid ""
16011 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16012 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16013 "use>."
16014 msgstr ""
16015
16016 # type: =head2
16017 #. type: =head2
16018 #: ../src/guestfs-actions.pod:5008
16019 msgid "guestfs_part_set_bootable"
16020 msgstr ""
16021
16022 # type: verbatim
16023 #. type: verbatim
16024 #: ../src/guestfs-actions.pod:5010
16025 #, no-wrap
16026 msgid ""
16027 " int\n"
16028 " guestfs_part_set_bootable (guestfs_h *g,\n"
16029 "                            const char *device,\n"
16030 "                            int partnum,\n"
16031 "                            int bootable);\n"
16032 "\n"
16033 msgstr ""
16034
16035 # type: textblock
16036 #. type: textblock
16037 #: ../src/guestfs-actions.pod:5016 ../fish/guestfish-actions.pod:3374
16038 msgid ""
16039 "This sets the bootable flag on partition numbered C<partnum> on device "
16040 "C<device>.  Note that partitions are numbered from 1."
16041 msgstr ""
16042
16043 # type: textblock
16044 #. type: textblock
16045 #: ../src/guestfs-actions.pod:5019 ../fish/guestfish-actions.pod:3377
16046 msgid ""
16047 "The bootable flag is used by some operating systems (notably Windows) to "
16048 "determine which partition to boot from.  It is by no means universally "
16049 "recognized."
16050 msgstr ""
16051
16052 # type: =head2
16053 #. type: =head2
16054 #: ../src/guestfs-actions.pod:5027
16055 msgid "guestfs_part_set_mbr_id"
16056 msgstr ""
16057
16058 # type: verbatim
16059 #. type: verbatim
16060 #: ../src/guestfs-actions.pod:5029
16061 #, no-wrap
16062 msgid ""
16063 " int\n"
16064 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16065 "                          const char *device,\n"
16066 "                          int partnum,\n"
16067 "                          int idbyte);\n"
16068 "\n"
16069 msgstr ""
16070
16071 # type: textblock
16072 #. type: textblock
16073 #: ../src/guestfs-actions.pod:5035 ../fish/guestfish-actions.pod:3385
16074 msgid ""
16075 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16076 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16077 "documentation are in fact hexadecimal numbers, but usually documented "
16078 "without any leading \"0x\" which might be confusing."
16079 msgstr ""
16080
16081 # type: =head2
16082 #. type: =head2
16083 #: ../src/guestfs-actions.pod:5049
16084 msgid "guestfs_part_set_name"
16085 msgstr ""
16086
16087 # type: verbatim
16088 #. type: verbatim
16089 #: ../src/guestfs-actions.pod:5051
16090 #, no-wrap
16091 msgid ""
16092 " int\n"
16093 " guestfs_part_set_name (guestfs_h *g,\n"
16094 "                        const char *device,\n"
16095 "                        int partnum,\n"
16096 "                        const char *name);\n"
16097 "\n"
16098 msgstr ""
16099
16100 # type: textblock
16101 #. type: textblock
16102 #: ../src/guestfs-actions.pod:5057 ../fish/guestfish-actions.pod:3399
16103 msgid ""
16104 "This sets the partition name on partition numbered C<partnum> on device "
16105 "C<device>.  Note that partitions are numbered from 1."
16106 msgstr ""
16107
16108 # type: textblock
16109 #. type: textblock
16110 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3402
16111 msgid ""
16112 "The partition name can only be set on certain types of partition table.  "
16113 "This works on C<gpt> but not on C<mbr> partitions."
16114 msgstr ""
16115
16116 # type: =head2
16117 #. type: =head2
16118 #: ../src/guestfs-actions.pod:5067
16119 msgid "guestfs_part_to_dev"
16120 msgstr ""
16121
16122 # type: verbatim
16123 #. type: verbatim
16124 #: ../src/guestfs-actions.pod:5069
16125 #, no-wrap
16126 msgid ""
16127 " char *\n"
16128 " guestfs_part_to_dev (guestfs_h *g,\n"
16129 "                      const char *partition);\n"
16130 "\n"
16131 msgstr ""
16132
16133 # type: textblock
16134 #. type: textblock
16135 #: ../src/guestfs-actions.pod:5073 ../fish/guestfish-actions.pod:3409
16136 msgid ""
16137 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16138 "partition number, returning the device name (eg. \"/dev/sdb\")."
16139 msgstr ""
16140
16141 # type: textblock
16142 #. type: textblock
16143 #: ../src/guestfs-actions.pod:5077
16144 msgid ""
16145 "The named partition must exist, for example as a string returned from "
16146 "C<guestfs_list_partitions>."
16147 msgstr ""
16148
16149 # type: =head2
16150 #. type: =head2
16151 #: ../src/guestfs-actions.pod:5085
16152 msgid "guestfs_ping_daemon"
16153 msgstr ""
16154
16155 # type: verbatim
16156 #. type: verbatim
16157 #: ../src/guestfs-actions.pod:5087
16158 #, no-wrap
16159 msgid ""
16160 " int\n"
16161 " guestfs_ping_daemon (guestfs_h *g);\n"
16162 "\n"
16163 msgstr ""
16164
16165 # type: textblock
16166 #. type: textblock
16167 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3420
16168 msgid ""
16169 "This is a test probe into the guestfs daemon running inside the qemu "
16170 "subprocess.  Calling this function checks that the daemon responds to the "
16171 "ping message, without affecting the daemon or attached block device(s) in "
16172 "any other way."
16173 msgstr ""
16174
16175 # type: =head2
16176 #. type: =head2
16177 #: ../src/guestfs-actions.pod:5099
16178 msgid "guestfs_pread"
16179 msgstr ""
16180
16181 # type: verbatim
16182 #. type: verbatim
16183 #: ../src/guestfs-actions.pod:5101
16184 #, no-wrap
16185 msgid ""
16186 " char *\n"
16187 " guestfs_pread (guestfs_h *g,\n"
16188 "                const char *path,\n"
16189 "                int count,\n"
16190 "                int64_t offset,\n"
16191 "                size_t *size_r);\n"
16192 "\n"
16193 msgstr ""
16194
16195 # type: textblock
16196 #. type: textblock
16197 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3429
16198 msgid ""
16199 "This command lets you read part of a file.  It reads C<count> bytes of the "
16200 "file, starting at C<offset>, from file C<path>."
16201 msgstr ""
16202
16203 # type: textblock
16204 #. type: textblock
16205 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
16206 #: ../fish/guestfish-actions.pod:3432 ../fish/guestfish-actions.pod:3447
16207 msgid ""
16208 "This may read fewer bytes than requested.  For further details see the "
16209 "L<pread(2)> system call."
16210 msgstr ""
16211
16212 # type: textblock
16213 #. type: textblock
16214 #: ../src/guestfs-actions.pod:5114
16215 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16216 msgstr ""
16217
16218 # type: =head2
16219 #. type: =head2
16220 #: ../src/guestfs-actions.pod:5125
16221 msgid "guestfs_pread_device"
16222 msgstr ""
16223
16224 # type: verbatim
16225 #. type: verbatim
16226 #: ../src/guestfs-actions.pod:5127
16227 #, no-wrap
16228 msgid ""
16229 " char *\n"
16230 " guestfs_pread_device (guestfs_h *g,\n"
16231 "                       const char *device,\n"
16232 "                       int count,\n"
16233 "                       int64_t offset,\n"
16234 "                       size_t *size_r);\n"
16235 "\n"
16236 msgstr ""
16237
16238 # type: textblock
16239 #. type: textblock
16240 #: ../src/guestfs-actions.pod:5134 ../fish/guestfish-actions.pod:3444
16241 msgid ""
16242 "This command lets you read part of a file.  It reads C<count> bytes of "
16243 "C<device>, starting at C<offset>."
16244 msgstr ""
16245
16246 # type: textblock
16247 #. type: textblock
16248 #: ../src/guestfs-actions.pod:5140
16249 msgid "See also C<guestfs_pread>."
16250 msgstr ""
16251
16252 # type: textblock
16253 #. type: textblock
16254 #: ../src/guestfs-actions.pod:5149
16255 msgid "(Added in 1.5.21)"
16256 msgstr ""
16257
16258 # type: =head2
16259 #. type: =head2
16260 #: ../src/guestfs-actions.pod:5151
16261 msgid "guestfs_pvcreate"
16262 msgstr ""
16263
16264 # type: verbatim
16265 #. type: verbatim
16266 #: ../src/guestfs-actions.pod:5153
16267 #, no-wrap
16268 msgid ""
16269 " int\n"
16270 " guestfs_pvcreate (guestfs_h *g,\n"
16271 "                   const char *device);\n"
16272 "\n"
16273 msgstr ""
16274
16275 # type: textblock
16276 #. type: textblock
16277 #: ../src/guestfs-actions.pod:5157 ../fish/guestfish-actions.pod:3459
16278 msgid ""
16279 "This creates an LVM physical volume on the named C<device>, where C<device> "
16280 "should usually be a partition name such as C</dev/sda1>."
16281 msgstr ""
16282
16283 # type: =head2
16284 #. type: =head2
16285 #: ../src/guestfs-actions.pod:5165
16286 msgid "guestfs_pvremove"
16287 msgstr ""
16288
16289 # type: verbatim
16290 #. type: verbatim
16291 #: ../src/guestfs-actions.pod:5167
16292 #, no-wrap
16293 msgid ""
16294 " int\n"
16295 " guestfs_pvremove (guestfs_h *g,\n"
16296 "                   const char *device);\n"
16297 "\n"
16298 msgstr ""
16299
16300 # type: textblock
16301 #. type: textblock
16302 #: ../src/guestfs-actions.pod:5171 ../fish/guestfish-actions.pod:3467
16303 msgid ""
16304 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16305 "it."
16306 msgstr ""
16307
16308 # type: textblock
16309 #. type: textblock
16310 #: ../src/guestfs-actions.pod:5174 ../fish/guestfish-actions.pod:3470
16311 msgid ""
16312 "The implementation uses the C<pvremove> command which refuses to wipe "
16313 "physical volumes that contain any volume groups, so you have to remove those "
16314 "first."
16315 msgstr ""
16316
16317 # type: =head2
16318 #. type: =head2
16319 #: ../src/guestfs-actions.pod:5182
16320 msgid "guestfs_pvresize"
16321 msgstr ""
16322
16323 # type: verbatim
16324 #. type: verbatim
16325 #: ../src/guestfs-actions.pod:5184
16326 #, no-wrap
16327 msgid ""
16328 " int\n"
16329 " guestfs_pvresize (guestfs_h *g,\n"
16330 "                   const char *device);\n"
16331 "\n"
16332 msgstr ""
16333
16334 # type: textblock
16335 #. type: textblock
16336 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3478
16337 msgid ""
16338 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16339 "the new size of the underlying device."
16340 msgstr ""
16341
16342 # type: =head2
16343 #. type: =head2
16344 #: ../src/guestfs-actions.pod:5195
16345 msgid "guestfs_pvresize_size"
16346 msgstr ""
16347
16348 # type: verbatim
16349 #. type: verbatim
16350 #: ../src/guestfs-actions.pod:5197
16351 #, no-wrap
16352 msgid ""
16353 " int\n"
16354 " guestfs_pvresize_size (guestfs_h *g,\n"
16355 "                        const char *device,\n"
16356 "                        int64_t size);\n"
16357 "\n"
16358 msgstr ""
16359
16360 # type: textblock
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:5202
16363 msgid ""
16364 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16365 "specify the new size (in bytes) explicitly."
16366 msgstr ""
16367
16368 # type: =head2
16369 #. type: =head2
16370 #: ../src/guestfs-actions.pod:5209
16371 msgid "guestfs_pvs"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #. type: verbatim
16376 #: ../src/guestfs-actions.pod:5211
16377 #, no-wrap
16378 msgid ""
16379 " char **\n"
16380 " guestfs_pvs (guestfs_h *g);\n"
16381 "\n"
16382 msgstr ""
16383
16384 # type: textblock
16385 #. type: textblock
16386 #: ../src/guestfs-actions.pod:5214 ../fish/guestfish-actions.pod:3492
16387 msgid ""
16388 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16389 "(8)> command."
16390 msgstr ""
16391
16392 # type: textblock
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:5217 ../fish/guestfish-actions.pod:3495
16395 msgid ""
16396 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16397 "sda2>)."
16398 msgstr ""
16399
16400 # type: textblock
16401 #. type: textblock
16402 #: ../src/guestfs-actions.pod:5220
16403 msgid "See also C<guestfs_pvs_full>."
16404 msgstr ""
16405
16406 # type: =head2
16407 #. type: =head2
16408 #: ../src/guestfs-actions.pod:5228
16409 msgid "guestfs_pvs_full"
16410 msgstr ""
16411
16412 # type: verbatim
16413 #. type: verbatim
16414 #: ../src/guestfs-actions.pod:5230
16415 #, no-wrap
16416 msgid ""
16417 " struct guestfs_lvm_pv_list *\n"
16418 " guestfs_pvs_full (guestfs_h *g);\n"
16419 "\n"
16420 msgstr ""
16421
16422 # type: textblock
16423 #. type: textblock
16424 #: ../src/guestfs-actions.pod:5233 ../fish/guestfish-actions.pod:3504
16425 msgid ""
16426 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16427 "(8)> command.  The \"full\" version includes all fields."
16428 msgstr ""
16429
16430 # type: textblock
16431 #. type: textblock
16432 #: ../src/guestfs-actions.pod:5236
16433 msgid ""
16434 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16435 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16436 msgstr ""
16437
16438 # type: =head2
16439 #. type: =head2
16440 #: ../src/guestfs-actions.pod:5242
16441 msgid "guestfs_pvuuid"
16442 msgstr ""
16443
16444 # type: verbatim
16445 #. type: verbatim
16446 #: ../src/guestfs-actions.pod:5244
16447 #, no-wrap
16448 msgid ""
16449 " char *\n"
16450 " guestfs_pvuuid (guestfs_h *g,\n"
16451 "                 const char *device);\n"
16452 "\n"
16453 msgstr ""
16454
16455 # type: textblock
16456 #. type: textblock
16457 #: ../src/guestfs-actions.pod:5248 ../fish/guestfish-actions.pod:3511
16458 msgid "This command returns the UUID of the LVM PV C<device>."
16459 msgstr ""
16460
16461 # type: =head2
16462 #. type: =head2
16463 #: ../src/guestfs-actions.pod:5255
16464 msgid "guestfs_pwrite"
16465 msgstr ""
16466
16467 # type: verbatim
16468 #. type: verbatim
16469 #: ../src/guestfs-actions.pod:5257
16470 #, no-wrap
16471 msgid ""
16472 " int\n"
16473 " guestfs_pwrite (guestfs_h *g,\n"
16474 "                 const char *path,\n"
16475 "                 const char *content,\n"
16476 "                 size_t content_size,\n"
16477 "                 int64_t offset);\n"
16478 "\n"
16479 msgstr ""
16480
16481 # type: textblock
16482 #. type: textblock
16483 #: ../src/guestfs-actions.pod:5264 ../fish/guestfish-actions.pod:3517
16484 msgid ""
16485 "This command writes to part of a file.  It writes the data buffer C<content> "
16486 "to the file C<path> starting at offset C<offset>."
16487 msgstr ""
16488
16489 # type: textblock
16490 #. type: textblock
16491 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3520
16492 msgid ""
16493 "This command implements the L<pwrite(2)> system call, and like that system "
16494 "call it may not write the full data requested.  The return value is the "
16495 "number of bytes that were actually written to the file.  This could even be "
16496 "0, although short writes are unlikely for regular files in ordinary "
16497 "circumstances."
16498 msgstr ""
16499
16500 # type: textblock
16501 #. type: textblock
16502 #: ../src/guestfs-actions.pod:5273
16503 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16504 msgstr ""
16505
16506 # type: =head2
16507 #. type: =head2
16508 #: ../src/guestfs-actions.pod:5282
16509 msgid "guestfs_pwrite_device"
16510 msgstr ""
16511
16512 # type: verbatim
16513 #. type: verbatim
16514 #: ../src/guestfs-actions.pod:5284
16515 #, no-wrap
16516 msgid ""
16517 " int\n"
16518 " guestfs_pwrite_device (guestfs_h *g,\n"
16519 "                        const char *device,\n"
16520 "                        const char *content,\n"
16521 "                        size_t content_size,\n"
16522 "                        int64_t offset);\n"
16523 "\n"
16524 msgstr ""
16525
16526 # type: textblock
16527 #. type: textblock
16528 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3535
16529 msgid ""
16530 "This command writes to part of a device.  It writes the data buffer "
16531 "C<content> to C<device> starting at offset C<offset>."
16532 msgstr ""
16533
16534 # type: textblock
16535 #. type: textblock
16536 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3538
16537 msgid ""
16538 "This command implements the L<pwrite(2)> system call, and like that system "
16539 "call it may not write the full data requested (although short writes to disk "
16540 "devices and partitions are probably impossible with standard Linux kernels)."
16541 msgstr ""
16542
16543 # type: textblock
16544 #. type: textblock
16545 #: ../src/guestfs-actions.pod:5299
16546 msgid "See also C<guestfs_pwrite>."
16547 msgstr ""
16548
16549 # type: textblock
16550 #. type: textblock
16551 #: ../src/guestfs-actions.pod:5306
16552 msgid "(Added in 1.5.20)"
16553 msgstr ""
16554
16555 # type: =head2
16556 #. type: =head2
16557 #: ../src/guestfs-actions.pod:5308
16558 msgid "guestfs_read_file"
16559 msgstr ""
16560
16561 # type: verbatim
16562 #. type: verbatim
16563 #: ../src/guestfs-actions.pod:5310
16564 #, no-wrap
16565 msgid ""
16566 " char *\n"
16567 " guestfs_read_file (guestfs_h *g,\n"
16568 "                    const char *path,\n"
16569 "                    size_t *size_r);\n"
16570 "\n"
16571 msgstr ""
16572
16573 # type: textblock
16574 #. type: textblock
16575 #: ../src/guestfs-actions.pod:5315 ../fish/guestfish-actions.pod:3552
16576 msgid "This calls returns the contents of the file C<path> as a buffer."
16577 msgstr ""
16578
16579 # type: textblock
16580 #. type: textblock
16581 #: ../src/guestfs-actions.pod:5318
16582 msgid ""
16583 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16584 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16585 "function is limited in the total size of file that can be handled."
16586 msgstr ""
16587
16588 # type: textblock
16589 #. type: textblock
16590 #: ../src/guestfs-actions.pod:5330
16591 msgid "(Added in 1.0.63)"
16592 msgstr ""
16593
16594 # type: =head2
16595 #. type: =head2
16596 #: ../src/guestfs-actions.pod:5332
16597 msgid "guestfs_read_lines"
16598 msgstr ""
16599
16600 # type: verbatim
16601 #. type: verbatim
16602 #: ../src/guestfs-actions.pod:5334
16603 #, no-wrap
16604 msgid ""
16605 " char **\n"
16606 " guestfs_read_lines (guestfs_h *g,\n"
16607 "                     const char *path);\n"
16608 "\n"
16609 msgstr ""
16610
16611 # type: textblock
16612 #. type: textblock
16613 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:3569
16614 msgid ""
16615 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16616 "C<CRLF> character sequences are I<not> returned."
16617 msgstr ""
16618
16619 # type: textblock
16620 #. type: textblock
16621 #: ../src/guestfs-actions.pod:5343
16622 msgid ""
16623 "Note that this function cannot correctly handle binary files (specifically, "
16624 "files containing C<\\0> character which is treated as end of line).  For "
16625 "those you need to use the C<guestfs_read_file> function which has a more "
16626 "complex interface."
16627 msgstr ""
16628
16629 # type: =head2
16630 #. type: =head2
16631 #: ../src/guestfs-actions.pod:5354
16632 msgid "guestfs_readdir"
16633 msgstr ""
16634
16635 # type: verbatim
16636 #. type: verbatim
16637 #: ../src/guestfs-actions.pod:5356
16638 #, no-wrap
16639 msgid ""
16640 " struct guestfs_dirent_list *\n"
16641 " guestfs_readdir (guestfs_h *g,\n"
16642 "                  const char *dir);\n"
16643 "\n"
16644 msgstr ""
16645
16646 # type: textblock
16647 #. type: textblock
16648 #: ../src/guestfs-actions.pod:5360 ../fish/guestfish-actions.pod:3581
16649 msgid "This returns the list of directory entries in directory C<dir>."
16650 msgstr ""
16651
16652 # type: textblock
16653 #. type: textblock
16654 #: ../src/guestfs-actions.pod:5362 ../fish/guestfish-actions.pod:3583
16655 msgid ""
16656 "All entries in the directory are returned, including C<.> and C<..>.  The "
16657 "entries are I<not> sorted, but returned in the same order as the underlying "
16658 "filesystem."
16659 msgstr ""
16660
16661 # type: textblock
16662 #. type: textblock
16663 #: ../src/guestfs-actions.pod:5366 ../fish/guestfish-actions.pod:3587
16664 msgid ""
16665 "Also this call returns basic file type information about each file.  The "
16666 "C<ftyp> field will contain one of the following characters:"
16667 msgstr ""
16668
16669 # type: =item
16670 #. type: =item
16671 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3592
16672 msgid "'b'"
16673 msgstr ""
16674
16675 # type: textblock
16676 #. type: textblock
16677 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3594
16678 msgid "Block special"
16679 msgstr ""
16680
16681 # type: =item
16682 #. type: =item
16683 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3596
16684 msgid "'c'"
16685 msgstr ""
16686
16687 # type: textblock
16688 #. type: textblock
16689 #: ../src/guestfs-actions.pod:5377 ../fish/guestfish-actions.pod:3598
16690 msgid "Char special"
16691 msgstr ""
16692
16693 # type: =item
16694 #. type: =item
16695 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3600
16696 msgid "'d'"
16697 msgstr ""
16698
16699 # type: textblock
16700 #. type: textblock
16701 #: ../src/guestfs-actions.pod:5381 ../fish/guestfish-actions.pod:3602
16702 msgid "Directory"
16703 msgstr ""
16704
16705 # type: =item
16706 #. type: =item
16707 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3604
16708 msgid "'f'"
16709 msgstr ""
16710
16711 # type: textblock
16712 #. type: textblock
16713 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3606
16714 msgid "FIFO (named pipe)"
16715 msgstr ""
16716
16717 # type: =item
16718 #. type: =item
16719 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:3608
16720 msgid "'l'"
16721 msgstr ""
16722
16723 # type: textblock
16724 #. type: textblock
16725 #: ../src/guestfs-actions.pod:5389 ../fish/guestfish-actions.pod:3610
16726 msgid "Symbolic link"
16727 msgstr ""
16728
16729 # type: =item
16730 #. type: =item
16731 #: ../src/guestfs-actions.pod:5391 ../fish/guestfish-actions.pod:3612
16732 msgid "'r'"
16733 msgstr ""
16734
16735 # type: textblock
16736 #. type: textblock
16737 #: ../src/guestfs-actions.pod:5393 ../fish/guestfish-actions.pod:3614
16738 msgid "Regular file"
16739 msgstr ""
16740
16741 # type: =item
16742 #. type: =item
16743 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3616
16744 msgid "'s'"
16745 msgstr ""
16746
16747 # type: textblock
16748 #. type: textblock
16749 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3618
16750 msgid "Socket"
16751 msgstr ""
16752
16753 # type: =item
16754 #. type: =item
16755 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3620
16756 msgid "'u'"
16757 msgstr ""
16758
16759 # type: textblock
16760 #. type: textblock
16761 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3622
16762 msgid "Unknown file type"
16763 msgstr ""
16764
16765 # type: =item
16766 #. type: =item
16767 #: ../src/guestfs-actions.pod:5403 ../fish/guestfish-actions.pod:3624
16768 msgid "'?'"
16769 msgstr ""
16770
16771 # type: textblock
16772 #. type: textblock
16773 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3626
16774 msgid ""
16775 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16776 msgstr ""
16777
16778 # type: textblock
16779 #. type: textblock
16780 #: ../src/guestfs-actions.pod:5410
16781 msgid ""
16782 "This function is primarily intended for use by programs.  To get a simple "
16783 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16784 "consumption, use C<guestfs_ll>."
16785 msgstr ""
16786
16787 # type: textblock
16788 #. type: textblock
16789 #: ../src/guestfs-actions.pod:5414
16790 msgid ""
16791 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16792 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16793 msgstr ""
16794
16795 # type: =head2
16796 #. type: =head2
16797 #: ../src/guestfs-actions.pod:5420
16798 msgid "guestfs_readlink"
16799 msgstr ""
16800
16801 # type: verbatim
16802 #. type: verbatim
16803 #: ../src/guestfs-actions.pod:5422
16804 #, no-wrap
16805 msgid ""
16806 " char *\n"
16807 " guestfs_readlink (guestfs_h *g,\n"
16808 "                   const char *path);\n"
16809 "\n"
16810 msgstr ""
16811
16812 # type: textblock
16813 #. type: textblock
16814 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3639
16815 msgid "This command reads the target of a symbolic link."
16816 msgstr ""
16817
16818 # type: =head2
16819 #. type: =head2
16820 #: ../src/guestfs-actions.pod:5433
16821 msgid "guestfs_readlinklist"
16822 msgstr ""
16823
16824 # type: verbatim
16825 #. type: verbatim
16826 #: ../src/guestfs-actions.pod:5435
16827 #, no-wrap
16828 msgid ""
16829 " char **\n"
16830 " guestfs_readlinklist (guestfs_h *g,\n"
16831 "                       const char *path,\n"
16832 "                       char *const *names);\n"
16833 "\n"
16834 msgstr ""
16835
16836 # type: textblock
16837 #. type: textblock
16838 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3645
16839 msgid ""
16840 "This call allows you to do a C<readlink> operation on multiple files, where "
16841 "all files are in the directory C<path>.  C<names> is the list of files from "
16842 "this directory."
16843 msgstr ""
16844
16845 # type: textblock
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3649
16848 msgid ""
16849 "On return you get a list of strings, with a one-to-one correspondence to the "
16850 "C<names> list.  Each string is the value of the symbolic link."
16851 msgstr ""
16852
16853 # type: textblock
16854 #. type: textblock
16855 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3653
16856 msgid ""
16857 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16858 "result string is the empty string C<\"\">.  However the whole operation is "
16859 "completed even if there were C<readlink(2)> errors, and so you can call this "
16860 "function with names where you don't know if they are symbolic links already "
16861 "(albeit slightly less efficient)."
16862 msgstr ""
16863
16864 # type: textblock
16865 #. type: textblock
16866 #: ../src/guestfs-actions.pod:5455 ../fish/guestfish-actions.pod:3660
16867 msgid ""
16868 "This call is intended for programs that want to efficiently list a directory "
16869 "contents without making many round-trips.  Very long directory listings "
16870 "might cause the protocol message size to be exceeded, causing this call to "
16871 "fail.  The caller must split up such requests into smaller groups of names."
16872 msgstr ""
16873
16874 # type: =head2
16875 #. type: =head2
16876 #: ../src/guestfs-actions.pod:5468
16877 msgid "guestfs_realpath"
16878 msgstr ""
16879
16880 # type: verbatim
16881 #. type: verbatim
16882 #: ../src/guestfs-actions.pod:5470
16883 #, no-wrap
16884 msgid ""
16885 " char *\n"
16886 " guestfs_realpath (guestfs_h *g,\n"
16887 "                   const char *path);\n"
16888 "\n"
16889 msgstr ""
16890
16891 # type: textblock
16892 #. type: textblock
16893 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3671
16894 msgid ""
16895 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16896 "has no C<.>, C<..> or symbolic link path elements."
16897 msgstr ""
16898
16899 # type: =head2
16900 #. type: =head2
16901 #: ../src/guestfs-actions.pod:5482
16902 msgid "guestfs_removexattr"
16903 msgstr ""
16904
16905 # type: verbatim
16906 #. type: verbatim
16907 #: ../src/guestfs-actions.pod:5484
16908 #, no-wrap
16909 msgid ""
16910 " int\n"
16911 " guestfs_removexattr (guestfs_h *g,\n"
16912 "                      const char *xattr,\n"
16913 "                      const char *path);\n"
16914 "\n"
16915 msgstr ""
16916
16917 # type: textblock
16918 #. type: textblock
16919 #: ../src/guestfs-actions.pod:5489 ../fish/guestfish-actions.pod:3678
16920 msgid ""
16921 "This call removes the extended attribute named C<xattr> of the file C<path>."
16922 msgstr ""
16923
16924 # type: textblock
16925 #. type: textblock
16926 #: ../src/guestfs-actions.pod:5492
16927 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16928 msgstr ""
16929
16930 # type: =head2
16931 #. type: =head2
16932 #: ../src/guestfs-actions.pod:5498
16933 msgid "guestfs_resize2fs"
16934 msgstr ""
16935
16936 # type: verbatim
16937 #. type: verbatim
16938 #: ../src/guestfs-actions.pod:5500
16939 #, no-wrap
16940 msgid ""
16941 " int\n"
16942 " guestfs_resize2fs (guestfs_h *g,\n"
16943 "                    const char *device);\n"
16944 "\n"
16945 msgstr ""
16946
16947 # type: textblock
16948 #. type: textblock
16949 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:3687
16950 msgid ""
16951 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16952 "underlying device."
16953 msgstr ""
16954
16955 # type: textblock
16956 #. type: textblock
16957 #: ../src/guestfs-actions.pod:5507
16958 msgid ""
16959 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16960 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16961 "sometimes gives an error about this and sometimes not.  In any case, it is "
16962 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16963 msgstr ""
16964
16965 #. type: =head2
16966 #: ../src/guestfs-actions.pod:5517
16967 msgid "guestfs_resize2fs_M"
16968 msgstr ""
16969
16970 #. type: verbatim
16971 #: ../src/guestfs-actions.pod:5519
16972 #, no-wrap
16973 msgid ""
16974 " int\n"
16975 " guestfs_resize2fs_M (guestfs_h *g,\n"
16976 "                      const char *device);\n"
16977 "\n"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../src/guestfs-actions.pod:5523
16982 msgid ""
16983 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
16984 "resized to its minimum size.  This works like the C<-M> option to the "
16985 "C<resize2fs> command."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../src/guestfs-actions.pod:5527
16990 msgid ""
16991 "To get the resulting size of the filesystem you should call "
16992 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
16993 "These two numbers, multiplied together, give the resulting size of the "
16994 "minimal filesystem in bytes."
16995 msgstr ""
16996
16997 # type: =head2
16998 #. type: =head2
16999 #: ../src/guestfs-actions.pod:5534
17000 msgid "guestfs_resize2fs_size"
17001 msgstr ""
17002
17003 # type: verbatim
17004 #. type: verbatim
17005 #: ../src/guestfs-actions.pod:5536
17006 #, no-wrap
17007 msgid ""
17008 " int\n"
17009 " guestfs_resize2fs_size (guestfs_h *g,\n"
17010 "                         const char *device,\n"
17011 "                         int64_t size);\n"
17012 "\n"
17013 msgstr ""
17014
17015 # type: textblock
17016 #. type: textblock
17017 #: ../src/guestfs-actions.pod:5541
17018 msgid ""
17019 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17020 "to specify the new size (in bytes) explicitly."
17021 msgstr ""
17022
17023 # type: =head2
17024 #. type: =head2
17025 #: ../src/guestfs-actions.pod:5548
17026 msgid "guestfs_rm"
17027 msgstr ""
17028
17029 # type: verbatim
17030 #. type: verbatim
17031 #: ../src/guestfs-actions.pod:5550
17032 #, no-wrap
17033 msgid ""
17034 " int\n"
17035 " guestfs_rm (guestfs_h *g,\n"
17036 "             const char *path);\n"
17037 "\n"
17038 msgstr ""
17039
17040 # type: textblock
17041 #. type: textblock
17042 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3720
17043 msgid "Remove the single file C<path>."
17044 msgstr ""
17045
17046 # type: =head2
17047 #. type: =head2
17048 #: ../src/guestfs-actions.pod:5560
17049 msgid "guestfs_rm_rf"
17050 msgstr ""
17051
17052 # type: verbatim
17053 #. type: verbatim
17054 #: ../src/guestfs-actions.pod:5562
17055 #, no-wrap
17056 msgid ""
17057 " int\n"
17058 " guestfs_rm_rf (guestfs_h *g,\n"
17059 "                const char *path);\n"
17060 "\n"
17061 msgstr ""
17062
17063 # type: textblock
17064 #. type: textblock
17065 #: ../src/guestfs-actions.pod:5566 ../fish/guestfish-actions.pod:3726
17066 msgid ""
17067 "Remove the file or directory C<path>, recursively removing the contents if "
17068 "its a directory.  This is like the C<rm -rf> shell command."
17069 msgstr ""
17070
17071 # type: =head2
17072 #. type: =head2
17073 #: ../src/guestfs-actions.pod:5574
17074 msgid "guestfs_rmdir"
17075 msgstr ""
17076
17077 # type: verbatim
17078 #. type: verbatim
17079 #: ../src/guestfs-actions.pod:5576
17080 #, no-wrap
17081 msgid ""
17082 " int\n"
17083 " guestfs_rmdir (guestfs_h *g,\n"
17084 "                const char *path);\n"
17085 "\n"
17086 msgstr ""
17087
17088 # type: textblock
17089 #. type: textblock
17090 #: ../src/guestfs-actions.pod:5580 ../fish/guestfish-actions.pod:3734
17091 msgid "Remove the single directory C<path>."
17092 msgstr ""
17093
17094 # type: =head2
17095 #. type: =head2
17096 #: ../src/guestfs-actions.pod:5586
17097 msgid "guestfs_rmmountpoint"
17098 msgstr ""
17099
17100 # type: verbatim
17101 #. type: verbatim
17102 #: ../src/guestfs-actions.pod:5588
17103 #, no-wrap
17104 msgid ""
17105 " int\n"
17106 " guestfs_rmmountpoint (guestfs_h *g,\n"
17107 "                       const char *exemptpath);\n"
17108 "\n"
17109 msgstr ""
17110
17111 # type: textblock
17112 #. type: textblock
17113 #: ../src/guestfs-actions.pod:5592
17114 msgid ""
17115 "This calls removes a mountpoint that was previously created with "
17116 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17117 msgstr ""
17118
17119 # type: =head2
17120 #. type: =head2
17121 #: ../src/guestfs-actions.pod:5600
17122 msgid "guestfs_scrub_device"
17123 msgstr ""
17124
17125 # type: verbatim
17126 #. type: verbatim
17127 #: ../src/guestfs-actions.pod:5602
17128 #, no-wrap
17129 msgid ""
17130 " int\n"
17131 " guestfs_scrub_device (guestfs_h *g,\n"
17132 "                       const char *device);\n"
17133 "\n"
17134 msgstr ""
17135
17136 # type: textblock
17137 #. type: textblock
17138 #: ../src/guestfs-actions.pod:5606 ../fish/guestfish-actions.pod:3748
17139 msgid ""
17140 "This command writes patterns over C<device> to make data retrieval more "
17141 "difficult."
17142 msgstr ""
17143
17144 # type: textblock
17145 #. type: textblock
17146 #: ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5630
17147 #: ../src/guestfs-actions.pod:5649 ../fish/guestfish-actions.pod:3751
17148 #: ../fish/guestfish-actions.pod:3766 ../fish/guestfish-actions.pod:3779
17149 msgid ""
17150 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17151 "more details."
17152 msgstr ""
17153
17154 # type: textblock
17155 #. type: textblock
17156 #: ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5635
17157 #: ../src/guestfs-actions.pod:5654
17158 msgid "(Added in 1.0.52)"
17159 msgstr ""
17160
17161 # type: =head2
17162 #. type: =head2
17163 #: ../src/guestfs-actions.pod:5619
17164 msgid "guestfs_scrub_file"
17165 msgstr ""
17166
17167 # type: verbatim
17168 #. type: verbatim
17169 #: ../src/guestfs-actions.pod:5621
17170 #, no-wrap
17171 msgid ""
17172 " int\n"
17173 " guestfs_scrub_file (guestfs_h *g,\n"
17174 "                     const char *file);\n"
17175 "\n"
17176 msgstr ""
17177
17178 # type: textblock
17179 #. type: textblock
17180 #: ../src/guestfs-actions.pod:5625 ../fish/guestfish-actions.pod:3761
17181 msgid ""
17182 "This command writes patterns over a file to make data retrieval more "
17183 "difficult."
17184 msgstr ""
17185
17186 # type: textblock
17187 #. type: textblock
17188 #: ../src/guestfs-actions.pod:5628 ../fish/guestfish-actions.pod:3764
17189 msgid "The file is I<removed> after scrubbing."
17190 msgstr ""
17191
17192 # type: =head2
17193 #. type: =head2
17194 #: ../src/guestfs-actions.pod:5637
17195 msgid "guestfs_scrub_freespace"
17196 msgstr ""
17197
17198 # type: verbatim
17199 #. type: verbatim
17200 #: ../src/guestfs-actions.pod:5639
17201 #, no-wrap
17202 msgid ""
17203 " int\n"
17204 " guestfs_scrub_freespace (guestfs_h *g,\n"
17205 "                          const char *dir);\n"
17206 "\n"
17207 msgstr ""
17208
17209 # type: textblock
17210 #. type: textblock
17211 #: ../src/guestfs-actions.pod:5643
17212 msgid ""
17213 "This command creates the directory C<dir> and then fills it with files until "
17214 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17215 "and deletes them.  The intention is to scrub any free space on the partition "
17216 "containing C<dir>."
17217 msgstr ""
17218
17219 # type: =head2
17220 #. type: =head2
17221 #: ../src/guestfs-actions.pod:5656
17222 msgid "guestfs_set_append"
17223 msgstr ""
17224
17225 # type: verbatim
17226 #. type: verbatim
17227 #: ../src/guestfs-actions.pod:5658
17228 #, no-wrap
17229 msgid ""
17230 " int\n"
17231 " guestfs_set_append (guestfs_h *g,\n"
17232 "                     const char *append);\n"
17233 "\n"
17234 msgstr ""
17235
17236 # type: textblock
17237 #. type: textblock
17238 #: ../src/guestfs-actions.pod:5662 ../fish/guestfish-actions.pod:3788
17239 msgid ""
17240 "This function is used to add additional options to the guest kernel command "
17241 "line."
17242 msgstr ""
17243
17244 # type: textblock
17245 #. type: textblock
17246 #: ../src/guestfs-actions.pod:5665 ../fish/guestfish-actions.pod:3791
17247 msgid ""
17248 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17249 "environment variable."
17250 msgstr ""
17251
17252 # type: textblock
17253 #. type: textblock
17254 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3794
17255 msgid ""
17256 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17257 "(libguestfs always adds a few of its own)."
17258 msgstr ""
17259
17260 #. type: =head2
17261 #: ../src/guestfs-actions.pod:5675
17262 msgid "guestfs_set_attach_method"
17263 msgstr ""
17264
17265 #. type: verbatim
17266 #: ../src/guestfs-actions.pod:5677
17267 #, no-wrap
17268 msgid ""
17269 " int\n"
17270 " guestfs_set_attach_method (guestfs_h *g,\n"
17271 "                            const char *attachmethod);\n"
17272 "\n"
17273 msgstr ""
17274
17275 #. type: textblock
17276 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3803
17277 msgid ""
17278 "Set the method that libguestfs uses to connect to the back end guestfsd "
17279 "daemon.  Possible methods are:"
17280 msgstr ""
17281
17282 #. type: textblock
17283 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3810
17284 msgid ""
17285 "Launch an appliance and connect to it.  This is the ordinary method and the "
17286 "default."
17287 msgstr ""
17288
17289 #. type: =item
17290 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3813
17291 msgid "C<unix:I<path>>"
17292 msgstr ""
17293
17294 #. type: textblock
17295 #: ../src/guestfs-actions.pod:5693 ../fish/guestfish-actions.pod:3815
17296 msgid "Connect to the Unix domain socket I<path>."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../src/guestfs-actions.pod:5695 ../fish/guestfish-actions.pod:3817
17301 msgid ""
17302 "This method lets you connect to an existing daemon or (using virtio-serial) "
17303 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17304 "RUNNING DAEMONS>."
17305 msgstr ""
17306
17307 # type: =head2
17308 #. type: =head2
17309 #: ../src/guestfs-actions.pod:5703
17310 msgid "guestfs_set_autosync"
17311 msgstr ""
17312
17313 # type: verbatim
17314 #. type: verbatim
17315 #: ../src/guestfs-actions.pod:5705
17316 #, no-wrap
17317 msgid ""
17318 " int\n"
17319 " guestfs_set_autosync (guestfs_h *g,\n"
17320 "                       int autosync);\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3829
17326 msgid ""
17327 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17328 "effort attempt to make filesystems consistent and synchronized when the "
17329 "handle is closed (also if the program exits without closing handles)."
17330 msgstr ""
17331
17332 # type: textblock
17333 #. type: textblock
17334 #: ../src/guestfs-actions.pod:5714 ../fish/guestfish-actions.pod:3834
17335 msgid ""
17336 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17337 "disabled by default)."
17338 msgstr ""
17339
17340 # type: =head2
17341 #. type: =head2
17342 #: ../src/guestfs-actions.pod:5721
17343 msgid "guestfs_set_direct"
17344 msgstr ""
17345
17346 # type: verbatim
17347 #. type: verbatim
17348 #: ../src/guestfs-actions.pod:5723
17349 #, no-wrap
17350 msgid ""
17351 " int\n"
17352 " guestfs_set_direct (guestfs_h *g,\n"
17353 "                     int direct);\n"
17354 "\n"
17355 msgstr ""
17356
17357 # type: textblock
17358 #. type: textblock
17359 #: ../src/guestfs-actions.pod:5727 ../fish/guestfish-actions.pod:3843
17360 msgid ""
17361 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17362 "passed directly through to the appliance once it is launched."
17363 msgstr ""
17364
17365 # type: textblock
17366 #. type: textblock
17367 #: ../src/guestfs-actions.pod:5731
17368 msgid ""
17369 "One consequence of this is that log messages aren't caught by the library "
17370 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17371 "stdout."
17372 msgstr ""
17373
17374 # type: textblock
17375 #. type: textblock
17376 #: ../src/guestfs-actions.pod:5735 ../fish/guestfish-actions.pod:3851
17377 msgid "You probably don't want to use this unless you know what you are doing."
17378 msgstr ""
17379
17380 # type: textblock
17381 #. type: textblock
17382 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3854
17383 msgid "The default is disabled."
17384 msgstr ""
17385
17386 # type: =head2
17387 #. type: =head2
17388 #: ../src/guestfs-actions.pod:5744
17389 msgid "guestfs_set_e2label"
17390 msgstr ""
17391
17392 # type: verbatim
17393 #. type: verbatim
17394 #: ../src/guestfs-actions.pod:5746
17395 #, no-wrap
17396 msgid ""
17397 " int\n"
17398 " guestfs_set_e2label (guestfs_h *g,\n"
17399 "                      const char *device,\n"
17400 "                      const char *label);\n"
17401 "\n"
17402 msgstr ""
17403
17404 # type: textblock
17405 #. type: textblock
17406 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:3860
17407 msgid ""
17408 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17409 "C<label>.  Filesystem labels are limited to 16 characters."
17410 msgstr ""
17411
17412 # type: textblock
17413 #. type: textblock
17414 #: ../src/guestfs-actions.pod:5755
17415 msgid ""
17416 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17417 "the existing label on a filesystem."
17418 msgstr ""
17419
17420 # type: =head2
17421 #. type: =head2
17422 #: ../src/guestfs-actions.pod:5762
17423 msgid "guestfs_set_e2uuid"
17424 msgstr ""
17425
17426 # type: verbatim
17427 #. type: verbatim
17428 #: ../src/guestfs-actions.pod:5764
17429 #, no-wrap
17430 msgid ""
17431 " int\n"
17432 " guestfs_set_e2uuid (guestfs_h *g,\n"
17433 "                     const char *device,\n"
17434 "                     const char *uuid);\n"
17435 "\n"
17436 msgstr ""
17437
17438 # type: textblock
17439 #. type: textblock
17440 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3871
17441 msgid ""
17442 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17443 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17444 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17445 msgstr ""
17446
17447 # type: textblock
17448 #. type: textblock
17449 #: ../src/guestfs-actions.pod:5774
17450 msgid ""
17451 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17452 "the existing UUID of a filesystem."
17453 msgstr ""
17454
17455 # type: =head2
17456 #. type: =head2
17457 #: ../src/guestfs-actions.pod:5781
17458 msgid "guestfs_set_memsize"
17459 msgstr ""
17460
17461 # type: verbatim
17462 #. type: verbatim
17463 #: ../src/guestfs-actions.pod:5783
17464 #, no-wrap
17465 msgid ""
17466 " int\n"
17467 " guestfs_set_memsize (guestfs_h *g,\n"
17468 "                      int memsize);\n"
17469 "\n"
17470 msgstr ""
17471
17472 # type: textblock
17473 #. type: textblock
17474 #: ../src/guestfs-actions.pod:5787
17475 msgid ""
17476 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17477 "This only has any effect if called before C<guestfs_launch>."
17478 msgstr ""
17479
17480 # type: textblock
17481 #. type: textblock
17482 #: ../src/guestfs-actions.pod:5791 ../fish/guestfish-actions.pod:3889
17483 msgid ""
17484 "You can also change this by setting the environment variable "
17485 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17486 msgstr ""
17487
17488 # type: =head2
17489 #. type: =head2
17490 #: ../src/guestfs-actions.pod:5802
17491 msgid "guestfs_set_network"
17492 msgstr ""
17493
17494 # type: verbatim
17495 #. type: verbatim
17496 #: ../src/guestfs-actions.pod:5804
17497 #, no-wrap
17498 msgid ""
17499 " int\n"
17500 " guestfs_set_network (guestfs_h *g,\n"
17501 "                      int network);\n"
17502 "\n"
17503 msgstr ""
17504
17505 # type: textblock
17506 #. type: textblock
17507 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3902
17508 msgid ""
17509 "If C<network> is true, then the network is enabled in the libguestfs "
17510 "appliance.  The default is false."
17511 msgstr ""
17512
17513 # type: textblock
17514 #. type: textblock
17515 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3905
17516 msgid ""
17517 "This affects whether commands are able to access the network (see L<guestfs"
17518 "(3)/RUNNING COMMANDS>)."
17519 msgstr ""
17520
17521 # type: textblock
17522 #. type: textblock
17523 #: ../src/guestfs-actions.pod:5814
17524 msgid ""
17525 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17526 "effect."
17527 msgstr ""
17528
17529 # type: =head2
17530 #. type: =head2
17531 #: ../src/guestfs-actions.pod:5821
17532 msgid "guestfs_set_path"
17533 msgstr ""
17534
17535 # type: verbatim
17536 #. type: verbatim
17537 #: ../src/guestfs-actions.pod:5823
17538 #, no-wrap
17539 msgid ""
17540 " int\n"
17541 " guestfs_set_path (guestfs_h *g,\n"
17542 "                   const char *searchpath);\n"
17543 "\n"
17544 msgstr ""
17545
17546 # type: textblock
17547 #. type: textblock
17548 #: ../src/guestfs-actions.pod:5827 ../fish/guestfish-actions.pod:3917
17549 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17550 msgstr ""
17551
17552 # type: textblock
17553 #. type: textblock
17554 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3919
17555 msgid ""
17556 "The default is C<$libdir/guestfs> unless overridden by setting "
17557 "C<LIBGUESTFS_PATH> environment variable."
17558 msgstr ""
17559
17560 # type: textblock
17561 #. type: textblock
17562 #: ../src/guestfs-actions.pod:5832 ../fish/guestfish-actions.pod:3922
17563 msgid "Setting C<path> to C<NULL> restores the default path."
17564 msgstr ""
17565
17566 # type: =head2
17567 #. type: =head2
17568 #: ../src/guestfs-actions.pod:5838
17569 msgid "guestfs_set_qemu"
17570 msgstr ""
17571
17572 # type: verbatim
17573 #. type: verbatim
17574 #: ../src/guestfs-actions.pod:5840
17575 #, no-wrap
17576 msgid ""
17577 " int\n"
17578 " guestfs_set_qemu (guestfs_h *g,\n"
17579 "                   const char *qemu);\n"
17580 "\n"
17581 msgstr ""
17582
17583 # type: textblock
17584 #. type: textblock
17585 #: ../src/guestfs-actions.pod:5844 ../fish/guestfish-actions.pod:3930
17586 msgid "Set the qemu binary that we will use."
17587 msgstr ""
17588
17589 # type: textblock
17590 #. type: textblock
17591 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3932
17592 msgid ""
17593 "The default is chosen when the library was compiled by the configure script."
17594 msgstr ""
17595
17596 # type: textblock
17597 #. type: textblock
17598 #: ../src/guestfs-actions.pod:5849 ../fish/guestfish-actions.pod:3935
17599 msgid ""
17600 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17601 "variable."
17602 msgstr ""
17603
17604 # type: textblock
17605 #. type: textblock
17606 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3938
17607 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17608 msgstr ""
17609
17610 # type: textblock
17611 #. type: textblock
17612 #: ../src/guestfs-actions.pod:5854 ../fish/guestfish-actions.pod:3940
17613 msgid ""
17614 "Note that you should call this function as early as possible after creating "
17615 "the handle.  This is because some pre-launch operations depend on testing "
17616 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17617 "don't retest features, and so you might see inconsistent results.  Using the "
17618 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17619 "the qemu binary at the same time as the handle is created."
17620 msgstr ""
17621
17622 # type: =head2
17623 #. type: =head2
17624 #: ../src/guestfs-actions.pod:5866
17625 msgid "guestfs_set_recovery_proc"
17626 msgstr ""
17627
17628 # type: verbatim
17629 #. type: verbatim
17630 #: ../src/guestfs-actions.pod:5868
17631 #, no-wrap
17632 msgid ""
17633 " int\n"
17634 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17635 "                            int recoveryproc);\n"
17636 "\n"
17637 msgstr ""
17638
17639 # type: textblock
17640 #. type: textblock
17641 #: ../src/guestfs-actions.pod:5872
17642 msgid ""
17643 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17644 "not create a recovery process.  The purpose of the recovery process is to "
17645 "stop runaway qemu processes in the case where the main program aborts "
17646 "abruptly."
17647 msgstr ""
17648
17649 # type: textblock
17650 #. type: textblock
17651 #: ../src/guestfs-actions.pod:5877
17652 msgid ""
17653 "This only has any effect if called before C<guestfs_launch>, and the default "
17654 "is true."
17655 msgstr ""
17656
17657 # type: textblock
17658 #. type: textblock
17659 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3962
17660 msgid ""
17661 "About the only time when you would want to disable this is if the main "
17662 "process will fork itself into the background (\"daemonize\" itself).  In "
17663 "this case the recovery process thinks that the main program has disappeared "
17664 "and so kills qemu, which is not very helpful."
17665 msgstr ""
17666
17667 # type: =head2
17668 #. type: =head2
17669 #: ../src/guestfs-actions.pod:5890
17670 msgid "guestfs_set_selinux"
17671 msgstr ""
17672
17673 # type: verbatim
17674 #. type: verbatim
17675 #: ../src/guestfs-actions.pod:5892
17676 #, no-wrap
17677 msgid ""
17678 " int\n"
17679 " guestfs_set_selinux (guestfs_h *g,\n"
17680 "                      int selinux);\n"
17681 "\n"
17682 msgstr ""
17683
17684 # type: textblock
17685 #. type: textblock
17686 #: ../src/guestfs-actions.pod:5896 ../fish/guestfish-actions.pod:3974
17687 msgid ""
17688 "This sets the selinux flag that is passed to the appliance at boot time.  "
17689 "The default is C<selinux=0> (disabled)."
17690 msgstr ""
17691
17692 # type: textblock
17693 #. type: textblock
17694 #: ../src/guestfs-actions.pod:5899 ../fish/guestfish-actions.pod:3977
17695 msgid ""
17696 "Note that if SELinux is enabled, it is always in Permissive mode "
17697 "(C<enforcing=0>)."
17698 msgstr ""
17699
17700 # type: =head2
17701 #. type: =head2
17702 #: ../src/guestfs-actions.pod:5909
17703 msgid "guestfs_set_trace"
17704 msgstr ""
17705
17706 # type: verbatim
17707 #. type: verbatim
17708 #: ../src/guestfs-actions.pod:5911
17709 #, no-wrap
17710 msgid ""
17711 " int\n"
17712 " guestfs_set_trace (guestfs_h *g,\n"
17713 "                    int trace);\n"
17714 "\n"
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../src/guestfs-actions.pod:5915 ../fish/guestfish-actions.pod:3989
17719 msgid ""
17720 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17721 "return values are traced."
17722 msgstr ""
17723
17724 # type: textblock
17725 #. type: textblock
17726 #: ../src/guestfs-actions.pod:5918 ../fish/guestfish-actions.pod:3992
17727 msgid ""
17728 "If you want to trace C API calls into libguestfs (and other libraries) then "
17729 "possibly a better way is to use the external ltrace(1) command."
17730 msgstr ""
17731
17732 # type: textblock
17733 #. type: textblock
17734 #: ../src/guestfs-actions.pod:5922 ../fish/guestfish-actions.pod:3996
17735 msgid ""
17736 "Command traces are disabled unless the environment variable "
17737 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17738 msgstr ""
17739
17740 #. type: textblock
17741 #: ../src/guestfs-actions.pod:5925
17742 msgid ""
17743 "Trace messages are normally sent to C<stderr>, unless you register a "
17744 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17745 msgstr ""
17746
17747 # type: =head2
17748 #. type: =head2
17749 #: ../src/guestfs-actions.pod:5933
17750 msgid "guestfs_set_verbose"
17751 msgstr ""
17752
17753 # type: verbatim
17754 #. type: verbatim
17755 #: ../src/guestfs-actions.pod:5935
17756 #, no-wrap
17757 msgid ""
17758 " int\n"
17759 " guestfs_set_verbose (guestfs_h *g,\n"
17760 "                      int verbose);\n"
17761 "\n"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:4009
17766 msgid "If C<verbose> is true, this turns on verbose messages."
17767 msgstr ""
17768
17769 # type: textblock
17770 #. type: textblock
17771 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:4011
17772 msgid ""
17773 "Verbose messages are disabled unless the environment variable "
17774 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17775 msgstr ""
17776
17777 #. type: textblock
17778 #: ../src/guestfs-actions.pod:5944
17779 msgid ""
17780 "Verbose messages are normally sent to C<stderr>, unless you register a "
17781 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17782 msgstr ""
17783
17784 # type: =head2
17785 #. type: =head2
17786 #: ../src/guestfs-actions.pod:5952
17787 msgid "guestfs_setcon"
17788 msgstr ""
17789
17790 # type: verbatim
17791 #. type: verbatim
17792 #: ../src/guestfs-actions.pod:5954
17793 #, no-wrap
17794 msgid ""
17795 " int\n"
17796 " guestfs_setcon (guestfs_h *g,\n"
17797 "                 const char *context);\n"
17798 "\n"
17799 msgstr ""
17800
17801 # type: textblock
17802 #. type: textblock
17803 #: ../src/guestfs-actions.pod:5958 ../fish/guestfish-actions.pod:4022
17804 msgid ""
17805 "This sets the SELinux security context of the daemon to the string "
17806 "C<context>."
17807 msgstr ""
17808
17809 # type: textblock
17810 #. type: textblock
17811 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4025
17812 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17813 msgstr ""
17814
17815 # type: =head2
17816 #. type: =head2
17817 #: ../src/guestfs-actions.pod:5967
17818 msgid "guestfs_setxattr"
17819 msgstr ""
17820
17821 # type: verbatim
17822 #. type: verbatim
17823 #: ../src/guestfs-actions.pod:5969
17824 #, no-wrap
17825 msgid ""
17826 " int\n"
17827 " guestfs_setxattr (guestfs_h *g,\n"
17828 "                   const char *xattr,\n"
17829 "                   const char *val,\n"
17830 "                   int vallen,\n"
17831 "                   const char *path);\n"
17832 "\n"
17833 msgstr ""
17834
17835 # type: textblock
17836 #. type: textblock
17837 #: ../src/guestfs-actions.pod:5976 ../fish/guestfish-actions.pod:4031
17838 msgid ""
17839 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17840 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17841 msgstr ""
17842
17843 # type: textblock
17844 #. type: textblock
17845 #: ../src/guestfs-actions.pod:5980
17846 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17847 msgstr ""
17848
17849 # type: =head2
17850 #. type: =head2
17851 #: ../src/guestfs-actions.pod:5986
17852 msgid "guestfs_sfdisk"
17853 msgstr ""
17854
17855 # type: verbatim
17856 #. type: verbatim
17857 #: ../src/guestfs-actions.pod:5988
17858 #, no-wrap
17859 msgid ""
17860 " int\n"
17861 " guestfs_sfdisk (guestfs_h *g,\n"
17862 "                 const char *device,\n"
17863 "                 int cyls,\n"
17864 "                 int heads,\n"
17865 "                 int sectors,\n"
17866 "                 char *const *lines);\n"
17867 "\n"
17868 msgstr ""
17869
17870 # type: textblock
17871 #. type: textblock
17872 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:4041
17873 msgid ""
17874 "This is a direct interface to the L<sfdisk(8)> program for creating "
17875 "partitions on block devices."
17876 msgstr ""
17877
17878 # type: textblock
17879 #. type: textblock
17880 #: ../src/guestfs-actions.pod:5999 ../fish/guestfish-actions.pod:4044
17881 msgid "C<device> should be a block device, for example C</dev/sda>."
17882 msgstr ""
17883
17884 # type: textblock
17885 #. type: textblock
17886 #: ../src/guestfs-actions.pod:6001 ../fish/guestfish-actions.pod:4046
17887 msgid ""
17888 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17889 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17890 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17891 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17892 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17893 "the kernel) cannot work out the right geometry and you will need to tell it."
17894 msgstr ""
17895
17896 # type: textblock
17897 #. type: textblock
17898 #: ../src/guestfs-actions.pod:6009 ../fish/guestfish-actions.pod:4054
17899 msgid ""
17900 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17901 "refer to the L<sfdisk(8)> manpage."
17902 msgstr ""
17903
17904 # type: textblock
17905 #. type: textblock
17906 #: ../src/guestfs-actions.pod:6012 ../fish/guestfish-actions.pod:4057
17907 msgid ""
17908 "To create a single partition occupying the whole disk, you would pass "
17909 "C<lines> as a single element list, when the single element being the string "
17910 "C<,> (comma)."
17911 msgstr ""
17912
17913 # type: textblock
17914 #. type: textblock
17915 #: ../src/guestfs-actions.pod:6016
17916 msgid ""
17917 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17918 msgstr ""
17919
17920 # type: =head2
17921 #. type: =head2
17922 #: ../src/guestfs-actions.pod:6026
17923 msgid "guestfs_sfdiskM"
17924 msgstr ""
17925
17926 # type: verbatim
17927 #. type: verbatim
17928 #: ../src/guestfs-actions.pod:6028
17929 #, no-wrap
17930 msgid ""
17931 " int\n"
17932 " guestfs_sfdiskM (guestfs_h *g,\n"
17933 "                  const char *device,\n"
17934 "                  char *const *lines);\n"
17935 "\n"
17936 msgstr ""
17937
17938 # type: textblock
17939 #. type: textblock
17940 #: ../src/guestfs-actions.pod:6033
17941 msgid ""
17942 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17943 "partition sizes are specified in megabytes only (rounded to the nearest "
17944 "cylinder) and you don't need to specify the cyls, heads and sectors "
17945 "parameters which were rarely if ever used anyway."
17946 msgstr ""
17947
17948 # type: textblock
17949 #. type: textblock
17950 #: ../src/guestfs-actions.pod:6039
17951 msgid ""
17952 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17953 "C<guestfs_part_disk>"
17954 msgstr ""
17955
17956 # type: =head2
17957 #. type: =head2
17958 #: ../src/guestfs-actions.pod:6049
17959 msgid "guestfs_sfdisk_N"
17960 msgstr ""
17961
17962 # type: verbatim
17963 #. type: verbatim
17964 #: ../src/guestfs-actions.pod:6051
17965 #, no-wrap
17966 msgid ""
17967 " int\n"
17968 " guestfs_sfdisk_N (guestfs_h *g,\n"
17969 "                   const char *device,\n"
17970 "                   int partnum,\n"
17971 "                   int cyls,\n"
17972 "                   int heads,\n"
17973 "                   int sectors,\n"
17974 "                   const char *line);\n"
17975 "\n"
17976 msgstr ""
17977
17978 # type: textblock
17979 #. type: textblock
17980 #: ../src/guestfs-actions.pod:6060 ../fish/guestfish-actions.pod:4087
17981 msgid ""
17982 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17983 "(note: C<n> counts from 1)."
17984 msgstr ""
17985
17986 # type: textblock
17987 #. type: textblock
17988 #: ../src/guestfs-actions.pod:6063
17989 msgid ""
17990 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17991 "for the cyls/heads/sectors parameters."
17992 msgstr ""
17993
17994 # type: textblock
17995 #. type: textblock
17996 #: ../src/guestfs-actions.pod:6066
17997 msgid "See also: C<guestfs_part_add>"
17998 msgstr ""
17999
18000 # type: =head2
18001 #. type: =head2
18002 #: ../src/guestfs-actions.pod:6075
18003 msgid "guestfs_sfdisk_disk_geometry"
18004 msgstr ""
18005
18006 # type: verbatim
18007 #. type: verbatim
18008 #: ../src/guestfs-actions.pod:6077
18009 #, no-wrap
18010 msgid ""
18011 " char *\n"
18012 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18013 "                               const char *device);\n"
18014 "\n"
18015 msgstr ""
18016
18017 # type: textblock
18018 #. type: textblock
18019 #: ../src/guestfs-actions.pod:6081
18020 msgid ""
18021 "This displays the disk geometry of C<device> read from the partition table.  "
18022 "Especially in the case where the underlying block device has been resized, "
18023 "this can be different from the kernel's idea of the geometry (see "
18024 "C<guestfs_sfdisk_kernel_geometry>)."
18025 msgstr ""
18026
18027 # type: textblock
18028 #. type: textblock
18029 #: ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6102
18030 #: ../fish/guestfish-actions.pod:4107 ../fish/guestfish-actions.pod:4116
18031 msgid "The result is in human-readable format, and not designed to be parsed."
18032 msgstr ""
18033
18034 # type: =head2
18035 #. type: =head2
18036 #: ../src/guestfs-actions.pod:6094
18037 msgid "guestfs_sfdisk_kernel_geometry"
18038 msgstr ""
18039
18040 # type: verbatim
18041 #. type: verbatim
18042 #: ../src/guestfs-actions.pod:6096
18043 #, no-wrap
18044 msgid ""
18045 " char *\n"
18046 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18047 "                                 const char *device);\n"
18048 "\n"
18049 msgstr ""
18050
18051 # type: textblock
18052 #. type: textblock
18053 #: ../src/guestfs-actions.pod:6100 ../fish/guestfish-actions.pod:4114
18054 msgid "This displays the kernel's idea of the geometry of C<device>."
18055 msgstr ""
18056
18057 # type: =head2
18058 #. type: =head2
18059 #: ../src/guestfs-actions.pod:6110
18060 msgid "guestfs_sfdisk_l"
18061 msgstr ""
18062
18063 # type: verbatim
18064 #. type: verbatim
18065 #: ../src/guestfs-actions.pod:6112
18066 #, no-wrap
18067 msgid ""
18068 " char *\n"
18069 " guestfs_sfdisk_l (guestfs_h *g,\n"
18070 "                   const char *device);\n"
18071 "\n"
18072 msgstr ""
18073
18074 # type: textblock
18075 #. type: textblock
18076 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4123
18077 msgid ""
18078 "This displays the partition table on C<device>, in the human-readable output "
18079 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18080 msgstr ""
18081
18082 # type: textblock
18083 #. type: textblock
18084 #: ../src/guestfs-actions.pod:6120
18085 msgid "See also: C<guestfs_part_list>"
18086 msgstr ""
18087
18088 # type: =head2
18089 #. type: =head2
18090 #: ../src/guestfs-actions.pod:6127
18091 msgid "guestfs_sh"
18092 msgstr ""
18093
18094 # type: verbatim
18095 #. type: verbatim
18096 #: ../src/guestfs-actions.pod:6129
18097 #, no-wrap
18098 msgid ""
18099 " char *\n"
18100 " guestfs_sh (guestfs_h *g,\n"
18101 "             const char *command);\n"
18102 "\n"
18103 msgstr ""
18104
18105 # type: textblock
18106 #. type: textblock
18107 #: ../src/guestfs-actions.pod:6133 ../fish/guestfish-actions.pod:4133
18108 msgid ""
18109 "This call runs a command from the guest filesystem via the guest's C</bin/"
18110 "sh>."
18111 msgstr ""
18112
18113 # type: textblock
18114 #. type: textblock
18115 #: ../src/guestfs-actions.pod:6136
18116 msgid "This is like C<guestfs_command>, but passes the command to:"
18117 msgstr ""
18118
18119 # type: verbatim
18120 #. type: verbatim
18121 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4138
18122 #, no-wrap
18123 msgid ""
18124 " /bin/sh -c \"command\"\n"
18125 "\n"
18126 msgstr ""
18127
18128 # type: textblock
18129 #. type: textblock
18130 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4140
18131 msgid ""
18132 "Depending on the guest's shell, this usually results in wildcards being "
18133 "expanded, shell expressions being interpolated and so on."
18134 msgstr ""
18135
18136 # type: textblock
18137 #. type: textblock
18138 #: ../src/guestfs-actions.pod:6144
18139 msgid "All the provisos about C<guestfs_command> apply to this call."
18140 msgstr ""
18141
18142 # type: =head2
18143 #. type: =head2
18144 #: ../src/guestfs-actions.pod:6151
18145 msgid "guestfs_sh_lines"
18146 msgstr ""
18147
18148 # type: verbatim
18149 #. type: verbatim
18150 #: ../src/guestfs-actions.pod:6153
18151 #, no-wrap
18152 msgid ""
18153 " char **\n"
18154 " guestfs_sh_lines (guestfs_h *g,\n"
18155 "                   const char *command);\n"
18156 "\n"
18157 msgstr ""
18158
18159 # type: textblock
18160 #. type: textblock
18161 #: ../src/guestfs-actions.pod:6157
18162 msgid ""
18163 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18164 "lines."
18165 msgstr ""
18166
18167 # type: textblock
18168 #. type: textblock
18169 #: ../src/guestfs-actions.pod:6160
18170 msgid "See also: C<guestfs_command_lines>"
18171 msgstr ""
18172
18173 # type: =head2
18174 #. type: =head2
18175 #: ../src/guestfs-actions.pod:6168
18176 msgid "guestfs_sleep"
18177 msgstr ""
18178
18179 # type: verbatim
18180 #. type: verbatim
18181 #: ../src/guestfs-actions.pod:6170
18182 #, no-wrap
18183 msgid ""
18184 " int\n"
18185 " guestfs_sleep (guestfs_h *g,\n"
18186 "                int secs);\n"
18187 "\n"
18188 msgstr ""
18189
18190 # type: textblock
18191 #. type: textblock
18192 #: ../src/guestfs-actions.pod:6174 ../fish/guestfish-actions.pod:4159
18193 msgid "Sleep for C<secs> seconds."
18194 msgstr ""
18195
18196 # type: textblock
18197 #. type: textblock
18198 #: ../src/guestfs-actions.pod:6178
18199 msgid "(Added in 1.0.41)"
18200 msgstr ""
18201
18202 # type: =head2
18203 #. type: =head2
18204 #: ../src/guestfs-actions.pod:6180 ../src/guestfs-structs.pod:109
18205 msgid "guestfs_stat"
18206 msgstr ""
18207
18208 # type: verbatim
18209 #. type: verbatim
18210 #: ../src/guestfs-actions.pod:6182
18211 #, no-wrap
18212 msgid ""
18213 " struct guestfs_stat *\n"
18214 " guestfs_stat (guestfs_h *g,\n"
18215 "               const char *path);\n"
18216 "\n"
18217 msgstr ""
18218
18219 # type: textblock
18220 #. type: textblock
18221 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4167
18222 msgid "This is the same as the C<stat(2)> system call."
18223 msgstr ""
18224
18225 # type: =head2
18226 #. type: =head2
18227 #: ../src/guestfs-actions.pod:6196 ../src/guestfs-structs.pod:135
18228 msgid "guestfs_statvfs"
18229 msgstr ""
18230
18231 # type: verbatim
18232 #. type: verbatim
18233 #: ../src/guestfs-actions.pod:6198
18234 #, no-wrap
18235 msgid ""
18236 " struct guestfs_statvfs *\n"
18237 " guestfs_statvfs (guestfs_h *g,\n"
18238 "                  const char *path);\n"
18239 "\n"
18240 msgstr ""
18241
18242 # type: textblock
18243 #. type: textblock
18244 #: ../src/guestfs-actions.pod:6202 ../fish/guestfish-actions.pod:4173
18245 msgid ""
18246 "Returns file system statistics for any mounted file system.  C<path> should "
18247 "be a file or directory in the mounted file system (typically it is the mount "
18248 "point itself, but it doesn't need to be)."
18249 msgstr ""
18250
18251 # type: textblock
18252 #. type: textblock
18253 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4177
18254 msgid "This is the same as the C<statvfs(2)> system call."
18255 msgstr ""
18256
18257 # type: textblock
18258 #. type: textblock
18259 #: ../src/guestfs-actions.pod:6208
18260 msgid ""
18261 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18262 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18263 msgstr ""
18264
18265 # type: =head2
18266 #. type: =head2
18267 #: ../src/guestfs-actions.pod:6214
18268 msgid "guestfs_strings"
18269 msgstr ""
18270
18271 # type: verbatim
18272 #. type: verbatim
18273 #: ../src/guestfs-actions.pod:6216
18274 #, no-wrap
18275 msgid ""
18276 " char **\n"
18277 " guestfs_strings (guestfs_h *g,\n"
18278 "                  const char *path);\n"
18279 "\n"
18280 msgstr ""
18281
18282 # type: textblock
18283 #. type: textblock
18284 #: ../src/guestfs-actions.pod:6220 ../fish/guestfish-actions.pod:4183
18285 msgid ""
18286 "This runs the L<strings(1)> command on a file and returns the list of "
18287 "printable strings found."
18288 msgstr ""
18289
18290 # type: =head2
18291 #. type: =head2
18292 #: ../src/guestfs-actions.pod:6232
18293 msgid "guestfs_strings_e"
18294 msgstr ""
18295
18296 # type: verbatim
18297 #. type: verbatim
18298 #: ../src/guestfs-actions.pod:6234
18299 #, no-wrap
18300 msgid ""
18301 " char **\n"
18302 " guestfs_strings_e (guestfs_h *g,\n"
18303 "                    const char *encoding,\n"
18304 "                    const char *path);\n"
18305 "\n"
18306 msgstr ""
18307
18308 # type: textblock
18309 #. type: textblock
18310 #: ../src/guestfs-actions.pod:6239
18311 msgid ""
18312 "This is like the C<guestfs_strings> command, but allows you to specify the "
18313 "encoding of strings that are looked for in the source file C<path>."
18314 msgstr ""
18315
18316 # type: textblock
18317 #. type: textblock
18318 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4197
18319 msgid "Allowed encodings are:"
18320 msgstr ""
18321
18322 # type: =item
18323 #. type: =item
18324 #: ../src/guestfs-actions.pod:6247 ../fish/guestfish-actions.pod:4201
18325 msgid "s"
18326 msgstr ""
18327
18328 # type: textblock
18329 #. type: textblock
18330 #: ../src/guestfs-actions.pod:6249
18331 msgid ""
18332 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18333 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18334 msgstr ""
18335
18336 # type: =item
18337 #. type: =item
18338 #: ../src/guestfs-actions.pod:6252 ../fish/guestfish-actions.pod:4206
18339 msgid "S"
18340 msgstr ""
18341
18342 # type: textblock
18343 #. type: textblock
18344 #: ../src/guestfs-actions.pod:6254 ../fish/guestfish-actions.pod:4208
18345 msgid "Single 8-bit-byte characters."
18346 msgstr ""
18347
18348 # type: =item
18349 #. type: =item
18350 #: ../src/guestfs-actions.pod:6256 ../fish/guestfish-actions.pod:4210
18351 msgid "b"
18352 msgstr ""
18353
18354 # type: textblock
18355 #. type: textblock
18356 #: ../src/guestfs-actions.pod:6258 ../fish/guestfish-actions.pod:4212
18357 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18358 msgstr ""
18359
18360 # type: =item
18361 #. type: =item
18362 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4215
18363 msgid "l (lower case letter L)"
18364 msgstr ""
18365
18366 # type: textblock
18367 #. type: textblock
18368 #: ../src/guestfs-actions.pod:6263 ../fish/guestfish-actions.pod:4217
18369 msgid ""
18370 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18371 "examining binaries in Windows guests."
18372 msgstr ""
18373
18374 # type: =item
18375 #. type: =item
18376 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4220
18377 msgid "B"
18378 msgstr ""
18379
18380 # type: textblock
18381 #. type: textblock
18382 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4222
18383 msgid "32-bit big endian such as UCS-4BE."
18384 msgstr ""
18385
18386 # type: =item
18387 #. type: =item
18388 #: ../src/guestfs-actions.pod:6270 ../fish/guestfish-actions.pod:4224
18389 msgid "L"
18390 msgstr ""
18391
18392 # type: textblock
18393 #. type: textblock
18394 #: ../src/guestfs-actions.pod:6272 ../fish/guestfish-actions.pod:4226
18395 msgid "32-bit little endian such as UCS-4LE."
18396 msgstr ""
18397
18398 # type: textblock
18399 #. type: textblock
18400 #: ../src/guestfs-actions.pod:6276 ../fish/guestfish-actions.pod:4230
18401 msgid "The returned strings are transcoded to UTF-8."
18402 msgstr ""
18403
18404 # type: =head2
18405 #. type: =head2
18406 #: ../src/guestfs-actions.pod:6287
18407 msgid "guestfs_swapoff_device"
18408 msgstr ""
18409
18410 # type: verbatim
18411 #. type: verbatim
18412 #: ../src/guestfs-actions.pod:6289
18413 #, no-wrap
18414 msgid ""
18415 " int\n"
18416 " guestfs_swapoff_device (guestfs_h *g,\n"
18417 "                         const char *device);\n"
18418 "\n"
18419 msgstr ""
18420
18421 # type: textblock
18422 #. type: textblock
18423 #: ../src/guestfs-actions.pod:6293
18424 msgid ""
18425 "This command disables the libguestfs appliance swap device or partition "
18426 "named C<device>.  See C<guestfs_swapon_device>."
18427 msgstr ""
18428
18429 # type: =head2
18430 #. type: =head2
18431 #: ../src/guestfs-actions.pod:6301
18432 msgid "guestfs_swapoff_file"
18433 msgstr ""
18434
18435 # type: verbatim
18436 #. type: verbatim
18437 #: ../src/guestfs-actions.pod:6303
18438 #, no-wrap
18439 msgid ""
18440 " int\n"
18441 " guestfs_swapoff_file (guestfs_h *g,\n"
18442 "                       const char *file);\n"
18443 "\n"
18444 msgstr ""
18445
18446 # type: textblock
18447 #. type: textblock
18448 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4247
18449 msgid "This command disables the libguestfs appliance swap on file."
18450 msgstr ""
18451
18452 # type: =head2
18453 #. type: =head2
18454 #: ../src/guestfs-actions.pod:6313
18455 msgid "guestfs_swapoff_label"
18456 msgstr ""
18457
18458 # type: verbatim
18459 #. type: verbatim
18460 #: ../src/guestfs-actions.pod:6315
18461 #, no-wrap
18462 msgid ""
18463 " int\n"
18464 " guestfs_swapoff_label (guestfs_h *g,\n"
18465 "                        const char *label);\n"
18466 "\n"
18467 msgstr ""
18468
18469 # type: textblock
18470 #. type: textblock
18471 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4253
18472 msgid ""
18473 "This command disables the libguestfs appliance swap on labeled swap "
18474 "partition."
18475 msgstr ""
18476
18477 # type: =head2
18478 #. type: =head2
18479 #: ../src/guestfs-actions.pod:6326
18480 msgid "guestfs_swapoff_uuid"
18481 msgstr ""
18482
18483 # type: verbatim
18484 #. type: verbatim
18485 #: ../src/guestfs-actions.pod:6328
18486 #, no-wrap
18487 msgid ""
18488 " int\n"
18489 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18490 "                       const char *uuid);\n"
18491 "\n"
18492 msgstr ""
18493
18494 # type: textblock
18495 #. type: textblock
18496 #: ../src/guestfs-actions.pod:6332 ../fish/guestfish-actions.pod:4260
18497 msgid ""
18498 "This command disables the libguestfs appliance swap partition with the given "
18499 "UUID."
18500 msgstr ""
18501
18502 # type: =head2
18503 #. type: =head2
18504 #: ../src/guestfs-actions.pod:6339
18505 msgid "guestfs_swapon_device"
18506 msgstr ""
18507
18508 # type: verbatim
18509 #. type: verbatim
18510 #: ../src/guestfs-actions.pod:6341
18511 #, no-wrap
18512 msgid ""
18513 " int\n"
18514 " guestfs_swapon_device (guestfs_h *g,\n"
18515 "                        const char *device);\n"
18516 "\n"
18517 msgstr ""
18518
18519 # type: textblock
18520 #. type: textblock
18521 #: ../src/guestfs-actions.pod:6345
18522 msgid ""
18523 "This command enables the libguestfs appliance to use the swap device or "
18524 "partition named C<device>.  The increased memory is made available for all "
18525 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18526 msgstr ""
18527
18528 # type: textblock
18529 #. type: textblock
18530 #: ../src/guestfs-actions.pod:6350 ../fish/guestfish-actions.pod:4272
18531 msgid ""
18532 "Note that you should not swap to existing guest swap partitions unless you "
18533 "know what you are doing.  They may contain hibernation information, or other "
18534 "information that the guest doesn't want you to trash.  You also risk leaking "
18535 "information about the host to the guest this way.  Instead, attach a new "
18536 "host device to the guest and swap on that."
18537 msgstr ""
18538
18539 # type: =head2
18540 #. type: =head2
18541 #: ../src/guestfs-actions.pod:6361
18542 msgid "guestfs_swapon_file"
18543 msgstr ""
18544
18545 # type: verbatim
18546 #. type: verbatim
18547 #: ../src/guestfs-actions.pod:6363
18548 #, no-wrap
18549 msgid ""
18550 " int\n"
18551 " guestfs_swapon_file (guestfs_h *g,\n"
18552 "                      const char *file);\n"
18553 "\n"
18554 msgstr ""
18555
18556 # type: textblock
18557 #. type: textblock
18558 #: ../src/guestfs-actions.pod:6367
18559 msgid ""
18560 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18561 "notes."
18562 msgstr ""
18563
18564 # type: =head2
18565 #. type: =head2
18566 #: ../src/guestfs-actions.pod:6374
18567 msgid "guestfs_swapon_label"
18568 msgstr ""
18569
18570 # type: verbatim
18571 #. type: verbatim
18572 #: ../src/guestfs-actions.pod:6376
18573 #, no-wrap
18574 msgid ""
18575 " int\n"
18576 " guestfs_swapon_label (guestfs_h *g,\n"
18577 "                       const char *label);\n"
18578 "\n"
18579 msgstr ""
18580
18581 # type: textblock
18582 #. type: textblock
18583 #: ../src/guestfs-actions.pod:6380
18584 msgid ""
18585 "This command enables swap to a labeled swap partition.  See "
18586 "C<guestfs_swapon_device> for other notes."
18587 msgstr ""
18588
18589 # type: =head2
18590 #. type: =head2
18591 #: ../src/guestfs-actions.pod:6387
18592 msgid "guestfs_swapon_uuid"
18593 msgstr ""
18594
18595 # type: verbatim
18596 #. type: verbatim
18597 #: ../src/guestfs-actions.pod:6389
18598 #, no-wrap
18599 msgid ""
18600 " int\n"
18601 " guestfs_swapon_uuid (guestfs_h *g,\n"
18602 "                      const char *uuid);\n"
18603 "\n"
18604 msgstr ""
18605
18606 # type: textblock
18607 #. type: textblock
18608 #: ../src/guestfs-actions.pod:6393
18609 msgid ""
18610 "This command enables swap to a swap partition with the given UUID.  See "
18611 "C<guestfs_swapon_device> for other notes."
18612 msgstr ""
18613
18614 # type: =head2
18615 #. type: =head2
18616 #: ../src/guestfs-actions.pod:6400
18617 msgid "guestfs_sync"
18618 msgstr ""
18619
18620 # type: verbatim
18621 #. type: verbatim
18622 #: ../src/guestfs-actions.pod:6402
18623 #, no-wrap
18624 msgid ""
18625 " int\n"
18626 " guestfs_sync (guestfs_h *g);\n"
18627 "\n"
18628 msgstr ""
18629
18630 # type: textblock
18631 #. type: textblock
18632 #: ../src/guestfs-actions.pod:6405 ../fish/guestfish-actions.pod:4304
18633 msgid ""
18634 "This syncs the disk, so that any writes are flushed through to the "
18635 "underlying disk image."
18636 msgstr ""
18637
18638 # type: textblock
18639 #. type: textblock
18640 #: ../src/guestfs-actions.pod:6408 ../fish/guestfish-actions.pod:4307
18641 msgid ""
18642 "You should always call this if you have modified a disk image, before "
18643 "closing the handle."
18644 msgstr ""
18645
18646 # type: =head2
18647 #. type: =head2
18648 #: ../src/guestfs-actions.pod:6415
18649 msgid "guestfs_tail"
18650 msgstr ""
18651
18652 # type: verbatim
18653 #. type: verbatim
18654 #: ../src/guestfs-actions.pod:6417
18655 #, no-wrap
18656 msgid ""
18657 " char **\n"
18658 " guestfs_tail (guestfs_h *g,\n"
18659 "               const char *path);\n"
18660 "\n"
18661 msgstr ""
18662
18663 # type: textblock
18664 #. type: textblock
18665 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4314
18666 msgid ""
18667 "This command returns up to the last 10 lines of a file as a list of strings."
18668 msgstr ""
18669
18670 # type: =head2
18671 #. type: =head2
18672 #: ../src/guestfs-actions.pod:6433
18673 msgid "guestfs_tail_n"
18674 msgstr ""
18675
18676 # type: verbatim
18677 #. type: verbatim
18678 #: ../src/guestfs-actions.pod:6435
18679 #, no-wrap
18680 msgid ""
18681 " char **\n"
18682 " guestfs_tail_n (guestfs_h *g,\n"
18683 "                 int nrlines,\n"
18684 "                 const char *path);\n"
18685 "\n"
18686 msgstr ""
18687
18688 # type: textblock
18689 #. type: textblock
18690 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4324
18691 msgid ""
18692 "If the parameter C<nrlines> is a positive number, this returns the last "
18693 "C<nrlines> lines of the file C<path>."
18694 msgstr ""
18695
18696 # type: textblock
18697 #. type: textblock
18698 #: ../src/guestfs-actions.pod:6443 ../fish/guestfish-actions.pod:4327
18699 msgid ""
18700 "If the parameter C<nrlines> is a negative number, this returns lines from "
18701 "the file C<path>, starting with the C<-nrlines>th line."
18702 msgstr ""
18703
18704 # type: =head2
18705 #. type: =head2
18706 #: ../src/guestfs-actions.pod:6457
18707 msgid "guestfs_tar_in"
18708 msgstr ""
18709
18710 # type: verbatim
18711 #. type: verbatim
18712 #: ../src/guestfs-actions.pod:6459
18713 #, no-wrap
18714 msgid ""
18715 " int\n"
18716 " guestfs_tar_in (guestfs_h *g,\n"
18717 "                 const char *tarfile,\n"
18718 "                 const char *directory);\n"
18719 "\n"
18720 msgstr ""
18721
18722 # type: textblock
18723 #. type: textblock
18724 #: ../src/guestfs-actions.pod:6464 ../fish/guestfish-actions.pod:4339
18725 msgid ""
18726 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18727 "tar file) into C<directory>."
18728 msgstr ""
18729
18730 # type: textblock
18731 #. type: textblock
18732 #: ../src/guestfs-actions.pod:6467
18733 msgid ""
18734 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18735 msgstr ""
18736
18737 # type: textblock
18738 #. type: textblock
18739 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6489
18740 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6521
18741 msgid "(Added in 1.0.3)"
18742 msgstr ""
18743
18744 # type: =head2
18745 #. type: =head2
18746 #: ../src/guestfs-actions.pod:6474
18747 msgid "guestfs_tar_out"
18748 msgstr ""
18749
18750 # type: verbatim
18751 #. type: verbatim
18752 #: ../src/guestfs-actions.pod:6476
18753 #, no-wrap
18754 msgid ""
18755 " int\n"
18756 " guestfs_tar_out (guestfs_h *g,\n"
18757 "                  const char *directory,\n"
18758 "                  const char *tarfile);\n"
18759 "\n"
18760 msgstr ""
18761
18762 # type: textblock
18763 #. type: textblock
18764 #: ../src/guestfs-actions.pod:6481 ../fish/guestfish-actions.pod:4351
18765 msgid ""
18766 "This command packs the contents of C<directory> and downloads it to local "
18767 "file C<tarfile>."
18768 msgstr ""
18769
18770 # type: textblock
18771 #. type: textblock
18772 #: ../src/guestfs-actions.pod:6484
18773 msgid ""
18774 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18775 "C<guestfs_txz_out>."
18776 msgstr ""
18777
18778 # type: =head2
18779 #. type: =head2
18780 #: ../src/guestfs-actions.pod:6491
18781 msgid "guestfs_tgz_in"
18782 msgstr ""
18783
18784 # type: verbatim
18785 #. type: verbatim
18786 #: ../src/guestfs-actions.pod:6493
18787 #, no-wrap
18788 msgid ""
18789 " int\n"
18790 " guestfs_tgz_in (guestfs_h *g,\n"
18791 "                 const char *tarball,\n"
18792 "                 const char *directory);\n"
18793 "\n"
18794 msgstr ""
18795
18796 # type: textblock
18797 #. type: textblock
18798 #: ../src/guestfs-actions.pod:6498 ../fish/guestfish-actions.pod:4363
18799 msgid ""
18800 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18801 "tar file) into C<directory>."
18802 msgstr ""
18803
18804 # type: textblock
18805 #. type: textblock
18806 #: ../src/guestfs-actions.pod:6501
18807 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18808 msgstr ""
18809
18810 # type: =head2
18811 #. type: =head2
18812 #: ../src/guestfs-actions.pod:6507
18813 msgid "guestfs_tgz_out"
18814 msgstr ""
18815
18816 # type: verbatim
18817 #. type: verbatim
18818 #: ../src/guestfs-actions.pod:6509
18819 #, no-wrap
18820 msgid ""
18821 " int\n"
18822 " guestfs_tgz_out (guestfs_h *g,\n"
18823 "                  const char *directory,\n"
18824 "                  const char *tarball);\n"
18825 "\n"
18826 msgstr ""
18827
18828 # type: textblock
18829 #. type: textblock
18830 #: ../src/guestfs-actions.pod:6514 ../fish/guestfish-actions.pod:4374
18831 msgid ""
18832 "This command packs the contents of C<directory> and downloads it to local "
18833 "file C<tarball>."
18834 msgstr ""
18835
18836 # type: textblock
18837 #. type: textblock
18838 #: ../src/guestfs-actions.pod:6517
18839 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18840 msgstr ""
18841
18842 # type: =head2
18843 #. type: =head2
18844 #: ../src/guestfs-actions.pod:6523
18845 msgid "guestfs_touch"
18846 msgstr ""
18847
18848 # type: verbatim
18849 #. type: verbatim
18850 #: ../src/guestfs-actions.pod:6525
18851 #, no-wrap
18852 msgid ""
18853 " int\n"
18854 " guestfs_touch (guestfs_h *g,\n"
18855 "                const char *path);\n"
18856 "\n"
18857 msgstr ""
18858
18859 # type: textblock
18860 #. type: textblock
18861 #: ../src/guestfs-actions.pod:6529 ../fish/guestfish-actions.pod:4385
18862 msgid ""
18863 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18864 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18865 "length file."
18866 msgstr ""
18867
18868 # type: textblock
18869 #. type: textblock
18870 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4389
18871 msgid ""
18872 "This command only works on regular files, and will fail on other file types "
18873 "such as directories, symbolic links, block special etc."
18874 msgstr ""
18875
18876 # type: =head2
18877 #. type: =head2
18878 #: ../src/guestfs-actions.pod:6540
18879 msgid "guestfs_truncate"
18880 msgstr ""
18881
18882 # type: verbatim
18883 #. type: verbatim
18884 #: ../src/guestfs-actions.pod:6542
18885 #, no-wrap
18886 msgid ""
18887 " int\n"
18888 " guestfs_truncate (guestfs_h *g,\n"
18889 "                   const char *path);\n"
18890 "\n"
18891 msgstr ""
18892
18893 # type: textblock
18894 #. type: textblock
18895 #: ../src/guestfs-actions.pod:6546 ../fish/guestfish-actions.pod:4396
18896 msgid ""
18897 "This command truncates C<path> to a zero-length file.  The file must exist "
18898 "already."
18899 msgstr ""
18900
18901 # type: =head2
18902 #. type: =head2
18903 #: ../src/guestfs-actions.pod:6553
18904 msgid "guestfs_truncate_size"
18905 msgstr ""
18906
18907 # type: verbatim
18908 #. type: verbatim
18909 #: ../src/guestfs-actions.pod:6555
18910 #, no-wrap
18911 msgid ""
18912 " int\n"
18913 " guestfs_truncate_size (guestfs_h *g,\n"
18914 "                        const char *path,\n"
18915 "                        int64_t size);\n"
18916 "\n"
18917 msgstr ""
18918
18919 # type: textblock
18920 #. type: textblock
18921 #: ../src/guestfs-actions.pod:6560 ../fish/guestfish-actions.pod:4403
18922 msgid ""
18923 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18924 "already."
18925 msgstr ""
18926
18927 # type: textblock
18928 #. type: textblock
18929 #: ../src/guestfs-actions.pod:6563
18930 msgid ""
18931 "If the current file size is less than C<size> then the file is extended to "
18932 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18933 "blocks are not allocated for the file until you write to it).  To create a "
18934 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18935 msgstr ""
18936
18937 # type: =head2
18938 #. type: =head2
18939 #: ../src/guestfs-actions.pod:6573
18940 msgid "guestfs_tune2fs_l"
18941 msgstr ""
18942
18943 # type: verbatim
18944 #. type: verbatim
18945 #: ../src/guestfs-actions.pod:6575
18946 #, no-wrap
18947 msgid ""
18948 " char **\n"
18949 " guestfs_tune2fs_l (guestfs_h *g,\n"
18950 "                    const char *device);\n"
18951 "\n"
18952 msgstr ""
18953
18954 # type: textblock
18955 #. type: textblock
18956 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4416
18957 msgid ""
18958 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18959 "C<device>."
18960 msgstr ""
18961
18962 # type: textblock
18963 #. type: textblock
18964 #: ../src/guestfs-actions.pod:6582 ../fish/guestfish-actions.pod:4419
18965 msgid ""
18966 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18967 "for more details.  The list of fields returned isn't clearly defined, and "
18968 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18969 "and the filesystem itself."
18970 msgstr ""
18971
18972 # type: =head2
18973 #. type: =head2
18974 #: ../src/guestfs-actions.pod:6595
18975 msgid "guestfs_txz_in"
18976 msgstr ""
18977
18978 # type: verbatim
18979 #. type: verbatim
18980 #: ../src/guestfs-actions.pod:6597
18981 #, no-wrap
18982 msgid ""
18983 " int\n"
18984 " guestfs_txz_in (guestfs_h *g,\n"
18985 "                 const char *tarball,\n"
18986 "                 const char *directory);\n"
18987 "\n"
18988 msgstr ""
18989
18990 # type: textblock
18991 #. type: textblock
18992 #: ../src/guestfs-actions.pod:6602 ../fish/guestfish-actions.pod:4428
18993 msgid ""
18994 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18995 "tar file) into C<directory>."
18996 msgstr ""
18997
18998 # type: =head2
18999 #. type: =head2
19000 #: ../src/guestfs-actions.pod:6609
19001 msgid "guestfs_txz_out"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #. type: verbatim
19006 #: ../src/guestfs-actions.pod:6611
19007 #, no-wrap
19008 msgid ""
19009 " int\n"
19010 " guestfs_txz_out (guestfs_h *g,\n"
19011 "                  const char *directory,\n"
19012 "                  const char *tarball);\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: textblock
19017 #. type: textblock
19018 #: ../src/guestfs-actions.pod:6616 ../fish/guestfish-actions.pod:4437
19019 msgid ""
19020 "This command packs the contents of C<directory> and downloads it to local "
19021 "file C<tarball> (as an xz compressed tar archive)."
19022 msgstr ""
19023
19024 # type: =head2
19025 #. type: =head2
19026 #: ../src/guestfs-actions.pod:6623
19027 msgid "guestfs_umask"
19028 msgstr ""
19029
19030 # type: verbatim
19031 #. type: verbatim
19032 #: ../src/guestfs-actions.pod:6625
19033 #, no-wrap
19034 msgid ""
19035 " int\n"
19036 " guestfs_umask (guestfs_h *g,\n"
19037 "                int mask);\n"
19038 "\n"
19039 msgstr ""
19040
19041 # type: textblock
19042 #. type: textblock
19043 #: ../src/guestfs-actions.pod:6629 ../fish/guestfish-actions.pod:4446
19044 msgid ""
19045 "This function sets the mask used for creating new files and device nodes to "
19046 "C<mask & 0777>."
19047 msgstr ""
19048
19049 # type: textblock
19050 #. type: textblock
19051 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4449
19052 msgid ""
19053 "Typical umask values would be C<022> which creates new files with "
19054 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19055 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19056 msgstr ""
19057
19058 # type: textblock
19059 #. type: textblock
19060 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4454
19061 msgid ""
19062 "The default umask is C<022>.  This is important because it means that "
19063 "directories and device nodes will be created with C<0644> or C<0755> mode "
19064 "even if you specify C<0777>."
19065 msgstr ""
19066
19067 # type: textblock
19068 #. type: textblock
19069 #: ../src/guestfs-actions.pod:6641
19070 msgid ""
19071 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19072 "C<guestfs_mkdir>."
19073 msgstr ""
19074
19075 # type: textblock
19076 #. type: textblock
19077 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4461
19078 msgid "This call returns the previous umask."
19079 msgstr ""
19080
19081 # type: =head2
19082 #. type: =head2
19083 #: ../src/guestfs-actions.pod:6650
19084 msgid "guestfs_umount"
19085 msgstr ""
19086
19087 # type: verbatim
19088 #. type: verbatim
19089 #: ../src/guestfs-actions.pod:6652
19090 #, no-wrap
19091 msgid ""
19092 " int\n"
19093 " guestfs_umount (guestfs_h *g,\n"
19094 "                 const char *pathordevice);\n"
19095 "\n"
19096 msgstr ""
19097
19098 # type: textblock
19099 #. type: textblock
19100 #: ../src/guestfs-actions.pod:6656 ../fish/guestfish-actions.pod:4469
19101 msgid ""
19102 "This unmounts the given filesystem.  The filesystem may be specified either "
19103 "by its mountpoint (path) or the device which contains the filesystem."
19104 msgstr ""
19105
19106 # type: =head2
19107 #. type: =head2
19108 #: ../src/guestfs-actions.pod:6664
19109 msgid "guestfs_umount_all"
19110 msgstr ""
19111
19112 # type: verbatim
19113 #. type: verbatim
19114 #: ../src/guestfs-actions.pod:6666
19115 #, no-wrap
19116 msgid ""
19117 " int\n"
19118 " guestfs_umount_all (guestfs_h *g);\n"
19119 "\n"
19120 msgstr ""
19121
19122 # type: textblock
19123 #. type: textblock
19124 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4479
19125 msgid "This unmounts all mounted filesystems."
19126 msgstr ""
19127
19128 # type: textblock
19129 #. type: textblock
19130 #: ../src/guestfs-actions.pod:6671 ../fish/guestfish-actions.pod:4481
19131 msgid "Some internal mounts are not unmounted by this call."
19132 msgstr ""
19133
19134 # type: =head2
19135 #. type: =head2
19136 #: ../src/guestfs-actions.pod:6677
19137 msgid "guestfs_upload"
19138 msgstr ""
19139
19140 # type: verbatim
19141 #. type: verbatim
19142 #: ../src/guestfs-actions.pod:6679
19143 #, no-wrap
19144 msgid ""
19145 " int\n"
19146 " guestfs_upload (guestfs_h *g,\n"
19147 "                 const char *filename,\n"
19148 "                 const char *remotefilename);\n"
19149 "\n"
19150 msgstr ""
19151
19152 # type: textblock
19153 #. type: textblock
19154 #: ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6708
19155 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4500
19156 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19157 msgstr ""
19158
19159 # type: textblock
19160 #. type: textblock
19161 #: ../src/guestfs-actions.pod:6689
19162 msgid "See also C<guestfs_download>."
19163 msgstr ""
19164
19165 # type: =head2
19166 #. type: =head2
19167 #: ../src/guestfs-actions.pod:6700
19168 msgid "guestfs_upload_offset"
19169 msgstr ""
19170
19171 # type: verbatim
19172 #. type: verbatim
19173 #: ../src/guestfs-actions.pod:6702
19174 #, no-wrap
19175 msgid ""
19176 " int\n"
19177 " guestfs_upload_offset (guestfs_h *g,\n"
19178 "                        const char *filename,\n"
19179 "                        const char *remotefilename,\n"
19180 "                        int64_t offset);\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: textblock
19185 #. type: textblock
19186 #: ../src/guestfs-actions.pod:6711 ../fish/guestfish-actions.pod:4503
19187 msgid ""
19188 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19189 "The intention is to overwrite parts of existing files or devices, although "
19190 "if a non-existant file is specified then it is created with a \"hole\" "
19191 "before C<offset>.  The size of the data written is implicit in the size of "
19192 "the source C<filename>."
19193 msgstr ""
19194
19195 # type: textblock
19196 #. type: textblock
19197 #: ../src/guestfs-actions.pod:6718
19198 msgid ""
19199 "Note that there is no limit on the amount of data that can be uploaded with "
19200 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19201 "full amount unless an error occurs."
19202 msgstr ""
19203
19204 # type: textblock
19205 #. type: textblock
19206 #: ../src/guestfs-actions.pod:6723
19207 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19208 msgstr ""
19209
19210 # type: =head2
19211 #. type: =head2
19212 #: ../src/guestfs-actions.pod:6734
19213 msgid "guestfs_utimens"
19214 msgstr ""
19215
19216 # type: verbatim
19217 #. type: verbatim
19218 #: ../src/guestfs-actions.pod:6736
19219 #, no-wrap
19220 msgid ""
19221 " int\n"
19222 " guestfs_utimens (guestfs_h *g,\n"
19223 "                  const char *path,\n"
19224 "                  int64_t atsecs,\n"
19225 "                  int64_t atnsecs,\n"
19226 "                  int64_t mtsecs,\n"
19227 "                  int64_t mtnsecs);\n"
19228 "\n"
19229 msgstr ""
19230
19231 # type: textblock
19232 #. type: textblock
19233 #: ../src/guestfs-actions.pod:6744 ../fish/guestfish-actions.pod:4523
19234 msgid "This command sets the timestamps of a file with nanosecond precision."
19235 msgstr ""
19236
19237 # type: textblock
19238 #. type: textblock
19239 #: ../src/guestfs-actions.pod:6747 ../fish/guestfish-actions.pod:4526
19240 msgid ""
19241 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19242 "from the epoch."
19243 msgstr ""
19244
19245 # type: textblock
19246 #. type: textblock
19247 #: ../src/guestfs-actions.pod:6750 ../fish/guestfish-actions.pod:4529
19248 msgid ""
19249 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19250 "nanoseconds from the epoch."
19251 msgstr ""
19252
19253 # type: textblock
19254 #. type: textblock
19255 #: ../src/guestfs-actions.pod:6753 ../fish/guestfish-actions.pod:4532
19256 msgid ""
19257 "If the C<*nsecs> field contains the special value C<-1> then the "
19258 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19259 "ignored in this case)."
19260 msgstr ""
19261
19262 # type: textblock
19263 #. type: textblock
19264 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4536
19265 msgid ""
19266 "If the C<*nsecs> field contains the special value C<-2> then the "
19267 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19268 "in this case)."
19269 msgstr ""
19270
19271 # type: =head2
19272 #. type: =head2
19273 #: ../src/guestfs-actions.pod:6765 ../src/guestfs-structs.pod:175
19274 msgid "guestfs_version"
19275 msgstr ""
19276
19277 # type: verbatim
19278 #. type: verbatim
19279 #: ../src/guestfs-actions.pod:6767
19280 #, no-wrap
19281 msgid ""
19282 " struct guestfs_version *\n"
19283 " guestfs_version (guestfs_h *g);\n"
19284 "\n"
19285 msgstr ""
19286
19287 # type: textblock
19288 #. type: textblock
19289 #: ../src/guestfs-actions.pod:6770 ../fish/guestfish-actions.pod:4544
19290 msgid ""
19291 "Return the libguestfs version number that the program is linked against."
19292 msgstr ""
19293
19294 # type: textblock
19295 #. type: textblock
19296 #: ../src/guestfs-actions.pod:6773 ../fish/guestfish-actions.pod:4547
19297 msgid ""
19298 "Note that because of dynamic linking this is not necessarily the version of "
19299 "libguestfs that you compiled against.  You can compile the program, and then "
19300 "at runtime dynamically link against a completely different C<libguestfs.so> "
19301 "library."
19302 msgstr ""
19303
19304 # type: textblock
19305 #. type: textblock
19306 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4552
19307 msgid ""
19308 "This call was added in version C<1.0.58>.  In previous versions of "
19309 "libguestfs there was no way to get the version number.  From C code you can "
19310 "use dynamic linker functions to find out if this symbol exists (if it "
19311 "doesn't, then it's an earlier version)."
19312 msgstr ""
19313
19314 # type: textblock
19315 #. type: textblock
19316 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4558
19317 msgid ""
19318 "The call returns a structure with four elements.  The first three (C<major>, "
19319 "C<minor> and C<release>) are numbers and correspond to the usual version "
19320 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19321 "but may be used for distro-specific information."
19322 msgstr ""
19323
19324 # type: textblock
19325 #. type: textblock
19326 #: ../src/guestfs-actions.pod:6790 ../fish/guestfish-actions.pod:4564
19327 msgid ""
19328 "To construct the original version string: C<$major.$minor.$release$extra>"
19329 msgstr ""
19330
19331 # type: textblock
19332 #. type: textblock
19333 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4567
19334 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19335 msgstr ""
19336
19337 # type: textblock
19338 #. type: textblock
19339 #: ../src/guestfs-actions.pod:6795
19340 msgid ""
19341 "I<Note:> Don't use this call to test for availability of features.  In "
19342 "enterprise distributions we backport features from later versions into "
19343 "earlier versions, making this an unreliable way to test for features.  Use "
19344 "C<guestfs_available> instead."
19345 msgstr ""
19346
19347 # type: textblock
19348 #. type: textblock
19349 #: ../src/guestfs-actions.pod:6801
19350 msgid ""
19351 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19352 "error.  I<The caller must call C<guestfs_free_version> after use>."
19353 msgstr ""
19354
19355 # type: textblock
19356 #. type: textblock
19357 #: ../src/guestfs-actions.pod:6805
19358 msgid "(Added in 1.0.58)"
19359 msgstr ""
19360
19361 # type: =head2
19362 #. type: =head2
19363 #: ../src/guestfs-actions.pod:6807
19364 msgid "guestfs_vfs_label"
19365 msgstr ""
19366
19367 # type: verbatim
19368 #. type: verbatim
19369 #: ../src/guestfs-actions.pod:6809
19370 #, no-wrap
19371 msgid ""
19372 " char *\n"
19373 " guestfs_vfs_label (guestfs_h *g,\n"
19374 "                    const char *device);\n"
19375 "\n"
19376 msgstr ""
19377
19378 # type: textblock
19379 #. type: textblock
19380 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4579
19381 msgid "This returns the filesystem label of the filesystem on C<device>."
19382 msgstr ""
19383
19384 # type: textblock
19385 #. type: textblock
19386 #: ../src/guestfs-actions.pod:6816 ../fish/guestfish-actions.pod:4582
19387 msgid "If the filesystem is unlabeled, this returns the empty string."
19388 msgstr ""
19389
19390 # type: textblock
19391 #. type: textblock
19392 #: ../src/guestfs-actions.pod:6818
19393 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19394 msgstr ""
19395
19396 # type: textblock
19397 #. type: textblock
19398 #: ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6860
19399 msgid "(Added in 1.3.18)"
19400 msgstr ""
19401
19402 # type: =head2
19403 #. type: =head2
19404 #: ../src/guestfs-actions.pod:6825
19405 msgid "guestfs_vfs_type"
19406 msgstr ""
19407
19408 # type: verbatim
19409 #. type: verbatim
19410 #: ../src/guestfs-actions.pod:6827
19411 #, no-wrap
19412 msgid ""
19413 " char *\n"
19414 " guestfs_vfs_type (guestfs_h *g,\n"
19415 "                   const char *device);\n"
19416 "\n"
19417 msgstr ""
19418
19419 # type: textblock
19420 #. type: textblock
19421 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4590
19422 msgid ""
19423 "This command gets the filesystem type corresponding to the filesystem on "
19424 "C<device>."
19425 msgstr ""
19426
19427 # type: textblock
19428 #. type: textblock
19429 #: ../src/guestfs-actions.pod:6834 ../fish/guestfish-actions.pod:4593
19430 msgid ""
19431 "For most filesystems, the result is the name of the Linux VFS module which "
19432 "would be used to mount this filesystem if you mounted it without specifying "
19433 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19434 msgstr ""
19435
19436 # type: =head2
19437 #. type: =head2
19438 #: ../src/guestfs-actions.pod:6844
19439 msgid "guestfs_vfs_uuid"
19440 msgstr ""
19441
19442 # type: verbatim
19443 #. type: verbatim
19444 #: ../src/guestfs-actions.pod:6846
19445 #, no-wrap
19446 msgid ""
19447 " char *\n"
19448 " guestfs_vfs_uuid (guestfs_h *g,\n"
19449 "                   const char *device);\n"
19450 "\n"
19451 msgstr ""
19452
19453 # type: textblock
19454 #. type: textblock
19455 #: ../src/guestfs-actions.pod:6850 ../fish/guestfish-actions.pod:4602
19456 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19457 msgstr ""
19458
19459 # type: textblock
19460 #. type: textblock
19461 #: ../src/guestfs-actions.pod:6853 ../fish/guestfish-actions.pod:4605
19462 msgid "If the filesystem does not have a UUID, this returns the empty string."
19463 msgstr ""
19464
19465 # type: textblock
19466 #. type: textblock
19467 #: ../src/guestfs-actions.pod:6855
19468 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19469 msgstr ""
19470
19471 # type: =head2
19472 #. type: =head2
19473 #: ../src/guestfs-actions.pod:6862
19474 msgid "guestfs_vg_activate"
19475 msgstr ""
19476
19477 # type: verbatim
19478 #. type: verbatim
19479 #: ../src/guestfs-actions.pod:6864
19480 #, no-wrap
19481 msgid ""
19482 " int\n"
19483 " guestfs_vg_activate (guestfs_h *g,\n"
19484 "                      int activate,\n"
19485 "                      char *const *volgroups);\n"
19486 "\n"
19487 msgstr ""
19488
19489 # type: textblock
19490 #. type: textblock
19491 #: ../src/guestfs-actions.pod:6869 ../fish/guestfish-actions.pod:4613
19492 msgid ""
19493 "This command activates or (if C<activate> is false) deactivates all logical "
19494 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19495 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19496 "deactivated, then those devices disappear."
19497 msgstr ""
19498
19499 # type: textblock
19500 #. type: textblock
19501 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4619
19502 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19503 msgstr ""
19504
19505 # type: textblock
19506 #. type: textblock
19507 #: ../src/guestfs-actions.pod:6877 ../fish/guestfish-actions.pod:4621
19508 msgid ""
19509 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19510 "activated or deactivated."
19511 msgstr ""
19512
19513 # type: =head2
19514 #. type: =head2
19515 #: ../src/guestfs-actions.pod:6884
19516 msgid "guestfs_vg_activate_all"
19517 msgstr ""
19518
19519 # type: verbatim
19520 #. type: verbatim
19521 #: ../src/guestfs-actions.pod:6886
19522 #, no-wrap
19523 msgid ""
19524 " int\n"
19525 " guestfs_vg_activate_all (guestfs_h *g,\n"
19526 "                          int activate);\n"
19527 "\n"
19528 msgstr ""
19529
19530 # type: textblock
19531 #. type: textblock
19532 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4628
19533 msgid ""
19534 "This command activates or (if C<activate> is false) deactivates all logical "
19535 "volumes in all volume groups.  If activated, then they are made known to the "
19536 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19537 "those devices disappear."
19538 msgstr ""
19539
19540 # type: textblock
19541 #. type: textblock
19542 #: ../src/guestfs-actions.pod:6896 ../fish/guestfish-actions.pod:4634
19543 msgid "This command is the same as running C<vgchange -a y|n>"
19544 msgstr ""
19545
19546 # type: =head2
19547 #. type: =head2
19548 #: ../src/guestfs-actions.pod:6902
19549 msgid "guestfs_vgcreate"
19550 msgstr ""
19551
19552 # type: verbatim
19553 #. type: verbatim
19554 #: ../src/guestfs-actions.pod:6904
19555 #, no-wrap
19556 msgid ""
19557 " int\n"
19558 " guestfs_vgcreate (guestfs_h *g,\n"
19559 "                   const char *volgroup,\n"
19560 "                   char *const *physvols);\n"
19561 "\n"
19562 msgstr ""
19563
19564 # type: textblock
19565 #. type: textblock
19566 #: ../src/guestfs-actions.pod:6909 ../fish/guestfish-actions.pod:4640
19567 msgid ""
19568 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19569 "of physical volumes C<physvols>."
19570 msgstr ""
19571
19572 # type: =head2
19573 #. type: =head2
19574 #: ../src/guestfs-actions.pod:6916
19575 msgid "guestfs_vglvuuids"
19576 msgstr ""
19577
19578 # type: verbatim
19579 #. type: verbatim
19580 #: ../src/guestfs-actions.pod:6918
19581 #, no-wrap
19582 msgid ""
19583 " char **\n"
19584 " guestfs_vglvuuids (guestfs_h *g,\n"
19585 "                    const char *vgname);\n"
19586 "\n"
19587 msgstr ""
19588
19589 # type: textblock
19590 #. type: textblock
19591 #: ../src/guestfs-actions.pod:6922 ../fish/guestfish-actions.pod:4647
19592 msgid ""
19593 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19594 "volumes created in this volume group."
19595 msgstr ""
19596
19597 # type: textblock
19598 #. type: textblock
19599 #: ../src/guestfs-actions.pod:6925
19600 msgid ""
19601 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19602 "associate logical volumes and volume groups."
19603 msgstr ""
19604
19605 # type: textblock
19606 #. type: textblock
19607 #: ../src/guestfs-actions.pod:6928
19608 msgid "See also C<guestfs_vgpvuuids>."
19609 msgstr ""
19610
19611 # type: =head2
19612 #. type: =head2
19613 #: ../src/guestfs-actions.pod:6936
19614 msgid "guestfs_vgpvuuids"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #. type: verbatim
19619 #: ../src/guestfs-actions.pod:6938
19620 #, no-wrap
19621 msgid ""
19622 " char **\n"
19623 " guestfs_vgpvuuids (guestfs_h *g,\n"
19624 "                    const char *vgname);\n"
19625 "\n"
19626 msgstr ""
19627
19628 # type: textblock
19629 #. type: textblock
19630 #: ../src/guestfs-actions.pod:6942 ../fish/guestfish-actions.pod:4659
19631 msgid ""
19632 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19633 "volumes that this volume group resides on."
19634 msgstr ""
19635
19636 # type: textblock
19637 #. type: textblock
19638 #: ../src/guestfs-actions.pod:6945
19639 msgid ""
19640 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19641 "associate physical volumes and volume groups."
19642 msgstr ""
19643
19644 # type: textblock
19645 #. type: textblock
19646 #: ../src/guestfs-actions.pod:6948
19647 msgid "See also C<guestfs_vglvuuids>."
19648 msgstr ""
19649
19650 # type: =head2
19651 #. type: =head2
19652 #: ../src/guestfs-actions.pod:6956
19653 msgid "guestfs_vgremove"
19654 msgstr ""
19655
19656 # type: verbatim
19657 #. type: verbatim
19658 #: ../src/guestfs-actions.pod:6958
19659 #, no-wrap
19660 msgid ""
19661 " int\n"
19662 " guestfs_vgremove (guestfs_h *g,\n"
19663 "                   const char *vgname);\n"
19664 "\n"
19665 msgstr ""
19666
19667 # type: textblock
19668 #. type: textblock
19669 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4671
19670 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19671 msgstr ""
19672
19673 # type: textblock
19674 #. type: textblock
19675 #: ../src/guestfs-actions.pod:6964 ../fish/guestfish-actions.pod:4673
19676 msgid ""
19677 "This also forcibly removes all logical volumes in the volume group (if any)."
19678 msgstr ""
19679
19680 # type: =head2
19681 #. type: =head2
19682 #: ../src/guestfs-actions.pod:6971
19683 msgid "guestfs_vgrename"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #. type: verbatim
19688 #: ../src/guestfs-actions.pod:6973
19689 #, no-wrap
19690 msgid ""
19691 " int\n"
19692 " guestfs_vgrename (guestfs_h *g,\n"
19693 "                   const char *volgroup,\n"
19694 "                   const char *newvolgroup);\n"
19695 "\n"
19696 msgstr ""
19697
19698 # type: textblock
19699 #. type: textblock
19700 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4680
19701 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19702 msgstr ""
19703
19704 # type: =head2
19705 #. type: =head2
19706 #: ../src/guestfs-actions.pod:6984
19707 msgid "guestfs_vgs"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #. type: verbatim
19712 #: ../src/guestfs-actions.pod:6986
19713 #, no-wrap
19714 msgid ""
19715 " char **\n"
19716 " guestfs_vgs (guestfs_h *g);\n"
19717 "\n"
19718 msgstr ""
19719
19720 # type: textblock
19721 #. type: textblock
19722 #: ../src/guestfs-actions.pod:6989 ../fish/guestfish-actions.pod:4686
19723 msgid ""
19724 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19725 "> command."
19726 msgstr ""
19727
19728 # type: textblock
19729 #. type: textblock
19730 #: ../src/guestfs-actions.pod:6992 ../fish/guestfish-actions.pod:4689
19731 msgid ""
19732 "This returns a list of just the volume group names that were detected (eg. "
19733 "C<VolGroup00>)."
19734 msgstr ""
19735
19736 # type: textblock
19737 #. type: textblock
19738 #: ../src/guestfs-actions.pod:6995
19739 msgid "See also C<guestfs_vgs_full>."
19740 msgstr ""
19741
19742 # type: =head2
19743 #. type: =head2
19744 #: ../src/guestfs-actions.pod:7003
19745 msgid "guestfs_vgs_full"
19746 msgstr ""
19747
19748 # type: verbatim
19749 #. type: verbatim
19750 #: ../src/guestfs-actions.pod:7005
19751 #, no-wrap
19752 msgid ""
19753 " struct guestfs_lvm_vg_list *\n"
19754 " guestfs_vgs_full (guestfs_h *g);\n"
19755 "\n"
19756 msgstr ""
19757
19758 # type: textblock
19759 #. type: textblock
19760 #: ../src/guestfs-actions.pod:7008 ../fish/guestfish-actions.pod:4698
19761 msgid ""
19762 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19763 "> command.  The \"full\" version includes all fields."
19764 msgstr ""
19765
19766 # type: textblock
19767 #. type: textblock
19768 #: ../src/guestfs-actions.pod:7011
19769 msgid ""
19770 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19771 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19772 msgstr ""
19773
19774 # type: =head2
19775 #. type: =head2
19776 #: ../src/guestfs-actions.pod:7017
19777 msgid "guestfs_vgscan"
19778 msgstr ""
19779
19780 # type: verbatim
19781 #. type: verbatim
19782 #: ../src/guestfs-actions.pod:7019
19783 #, no-wrap
19784 msgid ""
19785 " int\n"
19786 " guestfs_vgscan (guestfs_h *g);\n"
19787 "\n"
19788 msgstr ""
19789
19790 # type: textblock
19791 #. type: textblock
19792 #: ../src/guestfs-actions.pod:7022 ../fish/guestfish-actions.pod:4705
19793 msgid ""
19794 "This rescans all block devices and rebuilds the list of LVM physical "
19795 "volumes, volume groups and logical volumes."
19796 msgstr ""
19797
19798 # type: =head2
19799 #. type: =head2
19800 #: ../src/guestfs-actions.pod:7029
19801 msgid "guestfs_vguuid"
19802 msgstr ""
19803
19804 # type: verbatim
19805 #. type: verbatim
19806 #: ../src/guestfs-actions.pod:7031
19807 #, no-wrap
19808 msgid ""
19809 " char *\n"
19810 " guestfs_vguuid (guestfs_h *g,\n"
19811 "                 const char *vgname);\n"
19812 "\n"
19813 msgstr ""
19814
19815 # type: textblock
19816 #. type: textblock
19817 #: ../src/guestfs-actions.pod:7035 ../fish/guestfish-actions.pod:4712
19818 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19819 msgstr ""
19820
19821 # type: =head2
19822 #. type: =head2
19823 #: ../src/guestfs-actions.pod:7042
19824 msgid "guestfs_wait_ready"
19825 msgstr ""
19826
19827 # type: verbatim
19828 #. type: verbatim
19829 #: ../src/guestfs-actions.pod:7044
19830 #, no-wrap
19831 msgid ""
19832 " int\n"
19833 " guestfs_wait_ready (guestfs_h *g);\n"
19834 "\n"
19835 msgstr ""
19836
19837 # type: textblock
19838 #. type: textblock
19839 #: ../src/guestfs-actions.pod:7047
19840 msgid "This function is a no op."
19841 msgstr ""
19842
19843 # type: textblock
19844 #. type: textblock
19845 #: ../src/guestfs-actions.pod:7049
19846 msgid ""
19847 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19848 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19849 "is no longer necessary because C<guestfs_launch> now does the waiting."
19850 msgstr ""
19851
19852 # type: textblock
19853 #. type: textblock
19854 #: ../src/guestfs-actions.pod:7054
19855 msgid ""
19856 "If you see any calls to this function in code then you can just remove them, "
19857 "unless you want to retain compatibility with older versions of the API."
19858 msgstr ""
19859
19860 # type: =head2
19861 #. type: =head2
19862 #: ../src/guestfs-actions.pod:7062
19863 msgid "guestfs_wc_c"
19864 msgstr ""
19865
19866 # type: verbatim
19867 #. type: verbatim
19868 #: ../src/guestfs-actions.pod:7064
19869 #, no-wrap
19870 msgid ""
19871 " int\n"
19872 " guestfs_wc_c (guestfs_h *g,\n"
19873 "               const char *path);\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: textblock
19878 #. type: textblock
19879 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4718
19880 msgid ""
19881 "This command counts the characters in a file, using the C<wc -c> external "
19882 "command."
19883 msgstr ""
19884
19885 # type: =head2
19886 #. type: =head2
19887 #: ../src/guestfs-actions.pod:7075
19888 msgid "guestfs_wc_l"
19889 msgstr ""
19890
19891 # type: verbatim
19892 #. type: verbatim
19893 #: ../src/guestfs-actions.pod:7077
19894 #, no-wrap
19895 msgid ""
19896 " int\n"
19897 " guestfs_wc_l (guestfs_h *g,\n"
19898 "               const char *path);\n"
19899 "\n"
19900 msgstr ""
19901
19902 # type: textblock
19903 #. type: textblock
19904 #: ../src/guestfs-actions.pod:7081 ../fish/guestfish-actions.pod:4725
19905 msgid ""
19906 "This command counts the lines in a file, using the C<wc -l> external command."
19907 msgstr ""
19908
19909 # type: =head2
19910 #. type: =head2
19911 #: ../src/guestfs-actions.pod:7088
19912 msgid "guestfs_wc_w"
19913 msgstr ""
19914
19915 # type: verbatim
19916 #. type: verbatim
19917 #: ../src/guestfs-actions.pod:7090
19918 #, no-wrap
19919 msgid ""
19920 " int\n"
19921 " guestfs_wc_w (guestfs_h *g,\n"
19922 "               const char *path);\n"
19923 "\n"
19924 msgstr ""
19925
19926 # type: textblock
19927 #. type: textblock
19928 #: ../src/guestfs-actions.pod:7094 ../fish/guestfish-actions.pod:4732
19929 msgid ""
19930 "This command counts the words in a file, using the C<wc -w> external command."
19931 msgstr ""
19932
19933 # type: =head2
19934 #. type: =head2
19935 #: ../src/guestfs-actions.pod:7101
19936 msgid "guestfs_write"
19937 msgstr ""
19938
19939 # type: verbatim
19940 #. type: verbatim
19941 #: ../src/guestfs-actions.pod:7103
19942 #, no-wrap
19943 msgid ""
19944 " int\n"
19945 " guestfs_write (guestfs_h *g,\n"
19946 "                const char *path,\n"
19947 "                const char *content,\n"
19948 "                size_t content_size);\n"
19949 "\n"
19950 msgstr ""
19951
19952 # type: textblock
19953 #. type: textblock
19954 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4739
19955 msgid ""
19956 "This call creates a file called C<path>.  The content of the file is the "
19957 "string C<content> (which can contain any 8 bit data)."
19958 msgstr ""
19959
19960 # type: =head2
19961 #. type: =head2
19962 #: ../src/guestfs-actions.pod:7119
19963 msgid "guestfs_write_file"
19964 msgstr ""
19965
19966 # type: verbatim
19967 #. type: verbatim
19968 #: ../src/guestfs-actions.pod:7121
19969 #, no-wrap
19970 msgid ""
19971 " int\n"
19972 " guestfs_write_file (guestfs_h *g,\n"
19973 "                     const char *path,\n"
19974 "                     const char *content,\n"
19975 "                     int size);\n"
19976 "\n"
19977 msgstr ""
19978
19979 # type: textblock
19980 #. type: textblock
19981 #: ../src/guestfs-actions.pod:7127 ../fish/guestfish-actions.pod:4749
19982 msgid ""
19983 "This call creates a file called C<path>.  The contents of the file is the "
19984 "string C<content> (which can contain any 8 bit data), with length C<size>."
19985 msgstr ""
19986
19987 # type: textblock
19988 #. type: textblock
19989 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4753
19990 msgid ""
19991 "As a special case, if C<size> is C<0> then the length is calculated using "
19992 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19993 msgstr ""
19994
19995 # type: textblock
19996 #. type: textblock
19997 #: ../src/guestfs-actions.pod:7135 ../fish/guestfish-actions.pod:4757
19998 msgid ""
19999 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20000 "I<not> work, even if the length is specified."
20001 msgstr ""
20002
20003 # type: textblock
20004 #. type: textblock
20005 #: ../src/guestfs-actions.pod:7143 ../fish/guestfish-actions.pod:4763
20006 msgid ""
20007 "This function is deprecated.  In new code, use the C<write> call instead."
20008 msgstr ""
20009
20010 # type: =head2
20011 #. type: =head2
20012 #: ../src/guestfs-actions.pod:7152
20013 msgid "guestfs_zegrep"
20014 msgstr ""
20015
20016 # type: verbatim
20017 #. type: verbatim
20018 #: ../src/guestfs-actions.pod:7154
20019 #, no-wrap
20020 msgid ""
20021 " char **\n"
20022 " guestfs_zegrep (guestfs_h *g,\n"
20023 "                 const char *regex,\n"
20024 "                 const char *path);\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #. type: textblock
20030 #: ../src/guestfs-actions.pod:7159 ../fish/guestfish-actions.pod:4774
20031 msgid ""
20032 "This calls the external C<zegrep> program and returns the matching lines."
20033 msgstr ""
20034
20035 # type: =head2
20036 #. type: =head2
20037 #: ../src/guestfs-actions.pod:7171
20038 msgid "guestfs_zegrepi"
20039 msgstr ""
20040
20041 # type: verbatim
20042 #. type: verbatim
20043 #: ../src/guestfs-actions.pod:7173
20044 #, no-wrap
20045 msgid ""
20046 " char **\n"
20047 " guestfs_zegrepi (guestfs_h *g,\n"
20048 "                  const char *regex,\n"
20049 "                  const char *path);\n"
20050 "\n"
20051 msgstr ""
20052
20053 # type: textblock
20054 #. type: textblock
20055 #: ../src/guestfs-actions.pod:7178 ../fish/guestfish-actions.pod:4784
20056 msgid ""
20057 "This calls the external C<zegrep -i> program and returns the matching lines."
20058 msgstr ""
20059
20060 # type: =head2
20061 #. type: =head2
20062 #: ../src/guestfs-actions.pod:7190
20063 msgid "guestfs_zero"
20064 msgstr ""
20065
20066 # type: verbatim
20067 #. type: verbatim
20068 #: ../src/guestfs-actions.pod:7192
20069 #, no-wrap
20070 msgid ""
20071 " int\n"
20072 " guestfs_zero (guestfs_h *g,\n"
20073 "               const char *device);\n"
20074 "\n"
20075 msgstr ""
20076
20077 # type: textblock
20078 #. type: textblock
20079 #: ../src/guestfs-actions.pod:7196 ../fish/guestfish-actions.pod:4794
20080 msgid "This command writes zeroes over the first few blocks of C<device>."
20081 msgstr ""
20082
20083 # type: textblock
20084 #. type: textblock
20085 #: ../src/guestfs-actions.pod:7198 ../fish/guestfish-actions.pod:4796
20086 msgid ""
20087 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20088 "securely wipe the device).  It should be sufficient to remove any partition "
20089 "tables, filesystem superblocks and so on."
20090 msgstr ""
20091
20092 # type: textblock
20093 #. type: textblock
20094 #: ../src/guestfs-actions.pod:7202
20095 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20096 msgstr ""
20097
20098 # type: =head2
20099 #. type: =head2
20100 #: ../src/guestfs-actions.pod:7213
20101 msgid "guestfs_zero_device"
20102 msgstr ""
20103
20104 # type: verbatim
20105 #. type: verbatim
20106 #: ../src/guestfs-actions.pod:7215
20107 #, no-wrap
20108 msgid ""
20109 " int\n"
20110 " guestfs_zero_device (guestfs_h *g,\n"
20111 "                      const char *device);\n"
20112 "\n"
20113 msgstr ""
20114
20115 # type: textblock
20116 #. type: textblock
20117 #: ../src/guestfs-actions.pod:7219
20118 msgid ""
20119 "This command writes zeroes over the entire C<device>.  Compare with "
20120 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20121 msgstr ""
20122
20123 # type: textblock
20124 #. type: textblock
20125 #: ../src/guestfs-actions.pod:7233
20126 msgid "(Added in 1.3.1)"
20127 msgstr ""
20128
20129 # type: =head2
20130 #. type: =head2
20131 #: ../src/guestfs-actions.pod:7235
20132 msgid "guestfs_zerofree"
20133 msgstr ""
20134
20135 # type: verbatim
20136 #. type: verbatim
20137 #: ../src/guestfs-actions.pod:7237
20138 #, no-wrap
20139 msgid ""
20140 " int\n"
20141 " guestfs_zerofree (guestfs_h *g,\n"
20142 "                   const char *device);\n"
20143 "\n"
20144 msgstr ""
20145
20146 # type: textblock
20147 #. type: textblock
20148 #: ../src/guestfs-actions.pod:7241 ../fish/guestfish-actions.pod:4817
20149 msgid ""
20150 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20151 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20152 "possible to compress the filesystem more effectively."
20153 msgstr ""
20154
20155 # type: textblock
20156 #. type: textblock
20157 #: ../src/guestfs-actions.pod:7246 ../fish/guestfish-actions.pod:4822
20158 msgid "You should B<not> run this program if the filesystem is mounted."
20159 msgstr ""
20160
20161 # type: textblock
20162 #. type: textblock
20163 #: ../src/guestfs-actions.pod:7249 ../fish/guestfish-actions.pod:4825
20164 msgid ""
20165 "It is possible that using this program can damage the filesystem or data on "
20166 "the filesystem."
20167 msgstr ""
20168
20169 # type: =head2
20170 #. type: =head2
20171 #: ../src/guestfs-actions.pod:7256
20172 msgid "guestfs_zfgrep"
20173 msgstr ""
20174
20175 # type: verbatim
20176 #. type: verbatim
20177 #: ../src/guestfs-actions.pod:7258
20178 #, no-wrap
20179 msgid ""
20180 " char **\n"
20181 " guestfs_zfgrep (guestfs_h *g,\n"
20182 "                 const char *pattern,\n"
20183 "                 const char *path);\n"
20184 "\n"
20185 msgstr ""
20186
20187 # type: textblock
20188 #. type: textblock
20189 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4832
20190 msgid ""
20191 "This calls the external C<zfgrep> program and returns the matching lines."
20192 msgstr ""
20193
20194 # type: =head2
20195 #. type: =head2
20196 #: ../src/guestfs-actions.pod:7275
20197 msgid "guestfs_zfgrepi"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #. type: verbatim
20202 #: ../src/guestfs-actions.pod:7277
20203 #, no-wrap
20204 msgid ""
20205 " char **\n"
20206 " guestfs_zfgrepi (guestfs_h *g,\n"
20207 "                  const char *pattern,\n"
20208 "                  const char *path);\n"
20209 "\n"
20210 msgstr ""
20211
20212 # type: textblock
20213 #. type: textblock
20214 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4842
20215 msgid ""
20216 "This calls the external C<zfgrep -i> program and returns the matching lines."
20217 msgstr ""
20218
20219 # type: =head2
20220 #. type: =head2
20221 #: ../src/guestfs-actions.pod:7294
20222 msgid "guestfs_zfile"
20223 msgstr ""
20224
20225 # type: verbatim
20226 #. type: verbatim
20227 #: ../src/guestfs-actions.pod:7296
20228 #, no-wrap
20229 msgid ""
20230 " char *\n"
20231 " guestfs_zfile (guestfs_h *g,\n"
20232 "                const char *meth,\n"
20233 "                const char *path);\n"
20234 "\n"
20235 msgstr ""
20236
20237 # type: textblock
20238 #. type: textblock
20239 #: ../src/guestfs-actions.pod:7301 ../fish/guestfish-actions.pod:4852
20240 msgid ""
20241 "This command runs C<file> after first decompressing C<path> using C<method>."
20242 msgstr ""
20243
20244 # type: textblock
20245 #. type: textblock
20246 #: ../src/guestfs-actions.pod:7304 ../fish/guestfish-actions.pod:4855
20247 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20248 msgstr ""
20249
20250 # type: textblock
20251 #. type: textblock
20252 #: ../src/guestfs-actions.pod:7306
20253 msgid ""
20254 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20255 "files."
20256 msgstr ""
20257
20258 # type: textblock
20259 #. type: textblock
20260 #: ../src/guestfs-actions.pod:7312 ../fish/guestfish-actions.pod:4860
20261 msgid ""
20262 "This function is deprecated.  In new code, use the C<file> call instead."
20263 msgstr ""
20264
20265 # type: =head2
20266 #. type: =head2
20267 #: ../src/guestfs-actions.pod:7321
20268 msgid "guestfs_zgrep"
20269 msgstr ""
20270
20271 # type: verbatim
20272 #. type: verbatim
20273 #: ../src/guestfs-actions.pod:7323
20274 #, no-wrap
20275 msgid ""
20276 " char **\n"
20277 " guestfs_zgrep (guestfs_h *g,\n"
20278 "                const char *regex,\n"
20279 "                const char *path);\n"
20280 "\n"
20281 msgstr ""
20282
20283 # type: textblock
20284 #. type: textblock
20285 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4871
20286 msgid ""
20287 "This calls the external C<zgrep> program and returns the matching lines."
20288 msgstr ""
20289
20290 # type: =head2
20291 #. type: =head2
20292 #: ../src/guestfs-actions.pod:7340
20293 msgid "guestfs_zgrepi"
20294 msgstr ""
20295
20296 # type: verbatim
20297 #. type: verbatim
20298 #: ../src/guestfs-actions.pod:7342
20299 #, no-wrap
20300 msgid ""
20301 " char **\n"
20302 " guestfs_zgrepi (guestfs_h *g,\n"
20303 "                 const char *regex,\n"
20304 "                 const char *path);\n"
20305 "\n"
20306 msgstr ""
20307
20308 # type: textblock
20309 #. type: textblock
20310 #: ../src/guestfs-actions.pod:7347 ../fish/guestfish-actions.pod:4881
20311 msgid ""
20312 "This calls the external C<zgrep -i> program and returns the matching lines."
20313 msgstr ""
20314
20315 # type: =item
20316 #. type: =item
20317 #: ../src/guestfs-availability.pod:3
20318 msgid "B<augeas>"
20319 msgstr ""
20320
20321 # type: textblock
20322 #. type: textblock
20323 #: ../src/guestfs-availability.pod:5
20324 msgid ""
20325 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20326 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20327 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20328 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20329 "L</guestfs_aug_save> L</guestfs_aug_set>"
20330 msgstr ""
20331
20332 # type: =item
20333 #. type: =item
20334 #: ../src/guestfs-availability.pod:21
20335 msgid "B<inotify>"
20336 msgstr ""
20337
20338 # type: textblock
20339 #. type: textblock
20340 #: ../src/guestfs-availability.pod:23
20341 msgid ""
20342 "The following functions: L</guestfs_inotify_add_watch> L</"
20343 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20344 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20345 msgstr ""
20346
20347 # type: =item
20348 #. type: =item
20349 #: ../src/guestfs-availability.pod:31
20350 msgid "B<linuxfsuuid>"
20351 msgstr ""
20352
20353 # type: textblock
20354 #. type: textblock
20355 #: ../src/guestfs-availability.pod:33
20356 msgid ""
20357 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20358 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20359 msgstr ""
20360
20361 # type: =item
20362 #. type: =item
20363 #: ../src/guestfs-availability.pod:40
20364 msgid "B<linuxmodules>"
20365 msgstr ""
20366
20367 # type: textblock
20368 #. type: textblock
20369 #: ../src/guestfs-availability.pod:42
20370 msgid "The following functions: L</guestfs_modprobe>"
20371 msgstr ""
20372
20373 # type: =item
20374 #. type: =item
20375 #: ../src/guestfs-availability.pod:45
20376 msgid "B<linuxxattrs>"
20377 msgstr ""
20378
20379 # type: textblock
20380 #. type: textblock
20381 #: ../src/guestfs-availability.pod:47
20382 msgid ""
20383 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20384 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20385 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20386 "guestfs_setxattr>"
20387 msgstr ""
20388
20389 # type: =item
20390 #. type: =item
20391 #: ../src/guestfs-availability.pod:58
20392 msgid "B<luks>"
20393 msgstr ""
20394
20395 # type: textblock
20396 #. type: textblock
20397 #: ../src/guestfs-availability.pod:60
20398 msgid ""
20399 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20400 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20401 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20402 msgstr ""
20403
20404 # type: =item
20405 #. type: =item
20406 #: ../src/guestfs-availability.pod:69
20407 msgid "B<lvm2>"
20408 msgstr ""
20409
20410 # type: textblock
20411 #. type: textblock
20412 #: ../src/guestfs-availability.pod:71
20413 msgid ""
20414 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20415 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20416 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20417 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20418 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20419 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20420 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20421 msgstr ""
20422
20423 # type: =item
20424 #. type: =item
20425 #: ../src/guestfs-availability.pod:94
20426 msgid "B<mknod>"
20427 msgstr ""
20428
20429 # type: textblock
20430 #. type: textblock
20431 #: ../src/guestfs-availability.pod:96
20432 msgid ""
20433 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20434 "guestfs_mknod_b> L</guestfs_mknod_c>"
20435 msgstr ""
20436
20437 # type: =item
20438 #. type: =item
20439 #: ../src/guestfs-availability.pod:102
20440 msgid "B<ntfs3g>"
20441 msgstr ""
20442
20443 # type: textblock
20444 #. type: textblock
20445 #: ../src/guestfs-availability.pod:104
20446 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20447 msgstr ""
20448
20449 # type: =item
20450 #. type: =item
20451 #: ../src/guestfs-availability.pod:107
20452 msgid "B<ntfsprogs>"
20453 msgstr ""
20454
20455 # type: textblock
20456 #. type: textblock
20457 #: ../src/guestfs-availability.pod:109
20458 msgid ""
20459 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20460 msgstr ""
20461
20462 # type: =item
20463 #. type: =item
20464 #: ../src/guestfs-availability.pod:113
20465 msgid "B<realpath>"
20466 msgstr ""
20467
20468 # type: textblock
20469 #. type: textblock
20470 #: ../src/guestfs-availability.pod:115
20471 msgid "The following functions: L</guestfs_realpath>"
20472 msgstr ""
20473
20474 # type: =item
20475 #. type: =item
20476 #: ../src/guestfs-availability.pod:118
20477 msgid "B<scrub>"
20478 msgstr ""
20479
20480 # type: textblock
20481 #. type: textblock
20482 #: ../src/guestfs-availability.pod:120
20483 msgid ""
20484 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20485 "guestfs_scrub_freespace>"
20486 msgstr ""
20487
20488 # type: =item
20489 #. type: =item
20490 #: ../src/guestfs-availability.pod:125
20491 msgid "B<selinux>"
20492 msgstr ""
20493
20494 # type: textblock
20495 #. type: textblock
20496 #: ../src/guestfs-availability.pod:127
20497 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20498 msgstr ""
20499
20500 # type: =item
20501 #. type: =item
20502 #: ../src/guestfs-availability.pod:131
20503 msgid "B<xz>"
20504 msgstr ""
20505
20506 # type: textblock
20507 #. type: textblock
20508 #: ../src/guestfs-availability.pod:133
20509 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20510 msgstr ""
20511
20512 # type: =item
20513 #. type: =item
20514 #: ../src/guestfs-availability.pod:137
20515 msgid "B<zerofree>"
20516 msgstr ""
20517
20518 # type: textblock
20519 #. type: textblock
20520 #: ../src/guestfs-availability.pod:139
20521 msgid "The following functions: L</guestfs_zerofree>"
20522 msgstr ""
20523
20524 # type: =head2
20525 #. type: =head2
20526 #: ../src/guestfs-structs.pod:1
20527 msgid "guestfs_int_bool"
20528 msgstr ""
20529
20530 # type: verbatim
20531 #. type: verbatim
20532 #: ../src/guestfs-structs.pod:3
20533 #, no-wrap
20534 msgid ""
20535 " struct guestfs_int_bool {\n"
20536 "   int32_t i;\n"
20537 "   int32_t b;\n"
20538 " };\n"
20539 " \n"
20540 msgstr ""
20541
20542 # type: verbatim
20543 #. type: verbatim
20544 #: ../src/guestfs-structs.pod:8
20545 #, no-wrap
20546 msgid ""
20547 " struct guestfs_int_bool_list {\n"
20548 "   uint32_t len; /* Number of elements in list. */\n"
20549 "   struct guestfs_int_bool *val; /* Elements. */\n"
20550 " };\n"
20551 " \n"
20552 msgstr ""
20553
20554 # type: verbatim
20555 #. type: verbatim
20556 #: ../src/guestfs-structs.pod:13
20557 #, no-wrap
20558 msgid ""
20559 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20560 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20561 "\n"
20562 msgstr ""
20563
20564 # type: =head2
20565 #. type: =head2
20566 #: ../src/guestfs-structs.pod:16
20567 msgid "guestfs_lvm_pv"
20568 msgstr ""
20569
20570 # type: verbatim
20571 #. type: verbatim
20572 #: ../src/guestfs-structs.pod:18
20573 #, no-wrap
20574 msgid ""
20575 " struct guestfs_lvm_pv {\n"
20576 "   char *pv_name;\n"
20577 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20578 "   char pv_uuid[32];\n"
20579 "   char *pv_fmt;\n"
20580 "   uint64_t pv_size;\n"
20581 "   uint64_t dev_size;\n"
20582 "   uint64_t pv_free;\n"
20583 "   uint64_t pv_used;\n"
20584 "   char *pv_attr;\n"
20585 "   int64_t pv_pe_count;\n"
20586 "   int64_t pv_pe_alloc_count;\n"
20587 "   char *pv_tags;\n"
20588 "   uint64_t pe_start;\n"
20589 "   int64_t pv_mda_count;\n"
20590 "   uint64_t pv_mda_free;\n"
20591 " };\n"
20592 " \n"
20593 msgstr ""
20594
20595 # type: verbatim
20596 #. type: verbatim
20597 #: ../src/guestfs-structs.pod:36
20598 #, no-wrap
20599 msgid ""
20600 " struct guestfs_lvm_pv_list {\n"
20601 "   uint32_t len; /* Number of elements in list. */\n"
20602 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20603 " };\n"
20604 " \n"
20605 msgstr ""
20606
20607 # type: verbatim
20608 #. type: verbatim
20609 #: ../src/guestfs-structs.pod:41
20610 #, no-wrap
20611 msgid ""
20612 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20613 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20614 "\n"
20615 msgstr ""
20616
20617 # type: =head2
20618 #. type: =head2
20619 #: ../src/guestfs-structs.pod:44
20620 msgid "guestfs_lvm_vg"
20621 msgstr ""
20622
20623 # type: verbatim
20624 #. type: verbatim
20625 #: ../src/guestfs-structs.pod:46
20626 #, no-wrap
20627 msgid ""
20628 " struct guestfs_lvm_vg {\n"
20629 "   char *vg_name;\n"
20630 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20631 "   char vg_uuid[32];\n"
20632 "   char *vg_fmt;\n"
20633 "   char *vg_attr;\n"
20634 "   uint64_t vg_size;\n"
20635 "   uint64_t vg_free;\n"
20636 "   char *vg_sysid;\n"
20637 "   uint64_t vg_extent_size;\n"
20638 "   int64_t vg_extent_count;\n"
20639 "   int64_t vg_free_count;\n"
20640 "   int64_t max_lv;\n"
20641 "   int64_t max_pv;\n"
20642 "   int64_t pv_count;\n"
20643 "   int64_t lv_count;\n"
20644 "   int64_t snap_count;\n"
20645 "   int64_t vg_seqno;\n"
20646 "   char *vg_tags;\n"
20647 "   int64_t vg_mda_count;\n"
20648 "   uint64_t vg_mda_free;\n"
20649 " };\n"
20650 " \n"
20651 msgstr ""
20652
20653 # type: verbatim
20654 #. type: verbatim
20655 #: ../src/guestfs-structs.pod:69
20656 #, no-wrap
20657 msgid ""
20658 " struct guestfs_lvm_vg_list {\n"
20659 "   uint32_t len; /* Number of elements in list. */\n"
20660 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20661 " };\n"
20662 " \n"
20663 msgstr ""
20664
20665 # type: verbatim
20666 #. type: verbatim
20667 #: ../src/guestfs-structs.pod:74
20668 #, no-wrap
20669 msgid ""
20670 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20671 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20672 "\n"
20673 msgstr ""
20674
20675 # type: =head2
20676 #. type: =head2
20677 #: ../src/guestfs-structs.pod:77
20678 msgid "guestfs_lvm_lv"
20679 msgstr ""
20680
20681 # type: verbatim
20682 #. type: verbatim
20683 #: ../src/guestfs-structs.pod:79
20684 #, no-wrap
20685 msgid ""
20686 " struct guestfs_lvm_lv {\n"
20687 "   char *lv_name;\n"
20688 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20689 "   char lv_uuid[32];\n"
20690 "   char *lv_attr;\n"
20691 "   int64_t lv_major;\n"
20692 "   int64_t lv_minor;\n"
20693 "   int64_t lv_kernel_major;\n"
20694 "   int64_t lv_kernel_minor;\n"
20695 "   uint64_t lv_size;\n"
20696 "   int64_t seg_count;\n"
20697 "   char *origin;\n"
20698 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20699 "   float snap_percent;\n"
20700 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20701 "   float copy_percent;\n"
20702 "   char *move_pv;\n"
20703 "   char *lv_tags;\n"
20704 "   char *mirror_log;\n"
20705 "   char *modules;\n"
20706 " };\n"
20707 " \n"
20708 msgstr ""
20709
20710 # type: verbatim
20711 #. type: verbatim
20712 #: ../src/guestfs-structs.pod:101
20713 #, no-wrap
20714 msgid ""
20715 " struct guestfs_lvm_lv_list {\n"
20716 "   uint32_t len; /* Number of elements in list. */\n"
20717 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20718 " };\n"
20719 " \n"
20720 msgstr ""
20721
20722 # type: verbatim
20723 #. type: verbatim
20724 #: ../src/guestfs-structs.pod:106
20725 #, no-wrap
20726 msgid ""
20727 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20728 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20729 "\n"
20730 msgstr ""
20731
20732 # type: verbatim
20733 #. type: verbatim
20734 #: ../src/guestfs-structs.pod:111
20735 #, no-wrap
20736 msgid ""
20737 " struct guestfs_stat {\n"
20738 "   int64_t dev;\n"
20739 "   int64_t ino;\n"
20740 "   int64_t mode;\n"
20741 "   int64_t nlink;\n"
20742 "   int64_t uid;\n"
20743 "   int64_t gid;\n"
20744 "   int64_t rdev;\n"
20745 "   int64_t size;\n"
20746 "   int64_t blksize;\n"
20747 "   int64_t blocks;\n"
20748 "   int64_t atime;\n"
20749 "   int64_t mtime;\n"
20750 "   int64_t ctime;\n"
20751 " };\n"
20752 " \n"
20753 msgstr ""
20754
20755 # type: verbatim
20756 #. type: verbatim
20757 #: ../src/guestfs-structs.pod:127
20758 #, no-wrap
20759 msgid ""
20760 " struct guestfs_stat_list {\n"
20761 "   uint32_t len; /* Number of elements in list. */\n"
20762 "   struct guestfs_stat *val; /* Elements. */\n"
20763 " };\n"
20764 " \n"
20765 msgstr ""
20766
20767 # type: verbatim
20768 #. type: verbatim
20769 #: ../src/guestfs-structs.pod:132
20770 #, no-wrap
20771 msgid ""
20772 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20773 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20774 "\n"
20775 msgstr ""
20776
20777 # type: verbatim
20778 #. type: verbatim
20779 #: ../src/guestfs-structs.pod:137
20780 #, no-wrap
20781 msgid ""
20782 " struct guestfs_statvfs {\n"
20783 "   int64_t bsize;\n"
20784 "   int64_t frsize;\n"
20785 "   int64_t blocks;\n"
20786 "   int64_t bfree;\n"
20787 "   int64_t bavail;\n"
20788 "   int64_t files;\n"
20789 "   int64_t ffree;\n"
20790 "   int64_t favail;\n"
20791 "   int64_t fsid;\n"
20792 "   int64_t flag;\n"
20793 "   int64_t namemax;\n"
20794 " };\n"
20795 " \n"
20796 msgstr ""
20797
20798 # type: verbatim
20799 #. type: verbatim
20800 #: ../src/guestfs-structs.pod:151
20801 #, no-wrap
20802 msgid ""
20803 " struct guestfs_statvfs_list {\n"
20804 "   uint32_t len; /* Number of elements in list. */\n"
20805 "   struct guestfs_statvfs *val; /* Elements. */\n"
20806 " };\n"
20807 " \n"
20808 msgstr ""
20809
20810 # type: verbatim
20811 #. type: verbatim
20812 #: ../src/guestfs-structs.pod:156
20813 #, no-wrap
20814 msgid ""
20815 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20816 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20817 "\n"
20818 msgstr ""
20819
20820 # type: =head2
20821 #. type: =head2
20822 #: ../src/guestfs-structs.pod:159
20823 msgid "guestfs_dirent"
20824 msgstr ""
20825
20826 # type: verbatim
20827 #. type: verbatim
20828 #: ../src/guestfs-structs.pod:161
20829 #, no-wrap
20830 msgid ""
20831 " struct guestfs_dirent {\n"
20832 "   int64_t ino;\n"
20833 "   char ftyp;\n"
20834 "   char *name;\n"
20835 " };\n"
20836 " \n"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #. type: verbatim
20841 #: ../src/guestfs-structs.pod:167
20842 #, no-wrap
20843 msgid ""
20844 " struct guestfs_dirent_list {\n"
20845 "   uint32_t len; /* Number of elements in list. */\n"
20846 "   struct guestfs_dirent *val; /* Elements. */\n"
20847 " };\n"
20848 " \n"
20849 msgstr ""
20850
20851 # type: verbatim
20852 #. type: verbatim
20853 #: ../src/guestfs-structs.pod:172
20854 #, no-wrap
20855 msgid ""
20856 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20857 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20858 "\n"
20859 msgstr ""
20860
20861 # type: verbatim
20862 #. type: verbatim
20863 #: ../src/guestfs-structs.pod:177
20864 #, no-wrap
20865 msgid ""
20866 " struct guestfs_version {\n"
20867 "   int64_t major;\n"
20868 "   int64_t minor;\n"
20869 "   int64_t release;\n"
20870 "   char *extra;\n"
20871 " };\n"
20872 " \n"
20873 msgstr ""
20874
20875 # type: verbatim
20876 #. type: verbatim
20877 #: ../src/guestfs-structs.pod:184
20878 #, no-wrap
20879 msgid ""
20880 " struct guestfs_version_list {\n"
20881 "   uint32_t len; /* Number of elements in list. */\n"
20882 "   struct guestfs_version *val; /* Elements. */\n"
20883 " };\n"
20884 " \n"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #. type: verbatim
20889 #: ../src/guestfs-structs.pod:189
20890 #, no-wrap
20891 msgid ""
20892 " void guestfs_free_version (struct guestfs_free_version *);\n"
20893 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20894 "\n"
20895 msgstr ""
20896
20897 # type: =head2
20898 #. type: =head2
20899 #: ../src/guestfs-structs.pod:192
20900 msgid "guestfs_xattr"
20901 msgstr ""
20902
20903 # type: verbatim
20904 #. type: verbatim
20905 #: ../src/guestfs-structs.pod:194
20906 #, no-wrap
20907 msgid ""
20908 " struct guestfs_xattr {\n"
20909 "   char *attrname;\n"
20910 "   /* The next two fields describe a byte array. */\n"
20911 "   uint32_t attrval_len;\n"
20912 "   char *attrval;\n"
20913 " };\n"
20914 " \n"
20915 msgstr ""
20916
20917 # type: verbatim
20918 #. type: verbatim
20919 #: ../src/guestfs-structs.pod:201
20920 #, no-wrap
20921 msgid ""
20922 " struct guestfs_xattr_list {\n"
20923 "   uint32_t len; /* Number of elements in list. */\n"
20924 "   struct guestfs_xattr *val; /* Elements. */\n"
20925 " };\n"
20926 " \n"
20927 msgstr ""
20928
20929 # type: verbatim
20930 #. type: verbatim
20931 #: ../src/guestfs-structs.pod:206
20932 #, no-wrap
20933 msgid ""
20934 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20935 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20936 "\n"
20937 msgstr ""
20938
20939 # type: =head2
20940 #. type: =head2
20941 #: ../src/guestfs-structs.pod:209
20942 msgid "guestfs_inotify_event"
20943 msgstr ""
20944
20945 # type: verbatim
20946 #. type: verbatim
20947 #: ../src/guestfs-structs.pod:211
20948 #, no-wrap
20949 msgid ""
20950 " struct guestfs_inotify_event {\n"
20951 "   int64_t in_wd;\n"
20952 "   uint32_t in_mask;\n"
20953 "   uint32_t in_cookie;\n"
20954 "   char *in_name;\n"
20955 " };\n"
20956 " \n"
20957 msgstr ""
20958
20959 # type: verbatim
20960 #. type: verbatim
20961 #: ../src/guestfs-structs.pod:218
20962 #, no-wrap
20963 msgid ""
20964 " struct guestfs_inotify_event_list {\n"
20965 "   uint32_t len; /* Number of elements in list. */\n"
20966 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20967 " };\n"
20968 " \n"
20969 msgstr ""
20970
20971 # type: verbatim
20972 #. type: verbatim
20973 #: ../src/guestfs-structs.pod:223
20974 #, no-wrap
20975 msgid ""
20976 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20977 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20978 "\n"
20979 msgstr ""
20980
20981 # type: =head2
20982 #. type: =head2
20983 #: ../src/guestfs-structs.pod:226
20984 msgid "guestfs_partition"
20985 msgstr ""
20986
20987 # type: verbatim
20988 #. type: verbatim
20989 #: ../src/guestfs-structs.pod:228
20990 #, no-wrap
20991 msgid ""
20992 " struct guestfs_partition {\n"
20993 "   int32_t part_num;\n"
20994 "   uint64_t part_start;\n"
20995 "   uint64_t part_end;\n"
20996 "   uint64_t part_size;\n"
20997 " };\n"
20998 " \n"
20999 msgstr ""
21000
21001 # type: verbatim
21002 #. type: verbatim
21003 #: ../src/guestfs-structs.pod:235
21004 #, no-wrap
21005 msgid ""
21006 " struct guestfs_partition_list {\n"
21007 "   uint32_t len; /* Number of elements in list. */\n"
21008 "   struct guestfs_partition *val; /* Elements. */\n"
21009 " };\n"
21010 " \n"
21011 msgstr ""
21012
21013 # type: verbatim
21014 #. type: verbatim
21015 #: ../src/guestfs-structs.pod:240
21016 #, no-wrap
21017 msgid ""
21018 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21019 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21020 "\n"
21021 msgstr ""
21022
21023 # type: =head2
21024 #. type: =head2
21025 #: ../src/guestfs-structs.pod:243
21026 msgid "guestfs_application"
21027 msgstr ""
21028
21029 # type: verbatim
21030 #. type: verbatim
21031 #: ../src/guestfs-structs.pod:245
21032 #, no-wrap
21033 msgid ""
21034 " struct guestfs_application {\n"
21035 "   char *app_name;\n"
21036 "   char *app_display_name;\n"
21037 "   int32_t app_epoch;\n"
21038 "   char *app_version;\n"
21039 "   char *app_release;\n"
21040 "   char *app_install_path;\n"
21041 "   char *app_trans_path;\n"
21042 "   char *app_publisher;\n"
21043 "   char *app_url;\n"
21044 "   char *app_source_package;\n"
21045 "   char *app_summary;\n"
21046 "   char *app_description;\n"
21047 " };\n"
21048 " \n"
21049 msgstr ""
21050
21051 # type: verbatim
21052 #. type: verbatim
21053 #: ../src/guestfs-structs.pod:260
21054 #, no-wrap
21055 msgid ""
21056 " struct guestfs_application_list {\n"
21057 "   uint32_t len; /* Number of elements in list. */\n"
21058 "   struct guestfs_application *val; /* Elements. */\n"
21059 " };\n"
21060 " \n"
21061 msgstr ""
21062
21063 # type: verbatim
21064 #. type: verbatim
21065 #: ../src/guestfs-structs.pod:265
21066 #, no-wrap
21067 msgid ""
21068 " void guestfs_free_application (struct guestfs_free_application *);\n"
21069 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21070 "\n"
21071 msgstr ""
21072
21073 # type: textblock
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:5
21076 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21077 msgstr ""
21078
21079 # type: verbatim
21080 #. type: verbatim
21081 #: ../fish/guestfish.pod:9
21082 #, no-wrap
21083 msgid ""
21084 " guestfish [--options] [commands]\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: verbatim
21089 #. type: verbatim
21090 #: ../fish/guestfish.pod:11
21091 #, no-wrap
21092 msgid ""
21093 " guestfish\n"
21094 "\n"
21095 msgstr ""
21096
21097 # type: verbatim
21098 #. type: verbatim
21099 #: ../fish/guestfish.pod:13
21100 #, no-wrap
21101 msgid ""
21102 " guestfish [--ro|--rw] -a disk.img\n"
21103 "\n"
21104 msgstr ""
21105
21106 # type: verbatim
21107 #. type: verbatim
21108 #: ../fish/guestfish.pod:15
21109 #, no-wrap
21110 msgid ""
21111 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21112 "\n"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #. type: verbatim
21117 #: ../fish/guestfish.pod:17
21118 #, no-wrap
21119 msgid ""
21120 " guestfish -d libvirt-domain\n"
21121 "\n"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #. type: verbatim
21126 #: ../fish/guestfish.pod:19
21127 #, no-wrap
21128 msgid ""
21129 " guestfish [--ro|--rw] -a disk.img -i\n"
21130 "\n"
21131 msgstr ""
21132
21133 # type: verbatim
21134 #. type: verbatim
21135 #: ../fish/guestfish.pod:21
21136 #, no-wrap
21137 msgid ""
21138 " guestfish -d libvirt-domain -i\n"
21139 "\n"
21140 msgstr ""
21141
21142 # type: =head1
21143 #. type: =head1
21144 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
21145 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21146 msgid "WARNING"
21147 msgstr ""
21148
21149 # type: textblock
21150 #. type: textblock
21151 #: ../fish/guestfish.pod:25
21152 msgid ""
21153 "Using guestfish in read/write mode on live virtual machines can be "
21154 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21155 "option to use guestfish safely if the disk image or virtual machine might be "
21156 "live."
21157 msgstr ""
21158
21159 # type: textblock
21160 #. type: textblock
21161 #: ../fish/guestfish.pod:32
21162 msgid ""
21163 "Guestfish is a shell and command-line tool for examining and modifying "
21164 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21165 "functionality of the guestfs API, see L<guestfs(3)>."
21166 msgstr ""
21167
21168 # type: textblock
21169 #. type: textblock
21170 #: ../fish/guestfish.pod:36
21171 msgid ""
21172 "Guestfish gives you structured access to the libguestfs API, from shell "
21173 "scripts or the command line or interactively.  If you want to rescue a "
21174 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21175 "command."
21176 msgstr ""
21177
21178 # type: =head1
21179 #. type: =head1
21180 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:928
21181 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
21182 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
21183 msgid "EXAMPLES"
21184 msgstr ""
21185
21186 # type: =head2
21187 #. type: =head2
21188 #: ../fish/guestfish.pod:43
21189 msgid "As an interactive shell"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #. type: verbatim
21194 #: ../fish/guestfish.pod:45
21195 #, no-wrap
21196 msgid ""
21197 " $ guestfish\n"
21198 " \n"
21199 msgstr ""
21200
21201 # type: verbatim
21202 #. type: verbatim
21203 #: ../fish/guestfish.pod:47
21204 #, no-wrap
21205 msgid ""
21206 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21207 " editing virtual machine filesystems.\n"
21208 " \n"
21209 msgstr ""
21210
21211 # type: verbatim
21212 #. type: verbatim
21213 #: ../fish/guestfish.pod:50
21214 #, no-wrap
21215 msgid ""
21216 " Type: 'help' for a list of commands\n"
21217 "       'man' to read the manual\n"
21218 "       'quit' to quit the shell\n"
21219 " \n"
21220 msgstr ""
21221
21222 # type: verbatim
21223 #. type: verbatim
21224 #: ../fish/guestfish.pod:54
21225 #, no-wrap
21226 msgid ""
21227 " ><fs> add-ro disk.img\n"
21228 " ><fs> run\n"
21229 " ><fs> list-filesystems\n"
21230 " /dev/sda1: ext4\n"
21231 " /dev/vg_guest/lv_root: ext4\n"
21232 " /dev/vg_guest/lv_swap: swap\n"
21233 " ><fs> mount /dev/vg_guest/lv_root /\n"
21234 " ><fs> cat /etc/fstab\n"
21235 " # /etc/fstab\n"
21236 " # Created by anaconda\n"
21237 " [...]\n"
21238 " ><fs> exit\n"
21239 "\n"
21240 msgstr ""
21241
21242 # type: =head2
21243 #. type: =head2
21244 #: ../fish/guestfish.pod:67
21245 msgid "From shell scripts"
21246 msgstr ""
21247
21248 # type: textblock
21249 #. type: textblock
21250 #: ../fish/guestfish.pod:69
21251 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #. type: verbatim
21256 #: ../fish/guestfish.pod:71
21257 #, no-wrap
21258 msgid ""
21259 " guestfish <<_EOF_\n"
21260 " add disk.img\n"
21261 " run\n"
21262 " mount /dev/vg_guest/lv_root /\n"
21263 " write /etc/motd \"Welcome, new users\"\n"
21264 " _EOF_\n"
21265 "\n"
21266 msgstr ""
21267
21268 # type: textblock
21269 #. type: textblock
21270 #: ../fish/guestfish.pod:78
21271 msgid "List the LVM logical volumes in a disk image:"
21272 msgstr ""
21273
21274 # type: verbatim
21275 #. type: verbatim
21276 #: ../fish/guestfish.pod:80
21277 #, no-wrap
21278 msgid ""
21279 " guestfish -a disk.img --ro <<_EOF_\n"
21280 " run\n"
21281 " lvs\n"
21282 " _EOF_\n"
21283 "\n"
21284 msgstr ""
21285
21286 # type: textblock
21287 #. type: textblock
21288 #: ../fish/guestfish.pod:85
21289 msgid "List all the filesystems in a disk image:"
21290 msgstr ""
21291
21292 # type: verbatim
21293 #. type: verbatim
21294 #: ../fish/guestfish.pod:87
21295 #, no-wrap
21296 msgid ""
21297 " guestfish -a disk.img --ro <<_EOF_\n"
21298 " run\n"
21299 " list-filesystems\n"
21300 " _EOF_\n"
21301 "\n"
21302 msgstr ""
21303
21304 # type: =head2
21305 #. type: =head2
21306 #: ../fish/guestfish.pod:92
21307 msgid "On one command line"
21308 msgstr ""
21309
21310 # type: textblock
21311 #. type: textblock
21312 #: ../fish/guestfish.pod:94
21313 msgid "Update C</etc/resolv.conf> in a guest:"
21314 msgstr ""
21315
21316 # type: verbatim
21317 #. type: verbatim
21318 #: ../fish/guestfish.pod:96
21319 #, no-wrap
21320 msgid ""
21321 " guestfish \\\n"
21322 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21323 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: textblock
21328 #. type: textblock
21329 #: ../fish/guestfish.pod:100
21330 msgid "Edit C</boot/grub/grub.conf> interactively:"
21331 msgstr ""
21332
21333 # type: verbatim
21334 #. type: verbatim
21335 #: ../fish/guestfish.pod:102
21336 #, no-wrap
21337 msgid ""
21338 " guestfish --rw --add disk.img \\\n"
21339 "   --mount /dev/vg_guest/lv_root \\\n"
21340 "   --mount /dev/sda1:/boot \\\n"
21341 "   edit /boot/grub/grub.conf\n"
21342 "\n"
21343 msgstr ""
21344
21345 # type: =head2
21346 #. type: =head2
21347 #: ../fish/guestfish.pod:107
21348 msgid "Mount disks automatically"
21349 msgstr ""
21350
21351 # type: textblock
21352 #. type: textblock
21353 #: ../fish/guestfish.pod:109
21354 msgid ""
21355 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21356 msgstr ""
21357
21358 # type: verbatim
21359 #. type: verbatim
21360 #: ../fish/guestfish.pod:112
21361 #, no-wrap
21362 msgid ""
21363 " guestfish --ro -a disk.img -i cat /etc/group\n"
21364 "\n"
21365 msgstr ""
21366
21367 # type: verbatim
21368 #. type: verbatim
21369 #: ../fish/guestfish.pod:114
21370 #, no-wrap
21371 msgid ""
21372 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21373 "\n"
21374 msgstr ""
21375
21376 # type: textblock
21377 #. type: textblock
21378 #: ../fish/guestfish.pod:116
21379 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #. type: verbatim
21384 #: ../fish/guestfish.pod:118
21385 #, no-wrap
21386 msgid ""
21387 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21388 "\n"
21389 msgstr ""
21390
21391 # type: =head2
21392 #. type: =head2
21393 #: ../fish/guestfish.pod:120
21394 msgid "As a script interpreter"
21395 msgstr ""
21396
21397 # type: textblock
21398 #. type: textblock
21399 #: ../fish/guestfish.pod:122
21400 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21401 msgstr ""
21402
21403 # type: verbatim
21404 #. type: verbatim
21405 #: ../fish/guestfish.pod:124
21406 #, no-wrap
21407 msgid ""
21408 " #!/usr/bin/guestfish -f\n"
21409 " sparse test1.img 100M\n"
21410 " run\n"
21411 " part-disk /dev/sda mbr\n"
21412 " mkfs ext2 /dev/sda1\n"
21413 "\n"
21414 msgstr ""
21415
21416 # type: =head2
21417 #. type: =head2
21418 #: ../fish/guestfish.pod:130
21419 msgid "Start with a prepared disk"
21420 msgstr ""
21421
21422 # type: textblock
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:132
21425 msgid ""
21426 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21427 "single ext2-formatted partition:"
21428 msgstr ""
21429
21430 # type: verbatim
21431 #. type: verbatim
21432 #: ../fish/guestfish.pod:135
21433 #, no-wrap
21434 msgid ""
21435 " guestfish -N fs\n"
21436 "\n"
21437 msgstr ""
21438
21439 # type: textblock
21440 #. type: textblock
21441 #: ../fish/guestfish.pod:137
21442 msgid "To list what is available do:"
21443 msgstr ""
21444
21445 # type: verbatim
21446 #. type: verbatim
21447 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:919
21448 #, no-wrap
21449 msgid ""
21450 " guestfish -N help | less\n"
21451 "\n"
21452 msgstr ""
21453
21454 # type: =head2
21455 #. type: =head2
21456 #: ../fish/guestfish.pod:141
21457 msgid "Remote control"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #. type: verbatim
21462 #: ../fish/guestfish.pod:143
21463 #, no-wrap
21464 msgid ""
21465 " eval \"`guestfish --listen`\"\n"
21466 " guestfish --remote add-ro disk.img\n"
21467 " guestfish --remote run\n"
21468 " guestfish --remote lvs\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: =head1
21473 #. type: =head1
21474 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21475 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
21476 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
21477 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
21478 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
21479 msgid "OPTIONS"
21480 msgstr ""
21481
21482 # type: =item
21483 #. type: =item
21484 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
21485 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
21486 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
21487 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
21488 #: ../tools/virt-list-partitions.pl:62
21489 msgid "B<--help>"
21490 msgstr ""
21491
21492 # type: textblock
21493 #. type: textblock
21494 #: ../fish/guestfish.pod:154
21495 msgid "Displays general help on options."
21496 msgstr ""
21497
21498 # type: =item
21499 #. type: =item
21500 #: ../fish/guestfish.pod:156
21501 msgid "B<-h>"
21502 msgstr ""
21503
21504 # type: =item
21505 #. type: =item
21506 #: ../fish/guestfish.pod:158
21507 msgid "B<--cmd-help>"
21508 msgstr ""
21509
21510 # type: textblock
21511 #. type: textblock
21512 #: ../fish/guestfish.pod:160
21513 msgid "Lists all available guestfish commands."
21514 msgstr ""
21515
21516 # type: =item
21517 #. type: =item
21518 #: ../fish/guestfish.pod:162
21519 msgid "B<-h cmd>"
21520 msgstr ""
21521
21522 # type: =item
21523 #. type: =item
21524 #: ../fish/guestfish.pod:164
21525 msgid "B<--cmd-help cmd>"
21526 msgstr ""
21527
21528 # type: textblock
21529 #. type: textblock
21530 #: ../fish/guestfish.pod:166
21531 msgid "Displays detailed help on a single command C<cmd>."
21532 msgstr ""
21533
21534 # type: =item
21535 #. type: =item
21536 #: ../fish/guestfish.pod:168
21537 msgid "B<-a image>"
21538 msgstr ""
21539
21540 # type: =item
21541 #. type: =item
21542 #: ../fish/guestfish.pod:170
21543 msgid "B<--add image>"
21544 msgstr ""
21545
21546 # type: textblock
21547 #. type: textblock
21548 #: ../fish/guestfish.pod:172
21549 msgid "Add a block device or virtual machine image to the shell."
21550 msgstr ""
21551
21552 # type: textblock
21553 #. type: textblock
21554 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21555 msgid ""
21556 "The format of the disk image is auto-detected.  To override this and force a "
21557 "particular format use the I<--format=..> option."
21558 msgstr ""
21559
21560 # type: textblock
21561 #. type: textblock
21562 #: ../fish/guestfish.pod:177
21563 msgid ""
21564 "Using this flag is mostly equivalent to using the C<add> command, with "
21565 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21566 "the I<--format:...> flag was given."
21567 msgstr ""
21568
21569 # type: =item
21570 #. type: =item
21571 #: ../fish/guestfish.pod:181
21572 msgid "B<-c URI>"
21573 msgstr ""
21574
21575 # type: =item
21576 #. type: =item
21577 #: ../fish/guestfish.pod:183
21578 msgid "B<--connect URI>"
21579 msgstr ""
21580
21581 # type: textblock
21582 #. type: textblock
21583 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21584 msgid ""
21585 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21586 "URI to use.  The default is to use the default libvirt connection."
21587 msgstr ""
21588
21589 # type: =item
21590 #. type: =item
21591 #: ../fish/guestfish.pod:189
21592 msgid "B<--csh>"
21593 msgstr ""
21594
21595 # type: textblock
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:191
21598 msgid ""
21599 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21600 "section L</REMOTE CONTROL AND CSH> below."
21601 msgstr ""
21602
21603 # type: =item
21604 #. type: =item
21605 #: ../fish/guestfish.pod:194
21606 msgid "B<-d libvirt-domain>"
21607 msgstr ""
21608
21609 # type: =item
21610 #. type: =item
21611 #: ../fish/guestfish.pod:196
21612 msgid "B<--domain libvirt-domain>"
21613 msgstr ""
21614
21615 # type: textblock
21616 #. type: textblock
21617 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21618 msgid ""
21619 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21620 "used, then any libvirt domain can be used.  However in write mode, only "
21621 "libvirt domains which are shut down can be named here."
21622 msgstr ""
21623
21624 # type: textblock
21625 #. type: textblock
21626 #: ../fish/guestfish.pod:202
21627 msgid ""
21628 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21629 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21630 "if the I<--format:...> flag was given."
21631 msgstr ""
21632
21633 # type: =item
21634 #. type: =item
21635 #: ../fish/guestfish.pod:206
21636 msgid "B<-D>"
21637 msgstr ""
21638
21639 # type: =item
21640 #. type: =item
21641 #: ../fish/guestfish.pod:208
21642 msgid "B<--no-dest-paths>"
21643 msgstr ""
21644
21645 # type: textblock
21646 #. type: textblock
21647 #: ../fish/guestfish.pod:210
21648 msgid ""
21649 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21650 "to hit the tab key to complete paths on the guest filesystem, but this "
21651 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21652 "allow this feature to be disabled."
21653 msgstr ""
21654
21655 # type: =item
21656 #. type: =item
21657 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21658 msgid "B<--echo-keys>"
21659 msgstr ""
21660
21661 # type: textblock
21662 #. type: textblock
21663 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21664 msgid ""
21665 "When prompting for keys and passphrases, guestfish normally turns echoing "
21666 "off so you cannot see what you are typing.  If you are not worried about "
21667 "Tempest attacks and there is no one else in the room you can specify this "
21668 "flag to see what you are typing."
21669 msgstr ""
21670
21671 # type: =item
21672 #. type: =item
21673 #: ../fish/guestfish.pod:222
21674 msgid "B<-f file>"
21675 msgstr ""
21676
21677 # type: =item
21678 #. type: =item
21679 #: ../fish/guestfish.pod:224
21680 msgid "B<--file file>"
21681 msgstr ""
21682
21683 # type: textblock
21684 #. type: textblock
21685 #: ../fish/guestfish.pod:226
21686 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21687 msgstr ""
21688
21689 # type: verbatim
21690 #. type: verbatim
21691 #: ../fish/guestfish.pod:229
21692 #, no-wrap
21693 msgid ""
21694 " #!/usr/bin/guestfish -f\n"
21695 "\n"
21696 msgstr ""
21697
21698 # type: =item
21699 #. type: =item
21700 #: ../fish/guestfish.pod:231
21701 msgid "B<--format=raw|qcow2|..>"
21702 msgstr ""
21703
21704 # type: =item
21705 #. type: =item
21706 #: ../fish/guestfish.pod:233
21707 msgid "B<--format>"
21708 msgstr ""
21709
21710 # type: textblock
21711 #. type: textblock
21712 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21713 msgid ""
21714 "The default for the I<-a> option is to auto-detect the format of the disk "
21715 "image.  Using this forces the disk format for I<-a> options which follow on "
21716 "the command line.  Using I<--format> with no argument switches back to auto-"
21717 "detection for subsequent I<-a> options."
21718 msgstr ""
21719
21720 # type: verbatim
21721 #. type: verbatim
21722 #: ../fish/guestfish.pod:242
21723 #, no-wrap
21724 msgid ""
21725 " guestfish --format=raw -a disk.img\n"
21726 "\n"
21727 msgstr ""
21728
21729 # type: textblock
21730 #. type: textblock
21731 #: ../fish/guestfish.pod:244
21732 msgid "forces raw format (no auto-detection) for C<disk.img>."
21733 msgstr ""
21734
21735 # type: verbatim
21736 #. type: verbatim
21737 #: ../fish/guestfish.pod:246
21738 #, no-wrap
21739 msgid ""
21740 " guestfish --format=raw -a disk.img --format -a another.img\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: textblock
21745 #. type: textblock
21746 #: ../fish/guestfish.pod:248
21747 msgid ""
21748 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21749 "detection for C<another.img>."
21750 msgstr ""
21751
21752 # type: textblock
21753 #. type: textblock
21754 #: ../fish/guestfish.pod:251
21755 msgid ""
21756 "If you have untrusted raw-format guest disk images, you should use this "
21757 "option to specify the disk format.  This avoids a possible security problem "
21758 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21759 msgstr ""
21760
21761 # type: =item
21762 #. type: =item
21763 #: ../fish/guestfish.pod:256
21764 msgid "B<-i>"
21765 msgstr ""
21766
21767 # type: =item
21768 #. type: =item
21769 #: ../fish/guestfish.pod:258
21770 msgid "B<--inspector>"
21771 msgstr ""
21772
21773 # type: textblock
21774 #. type: textblock
21775 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21776 msgid ""
21777 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21778 "system and mount filesystems as they would be mounted on the real virtual "
21779 "machine."
21780 msgstr ""
21781
21782 # type: textblock
21783 #. type: textblock
21784 #: ../fish/guestfish.pod:264
21785 msgid "Typical usage is either:"
21786 msgstr ""
21787
21788 # type: verbatim
21789 #. type: verbatim
21790 #: ../fish/guestfish.pod:266
21791 #, no-wrap
21792 msgid ""
21793 " guestfish -d myguest -i\n"
21794 "\n"
21795 msgstr ""
21796
21797 # type: textblock
21798 #. type: textblock
21799 #: ../fish/guestfish.pod:268
21800 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21801 msgstr ""
21802
21803 # type: verbatim
21804 #. type: verbatim
21805 #: ../fish/guestfish.pod:270
21806 #, no-wrap
21807 msgid ""
21808 " guestfish --ro -d myguest -i\n"
21809 "\n"
21810 msgstr ""
21811
21812 # type: textblock
21813 #. type: textblock
21814 #: ../fish/guestfish.pod:272
21815 msgid "(for active domains, readonly), or specify the block device directly:"
21816 msgstr ""
21817
21818 # type: verbatim
21819 #. type: verbatim
21820 #: ../fish/guestfish.pod:274
21821 #, no-wrap
21822 msgid ""
21823 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21824 "\n"
21825 msgstr ""
21826
21827 # type: textblock
21828 #. type: textblock
21829 #: ../fish/guestfish.pod:276
21830 msgid ""
21831 "Note that the command line syntax changed slightly over older versions of "
21832 "guestfish.  You can still use the old syntax:"
21833 msgstr ""
21834
21835 # type: verbatim
21836 #. type: verbatim
21837 #: ../fish/guestfish.pod:279
21838 #, no-wrap
21839 msgid ""
21840 " guestfish [--ro] -i disk.img\n"
21841 "\n"
21842 msgstr ""
21843
21844 # type: verbatim
21845 #. type: verbatim
21846 #: ../fish/guestfish.pod:281
21847 #, no-wrap
21848 msgid ""
21849 " guestfish [--ro] -i libvirt-domain\n"
21850 "\n"
21851 msgstr ""
21852
21853 # type: textblock
21854 #. type: textblock
21855 #: ../fish/guestfish.pod:283
21856 msgid ""
21857 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21858 "then using other commands to mount the filesystems that were found."
21859 msgstr ""
21860
21861 # type: =item
21862 #. type: =item
21863 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21864 msgid "B<--keys-from-stdin>"
21865 msgstr ""
21866
21867 # type: textblock
21868 #. type: textblock
21869 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21870 msgid ""
21871 "Read key or passphrase parameters from stdin.  The default is to try to read "
21872 "passphrases from the user by opening C</dev/tty>."
21873 msgstr ""
21874
21875 # type: =item
21876 #. type: =item
21877 #: ../fish/guestfish.pod:292
21878 msgid "B<--listen>"
21879 msgstr ""
21880
21881 # type: textblock
21882 #. type: textblock
21883 #: ../fish/guestfish.pod:294
21884 msgid ""
21885 "Fork into the background and listen for remote commands.  See section L</"
21886 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21887 msgstr ""
21888
21889 #. type: =item
21890 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
21891 msgid "B<--live>"
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
21896 msgid ""
21897 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
21898 "ATTACHING TO RUNNING DAEMONS>)."
21899 msgstr ""
21900
21901 # type: =item
21902 #. type: =item
21903 #: ../fish/guestfish.pod:302
21904 msgid "B<-m dev[:mountpoint]>"
21905 msgstr ""
21906
21907 # type: =item
21908 #. type: =item
21909 #: ../fish/guestfish.pod:304
21910 msgid "B<--mount dev[:mountpoint]>"
21911 msgstr ""
21912
21913 # type: textblock
21914 #. type: textblock
21915 #: ../fish/guestfish.pod:306
21916 msgid "Mount the named partition or logical volume on the given mountpoint."
21917 msgstr ""
21918
21919 # type: textblock
21920 #. type: textblock
21921 #: ../fish/guestfish.pod:308
21922 msgid "If the mountpoint is omitted, it defaults to C</>."
21923 msgstr ""
21924
21925 # type: textblock
21926 #. type: textblock
21927 #: ../fish/guestfish.pod:310
21928 msgid "You have to mount something on C</> before most commands will work."
21929 msgstr ""
21930
21931 # type: textblock
21932 #. type: textblock
21933 #: ../fish/guestfish.pod:312
21934 msgid ""
21935 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21936 "launched."
21937 msgstr ""
21938
21939 # type: textblock
21940 #. type: textblock
21941 #: ../fish/guestfish.pod:315
21942 msgid ""
21943 "If you don't know what filesystems a disk image contains, you can either run "
21944 "guestfish without this option, then list the partitions, filesystems and LVs "
21945 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21946 "commands), or you can use the L<virt-filesystems(1)> program."
21947 msgstr ""
21948
21949 # type: textblock
21950 #. type: textblock
21951 #: ../fish/guestfish.pod:321
21952 msgid ""
21953 "Using this flag is mostly equivalent to using the C<mount-options> command "
21954 "or the C<mount-ro> command if the I<--ro> flag was given."
21955 msgstr ""
21956
21957 # type: =item
21958 #. type: =item
21959 #: ../fish/guestfish.pod:324
21960 msgid "B<-n>"
21961 msgstr ""
21962
21963 # type: =item
21964 #. type: =item
21965 #: ../fish/guestfish.pod:326
21966 msgid "B<--no-sync>"
21967 msgstr ""
21968
21969 # type: textblock
21970 #. type: textblock
21971 #: ../fish/guestfish.pod:328
21972 msgid ""
21973 "Disable autosync.  This is enabled by default.  See the discussion of "
21974 "autosync in the L<guestfs(3)> manpage."
21975 msgstr ""
21976
21977 # type: =item
21978 #. type: =item
21979 #: ../fish/guestfish.pod:331
21980 msgid "B<-N type>"
21981 msgstr ""
21982
21983 # type: =item
21984 #. type: =item
21985 #: ../fish/guestfish.pod:333
21986 msgid "B<--new type>"
21987 msgstr ""
21988
21989 # type: =item
21990 #. type: =item
21991 #: ../fish/guestfish.pod:335
21992 msgid "B<-N help>"
21993 msgstr ""
21994
21995 # type: textblock
21996 #. type: textblock
21997 #: ../fish/guestfish.pod:337
21998 msgid ""
21999 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22000 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22001 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22002 "IMAGES> below."
22003 msgstr ""
22004
22005 # type: =item
22006 #. type: =item
22007 #: ../fish/guestfish.pod:342
22008 msgid "B<--progress-bars>"
22009 msgstr ""
22010
22011 # type: textblock
22012 #. type: textblock
22013 #: ../fish/guestfish.pod:344
22014 msgid "Enable progress bars, even when guestfish is used non-interactively."
22015 msgstr ""
22016
22017 # type: textblock
22018 #. type: textblock
22019 #: ../fish/guestfish.pod:346
22020 msgid ""
22021 "Progress bars are enabled by default when guestfish is used as an "
22022 "interactive shell."
22023 msgstr ""
22024
22025 # type: =item
22026 #. type: =item
22027 #: ../fish/guestfish.pod:349
22028 msgid "B<--no-progress-bars>"
22029 msgstr ""
22030
22031 # type: textblock
22032 #. type: textblock
22033 #: ../fish/guestfish.pod:351
22034 msgid "Disable progress bars."
22035 msgstr ""
22036
22037 # type: =item
22038 #. type: =item
22039 #: ../fish/guestfish.pod:353
22040 msgid "B<--remote[=pid]>"
22041 msgstr ""
22042
22043 # type: textblock
22044 #. type: textblock
22045 #: ../fish/guestfish.pod:355
22046 msgid ""
22047 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22048 "CONTROL GUESTFISH OVER A SOCKET> below."
22049 msgstr ""
22050
22051 # type: =item
22052 #. type: =item
22053 #: ../fish/guestfish.pod:358
22054 msgid "B<-r>"
22055 msgstr ""
22056
22057 # type: =item
22058 #. type: =item
22059 #: ../fish/guestfish.pod:360
22060 msgid "B<--ro>"
22061 msgstr ""
22062
22063 # type: textblock
22064 #. type: textblock
22065 #: ../fish/guestfish.pod:362
22066 msgid ""
22067 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22068 "mounts are done read-only."
22069 msgstr ""
22070
22071 # type: textblock
22072 #. type: textblock
22073 #: ../fish/guestfish.pod:365
22074 msgid ""
22075 "The option must always be used if the disk image or virtual machine might be "
22076 "running, and is generally recommended in cases where you don't need write "
22077 "access to the disk."
22078 msgstr ""
22079
22080 # type: textblock
22081 #. type: textblock
22082 #: ../fish/guestfish.pod:369
22083 msgid ""
22084 "Note that prepared disk images created with I<-N> are not affected by this "
22085 "option.  Also commands like C<add> are not affected - you have to specify "
22086 "the C<readonly:true> option explicitly if you need it."
22087 msgstr ""
22088
22089 # type: textblock
22090 #. type: textblock
22091 #: ../fish/guestfish.pod:373
22092 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22093 msgstr ""
22094
22095 # type: =item
22096 #. type: =item
22097 #: ../fish/guestfish.pod:375 ../fuse/guestmount.pod:213
22098 msgid "B<--selinux>"
22099 msgstr ""
22100
22101 # type: textblock
22102 #. type: textblock
22103 #: ../fish/guestfish.pod:377
22104 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22105 msgstr ""
22106
22107 # type: =item
22108 #. type: =item
22109 #: ../fish/guestfish.pod:379
22110 msgid "B<-v>"
22111 msgstr ""
22112
22113 # type: =item
22114 #. type: =item
22115 #: ../fish/guestfish.pod:381
22116 msgid "B<--verbose>"
22117 msgstr ""
22118
22119 # type: textblock
22120 #. type: textblock
22121 #: ../fish/guestfish.pod:383
22122 msgid ""
22123 "Enable very verbose messages.  This is particularly useful if you find a bug."
22124 msgstr ""
22125
22126 # type: =item
22127 #. type: =item
22128 #: ../fish/guestfish.pod:386
22129 msgid "B<-V>"
22130 msgstr ""
22131
22132 # type: =item
22133 #. type: =item
22134 #: ../fish/guestfish.pod:388 ../tools/virt-edit.pl:88
22135 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
22136 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22137 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22138 msgid "B<--version>"
22139 msgstr ""
22140
22141 # type: textblock
22142 #. type: textblock
22143 #: ../fish/guestfish.pod:390
22144 msgid "Display the guestfish / libguestfs version number and exit."
22145 msgstr ""
22146
22147 # type: =item
22148 #. type: =item
22149 #: ../fish/guestfish.pod:392
22150 msgid "B<-w>"
22151 msgstr ""
22152
22153 # type: =item
22154 #. type: =item
22155 #: ../fish/guestfish.pod:394
22156 msgid "B<--rw>"
22157 msgstr ""
22158
22159 # type: textblock
22160 #. type: textblock
22161 #: ../fish/guestfish.pod:396
22162 msgid ""
22163 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
22164 "WRITE> below."
22165 msgstr ""
22166
22167 # type: =item
22168 #. type: =item
22169 #: ../fish/guestfish.pod:399
22170 msgid "B<-x>"
22171 msgstr ""
22172
22173 # type: textblock
22174 #. type: textblock
22175 #: ../fish/guestfish.pod:401
22176 msgid "Echo each command before executing it."
22177 msgstr ""
22178
22179 # type: =head1
22180 #. type: =head1
22181 #: ../fish/guestfish.pod:405
22182 msgid "COMMANDS ON COMMAND LINE"
22183 msgstr ""
22184
22185 # type: textblock
22186 #. type: textblock
22187 #: ../fish/guestfish.pod:407
22188 msgid ""
22189 "Any additional (non-option) arguments are treated as commands to execute."
22190 msgstr ""
22191
22192 # type: textblock
22193 #. type: textblock
22194 #: ../fish/guestfish.pod:410
22195 msgid ""
22196 "Commands to execute should be separated by a colon (C<:>), where the colon "
22197 "is a separate parameter.  Thus:"
22198 msgstr ""
22199
22200 # type: verbatim
22201 #. type: verbatim
22202 #: ../fish/guestfish.pod:413
22203 #, no-wrap
22204 msgid ""
22205 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22206 "\n"
22207 msgstr ""
22208
22209 # type: textblock
22210 #. type: textblock
22211 #: ../fish/guestfish.pod:415
22212 msgid ""
22213 "If there are no additional arguments, then we enter a shell, either an "
22214 "interactive shell with a prompt (if the input is a terminal) or a non-"
22215 "interactive shell."
22216 msgstr ""
22217
22218 # type: textblock
22219 #. type: textblock
22220 #: ../fish/guestfish.pod:419
22221 msgid ""
22222 "In either command line mode or non-interactive shell, the first command that "
22223 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22224 "prompt) if a command fails, you can continue to enter commands."
22225 msgstr ""
22226
22227 # type: =head1
22228 #. type: =head1
22229 #: ../fish/guestfish.pod:424
22230 msgid "USING launch (OR run)"
22231 msgstr ""
22232
22233 # type: textblock
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:426
22236 msgid ""
22237 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22238 "then launch it, then mount any disks you need, and finally issue actions/"
22239 "commands.  So the general order of the day is:"
22240 msgstr ""
22241
22242 # type: textblock
22243 #. type: textblock
22244 #: ../fish/guestfish.pod:434
22245 msgid "add or -a/--add"
22246 msgstr ""
22247
22248 # type: textblock
22249 #. type: textblock
22250 #: ../fish/guestfish.pod:438
22251 msgid "launch (aka run)"
22252 msgstr ""
22253
22254 # type: textblock
22255 #. type: textblock
22256 #: ../fish/guestfish.pod:442
22257 msgid "mount or -m/--mount"
22258 msgstr ""
22259
22260 # type: textblock
22261 #. type: textblock
22262 #: ../fish/guestfish.pod:446
22263 msgid "any other commands"
22264 msgstr ""
22265
22266 # type: textblock
22267 #. type: textblock
22268 #: ../fish/guestfish.pod:450
22269 msgid ""
22270 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22271 "guest before mounting or performing any other commands."
22272 msgstr ""
22273
22274 # type: textblock
22275 #. type: textblock
22276 #: ../fish/guestfish.pod:453
22277 msgid ""
22278 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22279 "I<--new> options were given then C<run> is done automatically, simply "
22280 "because guestfish can't perform the action you asked for without doing this."
22281 msgstr ""
22282
22283 # type: =head1
22284 #. type: =head1
22285 #: ../fish/guestfish.pod:458
22286 msgid "OPENING DISKS FOR READ AND WRITE"
22287 msgstr ""
22288
22289 # type: textblock
22290 #. type: textblock
22291 #: ../fish/guestfish.pod:460
22292 msgid ""
22293 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
22294 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
22295 "open disk images read-only or for writing."
22296 msgstr ""
22297
22298 # type: textblock
22299 #. type: textblock
22300 #: ../fish/guestfish.pod:464
22301 msgid ""
22302 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
22303 "disk images supplied on the command line for write.  To open a disk image "
22304 "read-only you have to do I<-a image --ro>."
22305 msgstr ""
22306
22307 # type: textblock
22308 #. type: textblock
22309 #: ../fish/guestfish.pod:468
22310 msgid ""
22311 "This matters: If you accidentally open a live VM disk image writable then "
22312 "you will cause irreversible disk corruption."
22313 msgstr ""
22314
22315 #. type: textblock
22316 #: ../fish/guestfish.pod:471
22317 msgid ""
22318 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
22319 "images will be opened read-only.  You will have to either specify "
22320 "I<guestfish --rw> or change a configuration file in order to get write "
22321 "access for disk images specified by those other command line options."
22322 msgstr ""
22323
22324 # type: textblock
22325 #. type: textblock
22326 #: ../fish/guestfish.pod:476
22327 msgid ""
22328 "This version of guestfish has a I<--rw> option which does nothing (it is "
22329 "already the default).  However it is highly recommended that you use this "
22330 "option to indicate that guestfish needs write access, and to prepare your "
22331 "scripts for the day when this option will be required for write access."
22332 msgstr ""
22333
22334 # type: textblock
22335 #. type: textblock
22336 #: ../fish/guestfish.pod:482
22337 msgid ""
22338 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22339 "other libguestfs program apart from guestfish and guestmount."
22340 msgstr ""
22341
22342 # type: =head1
22343 #. type: =head1
22344 #: ../fish/guestfish.pod:485
22345 msgid "QUOTING"
22346 msgstr ""
22347
22348 # type: textblock
22349 #. type: textblock
22350 #: ../fish/guestfish.pod:487
22351 msgid ""
22352 "You can quote ordinary parameters using either single or double quotes.  For "
22353 "example:"
22354 msgstr ""
22355
22356 # type: verbatim
22357 #. type: verbatim
22358 #: ../fish/guestfish.pod:490
22359 #, no-wrap
22360 msgid ""
22361 " add \"file with a space.img\"\n"
22362 "\n"
22363 msgstr ""
22364
22365 # type: verbatim
22366 #. type: verbatim
22367 #: ../fish/guestfish.pod:492
22368 #, no-wrap
22369 msgid ""
22370 " rm '/file name'\n"
22371 "\n"
22372 msgstr ""
22373
22374 # type: verbatim
22375 #. type: verbatim
22376 #: ../fish/guestfish.pod:494
22377 #, no-wrap
22378 msgid ""
22379 " rm '/\"'\n"
22380 "\n"
22381 msgstr ""
22382
22383 # type: textblock
22384 #. type: textblock
22385 #: ../fish/guestfish.pod:496
22386 msgid ""
22387 "A few commands require a list of strings to be passed.  For these, use a "
22388 "whitespace-separated list, enclosed in quotes.  Strings containing "
22389 "whitespace to be passed through must be enclosed in single quotes.  A "
22390 "literal single quote must be escaped with a backslash."
22391 msgstr ""
22392
22393 # type: verbatim
22394 #. type: verbatim
22395 #: ../fish/guestfish.pod:501
22396 #, no-wrap
22397 msgid ""
22398 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22399 " command \"/bin/echo 'foo      bar'\"\n"
22400 " command \"/bin/echo \\'foo\\'\"\n"
22401 "\n"
22402 msgstr ""
22403
22404 # type: =head1
22405 #. type: =head1
22406 #: ../fish/guestfish.pod:505
22407 msgid "OPTIONAL ARGUMENTS"
22408 msgstr ""
22409
22410 # type: textblock
22411 #. type: textblock
22412 #: ../fish/guestfish.pod:507
22413 msgid ""
22414 "Some commands take optional arguments.  These arguments appear in this "
22415 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22416 msgstr ""
22417
22418 # type: verbatim
22419 #. type: verbatim
22420 #: ../fish/guestfish.pod:511
22421 #, no-wrap
22422 msgid ""
22423 " add-drive-opts filename\n"
22424 "\n"
22425 msgstr ""
22426
22427 # type: verbatim
22428 #. type: verbatim
22429 #: ../fish/guestfish.pod:513
22430 #, no-wrap
22431 msgid ""
22432 " add-drive-opts filename readonly:true\n"
22433 "\n"
22434 msgstr ""
22435
22436 # type: verbatim
22437 #. type: verbatim
22438 #: ../fish/guestfish.pod:515
22439 #, no-wrap
22440 msgid ""
22441 " add-drive-opts filename format:qcow2 readonly:false\n"
22442 "\n"
22443 msgstr ""
22444
22445 # type: textblock
22446 #. type: textblock
22447 #: ../fish/guestfish.pod:517
22448 msgid ""
22449 "Each optional argument can appear at most once.  All optional arguments must "
22450 "appear after the required ones."
22451 msgstr ""
22452
22453 # type: =head1
22454 #. type: =head1
22455 #: ../fish/guestfish.pod:520
22456 msgid "NUMBERS"
22457 msgstr ""
22458
22459 # type: textblock
22460 #. type: textblock
22461 #: ../fish/guestfish.pod:522
22462 msgid ""
22463 "This section applies to all commands which can take integers as parameters."
22464 msgstr ""
22465
22466 # type: =head2
22467 #. type: =head2
22468 #: ../fish/guestfish.pod:525
22469 msgid "SIZE SUFFIX"
22470 msgstr ""
22471
22472 # type: textblock
22473 #. type: textblock
22474 #: ../fish/guestfish.pod:527
22475 msgid ""
22476 "When the command takes a parameter measured in bytes, you can use one of the "
22477 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22478 msgstr ""
22479
22480 # type: =item
22481 #. type: =item
22482 #: ../fish/guestfish.pod:533
22483 msgid "B<k> or B<K> or B<KiB>"
22484 msgstr ""
22485
22486 # type: textblock
22487 #. type: textblock
22488 #: ../fish/guestfish.pod:535
22489 msgid "The size in kilobytes (multiplied by 1024)."
22490 msgstr ""
22491
22492 # type: =item
22493 #. type: =item
22494 #: ../fish/guestfish.pod:537
22495 msgid "B<KB>"
22496 msgstr ""
22497
22498 # type: textblock
22499 #. type: textblock
22500 #: ../fish/guestfish.pod:539
22501 msgid "The size in SI 1000 byte units."
22502 msgstr ""
22503
22504 # type: =item
22505 #. type: =item
22506 #: ../fish/guestfish.pod:541
22507 msgid "B<M> or B<MiB>"
22508 msgstr ""
22509
22510 # type: textblock
22511 #. type: textblock
22512 #: ../fish/guestfish.pod:543
22513 msgid "The size in megabytes (multiplied by 1048576)."
22514 msgstr ""
22515
22516 # type: =item
22517 #. type: =item
22518 #: ../fish/guestfish.pod:545
22519 msgid "B<MB>"
22520 msgstr ""
22521
22522 # type: textblock
22523 #. type: textblock
22524 #: ../fish/guestfish.pod:547
22525 msgid "The size in SI 1000000 byte units."
22526 msgstr ""
22527
22528 # type: =item
22529 #. type: =item
22530 #: ../fish/guestfish.pod:549
22531 msgid "B<G> or B<GiB>"
22532 msgstr ""
22533
22534 # type: textblock
22535 #. type: textblock
22536 #: ../fish/guestfish.pod:551
22537 msgid "The size in gigabytes (multiplied by 2**30)."
22538 msgstr ""
22539
22540 # type: =item
22541 #. type: =item
22542 #: ../fish/guestfish.pod:553
22543 msgid "B<GB>"
22544 msgstr ""
22545
22546 # type: textblock
22547 #. type: textblock
22548 #: ../fish/guestfish.pod:555
22549 msgid "The size in SI 10**9 byte units."
22550 msgstr ""
22551
22552 # type: =item
22553 #. type: =item
22554 #: ../fish/guestfish.pod:557
22555 msgid "B<T> or B<TiB>"
22556 msgstr ""
22557
22558 # type: textblock
22559 #. type: textblock
22560 #: ../fish/guestfish.pod:559
22561 msgid "The size in terabytes (multiplied by 2**40)."
22562 msgstr ""
22563
22564 # type: =item
22565 #. type: =item
22566 #: ../fish/guestfish.pod:561
22567 msgid "B<TB>"
22568 msgstr ""
22569
22570 # type: textblock
22571 #. type: textblock
22572 #: ../fish/guestfish.pod:563
22573 msgid "The size in SI 10**12 byte units."
22574 msgstr ""
22575
22576 # type: =item
22577 #. type: =item
22578 #: ../fish/guestfish.pod:565
22579 msgid "B<P> or B<PiB>"
22580 msgstr ""
22581
22582 # type: textblock
22583 #. type: textblock
22584 #: ../fish/guestfish.pod:567
22585 msgid "The size in petabytes (multiplied by 2**50)."
22586 msgstr ""
22587
22588 # type: =item
22589 #. type: =item
22590 #: ../fish/guestfish.pod:569
22591 msgid "B<PB>"
22592 msgstr ""
22593
22594 # type: textblock
22595 #. type: textblock
22596 #: ../fish/guestfish.pod:571
22597 msgid "The size in SI 10**15 byte units."
22598 msgstr ""
22599
22600 # type: =item
22601 #. type: =item
22602 #: ../fish/guestfish.pod:573
22603 msgid "B<E> or B<EiB>"
22604 msgstr ""
22605
22606 # type: textblock
22607 #. type: textblock
22608 #: ../fish/guestfish.pod:575
22609 msgid "The size in exabytes (multiplied by 2**60)."
22610 msgstr ""
22611
22612 # type: =item
22613 #. type: =item
22614 #: ../fish/guestfish.pod:577
22615 msgid "B<EB>"
22616 msgstr ""
22617
22618 # type: textblock
22619 #. type: textblock
22620 #: ../fish/guestfish.pod:579
22621 msgid "The size in SI 10**18 byte units."
22622 msgstr ""
22623
22624 # type: =item
22625 #. type: =item
22626 #: ../fish/guestfish.pod:581
22627 msgid "B<Z> or B<ZiB>"
22628 msgstr ""
22629
22630 # type: textblock
22631 #. type: textblock
22632 #: ../fish/guestfish.pod:583
22633 msgid "The size in zettabytes (multiplied by 2**70)."
22634 msgstr ""
22635
22636 # type: =item
22637 #. type: =item
22638 #: ../fish/guestfish.pod:585
22639 msgid "B<ZB>"
22640 msgstr ""
22641
22642 # type: textblock
22643 #. type: textblock
22644 #: ../fish/guestfish.pod:587
22645 msgid "The size in SI 10**21 byte units."
22646 msgstr ""
22647
22648 # type: =item
22649 #. type: =item
22650 #: ../fish/guestfish.pod:589
22651 msgid "B<Y> or B<YiB>"
22652 msgstr ""
22653
22654 # type: textblock
22655 #. type: textblock
22656 #: ../fish/guestfish.pod:591
22657 msgid "The size in yottabytes (multiplied by 2**80)."
22658 msgstr ""
22659
22660 # type: =item
22661 #. type: =item
22662 #: ../fish/guestfish.pod:593
22663 msgid "B<YB>"
22664 msgstr ""
22665
22666 # type: textblock
22667 #. type: textblock
22668 #: ../fish/guestfish.pod:595
22669 msgid "The size in SI 10**24 byte units."
22670 msgstr ""
22671
22672 # type: verbatim
22673 #. type: verbatim
22674 #: ../fish/guestfish.pod:601
22675 #, no-wrap
22676 msgid ""
22677 " truncate-size /file 1G\n"
22678 "\n"
22679 msgstr ""
22680
22681 # type: textblock
22682 #. type: textblock
22683 #: ../fish/guestfish.pod:603
22684 msgid "would truncate the file to 1 gigabyte."
22685 msgstr ""
22686
22687 # type: textblock
22688 #. type: textblock
22689 #: ../fish/guestfish.pod:605
22690 msgid ""
22691 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22692 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22693 "suffix will probably not do what you expect."
22694 msgstr ""
22695
22696 # type: =head2
22697 #. type: =head2
22698 #: ../fish/guestfish.pod:609
22699 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22700 msgstr ""
22701
22702 # type: textblock
22703 #. type: textblock
22704 #: ../fish/guestfish.pod:611
22705 msgid ""
22706 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22707 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22708 msgstr ""
22709
22710 # type: verbatim
22711 #. type: verbatim
22712 #: ../fish/guestfish.pod:614
22713 #, no-wrap
22714 msgid ""
22715 " 1234      decimal number 1234\n"
22716 " 02322     octal number, equivalent to decimal 1234\n"
22717 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22718 "\n"
22719 msgstr ""
22720
22721 # type: textblock
22722 #. type: textblock
22723 #: ../fish/guestfish.pod:618
22724 msgid ""
22725 "When using the C<chmod> command, you almost always want to specify an octal "
22726 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22727 "L<chmod(1)> program):"
22728 msgstr ""
22729
22730 # type: verbatim
22731 #. type: verbatim
22732 #: ../fish/guestfish.pod:622
22733 #, no-wrap
22734 msgid ""
22735 " chmod 0777 /public  # OK\n"
22736 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22737 "\n"
22738 msgstr ""
22739
22740 # type: textblock
22741 #. type: textblock
22742 #: ../fish/guestfish.pod:625
22743 msgid ""
22744 "Commands that return numbers usually print them in decimal, but some "
22745 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22746 "octal, preceeded by C<0>)."
22747 msgstr ""
22748
22749 # type: =head1
22750 #. type: =head1
22751 #: ../fish/guestfish.pod:629
22752 msgid "WILDCARDS AND GLOBBING"
22753 msgstr ""
22754
22755 # type: textblock
22756 #. type: textblock
22757 #: ../fish/guestfish.pod:631
22758 msgid ""
22759 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22760 "(globbing) by default.  So for example the following will not do what you "
22761 "expect:"
22762 msgstr ""
22763
22764 # type: verbatim
22765 #. type: verbatim
22766 #: ../fish/guestfish.pod:635
22767 #, no-wrap
22768 msgid ""
22769 " rm-rf /home/*\n"
22770 "\n"
22771 msgstr ""
22772
22773 # type: textblock
22774 #. type: textblock
22775 #: ../fish/guestfish.pod:637
22776 msgid ""
22777 "Assuming you don't have a directory called literally C</home/*> then the "
22778 "above command will return an error."
22779 msgstr ""
22780
22781 # type: textblock
22782 #. type: textblock
22783 #: ../fish/guestfish.pod:640
22784 msgid "To perform wildcard expansion, use the C<glob> command."
22785 msgstr ""
22786
22787 # type: verbatim
22788 #. type: verbatim
22789 #: ../fish/guestfish.pod:642
22790 #, no-wrap
22791 msgid ""
22792 " glob rm-rf /home/*\n"
22793 "\n"
22794 msgstr ""
22795
22796 # type: textblock
22797 #. type: textblock
22798 #: ../fish/guestfish.pod:644
22799 msgid ""
22800 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22801 "many times), equivalent to:"
22802 msgstr ""
22803
22804 # type: verbatim
22805 #. type: verbatim
22806 #: ../fish/guestfish.pod:647
22807 #, no-wrap
22808 msgid ""
22809 " rm-rf /home/jim\n"
22810 " rm-rf /home/joe\n"
22811 " rm-rf /home/mary\n"
22812 "\n"
22813 msgstr ""
22814
22815 # type: textblock
22816 #. type: textblock
22817 #: ../fish/guestfish.pod:651
22818 msgid "C<glob> only works on simple guest paths and not on device names."
22819 msgstr ""
22820
22821 # type: textblock
22822 #. type: textblock
22823 #: ../fish/guestfish.pod:653
22824 msgid ""
22825 "If you have several parameters, each containing a wildcard, then glob will "
22826 "perform a Cartesian product."
22827 msgstr ""
22828
22829 # type: =head1
22830 #. type: =head1
22831 #: ../fish/guestfish.pod:656
22832 msgid "COMMENTS"
22833 msgstr ""
22834
22835 # type: textblock
22836 #. type: textblock
22837 #: ../fish/guestfish.pod:658
22838 msgid ""
22839 "Any line which starts with a I<#> character is treated as a comment and "
22840 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22841 "a command.  For example:"
22842 msgstr ""
22843
22844 # type: verbatim
22845 #. type: verbatim
22846 #: ../fish/guestfish.pod:662
22847 #, no-wrap
22848 msgid ""
22849 " # this is a comment\n"
22850 "         # this is a comment\n"
22851 " foo # NOT a comment\n"
22852 "\n"
22853 msgstr ""
22854
22855 # type: textblock
22856 #. type: textblock
22857 #: ../fish/guestfish.pod:666
22858 msgid "Blank lines are also ignored."
22859 msgstr ""
22860
22861 # type: =head1
22862 #. type: =head1
22863 #: ../fish/guestfish.pod:668
22864 msgid "RUNNING COMMANDS LOCALLY"
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:670
22870 msgid ""
22871 "Any line which starts with a I<!> character is treated as a command sent to "
22872 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22873 msgstr ""
22874
22875 # type: verbatim
22876 #. type: verbatim
22877 #: ../fish/guestfish.pod:674
22878 #, no-wrap
22879 msgid ""
22880 " !mkdir local\n"
22881 " tgz-out /remote local/remote-data.tar.gz\n"
22882 "\n"
22883 msgstr ""
22884
22885 # type: textblock
22886 #. type: textblock
22887 #: ../fish/guestfish.pod:677
22888 msgid ""
22889 "will create a directory C<local> on the host, and then export the contents "
22890 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22891 "(See C<tgz-out>)."
22892 msgstr ""
22893
22894 # type: textblock
22895 #. type: textblock
22896 #: ../fish/guestfish.pod:681
22897 msgid ""
22898 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22899 "effect, due to the way that subprocesses work in Unix."
22900 msgstr ""
22901
22902 #. type: =head2
22903 #: ../fish/guestfish.pod:684
22904 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../fish/guestfish.pod:686
22909 msgid ""
22910 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22911 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22912 "and executed as guestfish commands."
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../fish/guestfish.pod:690
22917 msgid ""
22918 "Thus you can use shell script to construct arbitrary guestfish commands "
22919 "which are then parsed by guestfish."
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../fish/guestfish.pod:693
22924 msgid ""
22925 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
22926 "through C</foo.100>) using guestfish commands alone.  However this is simple "
22927 "if we use a shell script to create the guestfish commands for us:"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../fish/guestfish.pod:698
22932 #, no-wrap
22933 msgid ""
22934 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22935 "\n"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../fish/guestfish.pod:700
22940 msgid "or with names like C</foo.001>:"
22941 msgstr ""
22942
22943 #. type: verbatim
22944 #: ../fish/guestfish.pod:702
22945 #, no-wrap
22946 msgid ""
22947 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
22948 "\n"
22949 msgstr ""
22950
22951 #. type: textblock
22952 #: ../fish/guestfish.pod:704
22953 msgid ""
22954 "When using guestfish interactively it can be helpful to just run the shell "
22955 "script first (ie. remove the initial C<E<lt>> character so it is just an "
22956 "ordinary I<!> local command), see what guestfish commands it would run, and "
22957 "when you are happy with those prepend the C<E<lt>> character to run the "
22958 "guestfish commands for real."
22959 msgstr ""
22960
22961 # type: =head1
22962 #. type: =head1
22963 #: ../fish/guestfish.pod:710
22964 msgid "PIPES"
22965 msgstr ""
22966
22967 # type: textblock
22968 #. type: textblock
22969 #: ../fish/guestfish.pod:712
22970 msgid ""
22971 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22972 "command (a guestfish command) to the second command (any host command).  For "
22973 "example:"
22974 msgstr ""
22975
22976 # type: verbatim
22977 #. type: verbatim
22978 #: ../fish/guestfish.pod:716
22979 #, no-wrap
22980 msgid ""
22981 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22982 "\n"
22983 msgstr ""
22984
22985 # type: textblock
22986 #. type: textblock
22987 #: ../fish/guestfish.pod:718
22988 msgid ""
22989 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22990 "program).  The above command would list all accounts in the guest filesystem "
22991 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22992 msgstr ""
22993
22994 # type: verbatim
22995 #. type: verbatim
22996 #: ../fish/guestfish.pod:723
22997 #, no-wrap
22998 msgid ""
22999 " hexdump /bin/ls | head\n"
23000 " list-devices | tail -1\n"
23001 " tgz-out / - | tar ztf -\n"
23002 "\n"
23003 msgstr ""
23004
23005 # type: textblock
23006 #. type: textblock
23007 #: ../fish/guestfish.pod:727
23008 msgid ""
23009 "The space before the pipe symbol is required, any space after the pipe "
23010 "symbol is optional.  Everything after the pipe symbol is just passed "
23011 "straight to the host shell, so it can contain redirections, globs and "
23012 "anything else that makes sense on the host side."
23013 msgstr ""
23014
23015 # type: textblock
23016 #. type: textblock
23017 #: ../fish/guestfish.pod:732
23018 msgid ""
23019 "To use a literal argument which begins with a pipe symbol, you have to quote "
23020 "it, eg:"
23021 msgstr ""
23022
23023 # type: verbatim
23024 #. type: verbatim
23025 #: ../fish/guestfish.pod:735
23026 #, no-wrap
23027 msgid ""
23028 " echo \"|\"\n"
23029 "\n"
23030 msgstr ""
23031
23032 # type: =head1
23033 #. type: =head1
23034 #: ../fish/guestfish.pod:737
23035 msgid "HOME DIRECTORIES"
23036 msgstr ""
23037
23038 # type: textblock
23039 #. type: textblock
23040 #: ../fish/guestfish.pod:739
23041 msgid ""
23042 "If a parameter starts with the character C<~> then the tilde may be expanded "
23043 "as a home directory path (either C<~> for the current user's home directory, "
23044 "or C<~user> for another user)."
23045 msgstr ""
23046
23047 # type: textblock
23048 #. type: textblock
23049 #: ../fish/guestfish.pod:743
23050 msgid ""
23051 "Note that home directory expansion happens for users known I<on the host>, "
23052 "not in the guest filesystem."
23053 msgstr ""
23054
23055 # type: textblock
23056 #. type: textblock
23057 #: ../fish/guestfish.pod:746
23058 msgid ""
23059 "To use a literal argument which begins with a tilde, you have to quote it, "
23060 "eg:"
23061 msgstr ""
23062
23063 # type: verbatim
23064 #. type: verbatim
23065 #: ../fish/guestfish.pod:749
23066 #, no-wrap
23067 msgid ""
23068 " echo \"~\"\n"
23069 "\n"
23070 msgstr ""
23071
23072 # type: textblock
23073 #. type: textblock
23074 #: ../fish/guestfish.pod:753
23075 msgid ""
23076 "Libguestfs has some support for Linux guests encrypted according to the "
23077 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23078 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23079 "LUKS is supported."
23080 msgstr ""
23081
23082 # type: textblock
23083 #. type: textblock
23084 #: ../fish/guestfish.pod:758
23085 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23086 msgstr ""
23087
23088 # type: verbatim
23089 #. type: verbatim
23090 #: ../fish/guestfish.pod:760
23091 #, no-wrap
23092 msgid ""
23093 " ><fs> vfs-type /dev/sda2\n"
23094 " crypto_LUKS\n"
23095 "\n"
23096 msgstr ""
23097
23098 # type: textblock
23099 #. type: textblock
23100 #: ../fish/guestfish.pod:763
23101 msgid ""
23102 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23103 "device called C</dev/mapper/luksdev>."
23104 msgstr ""
23105
23106 # type: verbatim
23107 #. type: verbatim
23108 #: ../fish/guestfish.pod:766
23109 #, no-wrap
23110 msgid ""
23111 " ><fs> luks-open /dev/sda2 luksdev\n"
23112 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23113 "\n"
23114 msgstr ""
23115
23116 # type: textblock
23117 #. type: textblock
23118 #: ../fish/guestfish.pod:769
23119 msgid ""
23120 "Finally you have to tell LVM to scan for volume groups on the newly created "
23121 "mapper device:"
23122 msgstr ""
23123
23124 # type: verbatim
23125 #. type: verbatim
23126 #: ../fish/guestfish.pod:772
23127 #, no-wrap
23128 msgid ""
23129 " vgscan\n"
23130 " vg-activate-all true\n"
23131 "\n"
23132 msgstr ""
23133
23134 # type: textblock
23135 #. type: textblock
23136 #: ../fish/guestfish.pod:775
23137 msgid "The logical volume(s) can now be mounted in the usual way."
23138 msgstr ""
23139
23140 # type: textblock
23141 #. type: textblock
23142 #: ../fish/guestfish.pod:777
23143 msgid ""
23144 "Before closing a LUKS device you must unmount any logical volumes on it and "
23145 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23146 "one.  Then you can close the mapper device:"
23147 msgstr ""
23148
23149 # type: verbatim
23150 #. type: verbatim
23151 #: ../fish/guestfish.pod:781
23152 #, no-wrap
23153 msgid ""
23154 " vg-activate false /dev/VG\n"
23155 " luks-close /dev/mapper/luksdev\n"
23156 "\n"
23157 msgstr ""
23158
23159 # type: =head1
23160 #. type: =head1
23161 #: ../fish/guestfish.pod:784
23162 msgid "WINDOWS PATHS"
23163 msgstr ""
23164
23165 # type: textblock
23166 #. type: textblock
23167 #: ../fish/guestfish.pod:786
23168 msgid ""
23169 "If a path is prefixed with C<win:> then you can use Windows-style paths "
23170 "(with some limitations).  The following commands are equivalent:"
23171 msgstr ""
23172
23173 # type: verbatim
23174 #. type: verbatim
23175 #: ../fish/guestfish.pod:789
23176 #, no-wrap
23177 msgid ""
23178 " file /WINDOWS/system32/config/system.LOG\n"
23179 "\n"
23180 msgstr ""
23181
23182 # type: verbatim
23183 #. type: verbatim
23184 #: ../fish/guestfish.pod:791
23185 #, no-wrap
23186 msgid ""
23187 " file win:/windows/system32/config/system.log\n"
23188 "\n"
23189 msgstr ""
23190
23191 # type: verbatim
23192 #. type: verbatim
23193 #: ../fish/guestfish.pod:793
23194 #, no-wrap
23195 msgid ""
23196 " file win:\\windows\\system32\\config\\system.log\n"
23197 "\n"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #. type: verbatim
23202 #: ../fish/guestfish.pod:795
23203 #, no-wrap
23204 msgid ""
23205 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
23206 "\n"
23207 msgstr ""
23208
23209 # type: textblock
23210 #. type: textblock
23211 #: ../fish/guestfish.pod:797
23212 msgid ""
23213 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
23214 "handles case insensitivity like Windows would.  This only works in argument "
23215 "positions that expect a path."
23216 msgstr ""
23217
23218 # type: =head1
23219 #. type: =head1
23220 #: ../fish/guestfish.pod:801
23221 msgid "UPLOADING AND DOWNLOADING FILES"
23222 msgstr ""
23223
23224 # type: textblock
23225 #. type: textblock
23226 #: ../fish/guestfish.pod:803
23227 msgid ""
23228 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23229 "others which upload from or download to a local file, you can use the "
23230 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23231 msgstr ""
23232
23233 # type: verbatim
23234 #. type: verbatim
23235 #: ../fish/guestfish.pod:807
23236 #, no-wrap
23237 msgid ""
23238 " upload - /foo\n"
23239 "\n"
23240 msgstr ""
23241
23242 # type: textblock
23243 #. type: textblock
23244 #: ../fish/guestfish.pod:809
23245 msgid ""
23246 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #. type: verbatim
23251 #: ../fish/guestfish.pod:812
23252 #, no-wrap
23253 msgid ""
23254 " tar-out /etc - | tar tf -\n"
23255 "\n"
23256 msgstr ""
23257
23258 # type: textblock
23259 #. type: textblock
23260 #: ../fish/guestfish.pod:814
23261 msgid ""
23262 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23263 "command (see L</PIPES>)."
23264 msgstr ""
23265
23266 # type: textblock
23267 #. type: textblock
23268 #: ../fish/guestfish.pod:817
23269 msgid ""
23270 "When using C<-> to read from stdin, the input is read up to the end of "
23271 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23272 "some arbitrary end marker:"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #. type: verbatim
23277 #: ../fish/guestfish.pod:821
23278 #, no-wrap
23279 msgid ""
23280 " upload -<<END /foo\n"
23281 " input line 1\n"
23282 " input line 2\n"
23283 " input line 3\n"
23284 " END\n"
23285 "\n"
23286 msgstr ""
23287
23288 # type: textblock
23289 #. type: textblock
23290 #: ../fish/guestfish.pod:827
23291 msgid ""
23292 "Any string of characters can be used instead of C<END>.  The end marker must "
23293 "appear on a line of its own, without any preceeding or following characters "
23294 "(not even spaces)."
23295 msgstr ""
23296
23297 # type: textblock
23298 #. type: textblock
23299 #: ../fish/guestfish.pod:831
23300 msgid ""
23301 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23302 "upload local files (so-called \"FileIn\" parameters in the generator)."
23303 msgstr ""
23304
23305 # type: =head1
23306 #. type: =head1
23307 #: ../fish/guestfish.pod:834
23308 msgid "EXIT ON ERROR BEHAVIOUR"
23309 msgstr ""
23310
23311 # type: textblock
23312 #. type: textblock
23313 #: ../fish/guestfish.pod:836
23314 msgid ""
23315 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23316 "taking commands from a human over a tty), and will exit on the first error "
23317 "in non-interactive mode (scripts, commands given on the command line)."
23318 msgstr ""
23319
23320 # type: textblock
23321 #. type: textblock
23322 #: ../fish/guestfish.pod:841
23323 msgid ""
23324 "If you prefix a command with a I<-> character, then that command will not "
23325 "cause guestfish to exit, even if that (one) command returns an error."
23326 msgstr ""
23327
23328 # type: =head1
23329 #. type: =head1
23330 #: ../fish/guestfish.pod:845
23331 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23332 msgstr ""
23333
23334 # type: textblock
23335 #. type: textblock
23336 #: ../fish/guestfish.pod:847
23337 msgid ""
23338 "Guestfish can be remote-controlled over a socket.  This is useful "
23339 "particularly in shell scripts where you want to make several different "
23340 "changes to a filesystem, but you don't want the overhead of starting up a "
23341 "guestfish process each time."
23342 msgstr ""
23343
23344 # type: textblock
23345 #. type: textblock
23346 #: ../fish/guestfish.pod:852
23347 msgid "Start a guestfish server process using:"
23348 msgstr ""
23349
23350 # type: verbatim
23351 #. type: verbatim
23352 #: ../fish/guestfish.pod:854
23353 #, no-wrap
23354 msgid ""
23355 " eval \"`guestfish --listen`\"\n"
23356 "\n"
23357 msgstr ""
23358
23359 # type: textblock
23360 #. type: textblock
23361 #: ../fish/guestfish.pod:856
23362 msgid "and then send it commands by doing:"
23363 msgstr ""
23364
23365 # type: verbatim
23366 #. type: verbatim
23367 #: ../fish/guestfish.pod:858
23368 #, no-wrap
23369 msgid ""
23370 " guestfish --remote cmd [...]\n"
23371 "\n"
23372 msgstr ""
23373
23374 # type: textblock
23375 #. type: textblock
23376 #: ../fish/guestfish.pod:860
23377 msgid "To cause the server to exit, send it the exit command:"
23378 msgstr ""
23379
23380 # type: verbatim
23381 #. type: verbatim
23382 #: ../fish/guestfish.pod:862
23383 #, no-wrap
23384 msgid ""
23385 " guestfish --remote exit\n"
23386 "\n"
23387 msgstr ""
23388
23389 # type: textblock
23390 #. type: textblock
23391 #: ../fish/guestfish.pod:864
23392 msgid ""
23393 "Note that the server will normally exit if there is an error in a command.  "
23394 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23395 "BEHAVIOUR>."
23396 msgstr ""
23397
23398 # type: =head2
23399 #. type: =head2
23400 #: ../fish/guestfish.pod:868
23401 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23402 msgstr ""
23403
23404 # type: textblock
23405 #. type: textblock
23406 #: ../fish/guestfish.pod:870
23407 msgid ""
23408 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23409 "is how the I<--remote> option knows where to send the commands.  You can "
23410 "have several guestfish listener processes running using:"
23411 msgstr ""
23412
23413 # type: verbatim
23414 #. type: verbatim
23415 #: ../fish/guestfish.pod:874
23416 #, no-wrap
23417 msgid ""
23418 " eval \"`guestfish --listen`\"\n"
23419 " pid1=$GUESTFISH_PID\n"
23420 " eval \"`guestfish --listen`\"\n"
23421 " pid2=$GUESTFISH_PID\n"
23422 " ...\n"
23423 " guestfish --remote=$pid1 cmd\n"
23424 " guestfish --remote=$pid2 cmd\n"
23425 "\n"
23426 msgstr ""
23427
23428 # type: =head2
23429 #. type: =head2
23430 #: ../fish/guestfish.pod:882
23431 msgid "REMOTE CONTROL AND CSH"
23432 msgstr ""
23433
23434 # type: textblock
23435 #. type: textblock
23436 #: ../fish/guestfish.pod:884
23437 msgid ""
23438 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23439 "option:"
23440 msgstr ""
23441
23442 # type: verbatim
23443 #. type: verbatim
23444 #: ../fish/guestfish.pod:887
23445 #, no-wrap
23446 msgid ""
23447 " eval \"`guestfish --listen --csh`\"\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: =head2
23452 #. type: =head2
23453 #: ../fish/guestfish.pod:889
23454 msgid "REMOTE CONTROL DETAILS"
23455 msgstr ""
23456
23457 # type: textblock
23458 #. type: textblock
23459 #: ../fish/guestfish.pod:891
23460 msgid ""
23461 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23462 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23463 "and C<$PID> is the process ID of the server."
23464 msgstr ""
23465
23466 # type: textblock
23467 #. type: textblock
23468 #: ../fish/guestfish.pod:895
23469 msgid "Guestfish client and server versions must match exactly."
23470 msgstr ""
23471
23472 # type: =head1
23473 #. type: =head1
23474 #: ../fish/guestfish.pod:897
23475 msgid "PREPARED DISK IMAGES"
23476 msgstr ""
23477
23478 # type: textblock
23479 #. type: textblock
23480 #: ../fish/guestfish.pod:899
23481 msgid ""
23482 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23483 "preformatted disk images that guestfish can make for you to save typing.  "
23484 "This is particularly useful for testing purposes.  This option is used "
23485 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23486 "can be mixed with I<-a>)."
23487 msgstr ""
23488
23489 # type: textblock
23490 #. type: textblock
23491 #: ../fish/guestfish.pod:905
23492 msgid ""
23493 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23494 "the second and so on.  Existing files in the current directory are "
23495 "I<overwritten>."
23496 msgstr ""
23497
23498 # type: textblock
23499 #. type: textblock
23500 #: ../fish/guestfish.pod:909
23501 msgid ""
23502 "The type briefly describes how the disk should be sized, partitioned, how "
23503 "filesystem(s) should be created, and how content should be added.  "
23504 "Optionally the type can be followed by extra parameters, separated by C<:> "
23505 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23506 "allocated disk, containing a single partition, with the partition formatted "
23507 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23508 "disk instead."
23509 msgstr ""
23510
23511 # type: textblock
23512 #. type: textblock
23513 #: ../fish/guestfish.pod:917
23514 msgid "To list the available types and any extra parameters they take, run:"
23515 msgstr ""
23516
23517 # type: textblock
23518 #. type: textblock
23519 #: ../fish/guestfish.pod:921
23520 msgid ""
23521 "Note that the prepared filesystem is not mounted.  You would usually have to "
23522 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23523 msgstr ""
23524
23525 # type: textblock
23526 #. type: textblock
23527 #: ../fish/guestfish.pod:925
23528 msgid ""
23529 "If any I<-N> or I<--new> options are given, the guest is automatically "
23530 "launched."
23531 msgstr ""
23532
23533 # type: textblock
23534 #. type: textblock
23535 #: ../fish/guestfish.pod:930
23536 msgid "Create a 100MB disk with an ext4-formatted partition:"
23537 msgstr ""
23538
23539 # type: verbatim
23540 #. type: verbatim
23541 #: ../fish/guestfish.pod:932
23542 #, no-wrap
23543 msgid ""
23544 " guestfish -N fs:ext4\n"
23545 "\n"
23546 msgstr ""
23547
23548 # type: textblock
23549 #. type: textblock
23550 #: ../fish/guestfish.pod:934
23551 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23552 msgstr ""
23553
23554 # type: verbatim
23555 #. type: verbatim
23556 #: ../fish/guestfish.pod:936
23557 #, no-wrap
23558 msgid ""
23559 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23560 "\n"
23561 msgstr ""
23562
23563 # type: textblock
23564 #. type: textblock
23565 #: ../fish/guestfish.pod:938
23566 msgid "Create a blank 200MB disk:"
23567 msgstr ""
23568
23569 # type: verbatim
23570 #. type: verbatim
23571 #: ../fish/guestfish.pod:940
23572 #, no-wrap
23573 msgid ""
23574 " guestfish -N disk:200M\n"
23575 "\n"
23576 msgstr ""
23577
23578 # type: =head1
23579 #. type: =head1
23580 #: ../fish/guestfish.pod:942
23581 msgid "PROGRESS BARS"
23582 msgstr ""
23583
23584 # type: textblock
23585 #. type: textblock
23586 #: ../fish/guestfish.pod:944
23587 msgid ""
23588 "Some (not all) long-running commands send progress notification messages as "
23589 "they are running.  Guestfish turns these messages into progress bars."
23590 msgstr ""
23591
23592 # type: textblock
23593 #. type: textblock
23594 #: ../fish/guestfish.pod:948
23595 msgid ""
23596 "When a command that supports progress bars takes longer than two seconds to "
23597 "run, and if progress bars are enabled, then you will see one appearing below "
23598 "the command:"
23599 msgstr ""
23600
23601 # type: verbatim
23602 #. type: verbatim
23603 #: ../fish/guestfish.pod:952
23604 #, no-wrap
23605 msgid ""
23606 " ><fs> copy-size /large-file /another-file 2048M\n"
23607 " / 10% [#####-----------------------------------------] 00:30\n"
23608 "\n"
23609 msgstr ""
23610
23611 # type: textblock
23612 #. type: textblock
23613 #: ../fish/guestfish.pod:955
23614 msgid ""
23615 "The spinner on the left hand side moves round once for every progress "
23616 "notification received from the backend.  This is a (reasonably) golden "
23617 "assurance that the command is \"doing something\" even if the progress bar "
23618 "is not moving, because the command is able to send the progress "
23619 "notifications.  When the bar reaches 100% and the command finishes, the "
23620 "spinner disappears."
23621 msgstr ""
23622
23623 # type: textblock
23624 #. type: textblock
23625 #: ../fish/guestfish.pod:962
23626 msgid ""
23627 "Progress bars are enabled by default when guestfish is used interactively.  "
23628 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23629 "and you can disable them completely using I<--no-progress-bars>."
23630 msgstr ""
23631
23632 # type: =head1
23633 #. type: =head1
23634 #: ../fish/guestfish.pod:967
23635 msgid "GUESTFISH COMMANDS"
23636 msgstr ""
23637
23638 # type: textblock
23639 #. type: textblock
23640 #: ../fish/guestfish.pod:969
23641 msgid ""
23642 "The commands in this section are guestfish convenience commands, in other "
23643 "words, they are not part of the L<guestfs(3)> API."
23644 msgstr ""
23645
23646 # type: =head2
23647 #. type: =head2
23648 #: ../fish/guestfish.pod:972
23649 msgid "help"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #. type: verbatim
23654 #: ../fish/guestfish.pod:974
23655 #, no-wrap
23656 msgid ""
23657 " help\n"
23658 " help cmd\n"
23659 "\n"
23660 msgstr ""
23661
23662 # type: textblock
23663 #. type: textblock
23664 #: ../fish/guestfish.pod:977
23665 msgid "Without any parameter, this provides general help."
23666 msgstr ""
23667
23668 # type: textblock
23669 #. type: textblock
23670 #: ../fish/guestfish.pod:979
23671 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23672 msgstr ""
23673
23674 # type: =head2
23675 #. type: =head2
23676 #: ../fish/guestfish.pod:981
23677 msgid "quit | exit"
23678 msgstr ""
23679
23680 # type: textblock
23681 #. type: textblock
23682 #: ../fish/guestfish.pod:983
23683 msgid "This exits guestfish.  You can also use C<^D> key."
23684 msgstr ""
23685
23686 # type: textblock
23687 #. type: textblock
23688 #: ../fish/guestfish.pod:985
23689 msgid "@FISH_COMMANDS@"
23690 msgstr ""
23691
23692 # type: =head1
23693 #. type: =head1
23694 #: ../fish/guestfish.pod:987
23695 msgid "COMMANDS"
23696 msgstr ""
23697
23698 # type: =head1
23699 #. type: =head1
23700 #: ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:83
23701 msgid "EXIT CODE"
23702 msgstr ""
23703
23704 # type: textblock
23705 #. type: textblock
23706 #: ../fish/guestfish.pod:993
23707 msgid ""
23708 "guestfish returns 0 if the commands completed without error, or 1 if there "
23709 "was an error."
23710 msgstr ""
23711
23712 # type: =item
23713 #. type: =item
23714 #: ../fish/guestfish.pod:1000
23715 msgid "EDITOR"
23716 msgstr ""
23717
23718 # type: textblock
23719 #. type: textblock
23720 #: ../fish/guestfish.pod:1002
23721 msgid ""
23722 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23723 "C<vi>."
23724 msgstr ""
23725
23726 # type: =item
23727 #. type: =item
23728 #: ../fish/guestfish.pod:1005
23729 msgid "GUESTFISH_PID"
23730 msgstr ""
23731
23732 # type: textblock
23733 #. type: textblock
23734 #: ../fish/guestfish.pod:1007
23735 msgid ""
23736 "Used with the I<--remote> option to specify the remote guestfish process to "
23737 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23738 msgstr ""
23739
23740 # type: =item
23741 #. type: =item
23742 #: ../fish/guestfish.pod:1011
23743 msgid "HEXEDITOR"
23744 msgstr ""
23745
23746 # type: textblock
23747 #. type: textblock
23748 #: ../fish/guestfish.pod:1013
23749 msgid ""
23750 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23751 "not specified, the external L<hexedit(1)> program is used."
23752 msgstr ""
23753
23754 # type: =item
23755 #. type: =item
23756 #: ../fish/guestfish.pod:1017
23757 msgid "HOME"
23758 msgstr ""
23759
23760 # type: textblock
23761 #. type: textblock
23762 #: ../fish/guestfish.pod:1019
23763 msgid ""
23764 "If compiled with GNU readline support, various files in the home directory "
23765 "can be used.  See L</FILES>."
23766 msgstr ""
23767
23768 # type: textblock
23769 #. type: textblock
23770 #: ../fish/guestfish.pod:1028
23771 msgid ""
23772 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23773 "effect as using the B<-v> option."
23774 msgstr ""
23775
23776 # type: textblock
23777 #. type: textblock
23778 #: ../fish/guestfish.pod:1040
23779 msgid ""
23780 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23781 "the discussion of paths in L<guestfs(3)>."
23782 msgstr ""
23783
23784 # type: textblock
23785 #. type: textblock
23786 #: ../fish/guestfish.pod:1051
23787 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23788 msgstr ""
23789
23790 # type: =item
23791 #. type: =item
23792 #: ../fish/guestfish.pod:1053
23793 msgid "PAGER"
23794 msgstr ""
23795
23796 # type: textblock
23797 #. type: textblock
23798 #: ../fish/guestfish.pod:1055
23799 msgid ""
23800 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23801 "C<more>."
23802 msgstr ""
23803
23804 # type: =head1
23805 #. type: =head1
23806 #: ../fish/guestfish.pod:1071 ../test-tool/libguestfs-test-tool.pod:88
23807 msgid "FILES"
23808 msgstr ""
23809
23810 # type: =item
23811 #. type: =item
23812 #: ../fish/guestfish.pod:1075
23813 msgid "$HOME/.guestfish"
23814 msgstr ""
23815
23816 # type: textblock
23817 #. type: textblock
23818 #: ../fish/guestfish.pod:1077
23819 msgid ""
23820 "If compiled with GNU readline support, then the command history is saved in "
23821 "this file."
23822 msgstr ""
23823
23824 # type: =item
23825 #. type: =item
23826 #: ../fish/guestfish.pod:1080
23827 msgid "$HOME/.inputrc"
23828 msgstr ""
23829
23830 # type: =item
23831 #. type: =item
23832 #: ../fish/guestfish.pod:1082
23833 msgid "/etc/inputrc"
23834 msgstr ""
23835
23836 # type: textblock
23837 #. type: textblock
23838 #: ../fish/guestfish.pod:1084
23839 msgid ""
23840 "If compiled with GNU readline support, then these files can be used to "
23841 "configure readline.  For further information, please see L<readline(3)/"
23842 "INITIALIZATION FILE>."
23843 msgstr ""
23844
23845 # type: textblock
23846 #. type: textblock
23847 #: ../fish/guestfish.pod:1088
23848 msgid "To write rules which only apply to guestfish, use:"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #. type: verbatim
23853 #: ../fish/guestfish.pod:1090
23854 #, no-wrap
23855 msgid ""
23856 " $if guestfish\n"
23857 " ...\n"
23858 " $endif\n"
23859 "\n"
23860 msgstr ""
23861
23862 # type: textblock
23863 #. type: textblock
23864 #: ../fish/guestfish.pod:1094
23865 msgid ""
23866 "Variables that you can set in inputrc that change the behaviour of guestfish "
23867 "in useful ways include:"
23868 msgstr ""
23869
23870 # type: =item
23871 #. type: =item
23872 #: ../fish/guestfish.pod:1099
23873 msgid "completion-ignore-case (default: on)"
23874 msgstr ""
23875
23876 # type: textblock
23877 #. type: textblock
23878 #: ../fish/guestfish.pod:1101
23879 msgid ""
23880 "By default, guestfish will ignore case when tab-completing paths on the "
23881 "disk.  Use:"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #. type: verbatim
23886 #: ../fish/guestfish.pod:1104
23887 #, no-wrap
23888 msgid ""
23889 " set completion-ignore-case off\n"
23890 "\n"
23891 msgstr ""
23892
23893 # type: textblock
23894 #. type: textblock
23895 #: ../fish/guestfish.pod:1106
23896 msgid "to make guestfish case sensitive."
23897 msgstr ""
23898
23899 # type: =item
23900 #. type: =item
23901 #: ../fish/guestfish.pod:1110
23902 msgid "test1.img"
23903 msgstr ""
23904
23905 # type: =item
23906 #. type: =item
23907 #: ../fish/guestfish.pod:1112
23908 msgid "test2.img (etc)"
23909 msgstr ""
23910
23911 # type: textblock
23912 #. type: textblock
23913 #: ../fish/guestfish.pod:1114
23914 msgid ""
23915 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23916 "will be created in the file C<test1.img> in the current directory.  The "
23917 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23918 "the same name will be overwritten."
23919 msgstr ""
23920
23921 #. type: textblock
23922 #: ../fish/guestfish.pod:1123
23923 msgid ""
23924 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23925 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23926 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23927 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23928 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23929 ">, L<hexedit(1)>."
23930 msgstr ""
23931
23932 # type: textblock
23933 #. type: textblock
23934 #: ../fish/guestfish.pod:1153 ../test-tool/libguestfs-test-tool.pod:124
23935 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:372
23936 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1518
23937 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23938 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
23939 msgid ""
23940 "This program is free software; you can redistribute it and/or modify it "
23941 "under the terms of the GNU General Public License as published by the Free "
23942 "Software Foundation; either version 2 of the License, or (at your option) "
23943 "any later version."
23944 msgstr ""
23945
23946 # type: textblock
23947 #. type: textblock
23948 #: ../fish/guestfish.pod:1158 ../test-tool/libguestfs-test-tool.pod:129
23949 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:377
23950 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1523
23951 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23952 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
23953 msgid ""
23954 "This program is distributed in the hope that it will be useful, but WITHOUT "
23955 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23956 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23957 "more details."
23958 msgstr ""
23959
23960 # type: textblock
23961 #. type: textblock
23962 #: ../fish/guestfish.pod:1163 ../test-tool/libguestfs-test-tool.pod:134
23963 #: ../fuse/guestmount.pod:268 ../tools/virt-edit.pl:382
23964 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1528
23965 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23966 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
23967 msgid ""
23968 "You should have received a copy of the GNU General Public License along with "
23969 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23970 "Ave, Cambridge, MA 02139, USA."
23971 msgstr ""
23972
23973 # type: =head2
23974 #. type: =head2
23975 #: ../fish/guestfish-actions.pod:1
23976 msgid "add-cdrom"
23977 msgstr ""
23978
23979 # type: verbatim
23980 #. type: verbatim
23981 #: ../fish/guestfish-actions.pod:3
23982 #, no-wrap
23983 msgid ""
23984 " add-cdrom filename\n"
23985 "\n"
23986 msgstr ""
23987
23988 # type: textblock
23989 #. type: textblock
23990 #: ../fish/guestfish-actions.pod:15
23991 msgid ""
23992 "This call checks for the existence of C<filename>.  This stops you from "
23993 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23994 "and C<http:> URLs.  To specify those, use the general L</config> call "
23995 "instead."
23996 msgstr ""
23997
23998 # type: textblock
23999 #. type: textblock
24000 #: ../fish/guestfish-actions.pod:22
24001 msgid ""
24002 "If you just want to add an ISO file (often you use this as an efficient way "
24003 "to transfer large files into the guest), then you should probably use L</add-"
24004 "drive-ro> instead."
24005 msgstr ""
24006
24007 # type: =head2
24008 #. type: =head2
24009 #: ../fish/guestfish-actions.pod:35
24010 msgid "add-domain"
24011 msgstr ""
24012
24013 # type: =head2
24014 #. type: =head2
24015 #: ../fish/guestfish-actions.pod:37
24016 msgid "domain"
24017 msgstr ""
24018
24019 #. type: verbatim
24020 #: ../fish/guestfish-actions.pod:39
24021 #, no-wrap
24022 msgid ""
24023 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24024 "\n"
24025 msgstr ""
24026
24027 # type: textblock
24028 #. type: textblock
24029 #: ../fish/guestfish-actions.pod:41
24030 msgid ""
24031 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24032 "It works by connecting to libvirt, requesting the domain and domain XML from "
24033 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24034 msgstr ""
24035
24036 # type: textblock
24037 #. type: textblock
24038 #: ../fish/guestfish-actions.pod:71
24039 msgid ""
24040 "The other optional parameters are passed directly through to L</add-drive-"
24041 "opts>."
24042 msgstr ""
24043
24044 # type: textblock
24045 #. type: textblock
24046 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24047 #: ../fish/guestfish-actions.pod:2947
24048 msgid ""
24049 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24050 msgstr ""
24051
24052 # type: =head2
24053 #. type: =head2
24054 #: ../fish/guestfish-actions.pod:76
24055 msgid "add-drive"
24056 msgstr ""
24057
24058 # type: verbatim
24059 #. type: verbatim
24060 #: ../fish/guestfish-actions.pod:78
24061 #, no-wrap
24062 msgid ""
24063 " add-drive filename\n"
24064 "\n"
24065 msgstr ""
24066
24067 # type: textblock
24068 #. type: textblock
24069 #: ../fish/guestfish-actions.pod:80
24070 msgid ""
24071 "This function is the equivalent of calling L</add-drive-opts> with no "
24072 "optional parameters, so the disk is added writable, with the format being "
24073 "detected automatically."
24074 msgstr ""
24075
24076 # type: textblock
24077 #. type: textblock
24078 #: ../fish/guestfish-actions.pod:84
24079 msgid ""
24080 "Automatic detection of the format opens you up to a potential security hole "
24081 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24082 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24083 "you should think about replacing calls to this function with calls to L</add-"
24084 "drive-opts>, and specifying the format."
24085 msgstr ""
24086
24087 # type: =head2
24088 #. type: =head2
24089 #: ../fish/guestfish-actions.pod:91
24090 msgid "add-drive-opts"
24091 msgstr ""
24092
24093 # type: =head2
24094 #. type: =head2
24095 #: ../fish/guestfish-actions.pod:93
24096 msgid "add"
24097 msgstr ""
24098
24099 # type: verbatim
24100 #. type: verbatim
24101 #: ../fish/guestfish-actions.pod:95
24102 #, no-wrap
24103 msgid ""
24104 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24105 "\n"
24106 msgstr ""
24107
24108 # type: textblock
24109 #. type: textblock
24110 #: ../fish/guestfish-actions.pod:122
24111 msgid ""
24112 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24113 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24114 "include C<raw> and C<qcow2>."
24115 msgstr ""
24116
24117 # type: textblock
24118 #. type: textblock
24119 #: ../fish/guestfish-actions.pod:133
24120 msgid ""
24121 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24122 "add-drive-with-if> call (q.v.)"
24123 msgstr ""
24124
24125 # type: =head2
24126 #. type: =head2
24127 #: ../fish/guestfish-actions.pod:140
24128 msgid "add-drive-ro"
24129 msgstr ""
24130
24131 # type: =head2
24132 #. type: =head2
24133 #: ../fish/guestfish-actions.pod:142
24134 msgid "add-ro"
24135 msgstr ""
24136
24137 # type: verbatim
24138 #. type: verbatim
24139 #: ../fish/guestfish-actions.pod:144
24140 #, no-wrap
24141 msgid ""
24142 " add-drive-ro filename\n"
24143 "\n"
24144 msgstr ""
24145
24146 # type: textblock
24147 #. type: textblock
24148 #: ../fish/guestfish-actions.pod:146
24149 msgid ""
24150 "This function is the equivalent of calling L</add-drive-opts> with the "
24151 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24152 "is added read-only, with the format being detected automatically."
24153 msgstr ""
24154
24155 # type: =head2
24156 #. type: =head2
24157 #: ../fish/guestfish-actions.pod:151
24158 msgid "add-drive-ro-with-if"
24159 msgstr ""
24160
24161 # type: verbatim
24162 #. type: verbatim
24163 #: ../fish/guestfish-actions.pod:153
24164 #, no-wrap
24165 msgid ""
24166 " add-drive-ro-with-if filename iface\n"
24167 "\n"
24168 msgstr ""
24169
24170 # type: textblock
24171 #. type: textblock
24172 #: ../fish/guestfish-actions.pod:155
24173 msgid ""
24174 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24175 "interface emulation to use at run time."
24176 msgstr ""
24177
24178 # type: =head2
24179 #. type: =head2
24180 #: ../fish/guestfish-actions.pod:165
24181 msgid "add-drive-with-if"
24182 msgstr ""
24183
24184 # type: verbatim
24185 #. type: verbatim
24186 #: ../fish/guestfish-actions.pod:167
24187 #, no-wrap
24188 msgid ""
24189 " add-drive-with-if filename iface\n"
24190 "\n"
24191 msgstr ""
24192
24193 # type: textblock
24194 #. type: textblock
24195 #: ../fish/guestfish-actions.pod:169
24196 msgid ""
24197 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24198 "interface emulation to use at run time."
24199 msgstr ""
24200
24201 # type: =head2
24202 #. type: =head2
24203 #: ../fish/guestfish-actions.pod:179
24204 msgid "aug-clear"
24205 msgstr ""
24206
24207 # type: verbatim
24208 #. type: verbatim
24209 #: ../fish/guestfish-actions.pod:181
24210 #, no-wrap
24211 msgid ""
24212 " aug-clear augpath\n"
24213 "\n"
24214 msgstr ""
24215
24216 # type: =head2
24217 #. type: =head2
24218 #: ../fish/guestfish-actions.pod:186
24219 msgid "aug-close"
24220 msgstr ""
24221
24222 # type: verbatim
24223 #. type: verbatim
24224 #: ../fish/guestfish-actions.pod:188
24225 #, no-wrap
24226 msgid ""
24227 " aug-close\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: textblock
24232 #. type: textblock
24233 #: ../fish/guestfish-actions.pod:190
24234 msgid ""
24235 "Close the current Augeas handle and free up any resources used by it.  After "
24236 "calling this, you have to call L</aug-init> again before you can use any "
24237 "other Augeas functions."
24238 msgstr ""
24239
24240 # type: =head2
24241 #. type: =head2
24242 #: ../fish/guestfish-actions.pod:195
24243 msgid "aug-defnode"
24244 msgstr ""
24245
24246 # type: verbatim
24247 #. type: verbatim
24248 #: ../fish/guestfish-actions.pod:197
24249 #, no-wrap
24250 msgid ""
24251 " aug-defnode name expr val\n"
24252 "\n"
24253 msgstr ""
24254
24255 # type: textblock
24256 #. type: textblock
24257 #: ../fish/guestfish-actions.pod:202
24258 msgid ""
24259 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24260 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24261 "containing that single node."
24262 msgstr ""
24263
24264 # type: =head2
24265 #. type: =head2
24266 #: ../fish/guestfish-actions.pod:210
24267 msgid "aug-defvar"
24268 msgstr ""
24269
24270 # type: verbatim
24271 #. type: verbatim
24272 #: ../fish/guestfish-actions.pod:212
24273 #, no-wrap
24274 msgid ""
24275 " aug-defvar name expr\n"
24276 "\n"
24277 msgstr ""
24278
24279 # type: =head2
24280 #. type: =head2
24281 #: ../fish/guestfish-actions.pod:221
24282 msgid "aug-get"
24283 msgstr ""
24284
24285 # type: verbatim
24286 #. type: verbatim
24287 #: ../fish/guestfish-actions.pod:223
24288 #, no-wrap
24289 msgid ""
24290 " aug-get augpath\n"
24291 "\n"
24292 msgstr ""
24293
24294 # type: =head2
24295 #. type: =head2
24296 #: ../fish/guestfish-actions.pod:228
24297 msgid "aug-init"
24298 msgstr ""
24299
24300 # type: verbatim
24301 #. type: verbatim
24302 #: ../fish/guestfish-actions.pod:230
24303 #, no-wrap
24304 msgid ""
24305 " aug-init root flags\n"
24306 "\n"
24307 msgstr ""
24308
24309 # type: textblock
24310 #. type: textblock
24311 #: ../fish/guestfish-actions.pod:236
24312 msgid "You must call this before using any other L</aug-*> commands."
24313 msgstr ""
24314
24315 # type: textblock
24316 #. type: textblock
24317 #: ../fish/guestfish-actions.pod:271
24318 msgid "Do not load the tree in L</aug-init>."
24319 msgstr ""
24320
24321 # type: textblock
24322 #. type: textblock
24323 #: ../fish/guestfish-actions.pod:275
24324 msgid "To close the handle, you can call L</aug-close>."
24325 msgstr ""
24326
24327 # type: =head2
24328 #. type: =head2
24329 #: ../fish/guestfish-actions.pod:279
24330 msgid "aug-insert"
24331 msgstr ""
24332
24333 # type: verbatim
24334 #. type: verbatim
24335 #: ../fish/guestfish-actions.pod:281
24336 #, no-wrap
24337 msgid ""
24338 " aug-insert augpath label true|false\n"
24339 "\n"
24340 msgstr ""
24341
24342 # type: =head2
24343 #. type: =head2
24344 #: ../fish/guestfish-actions.pod:291
24345 msgid "aug-load"
24346 msgstr ""
24347
24348 # type: verbatim
24349 #. type: verbatim
24350 #: ../fish/guestfish-actions.pod:293
24351 #, no-wrap
24352 msgid ""
24353 " aug-load\n"
24354 "\n"
24355 msgstr ""
24356
24357 # type: =head2
24358 #. type: =head2
24359 #: ../fish/guestfish-actions.pod:300
24360 msgid "aug-ls"
24361 msgstr ""
24362
24363 # type: verbatim
24364 #. type: verbatim
24365 #: ../fish/guestfish-actions.pod:302
24366 #, no-wrap
24367 msgid ""
24368 " aug-ls augpath\n"
24369 "\n"
24370 msgstr ""
24371
24372 # type: textblock
24373 #. type: textblock
24374 #: ../fish/guestfish-actions.pod:304
24375 msgid ""
24376 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24377 "resulting nodes into alphabetical order."
24378 msgstr ""
24379
24380 # type: =head2
24381 #. type: =head2
24382 #: ../fish/guestfish-actions.pod:307
24383 msgid "aug-match"
24384 msgstr ""
24385
24386 # type: verbatim
24387 #. type: verbatim
24388 #: ../fish/guestfish-actions.pod:309
24389 #, no-wrap
24390 msgid ""
24391 " aug-match augpath\n"
24392 "\n"
24393 msgstr ""
24394
24395 # type: =head2
24396 #. type: =head2
24397 #: ../fish/guestfish-actions.pod:315
24398 msgid "aug-mv"
24399 msgstr ""
24400
24401 # type: verbatim
24402 #. type: verbatim
24403 #: ../fish/guestfish-actions.pod:317
24404 #, no-wrap
24405 msgid ""
24406 " aug-mv src dest\n"
24407 "\n"
24408 msgstr ""
24409
24410 # type: =head2
24411 #. type: =head2
24412 #: ../fish/guestfish-actions.pod:322
24413 msgid "aug-rm"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #. type: verbatim
24418 #: ../fish/guestfish-actions.pod:324
24419 #, no-wrap
24420 msgid ""
24421 " aug-rm augpath\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: =head2
24426 #. type: =head2
24427 #: ../fish/guestfish-actions.pod:330
24428 msgid "aug-save"
24429 msgstr ""
24430
24431 # type: verbatim
24432 #. type: verbatim
24433 #: ../fish/guestfish-actions.pod:332
24434 #, no-wrap
24435 msgid ""
24436 " aug-save\n"
24437 "\n"
24438 msgstr ""
24439
24440 # type: textblock
24441 #. type: textblock
24442 #: ../fish/guestfish-actions.pod:336
24443 msgid ""
24444 "The flags which were passed to L</aug-init> affect exactly how files are "
24445 "saved."
24446 msgstr ""
24447
24448 # type: =head2
24449 #. type: =head2
24450 #: ../fish/guestfish-actions.pod:339
24451 msgid "aug-set"
24452 msgstr ""
24453
24454 # type: verbatim
24455 #. type: verbatim
24456 #: ../fish/guestfish-actions.pod:341
24457 #, no-wrap
24458 msgid ""
24459 " aug-set augpath val\n"
24460 "\n"
24461 msgstr ""
24462
24463 # type: textblock
24464 #. type: textblock
24465 #: ../fish/guestfish-actions.pod:345
24466 msgid ""
24467 "In the Augeas API, it is possible to clear a node by setting the value to "
24468 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24469 "this call.  Instead you must use the L</aug-clear> call."
24470 msgstr ""
24471
24472 # type: =head2
24473 #. type: =head2
24474 #: ../fish/guestfish-actions.pod:350
24475 msgid "available"
24476 msgstr ""
24477
24478 # type: verbatim
24479 #. type: verbatim
24480 #: ../fish/guestfish-actions.pod:352
24481 #, no-wrap
24482 msgid ""
24483 " available 'groups ...'\n"
24484 "\n"
24485 msgstr ""
24486
24487 # type: textblock
24488 #. type: textblock
24489 #: ../fish/guestfish-actions.pod:358
24490 msgid ""
24491 "The libguestfs groups, and the functions that those groups correspond to, "
24492 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24493 "runtime by calling L</available-all-groups>."
24494 msgstr ""
24495
24496 # type: textblock
24497 #. type: textblock
24498 #: ../fish/guestfish-actions.pod:382
24499 msgid "You must call L</launch> before calling this function."
24500 msgstr ""
24501
24502 # type: textblock
24503 #. type: textblock
24504 #: ../fish/guestfish-actions.pod:404
24505 msgid ""
24506 "This call was added in version C<1.0.80>.  In previous versions of "
24507 "libguestfs all you could do would be to speculatively execute a command to "
24508 "find out if the daemon implemented it.  See also L</version>."
24509 msgstr ""
24510
24511 # type: =head2
24512 #. type: =head2
24513 #: ../fish/guestfish-actions.pod:411
24514 msgid "available-all-groups"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #. type: verbatim
24519 #: ../fish/guestfish-actions.pod:413
24520 #, no-wrap
24521 msgid ""
24522 " available-all-groups\n"
24523 "\n"
24524 msgstr ""
24525
24526 # type: textblock
24527 #. type: textblock
24528 #: ../fish/guestfish-actions.pod:415
24529 msgid ""
24530 "This command returns a list of all optional groups that this daemon knows "
24531 "about.  Note this returns both supported and unsupported groups.  To find "
24532 "out which ones the daemon can actually support you have to call L</"
24533 "available> on each member of the returned list."
24534 msgstr ""
24535
24536 # type: textblock
24537 #. type: textblock
24538 #: ../fish/guestfish-actions.pod:421
24539 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24540 msgstr ""
24541
24542 # type: =head2
24543 #. type: =head2
24544 #: ../fish/guestfish-actions.pod:423
24545 msgid "base64-in"
24546 msgstr ""
24547
24548 # type: verbatim
24549 #. type: verbatim
24550 #: ../fish/guestfish-actions.pod:425
24551 #, no-wrap
24552 msgid ""
24553 " base64-in (base64file|-) filename\n"
24554 "\n"
24555 msgstr ""
24556
24557 # type: textblock
24558 #. type: textblock
24559 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24560 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24561 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24562 #: ../fish/guestfish-actions.pod:4345 ../fish/guestfish-actions.pod:4357
24563 #: ../fish/guestfish-actions.pod:4368 ../fish/guestfish-actions.pod:4379
24564 #: ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4440
24565 #: ../fish/guestfish-actions.pod:4494 ../fish/guestfish-actions.pod:4517
24566 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24567 msgstr ""
24568
24569 # type: =head2
24570 #. type: =head2
24571 #: ../fish/guestfish-actions.pod:432
24572 msgid "base64-out"
24573 msgstr ""
24574
24575 # type: verbatim
24576 #. type: verbatim
24577 #: ../fish/guestfish-actions.pod:434
24578 #, no-wrap
24579 msgid ""
24580 " base64-out filename (base64file|-)\n"
24581 "\n"
24582 msgstr ""
24583
24584 # type: =head2
24585 #. type: =head2
24586 #: ../fish/guestfish-actions.pod:441
24587 msgid "blockdev-flushbufs"
24588 msgstr ""
24589
24590 # type: verbatim
24591 #. type: verbatim
24592 #: ../fish/guestfish-actions.pod:443
24593 #, no-wrap
24594 msgid ""
24595 " blockdev-flushbufs device\n"
24596 "\n"
24597 msgstr ""
24598
24599 # type: =head2
24600 #. type: =head2
24601 #: ../fish/guestfish-actions.pod:450
24602 msgid "blockdev-getbsz"
24603 msgstr ""
24604
24605 # type: verbatim
24606 #. type: verbatim
24607 #: ../fish/guestfish-actions.pod:452
24608 #, no-wrap
24609 msgid ""
24610 " blockdev-getbsz device\n"
24611 "\n"
24612 msgstr ""
24613
24614 # type: =head2
24615 #. type: =head2
24616 #: ../fish/guestfish-actions.pod:461
24617 msgid "blockdev-getro"
24618 msgstr ""
24619
24620 # type: verbatim
24621 #. type: verbatim
24622 #: ../fish/guestfish-actions.pod:463
24623 #, no-wrap
24624 msgid ""
24625 " blockdev-getro device\n"
24626 "\n"
24627 msgstr ""
24628
24629 # type: =head2
24630 #. type: =head2
24631 #: ../fish/guestfish-actions.pod:470
24632 msgid "blockdev-getsize64"
24633 msgstr ""
24634
24635 # type: verbatim
24636 #. type: verbatim
24637 #: ../fish/guestfish-actions.pod:472
24638 #, no-wrap
24639 msgid ""
24640 " blockdev-getsize64 device\n"
24641 "\n"
24642 msgstr ""
24643
24644 # type: textblock
24645 #. type: textblock
24646 #: ../fish/guestfish-actions.pod:476
24647 msgid "See also L</blockdev-getsz>."
24648 msgstr ""
24649
24650 # type: =head2
24651 #. type: =head2
24652 #: ../fish/guestfish-actions.pod:480
24653 msgid "blockdev-getss"
24654 msgstr ""
24655
24656 # type: verbatim
24657 #. type: verbatim
24658 #: ../fish/guestfish-actions.pod:482
24659 #, no-wrap
24660 msgid ""
24661 " blockdev-getss device\n"
24662 "\n"
24663 msgstr ""
24664
24665 # type: textblock
24666 #. type: textblock
24667 #: ../fish/guestfish-actions.pod:487
24668 msgid ""
24669 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24670 msgstr ""
24671
24672 # type: =head2
24673 #. type: =head2
24674 #: ../fish/guestfish-actions.pod:492
24675 msgid "blockdev-getsz"
24676 msgstr ""
24677
24678 # type: verbatim
24679 #. type: verbatim
24680 #: ../fish/guestfish-actions.pod:494
24681 #, no-wrap
24682 msgid ""
24683 " blockdev-getsz device\n"
24684 "\n"
24685 msgstr ""
24686
24687 # type: textblock
24688 #. type: textblock
24689 #: ../fish/guestfish-actions.pod:499
24690 msgid ""
24691 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24692 "blockdev-getsize64> for the more useful I<size in bytes>."
24693 msgstr ""
24694
24695 # type: =head2
24696 #. type: =head2
24697 #: ../fish/guestfish-actions.pod:505
24698 msgid "blockdev-rereadpt"
24699 msgstr ""
24700
24701 # type: verbatim
24702 #. type: verbatim
24703 #: ../fish/guestfish-actions.pod:507
24704 #, no-wrap
24705 msgid ""
24706 " blockdev-rereadpt device\n"
24707 "\n"
24708 msgstr ""
24709
24710 # type: =head2
24711 #. type: =head2
24712 #: ../fish/guestfish-actions.pod:513
24713 msgid "blockdev-setbsz"
24714 msgstr ""
24715
24716 # type: verbatim
24717 #. type: verbatim
24718 #: ../fish/guestfish-actions.pod:515
24719 #, no-wrap
24720 msgid ""
24721 " blockdev-setbsz device blocksize\n"
24722 "\n"
24723 msgstr ""
24724
24725 # type: =head2
24726 #. type: =head2
24727 #: ../fish/guestfish-actions.pod:524
24728 msgid "blockdev-setro"
24729 msgstr ""
24730
24731 # type: verbatim
24732 #. type: verbatim
24733 #: ../fish/guestfish-actions.pod:526
24734 #, no-wrap
24735 msgid ""
24736 " blockdev-setro device\n"
24737 "\n"
24738 msgstr ""
24739
24740 # type: =head2
24741 #. type: =head2
24742 #: ../fish/guestfish-actions.pod:532
24743 msgid "blockdev-setrw"
24744 msgstr ""
24745
24746 # type: verbatim
24747 #. type: verbatim
24748 #: ../fish/guestfish-actions.pod:534
24749 #, no-wrap
24750 msgid ""
24751 " blockdev-setrw device\n"
24752 "\n"
24753 msgstr ""
24754
24755 # type: =head2
24756 #. type: =head2
24757 #: ../fish/guestfish-actions.pod:540
24758 msgid "case-sensitive-path"
24759 msgstr ""
24760
24761 # type: verbatim
24762 #. type: verbatim
24763 #: ../fish/guestfish-actions.pod:542
24764 #, no-wrap
24765 msgid ""
24766 " case-sensitive-path path\n"
24767 "\n"
24768 msgstr ""
24769
24770 # type: textblock
24771 #. type: textblock
24772 #: ../fish/guestfish-actions.pod:566
24773 msgid ""
24774 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24775 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24776 "the directories were originally created under Windows)."
24777 msgstr ""
24778
24779 # type: textblock
24780 #. type: textblock
24781 #: ../fish/guestfish-actions.pod:574
24782 msgid "See also L</realpath>."
24783 msgstr ""
24784
24785 # type: =head2
24786 #. type: =head2
24787 #: ../fish/guestfish-actions.pod:576
24788 msgid "cat"
24789 msgstr ""
24790
24791 # type: verbatim
24792 #. type: verbatim
24793 #: ../fish/guestfish-actions.pod:578
24794 #, no-wrap
24795 msgid ""
24796 " cat path\n"
24797 "\n"
24798 msgstr ""
24799
24800 # type: textblock
24801 #. type: textblock
24802 #: ../fish/guestfish-actions.pod:582
24803 msgid ""
24804 "Note that this function cannot correctly handle binary files (specifically, "
24805 "files containing C<\\0> character which is treated as end of string).  For "
24806 "those you need to use the L</read-file> or L</download> functions which have "
24807 "a more complex interface."
24808 msgstr ""
24809
24810 # type: =head2
24811 #. type: =head2
24812 #: ../fish/guestfish-actions.pod:590
24813 msgid "checksum"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #. type: verbatim
24818 #: ../fish/guestfish-actions.pod:592
24819 #, no-wrap
24820 msgid ""
24821 " checksum csumtype path\n"
24822 "\n"
24823 msgstr ""
24824
24825 # type: textblock
24826 #. type: textblock
24827 #: ../fish/guestfish-actions.pod:635
24828 msgid "To get the checksum for a device, use L</checksum-device>."
24829 msgstr ""
24830
24831 # type: textblock
24832 #. type: textblock
24833 #: ../fish/guestfish-actions.pod:637
24834 msgid "To get the checksums for many files, use L</checksums-out>."
24835 msgstr ""
24836
24837 # type: =head2
24838 #. type: =head2
24839 #: ../fish/guestfish-actions.pod:639
24840 msgid "checksum-device"
24841 msgstr ""
24842
24843 # type: verbatim
24844 #. type: verbatim
24845 #: ../fish/guestfish-actions.pod:641
24846 #, no-wrap
24847 msgid ""
24848 " checksum-device csumtype device\n"
24849 "\n"
24850 msgstr ""
24851
24852 # type: textblock
24853 #. type: textblock
24854 #: ../fish/guestfish-actions.pod:643
24855 msgid ""
24856 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24857 "device named C<device>.  For the types of checksums supported see the L</"
24858 "checksum> command."
24859 msgstr ""
24860
24861 # type: =head2
24862 #. type: =head2
24863 #: ../fish/guestfish-actions.pod:647
24864 msgid "checksums-out"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #. type: verbatim
24869 #: ../fish/guestfish-actions.pod:649
24870 #, no-wrap
24871 msgid ""
24872 " checksums-out csumtype directory (sumsfile|-)\n"
24873 "\n"
24874 msgstr ""
24875
24876 # type: =head2
24877 #. type: =head2
24878 #: ../fish/guestfish-actions.pod:665
24879 msgid "chmod"
24880 msgstr ""
24881
24882 # type: verbatim
24883 #. type: verbatim
24884 #: ../fish/guestfish-actions.pod:667
24885 #, no-wrap
24886 msgid ""
24887 " chmod mode path\n"
24888 "\n"
24889 msgstr ""
24890
24891 # type: =head2
24892 #. type: =head2
24893 #: ../fish/guestfish-actions.pod:678
24894 msgid "chown"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #. type: verbatim
24899 #: ../fish/guestfish-actions.pod:680
24900 #, no-wrap
24901 msgid ""
24902 " chown owner group path\n"
24903 "\n"
24904 msgstr ""
24905
24906 # type: =head2
24907 #. type: =head2
24908 #: ../fish/guestfish-actions.pod:688
24909 msgid "command"
24910 msgstr ""
24911
24912 # type: verbatim
24913 #. type: verbatim
24914 #: ../fish/guestfish-actions.pod:690
24915 #, no-wrap
24916 msgid ""
24917 " command 'arguments ...'\n"
24918 "\n"
24919 msgstr ""
24920
24921 # type: textblock
24922 #. type: textblock
24923 #: ../fish/guestfish-actions.pod:697
24924 msgid ""
24925 "The single parameter is an argv-style list of arguments.  The first element "
24926 "is the name of the program to run.  Subsequent elements are parameters.  The "
24927 "list must be non-empty (ie. must contain a program name).  Note that the "
24928 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24929 msgstr ""
24930
24931 # type: =head2
24932 #. type: =head2
24933 #: ../fish/guestfish-actions.pod:725
24934 msgid "command-lines"
24935 msgstr ""
24936
24937 # type: verbatim
24938 #. type: verbatim
24939 #: ../fish/guestfish-actions.pod:727
24940 #, no-wrap
24941 msgid ""
24942 " command-lines 'arguments ...'\n"
24943 "\n"
24944 msgstr ""
24945
24946 # type: textblock
24947 #. type: textblock
24948 #: ../fish/guestfish-actions.pod:729
24949 msgid ""
24950 "This is the same as L</command>, but splits the result into a list of lines."
24951 msgstr ""
24952
24953 # type: textblock
24954 #. type: textblock
24955 #: ../fish/guestfish-actions.pod:732
24956 msgid "See also: L</sh-lines>"
24957 msgstr ""
24958
24959 # type: =head2
24960 #. type: =head2
24961 #: ../fish/guestfish-actions.pod:737
24962 msgid "config"
24963 msgstr ""
24964
24965 # type: verbatim
24966 #. type: verbatim
24967 #: ../fish/guestfish-actions.pod:739
24968 #, no-wrap
24969 msgid ""
24970 " config qemuparam qemuvalue\n"
24971 "\n"
24972 msgstr ""
24973
24974 # type: =head2
24975 #. type: =head2
24976 #: ../fish/guestfish-actions.pod:750
24977 msgid "copy-size"
24978 msgstr ""
24979
24980 # type: verbatim
24981 #. type: verbatim
24982 #: ../fish/guestfish-actions.pod:752
24983 #, no-wrap
24984 msgid ""
24985 " copy-size src dest size\n"
24986 "\n"
24987 msgstr ""
24988
24989 # type: =head2
24990 #. type: =head2
24991 #: ../fish/guestfish-actions.pod:760
24992 msgid "cp"
24993 msgstr ""
24994
24995 # type: verbatim
24996 #. type: verbatim
24997 #: ../fish/guestfish-actions.pod:762
24998 #, no-wrap
24999 msgid ""
25000 " cp src dest\n"
25001 "\n"
25002 msgstr ""
25003
25004 # type: =head2
25005 #. type: =head2
25006 #: ../fish/guestfish-actions.pod:767
25007 msgid "cp-a"
25008 msgstr ""
25009
25010 # type: verbatim
25011 #. type: verbatim
25012 #: ../fish/guestfish-actions.pod:769
25013 #, no-wrap
25014 msgid ""
25015 " cp-a src dest\n"
25016 "\n"
25017 msgstr ""
25018
25019 # type: =head2
25020 #. type: =head2
25021 #: ../fish/guestfish-actions.pod:774
25022 msgid "dd"
25023 msgstr ""
25024
25025 # type: verbatim
25026 #. type: verbatim
25027 #: ../fish/guestfish-actions.pod:776
25028 #, no-wrap
25029 msgid ""
25030 " dd src dest\n"
25031 "\n"
25032 msgstr ""
25033
25034 # type: textblock
25035 #. type: textblock
25036 #: ../fish/guestfish-actions.pod:783
25037 msgid ""
25038 "If the destination is a device, it must be as large or larger than the "
25039 "source file or device, otherwise the copy will fail.  This command cannot do "
25040 "partial copies (see L</copy-size>)."
25041 msgstr ""
25042
25043 # type: =head2
25044 #. type: =head2
25045 #: ../fish/guestfish-actions.pod:787
25046 msgid "df"
25047 msgstr ""
25048
25049 # type: verbatim
25050 #. type: verbatim
25051 #: ../fish/guestfish-actions.pod:789
25052 #, no-wrap
25053 msgid ""
25054 " df\n"
25055 "\n"
25056 msgstr ""
25057
25058 # type: textblock
25059 #. type: textblock
25060 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25061 msgid ""
25062 "This command is mostly useful for interactive sessions.  It is I<not> "
25063 "intended that you try to parse the output string.  Use L</statvfs> from "
25064 "programs."
25065 msgstr ""
25066
25067 # type: =head2
25068 #. type: =head2
25069 #: ../fish/guestfish-actions.pod:797
25070 msgid "df-h"
25071 msgstr ""
25072
25073 # type: verbatim
25074 #. type: verbatim
25075 #: ../fish/guestfish-actions.pod:799
25076 #, no-wrap
25077 msgid ""
25078 " df-h\n"
25079 "\n"
25080 msgstr ""
25081
25082 # type: =head2
25083 #. type: =head2
25084 #: ../fish/guestfish-actions.pod:808
25085 msgid "dmesg"
25086 msgstr ""
25087
25088 # type: verbatim
25089 #. type: verbatim
25090 #: ../fish/guestfish-actions.pod:810
25091 #, no-wrap
25092 msgid ""
25093 " dmesg\n"
25094 "\n"
25095 msgstr ""
25096
25097 # type: textblock
25098 #. type: textblock
25099 #: ../fish/guestfish-actions.pod:816
25100 msgid ""
25101 "Another way to get the same information is to enable verbose messages with "
25102 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25103 "before running the program."
25104 msgstr ""
25105
25106 # type: =head2
25107 #. type: =head2
25108 #: ../fish/guestfish-actions.pod:821
25109 msgid "download"
25110 msgstr ""
25111
25112 # type: verbatim
25113 #. type: verbatim
25114 #: ../fish/guestfish-actions.pod:823
25115 #, no-wrap
25116 msgid ""
25117 " download remotefilename (filename|-)\n"
25118 "\n"
25119 msgstr ""
25120
25121 # type: textblock
25122 #. type: textblock
25123 #: ../fish/guestfish-actions.pod:830
25124 msgid "See also L</upload>, L</cat>."
25125 msgstr ""
25126
25127 # type: =head2
25128 #. type: =head2
25129 #: ../fish/guestfish-actions.pod:834
25130 msgid "download-offset"
25131 msgstr ""
25132
25133 # type: verbatim
25134 #. type: verbatim
25135 #: ../fish/guestfish-actions.pod:836
25136 #, no-wrap
25137 msgid ""
25138 " download-offset remotefilename (filename|-) offset size\n"
25139 "\n"
25140 msgstr ""
25141
25142 # type: textblock
25143 #. type: textblock
25144 #: ../fish/guestfish-actions.pod:844
25145 msgid ""
25146 "Note that there is no limit on the amount of data that can be downloaded "
25147 "with this call, unlike with L</pread>, and this call always reads the full "
25148 "amount unless an error occurs."
25149 msgstr ""
25150
25151 # type: textblock
25152 #. type: textblock
25153 #: ../fish/guestfish-actions.pod:849
25154 msgid "See also L</download>, L</pread>."
25155 msgstr ""
25156
25157 # type: =head2
25158 #. type: =head2
25159 #: ../fish/guestfish-actions.pod:853
25160 msgid "drop-caches"
25161 msgstr ""
25162
25163 # type: verbatim
25164 #. type: verbatim
25165 #: ../fish/guestfish-actions.pod:855
25166 #, no-wrap
25167 msgid ""
25168 " drop-caches whattodrop\n"
25169 "\n"
25170 msgstr ""
25171
25172 # type: =head2
25173 #. type: =head2
25174 #: ../fish/guestfish-actions.pod:867
25175 msgid "du"
25176 msgstr ""
25177
25178 # type: verbatim
25179 #. type: verbatim
25180 #: ../fish/guestfish-actions.pod:869
25181 #, no-wrap
25182 msgid ""
25183 " du path\n"
25184 "\n"
25185 msgstr ""
25186
25187 # type: =head2
25188 #. type: =head2
25189 #: ../fish/guestfish-actions.pod:881
25190 msgid "e2fsck-f"
25191 msgstr ""
25192
25193 # type: verbatim
25194 #. type: verbatim
25195 #: ../fish/guestfish-actions.pod:883
25196 #, no-wrap
25197 msgid ""
25198 " e2fsck-f device\n"
25199 "\n"
25200 msgstr ""
25201
25202 # type: textblock
25203 #. type: textblock
25204 #: ../fish/guestfish-actions.pod:889
25205 msgid ""
25206 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25207 "should use L</fsck>."
25208 msgstr ""
25209
25210 # type: =head2
25211 #. type: =head2
25212 #: ../fish/guestfish-actions.pod:892
25213 msgid "echo-daemon"
25214 msgstr ""
25215
25216 # type: verbatim
25217 #. type: verbatim
25218 #: ../fish/guestfish-actions.pod:894
25219 #, no-wrap
25220 msgid ""
25221 " echo-daemon 'words ...'\n"
25222 "\n"
25223 msgstr ""
25224
25225 # type: textblock
25226 #. type: textblock
25227 #: ../fish/guestfish-actions.pod:901
25228 msgid "See also L</ping-daemon>."
25229 msgstr ""
25230
25231 # type: =head2
25232 #. type: =head2
25233 #: ../fish/guestfish-actions.pod:903
25234 msgid "egrep"
25235 msgstr ""
25236
25237 # type: verbatim
25238 #. type: verbatim
25239 #: ../fish/guestfish-actions.pod:905
25240 #, no-wrap
25241 msgid ""
25242 " egrep regex path\n"
25243 "\n"
25244 msgstr ""
25245
25246 # type: =head2
25247 #. type: =head2
25248 #: ../fish/guestfish-actions.pod:913
25249 msgid "egrepi"
25250 msgstr ""
25251
25252 # type: verbatim
25253 #. type: verbatim
25254 #: ../fish/guestfish-actions.pod:915
25255 #, no-wrap
25256 msgid ""
25257 " egrepi regex path\n"
25258 "\n"
25259 msgstr ""
25260
25261 # type: =head2
25262 #. type: =head2
25263 #: ../fish/guestfish-actions.pod:923
25264 msgid "equal"
25265 msgstr ""
25266
25267 # type: verbatim
25268 #. type: verbatim
25269 #: ../fish/guestfish-actions.pod:925
25270 #, no-wrap
25271 msgid ""
25272 " equal file1 file2\n"
25273 "\n"
25274 msgstr ""
25275
25276 # type: =head2
25277 #. type: =head2
25278 #: ../fish/guestfish-actions.pod:932
25279 msgid "exists"
25280 msgstr ""
25281
25282 # type: verbatim
25283 #. type: verbatim
25284 #: ../fish/guestfish-actions.pod:934
25285 #, no-wrap
25286 msgid ""
25287 " exists path\n"
25288 "\n"
25289 msgstr ""
25290
25291 # type: textblock
25292 #. type: textblock
25293 #: ../fish/guestfish-actions.pod:939
25294 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25295 msgstr ""
25296
25297 # type: =head2
25298 #. type: =head2
25299 #: ../fish/guestfish-actions.pod:941
25300 msgid "fallocate"
25301 msgstr ""
25302
25303 # type: verbatim
25304 #. type: verbatim
25305 #: ../fish/guestfish-actions.pod:943
25306 #, no-wrap
25307 msgid ""
25308 " fallocate path len\n"
25309 "\n"
25310 msgstr ""
25311
25312 # type: =head2
25313 #. type: =head2
25314 #: ../fish/guestfish-actions.pod:960
25315 msgid "fallocate64"
25316 msgstr ""
25317
25318 # type: verbatim
25319 #. type: verbatim
25320 #: ../fish/guestfish-actions.pod:962
25321 #, no-wrap
25322 msgid ""
25323 " fallocate64 path len\n"
25324 "\n"
25325 msgstr ""
25326
25327 # type: textblock
25328 #. type: textblock
25329 #: ../fish/guestfish-actions.pod:968
25330 msgid ""
25331 "Note that this call allocates disk blocks for the file.  To create a sparse "
25332 "file use L</truncate-size> instead."
25333 msgstr ""
25334
25335 # type: textblock
25336 #. type: textblock
25337 #: ../fish/guestfish-actions.pod:971
25338 msgid ""
25339 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25340 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25341 "maximum size of files created through that call to 1GB."
25342 msgstr ""
25343
25344 # type: =head2
25345 #. type: =head2
25346 #: ../fish/guestfish-actions.pod:980
25347 msgid "fgrep"
25348 msgstr ""
25349
25350 # type: verbatim
25351 #. type: verbatim
25352 #: ../fish/guestfish-actions.pod:982
25353 #, no-wrap
25354 msgid ""
25355 " fgrep pattern path\n"
25356 "\n"
25357 msgstr ""
25358
25359 # type: =head2
25360 #. type: =head2
25361 #: ../fish/guestfish-actions.pod:990
25362 msgid "fgrepi"
25363 msgstr ""
25364
25365 # type: verbatim
25366 #. type: verbatim
25367 #: ../fish/guestfish-actions.pod:992
25368 #, no-wrap
25369 msgid ""
25370 " fgrepi pattern path\n"
25371 "\n"
25372 msgstr ""
25373
25374 # type: =head2
25375 #. type: =head2
25376 #: ../fish/guestfish-actions.pod:1000
25377 msgid "file"
25378 msgstr ""
25379
25380 # type: verbatim
25381 #. type: verbatim
25382 #: ../fish/guestfish-actions.pod:1002
25383 #, no-wrap
25384 msgid ""
25385 " file path\n"
25386 "\n"
25387 msgstr ""
25388
25389 # type: textblock
25390 #. type: textblock
25391 #: ../fish/guestfish-actions.pod:1014
25392 msgid ""
25393 "This command can also be used on C</dev/> devices (and partitions, LV "
25394 "names).  You can for example use this to determine if a device contains a "
25395 "filesystem, although it's usually better to use L</vfs-type>."
25396 msgstr ""
25397
25398 # type: =head2
25399 #. type: =head2
25400 #: ../fish/guestfish-actions.pod:1024
25401 msgid "file-architecture"
25402 msgstr ""
25403
25404 # type: verbatim
25405 #. type: verbatim
25406 #: ../fish/guestfish-actions.pod:1026
25407 #, no-wrap
25408 msgid ""
25409 " file-architecture filename\n"
25410 "\n"
25411 msgstr ""
25412
25413 # type: =head2
25414 #. type: =head2
25415 #: ../fish/guestfish-actions.pod:1129
25416 msgid "filesize"
25417 msgstr ""
25418
25419 # type: verbatim
25420 #. type: verbatim
25421 #: ../fish/guestfish-actions.pod:1131
25422 #, no-wrap
25423 msgid ""
25424 " filesize file\n"
25425 "\n"
25426 msgstr ""
25427
25428 # type: textblock
25429 #. type: textblock
25430 #: ../fish/guestfish-actions.pod:1135
25431 msgid ""
25432 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25433 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25434 msgstr ""
25435
25436 # type: =head2
25437 #. type: =head2
25438 #: ../fish/guestfish-actions.pod:1139
25439 msgid "fill"
25440 msgstr ""
25441
25442 # type: verbatim
25443 #. type: verbatim
25444 #: ../fish/guestfish-actions.pod:1141
25445 #, no-wrap
25446 msgid ""
25447 " fill c len path\n"
25448 "\n"
25449 msgstr ""
25450
25451 # type: textblock
25452 #. type: textblock
25453 #: ../fish/guestfish-actions.pod:1147
25454 msgid ""
25455 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25456 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25457 "L</fill-pattern>."
25458 msgstr ""
25459
25460 # type: =head2
25461 #. type: =head2
25462 #: ../fish/guestfish-actions.pod:1152
25463 msgid "fill-pattern"
25464 msgstr ""
25465
25466 # type: verbatim
25467 #. type: verbatim
25468 #: ../fish/guestfish-actions.pod:1154
25469 #, no-wrap
25470 msgid ""
25471 " fill-pattern pattern len path\n"
25472 "\n"
25473 msgstr ""
25474
25475 # type: textblock
25476 #. type: textblock
25477 #: ../fish/guestfish-actions.pod:1156
25478 msgid ""
25479 "This function is like L</fill> except that it creates a new file of length "
25480 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25481 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25482 "bytes."
25483 msgstr ""
25484
25485 # type: =head2
25486 #. type: =head2
25487 #: ../fish/guestfish-actions.pod:1161
25488 msgid "find"
25489 msgstr ""
25490
25491 # type: verbatim
25492 #. type: verbatim
25493 #: ../fish/guestfish-actions.pod:1163
25494 #, no-wrap
25495 msgid ""
25496 " find directory\n"
25497 "\n"
25498 msgstr ""
25499
25500 # type: textblock
25501 #. type: textblock
25502 #: ../fish/guestfish-actions.pod:1177
25503 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25504 msgstr ""
25505
25506 # type: textblock
25507 #. type: textblock
25508 #: ../fish/guestfish-actions.pod:1190
25509 msgid "See also L</find0>."
25510 msgstr ""
25511
25512 # type: =head2
25513 #. type: =head2
25514 #: ../fish/guestfish-actions.pod:1195
25515 msgid "find0"
25516 msgstr ""
25517
25518 # type: verbatim
25519 #. type: verbatim
25520 #: ../fish/guestfish-actions.pod:1197
25521 #, no-wrap
25522 msgid ""
25523 " find0 directory (files|-)\n"
25524 "\n"
25525 msgstr ""
25526
25527 # type: textblock
25528 #. type: textblock
25529 #: ../fish/guestfish-actions.pod:1203
25530 msgid ""
25531 "This command works the same way as L</find> with the following exceptions:"
25532 msgstr ""
25533
25534 # type: =head2
25535 #. type: =head2
25536 #: ../fish/guestfish-actions.pod:1230
25537 msgid "findfs-label"
25538 msgstr ""
25539
25540 # type: verbatim
25541 #. type: verbatim
25542 #: ../fish/guestfish-actions.pod:1232
25543 #, no-wrap
25544 msgid ""
25545 " findfs-label label\n"
25546 "\n"
25547 msgstr ""
25548
25549 # type: textblock
25550 #. type: textblock
25551 #: ../fish/guestfish-actions.pod:1238
25552 msgid "To find the label of a filesystem, use L</vfs-label>."
25553 msgstr ""
25554
25555 # type: =head2
25556 #. type: =head2
25557 #: ../fish/guestfish-actions.pod:1240
25558 msgid "findfs-uuid"
25559 msgstr ""
25560
25561 # type: verbatim
25562 #. type: verbatim
25563 #: ../fish/guestfish-actions.pod:1242
25564 #, no-wrap
25565 msgid ""
25566 " findfs-uuid uuid\n"
25567 "\n"
25568 msgstr ""
25569
25570 # type: textblock
25571 #. type: textblock
25572 #: ../fish/guestfish-actions.pod:1248
25573 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25574 msgstr ""
25575
25576 # type: =head2
25577 #. type: =head2
25578 #: ../fish/guestfish-actions.pod:1250
25579 msgid "fsck"
25580 msgstr ""
25581
25582 # type: verbatim
25583 #. type: verbatim
25584 #: ../fish/guestfish-actions.pod:1252
25585 #, no-wrap
25586 msgid ""
25587 " fsck fstype device\n"
25588 "\n"
25589 msgstr ""
25590
25591 # type: =head2
25592 #. type: =head2
25593 #: ../fish/guestfish-actions.pod:1282
25594 msgid "get-append"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #. type: verbatim
25599 #: ../fish/guestfish-actions.pod:1284
25600 #, no-wrap
25601 msgid ""
25602 " get-append\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: =head2
25607 #: ../fish/guestfish-actions.pod:1291
25608 msgid "get-attach-method"
25609 msgstr ""
25610
25611 #. type: verbatim
25612 #: ../fish/guestfish-actions.pod:1293
25613 #, no-wrap
25614 msgid ""
25615 " get-attach-method\n"
25616 "\n"
25617 msgstr ""
25618
25619 #. type: textblock
25620 #: ../fish/guestfish-actions.pod:1295
25621 msgid "Return the current attach method.  See L</set-attach-method>."
25622 msgstr ""
25623
25624 # type: =head2
25625 #. type: =head2
25626 #: ../fish/guestfish-actions.pod:1297
25627 msgid "get-autosync"
25628 msgstr ""
25629
25630 # type: verbatim
25631 #. type: verbatim
25632 #: ../fish/guestfish-actions.pod:1299
25633 #, no-wrap
25634 msgid ""
25635 " get-autosync\n"
25636 "\n"
25637 msgstr ""
25638
25639 # type: =head2
25640 #. type: =head2
25641 #: ../fish/guestfish-actions.pod:1303
25642 msgid "get-direct"
25643 msgstr ""
25644
25645 # type: verbatim
25646 #. type: verbatim
25647 #: ../fish/guestfish-actions.pod:1305
25648 #, no-wrap
25649 msgid ""
25650 " get-direct\n"
25651 "\n"
25652 msgstr ""
25653
25654 # type: =head2
25655 #. type: =head2
25656 #: ../fish/guestfish-actions.pod:1309
25657 msgid "get-e2label"
25658 msgstr ""
25659
25660 # type: verbatim
25661 #. type: verbatim
25662 #: ../fish/guestfish-actions.pod:1311
25663 #, no-wrap
25664 msgid ""
25665 " get-e2label device\n"
25666 "\n"
25667 msgstr ""
25668
25669 # type: =head2
25670 #. type: =head2
25671 #: ../fish/guestfish-actions.pod:1323
25672 msgid "get-e2uuid"
25673 msgstr ""
25674
25675 # type: verbatim
25676 #. type: verbatim
25677 #: ../fish/guestfish-actions.pod:1325
25678 #, no-wrap
25679 msgid ""
25680 " get-e2uuid device\n"
25681 "\n"
25682 msgstr ""
25683
25684 # type: =head2
25685 #. type: =head2
25686 #: ../fish/guestfish-actions.pod:1337
25687 msgid "get-memsize"
25688 msgstr ""
25689
25690 # type: verbatim
25691 #. type: verbatim
25692 #: ../fish/guestfish-actions.pod:1339
25693 #, no-wrap
25694 msgid ""
25695 " get-memsize\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: textblock
25700 #. type: textblock
25701 #: ../fish/guestfish-actions.pod:1344
25702 msgid ""
25703 "If L</set-memsize> was not called on this handle, and if "
25704 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25705 "value for memsize."
25706 msgstr ""
25707
25708 # type: =head2
25709 #. type: =head2
25710 #: ../fish/guestfish-actions.pod:1351
25711 msgid "get-network"
25712 msgstr ""
25713
25714 # type: verbatim
25715 #. type: verbatim
25716 #: ../fish/guestfish-actions.pod:1353
25717 #, no-wrap
25718 msgid ""
25719 " get-network\n"
25720 "\n"
25721 msgstr ""
25722
25723 # type: =head2
25724 #. type: =head2
25725 #: ../fish/guestfish-actions.pod:1357
25726 msgid "get-path"
25727 msgstr ""
25728
25729 # type: verbatim
25730 #. type: verbatim
25731 #: ../fish/guestfish-actions.pod:1359
25732 #, no-wrap
25733 msgid ""
25734 " get-path\n"
25735 "\n"
25736 msgstr ""
25737
25738 # type: =head2
25739 #. type: =head2
25740 #: ../fish/guestfish-actions.pod:1366
25741 msgid "get-pid"
25742 msgstr ""
25743
25744 # type: =head2
25745 #. type: =head2
25746 #: ../fish/guestfish-actions.pod:1368
25747 msgid "pid"
25748 msgstr ""
25749
25750 # type: verbatim
25751 #. type: verbatim
25752 #: ../fish/guestfish-actions.pod:1370
25753 #, no-wrap
25754 msgid ""
25755 " get-pid\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: =head2
25760 #. type: =head2
25761 #: ../fish/guestfish-actions.pod:1377
25762 msgid "get-qemu"
25763 msgstr ""
25764
25765 # type: verbatim
25766 #. type: verbatim
25767 #: ../fish/guestfish-actions.pod:1379
25768 #, no-wrap
25769 msgid ""
25770 " get-qemu\n"
25771 "\n"
25772 msgstr ""
25773
25774 # type: =head2
25775 #. type: =head2
25776 #: ../fish/guestfish-actions.pod:1386
25777 msgid "get-recovery-proc"
25778 msgstr ""
25779
25780 # type: verbatim
25781 #. type: verbatim
25782 #: ../fish/guestfish-actions.pod:1388
25783 #, no-wrap
25784 msgid ""
25785 " get-recovery-proc\n"
25786 "\n"
25787 msgstr ""
25788
25789 # type: =head2
25790 #. type: =head2
25791 #: ../fish/guestfish-actions.pod:1392
25792 msgid "get-selinux"
25793 msgstr ""
25794
25795 # type: verbatim
25796 #. type: verbatim
25797 #: ../fish/guestfish-actions.pod:1394
25798 #, no-wrap
25799 msgid ""
25800 " get-selinux\n"
25801 "\n"
25802 msgstr ""
25803
25804 # type: textblock
25805 #. type: textblock
25806 #: ../fish/guestfish-actions.pod:1396
25807 msgid ""
25808 "This returns the current setting of the selinux flag which is passed to the "
25809 "appliance at boot time.  See L</set-selinux>."
25810 msgstr ""
25811
25812 # type: =head2
25813 #. type: =head2
25814 #: ../fish/guestfish-actions.pod:1402
25815 msgid "get-state"
25816 msgstr ""
25817
25818 # type: verbatim
25819 #. type: verbatim
25820 #: ../fish/guestfish-actions.pod:1404
25821 #, no-wrap
25822 msgid ""
25823 " get-state\n"
25824 "\n"
25825 msgstr ""
25826
25827 # type: =head2
25828 #. type: =head2
25829 #: ../fish/guestfish-actions.pod:1411
25830 msgid "get-trace"
25831 msgstr ""
25832
25833 # type: verbatim
25834 #. type: verbatim
25835 #: ../fish/guestfish-actions.pod:1413
25836 #, no-wrap
25837 msgid ""
25838 " get-trace\n"
25839 "\n"
25840 msgstr ""
25841
25842 # type: =head2
25843 #. type: =head2
25844 #: ../fish/guestfish-actions.pod:1417
25845 msgid "get-umask"
25846 msgstr ""
25847
25848 # type: verbatim
25849 #. type: verbatim
25850 #: ../fish/guestfish-actions.pod:1419
25851 #, no-wrap
25852 msgid ""
25853 " get-umask\n"
25854 "\n"
25855 msgstr ""
25856
25857 # type: textblock
25858 #. type: textblock
25859 #: ../fish/guestfish-actions.pod:1421
25860 msgid ""
25861 "Return the current umask.  By default the umask is C<022> unless it has been "
25862 "set by calling L</umask>."
25863 msgstr ""
25864
25865 # type: =head2
25866 #. type: =head2
25867 #: ../fish/guestfish-actions.pod:1424
25868 msgid "get-verbose"
25869 msgstr ""
25870
25871 # type: verbatim
25872 #. type: verbatim
25873 #: ../fish/guestfish-actions.pod:1426
25874 #, no-wrap
25875 msgid ""
25876 " get-verbose\n"
25877 "\n"
25878 msgstr ""
25879
25880 # type: =head2
25881 #. type: =head2
25882 #: ../fish/guestfish-actions.pod:1430
25883 msgid "getcon"
25884 msgstr ""
25885
25886 # type: verbatim
25887 #. type: verbatim
25888 #: ../fish/guestfish-actions.pod:1432
25889 #, no-wrap
25890 msgid ""
25891 " getcon\n"
25892 "\n"
25893 msgstr ""
25894
25895 # type: textblock
25896 #. type: textblock
25897 #: ../fish/guestfish-actions.pod:1436
25898 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25899 msgstr ""
25900
25901 # type: =head2
25902 #. type: =head2
25903 #: ../fish/guestfish-actions.pod:1439
25904 msgid "getxattr"
25905 msgstr ""
25906
25907 # type: verbatim
25908 #. type: verbatim
25909 #: ../fish/guestfish-actions.pod:1441
25910 #, no-wrap
25911 msgid ""
25912 " getxattr path name\n"
25913 "\n"
25914 msgstr ""
25915
25916 # type: textblock
25917 #. type: textblock
25918 #: ../fish/guestfish-actions.pod:1443
25919 msgid ""
25920 "Get a single extended attribute from file C<path> named C<name>.  This call "
25921 "follows symlinks.  If you want to lookup an extended attribute for the "
25922 "symlink itself, use L</lgetxattr>."
25923 msgstr ""
25924
25925 # type: textblock
25926 #. type: textblock
25927 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2353
25928 msgid ""
25929 "Normally it is better to get all extended attributes from a file in one go "
25930 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25931 "buggy and do not provide a way to list out attributes.  For these "
25932 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25933 "attributes you want in advance and call this function."
25934 msgstr ""
25935
25936 # type: textblock
25937 #. type: textblock
25938 #: ../fish/guestfish-actions.pod:1457
25939 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25940 msgstr ""
25941
25942 # type: =head2
25943 #. type: =head2
25944 #: ../fish/guestfish-actions.pod:1459
25945 msgid "getxattrs"
25946 msgstr ""
25947
25948 # type: verbatim
25949 #. type: verbatim
25950 #: ../fish/guestfish-actions.pod:1461
25951 #, no-wrap
25952 msgid ""
25953 " getxattrs path\n"
25954 "\n"
25955 msgstr ""
25956
25957 # type: textblock
25958 #. type: textblock
25959 #: ../fish/guestfish-actions.pod:1469
25960 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25961 msgstr ""
25962
25963 # type: =head2
25964 #. type: =head2
25965 #: ../fish/guestfish-actions.pod:1471
25966 msgid "glob-expand"
25967 msgstr ""
25968
25969 # type: verbatim
25970 #. type: verbatim
25971 #: ../fish/guestfish-actions.pod:1473
25972 #, no-wrap
25973 msgid ""
25974 " glob-expand pattern\n"
25975 "\n"
25976 msgstr ""
25977
25978 # type: =head2
25979 #. type: =head2
25980 #: ../fish/guestfish-actions.pod:1486
25981 msgid "grep"
25982 msgstr ""
25983
25984 # type: verbatim
25985 #. type: verbatim
25986 #: ../fish/guestfish-actions.pod:1488
25987 #, no-wrap
25988 msgid ""
25989 " grep regex path\n"
25990 "\n"
25991 msgstr ""
25992
25993 # type: =head2
25994 #. type: =head2
25995 #: ../fish/guestfish-actions.pod:1496
25996 msgid "grepi"
25997 msgstr ""
25998
25999 # type: verbatim
26000 #. type: verbatim
26001 #: ../fish/guestfish-actions.pod:1498
26002 #, no-wrap
26003 msgid ""
26004 " grepi regex path\n"
26005 "\n"
26006 msgstr ""
26007
26008 # type: =head2
26009 #. type: =head2
26010 #: ../fish/guestfish-actions.pod:1506
26011 msgid "grub-install"
26012 msgstr ""
26013
26014 # type: verbatim
26015 #. type: verbatim
26016 #: ../fish/guestfish-actions.pod:1508
26017 #, no-wrap
26018 msgid ""
26019 " grub-install root device\n"
26020 "\n"
26021 msgstr ""
26022
26023 # type: =head2
26024 #. type: =head2
26025 #: ../fish/guestfish-actions.pod:1524
26026 msgid "head"
26027 msgstr ""
26028
26029 # type: verbatim
26030 #. type: verbatim
26031 #: ../fish/guestfish-actions.pod:1526
26032 #, no-wrap
26033 msgid ""
26034 " head path\n"
26035 "\n"
26036 msgstr ""
26037
26038 # type: =head2
26039 #. type: =head2
26040 #: ../fish/guestfish-actions.pod:1534
26041 msgid "head-n"
26042 msgstr ""
26043
26044 # type: verbatim
26045 #. type: verbatim
26046 #: ../fish/guestfish-actions.pod:1536
26047 #, no-wrap
26048 msgid ""
26049 " head-n nrlines path\n"
26050 "\n"
26051 msgstr ""
26052
26053 # type: =head2
26054 #. type: =head2
26055 #: ../fish/guestfish-actions.pod:1549
26056 msgid "hexdump"
26057 msgstr ""
26058
26059 # type: verbatim
26060 #. type: verbatim
26061 #: ../fish/guestfish-actions.pod:1551
26062 #, no-wrap
26063 msgid ""
26064 " hexdump path\n"
26065 "\n"
26066 msgstr ""
26067
26068 # type: =head2
26069 #. type: =head2
26070 #: ../fish/guestfish-actions.pod:1559
26071 msgid "initrd-cat"
26072 msgstr ""
26073
26074 # type: verbatim
26075 #. type: verbatim
26076 #: ../fish/guestfish-actions.pod:1561
26077 #, no-wrap
26078 msgid ""
26079 " initrd-cat initrdpath filename\n"
26080 "\n"
26081 msgstr ""
26082
26083 # type: textblock
26084 #. type: textblock
26085 #: ../fish/guestfish-actions.pod:1573
26086 msgid "See also L</initrd-list>."
26087 msgstr ""
26088
26089 # type: =head2
26090 #. type: =head2
26091 #: ../fish/guestfish-actions.pod:1578
26092 msgid "initrd-list"
26093 msgstr ""
26094
26095 # type: verbatim
26096 #. type: verbatim
26097 #: ../fish/guestfish-actions.pod:1580
26098 #, no-wrap
26099 msgid ""
26100 " initrd-list path\n"
26101 "\n"
26102 msgstr ""
26103
26104 # type: =head2
26105 #. type: =head2
26106 #: ../fish/guestfish-actions.pod:1592
26107 msgid "inotify-add-watch"
26108 msgstr ""
26109
26110 # type: verbatim
26111 #. type: verbatim
26112 #: ../fish/guestfish-actions.pod:1594
26113 #, no-wrap
26114 msgid ""
26115 " inotify-add-watch path mask\n"
26116 "\n"
26117 msgstr ""
26118
26119 # type: =head2
26120 #. type: =head2
26121 #: ../fish/guestfish-actions.pod:1606
26122 msgid "inotify-close"
26123 msgstr ""
26124
26125 # type: verbatim
26126 #. type: verbatim
26127 #: ../fish/guestfish-actions.pod:1608
26128 #, no-wrap
26129 msgid ""
26130 " inotify-close\n"
26131 "\n"
26132 msgstr ""
26133
26134 # type: =head2
26135 #. type: =head2
26136 #: ../fish/guestfish-actions.pod:1614
26137 msgid "inotify-files"
26138 msgstr ""
26139
26140 # type: verbatim
26141 #. type: verbatim
26142 #: ../fish/guestfish-actions.pod:1616
26143 #, no-wrap
26144 msgid ""
26145 " inotify-files\n"
26146 "\n"
26147 msgstr ""
26148
26149 # type: textblock
26150 #. type: textblock
26151 #: ../fish/guestfish-actions.pod:1618
26152 msgid ""
26153 "This function is a helpful wrapper around L</inotify-read> which just "
26154 "returns a list of pathnames of objects that were touched.  The returned "
26155 "pathnames are sorted and deduplicated."
26156 msgstr ""
26157
26158 # type: =head2
26159 #. type: =head2
26160 #: ../fish/guestfish-actions.pod:1622
26161 msgid "inotify-init"
26162 msgstr ""
26163
26164 # type: verbatim
26165 #. type: verbatim
26166 #: ../fish/guestfish-actions.pod:1624
26167 #, no-wrap
26168 msgid ""
26169 " inotify-init maxevents\n"
26170 "\n"
26171 msgstr ""
26172
26173 # type: textblock
26174 #. type: textblock
26175 #: ../fish/guestfish-actions.pod:1630
26176 msgid ""
26177 "C<maxevents> is the maximum number of events which will be queued up between "
26178 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26179 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26180 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26181 "but records the fact that it threw them away by setting a flag "
26182 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26183 msgstr ""
26184
26185 # type: textblock
26186 #. type: textblock
26187 #: ../fish/guestfish-actions.pod:1640
26188 msgid ""
26189 "Before any events are generated, you have to add some watches to the "
26190 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26191 "L</inotify-watch-all>."
26192 msgstr ""
26193
26194 # type: textblock
26195 #. type: textblock
26196 #: ../fish/guestfish-actions.pod:1646
26197 msgid ""
26198 "Queued up events should be read periodically by calling L</inotify-read> (or "
26199 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26200 "If you don't read the events out often enough then you risk the internal "
26201 "queue overflowing."
26202 msgstr ""
26203
26204 # type: textblock
26205 #. type: textblock
26206 #: ../fish/guestfish-actions.pod:1653
26207 msgid ""
26208 "The handle should be closed after use by calling L</inotify-close>.  This "
26209 "also removes any watches automatically."
26210 msgstr ""
26211
26212 # type: =head2
26213 #. type: =head2
26214 #: ../fish/guestfish-actions.pod:1662
26215 msgid "inotify-read"
26216 msgstr ""
26217
26218 # type: verbatim
26219 #. type: verbatim
26220 #: ../fish/guestfish-actions.pod:1664
26221 #, no-wrap
26222 msgid ""
26223 " inotify-read\n"
26224 "\n"
26225 msgstr ""
26226
26227 # type: =head2
26228 #. type: =head2
26229 #: ../fish/guestfish-actions.pod:1677
26230 msgid "inotify-rm-watch"
26231 msgstr ""
26232
26233 # type: verbatim
26234 #. type: verbatim
26235 #: ../fish/guestfish-actions.pod:1679
26236 #, no-wrap
26237 msgid ""
26238 " inotify-rm-watch wd\n"
26239 "\n"
26240 msgstr ""
26241
26242 # type: textblock
26243 #. type: textblock
26244 #: ../fish/guestfish-actions.pod:1681
26245 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26246 msgstr ""
26247
26248 # type: =head2
26249 #. type: =head2
26250 #: ../fish/guestfish-actions.pod:1684
26251 msgid "inspect-get-arch"
26252 msgstr ""
26253
26254 # type: verbatim
26255 #. type: verbatim
26256 #: ../fish/guestfish-actions.pod:1686
26257 #, no-wrap
26258 msgid ""
26259 " inspect-get-arch root\n"
26260 "\n"
26261 msgstr ""
26262
26263 # type: textblock
26264 #. type: textblock
26265 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26266 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1796
26267 #: ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1845
26268 #: ../fish/guestfish-actions.pod:1866 ../fish/guestfish-actions.pod:1881
26269 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1930
26270 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1984
26271 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2035
26272 #: ../fish/guestfish-actions.pod:2048 ../fish/guestfish-actions.pod:2061
26273 #: ../fish/guestfish-actions.pod:2076
26274 msgid ""
26275 "This function should only be called with a root device string as returned by "
26276 "L</inspect-os>."
26277 msgstr ""
26278
26279 # type: textblock
26280 #. type: textblock
26281 #: ../fish/guestfish-actions.pod:1691
26282 msgid ""
26283 "This returns the architecture of the inspected operating system.  The "
26284 "possible return values are listed under L</file-architecture>."
26285 msgstr ""
26286
26287 # type: =head2
26288 #. type: =head2
26289 #: ../fish/guestfish-actions.pod:1700
26290 msgid "inspect-get-distro"
26291 msgstr ""
26292
26293 # type: verbatim
26294 #. type: verbatim
26295 #: ../fish/guestfish-actions.pod:1702
26296 #, no-wrap
26297 msgid ""
26298 " inspect-get-distro root\n"
26299 "\n"
26300 msgstr ""
26301
26302 # type: =head2
26303 #. type: =head2
26304 #: ../fish/guestfish-actions.pod:1774
26305 msgid "inspect-get-filesystems"
26306 msgstr ""
26307
26308 # type: verbatim
26309 #. type: verbatim
26310 #: ../fish/guestfish-actions.pod:1776
26311 #, no-wrap
26312 msgid ""
26313 " inspect-get-filesystems root\n"
26314 "\n"
26315 msgstr ""
26316
26317 # type: textblock
26318 #. type: textblock
26319 #: ../fish/guestfish-actions.pod:1789
26320 msgid ""
26321 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26322 "get-mountpoints>."
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../fish/guestfish-actions.pod:1792
26327 msgid "inspect-get-format"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../fish/guestfish-actions.pod:1794
26332 #, no-wrap
26333 msgid ""
26334 " inspect-get-format root\n"
26335 "\n"
26336 msgstr ""
26337
26338 # type: =head2
26339 #. type: =head2
26340 #: ../fish/guestfish-actions.pod:1826
26341 msgid "inspect-get-hostname"
26342 msgstr ""
26343
26344 # type: verbatim
26345 #. type: verbatim
26346 #: ../fish/guestfish-actions.pod:1828
26347 #, no-wrap
26348 msgid ""
26349 " inspect-get-hostname root\n"
26350 "\n"
26351 msgstr ""
26352
26353 # type: =head2
26354 #. type: =head2
26355 #: ../fish/guestfish-actions.pod:1841
26356 msgid "inspect-get-major-version"
26357 msgstr ""
26358
26359 # type: verbatim
26360 #. type: verbatim
26361 #: ../fish/guestfish-actions.pod:1843
26362 #, no-wrap
26363 msgid ""
26364 " inspect-get-major-version root\n"
26365 "\n"
26366 msgstr ""
26367
26368 # type: =head2
26369 #. type: =head2
26370 #: ../fish/guestfish-actions.pod:1862
26371 msgid "inspect-get-minor-version"
26372 msgstr ""
26373
26374 # type: verbatim
26375 #. type: verbatim
26376 #: ../fish/guestfish-actions.pod:1864
26377 #, no-wrap
26378 msgid ""
26379 " inspect-get-minor-version root\n"
26380 "\n"
26381 msgstr ""
26382
26383 # type: textblock
26384 #. type: textblock
26385 #: ../fish/guestfish-actions.pod:1874
26386 msgid ""
26387 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26388 "get-major-version>."
26389 msgstr ""
26390
26391 # type: =head2
26392 #. type: =head2
26393 #: ../fish/guestfish-actions.pod:1877
26394 msgid "inspect-get-mountpoints"
26395 msgstr ""
26396
26397 # type: verbatim
26398 #. type: verbatim
26399 #: ../fish/guestfish-actions.pod:1879
26400 #, no-wrap
26401 msgid ""
26402 " inspect-get-mountpoints root\n"
26403 "\n"
26404 msgstr ""
26405
26406 # type: textblock
26407 #. type: textblock
26408 #: ../fish/guestfish-actions.pod:1901
26409 msgid ""
26410 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26411 "get-filesystems>."
26412 msgstr ""
26413
26414 # type: =head2
26415 #. type: =head2
26416 #: ../fish/guestfish-actions.pod:1904
26417 msgid "inspect-get-package-format"
26418 msgstr ""
26419
26420 # type: verbatim
26421 #. type: verbatim
26422 #: ../fish/guestfish-actions.pod:1906
26423 #, no-wrap
26424 msgid ""
26425 " inspect-get-package-format root\n"
26426 "\n"
26427 msgstr ""
26428
26429 # type: textblock
26430 #. type: textblock
26431 #: ../fish/guestfish-actions.pod:1911
26432 msgid ""
26433 "This function and L</inspect-get-package-management> return the package "
26434 "format and package management tool used by the inspected operating system.  "
26435 "For example for Fedora these functions would return C<rpm> (package format) "
26436 "and C<yum> (package management)."
26437 msgstr ""
26438
26439 # type: =head2
26440 #. type: =head2
26441 #: ../fish/guestfish-actions.pod:1926
26442 msgid "inspect-get-package-management"
26443 msgstr ""
26444
26445 # type: verbatim
26446 #. type: verbatim
26447 #: ../fish/guestfish-actions.pod:1928
26448 #, no-wrap
26449 msgid ""
26450 " inspect-get-package-management root\n"
26451 "\n"
26452 msgstr ""
26453
26454 # type: textblock
26455 #. type: textblock
26456 #: ../fish/guestfish-actions.pod:1933
26457 msgid ""
26458 "L</inspect-get-package-format> and this function return the package format "
26459 "and package management tool used by the inspected operating system.  For "
26460 "example for Fedora these functions would return C<rpm> (package format) and "
26461 "C<yum> (package management)."
26462 msgstr ""
26463
26464 # type: =head2
26465 #. type: =head2
26466 #: ../fish/guestfish-actions.pod:1950
26467 msgid "inspect-get-product-name"
26468 msgstr ""
26469
26470 # type: verbatim
26471 #. type: verbatim
26472 #: ../fish/guestfish-actions.pod:1952
26473 #, no-wrap
26474 msgid ""
26475 " inspect-get-product-name root\n"
26476 "\n"
26477 msgstr ""
26478
26479 # type: =head2
26480 #. type: =head2
26481 #: ../fish/guestfish-actions.pod:1967
26482 msgid "inspect-get-roots"
26483 msgstr ""
26484
26485 # type: verbatim
26486 #. type: verbatim
26487 #: ../fish/guestfish-actions.pod:1969
26488 #, no-wrap
26489 msgid ""
26490 " inspect-get-roots\n"
26491 "\n"
26492 msgstr ""
26493
26494 # type: textblock
26495 #. type: textblock
26496 #: ../fish/guestfish-actions.pod:1971
26497 msgid ""
26498 "This function is a convenient way to get the list of root devices, as "
26499 "returned from a previous call to L</inspect-os>, but without redoing the "
26500 "whole inspection process."
26501 msgstr ""
26502
26503 # type: textblock
26504 #. type: textblock
26505 #: ../fish/guestfish-actions.pod:1975
26506 msgid ""
26507 "This returns an empty list if either no root devices were found or the "
26508 "caller has not called L</inspect-os>."
26509 msgstr ""
26510
26511 # type: =head2
26512 #. type: =head2
26513 #: ../fish/guestfish-actions.pod:1980
26514 msgid "inspect-get-type"
26515 msgstr ""
26516
26517 # type: verbatim
26518 #. type: verbatim
26519 #: ../fish/guestfish-actions.pod:1982
26520 #, no-wrap
26521 msgid ""
26522 " inspect-get-type root\n"
26523 "\n"
26524 msgstr ""
26525
26526 # type: =head2
26527 #. type: =head2
26528 #: ../fish/guestfish-actions.pod:2015
26529 msgid "inspect-get-windows-systemroot"
26530 msgstr ""
26531
26532 # type: verbatim
26533 #. type: verbatim
26534 #: ../fish/guestfish-actions.pod:2017
26535 #, no-wrap
26536 msgid ""
26537 " inspect-get-windows-systemroot root\n"
26538 "\n"
26539 msgstr ""
26540
26541 #. type: =head2
26542 #: ../fish/guestfish-actions.pod:2031
26543 msgid "inspect-is-live"
26544 msgstr ""
26545
26546 #. type: verbatim
26547 #: ../fish/guestfish-actions.pod:2033
26548 #, no-wrap
26549 msgid ""
26550 " inspect-is-live root\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../fish/guestfish-actions.pod:2038
26556 msgid ""
26557 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26558 "then this returns true if a live image was detected on the disk."
26559 msgstr ""
26560
26561 #. type: =head2
26562 #: ../fish/guestfish-actions.pod:2044
26563 msgid "inspect-is-multipart"
26564 msgstr ""
26565
26566 #. type: verbatim
26567 #: ../fish/guestfish-actions.pod:2046
26568 #, no-wrap
26569 msgid ""
26570 " inspect-is-multipart root\n"
26571 "\n"
26572 msgstr ""
26573
26574 #. type: textblock
26575 #: ../fish/guestfish-actions.pod:2051
26576 msgid ""
26577 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26578 "then this returns true if the disk is part of a set."
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../fish/guestfish-actions.pod:2057
26583 msgid "inspect-is-netinst"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../fish/guestfish-actions.pod:2059
26588 #, no-wrap
26589 msgid ""
26590 " inspect-is-netinst root\n"
26591 "\n"
26592 msgstr ""
26593
26594 #. type: textblock
26595 #: ../fish/guestfish-actions.pod:2064
26596 msgid ""
26597 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26598 "then this returns true if the disk is a network installer, ie. not a self-"
26599 "contained install CD but one which is likely to require network access to "
26600 "complete the install."
26601 msgstr ""
26602
26603 # type: =head2
26604 #. type: =head2
26605 #: ../fish/guestfish-actions.pod:2072
26606 msgid "inspect-list-applications"
26607 msgstr ""
26608
26609 # type: verbatim
26610 #. type: verbatim
26611 #: ../fish/guestfish-actions.pod:2074
26612 #, no-wrap
26613 msgid ""
26614 " inspect-list-applications root\n"
26615 "\n"
26616 msgstr ""
26617
26618 # type: textblock
26619 #. type: textblock
26620 #: ../fish/guestfish-actions.pod:2081
26621 msgid ""
26622 "I<Note:> This call works differently from other parts of the inspection "
26623 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26624 "then mount up the disks, before calling this.  Listing applications is a "
26625 "significantly more difficult operation which requires access to the full "
26626 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26627 "are just returning data cached in the libguestfs handle, this call actually "
26628 "reads parts of the mounted filesystems during the call."
26629 msgstr ""
26630
26631 # type: =head2
26632 #. type: =head2
26633 #: ../fish/guestfish-actions.pod:2171
26634 msgid "inspect-os"
26635 msgstr ""
26636
26637 # type: verbatim
26638 #. type: verbatim
26639 #: ../fish/guestfish-actions.pod:2173
26640 #, no-wrap
26641 msgid ""
26642 " inspect-os\n"
26643 "\n"
26644 msgstr ""
26645
26646 # type: textblock
26647 #. type: textblock
26648 #: ../fish/guestfish-actions.pod:2188
26649 msgid ""
26650 "You can pass the root string(s) returned to other L</inspect-get-*> "
26651 "functions in order to query further information about each operating system, "
26652 "such as the name and version."
26653 msgstr ""
26654
26655 # type: textblock
26656 #. type: textblock
26657 #: ../fish/guestfish-actions.pod:2193
26658 msgid ""
26659 "This function uses other libguestfs features such as L</mount-ro> and L</"
26660 "umount-all> in order to mount and unmount filesystems and look at the "
26661 "contents.  This should be called with no disks currently mounted.  The "
26662 "function may also use Augeas, so any existing Augeas handle will be closed."
26663 msgstr ""
26664
26665 # type: textblock
26666 #. type: textblock
26667 #: ../fish/guestfish-actions.pod:2205 ../fish/guestfish-actions.pod:2381
26668 #: ../fish/guestfish-actions.pod:2427
26669 msgid "See also L</list-filesystems>."
26670 msgstr ""
26671
26672 # type: =head2
26673 #. type: =head2
26674 #: ../fish/guestfish-actions.pod:2207
26675 msgid "is-blockdev"
26676 msgstr ""
26677
26678 # type: verbatim
26679 #. type: verbatim
26680 #: ../fish/guestfish-actions.pod:2209
26681 #, no-wrap
26682 msgid ""
26683 " is-blockdev path\n"
26684 "\n"
26685 msgstr ""
26686
26687 # type: textblock
26688 #. type: textblock
26689 #: ../fish/guestfish-actions.pod:2214 ../fish/guestfish-actions.pod:2232
26690 #: ../fish/guestfish-actions.pod:2251 ../fish/guestfish-actions.pod:2260
26691 #: ../fish/guestfish-actions.pod:2270 ../fish/guestfish-actions.pod:2304
26692 #: ../fish/guestfish-actions.pod:2313
26693 msgid "See also L</stat>."
26694 msgstr ""
26695
26696 # type: =head2
26697 #. type: =head2
26698 #: ../fish/guestfish-actions.pod:2216
26699 msgid "is-busy"
26700 msgstr ""
26701
26702 # type: verbatim
26703 #. type: verbatim
26704 #: ../fish/guestfish-actions.pod:2218
26705 #, no-wrap
26706 msgid ""
26707 " is-busy\n"
26708 "\n"
26709 msgstr ""
26710
26711 # type: =head2
26712 #. type: =head2
26713 #: ../fish/guestfish-actions.pod:2225
26714 msgid "is-chardev"
26715 msgstr ""
26716
26717 # type: verbatim
26718 #. type: verbatim
26719 #: ../fish/guestfish-actions.pod:2227
26720 #, no-wrap
26721 msgid ""
26722 " is-chardev path\n"
26723 "\n"
26724 msgstr ""
26725
26726 # type: =head2
26727 #. type: =head2
26728 #: ../fish/guestfish-actions.pod:2234
26729 msgid "is-config"
26730 msgstr ""
26731
26732 # type: verbatim
26733 #. type: verbatim
26734 #: ../fish/guestfish-actions.pod:2236
26735 #, no-wrap
26736 msgid ""
26737 " is-config\n"
26738 "\n"
26739 msgstr ""
26740
26741 # type: =head2
26742 #. type: =head2
26743 #: ../fish/guestfish-actions.pod:2243
26744 msgid "is-dir"
26745 msgstr ""
26746
26747 # type: verbatim
26748 #. type: verbatim
26749 #: ../fish/guestfish-actions.pod:2245
26750 #, no-wrap
26751 msgid ""
26752 " is-dir path\n"
26753 "\n"
26754 msgstr ""
26755
26756 # type: =head2
26757 #. type: =head2
26758 #: ../fish/guestfish-actions.pod:2253
26759 msgid "is-fifo"
26760 msgstr ""
26761
26762 # type: verbatim
26763 #. type: verbatim
26764 #: ../fish/guestfish-actions.pod:2255
26765 #, no-wrap
26766 msgid ""
26767 " is-fifo path\n"
26768 "\n"
26769 msgstr ""
26770
26771 # type: =head2
26772 #. type: =head2
26773 #: ../fish/guestfish-actions.pod:2262
26774 msgid "is-file"
26775 msgstr ""
26776
26777 # type: verbatim
26778 #. type: verbatim
26779 #: ../fish/guestfish-actions.pod:2264
26780 #, no-wrap
26781 msgid ""
26782 " is-file path\n"
26783 "\n"
26784 msgstr ""
26785
26786 # type: =head2
26787 #. type: =head2
26788 #: ../fish/guestfish-actions.pod:2272
26789 msgid "is-launching"
26790 msgstr ""
26791
26792 # type: verbatim
26793 #. type: verbatim
26794 #: ../fish/guestfish-actions.pod:2274
26795 #, no-wrap
26796 msgid ""
26797 " is-launching\n"
26798 "\n"
26799 msgstr ""
26800
26801 # type: =head2
26802 #. type: =head2
26803 #: ../fish/guestfish-actions.pod:2281
26804 msgid "is-lv"
26805 msgstr ""
26806
26807 # type: verbatim
26808 #. type: verbatim
26809 #: ../fish/guestfish-actions.pod:2283
26810 #, no-wrap
26811 msgid ""
26812 " is-lv device\n"
26813 "\n"
26814 msgstr ""
26815
26816 # type: =head2
26817 #. type: =head2
26818 #: ../fish/guestfish-actions.pod:2288
26819 msgid "is-ready"
26820 msgstr ""
26821
26822 # type: verbatim
26823 #. type: verbatim
26824 #: ../fish/guestfish-actions.pod:2290
26825 #, no-wrap
26826 msgid ""
26827 " is-ready\n"
26828 "\n"
26829 msgstr ""
26830
26831 # type: =head2
26832 #. type: =head2
26833 #: ../fish/guestfish-actions.pod:2297
26834 msgid "is-socket"
26835 msgstr ""
26836
26837 # type: verbatim
26838 #. type: verbatim
26839 #: ../fish/guestfish-actions.pod:2299
26840 #, no-wrap
26841 msgid ""
26842 " is-socket path\n"
26843 "\n"
26844 msgstr ""
26845
26846 # type: =head2
26847 #. type: =head2
26848 #: ../fish/guestfish-actions.pod:2306
26849 msgid "is-symlink"
26850 msgstr ""
26851
26852 # type: verbatim
26853 #. type: verbatim
26854 #: ../fish/guestfish-actions.pod:2308
26855 #, no-wrap
26856 msgid ""
26857 " is-symlink path\n"
26858 "\n"
26859 msgstr ""
26860
26861 # type: =head2
26862 #. type: =head2
26863 #: ../fish/guestfish-actions.pod:2315
26864 msgid "kill-subprocess"
26865 msgstr ""
26866
26867 # type: verbatim
26868 #. type: verbatim
26869 #: ../fish/guestfish-actions.pod:2317
26870 #, no-wrap
26871 msgid ""
26872 " kill-subprocess\n"
26873 "\n"
26874 msgstr ""
26875
26876 # type: =head2
26877 #. type: =head2
26878 #: ../fish/guestfish-actions.pod:2321
26879 msgid "launch"
26880 msgstr ""
26881
26882 # type: =head2
26883 #. type: =head2
26884 #: ../fish/guestfish-actions.pod:2323
26885 msgid "run"
26886 msgstr ""
26887
26888 # type: verbatim
26889 #. type: verbatim
26890 #: ../fish/guestfish-actions.pod:2325
26891 #, no-wrap
26892 msgid ""
26893 " launch\n"
26894 "\n"
26895 msgstr ""
26896
26897 # type: =head2
26898 #. type: =head2
26899 #: ../fish/guestfish-actions.pod:2333
26900 msgid "lchown"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #. type: verbatim
26905 #: ../fish/guestfish-actions.pod:2335
26906 #, no-wrap
26907 msgid ""
26908 " lchown owner group path\n"
26909 "\n"
26910 msgstr ""
26911
26912 # type: textblock
26913 #. type: textblock
26914 #: ../fish/guestfish-actions.pod:2337
26915 msgid ""
26916 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
26917 "chown> but if C<path> is a symlink then the link itself is changed, not the "
26918 "target."
26919 msgstr ""
26920
26921 # type: =head2
26922 #. type: =head2
26923 #: ../fish/guestfish-actions.pod:2345
26924 msgid "lgetxattr"
26925 msgstr ""
26926
26927 # type: verbatim
26928 #. type: verbatim
26929 #: ../fish/guestfish-actions.pod:2347
26930 #, no-wrap
26931 msgid ""
26932 " lgetxattr path name\n"
26933 "\n"
26934 msgstr ""
26935
26936 # type: textblock
26937 #. type: textblock
26938 #: ../fish/guestfish-actions.pod:2363
26939 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26940 msgstr ""
26941
26942 # type: =head2
26943 #. type: =head2
26944 #: ../fish/guestfish-actions.pod:2365
26945 msgid "lgetxattrs"
26946 msgstr ""
26947
26948 # type: verbatim
26949 #. type: verbatim
26950 #: ../fish/guestfish-actions.pod:2367
26951 #, no-wrap
26952 msgid ""
26953 " lgetxattrs path\n"
26954 "\n"
26955 msgstr ""
26956
26957 # type: textblock
26958 #. type: textblock
26959 #: ../fish/guestfish-actions.pod:2369
26960 msgid ""
26961 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
26962 "it returns the extended attributes of the link itself."
26963 msgstr ""
26964
26965 # type: =head2
26966 #. type: =head2
26967 #: ../fish/guestfish-actions.pod:2373
26968 msgid "list-devices"
26969 msgstr ""
26970
26971 # type: verbatim
26972 #. type: verbatim
26973 #: ../fish/guestfish-actions.pod:2375
26974 #, no-wrap
26975 msgid ""
26976 " list-devices\n"
26977 "\n"
26978 msgstr ""
26979
26980 # type: =head2
26981 #. type: =head2
26982 #: ../fish/guestfish-actions.pod:2383
26983 msgid "list-filesystems"
26984 msgstr ""
26985
26986 # type: verbatim
26987 #. type: verbatim
26988 #: ../fish/guestfish-actions.pod:2385
26989 #, no-wrap
26990 msgid ""
26991 " list-filesystems\n"
26992 "\n"
26993 msgstr ""
26994
26995 # type: textblock
26996 #. type: textblock
26997 #: ../fish/guestfish-actions.pod:2404
26998 msgid ""
26999 "This command runs other libguestfs commands, which might include L</mount> "
27000 "and L</umount>, and therefore you should use this soon after launch and only "
27001 "when nothing is mounted."
27002 msgstr ""
27003
27004 # type: textblock
27005 #. type: textblock
27006 #: ../fish/guestfish-actions.pod:2408
27007 msgid ""
27008 "Not all of the filesystems returned will be mountable.  In particular, swap "
27009 "partitions are returned in the list.  Also this command does not check that "
27010 "each filesystem found is valid and mountable, and some filesystems might be "
27011 "mountable but require special options.  Filesystems may not all belong to a "
27012 "single logical operating system (use L</inspect-os> to look for OSes)."
27013 msgstr ""
27014
27015 # type: =head2
27016 #. type: =head2
27017 #: ../fish/guestfish-actions.pod:2416
27018 msgid "list-partitions"
27019 msgstr ""
27020
27021 # type: verbatim
27022 #. type: verbatim
27023 #: ../fish/guestfish-actions.pod:2418
27024 #, no-wrap
27025 msgid ""
27026 " list-partitions\n"
27027 "\n"
27028 msgstr ""
27029
27030 # type: textblock
27031 #. type: textblock
27032 #: ../fish/guestfish-actions.pod:2424
27033 msgid ""
27034 "This does not return logical volumes.  For that you will need to call L</"
27035 "lvs>."
27036 msgstr ""
27037
27038 # type: =head2
27039 #. type: =head2
27040 #: ../fish/guestfish-actions.pod:2429
27041 msgid "ll"
27042 msgstr ""
27043
27044 # type: verbatim
27045 #. type: verbatim
27046 #: ../fish/guestfish-actions.pod:2431
27047 #, no-wrap
27048 msgid ""
27049 " ll directory\n"
27050 "\n"
27051 msgstr ""
27052
27053 # type: =head2
27054 #. type: =head2
27055 #: ../fish/guestfish-actions.pod:2439
27056 msgid "ln"
27057 msgstr ""
27058
27059 # type: verbatim
27060 #. type: verbatim
27061 #: ../fish/guestfish-actions.pod:2441
27062 #, no-wrap
27063 msgid ""
27064 " ln target linkname\n"
27065 "\n"
27066 msgstr ""
27067
27068 # type: =head2
27069 #. type: =head2
27070 #: ../fish/guestfish-actions.pod:2445
27071 msgid "ln-f"
27072 msgstr ""
27073
27074 # type: verbatim
27075 #. type: verbatim
27076 #: ../fish/guestfish-actions.pod:2447
27077 #, no-wrap
27078 msgid ""
27079 " ln-f target linkname\n"
27080 "\n"
27081 msgstr ""
27082
27083 # type: =head2
27084 #. type: =head2
27085 #: ../fish/guestfish-actions.pod:2452
27086 msgid "ln-s"
27087 msgstr ""
27088
27089 # type: verbatim
27090 #. type: verbatim
27091 #: ../fish/guestfish-actions.pod:2454
27092 #, no-wrap
27093 msgid ""
27094 " ln-s target linkname\n"
27095 "\n"
27096 msgstr ""
27097
27098 # type: =head2
27099 #. type: =head2
27100 #: ../fish/guestfish-actions.pod:2458
27101 msgid "ln-sf"
27102 msgstr ""
27103
27104 # type: verbatim
27105 #. type: verbatim
27106 #: ../fish/guestfish-actions.pod:2460
27107 #, no-wrap
27108 msgid ""
27109 " ln-sf target linkname\n"
27110 "\n"
27111 msgstr ""
27112
27113 # type: =head2
27114 #. type: =head2
27115 #: ../fish/guestfish-actions.pod:2465
27116 msgid "lremovexattr"
27117 msgstr ""
27118
27119 # type: verbatim
27120 #. type: verbatim
27121 #: ../fish/guestfish-actions.pod:2467
27122 #, no-wrap
27123 msgid ""
27124 " lremovexattr xattr path\n"
27125 "\n"
27126 msgstr ""
27127
27128 # type: textblock
27129 #. type: textblock
27130 #: ../fish/guestfish-actions.pod:2469
27131 msgid ""
27132 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27133 "it removes an extended attribute of the link itself."
27134 msgstr ""
27135
27136 # type: =head2
27137 #. type: =head2
27138 #: ../fish/guestfish-actions.pod:2473
27139 msgid "ls"
27140 msgstr ""
27141
27142 # type: verbatim
27143 #. type: verbatim
27144 #: ../fish/guestfish-actions.pod:2475
27145 #, no-wrap
27146 msgid ""
27147 " ls directory\n"
27148 "\n"
27149 msgstr ""
27150
27151 # type: textblock
27152 #. type: textblock
27153 #: ../fish/guestfish-actions.pod:2481
27154 msgid ""
27155 "This command is mostly useful for interactive sessions.  Programs should "
27156 "probably use L</readdir> instead."
27157 msgstr ""
27158
27159 # type: =head2
27160 #. type: =head2
27161 #: ../fish/guestfish-actions.pod:2484
27162 msgid "lsetxattr"
27163 msgstr ""
27164
27165 # type: verbatim
27166 #. type: verbatim
27167 #: ../fish/guestfish-actions.pod:2486
27168 #, no-wrap
27169 msgid ""
27170 " lsetxattr xattr val vallen path\n"
27171 "\n"
27172 msgstr ""
27173
27174 # type: textblock
27175 #. type: textblock
27176 #: ../fish/guestfish-actions.pod:2488
27177 msgid ""
27178 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27179 "sets an extended attribute of the link itself."
27180 msgstr ""
27181
27182 # type: =head2
27183 #. type: =head2
27184 #: ../fish/guestfish-actions.pod:2492
27185 msgid "lstat"
27186 msgstr ""
27187
27188 # type: verbatim
27189 #. type: verbatim
27190 #: ../fish/guestfish-actions.pod:2494
27191 #, no-wrap
27192 msgid ""
27193 " lstat path\n"
27194 "\n"
27195 msgstr ""
27196
27197 # type: textblock
27198 #. type: textblock
27199 #: ../fish/guestfish-actions.pod:2498
27200 msgid ""
27201 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27202 "the link is stat-ed, not the file it refers to."
27203 msgstr ""
27204
27205 # type: =head2
27206 #. type: =head2
27207 #: ../fish/guestfish-actions.pod:2504
27208 msgid "lstatlist"
27209 msgstr ""
27210
27211 # type: verbatim
27212 #. type: verbatim
27213 #: ../fish/guestfish-actions.pod:2506
27214 #, no-wrap
27215 msgid ""
27216 " lstatlist path 'names ...'\n"
27217 "\n"
27218 msgstr ""
27219
27220 # type: textblock
27221 #. type: textblock
27222 #: ../fish/guestfish-actions.pod:2508
27223 msgid ""
27224 "This call allows you to perform the L</lstat> operation on multiple files, "
27225 "where all files are in the directory C<path>.  C<names> is the list of files "
27226 "from this directory."
27227 msgstr ""
27228
27229 # type: textblock
27230 #. type: textblock
27231 #: ../fish/guestfish-actions.pod:2517
27232 msgid ""
27233 "This call is intended for programs that want to efficiently list a directory "
27234 "contents without making many round-trips.  See also L</lxattrlist> for a "
27235 "similarly efficient call for getting extended attributes.  Very long "
27236 "directory listings might cause the protocol message size to be exceeded, "
27237 "causing this call to fail.  The caller must split up such requests into "
27238 "smaller groups of names."
27239 msgstr ""
27240
27241 # type: =head2
27242 #. type: =head2
27243 #: ../fish/guestfish-actions.pod:2525
27244 msgid "luks-add-key"
27245 msgstr ""
27246
27247 # type: verbatim
27248 #. type: verbatim
27249 #: ../fish/guestfish-actions.pod:2527
27250 #, no-wrap
27251 msgid ""
27252 " luks-add-key device keyslot\n"
27253 "\n"
27254 msgstr ""
27255
27256 # type: textblock
27257 #. type: textblock
27258 #: ../fish/guestfish-actions.pod:2534
27259 msgid ""
27260 "Note that if C<keyslot> already contains a key, then this command will "
27261 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27262 msgstr ""
27263
27264 # type: textblock
27265 #. type: textblock
27266 #: ../fish/guestfish-actions.pod:2538 ../fish/guestfish-actions.pod:2560
27267 #: ../fish/guestfish-actions.pod:2573 ../fish/guestfish-actions.pod:2587
27268 #: ../fish/guestfish-actions.pod:2610 ../fish/guestfish-actions.pod:2620
27269 msgid ""
27270 "This command has one or more key or passphrase parameters.  Guestfish will "
27271 "prompt for these separately."
27272 msgstr ""
27273
27274 # type: =head2
27275 #. type: =head2
27276 #: ../fish/guestfish-actions.pod:2541
27277 msgid "luks-close"
27278 msgstr ""
27279
27280 # type: verbatim
27281 #. type: verbatim
27282 #: ../fish/guestfish-actions.pod:2543
27283 #, no-wrap
27284 msgid ""
27285 " luks-close device\n"
27286 "\n"
27287 msgstr ""
27288
27289 # type: textblock
27290 #. type: textblock
27291 #: ../fish/guestfish-actions.pod:2545
27292 msgid ""
27293 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27294 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27295 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27296 "block device."
27297 msgstr ""
27298
27299 # type: =head2
27300 #. type: =head2
27301 #: ../fish/guestfish-actions.pod:2551
27302 msgid "luks-format"
27303 msgstr ""
27304
27305 # type: verbatim
27306 #. type: verbatim
27307 #: ../fish/guestfish-actions.pod:2553
27308 #, no-wrap
27309 msgid ""
27310 " luks-format device keyslot\n"
27311 "\n"
27312 msgstr ""
27313
27314 # type: =head2
27315 #. type: =head2
27316 #: ../fish/guestfish-actions.pod:2566
27317 msgid "luks-format-cipher"
27318 msgstr ""
27319
27320 # type: verbatim
27321 #. type: verbatim
27322 #: ../fish/guestfish-actions.pod:2568
27323 #, no-wrap
27324 msgid ""
27325 " luks-format-cipher device keyslot cipher\n"
27326 "\n"
27327 msgstr ""
27328
27329 # type: textblock
27330 #. type: textblock
27331 #: ../fish/guestfish-actions.pod:2570
27332 msgid ""
27333 "This command is the same as L</luks-format> but it also allows you to set "
27334 "the C<cipher> used."
27335 msgstr ""
27336
27337 # type: =head2
27338 #. type: =head2
27339 #: ../fish/guestfish-actions.pod:2579
27340 msgid "luks-kill-slot"
27341 msgstr ""
27342
27343 # type: verbatim
27344 #. type: verbatim
27345 #: ../fish/guestfish-actions.pod:2581
27346 #, no-wrap
27347 msgid ""
27348 " luks-kill-slot device keyslot\n"
27349 "\n"
27350 msgstr ""
27351
27352 # type: =head2
27353 #. type: =head2
27354 #: ../fish/guestfish-actions.pod:2590
27355 msgid "luks-open"
27356 msgstr ""
27357
27358 # type: verbatim
27359 #. type: verbatim
27360 #: ../fish/guestfish-actions.pod:2592
27361 #, no-wrap
27362 msgid ""
27363 " luks-open device mapname\n"
27364 "\n"
27365 msgstr ""
27366
27367 # type: textblock
27368 #. type: textblock
27369 #: ../fish/guestfish-actions.pod:2606
27370 msgid ""
27371 "If this block device contains LVM volume groups, then calling L</vgscan> "
27372 "followed by L</vg-activate-all> will make them visible."
27373 msgstr ""
27374
27375 # type: =head2
27376 #. type: =head2
27377 #: ../fish/guestfish-actions.pod:2613
27378 msgid "luks-open-ro"
27379 msgstr ""
27380
27381 # type: verbatim
27382 #. type: verbatim
27383 #: ../fish/guestfish-actions.pod:2615
27384 #, no-wrap
27385 msgid ""
27386 " luks-open-ro device mapname\n"
27387 "\n"
27388 msgstr ""
27389
27390 # type: textblock
27391 #. type: textblock
27392 #: ../fish/guestfish-actions.pod:2617
27393 msgid ""
27394 "This is the same as L</luks-open> except that a read-only mapping is created."
27395 msgstr ""
27396
27397 # type: =head2
27398 #. type: =head2
27399 #: ../fish/guestfish-actions.pod:2623
27400 msgid "lvcreate"
27401 msgstr ""
27402
27403 # type: verbatim
27404 #. type: verbatim
27405 #: ../fish/guestfish-actions.pod:2625
27406 #, no-wrap
27407 msgid ""
27408 " lvcreate logvol volgroup mbytes\n"
27409 "\n"
27410 msgstr ""
27411
27412 # type: =head2
27413 #. type: =head2
27414 #: ../fish/guestfish-actions.pod:2630
27415 msgid "lvm-canonical-lv-name"
27416 msgstr ""
27417
27418 # type: verbatim
27419 #. type: verbatim
27420 #: ../fish/guestfish-actions.pod:2632
27421 #, no-wrap
27422 msgid ""
27423 " lvm-canonical-lv-name lvname\n"
27424 "\n"
27425 msgstr ""
27426
27427 # type: textblock
27428 #. type: textblock
27429 #: ../fish/guestfish-actions.pod:2641
27430 msgid "See also L</is-lv>."
27431 msgstr ""
27432
27433 # type: =head2
27434 #. type: =head2
27435 #: ../fish/guestfish-actions.pod:2643
27436 msgid "lvm-clear-filter"
27437 msgstr ""
27438
27439 # type: verbatim
27440 #. type: verbatim
27441 #: ../fish/guestfish-actions.pod:2645
27442 #, no-wrap
27443 msgid ""
27444 " lvm-clear-filter\n"
27445 "\n"
27446 msgstr ""
27447
27448 # type: textblock
27449 #. type: textblock
27450 #: ../fish/guestfish-actions.pod:2647
27451 msgid ""
27452 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27453 "block device."
27454 msgstr ""
27455
27456 # type: =head2
27457 #. type: =head2
27458 #: ../fish/guestfish-actions.pod:2653
27459 msgid "lvm-remove-all"
27460 msgstr ""
27461
27462 # type: verbatim
27463 #. type: verbatim
27464 #: ../fish/guestfish-actions.pod:2655
27465 #, no-wrap
27466 msgid ""
27467 " lvm-remove-all\n"
27468 "\n"
27469 msgstr ""
27470
27471 # type: =head2
27472 #. type: =head2
27473 #: ../fish/guestfish-actions.pod:2663
27474 msgid "lvm-set-filter"
27475 msgstr ""
27476
27477 # type: verbatim
27478 #. type: verbatim
27479 #: ../fish/guestfish-actions.pod:2665
27480 #, no-wrap
27481 msgid ""
27482 " lvm-set-filter 'devices ...'\n"
27483 "\n"
27484 msgstr ""
27485
27486 # type: =head2
27487 #. type: =head2
27488 #: ../fish/guestfish-actions.pod:2690
27489 msgid "lvremove"
27490 msgstr ""
27491
27492 # type: verbatim
27493 #. type: verbatim
27494 #: ../fish/guestfish-actions.pod:2692
27495 #, no-wrap
27496 msgid ""
27497 " lvremove device\n"
27498 "\n"
27499 msgstr ""
27500
27501 # type: =head2
27502 #. type: =head2
27503 #: ../fish/guestfish-actions.pod:2700
27504 msgid "lvrename"
27505 msgstr ""
27506
27507 # type: verbatim
27508 #. type: verbatim
27509 #: ../fish/guestfish-actions.pod:2702
27510 #, no-wrap
27511 msgid ""
27512 " lvrename logvol newlogvol\n"
27513 "\n"
27514 msgstr ""
27515
27516 # type: =head2
27517 #. type: =head2
27518 #: ../fish/guestfish-actions.pod:2706
27519 msgid "lvresize"
27520 msgstr ""
27521
27522 # type: verbatim
27523 #. type: verbatim
27524 #: ../fish/guestfish-actions.pod:2708
27525 #, no-wrap
27526 msgid ""
27527 " lvresize device mbytes\n"
27528 "\n"
27529 msgstr ""
27530
27531 # type: =head2
27532 #. type: =head2
27533 #: ../fish/guestfish-actions.pod:2714
27534 msgid "lvresize-free"
27535 msgstr ""
27536
27537 # type: verbatim
27538 #. type: verbatim
27539 #: ../fish/guestfish-actions.pod:2716
27540 #, no-wrap
27541 msgid ""
27542 " lvresize-free lv percent\n"
27543 "\n"
27544 msgstr ""
27545
27546 # type: =head2
27547 #. type: =head2
27548 #: ../fish/guestfish-actions.pod:2724
27549 msgid "lvs"
27550 msgstr ""
27551
27552 # type: verbatim
27553 #. type: verbatim
27554 #: ../fish/guestfish-actions.pod:2726
27555 #, no-wrap
27556 msgid ""
27557 " lvs\n"
27558 "\n"
27559 msgstr ""
27560
27561 # type: textblock
27562 #. type: textblock
27563 #: ../fish/guestfish-actions.pod:2734
27564 msgid "See also L</lvs-full>, L</list-filesystems>."
27565 msgstr ""
27566
27567 # type: =head2
27568 #. type: =head2
27569 #: ../fish/guestfish-actions.pod:2736
27570 msgid "lvs-full"
27571 msgstr ""
27572
27573 # type: verbatim
27574 #. type: verbatim
27575 #: ../fish/guestfish-actions.pod:2738
27576 #, no-wrap
27577 msgid ""
27578 " lvs-full\n"
27579 "\n"
27580 msgstr ""
27581
27582 # type: =head2
27583 #. type: =head2
27584 #: ../fish/guestfish-actions.pod:2743
27585 msgid "lvuuid"
27586 msgstr ""
27587
27588 # type: verbatim
27589 #. type: verbatim
27590 #: ../fish/guestfish-actions.pod:2745
27591 #, no-wrap
27592 msgid ""
27593 " lvuuid device\n"
27594 "\n"
27595 msgstr ""
27596
27597 # type: =head2
27598 #. type: =head2
27599 #: ../fish/guestfish-actions.pod:2749
27600 msgid "lxattrlist"
27601 msgstr ""
27602
27603 # type: verbatim
27604 #. type: verbatim
27605 #: ../fish/guestfish-actions.pod:2751
27606 #, no-wrap
27607 msgid ""
27608 " lxattrlist path 'names ...'\n"
27609 "\n"
27610 msgstr ""
27611
27612 # type: textblock
27613 #. type: textblock
27614 #: ../fish/guestfish-actions.pod:2767
27615 msgid ""
27616 "This call is intended for programs that want to efficiently list a directory "
27617 "contents without making many round-trips.  See also L</lstatlist> for a "
27618 "similarly efficient call for getting standard stats.  Very long directory "
27619 "listings might cause the protocol message size to be exceeded, causing this "
27620 "call to fail.  The caller must split up such requests into smaller groups of "
27621 "names."
27622 msgstr ""
27623
27624 # type: =head2
27625 #. type: =head2
27626 #: ../fish/guestfish-actions.pod:2775
27627 msgid "mkdir"
27628 msgstr ""
27629
27630 # type: verbatim
27631 #. type: verbatim
27632 #: ../fish/guestfish-actions.pod:2777
27633 #, no-wrap
27634 msgid ""
27635 " mkdir path\n"
27636 "\n"
27637 msgstr ""
27638
27639 # type: =head2
27640 #. type: =head2
27641 #: ../fish/guestfish-actions.pod:2781
27642 msgid "mkdir-mode"
27643 msgstr ""
27644
27645 # type: verbatim
27646 #. type: verbatim
27647 #: ../fish/guestfish-actions.pod:2783
27648 #, no-wrap
27649 msgid ""
27650 " mkdir-mode path mode\n"
27651 "\n"
27652 msgstr ""
27653
27654 # type: textblock
27655 #. type: textblock
27656 #: ../fish/guestfish-actions.pod:2792
27657 msgid "See also L</mkdir>, L</umask>"
27658 msgstr ""
27659
27660 # type: =head2
27661 #. type: =head2
27662 #: ../fish/guestfish-actions.pod:2794
27663 msgid "mkdir-p"
27664 msgstr ""
27665
27666 # type: verbatim
27667 #. type: verbatim
27668 #: ../fish/guestfish-actions.pod:2796
27669 #, no-wrap
27670 msgid ""
27671 " mkdir-p path\n"
27672 "\n"
27673 msgstr ""
27674
27675 # type: =head2
27676 #. type: =head2
27677 #: ../fish/guestfish-actions.pod:2801
27678 msgid "mkdtemp"
27679 msgstr ""
27680
27681 # type: verbatim
27682 #. type: verbatim
27683 #: ../fish/guestfish-actions.pod:2803
27684 #, no-wrap
27685 msgid ""
27686 " mkdtemp template\n"
27687 "\n"
27688 msgstr ""
27689
27690 # type: =head2
27691 #. type: =head2
27692 #: ../fish/guestfish-actions.pod:2824
27693 msgid "mke2fs-J"
27694 msgstr ""
27695
27696 # type: verbatim
27697 #. type: verbatim
27698 #: ../fish/guestfish-actions.pod:2826
27699 #, no-wrap
27700 msgid ""
27701 " mke2fs-J fstype blocksize device journal\n"
27702 "\n"
27703 msgstr ""
27704
27705 # type: textblock
27706 #. type: textblock
27707 #: ../fish/guestfish-actions.pod:2834
27708 msgid "See also L</mke2journal>."
27709 msgstr ""
27710
27711 # type: =head2
27712 #. type: =head2
27713 #: ../fish/guestfish-actions.pod:2836
27714 msgid "mke2fs-JL"
27715 msgstr ""
27716
27717 # type: verbatim
27718 #. type: verbatim
27719 #: ../fish/guestfish-actions.pod:2838
27720 #, no-wrap
27721 msgid ""
27722 " mke2fs-JL fstype blocksize device label\n"
27723 "\n"
27724 msgstr ""
27725
27726 # type: textblock
27727 #. type: textblock
27728 #: ../fish/guestfish-actions.pod:2843
27729 msgid "See also L</mke2journal-L>."
27730 msgstr ""
27731
27732 # type: =head2
27733 #. type: =head2
27734 #: ../fish/guestfish-actions.pod:2845
27735 msgid "mke2fs-JU"
27736 msgstr ""
27737
27738 # type: verbatim
27739 #. type: verbatim
27740 #: ../fish/guestfish-actions.pod:2847
27741 #, no-wrap
27742 msgid ""
27743 " mke2fs-JU fstype blocksize device uuid\n"
27744 "\n"
27745 msgstr ""
27746
27747 # type: textblock
27748 #. type: textblock
27749 #: ../fish/guestfish-actions.pod:2852
27750 msgid "See also L</mke2journal-U>."
27751 msgstr ""
27752
27753 # type: =head2
27754 #. type: =head2
27755 #: ../fish/guestfish-actions.pod:2854
27756 msgid "mke2journal"
27757 msgstr ""
27758
27759 # type: verbatim
27760 #. type: verbatim
27761 #: ../fish/guestfish-actions.pod:2856
27762 #, no-wrap
27763 msgid ""
27764 " mke2journal blocksize device\n"
27765 "\n"
27766 msgstr ""
27767
27768 # type: =head2
27769 #. type: =head2
27770 #: ../fish/guestfish-actions.pod:2863
27771 msgid "mke2journal-L"
27772 msgstr ""
27773
27774 # type: verbatim
27775 #. type: verbatim
27776 #: ../fish/guestfish-actions.pod:2865
27777 #, no-wrap
27778 msgid ""
27779 " mke2journal-L blocksize label device\n"
27780 "\n"
27781 msgstr ""
27782
27783 # type: =head2
27784 #. type: =head2
27785 #: ../fish/guestfish-actions.pod:2869
27786 msgid "mke2journal-U"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #. type: verbatim
27791 #: ../fish/guestfish-actions.pod:2871
27792 #, no-wrap
27793 msgid ""
27794 " mke2journal-U blocksize uuid device\n"
27795 "\n"
27796 msgstr ""
27797
27798 # type: =head2
27799 #. type: =head2
27800 #: ../fish/guestfish-actions.pod:2875
27801 msgid "mkfifo"
27802 msgstr ""
27803
27804 # type: verbatim
27805 #. type: verbatim
27806 #: ../fish/guestfish-actions.pod:2877
27807 #, no-wrap
27808 msgid ""
27809 " mkfifo mode path\n"
27810 "\n"
27811 msgstr ""
27812
27813 # type: textblock
27814 #. type: textblock
27815 #: ../fish/guestfish-actions.pod:2879
27816 msgid ""
27817 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27818 "is just a convenient wrapper around L</mknod>."
27819 msgstr ""
27820
27821 # type: =head2
27822 #. type: =head2
27823 #: ../fish/guestfish-actions.pod:2885
27824 msgid "mkfs"
27825 msgstr ""
27826
27827 # type: verbatim
27828 #. type: verbatim
27829 #: ../fish/guestfish-actions.pod:2887
27830 #, no-wrap
27831 msgid ""
27832 " mkfs fstype device\n"
27833 "\n"
27834 msgstr ""
27835
27836 # type: =head2
27837 #. type: =head2
27838 #: ../fish/guestfish-actions.pod:2893
27839 msgid "mkfs-b"
27840 msgstr ""
27841
27842 # type: verbatim
27843 #. type: verbatim
27844 #: ../fish/guestfish-actions.pod:2895
27845 #, no-wrap
27846 msgid ""
27847 " mkfs-b fstype blocksize device\n"
27848 "\n"
27849 msgstr ""
27850
27851 # type: textblock
27852 #. type: textblock
27853 #: ../fish/guestfish-actions.pod:2897
27854 msgid ""
27855 "This call is similar to L</mkfs>, but it allows you to control the block "
27856 "size of the resulting filesystem.  Supported block sizes depend on the "
27857 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27858 msgstr ""
27859
27860 # type: =head2
27861 #. type: =head2
27862 #: ../fish/guestfish-actions.pod:2912
27863 msgid "mkfs-opts"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../fish/guestfish-actions.pod:2914
27868 #, no-wrap
27869 msgid ""
27870 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
27871 "\n"
27872 msgstr ""
27873
27874 # type: =head2
27875 #. type: =head2
27876 #: ../fish/guestfish-actions.pod:2949
27877 msgid "mkmountpoint"
27878 msgstr ""
27879
27880 # type: verbatim
27881 #. type: verbatim
27882 #: ../fish/guestfish-actions.pod:2951
27883 #, no-wrap
27884 msgid ""
27885 " mkmountpoint exemptpath\n"
27886 "\n"
27887 msgstr ""
27888
27889 # type: textblock
27890 #. type: textblock
27891 #: ../fish/guestfish-actions.pod:2953
27892 msgid ""
27893 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
27894 "to create extra mountpoints before mounting the first filesystem."
27895 msgstr ""
27896
27897 # type: textblock
27898 #. type: textblock
27899 #: ../fish/guestfish-actions.pod:2977
27900 msgid ""
27901 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27902 "unexpected errors if you try to mix these calls.  It is safest to manually "
27903 "unmount filesystems and remove mountpoints after use."
27904 msgstr ""
27905
27906 # type: textblock
27907 #. type: textblock
27908 #: ../fish/guestfish-actions.pod:2981
27909 msgid ""
27910 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27911 "for this to work for manual mountpoints, you must ensure that the innermost "
27912 "mountpoints have the longest pathnames, as in the example code above."
27913 msgstr ""
27914
27915 #. type: textblock
27916 #: ../fish/guestfish-actions.pod:2988
27917 msgid ""
27918 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
27919 "L</umount-all> to be called when the handle is closed which can also trigger "
27920 "these issues."
27921 msgstr ""
27922
27923 # type: =head2
27924 #. type: =head2
27925 #: ../fish/guestfish-actions.pod:2992
27926 msgid "mknod"
27927 msgstr ""
27928
27929 # type: verbatim
27930 #. type: verbatim
27931 #: ../fish/guestfish-actions.pod:2994
27932 #, no-wrap
27933 msgid ""
27934 " mknod mode devmajor devminor path\n"
27935 "\n"
27936 msgstr ""
27937
27938 # type: textblock
27939 #. type: textblock
27940 #: ../fish/guestfish-actions.pod:3004
27941 msgid ""
27942 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27943 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27944 "regular file).  These constants are available in the standard Linux header "
27945 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
27946 "wrappers around this command which bitwise OR in the appropriate constant "
27947 "for you."
27948 msgstr ""
27949
27950 # type: =head2
27951 #. type: =head2
27952 #: ../fish/guestfish-actions.pod:3014
27953 msgid "mknod-b"
27954 msgstr ""
27955
27956 # type: verbatim
27957 #. type: verbatim
27958 #: ../fish/guestfish-actions.pod:3016
27959 #, no-wrap
27960 msgid ""
27961 " mknod-b mode devmajor devminor path\n"
27962 "\n"
27963 msgstr ""
27964
27965 # type: textblock
27966 #. type: textblock
27967 #: ../fish/guestfish-actions.pod:3018
27968 msgid ""
27969 "This call creates a block device node called C<path> with mode C<mode> and "
27970 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27971 "wrapper around L</mknod>."
27972 msgstr ""
27973
27974 # type: =head2
27975 #. type: =head2
27976 #: ../fish/guestfish-actions.pod:3024
27977 msgid "mknod-c"
27978 msgstr ""
27979
27980 # type: verbatim
27981 #. type: verbatim
27982 #: ../fish/guestfish-actions.pod:3026
27983 #, no-wrap
27984 msgid ""
27985 " mknod-c mode devmajor devminor path\n"
27986 "\n"
27987 msgstr ""
27988
27989 # type: textblock
27990 #. type: textblock
27991 #: ../fish/guestfish-actions.pod:3028
27992 msgid ""
27993 "This call creates a char device node called C<path> with mode C<mode> and "
27994 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27995 "wrapper around L</mknod>."
27996 msgstr ""
27997
27998 # type: =head2
27999 #. type: =head2
28000 #: ../fish/guestfish-actions.pod:3034
28001 msgid "mkswap"
28002 msgstr ""
28003
28004 # type: verbatim
28005 #. type: verbatim
28006 #: ../fish/guestfish-actions.pod:3036
28007 #, no-wrap
28008 msgid ""
28009 " mkswap device\n"
28010 "\n"
28011 msgstr ""
28012
28013 # type: =head2
28014 #. type: =head2
28015 #: ../fish/guestfish-actions.pod:3040
28016 msgid "mkswap-L"
28017 msgstr ""
28018
28019 # type: verbatim
28020 #. type: verbatim
28021 #: ../fish/guestfish-actions.pod:3042
28022 #, no-wrap
28023 msgid ""
28024 " mkswap-L label device\n"
28025 "\n"
28026 msgstr ""
28027
28028 # type: =head2
28029 #. type: =head2
28030 #: ../fish/guestfish-actions.pod:3050
28031 msgid "mkswap-U"
28032 msgstr ""
28033
28034 # type: verbatim
28035 #. type: verbatim
28036 #: ../fish/guestfish-actions.pod:3052
28037 #, no-wrap
28038 msgid ""
28039 " mkswap-U uuid device\n"
28040 "\n"
28041 msgstr ""
28042
28043 # type: =head2
28044 #. type: =head2
28045 #: ../fish/guestfish-actions.pod:3056
28046 msgid "mkswap-file"
28047 msgstr ""
28048
28049 # type: verbatim
28050 #. type: verbatim
28051 #: ../fish/guestfish-actions.pod:3058
28052 #, no-wrap
28053 msgid ""
28054 " mkswap-file path\n"
28055 "\n"
28056 msgstr ""
28057
28058 # type: textblock
28059 #. type: textblock
28060 #: ../fish/guestfish-actions.pod:3062
28061 msgid ""
28062 "This command just writes a swap file signature to an existing file.  To "
28063 "create the file itself, use something like L</fallocate>."
28064 msgstr ""
28065
28066 # type: =head2
28067 #. type: =head2
28068 #: ../fish/guestfish-actions.pod:3065
28069 msgid "modprobe"
28070 msgstr ""
28071
28072 # type: verbatim
28073 #. type: verbatim
28074 #: ../fish/guestfish-actions.pod:3067
28075 #, no-wrap
28076 msgid ""
28077 " modprobe modulename\n"
28078 "\n"
28079 msgstr ""
28080
28081 # type: =head2
28082 #. type: =head2
28083 #: ../fish/guestfish-actions.pod:3074
28084 msgid "mount"
28085 msgstr ""
28086
28087 # type: verbatim
28088 #. type: verbatim
28089 #: ../fish/guestfish-actions.pod:3076
28090 #, no-wrap
28091 msgid ""
28092 " mount device mountpoint\n"
28093 "\n"
28094 msgstr ""
28095
28096 # type: textblock
28097 #. type: textblock
28098 #: ../fish/guestfish-actions.pod:3092
28099 msgid ""
28100 "B<Important note:> When you use this call, the filesystem options C<sync> "
28101 "and C<noatime> are set implicitly.  This was originally done because we "
28102 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28103 "very large negative performance impact and negligible effect on "
28104 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28105 "code that needs performance, and instead use L</mount-options> (use an empty "
28106 "string for the first parameter if you don't want any options)."
28107 msgstr ""
28108
28109 # type: =head2
28110 #. type: =head2
28111 #: ../fish/guestfish-actions.pod:3102
28112 msgid "mount-loop"
28113 msgstr ""
28114
28115 # type: verbatim
28116 #. type: verbatim
28117 #: ../fish/guestfish-actions.pod:3104
28118 #, no-wrap
28119 msgid ""
28120 " mount-loop file mountpoint\n"
28121 "\n"
28122 msgstr ""
28123
28124 # type: =head2
28125 #. type: =head2
28126 #: ../fish/guestfish-actions.pod:3110
28127 msgid "mount-options"
28128 msgstr ""
28129
28130 # type: verbatim
28131 #. type: verbatim
28132 #: ../fish/guestfish-actions.pod:3112
28133 #, no-wrap
28134 msgid ""
28135 " mount-options options device mountpoint\n"
28136 "\n"
28137 msgstr ""
28138
28139 # type: textblock
28140 #. type: textblock
28141 #: ../fish/guestfish-actions.pod:3114
28142 msgid ""
28143 "This is the same as the L</mount> command, but it allows you to set the "
28144 "mount options as for the L<mount(8)> I<-o> flag."
28145 msgstr ""
28146
28147 # type: =head2
28148 #. type: =head2
28149 #: ../fish/guestfish-actions.pod:3122
28150 msgid "mount-ro"
28151 msgstr ""
28152
28153 # type: verbatim
28154 #. type: verbatim
28155 #: ../fish/guestfish-actions.pod:3124
28156 #, no-wrap
28157 msgid ""
28158 " mount-ro device mountpoint\n"
28159 "\n"
28160 msgstr ""
28161
28162 # type: textblock
28163 #. type: textblock
28164 #: ../fish/guestfish-actions.pod:3126
28165 msgid ""
28166 "This is the same as the L</mount> command, but it mounts the filesystem with "
28167 "the read-only (I<-o ro>) flag."
28168 msgstr ""
28169
28170 # type: =head2
28171 #. type: =head2
28172 #: ../fish/guestfish-actions.pod:3129
28173 msgid "mount-vfs"
28174 msgstr ""
28175
28176 # type: verbatim
28177 #. type: verbatim
28178 #: ../fish/guestfish-actions.pod:3131
28179 #, no-wrap
28180 msgid ""
28181 " mount-vfs options vfstype device mountpoint\n"
28182 "\n"
28183 msgstr ""
28184
28185 # type: textblock
28186 #. type: textblock
28187 #: ../fish/guestfish-actions.pod:3133
28188 msgid ""
28189 "This is the same as the L</mount> command, but it allows you to set both the "
28190 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28191 msgstr ""
28192
28193 # type: =head2
28194 #. type: =head2
28195 #: ../fish/guestfish-actions.pod:3137
28196 msgid "mountpoints"
28197 msgstr ""
28198
28199 # type: verbatim
28200 #. type: verbatim
28201 #: ../fish/guestfish-actions.pod:3139
28202 #, no-wrap
28203 msgid ""
28204 " mountpoints\n"
28205 "\n"
28206 msgstr ""
28207
28208 # type: textblock
28209 #. type: textblock
28210 #: ../fish/guestfish-actions.pod:3141
28211 msgid ""
28212 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28213 "This one returns a hash table (map) of device name to directory where the "
28214 "device is mounted."
28215 msgstr ""
28216
28217 # type: =head2
28218 #. type: =head2
28219 #: ../fish/guestfish-actions.pod:3145
28220 msgid "mounts"
28221 msgstr ""
28222
28223 # type: verbatim
28224 #. type: verbatim
28225 #: ../fish/guestfish-actions.pod:3147
28226 #, no-wrap
28227 msgid ""
28228 " mounts\n"
28229 "\n"
28230 msgstr ""
28231
28232 # type: textblock
28233 #. type: textblock
28234 #: ../fish/guestfish-actions.pod:3154
28235 msgid "See also: L</mountpoints>"
28236 msgstr ""
28237
28238 # type: =head2
28239 #. type: =head2
28240 #: ../fish/guestfish-actions.pod:3156
28241 msgid "mv"
28242 msgstr ""
28243
28244 # type: verbatim
28245 #. type: verbatim
28246 #: ../fish/guestfish-actions.pod:3158
28247 #, no-wrap
28248 msgid ""
28249 " mv src dest\n"
28250 "\n"
28251 msgstr ""
28252
28253 # type: =head2
28254 #. type: =head2
28255 #: ../fish/guestfish-actions.pod:3163
28256 msgid "ntfs-3g-probe"
28257 msgstr ""
28258
28259 # type: verbatim
28260 #. type: verbatim
28261 #: ../fish/guestfish-actions.pod:3165
28262 #, no-wrap
28263 msgid ""
28264 " ntfs-3g-probe true|false device\n"
28265 "\n"
28266 msgstr ""
28267
28268 # type: =head2
28269 #. type: =head2
28270 #: ../fish/guestfish-actions.pod:3179
28271 msgid "ntfsresize"
28272 msgstr ""
28273
28274 # type: verbatim
28275 #. type: verbatim
28276 #: ../fish/guestfish-actions.pod:3181
28277 #, no-wrap
28278 msgid ""
28279 " ntfsresize device\n"
28280 "\n"
28281 msgstr ""
28282
28283 # type: =head2
28284 #. type: =head2
28285 #: ../fish/guestfish-actions.pod:3187
28286 msgid "ntfsresize-size"
28287 msgstr ""
28288
28289 # type: verbatim
28290 #. type: verbatim
28291 #: ../fish/guestfish-actions.pod:3189
28292 #, no-wrap
28293 msgid ""
28294 " ntfsresize-size device size\n"
28295 "\n"
28296 msgstr ""
28297
28298 # type: textblock
28299 #. type: textblock
28300 #: ../fish/guestfish-actions.pod:3191
28301 msgid ""
28302 "This command is the same as L</ntfsresize> except that it allows you to "
28303 "specify the new size (in bytes) explicitly."
28304 msgstr ""
28305
28306 # type: =head2
28307 #. type: =head2
28308 #: ../fish/guestfish-actions.pod:3194
28309 msgid "part-add"
28310 msgstr ""
28311
28312 # type: verbatim
28313 #. type: verbatim
28314 #: ../fish/guestfish-actions.pod:3196
28315 #, no-wrap
28316 msgid ""
28317 " part-add device prlogex startsect endsect\n"
28318 "\n"
28319 msgstr ""
28320
28321 # type: textblock
28322 #. type: textblock
28323 #: ../fish/guestfish-actions.pod:3198
28324 msgid ""
28325 "This command adds a partition to C<device>.  If there is no partition table "
28326 "on the device, call L</part-init> first."
28327 msgstr ""
28328
28329 # type: textblock
28330 #. type: textblock
28331 #: ../fish/guestfish-actions.pod:3210
28332 msgid ""
28333 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28334 "part-disk> to do that."
28335 msgstr ""
28336
28337 # type: =head2
28338 #. type: =head2
28339 #: ../fish/guestfish-actions.pod:3213
28340 msgid "part-del"
28341 msgstr ""
28342
28343 # type: verbatim
28344 #. type: verbatim
28345 #: ../fish/guestfish-actions.pod:3215
28346 #, no-wrap
28347 msgid ""
28348 " part-del device partnum\n"
28349 "\n"
28350 msgstr ""
28351
28352 # type: =head2
28353 #. type: =head2
28354 #: ../fish/guestfish-actions.pod:3223
28355 msgid "part-disk"
28356 msgstr ""
28357
28358 # type: verbatim
28359 #. type: verbatim
28360 #: ../fish/guestfish-actions.pod:3225
28361 #, no-wrap
28362 msgid ""
28363 " part-disk device parttype\n"
28364 "\n"
28365 msgstr ""
28366
28367 # type: textblock
28368 #. type: textblock
28369 #: ../fish/guestfish-actions.pod:3227
28370 msgid ""
28371 "This command is simply a combination of L</part-init> followed by L</part-"
28372 "add> to create a single primary partition covering the whole disk."
28373 msgstr ""
28374
28375 # type: textblock
28376 #. type: textblock
28377 #: ../fish/guestfish-actions.pod:3231
28378 msgid ""
28379 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28380 "possible values are described in L</part-init>."
28381 msgstr ""
28382
28383 # type: =head2
28384 #. type: =head2
28385 #: ../fish/guestfish-actions.pod:3237
28386 msgid "part-get-bootable"
28387 msgstr ""
28388
28389 # type: verbatim
28390 #. type: verbatim
28391 #: ../fish/guestfish-actions.pod:3239
28392 #, no-wrap
28393 msgid ""
28394 " part-get-bootable device partnum\n"
28395 "\n"
28396 msgstr ""
28397
28398 # type: textblock
28399 #. type: textblock
28400 #: ../fish/guestfish-actions.pod:3244
28401 msgid "See also L</part-set-bootable>."
28402 msgstr ""
28403
28404 # type: =head2
28405 #. type: =head2
28406 #: ../fish/guestfish-actions.pod:3246
28407 msgid "part-get-mbr-id"
28408 msgstr ""
28409
28410 # type: verbatim
28411 #. type: verbatim
28412 #: ../fish/guestfish-actions.pod:3248
28413 #, no-wrap
28414 msgid ""
28415 " part-get-mbr-id device partnum\n"
28416 "\n"
28417 msgstr ""
28418
28419 # type: textblock
28420 #. type: textblock
28421 #: ../fish/guestfish-actions.pod:3253 ../fish/guestfish-actions.pod:3391
28422 msgid ""
28423 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28424 "undefined results for other partition table types (see L</part-get-"
28425 "parttype>)."
28426 msgstr ""
28427
28428 # type: =head2
28429 #. type: =head2
28430 #: ../fish/guestfish-actions.pod:3257
28431 msgid "part-get-parttype"
28432 msgstr ""
28433
28434 # type: verbatim
28435 #. type: verbatim
28436 #: ../fish/guestfish-actions.pod:3259
28437 #, no-wrap
28438 msgid ""
28439 " part-get-parttype device\n"
28440 "\n"
28441 msgstr ""
28442
28443 # type: textblock
28444 #. type: textblock
28445 #: ../fish/guestfish-actions.pod:3264
28446 msgid ""
28447 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28448 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28449 "possible, although unusual.  See L</part-init> for a full list."
28450 msgstr ""
28451
28452 # type: =head2
28453 #. type: =head2
28454 #: ../fish/guestfish-actions.pod:3269
28455 msgid "part-init"
28456 msgstr ""
28457
28458 # type: verbatim
28459 #. type: verbatim
28460 #: ../fish/guestfish-actions.pod:3271
28461 #, no-wrap
28462 msgid ""
28463 " part-init device parttype\n"
28464 "\n"
28465 msgstr ""
28466
28467 # type: textblock
28468 #. type: textblock
28469 #: ../fish/guestfish-actions.pod:3277
28470 msgid ""
28471 "Initially there are no partitions.  Following this, you should call L</part-"
28472 "add> for each partition required."
28473 msgstr ""
28474
28475 # type: =head2
28476 #. type: =head2
28477 #: ../fish/guestfish-actions.pod:3340
28478 msgid "part-list"
28479 msgstr ""
28480
28481 # type: verbatim
28482 #. type: verbatim
28483 #: ../fish/guestfish-actions.pod:3342
28484 #, no-wrap
28485 msgid ""
28486 " part-list device\n"
28487 "\n"
28488 msgstr ""
28489
28490 # type: textblock
28491 #. type: textblock
28492 #: ../fish/guestfish-actions.pod:3357
28493 msgid ""
28494 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28495 "the device's sector size, see L</blockdev-getss>."
28496 msgstr ""
28497
28498 # type: =head2
28499 #. type: =head2
28500 #: ../fish/guestfish-actions.pod:3370
28501 msgid "part-set-bootable"
28502 msgstr ""
28503
28504 # type: verbatim
28505 #. type: verbatim
28506 #: ../fish/guestfish-actions.pod:3372
28507 #, no-wrap
28508 msgid ""
28509 " part-set-bootable device partnum true|false\n"
28510 "\n"
28511 msgstr ""
28512
28513 # type: =head2
28514 #. type: =head2
28515 #: ../fish/guestfish-actions.pod:3381
28516 msgid "part-set-mbr-id"
28517 msgstr ""
28518
28519 # type: verbatim
28520 #. type: verbatim
28521 #: ../fish/guestfish-actions.pod:3383
28522 #, no-wrap
28523 msgid ""
28524 " part-set-mbr-id device partnum idbyte\n"
28525 "\n"
28526 msgstr ""
28527
28528 # type: =head2
28529 #. type: =head2
28530 #: ../fish/guestfish-actions.pod:3395
28531 msgid "part-set-name"
28532 msgstr ""
28533
28534 # type: verbatim
28535 #. type: verbatim
28536 #: ../fish/guestfish-actions.pod:3397
28537 #, no-wrap
28538 msgid ""
28539 " part-set-name device partnum name\n"
28540 "\n"
28541 msgstr ""
28542
28543 # type: =head2
28544 #. type: =head2
28545 #: ../fish/guestfish-actions.pod:3405
28546 msgid "part-to-dev"
28547 msgstr ""
28548
28549 # type: verbatim
28550 #. type: verbatim
28551 #: ../fish/guestfish-actions.pod:3407
28552 #, no-wrap
28553 msgid ""
28554 " part-to-dev partition\n"
28555 "\n"
28556 msgstr ""
28557
28558 # type: textblock
28559 #. type: textblock
28560 #: ../fish/guestfish-actions.pod:3413
28561 msgid ""
28562 "The named partition must exist, for example as a string returned from L</"
28563 "list-partitions>."
28564 msgstr ""
28565
28566 # type: =head2
28567 #. type: =head2
28568 #: ../fish/guestfish-actions.pod:3416
28569 msgid "ping-daemon"
28570 msgstr ""
28571
28572 # type: verbatim
28573 #. type: verbatim
28574 #: ../fish/guestfish-actions.pod:3418
28575 #, no-wrap
28576 msgid ""
28577 " ping-daemon\n"
28578 "\n"
28579 msgstr ""
28580
28581 # type: =head2
28582 #. type: =head2
28583 #: ../fish/guestfish-actions.pod:3425
28584 msgid "pread"
28585 msgstr ""
28586
28587 # type: verbatim
28588 #. type: verbatim
28589 #: ../fish/guestfish-actions.pod:3427
28590 #, no-wrap
28591 msgid ""
28592 " pread path count offset\n"
28593 "\n"
28594 msgstr ""
28595
28596 # type: textblock
28597 #. type: textblock
28598 #: ../fish/guestfish-actions.pod:3435
28599 msgid "See also L</pwrite>, L</pread-device>."
28600 msgstr ""
28601
28602 # type: =head2
28603 #. type: =head2
28604 #: ../fish/guestfish-actions.pod:3440
28605 msgid "pread-device"
28606 msgstr ""
28607
28608 # type: verbatim
28609 #. type: verbatim
28610 #: ../fish/guestfish-actions.pod:3442
28611 #, no-wrap
28612 msgid ""
28613 " pread-device device count offset\n"
28614 "\n"
28615 msgstr ""
28616
28617 # type: textblock
28618 #. type: textblock
28619 #: ../fish/guestfish-actions.pod:3450
28620 msgid "See also L</pread>."
28621 msgstr ""
28622
28623 # type: =head2
28624 #. type: =head2
28625 #: ../fish/guestfish-actions.pod:3455
28626 msgid "pvcreate"
28627 msgstr ""
28628
28629 # type: verbatim
28630 #. type: verbatim
28631 #: ../fish/guestfish-actions.pod:3457
28632 #, no-wrap
28633 msgid ""
28634 " pvcreate device\n"
28635 "\n"
28636 msgstr ""
28637
28638 # type: =head2
28639 #. type: =head2
28640 #: ../fish/guestfish-actions.pod:3463
28641 msgid "pvremove"
28642 msgstr ""
28643
28644 # type: verbatim
28645 #. type: verbatim
28646 #: ../fish/guestfish-actions.pod:3465
28647 #, no-wrap
28648 msgid ""
28649 " pvremove device\n"
28650 "\n"
28651 msgstr ""
28652
28653 # type: =head2
28654 #. type: =head2
28655 #: ../fish/guestfish-actions.pod:3474
28656 msgid "pvresize"
28657 msgstr ""
28658
28659 # type: verbatim
28660 #. type: verbatim
28661 #: ../fish/guestfish-actions.pod:3476
28662 #, no-wrap
28663 msgid ""
28664 " pvresize device\n"
28665 "\n"
28666 msgstr ""
28667
28668 # type: =head2
28669 #. type: =head2
28670 #: ../fish/guestfish-actions.pod:3481
28671 msgid "pvresize-size"
28672 msgstr ""
28673
28674 # type: verbatim
28675 #. type: verbatim
28676 #: ../fish/guestfish-actions.pod:3483
28677 #, no-wrap
28678 msgid ""
28679 " pvresize-size device size\n"
28680 "\n"
28681 msgstr ""
28682
28683 # type: textblock
28684 #. type: textblock
28685 #: ../fish/guestfish-actions.pod:3485
28686 msgid ""
28687 "This command is the same as L</pvresize> except that it allows you to "
28688 "specify the new size (in bytes) explicitly."
28689 msgstr ""
28690
28691 # type: =head2
28692 #. type: =head2
28693 #: ../fish/guestfish-actions.pod:3488
28694 msgid "pvs"
28695 msgstr ""
28696
28697 # type: verbatim
28698 #. type: verbatim
28699 #: ../fish/guestfish-actions.pod:3490
28700 #, no-wrap
28701 msgid ""
28702 " pvs\n"
28703 "\n"
28704 msgstr ""
28705
28706 # type: textblock
28707 #. type: textblock
28708 #: ../fish/guestfish-actions.pod:3498
28709 msgid "See also L</pvs-full>."
28710 msgstr ""
28711
28712 # type: =head2
28713 #. type: =head2
28714 #: ../fish/guestfish-actions.pod:3500
28715 msgid "pvs-full"
28716 msgstr ""
28717
28718 # type: verbatim
28719 #. type: verbatim
28720 #: ../fish/guestfish-actions.pod:3502
28721 #, no-wrap
28722 msgid ""
28723 " pvs-full\n"
28724 "\n"
28725 msgstr ""
28726
28727 # type: =head2
28728 #. type: =head2
28729 #: ../fish/guestfish-actions.pod:3507
28730 msgid "pvuuid"
28731 msgstr ""
28732
28733 # type: verbatim
28734 #. type: verbatim
28735 #: ../fish/guestfish-actions.pod:3509
28736 #, no-wrap
28737 msgid ""
28738 " pvuuid device\n"
28739 "\n"
28740 msgstr ""
28741
28742 # type: =head2
28743 #. type: =head2
28744 #: ../fish/guestfish-actions.pod:3513
28745 msgid "pwrite"
28746 msgstr ""
28747
28748 # type: verbatim
28749 #. type: verbatim
28750 #: ../fish/guestfish-actions.pod:3515
28751 #, no-wrap
28752 msgid ""
28753 " pwrite path content offset\n"
28754 "\n"
28755 msgstr ""
28756
28757 # type: textblock
28758 #. type: textblock
28759 #: ../fish/guestfish-actions.pod:3526
28760 msgid "See also L</pread>, L</pwrite-device>."
28761 msgstr ""
28762
28763 # type: =head2
28764 #. type: =head2
28765 #: ../fish/guestfish-actions.pod:3531
28766 msgid "pwrite-device"
28767 msgstr ""
28768
28769 # type: verbatim
28770 #. type: verbatim
28771 #: ../fish/guestfish-actions.pod:3533
28772 #, no-wrap
28773 msgid ""
28774 " pwrite-device device content offset\n"
28775 "\n"
28776 msgstr ""
28777
28778 # type: textblock
28779 #. type: textblock
28780 #: ../fish/guestfish-actions.pod:3543
28781 msgid "See also L</pwrite>."
28782 msgstr ""
28783
28784 # type: =head2
28785 #. type: =head2
28786 #: ../fish/guestfish-actions.pod:3548
28787 msgid "read-file"
28788 msgstr ""
28789
28790 # type: verbatim
28791 #. type: verbatim
28792 #: ../fish/guestfish-actions.pod:3550
28793 #, no-wrap
28794 msgid ""
28795 " read-file path\n"
28796 "\n"
28797 msgstr ""
28798
28799 # type: textblock
28800 #. type: textblock
28801 #: ../fish/guestfish-actions.pod:3555
28802 msgid ""
28803 "Unlike L</cat>, this function can correctly handle files that contain "
28804 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28805 "is limited in the total size of file that can be handled."
28806 msgstr ""
28807
28808 # type: =head2
28809 #. type: =head2
28810 #: ../fish/guestfish-actions.pod:3563
28811 msgid "read-lines"
28812 msgstr ""
28813
28814 # type: verbatim
28815 #. type: verbatim
28816 #: ../fish/guestfish-actions.pod:3565
28817 #, no-wrap
28818 msgid ""
28819 " read-lines path\n"
28820 "\n"
28821 msgstr ""
28822
28823 # type: textblock
28824 #. type: textblock
28825 #: ../fish/guestfish-actions.pod:3572
28826 msgid ""
28827 "Note that this function cannot correctly handle binary files (specifically, "
28828 "files containing C<\\0> character which is treated as end of line).  For "
28829 "those you need to use the L</read-file> function which has a more complex "
28830 "interface."
28831 msgstr ""
28832
28833 # type: =head2
28834 #. type: =head2
28835 #: ../fish/guestfish-actions.pod:3577
28836 msgid "readdir"
28837 msgstr ""
28838
28839 # type: verbatim
28840 #. type: verbatim
28841 #: ../fish/guestfish-actions.pod:3579
28842 #, no-wrap
28843 msgid ""
28844 " readdir dir\n"
28845 "\n"
28846 msgstr ""
28847
28848 # type: textblock
28849 #. type: textblock
28850 #: ../fish/guestfish-actions.pod:3631
28851 msgid ""
28852 "This function is primarily intended for use by programs.  To get a simple "
28853 "list of names, use L</ls>.  To get a printable directory for human "
28854 "consumption, use L</ll>."
28855 msgstr ""
28856
28857 # type: =head2
28858 #. type: =head2
28859 #: ../fish/guestfish-actions.pod:3635
28860 msgid "readlink"
28861 msgstr ""
28862
28863 # type: verbatim
28864 #. type: verbatim
28865 #: ../fish/guestfish-actions.pod:3637
28866 #, no-wrap
28867 msgid ""
28868 " readlink path\n"
28869 "\n"
28870 msgstr ""
28871
28872 # type: =head2
28873 #. type: =head2
28874 #: ../fish/guestfish-actions.pod:3641
28875 msgid "readlinklist"
28876 msgstr ""
28877
28878 # type: verbatim
28879 #. type: verbatim
28880 #: ../fish/guestfish-actions.pod:3643
28881 #, no-wrap
28882 msgid ""
28883 " readlinklist path 'names ...'\n"
28884 "\n"
28885 msgstr ""
28886
28887 # type: =head2
28888 #. type: =head2
28889 #: ../fish/guestfish-actions.pod:3667
28890 msgid "realpath"
28891 msgstr ""
28892
28893 # type: verbatim
28894 #. type: verbatim
28895 #: ../fish/guestfish-actions.pod:3669
28896 #, no-wrap
28897 msgid ""
28898 " realpath path\n"
28899 "\n"
28900 msgstr ""
28901
28902 # type: =head2
28903 #. type: =head2
28904 #: ../fish/guestfish-actions.pod:3674
28905 msgid "removexattr"
28906 msgstr ""
28907
28908 # type: verbatim
28909 #. type: verbatim
28910 #: ../fish/guestfish-actions.pod:3676
28911 #, no-wrap
28912 msgid ""
28913 " removexattr xattr path\n"
28914 "\n"
28915 msgstr ""
28916
28917 # type: textblock
28918 #. type: textblock
28919 #: ../fish/guestfish-actions.pod:3681
28920 msgid "See also: L</lremovexattr>, L<attr(5)>."
28921 msgstr ""
28922
28923 # type: =head2
28924 #. type: =head2
28925 #: ../fish/guestfish-actions.pod:3683
28926 msgid "resize2fs"
28927 msgstr ""
28928
28929 # type: verbatim
28930 #. type: verbatim
28931 #: ../fish/guestfish-actions.pod:3685
28932 #, no-wrap
28933 msgid ""
28934 " resize2fs device\n"
28935 "\n"
28936 msgstr ""
28937
28938 # type: textblock
28939 #. type: textblock
28940 #: ../fish/guestfish-actions.pod:3690
28941 msgid ""
28942 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
28943 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
28944 "gives an error about this and sometimes not.  In any case, it is always safe "
28945 "to call L</e2fsck-f> before calling this function."
28946 msgstr ""
28947
28948 #. type: =head2
28949 #: ../fish/guestfish-actions.pod:3696
28950 msgid "resize2fs-M"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../fish/guestfish-actions.pod:3698
28955 #, no-wrap
28956 msgid ""
28957 " resize2fs-M device\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../fish/guestfish-actions.pod:3700
28963 msgid ""
28964 "This command is the same as L</resize2fs>, but the filesystem is resized to "
28965 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
28966 "command."
28967 msgstr ""
28968
28969 #. type: textblock
28970 #: ../fish/guestfish-actions.pod:3704
28971 msgid ""
28972 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
28973 "and read the C<Block size> and C<Block count> values.  These two numbers, "
28974 "multiplied together, give the resulting size of the minimal filesystem in "
28975 "bytes."
28976 msgstr ""
28977
28978 # type: =head2
28979 #. type: =head2
28980 #: ../fish/guestfish-actions.pod:3709
28981 msgid "resize2fs-size"
28982 msgstr ""
28983
28984 # type: verbatim
28985 #. type: verbatim
28986 #: ../fish/guestfish-actions.pod:3711
28987 #, no-wrap
28988 msgid ""
28989 " resize2fs-size device size\n"
28990 "\n"
28991 msgstr ""
28992
28993 # type: textblock
28994 #. type: textblock
28995 #: ../fish/guestfish-actions.pod:3713
28996 msgid ""
28997 "This command is the same as L</resize2fs> except that it allows you to "
28998 "specify the new size (in bytes) explicitly."
28999 msgstr ""
29000
29001 # type: =head2
29002 #. type: =head2
29003 #: ../fish/guestfish-actions.pod:3716
29004 msgid "rm"
29005 msgstr ""
29006
29007 # type: verbatim
29008 #. type: verbatim
29009 #: ../fish/guestfish-actions.pod:3718
29010 #, no-wrap
29011 msgid ""
29012 " rm path\n"
29013 "\n"
29014 msgstr ""
29015
29016 # type: =head2
29017 #. type: =head2
29018 #: ../fish/guestfish-actions.pod:3722
29019 msgid "rm-rf"
29020 msgstr ""
29021
29022 # type: verbatim
29023 #. type: verbatim
29024 #: ../fish/guestfish-actions.pod:3724
29025 #, no-wrap
29026 msgid ""
29027 " rm-rf path\n"
29028 "\n"
29029 msgstr ""
29030
29031 # type: =head2
29032 #. type: =head2
29033 #: ../fish/guestfish-actions.pod:3730
29034 msgid "rmdir"
29035 msgstr ""
29036
29037 # type: verbatim
29038 #. type: verbatim
29039 #: ../fish/guestfish-actions.pod:3732
29040 #, no-wrap
29041 msgid ""
29042 " rmdir path\n"
29043 "\n"
29044 msgstr ""
29045
29046 # type: =head2
29047 #. type: =head2
29048 #: ../fish/guestfish-actions.pod:3736
29049 msgid "rmmountpoint"
29050 msgstr ""
29051
29052 # type: verbatim
29053 #. type: verbatim
29054 #: ../fish/guestfish-actions.pod:3738
29055 #, no-wrap
29056 msgid ""
29057 " rmmountpoint exemptpath\n"
29058 "\n"
29059 msgstr ""
29060
29061 # type: textblock
29062 #. type: textblock
29063 #: ../fish/guestfish-actions.pod:3740
29064 msgid ""
29065 "This calls removes a mountpoint that was previously created with L</"
29066 "mkmountpoint>.  See L</mkmountpoint> for full details."
29067 msgstr ""
29068
29069 # type: =head2
29070 #. type: =head2
29071 #: ../fish/guestfish-actions.pod:3744
29072 msgid "scrub-device"
29073 msgstr ""
29074
29075 # type: verbatim
29076 #. type: verbatim
29077 #: ../fish/guestfish-actions.pod:3746
29078 #, no-wrap
29079 msgid ""
29080 " scrub-device device\n"
29081 "\n"
29082 msgstr ""
29083
29084 # type: =head2
29085 #. type: =head2
29086 #: ../fish/guestfish-actions.pod:3757
29087 msgid "scrub-file"
29088 msgstr ""
29089
29090 # type: verbatim
29091 #. type: verbatim
29092 #: ../fish/guestfish-actions.pod:3759
29093 #, no-wrap
29094 msgid ""
29095 " scrub-file file\n"
29096 "\n"
29097 msgstr ""
29098
29099 # type: =head2
29100 #. type: =head2
29101 #: ../fish/guestfish-actions.pod:3769
29102 msgid "scrub-freespace"
29103 msgstr ""
29104
29105 # type: verbatim
29106 #. type: verbatim
29107 #: ../fish/guestfish-actions.pod:3771
29108 #, no-wrap
29109 msgid ""
29110 " scrub-freespace dir\n"
29111 "\n"
29112 msgstr ""
29113
29114 # type: textblock
29115 #. type: textblock
29116 #: ../fish/guestfish-actions.pod:3773
29117 msgid ""
29118 "This command creates the directory C<dir> and then fills it with files until "
29119 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29120 "deletes them.  The intention is to scrub any free space on the partition "
29121 "containing C<dir>."
29122 msgstr ""
29123
29124 # type: =head2
29125 #. type: =head2
29126 #: ../fish/guestfish-actions.pod:3782
29127 msgid "set-append"
29128 msgstr ""
29129
29130 # type: =head2
29131 #. type: =head2
29132 #: ../fish/guestfish-actions.pod:3784
29133 msgid "append"
29134 msgstr ""
29135
29136 # type: verbatim
29137 #. type: verbatim
29138 #: ../fish/guestfish-actions.pod:3786
29139 #, no-wrap
29140 msgid ""
29141 " set-append append\n"
29142 "\n"
29143 msgstr ""
29144
29145 #. type: =head2
29146 #: ../fish/guestfish-actions.pod:3797
29147 msgid "set-attach-method"
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../fish/guestfish-actions.pod:3799
29152 msgid "attach-method"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../fish/guestfish-actions.pod:3801
29157 #, no-wrap
29158 msgid ""
29159 " set-attach-method attachmethod\n"
29160 "\n"
29161 msgstr ""
29162
29163 # type: =head2
29164 #. type: =head2
29165 #: ../fish/guestfish-actions.pod:3823
29166 msgid "set-autosync"
29167 msgstr ""
29168
29169 # type: =head2
29170 #. type: =head2
29171 #: ../fish/guestfish-actions.pod:3825
29172 msgid "autosync"
29173 msgstr ""
29174
29175 # type: verbatim
29176 #. type: verbatim
29177 #: ../fish/guestfish-actions.pod:3827
29178 #, no-wrap
29179 msgid ""
29180 " set-autosync true|false\n"
29181 "\n"
29182 msgstr ""
29183
29184 # type: =head2
29185 #. type: =head2
29186 #: ../fish/guestfish-actions.pod:3837
29187 msgid "set-direct"
29188 msgstr ""
29189
29190 # type: =head2
29191 #. type: =head2
29192 #: ../fish/guestfish-actions.pod:3839
29193 msgid "direct"
29194 msgstr ""
29195
29196 # type: verbatim
29197 #. type: verbatim
29198 #: ../fish/guestfish-actions.pod:3841
29199 #, no-wrap
29200 msgid ""
29201 " set-direct true|false\n"
29202 "\n"
29203 msgstr ""
29204
29205 # type: textblock
29206 #. type: textblock
29207 #: ../fish/guestfish-actions.pod:3847
29208 msgid ""
29209 "One consequence of this is that log messages aren't caught by the library "
29210 "and handled by L</set-log-message-callback>, but go straight to stdout."
29211 msgstr ""
29212
29213 # type: =head2
29214 #. type: =head2
29215 #: ../fish/guestfish-actions.pod:3856
29216 msgid "set-e2label"
29217 msgstr ""
29218
29219 # type: verbatim
29220 #. type: verbatim
29221 #: ../fish/guestfish-actions.pod:3858
29222 #, no-wrap
29223 msgid ""
29224 " set-e2label device label\n"
29225 "\n"
29226 msgstr ""
29227
29228 # type: textblock
29229 #. type: textblock
29230 #: ../fish/guestfish-actions.pod:3864
29231 msgid ""
29232 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29233 "label on a filesystem."
29234 msgstr ""
29235
29236 # type: =head2
29237 #. type: =head2
29238 #: ../fish/guestfish-actions.pod:3867
29239 msgid "set-e2uuid"
29240 msgstr ""
29241
29242 # type: verbatim
29243 #. type: verbatim
29244 #: ../fish/guestfish-actions.pod:3869
29245 #, no-wrap
29246 msgid ""
29247 " set-e2uuid device uuid\n"
29248 "\n"
29249 msgstr ""
29250
29251 # type: textblock
29252 #. type: textblock
29253 #: ../fish/guestfish-actions.pod:3876
29254 msgid ""
29255 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29256 "UUID of a filesystem."
29257 msgstr ""
29258
29259 # type: =head2
29260 #. type: =head2
29261 #: ../fish/guestfish-actions.pod:3879
29262 msgid "set-memsize"
29263 msgstr ""
29264
29265 # type: =head2
29266 #. type: =head2
29267 #: ../fish/guestfish-actions.pod:3881
29268 msgid "memsize"
29269 msgstr ""
29270
29271 # type: verbatim
29272 #. type: verbatim
29273 #: ../fish/guestfish-actions.pod:3883
29274 #, no-wrap
29275 msgid ""
29276 " set-memsize memsize\n"
29277 "\n"
29278 msgstr ""
29279
29280 # type: textblock
29281 #. type: textblock
29282 #: ../fish/guestfish-actions.pod:3885
29283 msgid ""
29284 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29285 "This only has any effect if called before L</launch>."
29286 msgstr ""
29287
29288 # type: =head2
29289 #. type: =head2
29290 #: ../fish/guestfish-actions.pod:3896
29291 msgid "set-network"
29292 msgstr ""
29293
29294 # type: =head2
29295 #. type: =head2
29296 #: ../fish/guestfish-actions.pod:3898
29297 msgid "network"
29298 msgstr ""
29299
29300 # type: verbatim
29301 #. type: verbatim
29302 #: ../fish/guestfish-actions.pod:3900
29303 #, no-wrap
29304 msgid ""
29305 " set-network true|false\n"
29306 "\n"
29307 msgstr ""
29308
29309 # type: textblock
29310 #. type: textblock
29311 #: ../fish/guestfish-actions.pod:3908
29312 msgid ""
29313 "You must call this before calling L</launch>, otherwise it has no effect."
29314 msgstr ""
29315
29316 # type: =head2
29317 #. type: =head2
29318 #: ../fish/guestfish-actions.pod:3911
29319 msgid "set-path"
29320 msgstr ""
29321
29322 # type: =head2
29323 #. type: =head2
29324 #: ../fish/guestfish-actions.pod:3913
29325 msgid "path"
29326 msgstr ""
29327
29328 # type: verbatim
29329 #. type: verbatim
29330 #: ../fish/guestfish-actions.pod:3915
29331 #, no-wrap
29332 msgid ""
29333 " set-path searchpath\n"
29334 "\n"
29335 msgstr ""
29336
29337 # type: =head2
29338 #. type: =head2
29339 #: ../fish/guestfish-actions.pod:3924
29340 msgid "set-qemu"
29341 msgstr ""
29342
29343 # type: =head2
29344 #. type: =head2
29345 #: ../fish/guestfish-actions.pod:3926
29346 msgid "qemu"
29347 msgstr ""
29348
29349 # type: verbatim
29350 #. type: verbatim
29351 #: ../fish/guestfish-actions.pod:3928
29352 #, no-wrap
29353 msgid ""
29354 " set-qemu qemu\n"
29355 "\n"
29356 msgstr ""
29357
29358 # type: =head2
29359 #. type: =head2
29360 #: ../fish/guestfish-actions.pod:3948
29361 msgid "set-recovery-proc"
29362 msgstr ""
29363
29364 # type: =head2
29365 #. type: =head2
29366 #: ../fish/guestfish-actions.pod:3950
29367 msgid "recovery-proc"
29368 msgstr ""
29369
29370 # type: verbatim
29371 #. type: verbatim
29372 #: ../fish/guestfish-actions.pod:3952
29373 #, no-wrap
29374 msgid ""
29375 " set-recovery-proc true|false\n"
29376 "\n"
29377 msgstr ""
29378
29379 # type: textblock
29380 #. type: textblock
29381 #: ../fish/guestfish-actions.pod:3954
29382 msgid ""
29383 "If this is called with the parameter C<false> then L</launch> does not "
29384 "create a recovery process.  The purpose of the recovery process is to stop "
29385 "runaway qemu processes in the case where the main program aborts abruptly."
29386 msgstr ""
29387
29388 # type: textblock
29389 #. type: textblock
29390 #: ../fish/guestfish-actions.pod:3959
29391 msgid ""
29392 "This only has any effect if called before L</launch>, and the default is "
29393 "true."
29394 msgstr ""
29395
29396 # type: =head2
29397 #. type: =head2
29398 #: ../fish/guestfish-actions.pod:3968
29399 msgid "set-selinux"
29400 msgstr ""
29401
29402 # type: =head2
29403 #. type: =head2
29404 #: ../fish/guestfish-actions.pod:3970
29405 msgid "selinux"
29406 msgstr ""
29407
29408 # type: verbatim
29409 #. type: verbatim
29410 #: ../fish/guestfish-actions.pod:3972
29411 #, no-wrap
29412 msgid ""
29413 " set-selinux true|false\n"
29414 "\n"
29415 msgstr ""
29416
29417 # type: =head2
29418 #. type: =head2
29419 #: ../fish/guestfish-actions.pod:3983
29420 msgid "set-trace"
29421 msgstr ""
29422
29423 # type: =head2
29424 #. type: =head2
29425 #: ../fish/guestfish-actions.pod:3985
29426 msgid "trace"
29427 msgstr ""
29428
29429 # type: verbatim
29430 #. type: verbatim
29431 #: ../fish/guestfish-actions.pod:3987
29432 #, no-wrap
29433 msgid ""
29434 " set-trace true|false\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../fish/guestfish-actions.pod:3999
29440 msgid ""
29441 "Trace messages are normally sent to C<stderr>, unless you register a "
29442 "callback to send them somewhere else (see L</set-event-callback>)."
29443 msgstr ""
29444
29445 # type: =head2
29446 #. type: =head2
29447 #: ../fish/guestfish-actions.pod:4003
29448 msgid "set-verbose"
29449 msgstr ""
29450
29451 # type: =head2
29452 #. type: =head2
29453 #: ../fish/guestfish-actions.pod:4005
29454 msgid "verbose"
29455 msgstr ""
29456
29457 # type: verbatim
29458 #. type: verbatim
29459 #: ../fish/guestfish-actions.pod:4007
29460 #, no-wrap
29461 msgid ""
29462 " set-verbose true|false\n"
29463 "\n"
29464 msgstr ""
29465
29466 #. type: textblock
29467 #: ../fish/guestfish-actions.pod:4014
29468 msgid ""
29469 "Verbose messages are normally sent to C<stderr>, unless you register a "
29470 "callback to send them somewhere else (see L</set-event-callback>)."
29471 msgstr ""
29472
29473 # type: =head2
29474 #. type: =head2
29475 #: ../fish/guestfish-actions.pod:4018
29476 msgid "setcon"
29477 msgstr ""
29478
29479 # type: verbatim
29480 #. type: verbatim
29481 #: ../fish/guestfish-actions.pod:4020
29482 #, no-wrap
29483 msgid ""
29484 " setcon context\n"
29485 "\n"
29486 msgstr ""
29487
29488 # type: =head2
29489 #. type: =head2
29490 #: ../fish/guestfish-actions.pod:4027
29491 msgid "setxattr"
29492 msgstr ""
29493
29494 # type: verbatim
29495 #. type: verbatim
29496 #: ../fish/guestfish-actions.pod:4029
29497 #, no-wrap
29498 msgid ""
29499 " setxattr xattr val vallen path\n"
29500 "\n"
29501 msgstr ""
29502
29503 # type: textblock
29504 #. type: textblock
29505 #: ../fish/guestfish-actions.pod:4035
29506 msgid "See also: L</lsetxattr>, L<attr(5)>."
29507 msgstr ""
29508
29509 # type: =head2
29510 #. type: =head2
29511 #: ../fish/guestfish-actions.pod:4037
29512 msgid "sfdisk"
29513 msgstr ""
29514
29515 # type: verbatim
29516 #. type: verbatim
29517 #: ../fish/guestfish-actions.pod:4039
29518 #, no-wrap
29519 msgid ""
29520 " sfdisk device cyls heads sectors 'lines ...'\n"
29521 "\n"
29522 msgstr ""
29523
29524 # type: textblock
29525 #. type: textblock
29526 #: ../fish/guestfish-actions.pod:4061
29527 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29528 msgstr ""
29529
29530 # type: =head2
29531 #. type: =head2
29532 #: ../fish/guestfish-actions.pod:4067
29533 msgid "sfdiskM"
29534 msgstr ""
29535
29536 # type: verbatim
29537 #. type: verbatim
29538 #: ../fish/guestfish-actions.pod:4069
29539 #, no-wrap
29540 msgid ""
29541 " sfdiskM device 'lines ...'\n"
29542 "\n"
29543 msgstr ""
29544
29545 # type: textblock
29546 #. type: textblock
29547 #: ../fish/guestfish-actions.pod:4071
29548 msgid ""
29549 "This is a simplified interface to the L</sfdisk> command, where partition "
29550 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29551 "you don't need to specify the cyls, heads and sectors parameters which were "
29552 "rarely if ever used anyway."
29553 msgstr ""
29554
29555 # type: textblock
29556 #. type: textblock
29557 #: ../fish/guestfish-actions.pod:4077
29558 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29559 msgstr ""
29560
29561 # type: =head2
29562 #. type: =head2
29563 #: ../fish/guestfish-actions.pod:4083
29564 msgid "sfdisk-N"
29565 msgstr ""
29566
29567 # type: verbatim
29568 #. type: verbatim
29569 #: ../fish/guestfish-actions.pod:4085
29570 #, no-wrap
29571 msgid ""
29572 " sfdisk-N device partnum cyls heads sectors line\n"
29573 "\n"
29574 msgstr ""
29575
29576 # type: textblock
29577 #. type: textblock
29578 #: ../fish/guestfish-actions.pod:4090
29579 msgid ""
29580 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29581 "cyls/heads/sectors parameters."
29582 msgstr ""
29583
29584 # type: textblock
29585 #. type: textblock
29586 #: ../fish/guestfish-actions.pod:4093
29587 msgid "See also: L</part-add>"
29588 msgstr ""
29589
29590 # type: =head2
29591 #. type: =head2
29592 #: ../fish/guestfish-actions.pod:4098
29593 msgid "sfdisk-disk-geometry"
29594 msgstr ""
29595
29596 # type: verbatim
29597 #. type: verbatim
29598 #: ../fish/guestfish-actions.pod:4100
29599 #, no-wrap
29600 msgid ""
29601 " sfdisk-disk-geometry device\n"
29602 "\n"
29603 msgstr ""
29604
29605 # type: textblock
29606 #. type: textblock
29607 #: ../fish/guestfish-actions.pod:4102
29608 msgid ""
29609 "This displays the disk geometry of C<device> read from the partition table.  "
29610 "Especially in the case where the underlying block device has been resized, "
29611 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29612 "kernel-geometry>)."
29613 msgstr ""
29614
29615 # type: =head2
29616 #. type: =head2
29617 #: ../fish/guestfish-actions.pod:4110
29618 msgid "sfdisk-kernel-geometry"
29619 msgstr ""
29620
29621 # type: verbatim
29622 #. type: verbatim
29623 #: ../fish/guestfish-actions.pod:4112
29624 #, no-wrap
29625 msgid ""
29626 " sfdisk-kernel-geometry device\n"
29627 "\n"
29628 msgstr ""
29629
29630 # type: =head2
29631 #. type: =head2
29632 #: ../fish/guestfish-actions.pod:4119
29633 msgid "sfdisk-l"
29634 msgstr ""
29635
29636 # type: verbatim
29637 #. type: verbatim
29638 #: ../fish/guestfish-actions.pod:4121
29639 #, no-wrap
29640 msgid ""
29641 " sfdisk-l device\n"
29642 "\n"
29643 msgstr ""
29644
29645 # type: textblock
29646 #. type: textblock
29647 #: ../fish/guestfish-actions.pod:4127
29648 msgid "See also: L</part-list>"
29649 msgstr ""
29650
29651 # type: =head2
29652 #. type: =head2
29653 #: ../fish/guestfish-actions.pod:4129
29654 msgid "sh"
29655 msgstr ""
29656
29657 # type: verbatim
29658 #. type: verbatim
29659 #: ../fish/guestfish-actions.pod:4131
29660 #, no-wrap
29661 msgid ""
29662 " sh command\n"
29663 "\n"
29664 msgstr ""
29665
29666 # type: textblock
29667 #. type: textblock
29668 #: ../fish/guestfish-actions.pod:4136
29669 msgid "This is like L</command>, but passes the command to:"
29670 msgstr ""
29671
29672 # type: textblock
29673 #. type: textblock
29674 #: ../fish/guestfish-actions.pod:4144
29675 msgid "All the provisos about L</command> apply to this call."
29676 msgstr ""
29677
29678 # type: =head2
29679 #. type: =head2
29680 #: ../fish/guestfish-actions.pod:4146
29681 msgid "sh-lines"
29682 msgstr ""
29683
29684 # type: verbatim
29685 #. type: verbatim
29686 #: ../fish/guestfish-actions.pod:4148
29687 #, no-wrap
29688 msgid ""
29689 " sh-lines command\n"
29690 "\n"
29691 msgstr ""
29692
29693 # type: textblock
29694 #. type: textblock
29695 #: ../fish/guestfish-actions.pod:4150
29696 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29697 msgstr ""
29698
29699 # type: textblock
29700 #. type: textblock
29701 #: ../fish/guestfish-actions.pod:4153
29702 msgid "See also: L</command-lines>"
29703 msgstr ""
29704
29705 # type: =head2
29706 #. type: =head2
29707 #: ../fish/guestfish-actions.pod:4155
29708 msgid "sleep"
29709 msgstr ""
29710
29711 # type: verbatim
29712 #. type: verbatim
29713 #: ../fish/guestfish-actions.pod:4157
29714 #, no-wrap
29715 msgid ""
29716 " sleep secs\n"
29717 "\n"
29718 msgstr ""
29719
29720 # type: =head2
29721 #. type: =head2
29722 #: ../fish/guestfish-actions.pod:4161
29723 msgid "stat"
29724 msgstr ""
29725
29726 # type: verbatim
29727 #. type: verbatim
29728 #: ../fish/guestfish-actions.pod:4163
29729 #, no-wrap
29730 msgid ""
29731 " stat path\n"
29732 "\n"
29733 msgstr ""
29734
29735 # type: =head2
29736 #. type: =head2
29737 #: ../fish/guestfish-actions.pod:4169
29738 msgid "statvfs"
29739 msgstr ""
29740
29741 # type: verbatim
29742 #. type: verbatim
29743 #: ../fish/guestfish-actions.pod:4171
29744 #, no-wrap
29745 msgid ""
29746 " statvfs path\n"
29747 "\n"
29748 msgstr ""
29749
29750 # type: =head2
29751 #. type: =head2
29752 #: ../fish/guestfish-actions.pod:4179
29753 msgid "strings"
29754 msgstr ""
29755
29756 # type: verbatim
29757 #. type: verbatim
29758 #: ../fish/guestfish-actions.pod:4181
29759 #, no-wrap
29760 msgid ""
29761 " strings path\n"
29762 "\n"
29763 msgstr ""
29764
29765 # type: =head2
29766 #. type: =head2
29767 #: ../fish/guestfish-actions.pod:4189
29768 msgid "strings-e"
29769 msgstr ""
29770
29771 # type: verbatim
29772 #. type: verbatim
29773 #: ../fish/guestfish-actions.pod:4191
29774 #, no-wrap
29775 msgid ""
29776 " strings-e encoding path\n"
29777 "\n"
29778 msgstr ""
29779
29780 # type: textblock
29781 #. type: textblock
29782 #: ../fish/guestfish-actions.pod:4193
29783 msgid ""
29784 "This is like the L</strings> command, but allows you to specify the encoding "
29785 "of strings that are looked for in the source file C<path>."
29786 msgstr ""
29787
29788 # type: textblock
29789 #. type: textblock
29790 #: ../fish/guestfish-actions.pod:4203
29791 msgid ""
29792 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29793 "ISO-8859-X (this is what L</strings> uses)."
29794 msgstr ""
29795
29796 # type: =head2
29797 #. type: =head2
29798 #: ../fish/guestfish-actions.pod:4235
29799 msgid "swapoff-device"
29800 msgstr ""
29801
29802 # type: verbatim
29803 #. type: verbatim
29804 #: ../fish/guestfish-actions.pod:4237
29805 #, no-wrap
29806 msgid ""
29807 " swapoff-device device\n"
29808 "\n"
29809 msgstr ""
29810
29811 # type: textblock
29812 #. type: textblock
29813 #: ../fish/guestfish-actions.pod:4239
29814 msgid ""
29815 "This command disables the libguestfs appliance swap device or partition "
29816 "named C<device>.  See L</swapon-device>."
29817 msgstr ""
29818
29819 # type: =head2
29820 #. type: =head2
29821 #: ../fish/guestfish-actions.pod:4243
29822 msgid "swapoff-file"
29823 msgstr ""
29824
29825 # type: verbatim
29826 #. type: verbatim
29827 #: ../fish/guestfish-actions.pod:4245
29828 #, no-wrap
29829 msgid ""
29830 " swapoff-file file\n"
29831 "\n"
29832 msgstr ""
29833
29834 # type: =head2
29835 #. type: =head2
29836 #: ../fish/guestfish-actions.pod:4249
29837 msgid "swapoff-label"
29838 msgstr ""
29839
29840 # type: verbatim
29841 #. type: verbatim
29842 #: ../fish/guestfish-actions.pod:4251
29843 #, no-wrap
29844 msgid ""
29845 " swapoff-label label\n"
29846 "\n"
29847 msgstr ""
29848
29849 # type: =head2
29850 #. type: =head2
29851 #: ../fish/guestfish-actions.pod:4256
29852 msgid "swapoff-uuid"
29853 msgstr ""
29854
29855 # type: verbatim
29856 #. type: verbatim
29857 #: ../fish/guestfish-actions.pod:4258
29858 #, no-wrap
29859 msgid ""
29860 " swapoff-uuid uuid\n"
29861 "\n"
29862 msgstr ""
29863
29864 # type: =head2
29865 #. type: =head2
29866 #: ../fish/guestfish-actions.pod:4263
29867 msgid "swapon-device"
29868 msgstr ""
29869
29870 # type: verbatim
29871 #. type: verbatim
29872 #: ../fish/guestfish-actions.pod:4265
29873 #, no-wrap
29874 msgid ""
29875 " swapon-device device\n"
29876 "\n"
29877 msgstr ""
29878
29879 # type: textblock
29880 #. type: textblock
29881 #: ../fish/guestfish-actions.pod:4267
29882 msgid ""
29883 "This command enables the libguestfs appliance to use the swap device or "
29884 "partition named C<device>.  The increased memory is made available for all "
29885 "commands, for example those run using L</command> or L</sh>."
29886 msgstr ""
29887
29888 # type: =head2
29889 #. type: =head2
29890 #: ../fish/guestfish-actions.pod:4279
29891 msgid "swapon-file"
29892 msgstr ""
29893
29894 # type: verbatim
29895 #. type: verbatim
29896 #: ../fish/guestfish-actions.pod:4281
29897 #, no-wrap
29898 msgid ""
29899 " swapon-file file\n"
29900 "\n"
29901 msgstr ""
29902
29903 # type: textblock
29904 #. type: textblock
29905 #: ../fish/guestfish-actions.pod:4283
29906 msgid ""
29907 "This command enables swap to a file.  See L</swapon-device> for other notes."
29908 msgstr ""
29909
29910 # type: =head2
29911 #. type: =head2
29912 #: ../fish/guestfish-actions.pod:4286
29913 msgid "swapon-label"
29914 msgstr ""
29915
29916 # type: verbatim
29917 #. type: verbatim
29918 #: ../fish/guestfish-actions.pod:4288
29919 #, no-wrap
29920 msgid ""
29921 " swapon-label label\n"
29922 "\n"
29923 msgstr ""
29924
29925 # type: textblock
29926 #. type: textblock
29927 #: ../fish/guestfish-actions.pod:4290
29928 msgid ""
29929 "This command enables swap to a labeled swap partition.  See L</swapon-"
29930 "device> for other notes."
29931 msgstr ""
29932
29933 # type: =head2
29934 #. type: =head2
29935 #: ../fish/guestfish-actions.pod:4293
29936 msgid "swapon-uuid"
29937 msgstr ""
29938
29939 # type: verbatim
29940 #. type: verbatim
29941 #: ../fish/guestfish-actions.pod:4295
29942 #, no-wrap
29943 msgid ""
29944 " swapon-uuid uuid\n"
29945 "\n"
29946 msgstr ""
29947
29948 # type: textblock
29949 #. type: textblock
29950 #: ../fish/guestfish-actions.pod:4297
29951 msgid ""
29952 "This command enables swap to a swap partition with the given UUID.  See L</"
29953 "swapon-device> for other notes."
29954 msgstr ""
29955
29956 # type: =head2
29957 #. type: =head2
29958 #: ../fish/guestfish-actions.pod:4300
29959 msgid "sync"
29960 msgstr ""
29961
29962 # type: verbatim
29963 #. type: verbatim
29964 #: ../fish/guestfish-actions.pod:4302
29965 #, no-wrap
29966 msgid ""
29967 " sync\n"
29968 "\n"
29969 msgstr ""
29970
29971 # type: =head2
29972 #. type: =head2
29973 #: ../fish/guestfish-actions.pod:4310
29974 msgid "tail"
29975 msgstr ""
29976
29977 # type: verbatim
29978 #. type: verbatim
29979 #: ../fish/guestfish-actions.pod:4312
29980 #, no-wrap
29981 msgid ""
29982 " tail path\n"
29983 "\n"
29984 msgstr ""
29985
29986 # type: =head2
29987 #. type: =head2
29988 #: ../fish/guestfish-actions.pod:4320
29989 msgid "tail-n"
29990 msgstr ""
29991
29992 # type: verbatim
29993 #. type: verbatim
29994 #: ../fish/guestfish-actions.pod:4322
29995 #, no-wrap
29996 msgid ""
29997 " tail-n nrlines path\n"
29998 "\n"
29999 msgstr ""
30000
30001 # type: =head2
30002 #. type: =head2
30003 #: ../fish/guestfish-actions.pod:4335
30004 msgid "tar-in"
30005 msgstr ""
30006
30007 # type: verbatim
30008 #. type: verbatim
30009 #: ../fish/guestfish-actions.pod:4337
30010 #, no-wrap
30011 msgid ""
30012 " tar-in (tarfile|-) directory\n"
30013 "\n"
30014 msgstr ""
30015
30016 # type: textblock
30017 #. type: textblock
30018 #: ../fish/guestfish-actions.pod:4342
30019 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30020 msgstr ""
30021
30022 # type: =head2
30023 #. type: =head2
30024 #: ../fish/guestfish-actions.pod:4347
30025 msgid "tar-out"
30026 msgstr ""
30027
30028 # type: verbatim
30029 #. type: verbatim
30030 #: ../fish/guestfish-actions.pod:4349
30031 #, no-wrap
30032 msgid ""
30033 " tar-out directory (tarfile|-)\n"
30034 "\n"
30035 msgstr ""
30036
30037 # type: textblock
30038 #. type: textblock
30039 #: ../fish/guestfish-actions.pod:4354
30040 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30041 msgstr ""
30042
30043 # type: =head2
30044 #. type: =head2
30045 #: ../fish/guestfish-actions.pod:4359
30046 msgid "tgz-in"
30047 msgstr ""
30048
30049 # type: verbatim
30050 #. type: verbatim
30051 #: ../fish/guestfish-actions.pod:4361
30052 #, no-wrap
30053 msgid ""
30054 " tgz-in (tarball|-) directory\n"
30055 "\n"
30056 msgstr ""
30057
30058 # type: textblock
30059 #. type: textblock
30060 #: ../fish/guestfish-actions.pod:4366
30061 msgid "To upload an uncompressed tarball, use L</tar-in>."
30062 msgstr ""
30063
30064 # type: =head2
30065 #. type: =head2
30066 #: ../fish/guestfish-actions.pod:4370
30067 msgid "tgz-out"
30068 msgstr ""
30069
30070 # type: verbatim
30071 #. type: verbatim
30072 #: ../fish/guestfish-actions.pod:4372
30073 #, no-wrap
30074 msgid ""
30075 " tgz-out directory (tarball|-)\n"
30076 "\n"
30077 msgstr ""
30078
30079 # type: textblock
30080 #. type: textblock
30081 #: ../fish/guestfish-actions.pod:4377
30082 msgid "To download an uncompressed tarball, use L</tar-out>."
30083 msgstr ""
30084
30085 # type: =head2
30086 #. type: =head2
30087 #: ../fish/guestfish-actions.pod:4381
30088 msgid "touch"
30089 msgstr ""
30090
30091 # type: verbatim
30092 #. type: verbatim
30093 #: ../fish/guestfish-actions.pod:4383
30094 #, no-wrap
30095 msgid ""
30096 " touch path\n"
30097 "\n"
30098 msgstr ""
30099
30100 # type: =head2
30101 #. type: =head2
30102 #: ../fish/guestfish-actions.pod:4392
30103 msgid "truncate"
30104 msgstr ""
30105
30106 # type: verbatim
30107 #. type: verbatim
30108 #: ../fish/guestfish-actions.pod:4394
30109 #, no-wrap
30110 msgid ""
30111 " truncate path\n"
30112 "\n"
30113 msgstr ""
30114
30115 # type: =head2
30116 #. type: =head2
30117 #: ../fish/guestfish-actions.pod:4399
30118 msgid "truncate-size"
30119 msgstr ""
30120
30121 # type: verbatim
30122 #. type: verbatim
30123 #: ../fish/guestfish-actions.pod:4401
30124 #, no-wrap
30125 msgid ""
30126 " truncate-size path size\n"
30127 "\n"
30128 msgstr ""
30129
30130 # type: textblock
30131 #. type: textblock
30132 #: ../fish/guestfish-actions.pod:4406
30133 msgid ""
30134 "If the current file size is less than C<size> then the file is extended to "
30135 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30136 "blocks are not allocated for the file until you write to it).  To create a "
30137 "non-sparse file of zeroes, use L</fallocate64> instead."
30138 msgstr ""
30139
30140 # type: =head2
30141 #. type: =head2
30142 #: ../fish/guestfish-actions.pod:4412
30143 msgid "tune2fs-l"
30144 msgstr ""
30145
30146 # type: verbatim
30147 #. type: verbatim
30148 #: ../fish/guestfish-actions.pod:4414
30149 #, no-wrap
30150 msgid ""
30151 " tune2fs-l device\n"
30152 "\n"
30153 msgstr ""
30154
30155 # type: =head2
30156 #. type: =head2
30157 #: ../fish/guestfish-actions.pod:4424
30158 msgid "txz-in"
30159 msgstr ""
30160
30161 # type: verbatim
30162 #. type: verbatim
30163 #: ../fish/guestfish-actions.pod:4426
30164 #, no-wrap
30165 msgid ""
30166 " txz-in (tarball|-) directory\n"
30167 "\n"
30168 msgstr ""
30169
30170 # type: =head2
30171 #. type: =head2
30172 #: ../fish/guestfish-actions.pod:4433
30173 msgid "txz-out"
30174 msgstr ""
30175
30176 # type: verbatim
30177 #. type: verbatim
30178 #: ../fish/guestfish-actions.pod:4435
30179 #, no-wrap
30180 msgid ""
30181 " txz-out directory (tarball|-)\n"
30182 "\n"
30183 msgstr ""
30184
30185 # type: =head2
30186 #. type: =head2
30187 #: ../fish/guestfish-actions.pod:4442
30188 msgid "umask"
30189 msgstr ""
30190
30191 # type: verbatim
30192 #. type: verbatim
30193 #: ../fish/guestfish-actions.pod:4444
30194 #, no-wrap
30195 msgid ""
30196 " umask mask\n"
30197 "\n"
30198 msgstr ""
30199
30200 # type: textblock
30201 #. type: textblock
30202 #: ../fish/guestfish-actions.pod:4458
30203 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30204 msgstr ""
30205
30206 # type: =head2
30207 #. type: =head2
30208 #: ../fish/guestfish-actions.pod:4463
30209 msgid "umount"
30210 msgstr ""
30211
30212 # type: =head2
30213 #. type: =head2
30214 #: ../fish/guestfish-actions.pod:4465
30215 msgid "unmount"
30216 msgstr ""
30217
30218 # type: verbatim
30219 #. type: verbatim
30220 #: ../fish/guestfish-actions.pod:4467
30221 #, no-wrap
30222 msgid ""
30223 " umount pathordevice\n"
30224 "\n"
30225 msgstr ""
30226
30227 # type: =head2
30228 #. type: =head2
30229 #: ../fish/guestfish-actions.pod:4473
30230 msgid "umount-all"
30231 msgstr ""
30232
30233 # type: =head2
30234 #. type: =head2
30235 #: ../fish/guestfish-actions.pod:4475
30236 msgid "unmount-all"
30237 msgstr ""
30238
30239 # type: verbatim
30240 #. type: verbatim
30241 #: ../fish/guestfish-actions.pod:4477
30242 #, no-wrap
30243 msgid ""
30244 " umount-all\n"
30245 "\n"
30246 msgstr ""
30247
30248 # type: =head2
30249 #. type: =head2
30250 #: ../fish/guestfish-actions.pod:4483
30251 msgid "upload"
30252 msgstr ""
30253
30254 # type: verbatim
30255 #. type: verbatim
30256 #: ../fish/guestfish-actions.pod:4485
30257 #, no-wrap
30258 msgid ""
30259 " upload (filename|-) remotefilename\n"
30260 "\n"
30261 msgstr ""
30262
30263 # type: textblock
30264 #. type: textblock
30265 #: ../fish/guestfish-actions.pod:4492
30266 msgid "See also L</download>."
30267 msgstr ""
30268
30269 # type: =head2
30270 #. type: =head2
30271 #: ../fish/guestfish-actions.pod:4496
30272 msgid "upload-offset"
30273 msgstr ""
30274
30275 # type: verbatim
30276 #. type: verbatim
30277 #: ../fish/guestfish-actions.pod:4498
30278 #, no-wrap
30279 msgid ""
30280 " upload-offset (filename|-) remotefilename offset\n"
30281 "\n"
30282 msgstr ""
30283
30284 # type: textblock
30285 #. type: textblock
30286 #: ../fish/guestfish-actions.pod:4510
30287 msgid ""
30288 "Note that there is no limit on the amount of data that can be uploaded with "
30289 "this call, unlike with L</pwrite>, and this call always writes the full "
30290 "amount unless an error occurs."
30291 msgstr ""
30292
30293 # type: textblock
30294 #. type: textblock
30295 #: ../fish/guestfish-actions.pod:4515
30296 msgid "See also L</upload>, L</pwrite>."
30297 msgstr ""
30298
30299 # type: =head2
30300 #. type: =head2
30301 #: ../fish/guestfish-actions.pod:4519
30302 msgid "utimens"
30303 msgstr ""
30304
30305 # type: verbatim
30306 #. type: verbatim
30307 #: ../fish/guestfish-actions.pod:4521
30308 #, no-wrap
30309 msgid ""
30310 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30311 "\n"
30312 msgstr ""
30313
30314 # type: =head2
30315 #. type: =head2
30316 #: ../fish/guestfish-actions.pod:4540
30317 msgid "version"
30318 msgstr ""
30319
30320 # type: verbatim
30321 #. type: verbatim
30322 #: ../fish/guestfish-actions.pod:4542
30323 #, no-wrap
30324 msgid ""
30325 " version\n"
30326 "\n"
30327 msgstr ""
30328
30329 # type: textblock
30330 #. type: textblock
30331 #: ../fish/guestfish-actions.pod:4569
30332 msgid ""
30333 "I<Note:> Don't use this call to test for availability of features.  In "
30334 "enterprise distributions we backport features from later versions into "
30335 "earlier versions, making this an unreliable way to test for features.  Use "
30336 "L</available> instead."
30337 msgstr ""
30338
30339 # type: =head2
30340 #. type: =head2
30341 #: ../fish/guestfish-actions.pod:4575
30342 msgid "vfs-label"
30343 msgstr ""
30344
30345 # type: verbatim
30346 #. type: verbatim
30347 #: ../fish/guestfish-actions.pod:4577
30348 #, no-wrap
30349 msgid ""
30350 " vfs-label device\n"
30351 "\n"
30352 msgstr ""
30353
30354 # type: textblock
30355 #. type: textblock
30356 #: ../fish/guestfish-actions.pod:4584
30357 msgid "To find a filesystem from the label, use L</findfs-label>."
30358 msgstr ""
30359
30360 # type: =head2
30361 #. type: =head2
30362 #: ../fish/guestfish-actions.pod:4586
30363 msgid "vfs-type"
30364 msgstr ""
30365
30366 # type: verbatim
30367 #. type: verbatim
30368 #: ../fish/guestfish-actions.pod:4588
30369 #, no-wrap
30370 msgid ""
30371 " vfs-type device\n"
30372 "\n"
30373 msgstr ""
30374
30375 # type: =head2
30376 #. type: =head2
30377 #: ../fish/guestfish-actions.pod:4598
30378 msgid "vfs-uuid"
30379 msgstr ""
30380
30381 # type: verbatim
30382 #. type: verbatim
30383 #: ../fish/guestfish-actions.pod:4600
30384 #, no-wrap
30385 msgid ""
30386 " vfs-uuid device\n"
30387 "\n"
30388 msgstr ""
30389
30390 # type: textblock
30391 #. type: textblock
30392 #: ../fish/guestfish-actions.pod:4607
30393 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30394 msgstr ""
30395
30396 # type: =head2
30397 #. type: =head2
30398 #: ../fish/guestfish-actions.pod:4609
30399 msgid "vg-activate"
30400 msgstr ""
30401
30402 # type: verbatim
30403 #. type: verbatim
30404 #: ../fish/guestfish-actions.pod:4611
30405 #, no-wrap
30406 msgid ""
30407 " vg-activate true|false 'volgroups ...'\n"
30408 "\n"
30409 msgstr ""
30410
30411 # type: =head2
30412 #. type: =head2
30413 #: ../fish/guestfish-actions.pod:4624
30414 msgid "vg-activate-all"
30415 msgstr ""
30416
30417 # type: verbatim
30418 #. type: verbatim
30419 #: ../fish/guestfish-actions.pod:4626
30420 #, no-wrap
30421 msgid ""
30422 " vg-activate-all true|false\n"
30423 "\n"
30424 msgstr ""
30425
30426 # type: =head2
30427 #. type: =head2
30428 #: ../fish/guestfish-actions.pod:4636
30429 msgid "vgcreate"
30430 msgstr ""
30431
30432 # type: verbatim
30433 #. type: verbatim
30434 #: ../fish/guestfish-actions.pod:4638
30435 #, no-wrap
30436 msgid ""
30437 " vgcreate volgroup 'physvols ...'\n"
30438 "\n"
30439 msgstr ""
30440
30441 # type: =head2
30442 #. type: =head2
30443 #: ../fish/guestfish-actions.pod:4643
30444 msgid "vglvuuids"
30445 msgstr ""
30446
30447 # type: verbatim
30448 #. type: verbatim
30449 #: ../fish/guestfish-actions.pod:4645
30450 #, no-wrap
30451 msgid ""
30452 " vglvuuids vgname\n"
30453 "\n"
30454 msgstr ""
30455
30456 # type: textblock
30457 #. type: textblock
30458 #: ../fish/guestfish-actions.pod:4650
30459 msgid ""
30460 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30461 "logical volumes and volume groups."
30462 msgstr ""
30463
30464 # type: textblock
30465 #. type: textblock
30466 #: ../fish/guestfish-actions.pod:4653
30467 msgid "See also L</vgpvuuids>."
30468 msgstr ""
30469
30470 # type: =head2
30471 #. type: =head2
30472 #: ../fish/guestfish-actions.pod:4655
30473 msgid "vgpvuuids"
30474 msgstr ""
30475
30476 # type: verbatim
30477 #. type: verbatim
30478 #: ../fish/guestfish-actions.pod:4657
30479 #, no-wrap
30480 msgid ""
30481 " vgpvuuids vgname\n"
30482 "\n"
30483 msgstr ""
30484
30485 # type: textblock
30486 #. type: textblock
30487 #: ../fish/guestfish-actions.pod:4662
30488 msgid ""
30489 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30490 "physical volumes and volume groups."
30491 msgstr ""
30492
30493 # type: textblock
30494 #. type: textblock
30495 #: ../fish/guestfish-actions.pod:4665
30496 msgid "See also L</vglvuuids>."
30497 msgstr ""
30498
30499 # type: =head2
30500 #. type: =head2
30501 #: ../fish/guestfish-actions.pod:4667
30502 msgid "vgremove"
30503 msgstr ""
30504
30505 # type: verbatim
30506 #. type: verbatim
30507 #: ../fish/guestfish-actions.pod:4669
30508 #, no-wrap
30509 msgid ""
30510 " vgremove vgname\n"
30511 "\n"
30512 msgstr ""
30513
30514 # type: =head2
30515 #. type: =head2
30516 #: ../fish/guestfish-actions.pod:4676
30517 msgid "vgrename"
30518 msgstr ""
30519
30520 # type: verbatim
30521 #. type: verbatim
30522 #: ../fish/guestfish-actions.pod:4678
30523 #, no-wrap
30524 msgid ""
30525 " vgrename volgroup newvolgroup\n"
30526 "\n"
30527 msgstr ""
30528
30529 # type: =head2
30530 #. type: =head2
30531 #: ../fish/guestfish-actions.pod:4682
30532 msgid "vgs"
30533 msgstr ""
30534
30535 # type: verbatim
30536 #. type: verbatim
30537 #: ../fish/guestfish-actions.pod:4684
30538 #, no-wrap
30539 msgid ""
30540 " vgs\n"
30541 "\n"
30542 msgstr ""
30543
30544 # type: textblock
30545 #. type: textblock
30546 #: ../fish/guestfish-actions.pod:4692
30547 msgid "See also L</vgs-full>."
30548 msgstr ""
30549
30550 # type: =head2
30551 #. type: =head2
30552 #: ../fish/guestfish-actions.pod:4694
30553 msgid "vgs-full"
30554 msgstr ""
30555
30556 # type: verbatim
30557 #. type: verbatim
30558 #: ../fish/guestfish-actions.pod:4696
30559 #, no-wrap
30560 msgid ""
30561 " vgs-full\n"
30562 "\n"
30563 msgstr ""
30564
30565 # type: =head2
30566 #. type: =head2
30567 #: ../fish/guestfish-actions.pod:4701
30568 msgid "vgscan"
30569 msgstr ""
30570
30571 # type: verbatim
30572 #. type: verbatim
30573 #: ../fish/guestfish-actions.pod:4703
30574 #, no-wrap
30575 msgid ""
30576 " vgscan\n"
30577 "\n"
30578 msgstr ""
30579
30580 # type: =head2
30581 #. type: =head2
30582 #: ../fish/guestfish-actions.pod:4708
30583 msgid "vguuid"
30584 msgstr ""
30585
30586 # type: verbatim
30587 #. type: verbatim
30588 #: ../fish/guestfish-actions.pod:4710
30589 #, no-wrap
30590 msgid ""
30591 " vguuid vgname\n"
30592 "\n"
30593 msgstr ""
30594
30595 # type: =head2
30596 #. type: =head2
30597 #: ../fish/guestfish-actions.pod:4714
30598 msgid "wc-c"
30599 msgstr ""
30600
30601 # type: verbatim
30602 #. type: verbatim
30603 #: ../fish/guestfish-actions.pod:4716
30604 #, no-wrap
30605 msgid ""
30606 " wc-c path\n"
30607 "\n"
30608 msgstr ""
30609
30610 # type: =head2
30611 #. type: =head2
30612 #: ../fish/guestfish-actions.pod:4721
30613 msgid "wc-l"
30614 msgstr ""
30615
30616 # type: verbatim
30617 #. type: verbatim
30618 #: ../fish/guestfish-actions.pod:4723
30619 #, no-wrap
30620 msgid ""
30621 " wc-l path\n"
30622 "\n"
30623 msgstr ""
30624
30625 # type: =head2
30626 #. type: =head2
30627 #: ../fish/guestfish-actions.pod:4728
30628 msgid "wc-w"
30629 msgstr ""
30630
30631 # type: verbatim
30632 #. type: verbatim
30633 #: ../fish/guestfish-actions.pod:4730
30634 #, no-wrap
30635 msgid ""
30636 " wc-w path\n"
30637 "\n"
30638 msgstr ""
30639
30640 # type: =head2
30641 #. type: =head2
30642 #: ../fish/guestfish-actions.pod:4735
30643 msgid "write"
30644 msgstr ""
30645
30646 # type: verbatim
30647 #. type: verbatim
30648 #: ../fish/guestfish-actions.pod:4737
30649 #, no-wrap
30650 msgid ""
30651 " write path content\n"
30652 "\n"
30653 msgstr ""
30654
30655 # type: =head2
30656 #. type: =head2
30657 #: ../fish/guestfish-actions.pod:4745
30658 msgid "write-file"
30659 msgstr ""
30660
30661 # type: verbatim
30662 #. type: verbatim
30663 #: ../fish/guestfish-actions.pod:4747
30664 #, no-wrap
30665 msgid ""
30666 " write-file path content size\n"
30667 "\n"
30668 msgstr ""
30669
30670 # type: =head2
30671 #. type: =head2
30672 #: ../fish/guestfish-actions.pod:4770
30673 msgid "zegrep"
30674 msgstr ""
30675
30676 # type: verbatim
30677 #. type: verbatim
30678 #: ../fish/guestfish-actions.pod:4772
30679 #, no-wrap
30680 msgid ""
30681 " zegrep regex path\n"
30682 "\n"
30683 msgstr ""
30684
30685 # type: =head2
30686 #. type: =head2
30687 #: ../fish/guestfish-actions.pod:4780
30688 msgid "zegrepi"
30689 msgstr ""
30690
30691 # type: verbatim
30692 #. type: verbatim
30693 #: ../fish/guestfish-actions.pod:4782
30694 #, no-wrap
30695 msgid ""
30696 " zegrepi regex path\n"
30697 "\n"
30698 msgstr ""
30699
30700 # type: =head2
30701 #. type: =head2
30702 #: ../fish/guestfish-actions.pod:4790
30703 msgid "zero"
30704 msgstr ""
30705
30706 # type: verbatim
30707 #. type: verbatim
30708 #: ../fish/guestfish-actions.pod:4792
30709 #, no-wrap
30710 msgid ""
30711 " zero device\n"
30712 "\n"
30713 msgstr ""
30714
30715 # type: textblock
30716 #. type: textblock
30717 #: ../fish/guestfish-actions.pod:4800
30718 msgid "See also: L</zero-device>, L</scrub-device>."
30719 msgstr ""
30720
30721 # type: =head2
30722 #. type: =head2
30723 #: ../fish/guestfish-actions.pod:4802
30724 msgid "zero-device"
30725 msgstr ""
30726
30727 # type: verbatim
30728 #. type: verbatim
30729 #: ../fish/guestfish-actions.pod:4804
30730 #, no-wrap
30731 msgid ""
30732 " zero-device device\n"
30733 "\n"
30734 msgstr ""
30735
30736 # type: textblock
30737 #. type: textblock
30738 #: ../fish/guestfish-actions.pod:4806
30739 msgid ""
30740 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30741 "which just zeroes the first few blocks of a device."
30742 msgstr ""
30743
30744 # type: =head2
30745 #. type: =head2
30746 #: ../fish/guestfish-actions.pod:4813
30747 msgid "zerofree"
30748 msgstr ""
30749
30750 # type: verbatim
30751 #. type: verbatim
30752 #: ../fish/guestfish-actions.pod:4815
30753 #, no-wrap
30754 msgid ""
30755 " zerofree device\n"
30756 "\n"
30757 msgstr ""
30758
30759 # type: =head2
30760 #. type: =head2
30761 #: ../fish/guestfish-actions.pod:4828
30762 msgid "zfgrep"
30763 msgstr ""
30764
30765 # type: verbatim
30766 #. type: verbatim
30767 #: ../fish/guestfish-actions.pod:4830
30768 #, no-wrap
30769 msgid ""
30770 " zfgrep pattern path\n"
30771 "\n"
30772 msgstr ""
30773
30774 # type: =head2
30775 #. type: =head2
30776 #: ../fish/guestfish-actions.pod:4838
30777 msgid "zfgrepi"
30778 msgstr ""
30779
30780 # type: verbatim
30781 #. type: verbatim
30782 #: ../fish/guestfish-actions.pod:4840
30783 #, no-wrap
30784 msgid ""
30785 " zfgrepi pattern path\n"
30786 "\n"
30787 msgstr ""
30788
30789 # type: =head2
30790 #. type: =head2
30791 #: ../fish/guestfish-actions.pod:4848
30792 msgid "zfile"
30793 msgstr ""
30794
30795 # type: verbatim
30796 #. type: verbatim
30797 #: ../fish/guestfish-actions.pod:4850
30798 #, no-wrap
30799 msgid ""
30800 " zfile meth path\n"
30801 "\n"
30802 msgstr ""
30803
30804 # type: textblock
30805 #. type: textblock
30806 #: ../fish/guestfish-actions.pod:4857
30807 msgid ""
30808 "Since 1.0.63, use L</file> instead which can now process compressed files."
30809 msgstr ""
30810
30811 # type: =head2
30812 #. type: =head2
30813 #: ../fish/guestfish-actions.pod:4867
30814 msgid "zgrep"
30815 msgstr ""
30816
30817 # type: verbatim
30818 #. type: verbatim
30819 #: ../fish/guestfish-actions.pod:4869
30820 #, no-wrap
30821 msgid ""
30822 " zgrep regex path\n"
30823 "\n"
30824 msgstr ""
30825
30826 # type: =head2
30827 #. type: =head2
30828 #: ../fish/guestfish-actions.pod:4877
30829 msgid "zgrepi"
30830 msgstr ""
30831
30832 # type: verbatim
30833 #. type: verbatim
30834 #: ../fish/guestfish-actions.pod:4879
30835 #, no-wrap
30836 msgid ""
30837 " zgrepi regex path\n"
30838 "\n"
30839 msgstr ""
30840
30841 # type: =head2
30842 #. type: =head2
30843 #: ../fish/guestfish-commands.pod:1
30844 msgid "alloc"
30845 msgstr ""
30846
30847 # type: =head2
30848 #. type: =head2
30849 #: ../fish/guestfish-commands.pod:3
30850 msgid "allocate"
30851 msgstr ""
30852
30853 # type: verbatim
30854 #. type: verbatim
30855 #: ../fish/guestfish-commands.pod:5
30856 #, no-wrap
30857 msgid ""
30858 " alloc filename size\n"
30859 "\n"
30860 msgstr ""
30861
30862 # type: textblock
30863 #. type: textblock
30864 #: ../fish/guestfish-commands.pod:7
30865 msgid ""
30866 "This creates an empty (zeroed) file of the given size, and then adds so it "
30867 "can be further examined."
30868 msgstr ""
30869
30870 # type: textblock
30871 #. type: textblock
30872 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30873 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30874 msgstr ""
30875
30876 # type: textblock
30877 #. type: textblock
30878 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
30879 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30880 msgstr ""
30881
30882 # type: textblock
30883 #. type: textblock
30884 #: ../fish/guestfish-commands.pod:14
30885 msgid ""
30886 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30887 "image, see L</PREPARED DISK IMAGES>."
30888 msgstr ""
30889
30890 # type: =head2
30891 #. type: =head2
30892 #: ../fish/guestfish-commands.pod:17
30893 msgid "copy-in"
30894 msgstr ""
30895
30896 # type: verbatim
30897 #. type: verbatim
30898 #: ../fish/guestfish-commands.pod:19
30899 #, no-wrap
30900 msgid ""
30901 " copy-in local [local ...] /remotedir\n"
30902 "\n"
30903 msgstr ""
30904
30905 # type: textblock
30906 #. type: textblock
30907 #: ../fish/guestfish-commands.pod:21
30908 msgid ""
30909 "C<copy-in> copies local files or directories recursively into the disk "
30910 "image, placing them in the directory called C</remotedir> (which must "
30911 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
30912 "other commands as necessary."
30913 msgstr ""
30914
30915 # type: textblock
30916 #. type: textblock
30917 #: ../fish/guestfish-commands.pod:26
30918 msgid ""
30919 "Multiple local files and directories can be specified, but the last "
30920 "parameter must always be a remote directory.  Wildcards cannot be used."
30921 msgstr ""
30922
30923 # type: =head2
30924 #. type: =head2
30925 #: ../fish/guestfish-commands.pod:30
30926 msgid "copy-out"
30927 msgstr ""
30928
30929 # type: verbatim
30930 #. type: verbatim
30931 #: ../fish/guestfish-commands.pod:32
30932 #, no-wrap
30933 msgid ""
30934 " copy-out remote [remote ...] localdir\n"
30935 "\n"
30936 msgstr ""
30937
30938 # type: textblock
30939 #. type: textblock
30940 #: ../fish/guestfish-commands.pod:34
30941 msgid ""
30942 "C<copy-out> copies remote files or directories recursively out of the disk "
30943 "image, placing them on the host disk in a local directory called C<localdir> "
30944 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
30945 "download>, L</tar-out> and other commands as necessary."
30946 msgstr ""
30947
30948 # type: textblock
30949 #. type: textblock
30950 #: ../fish/guestfish-commands.pod:40
30951 msgid ""
30952 "Multiple remote files and directories can be specified, but the last "
30953 "parameter must always be a local directory.  To download to the current "
30954 "directory, use C<.> as in:"
30955 msgstr ""
30956
30957 # type: verbatim
30958 #. type: verbatim
30959 #: ../fish/guestfish-commands.pod:44
30960 #, no-wrap
30961 msgid ""
30962 " copy-out /home .\n"
30963 "\n"
30964 msgstr ""
30965
30966 # type: textblock
30967 #. type: textblock
30968 #: ../fish/guestfish-commands.pod:46
30969 msgid ""
30970 "Wildcards cannot be used in the ordinary command, but you can use them with "
30971 "the help of L</glob> like this:"
30972 msgstr ""
30973
30974 # type: verbatim
30975 #. type: verbatim
30976 #: ../fish/guestfish-commands.pod:49
30977 #, no-wrap
30978 msgid ""
30979 " glob copy-out /home/* .\n"
30980 "\n"
30981 msgstr ""
30982
30983 # type: =head2
30984 #. type: =head2
30985 #: ../fish/guestfish-commands.pod:51
30986 msgid "echo"
30987 msgstr ""
30988
30989 # type: verbatim
30990 #. type: verbatim
30991 #: ../fish/guestfish-commands.pod:53
30992 #, no-wrap
30993 msgid ""
30994 " echo [params ...]\n"
30995 "\n"
30996 msgstr ""
30997
30998 # type: textblock
30999 #. type: textblock
31000 #: ../fish/guestfish-commands.pod:55
31001 msgid "This echos the parameters to the terminal."
31002 msgstr ""
31003
31004 # type: =head2
31005 #. type: =head2
31006 #: ../fish/guestfish-commands.pod:57
31007 msgid "edit"
31008 msgstr ""
31009
31010 # type: =head2
31011 #. type: =head2
31012 #: ../fish/guestfish-commands.pod:59
31013 msgid "vi"
31014 msgstr ""
31015
31016 # type: =head2
31017 #. type: =head2
31018 #: ../fish/guestfish-commands.pod:61
31019 msgid "emacs"
31020 msgstr ""
31021
31022 # type: verbatim
31023 #. type: verbatim
31024 #: ../fish/guestfish-commands.pod:63
31025 #, no-wrap
31026 msgid ""
31027 " edit filename\n"
31028 "\n"
31029 msgstr ""
31030
31031 # type: textblock
31032 #. type: textblock
31033 #: ../fish/guestfish-commands.pod:65
31034 msgid ""
31035 "This is used to edit a file.  It downloads the file, edits it locally using "
31036 "your editor, then uploads the result."
31037 msgstr ""
31038
31039 # type: textblock
31040 #. type: textblock
31041 #: ../fish/guestfish-commands.pod:68
31042 msgid ""
31043 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31044 "or C<emacs> you will get those corresponding editors."
31045 msgstr ""
31046
31047 # type: =head2
31048 #. type: =head2
31049 #: ../fish/guestfish-commands.pod:72
31050 msgid "glob"
31051 msgstr ""
31052
31053 # type: verbatim
31054 #. type: verbatim
31055 #: ../fish/guestfish-commands.pod:74
31056 #, no-wrap
31057 msgid ""
31058 " glob command args...\n"
31059 "\n"
31060 msgstr ""
31061
31062 # type: textblock
31063 #. type: textblock
31064 #: ../fish/guestfish-commands.pod:76
31065 msgid ""
31066 "Expand wildcards in any paths in the args list, and run C<command> "
31067 "repeatedly on each matching path."
31068 msgstr ""
31069
31070 # type: textblock
31071 #. type: textblock
31072 #: ../fish/guestfish-commands.pod:79
31073 msgid "See L</WILDCARDS AND GLOBBING>."
31074 msgstr ""
31075
31076 # type: =head2
31077 #. type: =head2
31078 #: ../fish/guestfish-commands.pod:81
31079 msgid "hexedit"
31080 msgstr ""
31081
31082 # type: verbatim
31083 #. type: verbatim
31084 #: ../fish/guestfish-commands.pod:83
31085 #, no-wrap
31086 msgid ""
31087 " hexedit <filename|device>\n"
31088 " hexedit <filename|device> <max>\n"
31089 " hexedit <filename|device> <start> <max>\n"
31090 "\n"
31091 msgstr ""
31092
31093 # type: textblock
31094 #. type: textblock
31095 #: ../fish/guestfish-commands.pod:87
31096 msgid ""
31097 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31098 "device."
31099 msgstr ""
31100
31101 # type: textblock
31102 #. type: textblock
31103 #: ../fish/guestfish-commands.pod:90
31104 msgid ""
31105 "This command works by downloading potentially the whole file or device, "
31106 "editing it locally, then uploading it.  If the file or device is large, you "
31107 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31108 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31109 "usual modifiers allowed such as C<1M> (1 megabyte)."
31110 msgstr ""
31111
31112 # type: textblock
31113 #. type: textblock
31114 #: ../fish/guestfish-commands.pod:97
31115 msgid "For example to edit the first few sectors of a disk you might do:"
31116 msgstr ""
31117
31118 # type: verbatim
31119 #. type: verbatim
31120 #: ../fish/guestfish-commands.pod:100
31121 #, no-wrap
31122 msgid ""
31123 " hexedit /dev/sda 1M\n"
31124 "\n"
31125 msgstr ""
31126
31127 # type: textblock
31128 #. type: textblock
31129 #: ../fish/guestfish-commands.pod:102
31130 msgid ""
31131 "which would allow you to edit anywhere within the first megabyte of the disk."
31132 msgstr ""
31133
31134 # type: textblock
31135 #. type: textblock
31136 #: ../fish/guestfish-commands.pod:105
31137 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31138 msgstr ""
31139
31140 # type: verbatim
31141 #. type: verbatim
31142 #: ../fish/guestfish-commands.pod:107
31143 #, no-wrap
31144 msgid ""
31145 " hexedit /dev/sda1 0x400 0x400\n"
31146 "\n"
31147 msgstr ""
31148
31149 # type: textblock
31150 #. type: textblock
31151 #: ../fish/guestfish-commands.pod:109
31152 msgid "(assuming the superblock is in the standard location)."
31153 msgstr ""
31154
31155 # type: textblock
31156 #. type: textblock
31157 #: ../fish/guestfish-commands.pod:111
31158 msgid ""
31159 "This command requires the external L<hexedit(1)> program.  You can specify "
31160 "another program to use by setting the C<HEXEDITOR> environment variable."
31161 msgstr ""
31162
31163 # type: textblock
31164 #. type: textblock
31165 #: ../fish/guestfish-commands.pod:115
31166 msgid "See also L</hexdump>."
31167 msgstr ""
31168
31169 # type: =head2
31170 #. type: =head2
31171 #: ../fish/guestfish-commands.pod:117
31172 msgid "lcd"
31173 msgstr ""
31174
31175 # type: verbatim
31176 #. type: verbatim
31177 #: ../fish/guestfish-commands.pod:119
31178 #, no-wrap
31179 msgid ""
31180 " lcd directory\n"
31181 "\n"
31182 msgstr ""
31183
31184 # type: textblock
31185 #. type: textblock
31186 #: ../fish/guestfish-commands.pod:121
31187 msgid ""
31188 "Change the local directory, ie. the current directory of guestfish itself."
31189 msgstr ""
31190
31191 # type: textblock
31192 #. type: textblock
31193 #: ../fish/guestfish-commands.pod:124
31194 msgid "Note that C<!cd> won't do what you might expect."
31195 msgstr ""
31196
31197 # type: =head2
31198 #. type: =head2
31199 #: ../fish/guestfish-commands.pod:126
31200 msgid "man"
31201 msgstr ""
31202
31203 # type: =head2
31204 #. type: =head2
31205 #: ../fish/guestfish-commands.pod:128
31206 msgid "manual"
31207 msgstr ""
31208
31209 # type: verbatim
31210 #. type: verbatim
31211 #: ../fish/guestfish-commands.pod:130
31212 #, no-wrap
31213 msgid ""
31214 "  man\n"
31215 "\n"
31216 msgstr ""
31217
31218 # type: textblock
31219 #. type: textblock
31220 #: ../fish/guestfish-commands.pod:132
31221 msgid "Opens the manual page for guestfish."
31222 msgstr ""
31223
31224 # type: =head2
31225 #. type: =head2
31226 #: ../fish/guestfish-commands.pod:134
31227 msgid "more"
31228 msgstr ""
31229
31230 # type: =head2
31231 #. type: =head2
31232 #: ../fish/guestfish-commands.pod:136
31233 msgid "less"
31234 msgstr ""
31235
31236 # type: verbatim
31237 #. type: verbatim
31238 #: ../fish/guestfish-commands.pod:138
31239 #, no-wrap
31240 msgid ""
31241 " more filename\n"
31242 "\n"
31243 msgstr ""
31244
31245 # type: verbatim
31246 #. type: verbatim
31247 #: ../fish/guestfish-commands.pod:140
31248 #, no-wrap
31249 msgid ""
31250 " less filename\n"
31251 "\n"
31252 msgstr ""
31253
31254 # type: textblock
31255 #. type: textblock
31256 #: ../fish/guestfish-commands.pod:142
31257 msgid "This is used to view a file."
31258 msgstr ""
31259
31260 # type: textblock
31261 #. type: textblock
31262 #: ../fish/guestfish-commands.pod:144
31263 msgid ""
31264 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31265 "C<less> you will get the C<less> command specifically."
31266 msgstr ""
31267
31268 # type: =head2
31269 #. type: =head2
31270 #: ../fish/guestfish-commands.pod:147
31271 msgid "reopen"
31272 msgstr ""
31273
31274 # type: verbatim
31275 #. type: verbatim
31276 #: ../fish/guestfish-commands.pod:149
31277 #, no-wrap
31278 msgid ""
31279 "  reopen\n"
31280 "\n"
31281 msgstr ""
31282
31283 # type: textblock
31284 #. type: textblock
31285 #: ../fish/guestfish-commands.pod:151
31286 msgid ""
31287 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31288 "normally, because the handle is closed properly when guestfish exits.  "
31289 "However this is occasionally useful for testing."
31290 msgstr ""
31291
31292 # type: =head2
31293 #. type: =head2
31294 #: ../fish/guestfish-commands.pod:155
31295 msgid "sparse"
31296 msgstr ""
31297
31298 # type: verbatim
31299 #. type: verbatim
31300 #: ../fish/guestfish-commands.pod:157
31301 #, no-wrap
31302 msgid ""
31303 " sparse filename size\n"
31304 "\n"
31305 msgstr ""
31306
31307 # type: textblock
31308 #. type: textblock
31309 #: ../fish/guestfish-commands.pod:159
31310 msgid ""
31311 "This creates an empty sparse file of the given size, and then adds so it can "
31312 "be further examined."
31313 msgstr ""
31314
31315 # type: textblock
31316 #. type: textblock
31317 #: ../fish/guestfish-commands.pod:162
31318 msgid ""
31319 "In all respects it works the same as the L</alloc> command, except that the "
31320 "image file is allocated sparsely, which means that disk blocks are not "
31321 "assigned to the file until they are needed.  Sparse disk files only use "
31322 "space when written to, but they are slower and there is a danger you could "
31323 "run out of real disk space during a write operation."
31324 msgstr ""
31325
31326 # type: =head2
31327 #. type: =head2
31328 #: ../fish/guestfish-commands.pod:172
31329 msgid "supported"
31330 msgstr ""
31331
31332 # type: verbatim
31333 #. type: verbatim
31334 #: ../fish/guestfish-commands.pod:174
31335 #, no-wrap
31336 msgid ""
31337 " supported\n"
31338 "\n"
31339 msgstr ""
31340
31341 # type: textblock
31342 #. type: textblock
31343 #: ../fish/guestfish-commands.pod:176
31344 msgid ""
31345 "This command returns a list of the optional groups known to the daemon, and "
31346 "indicates which ones are supported by this build of the libguestfs appliance."
31347 msgstr ""
31348
31349 # type: textblock
31350 #. type: textblock
31351 #: ../fish/guestfish-commands.pod:180
31352 msgid "See also L<guestfs(3)/AVAILABILITY>."
31353 msgstr ""
31354
31355 # type: =head2
31356 #. type: =head2
31357 #: ../fish/guestfish-commands.pod:182
31358 msgid "time"
31359 msgstr ""
31360
31361 # type: verbatim
31362 #. type: verbatim
31363 #: ../fish/guestfish-commands.pod:184
31364 #, no-wrap
31365 msgid ""
31366 " time command args...\n"
31367 "\n"
31368 msgstr ""
31369
31370 # type: textblock
31371 #. type: textblock
31372 #: ../fish/guestfish-commands.pod:186
31373 msgid ""
31374 "Run the command as usual, but print the elapsed time afterwards.  This can "
31375 "be useful for benchmarking operations."
31376 msgstr ""
31377
31378 # type: textblock
31379 #. type: textblock
31380 #: ../test-tool/libguestfs-test-tool.pod:5
31381 msgid "libguestfs-test-tool - End user tests for libguestfs"
31382 msgstr ""
31383
31384 # type: verbatim
31385 #. type: verbatim
31386 #: ../test-tool/libguestfs-test-tool.pod:9
31387 #, no-wrap
31388 msgid ""
31389 " libguestfs-test-tool [--options]\n"
31390 "\n"
31391 msgstr ""
31392
31393 # type: textblock
31394 #. type: textblock
31395 #: ../test-tool/libguestfs-test-tool.pod:13
31396 msgid ""
31397 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31398 "and developers, to allow them to check basic libguestfs functionality is "
31399 "working.  This is needed because libguestfs occasionally breaks for reasons "
31400 "beyond our control: usually because of changes in the underlying qemu or "
31401 "kernel packages, or the host environment."
31402 msgstr ""
31403
31404 # type: textblock
31405 #. type: textblock
31406 #: ../test-tool/libguestfs-test-tool.pod:20
31407 msgid "If you suspect a problem in libguestfs, then just run:"
31408 msgstr ""
31409
31410 # type: verbatim
31411 #. type: verbatim
31412 #: ../test-tool/libguestfs-test-tool.pod:22
31413 #, no-wrap
31414 msgid ""
31415 " libguestfs-test-tool\n"
31416 "\n"
31417 msgstr ""
31418
31419 # type: textblock
31420 #. type: textblock
31421 #: ../test-tool/libguestfs-test-tool.pod:24
31422 msgid "It will print lots of diagnostic messages."
31423 msgstr ""
31424
31425 # type: textblock
31426 #. type: textblock
31427 #: ../test-tool/libguestfs-test-tool.pod:26
31428 msgid "If it runs to completion successfully, you will see this near the end:"
31429 msgstr ""
31430
31431 # type: verbatim
31432 #. type: verbatim
31433 #: ../test-tool/libguestfs-test-tool.pod:28
31434 #, no-wrap
31435 msgid ""
31436 " ===== TEST FINISHED OK =====\n"
31437 "\n"
31438 msgstr ""
31439
31440 # type: textblock
31441 #. type: textblock
31442 #: ../test-tool/libguestfs-test-tool.pod:30
31443 msgid "and the test tool will exit with code 0."
31444 msgstr ""
31445
31446 # type: textblock
31447 #. type: textblock
31448 #: ../test-tool/libguestfs-test-tool.pod:32
31449 msgid ""
31450 "If it fails (and/or exits with non-zero error code), please paste the "
31451 "B<complete, unedited> output of the test tool into a bug report.  More "
31452 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31453 "> website."
31454 msgstr ""
31455
31456 # type: =item
31457 #. type: =item
31458 #: ../test-tool/libguestfs-test-tool.pod:41
31459 msgid "I<--help>"
31460 msgstr ""
31461
31462 # type: textblock
31463 #. type: textblock
31464 #: ../test-tool/libguestfs-test-tool.pod:43
31465 msgid "Display short usage information and exit."
31466 msgstr ""
31467
31468 # type: =item
31469 #. type: =item
31470 #: ../test-tool/libguestfs-test-tool.pod:45
31471 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
31472 msgstr ""
31473
31474 # type: textblock
31475 #. type: textblock
31476 #: ../test-tool/libguestfs-test-tool.pod:47
31477 msgid ""
31478 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
31479 "normally look in the C<$libexec> directory that was configured when the tool "
31480 "was built."
31481 msgstr ""
31482
31483 # type: =item
31484 #. type: =item
31485 #: ../test-tool/libguestfs-test-tool.pod:51
31486 msgid "I<--qemu qemu_binary>"
31487 msgstr ""
31488
31489 # type: textblock
31490 #. type: textblock
31491 #: ../test-tool/libguestfs-test-tool.pod:53
31492 msgid ""
31493 "If you have downloaded another qemu binary, point this option at the full "
31494 "path of the binary to try it."
31495 msgstr ""
31496
31497 # type: =item
31498 #. type: =item
31499 #: ../test-tool/libguestfs-test-tool.pod:56
31500 msgid "I<--qemudir qemu_source_dir>"
31501 msgstr ""
31502
31503 # type: textblock
31504 #. type: textblock
31505 #: ../test-tool/libguestfs-test-tool.pod:58
31506 msgid ""
31507 "If you have compiled qemu from source, point this option at the source "
31508 "directory to try it."
31509 msgstr ""
31510
31511 # type: =item
31512 #. type: =item
31513 #: ../test-tool/libguestfs-test-tool.pod:61
31514 msgid "I<--timeout N>"
31515 msgstr ""
31516
31517 # type: textblock
31518 #. type: textblock
31519 #: ../test-tool/libguestfs-test-tool.pod:63
31520 msgid ""
31521 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31522 "does not usually need to be adjusted unless your machine is very slow."
31523 msgstr ""
31524
31525 # type: =head1
31526 #. type: =head1
31527 #: ../test-tool/libguestfs-test-tool.pod:69
31528 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31529 msgstr ""
31530
31531 # type: textblock
31532 #. type: textblock
31533 #: ../test-tool/libguestfs-test-tool.pod:71
31534 msgid ""
31535 "If you have compiled another version of qemu from source and would like to "
31536 "try that, then you can use the I<--qemudir> option to point to the qemu "
31537 "source directory."
31538 msgstr ""
31539
31540 # type: textblock
31541 #. type: textblock
31542 #: ../test-tool/libguestfs-test-tool.pod:75
31543 msgid ""
31544 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31545 "option to point to the binary."
31546 msgstr ""
31547
31548 # type: textblock
31549 #. type: textblock
31550 #: ../test-tool/libguestfs-test-tool.pod:78
31551 msgid ""
31552 "When using an alternate qemu with libguestfs, usually you would need to "
31553 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31554 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31555 "use either of the I<--qemudir> or I<--qemu> options."
31556 msgstr ""
31557
31558 # type: textblock
31559 #. type: textblock
31560 #: ../test-tool/libguestfs-test-tool.pod:85
31561 msgid ""
31562 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31563 "I<1> if there was an error."
31564 msgstr ""
31565
31566 # type: =item
31567 #. type: =item
31568 #: ../test-tool/libguestfs-test-tool.pod:92
31569 msgid "/usr/libexec/libguestfs-test-tool-helper"
31570 msgstr ""
31571
31572 # type: textblock
31573 #. type: textblock
31574 #: ../test-tool/libguestfs-test-tool.pod:94
31575 msgid ""
31576 "This helper program is run inside the appliance and provides additional "
31577 "tests."
31578 msgstr ""
31579
31580 # type: =item
31581 #. type: =item
31582 #: ../test-tool/libguestfs-test-tool.pod:97
31583 msgid "/usr/bin/mkisofs"
31584 msgstr ""
31585
31586 # type: textblock
31587 #. type: textblock
31588 #: ../test-tool/libguestfs-test-tool.pod:99
31589 msgid ""
31590 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
31591 "which is used as part of the tests."
31592 msgstr ""
31593
31594 # type: textblock
31595 #. type: textblock
31596 #: ../test-tool/libguestfs-test-tool.pod:106
31597 msgid ""
31598 "For the full list of environment variables which may affect libguestfs, "
31599 "please see the L<guestfs(3)> manual page."
31600 msgstr ""
31601
31602 # type: textblock
31603 #. type: textblock
31604 #: ../test-tool/libguestfs-test-tool.pod:111
31605 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31606 msgstr ""
31607
31608 # type: textblock
31609 #. type: textblock
31610 #: ../test-tool/libguestfs-test-tool.pod:121
31611 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
31612 msgstr ""
31613
31614 # type: textblock
31615 #. type: textblock
31616 #: ../fuse/guestmount.pod:5
31617 msgid ""
31618 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31619 msgstr ""
31620
31621 # type: verbatim
31622 #. type: verbatim
31623 #: ../fuse/guestmount.pod:9
31624 #, no-wrap
31625 msgid ""
31626 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31627 "\n"
31628 msgstr ""
31629
31630 # type: verbatim
31631 #. type: verbatim
31632 #: ../fuse/guestmount.pod:11
31633 #, no-wrap
31634 msgid ""
31635 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31636 "\n"
31637 msgstr ""
31638
31639 # type: verbatim
31640 #. type: verbatim
31641 #: ../fuse/guestmount.pod:13
31642 #, no-wrap
31643 msgid ""
31644 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31645 "\n"
31646 msgstr ""
31647
31648 # type: textblock
31649 #. type: textblock
31650 #: ../fuse/guestmount.pod:17
31651 msgid ""
31652 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31653 "machines.  If you do this, you risk disk corruption in the VM."
31654 msgstr ""
31655
31656 # type: textblock
31657 #. type: textblock
31658 #: ../fuse/guestmount.pod:22
31659 msgid ""
31660 "The guestmount program can be used to mount virtual machine filesystems and "
31661 "other disk images on the host.  It uses libguestfs for access to the guest "
31662 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31663 "a mountable device."
31664 msgstr ""
31665
31666 # type: textblock
31667 #. type: textblock
31668 #: ../fuse/guestmount.pod:27
31669 msgid ""
31670 "Along with other options, you have to give at least one device (I<-a> "
31671 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31672 "option) or use the I<-i> inspection option.  How this works is better "
31673 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31674 "below."
31675 msgstr ""
31676
31677 # type: textblock
31678 #. type: textblock
31679 #: ../fuse/guestmount.pod:33
31680 msgid ""
31681 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31682 "by you, and the filesystem will not be visible to any other users unless you "
31683 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31684 "the filesystem, use the C<fusermount -u> command."
31685 msgstr ""
31686
31687 # type: textblock
31688 #. type: textblock
31689 #: ../fuse/guestmount.pod:41
31690 msgid ""
31691 "For a typical Windows guest which has its main filesystem on the first "
31692 "partition:"
31693 msgstr ""
31694
31695 # type: verbatim
31696 #. type: verbatim
31697 #: ../fuse/guestmount.pod:44
31698 #, no-wrap
31699 msgid ""
31700 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31701 "\n"
31702 msgstr ""
31703
31704 # type: textblock
31705 #. type: textblock
31706 #: ../fuse/guestmount.pod:46
31707 msgid ""
31708 "For a typical Linux guest which has a /boot filesystem on the first "
31709 "partition, and the root filesystem on a logical volume:"
31710 msgstr ""
31711
31712 # type: verbatim
31713 #. type: verbatim
31714 #: ../fuse/guestmount.pod:49
31715 #, no-wrap
31716 msgid ""
31717 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31718 "\n"
31719 msgstr ""
31720
31721 # type: textblock
31722 #. type: textblock
31723 #: ../fuse/guestmount.pod:51
31724 msgid "To get libguestfs to detect guest mountpoints for you:"
31725 msgstr ""
31726
31727 # type: verbatim
31728 #. type: verbatim
31729 #: ../fuse/guestmount.pod:53
31730 #, no-wrap
31731 msgid ""
31732 " guestmount -a guest.img -i --ro /mnt\n"
31733 "\n"
31734 msgstr ""
31735
31736 # type: textblock
31737 #. type: textblock
31738 #: ../fuse/guestmount.pod:55
31739 msgid "For a libvirt guest called \"Guest\" you could do:"
31740 msgstr ""
31741
31742 # type: verbatim
31743 #. type: verbatim
31744 #: ../fuse/guestmount.pod:57
31745 #, no-wrap
31746 msgid ""
31747 " guestmount -d Guest -i --ro /mnt\n"
31748 "\n"
31749 msgstr ""
31750
31751 # type: textblock
31752 #. type: textblock
31753 #: ../fuse/guestmount.pod:59
31754 msgid ""
31755 "If you don't know what filesystems are contained in a guest or disk image, "
31756 "use L<virt-filesystems(1)> first:"
31757 msgstr ""
31758
31759 # type: verbatim
31760 #. type: verbatim
31761 #: ../fuse/guestmount.pod:62
31762 #, no-wrap
31763 msgid ""
31764 " virt-filesystems MyGuest\n"
31765 "\n"
31766 msgstr ""
31767
31768 # type: textblock
31769 #. type: textblock
31770 #: ../fuse/guestmount.pod:64
31771 msgid ""
31772 "If you want to trace the libguestfs calls but without excessive debugging "
31773 "information, we recommend:"
31774 msgstr ""
31775
31776 # type: verbatim
31777 #. type: verbatim
31778 #: ../fuse/guestmount.pod:67
31779 #, no-wrap
31780 msgid ""
31781 " guestmount [...] --trace /mnt\n"
31782 "\n"
31783 msgstr ""
31784
31785 # type: textblock
31786 #. type: textblock
31787 #: ../fuse/guestmount.pod:69
31788 msgid "If you want to debug the program, we recommend:"
31789 msgstr ""
31790
31791 # type: verbatim
31792 #. type: verbatim
31793 #: ../fuse/guestmount.pod:71
31794 #, no-wrap
31795 msgid ""
31796 " guestmount [...] --trace --verbose /mnt\n"
31797 "\n"
31798 msgstr ""
31799
31800 # type: =item
31801 #. type: =item
31802 #: ../fuse/guestmount.pod:77
31803 msgid "B<-a image> | B<--add image>"
31804 msgstr ""
31805
31806 # type: textblock
31807 #. type: textblock
31808 #: ../fuse/guestmount.pod:79
31809 msgid "Add a block device or virtual machine image."
31810 msgstr ""
31811
31812 # type: =item
31813 #. type: =item
31814 #: ../fuse/guestmount.pod:84
31815 msgid "B<-c URI> | B<--connect URI>"
31816 msgstr ""
31817
31818 # type: =item
31819 #. type: =item
31820 #: ../fuse/guestmount.pod:90
31821 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31822 msgstr ""
31823
31824 # type: =item
31825 #. type: =item
31826 #: ../fuse/guestmount.pod:96
31827 msgid "B<--dir-cache-timeout N>"
31828 msgstr ""
31829
31830 # type: textblock
31831 #. type: textblock
31832 #: ../fuse/guestmount.pod:98
31833 msgid ""
31834 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31835 "seconds.  The readdir cache [actually, there are several semi-independent "
31836 "caches] is populated after a readdir(2) call with the stat and extended "
31837 "attributes of the files in the directory, in anticipation that they will be "
31838 "requested soon after."
31839 msgstr ""
31840
31841 # type: textblock
31842 #. type: textblock
31843 #: ../fuse/guestmount.pod:104
31844 msgid ""
31845 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31846 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31847 "requests, only cache existing ones."
31848 msgstr ""
31849
31850 # type: =item
31851 #. type: =item
31852 #: ../fuse/guestmount.pod:115
31853 msgid "B<--format=raw|qcow2|..> | B<--format>"
31854 msgstr ""
31855
31856 # type: textblock
31857 #. type: textblock
31858 #: ../fuse/guestmount.pod:122
31859 msgid ""
31860 "If you have untrusted raw-format guest disk images, you should use this "
31861 "option to specify the disk format.  This avoids a possible security problem "
31862 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31863 "guestfs_add_drive_opts>."
31864 msgstr ""
31865
31866 # type: =item
31867 #. type: =item
31868 #: ../fuse/guestmount.pod:127
31869 msgid "B<--fuse-help>"
31870 msgstr ""
31871
31872 # type: textblock
31873 #. type: textblock
31874 #: ../fuse/guestmount.pod:129
31875 msgid "Display help on special FUSE options (see I<-o> below)."
31876 msgstr ""
31877
31878 # type: textblock
31879 #. type: textblock
31880 #: ../fuse/guestmount.pod:133
31881 msgid "Display brief help and exit."
31882 msgstr ""
31883
31884 # type: =item
31885 #. type: =item
31886 #: ../fuse/guestmount.pod:135
31887 msgid "B<-i> | B<--inspector>"
31888 msgstr ""
31889
31890 # type: =item
31891 #. type: =item
31892 #: ../fuse/guestmount.pod:151
31893 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
31894 msgstr ""
31895
31896 # type: textblock
31897 #. type: textblock
31898 #: ../fuse/guestmount.pod:153
31899 msgid ""
31900 "Mount the named partition or logical volume on the given mountpoint B<in the "
31901 "guest> (this has nothing to do with mountpoints in the host)."
31902 msgstr ""
31903
31904 # type: textblock
31905 #. type: textblock
31906 #: ../fuse/guestmount.pod:156
31907 msgid ""
31908 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
31909 "something on C</>."
31910 msgstr ""
31911
31912 # type: =item
31913 #. type: =item
31914 #: ../fuse/guestmount.pod:159
31915 msgid "B<-n> | B<--no-sync>"
31916 msgstr ""
31917
31918 # type: textblock
31919 #. type: textblock
31920 #: ../fuse/guestmount.pod:161
31921 msgid ""
31922 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31923 "unmounted.  If you specify this option, then we don't attempt to sync the "
31924 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31925 msgstr ""
31926
31927 # type: =item
31928 #. type: =item
31929 #: ../fuse/guestmount.pod:166
31930 msgid "B<-o option> | B<--option option>"
31931 msgstr ""
31932
31933 # type: textblock
31934 #. type: textblock
31935 #: ../fuse/guestmount.pod:168
31936 msgid "Pass extra options to FUSE."
31937 msgstr ""
31938
31939 # type: textblock
31940 #. type: textblock
31941 #: ../fuse/guestmount.pod:170
31942 msgid ""
31943 "To get a list of all the extra options supported by FUSE, use the command "
31944 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
31945 "of them are a good idea."
31946 msgstr ""
31947
31948 # type: verbatim
31949 #. type: verbatim
31950 #: ../fuse/guestmount.pod:174
31951 #, no-wrap
31952 msgid ""
31953 " guestmount --fuse-help\n"
31954 "\n"
31955 msgstr ""
31956
31957 # type: textblock
31958 #. type: textblock
31959 #: ../fuse/guestmount.pod:176
31960 msgid "Some potentially useful FUSE options:"
31961 msgstr ""
31962
31963 # type: =item
31964 #. type: =item
31965 #: ../fuse/guestmount.pod:180
31966 msgid "B<-o allow_other>"
31967 msgstr ""
31968
31969 # type: textblock
31970 #. type: textblock
31971 #: ../fuse/guestmount.pod:182
31972 msgid "Allow other users to see the filesystem."
31973 msgstr ""
31974
31975 # type: =item
31976 #. type: =item
31977 #: ../fuse/guestmount.pod:184
31978 msgid "B<-o attr_timeout=N>"
31979 msgstr ""
31980
31981 # type: textblock
31982 #. type: textblock
31983 #: ../fuse/guestmount.pod:186
31984 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31985 msgstr ""
31986
31987 # type: =item
31988 #. type: =item
31989 #: ../fuse/guestmount.pod:188
31990 msgid "B<-o kernel_cache>"
31991 msgstr ""
31992
31993 # type: textblock
31994 #. type: textblock
31995 #: ../fuse/guestmount.pod:190
31996 msgid ""
31997 "Allow the kernel to cache files (reduces the number of reads that have to go "
31998 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
31999 "afford the extra memory usage."
32000 msgstr ""
32001
32002 # type: =item
32003 #. type: =item
32004 #: ../fuse/guestmount.pod:194
32005 msgid "B<-o uid=N> B<-o gid=N>"
32006 msgstr ""
32007
32008 # type: textblock
32009 #. type: textblock
32010 #: ../fuse/guestmount.pod:196
32011 msgid ""
32012 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32013 "the chosen values."
32014 msgstr ""
32015
32016 # type: =item
32017 #. type: =item
32018 #: ../fuse/guestmount.pod:201
32019 msgid "B<-r> | B<--ro>"
32020 msgstr ""
32021
32022 # type: textblock
32023 #. type: textblock
32024 #: ../fuse/guestmount.pod:203
32025 msgid ""
32026 "Add devices and mount everything read-only.  Also disallow writes and make "
32027 "the disk appear read-only to FUSE."
32028 msgstr ""
32029
32030 # type: textblock
32031 #. type: textblock
32032 #: ../fuse/guestmount.pod:206
32033 msgid ""
32034 "This is highly recommended if you are not going to edit the guest disk.  If "
32035 "the guest is running and this option is I<not> supplied, then there is a "
32036 "strong risk of disk corruption in the guest.  We try to prevent this from "
32037 "happening, but it is not always possible."
32038 msgstr ""
32039
32040 # type: textblock
32041 #. type: textblock
32042 #: ../fuse/guestmount.pod:211
32043 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32044 msgstr ""
32045
32046 # type: textblock
32047 #. type: textblock
32048 #: ../fuse/guestmount.pod:215
32049 msgid "Enable SELinux support for the guest."
32050 msgstr ""
32051
32052 # type: =item
32053 #. type: =item
32054 #: ../fuse/guestmount.pod:217
32055 msgid "B<-v> | B<--verbose>"
32056 msgstr ""
32057
32058 # type: textblock
32059 #. type: textblock
32060 #: ../fuse/guestmount.pod:219
32061 msgid "Enable verbose messages from underlying libguestfs."
32062 msgstr ""
32063
32064 # type: =item
32065 #. type: =item
32066 #: ../fuse/guestmount.pod:221
32067 msgid "B<-V> | B<--version>"
32068 msgstr ""
32069
32070 # type: textblock
32071 #. type: textblock
32072 #: ../fuse/guestmount.pod:223
32073 msgid "Display the program version and exit."
32074 msgstr ""
32075
32076 # type: =item
32077 #. type: =item
32078 #: ../fuse/guestmount.pod:225
32079 msgid "B<-w> | B<--rw>"
32080 msgstr ""
32081
32082 # type: textblock
32083 #. type: textblock
32084 #: ../fuse/guestmount.pod:227
32085 msgid ""
32086 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
32087 "FOR READ AND WRITE>."
32088 msgstr ""
32089
32090 # type: =item
32091 #. type: =item
32092 #: ../fuse/guestmount.pod:230
32093 msgid "B<-x> | B<--trace>"
32094 msgstr ""
32095
32096 # type: textblock
32097 #. type: textblock
32098 #: ../fuse/guestmount.pod:232
32099 msgid "Trace libguestfs calls and entry into each FUSE function."
32100 msgstr ""
32101
32102 # type: textblock
32103 #. type: textblock
32104 #: ../fuse/guestmount.pod:234
32105 msgid "This also stops the daemon from forking into the background."
32106 msgstr ""
32107
32108 # type: textblock
32109 #. type: textblock
32110 #: ../fuse/guestmount.pod:240
32111 msgid ""
32112 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32113 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32114 "net/>."
32115 msgstr ""
32116
32117 # type: textblock
32118 #. type: textblock
32119 #: ../tools/virt-edit.pl:34
32120 msgid "virt-edit - Edit a file in a virtual machine"
32121 msgstr ""
32122
32123 # type: verbatim
32124 #. type: verbatim
32125 #: ../tools/virt-edit.pl:38
32126 #, no-wrap
32127 msgid ""
32128 " virt-edit [--options] domname file\n"
32129 "\n"
32130 msgstr ""
32131
32132 # type: verbatim
32133 #. type: verbatim
32134 #: ../tools/virt-edit.pl:40
32135 #, no-wrap
32136 msgid ""
32137 " virt-edit [--options] disk.img [disk.img ...] file\n"
32138 "\n"
32139 msgstr ""
32140
32141 # type: verbatim
32142 #. type: verbatim
32143 #: ../tools/virt-edit.pl:42
32144 #, no-wrap
32145 msgid ""
32146 " virt-edit [domname|disk.img] file -e 'expr'\n"
32147 "\n"
32148 msgstr ""
32149
32150 # type: textblock
32151 #. type: textblock
32152 #: ../tools/virt-edit.pl:46
32153 msgid ""
32154 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32155 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32156 "doing this, but doesn't catch all cases."
32157 msgstr ""
32158
32159 # type: textblock
32160 #. type: textblock
32161 #: ../tools/virt-edit.pl:52
32162 msgid ""
32163 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32164 "the named virtual machine (or disk image)."
32165 msgstr ""
32166
32167 # type: textblock
32168 #. type: textblock
32169 #: ../tools/virt-edit.pl:55
32170 msgid ""
32171 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
32172 "you should look at the L<guestfish(1)> tool."
32173 msgstr ""
32174
32175 # type: textblock
32176 #. type: textblock
32177 #: ../tools/virt-edit.pl:60
32178 msgid "Edit the named files interactively:"
32179 msgstr ""
32180
32181 # type: verbatim
32182 #. type: verbatim
32183 #: ../tools/virt-edit.pl:62
32184 #, no-wrap
32185 msgid ""
32186 " virt-edit mydomain /boot/grub/grub.conf\n"
32187 "\n"
32188 msgstr ""
32189
32190 # type: verbatim
32191 #. type: verbatim
32192 #: ../tools/virt-edit.pl:64
32193 #, no-wrap
32194 msgid ""
32195 " virt-edit mydomain /etc/passwd\n"
32196 "\n"
32197 msgstr ""
32198
32199 # type: textblock
32200 #. type: textblock
32201 #: ../tools/virt-edit.pl:66
32202 msgid ""
32203 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32204 "below).  To change the init default level to 5:"
32205 msgstr ""
32206
32207 # type: verbatim
32208 #. type: verbatim
32209 #: ../tools/virt-edit.pl:70
32210 #, no-wrap
32211 msgid ""
32212 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32213 "\n"
32214 msgstr ""
32215
32216 # type: textblock
32217 #. type: textblock
32218 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
32219 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32220 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32221 msgid "Display brief help."
32222 msgstr ""
32223
32224 # type: textblock
32225 #. type: textblock
32226 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
32227 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
32228 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
32229 #: ../tools/virt-list-partitions.pl:72
32230 msgid "Display version number and exit."
32231 msgstr ""
32232
32233 # type: =item
32234 #. type: =item
32235 #: ../tools/virt-edit.pl:96
32236 msgid "B<--backup extension> | B<-b extension>"
32237 msgstr ""
32238
32239 # type: textblock
32240 #. type: textblock
32241 #: ../tools/virt-edit.pl:98
32242 msgid ""
32243 "Create a backup of the original file I<in the guest disk image>.  The backup "
32244 "has the original filename with C<extension> added."
32245 msgstr ""
32246
32247 # type: textblock
32248 #. type: textblock
32249 #: ../tools/virt-edit.pl:101
32250 msgid ""
32251 "Usually the first character of C<extension> would be a dot C<.> so you would "
32252 "write:"
32253 msgstr ""
32254
32255 # type: verbatim
32256 #. type: verbatim
32257 #: ../tools/virt-edit.pl:104
32258 #, no-wrap
32259 msgid ""
32260 " virt-edit -b .orig [etc]\n"
32261 "\n"
32262 msgstr ""
32263
32264 # type: textblock
32265 #. type: textblock
32266 #: ../tools/virt-edit.pl:106
32267 msgid "By default, no backup file is made."
32268 msgstr ""
32269
32270 # type: =item
32271 #. type: =item
32272 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
32273 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32274 #: ../tools/virt-list-partitions.pl:78
32275 msgid "B<--connect URI> | B<-c URI>"
32276 msgstr ""
32277
32278 # type: textblock
32279 #. type: textblock
32280 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
32281 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32282 #: ../tools/virt-list-partitions.pl:80
32283 msgid ""
32284 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32285 "to the default libvirt hypervisor."
32286 msgstr ""
32287
32288 # type: textblock
32289 #. type: textblock
32290 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
32291 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32292 #: ../tools/virt-list-partitions.pl:83
32293 msgid ""
32294 "If you specify guest block devices directly, then libvirt is not used at all."
32295 msgstr ""
32296
32297 # type: =item
32298 #. type: =item
32299 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
32300 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
32301 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
32302 msgid "B<--format> raw"
32303 msgstr ""
32304
32305 # type: textblock
32306 #. type: textblock
32307 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
32308 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32309 #: ../tools/virt-list-partitions.pl:92
32310 msgid ""
32311 "Specify the format of disk images given on the command line.  If this is "
32312 "omitted then the format is autodetected from the content of the disk image."
32313 msgstr ""
32314
32315 # type: textblock
32316 #. type: textblock
32317 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
32318 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32319 #: ../tools/virt-list-partitions.pl:96
32320 msgid ""
32321 "If disk images are requested from libvirt, then this program asks libvirt "
32322 "for this information.  In this case, the value of the format parameter is "
32323 "ignored."
32324 msgstr ""
32325
32326 # type: textblock
32327 #. type: textblock
32328 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
32329 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
32330 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32331 #: ../tools/virt-list-partitions.pl:100
32332 msgid ""
32333 "If working with untrusted raw-format guest disk images, you should ensure "
32334 "the format is always specified."
32335 msgstr ""
32336
32337 # type: =item
32338 #. type: =item
32339 #: ../tools/virt-edit.pl:141
32340 msgid "B<--expr EXPR> | B<-e EXPR>"
32341 msgstr ""
32342
32343 # type: textblock
32344 #. type: textblock
32345 #: ../tools/virt-edit.pl:143
32346 msgid ""
32347 "Instead of launching the external editor, non-interactively apply the Perl "
32348 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32349 "EDITING> below."
32350 msgstr ""
32351
32352 # type: textblock
32353 #. type: textblock
32354 #: ../tools/virt-edit.pl:147
32355 msgid ""
32356 "Be careful to properly quote the expression to prevent it from being altered "
32357 "by the shell."
32358 msgstr ""
32359
32360 # type: =head1
32361 #. type: =head1
32362 #: ../tools/virt-edit.pl:268
32363 msgid "NON-INTERACTIVE EDITING"
32364 msgstr ""
32365
32366 # type: textblock
32367 #. type: textblock
32368 #: ../tools/virt-edit.pl:270
32369 msgid ""
32370 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32371 "administrator can interactively edit the file."
32372 msgstr ""
32373
32374 # type: textblock
32375 #. type: textblock
32376 #: ../tools/virt-edit.pl:273
32377 msgid ""
32378 "There are two ways also to use C<virt-edit> from scripts in order to make "
32379 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32380 "like this, it's less error-prone to write scripts directly using the "
32381 "libguestfs API and Augeas for configuration file editing.)"
32382 msgstr ""
32383
32384 # type: textblock
32385 #. type: textblock
32386 #: ../tools/virt-edit.pl:279
32387 msgid ""
32388 "The first method is to temporarily set C<$EDITOR> to any script or program "
32389 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32390 "update C<tmpfile> in place however it likes."
32391 msgstr ""
32392
32393 # type: textblock
32394 #. type: textblock
32395 #: ../tools/virt-edit.pl:283
32396 msgid ""
32397 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32398 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32399 "instances of C<foo> with C<bar> in a file:"
32400 msgstr ""
32401
32402 # type: verbatim
32403 #. type: verbatim
32404 #: ../tools/virt-edit.pl:287
32405 #, no-wrap
32406 msgid ""
32407 " virt-edit domname filename -e 's/foo/bar/'\n"
32408 "\n"
32409 msgstr ""
32410
32411 # type: textblock
32412 #. type: textblock
32413 #: ../tools/virt-edit.pl:289
32414 msgid ""
32415 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32416 "For example to delete root's password you could do:"
32417 msgstr ""
32418
32419 # type: verbatim
32420 #. type: verbatim
32421 #: ../tools/virt-edit.pl:292
32422 #, no-wrap
32423 msgid ""
32424 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32425 "\n"
32426 msgstr ""
32427
32428 # type: textblock
32429 #. type: textblock
32430 #: ../tools/virt-edit.pl:294
32431 msgid ""
32432 "What really happens is that the snippet is evaluated as a Perl expression "
32433 "for each line of the file.  The line, including the final C<\\n>, is passed "
32434 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32435 msgstr ""
32436
32437 # type: textblock
32438 #. type: textblock
32439 #: ../tools/virt-edit.pl:299
32440 msgid ""
32441 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32442 "C<apache> user account from the password file you can do:"
32443 msgstr ""
32444
32445 # type: verbatim
32446 #. type: verbatim
32447 #: ../tools/virt-edit.pl:302
32448 #, no-wrap
32449 msgid ""
32450 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32451 "\n"
32452 msgstr ""
32453
32454 # type: textblock
32455 #. type: textblock
32456 #: ../tools/virt-edit.pl:304
32457 msgid ""
32458 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32459 "the end of the file is rather difficult this way since there is no concept "
32460 "of \"last line of the file\" - your expression just doesn't get called "
32461 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32462 "want to do this."
32463 msgstr ""
32464
32465 # type: textblock
32466 #. type: textblock
32467 #: ../tools/virt-edit.pl:310
32468 msgid ""
32469 "The variable C<$lineno> contains the current line number.  As is "
32470 "traditional, the first line in the file is number C<1>."
32471 msgstr ""
32472
32473 # type: textblock
32474 #. type: textblock
32475 #: ../tools/virt-edit.pl:313
32476 msgid ""
32477 "The return value from the expression is ignored, but the expression may call "
32478 "C<die> in order to abort the whole program, leaving the original file "
32479 "untouched."
32480 msgstr ""
32481
32482 # type: textblock
32483 #. type: textblock
32484 #: ../tools/virt-edit.pl:317
32485 msgid ""
32486 "Remember when matching the end of a line that C<$_> may contain the final C<"
32487 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32488 "newline then neither of these.  Thus to match or substitute some text at the "
32489 "end of a line, use this regular expression:"
32490 msgstr ""
32491
32492 # type: verbatim
32493 #. type: verbatim
32494 #: ../tools/virt-edit.pl:322
32495 #, no-wrap
32496 msgid ""
32497 " /some text(\\r?\\n)?$/\n"
32498 "\n"
32499 msgstr ""
32500
32501 # type: textblock
32502 #. type: textblock
32503 #: ../tools/virt-edit.pl:324
32504 msgid ""
32505 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32506 "$_> itself (since that would remove all newlines from the file):"
32507 msgstr ""
32508
32509 # type: verbatim
32510 #. type: verbatim
32511 #: ../tools/virt-edit.pl:328
32512 #, no-wrap
32513 msgid ""
32514 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32515 "\n"
32516 msgstr ""
32517
32518 # type: =item
32519 #. type: =item
32520 #: ../tools/virt-edit.pl:334
32521 msgid "C<EDITOR>"
32522 msgstr ""
32523
32524 # type: textblock
32525 #. type: textblock
32526 #: ../tools/virt-edit.pl:336
32527 msgid ""
32528 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32529 "\"emacs -nw\">"
32530 msgstr ""
32531
32532 # type: textblock
32533 #. type: textblock
32534 #: ../tools/virt-edit.pl:339
32535 msgid "If not set, C<vi> is used."
32536 msgstr ""
32537
32538 # type: =head2
32539 #. type: =head1
32540 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
32541 #: ../tools/virt-resize.pl:1482 ../tools/virt-list-filesystems.pl:182
32542 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
32543 #: ../tools/virt-list-partitions.pl:250
32544 msgid "SHELL QUOTING"
32545 msgstr ""
32546
32547 # type: textblock
32548 #. type: textblock
32549 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
32550 #: ../tools/virt-resize.pl:1484 ../tools/virt-list-filesystems.pl:184
32551 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
32552 #: ../tools/virt-list-partitions.pl:252
32553 msgid ""
32554 "Libvirt guest names can contain arbitrary characters, some of which have "
32555 "meaning to the shell such as C<#> and space.  You may need to quote or "
32556 "escape these characters on the command line.  See the shell manual page L<sh"
32557 "(1)> for details."
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../tools/virt-edit.pl:352
32562 msgid ""
32563 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32564 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32565 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32566 msgstr ""
32567
32568 # type: =head1
32569 #. type: =head1
32570 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
32571 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:202
32572 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
32573 #: ../tools/virt-list-partitions.pl:269
32574 msgid "AUTHOR"
32575 msgstr ""
32576
32577 # type: textblock
32578 #. type: textblock
32579 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
32580 #: ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:204
32581 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
32582 #: ../tools/virt-list-partitions.pl:271
32583 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32584 msgstr ""
32585
32586 # type: textblock
32587 #. type: textblock
32588 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
32589 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32590 msgstr ""
32591
32592 # type: textblock
32593 #. type: textblock
32594 #: ../tools/virt-win-reg.pl:37
32595 msgid ""
32596 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
32597 msgstr ""
32598
32599 # type: verbatim
32600 #. type: verbatim
32601 #: ../tools/virt-win-reg.pl:41
32602 #, no-wrap
32603 msgid ""
32604 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
32605 "\n"
32606 msgstr ""
32607
32608 # type: verbatim
32609 #. type: verbatim
32610 #: ../tools/virt-win-reg.pl:43
32611 #, no-wrap
32612 msgid ""
32613 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
32614 "\n"
32615 msgstr ""
32616
32617 # type: verbatim
32618 #. type: verbatim
32619 #: ../tools/virt-win-reg.pl:45
32620 #, no-wrap
32621 msgid ""
32622 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
32623 "\n"
32624 msgstr ""
32625
32626 # type: verbatim
32627 #. type: verbatim
32628 #: ../tools/virt-win-reg.pl:47
32629 #, no-wrap
32630 msgid ""
32631 " virt-win-reg --merge domname [input.reg ...]\n"
32632 "\n"
32633 msgstr ""
32634
32635 # type: verbatim
32636 #. type: verbatim
32637 #: ../tools/virt-win-reg.pl:49
32638 #, no-wrap
32639 msgid ""
32640 " virt-win-reg [--options] disk.img ... # instead of domname\n"
32641 "\n"
32642 msgstr ""
32643
32644 # type: textblock
32645 #. type: textblock
32646 #: ../tools/virt-win-reg.pl:53
32647 msgid ""
32648 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
32649 "virtual machines.  If you do this, you I<will> get irreversible disk "
32650 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32651 "but doesn't catch all cases."
32652 msgstr ""
32653
32654 # type: textblock
32655 #. type: textblock
32656 #: ../tools/virt-win-reg.pl:58
32657 msgid ""
32658 "Modifying the Windows Registry is an inherently risky operation.  The format "
32659 "is deliberately obscure and undocumented, and Registry changes can leave the "
32660 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32661 "you have a reliable backup first."
32662 msgstr ""
32663
32664 # type: textblock
32665 #. type: textblock
32666 #: ../tools/virt-win-reg.pl:65
32667 msgid ""
32668 "This program can export and merge Windows Registry entries from a Windows "
32669 "guest."
32670 msgstr ""
32671
32672 # type: textblock
32673 #. type: textblock
32674 #: ../tools/virt-win-reg.pl:68
32675 msgid ""
32676 "The first parameter is the libvirt guest name or the raw disk image of a "
32677 "Windows guest."
32678 msgstr ""
32679
32680 # type: textblock
32681 #. type: textblock
32682 #: ../tools/virt-win-reg.pl:71
32683 msgid ""
32684 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32685 "exported (recursively).  For example:"
32686 msgstr ""
32687
32688 # type: verbatim
32689 #. type: verbatim
32690 #: ../tools/virt-win-reg.pl:74
32691 #, no-wrap
32692 msgid ""
32693 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32694 "\n"
32695 msgstr ""
32696
32697 # type: textblock
32698 #. type: textblock
32699 #: ../tools/virt-win-reg.pl:76
32700 msgid ""
32701 "You can also display single values from within registry keys, for example:"
32702 msgstr ""
32703
32704 # type: verbatim
32705 #. type: verbatim
32706 #: ../tools/virt-win-reg.pl:79
32707 #, no-wrap
32708 msgid ""
32709 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32710 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32711 " Windows 7 Enterprise\n"
32712 "\n"
32713 msgstr ""
32714
32715 # type: textblock
32716 #. type: textblock
32717 #: ../tools/virt-win-reg.pl:83
32718 msgid ""
32719 "With C<--merge>, you can merge a textual regedit file into the Windows "
32720 "Registry:"
32721 msgstr ""
32722
32723 # type: verbatim
32724 #. type: verbatim
32725 #: ../tools/virt-win-reg.pl:86
32726 #, no-wrap
32727 msgid ""
32728 " $ virt-win-reg --merge Windows7 changes.reg\n"
32729 "\n"
32730 msgstr ""
32731
32732 # type: =head2
32733 #. type: =head1
32734 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32735 msgid "NOTE"
32736 msgstr ""
32737
32738 # type: textblock
32739 #. type: textblock
32740 #: ../tools/virt-win-reg.pl:90
32741 msgid ""
32742 "This program is only meant for simple access to the registry.  If you want "
32743 "to do complicated things with the registry, we suggest you download the "
32744 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32745 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32746 "L<hivexregedit(1)>."
32747 msgstr ""
32748
32749 # type: =item
32750 #. type: =item
32751 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32752 msgid "B<--debug>"
32753 msgstr ""
32754
32755 # type: textblock
32756 #. type: textblock
32757 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32758 msgid "Enable debugging messages."
32759 msgstr ""
32760
32761 # type: =item
32762 #. type: =item
32763 #: ../tools/virt-win-reg.pl:157
32764 msgid "B<--merge>"
32765 msgstr ""
32766
32767 # type: textblock
32768 #. type: textblock
32769 #: ../tools/virt-win-reg.pl:159
32770 msgid ""
32771 "In merge mode, this merges a textual regedit file into the Windows Registry "
32772 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32773 "displays or exports Registry entries instead."
32774 msgstr ""
32775
32776 # type: textblock
32777 #. type: textblock
32778 #: ../tools/virt-win-reg.pl:163
32779 msgid ""
32780 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32781 "result in disk corruption.  However exporting (without this flag)  is always "
32782 "safe."
32783 msgstr ""
32784
32785 # type: =item
32786 #. type: =item
32787 #: ../tools/virt-win-reg.pl:171
32788 msgid "B<--encoding> UTF-16LE|ASCII"
32789 msgstr ""
32790
32791 # type: textblock
32792 #. type: textblock
32793 #: ../tools/virt-win-reg.pl:173
32794 msgid ""
32795 "When merging (only), you may need to specify the encoding for strings to be "
32796 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32797 "(3)/ENCODING STRINGS>."
32798 msgstr ""
32799
32800 # type: textblock
32801 #. type: textblock
32802 #: ../tools/virt-win-reg.pl:177
32803 msgid ""
32804 "The default is to use UTF-16LE, which should work with recent versions of "
32805 "Windows."
32806 msgstr ""
32807
32808 # type: =head2
32809 #. type: =head1
32810 #: ../tools/virt-win-reg.pl:402
32811 msgid "SUPPORTED SYSTEMS"
32812 msgstr ""
32813
32814 # type: textblock
32815 #. type: textblock
32816 #: ../tools/virt-win-reg.pl:404
32817 msgid ""
32818 "The program currently supports Windows NT-derived guests starting with "
32819 "Windows XP through to at least Windows 7."
32820 msgstr ""
32821
32822 # type: textblock
32823 #. type: textblock
32824 #: ../tools/virt-win-reg.pl:407
32825 msgid ""
32826 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32827 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32828 "and C<HKEY_USERS\\.DEFAULT>."
32829 msgstr ""
32830
32831 # type: textblock
32832 #. type: textblock
32833 #: ../tools/virt-win-reg.pl:411
32834 msgid ""
32835 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32836 "C<HKEY_USERS>."
32837 msgstr ""
32838
32839 # type: textblock
32840 #. type: textblock
32841 #: ../tools/virt-win-reg.pl:414
32842 msgid ""
32843 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32844 "time."
32845 msgstr ""
32846
32847 # type: =head2
32848 #. type: =head1
32849 #: ../tools/virt-win-reg.pl:417
32850 msgid "ENCODING"
32851 msgstr ""
32852
32853 # type: textblock
32854 #. type: textblock
32855 #: ../tools/virt-win-reg.pl:419
32856 msgid ""
32857 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32858 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32859 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32860 "Windows-style line endings, you may need to reencode the whole file before "
32861 "or after processing."
32862 msgstr ""
32863
32864 # type: textblock
32865 #. type: textblock
32866 #: ../tools/virt-win-reg.pl:425
32867 msgid ""
32868 "To reencode a file from Windows format to Linux (before processing it with "
32869 "the C<--merge> option), you would do something like this:"
32870 msgstr ""
32871
32872 # type: verbatim
32873 #. type: verbatim
32874 #: ../tools/virt-win-reg.pl:428
32875 #, no-wrap
32876 msgid ""
32877 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32878 "\n"
32879 msgstr ""
32880
32881 # type: textblock
32882 #. type: textblock
32883 #: ../tools/virt-win-reg.pl:430
32884 msgid ""
32885 "To go in the opposite direction, after exporting and before sending the file "
32886 "to a Windows user, do something like this:"
32887 msgstr ""
32888
32889 # type: verbatim
32890 #. type: verbatim
32891 #: ../tools/virt-win-reg.pl:433
32892 #, no-wrap
32893 msgid ""
32894 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32895 "\n"
32896 msgstr ""
32897
32898 # type: textblock
32899 #. type: textblock
32900 #: ../tools/virt-win-reg.pl:435
32901 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32902 msgstr ""
32903
32904 # type: textblock
32905 #. type: textblock
32906 #: ../tools/virt-win-reg.pl:437
32907 msgid ""
32908 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32909 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32910 "style (CRLF) line endings, like this:"
32911 msgstr ""
32912
32913 # type: verbatim
32914 #. type: verbatim
32915 #: ../tools/virt-win-reg.pl:441
32916 #, no-wrap
32917 msgid ""
32918 " $ file software.reg\n"
32919 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32920 " with CRLF line terminators\n"
32921 "\n"
32922 msgstr ""
32923
32924 # type: textblock
32925 #. type: textblock
32926 #: ../tools/virt-win-reg.pl:445
32927 msgid "This file would need conversion before you could C<--merge> it."
32928 msgstr ""
32929
32930 # type: =head2
32931 #. type: =head1
32932 #: ../tools/virt-win-reg.pl:447
32933 msgid "CurrentControlSet etc."
32934 msgstr ""
32935
32936 # type: textblock
32937 #. type: textblock
32938 #: ../tools/virt-win-reg.pl:449
32939 msgid ""
32940 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
32941 "Registry at the level of the hive file, and therefore you cannot modify "
32942 "these."
32943 msgstr ""
32944
32945 # type: textblock
32946 #. type: textblock
32947 #: ../tools/virt-win-reg.pl:453
32948 msgid ""
32949 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
32950 "circumstances it might refer to another control set.  The way to find out is "
32951 "to look at the C<HKLM\\SYSTEM\\Select> key:"
32952 msgstr ""
32953
32954 # type: verbatim
32955 #. type: verbatim
32956 #: ../tools/virt-win-reg.pl:457
32957 #, no-wrap
32958 msgid ""
32959 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
32960 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
32961 " \"Current\"=dword:00000001\n"
32962 " \"Default\"=dword:00000001\n"
32963 " \"Failed\"=dword:00000000\n"
32964 " \"LastKnownGood\"=dword:00000002\n"
32965 "\n"
32966 msgstr ""
32967
32968 # type: textblock
32969 #. type: textblock
32970 #: ../tools/virt-win-reg.pl:464
32971 msgid "\"Current\" is the one which Windows will choose when it boots."
32972 msgstr ""
32973
32974 # type: textblock
32975 #. type: textblock
32976 #: ../tools/virt-win-reg.pl:466
32977 msgid ""
32978 "Similarly, other C<Current...> keys in the path may need to be replaced."
32979 msgstr ""
32980
32981 # type: =head1
32982 #. type: =head1
32983 #: ../tools/virt-win-reg.pl:469
32984 msgid "WINDOWS TIPS"
32985 msgstr ""
32986
32987 # type: textblock
32988 #. type: textblock
32989 #: ../tools/virt-win-reg.pl:471
32990 msgid ""
32991 "Note that some of these tips modify the guest disk image.  The guest I<must> "
32992 "be shut off, else you will get disk corruption."
32993 msgstr ""
32994
32995 # type: =head2
32996 #. type: =head2
32997 #: ../tools/virt-win-reg.pl:474
32998 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
32999 msgstr ""
33000
33001 # type: textblock
33002 #. type: textblock
33003 #: ../tools/virt-win-reg.pl:476
33004 msgid ""
33005 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33006 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33007 "is uploaded into C<C:\\>:"
33008 msgstr ""
33009
33010 # type: verbatim
33011 #. type: verbatim
33012 #: ../tools/virt-win-reg.pl:480
33013 #, no-wrap
33014 msgid ""
33015 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33016 "\n"
33017 msgstr ""
33018
33019 # type: textblock
33020 #. type: textblock
33021 #: ../tools/virt-win-reg.pl:482
33022 msgid "Prepare a regedit file containing the registry change:"
33023 msgstr ""
33024
33025 # type: verbatim
33026 #. type: verbatim
33027 #: ../tools/virt-win-reg.pl:484
33028 #, no-wrap
33029 msgid ""
33030 " cat > test.reg <<'EOF'\n"
33031 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33032 " \"Test\"=\"c:\\\\test.bat\"\n"
33033 " EOF\n"
33034 "\n"
33035 msgstr ""
33036
33037 # type: textblock
33038 #. type: textblock
33039 #: ../tools/virt-win-reg.pl:489
33040 msgid ""
33041 "In this example we use the key C<RunOnce> which means that the script will "
33042 "run precisely once when the first user logs in.  If you want it to run every "
33043 "time a user logs in, replace C<RunOnce> with C<Run>."
33044 msgstr ""
33045
33046 # type: textblock
33047 #. type: textblock
33048 #: ../tools/virt-win-reg.pl:493
33049 msgid "Now update the registry:"
33050 msgstr ""
33051
33052 # type: verbatim
33053 #. type: verbatim
33054 #: ../tools/virt-win-reg.pl:495
33055 #, no-wrap
33056 msgid ""
33057 " virt-win-reg --merge WindowsGuest test.reg\n"
33058 "\n"
33059 msgstr ""
33060
33061 # type: =head2
33062 #. type: =head2
33063 #: ../tools/virt-win-reg.pl:497
33064 msgid "INSTALLING A SERVICE"
33065 msgstr ""
33066
33067 # type: textblock
33068 #. type: textblock
33069 #: ../tools/virt-win-reg.pl:499
33070 msgid ""
33071 "This section assumes you are familiar with Windows services, and you either "
33072 "have a program which handles the Windows Service Control Protocol directly "
33073 "or you want to run any program using a service wrapper like SrvAny or the "
33074 "free RHSrvAny."
33075 msgstr ""
33076
33077 # type: textblock
33078 #. type: textblock
33079 #: ../tools/virt-win-reg.pl:504
33080 msgid ""
33081 "First upload the program and optionally the service wrapper.  In this case "
33082 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33083 msgstr ""
33084
33085 # type: verbatim
33086 #. type: verbatim
33087 #: ../tools/virt-win-reg.pl:508
33088 #, no-wrap
33089 msgid ""
33090 " guestfish -i -d WindowsGuest <<EOF\n"
33091 "   upload rhsrvany.exe /rhsrvany.exe\n"
33092 "   upload test.exe /test.exe\n"
33093 " EOF\n"
33094 "\n"
33095 msgstr ""
33096
33097 # type: textblock
33098 #. type: textblock
33099 #: ../tools/virt-win-reg.pl:513
33100 msgid ""
33101 "Prepare a regedit file containing the registry changes.  In this example, "
33102 "the first registry change is needed for the service itself or the service "
33103 "wrapper (if used).  The second registry change is only needed because I am "
33104 "using the RHSrvAny service wrapper."
33105 msgstr ""
33106
33107 # type: verbatim
33108 #. type: verbatim
33109 #: ../tools/virt-win-reg.pl:518
33110 #, no-wrap
33111 msgid ""
33112 " cat > service.reg <<'EOF'\n"
33113 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33114 " \"Type\"=dword:00000010\n"
33115 " \"Start\"=dword:00000002\n"
33116 " \"ErrorControl\"=dword:00000001\n"
33117 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33118 " \"DisplayName\"=\"RHSrvAny\"\n"
33119 " \"ObjectName\"=\"NetworkService\"\n"
33120 " \n"
33121 msgstr ""
33122
33123 # type: verbatim
33124 #. type: verbatim
33125 #: ../tools/virt-win-reg.pl:527
33126 #, no-wrap
33127 msgid ""
33128 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33129 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33130 " \"PWD\"=\"c:\\\\Temp\"\n"
33131 " EOF\n"
33132 "\n"
33133 msgstr ""
33134
33135 # type: textblock
33136 #. type: textblock
33137 #: ../tools/virt-win-reg.pl:538
33138 msgid ""
33139 "For use of C<ControlSet001> see the section above in this manual page.  You "
33140 "may need to adjust this according to the control set that is in use by the "
33141 "guest."
33142 msgstr ""
33143
33144 # type: textblock
33145 #. type: textblock
33146 #: ../tools/virt-win-reg.pl:544
33147 msgid ""
33148 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33149 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33150 "privileged account."
33151 msgstr ""
33152
33153 # type: textblock
33154 #. type: textblock
33155 #: ../tools/virt-win-reg.pl:550
33156 msgid ""
33157 "For the meaning of the magic numbers, see this Microsoft KB article: "
33158 "L<http://support.microsoft.com/kb/103000>."
33159 msgstr ""
33160
33161 # type: textblock
33162 #. type: textblock
33163 #: ../tools/virt-win-reg.pl:555
33164 msgid "Update the registry:"
33165 msgstr ""
33166
33167 # type: verbatim
33168 #. type: verbatim
33169 #: ../tools/virt-win-reg.pl:557
33170 #, no-wrap
33171 msgid ""
33172 " virt-win-reg --merge WindowsGuest service.reg\n"
33173 "\n"
33174 msgstr ""
33175
33176 # type: textblock
33177 #. type: textblock
33178 #: ../tools/virt-win-reg.pl:561
33179 msgid ""
33180 "Be careful when passing parameters containing C<\\> (backslash) in the "
33181 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33182 "(but not both) to protect them from the shell."
33183 msgstr ""
33184
33185 # type: textblock
33186 #. type: textblock
33187 #: ../tools/virt-win-reg.pl:565
33188 msgid "Paths and value names are case-insensitive."
33189 msgstr ""
33190
33191 # type: textblock
33192 #. type: textblock
33193 #: ../tools/virt-win-reg.pl:574
33194 msgid ""
33195 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33196 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33197 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33198 msgstr ""
33199
33200 # type: textblock
33201 #. type: textblock
33202 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33203 msgid ""
33204 "When reporting bugs, please enable debugging and capture the I<complete> "
33205 "output:"
33206 msgstr ""
33207
33208 # type: verbatim
33209 #. type: verbatim
33210 #: ../tools/virt-win-reg.pl:592
33211 #, no-wrap
33212 msgid ""
33213 " export LIBGUESTFS_DEBUG=1\n"
33214 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33215 "\n"
33216 msgstr ""
33217
33218 # type: textblock
33219 #. type: textblock
33220 #: ../tools/virt-win-reg.pl:595
33221 msgid ""
33222 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33223 "redhat.com/>"
33224 msgstr ""
33225
33226 # type: textblock
33227 #. type: textblock
33228 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1516
33229 #: ../tools/virt-make-fs.pl:570
33230 msgid "Copyright (C) 2010 Red Hat Inc."
33231 msgstr ""
33232
33233 # type: textblock
33234 #. type: textblock
33235 #: ../tools/virt-resize.pl:42
33236 msgid "virt-resize - Resize a virtual machine disk"
33237 msgstr ""
33238
33239 # type: verbatim
33240 #. type: verbatim
33241 #: ../tools/virt-resize.pl:46
33242 #, no-wrap
33243 msgid ""
33244 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
33245 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
33246 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
33247 "\n"
33248 msgstr ""
33249
33250 # type: textblock
33251 #. type: textblock
33252 #: ../tools/virt-resize.pl:52
33253 msgid ""
33254 "Virt-resize is a tool which can resize a virtual machine disk, making it "
33255 "larger or smaller overall, and resizing or deleting any partitions contained "
33256 "within."
33257 msgstr ""
33258
33259 # type: textblock
33260 #. type: textblock
33261 #: ../tools/virt-resize.pl:56
33262 msgid ""
33263 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
33264 "not> be used on live virtual machines - for consistent results, shut the "
33265 "virtual machine down before resizing it."
33266 msgstr ""
33267
33268 # type: textblock
33269 #. type: textblock
33270 #: ../tools/virt-resize.pl:60
33271 msgid ""
33272 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
33273 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
33274 msgstr ""
33275
33276 # type: textblock
33277 #. type: textblock
33278 #: ../tools/virt-resize.pl:66
33279 msgid ""
33280 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
33281 "fill the extra 5GB of space."
33282 msgstr ""
33283
33284 #. type: verbatim
33285 #: ../tools/virt-resize.pl:69
33286 #, no-wrap
33287 msgid ""
33288 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
33289 " virt-filesystems --long -h --all -a olddisk\n"
33290 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
33291 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
33292 "\n"
33293 msgstr ""
33294
33295 # type: textblock
33296 #. type: textblock
33297 #: ../tools/virt-resize.pl:74
33298 msgid ""
33299 "As above, but make the /boot partition 200MB bigger, while giving the "
33300 "remaining space to /dev/sda2:"
33301 msgstr ""
33302
33303 # type: verbatim
33304 #. type: verbatim
33305 #: ../tools/virt-resize.pl:77
33306 #, no-wrap
33307 msgid ""
33308 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
33309 "\n"
33310 msgstr ""
33311
33312 # type: textblock
33313 #. type: textblock
33314 #: ../tools/virt-resize.pl:79
33315 msgid "As above, but the output format will be uncompressed qcow2:"
33316 msgstr ""
33317
33318 # type: verbatim
33319 #. type: verbatim
33320 #: ../tools/virt-resize.pl:81
33321 #, no-wrap
33322 msgid ""
33323 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
33324 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
33325 "\n"
33326 msgstr ""
33327
33328 # type: =head1
33329 #. type: =head1
33330 #: ../tools/virt-resize.pl:84
33331 msgid "DETAILED USAGE"
33332 msgstr ""
33333
33334 # type: =head2
33335 #. type: =head2
33336 #: ../tools/virt-resize.pl:86
33337 msgid "EXPANDING A VIRTUAL MACHINE DISK"
33338 msgstr ""
33339
33340 # type: =item
33341 #. type: =item
33342 #: ../tools/virt-resize.pl:90
33343 msgid "1. Shut down the virtual machine"
33344 msgstr ""
33345
33346 # type: =item
33347 #. type: =item
33348 #: ../tools/virt-resize.pl:92
33349 msgid "2. Locate input disk image"
33350 msgstr ""
33351
33352 # type: textblock
33353 #. type: textblock
33354 #: ../tools/virt-resize.pl:94
33355 msgid ""
33356 "Locate the input disk image (ie. the file or device on the host containing "
33357 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
33358 "dumpxml> like this to find the disk image name:"
33359 msgstr ""
33360
33361 # type: verbatim
33362 #. type: verbatim
33363 #: ../tools/virt-resize.pl:98
33364 #, no-wrap
33365 msgid ""
33366 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
33367 " Found 1 nodes:\n"
33368 " -- NODE --\n"
33369 " <source dev=\"/dev/vg/lv_guest\" />\n"
33370 "\n"
33371 msgstr ""
33372
33373 # type: =item
33374 #. type: =item
33375 #: ../tools/virt-resize.pl:103
33376 msgid "3. Look at current sizing"
33377 msgstr ""
33378
33379 # type: textblock
33380 #. type: textblock
33381 #: ../tools/virt-resize.pl:105
33382 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
33383 msgstr ""
33384
33385 # type: verbatim
33386 #. type: verbatim
33387 #: ../tools/virt-resize.pl:108
33388 #, no-wrap
33389 msgid ""
33390 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
33391 " Name       Type       Size  Parent\n"
33392 " /dev/sda1  partition  101M  /dev/sda\n"
33393 " /dev/sda2  partition  7.9G  /dev/sda\n"
33394 " /dev/sda   device     8.0G  -\n"
33395 "\n"
33396 msgstr ""
33397
33398 # type: textblock
33399 #. type: textblock
33400 #: ../tools/virt-resize.pl:114
33401 msgid ""
33402 "(This example is a virtual machine with an 8 GB disk which we would like to "
33403 "expand up to 10 GB)."
33404 msgstr ""
33405
33406 # type: =item
33407 #. type: =item
33408 #: ../tools/virt-resize.pl:117
33409 msgid "4. Create output disk"
33410 msgstr ""
33411
33412 # type: textblock
33413 #. type: textblock
33414 #: ../tools/virt-resize.pl:119
33415 msgid ""
33416 "Virt-resize cannot do in-place disk modifications.  You have to have space "
33417 "to store the resized output disk."
33418 msgstr ""
33419
33420 # type: textblock
33421 #. type: textblock
33422 #: ../tools/virt-resize.pl:122
33423 msgid ""
33424 "To store the resized disk image in a file, create a file of a suitable size:"
33425 msgstr ""
33426
33427 # type: verbatim
33428 #. type: verbatim
33429 #: ../tools/virt-resize.pl:125
33430 #, no-wrap
33431 msgid ""
33432 " # rm -f outdisk\n"
33433 " # truncate -s 10G outdisk\n"
33434 "\n"
33435 msgstr ""
33436
33437 # type: textblock
33438 #. type: textblock
33439 #: ../tools/virt-resize.pl:128
33440 msgid "Or use L<lvcreate(1)> to create a logical volume:"
33441 msgstr ""
33442
33443 # type: verbatim
33444 #. type: verbatim
33445 #: ../tools/virt-resize.pl:130
33446 #, no-wrap
33447 msgid ""
33448 " # lvcreate -L 10G -n lv_name vg_name\n"
33449 "\n"
33450 msgstr ""
33451
33452 # type: textblock
33453 #. type: textblock
33454 #: ../tools/virt-resize.pl:132
33455 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
33456 msgstr ""
33457
33458 # type: verbatim
33459 #. type: verbatim
33460 #: ../tools/virt-resize.pl:134
33461 #, no-wrap
33462 msgid ""
33463 " # virsh pool-list\n"
33464 " # virsh vol-create-as poolname newvol 10G\n"
33465 "\n"
33466 msgstr ""
33467
33468 # type: =item
33469 #. type: =item
33470 #: ../tools/virt-resize.pl:137
33471 msgid "5. Resize"
33472 msgstr ""
33473
33474 # type: textblock
33475 #. type: textblock
33476 #: ../tools/virt-resize.pl:139
33477 msgid ""
33478 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
33479 "file) and the output disk.  The output disk is the one created in the "
33480 "previous step."
33481 msgstr ""
33482
33483 # type: verbatim
33484 #. type: verbatim
33485 #: ../tools/virt-resize.pl:143
33486 #, no-wrap
33487 msgid ""
33488 " # virt-resize indisk outdisk\n"
33489 "\n"
33490 msgstr ""
33491
33492 # type: textblock
33493 #. type: textblock
33494 #: ../tools/virt-resize.pl:145
33495 msgid ""
33496 "This command just copies disk image C<indisk> to disk image C<outdisk> "
33497 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
33498 "larger, then an extra, empty partition is created at the end of the disk "
33499 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
33500 "error."
33501 msgstr ""
33502
33503 # type: textblock
33504 #. type: textblock
33505 #: ../tools/virt-resize.pl:151
33506 msgid ""
33507 "More realistically you'd want to expand existing partitions in the disk "
33508 "image by passing extra options (for the full list see the L</OPTIONS> "
33509 "section below)."
33510 msgstr ""
33511
33512 # type: textblock
33513 #. type: textblock
33514 #: ../tools/virt-resize.pl:155
33515 msgid ""
33516 "L</--expand> is the most useful option.  It expands the named partition "
33517 "within the disk to fill any extra space:"
33518 msgstr ""
33519
33520 # type: verbatim
33521 #. type: verbatim
33522 #: ../tools/virt-resize.pl:158
33523 #, no-wrap
33524 msgid ""
33525 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
33526 "\n"
33527 msgstr ""
33528
33529 # type: textblock
33530 #. type: textblock
33531 #: ../tools/virt-resize.pl:160
33532 msgid ""
33533 "(In this case, an extra partition is I<not> created at the end of the disk, "
33534 "because there will be no unused space)."
33535 msgstr ""
33536
33537 # type: textblock
33538 #. type: textblock
33539 #: ../tools/virt-resize.pl:163
33540 msgid ""
33541 "L</--resize> is the other commonly used option.  The following would "
33542 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
33543 "rest of the available space:"
33544 msgstr ""
33545
33546 # type: verbatim
33547 #. type: verbatim
33548 #: ../tools/virt-resize.pl:167
33549 #, no-wrap
33550 msgid ""
33551 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
33552 "     indisk outdisk\n"
33553 "\n"
33554 msgstr ""
33555
33556 # type: textblock
33557 #. type: textblock
33558 #: ../tools/virt-resize.pl:170
33559 msgid ""
33560 "If the expanded partition in the image contains a filesystem or LVM PV, then "
33561 "if virt-resize knows how, it will resize the contents, the equivalent of "
33562 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
33563 ">.  However virt-resize does not know how to resize some filesystems, so you "
33564 "would have to online resize them after booting the guest."
33565 msgstr ""
33566
33567 # type: textblock
33568 #. type: textblock
33569 #: ../tools/virt-resize.pl:177
33570 msgid "Other options are covered below."
33571 msgstr ""
33572
33573 # type: =item
33574 #. type: =item
33575 #: ../tools/virt-resize.pl:179
33576 msgid "6. Test"
33577 msgstr ""
33578
33579 # type: textblock
33580 #. type: textblock
33581 #: ../tools/virt-resize.pl:181
33582 msgid "Thoroughly test the new disk image I<before> discarding the old one."
33583 msgstr ""
33584
33585 # type: textblock
33586 #. type: textblock
33587 #: ../tools/virt-resize.pl:183
33588 msgid "If you are using libvirt, edit the XML to point at the new disk:"
33589 msgstr ""
33590
33591 # type: verbatim
33592 #. type: verbatim
33593 #: ../tools/virt-resize.pl:185
33594 #, no-wrap
33595 msgid ""
33596 " # virsh edit guestname\n"
33597 "\n"
33598 msgstr ""
33599
33600 # type: textblock
33601 #. type: textblock
33602 #: ../tools/virt-resize.pl:187
33603 msgid ""
33604 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
33605 "html#elementsDisks>"
33606 msgstr ""
33607
33608 # type: textblock
33609 #. type: textblock
33610 #: ../tools/virt-resize.pl:190
33611 msgid "Then start up the domain with the new, resized disk:"
33612 msgstr ""
33613
33614 # type: verbatim
33615 #. type: verbatim
33616 #: ../tools/virt-resize.pl:192
33617 #, no-wrap
33618 msgid ""
33619 " # virsh start guestname\n"
33620 "\n"
33621 msgstr ""
33622
33623 # type: textblock
33624 #. type: textblock
33625 #: ../tools/virt-resize.pl:194
33626 msgid ""
33627 "and check that it still works.  See also the L</NOTES> section below for "
33628 "additional information."
33629 msgstr ""
33630
33631 # type: =item
33632 #. type: =item
33633 #: ../tools/virt-resize.pl:197
33634 msgid "7. Resize LVs etc inside the guest"
33635 msgstr ""
33636
33637 # type: textblock
33638 #. type: textblock
33639 #: ../tools/virt-resize.pl:199
33640 msgid "(This can also be done offline using L<guestfish(1)>)"
33641 msgstr ""
33642
33643 # type: textblock
33644 #. type: textblock
33645 #: ../tools/virt-resize.pl:201
33646 msgid ""
33647 "Once the guest has booted you should see the new space available, at least "
33648 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
33649 "may need to resize LVs inside PVs, and also resize filesystem types that "
33650 "virt-resize does not know how to expand."
33651 msgstr ""
33652
33653 # type: =head2
33654 #. type: =head2
33655 #: ../tools/virt-resize.pl:208
33656 msgid "SHRINKING A VIRTUAL MACHINE DISK"
33657 msgstr ""
33658
33659 # type: textblock
33660 #. type: textblock
33661 #: ../tools/virt-resize.pl:210
33662 msgid ""
33663 "Shrinking is somewhat more complex than expanding, and only an overview is "
33664 "given here."
33665 msgstr ""
33666
33667 # type: textblock
33668 #. type: textblock
33669 #: ../tools/virt-resize.pl:213
33670 msgid ""
33671 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33672 "filesystems).  The user has to shrink content before passing the disk image "
33673 "to virt-resize, and virt-resize will check that the content has been shrunk "
33674 "properly."
33675 msgstr ""
33676
33677 # type: textblock
33678 #. type: textblock
33679 #: ../tools/virt-resize.pl:218
33680 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33681 msgstr ""
33682
33683 # type: textblock
33684 #. type: textblock
33685 #: ../tools/virt-resize.pl:220
33686 msgid ""
33687 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33688 "steps 3 and 4 above to allocate a new disk image."
33689 msgstr ""
33690
33691 # type: textblock
33692 #. type: textblock
33693 #: ../tools/virt-resize.pl:223
33694 msgid ""
33695 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33696 msgstr ""
33697
33698 # type: =head2
33699 #. type: =head2
33700 #: ../tools/virt-resize.pl:226
33701 msgid "IGNORING OR DELETING PARTITIONS"
33702 msgstr ""
33703
33704 # type: textblock
33705 #. type: textblock
33706 #: ../tools/virt-resize.pl:228
33707 msgid ""
33708 "virt-resize also gives a convenient way to ignore or delete partitions when "
33709 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33710 "up the copy where you don't care about the existing contents of a "
33711 "partition.  Deleting a partition removes it completely, but note that it "
33712 "also renumbers any partitions after the one which is deleted, which can "
33713 "leave some guests unbootable."
33714 msgstr ""
33715
33716 # type: =head2
33717 #. type: =head2
33718 #: ../tools/virt-resize.pl:235
33719 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33720 msgstr ""
33721
33722 # type: textblock
33723 #. type: textblock
33724 #: ../tools/virt-resize.pl:237
33725 msgid ""
33726 "If the input disk is in qcow2 format, then you may prefer that the output is "
33727 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33728 "the fly.  The output format is simply determined by the format of the empty "
33729 "output container that you provide.  Thus to create qcow2 output, use:"
33730 msgstr ""
33731
33732 # type: verbatim
33733 #. type: verbatim
33734 #: ../tools/virt-resize.pl:243
33735 #, no-wrap
33736 msgid ""
33737 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33738 "\n"
33739 msgstr ""
33740
33741 # type: textblock
33742 #. type: textblock
33743 #: ../tools/virt-resize.pl:245
33744 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33745 msgstr ""
33746
33747 # type: textblock
33748 #. type: textblock
33749 #: ../tools/virt-resize.pl:247
33750 msgid "Similarly, to get non-sparse raw output use:"
33751 msgstr ""
33752
33753 # type: verbatim
33754 #. type: verbatim
33755 #: ../tools/virt-resize.pl:249
33756 #, no-wrap
33757 msgid ""
33758 " fallocate -l size outdisk\n"
33759 "\n"
33760 msgstr ""
33761
33762 # type: textblock
33763 #. type: textblock
33764 #: ../tools/virt-resize.pl:251
33765 msgid ""
33766 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33767 "dev/zero of=outdisk bs=1M count=..>)"
33768 msgstr ""
33769
33770 # type: textblock
33771 #. type: textblock
33772 #: ../tools/virt-resize.pl:264
33773 msgid "Display help."
33774 msgstr ""
33775
33776 # type: =item
33777 #. type: =item
33778 #: ../tools/virt-resize.pl:278
33779 msgid "B<--resize part=size>"
33780 msgstr ""
33781
33782 # type: textblock
33783 #. type: textblock
33784 #: ../tools/virt-resize.pl:280
33785 msgid ""
33786 "Resize the named partition (expanding or shrinking it) so that it has the "
33787 "given size."
33788 msgstr ""
33789
33790 # type: textblock
33791 #. type: textblock
33792 #: ../tools/virt-resize.pl:283
33793 msgid ""
33794 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33795 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33796 "Exabytes; or as a percentage of the current size; or as a relative number or "
33797 "percentage.  For example:"
33798 msgstr ""
33799
33800 # type: verbatim
33801 #. type: verbatim
33802 #: ../tools/virt-resize.pl:288
33803 #, no-wrap
33804 msgid ""
33805 " --resize /dev/sda2=10G\n"
33806 "\n"
33807 msgstr ""
33808
33809 # type: verbatim
33810 #. type: verbatim
33811 #: ../tools/virt-resize.pl:290
33812 #, no-wrap
33813 msgid ""
33814 " --resize /dev/sda4=90%\n"
33815 "\n"
33816 msgstr ""
33817
33818 # type: verbatim
33819 #. type: verbatim
33820 #: ../tools/virt-resize.pl:292
33821 #, no-wrap
33822 msgid ""
33823 " --resize /dev/sda2=+1G\n"
33824 "\n"
33825 msgstr ""
33826
33827 # type: verbatim
33828 #. type: verbatim
33829 #: ../tools/virt-resize.pl:294
33830 #, no-wrap
33831 msgid ""
33832 " --resize /dev/sda2=-200M\n"
33833 "\n"
33834 msgstr ""
33835
33836 # type: verbatim
33837 #. type: verbatim
33838 #: ../tools/virt-resize.pl:296
33839 #, no-wrap
33840 msgid ""
33841 " --resize /dev/sda1=+128K\n"
33842 "\n"
33843 msgstr ""
33844
33845 # type: verbatim
33846 #. type: verbatim
33847 #: ../tools/virt-resize.pl:298
33848 #, no-wrap
33849 msgid ""
33850 " --resize /dev/sda1=+10%\n"
33851 "\n"
33852 msgstr ""
33853
33854 # type: verbatim
33855 #. type: verbatim
33856 #: ../tools/virt-resize.pl:300
33857 #, no-wrap
33858 msgid ""
33859 " --resize /dev/sda1=-10%\n"
33860 "\n"
33861 msgstr ""
33862
33863 # type: textblock
33864 #. type: textblock
33865 #: ../tools/virt-resize.pl:302
33866 msgid ""
33867 "You can increase the size of any partition.  Virt-resize will expand the "
33868 "direct content of the partition if it knows how (see C<--expand> below)."
33869 msgstr ""
33870
33871 # type: textblock
33872 #. type: textblock
33873 #: ../tools/virt-resize.pl:306
33874 msgid ""
33875 "You can only I<decrease> the size of partitions that contain filesystems or "
33876 "PVs which have already been shrunk.  Virt-resize will check this has been "
33877 "done before proceeding, or else will print an error (see also C<--resize-"
33878 "force>)."
33879 msgstr ""
33880
33881 # type: textblock
33882 #. type: textblock
33883 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
33884 #: ../tools/virt-resize.pl:420
33885 msgid "You can give this option multiple times."
33886 msgstr ""
33887
33888 # type: =item
33889 #. type: =item
33890 #: ../tools/virt-resize.pl:317
33891 msgid "B<--resize-force part=size>"
33892 msgstr ""
33893
33894 # type: textblock
33895 #. type: textblock
33896 #: ../tools/virt-resize.pl:319
33897 msgid ""
33898 "This is the same as C<--resize> except that it will let you decrease the "
33899 "size of any partition.  Generally this means you will lose any data which "
33900 "was at the end of the partition you shrink, but you may not care about that "
33901 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
33902 "as a swap partition)."
33903 msgstr ""
33904
33905 # type: textblock
33906 #. type: textblock
33907 #: ../tools/virt-resize.pl:325
33908 msgid "See also the C<--ignore> option."
33909 msgstr ""
33910
33911 # type: =item
33912 #. type: =item
33913 #: ../tools/virt-resize.pl:331
33914 msgid "B<--expand part>"
33915 msgstr ""
33916
33917 # type: textblock
33918 #. type: textblock
33919 #: ../tools/virt-resize.pl:333
33920 msgid ""
33921 "Expand the named partition so it uses up all extra space (space left over "
33922 "after any other resize changes that you request have been done)."
33923 msgstr ""
33924
33925 # type: textblock
33926 #. type: textblock
33927 #: ../tools/virt-resize.pl:336
33928 msgid ""
33929 "If virt-resize knows how, it will expand the direct content of the "
33930 "partition.  For example, if the partition is an LVM PV, it will expand the "
33931 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
33932 "content it doesn't know about alone."
33933 msgstr ""
33934
33935 # type: textblock
33936 #. type: textblock
33937 #: ../tools/virt-resize.pl:341
33938 msgid "Currently virt-resize can resize:"
33939 msgstr ""
33940
33941 # type: textblock
33942 #. type: textblock
33943 #: ../tools/virt-resize.pl:347
33944 msgid ""
33945 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
33946 "partition."
33947 msgstr ""
33948
33949 # type: textblock
33950 #. type: textblock
33951 #: ../tools/virt-resize.pl:352
33952 msgid ""
33953 "NTFS filesystems contained directly in a partition, if libguestfs was "
33954 "compiled with support for NTFS."
33955 msgstr ""
33956
33957 # type: textblock
33958 #. type: textblock
33959 #: ../tools/virt-resize.pl:355
33960 msgid ""
33961 "The filesystem must have been shut down consistently last time it was used.  "
33962 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
33963 "consistency check, so at the first boot after resizing Windows will check "
33964 "the disk."
33965 msgstr ""
33966
33967 # type: textblock
33968 #. type: textblock
33969 #: ../tools/virt-resize.pl:362
33970 msgid ""
33971 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
33972 "inside the PV, but see the C<--LV-expand> option.  The user could also "
33973 "resize LVs as desired after boot."
33974 msgstr ""
33975
33976 # type: textblock
33977 #. type: textblock
33978 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
33979 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
33980 msgstr ""
33981
33982 # type: =item
33983 #. type: =item
33984 #: ../tools/virt-resize.pl:374
33985 msgid "B<--shrink part>"
33986 msgstr ""
33987
33988 # type: textblock
33989 #. type: textblock
33990 #: ../tools/virt-resize.pl:376
33991 msgid ""
33992 "Shrink the named partition until the overall disk image fits in the "
33993 "destination.  The named partition B<must> contain a filesystem or PV which "
33994 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
33995 "online tools).  Virt-resize will check this and give an error if it has not "
33996 "been done."
33997 msgstr ""
33998
33999 # type: textblock
34000 #. type: textblock
34001 #: ../tools/virt-resize.pl:382
34002 msgid ""
34003 "The amount by which the overall disk must be shrunk (after carrying out all "
34004 "other operations requested by the user) is called the \"deficit\".  For "
34005 "example, a straight copy (assume no other operations)  from a 5GB disk image "
34006 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
34007 "would give an error unless the user specified a partition to shrink and that "
34008 "partition had more than a gigabyte of free space."
34009 msgstr ""
34010
34011 # type: =item
34012 #. type: =item
34013 #: ../tools/virt-resize.pl:396
34014 msgid "B<--ignore part>"
34015 msgstr ""
34016
34017 # type: textblock
34018 #. type: textblock
34019 #: ../tools/virt-resize.pl:398
34020 msgid ""
34021 "Ignore the named partition.  Effectively this means the partition is "
34022 "allocated on the destination disk, but the content is not copied across from "
34023 "the source disk.  The content of the partition will be blank (all zero "
34024 "bytes)."
34025 msgstr ""
34026
34027 # type: =item
34028 #. type: =item
34029 #: ../tools/virt-resize.pl:409
34030 msgid "B<--delete part>"
34031 msgstr ""
34032
34033 # type: textblock
34034 #. type: textblock
34035 #: ../tools/virt-resize.pl:411
34036 msgid ""
34037 "Delete the named partition.  It would be more accurate to describe this as "
34038 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
34039 "the original disk image is left intact."
34040 msgstr ""
34041
34042 # type: textblock
34043 #. type: textblock
34044 #: ../tools/virt-resize.pl:415
34045 msgid ""
34046 "Note that when you delete a partition, then anything contained in the "
34047 "partition is also deleted.  Furthermore, this causes any partitions that "
34048 "come after to be I<renumbered>, which can easily make your guest unbootable."
34049 msgstr ""
34050
34051 # type: =item
34052 #. type: =item
34053 #: ../tools/virt-resize.pl:426
34054 msgid "B<--LV-expand logvol>"
34055 msgstr ""
34056
34057 # type: textblock
34058 #. type: textblock
34059 #: ../tools/virt-resize.pl:428
34060 msgid ""
34061 "This takes the logical volume and, as a final step, expands it to fill all "
34062 "the space available in its volume group.  A typical usage, assuming a Linux "
34063 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
34064 "lv_root> would be:"
34065 msgstr ""
34066
34067 # type: verbatim
34068 #. type: verbatim
34069 #: ../tools/virt-resize.pl:433
34070 #, no-wrap
34071 msgid ""
34072 " virt-resize indisk outdisk \\\n"
34073 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
34074 "\n"
34075 msgstr ""
34076
34077 # type: textblock
34078 #. type: textblock
34079 #: ../tools/virt-resize.pl:436
34080 msgid ""
34081 "This would first expand the partition (and PV), and then expand the root "
34082 "device to fill the extra space in the PV."
34083 msgstr ""
34084
34085 # type: textblock
34086 #. type: textblock
34087 #: ../tools/virt-resize.pl:439
34088 msgid ""
34089 "The contents of the LV are also resized if virt-resize knows how to do "
34090 "that.  You can stop virt-resize from trying to expand the content by using "
34091 "the option C<--no-expand-content>."
34092 msgstr ""
34093
34094 # type: textblock
34095 #. type: textblock
34096 #: ../tools/virt-resize.pl:443
34097 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
34098 msgstr ""
34099
34100 # type: textblock
34101 #. type: textblock
34102 #: ../tools/virt-resize.pl:446
34103 msgid ""
34104 "You can give this option multiple times, I<but> it doesn't make sense to do "
34105 "this unless the logical volumes you specify are all in different volume "
34106 "groups."
34107 msgstr ""
34108
34109 # type: =item
34110 #. type: =item
34111 #: ../tools/virt-resize.pl:454
34112 msgid "B<--no-copy-boot-loader>"
34113 msgstr ""
34114
34115 # type: textblock
34116 #. type: textblock
34117 #: ../tools/virt-resize.pl:456
34118 msgid ""
34119 "By default, virt-resize copies over some sectors at the start of the disk "
34120 "(up to the beginning of the first partition).  Commonly these sectors "
34121 "contain the Master Boot Record (MBR) and the boot loader, and are required "
34122 "in order for the guest to boot correctly."
34123 msgstr ""
34124
34125 # type: textblock
34126 #. type: textblock
34127 #: ../tools/virt-resize.pl:461
34128 msgid ""
34129 "If you specify this flag, then this initial copy is not done.  You may need "
34130 "to reinstall the boot loader in this case."
34131 msgstr ""
34132
34133 # type: =item
34134 #. type: =item
34135 #: ../tools/virt-resize.pl:469
34136 msgid "B<--no-extra-partition>"
34137 msgstr ""
34138
34139 # type: textblock
34140 #. type: textblock
34141 #: ../tools/virt-resize.pl:471
34142 msgid ""
34143 "By default, virt-resize creates an extra partition if there is any extra, "
34144 "unused space after all resizing has happened.  Use this option to prevent "
34145 "the extra partition from being created.  If you do this then the extra space "
34146 "will be inaccessible until you run fdisk, parted, or some other partitioning "
34147 "tool in the guest."
34148 msgstr ""
34149
34150 # type: textblock
34151 #. type: textblock
34152 #: ../tools/virt-resize.pl:477
34153 msgid ""
34154 "Note that if the surplus space is smaller than 10 MB, no extra partition "
34155 "will be created."
34156 msgstr ""
34157
34158 # type: =item
34159 #. type: =item
34160 #: ../tools/virt-resize.pl:484
34161 msgid "B<--no-expand-content>"
34162 msgstr ""
34163
34164 # type: textblock
34165 #. type: textblock
34166 #: ../tools/virt-resize.pl:486
34167 msgid ""
34168 "By default, virt-resize will try to expand the direct contents of "
34169 "partitions, if it knows how (see C<--expand> option above)."
34170 msgstr ""
34171
34172 # type: textblock
34173 #. type: textblock
34174 #: ../tools/virt-resize.pl:489
34175 msgid ""
34176 "If you give the C<--no-expand-content> option then virt-resize will not "
34177 "attempt this."
34178 msgstr ""
34179
34180 # type: =item
34181 #. type: =item
34182 #: ../tools/virt-resize.pl:496
34183 msgid "B<-d> | B<--debug>"
34184 msgstr ""
34185
34186 # type: =item
34187 #. type: =item
34188 #: ../tools/virt-resize.pl:504
34189 msgid "B<-n> | B<--dryrun>"
34190 msgstr ""
34191
34192 # type: textblock
34193 #. type: textblock
34194 #: ../tools/virt-resize.pl:506
34195 msgid "Print a summary of what would be done, but don't do anything."
34196 msgstr ""
34197
34198 # type: =item
34199 #. type: =item
34200 #: ../tools/virt-resize.pl:512
34201 msgid "B<-q> | B<--quiet>"
34202 msgstr ""
34203
34204 # type: textblock
34205 #. type: textblock
34206 #: ../tools/virt-resize.pl:514
34207 msgid "Don't print the summary."
34208 msgstr ""
34209
34210 # type: textblock
34211 #. type: textblock
34212 #: ../tools/virt-resize.pl:522
34213 msgid ""
34214 "Specify the format of the input disk image.  If this flag is not given then "
34215 "it is auto-detected from the image itself."
34216 msgstr ""
34217
34218 # type: textblock
34219 #. type: textblock
34220 #: ../tools/virt-resize.pl:528
34221 msgid ""
34222 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
34223 "AND NON-SPARSE RAW FORMATS>."
34224 msgstr ""
34225
34226 # type: =item
34227 #. type: =item
34228 #: ../tools/virt-resize.pl:535
34229 msgid "B<--output-format> raw"
34230 msgstr ""
34231
34232 # type: textblock
34233 #. type: textblock
34234 #: ../tools/virt-resize.pl:537
34235 msgid ""
34236 "Specify the format of the output disk image.  If this flag is not given then "
34237 "it is auto-detected from the image itself."
34238 msgstr ""
34239
34240 # type: textblock
34241 #. type: textblock
34242 #: ../tools/virt-resize.pl:543
34243 msgid ""
34244 "Note that you still need to create the output disk with the right format.  "
34245 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
34246 msgstr ""
34247
34248 # type: =head1
34249 #. type: =head1
34250 #: ../tools/virt-resize.pl:1425
34251 msgid "NOTES"
34252 msgstr ""
34253
34254 # type: =head2
34255 #. type: =head2
34256 #: ../tools/virt-resize.pl:1427
34257 msgid "\"Partition 1 does not end on cylinder boundary.\""
34258 msgstr ""
34259
34260 # type: textblock
34261 #. type: textblock
34262 #: ../tools/virt-resize.pl:1429
34263 msgid ""
34264 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
34265 "means the partitions will not be aligned to the ancient CHS geometry.  "
34266 "However CHS geometry is meaningless for disks manufactured since the early "
34267 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
34268 "cylinders is not required by any modern operating system."
34269 msgstr ""
34270
34271 # type: =head2
34272 #. type: =head2
34273 #: ../tools/virt-resize.pl:1436
34274 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
34275 msgstr ""
34276
34277 # type: textblock
34278 #. type: textblock
34279 #: ../tools/virt-resize.pl:1438
34280 msgid ""
34281 "In Windows Vista and later versions, Microsoft switched to using a separate "
34282 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
34283 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
34284 "the boot partition.  Doing so seems to break the guest completely.  However "
34285 "expanding the second partition (ie. C: drive) should work."
34286 msgstr ""
34287
34288 # type: textblock
34289 #. type: textblock
34290 #: ../tools/virt-resize.pl:1445
34291 msgid ""
34292 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
34293 "NTFS partitions have been expanded.  This is just a safety check and (unless "
34294 "it find errors) is nothing to worry about."
34295 msgstr ""
34296
34297 # type: =head2
34298 #. type: =head2
34299 #: ../tools/virt-resize.pl:1449
34300 msgid "GUEST BOOT STUCK AT \"GRUB\""
34301 msgstr ""
34302
34303 # type: textblock
34304 #. type: textblock
34305 #: ../tools/virt-resize.pl:1451
34306 msgid ""
34307 "If a Linux guest does not boot after resizing, and the boot is stuck after "
34308 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
34309 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
34310 "although we think is to do with partition alignment."
34311 msgstr ""
34312
34313 # type: verbatim
34314 #. type: verbatim
34315 #: ../tools/virt-resize.pl:1456
34316 #, no-wrap
34317 msgid ""
34318 " guestfish -i -a newdisk\n"
34319 " ><fs> cat /boot/grub/device.map\n"
34320 " # check the contents of this file are sensible or\n"
34321 " # edit the file if necessary\n"
34322 " ><fs> grub-install / /dev/vda\n"
34323 " ><fs> exit\n"
34324 "\n"
34325 msgstr ""
34326
34327 # type: textblock
34328 #. type: textblock
34329 #: ../tools/virt-resize.pl:1463
34330 msgid ""
34331 "For more flexible guest reconfiguration, including if you need to specify "
34332 "other parameters to grub-install, use L<virt-rescue(1)>."
34333 msgstr ""
34334
34335 # type: =head1
34336 #. type: =head1
34337 #: ../tools/virt-resize.pl:1466
34338 msgid "ALTERNATIVE TOOLS"
34339 msgstr ""
34340
34341 # type: textblock
34342 #. type: textblock
34343 #: ../tools/virt-resize.pl:1468
34344 msgid ""
34345 "There are several proprietary tools for resizing partitions.  We won't "
34346 "mention any here."
34347 msgstr ""
34348
34349 # type: textblock
34350 #. type: textblock
34351 #: ../tools/virt-resize.pl:1471
34352 msgid ""
34353 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
34354 "operations on disk images.  They can resize and move partitions, but I don't "
34355 "think they can do anything with the contents, and they certainly don't "
34356 "understand LVM."
34357 msgstr ""
34358
34359 # type: textblock
34360 #. type: textblock
34361 #: ../tools/virt-resize.pl:1476
34362 msgid ""
34363 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
34364 "but at a much lower level.  You will probably end up hand-calculating sector "
34365 "offsets, which is something that virt-resize was designed to avoid.  If you "
34366 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
34367 "C<--debug> flag."
34368 msgstr ""
34369
34370 # type: textblock
34371 #. type: textblock
34372 #: ../tools/virt-resize.pl:1491
34373 msgid ""
34374 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
34375 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
34376 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
34377 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
34378 "libguestfs.org/>."
34379 msgstr ""
34380
34381 # type: textblock
34382 #. type: textblock
34383 #: ../tools/virt-list-filesystems.pl:32
34384 msgid ""
34385 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34386 msgstr ""
34387
34388 # type: verbatim
34389 #. type: verbatim
34390 #: ../tools/virt-list-filesystems.pl:36
34391 #, no-wrap
34392 msgid ""
34393 " virt-list-filesystems [--options] domname\n"
34394 "\n"
34395 msgstr ""
34396
34397 # type: verbatim
34398 #. type: verbatim
34399 #: ../tools/virt-list-filesystems.pl:38
34400 #, no-wrap
34401 msgid ""
34402 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34403 "\n"
34404 msgstr ""
34405
34406 # type: textblock
34407 #. type: textblock
34408 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34409 msgid ""
34410 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34411 "replacement."
34412 msgstr ""
34413
34414 # type: textblock
34415 #. type: textblock
34416 #: ../tools/virt-list-filesystems.pl:45
34417 msgid ""
34418 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34419 "are contained in a virtual machine or disk image."
34420 msgstr ""
34421
34422 # type: textblock
34423 #. type: textblock
34424 #: ../tools/virt-list-filesystems.pl:49
34425 msgid ""
34426 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34427 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34428 "> tool."
34429 msgstr ""
34430
34431 # type: =item
34432 #. type: =item
34433 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34434 msgid "B<-l> | B<--long>"
34435 msgstr ""
34436
34437 # type: textblock
34438 #. type: textblock
34439 #: ../tools/virt-list-filesystems.pl:108
34440 msgid ""
34441 "With this option, C<virt-list-filesystems> displays the type of each "
34442 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34443 msgstr ""
34444
34445 # type: =item
34446 #. type: =item
34447 #: ../tools/virt-list-filesystems.pl:115
34448 msgid "B<-a> | B<--all>"
34449 msgstr ""
34450
34451 # type: textblock
34452 #. type: textblock
34453 #: ../tools/virt-list-filesystems.pl:117
34454 msgid ""
34455 "Normally we only show mountable filesystems.  If this option is given then "
34456 "swap devices are shown too."
34457 msgstr ""
34458
34459 # type: textblock
34460 #. type: textblock
34461 #: ../tools/virt-list-filesystems.pl:191
34462 msgid ""
34463 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34464 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34465 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34466 msgstr ""
34467
34468 # type: textblock
34469 #. type: textblock
34470 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34471 msgid "Copyright (C) 2009 Red Hat Inc."
34472 msgstr ""
34473
34474 # type: textblock
34475 #. type: textblock
34476 #: ../tools/virt-tar.pl:33
34477 msgid "virt-tar - Extract or upload files to a virtual machine"
34478 msgstr ""
34479
34480 # type: verbatim
34481 #. type: verbatim
34482 #: ../tools/virt-tar.pl:37
34483 #, no-wrap
34484 msgid ""
34485 " virt-tar [--options] -x domname directory tarball\n"
34486 "\n"
34487 msgstr ""
34488
34489 # type: verbatim
34490 #. type: verbatim
34491 #: ../tools/virt-tar.pl:39
34492 #, no-wrap
34493 msgid ""
34494 " virt-tar [--options] -u domname tarball directory\n"
34495 "\n"
34496 msgstr ""
34497
34498 # type: verbatim
34499 #. type: verbatim
34500 #: ../tools/virt-tar.pl:41
34501 #, no-wrap
34502 msgid ""
34503 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34504 "\n"
34505 msgstr ""
34506
34507 # type: verbatim
34508 #. type: verbatim
34509 #: ../tools/virt-tar.pl:43
34510 #, no-wrap
34511 msgid ""
34512 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34513 "\n"
34514 msgstr ""
34515
34516 #. type: textblock
34517 #: ../tools/virt-tar.pl:47
34518 msgid ""
34519 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34520 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34521 msgstr ""
34522
34523 # type: textblock
34524 #. type: textblock
34525 #: ../tools/virt-tar.pl:52
34526 msgid "Download C</home> from the VM into a local tarball:"
34527 msgstr ""
34528
34529 # type: verbatim
34530 #. type: verbatim
34531 #: ../tools/virt-tar.pl:54
34532 #, no-wrap
34533 msgid ""
34534 " virt-tar -x domname /home home.tar\n"
34535 "\n"
34536 msgstr ""
34537
34538 # type: verbatim
34539 #. type: verbatim
34540 #: ../tools/virt-tar.pl:56
34541 #, no-wrap
34542 msgid ""
34543 " virt-tar -zx domname /home home.tar.gz\n"
34544 "\n"
34545 msgstr ""
34546
34547 # type: textblock
34548 #. type: textblock
34549 #: ../tools/virt-tar.pl:58
34550 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34551 msgstr ""
34552
34553 # type: verbatim
34554 #. type: verbatim
34555 #: ../tools/virt-tar.pl:60
34556 #, no-wrap
34557 msgid ""
34558 " virt-tar -u domname uploadstuff.tar /tmp\n"
34559 "\n"
34560 msgstr ""
34561
34562 # type: verbatim
34563 #. type: verbatim
34564 #: ../tools/virt-tar.pl:62
34565 #, no-wrap
34566 msgid ""
34567 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34568 "\n"
34569 msgstr ""
34570
34571 # type: textblock
34572 #. type: textblock
34573 #: ../tools/virt-tar.pl:66
34574 msgid ""
34575 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
34576 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34577 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34578 msgstr ""
34579
34580 # type: textblock
34581 #. type: textblock
34582 #: ../tools/virt-tar.pl:71
34583 msgid ""
34584 "You can use C<-x> (extract) on live virtual machines, but you might get "
34585 "inconsistent results or errors if there is filesystem activity inside the "
34586 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34587 "work, but the only way to guarantee consistent results is if the virtual "
34588 "machine is shut down."
34589 msgstr ""
34590
34591 # type: textblock
34592 #. type: textblock
34593 #: ../tools/virt-tar.pl:79
34594 msgid ""
34595 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34596 "parts of a guest filesystem.  There are many possibilities: making backups, "
34597 "uploading data files, snooping on guest activity, fixing or customizing "
34598 "guests, etc."
34599 msgstr ""
34600
34601 # type: textblock
34602 #. type: textblock
34603 #: ../tools/virt-tar.pl:84
34604 msgid ""
34605 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34606 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34607 "should look at the L<guestfish(1)> tool."
34608 msgstr ""
34609
34610 # type: textblock
34611 #. type: textblock
34612 #: ../tools/virt-tar.pl:88
34613 msgid ""
34614 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
34615 "its contents (recursively) from the virtual machine into a local tarball.  "
34616 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
34617 "virtual machine.  You cannot use these two options together."
34618 msgstr ""
34619
34620 # type: textblock
34621 #. type: textblock
34622 #: ../tools/virt-tar.pl:94
34623 msgid ""
34624 "In addition, you may need to use the C<-z> (gZip) option to enable "
34625 "compression.  When uploading, you have to specify C<-z> if the upload file "
34626 "is compressed because virt-tar won't detect this on its own."
34627 msgstr ""
34628
34629 # type: textblock
34630 #. type: textblock
34631 #: ../tools/virt-tar.pl:98
34632 msgid ""
34633 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34634 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34635 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34636 "the L<libguestfs(3)> API)."
34637 msgstr ""
34638
34639 # type: =item
34640 #. type: =item
34641 #: ../tools/virt-tar.pl:156
34642 msgid "B<-x> | B<--extract> | B<--download>"
34643 msgstr ""
34644
34645 # type: =item
34646 #. type: =item
34647 #: ../tools/virt-tar.pl:158
34648 msgid "B<-u> | B<--upload>"
34649 msgstr ""
34650
34651 # type: textblock
34652 #. type: textblock
34653 #: ../tools/virt-tar.pl:160
34654 msgid ""
34655 "Use C<-x> to extract (download) a directory from a virtual machine to a "
34656 "local tarball."
34657 msgstr ""
34658
34659 # type: textblock
34660 #. type: textblock
34661 #: ../tools/virt-tar.pl:163
34662 msgid ""
34663 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34664 "Please read the L</WARNING> section above before using this option."
34665 msgstr ""
34666
34667 # type: textblock
34668 #. type: textblock
34669 #: ../tools/virt-tar.pl:167
34670 msgid "You must specify exactly one of these options."
34671 msgstr ""
34672
34673 # type: =item
34674 #. type: =item
34675 #: ../tools/virt-tar.pl:173
34676 msgid "B<-z> | B<--gzip>"
34677 msgstr ""
34678
34679 # type: textblock
34680 #. type: textblock
34681 #: ../tools/virt-tar.pl:175
34682 msgid "Specify that the input or output tarball is gzip-compressed."
34683 msgstr ""
34684
34685 #. type: textblock
34686 #: ../tools/virt-tar.pl:288
34687 msgid ""
34688 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34689 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34690 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34691 "org/>."
34692 msgstr ""
34693
34694 # type: textblock
34695 #. type: textblock
34696 #: ../tools/virt-make-fs.pl:37
34697 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34698 msgstr ""
34699
34700 # type: verbatim
34701 #. type: verbatim
34702 #: ../tools/virt-make-fs.pl:41
34703 #, no-wrap
34704 msgid ""
34705 " virt-make-fs [--options] input.tar output.img\n"
34706 "\n"
34707 msgstr ""
34708
34709 # type: verbatim
34710 #. type: verbatim
34711 #: ../tools/virt-make-fs.pl:43
34712 #, no-wrap
34713 msgid ""
34714 " virt-make-fs [--options] input.tar.gz output.img\n"
34715 "\n"
34716 msgstr ""
34717
34718 # type: verbatim
34719 #. type: verbatim
34720 #: ../tools/virt-make-fs.pl:45
34721 #, no-wrap
34722 msgid ""
34723 " virt-make-fs [--options] directory output.img\n"
34724 "\n"
34725 msgstr ""
34726
34727 # type: textblock
34728 #. type: textblock
34729 #: ../tools/virt-make-fs.pl:49
34730 msgid ""
34731 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34732 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34733 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34734 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34735 "you want to attach these filesystems to existing virtual machines (eg. to "
34736 "import large amounts of read-only data to a VM)."
34737 msgstr ""
34738
34739 # type: textblock
34740 #. type: textblock
34741 #: ../tools/virt-make-fs.pl:57
34742 msgid "Basic usage is:"
34743 msgstr ""
34744
34745 # type: verbatim
34746 #. type: verbatim
34747 #: ../tools/virt-make-fs.pl:59
34748 #, no-wrap
34749 msgid ""
34750 " virt-make-fs input output\n"
34751 "\n"
34752 msgstr ""
34753
34754 # type: textblock
34755 #. type: textblock
34756 #: ../tools/virt-make-fs.pl:61
34757 msgid ""
34758 "where C<input> is either a directory containing files that you want to add, "
34759 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34760 "C<output> is a disk image.  The input type is detected automatically.  The "
34761 "output disk image defaults to a raw ext2 image unless you specify extra "
34762 "flags (see L</OPTIONS> below)."
34763 msgstr ""
34764
34765 # type: =head2
34766 #. type: =head2
34767 #: ../tools/virt-make-fs.pl:67
34768 msgid "EXTRA SPACE"
34769 msgstr ""
34770
34771 # type: textblock
34772 #. type: textblock
34773 #: ../tools/virt-make-fs.pl:69
34774 msgid ""
34775 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34776 "the files that it contains, but might have extra space.  Depending on how "
34777 "you are going to use the output, you might think this extra space is wasted "
34778 "and want to minimize it, or you might want to leave space so that more files "
34779 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34780 "but you can use the C<--size> flag to leave space in the filesystem if you "
34781 "want it."
34782 msgstr ""
34783
34784 # type: textblock
34785 #. type: textblock
34786 #: ../tools/virt-make-fs.pl:77
34787 msgid ""
34788 "An alternative way to leave extra space but not make the output image any "
34789 "bigger is to use an alternative disk image format (instead of the default "
34790 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34791 "image format (check your hypervisor supports this before using it).  This "
34792 "allows you to choose a large C<--size> but the extra space won't actually be "
34793 "allocated in the image until you try to store something in it."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../tools/virt-make-fs.pl:85
34798 msgid ""
34799 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34800 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34801 "to build another image from scratch."
34802 msgstr ""
34803
34804 # type: =head3
34805 #. type: =head3
34806 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34807 #: ../tools/virt-make-fs.pl:142
34808 msgid "EXAMPLE"
34809 msgstr ""
34810
34811 # type: verbatim
34812 #. type: verbatim
34813 #: ../tools/virt-make-fs.pl:91
34814 #, no-wrap
34815 msgid ""
34816 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34817 "\n"
34818 msgstr ""
34819
34820 # type: =head2
34821 #. type: =head2
34822 #: ../tools/virt-make-fs.pl:93
34823 msgid "FILESYSTEM TYPE"
34824 msgstr ""
34825
34826 # type: textblock
34827 #. type: textblock
34828 #: ../tools/virt-make-fs.pl:95
34829 msgid ""
34830 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34831 "libguestfs supports can be used (but I<not> read-only formats like "
34832 "ISO9660).  Here are some of the more common choices:"
34833 msgstr ""
34834
34835 # type: =item
34836 #. type: =item
34837 #: ../tools/virt-make-fs.pl:101
34838 msgid "I<ext3>"
34839 msgstr ""
34840
34841 # type: textblock
34842 #. type: textblock
34843 #: ../tools/virt-make-fs.pl:103
34844 msgid ""
34845 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34846 "you are not going to use the filesystem in a way that requires the journal, "
34847 "then this is just wasted overhead."
34848 msgstr ""
34849
34850 # type: =item
34851 #. type: =item
34852 #: ../tools/virt-make-fs.pl:107
34853 msgid "I<ntfs> or I<vfat>"
34854 msgstr ""
34855
34856 # type: textblock
34857 #. type: textblock
34858 #: ../tools/virt-make-fs.pl:109
34859 msgid "Useful if exporting data to a Windows guest."
34860 msgstr ""
34861
34862 # type: textblock
34863 #. type: textblock
34864 #: ../tools/virt-make-fs.pl:111
34865 msgid ""
34866 "I<Note for vfat>: The tar archive or local directory must only contain files "
34867 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34868 "program running within libguestfs is unable to change the ownership of non-"
34869 "root files, since vfat itself does not support this."
34870 msgstr ""
34871
34872 # type: =item
34873 #. type: =item
34874 #: ../tools/virt-make-fs.pl:116
34875 msgid "I<minix>"
34876 msgstr ""
34877
34878 # type: textblock
34879 #. type: textblock
34880 #: ../tools/virt-make-fs.pl:118
34881 msgid ""
34882 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34883 "total filesystem size."
34884 msgstr ""
34885
34886 # type: verbatim
34887 #. type: verbatim
34888 #: ../tools/virt-make-fs.pl:125
34889 #, no-wrap
34890 msgid ""
34891 " virt-make-fs --type=minix input minixfs.img\n"
34892 "\n"
34893 msgstr ""
34894
34895 # type: =head2
34896 #. type: =head2
34897 #: ../tools/virt-make-fs.pl:127
34898 msgid "TO PARTITION OR NOT TO PARTITION"
34899 msgstr ""
34900
34901 # type: textblock
34902 #. type: textblock
34903 #: ../tools/virt-make-fs.pl:129
34904 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34905 msgstr ""
34906
34907 # type: textblock
34908 #. type: textblock
34909 #: ../tools/virt-make-fs.pl:131
34910 msgid ""
34911 "Adding a partition can make the disk image more compatible with certain "
34912 "virtualized operating systems which don't expect to see a filesystem "
34913 "directly located on a block device (Linux doesn't care and will happily "
34914 "handle both types)."
34915 msgstr ""
34916
34917 # type: textblock
34918 #. type: textblock
34919 #: ../tools/virt-make-fs.pl:136
34920 msgid ""
34921 "On the other hand, if you have a partition table then the output image is no "
34922 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34923 "directly on a partitioned disk image.  (However libguestfs tools such as "
34924 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34925 msgstr ""
34926
34927 # type: textblock
34928 #. type: textblock
34929 #: ../tools/virt-make-fs.pl:144
34930 msgid "Add an MBR partition:"
34931 msgstr ""
34932
34933 # type: verbatim
34934 #. type: verbatim
34935 #: ../tools/virt-make-fs.pl:146
34936 #, no-wrap
34937 msgid ""
34938 " virt-make-fs --partition -- input disk.img\n"
34939 "\n"
34940 msgstr ""
34941
34942 # type: textblock
34943 #. type: textblock
34944 #: ../tools/virt-make-fs.pl:148
34945 msgid ""
34946 "If the output disk image could be terabyte-sized or larger, it's better to "
34947 "use an EFI/GPT-compatible partition table:"
34948 msgstr ""
34949
34950 # type: verbatim
34951 #. type: verbatim
34952 #: ../tools/virt-make-fs.pl:151
34953 #, no-wrap
34954 msgid ""
34955 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34956 "\n"
34957 msgstr ""
34958
34959 # type: textblock
34960 #. type: textblock
34961 #: ../tools/virt-make-fs.pl:179
34962 msgid "Enable debugging information."
34963 msgstr ""
34964
34965 # type: =item
34966 #. type: =item
34967 #: ../tools/virt-make-fs.pl:185
34968 msgid "B<--size=E<lt>NE<gt>>"
34969 msgstr ""
34970
34971 # type: =item
34972 #. type: =item
34973 #: ../tools/virt-make-fs.pl:187
34974 msgid "B<--size=+E<lt>NE<gt>>"
34975 msgstr ""
34976
34977 # type: =item
34978 #. type: =item
34979 #: ../tools/virt-make-fs.pl:189
34980 msgid "B<-s E<lt>NE<gt>>"
34981 msgstr ""
34982
34983 # type: =item
34984 #. type: =item
34985 #: ../tools/virt-make-fs.pl:191
34986 msgid "B<-s +E<lt>NE<gt>>"
34987 msgstr ""
34988
34989 # type: textblock
34990 #. type: textblock
34991 #: ../tools/virt-make-fs.pl:193
34992 msgid ""
34993 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34994 msgstr ""
34995
34996 # type: textblock
34997 #. type: textblock
34998 #: ../tools/virt-make-fs.pl:196
34999 msgid ""
35000 "If this option is I<not> given, then the output image will be just large "
35001 "enough to contain all the files, with not much wasted space."
35002 msgstr ""
35003
35004 # type: textblock
35005 #. type: textblock
35006 #: ../tools/virt-make-fs.pl:199
35007 msgid ""
35008 "To choose a fixed size output disk, specify an absolute number followed by b/"
35009 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35010 "Petabytes or Exabytes.  This must be large enough to contain all the input "
35011 "files, else you will get an error."
35012 msgstr ""
35013
35014 # type: textblock
35015 #. type: textblock
35016 #: ../tools/virt-make-fs.pl:204
35017 msgid ""
35018 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
35019 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35020 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
35021 "the input files, and (approximately) an extra 200 MB free space."
35022 msgstr ""
35023
35024 # type: textblock
35025 #. type: textblock
35026 #: ../tools/virt-make-fs.pl:210
35027 msgid ""
35028 "Note that virt-make-fs estimates free space, and therefore will not produce "
35029 "filesystems containing precisely the free space requested.  (It is much more "
35030 "expensive and time-consuming to produce a filesystem which has precisely the "
35031 "desired free space)."
35032 msgstr ""
35033
35034 # type: =item
35035 #. type: =item
35036 #: ../tools/virt-make-fs.pl:219
35037 msgid "B<--format=E<lt>fmtE<gt>>"
35038 msgstr ""
35039
35040 # type: =item
35041 #. type: =item
35042 #: ../tools/virt-make-fs.pl:221
35043 msgid "B<-F E<lt>fmtE<gt>>"
35044 msgstr ""
35045
35046 # type: textblock
35047 #. type: textblock
35048 #: ../tools/virt-make-fs.pl:223
35049 msgid "Choose the output disk image format."
35050 msgstr ""
35051
35052 # type: textblock
35053 #. type: textblock
35054 #: ../tools/virt-make-fs.pl:225
35055 msgid "The default is C<raw> (raw disk image)."
35056 msgstr ""
35057
35058 # type: textblock
35059 #. type: textblock
35060 #: ../tools/virt-make-fs.pl:227
35061 msgid ""
35062 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
35063 "that would really make sense here is C<qcow2>."
35064 msgstr ""
35065
35066 # type: =item
35067 #. type: =item
35068 #: ../tools/virt-make-fs.pl:234
35069 msgid "B<--type=E<lt>fsE<gt>>"
35070 msgstr ""
35071
35072 # type: =item
35073 #. type: =item
35074 #: ../tools/virt-make-fs.pl:236
35075 msgid "B<-t E<lt>fsE<gt>>"
35076 msgstr ""
35077
35078 # type: textblock
35079 #. type: textblock
35080 #: ../tools/virt-make-fs.pl:238
35081 msgid "Choose the output filesystem type."
35082 msgstr ""
35083
35084 # type: textblock
35085 #. type: textblock
35086 #: ../tools/virt-make-fs.pl:240
35087 msgid "The default is C<ext2>."
35088 msgstr ""
35089
35090 # type: textblock
35091 #. type: textblock
35092 #: ../tools/virt-make-fs.pl:242
35093 msgid ""
35094 "Any filesystem which is supported read-write by libguestfs can be used here."
35095 msgstr ""
35096
35097 # type: =item
35098 #. type: =item
35099 #: ../tools/virt-make-fs.pl:249
35100 msgid "B<--partition>"
35101 msgstr ""
35102
35103 # type: =item
35104 #. type: =item
35105 #: ../tools/virt-make-fs.pl:251
35106 msgid "B<--partition=E<lt>parttypeE<gt>>"
35107 msgstr ""
35108
35109 # type: textblock
35110 #. type: textblock
35111 #: ../tools/virt-make-fs.pl:253
35112 msgid ""
35113 "If specified, this flag adds an MBR partition table to the output disk image."
35114 msgstr ""
35115
35116 # type: textblock
35117 #. type: textblock
35118 #: ../tools/virt-make-fs.pl:256
35119 msgid ""
35120 "You can change the partition table type, eg. C<--partition=gpt> for large "
35121 "disks."
35122 msgstr ""
35123
35124 # type: textblock
35125 #. type: textblock
35126 #: ../tools/virt-make-fs.pl:259
35127 msgid ""
35128 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
35129 "might consider the next parameter to be the partition type.  For example:"
35130 msgstr ""
35131
35132 # type: verbatim
35133 #. type: verbatim
35134 #: ../tools/virt-make-fs.pl:263
35135 #, no-wrap
35136 msgid ""
35137 " virt-make-fs --partition input.tar ...\n"
35138 "\n"
35139 msgstr ""
35140
35141 # type: textblock
35142 #. type: textblock
35143 #: ../tools/virt-make-fs.pl:265
35144 msgid ""
35145 "would cause virt-make-fs to think you wanted to use a partition type of "
35146 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
35147 "dash) between options and the input file argument:"
35148 msgstr ""
35149
35150 # type: verbatim
35151 #. type: verbatim
35152 #: ../tools/virt-make-fs.pl:269
35153 #, no-wrap
35154 msgid ""
35155 " virt-make-fs --partition -- input.tar ...\n"
35156 "\n"
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../tools/virt-make-fs.pl:541
35161 msgid ""
35162 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35163 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35164 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35165 msgstr ""
35166
35167 # type: verbatim
35168 #. type: verbatim
35169 #: ../tools/virt-make-fs.pl:558
35170 #, no-wrap
35171 msgid ""
35172 " export LIBGUESTFS_DEBUG=1\n"
35173 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35174 "\n"
35175 msgstr ""
35176
35177 # type: textblock
35178 #. type: textblock
35179 #: ../tools/virt-make-fs.pl:561
35180 msgid ""
35181 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35182 "redhat.com/>"
35183 msgstr ""
35184
35185 # type: textblock
35186 #. type: textblock
35187 #: ../tools/virt-list-partitions.pl:32
35188 msgid ""
35189 "virt-list-partitions - List partitions in a virtual machine or disk image"
35190 msgstr ""
35191
35192 # type: verbatim
35193 #. type: verbatim
35194 #: ../tools/virt-list-partitions.pl:36
35195 #, no-wrap
35196 msgid ""
35197 " virt-list-partitions [--options] domname\n"
35198 "\n"
35199 msgstr ""
35200
35201 # type: verbatim
35202 #. type: verbatim
35203 #: ../tools/virt-list-partitions.pl:38
35204 #, no-wrap
35205 msgid ""
35206 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35207 "\n"
35208 msgstr ""
35209
35210 # type: textblock
35211 #. type: textblock
35212 #: ../tools/virt-list-partitions.pl:45
35213 msgid ""
35214 "C<virt-list-partitions> is a command line tool to list the partitions that "
35215 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35216 "first step to using L<virt-resize(1)>."
35217 msgstr ""
35218
35219 # type: textblock
35220 #. type: textblock
35221 #: ../tools/virt-list-partitions.pl:50
35222 msgid ""
35223 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35224 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35225 "> tool."
35226 msgstr ""
35227
35228 # type: =item
35229 #. type: =item
35230 #: ../tools/virt-list-partitions.pl:107
35231 msgid "B<-h> | B<--human-readable>"
35232 msgstr ""
35233
35234 # type: textblock
35235 #. type: textblock
35236 #: ../tools/virt-list-partitions.pl:109
35237 msgid "Show sizes in human-readable form (eg. \"1G\")."
35238 msgstr ""
35239
35240 # type: textblock
35241 #. type: textblock
35242 #: ../tools/virt-list-partitions.pl:117
35243 msgid ""
35244 "With this option, C<virt-list-partitions> displays the type and size of each "
35245 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35246 msgstr ""
35247
35248 # type: =item
35249 #. type: =item
35250 #: ../tools/virt-list-partitions.pl:124
35251 msgid "B<-t> | B<--total>"
35252 msgstr ""
35253
35254 # type: textblock
35255 #. type: textblock
35256 #: ../tools/virt-list-partitions.pl:126
35257 msgid ""
35258 "Display the total size of each block device (as a separate row or rows)."
35259 msgstr ""
35260
35261 # type: textblock
35262 #. type: textblock
35263 #: ../tools/virt-list-partitions.pl:259
35264 msgid ""
35265 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35266 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35267 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35268 msgstr ""