cc54fdfec9d3708e8023a13965e707e1e288feab
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2010-12-19 15:52+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =encoding
20 #: ../src/guestfs.pod:1 ../fish/guestfish.pod:1
21 #: ../test-tool/libguestfs-test-tool.pod:1 ../fuse/guestmount.pod:1
22 msgid "utf8"
23 msgstr ""
24
25 # type: =head1
26 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
27 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
28 msgid "NAME"
29 msgstr "名前"
30
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 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
38 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
39 msgid "SYNOPSIS"
40 msgstr ""
41
42 # type: verbatim
43 #: ../src/guestfs.pod:9
44 #, no-wrap
45 msgid ""
46 " #include <guestfs.h>\n"
47 " \n"
48 msgstr ""
49
50 # type: verbatim
51 #: ../src/guestfs.pod:11
52 #, no-wrap
53 msgid ""
54 " guestfs_h *g = guestfs_create ();\n"
55 " guestfs_add_drive (g, \"guest.img\");\n"
56 " guestfs_launch (g);\n"
57 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
58 " guestfs_touch (g, \"/hello\");\n"
59 " guestfs_umount (g, \"/\");\n"
60 " guestfs_close (g);\n"
61 "\n"
62 msgstr ""
63
64 # type: verbatim
65 #: ../src/guestfs.pod:19
66 #, no-wrap
67 msgid ""
68 " cc prog.c -o prog -lguestfs\n"
69 "or:\n"
70 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
71 "\n"
72 msgstr ""
73
74 # type: =head1
75 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
76 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
77 msgid "DESCRIPTION"
78 msgstr ""
79
80 # type: textblock
81 #: ../src/guestfs.pod:25
82 msgid ""
83 "Libguestfs is a library for accessing and modifying guest disk images.  "
84 "Amongst the things this is good for: making batch configuration changes to "
85 "guests, getting disk used/free statistics (see also: virt-df), migrating "
86 "between virtualization systems (see also: virt-p2v), performing partial "
87 "backups, performing partial guest clones, cloning guests and changing "
88 "registry/UUID/hostname info, and much else besides."
89 msgstr ""
90
91 # type: textblock
92 #: ../src/guestfs.pod:33
93 msgid ""
94 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
95 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
96 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
97 "qcow2, vmdk."
98 msgstr ""
99
100 # type: textblock
101 #: ../src/guestfs.pod:38
102 msgid ""
103 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
104 "what filesystem is in each LV, etc.).  It can also run commands in the "
105 "context of the guest.  Also you can access filesystems over FUSE."
106 msgstr ""
107
108 # type: textblock
109 #: ../src/guestfs.pod:43
110 msgid ""
111 "Libguestfs is a library that can be linked with C and C++ management "
112 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
113 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
114 "line."
115 msgstr ""
116
117 # type: textblock
118 #: ../src/guestfs.pod:48
119 msgid ""
120 "You don't need to be root to use libguestfs, although obviously you do need "
121 "enough permissions to access the disk images."
122 msgstr ""
123
124 # type: textblock
125 #: ../src/guestfs.pod:51
126 msgid ""
127 "Libguestfs is a large API because it can do many things.  For a gentle "
128 "introduction, please read the L</API OVERVIEW> section next."
129 msgstr ""
130
131 # type: textblock
132 #: ../src/guestfs.pod:54
133 msgid ""
134 "There are also some example programs in the L<guestfs-examples(3)> manual "
135 "page."
136 msgstr ""
137
138 # type: =head1
139 #: ../src/guestfs.pod:57
140 msgid "API OVERVIEW"
141 msgstr ""
142
143 # type: textblock
144 #: ../src/guestfs.pod:59
145 msgid ""
146 "This section provides a gentler overview of the libguestfs API.  We also try "
147 "to group API calls together, where that may not be obvious from reading "
148 "about the individual calls in the main section of this manual."
149 msgstr ""
150
151 # type: =head2
152 #: ../src/guestfs.pod:64
153 msgid "HANDLES"
154 msgstr ""
155
156 # type: textblock
157 #: ../src/guestfs.pod:66
158 msgid ""
159 "Before you can use libguestfs calls, you have to create a handle.  Then you "
160 "must add at least one disk image to the handle, followed by launching the "
161 "handle, then performing whatever operations you want, and finally closing "
162 "the handle.  By convention we use the single letter C<g> for the name of the "
163 "handle variable, although of course you can use any name you want."
164 msgstr ""
165
166 # type: textblock
167 #: ../src/guestfs.pod:73
168 msgid "The general structure of all libguestfs-using programs looks like this:"
169 msgstr ""
170
171 # type: verbatim
172 #: ../src/guestfs.pod:76
173 #, no-wrap
174 msgid ""
175 " guestfs_h *g = guestfs_create ();\n"
176 " \n"
177 msgstr ""
178
179 # type: verbatim
180 #: ../src/guestfs.pod:78
181 #, no-wrap
182 msgid ""
183 " /* Call guestfs_add_drive additional times if there are\n"
184 "  * multiple disk images.\n"
185 "  */\n"
186 " guestfs_add_drive (g, \"guest.img\");\n"
187 " \n"
188 msgstr ""
189
190 # type: verbatim
191 #: ../src/guestfs.pod:83
192 #, no-wrap
193 msgid ""
194 " /* Most manipulation calls won't work until you've launched\n"
195 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
196 "  * and _before_ other commands.\n"
197 "  */\n"
198 " guestfs_launch (g);\n"
199 " \n"
200 msgstr ""
201
202 # type: verbatim
203 #: ../src/guestfs.pod:89
204 #, no-wrap
205 msgid ""
206 " /* Now you can examine what partitions, LVs etc are available.\n"
207 "  */\n"
208 " char **partitions = guestfs_list_partitions (g);\n"
209 " char **logvols = guestfs_lvs (g);\n"
210 " \n"
211 msgstr ""
212
213 # type: verbatim
214 #: ../src/guestfs.pod:94
215 #, no-wrap
216 msgid ""
217 " /* To access a filesystem in the image, you must mount it.\n"
218 "  */\n"
219 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
220 " \n"
221 msgstr ""
222
223 # type: verbatim
224 #: ../src/guestfs.pod:98
225 #, no-wrap
226 msgid ""
227 " /* Now you can perform filesystem actions on the guest\n"
228 "  * disk image.\n"
229 "  */\n"
230 " guestfs_touch (g, \"/hello\");\n"
231 "\n"
232 msgstr ""
233
234 # type: verbatim
235 #: ../src/guestfs.pod:103
236 #, no-wrap
237 msgid ""
238 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
239 "  * it is done automatically when you close the handle.  See\n"
240 "  * discussion of autosync in this page.\n"
241 "  */\n"
242 " guestfs_sync (g);\n"
243 " \n"
244 msgstr ""
245
246 # type: verbatim
247 #: ../src/guestfs.pod:109
248 #, no-wrap
249 msgid ""
250 " /* Close the handle 'g'. */\n"
251 " guestfs_close (g);\n"
252 "\n"
253 msgstr ""
254
255 # type: textblock
256 #: ../src/guestfs.pod:112
257 msgid ""
258 "The code above doesn't include any error checking.  In real code you should "
259 "check return values carefully for errors.  In general all functions that "
260 "return integers return C<-1> on error, and all functions that return "
261 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
262 "how to handle errors, and consult the documentation for each function call "
263 "below to see precisely how they return error indications.  See L<guestfs-"
264 "examples(3)> for fully worked examples."
265 msgstr ""
266
267 # type: =head2
268 #: ../src/guestfs.pod:121
269 msgid "DISK IMAGES"
270 msgstr ""
271
272 # type: textblock
273 #: ../src/guestfs.pod:123
274 msgid ""
275 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
276 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
277 "actual block device, or simply an empty file of zeroes that you have created "
278 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
279 "of these."
280 msgstr ""
281
282 # type: textblock
283 #: ../src/guestfs.pod:129
284 msgid ""
285 "The call you should use in modern code for adding drives is L</"
286 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
287 "specifying that the format is raw, do:"
288 msgstr ""
289
290 # type: verbatim
291 #: ../src/guestfs.pod:133
292 #, no-wrap
293 msgid ""
294 " guestfs_add_drive_opts (g, filename,\n"
295 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
296 "                         -1);\n"
297 "\n"
298 msgstr ""
299
300 # type: textblock
301 #: ../src/guestfs.pod:137
302 msgid "You can add a disk read-only using:"
303 msgstr ""
304
305 # type: verbatim
306 #: ../src/guestfs.pod:139
307 #, no-wrap
308 msgid ""
309 " guestfs_add_drive_opts (g, filename,\n"
310 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
311 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
312 "                         -1);\n"
313 "\n"
314 msgstr ""
315
316 # type: textblock
317 #: ../src/guestfs.pod:144
318 msgid ""
319 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
320 "libguestfs won't modify the file."
321 msgstr ""
322
323 # type: textblock
324 #: ../src/guestfs.pod:147
325 msgid ""
326 "Be extremely cautious if the disk image is in use, eg. if it is being used "
327 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
328 "corruption, but adding it read-only is safe."
329 msgstr ""
330
331 # type: textblock
332 #: ../src/guestfs.pod:151
333 msgid ""
334 "You must add at least one disk image, and you may add multiple disk images.  "
335 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
336 "first one you added), C</dev/sdb> (for the second one you added), etc."
337 msgstr ""
338
339 # type: textblock
340 #: ../src/guestfs.pod:156
341 msgid ""
342 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
343 "can call L</guestfs_list_devices> to get a list of the device names, in the "
344 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
345 msgstr ""
346
347 # type: =head2
348 #: ../src/guestfs.pod:161
349 msgid "MOUNTING"
350 msgstr ""
351
352 # type: textblock
353 #: ../src/guestfs.pod:163
354 msgid ""
355 "Before you can read or write files, create directories and so on in a disk "
356 "image that contains filesystems, you have to mount those filesystems using "
357 "L</guestfs_mount>.  If you already know that a disk image contains (for "
358 "example) one partition with a filesystem on that partition, then you can "
359 "mount it directly:"
360 msgstr ""
361
362 # type: verbatim
363 #: ../src/guestfs.pod:169
364 #, no-wrap
365 msgid ""
366 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
367 "\n"
368 msgstr ""
369
370 # type: textblock
371 #: ../src/guestfs.pod:171
372 msgid ""
373 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
374 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
375 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>)."
376 msgstr ""
377
378 # type: textblock
379 #: ../src/guestfs.pod:175
380 msgid ""
381 "If you are given a disk image and you don't know what it contains then you "
382 "have to find out.  Libguestfs can do that too: use L</"
383 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
384 "LVs, and either try mounting each to see what is mountable, or else examine "
385 "them with L</guestfs_vfs_type> or L</guestfs_file>.  Libguestfs also has a "
386 "set of APIs for inspection of disk images (see L</INSPECTION> below).  But "
387 "you might find it easier to look at higher level programs built on top of "
388 "libguestfs, in particular L<virt-inspector(1)>."
389 msgstr ""
390
391 # type: textblock
392 #: ../src/guestfs.pod:185
393 msgid ""
394 "To mount a disk image read-only, use L</guestfs_mount_ro>.  There are "
395 "several other variations of the C<guestfs_mount_*> call."
396 msgstr ""
397
398 # type: =head2
399 #: ../src/guestfs.pod:188
400 msgid "FILESYSTEM ACCESS AND MODIFICATION"
401 msgstr ""
402
403 # type: textblock
404 #: ../src/guestfs.pod:190
405 msgid ""
406 "The majority of the libguestfs API consists of fairly low-level calls for "
407 "accessing and modifying the files, directories, symlinks etc on mounted "
408 "filesystems.  There are over a hundred such calls which you can find listed "
409 "in detail below in this man page, and we don't even pretend to cover them "
410 "all in this overview."
411 msgstr ""
412
413 # type: textblock
414 #: ../src/guestfs.pod:196
415 msgid ""
416 "Specify filenames as full paths, starting with C<\"/\"> and including the "
417 "mount point."
418 msgstr ""
419
420 # type: textblock
421 #: ../src/guestfs.pod:199
422 msgid ""
423 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
424 "the file called C<\"etc/passwd\"> then you could do:"
425 msgstr ""
426
427 # type: verbatim
428 #: ../src/guestfs.pod:202
429 #, no-wrap
430 msgid ""
431 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
432 "\n"
433 msgstr ""
434
435 # type: textblock
436 #: ../src/guestfs.pod:204
437 msgid ""
438 "This would return C<data> as a newly allocated buffer containing the full "
439 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
440 "or C<NULL> if there was an error."
441 msgstr ""
442
443 # type: textblock
444 #: ../src/guestfs.pod:208
445 msgid ""
446 "As another example, to create a top-level directory on that filesystem "
447 "called C<\"var\"> you would do:"
448 msgstr ""
449
450 # type: verbatim
451 #: ../src/guestfs.pod:211
452 #, no-wrap
453 msgid ""
454 " guestfs_mkdir (g, \"/var\");\n"
455 "\n"
456 msgstr ""
457
458 # type: textblock
459 #: ../src/guestfs.pod:213
460 msgid "To create a symlink you could do:"
461 msgstr ""
462
463 # type: verbatim
464 #: ../src/guestfs.pod:215
465 #, no-wrap
466 msgid ""
467 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
468 "               \"/etc/rc3.d/S30portmap\");\n"
469 "\n"
470 msgstr ""
471
472 # type: textblock
473 #: ../src/guestfs.pod:218
474 msgid ""
475 "Libguestfs will reject attempts to use relative paths and there is no "
476 "concept of a current working directory."
477 msgstr ""
478
479 # type: textblock
480 #: ../src/guestfs.pod:221
481 msgid ""
482 "Libguestfs can return errors in many situations: for example if the "
483 "filesystem isn't writable, or if a file or directory that you requested "
484 "doesn't exist.  If you are using the C API (documented here)  you have to "
485 "check for those error conditions after each call.  (Other language bindings "
486 "turn these errors into exceptions)."
487 msgstr ""
488
489 # type: textblock
490 #: ../src/guestfs.pod:227
491 msgid ""
492 "File writes are affected by the per-handle umask, set by calling L</"
493 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
494 msgstr ""
495
496 # type: =head2
497 #: ../src/guestfs.pod:230
498 msgid "PARTITIONING"
499 msgstr ""
500
501 # type: textblock
502 #: ../src/guestfs.pod:232
503 msgid ""
504 "Libguestfs contains API calls to read, create and modify partition tables on "
505 "disk images."
506 msgstr ""
507
508 # type: textblock
509 #: ../src/guestfs.pod:235
510 msgid ""
511 "In the common case where you want to create a single partition covering the "
512 "whole disk, you should use the L</guestfs_part_disk> call:"
513 msgstr ""
514
515 # type: verbatim
516 #: ../src/guestfs.pod:239
517 #, no-wrap
518 msgid ""
519 " const char *parttype = \"mbr\";\n"
520 " if (disk_is_larger_than_2TB)\n"
521 "   parttype = \"gpt\";\n"
522 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
523 "\n"
524 msgstr ""
525
526 # type: textblock
527 #: ../src/guestfs.pod:244
528 msgid ""
529 "Obviously this effectively wipes anything that was on that disk image before."
530 msgstr ""
531
532 # type: =head2
533 #: ../src/guestfs.pod:247
534 msgid "LVM2"
535 msgstr ""
536
537 # type: textblock
538 #: ../src/guestfs.pod:249
539 msgid ""
540 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
541 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
542 "you familiarize yourself with the concepts of physical volumes, volume "
543 "groups and logical volumes."
544 msgstr ""
545
546 # type: textblock
547 #: ../src/guestfs.pod:254
548 msgid ""
549 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
550 "tldp.org/HOWTO/LVM-HOWTO/>."
551 msgstr ""
552
553 # type: =head2
554 #: ../src/guestfs.pod:257
555 msgid "DOWNLOADING"
556 msgstr ""
557
558 # type: textblock
559 #: ../src/guestfs.pod:259
560 msgid ""
561 "Use L</guestfs_cat> to download small, text only files.  This call is "
562 "limited to files which are less than 2 MB and which cannot contain any ASCII "
563 "NUL (C<\\0>) characters.  However it has a very simple to use API."
564 msgstr ""
565
566 # type: textblock
567 #: ../src/guestfs.pod:264
568 msgid ""
569 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
570 "bit data, since it returns a (pointer, size) pair.  However it is still "
571 "limited to \"small\" files, less than 2 MB."
572 msgstr ""
573
574 # type: textblock
575 #: ../src/guestfs.pod:268
576 msgid ""
577 "L</guestfs_download> can be used to download any file, with no limits on "
578 "content or size (even files larger than 4 GB)."
579 msgstr ""
580
581 # type: textblock
582 #: ../src/guestfs.pod:271
583 msgid ""
584 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
585 msgstr ""
586
587 # type: =head2
588 #: ../src/guestfs.pod:274
589 msgid "UPLOADING"
590 msgstr ""
591
592 # type: textblock
593 #: ../src/guestfs.pod:276
594 msgid ""
595 "It's often the case that you want to write a file or files to the disk image."
596 msgstr ""
597
598 # type: textblock
599 #: ../src/guestfs.pod:279
600 msgid ""
601 "To write a small file with fixed content, use L</guestfs_write>.  To create "
602 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
603 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
604 "of other functions for creating test files, for example L</guestfs_fill> and "
605 "L</guestfs_fill_pattern>."
606 msgstr ""
607
608 # type: textblock
609 #: ../src/guestfs.pod:285
610 msgid ""
611 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
612 "file content or size (even files larger than 4 GB)."
613 msgstr ""
614
615 # type: textblock
616 #: ../src/guestfs.pod:288
617 msgid ""
618 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
619 msgstr ""
620
621 # type: textblock
622 #: ../src/guestfs.pod:290
623 msgid ""
624 "However the fastest way to upload I<large numbers of arbitrary files> is to "
625 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
626 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
627 "in a predictable way (eg. adding it last after all other drives) then you "
628 "can get the device name from L</guestfs_list_devices> and mount it directly "
629 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
630 "portable between kernel versions, and they don't support labels or UUIDs.  "
631 "If you want to pre-build an image or you need to mount it using a label or "
632 "UUID, use an ISO image instead."
633 msgstr ""
634
635 # type: =head2
636 #: ../src/guestfs.pod:301
637 msgid "COPYING"
638 msgstr ""
639
640 # type: textblock
641 #: ../src/guestfs.pod:303
642 msgid ""
643 "There are various different commands for copying between files and devices "
644 "and in and out of the guest filesystem.  These are summarised in the table "
645 "below."
646 msgstr ""
647
648 # type: =item
649 #: ../src/guestfs.pod:309
650 msgid "B<file> to B<file>"
651 msgstr ""
652
653 # type: textblock
654 #: ../src/guestfs.pod:311
655 msgid ""
656 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
657 "directories recursively."
658 msgstr ""
659
660 # type: =item
661 #: ../src/guestfs.pod:314
662 msgid "B<file or device> to B<file or device>"
663 msgstr ""
664
665 # type: textblock
666 #: ../src/guestfs.pod:316
667 msgid ""
668 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
669 "devices in the guest."
670 msgstr ""
671
672 # type: textblock
673 #: ../src/guestfs.pod:319
674 msgid "Example: duplicate the contents of an LV:"
675 msgstr ""
676
677 # type: verbatim
678 #: ../src/guestfs.pod:321
679 #, no-wrap
680 msgid ""
681 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
682 "\n"
683 msgstr ""
684
685 # type: textblock
686 #: ../src/guestfs.pod:323
687 msgid ""
688 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
689 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
690 "guestfs_copy_size>."
691 msgstr ""
692
693 # type: =item
694 #: ../src/guestfs.pod:327
695 msgid "B<file on the host> to B<file or device>"
696 msgstr ""
697
698 # type: textblock
699 #: ../src/guestfs.pod:329
700 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
701 msgstr ""
702
703 # type: =item
704 #: ../src/guestfs.pod:331
705 msgid "B<file or device> to B<file on the host>"
706 msgstr ""
707
708 # type: textblock
709 #: ../src/guestfs.pod:333
710 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
711 msgstr ""
712
713 # type: =head2
714 #: ../src/guestfs.pod:337
715 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
716 msgstr ""
717
718 # type: textblock
719 #: ../src/guestfs.pod:339
720 msgid ""
721 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
722 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
723 "appears you can only upload and download to files.  However many Un*x-like "
724 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
725 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
726 "and arbitrary file descriptor N."
727 msgstr ""
728
729 # type: textblock
730 #: ../src/guestfs.pod:347
731 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
732 msgstr ""
733
734 # type: verbatim
735 #: ../src/guestfs.pod:350
736 #, no-wrap
737 msgid ""
738 " guestfs_download (filename, \"/dev/stdout\");\n"
739 "\n"
740 msgstr ""
741
742 # type: textblock
743 #: ../src/guestfs.pod:352
744 msgid "and you can write tar output to a pipe C<fd> by doing:"
745 msgstr ""
746
747 # type: verbatim
748 #: ../src/guestfs.pod:354
749 #, no-wrap
750 msgid ""
751 " char devfd[64];\n"
752 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
753 " guestfs_tar_out (\"/\", devfd);\n"
754 "\n"
755 msgstr ""
756
757 # type: =head2
758 #: ../src/guestfs.pod:358
759 msgid "LISTING FILES"
760 msgstr ""
761
762 # type: textblock
763 #: ../src/guestfs.pod:360
764 msgid ""
765 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
766 "L<guestfish(1)>-equivalent command C<ll>)."
767 msgstr ""
768
769 # type: textblock
770 #: ../src/guestfs.pod:363
771 msgid ""
772 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
773 "programs, as a flat list of strings."
774 msgstr ""
775
776 # type: textblock
777 #: ../src/guestfs.pod:366
778 msgid ""
779 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
780 "directory, plus additional information about each one.  It is more "
781 "equivalent to using the L<readdir(3)> call on a local filesystem."
782 msgstr ""
783
784 # type: textblock
785 #: ../src/guestfs.pod:370
786 msgid ""
787 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
788 msgstr ""
789
790 # type: =head2
791 #: ../src/guestfs.pod:373
792 msgid "RUNNING COMMANDS"
793 msgstr ""
794
795 # type: textblock
796 #: ../src/guestfs.pod:375
797 msgid ""
798 "Although libguestfs is primarily an API for manipulating files inside guest "
799 "images, we also provide some limited facilities for running commands inside "
800 "guests."
801 msgstr ""
802
803 # type: textblock
804 #: ../src/guestfs.pod:379
805 msgid "There are many limitations to this:"
806 msgstr ""
807
808 # type: =item
809 #: ../src/guestfs.pod:383 ../src/guestfs.pod:388 ../src/guestfs.pod:393
810 #: ../src/guestfs.pod:397 ../src/guestfs.pod:402 ../src/guestfs.pod:406
811 #: ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:1006
812 #: ../src/guestfs.pod:1010 ../src/guestfs.pod:1014 ../src/guestfs.pod:1019
813 #: ../src/guestfs.pod:1027 ../src/guestfs.pod:1046 ../src/guestfs.pod:1054
814 #: ../src/guestfs.pod:1076 ../src/guestfs.pod:1080 ../src/guestfs.pod:1084
815 #: ../src/guestfs.pod:1088 ../src/guestfs.pod:1092 ../src/guestfs.pod:1096
816 #: ../src/guestfs.pod:1578 ../src/guestfs.pod:1583 ../src/guestfs.pod:1587
817 #: ../src/guestfs.pod:1697 ../src/guestfs.pod:1702 ../src/guestfs.pod:1706
818 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2064 ../src/guestfs.pod:2069
819 #: ../src/guestfs.pod:2075 ../src/guestfs.pod:2187 ../src/guestfs.pod:2191
820 #: ../src/guestfs.pod:2195 ../src/guestfs.pod:2199
821 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
822 #: ../src/guestfs-actions.pod:571 ../src/guestfs-actions.pod:579
823 #: ../src/guestfs-actions.pod:586 ../src/guestfs-actions.pod:593
824 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:1593
825 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:1601
826 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1613
827 #: ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1627
828 #: ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1635
829 #: ../src/guestfs-actions.pod:1773 ../src/guestfs-actions.pod:1777
830 #: ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1787
831 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:1852
832 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish.pod:427
833 #: ../fish/guestfish.pod:431 ../fish/guestfish.pod:435
834 #: ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13
835 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:375
836 #: ../fish/guestfish-actions.pod:383 ../fish/guestfish-actions.pod:390
837 #: ../fish/guestfish-actions.pod:397 ../fish/guestfish-actions.pod:1067
838 #: ../fish/guestfish-actions.pod:1071 ../fish/guestfish-actions.pod:1075
839 #: ../fish/guestfish-actions.pod:1079 ../fish/guestfish-actions.pod:1087
840 #: ../fish/guestfish-actions.pod:1091 ../fish/guestfish-actions.pod:1095
841 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1109
842 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1203
843 #: ../fish/guestfish-actions.pod:1207 ../fish/guestfish-actions.pod:1212
844 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1259
845 #: ../fish/guestfish-actions.pod:1263 ../fish/guestfish-actions.pod:1268
846 msgid "*"
847 msgstr ""
848
849 # type: textblock
850 #: ../src/guestfs.pod:385
851 msgid ""
852 "The kernel version that the command runs under will be different from what "
853 "it expects."
854 msgstr ""
855
856 # type: textblock
857 #: ../src/guestfs.pod:390
858 msgid ""
859 "If the command needs to communicate with daemons, then most likely they "
860 "won't be running."
861 msgstr ""
862
863 # type: textblock
864 #: ../src/guestfs.pod:395
865 msgid "The command will be running in limited memory."
866 msgstr ""
867
868 # type: textblock
869 #: ../src/guestfs.pod:399
870 msgid ""
871 "The network may not be available unless you enable it (see L</"
872 "guestfs_set_network>)."
873 msgstr ""
874
875 # type: textblock
876 #: ../src/guestfs.pod:404
877 msgid "Only supports Linux guests (not Windows, BSD, etc)."
878 msgstr ""
879
880 # type: textblock
881 #: ../src/guestfs.pod:408
882 msgid ""
883 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
884 msgstr ""
885
886 # type: textblock
887 #: ../src/guestfs.pod:413
888 msgid ""
889 "For SELinux guests, you may need to enable SELinux and load policy first.  "
890 "See L</SELINUX> in this manpage."
891 msgstr ""
892
893 # type: textblock
894 #: ../src/guestfs.pod:418
895 msgid ""
896 "I<Security:> It is not safe to run commands from untrusted, possibly "
897 "malicious guests.  These commands may attempt to exploit your program by "
898 "sending unexpected output.  They could also try to exploit the Linux kernel "
899 "or qemu provided by the libguestfs appliance.  They could use the network "
900 "provided by the libguestfs appliance to bypass ordinary network partitions "
901 "and firewalls.  They could use the elevated privileges or different SELinux "
902 "context of your program to their advantage."
903 msgstr ""
904
905 # type: textblock
906 #: ../src/guestfs.pod:427
907 msgid ""
908 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
909 "(a script which runs when the guest next boots normally), and to have this "
910 "script run the commands you want in the normal context of the running guest, "
911 "network security and so on.  For information about other security issues, "
912 "see L</SECURITY>."
913 msgstr ""
914
915 # type: textblock
916 #: ../src/guestfs.pod:435
917 msgid ""
918 "The two main API calls to run commands are L</guestfs_command> and L</"
919 "guestfs_sh> (there are also variations)."
920 msgstr ""
921
922 # type: textblock
923 #: ../src/guestfs.pod:438
924 msgid ""
925 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
926 "shell globs, redirections, etc will work."
927 msgstr ""
928
929 # type: =head2
930 #: ../src/guestfs.pod:441
931 msgid "CONFIGURATION FILES"
932 msgstr ""
933
934 # type: textblock
935 #: ../src/guestfs.pod:443
936 msgid ""
937 "To read and write configuration files in Linux guest filesystems, we "
938 "strongly recommend using Augeas.  For example, Augeas understands how to "
939 "read and write, say, a Linux shadow password file or X.org configuration "
940 "file, and so avoids you having to write that code."
941 msgstr ""
942
943 # type: textblock
944 #: ../src/guestfs.pod:448
945 msgid ""
946 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
947 "document Augeas itself here because there is excellent documentation on the "
948 "L<http://augeas.net/> website."
949 msgstr ""
950
951 # type: textblock
952 #: ../src/guestfs.pod:452
953 msgid ""
954 "If you don't want to use Augeas (you fool!) then try calling L</"
955 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
956 "over."
957 msgstr ""
958
959 # type: =head2
960 #: ../src/guestfs.pod:456
961 msgid "SELINUX"
962 msgstr ""
963
964 # type: textblock
965 #: ../src/guestfs.pod:458
966 msgid ""
967 "We support SELinux guests.  To ensure that labeling happens correctly in "
968 "SELinux guests, you need to enable SELinux and load the guest's policy:"
969 msgstr ""
970
971 # type: =item
972 #: ../src/guestfs.pod:464 ../src/guestfs.pod:1199 ../src/guestfs.pod:1330
973 msgid "1."
974 msgstr ""
975
976 # type: textblock
977 #: ../src/guestfs.pod:466
978 msgid "Before launching, do:"
979 msgstr ""
980
981 # type: verbatim
982 #: ../src/guestfs.pod:468
983 #, no-wrap
984 msgid ""
985 " guestfs_set_selinux (g, 1);\n"
986 "\n"
987 msgstr ""
988
989 # type: =item
990 #: ../src/guestfs.pod:470 ../src/guestfs.pod:1203 ../src/guestfs.pod:1334
991 msgid "2."
992 msgstr ""
993
994 # type: textblock
995 #: ../src/guestfs.pod:472
996 msgid ""
997 "After mounting the guest's filesystem(s), load the policy.  This is best "
998 "done by running the L<load_policy(8)> command in the guest itself:"
999 msgstr ""
1000
1001 # type: verbatim
1002 #: ../src/guestfs.pod:476
1003 #, no-wrap
1004 msgid ""
1005 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1006 "\n"
1007 msgstr ""
1008
1009 # type: textblock
1010 #: ../src/guestfs.pod:478
1011 msgid ""
1012 "(Older versions of C<load_policy> require you to specify the name of the "
1013 "policy file)."
1014 msgstr ""
1015
1016 # type: =item
1017 #: ../src/guestfs.pod:481 ../src/guestfs.pod:1340
1018 msgid "3."
1019 msgstr ""
1020
1021 # type: textblock
1022 #: ../src/guestfs.pod:483
1023 msgid ""
1024 "Optionally, set the security context for the API.  The correct security "
1025 "context to use can only be known by inspecting the guest.  As an example:"
1026 msgstr ""
1027
1028 # type: verbatim
1029 #: ../src/guestfs.pod:487
1030 #, no-wrap
1031 msgid ""
1032 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1033 "\n"
1034 msgstr ""
1035
1036 # type: textblock
1037 #: ../src/guestfs.pod:491
1038 msgid "This will work for running commands and editing existing files."
1039 msgstr ""
1040
1041 # type: textblock
1042 #: ../src/guestfs.pod:493
1043 msgid ""
1044 "When new files are created, you may need to label them explicitly, for "
1045 "example by running the external command C<restorecon pathname>."
1046 msgstr ""
1047
1048 # type: =head2
1049 #: ../src/guestfs.pod:497
1050 msgid "UMASK"
1051 msgstr ""
1052
1053 # type: textblock
1054 #: ../src/guestfs.pod:499
1055 msgid ""
1056 "Certain calls are affected by the current file mode creation mask (the "
1057 "\"umask\").  In particular ones which create files or directories, such as "
1058 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1059 "either the default mode that the file is created with or modifies the mode "
1060 "that you supply."
1061 msgstr ""
1062
1063 # type: textblock
1064 #: ../src/guestfs.pod:505
1065 msgid ""
1066 "The default umask is C<022>, so files are created with modes such as C<0644> "
1067 "and directories with C<0755>."
1068 msgstr ""
1069
1070 # type: textblock
1071 #: ../src/guestfs.pod:508
1072 msgid ""
1073 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1074 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1075 "guestfs_chmod> after creating each file or directory."
1076 msgstr ""
1077
1078 # type: textblock
1079 #: ../src/guestfs.pod:512
1080 msgid "For more information about umask, see L<umask(2)>."
1081 msgstr ""
1082
1083 # type: =head1
1084 #: ../src/guestfs.pod:514 ../fish/guestfish.pod:720
1085 msgid "ENCRYPTED DISKS"
1086 msgstr ""
1087
1088 # type: textblock
1089 #: ../src/guestfs.pod:516
1090 msgid ""
1091 "Libguestfs allows you to access Linux guests which have been encrypted using "
1092 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1093 "standard.  This includes nearly all whole disk encryption systems used by "
1094 "modern Linux guests."
1095 msgstr ""
1096
1097 # type: textblock
1098 #: ../src/guestfs.pod:522
1099 msgid ""
1100 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1101 "returns the string C<crypto_LUKS>)."
1102 msgstr ""
1103
1104 # type: textblock
1105 #: ../src/guestfs.pod:525
1106 msgid ""
1107 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1108 "will require the passphrase!"
1109 msgstr ""
1110
1111 # type: textblock
1112 #: ../src/guestfs.pod:528
1113 msgid ""
1114 "Opening a LUKS device creates a new device mapper device called C</dev/"
1115 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1116 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1117 "from and encrypted to the underlying block device respectively."
1118 msgstr ""
1119
1120 # type: textblock
1121 #: ../src/guestfs.pod:534
1122 msgid ""
1123 "LVM volume groups on the device can be made visible by calling L</"
1124 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1125 "(s) can now be mounted in the usual way."
1126 msgstr ""
1127
1128 # type: textblock
1129 #: ../src/guestfs.pod:538
1130 msgid ""
1131 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1132 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1133 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1134 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1135 "underlying encrypted block device)."
1136 msgstr ""
1137
1138 # type: =head2
1139 #: ../src/guestfs.pod:545
1140 msgid "INSPECTION"
1141 msgstr ""
1142
1143 # type: textblock
1144 #: ../src/guestfs.pod:547
1145 msgid ""
1146 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1147 "contains operating systems.  (These APIs used to be in a separate Perl-only "
1148 "library called L<Sys::Guestfs::Lib(3)> but since version 1.5.3 the most "
1149 "frequently used part of this library has been rewritten in C and moved into "
1150 "the core code)."
1151 msgstr ""
1152
1153 # type: textblock
1154 #: ../src/guestfs.pod:553
1155 msgid ""
1156 "Add all disks belonging to the unknown virtual machine and call L</"
1157 "guestfs_launch> in the usual way."
1158 msgstr ""
1159
1160 # type: textblock
1161 #: ../src/guestfs.pod:556
1162 msgid ""
1163 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1164 "and certain heuristics, and returns a list of operating systems that were "
1165 "found.  An empty list means none were found.  A single element is the root "
1166 "filesystem of the operating system.  For dual- or multi-boot guests, "
1167 "multiple roots can be returned, each one corresponding to a separate "
1168 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1169 "world of virtualization, but since this scenario can happen, we have built "
1170 "libguestfs to deal with it.)"
1171 msgstr ""
1172
1173 # type: textblock
1174 #: ../src/guestfs.pod:565
1175 msgid ""
1176 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1177 "to get additional details about that operating system.  For example, call L</"
1178 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1179 "Windows and Linux-based operating systems respectively."
1180 msgstr ""
1181
1182 # type: textblock
1183 #: ../src/guestfs.pod:571
1184 msgid ""
1185 "Un*x-like and Linux-based operating systems usually consist of several "
1186 "filesystems which are mounted at boot time (for example, a separate boot "
1187 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1188 "filesystems correspond to mount points.  Call "
1189 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1190 "hash table like this example:"
1191 msgstr ""
1192
1193 # type: verbatim
1194 #: ../src/guestfs.pod:578
1195 #, no-wrap
1196 msgid ""
1197 " /boot => /dev/sda1\n"
1198 " /     => /dev/vg_guest/lv_root\n"
1199 " /usr  => /dev/vg_guest/lv_usr\n"
1200 "\n"
1201 msgstr ""
1202
1203 # type: textblock
1204 #: ../src/guestfs.pod:582
1205 msgid ""
1206 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1207 "filesystems as suggested."
1208 msgstr ""
1209
1210 # type: textblock
1211 #: ../src/guestfs.pod:585
1212 msgid ""
1213 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1214 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1215 msgstr ""
1216
1217 # type: textblock
1218 #: ../src/guestfs.pod:589
1219 msgid ""
1220 "Inspection currently only works for some common operating systems.  "
1221 "Contributors are welcome to send patches for other operating systems that we "
1222 "currently cannot detect."
1223 msgstr ""
1224
1225 # type: textblock
1226 #: ../src/guestfs.pod:593
1227 msgid ""
1228 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1229 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1230 "encrypted devices."
1231 msgstr ""
1232
1233 # type: textblock
1234 #: ../src/guestfs.pod:597
1235 msgid ""
1236 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1237 "inspection and caches the results in the guest handle.  Subsequent calls to "
1238 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1239 "read the disks.  If you change the content of the guest disks, you can redo "
1240 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1241 "guestfs_inspect_list_applications> works a little differently from the other "
1242 "calls and does read the disks.  See documentation for that function for "
1243 "details)."
1244 msgstr ""
1245
1246 # type: =head2
1247 #: ../src/guestfs.pod:606
1248 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1249 msgstr ""
1250
1251 # type: textblock
1252 #: ../src/guestfs.pod:608
1253 msgid ""
1254 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1255 "ntfs-3g.org/> driver."
1256 msgstr ""
1257
1258 # type: =head3
1259 #: ../src/guestfs.pod:611
1260 msgid "DRIVE LETTERS AND PATHS"
1261 msgstr ""
1262
1263 # type: textblock
1264 #: ../src/guestfs.pod:613
1265 msgid ""
1266 "DOS and Windows still use drive letters, and the filesystems are always "
1267 "treated as case insensitive by Windows itself, and therefore you might find "
1268 "a Windows configuration file referring to a path like C<c:\\windows"
1269 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1270 "might be referred to as C</WINDOWS/System32>."
1271 msgstr ""
1272
1273 # type: textblock
1274 #: ../src/guestfs.pod:619
1275 msgid ""
1276 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1277 "libguestfs to read the appropriate Windows Registry and configuration files, "
1278 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1279 "inspector(1)>)."
1280 msgstr ""
1281
1282 # type: textblock
1283 #: ../src/guestfs.pod:624
1284 msgid ""
1285 "Replacing backslash characters with forward slash characters is also outside "
1286 "the scope of libguestfs, but something that you can easily do."
1287 msgstr ""
1288
1289 # type: textblock
1290 #: ../src/guestfs.pod:627
1291 msgid ""
1292 "Where we can help is in resolving the case insensitivity of paths.  For "
1293 "this, call L</guestfs_case_sensitive_path>."
1294 msgstr ""
1295
1296 # type: =head3
1297 #: ../src/guestfs.pod:630
1298 msgid "ACCESSING THE WINDOWS REGISTRY"
1299 msgstr ""
1300
1301 # type: textblock
1302 #: ../src/guestfs.pod:632
1303 msgid ""
1304 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1305 "files, through the library C<hivex> which is part of the libguestfs project "
1306 "although ships as a separate tarball.  You have to locate and download the "
1307 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1308 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1309 "reg(1)> for more help on this issue."
1310 msgstr ""
1311
1312 # type: =head3
1313 #: ../src/guestfs.pod:640
1314 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1315 msgstr ""
1316
1317 # type: textblock
1318 #: ../src/guestfs.pod:642
1319 msgid ""
1320 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1321 "provide something which looks like a Linux symlink.  The way it tries to do "
1322 "the rewriting is described here:"
1323 msgstr ""
1324
1325 # type: textblock
1326 #: ../src/guestfs.pod:646
1327 msgid ""
1328 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1329 "symbolic-links/>"
1330 msgstr ""
1331
1332 # type: textblock
1333 #: ../src/guestfs.pod:648
1334 msgid ""
1335 "The essential problem is that ntfs-3g simply does not have enough "
1336 "information to do a correct job.  NTFS links can contain drive letters and "
1337 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1338 "It is almost certainly the case that libguestfs callers should ignore what "
1339 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1340 msgstr ""
1341
1342 # type: textblock
1343 #: ../src/guestfs.pod:655
1344 msgid ""
1345 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1346 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1347 "attribute, and read the raw reparse data from that (you can find the format "
1348 "documented in various places around the web)."
1349 msgstr ""
1350
1351 # type: =head3
1352 #: ../src/guestfs.pod:660
1353 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1354 msgstr ""
1355
1356 # type: textblock
1357 #: ../src/guestfs.pod:662
1358 msgid ""
1359 "There are other useful extended attributes that can be read from ntfs-3g "
1360 "filesystems (using L</guestfs_getxattr>).  See:"
1361 msgstr ""
1362
1363 # type: textblock
1364 #: ../src/guestfs.pod:665
1365 msgid ""
1366 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1367 msgstr ""
1368
1369 # type: =head2
1370 #: ../src/guestfs.pod:667
1371 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1372 msgstr ""
1373
1374 # type: textblock
1375 #: ../src/guestfs.pod:669
1376 msgid ""
1377 "Although we don't want to discourage you from using the C API, we will "
1378 "mention here that the same API is also available in other languages."
1379 msgstr ""
1380
1381 # type: textblock
1382 #: ../src/guestfs.pod:672
1383 msgid ""
1384 "The API is broadly identical in all supported languages.  This means that "
1385 "the C call C<guestfs_mount(g,path)> is C<$g-E<gt>mount($path)> in Perl, C<g."
1386 "mount(path)> in Python, and C<Guestfs.mount g path> in OCaml.  In other "
1387 "words, a straightforward, predictable isomorphism between each language."
1388 msgstr ""
1389
1390 # type: textblock
1391 #: ../src/guestfs.pod:678
1392 msgid ""
1393 "Error messages are automatically transformed into exceptions if the language "
1394 "supports it."
1395 msgstr ""
1396
1397 # type: textblock
1398 #: ../src/guestfs.pod:681
1399 msgid ""
1400 "We don't try to \"object orientify\" parts of the API in OO languages, "
1401 "although contributors are welcome to write higher level APIs above what we "
1402 "provide in their favourite languages if they wish."
1403 msgstr ""
1404
1405 # type: =item
1406 #: ../src/guestfs.pod:687
1407 msgid "B<C++>"
1408 msgstr ""
1409
1410 # type: textblock
1411 #: ../src/guestfs.pod:689
1412 msgid ""
1413 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1414 "identical to the C API.  C++ classes and exceptions are not used."
1415 msgstr ""
1416
1417 # type: =item
1418 #: ../src/guestfs.pod:693
1419 msgid "B<C#>"
1420 msgstr ""
1421
1422 # type: textblock
1423 #: ../src/guestfs.pod:695
1424 msgid ""
1425 "The C# bindings are highly experimental.  Please read the warnings at the "
1426 "top of C<csharp/Libguestfs.cs>."
1427 msgstr ""
1428
1429 # type: =item
1430 #: ../src/guestfs.pod:698
1431 msgid "B<Haskell>"
1432 msgstr ""
1433
1434 # type: textblock
1435 #: ../src/guestfs.pod:700
1436 msgid ""
1437 "This is the only language binding that is working but incomplete.  Only "
1438 "calls which return simple integers have been bound in Haskell, and we are "
1439 "looking for help to complete this binding."
1440 msgstr ""
1441
1442 # type: =item
1443 #: ../src/guestfs.pod:704
1444 msgid "B<Java>"
1445 msgstr ""
1446
1447 # type: textblock
1448 #: ../src/guestfs.pod:706
1449 msgid ""
1450 "Full documentation is contained in the Javadoc which is distributed with "
1451 "libguestfs."
1452 msgstr ""
1453
1454 # type: =item
1455 #: ../src/guestfs.pod:709
1456 msgid "B<OCaml>"
1457 msgstr ""
1458
1459 # type: textblock
1460 #: ../src/guestfs.pod:711
1461 msgid "For documentation see L<guestfs-ocaml(3)>."
1462 msgstr ""
1463
1464 # type: =item
1465 #: ../src/guestfs.pod:713
1466 msgid "B<Perl>"
1467 msgstr ""
1468
1469 # type: textblock
1470 #: ../src/guestfs.pod:715
1471 msgid "For documentation see L<Sys::Guestfs(3)>."
1472 msgstr ""
1473
1474 # type: =item
1475 #: ../src/guestfs.pod:717
1476 msgid "B<PHP>"
1477 msgstr ""
1478
1479 # type: textblock
1480 #: ../src/guestfs.pod:719
1481 msgid ""
1482 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1483 "the php-libguestfs package for your distribution."
1484 msgstr ""
1485
1486 # type: textblock
1487 #: ../src/guestfs.pod:722
1488 msgid "The PHP binding only works correctly on 64 bit machines."
1489 msgstr ""
1490
1491 # type: =item
1492 #: ../src/guestfs.pod:724
1493 msgid "B<Python>"
1494 msgstr ""
1495
1496 # type: textblock
1497 #: ../src/guestfs.pod:726
1498 msgid "For documentation see L<guestfs-python(3)>."
1499 msgstr ""
1500
1501 # type: =item
1502 #: ../src/guestfs.pod:728
1503 msgid "B<Ruby>"
1504 msgstr ""
1505
1506 # type: textblock
1507 #: ../src/guestfs.pod:730
1508 msgid "For documentation see L<guestfs-ruby(3)>."
1509 msgstr ""
1510
1511 # type: =item
1512 #: ../src/guestfs.pod:732
1513 msgid "B<shell scripts>"
1514 msgstr ""
1515
1516 # type: textblock
1517 #: ../src/guestfs.pod:734
1518 msgid "For documentation see L<guestfish(1)>."
1519 msgstr ""
1520
1521 # type: =head2
1522 #: ../src/guestfs.pod:738
1523 msgid "LIBGUESTFS GOTCHAS"
1524 msgstr ""
1525
1526 # type: textblock
1527 #: ../src/guestfs.pod:740
1528 msgid ""
1529 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1530 "system [...] that works in the way it is documented but is counterintuitive "
1531 "and almost invites mistakes.\""
1532 msgstr ""
1533
1534 # type: textblock
1535 #: ../src/guestfs.pod:744
1536 msgid ""
1537 "Since we developed libguestfs and the associated tools, there are several "
1538 "things we would have designed differently, but are now stuck with for "
1539 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1540 "release, you can expect these to change.  Beware of them."
1541 msgstr ""
1542
1543 # type: =item
1544 #: ../src/guestfs.pod:752
1545 msgid "Autosync / forgetting to sync."
1546 msgstr ""
1547
1548 # type: textblock
1549 #: ../src/guestfs.pod:754
1550 msgid ""
1551 "When modifying a filesystem from C or another language, you B<must> unmount "
1552 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1553 "libguestfs handle.  You can also call:"
1554 msgstr ""
1555
1556 # type: verbatim
1557 #: ../src/guestfs.pod:758
1558 #, no-wrap
1559 msgid ""
1560 " guestfs_set_autosync (g, 1);\n"
1561 "\n"
1562 msgstr ""
1563
1564 # type: textblock
1565 #: ../src/guestfs.pod:760
1566 msgid ""
1567 "to have the unmount/sync done automatically for you when the handle 'g' is "
1568 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1569 msgstr ""
1570
1571 # type: textblock
1572 #: ../src/guestfs.pod:764
1573 msgid ""
1574 "If you forget to do this, then it is entirely possible that your changes "
1575 "won't be written out, or will be partially written, or (very rarely) that "
1576 "you'll get disk corruption."
1577 msgstr ""
1578
1579 # type: textblock
1580 #: ../src/guestfs.pod:768
1581 msgid ""
1582 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1583 "guestfish scripts that forget to sync will work just fine, which can make "
1584 "this very puzzling if you are trying to debug a problem."
1585 msgstr ""
1586
1587 # type: textblock
1588 #: ../src/guestfs.pod:772
1589 msgid ""
1590 "Update: Autosync is enabled by default for all API users starting from "
1591 "libguestfs 1.5.24."
1592 msgstr ""
1593
1594 # type: =item
1595 #: ../src/guestfs.pod:775
1596 msgid "Mount option C<-o sync> should not be the default."
1597 msgstr ""
1598
1599 # type: textblock
1600 #: ../src/guestfs.pod:777
1601 msgid ""
1602 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1603 "However C<-o sync> does not add any reliability benefit, but does have a "
1604 "very large performance impact."
1605 msgstr ""
1606
1607 # type: textblock
1608 #: ../src/guestfs.pod:781
1609 msgid ""
1610 "The work around is to use L</guestfs_mount_options> and set the mount "
1611 "options that you actually want to use."
1612 msgstr ""
1613
1614 # type: =item
1615 #: ../src/guestfs.pod:784
1616 msgid "Read-only should be the default."
1617 msgstr ""
1618
1619 # type: textblock
1620 #: ../src/guestfs.pod:786
1621 msgid ""
1622 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1623 "specify I<--rw> if you want to make changes to the image."
1624 msgstr ""
1625
1626 # type: textblock
1627 #: ../src/guestfs.pod:789
1628 msgid "This would reduce the potential to corrupt live VM images."
1629 msgstr ""
1630
1631 # type: textblock
1632 #: ../src/guestfs.pod:791
1633 msgid ""
1634 "Note that many filesystems change the disk when you just mount and unmount, "
1635 "even if you didn't perform any writes.  You need to use L</"
1636 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1637 msgstr ""
1638
1639 # type: =item
1640 #: ../src/guestfs.pod:795
1641 msgid "guestfish command line is hard to use."
1642 msgstr ""
1643
1644 # type: textblock
1645 #: ../src/guestfs.pod:797
1646 msgid ""
1647 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1648 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1649 "exist, so it fails.  In earlier versions of guestfish the error message was "
1650 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1651 "we should have used C<guestfish -c command> to run commands."
1652 msgstr ""
1653
1654 # type: =item
1655 #: ../src/guestfs.pod:804
1656 msgid "guestfish megabyte modifiers don't work right on all commands"
1657 msgstr ""
1658
1659 # type: textblock
1660 #: ../src/guestfs.pod:806
1661 msgid ""
1662 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1663 "other modifiers).  What guestfish actually does is to multiply the number "
1664 "part by the modifier part and pass the result to the C API.  However this "
1665 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1666 "expecting some other unit (eg. megabytes)."
1667 msgstr ""
1668
1669 # type: textblock
1670 #: ../src/guestfs.pod:813
1671 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1672 msgstr ""
1673
1674 # type: verbatim
1675 #: ../src/guestfs.pod:815
1676 #, no-wrap
1677 msgid ""
1678 " lvcreate LV VG 100M\n"
1679 "\n"
1680 msgstr ""
1681
1682 # type: textblock
1683 #: ../src/guestfs.pod:817
1684 msgid ""
1685 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1686 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1687 "megabytes * megabytes) logical volume.  The error message you get from this "
1688 "is also a little obscure."
1689 msgstr ""
1690
1691 # type: textblock
1692 #: ../src/guestfs.pod:822
1693 msgid ""
1694 "This could be fixed in the generator by specially marking parameters and "
1695 "return values which take bytes or other units."
1696 msgstr ""
1697
1698 # type: =item
1699 #: ../src/guestfs.pod:825
1700 msgid "Ambiguity between devices and paths"
1701 msgstr ""
1702
1703 # type: textblock
1704 #: ../src/guestfs.pod:827
1705 msgid ""
1706 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1707 "sdb2>) and a similar pathname.  A file might just happen to be called "
1708 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1709 msgstr ""
1710
1711 # type: textblock
1712 #: ../src/guestfs.pod:832
1713 msgid ""
1714 "In the current API we usually resolve this ambiguity by having two separate "
1715 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1716 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1717 "detecting if the path supplied begins with C</dev/>."
1718 msgstr ""
1719
1720 # type: textblock
1721 #: ../src/guestfs.pod:838
1722 msgid ""
1723 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1724 "make paths/devices into structured names.  One way to do this would be to "
1725 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1726 "aspect of grub.  Another way would be to use a structured type, equivalent "
1727 "to this OCaml type:"
1728 msgstr ""
1729
1730 # type: verbatim
1731 #: ../src/guestfs.pod:844
1732 #, no-wrap
1733 msgid ""
1734 " type path = Path of string | Device of int | Partition of int * int\n"
1735 "\n"
1736 msgstr ""
1737
1738 # type: textblock
1739 #: ../src/guestfs.pod:846
1740 msgid "which would allow you to pass arguments like:"
1741 msgstr ""
1742
1743 # type: verbatim
1744 #: ../src/guestfs.pod:848
1745 #, no-wrap
1746 msgid ""
1747 " Path \"/foo/bar\"\n"
1748 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
1749 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
1750 " Path \"/dev/sdb2\"    (* not a device *)\n"
1751 "\n"
1752 msgstr ""
1753
1754 # type: textblock
1755 #: ../src/guestfs.pod:853
1756 msgid ""
1757 "As you can see there are still problems to resolve even with this "
1758 "representation.  Also consider how it might work in guestfish."
1759 msgstr ""
1760
1761 # type: =head2
1762 #: ../src/guestfs.pod:858
1763 msgid "PROTOCOL LIMITS"
1764 msgstr ""
1765
1766 # type: textblock
1767 #: ../src/guestfs.pod:860
1768 msgid ""
1769 "Internally libguestfs uses a message-based protocol to pass API calls and "
1770 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1771 "plenty more detail about this).  The maximum message size used by the "
1772 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1773 "aware of this limit.  The API calls which may be affected are individually "
1774 "documented, with a link back to this section of the documentation."
1775 msgstr ""
1776
1777 # type: textblock
1778 #: ../src/guestfs.pod:868
1779 msgid ""
1780 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1781 "a simple string.  Because this string is at some point internally encoded as "
1782 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1783 "the requested file is larger than this then you will get an error."
1784 msgstr ""
1785
1786 # type: textblock
1787 #: ../src/guestfs.pod:874
1788 msgid ""
1789 "In order to transfer large files into and out of the guest filesystem, you "
1790 "need to use particular calls that support this.  The sections L</UPLOADING> "
1791 "and L</DOWNLOADING> document how to do this."
1792 msgstr ""
1793
1794 # type: textblock
1795 #: ../src/guestfs.pod:878
1796 msgid ""
1797 "You might also consider mounting the disk image using our FUSE filesystem "
1798 "support (L<guestmount(1)>)."
1799 msgstr ""
1800
1801 # type: =head2
1802 #: ../src/guestfs.pod:881
1803 msgid "KEYS AND PASSPHRASES"
1804 msgstr ""
1805
1806 # type: textblock
1807 #: ../src/guestfs.pod:883
1808 msgid ""
1809 "Certain libguestfs calls take a parameter that contains sensitive key "
1810 "material, passed in as a C string."
1811 msgstr ""
1812
1813 # type: textblock
1814 #: ../src/guestfs.pod:886
1815 msgid ""
1816 "In the future we would hope to change the libguestfs implementation so that "
1817 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1818 "swap.  However this is I<not> done at the moment, because of the complexity "
1819 "of such an implementation."
1820 msgstr ""
1821
1822 # type: textblock
1823 #: ../src/guestfs.pod:891
1824 msgid ""
1825 "Therefore you should be aware that any key parameter you pass to libguestfs "
1826 "might end up being written out to the swap partition.  If this is a concern, "
1827 "scrub the swap partition or don't use libguestfs on encrypted devices."
1828 msgstr ""
1829
1830 # type: =head1
1831 #: ../src/guestfs.pod:896
1832 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1833 msgstr ""
1834
1835 # type: textblock
1836 #: ../src/guestfs.pod:898
1837 msgid ""
1838 "All high-level libguestfs actions are synchronous.  If you want to use "
1839 "libguestfs asynchronously then you must create a thread."
1840 msgstr ""
1841
1842 # type: textblock
1843 #: ../src/guestfs.pod:901
1844 msgid ""
1845 "Only use the handle from a single thread.  Either use the handle exclusively "
1846 "from one thread, or provide your own mutex so that two threads cannot issue "
1847 "calls on the same handle at the same time."
1848 msgstr ""
1849
1850 # type: textblock
1851 #: ../src/guestfs.pod:905
1852 msgid ""
1853 "See the graphical program guestfs-browser for one possible architecture for "
1854 "multithreaded programs using libvirt and libguestfs."
1855 msgstr ""
1856
1857 # type: =head1
1858 #: ../src/guestfs.pod:908
1859 msgid "PATH"
1860 msgstr ""
1861
1862 # type: textblock
1863 #: ../src/guestfs.pod:910
1864 msgid ""
1865 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
1866 "internal path."
1867 msgstr ""
1868
1869 # type: textblock
1870 #: ../src/guestfs.pod:913
1871 msgid ""
1872 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
1873 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1874 msgstr ""
1875
1876 # type: textblock
1877 #: ../src/guestfs.pod:916
1878 msgid ""
1879 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1880 "to change the directories that libguestfs will search in.  The value is a "
1881 "colon-separated list of paths.  The current directory is I<not> searched "
1882 "unless the path contains an empty element or C<.>.  For example "
1883 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1884 "then C</usr/lib/guestfs>."
1885 msgstr ""
1886
1887 # type: =head1
1888 #: ../src/guestfs.pod:923
1889 msgid "QEMU WRAPPERS"
1890 msgstr ""
1891
1892 # type: textblock
1893 #: ../src/guestfs.pod:925
1894 msgid ""
1895 "If you want to compile your own qemu, run qemu from a non-standard location, "
1896 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1897 "around qemu."
1898 msgstr ""
1899
1900 # type: textblock
1901 #: ../src/guestfs.pod:929
1902 msgid ""
1903 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1904 "last command in the shell script (so that qemu replaces the shell and "
1905 "becomes the direct child of the libguestfs-using program).  If you don't do "
1906 "this, then the qemu process won't be cleaned up correctly."
1907 msgstr ""
1908
1909 # type: textblock
1910 #: ../src/guestfs.pod:934
1911 msgid ""
1912 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1913 "source:"
1914 msgstr ""
1915
1916 # type: verbatim
1917 #: ../src/guestfs.pod:937
1918 #, no-wrap
1919 msgid ""
1920 " #!/bin/sh -\n"
1921 " qemudir=/home/rjones/d/qemu\n"
1922 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
1923 "\n"
1924 msgstr ""
1925
1926 # type: textblock
1927 #: ../src/guestfs.pod:941
1928 msgid ""
1929 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1930 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1931 "example:"
1932 msgstr ""
1933
1934 # type: verbatim
1935 #: ../src/guestfs.pod:945
1936 #, no-wrap
1937 msgid ""
1938 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1939 "\n"
1940 msgstr ""
1941
1942 # type: textblock
1943 #: ../src/guestfs.pod:947
1944 msgid ""
1945 "Note that libguestfs also calls qemu with the -help and -version options in "
1946 "order to determine features."
1947 msgstr ""
1948
1949 # type: =head2
1950 #: ../src/guestfs.pod:950
1951 msgid "ABI GUARANTEE"
1952 msgstr ""
1953
1954 # type: textblock
1955 #: ../src/guestfs.pod:952
1956 msgid ""
1957 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
1958 "actions as outlined in this section.  Although we will deprecate some "
1959 "actions, for example if they get replaced by newer calls, we will keep the "
1960 "old actions forever.  This allows you the developer to program in confidence "
1961 "against the libguestfs API."
1962 msgstr ""
1963
1964 # type: =head1
1965 #: ../src/guestfs.pod:958
1966 msgid "BLOCK DEVICE NAMING"
1967 msgstr ""
1968
1969 # type: textblock
1970 #: ../src/guestfs.pod:960
1971 msgid ""
1972 "In the kernel there is now quite a profusion of schemata for naming block "
1973 "devices (in this context, by I<block device> I mean a physical or virtual "
1974 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
1975 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
1976 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
1977 "for the old IDE driver (particularly for SATA devices) those devices also "
1978 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
1979 "paravirtualized drivers.  This has created several different naming systems, "
1980 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
1981 msgstr ""
1982
1983 # type: textblock
1984 #: ../src/guestfs.pod:972
1985 msgid ""
1986 "As discussed above, libguestfs uses a qemu appliance running an embedded "
1987 "Linux kernel to access block devices.  We can run a variety of appliances "
1988 "based on a variety of Linux kernels."
1989 msgstr ""
1990
1991 # type: textblock
1992 #: ../src/guestfs.pod:976
1993 msgid ""
1994 "This causes a problem for libguestfs because many API calls use device or "
1995 "partition names.  Working scripts and the recipe (example) scripts that we "
1996 "make available over the internet could fail if the naming scheme changes."
1997 msgstr ""
1998
1999 # type: textblock
2000 #: ../src/guestfs.pod:981
2001 msgid ""
2002 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2003 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2004 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2005 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2006 msgstr ""
2007
2008 # type: textblock
2009 #: ../src/guestfs.pod:987
2010 msgid ""
2011 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2012 "L</guestfs_list_partitions> and similar calls return the true names of the "
2013 "devices and partitions as known to the appliance."
2014 msgstr ""
2015
2016 # type: =head2
2017 #: ../src/guestfs.pod:992
2018 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2019 msgstr ""
2020
2021 # type: textblock
2022 #: ../src/guestfs.pod:994
2023 msgid ""
2024 "Usually this translation is transparent.  However in some (very rare)  cases "
2025 "you may need to know the exact algorithm.  Such cases include where you use "
2026 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2027 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2028 msgstr ""
2029
2030 # type: textblock
2031 #: ../src/guestfs.pod:1000
2032 msgid ""
2033 "The algorithm is applied only to I<parameters> which are known to be either "
2034 "device or partition names.  Return values from functions such as L</"
2035 "guestfs_list_devices> are never changed."
2036 msgstr ""
2037
2038 # type: textblock
2039 #: ../src/guestfs.pod:1008
2040 msgid "Is the string a parameter which is a device or partition name?"
2041 msgstr ""
2042
2043 # type: textblock
2044 #: ../src/guestfs.pod:1012
2045 msgid "Does the string begin with C</dev/sd>?"
2046 msgstr ""
2047
2048 # type: textblock
2049 #: ../src/guestfs.pod:1016
2050 msgid ""
2051 "Does the named device exist? If so, we use that device.  However if I<not> "
2052 "then we continue with this algorithm."
2053 msgstr ""
2054
2055 # type: textblock
2056 #: ../src/guestfs.pod:1021
2057 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2058 msgstr ""
2059
2060 # type: textblock
2061 #: ../src/guestfs.pod:1023
2062 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2063 msgstr ""
2064
2065 # type: textblock
2066 #: ../src/guestfs.pod:1025
2067 msgid "If that named device exists, use it.  If not, continue."
2068 msgstr ""
2069
2070 # type: textblock
2071 #: ../src/guestfs.pod:1029
2072 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2073 msgstr ""
2074
2075 # type: textblock
2076 #: ../src/guestfs.pod:1031
2077 msgid "If that named device exists, use it.  If not, return an error."
2078 msgstr ""
2079
2080 # type: =head3
2081 #: ../src/guestfs.pod:1035
2082 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2083 msgstr ""
2084
2085 # type: textblock
2086 #: ../src/guestfs.pod:1037
2087 msgid ""
2088 "Although the standard naming scheme and automatic translation is useful for "
2089 "simple programs and guestfish scripts, for larger programs it is best not to "
2090 "rely on this mechanism."
2091 msgstr ""
2092
2093 # type: textblock
2094 #: ../src/guestfs.pod:1041
2095 msgid ""
2096 "Where possible for maximum future portability programs using libguestfs "
2097 "should use these future-proof techniques:"
2098 msgstr ""
2099
2100 # type: textblock
2101 #: ../src/guestfs.pod:1048
2102 msgid ""
2103 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2104 "device names, and then use those names directly."
2105 msgstr ""
2106
2107 # type: textblock
2108 #: ../src/guestfs.pod:1051
2109 msgid ""
2110 "Since those device names exist by definition, they will never be translated."
2111 msgstr ""
2112
2113 # type: textblock
2114 #: ../src/guestfs.pod:1056
2115 msgid ""
2116 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2117 "filesystem labels."
2118 msgstr ""
2119
2120 # type: =head1
2121 #: ../src/guestfs.pod:1061
2122 msgid "SECURITY"
2123 msgstr ""
2124
2125 # type: textblock
2126 #: ../src/guestfs.pod:1063
2127 msgid ""
2128 "This section discusses security implications of using libguestfs, "
2129 "particularly with untrusted or malicious guests or disk images."
2130 msgstr ""
2131
2132 # type: =head2
2133 #: ../src/guestfs.pod:1066
2134 msgid "GENERAL SECURITY CONSIDERATIONS"
2135 msgstr ""
2136
2137 # type: textblock
2138 #: ../src/guestfs.pod:1068
2139 msgid ""
2140 "Be careful with any files or data that you download from a guest (by "
2141 "\"download\" we mean not just the L</guestfs_download> command but any "
2142 "command that reads files, filenames, directories or anything else from a "
2143 "disk image).  An attacker could manipulate the data to fool your program "
2144 "into doing the wrong thing.  Consider cases such as:"
2145 msgstr ""
2146
2147 # type: textblock
2148 #: ../src/guestfs.pod:1078
2149 msgid "the data (file etc) not being present"
2150 msgstr ""
2151
2152 # type: textblock
2153 #: ../src/guestfs.pod:1082
2154 msgid "being present but empty"
2155 msgstr ""
2156
2157 # type: textblock
2158 #: ../src/guestfs.pod:1086
2159 msgid "being much larger than normal"
2160 msgstr ""
2161
2162 # type: textblock
2163 #: ../src/guestfs.pod:1090
2164 msgid "containing arbitrary 8 bit data"
2165 msgstr ""
2166
2167 # type: textblock
2168 #: ../src/guestfs.pod:1094
2169 msgid "being in an unexpected character encoding"
2170 msgstr ""
2171
2172 # type: textblock
2173 #: ../src/guestfs.pod:1098
2174 msgid "containing homoglyphs."
2175 msgstr ""
2176
2177 # type: =head2
2178 #: ../src/guestfs.pod:1102
2179 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2180 msgstr ""
2181
2182 # type: textblock
2183 #: ../src/guestfs.pod:1104
2184 msgid ""
2185 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2186 "(VFS) module can sometimes be escalated into exploits by deliberately "
2187 "creating a malicious, malformed filesystem.  These exploits are very severe "
2188 "for two reasons.  Firstly there are very many filesystem drivers in the "
2189 "kernel, and many of them are infrequently used and not much developer "
2190 "attention has been paid to the code.  Linux userspace helps potential "
2191 "crackers by detecting the filesystem type and automatically choosing the "
2192 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2193 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2194 "exploit (worse in some ways), giving immediate and total access to the "
2195 "system right down to the hardware level."
2196 msgstr ""
2197
2198 # type: textblock
2199 #: ../src/guestfs.pod:1117
2200 msgid ""
2201 "That explains why you should never mount a filesystem from an untrusted "
2202 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2203 "inside a qemu virtual machine, usually running as a non-root user.  The "
2204 "attacker would need to write a filesystem which first exploited the kernel, "
2205 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2206 "the libguestfs protocol, and finally to be as serious as the host kernel "
2207 "exploit it would need to escalate its privileges to root.  This multi-step "
2208 "escalation, performed by a static piece of data, is thought to be extremely "
2209 "hard to do, although we never say 'never' about security issues."
2210 msgstr ""
2211
2212 # type: textblock
2213 #: ../src/guestfs.pod:1128
2214 msgid ""
2215 "In any case callers can reduce the attack surface by forcing the filesystem "
2216 "type when mounting (use L</guestfs_mount_vfs>)."
2217 msgstr ""
2218
2219 # type: =head2
2220 #: ../src/guestfs.pod:1131
2221 msgid "PROTOCOL SECURITY"
2222 msgstr ""
2223
2224 # type: textblock
2225 #: ../src/guestfs.pod:1133
2226 msgid ""
2227 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2228 "defined upper message size.  However a program that uses libguestfs must "
2229 "also take care - for example you can write a program that downloads a binary "
2230 "from a disk image and executes it locally, and no amount of protocol "
2231 "security will save you from the consequences."
2232 msgstr ""
2233
2234 # type: =head2
2235 #: ../src/guestfs.pod:1139
2236 msgid "INSPECTION SECURITY"
2237 msgstr ""
2238
2239 # type: textblock
2240 #: ../src/guestfs.pod:1141
2241 msgid ""
2242 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2243 "directly from the guest, and these could contain any 8 bit data.  Callers "
2244 "should be careful to escape these before printing them to a structured file "
2245 "(for example, use HTML escaping if creating a web page)."
2246 msgstr ""
2247
2248 # type: textblock
2249 #: ../src/guestfs.pod:1147
2250 msgid ""
2251 "Guest configuration may be altered in unusual ways by the administrator of "
2252 "the virtual machine, and may not reflect reality (particularly for untrusted "
2253 "or actively malicious guests).  For example we parse the hostname from "
2254 "configuration files like C</etc/sysconfig/network> that we find in the "
2255 "guest, but the guest administrator can easily manipulate these files to "
2256 "provide the wrong hostname."
2257 msgstr ""
2258
2259 # type: textblock
2260 #: ../src/guestfs.pod:1155
2261 msgid ""
2262 "The inspection API parses guest configuration using two external libraries: "
2263 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2264 "designed to be robust in the face of malicious data, although denial of "
2265 "service attacks are still possible, for example with oversized configuration "
2266 "files."
2267 msgstr ""
2268
2269 # type: =head2
2270 #: ../src/guestfs.pod:1161
2271 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2272 msgstr ""
2273
2274 # type: textblock
2275 #: ../src/guestfs.pod:1163
2276 msgid ""
2277 "Be very cautious about running commands from the guest.  By running a "
2278 "command in the guest, you are giving CPU time to a binary that you do not "
2279 "control, under the same user account as the library, albeit wrapped in qemu "
2280 "virtualization.  More information and alternatives can be found in the "
2281 "section L</RUNNING COMMANDS>."
2282 msgstr ""
2283
2284 # type: =head2
2285 #: ../src/guestfs.pod:1169
2286 msgid "CVE-2010-3851"
2287 msgstr ""
2288
2289 # type: textblock
2290 #: ../src/guestfs.pod:1171
2291 msgid "https://bugzilla.redhat.com/642934"
2292 msgstr ""
2293
2294 # type: textblock
2295 #: ../src/guestfs.pod:1173
2296 msgid ""
2297 "This security bug concerns the automatic disk format detection that qemu "
2298 "does on disk images."
2299 msgstr ""
2300
2301 # type: textblock
2302 #: ../src/guestfs.pod:1176
2303 msgid ""
2304 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2305 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2306 "for one of the known headers, and if none is found then assuming the disk "
2307 "image must be raw."
2308 msgstr ""
2309
2310 # type: textblock
2311 #: ../src/guestfs.pod:1181
2312 msgid ""
2313 "This allows a guest which has been given a raw disk image to write some "
2314 "other header.  At next boot (or when the disk image is accessed by "
2315 "libguestfs) qemu would do autodetection and think the disk image format was, "
2316 "say, qcow2 based on the header written by the guest."
2317 msgstr ""
2318
2319 # type: textblock
2320 #: ../src/guestfs.pod:1186
2321 msgid ""
2322 "This in itself would not be a problem, but qcow2 offers many features, one "
2323 "of which is to allow a disk image to refer to another image (called the "
2324 "\"backing disk\").  It does this by placing the path to the backing disk "
2325 "into the qcow2 header.  This path is not validated and could point to any "
2326 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2327 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2328 "control of the attacker."
2329 msgstr ""
2330
2331 # type: textblock
2332 #: ../src/guestfs.pod:1194
2333 msgid ""
2334 "In libguestfs this is rather hard to exploit except under two circumstances:"
2335 msgstr ""
2336
2337 # type: textblock
2338 #: ../src/guestfs.pod:1201
2339 msgid "You have enabled the network or have opened the disk in write mode."
2340 msgstr ""
2341
2342 # type: textblock
2343 #: ../src/guestfs.pod:1205
2344 msgid ""
2345 "You are also running untrusted code from the guest (see L</RUNNING "
2346 "COMMANDS>)."
2347 msgstr ""
2348
2349 # type: textblock
2350 #: ../src/guestfs.pod:1210
2351 msgid ""
2352 "The way to avoid this is to specify the expected disk format when adding "
2353 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2354 "should always do this if the disk is raw format, and it's a good idea for "
2355 "other cases too."
2356 msgstr ""
2357
2358 # type: textblock
2359 #: ../src/guestfs.pod:1215
2360 msgid ""
2361 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2362 "format is fetched from libvirt and passed through."
2363 msgstr ""
2364
2365 # type: textblock
2366 #: ../src/guestfs.pod:1218
2367 msgid ""
2368 "For libguestfs tools, use the I<--format> command line parameter as "
2369 "appropriate."
2370 msgstr ""
2371
2372 # type: =head1
2373 #: ../src/guestfs.pod:1221
2374 msgid "CONNECTION MANAGEMENT"
2375 msgstr ""
2376
2377 # type: =head2
2378 #: ../src/guestfs.pod:1223
2379 msgid "guestfs_h *"
2380 msgstr ""
2381
2382 # type: textblock
2383 #: ../src/guestfs.pod:1225
2384 msgid ""
2385 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2386 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2387 "handle and release all resources used."
2388 msgstr ""
2389
2390 # type: textblock
2391 #: ../src/guestfs.pod:1229
2392 msgid ""
2393 "For information on using multiple handles and threads, see the section L</"
2394 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2395 msgstr ""
2396
2397 # type: =head2
2398 #: ../src/guestfs.pod:1232
2399 msgid "guestfs_create"
2400 msgstr ""
2401
2402 # type: verbatim
2403 #: ../src/guestfs.pod:1234
2404 #, no-wrap
2405 msgid ""
2406 " guestfs_h *guestfs_create (void);\n"
2407 "\n"
2408 msgstr ""
2409
2410 # type: textblock
2411 #: ../src/guestfs.pod:1236
2412 msgid "Create a connection handle."
2413 msgstr ""
2414
2415 # type: textblock
2416 #: ../src/guestfs.pod:1238
2417 msgid ""
2418 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2419 "on the handle at least once."
2420 msgstr ""
2421
2422 # type: textblock
2423 #: ../src/guestfs.pod:1241
2424 msgid ""
2425 "This function returns a non-NULL pointer to a handle on success or NULL on "
2426 "error."
2427 msgstr ""
2428
2429 # type: textblock
2430 #: ../src/guestfs.pod:1244
2431 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2432 msgstr ""
2433
2434 # type: textblock
2435 #: ../src/guestfs.pod:1246
2436 msgid ""
2437 "You may also want to configure error handling for the handle.  See L</ERROR "
2438 "HANDLING> section below."
2439 msgstr ""
2440
2441 # type: =head2
2442 #: ../src/guestfs.pod:1249
2443 msgid "guestfs_close"
2444 msgstr ""
2445
2446 # type: verbatim
2447 #: ../src/guestfs.pod:1251
2448 #, no-wrap
2449 msgid ""
2450 " void guestfs_close (guestfs_h *g);\n"
2451 "\n"
2452 msgstr ""
2453
2454 # type: textblock
2455 #: ../src/guestfs.pod:1253
2456 msgid "This closes the connection handle and frees up all resources used."
2457 msgstr ""
2458
2459 # type: =head1
2460 #: ../src/guestfs.pod:1255
2461 msgid "ERROR HANDLING"
2462 msgstr ""
2463
2464 # type: textblock
2465 #: ../src/guestfs.pod:1257
2466 msgid ""
2467 "API functions can return errors.  For example, almost all functions that "
2468 "return C<int> will return C<-1> to indicate an error."
2469 msgstr ""
2470
2471 # type: textblock
2472 #: ../src/guestfs.pod:1260
2473 msgid ""
2474 "Additional information is available for errors: an error message string and "
2475 "optionally an error number (errno) if the thing that failed was a system "
2476 "call."
2477 msgstr ""
2478
2479 # type: textblock
2480 #: ../src/guestfs.pod:1264
2481 msgid ""
2482 "You can get at the additional information about the last error on the handle "
2483 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2484 "up an error handler with L</guestfs_set_error_handler>."
2485 msgstr ""
2486
2487 # type: textblock
2488 #: ../src/guestfs.pod:1269
2489 msgid ""
2490 "When the handle is created, a default error handler is installed which "
2491 "prints the error message string to C<stderr>.  For small short-running "
2492 "command line programs it is sufficient to do:"
2493 msgstr ""
2494
2495 # type: verbatim
2496 #: ../src/guestfs.pod:1273
2497 #, no-wrap
2498 msgid ""
2499 " if (guestfs_launch (g) == -1)\n"
2500 "   exit (EXIT_FAILURE);\n"
2501 "\n"
2502 msgstr ""
2503
2504 # type: textblock
2505 #: ../src/guestfs.pod:1276
2506 msgid ""
2507 "since the default error handler will ensure that an error message has been "
2508 "printed to C<stderr> before the program exits."
2509 msgstr ""
2510
2511 # type: textblock
2512 #: ../src/guestfs.pod:1279
2513 msgid ""
2514 "For other programs the caller will almost certainly want to install an "
2515 "alternate error handler or do error handling in-line like this:"
2516 msgstr ""
2517
2518 # type: verbatim
2519 #: ../src/guestfs.pod:1282
2520 #, no-wrap
2521 msgid ""
2522 " g = guestfs_create ();\n"
2523 " \n"
2524 msgstr ""
2525
2526 # type: verbatim
2527 #: ../src/guestfs.pod:1284
2528 #, no-wrap
2529 msgid ""
2530 " /* This disables the default behaviour of printing errors\n"
2531 "    on stderr. */\n"
2532 " guestfs_set_error_handler (g, NULL, NULL);\n"
2533 " \n"
2534 msgstr ""
2535
2536 # type: verbatim
2537 #: ../src/guestfs.pod:1288
2538 #, no-wrap
2539 msgid ""
2540 " if (guestfs_launch (g) == -1) {\n"
2541 "   /* Examine the error message and print it etc. */\n"
2542 "   char *msg = guestfs_last_error (g);\n"
2543 "   int errnum = guestfs_last_errno (g);\n"
2544 "   fprintf (stderr, \"%s\\n\", msg);\n"
2545 "   /* ... */\n"
2546 "  }\n"
2547 "\n"
2548 msgstr ""
2549
2550 # type: textblock
2551 #: ../src/guestfs.pod:1296
2552 msgid ""
2553 "Out of memory errors are handled differently.  The default action is to call "
2554 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2555 "guestfs_set_out_of_memory_handler>."
2556 msgstr ""
2557
2558 # type: textblock
2559 #: ../src/guestfs.pod:1300
2560 msgid ""
2561 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2562 "because there is no handle if this happens there is no way to get additional "
2563 "error information.  However L</guestfs_create> is supposed to be a "
2564 "lightweight operation which can only fail because of insufficient memory (it "
2565 "returns NULL in this case)."
2566 msgstr ""
2567
2568 # type: =head2
2569 #: ../src/guestfs.pod:1306
2570 msgid "guestfs_last_error"
2571 msgstr ""
2572
2573 # type: verbatim
2574 #: ../src/guestfs.pod:1308
2575 #, no-wrap
2576 msgid ""
2577 " const char *guestfs_last_error (guestfs_h *g);\n"
2578 "\n"
2579 msgstr ""
2580
2581 # type: textblock
2582 #: ../src/guestfs.pod:1310
2583 msgid ""
2584 "This returns the last error message that happened on C<g>.  If there has not "
2585 "been an error since the handle was created, then this returns C<NULL>."
2586 msgstr ""
2587
2588 # type: textblock
2589 #: ../src/guestfs.pod:1314
2590 msgid ""
2591 "The lifetime of the returned string is until the next error occurs, or L</"
2592 "guestfs_close> is called."
2593 msgstr ""
2594
2595 # type: =head2
2596 #: ../src/guestfs.pod:1317
2597 msgid "guestfs_last_errno"
2598 msgstr ""
2599
2600 # type: verbatim
2601 #: ../src/guestfs.pod:1319
2602 #, no-wrap
2603 msgid ""
2604 " int guestfs_last_errno (guestfs_h *g);\n"
2605 "\n"
2606 msgstr ""
2607
2608 # type: textblock
2609 #: ../src/guestfs.pod:1321
2610 msgid "This returns the last error number (errno) that happened on C<g>."
2611 msgstr ""
2612
2613 # type: textblock
2614 #: ../src/guestfs.pod:1323
2615 msgid "If successful, an errno integer not equal to zero is returned."
2616 msgstr ""
2617
2618 # type: textblock
2619 #: ../src/guestfs.pod:1325
2620 msgid ""
2621 "If no error, this returns 0.  This call can return 0 in three situations:"
2622 msgstr ""
2623
2624 # type: textblock
2625 #: ../src/guestfs.pod:1332
2626 msgid "There has not been any error on the handle."
2627 msgstr ""
2628
2629 # type: textblock
2630 #: ../src/guestfs.pod:1336
2631 msgid ""
2632 "There has been an error but the errno was meaningless.  This corresponds to "
2633 "the case where the error did not come from a failed system call, but for "
2634 "some other reason."
2635 msgstr ""
2636
2637 # type: textblock
2638 #: ../src/guestfs.pod:1342
2639 msgid ""
2640 "There was an error from a failed system call, but for some reason the errno "
2641 "was not captured and returned.  This usually indicates a bug in libguestfs."
2642 msgstr ""
2643
2644 # type: textblock
2645 #: ../src/guestfs.pod:1348
2646 msgid ""
2647 "Libguestfs tries to convert the errno from inside the applicance into a "
2648 "corresponding errno for the caller (not entirely trivial: the appliance "
2649 "might be running a completely different operating system from the library "
2650 "and error numbers are not standardized across Un*xen).  If this could not be "
2651 "done, then the error is translated to C<EINVAL>.  In practice this should "
2652 "only happen in very rare circumstances."
2653 msgstr ""
2654
2655 # type: =head2
2656 #: ../src/guestfs.pod:1356
2657 msgid "guestfs_set_error_handler"
2658 msgstr ""
2659
2660 # type: verbatim
2661 #: ../src/guestfs.pod:1358
2662 #, no-wrap
2663 msgid ""
2664 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2665 "                                           void *opaque,\n"
2666 "                                           const char *msg);\n"
2667 " void guestfs_set_error_handler (guestfs_h *g,\n"
2668 "                                 guestfs_error_handler_cb cb,\n"
2669 "                                 void *opaque);\n"
2670 "\n"
2671 msgstr ""
2672
2673 # type: textblock
2674 #: ../src/guestfs.pod:1365
2675 msgid ""
2676 "The callback C<cb> will be called if there is an error.  The parameters "
2677 "passed to the callback are an opaque data pointer and the error message "
2678 "string."
2679 msgstr ""
2680
2681 # type: textblock
2682 #: ../src/guestfs.pod:1369
2683 msgid ""
2684 "C<errno> is not passed to the callback.  To get that the callback must call "
2685 "L</guestfs_last_errno>."
2686 msgstr ""
2687
2688 # type: textblock
2689 #: ../src/guestfs.pod:1372
2690 msgid ""
2691 "Note that the message string C<msg> is freed as soon as the callback "
2692 "function returns, so if you want to stash it somewhere you must make your "
2693 "own copy."
2694 msgstr ""
2695
2696 # type: textblock
2697 #: ../src/guestfs.pod:1376
2698 msgid "The default handler prints messages on C<stderr>."
2699 msgstr ""
2700
2701 # type: textblock
2702 #: ../src/guestfs.pod:1378
2703 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2704 msgstr ""
2705
2706 # type: =head2
2707 #: ../src/guestfs.pod:1380
2708 msgid "guestfs_get_error_handler"
2709 msgstr ""
2710
2711 # type: verbatim
2712 #: ../src/guestfs.pod:1382
2713 #, no-wrap
2714 msgid ""
2715 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2716 "                                                     void **opaque_rtn);\n"
2717 "\n"
2718 msgstr ""
2719
2720 # type: textblock
2721 #: ../src/guestfs.pod:1385
2722 msgid "Returns the current error handler callback."
2723 msgstr ""
2724
2725 # type: =head2
2726 #: ../src/guestfs.pod:1387
2727 msgid "guestfs_set_out_of_memory_handler"
2728 msgstr ""
2729
2730 # type: verbatim
2731 #: ../src/guestfs.pod:1389
2732 #, no-wrap
2733 msgid ""
2734 " typedef void (*guestfs_abort_cb) (void);\n"
2735 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2736 "                                        guestfs_abort_cb);\n"
2737 "\n"
2738 msgstr ""
2739
2740 # type: textblock
2741 #: ../src/guestfs.pod:1393
2742 msgid ""
2743 "The callback C<cb> will be called if there is an out of memory situation.  "
2744 "I<Note this callback must not return>."
2745 msgstr ""
2746
2747 # type: textblock
2748 #: ../src/guestfs.pod:1396
2749 msgid "The default is to call L<abort(3)>."
2750 msgstr ""
2751
2752 # type: textblock
2753 #: ../src/guestfs.pod:1398
2754 msgid ""
2755 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2756 msgstr ""
2757
2758 # type: =head2
2759 #: ../src/guestfs.pod:1401
2760 msgid "guestfs_get_out_of_memory_handler"
2761 msgstr ""
2762
2763 # type: verbatim
2764 #: ../src/guestfs.pod:1403
2765 #, no-wrap
2766 msgid ""
2767 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2768 "\n"
2769 msgstr ""
2770
2771 # type: textblock
2772 #: ../src/guestfs.pod:1405
2773 msgid "This returns the current out of memory handler."
2774 msgstr ""
2775
2776 # type: =head1
2777 #: ../src/guestfs.pod:1407
2778 msgid "API CALLS"
2779 msgstr ""
2780
2781 # type: textblock
2782 #: ../src/guestfs.pod:1409 ../fish/guestfish.pod:958
2783 msgid "@ACTIONS@"
2784 msgstr ""
2785
2786 # type: =head1
2787 #: ../src/guestfs.pod:1411
2788 msgid "STRUCTURES"
2789 msgstr ""
2790
2791 # type: textblock
2792 #: ../src/guestfs.pod:1413
2793 msgid "@STRUCTS@"
2794 msgstr ""
2795
2796 # type: =head1
2797 #: ../src/guestfs.pod:1415
2798 msgid "AVAILABILITY"
2799 msgstr ""
2800
2801 # type: =head2
2802 #: ../src/guestfs.pod:1417
2803 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2804 msgstr ""
2805
2806 # type: textblock
2807 #: ../src/guestfs.pod:1419
2808 msgid ""
2809 "Using L</guestfs_available> you can test availability of the following "
2810 "groups of functions.  This test queries the appliance to see if the "
2811 "appliance you are currently using supports the functionality."
2812 msgstr ""
2813
2814 # type: textblock
2815 #: ../src/guestfs.pod:1424
2816 msgid "@AVAILABILITY@"
2817 msgstr ""
2818
2819 # type: =head2
2820 #: ../src/guestfs.pod:1426
2821 msgid "GUESTFISH supported COMMAND"
2822 msgstr ""
2823
2824 # type: textblock
2825 #: ../src/guestfs.pod:1428
2826 msgid ""
2827 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2828 "prints out the available groups and whether they are supported by this build "
2829 "of libguestfs.  Note however that you have to do C<run> first."
2830 msgstr ""
2831
2832 # type: =head2
2833 #: ../src/guestfs.pod:1433
2834 msgid "SINGLE CALLS AT COMPILE TIME"
2835 msgstr ""
2836
2837 # type: textblock
2838 #: ../src/guestfs.pod:1435
2839 msgid ""
2840 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2841 "function, such as:"
2842 msgstr ""
2843
2844 # type: verbatim
2845 #: ../src/guestfs.pod:1438
2846 #, no-wrap
2847 msgid ""
2848 " #define LIBGUESTFS_HAVE_DD 1\n"
2849 "\n"
2850 msgstr ""
2851
2852 # type: textblock
2853 #: ../src/guestfs.pod:1440
2854 msgid "if L</guestfs_dd> is available."
2855 msgstr ""
2856
2857 # type: textblock
2858 #: ../src/guestfs.pod:1442
2859 msgid ""
2860 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2861 "function is available at compile time, we recommended using build tools such "
2862 "as autoconf or cmake.  For example in autotools you could use:"
2863 msgstr ""
2864
2865 # type: verbatim
2866 #: ../src/guestfs.pod:1447
2867 #, no-wrap
2868 msgid ""
2869 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2870 " AC_CHECK_FUNCS([guestfs_dd])\n"
2871 "\n"
2872 msgstr ""
2873
2874 # type: textblock
2875 #: ../src/guestfs.pod:1450
2876 msgid ""
2877 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2878 "in your program."
2879 msgstr ""
2880
2881 # type: =head2
2882 #: ../src/guestfs.pod:1453
2883 msgid "SINGLE CALLS AT RUN TIME"
2884 msgstr ""
2885
2886 # type: textblock
2887 #: ../src/guestfs.pod:1455
2888 msgid ""
2889 "Testing at compile time doesn't guarantee that a function really exists in "
2890 "the library.  The reason is that you might be dynamically linked against a "
2891 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2892 "This situation unfortunately results in a segmentation fault, which is a "
2893 "shortcoming of the C dynamic linking system itself."
2894 msgstr ""
2895
2896 # type: textblock
2897 #: ../src/guestfs.pod:1462
2898 msgid ""
2899 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2900 "in this example program (note that you still need the compile time check as "
2901 "well):"
2902 msgstr ""
2903
2904 # type: verbatim
2905 #: ../src/guestfs.pod:1466
2906 #, no-wrap
2907 msgid ""
2908 " #include <stdio.h>\n"
2909 " #include <stdlib.h>\n"
2910 " #include <unistd.h>\n"
2911 " #include <dlfcn.h>\n"
2912 " #include <guestfs.h>\n"
2913 " \n"
2914 msgstr ""
2915
2916 # type: verbatim
2917 #: ../src/guestfs.pod:1472
2918 #, no-wrap
2919 msgid ""
2920 " main ()\n"
2921 " {\n"
2922 " #ifdef LIBGUESTFS_HAVE_DD\n"
2923 "   void *dl;\n"
2924 "   int has_function;\n"
2925 " \n"
2926 msgstr ""
2927
2928 # type: verbatim
2929 #: ../src/guestfs.pod:1478
2930 #, no-wrap
2931 msgid ""
2932 "   /* Test if the function guestfs_dd is really available. */\n"
2933 "   dl = dlopen (NULL, RTLD_LAZY);\n"
2934 "   if (!dl) {\n"
2935 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
2936 "     exit (EXIT_FAILURE);\n"
2937 "   }\n"
2938 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
2939 "   dlclose (dl);\n"
2940 " \n"
2941 msgstr ""
2942
2943 # type: verbatim
2944 #: ../src/guestfs.pod:1487
2945 #, no-wrap
2946 msgid ""
2947 "   if (!has_function)\n"
2948 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
2949 "   else {\n"
2950 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
2951 "     /* Now it's safe to call\n"
2952 "     guestfs_dd (g, \"foo\", \"bar\");\n"
2953 "     */\n"
2954 "   }\n"
2955 " #else\n"
2956 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
2957 " #endif\n"
2958 "  }\n"
2959 "\n"
2960 msgstr ""
2961
2962 # type: textblock
2963 #: ../src/guestfs.pod:1500
2964 msgid ""
2965 "You may think the above is an awful lot of hassle, and it is.  There are "
2966 "other ways outside of the C linking system to ensure that this kind of "
2967 "incompatibility never arises, such as using package versioning:"
2968 msgstr ""
2969
2970 # type: verbatim
2971 #: ../src/guestfs.pod:1505
2972 #, no-wrap
2973 msgid ""
2974 " Requires: libguestfs >= 1.0.80\n"
2975 "\n"
2976 msgstr ""
2977
2978 # type: =head1
2979 #: ../src/guestfs.pod:1507
2980 msgid "CALLS WITH OPTIONAL ARGUMENTS"
2981 msgstr ""
2982
2983 # type: textblock
2984 #: ../src/guestfs.pod:1509
2985 msgid ""
2986 "A recent feature of the API is the introduction of calls which take optional "
2987 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
2988 "takes variable arguments (ie. C<...>), as in this example:"
2989 msgstr ""
2990
2991 # type: verbatim
2992 #: ../src/guestfs.pod:1514
2993 #, no-wrap
2994 msgid ""
2995 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
2996 "\n"
2997 msgstr ""
2998
2999 # type: textblock
3000 #: ../src/guestfs.pod:1516
3001 msgid ""
3002 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3003 "call with no optional arguments specified:"
3004 msgstr ""
3005
3006 # type: verbatim
3007 #: ../src/guestfs.pod:1519
3008 #, no-wrap
3009 msgid ""
3010 " guestfs_add_drive_opts (g, filename, -1);\n"
3011 "\n"
3012 msgstr ""
3013
3014 # type: textblock
3015 #: ../src/guestfs.pod:1521
3016 msgid "With a single optional argument:"
3017 msgstr ""
3018
3019 # type: verbatim
3020 #: ../src/guestfs.pod:1523
3021 #, no-wrap
3022 msgid ""
3023 " guestfs_add_drive_opts (g, filename,\n"
3024 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3025 "                         -1);\n"
3026 "\n"
3027 msgstr ""
3028
3029 # type: textblock
3030 #: ../src/guestfs.pod:1527
3031 msgid "With two:"
3032 msgstr ""
3033
3034 # type: verbatim
3035 #: ../src/guestfs.pod:1529
3036 #, no-wrap
3037 msgid ""
3038 " guestfs_add_drive_opts (g, filename,\n"
3039 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3040 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3041 "                         -1);\n"
3042 "\n"
3043 msgstr ""
3044
3045 # type: textblock
3046 #: ../src/guestfs.pod:1534
3047 msgid ""
3048 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3049 "happen!"
3050 msgstr ""
3051
3052 # type: =head2
3053 #: ../src/guestfs.pod:1537
3054 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3055 msgstr ""
3056
3057 # type: textblock
3058 #: ../src/guestfs.pod:1539
3059 msgid ""
3060 "The second variant has the same name with the suffix C<_va>, which works the "
3061 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3062 "example function, this is declared:"
3063 msgstr ""
3064
3065 # type: verbatim
3066 #: ../src/guestfs.pod:1543
3067 #, no-wrap
3068 msgid ""
3069 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3070 "                                va_list args);\n"
3071 "\n"
3072 msgstr ""
3073
3074 # type: =head2
3075 #: ../src/guestfs.pod:1546
3076 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3077 msgstr ""
3078
3079 # type: textblock
3080 #: ../src/guestfs.pod:1548
3081 msgid ""
3082 "The third variant is useful where you need to construct these calls.  You "
3083 "pass in a structure where you fill in the optional fields.  The structure "
3084 "has a bitmask as the first element which you must set to indicate which "
3085 "fields you have filled in.  For our example function the structure and call "
3086 "are declared:"
3087 msgstr ""
3088
3089 # type: verbatim
3090 #: ../src/guestfs.pod:1554
3091 #, no-wrap
3092 msgid ""
3093 " struct guestfs_add_drive_opts_argv {\n"
3094 "   uint64_t bitmask;\n"
3095 "   int readonly;\n"
3096 "   const char *format;\n"
3097 "   /* ... */\n"
3098 " };\n"
3099 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3100 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3101 "\n"
3102 msgstr ""
3103
3104 # type: textblock
3105 #: ../src/guestfs.pod:1563
3106 msgid "You could call it like this:"
3107 msgstr ""
3108
3109 # type: verbatim
3110 #: ../src/guestfs.pod:1565
3111 #, no-wrap
3112 msgid ""
3113 " struct guestfs_add_drive_opts_argv optargs = {\n"
3114 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3115 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3116 "   .readonly = 1,\n"
3117 "   .format = \"qcow2\"\n"
3118 " };\n"
3119 " \n"
3120 msgstr ""
3121
3122 # type: verbatim
3123 #: ../src/guestfs.pod:1572
3124 #, no-wrap
3125 msgid ""
3126 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3127 "\n"
3128 msgstr ""
3129
3130 # type: textblock
3131 #: ../src/guestfs.pod:1574 ../src/guestfs-actions.pod:11
3132 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:9
3133 #: ../fish/guestfish-actions.pod:1255
3134 msgid "Notes:"
3135 msgstr ""
3136
3137 # type: textblock
3138 #: ../src/guestfs.pod:1580
3139 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3140 msgstr ""
3141
3142 # type: textblock
3143 #: ../src/guestfs.pod:1585
3144 msgid "You do not need to fill in all fields of the structure."
3145 msgstr ""
3146
3147 # type: textblock
3148 #: ../src/guestfs.pod:1589
3149 msgid ""
3150 "There must be a one-to-one correspondence between fields of the structure "
3151 "that are filled in, and bits set in the bitmask."
3152 msgstr ""
3153
3154 # type: =head2
3155 #: ../src/guestfs.pod:1594
3156 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3157 msgstr ""
3158
3159 # type: textblock
3160 #: ../src/guestfs.pod:1596
3161 msgid ""
3162 "In other languages, optional arguments are expressed in the way that is "
3163 "natural for that language.  We refer you to the language-specific "
3164 "documentation for more details on that."
3165 msgstr ""
3166
3167 # type: textblock
3168 #: ../src/guestfs.pod:1600
3169 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3170 msgstr ""
3171
3172 # type: =head2
3173 #: ../src/guestfs.pod:1602
3174 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3175 msgstr ""
3176
3177 # type: textblock
3178 #: ../src/guestfs.pod:1604
3179 msgid ""
3180 "The child process generates events in some situations.  Current events "
3181 "include: receiving a log message, the child process exits."
3182 msgstr ""
3183
3184 # type: textblock
3185 #: ../src/guestfs.pod:1607
3186 msgid ""
3187 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3188 "types of events."
3189 msgstr ""
3190
3191 # type: textblock
3192 #: ../src/guestfs.pod:1610
3193 msgid ""
3194 "Only I<one callback of each type> can be registered for each handle.  "
3195 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3196 "that type.  Cancel all callbacks of this type by calling this function with "
3197 "C<cb> set to C<NULL>."
3198 msgstr ""
3199
3200 # type: =head2
3201 #: ../src/guestfs.pod:1615
3202 msgid "guestfs_set_log_message_callback"
3203 msgstr ""
3204
3205 # type: verbatim
3206 #: ../src/guestfs.pod:1617
3207 #, no-wrap
3208 msgid ""
3209 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3210 "                                         char *buf, int len);\n"
3211 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3212 "                                        guestfs_log_message_cb cb,\n"
3213 "                                        void *opaque);\n"
3214 "\n"
3215 msgstr ""
3216
3217 # type: textblock
3218 #: ../src/guestfs.pod:1623
3219 msgid ""
3220 "The callback function C<cb> will be called whenever qemu or the guest writes "
3221 "anything to the console."
3222 msgstr ""
3223
3224 # type: textblock
3225 #: ../src/guestfs.pod:1626
3226 msgid "Use this function to capture kernel messages and similar."
3227 msgstr ""
3228
3229 # type: textblock
3230 #: ../src/guestfs.pod:1628
3231 msgid ""
3232 "Normally there is no log message handler, and log messages are just "
3233 "discarded."
3234 msgstr ""
3235
3236 # type: =head2
3237 #: ../src/guestfs.pod:1631
3238 msgid "guestfs_set_subprocess_quit_callback"
3239 msgstr ""
3240
3241 # type: verbatim
3242 #: ../src/guestfs.pod:1633
3243 #, no-wrap
3244 msgid ""
3245 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3246 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3247 "                                            guestfs_subprocess_quit_cb cb,\n"
3248 "                                            void *opaque);\n"
3249 "\n"
3250 msgstr ""
3251
3252 # type: textblock
3253 #: ../src/guestfs.pod:1638
3254 msgid ""
3255 "The callback function C<cb> will be called when the child process quits, "
3256 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3257 "corresponds to a transition from any state to the CONFIG state)."
3258 msgstr ""
3259
3260 # type: =head2
3261 #: ../src/guestfs.pod:1643
3262 msgid "guestfs_set_launch_done_callback"
3263 msgstr ""
3264
3265 # type: verbatim
3266 #: ../src/guestfs.pod:1645
3267 #, no-wrap
3268 msgid ""
3269 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3270 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3271 "                                        guestfs_launch_done_cb cb,\n"
3272 "                                        void *opaque);\n"
3273 "\n"
3274 msgstr ""
3275
3276 # type: textblock
3277 #: ../src/guestfs.pod:1650
3278 msgid ""
3279 "The callback function C<cb> will be called when the child process becomes "
3280 "ready first time after it has been launched.  (This corresponds to a "
3281 "transition from LAUNCHING to the READY state)."
3282 msgstr ""
3283
3284 # type: =head2
3285 #: ../src/guestfs.pod:1654
3286 msgid "guestfs_set_close_callback"
3287 msgstr ""
3288
3289 # type: verbatim
3290 #: ../src/guestfs.pod:1656
3291 #, no-wrap
3292 msgid ""
3293 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3294 " void guestfs_set_close_callback (guestfs_h *g,\n"
3295 "                                  guestfs_close_cb cb,\n"
3296 "                                  void *opaque);\n"
3297 "\n"
3298 msgstr ""
3299
3300 # type: textblock
3301 #: ../src/guestfs.pod:1661
3302 msgid ""
3303 "The callback function C<cb> will be called while the handle is being closed "
3304 "(synchronously from L</guestfs_close>)."
3305 msgstr ""
3306
3307 # type: textblock
3308 #: ../src/guestfs.pod:1664
3309 msgid ""
3310 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3311 "handles that are open when the program exits.  This means that this callback "
3312 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3313 "problems in higher-level languages (eg. if your HLL interpreter has already "
3314 "been cleaned up by the time this is called, and if your callback then jumps "
3315 "into some HLL function)."
3316 msgstr ""
3317
3318 # type: =head2
3319 #: ../src/guestfs.pod:1672
3320 msgid "guestfs_set_progress_callback"
3321 msgstr ""
3322
3323 # type: verbatim
3324 #: ../src/guestfs.pod:1674
3325 #, no-wrap
3326 msgid ""
3327 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3328 "                                      int proc_nr, int serial,\n"
3329 "                                      uint64_t position, uint64_t total);\n"
3330 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3331 "                                     guestfs_progress_cb cb,\n"
3332 "                                     void *opaque);\n"
3333 "\n"
3334 msgstr ""
3335
3336 # type: textblock
3337 #: ../src/guestfs.pod:1681
3338 msgid ""
3339 "Some long-running operations can generate progress messages.  If this "
3340 "callback is registered, then it will be called each time a progress message "
3341 "is generated (usually two seconds after the operation started, and three "
3342 "times per second thereafter until it completes, although the frequency may "
3343 "change in future versions)."
3344 msgstr ""
3345
3346 # type: textblock
3347 #: ../src/guestfs.pod:1687
3348 msgid ""
3349 "The callback receives two numbers: C<position> and C<total>.  The units of "
3350 "C<total> are not defined, although for some operations C<total> may relate "
3351 "in some way to the amount of data to be transferred (eg. in bytes or "
3352 "megabytes), and C<position> may be the portion which has been transferred."
3353 msgstr ""
3354
3355 # type: textblock
3356 #: ../src/guestfs.pod:1693
3357 msgid "The only defined and stable parts of the API are:"
3358 msgstr ""
3359
3360 # type: textblock
3361 #: ../src/guestfs.pod:1699
3362 msgid ""
3363 "The callback can display to the user some type of progress bar or indicator "
3364 "which shows the ratio of C<position>:C<total>."
3365 msgstr ""
3366
3367 # type: textblock
3368 #: ../src/guestfs.pod:1704
3369 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3370 msgstr ""
3371
3372 # type: textblock
3373 #: ../src/guestfs.pod:1708
3374 msgid ""
3375 "If any progress notification is sent during a call, then a final progress "
3376 "notification is always sent when C<position> = C<total>."
3377 msgstr ""
3378
3379 # type: textblock
3380 #: ../src/guestfs.pod:1711
3381 msgid ""
3382 "This is to simplify caller code, so callers can easily set the progress "
3383 "indicator to \"100%\" at the end of the operation, without requiring special "
3384 "code to detect this case."
3385 msgstr ""
3386
3387 # type: textblock
3388 #: ../src/guestfs.pod:1717
3389 msgid ""
3390 "The callback also receives the procedure number and serial number of the "
3391 "call.  These are only useful for debugging protocol issues, and the callback "
3392 "can normally ignore them.  The callback may want to print these numbers in "
3393 "error messages or debugging messages."
3394 msgstr ""
3395
3396 # type: =head1
3397 #: ../src/guestfs.pod:1722
3398 msgid "PRIVATE DATA AREA"
3399 msgstr ""
3400
3401 # type: textblock
3402 #: ../src/guestfs.pod:1724
3403 msgid ""
3404 "You can attach named pieces of private data to the libguestfs handle, and "
3405 "fetch them by name for the lifetime of the handle.  This is called the "
3406 "private data area and is only available from the C API."
3407 msgstr ""
3408
3409 # type: textblock
3410 #: ../src/guestfs.pod:1728
3411 msgid "To attach a named piece of data, use the following call:"
3412 msgstr ""
3413
3414 # type: verbatim
3415 #: ../src/guestfs.pod:1730
3416 #, no-wrap
3417 msgid ""
3418 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3419 "\n"
3420 msgstr ""
3421
3422 # type: textblock
3423 #: ../src/guestfs.pod:1732
3424 msgid ""
3425 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3426 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3427 "overwritten."
3428 msgstr ""
3429
3430 # type: textblock
3431 #: ../src/guestfs.pod:1736
3432 msgid ""
3433 "You can use any C<key> you want, but names beginning with an underscore "
3434 "character are reserved for internal libguestfs purposes (for implementing "
3435 "language bindings).  It is recommended to prefix the name with some unique "
3436 "string to avoid collisions with other users."
3437 msgstr ""
3438
3439 # type: textblock
3440 #: ../src/guestfs.pod:1741
3441 msgid "To retrieve the pointer, use:"
3442 msgstr ""
3443
3444 # type: verbatim
3445 #: ../src/guestfs.pod:1743
3446 #, no-wrap
3447 msgid ""
3448 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3449 "\n"
3450 msgstr ""
3451
3452 # type: textblock
3453 #: ../src/guestfs.pod:1745
3454 msgid ""
3455 "This function returns C<NULL> if either no data is found associated with "
3456 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3457 "C<NULL>."
3458 msgstr ""
3459
3460 # type: textblock
3461 #: ../src/guestfs.pod:1749
3462 msgid ""
3463 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3464 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3465 "all.  In particular, libguestfs does I<not> try to free the data when the "
3466 "handle is closed.  If the data must be freed, then the caller must either "
3467 "free it before calling L</guestfs_close> or must set up a close callback to "
3468 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3469 "can be registered for a handle)."
3470 msgstr ""
3471
3472 # type: textblock
3473 #: ../src/guestfs.pod:1757
3474 msgid ""
3475 "The private data area is implemented using a hash table, and should be "
3476 "reasonably efficient for moderate numbers of keys."
3477 msgstr ""
3478
3479 # type: =end
3480 #: ../src/guestfs.pod:1760 ../src/guestfs.pod:1765
3481 msgid "html"
3482 msgstr ""
3483
3484 # type: textblock
3485 #: ../src/guestfs.pod:1762
3486 msgid ""
3487 "<!-- old anchor for the next section --> <a name="
3488 "\"state_machine_and_low_level_event_api\"/>"
3489 msgstr ""
3490
3491 # type: =head1
3492 #: ../src/guestfs.pod:1767
3493 msgid "ARCHITECTURE"
3494 msgstr ""
3495
3496 # type: textblock
3497 #: ../src/guestfs.pod:1769
3498 msgid ""
3499 "Internally, libguestfs is implemented by running an appliance (a special "
3500 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
3501 "process of the main program."
3502 msgstr ""
3503
3504 # type: verbatim
3505 #: ../src/guestfs.pod:1773
3506 #, no-wrap
3507 msgid ""
3508 "  ___________________\n"
3509 " /                   \\\n"
3510 " | main program      |\n"
3511 " |                   |\n"
3512 " |                   |           child process / appliance\n"
3513 " |                   |           __________________________\n"
3514 " |                   |          / qemu                     \\\n"
3515 " +-------------------+   RPC    |      +-----------------+ |\n"
3516 " | libguestfs     <--------------------> guestfsd        | |\n"
3517 " |                   |          |      +-----------------+ |\n"
3518 " \\___________________/          |      | Linux kernel    | |\n"
3519 "                                |      +--^--------------+ |\n"
3520 "                                \\_________|________________/\n"
3521 "                                          |\n"
3522 "                                   _______v______\n"
3523 "                                  /              \\\n"
3524 "                                  | Device or    |\n"
3525 "                                  | disk image   |\n"
3526 "                                  \\______________/\n"
3527 "\n"
3528 msgstr ""
3529
3530 # type: textblock
3531 #: ../src/guestfs.pod:1793
3532 msgid ""
3533 "The library, linked to the main program, creates the child process and hence "
3534 "the appliance in the L</guestfs_launch> function."
3535 msgstr ""
3536
3537 # type: textblock
3538 #: ../src/guestfs.pod:1796
3539 msgid ""
3540 "Inside the appliance is a Linux kernel and a complete stack of userspace "
3541 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
3542 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
3543 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
3544 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
3545 "attached to the qemu process which translates device access by the "
3546 "appliance's Linux kernel into accesses to the image."
3547 msgstr ""
3548
3549 # type: textblock
3550 #: ../src/guestfs.pod:1805
3551 msgid ""
3552 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
3553 "Although the disk image you are attached to might also be used by some "
3554 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
3555 "care if both libguestfs's qemu process and your virtual machine are trying "
3556 "to update the disk image at the same time, since these usually results in "
3557 "massive disk corruption)."
3558 msgstr ""
3559
3560 # type: =head1
3561 #: ../src/guestfs.pod:1812
3562 msgid "STATE MACHINE"
3563 msgstr ""
3564
3565 # type: textblock
3566 #: ../src/guestfs.pod:1814
3567 msgid "libguestfs uses a state machine to model the child process:"
3568 msgstr ""
3569
3570 # type: verbatim
3571 #: ../src/guestfs.pod:1816
3572 #, no-wrap
3573 msgid ""
3574 "                         |\n"
3575 "                    guestfs_create\n"
3576 "                         |\n"
3577 "                         |\n"
3578 "                     ____V_____\n"
3579 "                    /          \\\n"
3580 "                    |  CONFIG  |\n"
3581 "                    \\__________/\n"
3582 "                     ^ ^   ^  \\\n"
3583 "                    /  |    \\  \\ guestfs_launch\n"
3584 "                   /   |    _\\__V______\n"
3585 "                  /    |   /           \\\n"
3586 "                 /     |   | LAUNCHING |\n"
3587 "                /      |   \\___________/\n"
3588 "               /       |       /\n"
3589 "              /        |  guestfs_launch\n"
3590 "             /         |     /\n"
3591 "    ______  /        __|____V\n"
3592 "   /      \\ ------> /        \\\n"
3593 "   | BUSY |         | READY  |\n"
3594 "   \\______/ <------ \\________/\n"
3595 "\n"
3596 msgstr ""
3597
3598 # type: textblock
3599 #: ../src/guestfs.pod:1838
3600 msgid ""
3601 "The normal transitions are (1) CONFIG (when the handle is created, but there "
3602 "is no child process), (2) LAUNCHING (when the child process is booting up), "
3603 "(3) alternating between READY and BUSY as commands are issued to, and "
3604 "carried out by, the child process."
3605 msgstr ""
3606
3607 # type: textblock
3608 #: ../src/guestfs.pod:1843
3609 msgid ""
3610 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
3611 "asynchronously at any time (eg. due to some internal error), and that causes "
3612 "the state to transition back to CONFIG."
3613 msgstr ""
3614
3615 # type: textblock
3616 #: ../src/guestfs.pod:1847
3617 msgid ""
3618 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
3619 "issued when in the CONFIG state."
3620 msgstr ""
3621
3622 # type: textblock
3623 #: ../src/guestfs.pod:1850
3624 msgid ""
3625 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
3626 "L</guestfs_launch> blocks until the child process is READY to accept "
3627 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
3628 "moves the state from CONFIG to LAUNCHING while it is running."
3629 msgstr ""
3630
3631 # type: textblock
3632 #: ../src/guestfs.pod:1856
3633 msgid ""
3634 "API actions such as L</guestfs_mount> can only be issued when in the READY "
3635 "state.  These API calls block waiting for the command to be carried out (ie. "
3636 "the state to transition to BUSY and then back to READY).  There are no non-"
3637 "blocking versions, and no way to issue more than one command per handle at "
3638 "the same time."
3639 msgstr ""
3640
3641 # type: textblock
3642 #: ../src/guestfs.pod:1862
3643 msgid ""
3644 "Finally, the child process sends asynchronous messages back to the main "
3645 "program, such as kernel log messages.  You can register a callback to "
3646 "receive these messages."
3647 msgstr ""
3648
3649 # type: =head1
3650 #: ../src/guestfs.pod:1866
3651 msgid "INTERNALS"
3652 msgstr ""
3653
3654 # type: =head2
3655 #: ../src/guestfs.pod:1868
3656 msgid "COMMUNICATION PROTOCOL"
3657 msgstr ""
3658
3659 # type: textblock
3660 #: ../src/guestfs.pod:1870
3661 msgid ""
3662 "Don't rely on using this protocol directly.  This section documents how it "
3663 "currently works, but it may change at any time."
3664 msgstr ""
3665
3666 # type: textblock
3667 #: ../src/guestfs.pod:1873
3668 msgid ""
3669 "The protocol used to talk between the library and the daemon running inside "
3670 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
3671 "1014, RFC 1832, RFC 4506)."
3672 msgstr ""
3673
3674 # type: textblock
3675 #: ../src/guestfs.pod:1877
3676 msgid ""
3677 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
3678 "this file is automatically generated)."
3679 msgstr ""
3680
3681 # type: textblock
3682 #: ../src/guestfs.pod:1880
3683 msgid ""
3684 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
3685 "and C<FileOut> parameters, which are handled with very simple request/reply "
3686 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
3687 "parameters, which use the same request and reply messages, but they may also "
3688 "be followed by files sent using a chunked encoding."
3689 msgstr ""
3690
3691 # type: =head3
3692 #: ../src/guestfs.pod:1887
3693 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
3694 msgstr ""
3695
3696 # type: textblock
3697 #: ../src/guestfs.pod:1889
3698 msgid "For ordinary functions, the request message is:"
3699 msgstr ""
3700
3701 # type: verbatim
3702 #: ../src/guestfs.pod:1891
3703 #, no-wrap
3704 msgid ""
3705 " total length (header + arguments,\n"
3706 "      but not including the length word itself)\n"
3707 " struct guestfs_message_header (encoded as XDR)\n"
3708 " struct guestfs_<foo>_args (encoded as XDR)\n"
3709 "\n"
3710 msgstr ""
3711
3712 # type: textblock
3713 #: ../src/guestfs.pod:1896
3714 msgid ""
3715 "The total length field allows the daemon to allocate a fixed size buffer "
3716 "into which it slurps the rest of the message.  As a result, the total length "
3717 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
3718 "effective size of any request is limited to somewhere under this size."
3719 msgstr ""
3720
3721 # type: textblock
3722 #: ../src/guestfs.pod:1902
3723 msgid ""
3724 "Note also that many functions don't take any arguments, in which case the "
3725 "C<guestfs_I<foo>_args> is completely omitted."
3726 msgstr ""
3727
3728 # type: textblock
3729 #: ../src/guestfs.pod:1905
3730 msgid ""
3731 "The header contains the procedure number (C<guestfs_proc>) which is how the "
3732 "receiver knows what type of args structure to expect, or none at all."
3733 msgstr ""
3734
3735 # type: textblock
3736 #: ../src/guestfs.pod:1909
3737 msgid ""
3738 "For functions that take optional arguments, the optional arguments are "
3739 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
3740 "arguments.  A bitmask in the header indicates which optional arguments are "
3741 "meaningful.  The bitmask is also checked to see if it contains bits set "
3742 "which the daemon does not know about (eg. if more optional arguments were "
3743 "added in a later version of the library), and this causes the call to be "
3744 "rejected."
3745 msgstr ""
3746
3747 # type: textblock
3748 #: ../src/guestfs.pod:1917
3749 msgid "The reply message for ordinary functions is:"
3750 msgstr ""
3751
3752 # type: verbatim
3753 #: ../src/guestfs.pod:1919
3754 #, no-wrap
3755 msgid ""
3756 " total length (header + ret,\n"
3757 "      but not including the length word itself)\n"
3758 " struct guestfs_message_header (encoded as XDR)\n"
3759 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3760 "\n"
3761 msgstr ""
3762
3763 # type: textblock
3764 #: ../src/guestfs.pod:1924
3765 msgid ""
3766 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
3767 "functions that return no formal return values."
3768 msgstr ""
3769
3770 # type: textblock
3771 #: ../src/guestfs.pod:1927
3772 msgid ""
3773 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
3774 msgstr ""
3775
3776 # type: textblock
3777 #: ../src/guestfs.pod:1930
3778 msgid ""
3779 "In the case of an error, a flag is set in the header, and the reply message "
3780 "is slightly changed:"
3781 msgstr ""
3782
3783 # type: verbatim
3784 #: ../src/guestfs.pod:1933
3785 #, no-wrap
3786 msgid ""
3787 " total length (header + error,\n"
3788 "      but not including the length word itself)\n"
3789 " struct guestfs_message_header (encoded as XDR)\n"
3790 " struct guestfs_message_error (encoded as XDR)\n"
3791 "\n"
3792 msgstr ""
3793
3794 # type: textblock
3795 #: ../src/guestfs.pod:1938
3796 msgid ""
3797 "The C<guestfs_message_error> structure contains the error message as a "
3798 "string."
3799 msgstr ""
3800
3801 # type: =head3
3802 #: ../src/guestfs.pod:1941
3803 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
3804 msgstr ""
3805
3806 # type: textblock
3807 #: ../src/guestfs.pod:1943
3808 msgid ""
3809 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
3810 "The normal request message is sent (see above).  However this is followed by "
3811 "a sequence of file chunks."
3812 msgstr ""
3813
3814 # type: verbatim
3815 #: ../src/guestfs.pod:1947
3816 #, no-wrap
3817 msgid ""
3818 " total length (header + arguments,\n"
3819 "      but not including the length word itself,\n"
3820 "      and not including the chunks)\n"
3821 " struct guestfs_message_header (encoded as XDR)\n"
3822 " struct guestfs_<foo>_args (encoded as XDR)\n"
3823 " sequence of chunks for FileIn param #0\n"
3824 " sequence of chunks for FileIn param #1 etc.\n"
3825 "\n"
3826 msgstr ""
3827
3828 # type: textblock
3829 #: ../src/guestfs.pod:1955
3830 msgid "The \"sequence of chunks\" is:"
3831 msgstr ""
3832
3833 # type: verbatim
3834 #: ../src/guestfs.pod:1957
3835 #, no-wrap
3836 msgid ""
3837 " length of chunk (not including length word itself)\n"
3838 " struct guestfs_chunk (encoded as XDR)\n"
3839 " length of chunk\n"
3840 " struct guestfs_chunk (encoded as XDR)\n"
3841 "   ...\n"
3842 " length of chunk\n"
3843 " struct guestfs_chunk (with data.data_len == 0)\n"
3844 "\n"
3845 msgstr ""
3846
3847 # type: textblock
3848 #: ../src/guestfs.pod:1965
3849 msgid ""
3850 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
3851 "is set in the final chunk to indicate either successful completion or early "
3852 "cancellation."
3853 msgstr ""
3854
3855 # type: textblock
3856 #: ../src/guestfs.pod:1969
3857 msgid ""
3858 "At time of writing there are no functions that have more than one FileIn "
3859 "parameter.  However this is (theoretically) supported, by sending the "
3860 "sequence of chunks for each FileIn parameter one after another (from left to "
3861 "right)."
3862 msgstr ""
3863
3864 # type: textblock
3865 #: ../src/guestfs.pod:1974
3866 msgid ""
3867 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
3868 "transfer.  The library does this by sending a chunk with a special flag set "
3869 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
3870 "RPC, does I<not> send any reply, and goes back to reading the next request."
3871 msgstr ""
3872
3873 # type: textblock
3874 #: ../src/guestfs.pod:1980
3875 msgid ""
3876 "The daemon may also cancel.  It does this by writing a special word "
3877 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
3878 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
3879 "cancel chunk).  The special word is chosen so that even if cancellation "
3880 "happens right at the end of the transfer (after the library has finished "
3881 "writing and has started listening for the reply), the \"spurious\" cancel "
3882 "flag will not be confused with the reply message."
3883 msgstr ""
3884
3885 # type: textblock
3886 #: ../src/guestfs.pod:1989
3887 msgid ""
3888 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
3889 "limit), and also files where the size is not known in advance (eg. from "
3890 "pipes or sockets).  However the chunks are rather small "
3891 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
3892 "to keep much in memory."
3893 msgstr ""
3894
3895 # type: =head3
3896 #: ../src/guestfs.pod:1995
3897 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
3898 msgstr ""
3899
3900 # type: textblock
3901 #: ../src/guestfs.pod:1997
3902 msgid ""
3903 "The protocol for FileOut parameters is exactly the same as for FileIn "
3904 "parameters, but with the roles of daemon and library reversed."
3905 msgstr ""
3906
3907 # type: verbatim
3908 #: ../src/guestfs.pod:2000
3909 #, no-wrap
3910 msgid ""
3911 " total length (header + ret,\n"
3912 "      but not including the length word itself,\n"
3913 "      and not including the chunks)\n"
3914 " struct guestfs_message_header (encoded as XDR)\n"
3915 " struct guestfs_<foo>_ret (encoded as XDR)\n"
3916 " sequence of chunks for FileOut param #0\n"
3917 " sequence of chunks for FileOut param #1 etc.\n"
3918 "\n"
3919 msgstr ""
3920
3921 # type: =head3
3922 #: ../src/guestfs.pod:2008
3923 msgid "INITIAL MESSAGE"
3924 msgstr ""
3925
3926 # type: textblock
3927 #: ../src/guestfs.pod:2010
3928 msgid ""
3929 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
3930 "which indicates that the guest and daemon is alive.  This is what L</"
3931 "guestfs_launch> waits for."
3932 msgstr ""
3933
3934 # type: =head3
3935 #: ../src/guestfs.pod:2014
3936 msgid "PROGRESS NOTIFICATION MESSAGES"
3937 msgstr ""
3938
3939 # type: textblock
3940 #: ../src/guestfs.pod:2016
3941 msgid ""
3942 "The daemon may send progress notification messages at any time.  These are "
3943 "distinguished by the normal length word being replaced by "
3944 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
3945 msgstr ""
3946
3947 # type: textblock
3948 #: ../src/guestfs.pod:2020
3949 msgid ""
3950 "The library turns them into progress callbacks (see "
3951 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
3952 "discards them if not."
3953 msgstr ""
3954
3955 # type: textblock
3956 #: ../src/guestfs.pod:2024
3957 msgid ""
3958 "The daemon self-limits the frequency of progress messages it sends (see "
3959 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
3960 "messages."
3961 msgstr ""
3962
3963 # type: =head1
3964 #: ../src/guestfs.pod:2028
3965 msgid "LIBGUESTFS VERSION NUMBERS"
3966 msgstr ""
3967
3968 # type: textblock
3969 #: ../src/guestfs.pod:2030
3970 msgid ""
3971 "Since April 2010, libguestfs has started to make separate development and "
3972 "stable releases, along with corresponding branches in our git repository.  "
3973 "These separate releases can be identified by version number:"
3974 msgstr ""
3975
3976 # type: verbatim
3977 #: ../src/guestfs.pod:2035
3978 #, no-wrap
3979 msgid ""
3980 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
3981 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
3982 "       |\n"
3983 "       v\n"
3984 " 1  .  3  .  5\n"
3985 " ^           ^\n"
3986 " |           |\n"
3987 " |           `-------- sub-version\n"
3988 " |\n"
3989 " `------ always '1' because we don't change the ABI\n"
3990 "\n"
3991 msgstr ""
3992
3993 # type: textblock
3994 #: ../src/guestfs.pod:2046
3995 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
3996 msgstr ""
3997
3998 # type: textblock
3999 #: ../src/guestfs.pod:2048
4000 msgid ""
4001 "As time passes we cherry pick fixes from the development branch and backport "
4002 "those into the stable branch, the effect being that the stable branch should "
4003 "get more stable and less buggy over time.  So the stable releases are ideal "
4004 "for people who don't need new features but would just like the software to "
4005 "work."
4006 msgstr ""
4007
4008 # type: textblock
4009 #: ../src/guestfs.pod:2054
4010 msgid "Our criteria for backporting changes are:"
4011 msgstr ""
4012
4013 # type: textblock
4014 #: ../src/guestfs.pod:2060
4015 msgid ""
4016 "Documentation changes which don't affect any code are backported unless the "
4017 "documentation refers to a future feature which is not in stable."
4018 msgstr ""
4019
4020 # type: textblock
4021 #: ../src/guestfs.pod:2066
4022 msgid ""
4023 "Bug fixes which are not controversial, fix obvious problems, and have been "
4024 "well tested are backported."
4025 msgstr ""
4026
4027 # type: textblock
4028 #: ../src/guestfs.pod:2071
4029 msgid ""
4030 "Simple rearrangements of code which shouldn't affect how it works get "
4031 "backported.  This is so that the code in the two branches doesn't get too "
4032 "far out of step, allowing us to backport future fixes more easily."
4033 msgstr ""
4034
4035 # type: textblock
4036 #: ../src/guestfs.pod:2077
4037 msgid ""
4038 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4039 "exceptional case: the new feature is required in order to implement an "
4040 "important bug fix."
4041 msgstr ""
4042
4043 # type: textblock
4044 #: ../src/guestfs.pod:2083
4045 msgid ""
4046 "A new stable branch starts when we think the new features in development are "
4047 "substantial and compelling enough over the current stable branch to warrant "
4048 "it.  When that happens we create new stable and development versions 1.N.0 "
4049 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4050 "stable at this point, but by backporting fixes from development, that branch "
4051 "will stabilize over time."
4052 msgstr ""
4053
4054 # type: =head1
4055 #: ../src/guestfs.pod:2091 ../fish/guestfish.pod:965
4056 #: ../test-tool/libguestfs-test-tool.pod:104
4057 msgid "ENVIRONMENT VARIABLES"
4058 msgstr ""
4059
4060 # type: =item
4061 #: ../src/guestfs.pod:2095 ../fish/guestfish.pod:991
4062 msgid "LIBGUESTFS_APPEND"
4063 msgstr ""
4064
4065 # type: textblock
4066 #: ../src/guestfs.pod:2097 ../fish/guestfish.pod:993
4067 msgid "Pass additional options to the guest kernel."
4068 msgstr ""
4069
4070 # type: =item
4071 #: ../src/guestfs.pod:2099 ../fish/guestfish.pod:995
4072 msgid "LIBGUESTFS_DEBUG"
4073 msgstr ""
4074
4075 # type: textblock
4076 #: ../src/guestfs.pod:2101
4077 msgid ""
4078 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
4079 "effect as calling C<guestfs_set_verbose (g, 1)>."
4080 msgstr ""
4081
4082 # type: =item
4083 #: ../src/guestfs.pod:2104 ../fish/guestfish.pod:1000
4084 msgid "LIBGUESTFS_MEMSIZE"
4085 msgstr ""
4086
4087 # type: textblock
4088 #: ../src/guestfs.pod:2106 ../fish/guestfish.pod:1002
4089 msgid ""
4090 "Set the memory allocated to the qemu process, in megabytes.  For example:"
4091 msgstr ""
4092
4093 # type: verbatim
4094 #: ../src/guestfs.pod:2109 ../fish/guestfish.pod:1005
4095 #, no-wrap
4096 msgid ""
4097 " LIBGUESTFS_MEMSIZE=700\n"
4098 "\n"
4099 msgstr ""
4100
4101 # type: =item
4102 #: ../src/guestfs.pod:2111 ../fish/guestfish.pod:1007
4103 msgid "LIBGUESTFS_PATH"
4104 msgstr ""
4105
4106 # type: textblock
4107 #: ../src/guestfs.pod:2113
4108 msgid ""
4109 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
4110 "the discussion of paths in section PATH above."
4111 msgstr ""
4112
4113 # type: =item
4114 #: ../src/guestfs.pod:2116 ../fish/guestfish.pod:1012
4115 msgid "LIBGUESTFS_QEMU"
4116 msgstr ""
4117
4118 # type: textblock
4119 #: ../src/guestfs.pod:2118 ../fish/guestfish.pod:1014
4120 msgid ""
4121 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
4122 "which was found at compile time by the configure script is used."
4123 msgstr ""
4124
4125 # type: textblock
4126 #: ../src/guestfs.pod:2122
4127 msgid "See also L</QEMU WRAPPERS> above."
4128 msgstr ""
4129
4130 # type: =item
4131 #: ../src/guestfs.pod:2124 ../fish/guestfish.pod:1018
4132 msgid "LIBGUESTFS_TRACE"
4133 msgstr ""
4134
4135 # type: textblock
4136 #: ../src/guestfs.pod:2126
4137 msgid ""
4138 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
4139 "effect as calling C<guestfs_set_trace (g, 1)>."
4140 msgstr ""
4141
4142 # type: =item
4143 #: ../src/guestfs.pod:2129 ../fish/guestfish.pod:1027
4144 msgid "TMPDIR"
4145 msgstr ""
4146
4147 # type: textblock
4148 #: ../src/guestfs.pod:2131 ../fish/guestfish.pod:1029
4149 msgid "Location of temporary directory, defaults to C</tmp>."
4150 msgstr ""
4151
4152 # type: textblock
4153 #: ../src/guestfs.pod:2133 ../fish/guestfish.pod:1031
4154 msgid ""
4155 "If libguestfs was compiled to use the supermin appliance then the real "
4156 "appliance is cached in this directory, shared between all handles belonging "
4157 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
4158 "use in case C</tmp> is not large enough."
4159 msgstr ""
4160
4161 # type: =head1
4162 #: ../src/guestfs.pod:2141 ../fish/guestfish.pod:1089
4163 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
4164 msgid "SEE ALSO"
4165 msgstr ""
4166
4167 # type: textblock
4168 #: ../src/guestfs.pod:2143
4169 msgid ""
4170 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
4171 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
4172 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
4173 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
4174 ">, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
4175 "L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
4176 msgstr ""
4177
4178 # type: textblock
4179 #: ../src/guestfs.pod:2166
4180 msgid ""
4181 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
4182 "(8)>, L<disktype(1)>."
4183 msgstr ""
4184
4185 # type: =head1
4186 #: ../src/guestfs.pod:2173
4187 msgid "BUGS"
4188 msgstr ""
4189
4190 # type: textblock
4191 #: ../src/guestfs.pod:2175
4192 msgid "To get a list of bugs against libguestfs use this link:"
4193 msgstr ""
4194
4195 # type: textblock
4196 #: ../src/guestfs.pod:2177
4197 msgid ""
4198 "L<https://bugzilla.redhat.com/buglist.cgi?"
4199 "component=libguestfs&product=Virtualization+Tools>"
4200 msgstr ""
4201
4202 # type: textblock
4203 #: ../src/guestfs.pod:2179
4204 msgid "To report a new bug against libguestfs use this link:"
4205 msgstr ""
4206
4207 # type: textblock
4208 #: ../src/guestfs.pod:2181
4209 msgid ""
4210 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
4211 "component=libguestfs&product=Virtualization+Tools>"
4212 msgstr ""
4213
4214 # type: textblock
4215 #: ../src/guestfs.pod:2183
4216 msgid "When reporting a bug, please check:"
4217 msgstr ""
4218
4219 # type: textblock
4220 #: ../src/guestfs.pod:2189
4221 msgid "That the bug hasn't been reported already."
4222 msgstr ""
4223
4224 # type: textblock
4225 #: ../src/guestfs.pod:2193
4226 msgid "That you are testing a recent version."
4227 msgstr ""
4228
4229 # type: textblock
4230 #: ../src/guestfs.pod:2197
4231 msgid "Describe the bug accurately, and give a way to reproduce it."
4232 msgstr ""
4233
4234 # type: textblock
4235 #: ../src/guestfs.pod:2201
4236 msgid ""
4237 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
4238 "bug report."
4239 msgstr ""
4240
4241 # type: =head1
4242 #: ../src/guestfs.pod:2206 ../fish/guestfish.pod:1108
4243 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
4244 msgid "AUTHORS"
4245 msgstr ""
4246
4247 # type: textblock
4248 #: ../src/guestfs.pod:2208 ../fish/guestfish.pod:1110
4249 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
4250 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4251 msgstr ""
4252
4253 # type: =head1
4254 #: ../src/guestfs.pod:2210 ../fish/guestfish.pod:1112
4255 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
4256 msgid "COPYRIGHT"
4257 msgstr ""
4258
4259 # type: textblock
4260 #: ../src/guestfs.pod:2212 ../fish/guestfish.pod:1114
4261 #: ../fuse/guestmount.pod:250
4262 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
4263 msgstr ""
4264
4265 # type: textblock
4266 #: ../src/guestfs.pod:2215
4267 msgid ""
4268 "This library is free software; you can redistribute it and/or modify it "
4269 "under the terms of the GNU Lesser General Public License as published by the "
4270 "Free Software Foundation; either version 2 of the License, or (at your "
4271 "option) any later version."
4272 msgstr ""
4273
4274 # type: textblock
4275 #: ../src/guestfs.pod:2220
4276 msgid ""
4277 "This library is distributed in the hope that it will be useful, but WITHOUT "
4278 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4279 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4280 "for more details."
4281 msgstr ""
4282
4283 # type: textblock
4284 #: ../src/guestfs.pod:2225
4285 msgid ""
4286 "You should have received a copy of the GNU Lesser General Public License "
4287 "along with this library; if not, write to the Free Software Foundation, "
4288 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4289 msgstr ""
4290
4291 # type: =head2
4292 #: ../src/guestfs-actions.pod:1
4293 msgid "guestfs_add_cdrom"
4294 msgstr ""
4295
4296 # type: verbatim
4297 #: ../src/guestfs-actions.pod:3
4298 #, no-wrap
4299 msgid ""
4300 " int\n"
4301 " guestfs_add_cdrom (guestfs_h *g,\n"
4302 "                    const char *filename);\n"
4303 "\n"
4304 msgstr ""
4305
4306 # type: textblock
4307 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
4308 msgid "This function adds a virtual CD-ROM disk image to the guest."
4309 msgstr ""
4310
4311 # type: textblock
4312 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
4313 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
4314 msgstr ""
4315
4316 # type: textblock
4317 #: ../src/guestfs-actions.pod:17
4318 msgid ""
4319 "This call checks for the existence of C<filename>.  This stops you from "
4320 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4321 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
4322 "instead."
4323 msgstr ""
4324
4325 # type: textblock
4326 #: ../src/guestfs-actions.pod:24
4327 msgid ""
4328 "If you just want to add an ISO file (often you use this as an efficient way "
4329 "to transfer large files into the guest), then you should probably use "
4330 "C<guestfs_add_drive_ro> instead."
4331 msgstr ""
4332
4333 # type: textblock
4334 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:128
4335 #: ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:226
4336 #: ../src/guestfs-actions.pod:240 ../src/guestfs-actions.pod:261
4337 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:295
4338 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
4339 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:489
4340 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
4341 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:635
4342 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:664
4343 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
4344 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
4345 #: ../src/guestfs-actions.pod:970 ../src/guestfs-actions.pod:990
4346 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1092
4347 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1129
4348 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1163
4349 #: ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1264
4350 #: ../src/guestfs-actions.pod:1289 ../src/guestfs-actions.pod:1326
4351 #: ../src/guestfs-actions.pod:1432 ../src/guestfs-actions.pod:1466
4352 #: ../src/guestfs-actions.pod:1684 ../src/guestfs-actions.pod:1706
4353 #: ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:2243
4354 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
4355 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3222
4356 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3257
4357 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3424
4358 #: ../src/guestfs-actions.pod:3437 ../src/guestfs-actions.pod:3451
4359 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3502
4360 #: ../src/guestfs-actions.pod:3574 ../src/guestfs-actions.pod:3594
4361 #: ../src/guestfs-actions.pod:3611 ../src/guestfs-actions.pod:3634
4362 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3689
4363 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:3727
4364 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3774
4365 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3826
4366 #: ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3854
4367 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3964
4368 #: ../src/guestfs-actions.pod:3984 ../src/guestfs-actions.pod:3997
4369 #: ../src/guestfs-actions.pod:4048 ../src/guestfs-actions.pod:4066
4370 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4100
4371 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4128
4372 #: ../src/guestfs-actions.pod:4145 ../src/guestfs-actions.pod:4160
4373 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4224
4374 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4326
4375 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4364
4376 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:4393
4377 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4421
4378 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4471
4379 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4506
4380 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4537
4381 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4623
4382 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4665
4383 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4700
4384 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4891
4385 #: ../src/guestfs-actions.pod:4913 ../src/guestfs-actions.pod:4931
4386 #: ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:5029
4387 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5059
4388 #: ../src/guestfs-actions.pod:5073 ../src/guestfs-actions.pod:5362
4389 #: ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:5395
4390 #: ../src/guestfs-actions.pod:5407 ../src/guestfs-actions.pod:5421
4391 #: ../src/guestfs-actions.pod:5433 ../src/guestfs-actions.pod:5447
4392 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5484
4393 #: ../src/guestfs-actions.pod:5503 ../src/guestfs-actions.pod:5522
4394 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5563
4395 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5600
4396 #: ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5640
4397 #: ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:5685
4398 #: ../src/guestfs-actions.pod:5709 ../src/guestfs-actions.pod:5728
4399 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5767
4400 #: ../src/guestfs-actions.pod:5782 ../src/guestfs-actions.pod:5801
4401 #: ../src/guestfs-actions.pod:5838 ../src/guestfs-actions.pod:5861
4402 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:5995
4403 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-actions.pod:6128
4404 #: ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6154
4405 #: ../src/guestfs-actions.pod:6176 ../src/guestfs-actions.pod:6189
4406 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6215
4407 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6289
4408 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6322
4409 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6355
4410 #: ../src/guestfs-actions.pod:6368 ../src/guestfs-actions.pod:6388
4411 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6438
4412 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492
4413 #: ../src/guestfs-actions.pod:6510 ../src/guestfs-actions.pod:6544
4414 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6699
4415 #: ../src/guestfs-actions.pod:6717 ../src/guestfs-actions.pod:6731
4416 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6799
4417 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6877
4418 #: ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6957
4419 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7042
4420 #: ../src/guestfs-actions.pod:7071
4421 msgid "This function returns 0 on success or -1 on error."
4422 msgstr ""
4423
4424 # type: textblock
4425 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:242
4426 #: ../src/guestfs-actions.pod:263 ../fish/guestfish-actions.pod:28
4427 #: ../fish/guestfish-actions.pod:153 ../fish/guestfish-actions.pod:167
4428 msgid ""
4429 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
4430 "instead."
4431 msgstr ""
4432
4433 # type: textblock
4434 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:245
4435 #: ../src/guestfs-actions.pod:266 ../src/guestfs-actions.pod:1437
4436 #: ../src/guestfs-actions.pod:1923 ../src/guestfs-actions.pod:1944
4437 #: ../src/guestfs-actions.pod:4185 ../src/guestfs-actions.pod:6965
4438 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:31
4439 #: ../fish/guestfish-actions.pod:156 ../fish/guestfish-actions.pod:170
4440 #: ../fish/guestfish-actions.pod:951 ../fish/guestfish-actions.pod:1308
4441 #: ../fish/guestfish-actions.pod:1322 ../fish/guestfish-actions.pod:2818
4442 #: ../fish/guestfish-actions.pod:4620 ../fish/guestfish-actions.pod:4717
4443 msgid ""
4444 "Deprecated functions will not be removed from the API, but the fact that "
4445 "they are deprecated indicates that there are problems with correct use of "
4446 "these functions."
4447 msgstr ""
4448
4449 # type: textblock
4450 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:130
4451 #: ../src/guestfs-actions.pod:1094 ../src/guestfs-actions.pod:1895
4452 #: ../src/guestfs-actions.pod:1993 ../src/guestfs-actions.pod:2096
4453 #: ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3239
4454 #: ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:5542
4455 #: ../src/guestfs-actions.pod:5659 ../src/guestfs-actions.pod:5769
4456 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6357
4457 #: ../src/guestfs-actions.pod:6879
4458 msgid "(Added in 0.3)"
4459 msgstr ""
4460
4461 # type: =head2
4462 #: ../src/guestfs-actions.pod:41
4463 msgid "guestfs_add_domain"
4464 msgstr ""
4465
4466 # type: verbatim
4467 #: ../src/guestfs-actions.pod:43
4468 #, no-wrap
4469 msgid ""
4470 " int\n"
4471 " guestfs_add_domain (guestfs_h *g,\n"
4472 "                     const char *dom,\n"
4473 "                     ...);\n"
4474 "\n"
4475 msgstr ""
4476
4477 # type: textblock
4478 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:139
4479 #: ../src/guestfs-actions.pod:4199
4480 msgid ""
4481 "You may supply a list of optional arguments to this call.  Use zero or more "
4482 "of the following pairs of parameters, and terminate the list with C<-1> on "
4483 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
4484 msgstr ""
4485
4486 # type: verbatim
4487 #: ../src/guestfs-actions.pod:53
4488 #, no-wrap
4489 msgid ""
4490 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
4491 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
4492 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
4493 "\n"
4494 msgstr ""
4495
4496 # type: textblock
4497 #: ../src/guestfs-actions.pod:57
4498 msgid ""
4499 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4500 "It works by connecting to libvirt, requesting the domain and domain XML from "
4501 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
4502 "one."
4503 msgstr ""
4504
4505 # type: textblock
4506 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
4507 msgid ""
4508 "The number of disks added is returned.  This operation is atomic: if an "
4509 "error is returned, then no disks are added."
4510 msgstr ""
4511
4512 # type: textblock
4513 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
4514 msgid ""
4515 "This function does some minimal checks to make sure the libvirt domain is "
4516 "not running (unless C<readonly> is true).  In a future version we will try "
4517 "to acquire the libvirt lock on each disk."
4518 msgstr ""
4519
4520 # type: textblock
4521 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
4522 msgid ""
4523 "Disks must be accessible locally.  This often means that adding disks from a "
4524 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4525 "unless those disks are accessible via the same device path locally too."
4526 msgstr ""
4527
4528 # type: textblock
4529 #: ../src/guestfs-actions.pod:74
4530 msgid ""
4531 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4532 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4533 "libvirt URI (or one set through an environment variable, see the libvirt "
4534 "documentation for full details).  If you are using the C API directly then "
4535 "it is more flexible to create the libvirt connection object yourself, get "
4536 "the domain object, and call C<guestfs_add_libvirt_dom>."
4537 msgstr ""
4538
4539 # type: textblock
4540 #: ../src/guestfs-actions.pod:82
4541 msgid ""
4542 "The other optional parameters are passed directly through to "
4543 "C<guestfs_add_drive_opts>."
4544 msgstr ""
4545
4546 # type: textblock
4547 #: ../src/guestfs-actions.pod:85 ../src/guestfs-actions.pod:338
4548 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:681
4549 #: ../src/guestfs-actions.pod:712 ../src/guestfs-actions.pod:730
4550 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:1309
4551 #: ../src/guestfs-actions.pod:1663 ../src/guestfs-actions.pod:1866
4552 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2005
4553 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:2083
4554 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2662
4555 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:4609
4556 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:5143
4557 #: ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:6465
4558 #: ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6903
4559 #: ../src/guestfs-actions.pod:6916
4560 msgid "On error this function returns -1."
4561 msgstr ""
4562
4563 # type: textblock
4564 #: ../src/guestfs-actions.pod:87
4565 msgid "(Added in 1.7.4)"
4566 msgstr ""
4567
4568 # type: =head2
4569 #: ../src/guestfs-actions.pod:89
4570 msgid "guestfs_add_domain_va"
4571 msgstr ""
4572
4573 # type: verbatim
4574 #: ../src/guestfs-actions.pod:91
4575 #, no-wrap
4576 msgid ""
4577 " int\n"
4578 " guestfs_add_domain_va (guestfs_h *g,\n"
4579 "                        const char *dom,\n"
4580 "                        va_list args);\n"
4581 "\n"
4582 msgstr ""
4583
4584 # type: textblock
4585 #: ../src/guestfs-actions.pod:96
4586 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
4587 msgstr ""
4588
4589 # type: textblock
4590 #: ../src/guestfs-actions.pod:98 ../src/guestfs-actions.pod:109
4591 #: ../src/guestfs-actions.pod:202 ../src/guestfs-actions.pod:213
4592 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4248
4593 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
4594 msgstr ""
4595
4596 # type: =head2
4597 #: ../src/guestfs-actions.pod:100
4598 msgid "guestfs_add_domain_argv"
4599 msgstr ""
4600
4601 # type: verbatim
4602 #: ../src/guestfs-actions.pod:102
4603 #, no-wrap
4604 msgid ""
4605 " int\n"
4606 " guestfs_add_domain_argv (guestfs_h *g,\n"
4607 "                          const char *dom,\n"
4608 "                          const struct guestfs_add_domain_argv *optargs);\n"
4609 "\n"
4610 msgstr ""
4611
4612 # type: textblock
4613 #: ../src/guestfs-actions.pod:107
4614 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
4615 msgstr ""
4616
4617 # type: =head2
4618 #: ../src/guestfs-actions.pod:111
4619 msgid "guestfs_add_drive"
4620 msgstr ""
4621
4622 # type: verbatim
4623 #: ../src/guestfs-actions.pod:113
4624 #, no-wrap
4625 msgid ""
4626 " int\n"
4627 " guestfs_add_drive (guestfs_h *g,\n"
4628 "                    const char *filename);\n"
4629 "\n"
4630 msgstr ""
4631
4632 # type: textblock
4633 #: ../src/guestfs-actions.pod:117
4634 msgid ""
4635 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
4636 "optional parameters, so the disk is added writable, with the format being "
4637 "detected automatically."
4638 msgstr ""
4639
4640 # type: textblock
4641 #: ../src/guestfs-actions.pod:121
4642 msgid ""
4643 "Automatic detection of the format opens you up to a potential security hole "
4644 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4645 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4646 "you should think about replacing calls to this function with calls to "
4647 "C<guestfs_add_drive_opts>, and specifying the format."
4648 msgstr ""
4649
4650 # type: =head2
4651 #: ../src/guestfs-actions.pod:132
4652 msgid "guestfs_add_drive_opts"
4653 msgstr ""
4654
4655 # type: verbatim
4656 #: ../src/guestfs-actions.pod:134
4657 #, no-wrap
4658 msgid ""
4659 " int\n"
4660 " guestfs_add_drive_opts (guestfs_h *g,\n"
4661 "                         const char *filename,\n"
4662 "                         ...);\n"
4663 "\n"
4664 msgstr ""
4665
4666 # type: verbatim
4667 #: ../src/guestfs-actions.pod:144
4668 #, no-wrap
4669 msgid ""
4670 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
4671 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
4672 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
4673 "\n"
4674 msgstr ""
4675
4676 # type: textblock
4677 #: ../src/guestfs-actions.pod:148 ../fish/guestfish-actions.pod:92
4678 msgid ""
4679 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4680 "The first time you call this function, the disk appears as C</dev/sda>, the "
4681 "second time as C</dev/sdb>, and so on."
4682 msgstr ""
4683
4684 # type: textblock
4685 #: ../src/guestfs-actions.pod:153 ../fish/guestfish-actions.pod:97
4686 msgid ""
4687 "You don't necessarily need to be root when using libguestfs.  However you "
4688 "obviously do need sufficient permissions to access the filename for whatever "
4689 "operations you want to perform (ie. read access if you just want to read the "
4690 "image or write access if you want to modify the image)."
4691 msgstr ""
4692
4693 # type: textblock
4694 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:103
4695 msgid "This call checks that C<filename> exists."
4696 msgstr ""
4697
4698 # type: textblock
4699 #: ../src/guestfs-actions.pod:161 ../src/guestfs-actions.pod:4209
4700 #: ../fish/guestfish-actions.pod:105 ../fish/guestfish-actions.pod:2829
4701 msgid "The optional arguments are:"
4702 msgstr ""
4703
4704 # type: =item
4705 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
4706 msgid "C<readonly>"
4707 msgstr ""
4708
4709 # type: textblock
4710 #: ../src/guestfs-actions.pod:167 ../fish/guestfish-actions.pod:111
4711 msgid ""
4712 "If true then the image is treated as read-only.  Writes are still allowed, "
4713 "but they are stored in a temporary snapshot overlay which is discarded at "
4714 "the end.  The disk that you add is not modified."
4715 msgstr ""
4716
4717 # type: =item
4718 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:115
4719 msgid "C<format>"
4720 msgstr ""
4721
4722 # type: textblock
4723 #: ../src/guestfs-actions.pod:173
4724 msgid ""
4725 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
4726 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
4727 "Possible formats include C<raw> and C<qcow2>."
4728 msgstr ""
4729
4730 # type: textblock
4731 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:121
4732 msgid ""
4733 "Automatic detection of the format opens you up to a potential security hole "
4734 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4735 "RHBZ#642934.  Specifying the format closes this security hole."
4736 msgstr ""
4737
4738 # type: =item
4739 #: ../src/guestfs-actions.pod:182 ../fish/guestfish-actions.pod:126
4740 msgid "C<iface>"
4741 msgstr ""
4742
4743 # type: textblock
4744 #: ../src/guestfs-actions.pod:184
4745 msgid ""
4746 "This rarely-used option lets you emulate the behaviour of the deprecated "
4747 "C<guestfs_add_drive_with_if> call (q.v.)"
4748 msgstr ""
4749
4750 # type: textblock
4751 #: ../src/guestfs-actions.pod:191
4752 msgid "(Added in 1.5.23)"
4753 msgstr ""
4754
4755 # type: =head2
4756 #: ../src/guestfs-actions.pod:193
4757 msgid "guestfs_add_drive_opts_va"
4758 msgstr ""
4759
4760 # type: verbatim
4761 #: ../src/guestfs-actions.pod:195
4762 #, no-wrap
4763 msgid ""
4764 " int\n"
4765 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
4766 "                            const char *filename,\n"
4767 "                            va_list args);\n"
4768 "\n"
4769 msgstr ""
4770
4771 # type: textblock
4772 #: ../src/guestfs-actions.pod:200
4773 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
4774 msgstr ""
4775
4776 # type: =head2
4777 #: ../src/guestfs-actions.pod:204
4778 msgid "guestfs_add_drive_opts_argv"
4779 msgstr ""
4780
4781 # type: verbatim
4782 #: ../src/guestfs-actions.pod:206
4783 #, no-wrap
4784 msgid ""
4785 " int\n"
4786 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
4787 "                              const char *filename,\n"
4788 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
4789 "\n"
4790 msgstr ""
4791
4792 # type: textblock
4793 #: ../src/guestfs-actions.pod:211
4794 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
4795 msgstr ""
4796
4797 # type: =head2
4798 #: ../src/guestfs-actions.pod:215
4799 msgid "guestfs_add_drive_ro"
4800 msgstr ""
4801
4802 # type: verbatim
4803 #: ../src/guestfs-actions.pod:217
4804 #, no-wrap
4805 msgid ""
4806 " int\n"
4807 " guestfs_add_drive_ro (guestfs_h *g,\n"
4808 "                       const char *filename);\n"
4809 "\n"
4810 msgstr ""
4811
4812 # type: textblock
4813 #: ../src/guestfs-actions.pod:221
4814 msgid ""
4815 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
4816 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
4817 "disk is added read-only, with the format being detected automatically."
4818 msgstr ""
4819
4820 # type: textblock
4821 #: ../src/guestfs-actions.pod:228
4822 msgid "(Added in 1.0.38)"
4823 msgstr ""
4824
4825 # type: =head2
4826 #: ../src/guestfs-actions.pod:230
4827 msgid "guestfs_add_drive_ro_with_if"
4828 msgstr ""
4829
4830 # type: verbatim
4831 #: ../src/guestfs-actions.pod:232
4832 #, no-wrap
4833 msgid ""
4834 " int\n"
4835 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
4836 "                               const char *filename,\n"
4837 "                               const char *iface);\n"
4838 "\n"
4839 msgstr ""
4840
4841 # type: textblock
4842 #: ../src/guestfs-actions.pod:237
4843 msgid ""
4844 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
4845 "QEMU interface emulation to use at run time."
4846 msgstr ""
4847
4848 # type: textblock
4849 #: ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
4850 #: ../src/guestfs-actions.pod:2333
4851 msgid "(Added in 1.0.84)"
4852 msgstr ""
4853
4854 # type: =head2
4855 #: ../src/guestfs-actions.pod:251
4856 msgid "guestfs_add_drive_with_if"
4857 msgstr ""
4858
4859 # type: verbatim
4860 #: ../src/guestfs-actions.pod:253
4861 #, no-wrap
4862 msgid ""
4863 " int\n"
4864 " guestfs_add_drive_with_if (guestfs_h *g,\n"
4865 "                            const char *filename,\n"
4866 "                            const char *iface);\n"
4867 "\n"
4868 msgstr ""
4869
4870 # type: textblock
4871 #: ../src/guestfs-actions.pod:258
4872 msgid ""
4873 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
4874 "QEMU interface emulation to use at run time."
4875 msgstr ""
4876
4877 # type: =head2
4878 #: ../src/guestfs-actions.pod:272
4879 msgid "guestfs_aug_clear"
4880 msgstr ""
4881
4882 # type: verbatim
4883 #: ../src/guestfs-actions.pod:274
4884 #, no-wrap
4885 msgid ""
4886 " int\n"
4887 " guestfs_aug_clear (guestfs_h *g,\n"
4888 "                    const char *augpath);\n"
4889 "\n"
4890 msgstr ""
4891
4892 # type: textblock
4893 #: ../src/guestfs-actions.pod:278 ../fish/guestfish-actions.pod:178
4894 msgid ""
4895 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4896 "L<augtool(1)> C<clear> command."
4897 msgstr ""
4898
4899 # type: textblock
4900 #: ../src/guestfs-actions.pod:283 ../src/guestfs-actions.pod:2085
4901 msgid "(Added in 1.3.4)"
4902 msgstr ""
4903
4904 # type: =head2
4905 #: ../src/guestfs-actions.pod:285
4906 msgid "guestfs_aug_close"
4907 msgstr ""
4908
4909 # type: verbatim
4910 #: ../src/guestfs-actions.pod:287
4911 #, no-wrap
4912 msgid ""
4913 " int\n"
4914 " guestfs_aug_close (guestfs_h *g);\n"
4915 "\n"
4916 msgstr ""
4917
4918 # type: textblock
4919 #: ../src/guestfs-actions.pod:290
4920 msgid ""
4921 "Close the current Augeas handle and free up any resources used by it.  After "
4922 "calling this, you have to call C<guestfs_aug_init> again before you can use "
4923 "any other Augeas functions."
4924 msgstr ""
4925
4926 # type: textblock
4927 #: ../src/guestfs-actions.pod:297 ../src/guestfs-actions.pod:322
4928 #: ../src/guestfs-actions.pod:340 ../src/guestfs-actions.pod:354
4929 #: ../src/guestfs-actions.pod:412 ../src/guestfs-actions.pod:432
4930 #: ../src/guestfs-actions.pod:446 ../src/guestfs-actions.pod:477
4931 #: ../src/guestfs-actions.pod:491 ../src/guestfs-actions.pod:505
4932 #: ../src/guestfs-actions.pod:519 ../src/guestfs-actions.pod:537
4933 #: ../src/guestfs-actions.pod:5220
4934 msgid "(Added in 0.7)"
4935 msgstr ""
4936
4937 # type: =head2
4938 #: ../src/guestfs-actions.pod:299
4939 msgid "guestfs_aug_defnode"
4940 msgstr ""
4941
4942 # type: verbatim
4943 #: ../src/guestfs-actions.pod:301
4944 #, no-wrap
4945 msgid ""
4946 " struct guestfs_int_bool *\n"
4947 " guestfs_aug_defnode (guestfs_h *g,\n"
4948 "                      const char *name,\n"
4949 "                      const char *expr,\n"
4950 "                      const char *val);\n"
4951 "\n"
4952 msgstr ""
4953
4954 # type: textblock
4955 #: ../src/guestfs-actions.pod:307 ../fish/guestfish-actions.pod:194
4956 msgid ""
4957 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4958 msgstr ""
4959
4960 # type: textblock
4961 #: ../src/guestfs-actions.pod:310
4962 msgid ""
4963 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4964 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
4965 "containing that single node."
4966 msgstr ""
4967
4968 # type: textblock
4969 #: ../src/guestfs-actions.pod:314 ../fish/guestfish-actions.pod:201
4970 msgid ""
4971 "On success this returns a pair containing the number of nodes in the "
4972 "nodeset, and a boolean flag if a node was created."
4973 msgstr ""
4974
4975 # type: textblock
4976 #: ../src/guestfs-actions.pod:318
4977 msgid ""
4978 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
4979 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
4980 msgstr ""
4981
4982 # type: =head2
4983 #: ../src/guestfs-actions.pod:324
4984 msgid "guestfs_aug_defvar"
4985 msgstr ""
4986
4987 # type: verbatim
4988 #: ../src/guestfs-actions.pod:326
4989 #, no-wrap
4990 msgid ""
4991 " int\n"
4992 " guestfs_aug_defvar (guestfs_h *g,\n"
4993 "                     const char *name,\n"
4994 "                     const char *expr);\n"
4995 "\n"
4996 msgstr ""
4997
4998 # type: textblock
4999 #: ../src/guestfs-actions.pod:331 ../fish/guestfish-actions.pod:209
5000 msgid ""
5001 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5002 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5003 msgstr ""
5004
5005 # type: textblock
5006 #: ../src/guestfs-actions.pod:335 ../fish/guestfish-actions.pod:213
5007 msgid ""
5008 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5009 "evaluates to something which is not a nodeset."
5010 msgstr ""
5011
5012 # type: =head2
5013 #: ../src/guestfs-actions.pod:342
5014 msgid "guestfs_aug_get"
5015 msgstr ""
5016
5017 # type: verbatim
5018 #: ../src/guestfs-actions.pod:344
5019 #, no-wrap
5020 msgid ""
5021 " char *\n"
5022 " guestfs_aug_get (guestfs_h *g,\n"
5023 "                  const char *augpath);\n"
5024 "\n"
5025 msgstr ""
5026
5027 # type: textblock
5028 #: ../src/guestfs-actions.pod:348 ../fish/guestfish-actions.pod:220
5029 msgid ""
5030 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5031 "node, the C<value> is returned."
5032 msgstr ""
5033
5034 # type: textblock
5035 #: ../src/guestfs-actions.pod:351 ../src/guestfs-actions.pod:851
5036 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:929
5037 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1048
5038 #: ../src/guestfs-actions.pod:1178 ../src/guestfs-actions.pod:1195
5039 #: ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1343
5040 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:1646
5041 #: ../src/guestfs-actions.pod:1809 ../src/guestfs-actions.pod:1826
5042 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:1938
5043 #: ../src/guestfs-actions.pod:2108 ../src/guestfs-actions.pod:2298
5044 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
5045 #: ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2744
5046 #: ../src/guestfs-actions.pod:2775 ../src/guestfs-actions.pod:2799
5047 #: ../src/guestfs-actions.pod:2861 ../src/guestfs-actions.pod:2884
5048 #: ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3746
5049 #: ../src/guestfs-actions.pod:3916 ../src/guestfs-actions.pod:4026
5050 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4948
5051 #: ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5296
5052 #: ../src/guestfs-actions.pod:5345 ../src/guestfs-actions.pod:5908
5053 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5941
5054 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6639
5055 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
5056 #: ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:7128
5057 msgid ""
5058 "This function returns a string, or NULL on error.  I<The caller must free "
5059 "the returned string after use>."
5060 msgstr ""
5061
5062 # type: =head2
5063 #: ../src/guestfs-actions.pod:356
5064 msgid "guestfs_aug_init"
5065 msgstr ""
5066
5067 # type: verbatim
5068 #: ../src/guestfs-actions.pod:358
5069 #, no-wrap
5070 msgid ""
5071 " int\n"
5072 " guestfs_aug_init (guestfs_h *g,\n"
5073 "                   const char *root,\n"
5074 "                   int flags);\n"
5075 "\n"
5076 msgstr ""
5077
5078 # type: textblock
5079 #: ../src/guestfs-actions.pod:363 ../fish/guestfish-actions.pod:227
5080 msgid ""
5081 "Create a new Augeas handle for editing configuration files.  If there was "
5082 "any previous Augeas handle associated with this guestfs session, then it is "
5083 "closed."
5084 msgstr ""
5085
5086 # type: textblock
5087 #: ../src/guestfs-actions.pod:367
5088 msgid "You must call this before using any other C<guestfs_aug_*> commands."
5089 msgstr ""
5090
5091 # type: textblock
5092 #: ../src/guestfs-actions.pod:370 ../fish/guestfish-actions.pod:234
5093 msgid ""
5094 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5095 msgstr ""
5096
5097 # type: textblock
5098 #: ../src/guestfs-actions.pod:373 ../fish/guestfish-actions.pod:237
5099 msgid ""
5100 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5101 "logical I<or> of the following integers:"
5102 msgstr ""
5103
5104 # type: =item
5105 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
5106 msgid "C<AUG_SAVE_BACKUP> = 1"
5107 msgstr ""
5108
5109 # type: textblock
5110 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
5111 msgid "Keep the original file with a C<.augsave> extension."
5112 msgstr ""
5113
5114 # type: =item
5115 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
5116 msgid "C<AUG_SAVE_NEWFILE> = 2"
5117 msgstr ""
5118
5119 # type: textblock
5120 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:249
5121 msgid ""
5122 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5123 "original.  Overrides C<AUG_SAVE_BACKUP>."
5124 msgstr ""
5125
5126 # type: =item
5127 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
5128 msgid "C<AUG_TYPE_CHECK> = 4"
5129 msgstr ""
5130
5131 # type: textblock
5132 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
5133 msgid "Typecheck lenses (can be expensive)."
5134 msgstr ""
5135
5136 # type: =item
5137 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
5138 msgid "C<AUG_NO_STDINC> = 8"
5139 msgstr ""
5140
5141 # type: textblock
5142 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
5143 msgid "Do not use standard load path for modules."
5144 msgstr ""
5145
5146 # type: =item
5147 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
5148 msgid "C<AUG_SAVE_NOOP> = 16"
5149 msgstr ""
5150
5151 # type: textblock
5152 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
5153 msgid "Make save a no-op, just record what would have been changed."
5154 msgstr ""
5155
5156 # type: =item
5157 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:264
5158 msgid "C<AUG_NO_LOAD> = 32"
5159 msgstr ""
5160
5161 # type: textblock
5162 #: ../src/guestfs-actions.pod:402
5163 msgid "Do not load the tree in C<guestfs_aug_init>."
5164 msgstr ""
5165
5166 # type: textblock
5167 #: ../src/guestfs-actions.pod:406
5168 msgid "To close the handle, you can call C<guestfs_aug_close>."
5169 msgstr ""
5170
5171 # type: textblock
5172 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:272
5173 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5174 msgstr ""
5175
5176 # type: =head2
5177 #: ../src/guestfs-actions.pod:414
5178 msgid "guestfs_aug_insert"
5179 msgstr ""
5180
5181 # type: verbatim
5182 #: ../src/guestfs-actions.pod:416
5183 #, no-wrap
5184 msgid ""
5185 " int\n"
5186 " guestfs_aug_insert (guestfs_h *g,\n"
5187 "                     const char *augpath,\n"
5188 "                     const char *label,\n"
5189 "                     int before);\n"
5190 "\n"
5191 msgstr ""
5192
5193 # type: textblock
5194 #: ../src/guestfs-actions.pod:422 ../fish/guestfish-actions.pod:278
5195 msgid ""
5196 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5197 "or after C<path> (depending on the boolean flag C<before>)."
5198 msgstr ""
5199
5200 # type: textblock
5201 #: ../src/guestfs-actions.pod:426 ../fish/guestfish-actions.pod:282
5202 msgid ""
5203 "C<path> must match exactly one existing node in the tree, and C<label> must "
5204 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5205 msgstr ""
5206
5207 # type: =head2
5208 #: ../src/guestfs-actions.pod:434
5209 msgid "guestfs_aug_load"
5210 msgstr ""
5211
5212 # type: verbatim
5213 #: ../src/guestfs-actions.pod:436
5214 #, no-wrap
5215 msgid ""
5216 " int\n"
5217 " guestfs_aug_load (guestfs_h *g);\n"
5218 "\n"
5219 msgstr ""
5220
5221 # type: textblock
5222 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
5223 msgid "Load files into the tree."
5224 msgstr ""
5225
5226 # type: textblock
5227 #: ../src/guestfs-actions.pod:441 ../fish/guestfish-actions.pod:292
5228 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5229 msgstr ""
5230
5231 # type: =head2
5232 #: ../src/guestfs-actions.pod:448
5233 msgid "guestfs_aug_ls"
5234 msgstr ""
5235
5236 # type: verbatim
5237 #: ../src/guestfs-actions.pod:450
5238 #, no-wrap
5239 msgid ""
5240 " char **\n"
5241 " guestfs_aug_ls (guestfs_h *g,\n"
5242 "                 const char *augpath);\n"
5243 "\n"
5244 msgstr ""
5245
5246 # type: textblock
5247 #: ../src/guestfs-actions.pod:454
5248 msgid ""
5249 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
5250 "sorting the resulting nodes into alphabetical order."
5251 msgstr ""
5252
5253 # type: textblock
5254 #: ../src/guestfs-actions.pod:457 ../src/guestfs-actions.pod:473
5255 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:1067
5256 #: ../src/guestfs-actions.pod:1358 ../src/guestfs-actions.pod:1377
5257 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1499
5258 #: ../src/guestfs-actions.pod:1748 ../src/guestfs-actions.pod:2178
5259 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
5260 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
5261 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
5262 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2818
5263 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3316
5264 #: ../src/guestfs-actions.pod:3378 ../src/guestfs-actions.pod:3483
5265 #: ../src/guestfs-actions.pod:3888 ../src/guestfs-actions.pod:4570
5266 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5216
5267 #: ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5981
5268 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6097
5269 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6267
5270 #: ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:6769
5271 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6981
5272 #: ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7085
5273 #: ../src/guestfs-actions.pod:7104 ../src/guestfs-actions.pod:7150
5274 #: ../src/guestfs-actions.pod:7169
5275 msgid ""
5276 "This function returns a NULL-terminated array of strings (like L<environ(3)"
5277 ">), or NULL if there was an error.  I<The caller must free the strings and "
5278 "the array after use>."
5279 msgstr ""
5280
5281 # type: textblock
5282 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:992
5283 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:1415
5284 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3142
5285 #: ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3779
5286 #: ../src/guestfs-actions.pod:3966 ../src/guestfs-actions.pod:3999
5287 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4574
5288 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5409
5289 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5435
5290 #: ../src/guestfs-actions.pod:5843 ../src/guestfs-actions.pod:6481
5291 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6733
5292 #: ../src/guestfs-actions.pod:6936 ../src/guestfs-actions.pod:6969
5293 msgid "(Added in 0.8)"
5294 msgstr ""
5295
5296 # type: =head2
5297 #: ../src/guestfs-actions.pod:463
5298 msgid "guestfs_aug_match"
5299 msgstr ""
5300
5301 # type: verbatim
5302 #: ../src/guestfs-actions.pod:465
5303 #, no-wrap
5304 msgid ""
5305 " char **\n"
5306 " guestfs_aug_match (guestfs_h *g,\n"
5307 "                    const char *augpath);\n"
5308 "\n"
5309 msgstr ""
5310
5311 # type: textblock
5312 #: ../src/guestfs-actions.pod:469 ../fish/guestfish-actions.pod:306
5313 msgid ""
5314 "Returns a list of paths which match the path expression C<path>.  The "
5315 "returned paths are sufficiently qualified so that they match exactly one "
5316 "node in the current tree."
5317 msgstr ""
5318
5319 # type: =head2
5320 #: ../src/guestfs-actions.pod:479
5321 msgid "guestfs_aug_mv"
5322 msgstr ""
5323
5324 # type: verbatim
5325 #: ../src/guestfs-actions.pod:481
5326 #, no-wrap
5327 msgid ""
5328 " int\n"
5329 " guestfs_aug_mv (guestfs_h *g,\n"
5330 "                 const char *src,\n"
5331 "                 const char *dest);\n"
5332 "\n"
5333 msgstr ""
5334
5335 # type: textblock
5336 #: ../src/guestfs-actions.pod:486 ../fish/guestfish-actions.pod:314
5337 msgid ""
5338 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5339 "C<dest> is overwritten if it exists."
5340 msgstr ""
5341
5342 # type: =head2
5343 #: ../src/guestfs-actions.pod:493
5344 msgid "guestfs_aug_rm"
5345 msgstr ""
5346
5347 # type: verbatim
5348 #: ../src/guestfs-actions.pod:495
5349 #, no-wrap
5350 msgid ""
5351 " int\n"
5352 " guestfs_aug_rm (guestfs_h *g,\n"
5353 "                 const char *augpath);\n"
5354 "\n"
5355 msgstr ""
5356
5357 # type: textblock
5358 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
5359 msgid "Remove C<path> and all of its children."
5360 msgstr ""
5361
5362 # type: textblock
5363 #: ../src/guestfs-actions.pod:501 ../fish/guestfish-actions.pod:323
5364 msgid "On success this returns the number of entries which were removed."
5365 msgstr ""
5366
5367 # type: =head2
5368 #: ../src/guestfs-actions.pod:507
5369 msgid "guestfs_aug_save"
5370 msgstr ""
5371
5372 # type: verbatim
5373 #: ../src/guestfs-actions.pod:509
5374 #, no-wrap
5375 msgid ""
5376 " int\n"
5377 " guestfs_aug_save (guestfs_h *g);\n"
5378 "\n"
5379 msgstr ""
5380
5381 # type: textblock
5382 #: ../src/guestfs-actions.pod:512 ../fish/guestfish-actions.pod:329
5383 msgid "This writes all pending changes to disk."
5384 msgstr ""
5385
5386 # type: textblock
5387 #: ../src/guestfs-actions.pod:514
5388 msgid ""
5389 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
5390 "are saved."
5391 msgstr ""
5392
5393 # type: =head2
5394 #: ../src/guestfs-actions.pod:521
5395 msgid "guestfs_aug_set"
5396 msgstr ""
5397
5398 # type: verbatim
5399 #: ../src/guestfs-actions.pod:523
5400 #, no-wrap
5401 msgid ""
5402 " int\n"
5403 " guestfs_aug_set (guestfs_h *g,\n"
5404 "                  const char *augpath,\n"
5405 "                  const char *val);\n"
5406 "\n"
5407 msgstr ""
5408
5409 # type: textblock
5410 #: ../src/guestfs-actions.pod:528 ../fish/guestfish-actions.pod:338
5411 msgid "Set the value associated with C<path> to C<val>."
5412 msgstr ""
5413
5414 # type: textblock
5415 #: ../src/guestfs-actions.pod:530
5416 msgid ""
5417 "In the Augeas API, it is possible to clear a node by setting the value to "
5418 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5419 "this call.  Instead you must use the C<guestfs_aug_clear> call."
5420 msgstr ""
5421
5422 # type: =head2
5423 #: ../src/guestfs-actions.pod:539
5424 msgid "guestfs_available"
5425 msgstr ""
5426
5427 # type: verbatim
5428 #: ../src/guestfs-actions.pod:541
5429 #, no-wrap
5430 msgid ""
5431 " int\n"
5432 " guestfs_available (guestfs_h *g,\n"
5433 "                    char *const *groups);\n"
5434 "\n"
5435 msgstr ""
5436
5437 # type: textblock
5438 #: ../src/guestfs-actions.pod:545 ../fish/guestfish-actions.pod:349
5439 msgid ""
5440 "This command is used to check the availability of some groups of "
5441 "functionality in the appliance, which not all builds of the libguestfs "
5442 "appliance will be able to provide."
5443 msgstr ""
5444
5445 # type: textblock
5446 #: ../src/guestfs-actions.pod:549
5447 msgid ""
5448 "The libguestfs groups, and the functions that those groups correspond to, "
5449 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5450 "runtime by calling C<guestfs_available_all_groups>."
5451 msgstr ""
5452
5453 # type: textblock
5454 #: ../src/guestfs-actions.pod:554 ../fish/guestfish-actions.pod:358
5455 msgid ""
5456 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5457 "\"]> would check for the availability of the Linux inotify functions and "
5458 "Augeas (configuration file editing) functions."
5459 msgstr ""
5460
5461 # type: textblock
5462 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
5463 msgid "The command returns no error if I<all> requested groups are available."
5464 msgstr ""
5465
5466 # type: textblock
5467 #: ../src/guestfs-actions.pod:561 ../fish/guestfish-actions.pod:365
5468 msgid ""
5469 "It fails with an error if one or more of the requested groups is unavailable "
5470 "in the appliance."
5471 msgstr ""
5472
5473 # type: textblock
5474 #: ../src/guestfs-actions.pod:564 ../fish/guestfish-actions.pod:368
5475 msgid ""
5476 "If an unknown group name is included in the list of groups then an error is "
5477 "always returned."
5478 msgstr ""
5479
5480 # type: textblock
5481 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:371
5482 msgid "I<Notes:>"
5483 msgstr ""
5484
5485 # type: textblock
5486 #: ../src/guestfs-actions.pod:573
5487 msgid "You must call C<guestfs_launch> before calling this function."
5488 msgstr ""
5489
5490 # type: textblock
5491 #: ../src/guestfs-actions.pod:575 ../fish/guestfish-actions.pod:379
5492 msgid ""
5493 "The reason is because we don't know what groups are supported by the "
5494 "appliance/daemon until it is running and can be queried."
5495 msgstr ""
5496
5497 # type: textblock
5498 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:385
5499 msgid ""
5500 "If a group of functions is available, this does not necessarily mean that "
5501 "they will work.  You still have to check for errors when calling individual "
5502 "API functions even if they are available."
5503 msgstr ""
5504
5505 # type: textblock
5506 #: ../src/guestfs-actions.pod:588 ../fish/guestfish-actions.pod:392
5507 msgid ""
5508 "It is usually the job of distro packagers to build complete functionality "
5509 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5510 "with all requirements satisfied, will support everything."
5511 msgstr ""
5512
5513 # type: textblock
5514 #: ../src/guestfs-actions.pod:595
5515 msgid ""
5516 "This call was added in version C<1.0.80>.  In previous versions of "
5517 "libguestfs all you could do would be to speculatively execute a command to "
5518 "find out if the daemon implemented it.  See also C<guestfs_version>."
5519 msgstr ""
5520
5521 # type: textblock
5522 #: ../src/guestfs-actions.pod:604 ../src/guestfs-actions.pod:1165
5523 msgid "(Added in 1.0.80)"
5524 msgstr ""
5525
5526 # type: =head2
5527 #: ../src/guestfs-actions.pod:606
5528 msgid "guestfs_available_all_groups"
5529 msgstr ""
5530
5531 # type: verbatim
5532 #: ../src/guestfs-actions.pod:608
5533 #, no-wrap
5534 msgid ""
5535 " char **\n"
5536 " guestfs_available_all_groups (guestfs_h *g);\n"
5537 "\n"
5538 msgstr ""
5539
5540 # type: textblock
5541 #: ../src/guestfs-actions.pod:611
5542 msgid ""
5543 "This command returns a list of all optional groups that this daemon knows "
5544 "about.  Note this returns both supported and unsupported groups.  To find "
5545 "out which ones the daemon can actually support you have to call "
5546 "C<guestfs_available> on each member of the returned list."
5547 msgstr ""
5548
5549 # type: textblock
5550 #: ../src/guestfs-actions.pod:617
5551 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
5552 msgstr ""
5553
5554 # type: textblock
5555 #: ../src/guestfs-actions.pod:623
5556 msgid "(Added in 1.3.15)"
5557 msgstr ""
5558
5559 # type: =head2
5560 #: ../src/guestfs-actions.pod:625
5561 msgid "guestfs_base64_in"
5562 msgstr ""
5563
5564 # type: verbatim
5565 #: ../src/guestfs-actions.pod:627
5566 #, no-wrap
5567 msgid ""
5568 " int\n"
5569 " guestfs_base64_in (guestfs_h *g,\n"
5570 "                    const char *base64file,\n"
5571 "                    const char *filename);\n"
5572 "\n"
5573 msgstr ""
5574
5575 # type: textblock
5576 #: ../src/guestfs-actions.pod:632 ../fish/guestfish-actions.pod:422
5577 msgid ""
5578 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5579 msgstr ""
5580
5581 # type: textblock
5582 #: ../src/guestfs-actions.pod:637 ../src/guestfs-actions.pod:651
5583 msgid "(Added in 1.3.5)"
5584 msgstr ""
5585
5586 # type: =head2
5587 #: ../src/guestfs-actions.pod:639
5588 msgid "guestfs_base64_out"
5589 msgstr ""
5590
5591 # type: verbatim
5592 #: ../src/guestfs-actions.pod:641
5593 #, no-wrap
5594 msgid ""
5595 " int\n"
5596 " guestfs_base64_out (guestfs_h *g,\n"
5597 "                     const char *filename,\n"
5598 "                     const char *base64file);\n"
5599 "\n"
5600 msgstr ""
5601
5602 # type: textblock
5603 #: ../src/guestfs-actions.pod:646 ../fish/guestfish-actions.pod:431
5604 msgid ""
5605 "This command downloads the contents of C<filename>, writing it out to local "
5606 "file C<base64file> encoded as base64."
5607 msgstr ""
5608
5609 # type: =head2
5610 #: ../src/guestfs-actions.pod:653
5611 msgid "guestfs_blockdev_flushbufs"
5612 msgstr ""
5613
5614 # type: verbatim
5615 #: ../src/guestfs-actions.pod:655
5616 #, no-wrap
5617 msgid ""
5618 " int\n"
5619 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
5620 "                             const char *device);\n"
5621 "\n"
5622 msgstr ""
5623
5624 # type: textblock
5625 #: ../src/guestfs-actions.pod:659 ../fish/guestfish-actions.pod:440
5626 msgid ""
5627 "This tells the kernel to flush internal buffers associated with C<device>."
5628 msgstr ""
5629
5630 # type: textblock
5631 #: ../src/guestfs-actions.pod:662 ../src/guestfs-actions.pod:679
5632 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:710
5633 #: ../src/guestfs-actions.pod:728 ../src/guestfs-actions.pod:747
5634 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5635 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5636 #: ../fish/guestfish-actions.pod:443 ../fish/guestfish-actions.pod:454
5637 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:473
5638 #: ../fish/guestfish-actions.pod:485 ../fish/guestfish-actions.pod:498
5639 #: ../fish/guestfish-actions.pod:506 ../fish/guestfish-actions.pod:517
5640 #: ../fish/guestfish-actions.pod:525 ../fish/guestfish-actions.pod:533
5641 msgid "This uses the L<blockdev(8)> command."
5642 msgstr ""
5643
5644 # type: textblock
5645 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:683
5646 #: ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:714
5647 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:751
5648 #: ../src/guestfs-actions.pod:765 ../src/guestfs-actions.pod:783
5649 #: ../src/guestfs-actions.pod:797 ../src/guestfs-actions.pod:811
5650 msgid "(Added in 0.9.3)"
5651 msgstr ""
5652
5653 # type: =head2
5654 #: ../src/guestfs-actions.pod:668
5655 msgid "guestfs_blockdev_getbsz"
5656 msgstr ""
5657
5658 # type: verbatim
5659 #: ../src/guestfs-actions.pod:670
5660 #, no-wrap
5661 msgid ""
5662 " int\n"
5663 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
5664 "                          const char *device);\n"
5665 "\n"
5666 msgstr ""
5667
5668 # type: textblock
5669 #: ../src/guestfs-actions.pod:674 ../fish/guestfish-actions.pod:449
5670 msgid "This returns the block size of a device."
5671 msgstr ""
5672
5673 # type: textblock
5674 #: ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:776
5675 #: ../fish/guestfish-actions.pod:451 ../fish/guestfish-actions.pod:514
5676 msgid ""
5677 "(Note this is different from both I<size in blocks> and I<filesystem block "
5678 "size>)."
5679 msgstr ""
5680
5681 # type: =head2
5682 #: ../src/guestfs-actions.pod:685
5683 msgid "guestfs_blockdev_getro"
5684 msgstr ""
5685
5686 # type: verbatim
5687 #: ../src/guestfs-actions.pod:687
5688 #, no-wrap
5689 msgid ""
5690 " int\n"
5691 " guestfs_blockdev_getro (guestfs_h *g,\n"
5692 "                         const char *device);\n"
5693 "\n"
5694 msgstr ""
5695
5696 # type: textblock
5697 #: ../src/guestfs-actions.pod:691 ../fish/guestfish-actions.pod:460
5698 msgid ""
5699 "Returns a boolean indicating if the block device is read-only (true if read-"
5700 "only, false if not)."
5701 msgstr ""
5702
5703 # type: textblock
5704 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:1398
5705 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1893
5706 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1976
5707 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:2046
5708 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2094
5709 #: ../src/guestfs-actions.pod:3050 ../src/guestfs-actions.pod:3064
5710 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3093
5711 #: ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:3124
5712 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3154
5713 #: ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3181
5714 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3211
5715 #: ../src/guestfs-actions.pod:4719
5716 msgid "This function returns a C truth value on success or -1 on error."
5717 msgstr ""
5718
5719 # type: =head2
5720 #: ../src/guestfs-actions.pod:700
5721 msgid "guestfs_blockdev_getsize64"
5722 msgstr ""
5723
5724 # type: verbatim
5725 #: ../src/guestfs-actions.pod:702
5726 #, no-wrap
5727 msgid ""
5728 " int64_t\n"
5729 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
5730 "                             const char *device);\n"
5731 "\n"
5732 msgstr ""
5733
5734 # type: textblock
5735 #: ../src/guestfs-actions.pod:706 ../fish/guestfish-actions.pod:469
5736 msgid "This returns the size of the device in bytes."
5737 msgstr ""
5738
5739 # type: textblock
5740 #: ../src/guestfs-actions.pod:708
5741 msgid "See also C<guestfs_blockdev_getsz>."
5742 msgstr ""
5743
5744 # type: =head2
5745 #: ../src/guestfs-actions.pod:716
5746 msgid "guestfs_blockdev_getss"
5747 msgstr ""
5748
5749 # type: verbatim
5750 #: ../src/guestfs-actions.pod:718
5751 #, no-wrap
5752 msgid ""
5753 " int\n"
5754 " guestfs_blockdev_getss (guestfs_h *g,\n"
5755 "                         const char *device);\n"
5756 "\n"
5757 msgstr ""
5758
5759 # type: textblock
5760 #: ../src/guestfs-actions.pod:722 ../fish/guestfish-actions.pod:479
5761 msgid ""
5762 "This returns the size of sectors on a block device.  Usually 512, but can be "
5763 "larger for modern devices."
5764 msgstr ""
5765
5766 # type: textblock
5767 #: ../src/guestfs-actions.pod:725
5768 msgid ""
5769 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
5770 "that)."
5771 msgstr ""
5772
5773 # type: =head2
5774 #: ../src/guestfs-actions.pod:734
5775 msgid "guestfs_blockdev_getsz"
5776 msgstr ""
5777
5778 # type: verbatim
5779 #: ../src/guestfs-actions.pod:736
5780 #, no-wrap
5781 msgid ""
5782 " int64_t\n"
5783 " guestfs_blockdev_getsz (guestfs_h *g,\n"
5784 "                         const char *device);\n"
5785 "\n"
5786 msgstr ""
5787
5788 # type: textblock
5789 #: ../src/guestfs-actions.pod:740 ../fish/guestfish-actions.pod:491
5790 msgid ""
5791 "This returns the size of the device in units of 512-byte sectors (even if "
5792 "the sectorsize isn't 512 bytes ... weird)."
5793 msgstr ""
5794
5795 # type: textblock
5796 #: ../src/guestfs-actions.pod:743
5797 msgid ""
5798 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
5799 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
5800 msgstr ""
5801
5802 # type: =head2
5803 #: ../src/guestfs-actions.pod:753
5804 msgid "guestfs_blockdev_rereadpt"
5805 msgstr ""
5806
5807 # type: verbatim
5808 #: ../src/guestfs-actions.pod:755
5809 #, no-wrap
5810 msgid ""
5811 " int\n"
5812 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
5813 "                            const char *device);\n"
5814 "\n"
5815 msgstr ""
5816
5817 # type: textblock
5818 #: ../src/guestfs-actions.pod:759 ../fish/guestfish-actions.pod:504
5819 msgid "Reread the partition table on C<device>."
5820 msgstr ""
5821
5822 # type: =head2
5823 #: ../src/guestfs-actions.pod:767
5824 msgid "guestfs_blockdev_setbsz"
5825 msgstr ""
5826
5827 # type: verbatim
5828 #: ../src/guestfs-actions.pod:769
5829 #, no-wrap
5830 msgid ""
5831 " int\n"
5832 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
5833 "                          const char *device,\n"
5834 "                          int blocksize);\n"
5835 "\n"
5836 msgstr ""
5837
5838 # type: textblock
5839 #: ../src/guestfs-actions.pod:774 ../fish/guestfish-actions.pod:512
5840 msgid "This sets the block size of a device."
5841 msgstr ""
5842
5843 # type: =head2
5844 #: ../src/guestfs-actions.pod:785
5845 msgid "guestfs_blockdev_setro"
5846 msgstr ""
5847
5848 # type: verbatim
5849 #: ../src/guestfs-actions.pod:787
5850 #, no-wrap
5851 msgid ""
5852 " int\n"
5853 " guestfs_blockdev_setro (guestfs_h *g,\n"
5854 "                         const char *device);\n"
5855 "\n"
5856 msgstr ""
5857
5858 # type: textblock
5859 #: ../src/guestfs-actions.pod:791 ../fish/guestfish-actions.pod:523
5860 msgid "Sets the block device named C<device> to read-only."
5861 msgstr ""
5862
5863 # type: =head2
5864 #: ../src/guestfs-actions.pod:799
5865 msgid "guestfs_blockdev_setrw"
5866 msgstr ""
5867
5868 # type: verbatim
5869 #: ../src/guestfs-actions.pod:801
5870 #, no-wrap
5871 msgid ""
5872 " int\n"
5873 " guestfs_blockdev_setrw (guestfs_h *g,\n"
5874 "                         const char *device);\n"
5875 "\n"
5876 msgstr ""
5877
5878 # type: textblock
5879 #: ../src/guestfs-actions.pod:805 ../fish/guestfish-actions.pod:531
5880 msgid "Sets the block device named C<device> to read-write."
5881 msgstr ""
5882
5883 # type: =head2
5884 #: ../src/guestfs-actions.pod:813
5885 msgid "guestfs_case_sensitive_path"
5886 msgstr ""
5887
5888 # type: verbatim
5889 #: ../src/guestfs-actions.pod:815
5890 #, no-wrap
5891 msgid ""
5892 " char *\n"
5893 " guestfs_case_sensitive_path (guestfs_h *g,\n"
5894 "                              const char *path);\n"
5895 "\n"
5896 msgstr ""
5897
5898 # type: textblock
5899 #: ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:539
5900 msgid ""
5901 "This can be used to resolve case insensitive paths on a filesystem which is "
5902 "case sensitive.  The use case is to resolve paths which you have read from "
5903 "Windows configuration files or the Windows Registry, to the true path."
5904 msgstr ""
5905
5906 # type: textblock
5907 #: ../src/guestfs-actions.pod:824 ../fish/guestfish-actions.pod:544
5908 msgid ""
5909 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5910 "(and probably others), which is that although the underlying filesystem is "
5911 "case-insensitive, the driver exports the filesystem to Linux as case-"
5912 "sensitive."
5913 msgstr ""
5914
5915 # type: textblock
5916 #: ../src/guestfs-actions.pod:829 ../fish/guestfish-actions.pod:549
5917 msgid ""
5918 "One consequence of this is that special directories such as C<c:\\windows> "
5919 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5920 "precise details of how they were created.  In Windows itself this would not "
5921 "be a problem."
5922 msgstr ""
5923
5924 # type: textblock
5925 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:555
5926 msgid ""
5927 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5928 "#posixfilenames1>"
5929 msgstr ""
5930
5931 # type: textblock
5932 #: ../src/guestfs-actions.pod:838 ../fish/guestfish-actions.pod:558
5933 msgid ""
5934 "This function resolves the true case of each element in the path and returns "
5935 "the case-sensitive path."
5936 msgstr ""
5937
5938 # type: textblock
5939 #: ../src/guestfs-actions.pod:841
5940 msgid ""
5941 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
5942 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5943 "how the directories were originally created under Windows)."
5944 msgstr ""
5945
5946 # type: textblock
5947 #: ../src/guestfs-actions.pod:846 ../fish/guestfish-actions.pod:566
5948 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5949 msgstr ""
5950
5951 # type: textblock
5952 #: ../src/guestfs-actions.pod:849
5953 msgid "See also C<guestfs_realpath>."
5954 msgstr ""
5955
5956 # type: textblock
5957 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:6661
5958 msgid "(Added in 1.0.75)"
5959 msgstr ""
5960
5961 # type: =head2
5962 #: ../src/guestfs-actions.pod:856
5963 msgid "guestfs_cat"
5964 msgstr ""
5965
5966 # type: verbatim
5967 #: ../src/guestfs-actions.pod:858
5968 #, no-wrap
5969 msgid ""
5970 " char *\n"
5971 " guestfs_cat (guestfs_h *g,\n"
5972 "              const char *path);\n"
5973 "\n"
5974 msgstr ""
5975
5976 # type: textblock
5977 #: ../src/guestfs-actions.pod:862 ../src/guestfs-actions.pod:5206
5978 #: ../fish/guestfish-actions.pod:575 ../fish/guestfish-actions.pod:3464
5979 msgid "Return the contents of the file named C<path>."
5980 msgstr ""
5981
5982 # type: textblock
5983 #: ../src/guestfs-actions.pod:864
5984 msgid ""
5985 "Note that this function cannot correctly handle binary files (specifically, "
5986 "files containing C<\\0> character which is treated as end of string).  For "
5987 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
5988 "functions which have a more complex interface."
5989 msgstr ""
5990
5991 # type: textblock
5992 #: ../src/guestfs-actions.pod:872 ../src/guestfs-actions.pod:1051
5993 #: ../src/guestfs-actions.pod:1071 ../src/guestfs-actions.pod:1362
5994 #: ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1484
5995 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1752
5996 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
5997 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
5998 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
5999 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5014
6000 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5171
6001 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:6046
6002 #: ../src/guestfs-actions.pod:6101 ../src/guestfs-actions.pod:6247
6003 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6933
6004 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6985
6005 #: ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7089
6006 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7154
6007 #: ../src/guestfs-actions.pod:7173 ../fish/guestfish-actions.pod:582
6008 #: ../fish/guestfish-actions.pod:717 ../fish/guestfish-actions.pod:729
6009 #: ../fish/guestfish-actions.pod:905 ../fish/guestfish-actions.pod:915
6010 #: ../fish/guestfish-actions.pod:982 ../fish/guestfish-actions.pod:992
6011 #: ../fish/guestfish-actions.pod:1187 ../fish/guestfish-actions.pod:1482
6012 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1520
6013 #: ../fish/guestfish-actions.pod:1535 ../fish/guestfish-actions.pod:1545
6014 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:3334
6015 #: ../fish/guestfish-actions.pod:3349 ../fish/guestfish-actions.pod:3425
6016 #: ../fish/guestfish-actions.pod:3442 ../fish/guestfish-actions.pod:3457
6017 #: ../fish/guestfish-actions.pod:4040 ../fish/guestfish-actions.pod:4086
6018 #: ../fish/guestfish-actions.pod:4171 ../fish/guestfish-actions.pod:4186
6019 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4614
6020 #: ../fish/guestfish-actions.pod:4631 ../fish/guestfish-actions.pod:4641
6021 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4699
6022 #: ../fish/guestfish-actions.pod:4728 ../fish/guestfish-actions.pod:4738
6023 msgid ""
6024 "Because of the message protocol, there is a transfer limit of somewhere "
6025 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6026 msgstr ""
6027
6028 # type: textblock
6029 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:3320
6030 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3399
6031 #: ../src/guestfs-actions.pod:3487 ../src/guestfs-actions.pod:3892
6032 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:5094
6033 #: ../src/guestfs-actions.pod:5108 ../src/guestfs-actions.pod:6820
6034 #: ../src/guestfs-actions.pod:6834
6035 msgid "(Added in 0.4)"
6036 msgstr ""
6037
6038 # type: =head2
6039 #: ../src/guestfs-actions.pod:877
6040 msgid "guestfs_checksum"
6041 msgstr ""
6042
6043 # type: verbatim
6044 #: ../src/guestfs-actions.pod:879
6045 #, no-wrap
6046 msgid ""
6047 " char *\n"
6048 " guestfs_checksum (guestfs_h *g,\n"
6049 "                   const char *csumtype,\n"
6050 "                   const char *path);\n"
6051 "\n"
6052 msgstr ""
6053
6054 # type: textblock
6055 #: ../src/guestfs-actions.pod:884 ../fish/guestfish-actions.pod:589
6056 msgid ""
6057 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6058 msgstr ""
6059
6060 # type: textblock
6061 #: ../src/guestfs-actions.pod:887 ../fish/guestfish-actions.pod:592
6062 msgid ""
6063 "The type of checksum to compute is given by the C<csumtype> parameter which "
6064 "must have one of the following values:"
6065 msgstr ""
6066
6067 # type: =item
6068 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
6069 msgid "C<crc>"
6070 msgstr ""
6071
6072 # type: textblock
6073 #: ../src/guestfs-actions.pod:894 ../fish/guestfish-actions.pod:599
6074 msgid ""
6075 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6076 "C<cksum> command."
6077 msgstr ""
6078
6079 # type: =item
6080 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
6081 msgid "C<md5>"
6082 msgstr ""
6083
6084 # type: textblock
6085 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
6086 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6087 msgstr ""
6088
6089 # type: =item
6090 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
6091 msgid "C<sha1>"
6092 msgstr ""
6093
6094 # type: textblock
6095 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
6096 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6097 msgstr ""
6098
6099 # type: =item
6100 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
6101 msgid "C<sha224>"
6102 msgstr ""
6103
6104 # type: textblock
6105 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
6106 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6107 msgstr ""
6108
6109 # type: =item
6110 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
6111 msgid "C<sha256>"
6112 msgstr ""
6113
6114 # type: textblock
6115 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
6116 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6117 msgstr ""
6118
6119 # type: =item
6120 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
6121 msgid "C<sha384>"
6122 msgstr ""
6123
6124 # type: textblock
6125 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
6126 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6127 msgstr ""
6128
6129 # type: =item
6130 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
6131 msgid "C<sha512>"
6132 msgstr ""
6133
6134 # type: textblock
6135 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:624
6136 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6137 msgstr ""
6138
6139 # type: textblock
6140 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:628
6141 msgid "The checksum is returned as a printable string."
6142 msgstr ""
6143
6144 # type: textblock
6145 #: ../src/guestfs-actions.pod:925
6146 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
6147 msgstr ""
6148
6149 # type: textblock
6150 #: ../src/guestfs-actions.pod:927
6151 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
6152 msgstr ""
6153
6154 # type: textblock
6155 #: ../src/guestfs-actions.pod:932 ../src/guestfs-actions.pod:1240
6156 #: ../src/guestfs-actions.pod:2062 ../src/guestfs-actions.pod:3066
6157 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3156
6158 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:6517
6159 msgid "(Added in 1.0.2)"
6160 msgstr ""
6161
6162 # type: =head2
6163 #: ../src/guestfs-actions.pod:934
6164 msgid "guestfs_checksum_device"
6165 msgstr ""
6166
6167 # type: verbatim
6168 #: ../src/guestfs-actions.pod:936
6169 #, no-wrap
6170 msgid ""
6171 " char *\n"
6172 " guestfs_checksum_device (guestfs_h *g,\n"
6173 "                          const char *csumtype,\n"
6174 "                          const char *device);\n"
6175 "\n"
6176 msgstr ""
6177
6178 # type: textblock
6179 #: ../src/guestfs-actions.pod:941
6180 msgid ""
6181 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6182 "device named C<device>.  For the types of checksums supported see the "
6183 "C<guestfs_checksum> command."
6184 msgstr ""
6185
6186 # type: textblock
6187 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:4625
6188 #: ../src/guestfs-actions.pod:4684 ../src/guestfs-actions.pod:4721
6189 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4915
6190 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:6440
6191 #: ../src/guestfs-actions.pod:6846
6192 msgid "(Added in 1.3.2)"
6193 msgstr ""
6194
6195 # type: =head2
6196 #: ../src/guestfs-actions.pod:950
6197 msgid "guestfs_checksums_out"
6198 msgstr ""
6199
6200 # type: verbatim
6201 #: ../src/guestfs-actions.pod:952
6202 #, no-wrap
6203 msgid ""
6204 " int\n"
6205 " guestfs_checksums_out (guestfs_h *g,\n"
6206 "                        const char *csumtype,\n"
6207 "                        const char *directory,\n"
6208 "                        const char *sumsfile);\n"
6209 "\n"
6210 msgstr ""
6211
6212 # type: textblock
6213 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:646
6214 msgid ""
6215 "This command computes the checksums of all regular files in C<directory> and "
6216 "then emits a list of those checksums to the local output file C<sumsfile>."
6217 msgstr ""
6218
6219 # type: textblock
6220 #: ../src/guestfs-actions.pod:962 ../fish/guestfish-actions.pod:650
6221 msgid ""
6222 "This can be used for verifying the integrity of a virtual machine.  However "
6223 "to be properly secure you should pay attention to the output of the checksum "
6224 "command (it uses the ones from GNU coreutils).  In particular when the "
6225 "filename is not printable, coreutils uses a special backslash syntax.  For "
6226 "more information, see the GNU coreutils info file."
6227 msgstr ""
6228
6229 # type: textblock
6230 #: ../src/guestfs-actions.pod:972
6231 msgid "(Added in 1.3.7)"
6232 msgstr ""
6233
6234 # type: =head2
6235 #: ../src/guestfs-actions.pod:974
6236 msgid "guestfs_chmod"
6237 msgstr ""
6238
6239 # type: verbatim
6240 #: ../src/guestfs-actions.pod:976
6241 #, no-wrap
6242 msgid ""
6243 " int\n"
6244 " guestfs_chmod (guestfs_h *g,\n"
6245 "                int mode,\n"
6246 "                const char *path);\n"
6247 "\n"
6248 msgstr ""
6249
6250 # type: textblock
6251 #: ../src/guestfs-actions.pod:981 ../fish/guestfish-actions.pod:664
6252 msgid ""
6253 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6254 "supported."
6255 msgstr ""
6256
6257 # type: textblock
6258 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:667
6259 msgid ""
6260 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6261 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6262 "C<700>."
6263 msgstr ""
6264
6265 # type: textblock
6266 #: ../src/guestfs-actions.pod:988 ../src/guestfs-actions.pod:4143
6267 #: ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4343
6268 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:671
6269 #: ../fish/guestfish-actions.pod:2793 ../fish/guestfish-actions.pod:2909
6270 #: ../fish/guestfish-actions.pod:2919 ../fish/guestfish-actions.pod:2929
6271 msgid "The mode actually set is affected by the umask."
6272 msgstr ""
6273
6274 # type: =head2
6275 #: ../src/guestfs-actions.pod:994
6276 msgid "guestfs_chown"
6277 msgstr ""
6278
6279 # type: verbatim
6280 #: ../src/guestfs-actions.pod:996
6281 #, no-wrap
6282 msgid ""
6283 " int\n"
6284 " guestfs_chown (guestfs_h *g,\n"
6285 "                int owner,\n"
6286 "                int group,\n"
6287 "                const char *path);\n"
6288 "\n"
6289 msgstr ""
6290
6291 # type: textblock
6292 #: ../src/guestfs-actions.pod:1002 ../fish/guestfish-actions.pod:677
6293 msgid "Change the file owner to C<owner> and group to C<group>."
6294 msgstr ""
6295
6296 # type: textblock
6297 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:3253
6298 #: ../fish/guestfish-actions.pod:679 ../fish/guestfish-actions.pod:2251
6299 msgid ""
6300 "Only numeric uid and gid are supported.  If you want to use names, you will "
6301 "need to locate and parse the password file yourself (Augeas support makes "
6302 "this relatively easy)."
6303 msgstr ""
6304
6305 # type: =head2
6306 #: ../src/guestfs-actions.pod:1012
6307 msgid "guestfs_command"
6308 msgstr ""
6309
6310 # type: verbatim
6311 #: ../src/guestfs-actions.pod:1014
6312 #, no-wrap
6313 msgid ""
6314 " char *\n"
6315 " guestfs_command (guestfs_h *g,\n"
6316 "                  char *const *arguments);\n"
6317 "\n"
6318 msgstr ""
6319
6320 # type: textblock
6321 #: ../src/guestfs-actions.pod:1018 ../fish/guestfish-actions.pod:687
6322 msgid ""
6323 "This call runs a command from the guest filesystem.  The filesystem must be "
6324 "mounted, and must contain a compatible operating system (ie. something "
6325 "Linux, with the same or compatible processor architecture)."
6326 msgstr ""
6327
6328 # type: textblock
6329 #: ../src/guestfs-actions.pod:1023
6330 msgid ""
6331 "The single parameter is an argv-style list of arguments.  The first element "
6332 "is the name of the program to run.  Subsequent elements are parameters.  The "
6333 "list must be non-empty (ie. must contain a program name).  Note that the "
6334 "command runs directly, and is I<not> invoked via the shell (see "
6335 "C<guestfs_sh>)."
6336 msgstr ""
6337
6338 # type: textblock
6339 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:699
6340 msgid "The return value is anything printed to I<stdout> by the command."
6341 msgstr ""
6342
6343 # type: textblock
6344 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:702
6345 msgid ""
6346 "If the command returns a non-zero exit status, then this function returns an "
6347 "error message.  The error message string is the content of I<stderr> from "
6348 "the command."
6349 msgstr ""
6350
6351 # type: textblock
6352 #: ../src/guestfs-actions.pod:1037 ../fish/guestfish-actions.pod:706
6353 msgid ""
6354 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6355 "bin>.  If you require a program from another location, you should provide "
6356 "the full path in the first parameter."
6357 msgstr ""
6358
6359 # type: textblock
6360 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:711
6361 msgid ""
6362 "Shared libraries and data files required by the program must be available on "
6363 "filesystems which are mounted in the correct places.  It is the caller's "
6364 "responsibility to ensure all filesystems that are needed are mounted at the "
6365 "right locations."
6366 msgstr ""
6367
6368 # type: textblock
6369 #: ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1074
6370 #: ../src/guestfs-actions.pod:1537
6371 msgid "(Added in 0.9.1)"
6372 msgstr ""
6373
6374 # type: =head2
6375 #: ../src/guestfs-actions.pod:1056
6376 msgid "guestfs_command_lines"
6377 msgstr ""
6378
6379 # type: verbatim
6380 #: ../src/guestfs-actions.pod:1058
6381 #, no-wrap
6382 msgid ""
6383 " char **\n"
6384 " guestfs_command_lines (guestfs_h *g,\n"
6385 "                        char *const *arguments);\n"
6386 "\n"
6387 msgstr ""
6388
6389 # type: textblock
6390 #: ../src/guestfs-actions.pod:1062
6391 msgid ""
6392 "This is the same as C<guestfs_command>, but splits the result into a list of "
6393 "lines."
6394 msgstr ""
6395
6396 # type: textblock
6397 #: ../src/guestfs-actions.pod:1065
6398 msgid "See also: C<guestfs_sh_lines>"
6399 msgstr ""
6400
6401 # type: =head2
6402 #: ../src/guestfs-actions.pod:1076
6403 msgid "guestfs_config"
6404 msgstr ""
6405
6406 # type: verbatim
6407 #: ../src/guestfs-actions.pod:1078
6408 #, no-wrap
6409 msgid ""
6410 " int\n"
6411 " guestfs_config (guestfs_h *g,\n"
6412 "                 const char *qemuparam,\n"
6413 "                 const char *qemuvalue);\n"
6414 "\n"
6415 msgstr ""
6416
6417 # type: textblock
6418 #: ../src/guestfs-actions.pod:1083 ../fish/guestfish-actions.pod:736
6419 msgid ""
6420 "This can be used to add arbitrary qemu command line parameters of the form "
6421 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6422 "setting some parameters which would interfere with parameters that we use."
6423 msgstr ""
6424
6425 # type: textblock
6426 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
6427 msgid "The first character of C<param> string must be a C<-> (dash)."
6428 msgstr ""
6429
6430 # type: textblock
6431 #: ../src/guestfs-actions.pod:1090 ../fish/guestfish-actions.pod:743
6432 msgid "C<value> can be NULL."
6433 msgstr ""
6434
6435 # type: =head2
6436 #: ../src/guestfs-actions.pod:1096
6437 msgid "guestfs_copy_size"
6438 msgstr ""
6439
6440 # type: verbatim
6441 #: ../src/guestfs-actions.pod:1098
6442 #, no-wrap
6443 msgid ""
6444 " int\n"
6445 " guestfs_copy_size (guestfs_h *g,\n"
6446 "                    const char *src,\n"
6447 "                    const char *dest,\n"
6448 "                    int64_t size);\n"
6449 "\n"
6450 msgstr ""
6451
6452 # type: textblock
6453 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:749
6454 msgid ""
6455 "This command copies exactly C<size> bytes from one source device or file "
6456 "C<src> to another destination device or file C<dest>."
6457 msgstr ""
6458
6459 # type: textblock
6460 #: ../src/guestfs-actions.pod:1107 ../fish/guestfish-actions.pod:752
6461 msgid ""
6462 "Note this will fail if the source is too short or if the destination is not "
6463 "large enough."
6464 msgstr ""
6465
6466 # type: textblock
6467 #: ../src/guestfs-actions.pod:1112 ../src/guestfs-actions.pod:1235
6468 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1686
6469 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:6512
6470 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:7025
6471 #: ../src/guestfs-actions.pod:7044
6472 msgid ""
6473 "This long-running command can generate progress notification messages so "
6474 "that the caller can display a progress bar or indicator.  To receive these "
6475 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
6476 "guestfs_set_progress_callback>."
6477 msgstr ""
6478
6479 # type: textblock
6480 #: ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:3919
6481 #: ../src/guestfs-actions.pod:5121 ../src/guestfs-actions.pod:6753
6482 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6859
6483 msgid "(Added in 1.0.87)"
6484 msgstr ""
6485
6486 # type: =head2
6487 #: ../src/guestfs-actions.pod:1119
6488 msgid "guestfs_cp"
6489 msgstr ""
6490
6491 # type: verbatim
6492 #: ../src/guestfs-actions.pod:1121
6493 #, no-wrap
6494 msgid ""
6495 " int\n"
6496 " guestfs_cp (guestfs_h *g,\n"
6497 "             const char *src,\n"
6498 "             const char *dest);\n"
6499 "\n"
6500 msgstr ""
6501
6502 # type: textblock
6503 #: ../src/guestfs-actions.pod:1126 ../fish/guestfish-actions.pod:759
6504 msgid ""
6505 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6506 "destination filename or destination directory."
6507 msgstr ""
6508
6509 # type: textblock
6510 #: ../src/guestfs-actions.pod:1131 ../src/guestfs-actions.pod:1145
6511 #: ../src/guestfs-actions.pod:1217 ../src/guestfs-actions.pod:1291
6512 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:4588
6513 #: ../src/guestfs-actions.pod:4965
6514 msgid "(Added in 1.0.18)"
6515 msgstr ""
6516
6517 # type: =head2
6518 #: ../src/guestfs-actions.pod:1133
6519 msgid "guestfs_cp_a"
6520 msgstr ""
6521
6522 # type: verbatim
6523 #: ../src/guestfs-actions.pod:1135
6524 #, no-wrap
6525 msgid ""
6526 " int\n"
6527 " guestfs_cp_a (guestfs_h *g,\n"
6528 "               const char *src,\n"
6529 "               const char *dest);\n"
6530 "\n"
6531 msgstr ""
6532
6533 # type: textblock
6534 #: ../src/guestfs-actions.pod:1140 ../fish/guestfish-actions.pod:766
6535 msgid ""
6536 "This copies a file or directory from C<src> to C<dest> recursively using the "
6537 "C<cp -a> command."
6538 msgstr ""
6539
6540 # type: =head2
6541 #: ../src/guestfs-actions.pod:1147
6542 msgid "guestfs_dd"
6543 msgstr ""
6544
6545 # type: verbatim
6546 #: ../src/guestfs-actions.pod:1149
6547 #, no-wrap
6548 msgid ""
6549 " int\n"
6550 " guestfs_dd (guestfs_h *g,\n"
6551 "             const char *src,\n"
6552 "             const char *dest);\n"
6553 "\n"
6554 msgstr ""
6555
6556 # type: textblock
6557 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:773
6558 msgid ""
6559 "This command copies from one source device or file C<src> to another "
6560 "destination device or file C<dest>.  Normally you would use this to copy to "
6561 "or from a device or partition, for example to duplicate a filesystem."
6562 msgstr ""
6563
6564 # type: textblock
6565 #: ../src/guestfs-actions.pod:1159
6566 msgid ""
6567 "If the destination is a device, it must be as large or larger than the "
6568 "source file or device, otherwise the copy will fail.  This command cannot do "
6569 "partial copies (see C<guestfs_copy_size>)."
6570 msgstr ""
6571
6572 # type: =head2
6573 #: ../src/guestfs-actions.pod:1167
6574 msgid "guestfs_df"
6575 msgstr ""
6576
6577 # type: verbatim
6578 #: ../src/guestfs-actions.pod:1169
6579 #, no-wrap
6580 msgid ""
6581 " char *\n"
6582 " guestfs_df (guestfs_h *g);\n"
6583 "\n"
6584 msgstr ""
6585
6586 # type: textblock
6587 #: ../src/guestfs-actions.pod:1172 ../fish/guestfish-actions.pod:786
6588 msgid "This command runs the C<df> command to report disk space used."
6589 msgstr ""
6590
6591 # type: textblock
6592 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1191
6593 msgid ""
6594 "This command is mostly useful for interactive sessions.  It is I<not> "
6595 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
6596 "from programs."
6597 msgstr ""
6598
6599 # type: textblock
6600 #: ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1198
6601 #: ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2263
6602 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
6603 #: ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4488
6604 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6274
6605 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
6606 #: ../src/guestfs-actions.pod:6918
6607 msgid "(Added in 1.0.54)"
6608 msgstr ""
6609
6610 # type: =head2
6611 #: ../src/guestfs-actions.pod:1183
6612 msgid "guestfs_df_h"
6613 msgstr ""
6614
6615 # type: verbatim
6616 #: ../src/guestfs-actions.pod:1185
6617 #, no-wrap
6618 msgid ""
6619 " char *\n"
6620 " guestfs_df_h (guestfs_h *g);\n"
6621 "\n"
6622 msgstr ""
6623
6624 # type: textblock
6625 #: ../src/guestfs-actions.pod:1188 ../fish/guestfish-actions.pod:796
6626 msgid ""
6627 "This command runs the C<df -h> command to report disk space used in human-"
6628 "readable format."
6629 msgstr ""
6630
6631 # type: =head2
6632 #: ../src/guestfs-actions.pod:1200
6633 msgid "guestfs_dmesg"
6634 msgstr ""
6635
6636 # type: verbatim
6637 #: ../src/guestfs-actions.pod:1202
6638 #, no-wrap
6639 msgid ""
6640 " char *\n"
6641 " guestfs_dmesg (guestfs_h *g);\n"
6642 "\n"
6643 msgstr ""
6644
6645 # type: textblock
6646 #: ../src/guestfs-actions.pod:1205 ../fish/guestfish-actions.pod:807
6647 msgid ""
6648 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6649 "This is sometimes useful for extended debugging of problems."
6650 msgstr ""
6651
6652 # type: textblock
6653 #: ../src/guestfs-actions.pod:1209
6654 msgid ""
6655 "Another way to get the same information is to enable verbose messages with "
6656 "C<guestfs_set_verbose> or by setting the environment variable "
6657 "C<LIBGUESTFS_DEBUG=1> before running the program."
6658 msgstr ""
6659
6660 # type: =head2
6661 #: ../src/guestfs-actions.pod:1219
6662 msgid "guestfs_download"
6663 msgstr ""
6664
6665 # type: verbatim
6666 #: ../src/guestfs-actions.pod:1221
6667 #, no-wrap
6668 msgid ""
6669 " int\n"
6670 " guestfs_download (guestfs_h *g,\n"
6671 "                   const char *remotefilename,\n"
6672 "                   const char *filename);\n"
6673 "\n"
6674 msgstr ""
6675
6676 # type: textblock
6677 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1251
6678 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:833
6679 msgid ""
6680 "Download file C<remotefilename> and save it as C<filename> on the local "
6681 "machine."
6682 msgstr ""
6683
6684 # type: textblock
6685 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:6506
6686 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:4344
6687 msgid "C<filename> can also be a named pipe."
6688 msgstr ""
6689
6690 # type: textblock
6691 #: ../src/guestfs-actions.pod:1231
6692 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
6693 msgstr ""
6694
6695 # type: =head2
6696 #: ../src/guestfs-actions.pod:1242
6697 msgid "guestfs_download_offset"
6698 msgstr ""
6699
6700 # type: verbatim
6701 #: ../src/guestfs-actions.pod:1244
6702 #, no-wrap
6703 msgid ""
6704 " int\n"
6705 " guestfs_download_offset (guestfs_h *g,\n"
6706 "                          const char *remotefilename,\n"
6707 "                          const char *filename,\n"
6708 "                          int64_t offset,\n"
6709 "                          int64_t size);\n"
6710 "\n"
6711 msgstr ""
6712
6713 # type: textblock
6714 #: ../src/guestfs-actions.pod:1254 ../fish/guestfish-actions.pod:836
6715 msgid ""
6716 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6717 "region must be within the file or device)."
6718 msgstr ""
6719
6720 # type: textblock
6721 #: ../src/guestfs-actions.pod:1257
6722 msgid ""
6723 "Note that there is no limit on the amount of data that can be downloaded "
6724 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
6725 "full amount unless an error occurs."
6726 msgstr ""
6727
6728 # type: textblock
6729 #: ../src/guestfs-actions.pod:1262
6730 msgid "See also C<guestfs_download>, C<guestfs_pread>."
6731 msgstr ""
6732
6733 # type: textblock
6734 #: ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:6551
6735 msgid "(Added in 1.5.17)"
6736 msgstr ""
6737
6738 # type: =head2
6739 #: ../src/guestfs-actions.pod:1273
6740 msgid "guestfs_drop_caches"
6741 msgstr ""
6742
6743 # type: verbatim
6744 #: ../src/guestfs-actions.pod:1275
6745 #, no-wrap
6746 msgid ""
6747 " int\n"
6748 " guestfs_drop_caches (guestfs_h *g,\n"
6749 "                      int whattodrop);\n"
6750 "\n"
6751 msgstr ""
6752
6753 # type: textblock
6754 #: ../src/guestfs-actions.pod:1279 ../fish/guestfish-actions.pod:852
6755 msgid ""
6756 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6757 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6758 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6759 msgstr ""
6760
6761 # type: textblock
6762 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
6763 msgid "Setting C<whattodrop> to 3 should drop everything."
6764 msgstr ""
6765
6766 # type: textblock
6767 #: ../src/guestfs-actions.pod:1286 ../fish/guestfish-actions.pod:859
6768 msgid ""
6769 "This automatically calls L<sync(2)> before the operation, so that the "
6770 "maximum guest memory is freed."
6771 msgstr ""
6772
6773 # type: =head2
6774 #: ../src/guestfs-actions.pod:1293
6775 msgid "guestfs_du"
6776 msgstr ""
6777
6778 # type: verbatim
6779 #: ../src/guestfs-actions.pod:1295
6780 #, no-wrap
6781 msgid ""
6782 " int64_t\n"
6783 " guestfs_du (guestfs_h *g,\n"
6784 "             const char *path);\n"
6785 "\n"
6786 msgstr ""
6787
6788 # type: textblock
6789 #: ../src/guestfs-actions.pod:1299 ../fish/guestfish-actions.pod:866
6790 msgid ""
6791 "This command runs the C<du -s> command to estimate file space usage for "
6792 "C<path>."
6793 msgstr ""
6794
6795 # type: textblock
6796 #: ../src/guestfs-actions.pod:1302 ../fish/guestfish-actions.pod:869
6797 msgid ""
6798 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6799 "estimate includes the contents of the directory and all subdirectories "
6800 "(recursively)."
6801 msgstr ""
6802
6803 # type: textblock
6804 #: ../src/guestfs-actions.pod:1306 ../fish/guestfish-actions.pod:873
6805 msgid ""
6806 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6807 msgstr ""
6808
6809 # type: =head2
6810 #: ../src/guestfs-actions.pod:1313
6811 msgid "guestfs_e2fsck_f"
6812 msgstr ""
6813
6814 # type: verbatim
6815 #: ../src/guestfs-actions.pod:1315
6816 #, no-wrap
6817 msgid ""
6818 " int\n"
6819 " guestfs_e2fsck_f (guestfs_h *g,\n"
6820 "                   const char *device);\n"
6821 "\n"
6822 msgstr ""
6823
6824 # type: textblock
6825 #: ../src/guestfs-actions.pod:1319 ../fish/guestfish-actions.pod:880
6826 msgid ""
6827 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6828 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
6829 "clean (C<-f>)."
6830 msgstr ""
6831
6832 # type: textblock
6833 #: ../src/guestfs-actions.pod:1323
6834 msgid ""
6835 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
6836 "Normally you should use C<guestfs_fsck>."
6837 msgstr ""
6838
6839 # type: textblock
6840 #: ../src/guestfs-actions.pod:1328
6841 msgid "(Added in 1.0.29)"
6842 msgstr ""
6843
6844 # type: =head2
6845 #: ../src/guestfs-actions.pod:1330
6846 msgid "guestfs_echo_daemon"
6847 msgstr ""
6848
6849 # type: verbatim
6850 #: ../src/guestfs-actions.pod:1332
6851 #, no-wrap
6852 msgid ""
6853 " char *\n"
6854 " guestfs_echo_daemon (guestfs_h *g,\n"
6855 "                      char *const *words);\n"
6856 "\n"
6857 msgstr ""
6858
6859 # type: textblock
6860 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:891
6861 msgid ""
6862 "This command concatenates the list of C<words> passed with single spaces "
6863 "between them and returns the resulting string."
6864 msgstr ""
6865
6866 # type: textblock
6867 #: ../src/guestfs-actions.pod:1339 ../fish/guestfish-actions.pod:894
6868 msgid "You can use this command to test the connection through to the daemon."
6869 msgstr ""
6870
6871 # type: textblock
6872 #: ../src/guestfs-actions.pod:1341
6873 msgid "See also C<guestfs_ping_daemon>."
6874 msgstr ""
6875
6876 # type: textblock
6877 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:2073
6878 #: ../src/guestfs-actions.pod:5754
6879 msgid "(Added in 1.0.69)"
6880 msgstr ""
6881
6882 # type: =head2
6883 #: ../src/guestfs-actions.pod:1348
6884 msgid "guestfs_egrep"
6885 msgstr ""
6886
6887 # type: verbatim
6888 #: ../src/guestfs-actions.pod:1350
6889 #, no-wrap
6890 msgid ""
6891 " char **\n"
6892 " guestfs_egrep (guestfs_h *g,\n"
6893 "                const char *regex,\n"
6894 "                const char *path);\n"
6895 "\n"
6896 msgstr ""
6897
6898 # type: textblock
6899 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:902
6900 msgid ""
6901 "This calls the external C<egrep> program and returns the matching lines."
6902 msgstr ""
6903
6904 # type: textblock
6905 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1384
6906 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1487
6907 #: ../src/guestfs-actions.pod:1506 ../src/guestfs-actions.pod:2201
6908 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
6909 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
6910 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
6911 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3412
6912 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:3439
6913 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:4423
6914 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5348
6915 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6130
6916 #: ../src/guestfs-actions.pod:6143 ../src/guestfs-actions.pod:6156
6917 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6191
6918 #: ../src/guestfs-actions.pod:6204 ../src/guestfs-actions.pod:6217
6919 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7007
6920 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7111
6921 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7176
6922 msgid "(Added in 1.0.66)"
6923 msgstr ""
6924
6925 # type: =head2
6926 #: ../src/guestfs-actions.pod:1367
6927 msgid "guestfs_egrepi"
6928 msgstr ""
6929
6930 # type: verbatim
6931 #: ../src/guestfs-actions.pod:1369
6932 #, no-wrap
6933 msgid ""
6934 " char **\n"
6935 " guestfs_egrepi (guestfs_h *g,\n"
6936 "                 const char *regex,\n"
6937 "                 const char *path);\n"
6938 "\n"
6939 msgstr ""
6940
6941 # type: textblock
6942 #: ../src/guestfs-actions.pod:1374 ../fish/guestfish-actions.pod:912
6943 msgid ""
6944 "This calls the external C<egrep -i> program and returns the matching lines."
6945 msgstr ""
6946
6947 # type: =head2
6948 #: ../src/guestfs-actions.pod:1386
6949 msgid "guestfs_equal"
6950 msgstr ""
6951
6952 # type: verbatim
6953 #: ../src/guestfs-actions.pod:1388
6954 #, no-wrap
6955 msgid ""
6956 " int\n"
6957 " guestfs_equal (guestfs_h *g,\n"
6958 "                const char *file1,\n"
6959 "                const char *file2);\n"
6960 "\n"
6961 msgstr ""
6962
6963 # type: textblock
6964 #: ../src/guestfs-actions.pod:1393 ../fish/guestfish-actions.pod:922
6965 msgid ""
6966 "This compares the two files C<file1> and C<file2> and returns true if their "
6967 "content is exactly equal, or false otherwise."
6968 msgstr ""
6969
6970 # type: textblock
6971 #: ../src/guestfs-actions.pod:1396 ../fish/guestfish-actions.pod:925
6972 msgid "The external L<cmp(1)> program is used for the comparison."
6973 msgstr ""
6974
6975 # type: =head2
6976 #: ../src/guestfs-actions.pod:1402
6977 msgid "guestfs_exists"
6978 msgstr ""
6979
6980 # type: verbatim
6981 #: ../src/guestfs-actions.pod:1404
6982 #, no-wrap
6983 msgid ""
6984 " int\n"
6985 " guestfs_exists (guestfs_h *g,\n"
6986 "                 const char *path);\n"
6987 "\n"
6988 msgstr ""
6989
6990 # type: textblock
6991 #: ../src/guestfs-actions.pod:1408 ../fish/guestfish-actions.pod:931
6992 msgid ""
6993 "This returns C<true> if and only if there is a file, directory (or anything) "
6994 "with the given C<path> name."
6995 msgstr ""
6996
6997 # type: textblock
6998 #: ../src/guestfs-actions.pod:1411
6999 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
7000 msgstr ""
7001
7002 # type: =head2
7003 #: ../src/guestfs-actions.pod:1417
7004 msgid "guestfs_fallocate"
7005 msgstr ""
7006
7007 # type: verbatim
7008 #: ../src/guestfs-actions.pod:1419
7009 #, no-wrap
7010 msgid ""
7011 " int\n"
7012 " guestfs_fallocate (guestfs_h *g,\n"
7013 "                    const char *path,\n"
7014 "                    int len);\n"
7015 "\n"
7016 msgstr ""
7017
7018 # type: textblock
7019 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1450
7020 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:959
7021 msgid ""
7022 "This command preallocates a file (containing zero bytes) named C<path> of "
7023 "size C<len> bytes.  If the file exists already, it is overwritten."
7024 msgstr ""
7025
7026 # type: textblock
7027 #: ../src/guestfs-actions.pod:1428 ../fish/guestfish-actions.pod:944
7028 msgid ""
7029 "Do not confuse this with the guestfish-specific C<alloc> command which "
7030 "allocates a file in the host and attaches it as a device."
7031 msgstr ""
7032
7033 # type: textblock
7034 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:948
7035 msgid ""
7036 "This function is deprecated.  In new code, use the C<fallocate64> call "
7037 "instead."
7038 msgstr ""
7039
7040 # type: =head2
7041 #: ../src/guestfs-actions.pod:1443
7042 msgid "guestfs_fallocate64"
7043 msgstr ""
7044
7045 # type: verbatim
7046 #: ../src/guestfs-actions.pod:1445
7047 #, no-wrap
7048 msgid ""
7049 " int\n"
7050 " guestfs_fallocate64 (guestfs_h *g,\n"
7051 "                      const char *path,\n"
7052 "                      int64_t len);\n"
7053 "\n"
7054 msgstr ""
7055
7056 # type: textblock
7057 #: ../src/guestfs-actions.pod:1454
7058 msgid ""
7059 "Note that this call allocates disk blocks for the file.  To create a sparse "
7060 "file use C<guestfs_truncate_size> instead."
7061 msgstr ""
7062
7063 # type: textblock
7064 #: ../src/guestfs-actions.pod:1457
7065 msgid ""
7066 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
7067 "oversight it only allowed 30 bit lengths to be specified, effectively "
7068 "limiting the maximum size of files created through that call to 1GB."
7069 msgstr ""
7070
7071 # type: textblock
7072 #: ../src/guestfs-actions.pod:1462 ../fish/guestfish-actions.pod:971
7073 msgid ""
7074 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7075 "commands which create a file in the host and attach it as a device."
7076 msgstr ""
7077
7078 # type: textblock
7079 #: ../src/guestfs-actions.pod:1468
7080 msgid "(Added in 1.3.17)"
7081 msgstr ""
7082
7083 # type: =head2
7084 #: ../src/guestfs-actions.pod:1470
7085 msgid "guestfs_fgrep"
7086 msgstr ""
7087
7088 # type: verbatim
7089 #: ../src/guestfs-actions.pod:1472
7090 #, no-wrap
7091 msgid ""
7092 " char **\n"
7093 " guestfs_fgrep (guestfs_h *g,\n"
7094 "                const char *pattern,\n"
7095 "                const char *path);\n"
7096 "\n"
7097 msgstr ""
7098
7099 # type: textblock
7100 #: ../src/guestfs-actions.pod:1477 ../fish/guestfish-actions.pod:979
7101 msgid ""
7102 "This calls the external C<fgrep> program and returns the matching lines."
7103 msgstr ""
7104
7105 # type: =head2
7106 #: ../src/guestfs-actions.pod:1489
7107 msgid "guestfs_fgrepi"
7108 msgstr ""
7109
7110 # type: verbatim
7111 #: ../src/guestfs-actions.pod:1491
7112 #, no-wrap
7113 msgid ""
7114 " char **\n"
7115 " guestfs_fgrepi (guestfs_h *g,\n"
7116 "                 const char *pattern,\n"
7117 "                 const char *path);\n"
7118 "\n"
7119 msgstr ""
7120
7121 # type: textblock
7122 #: ../src/guestfs-actions.pod:1496 ../fish/guestfish-actions.pod:989
7123 msgid ""
7124 "This calls the external C<fgrep -i> program and returns the matching lines."
7125 msgstr ""
7126
7127 # type: =head2
7128 #: ../src/guestfs-actions.pod:1508
7129 msgid "guestfs_file"
7130 msgstr ""
7131
7132 # type: verbatim
7133 #: ../src/guestfs-actions.pod:1510
7134 #, no-wrap
7135 msgid ""
7136 " char *\n"
7137 " guestfs_file (guestfs_h *g,\n"
7138 "               const char *path);\n"
7139 "\n"
7140 msgstr ""
7141
7142 # type: textblock
7143 #: ../src/guestfs-actions.pod:1514 ../fish/guestfish-actions.pod:999
7144 msgid ""
7145 "This call uses the standard L<file(1)> command to determine the type or "
7146 "contents of the file."
7147 msgstr ""
7148
7149 # type: textblock
7150 #: ../src/guestfs-actions.pod:1517 ../fish/guestfish-actions.pod:1002
7151 msgid ""
7152 "This call will also transparently look inside various types of compressed "
7153 "file."
7154 msgstr ""
7155
7156 # type: textblock
7157 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1005
7158 msgid ""
7159 "The exact command which runs is C<file -zb path>.  Note in particular that "
7160 "the filename is not prepended to the output (the C<-b> option)."
7161 msgstr ""
7162
7163 # type: textblock
7164 #: ../src/guestfs-actions.pod:1524
7165 msgid ""
7166 "This command can also be used on C</dev/> devices (and partitions, LV "
7167 "names).  You can for example use this to determine if a device contains a "
7168 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
7169 msgstr ""
7170
7171 # type: textblock
7172 #: ../src/guestfs-actions.pod:1529 ../fish/guestfish-actions.pod:1014
7173 msgid ""
7174 "If the C<path> does not begin with C</dev/> then this command only works for "
7175 "the content of regular files.  For other file types (directory, symbolic "
7176 "link etc) it will just return the string C<directory> etc."
7177 msgstr ""
7178
7179 # type: =head2
7180 #: ../src/guestfs-actions.pod:1539
7181 msgid "guestfs_file_architecture"
7182 msgstr ""
7183
7184 # type: verbatim
7185 #: ../src/guestfs-actions.pod:1541
7186 #, no-wrap
7187 msgid ""
7188 " char *\n"
7189 " guestfs_file_architecture (guestfs_h *g,\n"
7190 "                            const char *filename);\n"
7191 "\n"
7192 msgstr ""
7193
7194 # type: textblock
7195 #: ../src/guestfs-actions.pod:1545 ../fish/guestfish-actions.pod:1023
7196 msgid ""
7197 "This detects the architecture of the binary C<filename>, and returns it if "
7198 "known."
7199 msgstr ""
7200
7201 # type: textblock
7202 #: ../src/guestfs-actions.pod:1548 ../fish/guestfish-actions.pod:1026
7203 msgid "Currently defined architectures are:"
7204 msgstr ""
7205
7206 # type: =item
7207 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
7208 msgid "\"i386\""
7209 msgstr ""
7210
7211 # type: textblock
7212 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1032
7213 msgid ""
7214 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7215 "irrespective of the precise processor requirements of the binary."
7216 msgstr ""
7217
7218 # type: =item
7219 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
7220 msgid "\"x86_64\""
7221 msgstr ""
7222
7223 # type: textblock
7224 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
7225 msgid "64 bit x86-64."
7226 msgstr ""
7227
7228 # type: =item
7229 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
7230 msgid "\"sparc\""
7231 msgstr ""
7232
7233 # type: textblock
7234 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
7235 msgid "32 bit SPARC."
7236 msgstr ""
7237
7238 # type: =item
7239 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
7240 msgid "\"sparc64\""
7241 msgstr ""
7242
7243 # type: textblock
7244 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
7245 msgid "64 bit SPARC V9 and above."
7246 msgstr ""
7247
7248 # type: =item
7249 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
7250 msgid "\"ia64\""
7251 msgstr ""
7252
7253 # type: textblock
7254 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
7255 msgid "Intel Itanium."
7256 msgstr ""
7257
7258 # type: =item
7259 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
7260 msgid "\"ppc\""
7261 msgstr ""
7262
7263 # type: textblock
7264 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
7265 msgid "32 bit Power PC."
7266 msgstr ""
7267
7268 # type: =item
7269 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
7270 msgid "\"ppc64\""
7271 msgstr ""
7272
7273 # type: textblock
7274 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1057
7275 msgid "64 bit Power PC."
7276 msgstr ""
7277
7278 # type: textblock
7279 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
7280 msgid "Libguestfs may return other architecture strings in future."
7281 msgstr ""
7282
7283 # type: textblock
7284 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1063
7285 msgid "The function works on at least the following types of files:"
7286 msgstr ""
7287
7288 # type: textblock
7289 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1069
7290 msgid "many types of Un*x and Linux binary"
7291 msgstr ""
7292
7293 # type: textblock
7294 #: ../src/guestfs-actions.pod:1595 ../fish/guestfish-actions.pod:1073
7295 msgid "many types of Un*x and Linux shared library"
7296 msgstr ""
7297
7298 # type: textblock
7299 #: ../src/guestfs-actions.pod:1599 ../fish/guestfish-actions.pod:1077
7300 msgid "Windows Win32 and Win64 binaries"
7301 msgstr ""
7302
7303 # type: textblock
7304 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
7305 msgid "Windows Win32 and Win64 DLLs"
7306 msgstr ""
7307
7308 # type: textblock
7309 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
7310 msgid "Win32 binaries and DLLs return C<i386>."
7311 msgstr ""
7312
7313 # type: textblock
7314 #: ../src/guestfs-actions.pod:1607 ../fish/guestfish-actions.pod:1085
7315 msgid "Win64 binaries and DLLs return C<x86_64>."
7316 msgstr ""
7317
7318 # type: textblock
7319 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1089
7320 msgid "Linux kernel modules"
7321 msgstr ""
7322
7323 # type: textblock
7324 #: ../src/guestfs-actions.pod:1615 ../fish/guestfish-actions.pod:1093
7325 msgid "Linux new-style initrd images"
7326 msgstr ""
7327
7328 # type: textblock
7329 #: ../src/guestfs-actions.pod:1619 ../fish/guestfish-actions.pod:1097
7330 msgid "some non-x86 Linux vmlinuz kernels"
7331 msgstr ""
7332
7333 # type: textblock
7334 #: ../src/guestfs-actions.pod:1623 ../fish/guestfish-actions.pod:1101
7335 msgid "What it can't do currently:"
7336 msgstr ""
7337
7338 # type: textblock
7339 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1107
7340 msgid "static libraries (libfoo.a)"
7341 msgstr ""
7342
7343 # type: textblock
7344 #: ../src/guestfs-actions.pod:1633 ../fish/guestfish-actions.pod:1111
7345 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7346 msgstr ""
7347
7348 # type: textblock
7349 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
7350 msgid "x86 Linux vmlinuz kernels"
7351 msgstr ""
7352
7353 # type: textblock
7354 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1117
7355 msgid ""
7356 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7357 "compressed code, and are horribly hard to unpack.  If you want to find the "
7358 "architecture of a kernel, use the architecture of the associated initrd or "
7359 "kernel module(s) instead."
7360 msgstr ""
7361
7362 # type: textblock
7363 #: ../src/guestfs-actions.pod:1649 ../src/guestfs-actions.pod:1812
7364 #: ../src/guestfs-actions.pod:1829 ../src/guestfs-actions.pod:2508
7365 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
7366 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2685
7367 #: ../src/guestfs-actions.pod:2718 ../src/guestfs-actions.pod:2802
7368 #: ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:3037
7369 #: ../src/guestfs-actions.pod:3169
7370 msgid "(Added in 1.5.3)"
7371 msgstr ""
7372
7373 # type: =head2
7374 #: ../src/guestfs-actions.pod:1651
7375 msgid "guestfs_filesize"
7376 msgstr ""
7377
7378 # type: verbatim
7379 #: ../src/guestfs-actions.pod:1653
7380 #, no-wrap
7381 msgid ""
7382 " int64_t\n"
7383 " guestfs_filesize (guestfs_h *g,\n"
7384 "                   const char *file);\n"
7385 "\n"
7386 msgstr ""
7387
7388 # type: textblock
7389 #: ../src/guestfs-actions.pod:1657 ../fish/guestfish-actions.pod:1128
7390 msgid "This command returns the size of C<file> in bytes."
7391 msgstr ""
7392
7393 # type: textblock
7394 #: ../src/guestfs-actions.pod:1659
7395 msgid ""
7396 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
7397 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
7398 "devices, use C<guestfs_blockdev_getsize64>."
7399 msgstr ""
7400
7401 # type: textblock
7402 #: ../src/guestfs-actions.pod:1665
7403 msgid "(Added in 1.0.82)"
7404 msgstr ""
7405
7406 # type: =head2
7407 #: ../src/guestfs-actions.pod:1667
7408 msgid "guestfs_fill"
7409 msgstr ""
7410
7411 # type: verbatim
7412 #: ../src/guestfs-actions.pod:1669
7413 #, no-wrap
7414 msgid ""
7415 " int\n"
7416 " guestfs_fill (guestfs_h *g,\n"
7417 "               int c,\n"
7418 "               int len,\n"
7419 "               const char *path);\n"
7420 "\n"
7421 msgstr ""
7422
7423 # type: textblock
7424 #: ../src/guestfs-actions.pod:1675 ../fish/guestfish-actions.pod:1138
7425 msgid ""
7426 "This command creates a new file called C<path>.  The initial content of the "
7427 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7428 "[0..255]>."
7429 msgstr ""
7430
7431 # type: textblock
7432 #: ../src/guestfs-actions.pod:1679
7433 msgid ""
7434 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7435 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
7436 "bytes use C<guestfs_fill_pattern>."
7437 msgstr ""
7438
7439 # type: textblock
7440 #: ../src/guestfs-actions.pod:1691
7441 msgid "(Added in 1.0.79)"
7442 msgstr ""
7443
7444 # type: =head2
7445 #: ../src/guestfs-actions.pod:1693
7446 msgid "guestfs_fill_pattern"
7447 msgstr ""
7448
7449 # type: verbatim
7450 #: ../src/guestfs-actions.pod:1695
7451 #, no-wrap
7452 msgid ""
7453 " int\n"
7454 " guestfs_fill_pattern (guestfs_h *g,\n"
7455 "                       const char *pattern,\n"
7456 "                       int len,\n"
7457 "                       const char *path);\n"
7458 "\n"
7459 msgstr ""
7460
7461 # type: textblock
7462 #: ../src/guestfs-actions.pod:1701
7463 msgid ""
7464 "This function is like C<guestfs_fill> except that it creates a new file of "
7465 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
7466 "pattern is truncated if necessary to ensure the length of the file is "
7467 "exactly C<len> bytes."
7468 msgstr ""
7469
7470 # type: textblock
7471 #: ../src/guestfs-actions.pod:1713
7472 msgid "(Added in 1.3.12)"
7473 msgstr ""
7474
7475 # type: =head2
7476 #: ../src/guestfs-actions.pod:1715
7477 msgid "guestfs_find"
7478 msgstr ""
7479
7480 # type: verbatim
7481 #: ../src/guestfs-actions.pod:1717
7482 #, no-wrap
7483 msgid ""
7484 " char **\n"
7485 " guestfs_find (guestfs_h *g,\n"
7486 "               const char *directory);\n"
7487 "\n"
7488 msgstr ""
7489
7490 # type: textblock
7491 #: ../src/guestfs-actions.pod:1721 ../fish/guestfish-actions.pod:1160
7492 msgid ""
7493 "This command lists out all files and directories, recursively, starting at "
7494 "C<directory>.  It is essentially equivalent to running the shell command "
7495 "C<find directory -print> but some post-processing happens on the output, "
7496 "described below."
7497 msgstr ""
7498
7499 # type: textblock
7500 #: ../src/guestfs-actions.pod:1726 ../fish/guestfish-actions.pod:1165
7501 msgid ""
7502 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7503 "structure was:"
7504 msgstr ""
7505
7506 # type: verbatim
7507 #: ../src/guestfs-actions.pod:1729 ../fish/guestfish-actions.pod:1168
7508 #, no-wrap
7509 msgid ""
7510 " /tmp/a\n"
7511 " /tmp/b\n"
7512 " /tmp/c/d\n"
7513 "\n"
7514 msgstr ""
7515
7516 # type: textblock
7517 #: ../src/guestfs-actions.pod:1733
7518 msgid ""
7519 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
7520 msgstr ""
7521
7522 # type: verbatim
7523 #: ../src/guestfs-actions.pod:1736 ../fish/guestfish-actions.pod:1175
7524 #, no-wrap
7525 msgid ""
7526 " a\n"
7527 " b\n"
7528 " c\n"
7529 " c/d\n"
7530 "\n"
7531 msgstr ""
7532
7533 # type: textblock
7534 #: ../src/guestfs-actions.pod:1741 ../fish/guestfish-actions.pod:1180
7535 msgid "If C<directory> is not a directory, then this command returns an error."
7536 msgstr ""
7537
7538 # type: textblock
7539 #: ../src/guestfs-actions.pod:1744 ../fish/guestfish-actions.pod:1183
7540 msgid "The returned list is sorted."
7541 msgstr ""
7542
7543 # type: textblock
7544 #: ../src/guestfs-actions.pod:1746
7545 msgid "See also C<guestfs_find0>."
7546 msgstr ""
7547
7548 # type: textblock
7549 #: ../src/guestfs-actions.pod:1755 ../src/guestfs-actions.pod:3856
7550 #: ../src/guestfs-actions.pod:5383
7551 msgid "(Added in 1.0.27)"
7552 msgstr ""
7553
7554 # type: =head2
7555 #: ../src/guestfs-actions.pod:1757
7556 msgid "guestfs_find0"
7557 msgstr ""
7558
7559 # type: verbatim
7560 #: ../src/guestfs-actions.pod:1759
7561 #, no-wrap
7562 msgid ""
7563 " int\n"
7564 " guestfs_find0 (guestfs_h *g,\n"
7565 "                const char *directory,\n"
7566 "                const char *files);\n"
7567 "\n"
7568 msgstr ""
7569
7570 # type: textblock
7571 #: ../src/guestfs-actions.pod:1764 ../fish/guestfish-actions.pod:1194
7572 msgid ""
7573 "This command lists out all files and directories, recursively, starting at "
7574 "C<directory>, placing the resulting list in the external file called "
7575 "C<files>."
7576 msgstr ""
7577
7578 # type: textblock
7579 #: ../src/guestfs-actions.pod:1768
7580 msgid ""
7581 "This command works the same way as C<guestfs_find> with the following "
7582 "exceptions:"
7583 msgstr ""
7584
7585 # type: textblock
7586 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1205
7587 msgid "The resulting list is written to an external file."
7588 msgstr ""
7589
7590 # type: textblock
7591 #: ../src/guestfs-actions.pod:1779 ../fish/guestfish-actions.pod:1209
7592 msgid ""
7593 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7594 "L<find(1)> option I<-print0>."
7595 msgstr ""
7596
7597 # type: textblock
7598 #: ../src/guestfs-actions.pod:1784 ../fish/guestfish-actions.pod:1214
7599 msgid "This command is not limited in the number of names that it can return."
7600 msgstr ""
7601
7602 # type: textblock
7603 #: ../src/guestfs-actions.pod:1789 ../fish/guestfish-actions.pod:1219
7604 msgid "The result list is not sorted."
7605 msgstr ""
7606
7607 # type: textblock
7608 #: ../src/guestfs-actions.pod:1795
7609 msgid "(Added in 1.0.74)"
7610 msgstr ""
7611
7612 # type: =head2
7613 #: ../src/guestfs-actions.pod:1797
7614 msgid "guestfs_findfs_label"
7615 msgstr ""
7616
7617 # type: verbatim
7618 #: ../src/guestfs-actions.pod:1799
7619 #, no-wrap
7620 msgid ""
7621 " char *\n"
7622 " guestfs_findfs_label (guestfs_h *g,\n"
7623 "                       const char *label);\n"
7624 "\n"
7625 msgstr ""
7626
7627 # type: textblock
7628 #: ../src/guestfs-actions.pod:1803 ../fish/guestfish-actions.pod:1229
7629 msgid ""
7630 "This command searches the filesystems and returns the one which has the "
7631 "given label.  An error is returned if no such filesystem can be found."
7632 msgstr ""
7633
7634 # type: textblock
7635 #: ../src/guestfs-actions.pod:1807
7636 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
7637 msgstr ""
7638
7639 # type: =head2
7640 #: ../src/guestfs-actions.pod:1814
7641 msgid "guestfs_findfs_uuid"
7642 msgstr ""
7643
7644 # type: verbatim
7645 #: ../src/guestfs-actions.pod:1816
7646 #, no-wrap
7647 msgid ""
7648 " char *\n"
7649 " guestfs_findfs_uuid (guestfs_h *g,\n"
7650 "                      const char *uuid);\n"
7651 "\n"
7652 msgstr ""
7653
7654 # type: textblock
7655 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
7656 msgid ""
7657 "This command searches the filesystems and returns the one which has the "
7658 "given UUID.  An error is returned if no such filesystem can be found."
7659 msgstr ""
7660
7661 # type: textblock
7662 #: ../src/guestfs-actions.pod:1824
7663 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
7664 msgstr ""
7665
7666 # type: =head2
7667 #: ../src/guestfs-actions.pod:1831
7668 msgid "guestfs_fsck"
7669 msgstr ""
7670
7671 # type: verbatim
7672 #: ../src/guestfs-actions.pod:1833
7673 #, no-wrap
7674 msgid ""
7675 " int\n"
7676 " guestfs_fsck (guestfs_h *g,\n"
7677 "               const char *fstype,\n"
7678 "               const char *device);\n"
7679 "\n"
7680 msgstr ""
7681
7682 # type: textblock
7683 #: ../src/guestfs-actions.pod:1838 ../fish/guestfish-actions.pod:1249
7684 msgid ""
7685 "This runs the filesystem checker (fsck) on C<device> which should have "
7686 "filesystem type C<fstype>."
7687 msgstr ""
7688
7689 # type: textblock
7690 #: ../src/guestfs-actions.pod:1841 ../fish/guestfish-actions.pod:1252
7691 msgid ""
7692 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7693 "codes from C<fsck>."
7694 msgstr ""
7695
7696 # type: textblock
7697 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:1261
7698 msgid "Multiple status codes can be summed together."
7699 msgstr ""
7700
7701 # type: textblock
7702 #: ../src/guestfs-actions.pod:1854 ../fish/guestfish-actions.pod:1265
7703 msgid ""
7704 "A non-zero return code can mean \"success\", for example if errors have been "
7705 "corrected on the filesystem."
7706 msgstr ""
7707
7708 # type: textblock
7709 #: ../src/guestfs-actions.pod:1859 ../fish/guestfish-actions.pod:1270
7710 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7711 msgstr ""
7712
7713 # type: textblock
7714 #: ../src/guestfs-actions.pod:1864 ../fish/guestfish-actions.pod:1275
7715 msgid ""
7716 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7717 msgstr ""
7718
7719 # type: textblock
7720 #: ../src/guestfs-actions.pod:1868 ../src/guestfs-actions.pod:7030
7721 msgid "(Added in 1.0.16)"
7722 msgstr ""
7723
7724 # type: =head2
7725 #: ../src/guestfs-actions.pod:1870
7726 msgid "guestfs_get_append"
7727 msgstr ""
7728
7729 # type: verbatim
7730 #: ../src/guestfs-actions.pod:1872
7731 #, no-wrap
7732 msgid ""
7733 " const char *\n"
7734 " guestfs_get_append (guestfs_h *g);\n"
7735 "\n"
7736 msgstr ""
7737
7738 # type: textblock
7739 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1281
7740 msgid ""
7741 "Return the additional kernel options which are added to the guest kernel "
7742 "command line."
7743 msgstr ""
7744
7745 # type: textblock
7746 #: ../src/guestfs-actions.pod:1878 ../fish/guestfish-actions.pod:1284
7747 msgid "If C<NULL> then no options are added."
7748 msgstr ""
7749
7750 # type: textblock
7751 #: ../src/guestfs-actions.pod:1880
7752 msgid ""
7753 "This function returns a string which may be NULL.  There is no way to return "
7754 "an error from this function.  The string is owned by the guest handle and "
7755 "must I<not> be freed."
7756 msgstr ""
7757
7758 # type: textblock
7759 #: ../src/guestfs-actions.pod:1884 ../src/guestfs-actions.pod:5061
7760 #: ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5892
7761 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5927
7762 #: ../src/guestfs-actions.pod:5944 ../src/guestfs-actions.pod:6701
7763 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:7073
7764 msgid "(Added in 1.0.26)"
7765 msgstr ""
7766
7767 # type: =head2
7768 #: ../src/guestfs-actions.pod:1886
7769 msgid "guestfs_get_autosync"
7770 msgstr ""
7771
7772 # type: verbatim
7773 #: ../src/guestfs-actions.pod:1888
7774 #, no-wrap
7775 msgid ""
7776 " int\n"
7777 " guestfs_get_autosync (guestfs_h *g);\n"
7778 "\n"
7779 msgstr ""
7780
7781 # type: textblock
7782 #: ../src/guestfs-actions.pod:1891 ../fish/guestfish-actions.pod:1290
7783 msgid "Get the autosync flag."
7784 msgstr ""
7785
7786 # type: =head2
7787 #: ../src/guestfs-actions.pod:1897
7788 msgid "guestfs_get_direct"
7789 msgstr ""
7790
7791 # type: verbatim
7792 #: ../src/guestfs-actions.pod:1899
7793 #, no-wrap
7794 msgid ""
7795 " int\n"
7796 " guestfs_get_direct (guestfs_h *g);\n"
7797 "\n"
7798 msgstr ""
7799
7800 # type: textblock
7801 #: ../src/guestfs-actions.pod:1902 ../fish/guestfish-actions.pod:1296
7802 msgid "Return the direct appliance mode flag."
7803 msgstr ""
7804
7805 # type: textblock
7806 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:5565
7807 msgid "(Added in 1.0.72)"
7808 msgstr ""
7809
7810 # type: =head2
7811 #: ../src/guestfs-actions.pod:1908
7812 msgid "guestfs_get_e2label"
7813 msgstr ""
7814
7815 # type: verbatim
7816 #: ../src/guestfs-actions.pod:1910
7817 #, no-wrap
7818 msgid ""
7819 " char *\n"
7820 " guestfs_get_e2label (guestfs_h *g,\n"
7821 "                      const char *device);\n"
7822 "\n"
7823 msgstr ""
7824
7825 # type: textblock
7826 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1302
7827 msgid ""
7828 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7829 msgstr ""
7830
7831 # type: textblock
7832 #: ../src/guestfs-actions.pod:1920 ../fish/guestfish-actions.pod:1305
7833 msgid ""
7834 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
7835 msgstr ""
7836
7837 # type: textblock
7838 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:1948
7839 #: ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5602
7840 msgid "(Added in 1.0.15)"
7841 msgstr ""
7842
7843 # type: =head2
7844 #: ../src/guestfs-actions.pod:1929
7845 msgid "guestfs_get_e2uuid"
7846 msgstr ""
7847
7848 # type: verbatim
7849 #: ../src/guestfs-actions.pod:1931
7850 #, no-wrap
7851 msgid ""
7852 " char *\n"
7853 " guestfs_get_e2uuid (guestfs_h *g,\n"
7854 "                     const char *device);\n"
7855 "\n"
7856 msgstr ""
7857
7858 # type: textblock
7859 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1316
7860 msgid ""
7861 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7862 msgstr ""
7863
7864 # type: textblock
7865 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1319
7866 msgid ""
7867 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
7868 msgstr ""
7869
7870 # type: =head2
7871 #: ../src/guestfs-actions.pod:1950
7872 msgid "guestfs_get_memsize"
7873 msgstr ""
7874
7875 # type: verbatim
7876 #: ../src/guestfs-actions.pod:1952
7877 #, no-wrap
7878 msgid ""
7879 " int\n"
7880 " guestfs_get_memsize (guestfs_h *g);\n"
7881 "\n"
7882 msgstr ""
7883
7884 # type: textblock
7885 #: ../src/guestfs-actions.pod:1955 ../fish/guestfish-actions.pod:1330
7886 msgid ""
7887 "This gets the memory size in megabytes allocated to the qemu subprocess."
7888 msgstr ""
7889
7890 # type: textblock
7891 #: ../src/guestfs-actions.pod:1958
7892 msgid ""
7893 "If C<guestfs_set_memsize> was not called on this handle, and if "
7894 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7895 "value for memsize."
7896 msgstr ""
7897
7898 # type: textblock
7899 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:2043
7900 #: ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5725
7901 #: ../fish/guestfish-actions.pod:1337 ../fish/guestfish-actions.pod:1388
7902 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:3838
7903 msgid ""
7904 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7905 msgstr ""
7906
7907 # type: textblock
7908 #: ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:4147
7909 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4347
7910 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4378
7911 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4408
7912 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5623
7913 #: ../src/guestfs-actions.pod:5866 ../src/guestfs-actions.pod:6467
7914 msgid "(Added in 1.0.55)"
7915 msgstr ""
7916
7917 # type: =head2
7918 #: ../src/guestfs-actions.pod:1969
7919 msgid "guestfs_get_network"
7920 msgstr ""
7921
7922 # type: verbatim
7923 #: ../src/guestfs-actions.pod:1971
7924 #, no-wrap
7925 msgid ""
7926 " int\n"
7927 " guestfs_get_network (guestfs_h *g);\n"
7928 "\n"
7929 msgstr ""
7930
7931 # type: textblock
7932 #: ../src/guestfs-actions.pod:1974 ../fish/guestfish-actions.pod:1344
7933 msgid "This returns the enable network flag."
7934 msgstr ""
7935
7936 # type: textblock
7937 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:5642
7938 msgid "(Added in 1.5.4)"
7939 msgstr ""
7940
7941 # type: =head2
7942 #: ../src/guestfs-actions.pod:1980
7943 msgid "guestfs_get_path"
7944 msgstr ""
7945
7946 # type: verbatim
7947 #: ../src/guestfs-actions.pod:1982
7948 #, no-wrap
7949 msgid ""
7950 " const char *\n"
7951 " guestfs_get_path (guestfs_h *g);\n"
7952 "\n"
7953 msgstr ""
7954
7955 # type: textblock
7956 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
7957 msgid "Return the current search path."
7958 msgstr ""
7959
7960 # type: textblock
7961 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1352
7962 msgid ""
7963 "This is always non-NULL.  If it wasn't set already, then this will return "
7964 "the default path."
7965 msgstr ""
7966
7967 # type: textblock
7968 #: ../src/guestfs-actions.pod:1990 ../src/guestfs-actions.pod:2019
7969 msgid ""
7970 "This function returns a string, or NULL on error.  The string is owned by "
7971 "the guest handle and must I<not> be freed."
7972 msgstr ""
7973
7974 # type: =head2
7975 #: ../src/guestfs-actions.pod:1995
7976 msgid "guestfs_get_pid"
7977 msgstr ""
7978
7979 # type: verbatim
7980 #: ../src/guestfs-actions.pod:1997
7981 #, no-wrap
7982 msgid ""
7983 " int\n"
7984 " guestfs_get_pid (guestfs_h *g);\n"
7985 "\n"
7986 msgstr ""
7987
7988 # type: textblock
7989 #: ../src/guestfs-actions.pod:2000 ../fish/guestfish-actions.pod:1361
7990 msgid ""
7991 "Return the process ID of the qemu subprocess.  If there is no qemu "
7992 "subprocess, then this will return an error."
7993 msgstr ""
7994
7995 # type: textblock
7996 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1364
7997 msgid "This is an internal call used for debugging and testing."
7998 msgstr ""
7999
8000 # type: textblock
8001 #: ../src/guestfs-actions.pod:2007
8002 msgid "(Added in 1.0.56)"
8003 msgstr ""
8004
8005 # type: =head2
8006 #: ../src/guestfs-actions.pod:2009
8007 msgid "guestfs_get_qemu"
8008 msgstr ""
8009
8010 # type: verbatim
8011 #: ../src/guestfs-actions.pod:2011
8012 #, no-wrap
8013 msgid ""
8014 " const char *\n"
8015 " guestfs_get_qemu (guestfs_h *g);\n"
8016 "\n"
8017 msgstr ""
8018
8019 # type: textblock
8020 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
8021 msgid "Return the current qemu binary."
8022 msgstr ""
8023
8024 # type: textblock
8025 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
8026 msgid ""
8027 "This is always non-NULL.  If it wasn't set already, then this will return "
8028 "the default qemu binary name."
8029 msgstr ""
8030
8031 # type: textblock
8032 #: ../src/guestfs-actions.pod:2022 ../src/guestfs-actions.pod:5687
8033 msgid "(Added in 1.0.6)"
8034 msgstr ""
8035
8036 # type: =head2
8037 #: ../src/guestfs-actions.pod:2024
8038 msgid "guestfs_get_recovery_proc"
8039 msgstr ""
8040
8041 # type: verbatim
8042 #: ../src/guestfs-actions.pod:2026
8043 #, no-wrap
8044 msgid ""
8045 " int\n"
8046 " guestfs_get_recovery_proc (guestfs_h *g);\n"
8047 "\n"
8048 msgstr ""
8049
8050 # type: textblock
8051 #: ../src/guestfs-actions.pod:2029 ../fish/guestfish-actions.pod:1379
8052 msgid "Return the recovery process enabled flag."
8053 msgstr ""
8054
8055 # type: textblock
8056 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:3259
8057 #: ../src/guestfs-actions.pod:3554 ../src/guestfs-actions.pod:3954
8058 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4991
8059 #: ../src/guestfs-actions.pod:5334 ../src/guestfs-actions.pod:5711
8060 #: ../src/guestfs-actions.pod:6370 ../src/guestfs-actions.pod:6390
8061 #: ../src/guestfs-actions.pod:6582
8062 msgid "(Added in 1.0.77)"
8063 msgstr ""
8064
8065 # type: =head2
8066 #: ../src/guestfs-actions.pod:2035
8067 msgid "guestfs_get_selinux"
8068 msgstr ""
8069
8070 # type: verbatim
8071 #: ../src/guestfs-actions.pod:2037
8072 #, no-wrap
8073 msgid ""
8074 " int\n"
8075 " guestfs_get_selinux (guestfs_h *g);\n"
8076 "\n"
8077 msgstr ""
8078
8079 # type: textblock
8080 #: ../src/guestfs-actions.pod:2040
8081 msgid ""
8082 "This returns the current setting of the selinux flag which is passed to the "
8083 "appliance at boot time.  See C<guestfs_set_selinux>."
8084 msgstr ""
8085
8086 # type: textblock
8087 #: ../src/guestfs-actions.pod:2048 ../src/guestfs-actions.pod:2111
8088 #: ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5784
8089 msgid "(Added in 1.0.67)"
8090 msgstr ""
8091
8092 # type: =head2
8093 #: ../src/guestfs-actions.pod:2050
8094 msgid "guestfs_get_state"
8095 msgstr ""
8096
8097 # type: verbatim
8098 #: ../src/guestfs-actions.pod:2052
8099 #, no-wrap
8100 msgid ""
8101 " int\n"
8102 " guestfs_get_state (guestfs_h *g);\n"
8103 "\n"
8104 msgstr ""
8105
8106 # type: textblock
8107 #: ../src/guestfs-actions.pod:2055 ../fish/guestfish-actions.pod:1395
8108 msgid ""
8109 "This returns the current state as an opaque integer.  This is only useful "
8110 "for printing debug and internal error messages."
8111 msgstr ""
8112
8113 # type: textblock
8114 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:3062
8115 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3152
8116 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:1398
8117 #: ../fish/guestfish-actions.pod:2133 ../fish/guestfish-actions.pod:2151
8118 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2205
8119 msgid "For more information on states, see L<guestfs(3)>."
8120 msgstr ""
8121
8122 # type: =head2
8123 #: ../src/guestfs-actions.pod:2064
8124 msgid "guestfs_get_trace"
8125 msgstr ""
8126
8127 # type: verbatim
8128 #: ../src/guestfs-actions.pod:2066
8129 #, no-wrap
8130 msgid ""
8131 " int\n"
8132 " guestfs_get_trace (guestfs_h *g);\n"
8133 "\n"
8134 msgstr ""
8135
8136 # type: textblock
8137 #: ../src/guestfs-actions.pod:2069 ../fish/guestfish-actions.pod:1404
8138 msgid "Return the command trace flag."
8139 msgstr ""
8140
8141 # type: =head2
8142 #: ../src/guestfs-actions.pod:2075
8143 msgid "guestfs_get_umask"
8144 msgstr ""
8145
8146 # type: verbatim
8147 #: ../src/guestfs-actions.pod:2077
8148 #, no-wrap
8149 msgid ""
8150 " int\n"
8151 " guestfs_get_umask (guestfs_h *g);\n"
8152 "\n"
8153 msgstr ""
8154
8155 # type: textblock
8156 #: ../src/guestfs-actions.pod:2080
8157 msgid ""
8158 "Return the current umask.  By default the umask is C<022> unless it has been "
8159 "set by calling C<guestfs_umask>."
8160 msgstr ""
8161
8162 # type: =head2
8163 #: ../src/guestfs-actions.pod:2087
8164 msgid "guestfs_get_verbose"
8165 msgstr ""
8166
8167 # type: verbatim
8168 #: ../src/guestfs-actions.pod:2089
8169 #, no-wrap
8170 msgid ""
8171 " int\n"
8172 " guestfs_get_verbose (guestfs_h *g);\n"
8173 "\n"
8174 msgstr ""
8175
8176 # type: textblock
8177 #: ../src/guestfs-actions.pod:2092 ../fish/guestfish-actions.pod:1417
8178 msgid "This returns the verbose messages flag."
8179 msgstr ""
8180
8181 # type: =head2
8182 #: ../src/guestfs-actions.pod:2098
8183 msgid "guestfs_getcon"
8184 msgstr ""
8185
8186 # type: verbatim
8187 #: ../src/guestfs-actions.pod:2100
8188 #, no-wrap
8189 msgid ""
8190 " char *\n"
8191 " guestfs_getcon (guestfs_h *g);\n"
8192 "\n"
8193 msgstr ""
8194
8195 # type: textblock
8196 #: ../src/guestfs-actions.pod:2103 ../fish/guestfish-actions.pod:1423
8197 msgid "This gets the SELinux security context of the daemon."
8198 msgstr ""
8199
8200 # type: textblock
8201 #: ../src/guestfs-actions.pod:2105
8202 msgid ""
8203 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
8204 msgstr ""
8205
8206 # type: =head2
8207 #: ../src/guestfs-actions.pod:2113
8208 msgid "guestfs_getxattr"
8209 msgstr ""
8210
8211 # type: verbatim
8212 #: ../src/guestfs-actions.pod:2115
8213 #, no-wrap
8214 msgid ""
8215 " char *\n"
8216 " guestfs_getxattr (guestfs_h *g,\n"
8217 "                   const char *path,\n"
8218 "                   const char *name,\n"
8219 "                   size_t *size_r);\n"
8220 "\n"
8221 msgstr ""
8222
8223 # type: textblock
8224 #: ../src/guestfs-actions.pod:2121
8225 msgid ""
8226 "Get a single extended attribute from file C<path> named C<name>.  This call "
8227 "follows symlinks.  If you want to lookup an extended attribute for the "
8228 "symlink itself, use C<guestfs_lgetxattr>."
8229 msgstr ""
8230
8231 # type: textblock
8232 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:3273
8233 msgid ""
8234 "Normally it is better to get all extended attributes from a file in one go "
8235 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
8236 "implementations are buggy and do not provide a way to list out attributes.  "
8237 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
8238 "extended attributes you want in advance and call this function."
8239 msgstr ""
8240
8241 # type: textblock
8242 #: ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:3280
8243 #: ../fish/guestfish-actions.pod:1443 ../fish/guestfish-actions.pod:2270
8244 msgid ""
8245 "Extended attribute values are blobs of binary data.  If there is no extended "
8246 "attribute named C<name>, this returns an error."
8247 msgstr ""
8248
8249 # type: textblock
8250 #: ../src/guestfs-actions.pod:2135
8251 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
8252 msgstr ""
8253
8254 # type: textblock
8255 #: ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:2326
8256 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:4984
8257 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5191
8258 msgid ""
8259 "This function returns a buffer, or NULL on error.  The size of the returned "
8260 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
8261 "after use>."
8262 msgstr ""
8263
8264 # type: =head2
8265 #: ../src/guestfs-actions.pod:2141
8266 msgid "guestfs_getxattrs"
8267 msgstr ""
8268
8269 # type: verbatim
8270 #: ../src/guestfs-actions.pod:2143
8271 #, no-wrap
8272 msgid ""
8273 " struct guestfs_xattr_list *\n"
8274 " guestfs_getxattrs (guestfs_h *g,\n"
8275 "                    const char *path);\n"
8276 "\n"
8277 msgstr ""
8278
8279 # type: textblock
8280 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1452
8281 msgid ""
8282 "This call lists the extended attributes of the file or directory C<path>."
8283 msgstr ""
8284
8285 # type: textblock
8286 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1455
8287 msgid ""
8288 "At the system call level, this is a combination of the L<listxattr(2)> and "
8289 "L<getxattr(2)> calls."
8290 msgstr ""
8291
8292 # type: textblock
8293 #: ../src/guestfs-actions.pod:2153
8294 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
8295 msgstr ""
8296
8297 # type: textblock
8298 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3299
8299 #: ../src/guestfs-actions.pod:3950
8300 msgid ""
8301 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
8302 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
8303 msgstr ""
8304
8305 # type: textblock
8306 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3303
8307 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3504
8308 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5803
8309 #: ../src/guestfs-actions.pod:7138
8310 msgid "(Added in 1.0.59)"
8311 msgstr ""
8312
8313 # type: =head2
8314 #: ../src/guestfs-actions.pod:2161
8315 msgid "guestfs_glob_expand"
8316 msgstr ""
8317
8318 # type: verbatim
8319 #: ../src/guestfs-actions.pod:2163
8320 #, no-wrap
8321 msgid ""
8322 " char **\n"
8323 " guestfs_glob_expand (guestfs_h *g,\n"
8324 "                      const char *pattern);\n"
8325 "\n"
8326 msgstr ""
8327
8328 # type: textblock
8329 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1464
8330 msgid ""
8331 "This command searches for all the pathnames matching C<pattern> according to "
8332 "the wildcard expansion rules used by the shell."
8333 msgstr ""
8334
8335 # type: textblock
8336 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1468
8337 msgid ""
8338 "If no paths match, then this returns an empty list (note: not an error)."
8339 msgstr ""
8340
8341 # type: textblock
8342 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1471
8343 msgid ""
8344 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8345 "GLOB_BRACE>.  See that manual page for more details."
8346 msgstr ""
8347
8348 # type: textblock
8349 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:5968
8350 #: ../src/guestfs-actions.pod:5985
8351 msgid "(Added in 1.0.50)"
8352 msgstr ""
8353
8354 # type: =head2
8355 #: ../src/guestfs-actions.pod:2184
8356 msgid "guestfs_grep"
8357 msgstr ""
8358
8359 # type: verbatim
8360 #: ../src/guestfs-actions.pod:2186
8361 #, no-wrap
8362 msgid ""
8363 " char **\n"
8364 " guestfs_grep (guestfs_h *g,\n"
8365 "               const char *regex,\n"
8366 "               const char *path);\n"
8367 "\n"
8368 msgstr ""
8369
8370 # type: textblock
8371 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1479
8372 msgid "This calls the external C<grep> program and returns the matching lines."
8373 msgstr ""
8374
8375 # type: =head2
8376 #: ../src/guestfs-actions.pod:2203
8377 msgid "guestfs_grepi"
8378 msgstr ""
8379
8380 # type: verbatim
8381 #: ../src/guestfs-actions.pod:2205
8382 #, no-wrap
8383 msgid ""
8384 " char **\n"
8385 " guestfs_grepi (guestfs_h *g,\n"
8386 "                const char *regex,\n"
8387 "                const char *path);\n"
8388 "\n"
8389 msgstr ""
8390
8391 # type: textblock
8392 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1489
8393 msgid ""
8394 "This calls the external C<grep -i> program and returns the matching lines."
8395 msgstr ""
8396
8397 # type: =head2
8398 #: ../src/guestfs-actions.pod:2222
8399 msgid "guestfs_grub_install"
8400 msgstr ""
8401
8402 # type: verbatim
8403 #: ../src/guestfs-actions.pod:2224
8404 #, no-wrap
8405 msgid ""
8406 " int\n"
8407 " guestfs_grub_install (guestfs_h *g,\n"
8408 "                       const char *root,\n"
8409 "                       const char *device);\n"
8410 "\n"
8411 msgstr ""
8412
8413 # type: textblock
8414 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1499
8415 msgid ""
8416 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
8417 "the root directory being C<root>."
8418 msgstr ""
8419
8420 # type: textblock
8421 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1502
8422 msgid ""
8423 "Note: If grub-install reports the error \"No suitable drive was found in the "
8424 "generated device map.\" it may be that you need to create a C</boot/grub/"
8425 "device.map> file first that contains the mapping between grub device names "
8426 "and Linux device names.  It is usually sufficient to create a file "
8427 "containing:"
8428 msgstr ""
8429
8430 # type: verbatim
8431 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1509
8432 #, no-wrap
8433 msgid ""
8434 " (hd0) /dev/vda\n"
8435 "\n"
8436 msgstr ""
8437
8438 # type: textblock
8439 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1511
8440 msgid "replacing C</dev/vda> with the name of the installation device."
8441 msgstr ""
8442
8443 # type: textblock
8444 #: ../src/guestfs-actions.pod:2245
8445 msgid "(Added in 1.0.17)"
8446 msgstr ""
8447
8448 # type: =head2
8449 #: ../src/guestfs-actions.pod:2247
8450 msgid "guestfs_head"
8451 msgstr ""
8452
8453 # type: verbatim
8454 #: ../src/guestfs-actions.pod:2249
8455 #, no-wrap
8456 msgid ""
8457 " char **\n"
8458 " guestfs_head (guestfs_h *g,\n"
8459 "               const char *path);\n"
8460 "\n"
8461 msgstr ""
8462
8463 # type: textblock
8464 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1517
8465 msgid ""
8466 "This command returns up to the first 10 lines of a file as a list of strings."
8467 msgstr ""
8468
8469 # type: =head2
8470 #: ../src/guestfs-actions.pod:2265
8471 msgid "guestfs_head_n"
8472 msgstr ""
8473
8474 # type: verbatim
8475 #: ../src/guestfs-actions.pod:2267
8476 #, no-wrap
8477 msgid ""
8478 " char **\n"
8479 " guestfs_head_n (guestfs_h *g,\n"
8480 "                 int nrlines,\n"
8481 "                 const char *path);\n"
8482 "\n"
8483 msgstr ""
8484
8485 # type: textblock
8486 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1527
8487 msgid ""
8488 "If the parameter C<nrlines> is a positive number, this returns the first "
8489 "C<nrlines> lines of the file C<path>."
8490 msgstr ""
8491
8492 # type: textblock
8493 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1530
8494 msgid ""
8495 "If the parameter C<nrlines> is a negative number, this returns lines from "
8496 "the file C<path>, excluding the last C<nrlines> lines."
8497 msgstr ""
8498
8499 # type: textblock
8500 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6265
8501 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:4184
8502 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8503 msgstr ""
8504
8505 # type: =head2
8506 #: ../src/guestfs-actions.pod:2289
8507 msgid "guestfs_hexdump"
8508 msgstr ""
8509
8510 # type: verbatim
8511 #: ../src/guestfs-actions.pod:2291
8512 #, no-wrap
8513 msgid ""
8514 " char *\n"
8515 " guestfs_hexdump (guestfs_h *g,\n"
8516 "                  const char *path);\n"
8517 "\n"
8518 msgstr ""
8519
8520 # type: textblock
8521 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1542
8522 msgid ""
8523 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8524 "readable, canonical hex dump of the file."
8525 msgstr ""
8526
8527 # type: textblock
8528 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6049
8529 #: ../src/guestfs-actions.pod:6104
8530 msgid "(Added in 1.0.22)"
8531 msgstr ""
8532
8533 # type: =head2
8534 #: ../src/guestfs-actions.pod:2306
8535 msgid "guestfs_initrd_cat"
8536 msgstr ""
8537
8538 # type: verbatim
8539 #: ../src/guestfs-actions.pod:2308
8540 #, no-wrap
8541 msgid ""
8542 " char *\n"
8543 " guestfs_initrd_cat (guestfs_h *g,\n"
8544 "                     const char *initrdpath,\n"
8545 "                     const char *filename,\n"
8546 "                     size_t *size_r);\n"
8547 "\n"
8548 msgstr ""
8549
8550 # type: textblock
8551 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1552
8552 msgid ""
8553 "This command unpacks the file C<filename> from the initrd file called "
8554 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8555 "character."
8556 msgstr ""
8557
8558 # type: textblock
8559 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1556
8560 msgid ""
8561 "For example, in guestfish you could use the following command to examine the "
8562 "boot script (usually called C</init>)  contained in a Linux initrd or "
8563 "initramfs image:"
8564 msgstr ""
8565
8566 # type: verbatim
8567 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1560
8568 #, no-wrap
8569 msgid ""
8570 " initrd-cat /boot/initrd-<version>.img init\n"
8571 "\n"
8572 msgstr ""
8573
8574 # type: textblock
8575 #: ../src/guestfs-actions.pod:2324
8576 msgid "See also C<guestfs_initrd_list>."
8577 msgstr ""
8578
8579 # type: =head2
8580 #: ../src/guestfs-actions.pod:2335
8581 msgid "guestfs_initrd_list"
8582 msgstr ""
8583
8584 # type: verbatim
8585 #: ../src/guestfs-actions.pod:2337
8586 #, no-wrap
8587 msgid ""
8588 " char **\n"
8589 " guestfs_initrd_list (guestfs_h *g,\n"
8590 "                      const char *path);\n"
8591 "\n"
8592 msgstr ""
8593
8594 # type: textblock
8595 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1571
8596 msgid "This command lists out files contained in an initrd."
8597 msgstr ""
8598
8599 # type: textblock
8600 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1573
8601 msgid ""
8602 "The files are listed without any initial C</> character.  The files are "
8603 "listed in the order they appear (not necessarily alphabetical).  Directory "
8604 "names are listed as separate items."
8605 msgstr ""
8606
8607 # type: textblock
8608 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1577
8609 msgid ""
8610 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8611 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8612 "files)."
8613 msgstr ""
8614
8615 # type: =head2
8616 #: ../src/guestfs-actions.pod:2357
8617 msgid "guestfs_inotify_add_watch"
8618 msgstr ""
8619
8620 # type: verbatim
8621 #: ../src/guestfs-actions.pod:2359
8622 #, no-wrap
8623 msgid ""
8624 " int64_t\n"
8625 " guestfs_inotify_add_watch (guestfs_h *g,\n"
8626 "                            const char *path,\n"
8627 "                            int mask);\n"
8628 "\n"
8629 msgstr ""
8630
8631 # type: textblock
8632 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1585
8633 msgid "Watch C<path> for the events listed in C<mask>."
8634 msgstr ""
8635
8636 # type: textblock
8637 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1587
8638 msgid ""
8639 "Note that if C<path> is a directory then events within that directory are "
8640 "watched, but this does I<not> happen recursively (in subdirectories)."
8641 msgstr ""
8642
8643 # type: textblock
8644 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1591
8645 msgid ""
8646 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8647 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8648 msgstr ""
8649
8650 # type: =head2
8651 #: ../src/guestfs-actions.pod:2378
8652 msgid "guestfs_inotify_close"
8653 msgstr ""
8654
8655 # type: verbatim
8656 #: ../src/guestfs-actions.pod:2380
8657 #, no-wrap
8658 msgid ""
8659 " int\n"
8660 " guestfs_inotify_close (guestfs_h *g);\n"
8661 "\n"
8662 msgstr ""
8663
8664 # type: textblock
8665 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1599
8666 msgid ""
8667 "This closes the inotify handle which was previously opened by inotify_init.  "
8668 "It removes all watches, throws away any pending events, and deallocates all "
8669 "resources."
8670 msgstr ""
8671
8672 # type: =head2
8673 #: ../src/guestfs-actions.pod:2391
8674 msgid "guestfs_inotify_files"
8675 msgstr ""
8676
8677 # type: verbatim
8678 #: ../src/guestfs-actions.pod:2393
8679 #, no-wrap
8680 msgid ""
8681 " char **\n"
8682 " guestfs_inotify_files (guestfs_h *g);\n"
8683 "\n"
8684 msgstr ""
8685
8686 # type: textblock
8687 #: ../src/guestfs-actions.pod:2396
8688 msgid ""
8689 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
8690 "returns a list of pathnames of objects that were touched.  The returned "
8691 "pathnames are sorted and deduplicated."
8692 msgstr ""
8693
8694 # type: =head2
8695 #: ../src/guestfs-actions.pod:2406
8696 msgid "guestfs_inotify_init"
8697 msgstr ""
8698
8699 # type: verbatim
8700 #: ../src/guestfs-actions.pod:2408
8701 #, no-wrap
8702 msgid ""
8703 " int\n"
8704 " guestfs_inotify_init (guestfs_h *g,\n"
8705 "                       int maxevents);\n"
8706 "\n"
8707 msgstr ""
8708
8709 # type: textblock
8710 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
8711 msgid ""
8712 "This command creates a new inotify handle.  The inotify subsystem can be "
8713 "used to notify events which happen to objects in the guest filesystem."
8714 msgstr ""
8715
8716 # type: textblock
8717 #: ../src/guestfs-actions.pod:2416
8718 msgid ""
8719 "C<maxevents> is the maximum number of events which will be queued up between "
8720 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
8721 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
8722 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
8723 "throws away events, but records the fact that it threw them away by setting "
8724 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
8725 "C<guestfs_inotify_read>)."
8726 msgstr ""
8727
8728 # type: textblock
8729 #: ../src/guestfs-actions.pod:2426
8730 msgid ""
8731 "Before any events are generated, you have to add some watches to the "
8732 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
8733 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
8734 msgstr ""
8735
8736 # type: textblock
8737 #: ../src/guestfs-actions.pod:2432
8738 msgid ""
8739 "Queued up events should be read periodically by calling "
8740 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
8741 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
8742 "often enough then you risk the internal queue overflowing."
8743 msgstr ""
8744
8745 # type: textblock
8746 #: ../src/guestfs-actions.pod:2439
8747 msgid ""
8748 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
8749 "This also removes any watches automatically."
8750 msgstr ""
8751
8752 # type: textblock
8753 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1646
8754 msgid ""
8755 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8756 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8757 "that there is one global inotify handle per libguestfs instance."
8758 msgstr ""
8759
8760 # type: =head2
8761 #: ../src/guestfs-actions.pod:2452
8762 msgid "guestfs_inotify_read"
8763 msgstr ""
8764
8765 # type: verbatim
8766 #: ../src/guestfs-actions.pod:2454
8767 #, no-wrap
8768 msgid ""
8769 " struct guestfs_inotify_event_list *\n"
8770 " guestfs_inotify_read (guestfs_h *g);\n"
8771 "\n"
8772 msgstr ""
8773
8774 # type: textblock
8775 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1655
8776 msgid ""
8777 "Return the complete queue of events that have happened since the previous "
8778 "read call."
8779 msgstr ""
8780
8781 # type: textblock
8782 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1658
8783 msgid "If no events have happened, this returns an empty list."
8784 msgstr ""
8785
8786 # type: textblock
8787 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1660
8788 msgid ""
8789 "I<Note>: In order to make sure that all events have been read, you must call "
8790 "this function repeatedly until it returns an empty list.  The reason is that "
8791 "the call will read events up to the maximum appliance-to-host message size "
8792 "and leave remaining events in the queue."
8793 msgstr ""
8794
8795 # type: textblock
8796 #: ../src/guestfs-actions.pod:2468
8797 msgid ""
8798 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
8799 "there was an error.  I<The caller must call "
8800 "C<guestfs_free_inotify_event_list> after use>."
8801 msgstr ""
8802
8803 # type: =head2
8804 #: ../src/guestfs-actions.pod:2474
8805 msgid "guestfs_inotify_rm_watch"
8806 msgstr ""
8807
8808 # type: verbatim
8809 #: ../src/guestfs-actions.pod:2476
8810 #, no-wrap
8811 msgid ""
8812 " int\n"
8813 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
8814 "                           int wd);\n"
8815 "\n"
8816 msgstr ""
8817
8818 # type: textblock
8819 #: ../src/guestfs-actions.pod:2480
8820 msgid ""
8821 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
8822 msgstr ""
8823
8824 # type: =head2
8825 #: ../src/guestfs-actions.pod:2487
8826 msgid "guestfs_inspect_get_arch"
8827 msgstr ""
8828
8829 # type: verbatim
8830 #: ../src/guestfs-actions.pod:2489
8831 #, no-wrap
8832 msgid ""
8833 " char *\n"
8834 " guestfs_inspect_get_arch (guestfs_h *g,\n"
8835 "                           const char *root);\n"
8836 "\n"
8837 msgstr ""
8838
8839 # type: textblock
8840 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
8841 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
8842 #: ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2672
8843 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2726
8844 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2786
8845 #: ../src/guestfs-actions.pod:2830 ../src/guestfs-actions.pod:2872
8846 #: ../src/guestfs-actions.pod:2895
8847 msgid ""
8848 "This function should only be called with a root device string as returned by "
8849 "C<guestfs_inspect_os>."
8850 msgstr ""
8851
8852 # type: textblock
8853 #: ../src/guestfs-actions.pod:2496
8854 msgid ""
8855 "This returns the architecture of the inspected operating system.  The "
8856 "possible return values are listed under C<guestfs_file_architecture>."
8857 msgstr ""
8858
8859 # type: textblock
8860 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1684
8861 msgid ""
8862 "If the architecture could not be determined, then the string C<unknown> is "
8863 "returned."
8864 msgstr ""
8865
8866 # type: textblock
8867 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
8868 #: ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2660
8869 #: ../src/guestfs-actions.pod:2742 ../src/guestfs-actions.pod:2773
8870 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816
8871 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2882
8872 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3029
8873 #: ../fish/guestfish-actions.pod:1687 ../fish/guestfish-actions.pod:1761
8874 #: ../fish/guestfish-actions.pod:1794 ../fish/guestfish-actions.pod:1815
8875 #: ../fish/guestfish-actions.pod:1875 ../fish/guestfish-actions.pod:1899
8876 #: ../fish/guestfish-actions.pod:1916 ../fish/guestfish-actions.pod:1929
8877 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1980
8878 #: ../fish/guestfish-actions.pod:2079 ../fish/guestfish-actions.pod:2113
8879 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8880 msgstr ""
8881
8882 # type: =head2
8883 #: ../src/guestfs-actions.pod:2510
8884 msgid "guestfs_inspect_get_distro"
8885 msgstr ""
8886
8887 # type: verbatim
8888 #: ../src/guestfs-actions.pod:2512
8889 #, no-wrap
8890 msgid ""
8891 " char *\n"
8892 " guestfs_inspect_get_distro (guestfs_h *g,\n"
8893 "                             const char *root);\n"
8894 "\n"
8895 msgstr ""
8896
8897 # type: textblock
8898 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1696
8899 msgid ""
8900 "This returns the distro (distribution) of the inspected operating system."
8901 msgstr ""
8902
8903 # type: textblock
8904 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1699
8905 msgid "Currently defined distros are:"
8906 msgstr ""
8907
8908 # type: =item
8909 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1703
8910 msgid "\"archlinux\""
8911 msgstr ""
8912
8913 # type: textblock
8914 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1705
8915 msgid "Arch Linux."
8916 msgstr ""
8917
8918 # type: =item
8919 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1707
8920 msgid "\"debian\""
8921 msgstr ""
8922
8923 # type: textblock
8924 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1709
8925 msgid "Debian."
8926 msgstr ""
8927
8928 # type: =item
8929 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1711
8930 msgid "\"fedora\""
8931 msgstr ""
8932
8933 # type: textblock
8934 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1713
8935 msgid "Fedora."
8936 msgstr ""
8937
8938 # type: =item
8939 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1715
8940 msgid "\"gentoo\""
8941 msgstr ""
8942
8943 # type: textblock
8944 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1717
8945 msgid "Gentoo."
8946 msgstr ""
8947
8948 # type: =item
8949 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1719
8950 msgid "\"linuxmint\""
8951 msgstr ""
8952
8953 # type: textblock
8954 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1721
8955 msgid "Linux Mint."
8956 msgstr ""
8957
8958 # type: =item
8959 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1723
8960 msgid "\"mandriva\""
8961 msgstr ""
8962
8963 # type: textblock
8964 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1725
8965 msgid "Mandriva."
8966 msgstr ""
8967
8968 # type: =item
8969 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1727
8970 msgid "\"meego\""
8971 msgstr ""
8972
8973 # type: textblock
8974 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1729
8975 msgid "MeeGo."
8976 msgstr ""
8977
8978 # type: =item
8979 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1731
8980 msgid "\"pardus\""
8981 msgstr ""
8982
8983 # type: textblock
8984 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1733
8985 msgid "Pardus."
8986 msgstr ""
8987
8988 # type: =item
8989 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1735
8990 msgid "\"redhat-based\""
8991 msgstr ""
8992
8993 # type: textblock
8994 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1737
8995 msgid "Some Red Hat-derived distro."
8996 msgstr ""
8997
8998 # type: =item
8999 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1739
9000 msgid "\"rhel\""
9001 msgstr ""
9002
9003 # type: textblock
9004 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1741
9005 msgid "Red Hat Enterprise Linux and some derivatives."
9006 msgstr ""
9007
9008 # type: =item
9009 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1743
9010 msgid "\"ubuntu\""
9011 msgstr ""
9012
9013 # type: textblock
9014 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1745
9015 msgid "Ubuntu."
9016 msgstr ""
9017
9018 # type: =item
9019 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2850
9020 #: ../fish/guestfish-actions.pod:1747 ../fish/guestfish-actions.pod:1955
9021 msgid "\"unknown\""
9022 msgstr ""
9023
9024 # type: textblock
9025 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1749
9026 msgid "The distro could not be determined."
9027 msgstr ""
9028
9029 # type: =item
9030 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2842
9031 #: ../fish/guestfish-actions.pod:1751 ../fish/guestfish-actions.pod:1947
9032 msgid "\"windows\""
9033 msgstr ""
9034
9035 # type: textblock
9036 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1753
9037 msgid ""
9038 "Windows does not have distributions.  This string is returned if the OS type "
9039 "is Windows."
9040 msgstr ""
9041
9042 # type: textblock
9043 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2856
9044 #: ../fish/guestfish-actions.pod:1758 ../fish/guestfish-actions.pod:1961
9045 msgid ""
9046 "Future versions of libguestfs may return other strings here.  The caller "
9047 "should be prepared to handle any string."
9048 msgstr ""
9049
9050 # type: =head2
9051 #: ../src/guestfs-actions.pod:2591
9052 msgid "guestfs_inspect_get_filesystems"
9053 msgstr ""
9054
9055 # type: verbatim
9056 #: ../src/guestfs-actions.pod:2593
9057 #, no-wrap
9058 msgid ""
9059 " char **\n"
9060 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
9061 "                                  const char *root);\n"
9062 "\n"
9063 msgstr ""
9064
9065 # type: textblock
9066 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1770
9067 msgid ""
9068 "This returns a list of all the filesystems that we think are associated with "
9069 "this operating system.  This includes the root filesystem, other ordinary "
9070 "filesystems, and non-mounted devices like swap partitions."
9071 msgstr ""
9072
9073 # type: textblock
9074 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1775
9075 msgid ""
9076 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9077 "to be shared between operating systems."
9078 msgstr ""
9079
9080 # type: textblock
9081 #: ../src/guestfs-actions.pod:2608
9082 msgid ""
9083 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9084 "C<guestfs_inspect_get_mountpoints>."
9085 msgstr ""
9086
9087 # type: =head2
9088 #: ../src/guestfs-actions.pod:2617
9089 msgid "guestfs_inspect_get_hostname"
9090 msgstr ""
9091
9092 # type: verbatim
9093 #: ../src/guestfs-actions.pod:2619
9094 #, no-wrap
9095 msgid ""
9096 " char *\n"
9097 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
9098 "                               const char *root);\n"
9099 "\n"
9100 msgstr ""
9101
9102 # type: textblock
9103 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1788
9104 msgid ""
9105 "This function returns the hostname of the operating system as found by "
9106 "inspection of the guest's configuration files."
9107 msgstr ""
9108
9109 # type: textblock
9110 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1791
9111 msgid ""
9112 "If the hostname could not be determined, then the string C<unknown> is "
9113 "returned."
9114 msgstr ""
9115
9116 # type: textblock
9117 #: ../src/guestfs-actions.pod:2637
9118 msgid "(Added in 1.7.9)"
9119 msgstr ""
9120
9121 # type: =head2
9122 #: ../src/guestfs-actions.pod:2639
9123 msgid "guestfs_inspect_get_major_version"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #: ../src/guestfs-actions.pod:2641
9128 #, no-wrap
9129 msgid ""
9130 " int\n"
9131 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
9132 "                                    const char *root);\n"
9133 "\n"
9134 msgstr ""
9135
9136 # type: textblock
9137 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
9138 msgid ""
9139 "This returns the major version number of the inspected operating system."
9140 msgstr ""
9141
9142 # type: textblock
9143 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
9144 msgid ""
9145 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9146 "popular public names used by the operating system.  Notably the operating "
9147 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9148 "1).  You can find out the real versions corresponding to releases of Windows "
9149 "by consulting Wikipedia or MSDN."
9150 msgstr ""
9151
9152 # type: textblock
9153 #: ../src/guestfs-actions.pod:2658 ../src/guestfs-actions.pod:2678
9154 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1827
9155 msgid "If the version could not be determined, then C<0> is returned."
9156 msgstr ""
9157
9158 # type: =head2
9159 #: ../src/guestfs-actions.pod:2666
9160 msgid "guestfs_inspect_get_minor_version"
9161 msgstr ""
9162
9163 # type: verbatim
9164 #: ../src/guestfs-actions.pod:2668
9165 #, no-wrap
9166 msgid ""
9167 " int\n"
9168 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
9169 "                                    const char *root);\n"
9170 "\n"
9171 msgstr ""
9172
9173 # type: textblock
9174 #: ../src/guestfs-actions.pod:2675 ../fish/guestfish-actions.pod:1824
9175 msgid ""
9176 "This returns the minor version number of the inspected operating system."
9177 msgstr ""
9178
9179 # type: textblock
9180 #: ../src/guestfs-actions.pod:2680
9181 msgid ""
9182 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9183 "C<guestfs_inspect_get_major_version>."
9184 msgstr ""
9185
9186 # type: =head2
9187 #: ../src/guestfs-actions.pod:2687
9188 msgid "guestfs_inspect_get_mountpoints"
9189 msgstr ""
9190
9191 # type: verbatim
9192 #: ../src/guestfs-actions.pod:2689
9193 #, no-wrap
9194 msgid ""
9195 " char **\n"
9196 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
9197 "                                  const char *root);\n"
9198 "\n"
9199 msgstr ""
9200
9201 # type: textblock
9202 #: ../src/guestfs-actions.pod:2696 ../fish/guestfish-actions.pod:1839
9203 msgid ""
9204 "This returns a hash of where we think the filesystems associated with this "
9205 "operating system should be mounted.  Callers should note that this is at "
9206 "best an educated guess made by reading configuration files such as C</etc/"
9207 "fstab>."
9208 msgstr ""
9209
9210 # type: textblock
9211 #: ../src/guestfs-actions.pod:2701 ../fish/guestfish-actions.pod:1844
9212 msgid ""
9213 "Each element in the returned hashtable has a key which is the path of the "
9214 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9215 "mounted there (eg. C</dev/sda1>)."
9216 msgstr ""
9217
9218 # type: textblock
9219 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1849
9220 msgid ""
9221 "Non-mounted devices such as swap devices are I<not> returned in this list."
9222 msgstr ""
9223
9224 # type: textblock
9225 #: ../src/guestfs-actions.pod:2709
9226 msgid ""
9227 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9228 "C<guestfs_inspect_get_filesystems>."
9229 msgstr ""
9230
9231 # type: textblock
9232 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:3356
9233 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:6406
9234 msgid ""
9235 "This function returns a NULL-terminated array of strings, or NULL if there "
9236 "was an error.  The array of strings will always have length C<2n+1>, where "
9237 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
9238 "caller must free the strings and the array after use>."
9239 msgstr ""
9240
9241 # type: =head2
9242 #: ../src/guestfs-actions.pod:2720
9243 msgid "guestfs_inspect_get_package_format"
9244 msgstr ""
9245
9246 # type: verbatim
9247 #: ../src/guestfs-actions.pod:2722
9248 #, no-wrap
9249 msgid ""
9250 " char *\n"
9251 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
9252 "                                     const char *root);\n"
9253 "\n"
9254 msgstr ""
9255
9256 # type: textblock
9257 #: ../src/guestfs-actions.pod:2729
9258 msgid ""
9259 "This function and C<guestfs_inspect_get_package_management> return the "
9260 "package format and package management tool used by the inspected operating "
9261 "system.  For example for Fedora these functions would return C<rpm> (package "
9262 "format) and C<yum> (package management)."
9263 msgstr ""
9264
9265 # type: textblock
9266 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1868
9267 msgid ""
9268 "This returns the string C<unknown> if we could not determine the package "
9269 "format I<or> if the operating system does not have a real packaging system "
9270 "(eg. Windows)."
9271 msgstr ""
9272
9273 # type: textblock
9274 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1872
9275 msgid ""
9276 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9277 "Future versions of libguestfs may return other strings."
9278 msgstr ""
9279
9280 # type: textblock
9281 #: ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2778
9282 msgid "(Added in 1.7.5)"
9283 msgstr ""
9284
9285 # type: =head2
9286 #: ../src/guestfs-actions.pod:2749
9287 msgid "guestfs_inspect_get_package_management"
9288 msgstr ""
9289
9290 # type: verbatim
9291 #: ../src/guestfs-actions.pod:2751
9292 #, no-wrap
9293 msgid ""
9294 " char *\n"
9295 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
9296 "                                         const char *root);\n"
9297 "\n"
9298 msgstr ""
9299
9300 # type: textblock
9301 #: ../src/guestfs-actions.pod:2758
9302 msgid ""
9303 "C<guestfs_inspect_get_package_format> and this function return the package "
9304 "format and package management tool used by the inspected operating system.  "
9305 "For example for Fedora these functions would return C<rpm> (package format) "
9306 "and C<yum> (package management)."
9307 msgstr ""
9308
9309 # type: textblock
9310 #: ../src/guestfs-actions.pod:2764 ../fish/guestfish-actions.pod:1890
9311 msgid ""
9312 "This returns the string C<unknown> if we could not determine the package "
9313 "management tool I<or> if the operating system does not have a real packaging "
9314 "system (eg. Windows)."
9315 msgstr ""
9316
9317 # type: textblock
9318 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1894
9319 msgid ""
9320 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9321 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9322 "libguestfs may return other strings."
9323 msgstr ""
9324
9325 # type: =head2
9326 #: ../src/guestfs-actions.pod:2780
9327 msgid "guestfs_inspect_get_product_name"
9328 msgstr ""
9329
9330 # type: verbatim
9331 #: ../src/guestfs-actions.pod:2782
9332 #, no-wrap
9333 msgid ""
9334 " char *\n"
9335 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
9336 "                                   const char *root);\n"
9337 "\n"
9338 msgstr ""
9339
9340 # type: textblock
9341 #: ../src/guestfs-actions.pod:2789 ../fish/guestfish-actions.pod:1908
9342 msgid ""
9343 "This returns the product name of the inspected operating system.  The "
9344 "product name is generally some freeform string which can be displayed to the "
9345 "user, but should not be parsed by programs."
9346 msgstr ""
9347
9348 # type: textblock
9349 #: ../src/guestfs-actions.pod:2794 ../fish/guestfish-actions.pod:1913
9350 msgid ""
9351 "If the product name could not be determined, then the string C<unknown> is "
9352 "returned."
9353 msgstr ""
9354
9355 # type: =head2
9356 #: ../src/guestfs-actions.pod:2804
9357 msgid "guestfs_inspect_get_roots"
9358 msgstr ""
9359
9360 # type: verbatim
9361 #: ../src/guestfs-actions.pod:2806
9362 #, no-wrap
9363 msgid ""
9364 " char **\n"
9365 " guestfs_inspect_get_roots (guestfs_h *g);\n"
9366 "\n"
9367 msgstr ""
9368
9369 # type: textblock
9370 #: ../src/guestfs-actions.pod:2809
9371 msgid ""
9372 "This function is a convenient way to get the list of root devices, as "
9373 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
9374 "the whole inspection process."
9375 msgstr ""
9376
9377 # type: textblock
9378 #: ../src/guestfs-actions.pod:2813
9379 msgid ""
9380 "This returns an empty list if either no root devices were found or the "
9381 "caller has not called C<guestfs_inspect_os>."
9382 msgstr ""
9383
9384 # type: textblock
9385 #: ../src/guestfs-actions.pod:2822
9386 msgid "(Added in 1.7.3)"
9387 msgstr ""
9388
9389 # type: =head2
9390 #: ../src/guestfs-actions.pod:2824
9391 msgid "guestfs_inspect_get_type"
9392 msgstr ""
9393
9394 # type: verbatim
9395 #: ../src/guestfs-actions.pod:2826
9396 #, no-wrap
9397 msgid ""
9398 " char *\n"
9399 " guestfs_inspect_get_type (guestfs_h *g,\n"
9400 "                           const char *root);\n"
9401 "\n"
9402 msgstr ""
9403
9404 # type: textblock
9405 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1938
9406 msgid ""
9407 "This returns the type of the inspected operating system.  Currently defined "
9408 "types are:"
9409 msgstr ""
9410
9411 # type: =item
9412 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1943
9413 msgid "\"linux\""
9414 msgstr ""
9415
9416 # type: textblock
9417 #: ../src/guestfs-actions.pod:2840 ../fish/guestfish-actions.pod:1945
9418 msgid "Any Linux-based operating system."
9419 msgstr ""
9420
9421 # type: textblock
9422 #: ../src/guestfs-actions.pod:2844 ../fish/guestfish-actions.pod:1949
9423 msgid "Any Microsoft Windows operating system."
9424 msgstr ""
9425
9426 # type: =item
9427 #: ../src/guestfs-actions.pod:2846 ../fish/guestfish-actions.pod:1951
9428 msgid "\"freebsd\""
9429 msgstr ""
9430
9431 # type: textblock
9432 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1953
9433 msgid "FreeBSD."
9434 msgstr ""
9435
9436 # type: textblock
9437 #: ../src/guestfs-actions.pod:2852 ../fish/guestfish-actions.pod:1957
9438 msgid "The operating system type could not be determined."
9439 msgstr ""
9440
9441 # type: =head2
9442 #: ../src/guestfs-actions.pod:2866
9443 msgid "guestfs_inspect_get_windows_systemroot"
9444 msgstr ""
9445
9446 # type: verbatim
9447 #: ../src/guestfs-actions.pod:2868
9448 #, no-wrap
9449 msgid ""
9450 " char *\n"
9451 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
9452 "                                         const char *root);\n"
9453 "\n"
9454 msgstr ""
9455
9456 # type: textblock
9457 #: ../src/guestfs-actions.pod:2875 ../fish/guestfish-actions.pod:1973
9458 msgid ""
9459 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9460 "is a directory path such as C</WINDOWS>."
9461 msgstr ""
9462
9463 # type: textblock
9464 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1976
9465 msgid ""
9466 "This call assumes that the guest is Windows and that the systemroot could be "
9467 "determined by inspection.  If this is not the case then an error is returned."
9468 msgstr ""
9469
9470 # type: textblock
9471 #: ../src/guestfs-actions.pod:2887
9472 msgid "(Added in 1.5.25)"
9473 msgstr ""
9474
9475 # type: =head2
9476 #: ../src/guestfs-actions.pod:2889
9477 msgid "guestfs_inspect_list_applications"
9478 msgstr ""
9479
9480 # type: verbatim
9481 #: ../src/guestfs-actions.pod:2891
9482 #, no-wrap
9483 msgid ""
9484 " struct guestfs_application_list *\n"
9485 " guestfs_inspect_list_applications (guestfs_h *g,\n"
9486 "                                    const char *root);\n"
9487 "\n"
9488 msgstr ""
9489
9490 # type: textblock
9491 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1989
9492 msgid "Return the list of applications installed in the operating system."
9493 msgstr ""
9494
9495 # type: textblock
9496 #: ../src/guestfs-actions.pod:2900
9497 msgid ""
9498 "I<Note:> This call works differently from other parts of the inspection "
9499 "API.  You have to call C<guestfs_inspect_os>, then "
9500 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
9501 "this.  Listing applications is a significantly more difficult operation "
9502 "which requires access to the full filesystem.  Also note that unlike the "
9503 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
9504 "the libguestfs handle, this call actually reads parts of the mounted "
9505 "filesystems during the call."
9506 msgstr ""
9507
9508 # type: textblock
9509 #: ../src/guestfs-actions.pod:2910 ../fish/guestfish-actions.pod:2001
9510 msgid ""
9511 "This returns an empty list if the inspection code was not able to determine "
9512 "the list of applications."
9513 msgstr ""
9514
9515 # type: textblock
9516 #: ../src/guestfs-actions.pod:2913 ../fish/guestfish-actions.pod:2004
9517 msgid "The application structure contains the following fields:"
9518 msgstr ""
9519
9520 # type: =item
9521 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2008
9522 msgid "C<app_name>"
9523 msgstr ""
9524
9525 # type: textblock
9526 #: ../src/guestfs-actions.pod:2919 ../fish/guestfish-actions.pod:2010
9527 msgid ""
9528 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9529 "guests, this is the package name."
9530 msgstr ""
9531
9532 # type: =item
9533 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2013
9534 msgid "C<app_display_name>"
9535 msgstr ""
9536
9537 # type: textblock
9538 #: ../src/guestfs-actions.pod:2924 ../fish/guestfish-actions.pod:2015
9539 msgid ""
9540 "The display name of the application, sometimes localized to the install "
9541 "language of the guest operating system."
9542 msgstr ""
9543
9544 # type: textblock
9545 #: ../src/guestfs-actions.pod:2927 ../fish/guestfish-actions.pod:2018
9546 msgid ""
9547 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9548 "to display something can use C<app_name> instead."
9549 msgstr ""
9550
9551 # type: =item
9552 #: ../src/guestfs-actions.pod:2930 ../fish/guestfish-actions.pod:2021
9553 msgid "C<app_epoch>"
9554 msgstr ""
9555
9556 # type: textblock
9557 #: ../src/guestfs-actions.pod:2932 ../fish/guestfish-actions.pod:2023
9558 msgid ""
9559 "For package managers which use epochs, this contains the epoch of the "
9560 "package (an integer).  If unavailable, this is returned as C<0>."
9561 msgstr ""
9562
9563 # type: =item
9564 #: ../src/guestfs-actions.pod:2935 ../fish/guestfish-actions.pod:2026
9565 msgid "C<app_version>"
9566 msgstr ""
9567
9568 # type: textblock
9569 #: ../src/guestfs-actions.pod:2937 ../fish/guestfish-actions.pod:2028
9570 msgid ""
9571 "The version string of the application or package.  If unavailable this is "
9572 "returned as an empty string C<\"\">."
9573 msgstr ""
9574
9575 # type: =item
9576 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2031
9577 msgid "C<app_release>"
9578 msgstr ""
9579
9580 # type: textblock
9581 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2033
9582 msgid ""
9583 "The release string of the application or package, for package managers that "
9584 "use this.  If unavailable this is returned as an empty string C<\"\">."
9585 msgstr ""
9586
9587 # type: =item
9588 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2037
9589 msgid "C<app_install_path>"
9590 msgstr ""
9591
9592 # type: textblock
9593 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2039
9594 msgid ""
9595 "The installation path of the application (on operating systems such as "
9596 "Windows which use installation paths).  This path is in the format used by "
9597 "the guest operating system, it is not a libguestfs path."
9598 msgstr ""
9599
9600 # type: textblock
9601 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2044
9602 msgid "If unavailable this is returned as an empty string C<\"\">."
9603 msgstr ""
9604
9605 # type: =item
9606 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:2046
9607 msgid "C<app_trans_path>"
9608 msgstr ""
9609
9610 # type: textblock
9611 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2048
9612 msgid ""
9613 "The install path translated into a libguestfs path.  If unavailable this is "
9614 "returned as an empty string C<\"\">."
9615 msgstr ""
9616
9617 # type: =item
9618 #: ../src/guestfs-actions.pod:2960 ../fish/guestfish-actions.pod:2051
9619 msgid "C<app_publisher>"
9620 msgstr ""
9621
9622 # type: textblock
9623 #: ../src/guestfs-actions.pod:2962 ../fish/guestfish-actions.pod:2053
9624 msgid ""
9625 "The name of the publisher of the application, for package managers that use "
9626 "this.  If unavailable this is returned as an empty string C<\"\">."
9627 msgstr ""
9628
9629 # type: =item
9630 #: ../src/guestfs-actions.pod:2966 ../fish/guestfish-actions.pod:2057
9631 msgid "C<app_url>"
9632 msgstr ""
9633
9634 # type: textblock
9635 #: ../src/guestfs-actions.pod:2968 ../fish/guestfish-actions.pod:2059
9636 msgid ""
9637 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9638 "returned as an empty string C<\"\">."
9639 msgstr ""
9640
9641 # type: =item
9642 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2062
9643 msgid "C<app_source_package>"
9644 msgstr ""
9645
9646 # type: textblock
9647 #: ../src/guestfs-actions.pod:2973 ../fish/guestfish-actions.pod:2064
9648 msgid ""
9649 "For packaging systems which support this, the name of the source package.  "
9650 "If unavailable this is returned as an empty string C<\"\">."
9651 msgstr ""
9652
9653 # type: =item
9654 #: ../src/guestfs-actions.pod:2976 ../fish/guestfish-actions.pod:2067
9655 msgid "C<app_summary>"
9656 msgstr ""
9657
9658 # type: textblock
9659 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2069
9660 msgid ""
9661 "A short (usually one line) description of the application or package.  If "
9662 "unavailable this is returned as an empty string C<\"\">."
9663 msgstr ""
9664
9665 # type: =item
9666 #: ../src/guestfs-actions.pod:2981 ../fish/guestfish-actions.pod:2072
9667 msgid "C<app_description>"
9668 msgstr ""
9669
9670 # type: textblock
9671 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2074
9672 msgid ""
9673 "A longer description of the application or package.  If unavailable this is "
9674 "returned as an empty string C<\"\">."
9675 msgstr ""
9676
9677 # type: textblock
9678 #: ../src/guestfs-actions.pod:2990
9679 msgid ""
9680 "This function returns a C<struct guestfs_application_list *>, or NULL if "
9681 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
9682 "after use>."
9683 msgstr ""
9684
9685 # type: textblock
9686 #: ../src/guestfs-actions.pod:2994
9687 msgid "(Added in 1.7.8)"
9688 msgstr ""
9689
9690 # type: =head2
9691 #: ../src/guestfs-actions.pod:2996
9692 msgid "guestfs_inspect_os"
9693 msgstr ""
9694
9695 # type: verbatim
9696 #: ../src/guestfs-actions.pod:2998
9697 #, no-wrap
9698 msgid ""
9699 " char **\n"
9700 " guestfs_inspect_os (guestfs_h *g);\n"
9701 "\n"
9702 msgstr ""
9703
9704 # type: textblock
9705 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2085
9706 msgid ""
9707 "This function uses other libguestfs functions and certain heuristics to "
9708 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9709 "for operating systems."
9710 msgstr ""
9711
9712 # type: textblock
9713 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:2089
9714 msgid "The list returned is empty if no operating systems were found."
9715 msgstr ""
9716
9717 # type: textblock
9718 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2091
9719 msgid ""
9720 "If one operating system was found, then this returns a list with a single "
9721 "element, which is the name of the root filesystem of this operating system.  "
9722 "It is also possible for this function to return a list containing more than "
9723 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9724 "element being the root filesystem of one of the operating systems."
9725 msgstr ""
9726
9727 # type: textblock
9728 #: ../src/guestfs-actions.pod:3014
9729 msgid ""
9730 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
9731 "functions in order to query further information about each operating system, "
9732 "such as the name and version."
9733 msgstr ""
9734
9735 # type: textblock
9736 #: ../src/guestfs-actions.pod:3019
9737 msgid ""
9738 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
9739 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
9740 "the contents.  This should be called with no disks currently mounted.  The "
9741 "function may also use Augeas, so any existing Augeas handle will be closed."
9742 msgstr ""
9743
9744 # type: textblock
9745 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:2109
9746 msgid ""
9747 "This function cannot decrypt encrypted disks.  The caller must do that first "
9748 "(supplying the necessary keys) if the disk is encrypted."
9749 msgstr ""
9750
9751 # type: textblock
9752 #: ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3314
9753 #: ../src/guestfs-actions.pod:3376
9754 msgid "See also C<guestfs_list_filesystems>."
9755 msgstr ""
9756
9757 # type: =head2
9758 #: ../src/guestfs-actions.pod:3039
9759 msgid "guestfs_is_blockdev"
9760 msgstr ""
9761
9762 # type: verbatim
9763 #: ../src/guestfs-actions.pod:3041
9764 #, no-wrap
9765 msgid ""
9766 " int\n"
9767 " guestfs_is_blockdev (guestfs_h *g,\n"
9768 "                      const char *path);\n"
9769 "\n"
9770 msgstr ""
9771
9772 # type: textblock
9773 #: ../src/guestfs-actions.pod:3045 ../fish/guestfish-actions.pod:2121
9774 msgid ""
9775 "This returns C<true> if and only if there is a block device with the given "
9776 "C<path> name."
9777 msgstr ""
9778
9779 # type: textblock
9780 #: ../src/guestfs-actions.pod:3048 ../src/guestfs-actions.pod:3077
9781 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3122
9782 #: ../src/guestfs-actions.pod:3138 ../src/guestfs-actions.pod:3194
9783 #: ../src/guestfs-actions.pod:3209
9784 msgid "See also C<guestfs_stat>."
9785 msgstr ""
9786
9787 # type: textblock
9788 #: ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3081
9789 #: ../src/guestfs-actions.pod:3126 ../src/guestfs-actions.pod:3198
9790 #: ../src/guestfs-actions.pod:3213
9791 msgid "(Added in 1.5.10)"
9792 msgstr ""
9793
9794 # type: =head2
9795 #: ../src/guestfs-actions.pod:3054
9796 msgid "guestfs_is_busy"
9797 msgstr ""
9798
9799 # type: verbatim
9800 #: ../src/guestfs-actions.pod:3056
9801 #, no-wrap
9802 msgid ""
9803 " int\n"
9804 " guestfs_is_busy (guestfs_h *g);\n"
9805 "\n"
9806 msgstr ""
9807
9808 # type: textblock
9809 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2130
9810 msgid ""
9811 "This returns true iff this handle is busy processing a command (in the "
9812 "C<BUSY> state)."
9813 msgstr ""
9814
9815 # type: =head2
9816 #: ../src/guestfs-actions.pod:3068
9817 msgid "guestfs_is_chardev"
9818 msgstr ""
9819
9820 # type: verbatim
9821 #: ../src/guestfs-actions.pod:3070
9822 #, no-wrap
9823 msgid ""
9824 " int\n"
9825 " guestfs_is_chardev (guestfs_h *g,\n"
9826 "                     const char *path);\n"
9827 "\n"
9828 msgstr ""
9829
9830 # type: textblock
9831 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2139
9832 msgid ""
9833 "This returns C<true> if and only if there is a character device with the "
9834 "given C<path> name."
9835 msgstr ""
9836
9837 # type: =head2
9838 #: ../src/guestfs-actions.pod:3083
9839 msgid "guestfs_is_config"
9840 msgstr ""
9841
9842 # type: verbatim
9843 #: ../src/guestfs-actions.pod:3085
9844 #, no-wrap
9845 msgid ""
9846 " int\n"
9847 " guestfs_is_config (guestfs_h *g);\n"
9848 "\n"
9849 msgstr ""
9850
9851 # type: textblock
9852 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2148
9853 msgid ""
9854 "This returns true iff this handle is being configured (in the C<CONFIG> "
9855 "state)."
9856 msgstr ""
9857
9858 # type: =head2
9859 #: ../src/guestfs-actions.pod:3097
9860 msgid "guestfs_is_dir"
9861 msgstr ""
9862
9863 # type: verbatim
9864 #: ../src/guestfs-actions.pod:3099
9865 #, no-wrap
9866 msgid ""
9867 " int\n"
9868 " guestfs_is_dir (guestfs_h *g,\n"
9869 "                 const char *path);\n"
9870 "\n"
9871 msgstr ""
9872
9873 # type: textblock
9874 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2157
9875 msgid ""
9876 "This returns C<true> if and only if there is a directory with the given "
9877 "C<path> name.  Note that it returns false for other objects like files."
9878 msgstr ""
9879
9880 # type: =head2
9881 #: ../src/guestfs-actions.pod:3113
9882 msgid "guestfs_is_fifo"
9883 msgstr ""
9884
9885 # type: verbatim
9886 #: ../src/guestfs-actions.pod:3115
9887 #, no-wrap
9888 msgid ""
9889 " int\n"
9890 " guestfs_is_fifo (guestfs_h *g,\n"
9891 "                  const char *path);\n"
9892 "\n"
9893 msgstr ""
9894
9895 # type: textblock
9896 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2167
9897 msgid ""
9898 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9899 "given C<path> name."
9900 msgstr ""
9901
9902 # type: =head2
9903 #: ../src/guestfs-actions.pod:3128
9904 msgid "guestfs_is_file"
9905 msgstr ""
9906
9907 # type: verbatim
9908 #: ../src/guestfs-actions.pod:3130
9909 #, no-wrap
9910 msgid ""
9911 " int\n"
9912 " guestfs_is_file (guestfs_h *g,\n"
9913 "                  const char *path);\n"
9914 "\n"
9915 msgstr ""
9916
9917 # type: textblock
9918 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2176
9919 msgid ""
9920 "This returns C<true> if and only if there is a regular file with the given "
9921 "C<path> name.  Note that it returns false for other objects like directories."
9922 msgstr ""
9923
9924 # type: =head2
9925 #: ../src/guestfs-actions.pod:3144
9926 msgid "guestfs_is_launching"
9927 msgstr ""
9928
9929 # type: verbatim
9930 #: ../src/guestfs-actions.pod:3146
9931 #, no-wrap
9932 msgid ""
9933 " int\n"
9934 " guestfs_is_launching (guestfs_h *g);\n"
9935 "\n"
9936 msgstr ""
9937
9938 # type: textblock
9939 #: ../src/guestfs-actions.pod:3149 ../fish/guestfish-actions.pod:2186
9940 msgid ""
9941 "This returns true iff this handle is launching the subprocess (in the "
9942 "C<LAUNCHING> state)."
9943 msgstr ""
9944
9945 # type: =head2
9946 #: ../src/guestfs-actions.pod:3158
9947 msgid "guestfs_is_lv"
9948 msgstr ""
9949
9950 # type: verbatim
9951 #: ../src/guestfs-actions.pod:3160
9952 #, no-wrap
9953 msgid ""
9954 " int\n"
9955 " guestfs_is_lv (guestfs_h *g,\n"
9956 "                const char *device);\n"
9957 "\n"
9958 msgstr ""
9959
9960 # type: textblock
9961 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2195
9962 msgid ""
9963 "This command tests whether C<device> is a logical volume, and returns true "
9964 "iff this is the case."
9965 msgstr ""
9966
9967 # type: =head2
9968 #: ../src/guestfs-actions.pod:3171
9969 msgid "guestfs_is_ready"
9970 msgstr ""
9971
9972 # type: verbatim
9973 #: ../src/guestfs-actions.pod:3173
9974 #, no-wrap
9975 msgid ""
9976 " int\n"
9977 " guestfs_is_ready (guestfs_h *g);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #: ../src/guestfs-actions.pod:3176 ../fish/guestfish-actions.pod:2202
9983 msgid ""
9984 "This returns true iff this handle is ready to accept commands (in the "
9985 "C<READY> state)."
9986 msgstr ""
9987
9988 # type: =head2
9989 #: ../src/guestfs-actions.pod:3185
9990 msgid "guestfs_is_socket"
9991 msgstr ""
9992
9993 # type: verbatim
9994 #: ../src/guestfs-actions.pod:3187
9995 #, no-wrap
9996 msgid ""
9997 " int\n"
9998 " guestfs_is_socket (guestfs_h *g,\n"
9999 "                    const char *path);\n"
10000 "\n"
10001 msgstr ""
10002
10003 # type: textblock
10004 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2211
10005 msgid ""
10006 "This returns C<true> if and only if there is a Unix domain socket with the "
10007 "given C<path> name."
10008 msgstr ""
10009
10010 # type: =head2
10011 #: ../src/guestfs-actions.pod:3200
10012 msgid "guestfs_is_symlink"
10013 msgstr ""
10014
10015 # type: verbatim
10016 #: ../src/guestfs-actions.pod:3202
10017 #, no-wrap
10018 msgid ""
10019 " int\n"
10020 " guestfs_is_symlink (guestfs_h *g,\n"
10021 "                     const char *path);\n"
10022 "\n"
10023 msgstr ""
10024
10025 # type: textblock
10026 #: ../src/guestfs-actions.pod:3206 ../fish/guestfish-actions.pod:2220
10027 msgid ""
10028 "This returns C<true> if and only if there is a symbolic link with the given "
10029 "C<path> name."
10030 msgstr ""
10031
10032 # type: =head2
10033 #: ../src/guestfs-actions.pod:3215
10034 msgid "guestfs_kill_subprocess"
10035 msgstr ""
10036
10037 # type: verbatim
10038 #: ../src/guestfs-actions.pod:3217
10039 #, no-wrap
10040 msgid ""
10041 " int\n"
10042 " guestfs_kill_subprocess (guestfs_h *g);\n"
10043 "\n"
10044 msgstr ""
10045
10046 # type: textblock
10047 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2229
10048 msgid "This kills the qemu subprocess.  You should never need to call this."
10049 msgstr ""
10050
10051 # type: =head2
10052 #: ../src/guestfs-actions.pod:3226
10053 msgid "guestfs_launch"
10054 msgstr ""
10055
10056 # type: verbatim
10057 #: ../src/guestfs-actions.pod:3228
10058 #, no-wrap
10059 msgid ""
10060 " int\n"
10061 " guestfs_launch (guestfs_h *g);\n"
10062 "\n"
10063 msgstr ""
10064
10065 # type: textblock
10066 #: ../src/guestfs-actions.pod:3231 ../fish/guestfish-actions.pod:2237
10067 msgid ""
10068 "Internally libguestfs is implemented by running a virtual machine using "
10069 "L<qemu(1)>."
10070 msgstr ""
10071
10072 # type: textblock
10073 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2240
10074 msgid ""
10075 "You should call this after configuring the handle (eg. adding drives) but "
10076 "before performing any actions."
10077 msgstr ""
10078
10079 # type: =head2
10080 #: ../src/guestfs-actions.pod:3241
10081 msgid "guestfs_lchown"
10082 msgstr ""
10083
10084 # type: verbatim
10085 #: ../src/guestfs-actions.pod:3243
10086 #, no-wrap
10087 msgid ""
10088 " int\n"
10089 " guestfs_lchown (guestfs_h *g,\n"
10090 "                 int owner,\n"
10091 "                 int group,\n"
10092 "                 const char *path);\n"
10093 "\n"
10094 msgstr ""
10095
10096 # type: textblock
10097 #: ../src/guestfs-actions.pod:3249
10098 msgid ""
10099 "Change the file owner to C<owner> and group to C<group>.  This is like "
10100 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
10101 "changed, not the target."
10102 msgstr ""
10103
10104 # type: =head2
10105 #: ../src/guestfs-actions.pod:3261
10106 msgid "guestfs_lgetxattr"
10107 msgstr ""
10108
10109 # type: verbatim
10110 #: ../src/guestfs-actions.pod:3263
10111 #, no-wrap
10112 msgid ""
10113 " char *\n"
10114 " guestfs_lgetxattr (guestfs_h *g,\n"
10115 "                    const char *path,\n"
10116 "                    const char *name,\n"
10117 "                    size_t *size_r);\n"
10118 "\n"
10119 msgstr ""
10120
10121 # type: textblock
10122 #: ../src/guestfs-actions.pod:3269 ../fish/guestfish-actions.pod:2259
10123 msgid ""
10124 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10125 "is a symlink, then this call returns an extended attribute from the symlink."
10126 msgstr ""
10127
10128 # type: textblock
10129 #: ../src/guestfs-actions.pod:3283
10130 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
10131 msgstr ""
10132
10133 # type: =head2
10134 #: ../src/guestfs-actions.pod:3289
10135 msgid "guestfs_lgetxattrs"
10136 msgstr ""
10137
10138 # type: verbatim
10139 #: ../src/guestfs-actions.pod:3291
10140 #, no-wrap
10141 msgid ""
10142 " struct guestfs_xattr_list *\n"
10143 " guestfs_lgetxattrs (guestfs_h *g,\n"
10144 "                     const char *path);\n"
10145 "\n"
10146 msgstr ""
10147
10148 # type: textblock
10149 #: ../src/guestfs-actions.pod:3295
10150 msgid ""
10151 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
10152 "then it returns the extended attributes of the link itself."
10153 msgstr ""
10154
10155 # type: =head2
10156 #: ../src/guestfs-actions.pod:3305
10157 msgid "guestfs_list_devices"
10158 msgstr ""
10159
10160 # type: verbatim
10161 #: ../src/guestfs-actions.pod:3307
10162 #, no-wrap
10163 msgid ""
10164 " char **\n"
10165 " guestfs_list_devices (guestfs_h *g);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2287
10171 msgid "List all the block devices."
10172 msgstr ""
10173
10174 # type: textblock
10175 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2289
10176 msgid "The full block device names are returned, eg. C</dev/sda>."
10177 msgstr ""
10178
10179 # type: =head2
10180 #: ../src/guestfs-actions.pod:3322
10181 msgid "guestfs_list_filesystems"
10182 msgstr ""
10183
10184 # type: verbatim
10185 #: ../src/guestfs-actions.pod:3324
10186 #, no-wrap
10187 msgid ""
10188 " char **\n"
10189 " guestfs_list_filesystems (guestfs_h *g);\n"
10190 "\n"
10191 msgstr ""
10192
10193 # type: textblock
10194 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2297
10195 msgid ""
10196 "This inspection command looks for filesystems on partitions, block devices "
10197 "and logical volumes, returning a list of devices containing filesystems and "
10198 "their type."
10199 msgstr ""
10200
10201 # type: textblock
10202 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2301
10203 msgid ""
10204 "The return value is a hash, where the keys are the devices containing "
10205 "filesystems, and the values are the filesystem types.  For example:"
10206 msgstr ""
10207
10208 # type: verbatim
10209 #: ../src/guestfs-actions.pod:3335 ../fish/guestfish-actions.pod:2305
10210 #, no-wrap
10211 msgid ""
10212 " \"/dev/sda1\" => \"ntfs\"\n"
10213 " \"/dev/sda2\" => \"ext2\"\n"
10214 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10215 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10216 "\n"
10217 msgstr ""
10218
10219 # type: textblock
10220 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2310
10221 msgid ""
10222 "The value can have the special value \"unknown\", meaning the content of the "
10223 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10224 msgstr ""
10225
10226 # type: textblock
10227 #: ../src/guestfs-actions.pod:3344
10228 msgid ""
10229 "This command runs other libguestfs commands, which might include "
10230 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
10231 "soon after launch and only when nothing is mounted."
10232 msgstr ""
10233
10234 # type: textblock
10235 #: ../src/guestfs-actions.pod:3348
10236 msgid ""
10237 "Not all of the filesystems returned will be mountable.  In particular, swap "
10238 "partitions are returned in the list.  Also this command does not check that "
10239 "each filesystem found is valid and mountable, and some filesystems might be "
10240 "mountable but require special options.  Filesystems may not all belong to a "
10241 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
10242 msgstr ""
10243
10244 # type: textblock
10245 #: ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:4951
10246 msgid "(Added in 1.5.15)"
10247 msgstr ""
10248
10249 # type: =head2
10250 #: ../src/guestfs-actions.pod:3364
10251 msgid "guestfs_list_partitions"
10252 msgstr ""
10253
10254 # type: verbatim
10255 #: ../src/guestfs-actions.pod:3366
10256 #, no-wrap
10257 msgid ""
10258 " char **\n"
10259 " guestfs_list_partitions (guestfs_h *g);\n"
10260 "\n"
10261 msgstr ""
10262
10263 # type: textblock
10264 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2330
10265 msgid "List all the partitions detected on all block devices."
10266 msgstr ""
10267
10268 # type: textblock
10269 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2332
10270 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10271 msgstr ""
10272
10273 # type: textblock
10274 #: ../src/guestfs-actions.pod:3373
10275 msgid ""
10276 "This does not return logical volumes.  For that you will need to call "
10277 "C<guestfs_lvs>."
10278 msgstr ""
10279
10280 # type: =head2
10281 #: ../src/guestfs-actions.pod:3384
10282 msgid "guestfs_ll"
10283 msgstr ""
10284
10285 # type: verbatim
10286 #: ../src/guestfs-actions.pod:3386
10287 #, no-wrap
10288 msgid ""
10289 " char *\n"
10290 " guestfs_ll (guestfs_h *g,\n"
10291 "             const char *directory);\n"
10292 "\n"
10293 msgstr ""
10294
10295 # type: textblock
10296 #: ../src/guestfs-actions.pod:3390 ../fish/guestfish-actions.pod:2343
10297 msgid ""
10298 "List the files in C<directory> (relative to the root directory, there is no "
10299 "cwd) in the format of 'ls -la'."
10300 msgstr ""
10301
10302 # type: textblock
10303 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2346
10304 msgid ""
10305 "This command is mostly useful for interactive sessions.  It is I<not> "
10306 "intended that you try to parse the output string."
10307 msgstr ""
10308
10309 # type: =head2
10310 #: ../src/guestfs-actions.pod:3401
10311 msgid "guestfs_ln"
10312 msgstr ""
10313
10314 # type: verbatim
10315 #: ../src/guestfs-actions.pod:3403
10316 #, no-wrap
10317 msgid ""
10318 " int\n"
10319 " guestfs_ln (guestfs_h *g,\n"
10320 "             const char *target,\n"
10321 "             const char *linkname);\n"
10322 "\n"
10323 msgstr ""
10324
10325 # type: textblock
10326 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2353
10327 msgid "This command creates a hard link using the C<ln> command."
10328 msgstr ""
10329
10330 # type: =head2
10331 #: ../src/guestfs-actions.pod:3414
10332 msgid "guestfs_ln_f"
10333 msgstr ""
10334
10335 # type: verbatim
10336 #: ../src/guestfs-actions.pod:3416
10337 #, no-wrap
10338 msgid ""
10339 " int\n"
10340 " guestfs_ln_f (guestfs_h *g,\n"
10341 "               const char *target,\n"
10342 "               const char *linkname);\n"
10343 "\n"
10344 msgstr ""
10345
10346 # type: textblock
10347 #: ../src/guestfs-actions.pod:3421 ../fish/guestfish-actions.pod:2359
10348 msgid ""
10349 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
10350 "option removes the link (C<linkname>) if it exists already."
10351 msgstr ""
10352
10353 # type: =head2
10354 #: ../src/guestfs-actions.pod:3428
10355 msgid "guestfs_ln_s"
10356 msgstr ""
10357
10358 # type: verbatim
10359 #: ../src/guestfs-actions.pod:3430
10360 #, no-wrap
10361 msgid ""
10362 " int\n"
10363 " guestfs_ln_s (guestfs_h *g,\n"
10364 "               const char *target,\n"
10365 "               const char *linkname);\n"
10366 "\n"
10367 msgstr ""
10368
10369 # type: textblock
10370 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2366
10371 msgid "This command creates a symbolic link using the C<ln -s> command."
10372 msgstr ""
10373
10374 # type: =head2
10375 #: ../src/guestfs-actions.pod:3441
10376 msgid "guestfs_ln_sf"
10377 msgstr ""
10378
10379 # type: verbatim
10380 #: ../src/guestfs-actions.pod:3443
10381 #, no-wrap
10382 msgid ""
10383 " int\n"
10384 " guestfs_ln_sf (guestfs_h *g,\n"
10385 "                const char *target,\n"
10386 "                const char *linkname);\n"
10387 "\n"
10388 msgstr ""
10389
10390 # type: textblock
10391 #: ../src/guestfs-actions.pod:3448 ../fish/guestfish-actions.pod:2372
10392 msgid ""
10393 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
10394 "option removes the link (C<linkname>) if it exists already."
10395 msgstr ""
10396
10397 # type: =head2
10398 #: ../src/guestfs-actions.pod:3455
10399 msgid "guestfs_lremovexattr"
10400 msgstr ""
10401
10402 # type: verbatim
10403 #: ../src/guestfs-actions.pod:3457
10404 #, no-wrap
10405 msgid ""
10406 " int\n"
10407 " guestfs_lremovexattr (guestfs_h *g,\n"
10408 "                       const char *xattr,\n"
10409 "                       const char *path);\n"
10410 "\n"
10411 msgstr ""
10412
10413 # type: textblock
10414 #: ../src/guestfs-actions.pod:3462
10415 msgid ""
10416 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
10417 "link, then it removes an extended attribute of the link itself."
10418 msgstr ""
10419
10420 # type: =head2
10421 #: ../src/guestfs-actions.pod:3470
10422 msgid "guestfs_ls"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #: ../src/guestfs-actions.pod:3472
10427 #, no-wrap
10428 msgid ""
10429 " char **\n"
10430 " guestfs_ls (guestfs_h *g,\n"
10431 "             const char *directory);\n"
10432 "\n"
10433 msgstr ""
10434
10435 # type: textblock
10436 #: ../src/guestfs-actions.pod:3476 ../fish/guestfish-actions.pod:2387
10437 msgid ""
10438 "List the files in C<directory> (relative to the root directory, there is no "
10439 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10440 msgstr ""
10441
10442 # type: textblock
10443 #: ../src/guestfs-actions.pod:3480
10444 msgid ""
10445 "This command is mostly useful for interactive sessions.  Programs should "
10446 "probably use C<guestfs_readdir> instead."
10447 msgstr ""
10448
10449 # type: =head2
10450 #: ../src/guestfs-actions.pod:3489
10451 msgid "guestfs_lsetxattr"
10452 msgstr ""
10453
10454 # type: verbatim
10455 #: ../src/guestfs-actions.pod:3491
10456 #, no-wrap
10457 msgid ""
10458 " int\n"
10459 " guestfs_lsetxattr (guestfs_h *g,\n"
10460 "                    const char *xattr,\n"
10461 "                    const char *val,\n"
10462 "                    int vallen,\n"
10463 "                    const char *path);\n"
10464 "\n"
10465 msgstr ""
10466
10467 # type: textblock
10468 #: ../src/guestfs-actions.pod:3498
10469 msgid ""
10470 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
10471 "then it sets an extended attribute of the link itself."
10472 msgstr ""
10473
10474 # type: =head2
10475 #: ../src/guestfs-actions.pod:3506
10476 msgid "guestfs_lstat"
10477 msgstr ""
10478
10479 # type: verbatim
10480 #: ../src/guestfs-actions.pod:3508
10481 #, no-wrap
10482 msgid ""
10483 " struct guestfs_stat *\n"
10484 " guestfs_lstat (guestfs_h *g,\n"
10485 "                const char *path);\n"
10486 "\n"
10487 msgstr ""
10488
10489 # type: textblock
10490 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:6005
10491 #: ../fish/guestfish-actions.pod:2406 ../fish/guestfish-actions.pod:4019
10492 msgid "Returns file information for the given C<path>."
10493 msgstr ""
10494
10495 # type: textblock
10496 #: ../src/guestfs-actions.pod:3514
10497 msgid ""
10498 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
10499 "link, then the link is stat-ed, not the file it refers to."
10500 msgstr ""
10501
10502 # type: textblock
10503 #: ../src/guestfs-actions.pod:3518 ../fish/guestfish-actions.pod:2412
10504 msgid "This is the same as the C<lstat(2)> system call."
10505 msgstr ""
10506
10507 # type: textblock
10508 #: ../src/guestfs-actions.pod:3520 ../src/guestfs-actions.pod:6009
10509 msgid ""
10510 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
10511 "error.  I<The caller must call C<guestfs_free_stat> after use>."
10512 msgstr ""
10513
10514 # type: textblock
10515 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:6013
10516 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6412
10517 msgid "(Added in 0.9.2)"
10518 msgstr ""
10519
10520 # type: =head2
10521 #: ../src/guestfs-actions.pod:3526
10522 msgid "guestfs_lstatlist"
10523 msgstr ""
10524
10525 # type: verbatim
10526 #: ../src/guestfs-actions.pod:3528
10527 #, no-wrap
10528 msgid ""
10529 " struct guestfs_stat_list *\n"
10530 " guestfs_lstatlist (guestfs_h *g,\n"
10531 "                    const char *path,\n"
10532 "                    char *const *names);\n"
10533 "\n"
10534 msgstr ""
10535
10536 # type: textblock
10537 #: ../src/guestfs-actions.pod:3533
10538 msgid ""
10539 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
10540 "files, where all files are in the directory C<path>.  C<names> is the list "
10541 "of files from this directory."
10542 msgstr ""
10543
10544 # type: textblock
10545 #: ../src/guestfs-actions.pod:3537 ../fish/guestfish-actions.pod:2422
10546 msgid ""
10547 "On return you get a list of stat structs, with a one-to-one correspondence "
10548 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10549 "then the C<ino> field of that structure is set to C<-1>."
10550 msgstr ""
10551
10552 # type: textblock
10553 #: ../src/guestfs-actions.pod:3542
10554 msgid ""
10555 "This call is intended for programs that want to efficiently list a directory "
10556 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
10557 "for a similarly efficient call for getting extended attributes.  Very long "
10558 "directory listings might cause the protocol message size to be exceeded, "
10559 "causing this call to fail.  The caller must split up such requests into "
10560 "smaller groups of names."
10561 msgstr ""
10562
10563 # type: textblock
10564 #: ../src/guestfs-actions.pod:3550
10565 msgid ""
10566 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
10567 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
10568 msgstr ""
10569
10570 # type: =head2
10571 #: ../src/guestfs-actions.pod:3556
10572 msgid "guestfs_luks_add_key"
10573 msgstr ""
10574
10575 # type: verbatim
10576 #: ../src/guestfs-actions.pod:3558
10577 #, no-wrap
10578 msgid ""
10579 " int\n"
10580 " guestfs_luks_add_key (guestfs_h *g,\n"
10581 "                       const char *device,\n"
10582 "                       const char *key,\n"
10583 "                       const char *newkey,\n"
10584 "                       int keyslot);\n"
10585 "\n"
10586 msgstr ""
10587
10588 # type: textblock
10589 #: ../src/guestfs-actions.pod:3565 ../fish/guestfish-actions.pod:2439
10590 msgid ""
10591 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10592 "existing key, and is used to access the device.  C<newkey> is the new key to "
10593 "add.  C<keyslot> is the key slot that will be replaced."
10594 msgstr ""
10595
10596 # type: textblock
10597 #: ../src/guestfs-actions.pod:3570
10598 msgid ""
10599 "Note that if C<keyslot> already contains a key, then this command will "
10600 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
10601 msgstr ""
10602
10603 # type: textblock
10604 #: ../src/guestfs-actions.pod:3576 ../src/guestfs-actions.pod:3616
10605 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3659
10606 #: ../src/guestfs-actions.pod:3691 ../src/guestfs-actions.pod:3710
10607 msgid ""
10608 "This function takes a key or passphrase parameter which could contain "
10609 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
10610 "information."
10611 msgstr ""
10612
10613 # type: textblock
10614 #: ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3620
10615 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3663
10616 msgid "(Added in 1.5.2)"
10617 msgstr ""
10618
10619 # type: =head2
10620 #: ../src/guestfs-actions.pod:3582
10621 msgid "guestfs_luks_close"
10622 msgstr ""
10623
10624 # type: verbatim
10625 #: ../src/guestfs-actions.pod:3584
10626 #, no-wrap
10627 msgid ""
10628 " int\n"
10629 " guestfs_luks_close (guestfs_h *g,\n"
10630 "                     const char *device);\n"
10631 "\n"
10632 msgstr ""
10633
10634 # type: textblock
10635 #: ../src/guestfs-actions.pod:3588
10636 msgid ""
10637 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
10638 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
10639 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10640 "underlying block device."
10641 msgstr ""
10642
10643 # type: textblock
10644 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3695
10645 #: ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3764
10646 #: ../src/guestfs-actions.pod:3812
10647 msgid "(Added in 1.5.1)"
10648 msgstr ""
10649
10650 # type: =head2
10651 #: ../src/guestfs-actions.pod:3598
10652 msgid "guestfs_luks_format"
10653 msgstr ""
10654
10655 # type: verbatim
10656 #: ../src/guestfs-actions.pod:3600
10657 #, no-wrap
10658 msgid ""
10659 " int\n"
10660 " guestfs_luks_format (guestfs_h *g,\n"
10661 "                      const char *device,\n"
10662 "                      const char *key,\n"
10663 "                      int keyslot);\n"
10664 "\n"
10665 msgstr ""
10666
10667 # type: textblock
10668 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2465
10669 msgid ""
10670 "This command erases existing data on C<device> and formats the device as a "
10671 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10672 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10673 msgstr ""
10674
10675 # type: textblock
10676 #: ../src/guestfs-actions.pod:3613 ../src/guestfs-actions.pod:3636
10677 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:4702
10678 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5840
10679 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5889
10680 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:2473
10681 #: ../fish/guestfish-actions.pod:2486 ../fish/guestfish-actions.pod:2570
10682 #: ../fish/guestfish-actions.pod:3131 ../fish/guestfish-actions.pod:3638
10683 #: ../fish/guestfish-actions.pod:3918 ../fish/guestfish-actions.pod:3934
10684 #: ../fish/guestfish-actions.pod:3949 ../fish/guestfish-actions.pod:4664
10685 msgid ""
10686 "B<This command is dangerous.  Without careful use you can easily destroy all "
10687 "your data>."
10688 msgstr ""
10689
10690 # type: =head2
10691 #: ../src/guestfs-actions.pod:3622
10692 msgid "guestfs_luks_format_cipher"
10693 msgstr ""
10694
10695 # type: verbatim
10696 #: ../src/guestfs-actions.pod:3624
10697 #, no-wrap
10698 msgid ""
10699 " int\n"
10700 " guestfs_luks_format_cipher (guestfs_h *g,\n"
10701 "                             const char *device,\n"
10702 "                             const char *key,\n"
10703 "                             int keyslot,\n"
10704 "                             const char *cipher);\n"
10705 "\n"
10706 msgstr ""
10707
10708 # type: textblock
10709 #: ../src/guestfs-actions.pod:3631
10710 msgid ""
10711 "This command is the same as C<guestfs_luks_format> but it also allows you to "
10712 "set the C<cipher> used."
10713 msgstr ""
10714
10715 # type: =head2
10716 #: ../src/guestfs-actions.pod:3645
10717 msgid "guestfs_luks_kill_slot"
10718 msgstr ""
10719
10720 # type: verbatim
10721 #: ../src/guestfs-actions.pod:3647
10722 #, no-wrap
10723 msgid ""
10724 " int\n"
10725 " guestfs_luks_kill_slot (guestfs_h *g,\n"
10726 "                         const char *device,\n"
10727 "                         const char *key,\n"
10728 "                         int keyslot);\n"
10729 "\n"
10730 msgstr ""
10731
10732 # type: textblock
10733 #: ../src/guestfs-actions.pod:3653 ../fish/guestfish-actions.pod:2493
10734 msgid ""
10735 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10736 "device C<device>.  C<key> must be one of the I<other> keys."
10737 msgstr ""
10738
10739 # type: =head2
10740 #: ../src/guestfs-actions.pod:3665
10741 msgid "guestfs_luks_open"
10742 msgstr ""
10743
10744 # type: verbatim
10745 #: ../src/guestfs-actions.pod:3667
10746 #, no-wrap
10747 msgid ""
10748 " int\n"
10749 " guestfs_luks_open (guestfs_h *g,\n"
10750 "                    const char *device,\n"
10751 "                    const char *key,\n"
10752 "                    const char *mapname);\n"
10753 "\n"
10754 msgstr ""
10755
10756 # type: textblock
10757 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2504
10758 msgid ""
10759 "This command opens a block device which has been encrypted according to the "
10760 "Linux Unified Key Setup (LUKS) standard."
10761 msgstr ""
10762
10763 # type: textblock
10764 #: ../src/guestfs-actions.pod:3676 ../fish/guestfish-actions.pod:2507
10765 msgid "C<device> is the encrypted block device or partition."
10766 msgstr ""
10767
10768 # type: textblock
10769 #: ../src/guestfs-actions.pod:3678 ../fish/guestfish-actions.pod:2509
10770 msgid ""
10771 "The caller must supply one of the keys associated with the LUKS block "
10772 "device, in the C<key> parameter."
10773 msgstr ""
10774
10775 # type: textblock
10776 #: ../src/guestfs-actions.pod:3681 ../fish/guestfish-actions.pod:2512
10777 msgid ""
10778 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10779 "writes to this block device are decrypted from and encrypted to the "
10780 "underlying C<device> respectively."
10781 msgstr ""
10782
10783 # type: textblock
10784 #: ../src/guestfs-actions.pod:3685
10785 msgid ""
10786 "If this block device contains LVM volume groups, then calling "
10787 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
10788 "visible."
10789 msgstr ""
10790
10791 # type: =head2
10792 #: ../src/guestfs-actions.pod:3697
10793 msgid "guestfs_luks_open_ro"
10794 msgstr ""
10795
10796 # type: verbatim
10797 #: ../src/guestfs-actions.pod:3699
10798 #, no-wrap
10799 msgid ""
10800 " int\n"
10801 " guestfs_luks_open_ro (guestfs_h *g,\n"
10802 "                       const char *device,\n"
10803 "                       const char *key,\n"
10804 "                       const char *mapname);\n"
10805 "\n"
10806 msgstr ""
10807
10808 # type: textblock
10809 #: ../src/guestfs-actions.pod:3705
10810 msgid ""
10811 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
10812 "created."
10813 msgstr ""
10814
10815 # type: =head2
10816 #: ../src/guestfs-actions.pod:3716
10817 msgid "guestfs_lvcreate"
10818 msgstr ""
10819
10820 # type: verbatim
10821 #: ../src/guestfs-actions.pod:3718
10822 #, no-wrap
10823 msgid ""
10824 " int\n"
10825 " guestfs_lvcreate (guestfs_h *g,\n"
10826 "                   const char *logvol,\n"
10827 "                   const char *volgroup,\n"
10828 "                   int mbytes);\n"
10829 "\n"
10830 msgstr ""
10831
10832 # type: textblock
10833 #: ../src/guestfs-actions.pod:3724 ../fish/guestfish-actions.pod:2537
10834 msgid ""
10835 "This creates an LVM logical volume called C<logvol> on the volume group "
10836 "C<volgroup>, with C<size> megabytes."
10837 msgstr ""
10838
10839 # type: =head2
10840 #: ../src/guestfs-actions.pod:3731
10841 msgid "guestfs_lvm_canonical_lv_name"
10842 msgstr ""
10843
10844 # type: verbatim
10845 #: ../src/guestfs-actions.pod:3733
10846 #, no-wrap
10847 msgid ""
10848 " char *\n"
10849 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
10850 "                                const char *lvname);\n"
10851 "\n"
10852 msgstr ""
10853
10854 # type: textblock
10855 #: ../src/guestfs-actions.pod:3737 ../fish/guestfish-actions.pod:2544
10856 msgid ""
10857 "This converts alternative naming schemes for LVs that you might find to the "
10858 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10859 "LV>."
10860 msgstr ""
10861
10862 # type: textblock
10863 #: ../src/guestfs-actions.pod:3741 ../fish/guestfish-actions.pod:2548
10864 msgid ""
10865 "This command returns an error if the C<lvname> parameter does not refer to a "
10866 "logical volume."
10867 msgstr ""
10868
10869 # type: textblock
10870 #: ../src/guestfs-actions.pod:3744
10871 msgid "See also C<guestfs_is_lv>."
10872 msgstr ""
10873
10874 # type: textblock
10875 #: ../src/guestfs-actions.pod:3749
10876 msgid "(Added in 1.5.24)"
10877 msgstr ""
10878
10879 # type: =head2
10880 #: ../src/guestfs-actions.pod:3751
10881 msgid "guestfs_lvm_clear_filter"
10882 msgstr ""
10883
10884 # type: verbatim
10885 #: ../src/guestfs-actions.pod:3753
10886 #, no-wrap
10887 msgid ""
10888 " int\n"
10889 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
10890 "\n"
10891 msgstr ""
10892
10893 # type: textblock
10894 #: ../src/guestfs-actions.pod:3756
10895 msgid ""
10896 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
10897 "see every block device."
10898 msgstr ""
10899
10900 # type: textblock
10901 #: ../src/guestfs-actions.pod:3759 ../src/guestfs-actions.pod:3801
10902 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2591
10903 msgid ""
10904 "This command also clears the LVM cache and performs a volume group scan."
10905 msgstr ""
10906
10907 # type: =head2
10908 #: ../src/guestfs-actions.pod:3766
10909 msgid "guestfs_lvm_remove_all"
10910 msgstr ""
10911
10912 # type: verbatim
10913 #: ../src/guestfs-actions.pod:3768
10914 #, no-wrap
10915 msgid ""
10916 " int\n"
10917 " guestfs_lvm_remove_all (guestfs_h *g);\n"
10918 "\n"
10919 msgstr ""
10920
10921 # type: textblock
10922 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2567
10923 msgid ""
10924 "This command removes all LVM logical volumes, volume groups and physical "
10925 "volumes."
10926 msgstr ""
10927
10928 # type: =head2
10929 #: ../src/guestfs-actions.pod:3781
10930 msgid "guestfs_lvm_set_filter"
10931 msgstr ""
10932
10933 # type: verbatim
10934 #: ../src/guestfs-actions.pod:3783
10935 #, no-wrap
10936 msgid ""
10937 " int\n"
10938 " guestfs_lvm_set_filter (guestfs_h *g,\n"
10939 "                         char *const *devices);\n"
10940 "\n"
10941 msgstr ""
10942
10943 # type: textblock
10944 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2577
10945 msgid ""
10946 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10947 "block devices in the list C<devices>, and will ignore all other attached "
10948 "block devices."
10949 msgstr ""
10950
10951 # type: textblock
10952 #: ../src/guestfs-actions.pod:3791 ../fish/guestfish-actions.pod:2581
10953 msgid ""
10954 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10955 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10956 "there are two types of duplication possible: either cloned PVs/VGs which "
10957 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10958 "same name.  In normal operation you cannot create this situation, but you "
10959 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10960 "inside the LVM metadata."
10961 msgstr ""
10962
10963 # type: textblock
10964 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2594
10965 msgid "You can filter whole block devices or individual partitions."
10966 msgstr ""
10967
10968 # type: textblock
10969 #: ../src/guestfs-actions.pod:3806 ../fish/guestfish-actions.pod:2596
10970 msgid ""
10971 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10972 "filesystem), even if you are not filtering out that VG."
10973 msgstr ""
10974
10975 # type: =head2
10976 #: ../src/guestfs-actions.pod:3814
10977 msgid "guestfs_lvremove"
10978 msgstr ""
10979
10980 # type: verbatim
10981 #: ../src/guestfs-actions.pod:3816
10982 #, no-wrap
10983 msgid ""
10984 " int\n"
10985 " guestfs_lvremove (guestfs_h *g,\n"
10986 "                   const char *device);\n"
10987 "\n"
10988 msgstr ""
10989
10990 # type: textblock
10991 #: ../src/guestfs-actions.pod:3820 ../fish/guestfish-actions.pod:2604
10992 msgid ""
10993 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10994 "LV, such as C</dev/VG/LV>."
10995 msgstr ""
10996
10997 # type: textblock
10998 #: ../src/guestfs-actions.pod:3823 ../fish/guestfish-actions.pod:2607
10999 msgid ""
11000 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11001 "dev/VG>."
11002 msgstr ""
11003
11004 # type: textblock
11005 #: ../src/guestfs-actions.pod:3828 ../src/guestfs-actions.pod:5048
11006 #: ../src/guestfs-actions.pod:6788
11007 msgid "(Added in 1.0.13)"
11008 msgstr ""
11009
11010 # type: =head2
11011 #: ../src/guestfs-actions.pod:3830
11012 msgid "guestfs_lvrename"
11013 msgstr ""
11014
11015 # type: verbatim
11016 #: ../src/guestfs-actions.pod:3832
11017 #, no-wrap
11018 msgid ""
11019 " int\n"
11020 " guestfs_lvrename (guestfs_h *g,\n"
11021 "                   const char *logvol,\n"
11022 "                   const char *newlogvol);\n"
11023 "\n"
11024 msgstr ""
11025
11026 # type: textblock
11027 #: ../src/guestfs-actions.pod:3837 ../fish/guestfish-actions.pod:2614
11028 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11029 msgstr ""
11030
11031 # type: textblock
11032 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:6801
11033 msgid "(Added in 1.0.83)"
11034 msgstr ""
11035
11036 # type: =head2
11037 #: ../src/guestfs-actions.pod:3843
11038 msgid "guestfs_lvresize"
11039 msgstr ""
11040
11041 # type: verbatim
11042 #: ../src/guestfs-actions.pod:3845
11043 #, no-wrap
11044 msgid ""
11045 " int\n"
11046 " guestfs_lvresize (guestfs_h *g,\n"
11047 "                   const char *device,\n"
11048 "                   int mbytes);\n"
11049 "\n"
11050 msgstr ""
11051
11052 # type: textblock
11053 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2620
11054 msgid ""
11055 "This resizes (expands or shrinks) an existing LVM logical volume to "
11056 "C<mbytes>.  When reducing, data in the reduced part is lost."
11057 msgstr ""
11058
11059 # type: =head2
11060 #: ../src/guestfs-actions.pod:3858
11061 msgid "guestfs_lvresize_free"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #: ../src/guestfs-actions.pod:3860
11066 #, no-wrap
11067 msgid ""
11068 " int\n"
11069 " guestfs_lvresize_free (guestfs_h *g,\n"
11070 "                        const char *lv,\n"
11071 "                        int percent);\n"
11072 "\n"
11073 msgstr ""
11074
11075 # type: textblock
11076 #: ../src/guestfs-actions.pod:3865 ../fish/guestfish-actions.pod:2628
11077 msgid ""
11078 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11079 "remaining free space in the volume group.  Commonly you would call this with "
11080 "pc = 100 which expands the logical volume as much as possible, using all "
11081 "remaining free space in the volume group."
11082 msgstr ""
11083
11084 # type: textblock
11085 #: ../src/guestfs-actions.pod:3873
11086 msgid "(Added in 1.3.3)"
11087 msgstr ""
11088
11089 # type: =head2
11090 #: ../src/guestfs-actions.pod:3875
11091 msgid "guestfs_lvs"
11092 msgstr ""
11093
11094 # type: verbatim
11095 #: ../src/guestfs-actions.pod:3877
11096 #, no-wrap
11097 msgid ""
11098 " char **\n"
11099 " guestfs_lvs (guestfs_h *g);\n"
11100 "\n"
11101 msgstr ""
11102
11103 # type: textblock
11104 #: ../src/guestfs-actions.pod:3880 ../fish/guestfish-actions.pod:2638
11105 msgid ""
11106 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11107 "(8)> command."
11108 msgstr ""
11109
11110 # type: textblock
11111 #: ../src/guestfs-actions.pod:3883 ../fish/guestfish-actions.pod:2641
11112 msgid ""
11113 "This returns a list of the logical volume device names (eg. C</dev/"
11114 "VolGroup00/LogVol00>)."
11115 msgstr ""
11116
11117 # type: textblock
11118 #: ../src/guestfs-actions.pod:3886
11119 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
11120 msgstr ""
11121
11122 # type: =head2
11123 #: ../src/guestfs-actions.pod:3894
11124 msgid "guestfs_lvs_full"
11125 msgstr ""
11126
11127 # type: verbatim
11128 #: ../src/guestfs-actions.pod:3896
11129 #, no-wrap
11130 msgid ""
11131 " struct guestfs_lvm_lv_list *\n"
11132 " guestfs_lvs_full (guestfs_h *g);\n"
11133 "\n"
11134 msgstr ""
11135
11136 # type: textblock
11137 #: ../src/guestfs-actions.pod:3899 ../fish/guestfish-actions.pod:2650
11138 msgid ""
11139 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11140 "(8)> command.  The \"full\" version includes all fields."
11141 msgstr ""
11142
11143 # type: textblock
11144 #: ../src/guestfs-actions.pod:3902
11145 msgid ""
11146 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
11147 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
11148 msgstr ""
11149
11150 # type: =head2
11151 #: ../src/guestfs-actions.pod:3908
11152 msgid "guestfs_lvuuid"
11153 msgstr ""
11154
11155 # type: verbatim
11156 #: ../src/guestfs-actions.pod:3910
11157 #, no-wrap
11158 msgid ""
11159 " char *\n"
11160 " guestfs_lvuuid (guestfs_h *g,\n"
11161 "                 const char *device);\n"
11162 "\n"
11163 msgstr ""
11164
11165 # type: textblock
11166 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2657
11167 msgid "This command returns the UUID of the LVM LV C<device>."
11168 msgstr ""
11169
11170 # type: =head2
11171 #: ../src/guestfs-actions.pod:3921
11172 msgid "guestfs_lxattrlist"
11173 msgstr ""
11174
11175 # type: verbatim
11176 #: ../src/guestfs-actions.pod:3923
11177 #, no-wrap
11178 msgid ""
11179 " struct guestfs_xattr_list *\n"
11180 " guestfs_lxattrlist (guestfs_h *g,\n"
11181 "                     const char *path,\n"
11182 "                     char *const *names);\n"
11183 "\n"
11184 msgstr ""
11185
11186 # type: textblock
11187 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2663
11188 msgid ""
11189 "This call allows you to get the extended attributes of multiple files, where "
11190 "all files are in the directory C<path>.  C<names> is the list of files from "
11191 "this directory."
11192 msgstr ""
11193
11194 # type: textblock
11195 #: ../src/guestfs-actions.pod:3932 ../fish/guestfish-actions.pod:2667
11196 msgid ""
11197 "On return you get a flat list of xattr structs which must be interpreted "
11198 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11199 "C<attrval> in this struct is zero-length to indicate there was an error "
11200 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11201 "number (the number of following attributes for this file, which could be C<"
11202 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11203 "for the first named file.  This repeats for the second and subsequent files."
11204 msgstr ""
11205
11206 # type: textblock
11207 #: ../src/guestfs-actions.pod:3942
11208 msgid ""
11209 "This call is intended for programs that want to efficiently list a directory "
11210 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
11211 "a similarly efficient call for getting standard stats.  Very long directory "
11212 "listings might cause the protocol message size to be exceeded, causing this "
11213 "call to fail.  The caller must split up such requests into smaller groups of "
11214 "names."
11215 msgstr ""
11216
11217 # type: =head2
11218 #: ../src/guestfs-actions.pod:3956
11219 msgid "guestfs_mkdir"
11220 msgstr ""
11221
11222 # type: verbatim
11223 #: ../src/guestfs-actions.pod:3958
11224 #, no-wrap
11225 msgid ""
11226 " int\n"
11227 " guestfs_mkdir (guestfs_h *g,\n"
11228 "                const char *path);\n"
11229 "\n"
11230 msgstr ""
11231
11232 # type: textblock
11233 #: ../src/guestfs-actions.pod:3962 ../fish/guestfish-actions.pod:2689
11234 msgid "Create a directory named C<path>."
11235 msgstr ""
11236
11237 # type: =head2
11238 #: ../src/guestfs-actions.pod:3968
11239 msgid "guestfs_mkdir_mode"
11240 msgstr ""
11241
11242 # type: verbatim
11243 #: ../src/guestfs-actions.pod:3970
11244 #, no-wrap
11245 msgid ""
11246 " int\n"
11247 " guestfs_mkdir_mode (guestfs_h *g,\n"
11248 "                     const char *path,\n"
11249 "                     int mode);\n"
11250 "\n"
11251 msgstr ""
11252
11253 # type: textblock
11254 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2695
11255 msgid ""
11256 "This command creates a directory, setting the initial permissions of the "
11257 "directory to C<mode>."
11258 msgstr ""
11259
11260 # type: textblock
11261 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2698
11262 msgid ""
11263 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11264 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11265 "other ways."
11266 msgstr ""
11267
11268 # type: textblock
11269 #: ../src/guestfs-actions.pod:3982
11270 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
11271 msgstr ""
11272
11273 # type: =head2
11274 #: ../src/guestfs-actions.pod:3988
11275 msgid "guestfs_mkdir_p"
11276 msgstr ""
11277
11278 # type: verbatim
11279 #: ../src/guestfs-actions.pod:3990
11280 #, no-wrap
11281 msgid ""
11282 " int\n"
11283 " guestfs_mkdir_p (guestfs_h *g,\n"
11284 "                  const char *path);\n"
11285 "\n"
11286 msgstr ""
11287
11288 # type: textblock
11289 #: ../src/guestfs-actions.pod:3994 ../fish/guestfish-actions.pod:2708
11290 msgid ""
11291 "Create a directory named C<path>, creating any parent directories as "
11292 "necessary.  This is like the C<mkdir -p> shell command."
11293 msgstr ""
11294
11295 # type: =head2
11296 #: ../src/guestfs-actions.pod:4001
11297 msgid "guestfs_mkdtemp"
11298 msgstr ""
11299
11300 # type: verbatim
11301 #: ../src/guestfs-actions.pod:4003
11302 #, no-wrap
11303 msgid ""
11304 " char *\n"
11305 " guestfs_mkdtemp (guestfs_h *g,\n"
11306 "                  const char *template);\n"
11307 "\n"
11308 msgstr ""
11309
11310 # type: textblock
11311 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2715
11312 msgid ""
11313 "This command creates a temporary directory.  The C<template> parameter "
11314 "should be a full pathname for the temporary directory name with the final "
11315 "six characters being \"XXXXXX\"."
11316 msgstr ""
11317
11318 # type: textblock
11319 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2720
11320 msgid ""
11321 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11322 "being suitable for Windows filesystems."
11323 msgstr ""
11324
11325 # type: textblock
11326 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2723
11327 msgid "The name of the temporary directory that was created is returned."
11328 msgstr ""
11329
11330 # type: textblock
11331 #: ../src/guestfs-actions.pod:4018 ../fish/guestfish-actions.pod:2726
11332 msgid "The temporary directory is created with mode 0700 and is owned by root."
11333 msgstr ""
11334
11335 # type: textblock
11336 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2729
11337 msgid ""
11338 "The caller is responsible for deleting the temporary directory and its "
11339 "contents after use."
11340 msgstr ""
11341
11342 # type: textblock
11343 #: ../src/guestfs-actions.pod:4024 ../fish/guestfish-actions.pod:2732
11344 msgid "See also: L<mkdtemp(3)>"
11345 msgstr ""
11346
11347 # type: =head2
11348 #: ../src/guestfs-actions.pod:4031
11349 msgid "guestfs_mke2fs_J"
11350 msgstr ""
11351
11352 # type: verbatim
11353 #: ../src/guestfs-actions.pod:4033
11354 #, no-wrap
11355 msgid ""
11356 " int\n"
11357 " guestfs_mke2fs_J (guestfs_h *g,\n"
11358 "                   const char *fstype,\n"
11359 "                   int blocksize,\n"
11360 "                   const char *device,\n"
11361 "                   const char *journal);\n"
11362 "\n"
11363 msgstr ""
11364
11365 # type: textblock
11366 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2738
11367 msgid ""
11368 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11369 "C<journal>.  It is equivalent to the command:"
11370 msgstr ""
11371
11372 # type: verbatim
11373 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2742
11374 #, no-wrap
11375 msgid ""
11376 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11377 "\n"
11378 msgstr ""
11379
11380 # type: textblock
11381 #: ../src/guestfs-actions.pod:4046
11382 msgid "See also C<guestfs_mke2journal>."
11383 msgstr ""
11384
11385 # type: textblock
11386 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:4068
11387 #: ../src/guestfs-actions.pod:4086 ../src/guestfs-actions.pod:4102
11388 #: ../src/guestfs-actions.pod:4116 ../src/guestfs-actions.pod:4130
11389 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4438
11390 msgid "(Added in 1.0.68)"
11391 msgstr ""
11392
11393 # type: =head2
11394 #: ../src/guestfs-actions.pod:4052
11395 msgid "guestfs_mke2fs_JL"
11396 msgstr ""
11397
11398 # type: verbatim
11399 #: ../src/guestfs-actions.pod:4054
11400 #, no-wrap
11401 msgid ""
11402 " int\n"
11403 " guestfs_mke2fs_JL (guestfs_h *g,\n"
11404 "                    const char *fstype,\n"
11405 "                    int blocksize,\n"
11406 "                    const char *device,\n"
11407 "                    const char *label);\n"
11408 "\n"
11409 msgstr ""
11410
11411 # type: textblock
11412 #: ../src/guestfs-actions.pod:4061 ../fish/guestfish-actions.pod:2750
11413 msgid ""
11414 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11415 "the journal labeled C<label>."
11416 msgstr ""
11417
11418 # type: textblock
11419 #: ../src/guestfs-actions.pod:4064
11420 msgid "See also C<guestfs_mke2journal_L>."
11421 msgstr ""
11422
11423 # type: =head2
11424 #: ../src/guestfs-actions.pod:4070
11425 msgid "guestfs_mke2fs_JU"
11426 msgstr ""
11427
11428 # type: verbatim
11429 #: ../src/guestfs-actions.pod:4072
11430 #, no-wrap
11431 msgid ""
11432 " int\n"
11433 " guestfs_mke2fs_JU (guestfs_h *g,\n"
11434 "                    const char *fstype,\n"
11435 "                    int blocksize,\n"
11436 "                    const char *device,\n"
11437 "                    const char *uuid);\n"
11438 "\n"
11439 msgstr ""
11440
11441 # type: textblock
11442 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2759
11443 msgid ""
11444 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11445 "the journal with UUID C<uuid>."
11446 msgstr ""
11447
11448 # type: textblock
11449 #: ../src/guestfs-actions.pod:4082
11450 msgid "See also C<guestfs_mke2journal_U>."
11451 msgstr ""
11452
11453 # type: =head2
11454 #: ../src/guestfs-actions.pod:4088
11455 msgid "guestfs_mke2journal"
11456 msgstr ""
11457
11458 # type: verbatim
11459 #: ../src/guestfs-actions.pod:4090
11460 #, no-wrap
11461 msgid ""
11462 " int\n"
11463 " guestfs_mke2journal (guestfs_h *g,\n"
11464 "                      int blocksize,\n"
11465 "                      const char *device);\n"
11466 "\n"
11467 msgstr ""
11468
11469 # type: textblock
11470 #: ../src/guestfs-actions.pod:4095 ../fish/guestfish-actions.pod:2768
11471 msgid ""
11472 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11473 "command:"
11474 msgstr ""
11475
11476 # type: verbatim
11477 #: ../src/guestfs-actions.pod:4098 ../fish/guestfish-actions.pod:2771
11478 #, no-wrap
11479 msgid ""
11480 " mke2fs -O journal_dev -b blocksize device\n"
11481 "\n"
11482 msgstr ""
11483
11484 # type: =head2
11485 #: ../src/guestfs-actions.pod:4104
11486 msgid "guestfs_mke2journal_L"
11487 msgstr ""
11488
11489 # type: verbatim
11490 #: ../src/guestfs-actions.pod:4106
11491 #, no-wrap
11492 msgid ""
11493 " int\n"
11494 " guestfs_mke2journal_L (guestfs_h *g,\n"
11495 "                        int blocksize,\n"
11496 "                        const char *label,\n"
11497 "                        const char *device);\n"
11498 "\n"
11499 msgstr ""
11500
11501 # type: textblock
11502 #: ../src/guestfs-actions.pod:4112 ../fish/guestfish-actions.pod:2777
11503 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11504 msgstr ""
11505
11506 # type: =head2
11507 #: ../src/guestfs-actions.pod:4118
11508 msgid "guestfs_mke2journal_U"
11509 msgstr ""
11510
11511 # type: verbatim
11512 #: ../src/guestfs-actions.pod:4120
11513 #, no-wrap
11514 msgid ""
11515 " int\n"
11516 " guestfs_mke2journal_U (guestfs_h *g,\n"
11517 "                        int blocksize,\n"
11518 "                        const char *uuid,\n"
11519 "                        const char *device);\n"
11520 "\n"
11521 msgstr ""
11522
11523 # type: textblock
11524 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2783
11525 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11526 msgstr ""
11527
11528 # type: =head2
11529 #: ../src/guestfs-actions.pod:4132
11530 msgid "guestfs_mkfifo"
11531 msgstr ""
11532
11533 # type: verbatim
11534 #: ../src/guestfs-actions.pod:4134
11535 #, no-wrap
11536 msgid ""
11537 " int\n"
11538 " guestfs_mkfifo (guestfs_h *g,\n"
11539 "                 int mode,\n"
11540 "                 const char *path);\n"
11541 "\n"
11542 msgstr ""
11543
11544 # type: textblock
11545 #: ../src/guestfs-actions.pod:4139
11546 msgid ""
11547 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11548 "is just a convenient wrapper around C<guestfs_mknod>."
11549 msgstr ""
11550
11551 # type: =head2
11552 #: ../src/guestfs-actions.pod:4149
11553 msgid "guestfs_mkfs"
11554 msgstr ""
11555
11556 # type: verbatim
11557 #: ../src/guestfs-actions.pod:4151
11558 #, no-wrap
11559 msgid ""
11560 " int\n"
11561 " guestfs_mkfs (guestfs_h *g,\n"
11562 "               const char *fstype,\n"
11563 "               const char *device);\n"
11564 "\n"
11565 msgstr ""
11566
11567 # type: textblock
11568 #: ../src/guestfs-actions.pod:4156 ../fish/guestfish-actions.pod:2799
11569 msgid ""
11570 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11571 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11572 msgstr ""
11573
11574 # type: =head2
11575 #: ../src/guestfs-actions.pod:4164
11576 msgid "guestfs_mkfs_b"
11577 msgstr ""
11578
11579 # type: verbatim
11580 #: ../src/guestfs-actions.pod:4166
11581 #, no-wrap
11582 msgid ""
11583 " int\n"
11584 " guestfs_mkfs_b (guestfs_h *g,\n"
11585 "                 const char *fstype,\n"
11586 "                 int blocksize,\n"
11587 "                 const char *device);\n"
11588 "\n"
11589 msgstr ""
11590
11591 # type: textblock
11592 #: ../src/guestfs-actions.pod:4172
11593 msgid ""
11594 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
11595 "block size of the resulting filesystem.  Supported block sizes depend on the "
11596 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11597 msgstr ""
11598
11599 # type: textblock
11600 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4219
11601 #: ../fish/guestfish-actions.pod:2812 ../fish/guestfish-actions.pod:2839
11602 msgid ""
11603 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11604 "cluster size."
11605 msgstr ""
11606
11607 # type: textblock
11608 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
11609 msgid ""
11610 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
11611 msgstr ""
11612
11613 # type: =head2
11614 #: ../src/guestfs-actions.pod:4191
11615 msgid "guestfs_mkfs_opts"
11616 msgstr ""
11617
11618 # type: verbatim
11619 #: ../src/guestfs-actions.pod:4193
11620 #, no-wrap
11621 msgid ""
11622 " int\n"
11623 " guestfs_mkfs_opts (guestfs_h *g,\n"
11624 "                    const char *fstype,\n"
11625 "                    const char *device,\n"
11626 "                    ...);\n"
11627 "\n"
11628 msgstr ""
11629
11630 # type: verbatim
11631 #: ../src/guestfs-actions.pod:4204
11632 #, no-wrap
11633 msgid ""
11634 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
11635 "\n"
11636 msgstr ""
11637
11638 # type: textblock
11639 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2826
11640 msgid ""
11641 "This function creates a filesystem on C<device>.  The filesystem type is "
11642 "C<fstype>, for example C<ext3>."
11643 msgstr ""
11644
11645 # type: =item
11646 #: ../src/guestfs-actions.pod:4213 ../fish/guestfish-actions.pod:2833
11647 msgid "C<blocksize>"
11648 msgstr ""
11649
11650 # type: textblock
11651 #: ../src/guestfs-actions.pod:4215 ../fish/guestfish-actions.pod:2835
11652 msgid ""
11653 "The filesystem block size.  Supported block sizes depend on the filesystem "
11654 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11655 "filesystems."
11656 msgstr ""
11657
11658 # type: =head2
11659 #: ../src/guestfs-actions.pod:4226
11660 msgid "guestfs_mkfs_opts_va"
11661 msgstr ""
11662
11663 # type: verbatim
11664 #: ../src/guestfs-actions.pod:4228
11665 #, no-wrap
11666 msgid ""
11667 " int\n"
11668 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
11669 "                       const char *fstype,\n"
11670 "                       const char *device,\n"
11671 "                       va_list args);\n"
11672 "\n"
11673 msgstr ""
11674
11675 # type: textblock
11676 #: ../src/guestfs-actions.pod:4234
11677 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
11678 msgstr ""
11679
11680 # type: =head2
11681 #: ../src/guestfs-actions.pod:4238
11682 msgid "guestfs_mkfs_opts_argv"
11683 msgstr ""
11684
11685 # type: verbatim
11686 #: ../src/guestfs-actions.pod:4240
11687 #, no-wrap
11688 msgid ""
11689 " int\n"
11690 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
11691 "                         const char *fstype,\n"
11692 "                         const char *device,\n"
11693 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
11694 "\n"
11695 msgstr ""
11696
11697 # type: textblock
11698 #: ../src/guestfs-actions.pod:4246
11699 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
11700 msgstr ""
11701
11702 # type: =head2
11703 #: ../src/guestfs-actions.pod:4250
11704 msgid "guestfs_mkmountpoint"
11705 msgstr ""
11706
11707 # type: verbatim
11708 #: ../src/guestfs-actions.pod:4252
11709 #, no-wrap
11710 msgid ""
11711 " int\n"
11712 " guestfs_mkmountpoint (guestfs_h *g,\n"
11713 "                       const char *exemptpath);\n"
11714 "\n"
11715 msgstr ""
11716
11717 # type: textblock
11718 #: ../src/guestfs-actions.pod:4256
11719 msgid ""
11720 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
11721 "that can be used to create extra mountpoints before mounting the first "
11722 "filesystem."
11723 msgstr ""
11724
11725 # type: textblock
11726 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2854
11727 msgid ""
11728 "These calls are I<only> necessary in some very limited circumstances, mainly "
11729 "the case where you want to mount a mix of unrelated and/or read-only "
11730 "filesystems together."
11731 msgstr ""
11732
11733 # type: textblock
11734 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2858
11735 msgid ""
11736 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11737 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11738 "inside that.  You can unpack this as follows in guestfish:"
11739 msgstr ""
11740
11741 # type: verbatim
11742 #: ../src/guestfs-actions.pod:4269 ../fish/guestfish-actions.pod:2863
11743 #, no-wrap
11744 msgid ""
11745 " add-ro Fedora-11-i686-Live.iso\n"
11746 " run\n"
11747 " mkmountpoint /cd\n"
11748 " mkmountpoint /sqsh\n"
11749 " mkmountpoint /ext3fs\n"
11750 " mount /dev/sda /cd\n"
11751 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11752 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11753 "\n"
11754 msgstr ""
11755
11756 # type: textblock
11757 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2872
11758 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11759 msgstr ""
11760
11761 # type: textblock
11762 #: ../src/guestfs-actions.pod:4280
11763 msgid ""
11764 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
11765 "may get unexpected errors if you try to mix these calls.  It is safest to "
11766 "manually unmount filesystems and remove mountpoints after use."
11767 msgstr ""
11768
11769 # type: textblock
11770 #: ../src/guestfs-actions.pod:4284
11771 msgid ""
11772 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
11773 "first, so for this to work for manual mountpoints, you must ensure that the "
11774 "innermost mountpoints have the longest pathnames, as in the example code "
11775 "above."
11776 msgstr ""
11777
11778 # type: textblock
11779 #: ../src/guestfs-actions.pod:4289 ../fish/guestfish-actions.pod:2883
11780 msgid ""
11781 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11782 msgstr ""
11783
11784 # type: textblock
11785 #: ../src/guestfs-actions.pod:4291
11786 msgid ""
11787 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
11788 "means that C<guestfs_umount_all> is called when the handle is closed which "
11789 "can also trigger these issues."
11790 msgstr ""
11791
11792 # type: textblock
11793 #: ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4556
11794 #: ../src/guestfs-actions.pod:5449
11795 msgid "(Added in 1.0.62)"
11796 msgstr ""
11797
11798 # type: =head2
11799 #: ../src/guestfs-actions.pod:4299
11800 msgid "guestfs_mknod"
11801 msgstr ""
11802
11803 # type: verbatim
11804 #: ../src/guestfs-actions.pod:4301
11805 #, no-wrap
11806 msgid ""
11807 " int\n"
11808 " guestfs_mknod (guestfs_h *g,\n"
11809 "                int mode,\n"
11810 "                int devmajor,\n"
11811 "                int devminor,\n"
11812 "                const char *path);\n"
11813 "\n"
11814 msgstr ""
11815
11816 # type: textblock
11817 #: ../src/guestfs-actions.pod:4308 ../fish/guestfish-actions.pod:2893
11818 msgid ""
11819 "This call creates block or character special devices, or named pipes (FIFOs)."
11820 msgstr ""
11821
11822 # type: textblock
11823 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2896
11824 msgid ""
11825 "The C<mode> parameter should be the mode, using the standard constants.  "
11826 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11827 "used when creating block and character special devices."
11828 msgstr ""
11829
11830 # type: textblock
11831 #: ../src/guestfs-actions.pod:4316
11832 msgid ""
11833 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11834 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11835 "regular file).  These constants are available in the standard Linux header "
11836 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
11837 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
11838 "the appropriate constant for you."
11839 msgstr ""
11840
11841 # type: =head2
11842 #: ../src/guestfs-actions.pod:4330
11843 msgid "guestfs_mknod_b"
11844 msgstr ""
11845
11846 # type: verbatim
11847 #: ../src/guestfs-actions.pod:4332
11848 #, no-wrap
11849 msgid ""
11850 " int\n"
11851 " guestfs_mknod_b (guestfs_h *g,\n"
11852 "                  int mode,\n"
11853 "                  int devmajor,\n"
11854 "                  int devminor,\n"
11855 "                  const char *path);\n"
11856 "\n"
11857 msgstr ""
11858
11859 # type: textblock
11860 #: ../src/guestfs-actions.pod:4339
11861 msgid ""
11862 "This call creates a block device node called C<path> with mode C<mode> and "
11863 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11864 "wrapper around C<guestfs_mknod>."
11865 msgstr ""
11866
11867 # type: =head2
11868 #: ../src/guestfs-actions.pod:4349
11869 msgid "guestfs_mknod_c"
11870 msgstr ""
11871
11872 # type: verbatim
11873 #: ../src/guestfs-actions.pod:4351
11874 #, no-wrap
11875 msgid ""
11876 " int\n"
11877 " guestfs_mknod_c (guestfs_h *g,\n"
11878 "                  int mode,\n"
11879 "                  int devmajor,\n"
11880 "                  int devminor,\n"
11881 "                  const char *path);\n"
11882 "\n"
11883 msgstr ""
11884
11885 # type: textblock
11886 #: ../src/guestfs-actions.pod:4358
11887 msgid ""
11888 "This call creates a char device node called C<path> with mode C<mode> and "
11889 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11890 "wrapper around C<guestfs_mknod>."
11891 msgstr ""
11892
11893 # type: =head2
11894 #: ../src/guestfs-actions.pod:4368
11895 msgid "guestfs_mkswap"
11896 msgstr ""
11897
11898 # type: verbatim
11899 #: ../src/guestfs-actions.pod:4370
11900 #, no-wrap
11901 msgid ""
11902 " int\n"
11903 " guestfs_mkswap (guestfs_h *g,\n"
11904 "                 const char *device);\n"
11905 "\n"
11906 msgstr ""
11907
11908 # type: textblock
11909 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2935
11910 msgid "Create a swap partition on C<device>."
11911 msgstr ""
11912
11913 # type: =head2
11914 #: ../src/guestfs-actions.pod:4380
11915 msgid "guestfs_mkswap_L"
11916 msgstr ""
11917
11918 # type: verbatim
11919 #: ../src/guestfs-actions.pod:4382
11920 #, no-wrap
11921 msgid ""
11922 " int\n"
11923 " guestfs_mkswap_L (guestfs_h *g,\n"
11924 "                   const char *label,\n"
11925 "                   const char *device);\n"
11926 "\n"
11927 msgstr ""
11928
11929 # type: textblock
11930 #: ../src/guestfs-actions.pod:4387 ../fish/guestfish-actions.pod:2941
11931 msgid "Create a swap partition on C<device> with label C<label>."
11932 msgstr ""
11933
11934 # type: textblock
11935 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2943
11936 msgid ""
11937 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11938 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11939 "or swap tools."
11940 msgstr ""
11941
11942 # type: =head2
11943 #: ../src/guestfs-actions.pod:4397
11944 msgid "guestfs_mkswap_U"
11945 msgstr ""
11946
11947 # type: verbatim
11948 #: ../src/guestfs-actions.pod:4399
11949 #, no-wrap
11950 msgid ""
11951 " int\n"
11952 " guestfs_mkswap_U (guestfs_h *g,\n"
11953 "                   const char *uuid,\n"
11954 "                   const char *device);\n"
11955 "\n"
11956 msgstr ""
11957
11958 # type: textblock
11959 #: ../src/guestfs-actions.pod:4404 ../fish/guestfish-actions.pod:2951
11960 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11961 msgstr ""
11962
11963 # type: =head2
11964 #: ../src/guestfs-actions.pod:4410
11965 msgid "guestfs_mkswap_file"
11966 msgstr ""
11967
11968 # type: verbatim
11969 #: ../src/guestfs-actions.pod:4412
11970 #, no-wrap
11971 msgid ""
11972 " int\n"
11973 " guestfs_mkswap_file (guestfs_h *g,\n"
11974 "                      const char *path);\n"
11975 "\n"
11976 msgstr ""
11977
11978 # type: textblock
11979 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2957
11980 msgid "Create a swap file."
11981 msgstr ""
11982
11983 # type: textblock
11984 #: ../src/guestfs-actions.pod:4418
11985 msgid ""
11986 "This command just writes a swap file signature to an existing file.  To "
11987 "create the file itself, use something like C<guestfs_fallocate>."
11988 msgstr ""
11989
11990 # type: =head2
11991 #: ../src/guestfs-actions.pod:4425
11992 msgid "guestfs_modprobe"
11993 msgstr ""
11994
11995 # type: verbatim
11996 #: ../src/guestfs-actions.pod:4427
11997 #, no-wrap
11998 msgid ""
11999 " int\n"
12000 " guestfs_modprobe (guestfs_h *g,\n"
12001 "                   const char *modulename);\n"
12002 "\n"
12003 msgstr ""
12004
12005 # type: textblock
12006 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2966
12007 msgid "This loads a kernel module in the appliance."
12008 msgstr ""
12009
12010 # type: textblock
12011 #: ../src/guestfs-actions.pod:4433 ../fish/guestfish-actions.pod:2968
12012 msgid ""
12013 "The kernel module must have been whitelisted when libguestfs was built (see "
12014 "C<appliance/kmod.whitelist.in> in the source)."
12015 msgstr ""
12016
12017 # type: =head2
12018 #: ../src/guestfs-actions.pod:4440
12019 msgid "guestfs_mount"
12020 msgstr ""
12021
12022 # type: verbatim
12023 #: ../src/guestfs-actions.pod:4442
12024 #, no-wrap
12025 msgid ""
12026 " int\n"
12027 " guestfs_mount (guestfs_h *g,\n"
12028 "                const char *device,\n"
12029 "                const char *mountpoint);\n"
12030 "\n"
12031 msgstr ""
12032
12033 # type: textblock
12034 #: ../src/guestfs-actions.pod:4447 ../fish/guestfish-actions.pod:2975
12035 msgid ""
12036 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12037 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12038 "those block devices contain partitions, they will have the usual names (eg. "
12039 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12040 msgstr ""
12041
12042 # type: textblock
12043 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2981
12044 msgid ""
12045 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12046 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12047 "mounted on directories which already exist."
12048 msgstr ""
12049
12050 # type: textblock
12051 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:2986
12052 msgid ""
12053 "The mounted filesystem is writable, if we have sufficient permissions on the "
12054 "underlying device."
12055 msgstr ""
12056
12057 # type: textblock
12058 #: ../src/guestfs-actions.pod:4461
12059 msgid ""
12060 "B<Important note:> When you use this call, the filesystem options C<sync> "
12061 "and C<noatime> are set implicitly.  This was originally done because we "
12062 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12063 "very large negative performance impact and negligible effect on "
12064 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
12065 "in any code that needs performance, and instead use C<guestfs_mount_options> "
12066 "(use an empty string for the first parameter if you don't want any options)."
12067 msgstr ""
12068
12069 # type: =head2
12070 #: ../src/guestfs-actions.pod:4475
12071 msgid "guestfs_mount_loop"
12072 msgstr ""
12073
12074 # type: verbatim
12075 #: ../src/guestfs-actions.pod:4477
12076 #, no-wrap
12077 msgid ""
12078 " int\n"
12079 " guestfs_mount_loop (guestfs_h *g,\n"
12080 "                     const char *file,\n"
12081 "                     const char *mountpoint);\n"
12082 "\n"
12083 msgstr ""
12084
12085 # type: textblock
12086 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3003
12087 msgid ""
12088 "This command lets you mount C<file> (a filesystem image in a file) on a "
12089 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12090 "mountpoint>."
12091 msgstr ""
12092
12093 # type: =head2
12094 #: ../src/guestfs-actions.pod:4490
12095 msgid "guestfs_mount_options"
12096 msgstr ""
12097
12098 # type: verbatim
12099 #: ../src/guestfs-actions.pod:4492
12100 #, no-wrap
12101 msgid ""
12102 " int\n"
12103 " guestfs_mount_options (guestfs_h *g,\n"
12104 "                        const char *options,\n"
12105 "                        const char *device,\n"
12106 "                        const char *mountpoint);\n"
12107 "\n"
12108 msgstr ""
12109
12110 # type: textblock
12111 #: ../src/guestfs-actions.pod:4498
12112 msgid ""
12113 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12114 "the mount options as for the L<mount(8)> I<-o> flag."
12115 msgstr ""
12116
12117 # type: textblock
12118 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3015
12119 msgid ""
12120 "If the C<options> parameter is an empty string, then no options are passed "
12121 "(all options default to whatever the filesystem uses)."
12122 msgstr ""
12123
12124 # type: textblock
12125 #: ../src/guestfs-actions.pod:4508 ../src/guestfs-actions.pod:4522
12126 #: ../src/guestfs-actions.pod:4539
12127 msgid "(Added in 1.0.10)"
12128 msgstr ""
12129
12130 # type: =head2
12131 #: ../src/guestfs-actions.pod:4510
12132 msgid "guestfs_mount_ro"
12133 msgstr ""
12134
12135 # type: verbatim
12136 #: ../src/guestfs-actions.pod:4512
12137 #, no-wrap
12138 msgid ""
12139 " int\n"
12140 " guestfs_mount_ro (guestfs_h *g,\n"
12141 "                   const char *device,\n"
12142 "                   const char *mountpoint);\n"
12143 "\n"
12144 msgstr ""
12145
12146 # type: textblock
12147 #: ../src/guestfs-actions.pod:4517
12148 msgid ""
12149 "This is the same as the C<guestfs_mount> command, but it mounts the "
12150 "filesystem with the read-only (I<-o ro>) flag."
12151 msgstr ""
12152
12153 # type: =head2
12154 #: ../src/guestfs-actions.pod:4524
12155 msgid "guestfs_mount_vfs"
12156 msgstr ""
12157
12158 # type: verbatim
12159 #: ../src/guestfs-actions.pod:4526
12160 #, no-wrap
12161 msgid ""
12162 " int\n"
12163 " guestfs_mount_vfs (guestfs_h *g,\n"
12164 "                    const char *options,\n"
12165 "                    const char *vfstype,\n"
12166 "                    const char *device,\n"
12167 "                    const char *mountpoint);\n"
12168 "\n"
12169 msgstr ""
12170
12171 # type: textblock
12172 #: ../src/guestfs-actions.pod:4533
12173 msgid ""
12174 "This is the same as the C<guestfs_mount> command, but it allows you to set "
12175 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
12176 "t> flags."
12177 msgstr ""
12178
12179 # type: =head2
12180 #: ../src/guestfs-actions.pod:4541
12181 msgid "guestfs_mountpoints"
12182 msgstr ""
12183
12184 # type: verbatim
12185 #: ../src/guestfs-actions.pod:4543
12186 #, no-wrap
12187 msgid ""
12188 " char **\n"
12189 " guestfs_mountpoints (guestfs_h *g);\n"
12190 "\n"
12191 msgstr ""
12192
12193 # type: textblock
12194 #: ../src/guestfs-actions.pod:4546
12195 msgid ""
12196 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
12197 "devices.  This one returns a hash table (map) of device name to directory "
12198 "where the device is mounted."
12199 msgstr ""
12200
12201 # type: =head2
12202 #: ../src/guestfs-actions.pod:4558
12203 msgid "guestfs_mounts"
12204 msgstr ""
12205
12206 # type: verbatim
12207 #: ../src/guestfs-actions.pod:4560
12208 #, no-wrap
12209 msgid ""
12210 " char **\n"
12211 " guestfs_mounts (guestfs_h *g);\n"
12212 "\n"
12213 msgstr ""
12214
12215 # type: textblock
12216 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3046
12217 msgid ""
12218 "This returns the list of currently mounted filesystems.  It returns the list "
12219 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12220 msgstr ""
12221
12222 # type: textblock
12223 #: ../src/guestfs-actions.pod:4566 ../fish/guestfish-actions.pod:3049
12224 msgid "Some internal mounts are not shown."
12225 msgstr ""
12226
12227 # type: textblock
12228 #: ../src/guestfs-actions.pod:4568
12229 msgid "See also: C<guestfs_mountpoints>"
12230 msgstr ""
12231
12232 # type: =head2
12233 #: ../src/guestfs-actions.pod:4576
12234 msgid "guestfs_mv"
12235 msgstr ""
12236
12237 # type: verbatim
12238 #: ../src/guestfs-actions.pod:4578
12239 #, no-wrap
12240 msgid ""
12241 " int\n"
12242 " guestfs_mv (guestfs_h *g,\n"
12243 "             const char *src,\n"
12244 "             const char *dest);\n"
12245 "\n"
12246 msgstr ""
12247
12248 # type: textblock
12249 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3057
12250 msgid ""
12251 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12252 "destination filename or destination directory."
12253 msgstr ""
12254
12255 # type: =head2
12256 #: ../src/guestfs-actions.pod:4590
12257 msgid "guestfs_ntfs_3g_probe"
12258 msgstr ""
12259
12260 # type: verbatim
12261 #: ../src/guestfs-actions.pod:4592
12262 #, no-wrap
12263 msgid ""
12264 " int\n"
12265 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
12266 "                        int rw,\n"
12267 "                        const char *device);\n"
12268 "\n"
12269 msgstr ""
12270
12271 # type: textblock
12272 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3064
12273 msgid ""
12274 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12275 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12276 "write, and some cannot be mounted at all)."
12277 msgstr ""
12278
12279 # type: textblock
12280 #: ../src/guestfs-actions.pod:4601 ../fish/guestfish-actions.pod:3068
12281 msgid ""
12282 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12283 "can be mounted read-write.  Set it to false if you want to test if the "
12284 "volume can be mounted read-only."
12285 msgstr ""
12286
12287 # type: textblock
12288 #: ../src/guestfs-actions.pod:4605 ../fish/guestfish-actions.pod:3072
12289 msgid ""
12290 "The return value is an integer which C<0> if the operation would succeed, or "
12291 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12292 msgstr ""
12293
12294 # type: textblock
12295 #: ../src/guestfs-actions.pod:4611
12296 msgid "(Added in 1.0.43)"
12297 msgstr ""
12298
12299 # type: =head2
12300 #: ../src/guestfs-actions.pod:4613
12301 msgid "guestfs_ntfsresize"
12302 msgstr ""
12303
12304 # type: verbatim
12305 #: ../src/guestfs-actions.pod:4615
12306 #, no-wrap
12307 msgid ""
12308 " int\n"
12309 " guestfs_ntfsresize (guestfs_h *g,\n"
12310 "                     const char *device);\n"
12311 "\n"
12312 msgstr ""
12313
12314 # type: textblock
12315 #: ../src/guestfs-actions.pod:4619 ../fish/guestfish-actions.pod:3080
12316 msgid ""
12317 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12318 "size of the underlying device.  See also L<ntfsresize(8)>."
12319 msgstr ""
12320
12321 # type: =head2
12322 #: ../src/guestfs-actions.pod:4627
12323 msgid "guestfs_ntfsresize_size"
12324 msgstr ""
12325
12326 # type: verbatim
12327 #: ../src/guestfs-actions.pod:4629
12328 #, no-wrap
12329 msgid ""
12330 " int\n"
12331 " guestfs_ntfsresize_size (guestfs_h *g,\n"
12332 "                          const char *device,\n"
12333 "                          int64_t size);\n"
12334 "\n"
12335 msgstr ""
12336
12337 # type: textblock
12338 #: ../src/guestfs-actions.pod:4634
12339 msgid ""
12340 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
12341 "to specify the new size (in bytes) explicitly."
12342 msgstr ""
12343
12344 # type: textblock
12345 #: ../src/guestfs-actions.pod:4639 ../src/guestfs-actions.pod:5075
12346 #: ../src/guestfs-actions.pod:5148 ../src/guestfs-actions.pod:5397
12347 msgid "(Added in 1.3.14)"
12348 msgstr ""
12349
12350 # type: =head2
12351 #: ../src/guestfs-actions.pod:4641
12352 msgid "guestfs_part_add"
12353 msgstr ""
12354
12355 # type: verbatim
12356 #: ../src/guestfs-actions.pod:4643
12357 #, no-wrap
12358 msgid ""
12359 " int\n"
12360 " guestfs_part_add (guestfs_h *g,\n"
12361 "                   const char *device,\n"
12362 "                   const char *prlogex,\n"
12363 "                   int64_t startsect,\n"
12364 "                   int64_t endsect);\n"
12365 "\n"
12366 msgstr ""
12367
12368 # type: textblock
12369 #: ../src/guestfs-actions.pod:4650
12370 msgid ""
12371 "This command adds a partition to C<device>.  If there is no partition table "
12372 "on the device, call C<guestfs_part_init> first."
12373 msgstr ""
12374
12375 # type: textblock
12376 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3098
12377 msgid ""
12378 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12379 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12380 "C<logical>) and C<e> (or C<extended>) partition types."
12381 msgstr ""
12382
12383 # type: textblock
12384 #: ../src/guestfs-actions.pod:4658 ../fish/guestfish-actions.pod:3103
12385 msgid ""
12386 "C<startsect> and C<endsect> are the start and end of the partition in "
12387 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12388 "from the end of the disk (C<-1> is the last sector)."
12389 msgstr ""
12390
12391 # type: textblock
12392 #: ../src/guestfs-actions.pod:4662
12393 msgid ""
12394 "Creating a partition which covers the whole disk is not so easy.  Use "
12395 "C<guestfs_part_disk> to do that."
12396 msgstr ""
12397
12398 # type: textblock
12399 #: ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4705
12400 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4836
12401 #: ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4893
12402 #: ../src/guestfs-actions.pod:4933
12403 msgid "(Added in 1.0.78)"
12404 msgstr ""
12405
12406 # type: =head2
12407 #: ../src/guestfs-actions.pod:4669
12408 msgid "guestfs_part_del"
12409 msgstr ""
12410
12411 # type: verbatim
12412 #: ../src/guestfs-actions.pod:4671
12413 #, no-wrap
12414 msgid ""
12415 " int\n"
12416 " guestfs_part_del (guestfs_h *g,\n"
12417 "                   const char *device,\n"
12418 "                   int partnum);\n"
12419 "\n"
12420 msgstr ""
12421
12422 # type: textblock
12423 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3114
12424 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12425 msgstr ""
12426
12427 # type: textblock
12428 #: ../src/guestfs-actions.pod:4678 ../fish/guestfish-actions.pod:3116
12429 msgid ""
12430 "Note that in the case of MBR partitioning, deleting an extended partition "
12431 "also deletes any logical partitions it contains."
12432 msgstr ""
12433
12434 # type: =head2
12435 #: ../src/guestfs-actions.pod:4686
12436 msgid "guestfs_part_disk"
12437 msgstr ""
12438
12439 # type: verbatim
12440 #: ../src/guestfs-actions.pod:4688
12441 #, no-wrap
12442 msgid ""
12443 " int\n"
12444 " guestfs_part_disk (guestfs_h *g,\n"
12445 "                    const char *device,\n"
12446 "                    const char *parttype);\n"
12447 "\n"
12448 msgstr ""
12449
12450 # type: textblock
12451 #: ../src/guestfs-actions.pod:4693
12452 msgid ""
12453 "This command is simply a combination of C<guestfs_part_init> followed by "
12454 "C<guestfs_part_add> to create a single primary partition covering the whole "
12455 "disk."
12456 msgstr ""
12457
12458 # type: textblock
12459 #: ../src/guestfs-actions.pod:4697
12460 msgid ""
12461 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12462 "possible values are described in C<guestfs_part_init>."
12463 msgstr ""
12464
12465 # type: =head2
12466 #: ../src/guestfs-actions.pod:4707
12467 msgid "guestfs_part_get_bootable"
12468 msgstr ""
12469
12470 # type: verbatim
12471 #: ../src/guestfs-actions.pod:4709
12472 #, no-wrap
12473 msgid ""
12474 " int\n"
12475 " guestfs_part_get_bootable (guestfs_h *g,\n"
12476 "                            const char *device,\n"
12477 "                            int partnum);\n"
12478 "\n"
12479 msgstr ""
12480
12481 # type: textblock
12482 #: ../src/guestfs-actions.pod:4714 ../fish/guestfish-actions.pod:3138
12483 msgid ""
12484 "This command returns true if the partition C<partnum> on C<device> has the "
12485 "bootable flag set."
12486 msgstr ""
12487
12488 # type: textblock
12489 #: ../src/guestfs-actions.pod:4717
12490 msgid "See also C<guestfs_part_set_bootable>."
12491 msgstr ""
12492
12493 # type: =head2
12494 #: ../src/guestfs-actions.pod:4723
12495 msgid "guestfs_part_get_mbr_id"
12496 msgstr ""
12497
12498 # type: verbatim
12499 #: ../src/guestfs-actions.pod:4725
12500 #, no-wrap
12501 msgid ""
12502 " int\n"
12503 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
12504 "                          const char *device,\n"
12505 "                          int partnum);\n"
12506 "\n"
12507 msgstr ""
12508
12509 # type: textblock
12510 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3147
12511 msgid ""
12512 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12513 "partition C<partnum>."
12514 msgstr ""
12515
12516 # type: textblock
12517 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4909
12518 msgid ""
12519 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12520 "undefined results for other partition table types (see "
12521 "C<guestfs_part_get_parttype>)."
12522 msgstr ""
12523
12524 # type: =head2
12525 #: ../src/guestfs-actions.pod:4741
12526 msgid "guestfs_part_get_parttype"
12527 msgstr ""
12528
12529 # type: verbatim
12530 #: ../src/guestfs-actions.pod:4743
12531 #, no-wrap
12532 msgid ""
12533 " char *\n"
12534 " guestfs_part_get_parttype (guestfs_h *g,\n"
12535 "                            const char *device);\n"
12536 "\n"
12537 msgstr ""
12538
12539 # type: textblock
12540 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3158
12541 msgid ""
12542 "This command examines the partition table on C<device> and returns the "
12543 "partition table type (format) being used."
12544 msgstr ""
12545
12546 # type: textblock
12547 #: ../src/guestfs-actions.pod:4750
12548 msgid ""
12549 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12550 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12551 "possible, although unusual.  See C<guestfs_part_init> for a full list."
12552 msgstr ""
12553
12554 # type: =head2
12555 #: ../src/guestfs-actions.pod:4760
12556 msgid "guestfs_part_init"
12557 msgstr ""
12558
12559 # type: verbatim
12560 #: ../src/guestfs-actions.pod:4762
12561 #, no-wrap
12562 msgid ""
12563 " int\n"
12564 " guestfs_part_init (guestfs_h *g,\n"
12565 "                    const char *device,\n"
12566 "                    const char *parttype);\n"
12567 "\n"
12568 msgstr ""
12569
12570 # type: textblock
12571 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3170
12572 msgid ""
12573 "This creates an empty partition table on C<device> of one of the partition "
12574 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12575 "(for large disks)."
12576 msgstr ""
12577
12578 # type: textblock
12579 #: ../src/guestfs-actions.pod:4771
12580 msgid ""
12581 "Initially there are no partitions.  Following this, you should call "
12582 "C<guestfs_part_add> for each partition required."
12583 msgstr ""
12584
12585 # type: textblock
12586 #: ../src/guestfs-actions.pod:4774 ../fish/guestfish-actions.pod:3177
12587 msgid "Possible values for C<parttype> are:"
12588 msgstr ""
12589
12590 # type: =item
12591 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3181
12592 msgid "B<efi> | B<gpt>"
12593 msgstr ""
12594
12595 # type: textblock
12596 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3183
12597 msgid "Intel EFI / GPT partition table."
12598 msgstr ""
12599
12600 # type: textblock
12601 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3185
12602 msgid ""
12603 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12604 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12605 "the C<mbr> format."
12606 msgstr ""
12607
12608 # type: =item
12609 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3189
12610 msgid "B<mbr> | B<msdos>"
12611 msgstr ""
12612
12613 # type: textblock
12614 #: ../src/guestfs-actions.pod:4788 ../fish/guestfish-actions.pod:3191
12615 msgid ""
12616 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12617 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12618 "TB.  For large disks we recommend using C<gpt>."
12619 msgstr ""
12620
12621 # type: textblock
12622 #: ../src/guestfs-actions.pod:4795 ../fish/guestfish-actions.pod:3198
12623 msgid ""
12624 "Other partition table types that may work but are not supported include:"
12625 msgstr ""
12626
12627 # type: =item
12628 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3203
12629 msgid "B<aix>"
12630 msgstr ""
12631
12632 # type: textblock
12633 #: ../src/guestfs-actions.pod:4802 ../fish/guestfish-actions.pod:3205
12634 msgid "AIX disk labels."
12635 msgstr ""
12636
12637 # type: =item
12638 #: ../src/guestfs-actions.pod:4804 ../fish/guestfish-actions.pod:3207
12639 msgid "B<amiga> | B<rdb>"
12640 msgstr ""
12641
12642 # type: textblock
12643 #: ../src/guestfs-actions.pod:4806 ../fish/guestfish-actions.pod:3209
12644 msgid "Amiga \"Rigid Disk Block\" format."
12645 msgstr ""
12646
12647 # type: =item
12648 #: ../src/guestfs-actions.pod:4808 ../fish/guestfish-actions.pod:3211
12649 msgid "B<bsd>"
12650 msgstr ""
12651
12652 # type: textblock
12653 #: ../src/guestfs-actions.pod:4810 ../fish/guestfish-actions.pod:3213
12654 msgid "BSD disk labels."
12655 msgstr ""
12656
12657 # type: =item
12658 #: ../src/guestfs-actions.pod:4812 ../fish/guestfish-actions.pod:3215
12659 msgid "B<dasd>"
12660 msgstr ""
12661
12662 # type: textblock
12663 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3217
12664 msgid "DASD, used on IBM mainframes."
12665 msgstr ""
12666
12667 # type: =item
12668 #: ../src/guestfs-actions.pod:4816 ../fish/guestfish-actions.pod:3219
12669 msgid "B<dvh>"
12670 msgstr ""
12671
12672 # type: textblock
12673 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3221
12674 msgid "MIPS/SGI volumes."
12675 msgstr ""
12676
12677 # type: =item
12678 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3223
12679 msgid "B<mac>"
12680 msgstr ""
12681
12682 # type: textblock
12683 #: ../src/guestfs-actions.pod:4822 ../fish/guestfish-actions.pod:3225
12684 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12685 msgstr ""
12686
12687 # type: =item
12688 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3227
12689 msgid "B<pc98>"
12690 msgstr ""
12691
12692 # type: textblock
12693 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3229
12694 msgid "NEC PC-98 format, common in Japan apparently."
12695 msgstr ""
12696
12697 # type: =item
12698 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3231
12699 msgid "B<sun>"
12700 msgstr ""
12701
12702 # type: textblock
12703 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3233
12704 msgid "Sun disk labels."
12705 msgstr ""
12706
12707 # type: =head2
12708 #: ../src/guestfs-actions.pod:4838
12709 msgid "guestfs_part_list"
12710 msgstr ""
12711
12712 # type: verbatim
12713 #: ../src/guestfs-actions.pod:4840
12714 #, no-wrap
12715 msgid ""
12716 " struct guestfs_partition_list *\n"
12717 " guestfs_part_list (guestfs_h *g,\n"
12718 "                    const char *device);\n"
12719 "\n"
12720 msgstr ""
12721
12722 # type: textblock
12723 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3241
12724 msgid ""
12725 "This command parses the partition table on C<device> and returns the list of "
12726 "partitions found."
12727 msgstr ""
12728
12729 # type: textblock
12730 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3244
12731 msgid "The fields in the returned structure are:"
12732 msgstr ""
12733
12734 # type: =item
12735 #: ../src/guestfs-actions.pod:4851 ../fish/guestfish-actions.pod:3248
12736 msgid "B<part_num>"
12737 msgstr ""
12738
12739 # type: textblock
12740 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3250
12741 msgid "Partition number, counting from 1."
12742 msgstr ""
12743
12744 # type: =item
12745 #: ../src/guestfs-actions.pod:4855 ../fish/guestfish-actions.pod:3252
12746 msgid "B<part_start>"
12747 msgstr ""
12748
12749 # type: textblock
12750 #: ../src/guestfs-actions.pod:4857
12751 msgid ""
12752 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12753 "the device's sector size, see C<guestfs_blockdev_getss>."
12754 msgstr ""
12755
12756 # type: =item
12757 #: ../src/guestfs-actions.pod:4860 ../fish/guestfish-actions.pod:3257
12758 msgid "B<part_end>"
12759 msgstr ""
12760
12761 # type: textblock
12762 #: ../src/guestfs-actions.pod:4862 ../fish/guestfish-actions.pod:3259
12763 msgid "End of the partition in bytes."
12764 msgstr ""
12765
12766 # type: =item
12767 #: ../src/guestfs-actions.pod:4864 ../fish/guestfish-actions.pod:3261
12768 msgid "B<part_size>"
12769 msgstr ""
12770
12771 # type: textblock
12772 #: ../src/guestfs-actions.pod:4866 ../fish/guestfish-actions.pod:3263
12773 msgid "Size of the partition in bytes."
12774 msgstr ""
12775
12776 # type: textblock
12777 #: ../src/guestfs-actions.pod:4870
12778 msgid ""
12779 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
12780 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
12781 "use>."
12782 msgstr ""
12783
12784 # type: =head2
12785 #: ../src/guestfs-actions.pod:4876
12786 msgid "guestfs_part_set_bootable"
12787 msgstr ""
12788
12789 # type: verbatim
12790 #: ../src/guestfs-actions.pod:4878
12791 #, no-wrap
12792 msgid ""
12793 " int\n"
12794 " guestfs_part_set_bootable (guestfs_h *g,\n"
12795 "                            const char *device,\n"
12796 "                            int partnum,\n"
12797 "                            int bootable);\n"
12798 "\n"
12799 msgstr ""
12800
12801 # type: textblock
12802 #: ../src/guestfs-actions.pod:4884 ../fish/guestfish-actions.pod:3271
12803 msgid ""
12804 "This sets the bootable flag on partition numbered C<partnum> on device "
12805 "C<device>.  Note that partitions are numbered from 1."
12806 msgstr ""
12807
12808 # type: textblock
12809 #: ../src/guestfs-actions.pod:4887 ../fish/guestfish-actions.pod:3274
12810 msgid ""
12811 "The bootable flag is used by some operating systems (notably Windows) to "
12812 "determine which partition to boot from.  It is by no means universally "
12813 "recognized."
12814 msgstr ""
12815
12816 # type: =head2
12817 #: ../src/guestfs-actions.pod:4895
12818 msgid "guestfs_part_set_mbr_id"
12819 msgstr ""
12820
12821 # type: verbatim
12822 #: ../src/guestfs-actions.pod:4897
12823 #, no-wrap
12824 msgid ""
12825 " int\n"
12826 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
12827 "                          const char *device,\n"
12828 "                          int partnum,\n"
12829 "                          int idbyte);\n"
12830 "\n"
12831 msgstr ""
12832
12833 # type: textblock
12834 #: ../src/guestfs-actions.pod:4903 ../fish/guestfish-actions.pod:3282
12835 msgid ""
12836 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12837 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12838 "documentation are in fact hexadecimal numbers, but usually documented "
12839 "without any leading \"0x\" which might be confusing."
12840 msgstr ""
12841
12842 # type: =head2
12843 #: ../src/guestfs-actions.pod:4917
12844 msgid "guestfs_part_set_name"
12845 msgstr ""
12846
12847 # type: verbatim
12848 #: ../src/guestfs-actions.pod:4919
12849 #, no-wrap
12850 msgid ""
12851 " int\n"
12852 " guestfs_part_set_name (guestfs_h *g,\n"
12853 "                        const char *device,\n"
12854 "                        int partnum,\n"
12855 "                        const char *name);\n"
12856 "\n"
12857 msgstr ""
12858
12859 # type: textblock
12860 #: ../src/guestfs-actions.pod:4925 ../fish/guestfish-actions.pod:3296
12861 msgid ""
12862 "This sets the partition name on partition numbered C<partnum> on device "
12863 "C<device>.  Note that partitions are numbered from 1."
12864 msgstr ""
12865
12866 # type: textblock
12867 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3299
12868 msgid ""
12869 "The partition name can only be set on certain types of partition table.  "
12870 "This works on C<gpt> but not on C<mbr> partitions."
12871 msgstr ""
12872
12873 # type: =head2
12874 #: ../src/guestfs-actions.pod:4935
12875 msgid "guestfs_part_to_dev"
12876 msgstr ""
12877
12878 # type: verbatim
12879 #: ../src/guestfs-actions.pod:4937
12880 #, no-wrap
12881 msgid ""
12882 " char *\n"
12883 " guestfs_part_to_dev (guestfs_h *g,\n"
12884 "                      const char *partition);\n"
12885 "\n"
12886 msgstr ""
12887
12888 # type: textblock
12889 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3306
12890 msgid ""
12891 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12892 "partition number, returning the device name (eg. \"/dev/sdb\")."
12893 msgstr ""
12894
12895 # type: textblock
12896 #: ../src/guestfs-actions.pod:4945
12897 msgid ""
12898 "The named partition must exist, for example as a string returned from "
12899 "C<guestfs_list_partitions>."
12900 msgstr ""
12901
12902 # type: =head2
12903 #: ../src/guestfs-actions.pod:4953
12904 msgid "guestfs_ping_daemon"
12905 msgstr ""
12906
12907 # type: verbatim
12908 #: ../src/guestfs-actions.pod:4955
12909 #, no-wrap
12910 msgid ""
12911 " int\n"
12912 " guestfs_ping_daemon (guestfs_h *g);\n"
12913 "\n"
12914 msgstr ""
12915
12916 # type: textblock
12917 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3317
12918 msgid ""
12919 "This is a test probe into the guestfs daemon running inside the qemu "
12920 "subprocess.  Calling this function checks that the daemon responds to the "
12921 "ping message, without affecting the daemon or attached block device(s) in "
12922 "any other way."
12923 msgstr ""
12924
12925 # type: =head2
12926 #: ../src/guestfs-actions.pod:4967
12927 msgid "guestfs_pread"
12928 msgstr ""
12929
12930 # type: verbatim
12931 #: ../src/guestfs-actions.pod:4969
12932 #, no-wrap
12933 msgid ""
12934 " char *\n"
12935 " guestfs_pread (guestfs_h *g,\n"
12936 "                const char *path,\n"
12937 "                int count,\n"
12938 "                int64_t offset,\n"
12939 "                size_t *size_r);\n"
12940 "\n"
12941 msgstr ""
12942
12943 # type: textblock
12944 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3326
12945 msgid ""
12946 "This command lets you read part of a file.  It reads C<count> bytes of the "
12947 "file, starting at C<offset>, from file C<path>."
12948 msgstr ""
12949
12950 # type: textblock
12951 #: ../src/guestfs-actions.pod:4979 ../src/guestfs-actions.pod:5005
12952 #: ../fish/guestfish-actions.pod:3329 ../fish/guestfish-actions.pod:3344
12953 msgid ""
12954 "This may read fewer bytes than requested.  For further details see the "
12955 "L<pread(2)> system call."
12956 msgstr ""
12957
12958 # type: textblock
12959 #: ../src/guestfs-actions.pod:4982
12960 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
12961 msgstr ""
12962
12963 # type: =head2
12964 #: ../src/guestfs-actions.pod:4993
12965 msgid "guestfs_pread_device"
12966 msgstr ""
12967
12968 # type: verbatim
12969 #: ../src/guestfs-actions.pod:4995
12970 #, no-wrap
12971 msgid ""
12972 " char *\n"
12973 " guestfs_pread_device (guestfs_h *g,\n"
12974 "                       const char *device,\n"
12975 "                       int count,\n"
12976 "                       int64_t offset,\n"
12977 "                       size_t *size_r);\n"
12978 "\n"
12979 msgstr ""
12980
12981 # type: textblock
12982 #: ../src/guestfs-actions.pod:5002 ../fish/guestfish-actions.pod:3341
12983 msgid ""
12984 "This command lets you read part of a file.  It reads C<count> bytes of "
12985 "C<device>, starting at C<offset>."
12986 msgstr ""
12987
12988 # type: textblock
12989 #: ../src/guestfs-actions.pod:5008
12990 msgid "See also C<guestfs_pread>."
12991 msgstr ""
12992
12993 # type: textblock
12994 #: ../src/guestfs-actions.pod:5017
12995 msgid "(Added in 1.5.21)"
12996 msgstr ""
12997
12998 # type: =head2
12999 #: ../src/guestfs-actions.pod:5019
13000 msgid "guestfs_pvcreate"
13001 msgstr ""
13002
13003 # type: verbatim
13004 #: ../src/guestfs-actions.pod:5021
13005 #, no-wrap
13006 msgid ""
13007 " int\n"
13008 " guestfs_pvcreate (guestfs_h *g,\n"
13009 "                   const char *device);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3356
13015 msgid ""
13016 "This creates an LVM physical volume on the named C<device>, where C<device> "
13017 "should usually be a partition name such as C</dev/sda1>."
13018 msgstr ""
13019
13020 # type: =head2
13021 #: ../src/guestfs-actions.pod:5033
13022 msgid "guestfs_pvremove"
13023 msgstr ""
13024
13025 # type: verbatim
13026 #: ../src/guestfs-actions.pod:5035
13027 #, no-wrap
13028 msgid ""
13029 " int\n"
13030 " guestfs_pvremove (guestfs_h *g,\n"
13031 "                   const char *device);\n"
13032 "\n"
13033 msgstr ""
13034
13035 # type: textblock
13036 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3364
13037 msgid ""
13038 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13039 "it."
13040 msgstr ""
13041
13042 # type: textblock
13043 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3367
13044 msgid ""
13045 "The implementation uses the C<pvremove> command which refuses to wipe "
13046 "physical volumes that contain any volume groups, so you have to remove those "
13047 "first."
13048 msgstr ""
13049
13050 # type: =head2
13051 #: ../src/guestfs-actions.pod:5050
13052 msgid "guestfs_pvresize"
13053 msgstr ""
13054
13055 # type: verbatim
13056 #: ../src/guestfs-actions.pod:5052
13057 #, no-wrap
13058 msgid ""
13059 " int\n"
13060 " guestfs_pvresize (guestfs_h *g,\n"
13061 "                   const char *device);\n"
13062 "\n"
13063 msgstr ""
13064
13065 # type: textblock
13066 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3375
13067 msgid ""
13068 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13069 "the new size of the underlying device."
13070 msgstr ""
13071
13072 # type: =head2
13073 #: ../src/guestfs-actions.pod:5063
13074 msgid "guestfs_pvresize_size"
13075 msgstr ""
13076
13077 # type: verbatim
13078 #: ../src/guestfs-actions.pod:5065
13079 #, no-wrap
13080 msgid ""
13081 " int\n"
13082 " guestfs_pvresize_size (guestfs_h *g,\n"
13083 "                        const char *device,\n"
13084 "                        int64_t size);\n"
13085 "\n"
13086 msgstr ""
13087
13088 # type: textblock
13089 #: ../src/guestfs-actions.pod:5070
13090 msgid ""
13091 "This command is the same as C<guestfs_pvresize> except that it allows you to "
13092 "specify the new size (in bytes) explicitly."
13093 msgstr ""
13094
13095 # type: =head2
13096 #: ../src/guestfs-actions.pod:5077
13097 msgid "guestfs_pvs"
13098 msgstr ""
13099
13100 # type: verbatim
13101 #: ../src/guestfs-actions.pod:5079
13102 #, no-wrap
13103 msgid ""
13104 " char **\n"
13105 " guestfs_pvs (guestfs_h *g);\n"
13106 "\n"
13107 msgstr ""
13108
13109 # type: textblock
13110 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3389
13111 msgid ""
13112 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13113 "(8)> command."
13114 msgstr ""
13115
13116 # type: textblock
13117 #: ../src/guestfs-actions.pod:5085 ../fish/guestfish-actions.pod:3392
13118 msgid ""
13119 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13120 "sda2>)."
13121 msgstr ""
13122
13123 # type: textblock
13124 #: ../src/guestfs-actions.pod:5088
13125 msgid "See also C<guestfs_pvs_full>."
13126 msgstr ""
13127
13128 # type: =head2
13129 #: ../src/guestfs-actions.pod:5096
13130 msgid "guestfs_pvs_full"
13131 msgstr ""
13132
13133 # type: verbatim
13134 #: ../src/guestfs-actions.pod:5098
13135 #, no-wrap
13136 msgid ""
13137 " struct guestfs_lvm_pv_list *\n"
13138 " guestfs_pvs_full (guestfs_h *g);\n"
13139 "\n"
13140 msgstr ""
13141
13142 # type: textblock
13143 #: ../src/guestfs-actions.pod:5101 ../fish/guestfish-actions.pod:3401
13144 msgid ""
13145 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13146 "(8)> command.  The \"full\" version includes all fields."
13147 msgstr ""
13148
13149 # type: textblock
13150 #: ../src/guestfs-actions.pod:5104
13151 msgid ""
13152 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
13153 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
13154 msgstr ""
13155
13156 # type: =head2
13157 #: ../src/guestfs-actions.pod:5110
13158 msgid "guestfs_pvuuid"
13159 msgstr ""
13160
13161 # type: verbatim
13162 #: ../src/guestfs-actions.pod:5112
13163 #, no-wrap
13164 msgid ""
13165 " char *\n"
13166 " guestfs_pvuuid (guestfs_h *g,\n"
13167 "                 const char *device);\n"
13168 "\n"
13169 msgstr ""
13170
13171 # type: textblock
13172 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3408
13173 msgid "This command returns the UUID of the LVM PV C<device>."
13174 msgstr ""
13175
13176 # type: =head2
13177 #: ../src/guestfs-actions.pod:5123
13178 msgid "guestfs_pwrite"
13179 msgstr ""
13180
13181 # type: verbatim
13182 #: ../src/guestfs-actions.pod:5125
13183 #, no-wrap
13184 msgid ""
13185 " int\n"
13186 " guestfs_pwrite (guestfs_h *g,\n"
13187 "                 const char *path,\n"
13188 "                 const char *content,\n"
13189 "                 size_t content_size,\n"
13190 "                 int64_t offset);\n"
13191 "\n"
13192 msgstr ""
13193
13194 # type: textblock
13195 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3414
13196 msgid ""
13197 "This command writes to part of a file.  It writes the data buffer C<content> "
13198 "to the file C<path> starting at offset C<offset>."
13199 msgstr ""
13200
13201 # type: textblock
13202 #: ../src/guestfs-actions.pod:5135 ../fish/guestfish-actions.pod:3417
13203 msgid ""
13204 "This command implements the L<pwrite(2)> system call, and like that system "
13205 "call it may not write the full data requested.  The return value is the "
13206 "number of bytes that were actually written to the file.  This could even be "
13207 "0, although short writes are unlikely for regular files in ordinary "
13208 "circumstances."
13209 msgstr ""
13210
13211 # type: textblock
13212 #: ../src/guestfs-actions.pod:5141
13213 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
13214 msgstr ""
13215
13216 # type: =head2
13217 #: ../src/guestfs-actions.pod:5150
13218 msgid "guestfs_pwrite_device"
13219 msgstr ""
13220
13221 # type: verbatim
13222 #: ../src/guestfs-actions.pod:5152
13223 #, no-wrap
13224 msgid ""
13225 " int\n"
13226 " guestfs_pwrite_device (guestfs_h *g,\n"
13227 "                        const char *device,\n"
13228 "                        const char *content,\n"
13229 "                        size_t content_size,\n"
13230 "                        int64_t offset);\n"
13231 "\n"
13232 msgstr ""
13233
13234 # type: textblock
13235 #: ../src/guestfs-actions.pod:5159 ../fish/guestfish-actions.pod:3432
13236 msgid ""
13237 "This command writes to part of a device.  It writes the data buffer "
13238 "C<content> to C<device> starting at offset C<offset>."
13239 msgstr ""
13240
13241 # type: textblock
13242 #: ../src/guestfs-actions.pod:5162 ../fish/guestfish-actions.pod:3435
13243 msgid ""
13244 "This command implements the L<pwrite(2)> system call, and like that system "
13245 "call it may not write the full data requested (although short writes to disk "
13246 "devices and partitions are probably impossible with standard Linux kernels)."
13247 msgstr ""
13248
13249 # type: textblock
13250 #: ../src/guestfs-actions.pod:5167
13251 msgid "See also C<guestfs_pwrite>."
13252 msgstr ""
13253
13254 # type: textblock
13255 #: ../src/guestfs-actions.pod:5174
13256 msgid "(Added in 1.5.20)"
13257 msgstr ""
13258
13259 # type: =head2
13260 #: ../src/guestfs-actions.pod:5176
13261 msgid "guestfs_read_file"
13262 msgstr ""
13263
13264 # type: verbatim
13265 #: ../src/guestfs-actions.pod:5178
13266 #, no-wrap
13267 msgid ""
13268 " char *\n"
13269 " guestfs_read_file (guestfs_h *g,\n"
13270 "                    const char *path,\n"
13271 "                    size_t *size_r);\n"
13272 "\n"
13273 msgstr ""
13274
13275 # type: textblock
13276 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3449
13277 msgid "This calls returns the contents of the file C<path> as a buffer."
13278 msgstr ""
13279
13280 # type: textblock
13281 #: ../src/guestfs-actions.pod:5186
13282 msgid ""
13283 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
13284 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
13285 "function is limited in the total size of file that can be handled."
13286 msgstr ""
13287
13288 # type: textblock
13289 #: ../src/guestfs-actions.pod:5198
13290 msgid "(Added in 1.0.63)"
13291 msgstr ""
13292
13293 # type: =head2
13294 #: ../src/guestfs-actions.pod:5200
13295 msgid "guestfs_read_lines"
13296 msgstr ""
13297
13298 # type: verbatim
13299 #: ../src/guestfs-actions.pod:5202
13300 #, no-wrap
13301 msgid ""
13302 " char **\n"
13303 " guestfs_read_lines (guestfs_h *g,\n"
13304 "                     const char *path);\n"
13305 "\n"
13306 msgstr ""
13307
13308 # type: textblock
13309 #: ../src/guestfs-actions.pod:5208 ../fish/guestfish-actions.pod:3466
13310 msgid ""
13311 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13312 "C<CRLF> character sequences are I<not> returned."
13313 msgstr ""
13314
13315 # type: textblock
13316 #: ../src/guestfs-actions.pod:5211
13317 msgid ""
13318 "Note that this function cannot correctly handle binary files (specifically, "
13319 "files containing C<\\0> character which is treated as end of line).  For "
13320 "those you need to use the C<guestfs_read_file> function which has a more "
13321 "complex interface."
13322 msgstr ""
13323
13324 # type: =head2
13325 #: ../src/guestfs-actions.pod:5222
13326 msgid "guestfs_readdir"
13327 msgstr ""
13328
13329 # type: verbatim
13330 #: ../src/guestfs-actions.pod:5224
13331 #, no-wrap
13332 msgid ""
13333 " struct guestfs_dirent_list *\n"
13334 " guestfs_readdir (guestfs_h *g,\n"
13335 "                  const char *dir);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3478
13341 msgid "This returns the list of directory entries in directory C<dir>."
13342 msgstr ""
13343
13344 # type: textblock
13345 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3480
13346 msgid ""
13347 "All entries in the directory are returned, including C<.> and C<..>.  The "
13348 "entries are I<not> sorted, but returned in the same order as the underlying "
13349 "filesystem."
13350 msgstr ""
13351
13352 # type: textblock
13353 #: ../src/guestfs-actions.pod:5234 ../fish/guestfish-actions.pod:3484
13354 msgid ""
13355 "Also this call returns basic file type information about each file.  The "
13356 "C<ftyp> field will contain one of the following characters:"
13357 msgstr ""
13358
13359 # type: =item
13360 #: ../src/guestfs-actions.pod:5239 ../fish/guestfish-actions.pod:3489
13361 msgid "'b'"
13362 msgstr ""
13363
13364 # type: textblock
13365 #: ../src/guestfs-actions.pod:5241 ../fish/guestfish-actions.pod:3491
13366 msgid "Block special"
13367 msgstr ""
13368
13369 # type: =item
13370 #: ../src/guestfs-actions.pod:5243 ../fish/guestfish-actions.pod:3493
13371 msgid "'c'"
13372 msgstr ""
13373
13374 # type: textblock
13375 #: ../src/guestfs-actions.pod:5245 ../fish/guestfish-actions.pod:3495
13376 msgid "Char special"
13377 msgstr ""
13378
13379 # type: =item
13380 #: ../src/guestfs-actions.pod:5247 ../fish/guestfish-actions.pod:3497
13381 msgid "'d'"
13382 msgstr ""
13383
13384 # type: textblock
13385 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3499
13386 msgid "Directory"
13387 msgstr ""
13388
13389 # type: =item
13390 #: ../src/guestfs-actions.pod:5251 ../fish/guestfish-actions.pod:3501
13391 msgid "'f'"
13392 msgstr ""
13393
13394 # type: textblock
13395 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3503
13396 msgid "FIFO (named pipe)"
13397 msgstr ""
13398
13399 # type: =item
13400 #: ../src/guestfs-actions.pod:5255 ../fish/guestfish-actions.pod:3505
13401 msgid "'l'"
13402 msgstr ""
13403
13404 # type: textblock
13405 #: ../src/guestfs-actions.pod:5257 ../fish/guestfish-actions.pod:3507
13406 msgid "Symbolic link"
13407 msgstr ""
13408
13409 # type: =item
13410 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
13411 msgid "'r'"
13412 msgstr ""
13413
13414 # type: textblock
13415 #: ../src/guestfs-actions.pod:5261 ../fish/guestfish-actions.pod:3511
13416 msgid "Regular file"
13417 msgstr ""
13418
13419 # type: =item
13420 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3513
13421 msgid "'s'"
13422 msgstr ""
13423
13424 # type: textblock
13425 #: ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3515
13426 msgid "Socket"
13427 msgstr ""
13428
13429 # type: =item
13430 #: ../src/guestfs-actions.pod:5267 ../fish/guestfish-actions.pod:3517
13431 msgid "'u'"
13432 msgstr ""
13433
13434 # type: textblock
13435 #: ../src/guestfs-actions.pod:5269 ../fish/guestfish-actions.pod:3519
13436 msgid "Unknown file type"
13437 msgstr ""
13438
13439 # type: =item
13440 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3521
13441 msgid "'?'"
13442 msgstr ""
13443
13444 # type: textblock
13445 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3523
13446 msgid ""
13447 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13448 msgstr ""
13449
13450 # type: textblock
13451 #: ../src/guestfs-actions.pod:5278
13452 msgid ""
13453 "This function is primarily intended for use by programs.  To get a simple "
13454 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
13455 "consumption, use C<guestfs_ll>."
13456 msgstr ""
13457
13458 # type: textblock
13459 #: ../src/guestfs-actions.pod:5282
13460 msgid ""
13461 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
13462 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
13463 msgstr ""
13464
13465 # type: =head2
13466 #: ../src/guestfs-actions.pod:5288
13467 msgid "guestfs_readlink"
13468 msgstr ""
13469
13470 # type: verbatim
13471 #: ../src/guestfs-actions.pod:5290
13472 #, no-wrap
13473 msgid ""
13474 " char *\n"
13475 " guestfs_readlink (guestfs_h *g,\n"
13476 "                   const char *path);\n"
13477 "\n"
13478 msgstr ""
13479
13480 # type: textblock
13481 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3536
13482 msgid "This command reads the target of a symbolic link."
13483 msgstr ""
13484
13485 # type: =head2
13486 #: ../src/guestfs-actions.pod:5301
13487 msgid "guestfs_readlinklist"
13488 msgstr ""
13489
13490 # type: verbatim
13491 #: ../src/guestfs-actions.pod:5303
13492 #, no-wrap
13493 msgid ""
13494 " char **\n"
13495 " guestfs_readlinklist (guestfs_h *g,\n"
13496 "                       const char *path,\n"
13497 "                       char *const *names);\n"
13498 "\n"
13499 msgstr ""
13500
13501 # type: textblock
13502 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3542
13503 msgid ""
13504 "This call allows you to do a C<readlink> operation on multiple files, where "
13505 "all files are in the directory C<path>.  C<names> is the list of files from "
13506 "this directory."
13507 msgstr ""
13508
13509 # type: textblock
13510 #: ../src/guestfs-actions.pod:5312 ../fish/guestfish-actions.pod:3546
13511 msgid ""
13512 "On return you get a list of strings, with a one-to-one correspondence to the "
13513 "C<names> list.  Each string is the value of the symbolic link."
13514 msgstr ""
13515
13516 # type: textblock
13517 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3550
13518 msgid ""
13519 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13520 "result string is the empty string C<\"\">.  However the whole operation is "
13521 "completed even if there were C<readlink(2)> errors, and so you can call this "
13522 "function with names where you don't know if they are symbolic links already "
13523 "(albeit slightly less efficient)."
13524 msgstr ""
13525
13526 # type: textblock
13527 #: ../src/guestfs-actions.pod:5323 ../fish/guestfish-actions.pod:3557
13528 msgid ""
13529 "This call is intended for programs that want to efficiently list a directory "
13530 "contents without making many round-trips.  Very long directory listings "
13531 "might cause the protocol message size to be exceeded, causing this call to "
13532 "fail.  The caller must split up such requests into smaller groups of names."
13533 msgstr ""
13534
13535 # type: =head2
13536 #: ../src/guestfs-actions.pod:5336
13537 msgid "guestfs_realpath"
13538 msgstr ""
13539
13540 # type: verbatim
13541 #: ../src/guestfs-actions.pod:5338
13542 #, no-wrap
13543 msgid ""
13544 " char *\n"
13545 " guestfs_realpath (guestfs_h *g,\n"
13546 "                   const char *path);\n"
13547 "\n"
13548 msgstr ""
13549
13550 # type: textblock
13551 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
13552 msgid ""
13553 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13554 "has no C<.>, C<..> or symbolic link path elements."
13555 msgstr ""
13556
13557 # type: =head2
13558 #: ../src/guestfs-actions.pod:5350
13559 msgid "guestfs_removexattr"
13560 msgstr ""
13561
13562 # type: verbatim
13563 #: ../src/guestfs-actions.pod:5352
13564 #, no-wrap
13565 msgid ""
13566 " int\n"
13567 " guestfs_removexattr (guestfs_h *g,\n"
13568 "                      const char *xattr,\n"
13569 "                      const char *path);\n"
13570 "\n"
13571 msgstr ""
13572
13573 # type: textblock
13574 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3575
13575 msgid ""
13576 "This call removes the extended attribute named C<xattr> of the file C<path>."
13577 msgstr ""
13578
13579 # type: textblock
13580 #: ../src/guestfs-actions.pod:5360
13581 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
13582 msgstr ""
13583
13584 # type: =head2
13585 #: ../src/guestfs-actions.pod:5366
13586 msgid "guestfs_resize2fs"
13587 msgstr ""
13588
13589 # type: verbatim
13590 #: ../src/guestfs-actions.pod:5368
13591 #, no-wrap
13592 msgid ""
13593 " int\n"
13594 " guestfs_resize2fs (guestfs_h *g,\n"
13595 "                    const char *device);\n"
13596 "\n"
13597 msgstr ""
13598
13599 # type: textblock
13600 #: ../src/guestfs-actions.pod:5372 ../fish/guestfish-actions.pod:3584
13601 msgid ""
13602 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13603 "underlying device."
13604 msgstr ""
13605
13606 # type: textblock
13607 #: ../src/guestfs-actions.pod:5375
13608 msgid ""
13609 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
13610 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
13611 "sometimes gives an error about this and sometimes not.  In any case, it is "
13612 "always safe to call C<guestfs_e2fsck_f> before calling this function."
13613 msgstr ""
13614
13615 # type: =head2
13616 #: ../src/guestfs-actions.pod:5385
13617 msgid "guestfs_resize2fs_size"
13618 msgstr ""
13619
13620 # type: verbatim
13621 #: ../src/guestfs-actions.pod:5387
13622 #, no-wrap
13623 msgid ""
13624 " int\n"
13625 " guestfs_resize2fs_size (guestfs_h *g,\n"
13626 "                         const char *device,\n"
13627 "                         int64_t size);\n"
13628 "\n"
13629 msgstr ""
13630
13631 # type: textblock
13632 #: ../src/guestfs-actions.pod:5392
13633 msgid ""
13634 "This command is the same as C<guestfs_resize2fs> except that it allows you "
13635 "to specify the new size (in bytes) explicitly."
13636 msgstr ""
13637
13638 # type: =head2
13639 #: ../src/guestfs-actions.pod:5399
13640 msgid "guestfs_rm"
13641 msgstr ""
13642
13643 # type: verbatim
13644 #: ../src/guestfs-actions.pod:5401
13645 #, no-wrap
13646 msgid ""
13647 " int\n"
13648 " guestfs_rm (guestfs_h *g,\n"
13649 "             const char *path);\n"
13650 "\n"
13651 msgstr ""
13652
13653 # type: textblock
13654 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3604
13655 msgid "Remove the single file C<path>."
13656 msgstr ""
13657
13658 # type: =head2
13659 #: ../src/guestfs-actions.pod:5411
13660 msgid "guestfs_rm_rf"
13661 msgstr ""
13662
13663 # type: verbatim
13664 #: ../src/guestfs-actions.pod:5413
13665 #, no-wrap
13666 msgid ""
13667 " int\n"
13668 " guestfs_rm_rf (guestfs_h *g,\n"
13669 "                const char *path);\n"
13670 "\n"
13671 msgstr ""
13672
13673 # type: textblock
13674 #: ../src/guestfs-actions.pod:5417 ../fish/guestfish-actions.pod:3610
13675 msgid ""
13676 "Remove the file or directory C<path>, recursively removing the contents if "
13677 "its a directory.  This is like the C<rm -rf> shell command."
13678 msgstr ""
13679
13680 # type: =head2
13681 #: ../src/guestfs-actions.pod:5425
13682 msgid "guestfs_rmdir"
13683 msgstr ""
13684
13685 # type: verbatim
13686 #: ../src/guestfs-actions.pod:5427
13687 #, no-wrap
13688 msgid ""
13689 " int\n"
13690 " guestfs_rmdir (guestfs_h *g,\n"
13691 "                const char *path);\n"
13692 "\n"
13693 msgstr ""
13694
13695 # type: textblock
13696 #: ../src/guestfs-actions.pod:5431 ../fish/guestfish-actions.pod:3618
13697 msgid "Remove the single directory C<path>."
13698 msgstr ""
13699
13700 # type: =head2
13701 #: ../src/guestfs-actions.pod:5437
13702 msgid "guestfs_rmmountpoint"
13703 msgstr ""
13704
13705 # type: verbatim
13706 #: ../src/guestfs-actions.pod:5439
13707 #, no-wrap
13708 msgid ""
13709 " int\n"
13710 " guestfs_rmmountpoint (guestfs_h *g,\n"
13711 "                       const char *exemptpath);\n"
13712 "\n"
13713 msgstr ""
13714
13715 # type: textblock
13716 #: ../src/guestfs-actions.pod:5443
13717 msgid ""
13718 "This calls removes a mountpoint that was previously created with "
13719 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
13720 msgstr ""
13721
13722 # type: =head2
13723 #: ../src/guestfs-actions.pod:5451
13724 msgid "guestfs_scrub_device"
13725 msgstr ""
13726
13727 # type: verbatim
13728 #: ../src/guestfs-actions.pod:5453
13729 #, no-wrap
13730 msgid ""
13731 " int\n"
13732 " guestfs_scrub_device (guestfs_h *g,\n"
13733 "                       const char *device);\n"
13734 "\n"
13735 msgstr ""
13736
13737 # type: textblock
13738 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3632
13739 msgid ""
13740 "This command writes patterns over C<device> to make data retrieval more "
13741 "difficult."
13742 msgstr ""
13743
13744 # type: textblock
13745 #: ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5481
13746 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3635
13747 #: ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3663
13748 msgid ""
13749 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13750 "more details."
13751 msgstr ""
13752
13753 # type: textblock
13754 #: ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5486
13755 #: ../src/guestfs-actions.pod:5505
13756 msgid "(Added in 1.0.52)"
13757 msgstr ""
13758
13759 # type: =head2
13760 #: ../src/guestfs-actions.pod:5470
13761 msgid "guestfs_scrub_file"
13762 msgstr ""
13763
13764 # type: verbatim
13765 #: ../src/guestfs-actions.pod:5472
13766 #, no-wrap
13767 msgid ""
13768 " int\n"
13769 " guestfs_scrub_file (guestfs_h *g,\n"
13770 "                     const char *file);\n"
13771 "\n"
13772 msgstr ""
13773
13774 # type: textblock
13775 #: ../src/guestfs-actions.pod:5476 ../fish/guestfish-actions.pod:3645
13776 msgid ""
13777 "This command writes patterns over a file to make data retrieval more "
13778 "difficult."
13779 msgstr ""
13780
13781 # type: textblock
13782 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3648
13783 msgid "The file is I<removed> after scrubbing."
13784 msgstr ""
13785
13786 # type: =head2
13787 #: ../src/guestfs-actions.pod:5488
13788 msgid "guestfs_scrub_freespace"
13789 msgstr ""
13790
13791 # type: verbatim
13792 #: ../src/guestfs-actions.pod:5490
13793 #, no-wrap
13794 msgid ""
13795 " int\n"
13796 " guestfs_scrub_freespace (guestfs_h *g,\n"
13797 "                          const char *dir);\n"
13798 "\n"
13799 msgstr ""
13800
13801 # type: textblock
13802 #: ../src/guestfs-actions.pod:5494
13803 msgid ""
13804 "This command creates the directory C<dir> and then fills it with files until "
13805 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
13806 "and deletes them.  The intention is to scrub any free space on the partition "
13807 "containing C<dir>."
13808 msgstr ""
13809
13810 # type: =head2
13811 #: ../src/guestfs-actions.pod:5507
13812 msgid "guestfs_set_append"
13813 msgstr ""
13814
13815 # type: verbatim
13816 #: ../src/guestfs-actions.pod:5509
13817 #, no-wrap
13818 msgid ""
13819 " int\n"
13820 " guestfs_set_append (guestfs_h *g,\n"
13821 "                     const char *append);\n"
13822 "\n"
13823 msgstr ""
13824
13825 # type: textblock
13826 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3672
13827 msgid ""
13828 "This function is used to add additional options to the guest kernel command "
13829 "line."
13830 msgstr ""
13831
13832 # type: textblock
13833 #: ../src/guestfs-actions.pod:5516 ../fish/guestfish-actions.pod:3675
13834 msgid ""
13835 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13836 "environment variable."
13837 msgstr ""
13838
13839 # type: textblock
13840 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3678
13841 msgid ""
13842 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13843 "(libguestfs always adds a few of its own)."
13844 msgstr ""
13845
13846 # type: =head2
13847 #: ../src/guestfs-actions.pod:5526
13848 msgid "guestfs_set_autosync"
13849 msgstr ""
13850
13851 # type: verbatim
13852 #: ../src/guestfs-actions.pod:5528
13853 #, no-wrap
13854 msgid ""
13855 " int\n"
13856 " guestfs_set_autosync (guestfs_h *g,\n"
13857 "                       int autosync);\n"
13858 "\n"
13859 msgstr ""
13860
13861 # type: textblock
13862 #: ../src/guestfs-actions.pod:5532
13863 msgid ""
13864 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13865 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
13866 "the handle is closed (also if the program exits without closing handles)."
13867 msgstr ""
13868
13869 # type: textblock
13870 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3692
13871 msgid ""
13872 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13873 "disabled by default)."
13874 msgstr ""
13875
13876 # type: =head2
13877 #: ../src/guestfs-actions.pod:5544
13878 msgid "guestfs_set_direct"
13879 msgstr ""
13880
13881 # type: verbatim
13882 #: ../src/guestfs-actions.pod:5546
13883 #, no-wrap
13884 msgid ""
13885 " int\n"
13886 " guestfs_set_direct (guestfs_h *g,\n"
13887 "                     int direct);\n"
13888 "\n"
13889 msgstr ""
13890
13891 # type: textblock
13892 #: ../src/guestfs-actions.pod:5550 ../fish/guestfish-actions.pod:3701
13893 msgid ""
13894 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13895 "passed directly through to the appliance once it is launched."
13896 msgstr ""
13897
13898 # type: textblock
13899 #: ../src/guestfs-actions.pod:5554
13900 msgid ""
13901 "One consequence of this is that log messages aren't caught by the library "
13902 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
13903 "stdout."
13904 msgstr ""
13905
13906 # type: textblock
13907 #: ../src/guestfs-actions.pod:5558 ../fish/guestfish-actions.pod:3709
13908 msgid "You probably don't want to use this unless you know what you are doing."
13909 msgstr ""
13910
13911 # type: textblock
13912 #: ../src/guestfs-actions.pod:5561 ../fish/guestfish-actions.pod:3712
13913 msgid "The default is disabled."
13914 msgstr ""
13915
13916 # type: =head2
13917 #: ../src/guestfs-actions.pod:5567
13918 msgid "guestfs_set_e2label"
13919 msgstr ""
13920
13921 # type: verbatim
13922 #: ../src/guestfs-actions.pod:5569
13923 #, no-wrap
13924 msgid ""
13925 " int\n"
13926 " guestfs_set_e2label (guestfs_h *g,\n"
13927 "                      const char *device,\n"
13928 "                      const char *label);\n"
13929 "\n"
13930 msgstr ""
13931
13932 # type: textblock
13933 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3718
13934 msgid ""
13935 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13936 "C<label>.  Filesystem labels are limited to 16 characters."
13937 msgstr ""
13938
13939 # type: textblock
13940 #: ../src/guestfs-actions.pod:5578
13941 msgid ""
13942 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
13943 "the existing label on a filesystem."
13944 msgstr ""
13945
13946 # type: =head2
13947 #: ../src/guestfs-actions.pod:5585
13948 msgid "guestfs_set_e2uuid"
13949 msgstr ""
13950
13951 # type: verbatim
13952 #: ../src/guestfs-actions.pod:5587
13953 #, no-wrap
13954 msgid ""
13955 " int\n"
13956 " guestfs_set_e2uuid (guestfs_h *g,\n"
13957 "                     const char *device,\n"
13958 "                     const char *uuid);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #: ../src/guestfs-actions.pod:5592 ../fish/guestfish-actions.pod:3729
13964 msgid ""
13965 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13966 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13967 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13968 msgstr ""
13969
13970 # type: textblock
13971 #: ../src/guestfs-actions.pod:5597
13972 msgid ""
13973 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
13974 "the existing UUID of a filesystem."
13975 msgstr ""
13976
13977 # type: =head2
13978 #: ../src/guestfs-actions.pod:5604
13979 msgid "guestfs_set_memsize"
13980 msgstr ""
13981
13982 # type: verbatim
13983 #: ../src/guestfs-actions.pod:5606
13984 #, no-wrap
13985 msgid ""
13986 " int\n"
13987 " guestfs_set_memsize (guestfs_h *g,\n"
13988 "                      int memsize);\n"
13989 "\n"
13990 msgstr ""
13991
13992 # type: textblock
13993 #: ../src/guestfs-actions.pod:5610
13994 msgid ""
13995 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13996 "This only has any effect if called before C<guestfs_launch>."
13997 msgstr ""
13998
13999 # type: textblock
14000 #: ../src/guestfs-actions.pod:5614 ../fish/guestfish-actions.pod:3747
14001 msgid ""
14002 "You can also change this by setting the environment variable "
14003 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14004 msgstr ""
14005
14006 # type: =head2
14007 #: ../src/guestfs-actions.pod:5625
14008 msgid "guestfs_set_network"
14009 msgstr ""
14010
14011 # type: verbatim
14012 #: ../src/guestfs-actions.pod:5627
14013 #, no-wrap
14014 msgid ""
14015 " int\n"
14016 " guestfs_set_network (guestfs_h *g,\n"
14017 "                      int network);\n"
14018 "\n"
14019 msgstr ""
14020
14021 # type: textblock
14022 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3760
14023 msgid ""
14024 "If C<network> is true, then the network is enabled in the libguestfs "
14025 "appliance.  The default is false."
14026 msgstr ""
14027
14028 # type: textblock
14029 #: ../src/guestfs-actions.pod:5634 ../fish/guestfish-actions.pod:3763
14030 msgid ""
14031 "This affects whether commands are able to access the network (see L<guestfs"
14032 "(3)/RUNNING COMMANDS>)."
14033 msgstr ""
14034
14035 # type: textblock
14036 #: ../src/guestfs-actions.pod:5637
14037 msgid ""
14038 "You must call this before calling C<guestfs_launch>, otherwise it has no "
14039 "effect."
14040 msgstr ""
14041
14042 # type: =head2
14043 #: ../src/guestfs-actions.pod:5644
14044 msgid "guestfs_set_path"
14045 msgstr ""
14046
14047 # type: verbatim
14048 #: ../src/guestfs-actions.pod:5646
14049 #, no-wrap
14050 msgid ""
14051 " int\n"
14052 " guestfs_set_path (guestfs_h *g,\n"
14053 "                   const char *searchpath);\n"
14054 "\n"
14055 msgstr ""
14056
14057 # type: textblock
14058 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3775
14059 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14060 msgstr ""
14061
14062 # type: textblock
14063 #: ../src/guestfs-actions.pod:5652 ../fish/guestfish-actions.pod:3777
14064 msgid ""
14065 "The default is C<$libdir/guestfs> unless overridden by setting "
14066 "C<LIBGUESTFS_PATH> environment variable."
14067 msgstr ""
14068
14069 # type: textblock
14070 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3780
14071 msgid "Setting C<path> to C<NULL> restores the default path."
14072 msgstr ""
14073
14074 # type: =head2
14075 #: ../src/guestfs-actions.pod:5661
14076 msgid "guestfs_set_qemu"
14077 msgstr ""
14078
14079 # type: verbatim
14080 #: ../src/guestfs-actions.pod:5663
14081 #, no-wrap
14082 msgid ""
14083 " int\n"
14084 " guestfs_set_qemu (guestfs_h *g,\n"
14085 "                   const char *qemu);\n"
14086 "\n"
14087 msgstr ""
14088
14089 # type: textblock
14090 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3788
14091 msgid "Set the qemu binary that we will use."
14092 msgstr ""
14093
14094 # type: textblock
14095 #: ../src/guestfs-actions.pod:5669 ../fish/guestfish-actions.pod:3790
14096 msgid ""
14097 "The default is chosen when the library was compiled by the configure script."
14098 msgstr ""
14099
14100 # type: textblock
14101 #: ../src/guestfs-actions.pod:5672 ../fish/guestfish-actions.pod:3793
14102 msgid ""
14103 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14104 "variable."
14105 msgstr ""
14106
14107 # type: textblock
14108 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3796
14109 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14110 msgstr ""
14111
14112 # type: textblock
14113 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
14114 msgid ""
14115 "Note that you should call this function as early as possible after creating "
14116 "the handle.  This is because some pre-launch operations depend on testing "
14117 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14118 "don't retest features, and so you might see inconsistent results.  Using the "
14119 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14120 "the qemu binary at the same time as the handle is created."
14121 msgstr ""
14122
14123 # type: =head2
14124 #: ../src/guestfs-actions.pod:5689
14125 msgid "guestfs_set_recovery_proc"
14126 msgstr ""
14127
14128 # type: verbatim
14129 #: ../src/guestfs-actions.pod:5691
14130 #, no-wrap
14131 msgid ""
14132 " int\n"
14133 " guestfs_set_recovery_proc (guestfs_h *g,\n"
14134 "                            int recoveryproc);\n"
14135 "\n"
14136 msgstr ""
14137
14138 # type: textblock
14139 #: ../src/guestfs-actions.pod:5695
14140 msgid ""
14141 "If this is called with the parameter C<false> then C<guestfs_launch> does "
14142 "not create a recovery process.  The purpose of the recovery process is to "
14143 "stop runaway qemu processes in the case where the main program aborts "
14144 "abruptly."
14145 msgstr ""
14146
14147 # type: textblock
14148 #: ../src/guestfs-actions.pod:5700
14149 msgid ""
14150 "This only has any effect if called before C<guestfs_launch>, and the default "
14151 "is true."
14152 msgstr ""
14153
14154 # type: textblock
14155 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3820
14156 msgid ""
14157 "About the only time when you would want to disable this is if the main "
14158 "process will fork itself into the background (\"daemonize\" itself).  In "
14159 "this case the recovery process thinks that the main program has disappeared "
14160 "and so kills qemu, which is not very helpful."
14161 msgstr ""
14162
14163 # type: =head2
14164 #: ../src/guestfs-actions.pod:5713
14165 msgid "guestfs_set_selinux"
14166 msgstr ""
14167
14168 # type: verbatim
14169 #: ../src/guestfs-actions.pod:5715
14170 #, no-wrap
14171 msgid ""
14172 " int\n"
14173 " guestfs_set_selinux (guestfs_h *g,\n"
14174 "                      int selinux);\n"
14175 "\n"
14176 msgstr ""
14177
14178 # type: textblock
14179 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3832
14180 msgid ""
14181 "This sets the selinux flag that is passed to the appliance at boot time.  "
14182 "The default is C<selinux=0> (disabled)."
14183 msgstr ""
14184
14185 # type: textblock
14186 #: ../src/guestfs-actions.pod:5722 ../fish/guestfish-actions.pod:3835
14187 msgid ""
14188 "Note that if SELinux is enabled, it is always in Permissive mode "
14189 "(C<enforcing=0>)."
14190 msgstr ""
14191
14192 # type: =head2
14193 #: ../src/guestfs-actions.pod:5732
14194 msgid "guestfs_set_trace"
14195 msgstr ""
14196
14197 # type: verbatim
14198 #: ../src/guestfs-actions.pod:5734
14199 #, no-wrap
14200 msgid ""
14201 " int\n"
14202 " guestfs_set_trace (guestfs_h *g,\n"
14203 "                    int trace);\n"
14204 "\n"
14205 msgstr ""
14206
14207 # type: textblock
14208 #: ../src/guestfs-actions.pod:5738 ../fish/guestfish-actions.pod:3847
14209 msgid ""
14210 "If the command trace flag is set to 1, then commands are printed on stderr "
14211 "before they are executed in a format which is very similar to the one used "
14212 "by guestfish.  In other words, you can run a program with this enabled, and "
14213 "you will get out a script which you can feed to guestfish to perform the "
14214 "same set of actions."
14215 msgstr ""
14216
14217 # type: textblock
14218 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3854
14219 msgid ""
14220 "If you want to trace C API calls into libguestfs (and other libraries) then "
14221 "possibly a better way is to use the external ltrace(1) command."
14222 msgstr ""
14223
14224 # type: textblock
14225 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3858
14226 msgid ""
14227 "Command traces are disabled unless the environment variable "
14228 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14229 msgstr ""
14230
14231 # type: =head2
14232 #: ../src/guestfs-actions.pod:5756
14233 msgid "guestfs_set_verbose"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #: ../src/guestfs-actions.pod:5758
14238 #, no-wrap
14239 msgid ""
14240 " int\n"
14241 " guestfs_set_verbose (guestfs_h *g,\n"
14242 "                      int verbose);\n"
14243 "\n"
14244 msgstr ""
14245
14246 # type: textblock
14247 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3867
14248 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
14249 msgstr ""
14250
14251 # type: textblock
14252 #: ../src/guestfs-actions.pod:5764 ../fish/guestfish-actions.pod:3869
14253 msgid ""
14254 "Verbose messages are disabled unless the environment variable "
14255 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14256 msgstr ""
14257
14258 # type: =head2
14259 #: ../src/guestfs-actions.pod:5771
14260 msgid "guestfs_setcon"
14261 msgstr ""
14262
14263 # type: verbatim
14264 #: ../src/guestfs-actions.pod:5773
14265 #, no-wrap
14266 msgid ""
14267 " int\n"
14268 " guestfs_setcon (guestfs_h *g,\n"
14269 "                 const char *context);\n"
14270 "\n"
14271 msgstr ""
14272
14273 # type: textblock
14274 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3876
14275 msgid ""
14276 "This sets the SELinux security context of the daemon to the string "
14277 "C<context>."
14278 msgstr ""
14279
14280 # type: textblock
14281 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3879
14282 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14283 msgstr ""
14284
14285 # type: =head2
14286 #: ../src/guestfs-actions.pod:5786
14287 msgid "guestfs_setxattr"
14288 msgstr ""
14289
14290 # type: verbatim
14291 #: ../src/guestfs-actions.pod:5788
14292 #, no-wrap
14293 msgid ""
14294 " int\n"
14295 " guestfs_setxattr (guestfs_h *g,\n"
14296 "                   const char *xattr,\n"
14297 "                   const char *val,\n"
14298 "                   int vallen,\n"
14299 "                   const char *path);\n"
14300 "\n"
14301 msgstr ""
14302
14303 # type: textblock
14304 #: ../src/guestfs-actions.pod:5795 ../fish/guestfish-actions.pod:3885
14305 msgid ""
14306 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14307 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14308 msgstr ""
14309
14310 # type: textblock
14311 #: ../src/guestfs-actions.pod:5799
14312 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
14313 msgstr ""
14314
14315 # type: =head2
14316 #: ../src/guestfs-actions.pod:5805
14317 msgid "guestfs_sfdisk"
14318 msgstr ""
14319
14320 # type: verbatim
14321 #: ../src/guestfs-actions.pod:5807
14322 #, no-wrap
14323 msgid ""
14324 " int\n"
14325 " guestfs_sfdisk (guestfs_h *g,\n"
14326 "                 const char *device,\n"
14327 "                 int cyls,\n"
14328 "                 int heads,\n"
14329 "                 int sectors,\n"
14330 "                 char *const *lines);\n"
14331 "\n"
14332 msgstr ""
14333
14334 # type: textblock
14335 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3895
14336 msgid ""
14337 "This is a direct interface to the L<sfdisk(8)> program for creating "
14338 "partitions on block devices."
14339 msgstr ""
14340
14341 # type: textblock
14342 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3898
14343 msgid "C<device> should be a block device, for example C</dev/sda>."
14344 msgstr ""
14345
14346 # type: textblock
14347 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3900
14348 msgid ""
14349 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14350 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14351 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14352 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14353 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14354 "the kernel) cannot work out the right geometry and you will need to tell it."
14355 msgstr ""
14356
14357 # type: textblock
14358 #: ../src/guestfs-actions.pod:5828 ../fish/guestfish-actions.pod:3908
14359 msgid ""
14360 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14361 "refer to the L<sfdisk(8)> manpage."
14362 msgstr ""
14363
14364 # type: textblock
14365 #: ../src/guestfs-actions.pod:5831 ../fish/guestfish-actions.pod:3911
14366 msgid ""
14367 "To create a single partition occupying the whole disk, you would pass "
14368 "C<lines> as a single element list, when the single element being the string "
14369 "C<,> (comma)."
14370 msgstr ""
14371
14372 # type: textblock
14373 #: ../src/guestfs-actions.pod:5835
14374 msgid ""
14375 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
14376 msgstr ""
14377
14378 # type: =head2
14379 #: ../src/guestfs-actions.pod:5845
14380 msgid "guestfs_sfdiskM"
14381 msgstr ""
14382
14383 # type: verbatim
14384 #: ../src/guestfs-actions.pod:5847
14385 #, no-wrap
14386 msgid ""
14387 " int\n"
14388 " guestfs_sfdiskM (guestfs_h *g,\n"
14389 "                  const char *device,\n"
14390 "                  char *const *lines);\n"
14391 "\n"
14392 msgstr ""
14393
14394 # type: textblock
14395 #: ../src/guestfs-actions.pod:5852
14396 msgid ""
14397 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
14398 "partition sizes are specified in megabytes only (rounded to the nearest "
14399 "cylinder) and you don't need to specify the cyls, heads and sectors "
14400 "parameters which were rarely if ever used anyway."
14401 msgstr ""
14402
14403 # type: textblock
14404 #: ../src/guestfs-actions.pod:5858
14405 msgid ""
14406 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
14407 "C<guestfs_part_disk>"
14408 msgstr ""
14409
14410 # type: =head2
14411 #: ../src/guestfs-actions.pod:5868
14412 msgid "guestfs_sfdisk_N"
14413 msgstr ""
14414
14415 # type: verbatim
14416 #: ../src/guestfs-actions.pod:5870
14417 #, no-wrap
14418 msgid ""
14419 " int\n"
14420 " guestfs_sfdisk_N (guestfs_h *g,\n"
14421 "                   const char *device,\n"
14422 "                   int partnum,\n"
14423 "                   int cyls,\n"
14424 "                   int heads,\n"
14425 "                   int sectors,\n"
14426 "                   const char *line);\n"
14427 "\n"
14428 msgstr ""
14429
14430 # type: textblock
14431 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3941
14432 msgid ""
14433 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14434 "(note: C<n> counts from 1)."
14435 msgstr ""
14436
14437 # type: textblock
14438 #: ../src/guestfs-actions.pod:5882
14439 msgid ""
14440 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
14441 "for the cyls/heads/sectors parameters."
14442 msgstr ""
14443
14444 # type: textblock
14445 #: ../src/guestfs-actions.pod:5885
14446 msgid "See also: C<guestfs_part_add>"
14447 msgstr ""
14448
14449 # type: =head2
14450 #: ../src/guestfs-actions.pod:5894
14451 msgid "guestfs_sfdisk_disk_geometry"
14452 msgstr ""
14453
14454 # type: verbatim
14455 #: ../src/guestfs-actions.pod:5896
14456 #, no-wrap
14457 msgid ""
14458 " char *\n"
14459 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
14460 "                               const char *device);\n"
14461 "\n"
14462 msgstr ""
14463
14464 # type: textblock
14465 #: ../src/guestfs-actions.pod:5900
14466 msgid ""
14467 "This displays the disk geometry of C<device> read from the partition table.  "
14468 "Especially in the case where the underlying block device has been resized, "
14469 "this can be different from the kernel's idea of the geometry (see "
14470 "C<guestfs_sfdisk_kernel_geometry>)."
14471 msgstr ""
14472
14473 # type: textblock
14474 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5921
14475 #: ../fish/guestfish-actions.pod:3961 ../fish/guestfish-actions.pod:3970
14476 msgid "The result is in human-readable format, and not designed to be parsed."
14477 msgstr ""
14478
14479 # type: =head2
14480 #: ../src/guestfs-actions.pod:5913
14481 msgid "guestfs_sfdisk_kernel_geometry"
14482 msgstr ""
14483
14484 # type: verbatim
14485 #: ../src/guestfs-actions.pod:5915
14486 #, no-wrap
14487 msgid ""
14488 " char *\n"
14489 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
14490 "                                 const char *device);\n"
14491 "\n"
14492 msgstr ""
14493
14494 # type: textblock
14495 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3968
14496 msgid "This displays the kernel's idea of the geometry of C<device>."
14497 msgstr ""
14498
14499 # type: =head2
14500 #: ../src/guestfs-actions.pod:5929
14501 msgid "guestfs_sfdisk_l"
14502 msgstr ""
14503
14504 # type: verbatim
14505 #: ../src/guestfs-actions.pod:5931
14506 #, no-wrap
14507 msgid ""
14508 " char *\n"
14509 " guestfs_sfdisk_l (guestfs_h *g,\n"
14510 "                   const char *device);\n"
14511 "\n"
14512 msgstr ""
14513
14514 # type: textblock
14515 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3977
14516 msgid ""
14517 "This displays the partition table on C<device>, in the human-readable output "
14518 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14519 msgstr ""
14520
14521 # type: textblock
14522 #: ../src/guestfs-actions.pod:5939
14523 msgid "See also: C<guestfs_part_list>"
14524 msgstr ""
14525
14526 # type: =head2
14527 #: ../src/guestfs-actions.pod:5946
14528 msgid "guestfs_sh"
14529 msgstr ""
14530
14531 # type: verbatim
14532 #: ../src/guestfs-actions.pod:5948
14533 #, no-wrap
14534 msgid ""
14535 " char *\n"
14536 " guestfs_sh (guestfs_h *g,\n"
14537 "             const char *command);\n"
14538 "\n"
14539 msgstr ""
14540
14541 # type: textblock
14542 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:3987
14543 msgid ""
14544 "This call runs a command from the guest filesystem via the guest's C</bin/"
14545 "sh>."
14546 msgstr ""
14547
14548 # type: textblock
14549 #: ../src/guestfs-actions.pod:5955
14550 msgid "This is like C<guestfs_command>, but passes the command to:"
14551 msgstr ""
14552
14553 # type: verbatim
14554 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:3992
14555 #, no-wrap
14556 msgid ""
14557 " /bin/sh -c \"command\"\n"
14558 "\n"
14559 msgstr ""
14560
14561 # type: textblock
14562 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:3994
14563 msgid ""
14564 "Depending on the guest's shell, this usually results in wildcards being "
14565 "expanded, shell expressions being interpolated and so on."
14566 msgstr ""
14567
14568 # type: textblock
14569 #: ../src/guestfs-actions.pod:5963
14570 msgid "All the provisos about C<guestfs_command> apply to this call."
14571 msgstr ""
14572
14573 # type: =head2
14574 #: ../src/guestfs-actions.pod:5970
14575 msgid "guestfs_sh_lines"
14576 msgstr ""
14577
14578 # type: verbatim
14579 #: ../src/guestfs-actions.pod:5972
14580 #, no-wrap
14581 msgid ""
14582 " char **\n"
14583 " guestfs_sh_lines (guestfs_h *g,\n"
14584 "                   const char *command);\n"
14585 "\n"
14586 msgstr ""
14587
14588 # type: textblock
14589 #: ../src/guestfs-actions.pod:5976
14590 msgid ""
14591 "This is the same as C<guestfs_sh>, but splits the result into a list of "
14592 "lines."
14593 msgstr ""
14594
14595 # type: textblock
14596 #: ../src/guestfs-actions.pod:5979
14597 msgid "See also: C<guestfs_command_lines>"
14598 msgstr ""
14599
14600 # type: =head2
14601 #: ../src/guestfs-actions.pod:5987
14602 msgid "guestfs_sleep"
14603 msgstr ""
14604
14605 # type: verbatim
14606 #: ../src/guestfs-actions.pod:5989
14607 #, no-wrap
14608 msgid ""
14609 " int\n"
14610 " guestfs_sleep (guestfs_h *g,\n"
14611 "                int secs);\n"
14612 "\n"
14613 msgstr ""
14614
14615 # type: textblock
14616 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4013
14617 msgid "Sleep for C<secs> seconds."
14618 msgstr ""
14619
14620 # type: textblock
14621 #: ../src/guestfs-actions.pod:5997
14622 msgid "(Added in 1.0.41)"
14623 msgstr ""
14624
14625 # type: =head2
14626 #: ../src/guestfs-actions.pod:5999 ../src/guestfs-structs.pod:109
14627 msgid "guestfs_stat"
14628 msgstr ""
14629
14630 # type: verbatim
14631 #: ../src/guestfs-actions.pod:6001
14632 #, no-wrap
14633 msgid ""
14634 " struct guestfs_stat *\n"
14635 " guestfs_stat (guestfs_h *g,\n"
14636 "               const char *path);\n"
14637 "\n"
14638 msgstr ""
14639
14640 # type: textblock
14641 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4021
14642 msgid "This is the same as the C<stat(2)> system call."
14643 msgstr ""
14644
14645 # type: =head2
14646 #: ../src/guestfs-actions.pod:6015 ../src/guestfs-structs.pod:135
14647 msgid "guestfs_statvfs"
14648 msgstr ""
14649
14650 # type: verbatim
14651 #: ../src/guestfs-actions.pod:6017
14652 #, no-wrap
14653 msgid ""
14654 " struct guestfs_statvfs *\n"
14655 " guestfs_statvfs (guestfs_h *g,\n"
14656 "                  const char *path);\n"
14657 "\n"
14658 msgstr ""
14659
14660 # type: textblock
14661 #: ../src/guestfs-actions.pod:6021 ../fish/guestfish-actions.pod:4027
14662 msgid ""
14663 "Returns file system statistics for any mounted file system.  C<path> should "
14664 "be a file or directory in the mounted file system (typically it is the mount "
14665 "point itself, but it doesn't need to be)."
14666 msgstr ""
14667
14668 # type: textblock
14669 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4031
14670 msgid "This is the same as the C<statvfs(2)> system call."
14671 msgstr ""
14672
14673 # type: textblock
14674 #: ../src/guestfs-actions.pod:6027
14675 msgid ""
14676 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
14677 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
14678 msgstr ""
14679
14680 # type: =head2
14681 #: ../src/guestfs-actions.pod:6033
14682 msgid "guestfs_strings"
14683 msgstr ""
14684
14685 # type: verbatim
14686 #: ../src/guestfs-actions.pod:6035
14687 #, no-wrap
14688 msgid ""
14689 " char **\n"
14690 " guestfs_strings (guestfs_h *g,\n"
14691 "                  const char *path);\n"
14692 "\n"
14693 msgstr ""
14694
14695 # type: textblock
14696 #: ../src/guestfs-actions.pod:6039 ../fish/guestfish-actions.pod:4037
14697 msgid ""
14698 "This runs the L<strings(1)> command on a file and returns the list of "
14699 "printable strings found."
14700 msgstr ""
14701
14702 # type: =head2
14703 #: ../src/guestfs-actions.pod:6051
14704 msgid "guestfs_strings_e"
14705 msgstr ""
14706
14707 # type: verbatim
14708 #: ../src/guestfs-actions.pod:6053
14709 #, no-wrap
14710 msgid ""
14711 " char **\n"
14712 " guestfs_strings_e (guestfs_h *g,\n"
14713 "                    const char *encoding,\n"
14714 "                    const char *path);\n"
14715 "\n"
14716 msgstr ""
14717
14718 # type: textblock
14719 #: ../src/guestfs-actions.pod:6058
14720 msgid ""
14721 "This is like the C<guestfs_strings> command, but allows you to specify the "
14722 "encoding of strings that are looked for in the source file C<path>."
14723 msgstr ""
14724
14725 # type: textblock
14726 #: ../src/guestfs-actions.pod:6062 ../fish/guestfish-actions.pod:4051
14727 msgid "Allowed encodings are:"
14728 msgstr ""
14729
14730 # type: =item
14731 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4055
14732 msgid "s"
14733 msgstr ""
14734
14735 # type: textblock
14736 #: ../src/guestfs-actions.pod:6068
14737 msgid ""
14738 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14739 "ISO-8859-X (this is what C<guestfs_strings> uses)."
14740 msgstr ""
14741
14742 # type: =item
14743 #: ../src/guestfs-actions.pod:6071 ../fish/guestfish-actions.pod:4060
14744 msgid "S"
14745 msgstr ""
14746
14747 # type: textblock
14748 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4062
14749 msgid "Single 8-bit-byte characters."
14750 msgstr ""
14751
14752 # type: =item
14753 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4064
14754 msgid "b"
14755 msgstr ""
14756
14757 # type: textblock
14758 #: ../src/guestfs-actions.pod:6077 ../fish/guestfish-actions.pod:4066
14759 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14760 msgstr ""
14761
14762 # type: =item
14763 #: ../src/guestfs-actions.pod:6080 ../fish/guestfish-actions.pod:4069
14764 msgid "l (lower case letter L)"
14765 msgstr ""
14766
14767 # type: textblock
14768 #: ../src/guestfs-actions.pod:6082 ../fish/guestfish-actions.pod:4071
14769 msgid ""
14770 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14771 "examining binaries in Windows guests."
14772 msgstr ""
14773
14774 # type: =item
14775 #: ../src/guestfs-actions.pod:6085 ../fish/guestfish-actions.pod:4074
14776 msgid "B"
14777 msgstr ""
14778
14779 # type: textblock
14780 #: ../src/guestfs-actions.pod:6087 ../fish/guestfish-actions.pod:4076
14781 msgid "32-bit big endian such as UCS-4BE."
14782 msgstr ""
14783
14784 # type: =item
14785 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4078
14786 msgid "L"
14787 msgstr ""
14788
14789 # type: textblock
14790 #: ../src/guestfs-actions.pod:6091 ../fish/guestfish-actions.pod:4080
14791 msgid "32-bit little endian such as UCS-4LE."
14792 msgstr ""
14793
14794 # type: textblock
14795 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4084
14796 msgid "The returned strings are transcoded to UTF-8."
14797 msgstr ""
14798
14799 # type: =head2
14800 #: ../src/guestfs-actions.pod:6106
14801 msgid "guestfs_swapoff_device"
14802 msgstr ""
14803
14804 # type: verbatim
14805 #: ../src/guestfs-actions.pod:6108
14806 #, no-wrap
14807 msgid ""
14808 " int\n"
14809 " guestfs_swapoff_device (guestfs_h *g,\n"
14810 "                         const char *device);\n"
14811 "\n"
14812 msgstr ""
14813
14814 # type: textblock
14815 #: ../src/guestfs-actions.pod:6112
14816 msgid ""
14817 "This command disables the libguestfs appliance swap device or partition "
14818 "named C<device>.  See C<guestfs_swapon_device>."
14819 msgstr ""
14820
14821 # type: =head2
14822 #: ../src/guestfs-actions.pod:6120
14823 msgid "guestfs_swapoff_file"
14824 msgstr ""
14825
14826 # type: verbatim
14827 #: ../src/guestfs-actions.pod:6122
14828 #, no-wrap
14829 msgid ""
14830 " int\n"
14831 " guestfs_swapoff_file (guestfs_h *g,\n"
14832 "                       const char *file);\n"
14833 "\n"
14834 msgstr ""
14835
14836 # type: textblock
14837 #: ../src/guestfs-actions.pod:6126 ../fish/guestfish-actions.pod:4101
14838 msgid "This command disables the libguestfs appliance swap on file."
14839 msgstr ""
14840
14841 # type: =head2
14842 #: ../src/guestfs-actions.pod:6132
14843 msgid "guestfs_swapoff_label"
14844 msgstr ""
14845
14846 # type: verbatim
14847 #: ../src/guestfs-actions.pod:6134
14848 #, no-wrap
14849 msgid ""
14850 " int\n"
14851 " guestfs_swapoff_label (guestfs_h *g,\n"
14852 "                        const char *label);\n"
14853 "\n"
14854 msgstr ""
14855
14856 # type: textblock
14857 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4107
14858 msgid ""
14859 "This command disables the libguestfs appliance swap on labeled swap "
14860 "partition."
14861 msgstr ""
14862
14863 # type: =head2
14864 #: ../src/guestfs-actions.pod:6145
14865 msgid "guestfs_swapoff_uuid"
14866 msgstr ""
14867
14868 # type: verbatim
14869 #: ../src/guestfs-actions.pod:6147
14870 #, no-wrap
14871 msgid ""
14872 " int\n"
14873 " guestfs_swapoff_uuid (guestfs_h *g,\n"
14874 "                       const char *uuid);\n"
14875 "\n"
14876 msgstr ""
14877
14878 # type: textblock
14879 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4114
14880 msgid ""
14881 "This command disables the libguestfs appliance swap partition with the given "
14882 "UUID."
14883 msgstr ""
14884
14885 # type: =head2
14886 #: ../src/guestfs-actions.pod:6158
14887 msgid "guestfs_swapon_device"
14888 msgstr ""
14889
14890 # type: verbatim
14891 #: ../src/guestfs-actions.pod:6160
14892 #, no-wrap
14893 msgid ""
14894 " int\n"
14895 " guestfs_swapon_device (guestfs_h *g,\n"
14896 "                        const char *device);\n"
14897 "\n"
14898 msgstr ""
14899
14900 # type: textblock
14901 #: ../src/guestfs-actions.pod:6164
14902 msgid ""
14903 "This command enables the libguestfs appliance to use the swap device or "
14904 "partition named C<device>.  The increased memory is made available for all "
14905 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
14906 msgstr ""
14907
14908 # type: textblock
14909 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4126
14910 msgid ""
14911 "Note that you should not swap to existing guest swap partitions unless you "
14912 "know what you are doing.  They may contain hibernation information, or other "
14913 "information that the guest doesn't want you to trash.  You also risk leaking "
14914 "information about the host to the guest this way.  Instead, attach a new "
14915 "host device to the guest and swap on that."
14916 msgstr ""
14917
14918 # type: =head2
14919 #: ../src/guestfs-actions.pod:6180
14920 msgid "guestfs_swapon_file"
14921 msgstr ""
14922
14923 # type: verbatim
14924 #: ../src/guestfs-actions.pod:6182
14925 #, no-wrap
14926 msgid ""
14927 " int\n"
14928 " guestfs_swapon_file (guestfs_h *g,\n"
14929 "                      const char *file);\n"
14930 "\n"
14931 msgstr ""
14932
14933 # type: textblock
14934 #: ../src/guestfs-actions.pod:6186
14935 msgid ""
14936 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
14937 "notes."
14938 msgstr ""
14939
14940 # type: =head2
14941 #: ../src/guestfs-actions.pod:6193
14942 msgid "guestfs_swapon_label"
14943 msgstr ""
14944
14945 # type: verbatim
14946 #: ../src/guestfs-actions.pod:6195
14947 #, no-wrap
14948 msgid ""
14949 " int\n"
14950 " guestfs_swapon_label (guestfs_h *g,\n"
14951 "                       const char *label);\n"
14952 "\n"
14953 msgstr ""
14954
14955 # type: textblock
14956 #: ../src/guestfs-actions.pod:6199
14957 msgid ""
14958 "This command enables swap to a labeled swap partition.  See "
14959 "C<guestfs_swapon_device> for other notes."
14960 msgstr ""
14961
14962 # type: =head2
14963 #: ../src/guestfs-actions.pod:6206
14964 msgid "guestfs_swapon_uuid"
14965 msgstr ""
14966
14967 # type: verbatim
14968 #: ../src/guestfs-actions.pod:6208
14969 #, no-wrap
14970 msgid ""
14971 " int\n"
14972 " guestfs_swapon_uuid (guestfs_h *g,\n"
14973 "                      const char *uuid);\n"
14974 "\n"
14975 msgstr ""
14976
14977 # type: textblock
14978 #: ../src/guestfs-actions.pod:6212
14979 msgid ""
14980 "This command enables swap to a swap partition with the given UUID.  See "
14981 "C<guestfs_swapon_device> for other notes."
14982 msgstr ""
14983
14984 # type: =head2
14985 #: ../src/guestfs-actions.pod:6219
14986 msgid "guestfs_sync"
14987 msgstr ""
14988
14989 # type: verbatim
14990 #: ../src/guestfs-actions.pod:6221
14991 #, no-wrap
14992 msgid ""
14993 " int\n"
14994 " guestfs_sync (guestfs_h *g);\n"
14995 "\n"
14996 msgstr ""
14997
14998 # type: textblock
14999 #: ../src/guestfs-actions.pod:6224 ../fish/guestfish-actions.pod:4158
15000 msgid ""
15001 "This syncs the disk, so that any writes are flushed through to the "
15002 "underlying disk image."
15003 msgstr ""
15004
15005 # type: textblock
15006 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4161
15007 msgid ""
15008 "You should always call this if you have modified a disk image, before "
15009 "closing the handle."
15010 msgstr ""
15011
15012 # type: =head2
15013 #: ../src/guestfs-actions.pod:6234
15014 msgid "guestfs_tail"
15015 msgstr ""
15016
15017 # type: verbatim
15018 #: ../src/guestfs-actions.pod:6236
15019 #, no-wrap
15020 msgid ""
15021 " char **\n"
15022 " guestfs_tail (guestfs_h *g,\n"
15023 "               const char *path);\n"
15024 "\n"
15025 msgstr ""
15026
15027 # type: textblock
15028 #: ../src/guestfs-actions.pod:6240 ../fish/guestfish-actions.pod:4168
15029 msgid ""
15030 "This command returns up to the last 10 lines of a file as a list of strings."
15031 msgstr ""
15032
15033 # type: =head2
15034 #: ../src/guestfs-actions.pod:6252
15035 msgid "guestfs_tail_n"
15036 msgstr ""
15037
15038 # type: verbatim
15039 #: ../src/guestfs-actions.pod:6254
15040 #, no-wrap
15041 msgid ""
15042 " char **\n"
15043 " guestfs_tail_n (guestfs_h *g,\n"
15044 "                 int nrlines,\n"
15045 "                 const char *path);\n"
15046 "\n"
15047 msgstr ""
15048
15049 # type: textblock
15050 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4178
15051 msgid ""
15052 "If the parameter C<nrlines> is a positive number, this returns the last "
15053 "C<nrlines> lines of the file C<path>."
15054 msgstr ""
15055
15056 # type: textblock
15057 #: ../src/guestfs-actions.pod:6262 ../fish/guestfish-actions.pod:4181
15058 msgid ""
15059 "If the parameter C<nrlines> is a negative number, this returns lines from "
15060 "the file C<path>, starting with the C<-nrlines>th line."
15061 msgstr ""
15062
15063 # type: =head2
15064 #: ../src/guestfs-actions.pod:6276
15065 msgid "guestfs_tar_in"
15066 msgstr ""
15067
15068 # type: verbatim
15069 #: ../src/guestfs-actions.pod:6278
15070 #, no-wrap
15071 msgid ""
15072 " int\n"
15073 " guestfs_tar_in (guestfs_h *g,\n"
15074 "                 const char *tarfile,\n"
15075 "                 const char *directory);\n"
15076 "\n"
15077 msgstr ""
15078
15079 # type: textblock
15080 #: ../src/guestfs-actions.pod:6283 ../fish/guestfish-actions.pod:4193
15081 msgid ""
15082 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15083 "tar file) into C<directory>."
15084 msgstr ""
15085
15086 # type: textblock
15087 #: ../src/guestfs-actions.pod:6286
15088 msgid ""
15089 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
15090 msgstr ""
15091
15092 # type: textblock
15093 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6308
15094 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6340
15095 msgid "(Added in 1.0.3)"
15096 msgstr ""
15097
15098 # type: =head2
15099 #: ../src/guestfs-actions.pod:6293
15100 msgid "guestfs_tar_out"
15101 msgstr ""
15102
15103 # type: verbatim
15104 #: ../src/guestfs-actions.pod:6295
15105 #, no-wrap
15106 msgid ""
15107 " int\n"
15108 " guestfs_tar_out (guestfs_h *g,\n"
15109 "                  const char *directory,\n"
15110 "                  const char *tarfile);\n"
15111 "\n"
15112 msgstr ""
15113
15114 # type: textblock
15115 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4205
15116 msgid ""
15117 "This command packs the contents of C<directory> and downloads it to local "
15118 "file C<tarfile>."
15119 msgstr ""
15120
15121 # type: textblock
15122 #: ../src/guestfs-actions.pod:6303
15123 msgid ""
15124 "To download a compressed tarball, use C<guestfs_tgz_out> or "
15125 "C<guestfs_txz_out>."
15126 msgstr ""
15127
15128 # type: =head2
15129 #: ../src/guestfs-actions.pod:6310
15130 msgid "guestfs_tgz_in"
15131 msgstr ""
15132
15133 # type: verbatim
15134 #: ../src/guestfs-actions.pod:6312
15135 #, no-wrap
15136 msgid ""
15137 " int\n"
15138 " guestfs_tgz_in (guestfs_h *g,\n"
15139 "                 const char *tarball,\n"
15140 "                 const char *directory);\n"
15141 "\n"
15142 msgstr ""
15143
15144 # type: textblock
15145 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4217
15146 msgid ""
15147 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15148 "tar file) into C<directory>."
15149 msgstr ""
15150
15151 # type: textblock
15152 #: ../src/guestfs-actions.pod:6320
15153 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
15154 msgstr ""
15155
15156 # type: =head2
15157 #: ../src/guestfs-actions.pod:6326
15158 msgid "guestfs_tgz_out"
15159 msgstr ""
15160
15161 # type: verbatim
15162 #: ../src/guestfs-actions.pod:6328
15163 #, no-wrap
15164 msgid ""
15165 " int\n"
15166 " guestfs_tgz_out (guestfs_h *g,\n"
15167 "                  const char *directory,\n"
15168 "                  const char *tarball);\n"
15169 "\n"
15170 msgstr ""
15171
15172 # type: textblock
15173 #: ../src/guestfs-actions.pod:6333 ../fish/guestfish-actions.pod:4228
15174 msgid ""
15175 "This command packs the contents of C<directory> and downloads it to local "
15176 "file C<tarball>."
15177 msgstr ""
15178
15179 # type: textblock
15180 #: ../src/guestfs-actions.pod:6336
15181 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
15182 msgstr ""
15183
15184 # type: =head2
15185 #: ../src/guestfs-actions.pod:6342
15186 msgid "guestfs_touch"
15187 msgstr ""
15188
15189 # type: verbatim
15190 #: ../src/guestfs-actions.pod:6344
15191 #, no-wrap
15192 msgid ""
15193 " int\n"
15194 " guestfs_touch (guestfs_h *g,\n"
15195 "                const char *path);\n"
15196 "\n"
15197 msgstr ""
15198
15199 # type: textblock
15200 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4239
15201 msgid ""
15202 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15203 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15204 "length file."
15205 msgstr ""
15206
15207 # type: textblock
15208 #: ../src/guestfs-actions.pod:6352 ../fish/guestfish-actions.pod:4243
15209 msgid ""
15210 "This command only works on regular files, and will fail on other file types "
15211 "such as directories, symbolic links, block special etc."
15212 msgstr ""
15213
15214 # type: =head2
15215 #: ../src/guestfs-actions.pod:6359
15216 msgid "guestfs_truncate"
15217 msgstr ""
15218
15219 # type: verbatim
15220 #: ../src/guestfs-actions.pod:6361
15221 #, no-wrap
15222 msgid ""
15223 " int\n"
15224 " guestfs_truncate (guestfs_h *g,\n"
15225 "                   const char *path);\n"
15226 "\n"
15227 msgstr ""
15228
15229 # type: textblock
15230 #: ../src/guestfs-actions.pod:6365 ../fish/guestfish-actions.pod:4250
15231 msgid ""
15232 "This command truncates C<path> to a zero-length file.  The file must exist "
15233 "already."
15234 msgstr ""
15235
15236 # type: =head2
15237 #: ../src/guestfs-actions.pod:6372
15238 msgid "guestfs_truncate_size"
15239 msgstr ""
15240
15241 # type: verbatim
15242 #: ../src/guestfs-actions.pod:6374
15243 #, no-wrap
15244 msgid ""
15245 " int\n"
15246 " guestfs_truncate_size (guestfs_h *g,\n"
15247 "                        const char *path,\n"
15248 "                        int64_t size);\n"
15249 "\n"
15250 msgstr ""
15251
15252 # type: textblock
15253 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4257
15254 msgid ""
15255 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15256 "already."
15257 msgstr ""
15258
15259 # type: textblock
15260 #: ../src/guestfs-actions.pod:6382
15261 msgid ""
15262 "If the current file size is less than C<size> then the file is extended to "
15263 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15264 "blocks are not allocated for the file until you write to it).  To create a "
15265 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
15266 msgstr ""
15267
15268 # type: =head2
15269 #: ../src/guestfs-actions.pod:6392
15270 msgid "guestfs_tune2fs_l"
15271 msgstr ""
15272
15273 # type: verbatim
15274 #: ../src/guestfs-actions.pod:6394
15275 #, no-wrap
15276 msgid ""
15277 " char **\n"
15278 " guestfs_tune2fs_l (guestfs_h *g,\n"
15279 "                    const char *device);\n"
15280 "\n"
15281 msgstr ""
15282
15283 # type: textblock
15284 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4270
15285 msgid ""
15286 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15287 "C<device>."
15288 msgstr ""
15289
15290 # type: textblock
15291 #: ../src/guestfs-actions.pod:6401 ../fish/guestfish-actions.pod:4273
15292 msgid ""
15293 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15294 "for more details.  The list of fields returned isn't clearly defined, and "
15295 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15296 "and the filesystem itself."
15297 msgstr ""
15298
15299 # type: =head2
15300 #: ../src/guestfs-actions.pod:6414
15301 msgid "guestfs_txz_in"
15302 msgstr ""
15303
15304 # type: verbatim
15305 #: ../src/guestfs-actions.pod:6416
15306 #, no-wrap
15307 msgid ""
15308 " int\n"
15309 " guestfs_txz_in (guestfs_h *g,\n"
15310 "                 const char *tarball,\n"
15311 "                 const char *directory);\n"
15312 "\n"
15313 msgstr ""
15314
15315 # type: textblock
15316 #: ../src/guestfs-actions.pod:6421 ../fish/guestfish-actions.pod:4282
15317 msgid ""
15318 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15319 "tar file) into C<directory>."
15320 msgstr ""
15321
15322 # type: =head2
15323 #: ../src/guestfs-actions.pod:6428
15324 msgid "guestfs_txz_out"
15325 msgstr ""
15326
15327 # type: verbatim
15328 #: ../src/guestfs-actions.pod:6430
15329 #, no-wrap
15330 msgid ""
15331 " int\n"
15332 " guestfs_txz_out (guestfs_h *g,\n"
15333 "                  const char *directory,\n"
15334 "                  const char *tarball);\n"
15335 "\n"
15336 msgstr ""
15337
15338 # type: textblock
15339 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4291
15340 msgid ""
15341 "This command packs the contents of C<directory> and downloads it to local "
15342 "file C<tarball> (as an xz compressed tar archive)."
15343 msgstr ""
15344
15345 # type: =head2
15346 #: ../src/guestfs-actions.pod:6442
15347 msgid "guestfs_umask"
15348 msgstr ""
15349
15350 # type: verbatim
15351 #: ../src/guestfs-actions.pod:6444
15352 #, no-wrap
15353 msgid ""
15354 " int\n"
15355 " guestfs_umask (guestfs_h *g,\n"
15356 "                int mask);\n"
15357 "\n"
15358 msgstr ""
15359
15360 # type: textblock
15361 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4300
15362 msgid ""
15363 "This function sets the mask used for creating new files and device nodes to "
15364 "C<mask & 0777>."
15365 msgstr ""
15366
15367 # type: textblock
15368 #: ../src/guestfs-actions.pod:6451 ../fish/guestfish-actions.pod:4303
15369 msgid ""
15370 "Typical umask values would be C<022> which creates new files with "
15371 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15372 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15373 msgstr ""
15374
15375 # type: textblock
15376 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4308
15377 msgid ""
15378 "The default umask is C<022>.  This is important because it means that "
15379 "directories and device nodes will be created with C<0644> or C<0755> mode "
15380 "even if you specify C<0777>."
15381 msgstr ""
15382
15383 # type: textblock
15384 #: ../src/guestfs-actions.pod:6460
15385 msgid ""
15386 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
15387 "C<guestfs_mkdir>."
15388 msgstr ""
15389
15390 # type: textblock
15391 #: ../src/guestfs-actions.pod:6463 ../fish/guestfish-actions.pod:4315
15392 msgid "This call returns the previous umask."
15393 msgstr ""
15394
15395 # type: =head2
15396 #: ../src/guestfs-actions.pod:6469
15397 msgid "guestfs_umount"
15398 msgstr ""
15399
15400 # type: verbatim
15401 #: ../src/guestfs-actions.pod:6471
15402 #, no-wrap
15403 msgid ""
15404 " int\n"
15405 " guestfs_umount (guestfs_h *g,\n"
15406 "                 const char *pathordevice);\n"
15407 "\n"
15408 msgstr ""
15409
15410 # type: textblock
15411 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4323
15412 msgid ""
15413 "This unmounts the given filesystem.  The filesystem may be specified either "
15414 "by its mountpoint (path) or the device which contains the filesystem."
15415 msgstr ""
15416
15417 # type: =head2
15418 #: ../src/guestfs-actions.pod:6483
15419 msgid "guestfs_umount_all"
15420 msgstr ""
15421
15422 # type: verbatim
15423 #: ../src/guestfs-actions.pod:6485
15424 #, no-wrap
15425 msgid ""
15426 " int\n"
15427 " guestfs_umount_all (guestfs_h *g);\n"
15428 "\n"
15429 msgstr ""
15430
15431 # type: textblock
15432 #: ../src/guestfs-actions.pod:6488 ../fish/guestfish-actions.pod:4333
15433 msgid "This unmounts all mounted filesystems."
15434 msgstr ""
15435
15436 # type: textblock
15437 #: ../src/guestfs-actions.pod:6490 ../fish/guestfish-actions.pod:4335
15438 msgid "Some internal mounts are not unmounted by this call."
15439 msgstr ""
15440
15441 # type: =head2
15442 #: ../src/guestfs-actions.pod:6496
15443 msgid "guestfs_upload"
15444 msgstr ""
15445
15446 # type: verbatim
15447 #: ../src/guestfs-actions.pod:6498
15448 #, no-wrap
15449 msgid ""
15450 " int\n"
15451 " guestfs_upload (guestfs_h *g,\n"
15452 "                 const char *filename,\n"
15453 "                 const char *remotefilename);\n"
15454 "\n"
15455 msgstr ""
15456
15457 # type: textblock
15458 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6527
15459 #: ../fish/guestfish-actions.pod:4341 ../fish/guestfish-actions.pod:4354
15460 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15461 msgstr ""
15462
15463 # type: textblock
15464 #: ../src/guestfs-actions.pod:6508
15465 msgid "See also C<guestfs_download>."
15466 msgstr ""
15467
15468 # type: =head2
15469 #: ../src/guestfs-actions.pod:6519
15470 msgid "guestfs_upload_offset"
15471 msgstr ""
15472
15473 # type: verbatim
15474 #: ../src/guestfs-actions.pod:6521
15475 #, no-wrap
15476 msgid ""
15477 " int\n"
15478 " guestfs_upload_offset (guestfs_h *g,\n"
15479 "                        const char *filename,\n"
15480 "                        const char *remotefilename,\n"
15481 "                        int64_t offset);\n"
15482 "\n"
15483 msgstr ""
15484
15485 # type: textblock
15486 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4357
15487 msgid ""
15488 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15489 "The intention is to overwrite parts of existing files or devices, although "
15490 "if a non-existant file is specified then it is created with a \"hole\" "
15491 "before C<offset>.  The size of the data written is implicit in the size of "
15492 "the source C<filename>."
15493 msgstr ""
15494
15495 # type: textblock
15496 #: ../src/guestfs-actions.pod:6537
15497 msgid ""
15498 "Note that there is no limit on the amount of data that can be uploaded with "
15499 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
15500 "full amount unless an error occurs."
15501 msgstr ""
15502
15503 # type: textblock
15504 #: ../src/guestfs-actions.pod:6542
15505 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
15506 msgstr ""
15507
15508 # type: =head2
15509 #: ../src/guestfs-actions.pod:6553
15510 msgid "guestfs_utimens"
15511 msgstr ""
15512
15513 # type: verbatim
15514 #: ../src/guestfs-actions.pod:6555
15515 #, no-wrap
15516 msgid ""
15517 " int\n"
15518 " guestfs_utimens (guestfs_h *g,\n"
15519 "                  const char *path,\n"
15520 "                  int64_t atsecs,\n"
15521 "                  int64_t atnsecs,\n"
15522 "                  int64_t mtsecs,\n"
15523 "                  int64_t mtnsecs);\n"
15524 "\n"
15525 msgstr ""
15526
15527 # type: textblock
15528 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4377
15529 msgid "This command sets the timestamps of a file with nanosecond precision."
15530 msgstr ""
15531
15532 # type: textblock
15533 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4380
15534 msgid ""
15535 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15536 "from the epoch."
15537 msgstr ""
15538
15539 # type: textblock
15540 #: ../src/guestfs-actions.pod:6569 ../fish/guestfish-actions.pod:4383
15541 msgid ""
15542 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15543 "nanoseconds from the epoch."
15544 msgstr ""
15545
15546 # type: textblock
15547 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4386
15548 msgid ""
15549 "If the C<*nsecs> field contains the special value C<-1> then the "
15550 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15551 "ignored in this case)."
15552 msgstr ""
15553
15554 # type: textblock
15555 #: ../src/guestfs-actions.pod:6576 ../fish/guestfish-actions.pod:4390
15556 msgid ""
15557 "If the C<*nsecs> field contains the special value C<-2> then the "
15558 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15559 "in this case)."
15560 msgstr ""
15561
15562 # type: =head2
15563 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-structs.pod:175
15564 msgid "guestfs_version"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #: ../src/guestfs-actions.pod:6586
15569 #, no-wrap
15570 msgid ""
15571 " struct guestfs_version *\n"
15572 " guestfs_version (guestfs_h *g);\n"
15573 "\n"
15574 msgstr ""
15575
15576 # type: textblock
15577 #: ../src/guestfs-actions.pod:6589 ../fish/guestfish-actions.pod:4398
15578 msgid ""
15579 "Return the libguestfs version number that the program is linked against."
15580 msgstr ""
15581
15582 # type: textblock
15583 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4401
15584 msgid ""
15585 "Note that because of dynamic linking this is not necessarily the version of "
15586 "libguestfs that you compiled against.  You can compile the program, and then "
15587 "at runtime dynamically link against a completely different C<libguestfs.so> "
15588 "library."
15589 msgstr ""
15590
15591 # type: textblock
15592 #: ../src/guestfs-actions.pod:6597 ../fish/guestfish-actions.pod:4406
15593 msgid ""
15594 "This call was added in version C<1.0.58>.  In previous versions of "
15595 "libguestfs there was no way to get the version number.  From C code you can "
15596 "use dynamic linker functions to find out if this symbol exists (if it "
15597 "doesn't, then it's an earlier version)."
15598 msgstr ""
15599
15600 # type: textblock
15601 #: ../src/guestfs-actions.pod:6603 ../fish/guestfish-actions.pod:4412
15602 msgid ""
15603 "The call returns a structure with four elements.  The first three (C<major>, "
15604 "C<minor> and C<release>) are numbers and correspond to the usual version "
15605 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15606 "but may be used for distro-specific information."
15607 msgstr ""
15608
15609 # type: textblock
15610 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4418
15611 msgid ""
15612 "To construct the original version string: C<$major.$minor.$release$extra>"
15613 msgstr ""
15614
15615 # type: textblock
15616 #: ../src/guestfs-actions.pod:6612 ../fish/guestfish-actions.pod:4421
15617 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15618 msgstr ""
15619
15620 # type: textblock
15621 #: ../src/guestfs-actions.pod:6614
15622 msgid ""
15623 "I<Note:> Don't use this call to test for availability of features.  In "
15624 "enterprise distributions we backport features from later versions into "
15625 "earlier versions, making this an unreliable way to test for features.  Use "
15626 "C<guestfs_available> instead."
15627 msgstr ""
15628
15629 # type: textblock
15630 #: ../src/guestfs-actions.pod:6620
15631 msgid ""
15632 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
15633 "error.  I<The caller must call C<guestfs_free_version> after use>."
15634 msgstr ""
15635
15636 # type: textblock
15637 #: ../src/guestfs-actions.pod:6624
15638 msgid "(Added in 1.0.58)"
15639 msgstr ""
15640
15641 # type: =head2
15642 #: ../src/guestfs-actions.pod:6626
15643 msgid "guestfs_vfs_label"
15644 msgstr ""
15645
15646 # type: verbatim
15647 #: ../src/guestfs-actions.pod:6628
15648 #, no-wrap
15649 msgid ""
15650 " char *\n"
15651 " guestfs_vfs_label (guestfs_h *g,\n"
15652 "                    const char *device);\n"
15653 "\n"
15654 msgstr ""
15655
15656 # type: textblock
15657 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4433
15658 msgid "This returns the filesystem label of the filesystem on C<device>."
15659 msgstr ""
15660
15661 # type: textblock
15662 #: ../src/guestfs-actions.pod:6635 ../fish/guestfish-actions.pod:4436
15663 msgid "If the filesystem is unlabeled, this returns the empty string."
15664 msgstr ""
15665
15666 # type: textblock
15667 #: ../src/guestfs-actions.pod:6637
15668 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
15669 msgstr ""
15670
15671 # type: textblock
15672 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6679
15673 msgid "(Added in 1.3.18)"
15674 msgstr ""
15675
15676 # type: =head2
15677 #: ../src/guestfs-actions.pod:6644
15678 msgid "guestfs_vfs_type"
15679 msgstr ""
15680
15681 # type: verbatim
15682 #: ../src/guestfs-actions.pod:6646
15683 #, no-wrap
15684 msgid ""
15685 " char *\n"
15686 " guestfs_vfs_type (guestfs_h *g,\n"
15687 "                   const char *device);\n"
15688 "\n"
15689 msgstr ""
15690
15691 # type: textblock
15692 #: ../src/guestfs-actions.pod:6650 ../fish/guestfish-actions.pod:4444
15693 msgid ""
15694 "This command gets the filesystem type corresponding to the filesystem on "
15695 "C<device>."
15696 msgstr ""
15697
15698 # type: textblock
15699 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4447
15700 msgid ""
15701 "For most filesystems, the result is the name of the Linux VFS module which "
15702 "would be used to mount this filesystem if you mounted it without specifying "
15703 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15704 msgstr ""
15705
15706 # type: =head2
15707 #: ../src/guestfs-actions.pod:6663
15708 msgid "guestfs_vfs_uuid"
15709 msgstr ""
15710
15711 # type: verbatim
15712 #: ../src/guestfs-actions.pod:6665
15713 #, no-wrap
15714 msgid ""
15715 " char *\n"
15716 " guestfs_vfs_uuid (guestfs_h *g,\n"
15717 "                   const char *device);\n"
15718 "\n"
15719 msgstr ""
15720
15721 # type: textblock
15722 #: ../src/guestfs-actions.pod:6669 ../fish/guestfish-actions.pod:4456
15723 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15724 msgstr ""
15725
15726 # type: textblock
15727 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4459
15728 msgid "If the filesystem does not have a UUID, this returns the empty string."
15729 msgstr ""
15730
15731 # type: textblock
15732 #: ../src/guestfs-actions.pod:6674
15733 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
15734 msgstr ""
15735
15736 # type: =head2
15737 #: ../src/guestfs-actions.pod:6681
15738 msgid "guestfs_vg_activate"
15739 msgstr ""
15740
15741 # type: verbatim
15742 #: ../src/guestfs-actions.pod:6683
15743 #, no-wrap
15744 msgid ""
15745 " int\n"
15746 " guestfs_vg_activate (guestfs_h *g,\n"
15747 "                      int activate,\n"
15748 "                      char *const *volgroups);\n"
15749 "\n"
15750 msgstr ""
15751
15752 # type: textblock
15753 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4467
15754 msgid ""
15755 "This command activates or (if C<activate> is false) deactivates all logical "
15756 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
15757 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
15758 "deactivated, then those devices disappear."
15759 msgstr ""
15760
15761 # type: textblock
15762 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4473
15763 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15764 msgstr ""
15765
15766 # type: textblock
15767 #: ../src/guestfs-actions.pod:6696 ../fish/guestfish-actions.pod:4475
15768 msgid ""
15769 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15770 "activated or deactivated."
15771 msgstr ""
15772
15773 # type: =head2
15774 #: ../src/guestfs-actions.pod:6703
15775 msgid "guestfs_vg_activate_all"
15776 msgstr ""
15777
15778 # type: verbatim
15779 #: ../src/guestfs-actions.pod:6705
15780 #, no-wrap
15781 msgid ""
15782 " int\n"
15783 " guestfs_vg_activate_all (guestfs_h *g,\n"
15784 "                          int activate);\n"
15785 "\n"
15786 msgstr ""
15787
15788 # type: textblock
15789 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4482
15790 msgid ""
15791 "This command activates or (if C<activate> is false) deactivates all logical "
15792 "volumes in all volume groups.  If activated, then they are made known to the "
15793 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
15794 "those devices disappear."
15795 msgstr ""
15796
15797 # type: textblock
15798 #: ../src/guestfs-actions.pod:6715 ../fish/guestfish-actions.pod:4488
15799 msgid "This command is the same as running C<vgchange -a y|n>"
15800 msgstr ""
15801
15802 # type: =head2
15803 #: ../src/guestfs-actions.pod:6721
15804 msgid "guestfs_vgcreate"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #: ../src/guestfs-actions.pod:6723
15809 #, no-wrap
15810 msgid ""
15811 " int\n"
15812 " guestfs_vgcreate (guestfs_h *g,\n"
15813 "                   const char *volgroup,\n"
15814 "                   char *const *physvols);\n"
15815 "\n"
15816 msgstr ""
15817
15818 # type: textblock
15819 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4494
15820 msgid ""
15821 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15822 "of physical volumes C<physvols>."
15823 msgstr ""
15824
15825 # type: =head2
15826 #: ../src/guestfs-actions.pod:6735
15827 msgid "guestfs_vglvuuids"
15828 msgstr ""
15829
15830 # type: verbatim
15831 #: ../src/guestfs-actions.pod:6737
15832 #, no-wrap
15833 msgid ""
15834 " char **\n"
15835 " guestfs_vglvuuids (guestfs_h *g,\n"
15836 "                    const char *vgname);\n"
15837 "\n"
15838 msgstr ""
15839
15840 # type: textblock
15841 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4501
15842 msgid ""
15843 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15844 "volumes created in this volume group."
15845 msgstr ""
15846
15847 # type: textblock
15848 #: ../src/guestfs-actions.pod:6744
15849 msgid ""
15850 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
15851 "associate logical volumes and volume groups."
15852 msgstr ""
15853
15854 # type: textblock
15855 #: ../src/guestfs-actions.pod:6747
15856 msgid "See also C<guestfs_vgpvuuids>."
15857 msgstr ""
15858
15859 # type: =head2
15860 #: ../src/guestfs-actions.pod:6755
15861 msgid "guestfs_vgpvuuids"
15862 msgstr ""
15863
15864 # type: verbatim
15865 #: ../src/guestfs-actions.pod:6757
15866 #, no-wrap
15867 msgid ""
15868 " char **\n"
15869 " guestfs_vgpvuuids (guestfs_h *g,\n"
15870 "                    const char *vgname);\n"
15871 "\n"
15872 msgstr ""
15873
15874 # type: textblock
15875 #: ../src/guestfs-actions.pod:6761 ../fish/guestfish-actions.pod:4513
15876 msgid ""
15877 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15878 "volumes that this volume group resides on."
15879 msgstr ""
15880
15881 # type: textblock
15882 #: ../src/guestfs-actions.pod:6764
15883 msgid ""
15884 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
15885 "associate physical volumes and volume groups."
15886 msgstr ""
15887
15888 # type: textblock
15889 #: ../src/guestfs-actions.pod:6767
15890 msgid "See also C<guestfs_vglvuuids>."
15891 msgstr ""
15892
15893 # type: =head2
15894 #: ../src/guestfs-actions.pod:6775
15895 msgid "guestfs_vgremove"
15896 msgstr ""
15897
15898 # type: verbatim
15899 #: ../src/guestfs-actions.pod:6777
15900 #, no-wrap
15901 msgid ""
15902 " int\n"
15903 " guestfs_vgremove (guestfs_h *g,\n"
15904 "                   const char *vgname);\n"
15905 "\n"
15906 msgstr ""
15907
15908 # type: textblock
15909 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4525
15910 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15911 msgstr ""
15912
15913 # type: textblock
15914 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4527
15915 msgid ""
15916 "This also forcibly removes all logical volumes in the volume group (if any)."
15917 msgstr ""
15918
15919 # type: =head2
15920 #: ../src/guestfs-actions.pod:6790
15921 msgid "guestfs_vgrename"
15922 msgstr ""
15923
15924 # type: verbatim
15925 #: ../src/guestfs-actions.pod:6792
15926 #, no-wrap
15927 msgid ""
15928 " int\n"
15929 " guestfs_vgrename (guestfs_h *g,\n"
15930 "                   const char *volgroup,\n"
15931 "                   const char *newvolgroup);\n"
15932 "\n"
15933 msgstr ""
15934
15935 # type: textblock
15936 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4534
15937 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15938 msgstr ""
15939
15940 # type: =head2
15941 #: ../src/guestfs-actions.pod:6803
15942 msgid "guestfs_vgs"
15943 msgstr ""
15944
15945 # type: verbatim
15946 #: ../src/guestfs-actions.pod:6805
15947 #, no-wrap
15948 msgid ""
15949 " char **\n"
15950 " guestfs_vgs (guestfs_h *g);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: textblock
15955 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4540
15956 msgid ""
15957 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15958 "> command."
15959 msgstr ""
15960
15961 # type: textblock
15962 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4543
15963 msgid ""
15964 "This returns a list of just the volume group names that were detected (eg. "
15965 "C<VolGroup00>)."
15966 msgstr ""
15967
15968 # type: textblock
15969 #: ../src/guestfs-actions.pod:6814
15970 msgid "See also C<guestfs_vgs_full>."
15971 msgstr ""
15972
15973 # type: =head2
15974 #: ../src/guestfs-actions.pod:6822
15975 msgid "guestfs_vgs_full"
15976 msgstr ""
15977
15978 # type: verbatim
15979 #: ../src/guestfs-actions.pod:6824
15980 #, no-wrap
15981 msgid ""
15982 " struct guestfs_lvm_vg_list *\n"
15983 " guestfs_vgs_full (guestfs_h *g);\n"
15984 "\n"
15985 msgstr ""
15986
15987 # type: textblock
15988 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4552
15989 msgid ""
15990 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15991 "> command.  The \"full\" version includes all fields."
15992 msgstr ""
15993
15994 # type: textblock
15995 #: ../src/guestfs-actions.pod:6830
15996 msgid ""
15997 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
15998 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
15999 msgstr ""
16000
16001 # type: =head2
16002 #: ../src/guestfs-actions.pod:6836
16003 msgid "guestfs_vgscan"
16004 msgstr ""
16005
16006 # type: verbatim
16007 #: ../src/guestfs-actions.pod:6838
16008 #, no-wrap
16009 msgid ""
16010 " int\n"
16011 " guestfs_vgscan (guestfs_h *g);\n"
16012 "\n"
16013 msgstr ""
16014
16015 # type: textblock
16016 #: ../src/guestfs-actions.pod:6841 ../fish/guestfish-actions.pod:4559
16017 msgid ""
16018 "This rescans all block devices and rebuilds the list of LVM physical "
16019 "volumes, volume groups and logical volumes."
16020 msgstr ""
16021
16022 # type: =head2
16023 #: ../src/guestfs-actions.pod:6848
16024 msgid "guestfs_vguuid"
16025 msgstr ""
16026
16027 # type: verbatim
16028 #: ../src/guestfs-actions.pod:6850
16029 #, no-wrap
16030 msgid ""
16031 " char *\n"
16032 " guestfs_vguuid (guestfs_h *g,\n"
16033 "                 const char *vgname);\n"
16034 "\n"
16035 msgstr ""
16036
16037 # type: textblock
16038 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4566
16039 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16040 msgstr ""
16041
16042 # type: =head2
16043 #: ../src/guestfs-actions.pod:6861
16044 msgid "guestfs_wait_ready"
16045 msgstr ""
16046
16047 # type: verbatim
16048 #: ../src/guestfs-actions.pod:6863
16049 #, no-wrap
16050 msgid ""
16051 " int\n"
16052 " guestfs_wait_ready (guestfs_h *g);\n"
16053 "\n"
16054 msgstr ""
16055
16056 # type: textblock
16057 #: ../src/guestfs-actions.pod:6866
16058 msgid "This function is a no op."
16059 msgstr ""
16060
16061 # type: textblock
16062 #: ../src/guestfs-actions.pod:6868
16063 msgid ""
16064 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
16065 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
16066 "is no longer necessary because C<guestfs_launch> now does the waiting."
16067 msgstr ""
16068
16069 # type: textblock
16070 #: ../src/guestfs-actions.pod:6873
16071 msgid ""
16072 "If you see any calls to this function in code then you can just remove them, "
16073 "unless you want to retain compatibility with older versions of the API."
16074 msgstr ""
16075
16076 # type: =head2
16077 #: ../src/guestfs-actions.pod:6881
16078 msgid "guestfs_wc_c"
16079 msgstr ""
16080
16081 # type: verbatim
16082 #: ../src/guestfs-actions.pod:6883
16083 #, no-wrap
16084 msgid ""
16085 " int\n"
16086 " guestfs_wc_c (guestfs_h *g,\n"
16087 "               const char *path);\n"
16088 "\n"
16089 msgstr ""
16090
16091 # type: textblock
16092 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4572
16093 msgid ""
16094 "This command counts the characters in a file, using the C<wc -c> external "
16095 "command."
16096 msgstr ""
16097
16098 # type: =head2
16099 #: ../src/guestfs-actions.pod:6894
16100 msgid "guestfs_wc_l"
16101 msgstr ""
16102
16103 # type: verbatim
16104 #: ../src/guestfs-actions.pod:6896
16105 #, no-wrap
16106 msgid ""
16107 " int\n"
16108 " guestfs_wc_l (guestfs_h *g,\n"
16109 "               const char *path);\n"
16110 "\n"
16111 msgstr ""
16112
16113 # type: textblock
16114 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4579
16115 msgid ""
16116 "This command counts the lines in a file, using the C<wc -l> external command."
16117 msgstr ""
16118
16119 # type: =head2
16120 #: ../src/guestfs-actions.pod:6907
16121 msgid "guestfs_wc_w"
16122 msgstr ""
16123
16124 # type: verbatim
16125 #: ../src/guestfs-actions.pod:6909
16126 #, no-wrap
16127 msgid ""
16128 " int\n"
16129 " guestfs_wc_w (guestfs_h *g,\n"
16130 "               const char *path);\n"
16131 "\n"
16132 msgstr ""
16133
16134 # type: textblock
16135 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4586
16136 msgid ""
16137 "This command counts the words in a file, using the C<wc -w> external command."
16138 msgstr ""
16139
16140 # type: =head2
16141 #: ../src/guestfs-actions.pod:6920
16142 msgid "guestfs_write"
16143 msgstr ""
16144
16145 # type: verbatim
16146 #: ../src/guestfs-actions.pod:6922
16147 #, no-wrap
16148 msgid ""
16149 " int\n"
16150 " guestfs_write (guestfs_h *g,\n"
16151 "                const char *path,\n"
16152 "                const char *content,\n"
16153 "                size_t content_size);\n"
16154 "\n"
16155 msgstr ""
16156
16157 # type: textblock
16158 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4593
16159 msgid ""
16160 "This call creates a file called C<path>.  The content of the file is the "
16161 "string C<content> (which can contain any 8 bit data)."
16162 msgstr ""
16163
16164 # type: =head2
16165 #: ../src/guestfs-actions.pod:6938
16166 msgid "guestfs_write_file"
16167 msgstr ""
16168
16169 # type: verbatim
16170 #: ../src/guestfs-actions.pod:6940
16171 #, no-wrap
16172 msgid ""
16173 " int\n"
16174 " guestfs_write_file (guestfs_h *g,\n"
16175 "                     const char *path,\n"
16176 "                     const char *content,\n"
16177 "                     int size);\n"
16178 "\n"
16179 msgstr ""
16180
16181 # type: textblock
16182 #: ../src/guestfs-actions.pod:6946 ../fish/guestfish-actions.pod:4603
16183 msgid ""
16184 "This call creates a file called C<path>.  The contents of the file is the "
16185 "string C<content> (which can contain any 8 bit data), with length C<size>."
16186 msgstr ""
16187
16188 # type: textblock
16189 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4607
16190 msgid ""
16191 "As a special case, if C<size> is C<0> then the length is calculated using "
16192 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16193 msgstr ""
16194
16195 # type: textblock
16196 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4611
16197 msgid ""
16198 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16199 "I<not> work, even if the length is specified."
16200 msgstr ""
16201
16202 # type: textblock
16203 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4617
16204 msgid ""
16205 "This function is deprecated.  In new code, use the C<write> call instead."
16206 msgstr ""
16207
16208 # type: =head2
16209 #: ../src/guestfs-actions.pod:6971
16210 msgid "guestfs_zegrep"
16211 msgstr ""
16212
16213 # type: verbatim
16214 #: ../src/guestfs-actions.pod:6973
16215 #, no-wrap
16216 msgid ""
16217 " char **\n"
16218 " guestfs_zegrep (guestfs_h *g,\n"
16219 "                 const char *regex,\n"
16220 "                 const char *path);\n"
16221 "\n"
16222 msgstr ""
16223
16224 # type: textblock
16225 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4628
16226 msgid ""
16227 "This calls the external C<zegrep> program and returns the matching lines."
16228 msgstr ""
16229
16230 # type: =head2
16231 #: ../src/guestfs-actions.pod:6990
16232 msgid "guestfs_zegrepi"
16233 msgstr ""
16234
16235 # type: verbatim
16236 #: ../src/guestfs-actions.pod:6992
16237 #, no-wrap
16238 msgid ""
16239 " char **\n"
16240 " guestfs_zegrepi (guestfs_h *g,\n"
16241 "                  const char *regex,\n"
16242 "                  const char *path);\n"
16243 "\n"
16244 msgstr ""
16245
16246 # type: textblock
16247 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4638
16248 msgid ""
16249 "This calls the external C<zegrep -i> program and returns the matching lines."
16250 msgstr ""
16251
16252 # type: =head2
16253 #: ../src/guestfs-actions.pod:7009
16254 msgid "guestfs_zero"
16255 msgstr ""
16256
16257 # type: verbatim
16258 #: ../src/guestfs-actions.pod:7011
16259 #, no-wrap
16260 msgid ""
16261 " int\n"
16262 " guestfs_zero (guestfs_h *g,\n"
16263 "               const char *device);\n"
16264 "\n"
16265 msgstr ""
16266
16267 # type: textblock
16268 #: ../src/guestfs-actions.pod:7015 ../fish/guestfish-actions.pod:4648
16269 msgid "This command writes zeroes over the first few blocks of C<device>."
16270 msgstr ""
16271
16272 # type: textblock
16273 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4650
16274 msgid ""
16275 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16276 "securely wipe the device).  It should be sufficient to remove any partition "
16277 "tables, filesystem superblocks and so on."
16278 msgstr ""
16279
16280 # type: textblock
16281 #: ../src/guestfs-actions.pod:7021
16282 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
16283 msgstr ""
16284
16285 # type: =head2
16286 #: ../src/guestfs-actions.pod:7032
16287 msgid "guestfs_zero_device"
16288 msgstr ""
16289
16290 # type: verbatim
16291 #: ../src/guestfs-actions.pod:7034
16292 #, no-wrap
16293 msgid ""
16294 " int\n"
16295 " guestfs_zero_device (guestfs_h *g,\n"
16296 "                      const char *device);\n"
16297 "\n"
16298 msgstr ""
16299
16300 # type: textblock
16301 #: ../src/guestfs-actions.pod:7038
16302 msgid ""
16303 "This command writes zeroes over the entire C<device>.  Compare with "
16304 "C<guestfs_zero> which just zeroes the first few blocks of a device."
16305 msgstr ""
16306
16307 # type: textblock
16308 #: ../src/guestfs-actions.pod:7052
16309 msgid "(Added in 1.3.1)"
16310 msgstr ""
16311
16312 # type: =head2
16313 #: ../src/guestfs-actions.pod:7054
16314 msgid "guestfs_zerofree"
16315 msgstr ""
16316
16317 # type: verbatim
16318 #: ../src/guestfs-actions.pod:7056
16319 #, no-wrap
16320 msgid ""
16321 " int\n"
16322 " guestfs_zerofree (guestfs_h *g,\n"
16323 "                   const char *device);\n"
16324 "\n"
16325 msgstr ""
16326
16327 # type: textblock
16328 #: ../src/guestfs-actions.pod:7060 ../fish/guestfish-actions.pod:4671
16329 msgid ""
16330 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16331 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16332 "possible to compress the filesystem more effectively."
16333 msgstr ""
16334
16335 # type: textblock
16336 #: ../src/guestfs-actions.pod:7065 ../fish/guestfish-actions.pod:4676
16337 msgid "You should B<not> run this program if the filesystem is mounted."
16338 msgstr ""
16339
16340 # type: textblock
16341 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4679
16342 msgid ""
16343 "It is possible that using this program can damage the filesystem or data on "
16344 "the filesystem."
16345 msgstr ""
16346
16347 # type: =head2
16348 #: ../src/guestfs-actions.pod:7075
16349 msgid "guestfs_zfgrep"
16350 msgstr ""
16351
16352 # type: verbatim
16353 #: ../src/guestfs-actions.pod:7077
16354 #, no-wrap
16355 msgid ""
16356 " char **\n"
16357 " guestfs_zfgrep (guestfs_h *g,\n"
16358 "                 const char *pattern,\n"
16359 "                 const char *path);\n"
16360 "\n"
16361 msgstr ""
16362
16363 # type: textblock
16364 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4686
16365 msgid ""
16366 "This calls the external C<zfgrep> program and returns the matching lines."
16367 msgstr ""
16368
16369 # type: =head2
16370 #: ../src/guestfs-actions.pod:7094
16371 msgid "guestfs_zfgrepi"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #: ../src/guestfs-actions.pod:7096
16376 #, no-wrap
16377 msgid ""
16378 " char **\n"
16379 " guestfs_zfgrepi (guestfs_h *g,\n"
16380 "                  const char *pattern,\n"
16381 "                  const char *path);\n"
16382 "\n"
16383 msgstr ""
16384
16385 # type: textblock
16386 #: ../src/guestfs-actions.pod:7101 ../fish/guestfish-actions.pod:4696
16387 msgid ""
16388 "This calls the external C<zfgrep -i> program and returns the matching lines."
16389 msgstr ""
16390
16391 # type: =head2
16392 #: ../src/guestfs-actions.pod:7113
16393 msgid "guestfs_zfile"
16394 msgstr ""
16395
16396 # type: verbatim
16397 #: ../src/guestfs-actions.pod:7115
16398 #, no-wrap
16399 msgid ""
16400 " char *\n"
16401 " guestfs_zfile (guestfs_h *g,\n"
16402 "                const char *meth,\n"
16403 "                const char *path);\n"
16404 "\n"
16405 msgstr ""
16406
16407 # type: textblock
16408 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4706
16409 msgid ""
16410 "This command runs C<file> after first decompressing C<path> using C<method>."
16411 msgstr ""
16412
16413 # type: textblock
16414 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4709
16415 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16416 msgstr ""
16417
16418 # type: textblock
16419 #: ../src/guestfs-actions.pod:7125
16420 msgid ""
16421 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
16422 "files."
16423 msgstr ""
16424
16425 # type: textblock
16426 #: ../src/guestfs-actions.pod:7131 ../fish/guestfish-actions.pod:4714
16427 msgid ""
16428 "This function is deprecated.  In new code, use the C<file> call instead."
16429 msgstr ""
16430
16431 # type: =head2
16432 #: ../src/guestfs-actions.pod:7140
16433 msgid "guestfs_zgrep"
16434 msgstr ""
16435
16436 # type: verbatim
16437 #: ../src/guestfs-actions.pod:7142
16438 #, no-wrap
16439 msgid ""
16440 " char **\n"
16441 " guestfs_zgrep (guestfs_h *g,\n"
16442 "                const char *regex,\n"
16443 "                const char *path);\n"
16444 "\n"
16445 msgstr ""
16446
16447 # type: textblock
16448 #: ../src/guestfs-actions.pod:7147 ../fish/guestfish-actions.pod:4725
16449 msgid ""
16450 "This calls the external C<zgrep> program and returns the matching lines."
16451 msgstr ""
16452
16453 # type: =head2
16454 #: ../src/guestfs-actions.pod:7159
16455 msgid "guestfs_zgrepi"
16456 msgstr ""
16457
16458 # type: verbatim
16459 #: ../src/guestfs-actions.pod:7161
16460 #, no-wrap
16461 msgid ""
16462 " char **\n"
16463 " guestfs_zgrepi (guestfs_h *g,\n"
16464 "                 const char *regex,\n"
16465 "                 const char *path);\n"
16466 "\n"
16467 msgstr ""
16468
16469 # type: textblock
16470 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4735
16471 msgid ""
16472 "This calls the external C<zgrep -i> program and returns the matching lines."
16473 msgstr ""
16474
16475 # type: =item
16476 #: ../src/guestfs-availability.pod:3
16477 msgid "B<augeas>"
16478 msgstr ""
16479
16480 # type: textblock
16481 #: ../src/guestfs-availability.pod:5
16482 msgid ""
16483 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
16484 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
16485 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
16486 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
16487 "L</guestfs_aug_save> L</guestfs_aug_set>"
16488 msgstr ""
16489
16490 # type: =item
16491 #: ../src/guestfs-availability.pod:21
16492 msgid "B<inotify>"
16493 msgstr ""
16494
16495 # type: textblock
16496 #: ../src/guestfs-availability.pod:23
16497 msgid ""
16498 "The following functions: L</guestfs_inotify_add_watch> L</"
16499 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
16500 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
16501 msgstr ""
16502
16503 # type: =item
16504 #: ../src/guestfs-availability.pod:31
16505 msgid "B<linuxfsuuid>"
16506 msgstr ""
16507
16508 # type: textblock
16509 #: ../src/guestfs-availability.pod:33
16510 msgid ""
16511 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
16512 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
16513 msgstr ""
16514
16515 # type: =item
16516 #: ../src/guestfs-availability.pod:40
16517 msgid "B<linuxmodules>"
16518 msgstr ""
16519
16520 # type: textblock
16521 #: ../src/guestfs-availability.pod:42
16522 msgid "The following functions: L</guestfs_modprobe>"
16523 msgstr ""
16524
16525 # type: =item
16526 #: ../src/guestfs-availability.pod:45
16527 msgid "B<linuxxattrs>"
16528 msgstr ""
16529
16530 # type: textblock
16531 #: ../src/guestfs-availability.pod:47
16532 msgid ""
16533 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
16534 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
16535 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
16536 "guestfs_setxattr>"
16537 msgstr ""
16538
16539 # type: =item
16540 #: ../src/guestfs-availability.pod:58
16541 msgid "B<luks>"
16542 msgstr ""
16543
16544 # type: textblock
16545 #: ../src/guestfs-availability.pod:60
16546 msgid ""
16547 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
16548 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
16549 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
16550 msgstr ""
16551
16552 # type: =item
16553 #: ../src/guestfs-availability.pod:69
16554 msgid "B<lvm2>"
16555 msgstr ""
16556
16557 # type: textblock
16558 #: ../src/guestfs-availability.pod:71
16559 msgid ""
16560 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
16561 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
16562 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
16563 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
16564 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
16565 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
16566 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
16567 msgstr ""
16568
16569 # type: =item
16570 #: ../src/guestfs-availability.pod:94
16571 msgid "B<mknod>"
16572 msgstr ""
16573
16574 # type: textblock
16575 #: ../src/guestfs-availability.pod:96
16576 msgid ""
16577 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
16578 "guestfs_mknod_b> L</guestfs_mknod_c>"
16579 msgstr ""
16580
16581 # type: =item
16582 #: ../src/guestfs-availability.pod:102
16583 msgid "B<ntfs3g>"
16584 msgstr ""
16585
16586 # type: textblock
16587 #: ../src/guestfs-availability.pod:104
16588 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
16589 msgstr ""
16590
16591 # type: =item
16592 #: ../src/guestfs-availability.pod:107
16593 msgid "B<ntfsprogs>"
16594 msgstr ""
16595
16596 # type: textblock
16597 #: ../src/guestfs-availability.pod:109
16598 msgid ""
16599 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
16600 msgstr ""
16601
16602 # type: =item
16603 #: ../src/guestfs-availability.pod:113
16604 msgid "B<realpath>"
16605 msgstr ""
16606
16607 # type: textblock
16608 #: ../src/guestfs-availability.pod:115
16609 msgid "The following functions: L</guestfs_realpath>"
16610 msgstr ""
16611
16612 # type: =item
16613 #: ../src/guestfs-availability.pod:118
16614 msgid "B<scrub>"
16615 msgstr ""
16616
16617 # type: textblock
16618 #: ../src/guestfs-availability.pod:120
16619 msgid ""
16620 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
16621 "guestfs_scrub_freespace>"
16622 msgstr ""
16623
16624 # type: =item
16625 #: ../src/guestfs-availability.pod:125
16626 msgid "B<selinux>"
16627 msgstr ""
16628
16629 # type: textblock
16630 #: ../src/guestfs-availability.pod:127
16631 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
16632 msgstr ""
16633
16634 # type: =item
16635 #: ../src/guestfs-availability.pod:131
16636 msgid "B<xz>"
16637 msgstr ""
16638
16639 # type: textblock
16640 #: ../src/guestfs-availability.pod:133
16641 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
16642 msgstr ""
16643
16644 # type: =item
16645 #: ../src/guestfs-availability.pod:137
16646 msgid "B<zerofree>"
16647 msgstr ""
16648
16649 # type: textblock
16650 #: ../src/guestfs-availability.pod:139
16651 msgid "The following functions: L</guestfs_zerofree>"
16652 msgstr ""
16653
16654 # type: =head2
16655 #: ../src/guestfs-structs.pod:1
16656 msgid "guestfs_int_bool"
16657 msgstr ""
16658
16659 # type: verbatim
16660 #: ../src/guestfs-structs.pod:3
16661 #, no-wrap
16662 msgid ""
16663 " struct guestfs_int_bool {\n"
16664 "   int32_t i;\n"
16665 "   int32_t b;\n"
16666 " };\n"
16667 " \n"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #: ../src/guestfs-structs.pod:8
16672 #, no-wrap
16673 msgid ""
16674 " struct guestfs_int_bool_list {\n"
16675 "   uint32_t len; /* Number of elements in list. */\n"
16676 "   struct guestfs_int_bool *val; /* Elements. */\n"
16677 " };\n"
16678 " \n"
16679 msgstr ""
16680
16681 # type: verbatim
16682 #: ../src/guestfs-structs.pod:13
16683 #, no-wrap
16684 msgid ""
16685 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
16686 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
16687 "\n"
16688 msgstr ""
16689
16690 # type: =head2
16691 #: ../src/guestfs-structs.pod:16
16692 msgid "guestfs_lvm_pv"
16693 msgstr ""
16694
16695 # type: verbatim
16696 #: ../src/guestfs-structs.pod:18
16697 #, no-wrap
16698 msgid ""
16699 " struct guestfs_lvm_pv {\n"
16700 "   char *pv_name;\n"
16701 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16702 "   char pv_uuid[32];\n"
16703 "   char *pv_fmt;\n"
16704 "   uint64_t pv_size;\n"
16705 "   uint64_t dev_size;\n"
16706 "   uint64_t pv_free;\n"
16707 "   uint64_t pv_used;\n"
16708 "   char *pv_attr;\n"
16709 "   int64_t pv_pe_count;\n"
16710 "   int64_t pv_pe_alloc_count;\n"
16711 "   char *pv_tags;\n"
16712 "   uint64_t pe_start;\n"
16713 "   int64_t pv_mda_count;\n"
16714 "   uint64_t pv_mda_free;\n"
16715 " };\n"
16716 " \n"
16717 msgstr ""
16718
16719 # type: verbatim
16720 #: ../src/guestfs-structs.pod:36
16721 #, no-wrap
16722 msgid ""
16723 " struct guestfs_lvm_pv_list {\n"
16724 "   uint32_t len; /* Number of elements in list. */\n"
16725 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
16726 " };\n"
16727 " \n"
16728 msgstr ""
16729
16730 # type: verbatim
16731 #: ../src/guestfs-structs.pod:41
16732 #, no-wrap
16733 msgid ""
16734 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
16735 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
16736 "\n"
16737 msgstr ""
16738
16739 # type: =head2
16740 #: ../src/guestfs-structs.pod:44
16741 msgid "guestfs_lvm_vg"
16742 msgstr ""
16743
16744 # type: verbatim
16745 #: ../src/guestfs-structs.pod:46
16746 #, no-wrap
16747 msgid ""
16748 " struct guestfs_lvm_vg {\n"
16749 "   char *vg_name;\n"
16750 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16751 "   char vg_uuid[32];\n"
16752 "   char *vg_fmt;\n"
16753 "   char *vg_attr;\n"
16754 "   uint64_t vg_size;\n"
16755 "   uint64_t vg_free;\n"
16756 "   char *vg_sysid;\n"
16757 "   uint64_t vg_extent_size;\n"
16758 "   int64_t vg_extent_count;\n"
16759 "   int64_t vg_free_count;\n"
16760 "   int64_t max_lv;\n"
16761 "   int64_t max_pv;\n"
16762 "   int64_t pv_count;\n"
16763 "   int64_t lv_count;\n"
16764 "   int64_t snap_count;\n"
16765 "   int64_t vg_seqno;\n"
16766 "   char *vg_tags;\n"
16767 "   int64_t vg_mda_count;\n"
16768 "   uint64_t vg_mda_free;\n"
16769 " };\n"
16770 " \n"
16771 msgstr ""
16772
16773 # type: verbatim
16774 #: ../src/guestfs-structs.pod:69
16775 #, no-wrap
16776 msgid ""
16777 " struct guestfs_lvm_vg_list {\n"
16778 "   uint32_t len; /* Number of elements in list. */\n"
16779 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
16780 " };\n"
16781 " \n"
16782 msgstr ""
16783
16784 # type: verbatim
16785 #: ../src/guestfs-structs.pod:74
16786 #, no-wrap
16787 msgid ""
16788 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
16789 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
16790 "\n"
16791 msgstr ""
16792
16793 # type: =head2
16794 #: ../src/guestfs-structs.pod:77
16795 msgid "guestfs_lvm_lv"
16796 msgstr ""
16797
16798 # type: verbatim
16799 #: ../src/guestfs-structs.pod:79
16800 #, no-wrap
16801 msgid ""
16802 " struct guestfs_lvm_lv {\n"
16803 "   char *lv_name;\n"
16804 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
16805 "   char lv_uuid[32];\n"
16806 "   char *lv_attr;\n"
16807 "   int64_t lv_major;\n"
16808 "   int64_t lv_minor;\n"
16809 "   int64_t lv_kernel_major;\n"
16810 "   int64_t lv_kernel_minor;\n"
16811 "   uint64_t lv_size;\n"
16812 "   int64_t seg_count;\n"
16813 "   char *origin;\n"
16814 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16815 "   float snap_percent;\n"
16816 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
16817 "   float copy_percent;\n"
16818 "   char *move_pv;\n"
16819 "   char *lv_tags;\n"
16820 "   char *mirror_log;\n"
16821 "   char *modules;\n"
16822 " };\n"
16823 " \n"
16824 msgstr ""
16825
16826 # type: verbatim
16827 #: ../src/guestfs-structs.pod:101
16828 #, no-wrap
16829 msgid ""
16830 " struct guestfs_lvm_lv_list {\n"
16831 "   uint32_t len; /* Number of elements in list. */\n"
16832 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
16833 " };\n"
16834 " \n"
16835 msgstr ""
16836
16837 # type: verbatim
16838 #: ../src/guestfs-structs.pod:106
16839 #, no-wrap
16840 msgid ""
16841 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
16842 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
16843 "\n"
16844 msgstr ""
16845
16846 # type: verbatim
16847 #: ../src/guestfs-structs.pod:111
16848 #, no-wrap
16849 msgid ""
16850 " struct guestfs_stat {\n"
16851 "   int64_t dev;\n"
16852 "   int64_t ino;\n"
16853 "   int64_t mode;\n"
16854 "   int64_t nlink;\n"
16855 "   int64_t uid;\n"
16856 "   int64_t gid;\n"
16857 "   int64_t rdev;\n"
16858 "   int64_t size;\n"
16859 "   int64_t blksize;\n"
16860 "   int64_t blocks;\n"
16861 "   int64_t atime;\n"
16862 "   int64_t mtime;\n"
16863 "   int64_t ctime;\n"
16864 " };\n"
16865 " \n"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #: ../src/guestfs-structs.pod:127
16870 #, no-wrap
16871 msgid ""
16872 " struct guestfs_stat_list {\n"
16873 "   uint32_t len; /* Number of elements in list. */\n"
16874 "   struct guestfs_stat *val; /* Elements. */\n"
16875 " };\n"
16876 " \n"
16877 msgstr ""
16878
16879 # type: verbatim
16880 #: ../src/guestfs-structs.pod:132
16881 #, no-wrap
16882 msgid ""
16883 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
16884 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
16885 "\n"
16886 msgstr ""
16887
16888 # type: verbatim
16889 #: ../src/guestfs-structs.pod:137
16890 #, no-wrap
16891 msgid ""
16892 " struct guestfs_statvfs {\n"
16893 "   int64_t bsize;\n"
16894 "   int64_t frsize;\n"
16895 "   int64_t blocks;\n"
16896 "   int64_t bfree;\n"
16897 "   int64_t bavail;\n"
16898 "   int64_t files;\n"
16899 "   int64_t ffree;\n"
16900 "   int64_t favail;\n"
16901 "   int64_t fsid;\n"
16902 "   int64_t flag;\n"
16903 "   int64_t namemax;\n"
16904 " };\n"
16905 " \n"
16906 msgstr ""
16907
16908 # type: verbatim
16909 #: ../src/guestfs-structs.pod:151
16910 #, no-wrap
16911 msgid ""
16912 " struct guestfs_statvfs_list {\n"
16913 "   uint32_t len; /* Number of elements in list. */\n"
16914 "   struct guestfs_statvfs *val; /* Elements. */\n"
16915 " };\n"
16916 " \n"
16917 msgstr ""
16918
16919 # type: verbatim
16920 #: ../src/guestfs-structs.pod:156
16921 #, no-wrap
16922 msgid ""
16923 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
16924 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
16925 "\n"
16926 msgstr ""
16927
16928 # type: =head2
16929 #: ../src/guestfs-structs.pod:159
16930 msgid "guestfs_dirent"
16931 msgstr ""
16932
16933 # type: verbatim
16934 #: ../src/guestfs-structs.pod:161
16935 #, no-wrap
16936 msgid ""
16937 " struct guestfs_dirent {\n"
16938 "   int64_t ino;\n"
16939 "   char ftyp;\n"
16940 "   char *name;\n"
16941 " };\n"
16942 " \n"
16943 msgstr ""
16944
16945 # type: verbatim
16946 #: ../src/guestfs-structs.pod:167
16947 #, no-wrap
16948 msgid ""
16949 " struct guestfs_dirent_list {\n"
16950 "   uint32_t len; /* Number of elements in list. */\n"
16951 "   struct guestfs_dirent *val; /* Elements. */\n"
16952 " };\n"
16953 " \n"
16954 msgstr ""
16955
16956 # type: verbatim
16957 #: ../src/guestfs-structs.pod:172
16958 #, no-wrap
16959 msgid ""
16960 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
16961 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
16962 "\n"
16963 msgstr ""
16964
16965 # type: verbatim
16966 #: ../src/guestfs-structs.pod:177
16967 #, no-wrap
16968 msgid ""
16969 " struct guestfs_version {\n"
16970 "   int64_t major;\n"
16971 "   int64_t minor;\n"
16972 "   int64_t release;\n"
16973 "   char *extra;\n"
16974 " };\n"
16975 " \n"
16976 msgstr ""
16977
16978 # type: verbatim
16979 #: ../src/guestfs-structs.pod:184
16980 #, no-wrap
16981 msgid ""
16982 " struct guestfs_version_list {\n"
16983 "   uint32_t len; /* Number of elements in list. */\n"
16984 "   struct guestfs_version *val; /* Elements. */\n"
16985 " };\n"
16986 " \n"
16987 msgstr ""
16988
16989 # type: verbatim
16990 #: ../src/guestfs-structs.pod:189
16991 #, no-wrap
16992 msgid ""
16993 " void guestfs_free_version (struct guestfs_free_version *);\n"
16994 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
16995 "\n"
16996 msgstr ""
16997
16998 # type: =head2
16999 #: ../src/guestfs-structs.pod:192
17000 msgid "guestfs_xattr"
17001 msgstr ""
17002
17003 # type: verbatim
17004 #: ../src/guestfs-structs.pod:194
17005 #, no-wrap
17006 msgid ""
17007 " struct guestfs_xattr {\n"
17008 "   char *attrname;\n"
17009 "   /* The next two fields describe a byte array. */\n"
17010 "   uint32_t attrval_len;\n"
17011 "   char *attrval;\n"
17012 " };\n"
17013 " \n"
17014 msgstr ""
17015
17016 # type: verbatim
17017 #: ../src/guestfs-structs.pod:201
17018 #, no-wrap
17019 msgid ""
17020 " struct guestfs_xattr_list {\n"
17021 "   uint32_t len; /* Number of elements in list. */\n"
17022 "   struct guestfs_xattr *val; /* Elements. */\n"
17023 " };\n"
17024 " \n"
17025 msgstr ""
17026
17027 # type: verbatim
17028 #: ../src/guestfs-structs.pod:206
17029 #, no-wrap
17030 msgid ""
17031 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
17032 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
17033 "\n"
17034 msgstr ""
17035
17036 # type: =head2
17037 #: ../src/guestfs-structs.pod:209
17038 msgid "guestfs_inotify_event"
17039 msgstr ""
17040
17041 # type: verbatim
17042 #: ../src/guestfs-structs.pod:211
17043 #, no-wrap
17044 msgid ""
17045 " struct guestfs_inotify_event {\n"
17046 "   int64_t in_wd;\n"
17047 "   uint32_t in_mask;\n"
17048 "   uint32_t in_cookie;\n"
17049 "   char *in_name;\n"
17050 " };\n"
17051 " \n"
17052 msgstr ""
17053
17054 # type: verbatim
17055 #: ../src/guestfs-structs.pod:218
17056 #, no-wrap
17057 msgid ""
17058 " struct guestfs_inotify_event_list {\n"
17059 "   uint32_t len; /* Number of elements in list. */\n"
17060 "   struct guestfs_inotify_event *val; /* Elements. */\n"
17061 " };\n"
17062 " \n"
17063 msgstr ""
17064
17065 # type: verbatim
17066 #: ../src/guestfs-structs.pod:223
17067 #, no-wrap
17068 msgid ""
17069 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
17070 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
17071 "\n"
17072 msgstr ""
17073
17074 # type: =head2
17075 #: ../src/guestfs-structs.pod:226
17076 msgid "guestfs_partition"
17077 msgstr ""
17078
17079 # type: verbatim
17080 #: ../src/guestfs-structs.pod:228
17081 #, no-wrap
17082 msgid ""
17083 " struct guestfs_partition {\n"
17084 "   int32_t part_num;\n"
17085 "   uint64_t part_start;\n"
17086 "   uint64_t part_end;\n"
17087 "   uint64_t part_size;\n"
17088 " };\n"
17089 " \n"
17090 msgstr ""
17091
17092 # type: verbatim
17093 #: ../src/guestfs-structs.pod:235
17094 #, no-wrap
17095 msgid ""
17096 " struct guestfs_partition_list {\n"
17097 "   uint32_t len; /* Number of elements in list. */\n"
17098 "   struct guestfs_partition *val; /* Elements. */\n"
17099 " };\n"
17100 " \n"
17101 msgstr ""
17102
17103 # type: verbatim
17104 #: ../src/guestfs-structs.pod:240
17105 #, no-wrap
17106 msgid ""
17107 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
17108 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
17109 "\n"
17110 msgstr ""
17111
17112 # type: =head2
17113 #: ../src/guestfs-structs.pod:243
17114 msgid "guestfs_application"
17115 msgstr ""
17116
17117 # type: verbatim
17118 #: ../src/guestfs-structs.pod:245
17119 #, no-wrap
17120 msgid ""
17121 " struct guestfs_application {\n"
17122 "   char *app_name;\n"
17123 "   char *app_display_name;\n"
17124 "   int32_t app_epoch;\n"
17125 "   char *app_version;\n"
17126 "   char *app_release;\n"
17127 "   char *app_install_path;\n"
17128 "   char *app_trans_path;\n"
17129 "   char *app_publisher;\n"
17130 "   char *app_url;\n"
17131 "   char *app_source_package;\n"
17132 "   char *app_summary;\n"
17133 "   char *app_description;\n"
17134 " };\n"
17135 " \n"
17136 msgstr ""
17137
17138 # type: verbatim
17139 #: ../src/guestfs-structs.pod:260
17140 #, no-wrap
17141 msgid ""
17142 " struct guestfs_application_list {\n"
17143 "   uint32_t len; /* Number of elements in list. */\n"
17144 "   struct guestfs_application *val; /* Elements. */\n"
17145 " };\n"
17146 " \n"
17147 msgstr ""
17148
17149 # type: verbatim
17150 #: ../src/guestfs-structs.pod:265
17151 #, no-wrap
17152 msgid ""
17153 " void guestfs_free_application (struct guestfs_free_application *);\n"
17154 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
17155 "\n"
17156 msgstr ""
17157
17158 # type: textblock
17159 #: ../fish/guestfish.pod:5
17160 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17161 msgstr ""
17162
17163 # type: verbatim
17164 #: ../fish/guestfish.pod:9
17165 #, no-wrap
17166 msgid ""
17167 " guestfish [--options] [commands]\n"
17168 "\n"
17169 msgstr ""
17170
17171 # type: verbatim
17172 #: ../fish/guestfish.pod:11
17173 #, no-wrap
17174 msgid ""
17175 " guestfish\n"
17176 "\n"
17177 msgstr ""
17178
17179 # type: verbatim
17180 #: ../fish/guestfish.pod:13
17181 #, no-wrap
17182 msgid ""
17183 " guestfish [--ro|--rw] -a disk.img\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: verbatim
17188 #: ../fish/guestfish.pod:15
17189 #, no-wrap
17190 msgid ""
17191 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17192 "\n"
17193 msgstr ""
17194
17195 # type: verbatim
17196 #: ../fish/guestfish.pod:17
17197 #, no-wrap
17198 msgid ""
17199 " guestfish -d libvirt-domain\n"
17200 "\n"
17201 msgstr ""
17202
17203 # type: verbatim
17204 #: ../fish/guestfish.pod:19
17205 #, no-wrap
17206 msgid ""
17207 " guestfish [--ro|--rw] -a disk.img -i\n"
17208 "\n"
17209 msgstr ""
17210
17211 # type: verbatim
17212 #: ../fish/guestfish.pod:21
17213 #, no-wrap
17214 msgid ""
17215 " guestfish -d libvirt-domain -i\n"
17216 "\n"
17217 msgstr ""
17218
17219 # type: =head1
17220 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
17221 msgid "WARNING"
17222 msgstr ""
17223
17224 # type: textblock
17225 #: ../fish/guestfish.pod:25
17226 msgid ""
17227 "Using guestfish in read/write mode on live virtual machines can be "
17228 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17229 "option to use guestfish safely if the disk image or virtual machine might be "
17230 "live."
17231 msgstr ""
17232
17233 # type: textblock
17234 #: ../fish/guestfish.pod:32
17235 msgid ""
17236 "Guestfish is a shell and command-line tool for examining and modifying "
17237 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17238 "functionality of the guestfs API, see L<guestfs(3)>."
17239 msgstr ""
17240
17241 # type: textblock
17242 #: ../fish/guestfish.pod:36
17243 msgid ""
17244 "Guestfish gives you structured access to the libguestfs API, from shell "
17245 "scripts or the command line or interactively.  If you want to rescue a "
17246 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17247 "command."
17248 msgstr ""
17249
17250 # type: =head1
17251 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:897
17252 #: ../fuse/guestmount.pod:39
17253 msgid "EXAMPLES"
17254 msgstr ""
17255
17256 # type: =head2
17257 #: ../fish/guestfish.pod:43
17258 msgid "As an interactive shell"
17259 msgstr ""
17260
17261 # type: verbatim
17262 #: ../fish/guestfish.pod:45
17263 #, no-wrap
17264 msgid ""
17265 " $ guestfish\n"
17266 " \n"
17267 msgstr ""
17268
17269 # type: verbatim
17270 #: ../fish/guestfish.pod:47
17271 #, no-wrap
17272 msgid ""
17273 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17274 " editing virtual machine filesystems.\n"
17275 " \n"
17276 msgstr ""
17277
17278 # type: verbatim
17279 #: ../fish/guestfish.pod:50
17280 #, no-wrap
17281 msgid ""
17282 " Type: 'help' for a list of commands\n"
17283 "       'man' to read the manual\n"
17284 "       'quit' to quit the shell\n"
17285 " \n"
17286 msgstr ""
17287
17288 # type: verbatim
17289 #: ../fish/guestfish.pod:54
17290 #, no-wrap
17291 msgid ""
17292 " ><fs> add-ro disk.img\n"
17293 " ><fs> run\n"
17294 " ><fs> list-filesystems\n"
17295 " /dev/sda1: ext4\n"
17296 " /dev/vg_guest/lv_root: ext4\n"
17297 " /dev/vg_guest/lv_swap: swap\n"
17298 " ><fs> mount /dev/vg_guest/lv_root /\n"
17299 " ><fs> cat /etc/fstab\n"
17300 " # /etc/fstab\n"
17301 " # Created by anaconda\n"
17302 " [...]\n"
17303 " ><fs> exit\n"
17304 "\n"
17305 msgstr ""
17306
17307 # type: =head2
17308 #: ../fish/guestfish.pod:67
17309 msgid "From shell scripts"
17310 msgstr ""
17311
17312 # type: textblock
17313 #: ../fish/guestfish.pod:69
17314 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17315 msgstr ""
17316
17317 # type: verbatim
17318 #: ../fish/guestfish.pod:71
17319 #, no-wrap
17320 msgid ""
17321 " guestfish <<_EOF_\n"
17322 " add disk.img\n"
17323 " run\n"
17324 " mount /dev/vg_guest/lv_root /\n"
17325 " write /etc/motd \"Welcome, new users\"\n"
17326 " _EOF_\n"
17327 "\n"
17328 msgstr ""
17329
17330 # type: textblock
17331 #: ../fish/guestfish.pod:78
17332 msgid "List the LVM logical volumes in a disk image:"
17333 msgstr ""
17334
17335 # type: verbatim
17336 #: ../fish/guestfish.pod:80
17337 #, no-wrap
17338 msgid ""
17339 " guestfish -a disk.img --ro <<_EOF_\n"
17340 " run\n"
17341 " lvs\n"
17342 " _EOF_\n"
17343 "\n"
17344 msgstr ""
17345
17346 # type: textblock
17347 #: ../fish/guestfish.pod:85
17348 msgid "List all the filesystems in a disk image:"
17349 msgstr ""
17350
17351 # type: verbatim
17352 #: ../fish/guestfish.pod:87
17353 #, no-wrap
17354 msgid ""
17355 " guestfish -a disk.img --ro <<_EOF_\n"
17356 " run\n"
17357 " list-filesystems\n"
17358 " _EOF_\n"
17359 "\n"
17360 msgstr ""
17361
17362 # type: =head2
17363 #: ../fish/guestfish.pod:92
17364 msgid "On one command line"
17365 msgstr ""
17366
17367 # type: textblock
17368 #: ../fish/guestfish.pod:94
17369 msgid "Update C</etc/resolv.conf> in a guest:"
17370 msgstr ""
17371
17372 # type: verbatim
17373 #: ../fish/guestfish.pod:96
17374 #, no-wrap
17375 msgid ""
17376 " guestfish \\\n"
17377 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17378 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17379 "\n"
17380 msgstr ""
17381
17382 # type: textblock
17383 #: ../fish/guestfish.pod:100
17384 msgid "Edit C</boot/grub/grub.conf> interactively:"
17385 msgstr ""
17386
17387 # type: verbatim
17388 #: ../fish/guestfish.pod:102
17389 #, no-wrap
17390 msgid ""
17391 " guestfish --rw --add disk.img \\\n"
17392 "   --mount /dev/vg_guest/lv_root \\\n"
17393 "   --mount /dev/sda1:/boot \\\n"
17394 "   edit /boot/grub/grub.conf\n"
17395 "\n"
17396 msgstr ""
17397
17398 # type: =head2
17399 #: ../fish/guestfish.pod:107
17400 msgid "Mount disks automatically"
17401 msgstr ""
17402
17403 # type: textblock
17404 #: ../fish/guestfish.pod:109
17405 msgid ""
17406 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17407 msgstr ""
17408
17409 # type: verbatim
17410 #: ../fish/guestfish.pod:112
17411 #, no-wrap
17412 msgid ""
17413 " guestfish --ro -a disk.img -i cat /etc/group\n"
17414 "\n"
17415 msgstr ""
17416
17417 # type: verbatim
17418 #: ../fish/guestfish.pod:114
17419 #, no-wrap
17420 msgid ""
17421 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17422 "\n"
17423 msgstr ""
17424
17425 # type: textblock
17426 #: ../fish/guestfish.pod:116
17427 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17428 msgstr ""
17429
17430 # type: verbatim
17431 #: ../fish/guestfish.pod:118
17432 #, no-wrap
17433 msgid ""
17434 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17435 "\n"
17436 msgstr ""
17437
17438 # type: =head2
17439 #: ../fish/guestfish.pod:120
17440 msgid "As a script interpreter"
17441 msgstr ""
17442
17443 # type: textblock
17444 #: ../fish/guestfish.pod:122
17445 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17446 msgstr ""
17447
17448 # type: verbatim
17449 #: ../fish/guestfish.pod:124
17450 #, no-wrap
17451 msgid ""
17452 " #!/usr/bin/guestfish -f\n"
17453 " sparse test1.img 100M\n"
17454 " run\n"
17455 " part-disk /dev/sda mbr\n"
17456 " mkfs ext2 /dev/sda1\n"
17457 "\n"
17458 msgstr ""
17459
17460 # type: =head2
17461 #: ../fish/guestfish.pod:130
17462 msgid "Start with a prepared disk"
17463 msgstr ""
17464
17465 # type: textblock
17466 #: ../fish/guestfish.pod:132
17467 msgid ""
17468 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17469 "single ext2-formatted partition:"
17470 msgstr ""
17471
17472 # type: verbatim
17473 #: ../fish/guestfish.pod:135
17474 #, no-wrap
17475 msgid ""
17476 " guestfish -N fs\n"
17477 "\n"
17478 msgstr ""
17479
17480 # type: textblock
17481 #: ../fish/guestfish.pod:137
17482 msgid "To list what is available do:"
17483 msgstr ""
17484
17485 # type: verbatim
17486 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:888
17487 #, no-wrap
17488 msgid ""
17489 " guestfish -N help | less\n"
17490 "\n"
17491 msgstr ""
17492
17493 # type: =head2
17494 #: ../fish/guestfish.pod:141
17495 msgid "Remote control"
17496 msgstr ""
17497
17498 # type: verbatim
17499 #: ../fish/guestfish.pod:143
17500 #, no-wrap
17501 msgid ""
17502 " eval \"`guestfish --listen`\"\n"
17503 " guestfish --remote add-ro disk.img\n"
17504 " guestfish --remote run\n"
17505 " guestfish --remote lvs\n"
17506 "\n"
17507 msgstr ""
17508
17509 # type: =head1
17510 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
17511 #: ../fuse/guestmount.pod:73
17512 msgid "OPTIONS"
17513 msgstr ""
17514
17515 # type: =item
17516 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
17517 msgid "B<--help>"
17518 msgstr ""
17519
17520 # type: textblock
17521 #: ../fish/guestfish.pod:154
17522 msgid "Displays general help on options."
17523 msgstr ""
17524
17525 # type: =item
17526 #: ../fish/guestfish.pod:156
17527 msgid "B<-h>"
17528 msgstr ""
17529
17530 # type: =item
17531 #: ../fish/guestfish.pod:158
17532 msgid "B<--cmd-help>"
17533 msgstr ""
17534
17535 # type: textblock
17536 #: ../fish/guestfish.pod:160
17537 msgid "Lists all available guestfish commands."
17538 msgstr ""
17539
17540 # type: =item
17541 #: ../fish/guestfish.pod:162
17542 msgid "B<-h cmd>"
17543 msgstr ""
17544
17545 # type: =item
17546 #: ../fish/guestfish.pod:164
17547 msgid "B<--cmd-help cmd>"
17548 msgstr ""
17549
17550 # type: textblock
17551 #: ../fish/guestfish.pod:166
17552 msgid "Displays detailed help on a single command C<cmd>."
17553 msgstr ""
17554
17555 # type: =item
17556 #: ../fish/guestfish.pod:168
17557 msgid "B<-a image>"
17558 msgstr ""
17559
17560 # type: =item
17561 #: ../fish/guestfish.pod:170
17562 msgid "B<--add image>"
17563 msgstr ""
17564
17565 # type: textblock
17566 #: ../fish/guestfish.pod:172
17567 msgid "Add a block device or virtual machine image to the shell."
17568 msgstr ""
17569
17570 # type: textblock
17571 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
17572 msgid ""
17573 "The format of the disk image is auto-detected.  To override this and force a "
17574 "particular format use the I<--format=..> option."
17575 msgstr ""
17576
17577 # type: textblock
17578 #: ../fish/guestfish.pod:177
17579 msgid ""
17580 "Using this flag is mostly equivalent to using the C<add> command, with "
17581 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17582 "the I<--format:...> flag was given."
17583 msgstr ""
17584
17585 # type: =item
17586 #: ../fish/guestfish.pod:181
17587 msgid "B<-c URI>"
17588 msgstr ""
17589
17590 # type: =item
17591 #: ../fish/guestfish.pod:183
17592 msgid "B<--connect URI>"
17593 msgstr ""
17594
17595 # type: textblock
17596 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
17597 msgid ""
17598 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17599 "URI to use.  The default is to use the default libvirt connection."
17600 msgstr ""
17601
17602 # type: =item
17603 #: ../fish/guestfish.pod:189
17604 msgid "B<--csh>"
17605 msgstr ""
17606
17607 # type: textblock
17608 #: ../fish/guestfish.pod:191
17609 msgid ""
17610 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17611 "section L</REMOTE CONTROL AND CSH> below."
17612 msgstr ""
17613
17614 # type: =item
17615 #: ../fish/guestfish.pod:194
17616 msgid "B<-d libvirt-domain>"
17617 msgstr ""
17618
17619 # type: =item
17620 #: ../fish/guestfish.pod:196
17621 msgid "B<--domain libvirt-domain>"
17622 msgstr ""
17623
17624 # type: textblock
17625 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
17626 msgid ""
17627 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17628 "used, then any libvirt domain can be used.  However in write mode, only "
17629 "libvirt domains which are shut down can be named here."
17630 msgstr ""
17631
17632 # type: textblock
17633 #: ../fish/guestfish.pod:202
17634 msgid ""
17635 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17636 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17637 "if the I<--format:...> flag was given."
17638 msgstr ""
17639
17640 # type: =item
17641 #: ../fish/guestfish.pod:206
17642 msgid "B<-D>"
17643 msgstr ""
17644
17645 # type: =item
17646 #: ../fish/guestfish.pod:208
17647 msgid "B<--no-dest-paths>"
17648 msgstr ""
17649
17650 # type: textblock
17651 #: ../fish/guestfish.pod:210
17652 msgid ""
17653 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17654 "to hit the tab key to complete paths on the guest filesystem, but this "
17655 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17656 "allow this feature to be disabled."
17657 msgstr ""
17658
17659 # type: =item
17660 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
17661 msgid "B<--echo-keys>"
17662 msgstr ""
17663
17664 # type: textblock
17665 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
17666 msgid ""
17667 "When prompting for keys and passphrases, guestfish normally turns echoing "
17668 "off so you cannot see what you are typing.  If you are not worried about "
17669 "Tempest attacks and there is no one else in the room you can specify this "
17670 "flag to see what you are typing."
17671 msgstr ""
17672
17673 # type: =item
17674 #: ../fish/guestfish.pod:222
17675 msgid "B<-f file>"
17676 msgstr ""
17677
17678 # type: =item
17679 #: ../fish/guestfish.pod:224
17680 msgid "B<--file file>"
17681 msgstr ""
17682
17683 # type: textblock
17684 #: ../fish/guestfish.pod:226
17685 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17686 msgstr ""
17687
17688 # type: verbatim
17689 #: ../fish/guestfish.pod:229
17690 #, no-wrap
17691 msgid ""
17692 " #!/usr/bin/guestfish -f\n"
17693 "\n"
17694 msgstr ""
17695
17696 # type: =item
17697 #: ../fish/guestfish.pod:231
17698 msgid "B<--format=raw|qcow2|..>"
17699 msgstr ""
17700
17701 # type: =item
17702 #: ../fish/guestfish.pod:233
17703 msgid "B<--format>"
17704 msgstr ""
17705
17706 # type: textblock
17707 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
17708 msgid ""
17709 "The default for the I<-a> option is to auto-detect the format of the disk "
17710 "image.  Using this forces the disk format for I<-a> options which follow on "
17711 "the command line.  Using I<--format> with no argument switches back to auto-"
17712 "detection for subsequent I<-a> options."
17713 msgstr ""
17714
17715 # type: textblock
17716 #: ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
17717 msgid "For example:"
17718 msgstr ""
17719
17720 # type: verbatim
17721 #: ../fish/guestfish.pod:242
17722 #, no-wrap
17723 msgid ""
17724 " guestfish --format=raw -a disk.img\n"
17725 "\n"
17726 msgstr ""
17727
17728 # type: textblock
17729 #: ../fish/guestfish.pod:244
17730 msgid "forces raw format (no auto-detection) for C<disk.img>."
17731 msgstr ""
17732
17733 # type: verbatim
17734 #: ../fish/guestfish.pod:246
17735 #, no-wrap
17736 msgid ""
17737 " guestfish --format=raw -a disk.img --format -a another.img\n"
17738 "\n"
17739 msgstr ""
17740
17741 # type: textblock
17742 #: ../fish/guestfish.pod:248
17743 msgid ""
17744 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
17745 "detection for C<another.img>."
17746 msgstr ""
17747
17748 # type: textblock
17749 #: ../fish/guestfish.pod:251
17750 msgid ""
17751 "If you have untrusted raw-format guest disk images, you should use this "
17752 "option to specify the disk format.  This avoids a possible security problem "
17753 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17754 msgstr ""
17755
17756 # type: =item
17757 #: ../fish/guestfish.pod:256
17758 msgid "B<-i>"
17759 msgstr ""
17760
17761 # type: =item
17762 #: ../fish/guestfish.pod:258
17763 msgid "B<--inspector>"
17764 msgstr ""
17765
17766 # type: textblock
17767 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
17768 msgid ""
17769 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17770 "system and mount filesystems as they would be mounted on the real virtual "
17771 "machine."
17772 msgstr ""
17773
17774 # type: textblock
17775 #: ../fish/guestfish.pod:264
17776 msgid "Typical usage is either:"
17777 msgstr ""
17778
17779 # type: verbatim
17780 #: ../fish/guestfish.pod:266
17781 #, no-wrap
17782 msgid ""
17783 " guestfish -d myguest -i\n"
17784 "\n"
17785 msgstr ""
17786
17787 # type: textblock
17788 #: ../fish/guestfish.pod:268
17789 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17790 msgstr ""
17791
17792 # type: verbatim
17793 #: ../fish/guestfish.pod:270
17794 #, no-wrap
17795 msgid ""
17796 " guestfish --ro -d myguest -i\n"
17797 "\n"
17798 msgstr ""
17799
17800 # type: textblock
17801 #: ../fish/guestfish.pod:272
17802 msgid "(for active domains, readonly), or specify the block device directly:"
17803 msgstr ""
17804
17805 # type: verbatim
17806 #: ../fish/guestfish.pod:274
17807 #, no-wrap
17808 msgid ""
17809 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17810 "\n"
17811 msgstr ""
17812
17813 # type: textblock
17814 #: ../fish/guestfish.pod:276
17815 msgid ""
17816 "Note that the command line syntax changed slightly over older versions of "
17817 "guestfish.  You can still use the old syntax:"
17818 msgstr ""
17819
17820 # type: verbatim
17821 #: ../fish/guestfish.pod:279
17822 #, no-wrap
17823 msgid ""
17824 " guestfish [--ro] -i disk.img\n"
17825 "\n"
17826 msgstr ""
17827
17828 # type: verbatim
17829 #: ../fish/guestfish.pod:281
17830 #, no-wrap
17831 msgid ""
17832 " guestfish [--ro] -i libvirt-domain\n"
17833 "\n"
17834 msgstr ""
17835
17836 # type: textblock
17837 #: ../fish/guestfish.pod:283
17838 msgid ""
17839 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17840 "then using other commands to mount the filesystems that were found."
17841 msgstr ""
17842
17843 # type: =item
17844 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
17845 msgid "B<--keys-from-stdin>"
17846 msgstr ""
17847
17848 # type: textblock
17849 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
17850 msgid ""
17851 "Read key or passphrase parameters from stdin.  The default is to try to read "
17852 "passphrases from the user by opening C</dev/tty>."
17853 msgstr ""
17854
17855 # type: =item
17856 #: ../fish/guestfish.pod:292
17857 msgid "B<--listen>"
17858 msgstr ""
17859
17860 # type: textblock
17861 #: ../fish/guestfish.pod:294
17862 msgid ""
17863 "Fork into the background and listen for remote commands.  See section L</"
17864 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17865 msgstr ""
17866
17867 # type: =item
17868 #: ../fish/guestfish.pod:297
17869 msgid "B<-m dev[:mountpoint]>"
17870 msgstr ""
17871
17872 # type: =item
17873 #: ../fish/guestfish.pod:299
17874 msgid "B<--mount dev[:mountpoint]>"
17875 msgstr ""
17876
17877 # type: textblock
17878 #: ../fish/guestfish.pod:301
17879 msgid "Mount the named partition or logical volume on the given mountpoint."
17880 msgstr ""
17881
17882 # type: textblock
17883 #: ../fish/guestfish.pod:303
17884 msgid "If the mountpoint is omitted, it defaults to C</>."
17885 msgstr ""
17886
17887 # type: textblock
17888 #: ../fish/guestfish.pod:305
17889 msgid "You have to mount something on C</> before most commands will work."
17890 msgstr ""
17891
17892 # type: textblock
17893 #: ../fish/guestfish.pod:307
17894 msgid ""
17895 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17896 "launched."
17897 msgstr ""
17898
17899 # type: textblock
17900 #: ../fish/guestfish.pod:310
17901 msgid ""
17902 "If you don't know what filesystems a disk image contains, you can either run "
17903 "guestfish without this option, then list the partitions, filesystems and LVs "
17904 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17905 "commands), or you can use the L<virt-filesystems(1)> program."
17906 msgstr ""
17907
17908 # type: textblock
17909 #: ../fish/guestfish.pod:316
17910 msgid ""
17911 "Using this flag is mostly equivalent to using the C<mount-options> command "
17912 "or the C<mount-ro> command if the I<--ro> flag was given."
17913 msgstr ""
17914
17915 # type: =item
17916 #: ../fish/guestfish.pod:319
17917 msgid "B<-n>"
17918 msgstr ""
17919
17920 # type: =item
17921 #: ../fish/guestfish.pod:321
17922 msgid "B<--no-sync>"
17923 msgstr ""
17924
17925 # type: textblock
17926 #: ../fish/guestfish.pod:323
17927 msgid ""
17928 "Disable autosync.  This is enabled by default.  See the discussion of "
17929 "autosync in the L<guestfs(3)> manpage."
17930 msgstr ""
17931
17932 # type: =item
17933 #: ../fish/guestfish.pod:326
17934 msgid "B<-N type>"
17935 msgstr ""
17936
17937 # type: =item
17938 #: ../fish/guestfish.pod:328
17939 msgid "B<--new type>"
17940 msgstr ""
17941
17942 # type: =item
17943 #: ../fish/guestfish.pod:330
17944 msgid "B<-N help>"
17945 msgstr ""
17946
17947 # type: textblock
17948 #: ../fish/guestfish.pod:332
17949 msgid ""
17950 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17951 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17952 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17953 "IMAGES> below."
17954 msgstr ""
17955
17956 # type: =item
17957 #: ../fish/guestfish.pod:337
17958 msgid "B<--progress-bars>"
17959 msgstr ""
17960
17961 # type: textblock
17962 #: ../fish/guestfish.pod:339
17963 msgid "Enable progress bars, even when guestfish is used non-interactively."
17964 msgstr ""
17965
17966 # type: textblock
17967 #: ../fish/guestfish.pod:341
17968 msgid ""
17969 "Progress bars are enabled by default when guestfish is used as an "
17970 "interactive shell."
17971 msgstr ""
17972
17973 # type: =item
17974 #: ../fish/guestfish.pod:344
17975 msgid "B<--no-progress-bars>"
17976 msgstr ""
17977
17978 # type: textblock
17979 #: ../fish/guestfish.pod:346
17980 msgid "Disable progress bars."
17981 msgstr ""
17982
17983 # type: =item
17984 #: ../fish/guestfish.pod:348
17985 msgid "B<--remote[=pid]>"
17986 msgstr ""
17987
17988 # type: textblock
17989 #: ../fish/guestfish.pod:350
17990 msgid ""
17991 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17992 "CONTROL GUESTFISH OVER A SOCKET> below."
17993 msgstr ""
17994
17995 # type: =item
17996 #: ../fish/guestfish.pod:353
17997 msgid "B<-r>"
17998 msgstr ""
17999
18000 # type: =item
18001 #: ../fish/guestfish.pod:355
18002 msgid "B<--ro>"
18003 msgstr ""
18004
18005 # type: textblock
18006 #: ../fish/guestfish.pod:357
18007 msgid ""
18008 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18009 "mounts are done read-only."
18010 msgstr ""
18011
18012 # type: textblock
18013 #: ../fish/guestfish.pod:360
18014 msgid ""
18015 "The option must always be used if the disk image or virtual machine might be "
18016 "running, and is generally recommended in cases where you don't need write "
18017 "access to the disk."
18018 msgstr ""
18019
18020 # type: textblock
18021 #: ../fish/guestfish.pod:364
18022 msgid ""
18023 "Note that prepared disk images created with I<-N> are not affected by this "
18024 "option.  Also commands like C<add> are not affected - you have to specify "
18025 "the C<readonly:true> option explicitly if you need it."
18026 msgstr ""
18027
18028 # type: textblock
18029 #: ../fish/guestfish.pod:368
18030 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18031 msgstr ""
18032
18033 # type: =item
18034 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
18035 msgid "B<--selinux>"
18036 msgstr ""
18037
18038 # type: textblock
18039 #: ../fish/guestfish.pod:372
18040 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18041 msgstr ""
18042
18043 # type: =item
18044 #: ../fish/guestfish.pod:374
18045 msgid "B<-v>"
18046 msgstr ""
18047
18048 # type: =item
18049 #: ../fish/guestfish.pod:376
18050 msgid "B<--verbose>"
18051 msgstr ""
18052
18053 # type: textblock
18054 #: ../fish/guestfish.pod:378
18055 msgid ""
18056 "Enable very verbose messages.  This is particularly useful if you find a bug."
18057 msgstr ""
18058
18059 # type: =item
18060 #: ../fish/guestfish.pod:381
18061 msgid "B<-V>"
18062 msgstr ""
18063
18064 # type: =item
18065 #: ../fish/guestfish.pod:383
18066 msgid "B<--version>"
18067 msgstr ""
18068
18069 # type: textblock
18070 #: ../fish/guestfish.pod:385
18071 msgid "Display the guestfish / libguestfs version number and exit."
18072 msgstr ""
18073
18074 # type: =item
18075 #: ../fish/guestfish.pod:387
18076 msgid "B<-w>"
18077 msgstr ""
18078
18079 # type: =item
18080 #: ../fish/guestfish.pod:389
18081 msgid "B<--rw>"
18082 msgstr ""
18083
18084 # type: textblock
18085 #: ../fish/guestfish.pod:391
18086 msgid ""
18087 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
18088 "WRITE> below."
18089 msgstr ""
18090
18091 # type: =item
18092 #: ../fish/guestfish.pod:394
18093 msgid "B<-x>"
18094 msgstr ""
18095
18096 # type: textblock
18097 #: ../fish/guestfish.pod:396
18098 msgid "Echo each command before executing it."
18099 msgstr ""
18100
18101 # type: =head1
18102 #: ../fish/guestfish.pod:400
18103 msgid "COMMANDS ON COMMAND LINE"
18104 msgstr ""
18105
18106 # type: textblock
18107 #: ../fish/guestfish.pod:402
18108 msgid ""
18109 "Any additional (non-option) arguments are treated as commands to execute."
18110 msgstr ""
18111
18112 # type: textblock
18113 #: ../fish/guestfish.pod:405
18114 msgid ""
18115 "Commands to execute should be separated by a colon (C<:>), where the colon "
18116 "is a separate parameter.  Thus:"
18117 msgstr ""
18118
18119 # type: verbatim
18120 #: ../fish/guestfish.pod:408
18121 #, no-wrap
18122 msgid ""
18123 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18124 "\n"
18125 msgstr ""
18126
18127 # type: textblock
18128 #: ../fish/guestfish.pod:410
18129 msgid ""
18130 "If there are no additional arguments, then we enter a shell, either an "
18131 "interactive shell with a prompt (if the input is a terminal) or a non-"
18132 "interactive shell."
18133 msgstr ""
18134
18135 # type: textblock
18136 #: ../fish/guestfish.pod:414
18137 msgid ""
18138 "In either command line mode or non-interactive shell, the first command that "
18139 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18140 "prompt) if a command fails, you can continue to enter commands."
18141 msgstr ""
18142
18143 # type: =head1
18144 #: ../fish/guestfish.pod:419
18145 msgid "USING launch (OR run)"
18146 msgstr ""
18147
18148 # type: textblock
18149 #: ../fish/guestfish.pod:421
18150 msgid ""
18151 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18152 "then launch it, then mount any disks you need, and finally issue actions/"
18153 "commands.  So the general order of the day is:"
18154 msgstr ""
18155
18156 # type: textblock
18157 #: ../fish/guestfish.pod:429
18158 msgid "add or -a/--add"
18159 msgstr ""
18160
18161 # type: textblock
18162 #: ../fish/guestfish.pod:433
18163 msgid "launch (aka run)"
18164 msgstr ""
18165
18166 # type: textblock
18167 #: ../fish/guestfish.pod:437
18168 msgid "mount or -m/--mount"
18169 msgstr ""
18170
18171 # type: textblock
18172 #: ../fish/guestfish.pod:441
18173 msgid "any other commands"
18174 msgstr ""
18175
18176 # type: textblock
18177 #: ../fish/guestfish.pod:445
18178 msgid ""
18179 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18180 "guest before mounting or performing any other commands."
18181 msgstr ""
18182
18183 # type: textblock
18184 #: ../fish/guestfish.pod:448
18185 msgid ""
18186 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18187 "I<--new> options were given then C<run> is done automatically, simply "
18188 "because guestfish can't perform the action you asked for without doing this."
18189 msgstr ""
18190
18191 # type: =head1
18192 #: ../fish/guestfish.pod:453
18193 msgid "OPENING DISKS FOR READ AND WRITE"
18194 msgstr ""
18195
18196 # type: textblock
18197 #: ../fish/guestfish.pod:455
18198 msgid ""
18199 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
18200 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
18201 "open disk images read-only or for writing."
18202 msgstr ""
18203
18204 # type: textblock
18205 #: ../fish/guestfish.pod:459
18206 msgid ""
18207 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
18208 "disk images supplied on the command line for write.  To open a disk image "
18209 "read-only you have to do I<-a image --ro>."
18210 msgstr ""
18211
18212 # type: textblock
18213 #: ../fish/guestfish.pod:463
18214 msgid ""
18215 "This matters: If you accidentally open a live VM disk image writable then "
18216 "you will cause irreversible disk corruption."
18217 msgstr ""
18218
18219 # type: textblock
18220 #: ../fish/guestfish.pod:466
18221 msgid ""
18222 "By libguestfs 1.8 we intend to change the default the other way.  Disk "
18223 "images will be opened read-only.  You will have to either specify "
18224 "I<guestfish --rw> or change a configuration file in order to get write "
18225 "access for disk images specified by those other command line options."
18226 msgstr ""
18227
18228 # type: textblock
18229 #: ../fish/guestfish.pod:471
18230 msgid ""
18231 "This version of guestfish has a I<--rw> option which does nothing (it is "
18232 "already the default).  However it is highly recommended that you use this "
18233 "option to indicate that guestfish needs write access, and to prepare your "
18234 "scripts for the day when this option will be required for write access."
18235 msgstr ""
18236
18237 # type: textblock
18238 #: ../fish/guestfish.pod:477
18239 msgid ""
18240 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18241 "other libguestfs program apart from guestfish and guestmount."
18242 msgstr ""
18243
18244 # type: =head1
18245 #: ../fish/guestfish.pod:480
18246 msgid "QUOTING"
18247 msgstr ""
18248
18249 # type: textblock
18250 #: ../fish/guestfish.pod:482
18251 msgid ""
18252 "You can quote ordinary parameters using either single or double quotes.  For "
18253 "example:"
18254 msgstr ""
18255
18256 # type: verbatim
18257 #: ../fish/guestfish.pod:485
18258 #, no-wrap
18259 msgid ""
18260 " add \"file with a space.img\"\n"
18261 "\n"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #: ../fish/guestfish.pod:487
18266 #, no-wrap
18267 msgid ""
18268 " rm '/file name'\n"
18269 "\n"
18270 msgstr ""
18271
18272 # type: verbatim
18273 #: ../fish/guestfish.pod:489
18274 #, no-wrap
18275 msgid ""
18276 " rm '/\"'\n"
18277 "\n"
18278 msgstr ""
18279
18280 # type: textblock
18281 #: ../fish/guestfish.pod:491
18282 msgid ""
18283 "A few commands require a list of strings to be passed.  For these, use a "
18284 "whitespace-separated list, enclosed in quotes.  Strings containing "
18285 "whitespace to be passed through must be enclosed in single quotes.  A "
18286 "literal single quote must be escaped with a backslash."
18287 msgstr ""
18288
18289 # type: verbatim
18290 #: ../fish/guestfish.pod:496
18291 #, no-wrap
18292 msgid ""
18293 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18294 " command \"/bin/echo 'foo      bar'\"\n"
18295 " command \"/bin/echo \\'foo\\'\"\n"
18296 "\n"
18297 msgstr ""
18298
18299 # type: =head1
18300 #: ../fish/guestfish.pod:500
18301 msgid "OPTIONAL ARGUMENTS"
18302 msgstr ""
18303
18304 # type: textblock
18305 #: ../fish/guestfish.pod:502
18306 msgid ""
18307 "Some commands take optional arguments.  These arguments appear in this "
18308 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18309 msgstr ""
18310
18311 # type: verbatim
18312 #: ../fish/guestfish.pod:506
18313 #, no-wrap
18314 msgid ""
18315 " add-drive-opts filename\n"
18316 "\n"
18317 msgstr ""
18318
18319 # type: verbatim
18320 #: ../fish/guestfish.pod:508
18321 #, no-wrap
18322 msgid ""
18323 " add-drive-opts filename readonly:true\n"
18324 "\n"
18325 msgstr ""
18326
18327 # type: verbatim
18328 #: ../fish/guestfish.pod:510
18329 #, no-wrap
18330 msgid ""
18331 " add-drive-opts filename format:qcow2 readonly:false\n"
18332 "\n"
18333 msgstr ""
18334
18335 # type: textblock
18336 #: ../fish/guestfish.pod:512
18337 msgid ""
18338 "Each optional argument can appear at most once.  All optional arguments must "
18339 "appear after the required ones."
18340 msgstr ""
18341
18342 # type: =head1
18343 #: ../fish/guestfish.pod:515
18344 msgid "NUMBERS"
18345 msgstr ""
18346
18347 # type: textblock
18348 #: ../fish/guestfish.pod:517
18349 msgid ""
18350 "This section applies to all commands which can take integers as parameters."
18351 msgstr ""
18352
18353 # type: =head2
18354 #: ../fish/guestfish.pod:520
18355 msgid "SIZE SUFFIX"
18356 msgstr ""
18357
18358 # type: textblock
18359 #: ../fish/guestfish.pod:522
18360 msgid ""
18361 "When the command takes a parameter measured in bytes, you can use one of the "
18362 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18363 msgstr ""
18364
18365 # type: =item
18366 #: ../fish/guestfish.pod:528
18367 msgid "B<k> or B<K> or B<KiB>"
18368 msgstr ""
18369
18370 # type: textblock
18371 #: ../fish/guestfish.pod:530
18372 msgid "The size in kilobytes (multiplied by 1024)."
18373 msgstr ""
18374
18375 # type: =item
18376 #: ../fish/guestfish.pod:532
18377 msgid "B<KB>"
18378 msgstr ""
18379
18380 # type: textblock
18381 #: ../fish/guestfish.pod:534
18382 msgid "The size in SI 1000 byte units."
18383 msgstr ""
18384
18385 # type: =item
18386 #: ../fish/guestfish.pod:536
18387 msgid "B<M> or B<MiB>"
18388 msgstr ""
18389
18390 # type: textblock
18391 #: ../fish/guestfish.pod:538
18392 msgid "The size in megabytes (multiplied by 1048576)."
18393 msgstr ""
18394
18395 # type: =item
18396 #: ../fish/guestfish.pod:540
18397 msgid "B<MB>"
18398 msgstr ""
18399
18400 # type: textblock
18401 #: ../fish/guestfish.pod:542
18402 msgid "The size in SI 1000000 byte units."
18403 msgstr ""
18404
18405 # type: =item
18406 #: ../fish/guestfish.pod:544
18407 msgid "B<G> or B<GiB>"
18408 msgstr ""
18409
18410 # type: textblock
18411 #: ../fish/guestfish.pod:546
18412 msgid "The size in gigabytes (multiplied by 2**30)."
18413 msgstr ""
18414
18415 # type: =item
18416 #: ../fish/guestfish.pod:548
18417 msgid "B<GB>"
18418 msgstr ""
18419
18420 # type: textblock
18421 #: ../fish/guestfish.pod:550
18422 msgid "The size in SI 10**9 byte units."
18423 msgstr ""
18424
18425 # type: =item
18426 #: ../fish/guestfish.pod:552
18427 msgid "B<T> or B<TiB>"
18428 msgstr ""
18429
18430 # type: textblock
18431 #: ../fish/guestfish.pod:554
18432 msgid "The size in terabytes (multiplied by 2**40)."
18433 msgstr ""
18434
18435 # type: =item
18436 #: ../fish/guestfish.pod:556
18437 msgid "B<TB>"
18438 msgstr ""
18439
18440 # type: textblock
18441 #: ../fish/guestfish.pod:558
18442 msgid "The size in SI 10**12 byte units."
18443 msgstr ""
18444
18445 # type: =item
18446 #: ../fish/guestfish.pod:560
18447 msgid "B<P> or B<PiB>"
18448 msgstr ""
18449
18450 # type: textblock
18451 #: ../fish/guestfish.pod:562
18452 msgid "The size in petabytes (multiplied by 2**50)."
18453 msgstr ""
18454
18455 # type: =item
18456 #: ../fish/guestfish.pod:564
18457 msgid "B<PB>"
18458 msgstr ""
18459
18460 # type: textblock
18461 #: ../fish/guestfish.pod:566
18462 msgid "The size in SI 10**15 byte units."
18463 msgstr ""
18464
18465 # type: =item
18466 #: ../fish/guestfish.pod:568
18467 msgid "B<E> or B<EiB>"
18468 msgstr ""
18469
18470 # type: textblock
18471 #: ../fish/guestfish.pod:570
18472 msgid "The size in exabytes (multiplied by 2**60)."
18473 msgstr ""
18474
18475 # type: =item
18476 #: ../fish/guestfish.pod:572
18477 msgid "B<EB>"
18478 msgstr ""
18479
18480 # type: textblock
18481 #: ../fish/guestfish.pod:574
18482 msgid "The size in SI 10**18 byte units."
18483 msgstr ""
18484
18485 # type: =item
18486 #: ../fish/guestfish.pod:576
18487 msgid "B<Z> or B<ZiB>"
18488 msgstr ""
18489
18490 # type: textblock
18491 #: ../fish/guestfish.pod:578
18492 msgid "The size in zettabytes (multiplied by 2**70)."
18493 msgstr ""
18494
18495 # type: =item
18496 #: ../fish/guestfish.pod:580
18497 msgid "B<ZB>"
18498 msgstr ""
18499
18500 # type: textblock
18501 #: ../fish/guestfish.pod:582
18502 msgid "The size in SI 10**21 byte units."
18503 msgstr ""
18504
18505 # type: =item
18506 #: ../fish/guestfish.pod:584
18507 msgid "B<Y> or B<YiB>"
18508 msgstr ""
18509
18510 # type: textblock
18511 #: ../fish/guestfish.pod:586
18512 msgid "The size in yottabytes (multiplied by 2**80)."
18513 msgstr ""
18514
18515 # type: =item
18516 #: ../fish/guestfish.pod:588
18517 msgid "B<YB>"
18518 msgstr ""
18519
18520 # type: textblock
18521 #: ../fish/guestfish.pod:590
18522 msgid "The size in SI 10**24 byte units."
18523 msgstr ""
18524
18525 # type: verbatim
18526 #: ../fish/guestfish.pod:596
18527 #, no-wrap
18528 msgid ""
18529 " truncate-size /file 1G\n"
18530 "\n"
18531 msgstr ""
18532
18533 # type: textblock
18534 #: ../fish/guestfish.pod:598
18535 msgid "would truncate the file to 1 gigabyte."
18536 msgstr ""
18537
18538 # type: textblock
18539 #: ../fish/guestfish.pod:600
18540 msgid ""
18541 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18542 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18543 "suffix will probably not do what you expect."
18544 msgstr ""
18545
18546 # type: =head2
18547 #: ../fish/guestfish.pod:604
18548 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18549 msgstr ""
18550
18551 # type: textblock
18552 #: ../fish/guestfish.pod:606
18553 msgid ""
18554 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18555 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18556 msgstr ""
18557
18558 # type: verbatim
18559 #: ../fish/guestfish.pod:609
18560 #, no-wrap
18561 msgid ""
18562 " 1234      decimal number 1234\n"
18563 " 02322     octal number, equivalent to decimal 1234\n"
18564 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18565 "\n"
18566 msgstr ""
18567
18568 # type: textblock
18569 #: ../fish/guestfish.pod:613
18570 msgid ""
18571 "When using the C<chmod> command, you almost always want to specify an octal "
18572 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18573 "L<chmod(1)> program):"
18574 msgstr ""
18575
18576 # type: verbatim
18577 #: ../fish/guestfish.pod:617
18578 #, no-wrap
18579 msgid ""
18580 " chmod 0777 /public  # OK\n"
18581 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18582 "\n"
18583 msgstr ""
18584
18585 # type: textblock
18586 #: ../fish/guestfish.pod:620
18587 msgid ""
18588 "Commands that return numbers usually print them in decimal, but some "
18589 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18590 "octal, preceeded by C<0>)."
18591 msgstr ""
18592
18593 # type: =head1
18594 #: ../fish/guestfish.pod:624
18595 msgid "WILDCARDS AND GLOBBING"
18596 msgstr ""
18597
18598 # type: textblock
18599 #: ../fish/guestfish.pod:626
18600 msgid ""
18601 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18602 "(globbing) by default.  So for example the following will not do what you "
18603 "expect:"
18604 msgstr ""
18605
18606 # type: verbatim
18607 #: ../fish/guestfish.pod:630
18608 #, no-wrap
18609 msgid ""
18610 " rm-rf /home/*\n"
18611 "\n"
18612 msgstr ""
18613
18614 # type: textblock
18615 #: ../fish/guestfish.pod:632
18616 msgid ""
18617 "Assuming you don't have a directory called literally C</home/*> then the "
18618 "above command will return an error."
18619 msgstr ""
18620
18621 # type: textblock
18622 #: ../fish/guestfish.pod:635
18623 msgid "To perform wildcard expansion, use the C<glob> command."
18624 msgstr ""
18625
18626 # type: verbatim
18627 #: ../fish/guestfish.pod:637
18628 #, no-wrap
18629 msgid ""
18630 " glob rm-rf /home/*\n"
18631 "\n"
18632 msgstr ""
18633
18634 # type: textblock
18635 #: ../fish/guestfish.pod:639
18636 msgid ""
18637 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18638 "many times), equivalent to:"
18639 msgstr ""
18640
18641 # type: verbatim
18642 #: ../fish/guestfish.pod:642
18643 #, no-wrap
18644 msgid ""
18645 " rm-rf /home/jim\n"
18646 " rm-rf /home/joe\n"
18647 " rm-rf /home/mary\n"
18648 "\n"
18649 msgstr ""
18650
18651 # type: textblock
18652 #: ../fish/guestfish.pod:646
18653 msgid "C<glob> only works on simple guest paths and not on device names."
18654 msgstr ""
18655
18656 # type: textblock
18657 #: ../fish/guestfish.pod:648
18658 msgid ""
18659 "If you have several parameters, each containing a wildcard, then glob will "
18660 "perform a Cartesian product."
18661 msgstr ""
18662
18663 # type: =head1
18664 #: ../fish/guestfish.pod:651
18665 msgid "COMMENTS"
18666 msgstr ""
18667
18668 # type: textblock
18669 #: ../fish/guestfish.pod:653
18670 msgid ""
18671 "Any line which starts with a I<#> character is treated as a comment and "
18672 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18673 "a command.  For example:"
18674 msgstr ""
18675
18676 # type: verbatim
18677 #: ../fish/guestfish.pod:657
18678 #, no-wrap
18679 msgid ""
18680 " # this is a comment\n"
18681 "         # this is a comment\n"
18682 " foo # NOT a comment\n"
18683 "\n"
18684 msgstr ""
18685
18686 # type: textblock
18687 #: ../fish/guestfish.pod:661
18688 msgid "Blank lines are also ignored."
18689 msgstr ""
18690
18691 # type: =head1
18692 #: ../fish/guestfish.pod:663
18693 msgid "RUNNING COMMANDS LOCALLY"
18694 msgstr ""
18695
18696 # type: textblock
18697 #: ../fish/guestfish.pod:665
18698 msgid ""
18699 "Any line which starts with a I<!> character is treated as a command sent to "
18700 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18701 msgstr ""
18702
18703 # type: verbatim
18704 #: ../fish/guestfish.pod:669
18705 #, no-wrap
18706 msgid ""
18707 " !mkdir local\n"
18708 " tgz-out /remote local/remote-data.tar.gz\n"
18709 "\n"
18710 msgstr ""
18711
18712 # type: textblock
18713 #: ../fish/guestfish.pod:672
18714 msgid ""
18715 "will create a directory C<local> on the host, and then export the contents "
18716 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18717 "(See C<tgz-out>)."
18718 msgstr ""
18719
18720 # type: textblock
18721 #: ../fish/guestfish.pod:676
18722 msgid ""
18723 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18724 "effect, due to the way that subprocesses work in Unix."
18725 msgstr ""
18726
18727 # type: =head1
18728 #: ../fish/guestfish.pod:679
18729 msgid "PIPES"
18730 msgstr ""
18731
18732 # type: textblock
18733 #: ../fish/guestfish.pod:681
18734 msgid ""
18735 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18736 "command (a guestfish command) to the second command (any host command).  For "
18737 "example:"
18738 msgstr ""
18739
18740 # type: verbatim
18741 #: ../fish/guestfish.pod:685
18742 #, no-wrap
18743 msgid ""
18744 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18745 "\n"
18746 msgstr ""
18747
18748 # type: textblock
18749 #: ../fish/guestfish.pod:687
18750 msgid ""
18751 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18752 "program).  The above command would list all accounts in the guest filesystem "
18753 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18754 msgstr ""
18755
18756 # type: verbatim
18757 #: ../fish/guestfish.pod:692
18758 #, no-wrap
18759 msgid ""
18760 " hexdump /bin/ls | head\n"
18761 " list-devices | tail -1\n"
18762 " tgz-out / - | tar ztf -\n"
18763 "\n"
18764 msgstr ""
18765
18766 # type: textblock
18767 #: ../fish/guestfish.pod:696
18768 msgid ""
18769 "The space before the pipe symbol is required, any space after the pipe "
18770 "symbol is optional.  Everything after the pipe symbol is just passed "
18771 "straight to the host shell, so it can contain redirections, globs and "
18772 "anything else that makes sense on the host side."
18773 msgstr ""
18774
18775 # type: textblock
18776 #: ../fish/guestfish.pod:701
18777 msgid ""
18778 "To use a literal argument which begins with a pipe symbol, you have to quote "
18779 "it, eg:"
18780 msgstr ""
18781
18782 # type: verbatim
18783 #: ../fish/guestfish.pod:704
18784 #, no-wrap
18785 msgid ""
18786 " echo \"|\"\n"
18787 "\n"
18788 msgstr ""
18789
18790 # type: =head1
18791 #: ../fish/guestfish.pod:706
18792 msgid "HOME DIRECTORIES"
18793 msgstr ""
18794
18795 # type: textblock
18796 #: ../fish/guestfish.pod:708
18797 msgid ""
18798 "If a parameter starts with the character C<~> then the tilde may be expanded "
18799 "as a home directory path (either C<~> for the current user's home directory, "
18800 "or C<~user> for another user)."
18801 msgstr ""
18802
18803 # type: textblock
18804 #: ../fish/guestfish.pod:712
18805 msgid ""
18806 "Note that home directory expansion happens for users known I<on the host>, "
18807 "not in the guest filesystem."
18808 msgstr ""
18809
18810 # type: textblock
18811 #: ../fish/guestfish.pod:715
18812 msgid ""
18813 "To use a literal argument which begins with a tilde, you have to quote it, "
18814 "eg:"
18815 msgstr ""
18816
18817 # type: verbatim
18818 #: ../fish/guestfish.pod:718
18819 #, no-wrap
18820 msgid ""
18821 " echo \"~\"\n"
18822 "\n"
18823 msgstr ""
18824
18825 # type: textblock
18826 #: ../fish/guestfish.pod:722
18827 msgid ""
18828 "Libguestfs has some support for Linux guests encrypted according to the "
18829 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18830 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18831 "LUKS is supported."
18832 msgstr ""
18833
18834 # type: textblock
18835 #: ../fish/guestfish.pod:727
18836 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18837 msgstr ""
18838
18839 # type: verbatim
18840 #: ../fish/guestfish.pod:729
18841 #, no-wrap
18842 msgid ""
18843 " ><fs> vfs-type /dev/sda2\n"
18844 " crypto_LUKS\n"
18845 "\n"
18846 msgstr ""
18847
18848 # type: textblock
18849 #: ../fish/guestfish.pod:732
18850 msgid ""
18851 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18852 "device called C</dev/mapper/luksdev>."
18853 msgstr ""
18854
18855 # type: verbatim
18856 #: ../fish/guestfish.pod:735
18857 #, no-wrap
18858 msgid ""
18859 " ><fs> luks-open /dev/sda2 luksdev\n"
18860 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18861 "\n"
18862 msgstr ""
18863
18864 # type: textblock
18865 #: ../fish/guestfish.pod:738
18866 msgid ""
18867 "Finally you have to tell LVM to scan for volume groups on the newly created "
18868 "mapper device:"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #: ../fish/guestfish.pod:741
18873 #, no-wrap
18874 msgid ""
18875 " vgscan\n"
18876 " vg-activate-all true\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: textblock
18881 #: ../fish/guestfish.pod:744
18882 msgid "The logical volume(s) can now be mounted in the usual way."
18883 msgstr ""
18884
18885 # type: textblock
18886 #: ../fish/guestfish.pod:746
18887 msgid ""
18888 "Before closing a LUKS device you must unmount any logical volumes on it and "
18889 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18890 "one.  Then you can close the mapper device:"
18891 msgstr ""
18892
18893 # type: verbatim
18894 #: ../fish/guestfish.pod:750
18895 #, no-wrap
18896 msgid ""
18897 " vg-activate false /dev/VG\n"
18898 " luks-close /dev/mapper/luksdev\n"
18899 "\n"
18900 msgstr ""
18901
18902 # type: =head1
18903 #: ../fish/guestfish.pod:753
18904 msgid "WINDOWS PATHS"
18905 msgstr ""
18906
18907 # type: textblock
18908 #: ../fish/guestfish.pod:755
18909 msgid ""
18910 "If a path is prefixed with C<win:> then you can use Windows-style paths "
18911 "(with some limitations).  The following commands are equivalent:"
18912 msgstr ""
18913
18914 # type: verbatim
18915 #: ../fish/guestfish.pod:758
18916 #, no-wrap
18917 msgid ""
18918 " file /WINDOWS/system32/config/system.LOG\n"
18919 "\n"
18920 msgstr ""
18921
18922 # type: verbatim
18923 #: ../fish/guestfish.pod:760
18924 #, no-wrap
18925 msgid ""
18926 " file win:/windows/system32/config/system.log\n"
18927 "\n"
18928 msgstr ""
18929
18930 # type: verbatim
18931 #: ../fish/guestfish.pod:762
18932 #, no-wrap
18933 msgid ""
18934 " file win:\\windows\\system32\\config\\system.log\n"
18935 "\n"
18936 msgstr ""
18937
18938 # type: verbatim
18939 #: ../fish/guestfish.pod:764
18940 #, no-wrap
18941 msgid ""
18942 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
18943 "\n"
18944 msgstr ""
18945
18946 # type: textblock
18947 #: ../fish/guestfish.pod:766
18948 msgid ""
18949 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
18950 "handles case insensitivity like Windows would.  This only works in argument "
18951 "positions that expect a path."
18952 msgstr ""
18953
18954 # type: =head1
18955 #: ../fish/guestfish.pod:770
18956 msgid "UPLOADING AND DOWNLOADING FILES"
18957 msgstr ""
18958
18959 # type: textblock
18960 #: ../fish/guestfish.pod:772
18961 msgid ""
18962 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18963 "others which upload from or download to a local file, you can use the "
18964 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18965 msgstr ""
18966
18967 # type: verbatim
18968 #: ../fish/guestfish.pod:776
18969 #, no-wrap
18970 msgid ""
18971 " upload - /foo\n"
18972 "\n"
18973 msgstr ""
18974
18975 # type: textblock
18976 #: ../fish/guestfish.pod:778
18977 msgid ""
18978 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18979 msgstr ""
18980
18981 # type: verbatim
18982 #: ../fish/guestfish.pod:781
18983 #, no-wrap
18984 msgid ""
18985 " tar-out /etc - | tar tf -\n"
18986 "\n"
18987 msgstr ""
18988
18989 # type: textblock
18990 #: ../fish/guestfish.pod:783
18991 msgid ""
18992 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18993 "command (see L</PIPES>)."
18994 msgstr ""
18995
18996 # type: textblock
18997 #: ../fish/guestfish.pod:786
18998 msgid ""
18999 "When using C<-> to read from stdin, the input is read up to the end of "
19000 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19001 "some arbitrary end marker:"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #: ../fish/guestfish.pod:790
19006 #, no-wrap
19007 msgid ""
19008 " upload -<<END /foo\n"
19009 " input line 1\n"
19010 " input line 2\n"
19011 " input line 3\n"
19012 " END\n"
19013 "\n"
19014 msgstr ""
19015
19016 # type: textblock
19017 #: ../fish/guestfish.pod:796
19018 msgid ""
19019 "Any string of characters can be used instead of C<END>.  The end marker must "
19020 "appear on a line of its own, without any preceeding or following characters "
19021 "(not even spaces)."
19022 msgstr ""
19023
19024 # type: textblock
19025 #: ../fish/guestfish.pod:800
19026 msgid ""
19027 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19028 "upload local files (so-called \"FileIn\" parameters in the generator)."
19029 msgstr ""
19030
19031 # type: =head1
19032 #: ../fish/guestfish.pod:803
19033 msgid "EXIT ON ERROR BEHAVIOUR"
19034 msgstr ""
19035
19036 # type: textblock
19037 #: ../fish/guestfish.pod:805
19038 msgid ""
19039 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19040 "taking commands from a human over a tty), and will exit on the first error "
19041 "in non-interactive mode (scripts, commands given on the command line)."
19042 msgstr ""
19043
19044 # type: textblock
19045 #: ../fish/guestfish.pod:810
19046 msgid ""
19047 "If you prefix a command with a I<-> character, then that command will not "
19048 "cause guestfish to exit, even if that (one) command returns an error."
19049 msgstr ""
19050
19051 # type: =head1
19052 #: ../fish/guestfish.pod:814
19053 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19054 msgstr ""
19055
19056 # type: textblock
19057 #: ../fish/guestfish.pod:816
19058 msgid ""
19059 "Guestfish can be remote-controlled over a socket.  This is useful "
19060 "particularly in shell scripts where you want to make several different "
19061 "changes to a filesystem, but you don't want the overhead of starting up a "
19062 "guestfish process each time."
19063 msgstr ""
19064
19065 # type: textblock
19066 #: ../fish/guestfish.pod:821
19067 msgid "Start a guestfish server process using:"
19068 msgstr ""
19069
19070 # type: verbatim
19071 #: ../fish/guestfish.pod:823
19072 #, no-wrap
19073 msgid ""
19074 " eval \"`guestfish --listen`\"\n"
19075 "\n"
19076 msgstr ""
19077
19078 # type: textblock
19079 #: ../fish/guestfish.pod:825
19080 msgid "and then send it commands by doing:"
19081 msgstr ""
19082
19083 # type: verbatim
19084 #: ../fish/guestfish.pod:827
19085 #, no-wrap
19086 msgid ""
19087 " guestfish --remote cmd [...]\n"
19088 "\n"
19089 msgstr ""
19090
19091 # type: textblock
19092 #: ../fish/guestfish.pod:829
19093 msgid "To cause the server to exit, send it the exit command:"
19094 msgstr ""
19095
19096 # type: verbatim
19097 #: ../fish/guestfish.pod:831
19098 #, no-wrap
19099 msgid ""
19100 " guestfish --remote exit\n"
19101 "\n"
19102 msgstr ""
19103
19104 # type: textblock
19105 #: ../fish/guestfish.pod:833
19106 msgid ""
19107 "Note that the server will normally exit if there is an error in a command.  "
19108 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19109 "BEHAVIOUR>."
19110 msgstr ""
19111
19112 # type: =head2
19113 #: ../fish/guestfish.pod:837
19114 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19115 msgstr ""
19116
19117 # type: textblock
19118 #: ../fish/guestfish.pod:839
19119 msgid ""
19120 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19121 "is how the I<--remote> option knows where to send the commands.  You can "
19122 "have several guestfish listener processes running using:"
19123 msgstr ""
19124
19125 # type: verbatim
19126 #: ../fish/guestfish.pod:843
19127 #, no-wrap
19128 msgid ""
19129 " eval \"`guestfish --listen`\"\n"
19130 " pid1=$GUESTFISH_PID\n"
19131 " eval \"`guestfish --listen`\"\n"
19132 " pid2=$GUESTFISH_PID\n"
19133 " ...\n"
19134 " guestfish --remote=$pid1 cmd\n"
19135 " guestfish --remote=$pid2 cmd\n"
19136 "\n"
19137 msgstr ""
19138
19139 # type: =head2
19140 #: ../fish/guestfish.pod:851
19141 msgid "REMOTE CONTROL AND CSH"
19142 msgstr ""
19143
19144 # type: textblock
19145 #: ../fish/guestfish.pod:853
19146 msgid ""
19147 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19148 "option:"
19149 msgstr ""
19150
19151 # type: verbatim
19152 #: ../fish/guestfish.pod:856
19153 #, no-wrap
19154 msgid ""
19155 " eval \"`guestfish --listen --csh`\"\n"
19156 "\n"
19157 msgstr ""
19158
19159 # type: =head2
19160 #: ../fish/guestfish.pod:858
19161 msgid "REMOTE CONTROL DETAILS"
19162 msgstr ""
19163
19164 # type: textblock
19165 #: ../fish/guestfish.pod:860
19166 msgid ""
19167 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19168 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19169 "and C<$PID> is the process ID of the server."
19170 msgstr ""
19171
19172 # type: textblock
19173 #: ../fish/guestfish.pod:864
19174 msgid "Guestfish client and server versions must match exactly."
19175 msgstr ""
19176
19177 # type: =head1
19178 #: ../fish/guestfish.pod:866
19179 msgid "PREPARED DISK IMAGES"
19180 msgstr ""
19181
19182 # type: textblock
19183 #: ../fish/guestfish.pod:868
19184 msgid ""
19185 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19186 "preformatted disk images that guestfish can make for you to save typing.  "
19187 "This is particularly useful for testing purposes.  This option is used "
19188 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19189 "can be mixed with I<-a>)."
19190 msgstr ""
19191
19192 # type: textblock
19193 #: ../fish/guestfish.pod:874
19194 msgid ""
19195 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19196 "the second and so on.  Existing files in the current directory are "
19197 "I<overwritten>."
19198 msgstr ""
19199
19200 # type: textblock
19201 #: ../fish/guestfish.pod:878
19202 msgid ""
19203 "The type briefly describes how the disk should be sized, partitioned, how "
19204 "filesystem(s) should be created, and how content should be added.  "
19205 "Optionally the type can be followed by extra parameters, separated by C<:> "
19206 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19207 "allocated disk, containing a single partition, with the partition formatted "
19208 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19209 "disk instead."
19210 msgstr ""
19211
19212 # type: textblock
19213 #: ../fish/guestfish.pod:886
19214 msgid "To list the available types and any extra parameters they take, run:"
19215 msgstr ""
19216
19217 # type: textblock
19218 #: ../fish/guestfish.pod:890
19219 msgid ""
19220 "Note that the prepared filesystem is not mounted.  You would usually have to "
19221 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19222 msgstr ""
19223
19224 # type: textblock
19225 #: ../fish/guestfish.pod:894
19226 msgid ""
19227 "If any I<-N> or I<--new> options are given, the guest is automatically "
19228 "launched."
19229 msgstr ""
19230
19231 # type: textblock
19232 #: ../fish/guestfish.pod:899
19233 msgid "Create a 100MB disk with an ext4-formatted partition:"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #: ../fish/guestfish.pod:901
19238 #, no-wrap
19239 msgid ""
19240 " guestfish -N fs:ext4\n"
19241 "\n"
19242 msgstr ""
19243
19244 # type: textblock
19245 #: ../fish/guestfish.pod:903
19246 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19247 msgstr ""
19248
19249 # type: verbatim
19250 #: ../fish/guestfish.pod:905
19251 #, no-wrap
19252 msgid ""
19253 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19254 "\n"
19255 msgstr ""
19256
19257 # type: textblock
19258 #: ../fish/guestfish.pod:907
19259 msgid "Create a blank 200MB disk:"
19260 msgstr ""
19261
19262 # type: verbatim
19263 #: ../fish/guestfish.pod:909
19264 #, no-wrap
19265 msgid ""
19266 " guestfish -N disk:200M\n"
19267 "\n"
19268 msgstr ""
19269
19270 # type: =head1
19271 #: ../fish/guestfish.pod:911
19272 msgid "PROGRESS BARS"
19273 msgstr ""
19274
19275 # type: textblock
19276 #: ../fish/guestfish.pod:913
19277 msgid ""
19278 "Some (not all) long-running commands send progress notification messages as "
19279 "they are running.  Guestfish turns these messages into progress bars."
19280 msgstr ""
19281
19282 # type: textblock
19283 #: ../fish/guestfish.pod:917
19284 msgid ""
19285 "When a command that supports progress bars takes longer than two seconds to "
19286 "run, and if progress bars are enabled, then you will see one appearing below "
19287 "the command:"
19288 msgstr ""
19289
19290 # type: verbatim
19291 #: ../fish/guestfish.pod:921
19292 #, no-wrap
19293 msgid ""
19294 " ><fs> copy-size /large-file /another-file 2048M\n"
19295 " / 10% [#####-----------------------------------------] 00:30\n"
19296 "\n"
19297 msgstr ""
19298
19299 # type: textblock
19300 #: ../fish/guestfish.pod:924
19301 msgid ""
19302 "The spinner on the left hand side moves round once for every progress "
19303 "notification received from the backend.  This is a (reasonably) golden "
19304 "assurance that the command is \"doing something\" even if the progress bar "
19305 "is not moving, because the command is able to send the progress "
19306 "notifications.  When the bar reaches 100% and the command finishes, the "
19307 "spinner disappears."
19308 msgstr ""
19309
19310 # type: textblock
19311 #: ../fish/guestfish.pod:931
19312 msgid ""
19313 "Progress bars are enabled by default when guestfish is used interactively.  "
19314 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19315 "and you can disable them completely using I<--no-progress-bars>."
19316 msgstr ""
19317
19318 # type: =head1
19319 #: ../fish/guestfish.pod:936
19320 msgid "GUESTFISH COMMANDS"
19321 msgstr ""
19322
19323 # type: textblock
19324 #: ../fish/guestfish.pod:938
19325 msgid ""
19326 "The commands in this section are guestfish convenience commands, in other "
19327 "words, they are not part of the L<guestfs(3)> API."
19328 msgstr ""
19329
19330 # type: =head2
19331 #: ../fish/guestfish.pod:941
19332 msgid "help"
19333 msgstr ""
19334
19335 # type: verbatim
19336 #: ../fish/guestfish.pod:943
19337 #, no-wrap
19338 msgid ""
19339 " help\n"
19340 " help cmd\n"
19341 "\n"
19342 msgstr ""
19343
19344 # type: textblock
19345 #: ../fish/guestfish.pod:946
19346 msgid "Without any parameter, this provides general help."
19347 msgstr ""
19348
19349 # type: textblock
19350 #: ../fish/guestfish.pod:948
19351 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19352 msgstr ""
19353
19354 # type: =head2
19355 #: ../fish/guestfish.pod:950
19356 msgid "quit | exit"
19357 msgstr ""
19358
19359 # type: textblock
19360 #: ../fish/guestfish.pod:952
19361 msgid "This exits guestfish.  You can also use C<^D> key."
19362 msgstr ""
19363
19364 # type: textblock
19365 #: ../fish/guestfish.pod:954
19366 msgid "@FISH_COMMANDS@"
19367 msgstr ""
19368
19369 # type: =head1
19370 #: ../fish/guestfish.pod:956
19371 msgid "COMMANDS"
19372 msgstr ""
19373
19374 # type: =head1
19375 #: ../fish/guestfish.pod:960 ../test-tool/libguestfs-test-tool.pod:83
19376 msgid "EXIT CODE"
19377 msgstr ""
19378
19379 # type: textblock
19380 #: ../fish/guestfish.pod:962
19381 msgid ""
19382 "guestfish returns 0 if the commands completed without error, or 1 if there "
19383 "was an error."
19384 msgstr ""
19385
19386 # type: =item
19387 #: ../fish/guestfish.pod:969
19388 msgid "EDITOR"
19389 msgstr ""
19390
19391 # type: textblock
19392 #: ../fish/guestfish.pod:971
19393 msgid ""
19394 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19395 "C<vi>."
19396 msgstr ""
19397
19398 # type: =item
19399 #: ../fish/guestfish.pod:974
19400 msgid "GUESTFISH_PID"
19401 msgstr ""
19402
19403 # type: textblock
19404 #: ../fish/guestfish.pod:976
19405 msgid ""
19406 "Used with the I<--remote> option to specify the remote guestfish process to "
19407 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19408 msgstr ""
19409
19410 # type: =item
19411 #: ../fish/guestfish.pod:980
19412 msgid "HEXEDITOR"
19413 msgstr ""
19414
19415 # type: textblock
19416 #: ../fish/guestfish.pod:982
19417 msgid ""
19418 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19419 "not specified, the external L<hexedit(1)> program is used."
19420 msgstr ""
19421
19422 # type: =item
19423 #: ../fish/guestfish.pod:986
19424 msgid "HOME"
19425 msgstr ""
19426
19427 # type: textblock
19428 #: ../fish/guestfish.pod:988
19429 msgid ""
19430 "If compiled with GNU readline support, various files in the home directory "
19431 "can be used.  See L</FILES>."
19432 msgstr ""
19433
19434 # type: textblock
19435 #: ../fish/guestfish.pod:997
19436 msgid ""
19437 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19438 "effect as using the B<-v> option."
19439 msgstr ""
19440
19441 # type: textblock
19442 #: ../fish/guestfish.pod:1009
19443 msgid ""
19444 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19445 "the discussion of paths in L<guestfs(3)>."
19446 msgstr ""
19447
19448 # type: textblock
19449 #: ../fish/guestfish.pod:1020
19450 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19451 msgstr ""
19452
19453 # type: =item
19454 #: ../fish/guestfish.pod:1022
19455 msgid "PAGER"
19456 msgstr ""
19457
19458 # type: textblock
19459 #: ../fish/guestfish.pod:1024
19460 msgid ""
19461 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19462 "C<more>."
19463 msgstr ""
19464
19465 # type: =head1
19466 #: ../fish/guestfish.pod:1039 ../test-tool/libguestfs-test-tool.pod:88
19467 msgid "FILES"
19468 msgstr ""
19469
19470 # type: =item
19471 #: ../fish/guestfish.pod:1043
19472 msgid "$HOME/.guestfish"
19473 msgstr ""
19474
19475 # type: textblock
19476 #: ../fish/guestfish.pod:1045
19477 msgid ""
19478 "If compiled with GNU readline support, then the command history is saved in "
19479 "this file."
19480 msgstr ""
19481
19482 # type: =item
19483 #: ../fish/guestfish.pod:1048
19484 msgid "$HOME/.inputrc"
19485 msgstr ""
19486
19487 # type: =item
19488 #: ../fish/guestfish.pod:1050
19489 msgid "/etc/inputrc"
19490 msgstr ""
19491
19492 # type: textblock
19493 #: ../fish/guestfish.pod:1052
19494 msgid ""
19495 "If compiled with GNU readline support, then these files can be used to "
19496 "configure readline.  For further information, please see L<readline(3)/"
19497 "INITIALIZATION FILE>."
19498 msgstr ""
19499
19500 # type: textblock
19501 #: ../fish/guestfish.pod:1056
19502 msgid "To write rules which only apply to guestfish, use:"
19503 msgstr ""
19504
19505 # type: verbatim
19506 #: ../fish/guestfish.pod:1058
19507 #, no-wrap
19508 msgid ""
19509 " $if guestfish\n"
19510 " ...\n"
19511 " $endif\n"
19512 "\n"
19513 msgstr ""
19514
19515 # type: textblock
19516 #: ../fish/guestfish.pod:1062
19517 msgid ""
19518 "Variables that you can set in inputrc that change the behaviour of guestfish "
19519 "in useful ways include:"
19520 msgstr ""
19521
19522 # type: =item
19523 #: ../fish/guestfish.pod:1067
19524 msgid "completion-ignore-case (default: on)"
19525 msgstr ""
19526
19527 # type: textblock
19528 #: ../fish/guestfish.pod:1069
19529 msgid ""
19530 "By default, guestfish will ignore case when tab-completing paths on the "
19531 "disk.  Use:"
19532 msgstr ""
19533
19534 # type: verbatim
19535 #: ../fish/guestfish.pod:1072
19536 #, no-wrap
19537 msgid ""
19538 " set completion-ignore-case off\n"
19539 "\n"
19540 msgstr ""
19541
19542 # type: textblock
19543 #: ../fish/guestfish.pod:1074
19544 msgid "to make guestfish case sensitive."
19545 msgstr ""
19546
19547 # type: =item
19548 #: ../fish/guestfish.pod:1078
19549 msgid "test1.img"
19550 msgstr ""
19551
19552 # type: =item
19553 #: ../fish/guestfish.pod:1080
19554 msgid "test2.img (etc)"
19555 msgstr ""
19556
19557 # type: textblock
19558 #: ../fish/guestfish.pod:1082
19559 msgid ""
19560 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
19561 "will be created in the file C<test1.img> in the current directory.  The "
19562 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
19563 "the same name will be overwritten."
19564 msgstr ""
19565
19566 # type: textblock
19567 #: ../fish/guestfish.pod:1091
19568 msgid ""
19569 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-df(1)>, "
19570 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-"
19571 "filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)"
19572 ">, L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-win-reg(1)>, "
19573 "L<hexedit(1)>."
19574 msgstr ""
19575
19576 # type: textblock
19577 #: ../fish/guestfish.pod:1117 ../test-tool/libguestfs-test-tool.pod:124
19578 #: ../fuse/guestmount.pod:253
19579 msgid ""
19580 "This program is free software; you can redistribute it and/or modify it "
19581 "under the terms of the GNU General Public License as published by the Free "
19582 "Software Foundation; either version 2 of the License, or (at your option) "
19583 "any later version."
19584 msgstr ""
19585
19586 # type: textblock
19587 #: ../fish/guestfish.pod:1122 ../test-tool/libguestfs-test-tool.pod:129
19588 #: ../fuse/guestmount.pod:258
19589 msgid ""
19590 "This program is distributed in the hope that it will be useful, but WITHOUT "
19591 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
19592 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
19593 "more details."
19594 msgstr ""
19595
19596 # type: textblock
19597 #: ../fish/guestfish.pod:1127 ../test-tool/libguestfs-test-tool.pod:134
19598 #: ../fuse/guestmount.pod:263
19599 msgid ""
19600 "You should have received a copy of the GNU General Public License along with "
19601 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
19602 "Ave, Cambridge, MA 02139, USA."
19603 msgstr ""
19604
19605 # type: =head2
19606 #: ../fish/guestfish-actions.pod:1
19607 msgid "add-cdrom"
19608 msgstr ""
19609
19610 # type: verbatim
19611 #: ../fish/guestfish-actions.pod:3
19612 #, no-wrap
19613 msgid ""
19614 " add-cdrom filename\n"
19615 "\n"
19616 msgstr ""
19617
19618 # type: textblock
19619 #: ../fish/guestfish-actions.pod:15
19620 msgid ""
19621 "This call checks for the existence of C<filename>.  This stops you from "
19622 "specifying other types of drive which are supported by qemu such as C<nbd:> "
19623 "and C<http:> URLs.  To specify those, use the general L</config> call "
19624 "instead."
19625 msgstr ""
19626
19627 # type: textblock
19628 #: ../fish/guestfish-actions.pod:22
19629 msgid ""
19630 "If you just want to add an ISO file (often you use this as an efficient way "
19631 "to transfer large files into the guest), then you should probably use L</add-"
19632 "drive-ro> instead."
19633 msgstr ""
19634
19635 # type: =head2
19636 #: ../fish/guestfish-actions.pod:35
19637 msgid "add-domain"
19638 msgstr ""
19639
19640 # type: =head2
19641 #: ../fish/guestfish-actions.pod:37
19642 msgid "domain"
19643 msgstr ""
19644
19645 # type: verbatim
19646 #: ../fish/guestfish-actions.pod:39
19647 #, no-wrap
19648 msgid ""
19649 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
19650 "\n"
19651 msgstr ""
19652
19653 # type: textblock
19654 #: ../fish/guestfish-actions.pod:41
19655 msgid ""
19656 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
19657 "It works by connecting to libvirt, requesting the domain and domain XML from "
19658 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
19659 msgstr ""
19660
19661 # type: textblock
19662 #: ../fish/guestfish-actions.pod:58
19663 msgid ""
19664 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
19665 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
19666 "libvirt URI (or one set through an environment variable, see the libvirt "
19667 "documentation for full details).  If you are using the C API directly then "
19668 "it is more flexible to create the libvirt connection object yourself, get "
19669 "the domain object, and call L</add-libvirt-dom>."
19670 msgstr ""
19671
19672 # type: textblock
19673 #: ../fish/guestfish-actions.pod:66
19674 msgid ""
19675 "The other optional parameters are passed directly through to L</add-drive-"
19676 "opts>."
19677 msgstr ""
19678
19679 # type: textblock
19680 #: ../fish/guestfish-actions.pod:69 ../fish/guestfish-actions.pod:133
19681 #: ../fish/guestfish-actions.pod:2844
19682 msgid ""
19683 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
19684 msgstr ""
19685
19686 # type: =head2
19687 #: ../fish/guestfish-actions.pod:71
19688 msgid "add-drive"
19689 msgstr ""
19690
19691 # type: verbatim
19692 #: ../fish/guestfish-actions.pod:73
19693 #, no-wrap
19694 msgid ""
19695 " add-drive filename\n"
19696 "\n"
19697 msgstr ""
19698
19699 # type: textblock
19700 #: ../fish/guestfish-actions.pod:75
19701 msgid ""
19702 "This function is the equivalent of calling L</add-drive-opts> with no "
19703 "optional parameters, so the disk is added writable, with the format being "
19704 "detected automatically."
19705 msgstr ""
19706
19707 # type: textblock
19708 #: ../fish/guestfish-actions.pod:79
19709 msgid ""
19710 "Automatic detection of the format opens you up to a potential security hole "
19711 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
19712 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
19713 "you should think about replacing calls to this function with calls to L</add-"
19714 "drive-opts>, and specifying the format."
19715 msgstr ""
19716
19717 # type: =head2
19718 #: ../fish/guestfish-actions.pod:86
19719 msgid "add-drive-opts"
19720 msgstr ""
19721
19722 # type: =head2
19723 #: ../fish/guestfish-actions.pod:88
19724 msgid "add"
19725 msgstr ""
19726
19727 # type: verbatim
19728 #: ../fish/guestfish-actions.pod:90
19729 #, no-wrap
19730 msgid ""
19731 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
19732 "\n"
19733 msgstr ""
19734
19735 # type: textblock
19736 #: ../fish/guestfish-actions.pod:117
19737 msgid ""
19738 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
19739 "add-drive-ro>) then the format is automatically detected.  Possible formats "
19740 "include C<raw> and C<qcow2>."
19741 msgstr ""
19742
19743 # type: textblock
19744 #: ../fish/guestfish-actions.pod:128
19745 msgid ""
19746 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
19747 "add-drive-with-if> call (q.v.)"
19748 msgstr ""
19749
19750 # type: =head2
19751 #: ../fish/guestfish-actions.pod:135
19752 msgid "add-drive-ro"
19753 msgstr ""
19754
19755 # type: =head2
19756 #: ../fish/guestfish-actions.pod:137
19757 msgid "add-ro"
19758 msgstr ""
19759
19760 # type: verbatim
19761 #: ../fish/guestfish-actions.pod:139
19762 #, no-wrap
19763 msgid ""
19764 " add-drive-ro filename\n"
19765 "\n"
19766 msgstr ""
19767
19768 # type: textblock
19769 #: ../fish/guestfish-actions.pod:141
19770 msgid ""
19771 "This function is the equivalent of calling L</add-drive-opts> with the "
19772 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
19773 "is added read-only, with the format being detected automatically."
19774 msgstr ""
19775
19776 # type: =head2
19777 #: ../fish/guestfish-actions.pod:146
19778 msgid "add-drive-ro-with-if"
19779 msgstr ""
19780
19781 # type: verbatim
19782 #: ../fish/guestfish-actions.pod:148
19783 #, no-wrap
19784 msgid ""
19785 " add-drive-ro-with-if filename iface\n"
19786 "\n"
19787 msgstr ""
19788
19789 # type: textblock
19790 #: ../fish/guestfish-actions.pod:150
19791 msgid ""
19792 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
19793 "interface emulation to use at run time."
19794 msgstr ""
19795
19796 # type: =head2
19797 #: ../fish/guestfish-actions.pod:160
19798 msgid "add-drive-with-if"
19799 msgstr ""
19800
19801 # type: verbatim
19802 #: ../fish/guestfish-actions.pod:162
19803 #, no-wrap
19804 msgid ""
19805 " add-drive-with-if filename iface\n"
19806 "\n"
19807 msgstr ""
19808
19809 # type: textblock
19810 #: ../fish/guestfish-actions.pod:164
19811 msgid ""
19812 "This is the same as L</add-drive> but it allows you to specify the QEMU "
19813 "interface emulation to use at run time."
19814 msgstr ""
19815
19816 # type: =head2
19817 #: ../fish/guestfish-actions.pod:174
19818 msgid "aug-clear"
19819 msgstr ""
19820
19821 # type: verbatim
19822 #: ../fish/guestfish-actions.pod:176
19823 #, no-wrap
19824 msgid ""
19825 " aug-clear augpath\n"
19826 "\n"
19827 msgstr ""
19828
19829 # type: =head2
19830 #: ../fish/guestfish-actions.pod:181
19831 msgid "aug-close"
19832 msgstr ""
19833
19834 # type: verbatim
19835 #: ../fish/guestfish-actions.pod:183
19836 #, no-wrap
19837 msgid ""
19838 " aug-close\n"
19839 "\n"
19840 msgstr ""
19841
19842 # type: textblock
19843 #: ../fish/guestfish-actions.pod:185
19844 msgid ""
19845 "Close the current Augeas handle and free up any resources used by it.  After "
19846 "calling this, you have to call L</aug-init> again before you can use any "
19847 "other Augeas functions."
19848 msgstr ""
19849
19850 # type: =head2
19851 #: ../fish/guestfish-actions.pod:190
19852 msgid "aug-defnode"
19853 msgstr ""
19854
19855 # type: verbatim
19856 #: ../fish/guestfish-actions.pod:192
19857 #, no-wrap
19858 msgid ""
19859 " aug-defnode name expr val\n"
19860 "\n"
19861 msgstr ""
19862
19863 # type: textblock
19864 #: ../fish/guestfish-actions.pod:197
19865 msgid ""
19866 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
19867 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
19868 "containing that single node."
19869 msgstr ""
19870
19871 # type: =head2
19872 #: ../fish/guestfish-actions.pod:205
19873 msgid "aug-defvar"
19874 msgstr ""
19875
19876 # type: verbatim
19877 #: ../fish/guestfish-actions.pod:207
19878 #, no-wrap
19879 msgid ""
19880 " aug-defvar name expr\n"
19881 "\n"
19882 msgstr ""
19883
19884 # type: =head2
19885 #: ../fish/guestfish-actions.pod:216
19886 msgid "aug-get"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #: ../fish/guestfish-actions.pod:218
19891 #, no-wrap
19892 msgid ""
19893 " aug-get augpath\n"
19894 "\n"
19895 msgstr ""
19896
19897 # type: =head2
19898 #: ../fish/guestfish-actions.pod:223
19899 msgid "aug-init"
19900 msgstr ""
19901
19902 # type: verbatim
19903 #: ../fish/guestfish-actions.pod:225
19904 #, no-wrap
19905 msgid ""
19906 " aug-init root flags\n"
19907 "\n"
19908 msgstr ""
19909
19910 # type: textblock
19911 #: ../fish/guestfish-actions.pod:231
19912 msgid "You must call this before using any other L</aug-*> commands."
19913 msgstr ""
19914
19915 # type: textblock
19916 #: ../fish/guestfish-actions.pod:266
19917 msgid "Do not load the tree in L</aug-init>."
19918 msgstr ""
19919
19920 # type: textblock
19921 #: ../fish/guestfish-actions.pod:270
19922 msgid "To close the handle, you can call L</aug-close>."
19923 msgstr ""
19924
19925 # type: =head2
19926 #: ../fish/guestfish-actions.pod:274
19927 msgid "aug-insert"
19928 msgstr ""
19929
19930 # type: verbatim
19931 #: ../fish/guestfish-actions.pod:276
19932 #, no-wrap
19933 msgid ""
19934 " aug-insert augpath label true|false\n"
19935 "\n"
19936 msgstr ""
19937
19938 # type: =head2
19939 #: ../fish/guestfish-actions.pod:286
19940 msgid "aug-load"
19941 msgstr ""
19942
19943 # type: verbatim
19944 #: ../fish/guestfish-actions.pod:288
19945 #, no-wrap
19946 msgid ""
19947 " aug-load\n"
19948 "\n"
19949 msgstr ""
19950
19951 # type: =head2
19952 #: ../fish/guestfish-actions.pod:295
19953 msgid "aug-ls"
19954 msgstr ""
19955
19956 # type: verbatim
19957 #: ../fish/guestfish-actions.pod:297
19958 #, no-wrap
19959 msgid ""
19960 " aug-ls augpath\n"
19961 "\n"
19962 msgstr ""
19963
19964 # type: textblock
19965 #: ../fish/guestfish-actions.pod:299
19966 msgid ""
19967 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
19968 "resulting nodes into alphabetical order."
19969 msgstr ""
19970
19971 # type: =head2
19972 #: ../fish/guestfish-actions.pod:302
19973 msgid "aug-match"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #: ../fish/guestfish-actions.pod:304
19978 #, no-wrap
19979 msgid ""
19980 " aug-match augpath\n"
19981 "\n"
19982 msgstr ""
19983
19984 # type: =head2
19985 #: ../fish/guestfish-actions.pod:310
19986 msgid "aug-mv"
19987 msgstr ""
19988
19989 # type: verbatim
19990 #: ../fish/guestfish-actions.pod:312
19991 #, no-wrap
19992 msgid ""
19993 " aug-mv src dest\n"
19994 "\n"
19995 msgstr ""
19996
19997 # type: =head2
19998 #: ../fish/guestfish-actions.pod:317
19999 msgid "aug-rm"
20000 msgstr ""
20001
20002 # type: verbatim
20003 #: ../fish/guestfish-actions.pod:319
20004 #, no-wrap
20005 msgid ""
20006 " aug-rm augpath\n"
20007 "\n"
20008 msgstr ""
20009
20010 # type: =head2
20011 #: ../fish/guestfish-actions.pod:325
20012 msgid "aug-save"
20013 msgstr ""
20014
20015 # type: verbatim
20016 #: ../fish/guestfish-actions.pod:327
20017 #, no-wrap
20018 msgid ""
20019 " aug-save\n"
20020 "\n"
20021 msgstr ""
20022
20023 # type: textblock
20024 #: ../fish/guestfish-actions.pod:331
20025 msgid ""
20026 "The flags which were passed to L</aug-init> affect exactly how files are "
20027 "saved."
20028 msgstr ""
20029
20030 # type: =head2
20031 #: ../fish/guestfish-actions.pod:334
20032 msgid "aug-set"
20033 msgstr ""
20034
20035 # type: verbatim
20036 #: ../fish/guestfish-actions.pod:336
20037 #, no-wrap
20038 msgid ""
20039 " aug-set augpath val\n"
20040 "\n"
20041 msgstr ""
20042
20043 # type: textblock
20044 #: ../fish/guestfish-actions.pod:340
20045 msgid ""
20046 "In the Augeas API, it is possible to clear a node by setting the value to "
20047 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
20048 "this call.  Instead you must use the L</aug-clear> call."
20049 msgstr ""
20050
20051 # type: =head2
20052 #: ../fish/guestfish-actions.pod:345
20053 msgid "available"
20054 msgstr ""
20055
20056 # type: verbatim
20057 #: ../fish/guestfish-actions.pod:347
20058 #, no-wrap
20059 msgid ""
20060 " available 'groups ...'\n"
20061 "\n"
20062 msgstr ""
20063
20064 # type: textblock
20065 #: ../fish/guestfish-actions.pod:353
20066 msgid ""
20067 "The libguestfs groups, and the functions that those groups correspond to, "
20068 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
20069 "runtime by calling L</available-all-groups>."
20070 msgstr ""
20071
20072 # type: textblock
20073 #: ../fish/guestfish-actions.pod:377
20074 msgid "You must call L</launch> before calling this function."
20075 msgstr ""
20076
20077 # type: textblock
20078 #: ../fish/guestfish-actions.pod:399
20079 msgid ""
20080 "This call was added in version C<1.0.80>.  In previous versions of "
20081 "libguestfs all you could do would be to speculatively execute a command to "
20082 "find out if the daemon implemented it.  See also L</version>."
20083 msgstr ""
20084
20085 # type: =head2
20086 #: ../fish/guestfish-actions.pod:406
20087 msgid "available-all-groups"
20088 msgstr ""
20089
20090 # type: verbatim
20091 #: ../fish/guestfish-actions.pod:408
20092 #, no-wrap
20093 msgid ""
20094 " available-all-groups\n"
20095 "\n"
20096 msgstr ""
20097
20098 # type: textblock
20099 #: ../fish/guestfish-actions.pod:410
20100 msgid ""
20101 "This command returns a list of all optional groups that this daemon knows "
20102 "about.  Note this returns both supported and unsupported groups.  To find "
20103 "out which ones the daemon can actually support you have to call L</"
20104 "available> on each member of the returned list."
20105 msgstr ""
20106
20107 # type: textblock
20108 #: ../fish/guestfish-actions.pod:416
20109 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
20110 msgstr ""
20111
20112 # type: =head2
20113 #: ../fish/guestfish-actions.pod:418
20114 msgid "base64-in"
20115 msgstr ""
20116
20117 # type: verbatim
20118 #: ../fish/guestfish-actions.pod:420
20119 #, no-wrap
20120 msgid ""
20121 " base64-in (base64file|-) filename\n"
20122 "\n"
20123 msgstr ""
20124
20125 # type: textblock
20126 #: ../fish/guestfish-actions.pod:425 ../fish/guestfish-actions.pod:434
20127 #: ../fish/guestfish-actions.pod:658 ../fish/guestfish-actions.pod:827
20128 #: ../fish/guestfish-actions.pod:846 ../fish/guestfish-actions.pod:1223
20129 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4211
20130 #: ../fish/guestfish-actions.pod:4222 ../fish/guestfish-actions.pod:4233
20131 #: ../fish/guestfish-actions.pod:4285 ../fish/guestfish-actions.pod:4294
20132 #: ../fish/guestfish-actions.pod:4348 ../fish/guestfish-actions.pod:4371
20133 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
20134 msgstr ""
20135
20136 # type: =head2
20137 #: ../fish/guestfish-actions.pod:427
20138 msgid "base64-out"
20139 msgstr ""
20140
20141 # type: verbatim
20142 #: ../fish/guestfish-actions.pod:429
20143 #, no-wrap
20144 msgid ""
20145 " base64-out filename (base64file|-)\n"
20146 "\n"
20147 msgstr ""
20148
20149 # type: =head2
20150 #: ../fish/guestfish-actions.pod:436
20151 msgid "blockdev-flushbufs"
20152 msgstr ""
20153
20154 # type: verbatim
20155 #: ../fish/guestfish-actions.pod:438
20156 #, no-wrap
20157 msgid ""
20158 " blockdev-flushbufs device\n"
20159 "\n"
20160 msgstr ""
20161
20162 # type: =head2
20163 #: ../fish/guestfish-actions.pod:445
20164 msgid "blockdev-getbsz"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #: ../fish/guestfish-actions.pod:447
20169 #, no-wrap
20170 msgid ""
20171 " blockdev-getbsz device\n"
20172 "\n"
20173 msgstr ""
20174
20175 # type: =head2
20176 #: ../fish/guestfish-actions.pod:456
20177 msgid "blockdev-getro"
20178 msgstr ""
20179
20180 # type: verbatim
20181 #: ../fish/guestfish-actions.pod:458
20182 #, no-wrap
20183 msgid ""
20184 " blockdev-getro device\n"
20185 "\n"
20186 msgstr ""
20187
20188 # type: =head2
20189 #: ../fish/guestfish-actions.pod:465
20190 msgid "blockdev-getsize64"
20191 msgstr ""
20192
20193 # type: verbatim
20194 #: ../fish/guestfish-actions.pod:467
20195 #, no-wrap
20196 msgid ""
20197 " blockdev-getsize64 device\n"
20198 "\n"
20199 msgstr ""
20200
20201 # type: textblock
20202 #: ../fish/guestfish-actions.pod:471
20203 msgid "See also L</blockdev-getsz>."
20204 msgstr ""
20205
20206 # type: =head2
20207 #: ../fish/guestfish-actions.pod:475
20208 msgid "blockdev-getss"
20209 msgstr ""
20210
20211 # type: verbatim
20212 #: ../fish/guestfish-actions.pod:477
20213 #, no-wrap
20214 msgid ""
20215 " blockdev-getss device\n"
20216 "\n"
20217 msgstr ""
20218
20219 # type: textblock
20220 #: ../fish/guestfish-actions.pod:482
20221 msgid ""
20222 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
20223 msgstr ""
20224
20225 # type: =head2
20226 #: ../fish/guestfish-actions.pod:487
20227 msgid "blockdev-getsz"
20228 msgstr ""
20229
20230 # type: verbatim
20231 #: ../fish/guestfish-actions.pod:489
20232 #, no-wrap
20233 msgid ""
20234 " blockdev-getsz device\n"
20235 "\n"
20236 msgstr ""
20237
20238 # type: textblock
20239 #: ../fish/guestfish-actions.pod:494
20240 msgid ""
20241 "See also L</blockdev-getss> for the real sector size of the device, and L</"
20242 "blockdev-getsize64> for the more useful I<size in bytes>."
20243 msgstr ""
20244
20245 # type: =head2
20246 #: ../fish/guestfish-actions.pod:500
20247 msgid "blockdev-rereadpt"
20248 msgstr ""
20249
20250 # type: verbatim
20251 #: ../fish/guestfish-actions.pod:502
20252 #, no-wrap
20253 msgid ""
20254 " blockdev-rereadpt device\n"
20255 "\n"
20256 msgstr ""
20257
20258 # type: =head2
20259 #: ../fish/guestfish-actions.pod:508
20260 msgid "blockdev-setbsz"
20261 msgstr ""
20262
20263 # type: verbatim
20264 #: ../fish/guestfish-actions.pod:510
20265 #, no-wrap
20266 msgid ""
20267 " blockdev-setbsz device blocksize\n"
20268 "\n"
20269 msgstr ""
20270
20271 # type: =head2
20272 #: ../fish/guestfish-actions.pod:519
20273 msgid "blockdev-setro"
20274 msgstr ""
20275
20276 # type: verbatim
20277 #: ../fish/guestfish-actions.pod:521
20278 #, no-wrap
20279 msgid ""
20280 " blockdev-setro device\n"
20281 "\n"
20282 msgstr ""
20283
20284 # type: =head2
20285 #: ../fish/guestfish-actions.pod:527
20286 msgid "blockdev-setrw"
20287 msgstr ""
20288
20289 # type: verbatim
20290 #: ../fish/guestfish-actions.pod:529
20291 #, no-wrap
20292 msgid ""
20293 " blockdev-setrw device\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: =head2
20298 #: ../fish/guestfish-actions.pod:535
20299 msgid "case-sensitive-path"
20300 msgstr ""
20301
20302 # type: verbatim
20303 #: ../fish/guestfish-actions.pod:537
20304 #, no-wrap
20305 msgid ""
20306 " case-sensitive-path path\n"
20307 "\n"
20308 msgstr ""
20309
20310 # type: textblock
20311 #: ../fish/guestfish-actions.pod:561
20312 msgid ""
20313 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
20314 "WINDOWS/system32\"> (the exact return value would depend on details of how "
20315 "the directories were originally created under Windows)."
20316 msgstr ""
20317
20318 # type: textblock
20319 #: ../fish/guestfish-actions.pod:569
20320 msgid "See also L</realpath>."
20321 msgstr ""
20322
20323 # type: =head2
20324 #: ../fish/guestfish-actions.pod:571
20325 msgid "cat"
20326 msgstr ""
20327
20328 # type: verbatim
20329 #: ../fish/guestfish-actions.pod:573
20330 #, no-wrap
20331 msgid ""
20332 " cat path\n"
20333 "\n"
20334 msgstr ""
20335
20336 # type: textblock
20337 #: ../fish/guestfish-actions.pod:577
20338 msgid ""
20339 "Note that this function cannot correctly handle binary files (specifically, "
20340 "files containing C<\\0> character which is treated as end of string).  For "
20341 "those you need to use the L</read-file> or L</download> functions which have "
20342 "a more complex interface."
20343 msgstr ""
20344
20345 # type: =head2
20346 #: ../fish/guestfish-actions.pod:585
20347 msgid "checksum"
20348 msgstr ""
20349
20350 # type: verbatim
20351 #: ../fish/guestfish-actions.pod:587
20352 #, no-wrap
20353 msgid ""
20354 " checksum csumtype path\n"
20355 "\n"
20356 msgstr ""
20357
20358 # type: textblock
20359 #: ../fish/guestfish-actions.pod:630
20360 msgid "To get the checksum for a device, use L</checksum-device>."
20361 msgstr ""
20362
20363 # type: textblock
20364 #: ../fish/guestfish-actions.pod:632
20365 msgid "To get the checksums for many files, use L</checksums-out>."
20366 msgstr ""
20367
20368 # type: =head2
20369 #: ../fish/guestfish-actions.pod:634
20370 msgid "checksum-device"
20371 msgstr ""
20372
20373 # type: verbatim
20374 #: ../fish/guestfish-actions.pod:636
20375 #, no-wrap
20376 msgid ""
20377 " checksum-device csumtype device\n"
20378 "\n"
20379 msgstr ""
20380
20381 # type: textblock
20382 #: ../fish/guestfish-actions.pod:638
20383 msgid ""
20384 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
20385 "device named C<device>.  For the types of checksums supported see the L</"
20386 "checksum> command."
20387 msgstr ""
20388
20389 # type: =head2
20390 #: ../fish/guestfish-actions.pod:642
20391 msgid "checksums-out"
20392 msgstr ""
20393
20394 # type: verbatim
20395 #: ../fish/guestfish-actions.pod:644
20396 #, no-wrap
20397 msgid ""
20398 " checksums-out csumtype directory (sumsfile|-)\n"
20399 "\n"
20400 msgstr ""
20401
20402 # type: =head2
20403 #: ../fish/guestfish-actions.pod:660
20404 msgid "chmod"
20405 msgstr ""
20406
20407 # type: verbatim
20408 #: ../fish/guestfish-actions.pod:662
20409 #, no-wrap
20410 msgid ""
20411 " chmod mode path\n"
20412 "\n"
20413 msgstr ""
20414
20415 # type: =head2
20416 #: ../fish/guestfish-actions.pod:673
20417 msgid "chown"
20418 msgstr ""
20419
20420 # type: verbatim
20421 #: ../fish/guestfish-actions.pod:675
20422 #, no-wrap
20423 msgid ""
20424 " chown owner group path\n"
20425 "\n"
20426 msgstr ""
20427
20428 # type: =head2
20429 #: ../fish/guestfish-actions.pod:683
20430 msgid "command"
20431 msgstr ""
20432
20433 # type: verbatim
20434 #: ../fish/guestfish-actions.pod:685
20435 #, no-wrap
20436 msgid ""
20437 " command 'arguments ...'\n"
20438 "\n"
20439 msgstr ""
20440
20441 # type: textblock
20442 #: ../fish/guestfish-actions.pod:692
20443 msgid ""
20444 "The single parameter is an argv-style list of arguments.  The first element "
20445 "is the name of the program to run.  Subsequent elements are parameters.  The "
20446 "list must be non-empty (ie. must contain a program name).  Note that the "
20447 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
20448 msgstr ""
20449
20450 # type: =head2
20451 #: ../fish/guestfish-actions.pod:720
20452 msgid "command-lines"
20453 msgstr ""
20454
20455 # type: verbatim
20456 #: ../fish/guestfish-actions.pod:722
20457 #, no-wrap
20458 msgid ""
20459 " command-lines 'arguments ...'\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: textblock
20464 #: ../fish/guestfish-actions.pod:724
20465 msgid ""
20466 "This is the same as L</command>, but splits the result into a list of lines."
20467 msgstr ""
20468
20469 # type: textblock
20470 #: ../fish/guestfish-actions.pod:727
20471 msgid "See also: L</sh-lines>"
20472 msgstr ""
20473
20474 # type: =head2
20475 #: ../fish/guestfish-actions.pod:732
20476 msgid "config"
20477 msgstr ""
20478
20479 # type: verbatim
20480 #: ../fish/guestfish-actions.pod:734
20481 #, no-wrap
20482 msgid ""
20483 " config qemuparam qemuvalue\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: =head2
20488 #: ../fish/guestfish-actions.pod:745
20489 msgid "copy-size"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #: ../fish/guestfish-actions.pod:747
20494 #, no-wrap
20495 msgid ""
20496 " copy-size src dest size\n"
20497 "\n"
20498 msgstr ""
20499
20500 # type: =head2
20501 #: ../fish/guestfish-actions.pod:755
20502 msgid "cp"
20503 msgstr ""
20504
20505 # type: verbatim
20506 #: ../fish/guestfish-actions.pod:757
20507 #, no-wrap
20508 msgid ""
20509 " cp src dest\n"
20510 "\n"
20511 msgstr ""
20512
20513 # type: =head2
20514 #: ../fish/guestfish-actions.pod:762
20515 msgid "cp-a"
20516 msgstr ""
20517
20518 # type: verbatim
20519 #: ../fish/guestfish-actions.pod:764
20520 #, no-wrap
20521 msgid ""
20522 " cp-a src dest\n"
20523 "\n"
20524 msgstr ""
20525
20526 # type: =head2
20527 #: ../fish/guestfish-actions.pod:769
20528 msgid "dd"
20529 msgstr ""
20530
20531 # type: verbatim
20532 #: ../fish/guestfish-actions.pod:771
20533 #, no-wrap
20534 msgid ""
20535 " dd src dest\n"
20536 "\n"
20537 msgstr ""
20538
20539 # type: textblock
20540 #: ../fish/guestfish-actions.pod:778
20541 msgid ""
20542 "If the destination is a device, it must be as large or larger than the "
20543 "source file or device, otherwise the copy will fail.  This command cannot do "
20544 "partial copies (see L</copy-size>)."
20545 msgstr ""
20546
20547 # type: =head2
20548 #: ../fish/guestfish-actions.pod:782
20549 msgid "df"
20550 msgstr ""
20551
20552 # type: verbatim
20553 #: ../fish/guestfish-actions.pod:784
20554 #, no-wrap
20555 msgid ""
20556 " df\n"
20557 "\n"
20558 msgstr ""
20559
20560 # type: textblock
20561 #: ../fish/guestfish-actions.pod:788 ../fish/guestfish-actions.pod:799
20562 msgid ""
20563 "This command is mostly useful for interactive sessions.  It is I<not> "
20564 "intended that you try to parse the output string.  Use L</statvfs> from "
20565 "programs."
20566 msgstr ""
20567
20568 # type: =head2
20569 #: ../fish/guestfish-actions.pod:792
20570 msgid "df-h"
20571 msgstr ""
20572
20573 # type: verbatim
20574 #: ../fish/guestfish-actions.pod:794
20575 #, no-wrap
20576 msgid ""
20577 " df-h\n"
20578 "\n"
20579 msgstr ""
20580
20581 # type: =head2
20582 #: ../fish/guestfish-actions.pod:803
20583 msgid "dmesg"
20584 msgstr ""
20585
20586 # type: verbatim
20587 #: ../fish/guestfish-actions.pod:805
20588 #, no-wrap
20589 msgid ""
20590 " dmesg\n"
20591 "\n"
20592 msgstr ""
20593
20594 # type: textblock
20595 #: ../fish/guestfish-actions.pod:811
20596 msgid ""
20597 "Another way to get the same information is to enable verbose messages with "
20598 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
20599 "before running the program."
20600 msgstr ""
20601
20602 # type: =head2
20603 #: ../fish/guestfish-actions.pod:816
20604 msgid "download"
20605 msgstr ""
20606
20607 # type: verbatim
20608 #: ../fish/guestfish-actions.pod:818
20609 #, no-wrap
20610 msgid ""
20611 " download remotefilename (filename|-)\n"
20612 "\n"
20613 msgstr ""
20614
20615 # type: textblock
20616 #: ../fish/guestfish-actions.pod:825
20617 msgid "See also L</upload>, L</cat>."
20618 msgstr ""
20619
20620 # type: =head2
20621 #: ../fish/guestfish-actions.pod:829
20622 msgid "download-offset"
20623 msgstr ""
20624
20625 # type: verbatim
20626 #: ../fish/guestfish-actions.pod:831
20627 #, no-wrap
20628 msgid ""
20629 " download-offset remotefilename (filename|-) offset size\n"
20630 "\n"
20631 msgstr ""
20632
20633 # type: textblock
20634 #: ../fish/guestfish-actions.pod:839
20635 msgid ""
20636 "Note that there is no limit on the amount of data that can be downloaded "
20637 "with this call, unlike with L</pread>, and this call always reads the full "
20638 "amount unless an error occurs."
20639 msgstr ""
20640
20641 # type: textblock
20642 #: ../fish/guestfish-actions.pod:844
20643 msgid "See also L</download>, L</pread>."
20644 msgstr ""
20645
20646 # type: =head2
20647 #: ../fish/guestfish-actions.pod:848
20648 msgid "drop-caches"
20649 msgstr ""
20650
20651 # type: verbatim
20652 #: ../fish/guestfish-actions.pod:850
20653 #, no-wrap
20654 msgid ""
20655 " drop-caches whattodrop\n"
20656 "\n"
20657 msgstr ""
20658
20659 # type: =head2
20660 #: ../fish/guestfish-actions.pod:862
20661 msgid "du"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #: ../fish/guestfish-actions.pod:864
20666 #, no-wrap
20667 msgid ""
20668 " du path\n"
20669 "\n"
20670 msgstr ""
20671
20672 # type: =head2
20673 #: ../fish/guestfish-actions.pod:876
20674 msgid "e2fsck-f"
20675 msgstr ""
20676
20677 # type: verbatim
20678 #: ../fish/guestfish-actions.pod:878
20679 #, no-wrap
20680 msgid ""
20681 " e2fsck-f device\n"
20682 "\n"
20683 msgstr ""
20684
20685 # type: textblock
20686 #: ../fish/guestfish-actions.pod:884
20687 msgid ""
20688 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
20689 "should use L</fsck>."
20690 msgstr ""
20691
20692 # type: =head2
20693 #: ../fish/guestfish-actions.pod:887
20694 msgid "echo-daemon"
20695 msgstr ""
20696
20697 # type: verbatim
20698 #: ../fish/guestfish-actions.pod:889
20699 #, no-wrap
20700 msgid ""
20701 " echo-daemon 'words ...'\n"
20702 "\n"
20703 msgstr ""
20704
20705 # type: textblock
20706 #: ../fish/guestfish-actions.pod:896
20707 msgid "See also L</ping-daemon>."
20708 msgstr ""
20709
20710 # type: =head2
20711 #: ../fish/guestfish-actions.pod:898
20712 msgid "egrep"
20713 msgstr ""
20714
20715 # type: verbatim
20716 #: ../fish/guestfish-actions.pod:900
20717 #, no-wrap
20718 msgid ""
20719 " egrep regex path\n"
20720 "\n"
20721 msgstr ""
20722
20723 # type: =head2
20724 #: ../fish/guestfish-actions.pod:908
20725 msgid "egrepi"
20726 msgstr ""
20727
20728 # type: verbatim
20729 #: ../fish/guestfish-actions.pod:910
20730 #, no-wrap
20731 msgid ""
20732 " egrepi regex path\n"
20733 "\n"
20734 msgstr ""
20735
20736 # type: =head2
20737 #: ../fish/guestfish-actions.pod:918
20738 msgid "equal"
20739 msgstr ""
20740
20741 # type: verbatim
20742 #: ../fish/guestfish-actions.pod:920
20743 #, no-wrap
20744 msgid ""
20745 " equal file1 file2\n"
20746 "\n"
20747 msgstr ""
20748
20749 # type: =head2
20750 #: ../fish/guestfish-actions.pod:927
20751 msgid "exists"
20752 msgstr ""
20753
20754 # type: verbatim
20755 #: ../fish/guestfish-actions.pod:929
20756 #, no-wrap
20757 msgid ""
20758 " exists path\n"
20759 "\n"
20760 msgstr ""
20761
20762 # type: textblock
20763 #: ../fish/guestfish-actions.pod:934
20764 msgid "See also L</is-file>, L</is-dir>, L</stat>."
20765 msgstr ""
20766
20767 # type: =head2
20768 #: ../fish/guestfish-actions.pod:936
20769 msgid "fallocate"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #: ../fish/guestfish-actions.pod:938
20774 #, no-wrap
20775 msgid ""
20776 " fallocate path len\n"
20777 "\n"
20778 msgstr ""
20779
20780 # type: =head2
20781 #: ../fish/guestfish-actions.pod:955
20782 msgid "fallocate64"
20783 msgstr ""
20784
20785 # type: verbatim
20786 #: ../fish/guestfish-actions.pod:957
20787 #, no-wrap
20788 msgid ""
20789 " fallocate64 path len\n"
20790 "\n"
20791 msgstr ""
20792
20793 # type: textblock
20794 #: ../fish/guestfish-actions.pod:963
20795 msgid ""
20796 "Note that this call allocates disk blocks for the file.  To create a sparse "
20797 "file use L</truncate-size> instead."
20798 msgstr ""
20799
20800 # type: textblock
20801 #: ../fish/guestfish-actions.pod:966
20802 msgid ""
20803 "The deprecated call L</fallocate> does the same, but owing to an oversight "
20804 "it only allowed 30 bit lengths to be specified, effectively limiting the "
20805 "maximum size of files created through that call to 1GB."
20806 msgstr ""
20807
20808 # type: =head2
20809 #: ../fish/guestfish-actions.pod:975
20810 msgid "fgrep"
20811 msgstr ""
20812
20813 # type: verbatim
20814 #: ../fish/guestfish-actions.pod:977
20815 #, no-wrap
20816 msgid ""
20817 " fgrep pattern path\n"
20818 "\n"
20819 msgstr ""
20820
20821 # type: =head2
20822 #: ../fish/guestfish-actions.pod:985
20823 msgid "fgrepi"
20824 msgstr ""
20825
20826 # type: verbatim
20827 #: ../fish/guestfish-actions.pod:987
20828 #, no-wrap
20829 msgid ""
20830 " fgrepi pattern path\n"
20831 "\n"
20832 msgstr ""
20833
20834 # type: =head2
20835 #: ../fish/guestfish-actions.pod:995
20836 msgid "file"
20837 msgstr ""
20838
20839 # type: verbatim
20840 #: ../fish/guestfish-actions.pod:997
20841 #, no-wrap
20842 msgid ""
20843 " file path\n"
20844 "\n"
20845 msgstr ""
20846
20847 # type: textblock
20848 #: ../fish/guestfish-actions.pod:1009
20849 msgid ""
20850 "This command can also be used on C</dev/> devices (and partitions, LV "
20851 "names).  You can for example use this to determine if a device contains a "
20852 "filesystem, although it's usually better to use L</vfs-type>."
20853 msgstr ""
20854
20855 # type: =head2
20856 #: ../fish/guestfish-actions.pod:1019
20857 msgid "file-architecture"
20858 msgstr ""
20859
20860 # type: verbatim
20861 #: ../fish/guestfish-actions.pod:1021
20862 #, no-wrap
20863 msgid ""
20864 " file-architecture filename\n"
20865 "\n"
20866 msgstr ""
20867
20868 # type: =head2
20869 #: ../fish/guestfish-actions.pod:1124
20870 msgid "filesize"
20871 msgstr ""
20872
20873 # type: verbatim
20874 #: ../fish/guestfish-actions.pod:1126
20875 #, no-wrap
20876 msgid ""
20877 " filesize file\n"
20878 "\n"
20879 msgstr ""
20880
20881 # type: textblock
20882 #: ../fish/guestfish-actions.pod:1130
20883 msgid ""
20884 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
20885 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
20886 msgstr ""
20887
20888 # type: =head2
20889 #: ../fish/guestfish-actions.pod:1134
20890 msgid "fill"
20891 msgstr ""
20892
20893 # type: verbatim
20894 #: ../fish/guestfish-actions.pod:1136
20895 #, no-wrap
20896 msgid ""
20897 " fill c len path\n"
20898 "\n"
20899 msgstr ""
20900
20901 # type: textblock
20902 #: ../fish/guestfish-actions.pod:1142
20903 msgid ""
20904 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
20905 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
20906 "L</fill-pattern>."
20907 msgstr ""
20908
20909 # type: =head2
20910 #: ../fish/guestfish-actions.pod:1147
20911 msgid "fill-pattern"
20912 msgstr ""
20913
20914 # type: verbatim
20915 #: ../fish/guestfish-actions.pod:1149
20916 #, no-wrap
20917 msgid ""
20918 " fill-pattern pattern len path\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: textblock
20923 #: ../fish/guestfish-actions.pod:1151
20924 msgid ""
20925 "This function is like L</fill> except that it creates a new file of length "
20926 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
20927 "is truncated if necessary to ensure the length of the file is exactly C<len> "
20928 "bytes."
20929 msgstr ""
20930
20931 # type: =head2
20932 #: ../fish/guestfish-actions.pod:1156
20933 msgid "find"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #: ../fish/guestfish-actions.pod:1158
20938 #, no-wrap
20939 msgid ""
20940 " find directory\n"
20941 "\n"
20942 msgstr ""
20943
20944 # type: textblock
20945 #: ../fish/guestfish-actions.pod:1172
20946 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
20947 msgstr ""
20948
20949 # type: textblock
20950 #: ../fish/guestfish-actions.pod:1185
20951 msgid "See also L</find0>."
20952 msgstr ""
20953
20954 # type: =head2
20955 #: ../fish/guestfish-actions.pod:1190
20956 msgid "find0"
20957 msgstr ""
20958
20959 # type: verbatim
20960 #: ../fish/guestfish-actions.pod:1192
20961 #, no-wrap
20962 msgid ""
20963 " find0 directory (files|-)\n"
20964 "\n"
20965 msgstr ""
20966
20967 # type: textblock
20968 #: ../fish/guestfish-actions.pod:1198
20969 msgid ""
20970 "This command works the same way as L</find> with the following exceptions:"
20971 msgstr ""
20972
20973 # type: =head2
20974 #: ../fish/guestfish-actions.pod:1225
20975 msgid "findfs-label"
20976 msgstr ""
20977
20978 # type: verbatim
20979 #: ../fish/guestfish-actions.pod:1227
20980 #, no-wrap
20981 msgid ""
20982 " findfs-label label\n"
20983 "\n"
20984 msgstr ""
20985
20986 # type: textblock
20987 #: ../fish/guestfish-actions.pod:1233
20988 msgid "To find the label of a filesystem, use L</vfs-label>."
20989 msgstr ""
20990
20991 # type: =head2
20992 #: ../fish/guestfish-actions.pod:1235
20993 msgid "findfs-uuid"
20994 msgstr ""
20995
20996 # type: verbatim
20997 #: ../fish/guestfish-actions.pod:1237
20998 #, no-wrap
20999 msgid ""
21000 " findfs-uuid uuid\n"
21001 "\n"
21002 msgstr ""
21003
21004 # type: textblock
21005 #: ../fish/guestfish-actions.pod:1243
21006 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
21007 msgstr ""
21008
21009 # type: =head2
21010 #: ../fish/guestfish-actions.pod:1245
21011 msgid "fsck"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #: ../fish/guestfish-actions.pod:1247
21016 #, no-wrap
21017 msgid ""
21018 " fsck fstype device\n"
21019 "\n"
21020 msgstr ""
21021
21022 # type: =head2
21023 #: ../fish/guestfish-actions.pod:1277
21024 msgid "get-append"
21025 msgstr ""
21026
21027 # type: verbatim
21028 #: ../fish/guestfish-actions.pod:1279
21029 #, no-wrap
21030 msgid ""
21031 " get-append\n"
21032 "\n"
21033 msgstr ""
21034
21035 # type: =head2
21036 #: ../fish/guestfish-actions.pod:1286
21037 msgid "get-autosync"
21038 msgstr ""
21039
21040 # type: verbatim
21041 #: ../fish/guestfish-actions.pod:1288
21042 #, no-wrap
21043 msgid ""
21044 " get-autosync\n"
21045 "\n"
21046 msgstr ""
21047
21048 # type: =head2
21049 #: ../fish/guestfish-actions.pod:1292
21050 msgid "get-direct"
21051 msgstr ""
21052
21053 # type: verbatim
21054 #: ../fish/guestfish-actions.pod:1294
21055 #, no-wrap
21056 msgid ""
21057 " get-direct\n"
21058 "\n"
21059 msgstr ""
21060
21061 # type: =head2
21062 #: ../fish/guestfish-actions.pod:1298
21063 msgid "get-e2label"
21064 msgstr ""
21065
21066 # type: verbatim
21067 #: ../fish/guestfish-actions.pod:1300
21068 #, no-wrap
21069 msgid ""
21070 " get-e2label device\n"
21071 "\n"
21072 msgstr ""
21073
21074 # type: =head2
21075 #: ../fish/guestfish-actions.pod:1312
21076 msgid "get-e2uuid"
21077 msgstr ""
21078
21079 # type: verbatim
21080 #: ../fish/guestfish-actions.pod:1314
21081 #, no-wrap
21082 msgid ""
21083 " get-e2uuid device\n"
21084 "\n"
21085 msgstr ""
21086
21087 # type: =head2
21088 #: ../fish/guestfish-actions.pod:1326
21089 msgid "get-memsize"
21090 msgstr ""
21091
21092 # type: verbatim
21093 #: ../fish/guestfish-actions.pod:1328
21094 #, no-wrap
21095 msgid ""
21096 " get-memsize\n"
21097 "\n"
21098 msgstr ""
21099
21100 # type: textblock
21101 #: ../fish/guestfish-actions.pod:1333
21102 msgid ""
21103 "If L</set-memsize> was not called on this handle, and if "
21104 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
21105 "value for memsize."
21106 msgstr ""
21107
21108 # type: =head2
21109 #: ../fish/guestfish-actions.pod:1340
21110 msgid "get-network"
21111 msgstr ""
21112
21113 # type: verbatim
21114 #: ../fish/guestfish-actions.pod:1342
21115 #, no-wrap
21116 msgid ""
21117 " get-network\n"
21118 "\n"
21119 msgstr ""
21120
21121 # type: =head2
21122 #: ../fish/guestfish-actions.pod:1346
21123 msgid "get-path"
21124 msgstr ""
21125
21126 # type: verbatim
21127 #: ../fish/guestfish-actions.pod:1348
21128 #, no-wrap
21129 msgid ""
21130 " get-path\n"
21131 "\n"
21132 msgstr ""
21133
21134 # type: =head2
21135 #: ../fish/guestfish-actions.pod:1355
21136 msgid "get-pid"
21137 msgstr ""
21138
21139 # type: =head2
21140 #: ../fish/guestfish-actions.pod:1357
21141 msgid "pid"
21142 msgstr ""
21143
21144 # type: verbatim
21145 #: ../fish/guestfish-actions.pod:1359
21146 #, no-wrap
21147 msgid ""
21148 " get-pid\n"
21149 "\n"
21150 msgstr ""
21151
21152 # type: =head2
21153 #: ../fish/guestfish-actions.pod:1366
21154 msgid "get-qemu"
21155 msgstr ""
21156
21157 # type: verbatim
21158 #: ../fish/guestfish-actions.pod:1368
21159 #, no-wrap
21160 msgid ""
21161 " get-qemu\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: =head2
21166 #: ../fish/guestfish-actions.pod:1375
21167 msgid "get-recovery-proc"
21168 msgstr ""
21169
21170 # type: verbatim
21171 #: ../fish/guestfish-actions.pod:1377
21172 #, no-wrap
21173 msgid ""
21174 " get-recovery-proc\n"
21175 "\n"
21176 msgstr ""
21177
21178 # type: =head2
21179 #: ../fish/guestfish-actions.pod:1381
21180 msgid "get-selinux"
21181 msgstr ""
21182
21183 # type: verbatim
21184 #: ../fish/guestfish-actions.pod:1383
21185 #, no-wrap
21186 msgid ""
21187 " get-selinux\n"
21188 "\n"
21189 msgstr ""
21190
21191 # type: textblock
21192 #: ../fish/guestfish-actions.pod:1385
21193 msgid ""
21194 "This returns the current setting of the selinux flag which is passed to the "
21195 "appliance at boot time.  See L</set-selinux>."
21196 msgstr ""
21197
21198 # type: =head2
21199 #: ../fish/guestfish-actions.pod:1391
21200 msgid "get-state"
21201 msgstr ""
21202
21203 # type: verbatim
21204 #: ../fish/guestfish-actions.pod:1393
21205 #, no-wrap
21206 msgid ""
21207 " get-state\n"
21208 "\n"
21209 msgstr ""
21210
21211 # type: =head2
21212 #: ../fish/guestfish-actions.pod:1400
21213 msgid "get-trace"
21214 msgstr ""
21215
21216 # type: verbatim
21217 #: ../fish/guestfish-actions.pod:1402
21218 #, no-wrap
21219 msgid ""
21220 " get-trace\n"
21221 "\n"
21222 msgstr ""
21223
21224 # type: =head2
21225 #: ../fish/guestfish-actions.pod:1406
21226 msgid "get-umask"
21227 msgstr ""
21228
21229 # type: verbatim
21230 #: ../fish/guestfish-actions.pod:1408
21231 #, no-wrap
21232 msgid ""
21233 " get-umask\n"
21234 "\n"
21235 msgstr ""
21236
21237 # type: textblock
21238 #: ../fish/guestfish-actions.pod:1410
21239 msgid ""
21240 "Return the current umask.  By default the umask is C<022> unless it has been "
21241 "set by calling L</umask>."
21242 msgstr ""
21243
21244 # type: =head2
21245 #: ../fish/guestfish-actions.pod:1413
21246 msgid "get-verbose"
21247 msgstr ""
21248
21249 # type: verbatim
21250 #: ../fish/guestfish-actions.pod:1415
21251 #, no-wrap
21252 msgid ""
21253 " get-verbose\n"
21254 "\n"
21255 msgstr ""
21256
21257 # type: =head2
21258 #: ../fish/guestfish-actions.pod:1419
21259 msgid "getcon"
21260 msgstr ""
21261
21262 # type: verbatim
21263 #: ../fish/guestfish-actions.pod:1421
21264 #, no-wrap
21265 msgid ""
21266 " getcon\n"
21267 "\n"
21268 msgstr ""
21269
21270 # type: textblock
21271 #: ../fish/guestfish-actions.pod:1425
21272 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
21273 msgstr ""
21274
21275 # type: =head2
21276 #: ../fish/guestfish-actions.pod:1428
21277 msgid "getxattr"
21278 msgstr ""
21279
21280 # type: verbatim
21281 #: ../fish/guestfish-actions.pod:1430
21282 #, no-wrap
21283 msgid ""
21284 " getxattr path name\n"
21285 "\n"
21286 msgstr ""
21287
21288 # type: textblock
21289 #: ../fish/guestfish-actions.pod:1432
21290 msgid ""
21291 "Get a single extended attribute from file C<path> named C<name>.  This call "
21292 "follows symlinks.  If you want to lookup an extended attribute for the "
21293 "symlink itself, use L</lgetxattr>."
21294 msgstr ""
21295
21296 # type: textblock
21297 #: ../fish/guestfish-actions.pod:1436 ../fish/guestfish-actions.pod:2263
21298 msgid ""
21299 "Normally it is better to get all extended attributes from a file in one go "
21300 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
21301 "buggy and do not provide a way to list out attributes.  For these "
21302 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
21303 "attributes you want in advance and call this function."
21304 msgstr ""
21305
21306 # type: textblock
21307 #: ../fish/guestfish-actions.pod:1446
21308 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
21309 msgstr ""
21310
21311 # type: =head2
21312 #: ../fish/guestfish-actions.pod:1448
21313 msgid "getxattrs"
21314 msgstr ""
21315
21316 # type: verbatim
21317 #: ../fish/guestfish-actions.pod:1450
21318 #, no-wrap
21319 msgid ""
21320 " getxattrs path\n"
21321 "\n"
21322 msgstr ""
21323
21324 # type: textblock
21325 #: ../fish/guestfish-actions.pod:1458
21326 msgid "See also: L</lgetxattrs>, L<attr(5)>."
21327 msgstr ""
21328
21329 # type: =head2
21330 #: ../fish/guestfish-actions.pod:1460
21331 msgid "glob-expand"
21332 msgstr ""
21333
21334 # type: verbatim
21335 #: ../fish/guestfish-actions.pod:1462
21336 #, no-wrap
21337 msgid ""
21338 " glob-expand pattern\n"
21339 "\n"
21340 msgstr ""
21341
21342 # type: =head2
21343 #: ../fish/guestfish-actions.pod:1475
21344 msgid "grep"
21345 msgstr ""
21346
21347 # type: verbatim
21348 #: ../fish/guestfish-actions.pod:1477
21349 #, no-wrap
21350 msgid ""
21351 " grep regex path\n"
21352 "\n"
21353 msgstr ""
21354
21355 # type: =head2
21356 #: ../fish/guestfish-actions.pod:1485
21357 msgid "grepi"
21358 msgstr ""
21359
21360 # type: verbatim
21361 #: ../fish/guestfish-actions.pod:1487
21362 #, no-wrap
21363 msgid ""
21364 " grepi regex path\n"
21365 "\n"
21366 msgstr ""
21367
21368 # type: =head2
21369 #: ../fish/guestfish-actions.pod:1495
21370 msgid "grub-install"
21371 msgstr ""
21372
21373 # type: verbatim
21374 #: ../fish/guestfish-actions.pod:1497
21375 #, no-wrap
21376 msgid ""
21377 " grub-install root device\n"
21378 "\n"
21379 msgstr ""
21380
21381 # type: =head2
21382 #: ../fish/guestfish-actions.pod:1513
21383 msgid "head"
21384 msgstr ""
21385
21386 # type: verbatim
21387 #: ../fish/guestfish-actions.pod:1515
21388 #, no-wrap
21389 msgid ""
21390 " head path\n"
21391 "\n"
21392 msgstr ""
21393
21394 # type: =head2
21395 #: ../fish/guestfish-actions.pod:1523
21396 msgid "head-n"
21397 msgstr ""
21398
21399 # type: verbatim
21400 #: ../fish/guestfish-actions.pod:1525
21401 #, no-wrap
21402 msgid ""
21403 " head-n nrlines path\n"
21404 "\n"
21405 msgstr ""
21406
21407 # type: =head2
21408 #: ../fish/guestfish-actions.pod:1538
21409 msgid "hexdump"
21410 msgstr ""
21411
21412 # type: verbatim
21413 #: ../fish/guestfish-actions.pod:1540
21414 #, no-wrap
21415 msgid ""
21416 " hexdump path\n"
21417 "\n"
21418 msgstr ""
21419
21420 # type: =head2
21421 #: ../fish/guestfish-actions.pod:1548
21422 msgid "initrd-cat"
21423 msgstr ""
21424
21425 # type: verbatim
21426 #: ../fish/guestfish-actions.pod:1550
21427 #, no-wrap
21428 msgid ""
21429 " initrd-cat initrdpath filename\n"
21430 "\n"
21431 msgstr ""
21432
21433 # type: textblock
21434 #: ../fish/guestfish-actions.pod:1562
21435 msgid "See also L</initrd-list>."
21436 msgstr ""
21437
21438 # type: =head2
21439 #: ../fish/guestfish-actions.pod:1567
21440 msgid "initrd-list"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #: ../fish/guestfish-actions.pod:1569
21445 #, no-wrap
21446 msgid ""
21447 " initrd-list path\n"
21448 "\n"
21449 msgstr ""
21450
21451 # type: =head2
21452 #: ../fish/guestfish-actions.pod:1581
21453 msgid "inotify-add-watch"
21454 msgstr ""
21455
21456 # type: verbatim
21457 #: ../fish/guestfish-actions.pod:1583
21458 #, no-wrap
21459 msgid ""
21460 " inotify-add-watch path mask\n"
21461 "\n"
21462 msgstr ""
21463
21464 # type: =head2
21465 #: ../fish/guestfish-actions.pod:1595
21466 msgid "inotify-close"
21467 msgstr ""
21468
21469 # type: verbatim
21470 #: ../fish/guestfish-actions.pod:1597
21471 #, no-wrap
21472 msgid ""
21473 " inotify-close\n"
21474 "\n"
21475 msgstr ""
21476
21477 # type: =head2
21478 #: ../fish/guestfish-actions.pod:1603
21479 msgid "inotify-files"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #: ../fish/guestfish-actions.pod:1605
21484 #, no-wrap
21485 msgid ""
21486 " inotify-files\n"
21487 "\n"
21488 msgstr ""
21489
21490 # type: textblock
21491 #: ../fish/guestfish-actions.pod:1607
21492 msgid ""
21493 "This function is a helpful wrapper around L</inotify-read> which just "
21494 "returns a list of pathnames of objects that were touched.  The returned "
21495 "pathnames are sorted and deduplicated."
21496 msgstr ""
21497
21498 # type: =head2
21499 #: ../fish/guestfish-actions.pod:1611
21500 msgid "inotify-init"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #: ../fish/guestfish-actions.pod:1613
21505 #, no-wrap
21506 msgid ""
21507 " inotify-init maxevents\n"
21508 "\n"
21509 msgstr ""
21510
21511 # type: textblock
21512 #: ../fish/guestfish-actions.pod:1619
21513 msgid ""
21514 "C<maxevents> is the maximum number of events which will be queued up between "
21515 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
21516 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
21517 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
21518 "but records the fact that it threw them away by setting a flag "
21519 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
21520 msgstr ""
21521
21522 # type: textblock
21523 #: ../fish/guestfish-actions.pod:1629
21524 msgid ""
21525 "Before any events are generated, you have to add some watches to the "
21526 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
21527 "L</inotify-watch-all>."
21528 msgstr ""
21529
21530 # type: textblock
21531 #: ../fish/guestfish-actions.pod:1635
21532 msgid ""
21533 "Queued up events should be read periodically by calling L</inotify-read> (or "
21534 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
21535 "If you don't read the events out often enough then you risk the internal "
21536 "queue overflowing."
21537 msgstr ""
21538
21539 # type: textblock
21540 #: ../fish/guestfish-actions.pod:1642
21541 msgid ""
21542 "The handle should be closed after use by calling L</inotify-close>.  This "
21543 "also removes any watches automatically."
21544 msgstr ""
21545
21546 # type: =head2
21547 #: ../fish/guestfish-actions.pod:1651
21548 msgid "inotify-read"
21549 msgstr ""
21550
21551 # type: verbatim
21552 #: ../fish/guestfish-actions.pod:1653
21553 #, no-wrap
21554 msgid ""
21555 " inotify-read\n"
21556 "\n"
21557 msgstr ""
21558
21559 # type: =head2
21560 #: ../fish/guestfish-actions.pod:1666
21561 msgid "inotify-rm-watch"
21562 msgstr ""
21563
21564 # type: verbatim
21565 #: ../fish/guestfish-actions.pod:1668
21566 #, no-wrap
21567 msgid ""
21568 " inotify-rm-watch wd\n"
21569 "\n"
21570 msgstr ""
21571
21572 # type: textblock
21573 #: ../fish/guestfish-actions.pod:1670
21574 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
21575 msgstr ""
21576
21577 # type: =head2
21578 #: ../fish/guestfish-actions.pod:1673
21579 msgid "inspect-get-arch"
21580 msgstr ""
21581
21582 # type: verbatim
21583 #: ../fish/guestfish-actions.pod:1675
21584 #, no-wrap
21585 msgid ""
21586 " inspect-get-arch root\n"
21587 "\n"
21588 msgstr ""
21589
21590 # type: textblock
21591 #: ../fish/guestfish-actions.pod:1677 ../fish/guestfish-actions.pod:1693
21592 #: ../fish/guestfish-actions.pod:1767 ../fish/guestfish-actions.pod:1785
21593 #: ../fish/guestfish-actions.pod:1800 ../fish/guestfish-actions.pod:1821
21594 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1859
21595 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:1905
21596 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1970
21597 #: ../fish/guestfish-actions.pod:1986
21598 msgid ""
21599 "This function should only be called with a root device string as returned by "
21600 "L</inspect-os>."
21601 msgstr ""
21602
21603 # type: textblock
21604 #: ../fish/guestfish-actions.pod:1680
21605 msgid ""
21606 "This returns the architecture of the inspected operating system.  The "
21607 "possible return values are listed under L</file-architecture>."
21608 msgstr ""
21609
21610 # type: =head2
21611 #: ../fish/guestfish-actions.pod:1689
21612 msgid "inspect-get-distro"
21613 msgstr ""
21614
21615 # type: verbatim
21616 #: ../fish/guestfish-actions.pod:1691
21617 #, no-wrap
21618 msgid ""
21619 " inspect-get-distro root\n"
21620 "\n"
21621 msgstr ""
21622
21623 # type: =head2
21624 #: ../fish/guestfish-actions.pod:1763
21625 msgid "inspect-get-filesystems"
21626 msgstr ""
21627
21628 # type: verbatim
21629 #: ../fish/guestfish-actions.pod:1765
21630 #, no-wrap
21631 msgid ""
21632 " inspect-get-filesystems root\n"
21633 "\n"
21634 msgstr ""
21635
21636 # type: textblock
21637 #: ../fish/guestfish-actions.pod:1778
21638 msgid ""
21639 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21640 "get-mountpoints>."
21641 msgstr ""
21642
21643 # type: =head2
21644 #: ../fish/guestfish-actions.pod:1781
21645 msgid "inspect-get-hostname"
21646 msgstr ""
21647
21648 # type: verbatim
21649 #: ../fish/guestfish-actions.pod:1783
21650 #, no-wrap
21651 msgid ""
21652 " inspect-get-hostname root\n"
21653 "\n"
21654 msgstr ""
21655
21656 # type: =head2
21657 #: ../fish/guestfish-actions.pod:1796
21658 msgid "inspect-get-major-version"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #: ../fish/guestfish-actions.pod:1798
21663 #, no-wrap
21664 msgid ""
21665 " inspect-get-major-version root\n"
21666 "\n"
21667 msgstr ""
21668
21669 # type: =head2
21670 #: ../fish/guestfish-actions.pod:1817
21671 msgid "inspect-get-minor-version"
21672 msgstr ""
21673
21674 # type: verbatim
21675 #: ../fish/guestfish-actions.pod:1819
21676 #, no-wrap
21677 msgid ""
21678 " inspect-get-minor-version root\n"
21679 "\n"
21680 msgstr ""
21681
21682 # type: textblock
21683 #: ../fish/guestfish-actions.pod:1829
21684 msgid ""
21685 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21686 "get-major-version>."
21687 msgstr ""
21688
21689 # type: =head2
21690 #: ../fish/guestfish-actions.pod:1832
21691 msgid "inspect-get-mountpoints"
21692 msgstr ""
21693
21694 # type: verbatim
21695 #: ../fish/guestfish-actions.pod:1834
21696 #, no-wrap
21697 msgid ""
21698 " inspect-get-mountpoints root\n"
21699 "\n"
21700 msgstr ""
21701
21702 # type: textblock
21703 #: ../fish/guestfish-actions.pod:1852
21704 msgid ""
21705 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
21706 "get-filesystems>."
21707 msgstr ""
21708
21709 # type: =head2
21710 #: ../fish/guestfish-actions.pod:1855
21711 msgid "inspect-get-package-format"
21712 msgstr ""
21713
21714 # type: verbatim
21715 #: ../fish/guestfish-actions.pod:1857
21716 #, no-wrap
21717 msgid ""
21718 " inspect-get-package-format root\n"
21719 "\n"
21720 msgstr ""
21721
21722 # type: textblock
21723 #: ../fish/guestfish-actions.pod:1862
21724 msgid ""
21725 "This function and L</inspect-get-package-management> return the package "
21726 "format and package management tool used by the inspected operating system.  "
21727 "For example for Fedora these functions would return C<rpm> (package format) "
21728 "and C<yum> (package management)."
21729 msgstr ""
21730
21731 # type: =head2
21732 #: ../fish/guestfish-actions.pod:1877
21733 msgid "inspect-get-package-management"
21734 msgstr ""
21735
21736 # type: verbatim
21737 #: ../fish/guestfish-actions.pod:1879
21738 #, no-wrap
21739 msgid ""
21740 " inspect-get-package-management root\n"
21741 "\n"
21742 msgstr ""
21743
21744 # type: textblock
21745 #: ../fish/guestfish-actions.pod:1884
21746 msgid ""
21747 "L</inspect-get-package-format> and this function return the package format "
21748 "and package management tool used by the inspected operating system.  For "
21749 "example for Fedora these functions would return C<rpm> (package format) and "
21750 "C<yum> (package management)."
21751 msgstr ""
21752
21753 # type: =head2
21754 #: ../fish/guestfish-actions.pod:1901
21755 msgid "inspect-get-product-name"
21756 msgstr ""
21757
21758 # type: verbatim
21759 #: ../fish/guestfish-actions.pod:1903
21760 #, no-wrap
21761 msgid ""
21762 " inspect-get-product-name root\n"
21763 "\n"
21764 msgstr ""
21765
21766 # type: =head2
21767 #: ../fish/guestfish-actions.pod:1918
21768 msgid "inspect-get-roots"
21769 msgstr ""
21770
21771 # type: verbatim
21772 #: ../fish/guestfish-actions.pod:1920
21773 #, no-wrap
21774 msgid ""
21775 " inspect-get-roots\n"
21776 "\n"
21777 msgstr ""
21778
21779 # type: textblock
21780 #: ../fish/guestfish-actions.pod:1922
21781 msgid ""
21782 "This function is a convenient way to get the list of root devices, as "
21783 "returned from a previous call to L</inspect-os>, but without redoing the "
21784 "whole inspection process."
21785 msgstr ""
21786
21787 # type: textblock
21788 #: ../fish/guestfish-actions.pod:1926
21789 msgid ""
21790 "This returns an empty list if either no root devices were found or the "
21791 "caller has not called L</inspect-os>."
21792 msgstr ""
21793
21794 # type: =head2
21795 #: ../fish/guestfish-actions.pod:1931
21796 msgid "inspect-get-type"
21797 msgstr ""
21798
21799 # type: verbatim
21800 #: ../fish/guestfish-actions.pod:1933
21801 #, no-wrap
21802 msgid ""
21803 " inspect-get-type root\n"
21804 "\n"
21805 msgstr ""
21806
21807 # type: =head2
21808 #: ../fish/guestfish-actions.pod:1966
21809 msgid "inspect-get-windows-systemroot"
21810 msgstr ""
21811
21812 # type: verbatim
21813 #: ../fish/guestfish-actions.pod:1968
21814 #, no-wrap
21815 msgid ""
21816 " inspect-get-windows-systemroot root\n"
21817 "\n"
21818 msgstr ""
21819
21820 # type: =head2
21821 #: ../fish/guestfish-actions.pod:1982
21822 msgid "inspect-list-applications"
21823 msgstr ""
21824
21825 # type: verbatim
21826 #: ../fish/guestfish-actions.pod:1984
21827 #, no-wrap
21828 msgid ""
21829 " inspect-list-applications root\n"
21830 "\n"
21831 msgstr ""
21832
21833 # type: textblock
21834 #: ../fish/guestfish-actions.pod:1991
21835 msgid ""
21836 "I<Note:> This call works differently from other parts of the inspection "
21837 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
21838 "then mount up the disks, before calling this.  Listing applications is a "
21839 "significantly more difficult operation which requires access to the full "
21840 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
21841 "are just returning data cached in the libguestfs handle, this call actually "
21842 "reads parts of the mounted filesystems during the call."
21843 msgstr ""
21844
21845 # type: =head2
21846 #: ../fish/guestfish-actions.pod:2081
21847 msgid "inspect-os"
21848 msgstr ""
21849
21850 # type: verbatim
21851 #: ../fish/guestfish-actions.pod:2083
21852 #, no-wrap
21853 msgid ""
21854 " inspect-os\n"
21855 "\n"
21856 msgstr ""
21857
21858 # type: textblock
21859 #: ../fish/guestfish-actions.pod:2098
21860 msgid ""
21861 "You can pass the root string(s) returned to other L</inspect-get-*> "
21862 "functions in order to query further information about each operating system, "
21863 "such as the name and version."
21864 msgstr ""
21865
21866 # type: textblock
21867 #: ../fish/guestfish-actions.pod:2103
21868 msgid ""
21869 "This function uses other libguestfs features such as L</mount-ro> and L</"
21870 "umount-all> in order to mount and unmount filesystems and look at the "
21871 "contents.  This should be called with no disks currently mounted.  The "
21872 "function may also use Augeas, so any existing Augeas handle will be closed."
21873 msgstr ""
21874
21875 # type: textblock
21876 #: ../fish/guestfish-actions.pod:2115 ../fish/guestfish-actions.pod:2291
21877 #: ../fish/guestfish-actions.pod:2337
21878 msgid "See also L</list-filesystems>."
21879 msgstr ""
21880
21881 # type: =head2
21882 #: ../fish/guestfish-actions.pod:2117
21883 msgid "is-blockdev"
21884 msgstr ""
21885
21886 # type: verbatim
21887 #: ../fish/guestfish-actions.pod:2119
21888 #, no-wrap
21889 msgid ""
21890 " is-blockdev path\n"
21891 "\n"
21892 msgstr ""
21893
21894 # type: textblock
21895 #: ../fish/guestfish-actions.pod:2124 ../fish/guestfish-actions.pod:2142
21896 #: ../fish/guestfish-actions.pod:2161 ../fish/guestfish-actions.pod:2170
21897 #: ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2214
21898 #: ../fish/guestfish-actions.pod:2223
21899 msgid "See also L</stat>."
21900 msgstr ""
21901
21902 # type: =head2
21903 #: ../fish/guestfish-actions.pod:2126
21904 msgid "is-busy"
21905 msgstr ""
21906
21907 # type: verbatim
21908 #: ../fish/guestfish-actions.pod:2128
21909 #, no-wrap
21910 msgid ""
21911 " is-busy\n"
21912 "\n"
21913 msgstr ""
21914
21915 # type: =head2
21916 #: ../fish/guestfish-actions.pod:2135
21917 msgid "is-chardev"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #: ../fish/guestfish-actions.pod:2137
21922 #, no-wrap
21923 msgid ""
21924 " is-chardev path\n"
21925 "\n"
21926 msgstr ""
21927
21928 # type: =head2
21929 #: ../fish/guestfish-actions.pod:2144
21930 msgid "is-config"
21931 msgstr ""
21932
21933 # type: verbatim
21934 #: ../fish/guestfish-actions.pod:2146
21935 #, no-wrap
21936 msgid ""
21937 " is-config\n"
21938 "\n"
21939 msgstr ""
21940
21941 # type: =head2
21942 #: ../fish/guestfish-actions.pod:2153
21943 msgid "is-dir"
21944 msgstr ""
21945
21946 # type: verbatim
21947 #: ../fish/guestfish-actions.pod:2155
21948 #, no-wrap
21949 msgid ""
21950 " is-dir path\n"
21951 "\n"
21952 msgstr ""
21953
21954 # type: =head2
21955 #: ../fish/guestfish-actions.pod:2163
21956 msgid "is-fifo"
21957 msgstr ""
21958
21959 # type: verbatim
21960 #: ../fish/guestfish-actions.pod:2165
21961 #, no-wrap
21962 msgid ""
21963 " is-fifo path\n"
21964 "\n"
21965 msgstr ""
21966
21967 # type: =head2
21968 #: ../fish/guestfish-actions.pod:2172
21969 msgid "is-file"
21970 msgstr ""
21971
21972 # type: verbatim
21973 #: ../fish/guestfish-actions.pod:2174
21974 #, no-wrap
21975 msgid ""
21976 " is-file path\n"
21977 "\n"
21978 msgstr ""
21979
21980 # type: =head2
21981 #: ../fish/guestfish-actions.pod:2182
21982 msgid "is-launching"
21983 msgstr ""
21984
21985 # type: verbatim
21986 #: ../fish/guestfish-actions.pod:2184
21987 #, no-wrap
21988 msgid ""
21989 " is-launching\n"
21990 "\n"
21991 msgstr ""
21992
21993 # type: =head2
21994 #: ../fish/guestfish-actions.pod:2191
21995 msgid "is-lv"
21996 msgstr ""
21997
21998 # type: verbatim
21999 #: ../fish/guestfish-actions.pod:2193
22000 #, no-wrap
22001 msgid ""
22002 " is-lv device\n"
22003 "\n"
22004 msgstr ""
22005
22006 # type: =head2
22007 #: ../fish/guestfish-actions.pod:2198
22008 msgid "is-ready"
22009 msgstr ""
22010
22011 # type: verbatim
22012 #: ../fish/guestfish-actions.pod:2200
22013 #, no-wrap
22014 msgid ""
22015 " is-ready\n"
22016 "\n"
22017 msgstr ""
22018
22019 # type: =head2
22020 #: ../fish/guestfish-actions.pod:2207
22021 msgid "is-socket"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #: ../fish/guestfish-actions.pod:2209
22026 #, no-wrap
22027 msgid ""
22028 " is-socket path\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: =head2
22033 #: ../fish/guestfish-actions.pod:2216
22034 msgid "is-symlink"
22035 msgstr ""
22036
22037 # type: verbatim
22038 #: ../fish/guestfish-actions.pod:2218
22039 #, no-wrap
22040 msgid ""
22041 " is-symlink path\n"
22042 "\n"
22043 msgstr ""
22044
22045 # type: =head2
22046 #: ../fish/guestfish-actions.pod:2225
22047 msgid "kill-subprocess"
22048 msgstr ""
22049
22050 # type: verbatim
22051 #: ../fish/guestfish-actions.pod:2227
22052 #, no-wrap
22053 msgid ""
22054 " kill-subprocess\n"
22055 "\n"
22056 msgstr ""
22057
22058 # type: =head2
22059 #: ../fish/guestfish-actions.pod:2231
22060 msgid "launch"
22061 msgstr ""
22062
22063 # type: =head2
22064 #: ../fish/guestfish-actions.pod:2233
22065 msgid "run"
22066 msgstr ""
22067
22068 # type: verbatim
22069 #: ../fish/guestfish-actions.pod:2235
22070 #, no-wrap
22071 msgid ""
22072 " launch\n"
22073 "\n"
22074 msgstr ""
22075
22076 # type: =head2
22077 #: ../fish/guestfish-actions.pod:2243
22078 msgid "lchown"
22079 msgstr ""
22080
22081 # type: verbatim
22082 #: ../fish/guestfish-actions.pod:2245
22083 #, no-wrap
22084 msgid ""
22085 " lchown owner group path\n"
22086 "\n"
22087 msgstr ""
22088
22089 # type: textblock
22090 #: ../fish/guestfish-actions.pod:2247
22091 msgid ""
22092 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
22093 "chown> but if C<path> is a symlink then the link itself is changed, not the "
22094 "target."
22095 msgstr ""
22096
22097 # type: =head2
22098 #: ../fish/guestfish-actions.pod:2255
22099 msgid "lgetxattr"
22100 msgstr ""
22101
22102 # type: verbatim
22103 #: ../fish/guestfish-actions.pod:2257
22104 #, no-wrap
22105 msgid ""
22106 " lgetxattr path name\n"
22107 "\n"
22108 msgstr ""
22109
22110 # type: textblock
22111 #: ../fish/guestfish-actions.pod:2273
22112 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
22113 msgstr ""
22114
22115 # type: =head2
22116 #: ../fish/guestfish-actions.pod:2275
22117 msgid "lgetxattrs"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #: ../fish/guestfish-actions.pod:2277
22122 #, no-wrap
22123 msgid ""
22124 " lgetxattrs path\n"
22125 "\n"
22126 msgstr ""
22127
22128 # type: textblock
22129 #: ../fish/guestfish-actions.pod:2279
22130 msgid ""
22131 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
22132 "it returns the extended attributes of the link itself."
22133 msgstr ""
22134
22135 # type: =head2
22136 #: ../fish/guestfish-actions.pod:2283
22137 msgid "list-devices"
22138 msgstr ""
22139
22140 # type: verbatim
22141 #: ../fish/guestfish-actions.pod:2285
22142 #, no-wrap
22143 msgid ""
22144 " list-devices\n"
22145 "\n"
22146 msgstr ""
22147
22148 # type: =head2
22149 #: ../fish/guestfish-actions.pod:2293
22150 msgid "list-filesystems"
22151 msgstr ""
22152
22153 # type: verbatim
22154 #: ../fish/guestfish-actions.pod:2295
22155 #, no-wrap
22156 msgid ""
22157 " list-filesystems\n"
22158 "\n"
22159 msgstr ""
22160
22161 # type: textblock
22162 #: ../fish/guestfish-actions.pod:2314
22163 msgid ""
22164 "This command runs other libguestfs commands, which might include L</mount> "
22165 "and L</umount>, and therefore you should use this soon after launch and only "
22166 "when nothing is mounted."
22167 msgstr ""
22168
22169 # type: textblock
22170 #: ../fish/guestfish-actions.pod:2318
22171 msgid ""
22172 "Not all of the filesystems returned will be mountable.  In particular, swap "
22173 "partitions are returned in the list.  Also this command does not check that "
22174 "each filesystem found is valid and mountable, and some filesystems might be "
22175 "mountable but require special options.  Filesystems may not all belong to a "
22176 "single logical operating system (use L</inspect-os> to look for OSes)."
22177 msgstr ""
22178
22179 # type: =head2
22180 #: ../fish/guestfish-actions.pod:2326
22181 msgid "list-partitions"
22182 msgstr ""
22183
22184 # type: verbatim
22185 #: ../fish/guestfish-actions.pod:2328
22186 #, no-wrap
22187 msgid ""
22188 " list-partitions\n"
22189 "\n"
22190 msgstr ""
22191
22192 # type: textblock
22193 #: ../fish/guestfish-actions.pod:2334
22194 msgid ""
22195 "This does not return logical volumes.  For that you will need to call L</"
22196 "lvs>."
22197 msgstr ""
22198
22199 # type: =head2
22200 #: ../fish/guestfish-actions.pod:2339
22201 msgid "ll"
22202 msgstr ""
22203
22204 # type: verbatim
22205 #: ../fish/guestfish-actions.pod:2341
22206 #, no-wrap
22207 msgid ""
22208 " ll directory\n"
22209 "\n"
22210 msgstr ""
22211
22212 # type: =head2
22213 #: ../fish/guestfish-actions.pod:2349
22214 msgid "ln"
22215 msgstr ""
22216
22217 # type: verbatim
22218 #: ../fish/guestfish-actions.pod:2351
22219 #, no-wrap
22220 msgid ""
22221 " ln target linkname\n"
22222 "\n"
22223 msgstr ""
22224
22225 # type: =head2
22226 #: ../fish/guestfish-actions.pod:2355
22227 msgid "ln-f"
22228 msgstr ""
22229
22230 # type: verbatim
22231 #: ../fish/guestfish-actions.pod:2357
22232 #, no-wrap
22233 msgid ""
22234 " ln-f target linkname\n"
22235 "\n"
22236 msgstr ""
22237
22238 # type: =head2
22239 #: ../fish/guestfish-actions.pod:2362
22240 msgid "ln-s"
22241 msgstr ""
22242
22243 # type: verbatim
22244 #: ../fish/guestfish-actions.pod:2364
22245 #, no-wrap
22246 msgid ""
22247 " ln-s target linkname\n"
22248 "\n"
22249 msgstr ""
22250
22251 # type: =head2
22252 #: ../fish/guestfish-actions.pod:2368
22253 msgid "ln-sf"
22254 msgstr ""
22255
22256 # type: verbatim
22257 #: ../fish/guestfish-actions.pod:2370
22258 #, no-wrap
22259 msgid ""
22260 " ln-sf target linkname\n"
22261 "\n"
22262 msgstr ""
22263
22264 # type: =head2
22265 #: ../fish/guestfish-actions.pod:2375
22266 msgid "lremovexattr"
22267 msgstr ""
22268
22269 # type: verbatim
22270 #: ../fish/guestfish-actions.pod:2377
22271 #, no-wrap
22272 msgid ""
22273 " lremovexattr xattr path\n"
22274 "\n"
22275 msgstr ""
22276
22277 # type: textblock
22278 #: ../fish/guestfish-actions.pod:2379
22279 msgid ""
22280 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
22281 "it removes an extended attribute of the link itself."
22282 msgstr ""
22283
22284 # type: =head2
22285 #: ../fish/guestfish-actions.pod:2383
22286 msgid "ls"
22287 msgstr ""
22288
22289 # type: verbatim
22290 #: ../fish/guestfish-actions.pod:2385
22291 #, no-wrap
22292 msgid ""
22293 " ls directory\n"
22294 "\n"
22295 msgstr ""
22296
22297 # type: textblock
22298 #: ../fish/guestfish-actions.pod:2391
22299 msgid ""
22300 "This command is mostly useful for interactive sessions.  Programs should "
22301 "probably use L</readdir> instead."
22302 msgstr ""
22303
22304 # type: =head2
22305 #: ../fish/guestfish-actions.pod:2394
22306 msgid "lsetxattr"
22307 msgstr ""
22308
22309 # type: verbatim
22310 #: ../fish/guestfish-actions.pod:2396
22311 #, no-wrap
22312 msgid ""
22313 " lsetxattr xattr val vallen path\n"
22314 "\n"
22315 msgstr ""
22316
22317 # type: textblock
22318 #: ../fish/guestfish-actions.pod:2398
22319 msgid ""
22320 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
22321 "sets an extended attribute of the link itself."
22322 msgstr ""
22323
22324 # type: =head2
22325 #: ../fish/guestfish-actions.pod:2402
22326 msgid "lstat"
22327 msgstr ""
22328
22329 # type: verbatim
22330 #: ../fish/guestfish-actions.pod:2404
22331 #, no-wrap
22332 msgid ""
22333 " lstat path\n"
22334 "\n"
22335 msgstr ""
22336
22337 # type: textblock
22338 #: ../fish/guestfish-actions.pod:2408
22339 msgid ""
22340 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
22341 "the link is stat-ed, not the file it refers to."
22342 msgstr ""
22343
22344 # type: =head2
22345 #: ../fish/guestfish-actions.pod:2414
22346 msgid "lstatlist"
22347 msgstr ""
22348
22349 # type: verbatim
22350 #: ../fish/guestfish-actions.pod:2416
22351 #, no-wrap
22352 msgid ""
22353 " lstatlist path 'names ...'\n"
22354 "\n"
22355 msgstr ""
22356
22357 # type: textblock
22358 #: ../fish/guestfish-actions.pod:2418
22359 msgid ""
22360 "This call allows you to perform the L</lstat> operation on multiple files, "
22361 "where all files are in the directory C<path>.  C<names> is the list of files "
22362 "from this directory."
22363 msgstr ""
22364
22365 # type: textblock
22366 #: ../fish/guestfish-actions.pod:2427
22367 msgid ""
22368 "This call is intended for programs that want to efficiently list a directory "
22369 "contents without making many round-trips.  See also L</lxattrlist> for a "
22370 "similarly efficient call for getting extended attributes.  Very long "
22371 "directory listings might cause the protocol message size to be exceeded, "
22372 "causing this call to fail.  The caller must split up such requests into "
22373 "smaller groups of names."
22374 msgstr ""
22375
22376 # type: =head2
22377 #: ../fish/guestfish-actions.pod:2435
22378 msgid "luks-add-key"
22379 msgstr ""
22380
22381 # type: verbatim
22382 #: ../fish/guestfish-actions.pod:2437
22383 #, no-wrap
22384 msgid ""
22385 " luks-add-key device keyslot\n"
22386 "\n"
22387 msgstr ""
22388
22389 # type: textblock
22390 #: ../fish/guestfish-actions.pod:2444
22391 msgid ""
22392 "Note that if C<keyslot> already contains a key, then this command will "
22393 "fail.  You have to use L</luks-kill-slot> first to remove that key."
22394 msgstr ""
22395
22396 # type: textblock
22397 #: ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2470
22398 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:2497
22399 #: ../fish/guestfish-actions.pod:2520 ../fish/guestfish-actions.pod:2530
22400 msgid ""
22401 "This command has one or more key or passphrase parameters.  Guestfish will "
22402 "prompt for these separately."
22403 msgstr ""
22404
22405 # type: =head2
22406 #: ../fish/guestfish-actions.pod:2451
22407 msgid "luks-close"
22408 msgstr ""
22409
22410 # type: verbatim
22411 #: ../fish/guestfish-actions.pod:2453
22412 #, no-wrap
22413 msgid ""
22414 " luks-close device\n"
22415 "\n"
22416 msgstr ""
22417
22418 # type: textblock
22419 #: ../fish/guestfish-actions.pod:2455
22420 msgid ""
22421 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
22422 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
22423 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
22424 "block device."
22425 msgstr ""
22426
22427 # type: =head2
22428 #: ../fish/guestfish-actions.pod:2461
22429 msgid "luks-format"
22430 msgstr ""
22431
22432 # type: verbatim
22433 #: ../fish/guestfish-actions.pod:2463
22434 #, no-wrap
22435 msgid ""
22436 " luks-format device keyslot\n"
22437 "\n"
22438 msgstr ""
22439
22440 # type: =head2
22441 #: ../fish/guestfish-actions.pod:2476
22442 msgid "luks-format-cipher"
22443 msgstr ""
22444
22445 # type: verbatim
22446 #: ../fish/guestfish-actions.pod:2478
22447 #, no-wrap
22448 msgid ""
22449 " luks-format-cipher device keyslot cipher\n"
22450 "\n"
22451 msgstr ""
22452
22453 # type: textblock
22454 #: ../fish/guestfish-actions.pod:2480
22455 msgid ""
22456 "This command is the same as L</luks-format> but it also allows you to set "
22457 "the C<cipher> used."
22458 msgstr ""
22459
22460 # type: =head2
22461 #: ../fish/guestfish-actions.pod:2489
22462 msgid "luks-kill-slot"
22463 msgstr ""
22464
22465 # type: verbatim
22466 #: ../fish/guestfish-actions.pod:2491
22467 #, no-wrap
22468 msgid ""
22469 " luks-kill-slot device keyslot\n"
22470 "\n"
22471 msgstr ""
22472
22473 # type: =head2
22474 #: ../fish/guestfish-actions.pod:2500
22475 msgid "luks-open"
22476 msgstr ""
22477
22478 # type: verbatim
22479 #: ../fish/guestfish-actions.pod:2502
22480 #, no-wrap
22481 msgid ""
22482 " luks-open device mapname\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: textblock
22487 #: ../fish/guestfish-actions.pod:2516
22488 msgid ""
22489 "If this block device contains LVM volume groups, then calling L</vgscan> "
22490 "followed by L</vg-activate-all> will make them visible."
22491 msgstr ""
22492
22493 # type: =head2
22494 #: ../fish/guestfish-actions.pod:2523
22495 msgid "luks-open-ro"
22496 msgstr ""
22497
22498 # type: verbatim
22499 #: ../fish/guestfish-actions.pod:2525
22500 #, no-wrap
22501 msgid ""
22502 " luks-open-ro device mapname\n"
22503 "\n"
22504 msgstr ""
22505
22506 # type: textblock
22507 #: ../fish/guestfish-actions.pod:2527
22508 msgid ""
22509 "This is the same as L</luks-open> except that a read-only mapping is created."
22510 msgstr ""
22511
22512 # type: =head2
22513 #: ../fish/guestfish-actions.pod:2533
22514 msgid "lvcreate"
22515 msgstr ""
22516
22517 # type: verbatim
22518 #: ../fish/guestfish-actions.pod:2535
22519 #, no-wrap
22520 msgid ""
22521 " lvcreate logvol volgroup mbytes\n"
22522 "\n"
22523 msgstr ""
22524
22525 # type: =head2
22526 #: ../fish/guestfish-actions.pod:2540
22527 msgid "lvm-canonical-lv-name"
22528 msgstr ""
22529
22530 # type: verbatim
22531 #: ../fish/guestfish-actions.pod:2542
22532 #, no-wrap
22533 msgid ""
22534 " lvm-canonical-lv-name lvname\n"
22535 "\n"
22536 msgstr ""
22537
22538 # type: textblock
22539 #: ../fish/guestfish-actions.pod:2551
22540 msgid "See also L</is-lv>."
22541 msgstr ""
22542
22543 # type: =head2
22544 #: ../fish/guestfish-actions.pod:2553
22545 msgid "lvm-clear-filter"
22546 msgstr ""
22547
22548 # type: verbatim
22549 #: ../fish/guestfish-actions.pod:2555
22550 #, no-wrap
22551 msgid ""
22552 " lvm-clear-filter\n"
22553 "\n"
22554 msgstr ""
22555
22556 # type: textblock
22557 #: ../fish/guestfish-actions.pod:2557
22558 msgid ""
22559 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
22560 "block device."
22561 msgstr ""
22562
22563 # type: =head2
22564 #: ../fish/guestfish-actions.pod:2563
22565 msgid "lvm-remove-all"
22566 msgstr ""
22567
22568 # type: verbatim
22569 #: ../fish/guestfish-actions.pod:2565
22570 #, no-wrap
22571 msgid ""
22572 " lvm-remove-all\n"
22573 "\n"
22574 msgstr ""
22575
22576 # type: =head2
22577 #: ../fish/guestfish-actions.pod:2573
22578 msgid "lvm-set-filter"
22579 msgstr ""
22580
22581 # type: verbatim
22582 #: ../fish/guestfish-actions.pod:2575
22583 #, no-wrap
22584 msgid ""
22585 " lvm-set-filter 'devices ...'\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: =head2
22590 #: ../fish/guestfish-actions.pod:2600
22591 msgid "lvremove"
22592 msgstr ""
22593
22594 # type: verbatim
22595 #: ../fish/guestfish-actions.pod:2602
22596 #, no-wrap
22597 msgid ""
22598 " lvremove device\n"
22599 "\n"
22600 msgstr ""
22601
22602 # type: =head2
22603 #: ../fish/guestfish-actions.pod:2610
22604 msgid "lvrename"
22605 msgstr ""
22606
22607 # type: verbatim
22608 #: ../fish/guestfish-actions.pod:2612
22609 #, no-wrap
22610 msgid ""
22611 " lvrename logvol newlogvol\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: =head2
22616 #: ../fish/guestfish-actions.pod:2616
22617 msgid "lvresize"
22618 msgstr ""
22619
22620 # type: verbatim
22621 #: ../fish/guestfish-actions.pod:2618
22622 #, no-wrap
22623 msgid ""
22624 " lvresize device mbytes\n"
22625 "\n"
22626 msgstr ""
22627
22628 # type: =head2
22629 #: ../fish/guestfish-actions.pod:2624
22630 msgid "lvresize-free"
22631 msgstr ""
22632
22633 # type: verbatim
22634 #: ../fish/guestfish-actions.pod:2626
22635 #, no-wrap
22636 msgid ""
22637 " lvresize-free lv percent\n"
22638 "\n"
22639 msgstr ""
22640
22641 # type: =head2
22642 #: ../fish/guestfish-actions.pod:2634
22643 msgid "lvs"
22644 msgstr ""
22645
22646 # type: verbatim
22647 #: ../fish/guestfish-actions.pod:2636
22648 #, no-wrap
22649 msgid ""
22650 " lvs\n"
22651 "\n"
22652 msgstr ""
22653
22654 # type: textblock
22655 #: ../fish/guestfish-actions.pod:2644
22656 msgid "See also L</lvs-full>, L</list-filesystems>."
22657 msgstr ""
22658
22659 # type: =head2
22660 #: ../fish/guestfish-actions.pod:2646
22661 msgid "lvs-full"
22662 msgstr ""
22663
22664 # type: verbatim
22665 #: ../fish/guestfish-actions.pod:2648
22666 #, no-wrap
22667 msgid ""
22668 " lvs-full\n"
22669 "\n"
22670 msgstr ""
22671
22672 # type: =head2
22673 #: ../fish/guestfish-actions.pod:2653
22674 msgid "lvuuid"
22675 msgstr ""
22676
22677 # type: verbatim
22678 #: ../fish/guestfish-actions.pod:2655
22679 #, no-wrap
22680 msgid ""
22681 " lvuuid device\n"
22682 "\n"
22683 msgstr ""
22684
22685 # type: =head2
22686 #: ../fish/guestfish-actions.pod:2659
22687 msgid "lxattrlist"
22688 msgstr ""
22689
22690 # type: verbatim
22691 #: ../fish/guestfish-actions.pod:2661
22692 #, no-wrap
22693 msgid ""
22694 " lxattrlist path 'names ...'\n"
22695 "\n"
22696 msgstr ""
22697
22698 # type: textblock
22699 #: ../fish/guestfish-actions.pod:2677
22700 msgid ""
22701 "This call is intended for programs that want to efficiently list a directory "
22702 "contents without making many round-trips.  See also L</lstatlist> for a "
22703 "similarly efficient call for getting standard stats.  Very long directory "
22704 "listings might cause the protocol message size to be exceeded, causing this "
22705 "call to fail.  The caller must split up such requests into smaller groups of "
22706 "names."
22707 msgstr ""
22708
22709 # type: =head2
22710 #: ../fish/guestfish-actions.pod:2685
22711 msgid "mkdir"
22712 msgstr ""
22713
22714 # type: verbatim
22715 #: ../fish/guestfish-actions.pod:2687
22716 #, no-wrap
22717 msgid ""
22718 " mkdir path\n"
22719 "\n"
22720 msgstr ""
22721
22722 # type: =head2
22723 #: ../fish/guestfish-actions.pod:2691
22724 msgid "mkdir-mode"
22725 msgstr ""
22726
22727 # type: verbatim
22728 #: ../fish/guestfish-actions.pod:2693
22729 #, no-wrap
22730 msgid ""
22731 " mkdir-mode path mode\n"
22732 "\n"
22733 msgstr ""
22734
22735 # type: textblock
22736 #: ../fish/guestfish-actions.pod:2702
22737 msgid "See also L</mkdir>, L</umask>"
22738 msgstr ""
22739
22740 # type: =head2
22741 #: ../fish/guestfish-actions.pod:2704
22742 msgid "mkdir-p"
22743 msgstr ""
22744
22745 # type: verbatim
22746 #: ../fish/guestfish-actions.pod:2706
22747 #, no-wrap
22748 msgid ""
22749 " mkdir-p path\n"
22750 "\n"
22751 msgstr ""
22752
22753 # type: =head2
22754 #: ../fish/guestfish-actions.pod:2711
22755 msgid "mkdtemp"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #: ../fish/guestfish-actions.pod:2713
22760 #, no-wrap
22761 msgid ""
22762 " mkdtemp template\n"
22763 "\n"
22764 msgstr ""
22765
22766 # type: =head2
22767 #: ../fish/guestfish-actions.pod:2734
22768 msgid "mke2fs-J"
22769 msgstr ""
22770
22771 # type: verbatim
22772 #: ../fish/guestfish-actions.pod:2736
22773 #, no-wrap
22774 msgid ""
22775 " mke2fs-J fstype blocksize device journal\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: textblock
22780 #: ../fish/guestfish-actions.pod:2744
22781 msgid "See also L</mke2journal>."
22782 msgstr ""
22783
22784 # type: =head2
22785 #: ../fish/guestfish-actions.pod:2746
22786 msgid "mke2fs-JL"
22787 msgstr ""
22788
22789 # type: verbatim
22790 #: ../fish/guestfish-actions.pod:2748
22791 #, no-wrap
22792 msgid ""
22793 " mke2fs-JL fstype blocksize device label\n"
22794 "\n"
22795 msgstr ""
22796
22797 # type: textblock
22798 #: ../fish/guestfish-actions.pod:2753
22799 msgid "See also L</mke2journal-L>."
22800 msgstr ""
22801
22802 # type: =head2
22803 #: ../fish/guestfish-actions.pod:2755
22804 msgid "mke2fs-JU"
22805 msgstr ""
22806
22807 # type: verbatim
22808 #: ../fish/guestfish-actions.pod:2757
22809 #, no-wrap
22810 msgid ""
22811 " mke2fs-JU fstype blocksize device uuid\n"
22812 "\n"
22813 msgstr ""
22814
22815 # type: textblock
22816 #: ../fish/guestfish-actions.pod:2762
22817 msgid "See also L</mke2journal-U>."
22818 msgstr ""
22819
22820 # type: =head2
22821 #: ../fish/guestfish-actions.pod:2764
22822 msgid "mke2journal"
22823 msgstr ""
22824
22825 # type: verbatim
22826 #: ../fish/guestfish-actions.pod:2766
22827 #, no-wrap
22828 msgid ""
22829 " mke2journal blocksize device\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: =head2
22834 #: ../fish/guestfish-actions.pod:2773
22835 msgid "mke2journal-L"
22836 msgstr ""
22837
22838 # type: verbatim
22839 #: ../fish/guestfish-actions.pod:2775
22840 #, no-wrap
22841 msgid ""
22842 " mke2journal-L blocksize label device\n"
22843 "\n"
22844 msgstr ""
22845
22846 # type: =head2
22847 #: ../fish/guestfish-actions.pod:2779
22848 msgid "mke2journal-U"
22849 msgstr ""
22850
22851 # type: verbatim
22852 #: ../fish/guestfish-actions.pod:2781
22853 #, no-wrap
22854 msgid ""
22855 " mke2journal-U blocksize uuid device\n"
22856 "\n"
22857 msgstr ""
22858
22859 # type: =head2
22860 #: ../fish/guestfish-actions.pod:2785
22861 msgid "mkfifo"
22862 msgstr ""
22863
22864 # type: verbatim
22865 #: ../fish/guestfish-actions.pod:2787
22866 #, no-wrap
22867 msgid ""
22868 " mkfifo mode path\n"
22869 "\n"
22870 msgstr ""
22871
22872 # type: textblock
22873 #: ../fish/guestfish-actions.pod:2789
22874 msgid ""
22875 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
22876 "is just a convenient wrapper around L</mknod>."
22877 msgstr ""
22878
22879 # type: =head2
22880 #: ../fish/guestfish-actions.pod:2795
22881 msgid "mkfs"
22882 msgstr ""
22883
22884 # type: verbatim
22885 #: ../fish/guestfish-actions.pod:2797
22886 #, no-wrap
22887 msgid ""
22888 " mkfs fstype device\n"
22889 "\n"
22890 msgstr ""
22891
22892 # type: =head2
22893 #: ../fish/guestfish-actions.pod:2803
22894 msgid "mkfs-b"
22895 msgstr ""
22896
22897 # type: verbatim
22898 #: ../fish/guestfish-actions.pod:2805
22899 #, no-wrap
22900 msgid ""
22901 " mkfs-b fstype blocksize device\n"
22902 "\n"
22903 msgstr ""
22904
22905 # type: textblock
22906 #: ../fish/guestfish-actions.pod:2807
22907 msgid ""
22908 "This call is similar to L</mkfs>, but it allows you to control the block "
22909 "size of the resulting filesystem.  Supported block sizes depend on the "
22910 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
22911 msgstr ""
22912
22913 # type: =head2
22914 #: ../fish/guestfish-actions.pod:2822
22915 msgid "mkfs-opts"
22916 msgstr ""
22917
22918 # type: verbatim
22919 #: ../fish/guestfish-actions.pod:2824
22920 #, no-wrap
22921 msgid ""
22922 " mkfs-opts fstype device [blocksize:..]\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: =head2
22927 #: ../fish/guestfish-actions.pod:2846
22928 msgid "mkmountpoint"
22929 msgstr ""
22930
22931 # type: verbatim
22932 #: ../fish/guestfish-actions.pod:2848
22933 #, no-wrap
22934 msgid ""
22935 " mkmountpoint exemptpath\n"
22936 "\n"
22937 msgstr ""
22938
22939 # type: textblock
22940 #: ../fish/guestfish-actions.pod:2850
22941 msgid ""
22942 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
22943 "to create extra mountpoints before mounting the first filesystem."
22944 msgstr ""
22945
22946 # type: textblock
22947 #: ../fish/guestfish-actions.pod:2874
22948 msgid ""
22949 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
22950 "unexpected errors if you try to mix these calls.  It is safest to manually "
22951 "unmount filesystems and remove mountpoints after use."
22952 msgstr ""
22953
22954 # type: textblock
22955 #: ../fish/guestfish-actions.pod:2878
22956 msgid ""
22957 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
22958 "for this to work for manual mountpoints, you must ensure that the innermost "
22959 "mountpoints have the longest pathnames, as in the example code above."
22960 msgstr ""
22961
22962 # type: textblock
22963 #: ../fish/guestfish-actions.pod:2885
22964 msgid ""
22965 "Autosync [see L</set-autosync>, this is set by default on handles] means "
22966 "that L</umount-all> is called when the handle is closed which can also "
22967 "trigger these issues."
22968 msgstr ""
22969
22970 # type: =head2
22971 #: ../fish/guestfish-actions.pod:2889
22972 msgid "mknod"
22973 msgstr ""
22974
22975 # type: verbatim
22976 #: ../fish/guestfish-actions.pod:2891
22977 #, no-wrap
22978 msgid ""
22979 " mknod mode devmajor devminor path\n"
22980 "\n"
22981 msgstr ""
22982
22983 # type: textblock
22984 #: ../fish/guestfish-actions.pod:2901
22985 msgid ""
22986 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
22987 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
22988 "regular file).  These constants are available in the standard Linux header "
22989 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
22990 "wrappers around this command which bitwise OR in the appropriate constant "
22991 "for you."
22992 msgstr ""
22993
22994 # type: =head2
22995 #: ../fish/guestfish-actions.pod:2911
22996 msgid "mknod-b"
22997 msgstr ""
22998
22999 # type: verbatim
23000 #: ../fish/guestfish-actions.pod:2913
23001 #, no-wrap
23002 msgid ""
23003 " mknod-b mode devmajor devminor path\n"
23004 "\n"
23005 msgstr ""
23006
23007 # type: textblock
23008 #: ../fish/guestfish-actions.pod:2915
23009 msgid ""
23010 "This call creates a block device node called C<path> with mode C<mode> and "
23011 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23012 "wrapper around L</mknod>."
23013 msgstr ""
23014
23015 # type: =head2
23016 #: ../fish/guestfish-actions.pod:2921
23017 msgid "mknod-c"
23018 msgstr ""
23019
23020 # type: verbatim
23021 #: ../fish/guestfish-actions.pod:2923
23022 #, no-wrap
23023 msgid ""
23024 " mknod-c mode devmajor devminor path\n"
23025 "\n"
23026 msgstr ""
23027
23028 # type: textblock
23029 #: ../fish/guestfish-actions.pod:2925
23030 msgid ""
23031 "This call creates a char device node called C<path> with mode C<mode> and "
23032 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
23033 "wrapper around L</mknod>."
23034 msgstr ""
23035
23036 # type: =head2
23037 #: ../fish/guestfish-actions.pod:2931
23038 msgid "mkswap"
23039 msgstr ""
23040
23041 # type: verbatim
23042 #: ../fish/guestfish-actions.pod:2933
23043 #, no-wrap
23044 msgid ""
23045 " mkswap device\n"
23046 "\n"
23047 msgstr ""
23048
23049 # type: =head2
23050 #: ../fish/guestfish-actions.pod:2937
23051 msgid "mkswap-L"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #: ../fish/guestfish-actions.pod:2939
23056 #, no-wrap
23057 msgid ""
23058 " mkswap-L label device\n"
23059 "\n"
23060 msgstr ""
23061
23062 # type: =head2
23063 #: ../fish/guestfish-actions.pod:2947
23064 msgid "mkswap-U"
23065 msgstr ""
23066
23067 # type: verbatim
23068 #: ../fish/guestfish-actions.pod:2949
23069 #, no-wrap
23070 msgid ""
23071 " mkswap-U uuid device\n"
23072 "\n"
23073 msgstr ""
23074
23075 # type: =head2
23076 #: ../fish/guestfish-actions.pod:2953
23077 msgid "mkswap-file"
23078 msgstr ""
23079
23080 # type: verbatim
23081 #: ../fish/guestfish-actions.pod:2955
23082 #, no-wrap
23083 msgid ""
23084 " mkswap-file path\n"
23085 "\n"
23086 msgstr ""
23087
23088 # type: textblock
23089 #: ../fish/guestfish-actions.pod:2959
23090 msgid ""
23091 "This command just writes a swap file signature to an existing file.  To "
23092 "create the file itself, use something like L</fallocate>."
23093 msgstr ""
23094
23095 # type: =head2
23096 #: ../fish/guestfish-actions.pod:2962
23097 msgid "modprobe"
23098 msgstr ""
23099
23100 # type: verbatim
23101 #: ../fish/guestfish-actions.pod:2964
23102 #, no-wrap
23103 msgid ""
23104 " modprobe modulename\n"
23105 "\n"
23106 msgstr ""
23107
23108 # type: =head2
23109 #: ../fish/guestfish-actions.pod:2971
23110 msgid "mount"
23111 msgstr ""
23112
23113 # type: verbatim
23114 #: ../fish/guestfish-actions.pod:2973
23115 #, no-wrap
23116 msgid ""
23117 " mount device mountpoint\n"
23118 "\n"
23119 msgstr ""
23120
23121 # type: textblock
23122 #: ../fish/guestfish-actions.pod:2989
23123 msgid ""
23124 "B<Important note:> When you use this call, the filesystem options C<sync> "
23125 "and C<noatime> are set implicitly.  This was originally done because we "
23126 "thought it would improve reliability, but it turns out that I<-o sync> has a "
23127 "very large negative performance impact and negligible effect on "
23128 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
23129 "code that needs performance, and instead use L</mount-options> (use an empty "
23130 "string for the first parameter if you don't want any options)."
23131 msgstr ""
23132
23133 # type: =head2
23134 #: ../fish/guestfish-actions.pod:2999
23135 msgid "mount-loop"
23136 msgstr ""
23137
23138 # type: verbatim
23139 #: ../fish/guestfish-actions.pod:3001
23140 #, no-wrap
23141 msgid ""
23142 " mount-loop file mountpoint\n"
23143 "\n"
23144 msgstr ""
23145
23146 # type: =head2
23147 #: ../fish/guestfish-actions.pod:3007
23148 msgid "mount-options"
23149 msgstr ""
23150
23151 # type: verbatim
23152 #: ../fish/guestfish-actions.pod:3009
23153 #, no-wrap
23154 msgid ""
23155 " mount-options options device mountpoint\n"
23156 "\n"
23157 msgstr ""
23158
23159 # type: textblock
23160 #: ../fish/guestfish-actions.pod:3011
23161 msgid ""
23162 "This is the same as the L</mount> command, but it allows you to set the "
23163 "mount options as for the L<mount(8)> I<-o> flag."
23164 msgstr ""
23165
23166 # type: =head2
23167 #: ../fish/guestfish-actions.pod:3019
23168 msgid "mount-ro"
23169 msgstr ""
23170
23171 # type: verbatim
23172 #: ../fish/guestfish-actions.pod:3021
23173 #, no-wrap
23174 msgid ""
23175 " mount-ro device mountpoint\n"
23176 "\n"
23177 msgstr ""
23178
23179 # type: textblock
23180 #: ../fish/guestfish-actions.pod:3023
23181 msgid ""
23182 "This is the same as the L</mount> command, but it mounts the filesystem with "
23183 "the read-only (I<-o ro>) flag."
23184 msgstr ""
23185
23186 # type: =head2
23187 #: ../fish/guestfish-actions.pod:3026
23188 msgid "mount-vfs"
23189 msgstr ""
23190
23191 # type: verbatim
23192 #: ../fish/guestfish-actions.pod:3028
23193 #, no-wrap
23194 msgid ""
23195 " mount-vfs options vfstype device mountpoint\n"
23196 "\n"
23197 msgstr ""
23198
23199 # type: textblock
23200 #: ../fish/guestfish-actions.pod:3030
23201 msgid ""
23202 "This is the same as the L</mount> command, but it allows you to set both the "
23203 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
23204 msgstr ""
23205
23206 # type: =head2
23207 #: ../fish/guestfish-actions.pod:3034
23208 msgid "mountpoints"
23209 msgstr ""
23210
23211 # type: verbatim
23212 #: ../fish/guestfish-actions.pod:3036
23213 #, no-wrap
23214 msgid ""
23215 " mountpoints\n"
23216 "\n"
23217 msgstr ""
23218
23219 # type: textblock
23220 #: ../fish/guestfish-actions.pod:3038
23221 msgid ""
23222 "This call is similar to L</mounts>.  That call returns a list of devices.  "
23223 "This one returns a hash table (map) of device name to directory where the "
23224 "device is mounted."
23225 msgstr ""
23226
23227 # type: =head2
23228 #: ../fish/guestfish-actions.pod:3042
23229 msgid "mounts"
23230 msgstr ""
23231
23232 # type: verbatim
23233 #: ../fish/guestfish-actions.pod:3044
23234 #, no-wrap
23235 msgid ""
23236 " mounts\n"
23237 "\n"
23238 msgstr ""
23239
23240 # type: textblock
23241 #: ../fish/guestfish-actions.pod:3051
23242 msgid "See also: L</mountpoints>"
23243 msgstr ""
23244
23245 # type: =head2
23246 #: ../fish/guestfish-actions.pod:3053
23247 msgid "mv"
23248 msgstr ""
23249
23250 # type: verbatim
23251 #: ../fish/guestfish-actions.pod:3055
23252 #, no-wrap
23253 msgid ""
23254 " mv src dest\n"
23255 "\n"
23256 msgstr ""
23257
23258 # type: =head2
23259 #: ../fish/guestfish-actions.pod:3060
23260 msgid "ntfs-3g-probe"
23261 msgstr ""
23262
23263 # type: verbatim
23264 #: ../fish/guestfish-actions.pod:3062
23265 #, no-wrap
23266 msgid ""
23267 " ntfs-3g-probe true|false device\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: =head2
23272 #: ../fish/guestfish-actions.pod:3076
23273 msgid "ntfsresize"
23274 msgstr ""
23275
23276 # type: verbatim
23277 #: ../fish/guestfish-actions.pod:3078
23278 #, no-wrap
23279 msgid ""
23280 " ntfsresize device\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: =head2
23285 #: ../fish/guestfish-actions.pod:3084
23286 msgid "ntfsresize-size"
23287 msgstr ""
23288
23289 # type: verbatim
23290 #: ../fish/guestfish-actions.pod:3086
23291 #, no-wrap
23292 msgid ""
23293 " ntfsresize-size device size\n"
23294 "\n"
23295 msgstr ""
23296
23297 # type: textblock
23298 #: ../fish/guestfish-actions.pod:3088
23299 msgid ""
23300 "This command is the same as L</ntfsresize> except that it allows you to "
23301 "specify the new size (in bytes) explicitly."
23302 msgstr ""
23303
23304 # type: =head2
23305 #: ../fish/guestfish-actions.pod:3091
23306 msgid "part-add"
23307 msgstr ""
23308
23309 # type: verbatim
23310 #: ../fish/guestfish-actions.pod:3093
23311 #, no-wrap
23312 msgid ""
23313 " part-add device prlogex startsect endsect\n"
23314 "\n"
23315 msgstr ""
23316
23317 # type: textblock
23318 #: ../fish/guestfish-actions.pod:3095
23319 msgid ""
23320 "This command adds a partition to C<device>.  If there is no partition table "
23321 "on the device, call L</part-init> first."
23322 msgstr ""
23323
23324 # type: textblock
23325 #: ../fish/guestfish-actions.pod:3107
23326 msgid ""
23327 "Creating a partition which covers the whole disk is not so easy.  Use L</"
23328 "part-disk> to do that."
23329 msgstr ""
23330
23331 # type: =head2
23332 #: ../fish/guestfish-actions.pod:3110
23333 msgid "part-del"
23334 msgstr ""
23335
23336 # type: verbatim
23337 #: ../fish/guestfish-actions.pod:3112
23338 #, no-wrap
23339 msgid ""
23340 " part-del device partnum\n"
23341 "\n"
23342 msgstr ""
23343
23344 # type: =head2
23345 #: ../fish/guestfish-actions.pod:3120
23346 msgid "part-disk"
23347 msgstr ""
23348
23349 # type: verbatim
23350 #: ../fish/guestfish-actions.pod:3122
23351 #, no-wrap
23352 msgid ""
23353 " part-disk device parttype\n"
23354 "\n"
23355 msgstr ""
23356
23357 # type: textblock
23358 #: ../fish/guestfish-actions.pod:3124
23359 msgid ""
23360 "This command is simply a combination of L</part-init> followed by L</part-"
23361 "add> to create a single primary partition covering the whole disk."
23362 msgstr ""
23363
23364 # type: textblock
23365 #: ../fish/guestfish-actions.pod:3128
23366 msgid ""
23367 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
23368 "possible values are described in L</part-init>."
23369 msgstr ""
23370
23371 # type: =head2
23372 #: ../fish/guestfish-actions.pod:3134
23373 msgid "part-get-bootable"
23374 msgstr ""
23375
23376 # type: verbatim
23377 #: ../fish/guestfish-actions.pod:3136
23378 #, no-wrap
23379 msgid ""
23380 " part-get-bootable device partnum\n"
23381 "\n"
23382 msgstr ""
23383
23384 # type: textblock
23385 #: ../fish/guestfish-actions.pod:3141
23386 msgid "See also L</part-set-bootable>."
23387 msgstr ""
23388
23389 # type: =head2
23390 #: ../fish/guestfish-actions.pod:3143
23391 msgid "part-get-mbr-id"
23392 msgstr ""
23393
23394 # type: verbatim
23395 #: ../fish/guestfish-actions.pod:3145
23396 #, no-wrap
23397 msgid ""
23398 " part-get-mbr-id device partnum\n"
23399 "\n"
23400 msgstr ""
23401
23402 # type: textblock
23403 #: ../fish/guestfish-actions.pod:3150 ../fish/guestfish-actions.pod:3288
23404 msgid ""
23405 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
23406 "undefined results for other partition table types (see L</part-get-"
23407 "parttype>)."
23408 msgstr ""
23409
23410 # type: =head2
23411 #: ../fish/guestfish-actions.pod:3154
23412 msgid "part-get-parttype"
23413 msgstr ""
23414
23415 # type: verbatim
23416 #: ../fish/guestfish-actions.pod:3156
23417 #, no-wrap
23418 msgid ""
23419 " part-get-parttype device\n"
23420 "\n"
23421 msgstr ""
23422
23423 # type: textblock
23424 #: ../fish/guestfish-actions.pod:3161
23425 msgid ""
23426 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
23427 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
23428 "possible, although unusual.  See L</part-init> for a full list."
23429 msgstr ""
23430
23431 # type: =head2
23432 #: ../fish/guestfish-actions.pod:3166
23433 msgid "part-init"
23434 msgstr ""
23435
23436 # type: verbatim
23437 #: ../fish/guestfish-actions.pod:3168
23438 #, no-wrap
23439 msgid ""
23440 " part-init device parttype\n"
23441 "\n"
23442 msgstr ""
23443
23444 # type: textblock
23445 #: ../fish/guestfish-actions.pod:3174
23446 msgid ""
23447 "Initially there are no partitions.  Following this, you should call L</part-"
23448 "add> for each partition required."
23449 msgstr ""
23450
23451 # type: =head2
23452 #: ../fish/guestfish-actions.pod:3237
23453 msgid "part-list"
23454 msgstr ""
23455
23456 # type: verbatim
23457 #: ../fish/guestfish-actions.pod:3239
23458 #, no-wrap
23459 msgid ""
23460 " part-list device\n"
23461 "\n"
23462 msgstr ""
23463
23464 # type: textblock
23465 #: ../fish/guestfish-actions.pod:3254
23466 msgid ""
23467 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
23468 "the device's sector size, see L</blockdev-getss>."
23469 msgstr ""
23470
23471 # type: =head2
23472 #: ../fish/guestfish-actions.pod:3267
23473 msgid "part-set-bootable"
23474 msgstr ""
23475
23476 # type: verbatim
23477 #: ../fish/guestfish-actions.pod:3269
23478 #, no-wrap
23479 msgid ""
23480 " part-set-bootable device partnum true|false\n"
23481 "\n"
23482 msgstr ""
23483
23484 # type: =head2
23485 #: ../fish/guestfish-actions.pod:3278
23486 msgid "part-set-mbr-id"
23487 msgstr ""
23488
23489 # type: verbatim
23490 #: ../fish/guestfish-actions.pod:3280
23491 #, no-wrap
23492 msgid ""
23493 " part-set-mbr-id device partnum idbyte\n"
23494 "\n"
23495 msgstr ""
23496
23497 # type: =head2
23498 #: ../fish/guestfish-actions.pod:3292
23499 msgid "part-set-name"
23500 msgstr ""
23501
23502 # type: verbatim
23503 #: ../fish/guestfish-actions.pod:3294
23504 #, no-wrap
23505 msgid ""
23506 " part-set-name device partnum name\n"
23507 "\n"
23508 msgstr ""
23509
23510 # type: =head2
23511 #: ../fish/guestfish-actions.pod:3302
23512 msgid "part-to-dev"
23513 msgstr ""
23514
23515 # type: verbatim
23516 #: ../fish/guestfish-actions.pod:3304
23517 #, no-wrap
23518 msgid ""
23519 " part-to-dev partition\n"
23520 "\n"
23521 msgstr ""
23522
23523 # type: textblock
23524 #: ../fish/guestfish-actions.pod:3310
23525 msgid ""
23526 "The named partition must exist, for example as a string returned from L</"
23527 "list-partitions>."
23528 msgstr ""
23529
23530 # type: =head2
23531 #: ../fish/guestfish-actions.pod:3313
23532 msgid "ping-daemon"
23533 msgstr ""
23534
23535 # type: verbatim
23536 #: ../fish/guestfish-actions.pod:3315
23537 #, no-wrap
23538 msgid ""
23539 " ping-daemon\n"
23540 "\n"
23541 msgstr ""
23542
23543 # type: =head2
23544 #: ../fish/guestfish-actions.pod:3322
23545 msgid "pread"
23546 msgstr ""
23547
23548 # type: verbatim
23549 #: ../fish/guestfish-actions.pod:3324
23550 #, no-wrap
23551 msgid ""
23552 " pread path count offset\n"
23553 "\n"
23554 msgstr ""
23555
23556 # type: textblock
23557 #: ../fish/guestfish-actions.pod:3332
23558 msgid "See also L</pwrite>, L</pread-device>."
23559 msgstr ""
23560
23561 # type: =head2
23562 #: ../fish/guestfish-actions.pod:3337
23563 msgid "pread-device"
23564 msgstr ""
23565
23566 # type: verbatim
23567 #: ../fish/guestfish-actions.pod:3339
23568 #, no-wrap
23569 msgid ""
23570 " pread-device device count offset\n"
23571 "\n"
23572 msgstr ""
23573
23574 # type: textblock
23575 #: ../fish/guestfish-actions.pod:3347
23576 msgid "See also L</pread>."
23577 msgstr ""
23578
23579 # type: =head2
23580 #: ../fish/guestfish-actions.pod:3352
23581 msgid "pvcreate"
23582 msgstr ""
23583
23584 # type: verbatim
23585 #: ../fish/guestfish-actions.pod:3354
23586 #, no-wrap
23587 msgid ""
23588 " pvcreate device\n"
23589 "\n"
23590 msgstr ""
23591
23592 # type: =head2
23593 #: ../fish/guestfish-actions.pod:3360
23594 msgid "pvremove"
23595 msgstr ""
23596
23597 # type: verbatim
23598 #: ../fish/guestfish-actions.pod:3362
23599 #, no-wrap
23600 msgid ""
23601 " pvremove device\n"
23602 "\n"
23603 msgstr ""
23604
23605 # type: =head2
23606 #: ../fish/guestfish-actions.pod:3371
23607 msgid "pvresize"
23608 msgstr ""
23609
23610 # type: verbatim
23611 #: ../fish/guestfish-actions.pod:3373
23612 #, no-wrap
23613 msgid ""
23614 " pvresize device\n"
23615 "\n"
23616 msgstr ""
23617
23618 # type: =head2
23619 #: ../fish/guestfish-actions.pod:3378
23620 msgid "pvresize-size"
23621 msgstr ""
23622
23623 # type: verbatim
23624 #: ../fish/guestfish-actions.pod:3380
23625 #, no-wrap
23626 msgid ""
23627 " pvresize-size device size\n"
23628 "\n"
23629 msgstr ""
23630
23631 # type: textblock
23632 #: ../fish/guestfish-actions.pod:3382
23633 msgid ""
23634 "This command is the same as L</pvresize> except that it allows you to "
23635 "specify the new size (in bytes) explicitly."
23636 msgstr ""
23637
23638 # type: =head2
23639 #: ../fish/guestfish-actions.pod:3385
23640 msgid "pvs"
23641 msgstr ""
23642
23643 # type: verbatim
23644 #: ../fish/guestfish-actions.pod:3387
23645 #, no-wrap
23646 msgid ""
23647 " pvs\n"
23648 "\n"
23649 msgstr ""
23650
23651 # type: textblock
23652 #: ../fish/guestfish-actions.pod:3395
23653 msgid "See also L</pvs-full>."
23654 msgstr ""
23655
23656 # type: =head2
23657 #: ../fish/guestfish-actions.pod:3397
23658 msgid "pvs-full"
23659 msgstr ""
23660
23661 # type: verbatim
23662 #: ../fish/guestfish-actions.pod:3399
23663 #, no-wrap
23664 msgid ""
23665 " pvs-full\n"
23666 "\n"
23667 msgstr ""
23668
23669 # type: =head2
23670 #: ../fish/guestfish-actions.pod:3404
23671 msgid "pvuuid"
23672 msgstr ""
23673
23674 # type: verbatim
23675 #: ../fish/guestfish-actions.pod:3406
23676 #, no-wrap
23677 msgid ""
23678 " pvuuid device\n"
23679 "\n"
23680 msgstr ""
23681
23682 # type: =head2
23683 #: ../fish/guestfish-actions.pod:3410
23684 msgid "pwrite"
23685 msgstr ""
23686
23687 # type: verbatim
23688 #: ../fish/guestfish-actions.pod:3412
23689 #, no-wrap
23690 msgid ""
23691 " pwrite path content offset\n"
23692 "\n"
23693 msgstr ""
23694
23695 # type: textblock
23696 #: ../fish/guestfish-actions.pod:3423
23697 msgid "See also L</pread>, L</pwrite-device>."
23698 msgstr ""
23699
23700 # type: =head2
23701 #: ../fish/guestfish-actions.pod:3428
23702 msgid "pwrite-device"
23703 msgstr ""
23704
23705 # type: verbatim
23706 #: ../fish/guestfish-actions.pod:3430
23707 #, no-wrap
23708 msgid ""
23709 " pwrite-device device content offset\n"
23710 "\n"
23711 msgstr ""
23712
23713 # type: textblock
23714 #: ../fish/guestfish-actions.pod:3440
23715 msgid "See also L</pwrite>."
23716 msgstr ""
23717
23718 # type: =head2
23719 #: ../fish/guestfish-actions.pod:3445
23720 msgid "read-file"
23721 msgstr ""
23722
23723 # type: verbatim
23724 #: ../fish/guestfish-actions.pod:3447
23725 #, no-wrap
23726 msgid ""
23727 " read-file path\n"
23728 "\n"
23729 msgstr ""
23730
23731 # type: textblock
23732 #: ../fish/guestfish-actions.pod:3452
23733 msgid ""
23734 "Unlike L</cat>, this function can correctly handle files that contain "
23735 "embedded ASCII NUL characters.  However unlike L</download>, this function "
23736 "is limited in the total size of file that can be handled."
23737 msgstr ""
23738
23739 # type: =head2
23740 #: ../fish/guestfish-actions.pod:3460
23741 msgid "read-lines"
23742 msgstr ""
23743
23744 # type: verbatim
23745 #: ../fish/guestfish-actions.pod:3462
23746 #, no-wrap
23747 msgid ""
23748 " read-lines path\n"
23749 "\n"
23750 msgstr ""
23751
23752 # type: textblock
23753 #: ../fish/guestfish-actions.pod:3469
23754 msgid ""
23755 "Note that this function cannot correctly handle binary files (specifically, "
23756 "files containing C<\\0> character which is treated as end of line).  For "
23757 "those you need to use the L</read-file> function which has a more complex "
23758 "interface."
23759 msgstr ""
23760
23761 # type: =head2
23762 #: ../fish/guestfish-actions.pod:3474
23763 msgid "readdir"
23764 msgstr ""
23765
23766 # type: verbatim
23767 #: ../fish/guestfish-actions.pod:3476
23768 #, no-wrap
23769 msgid ""
23770 " readdir dir\n"
23771 "\n"
23772 msgstr ""
23773
23774 # type: textblock
23775 #: ../fish/guestfish-actions.pod:3528
23776 msgid ""
23777 "This function is primarily intended for use by programs.  To get a simple "
23778 "list of names, use L</ls>.  To get a printable directory for human "
23779 "consumption, use L</ll>."
23780 msgstr ""
23781
23782 # type: =head2
23783 #: ../fish/guestfish-actions.pod:3532
23784 msgid "readlink"
23785 msgstr ""
23786
23787 # type: verbatim
23788 #: ../fish/guestfish-actions.pod:3534
23789 #, no-wrap
23790 msgid ""
23791 " readlink path\n"
23792 "\n"
23793 msgstr ""
23794
23795 # type: =head2
23796 #: ../fish/guestfish-actions.pod:3538
23797 msgid "readlinklist"
23798 msgstr ""
23799
23800 # type: verbatim
23801 #: ../fish/guestfish-actions.pod:3540
23802 #, no-wrap
23803 msgid ""
23804 " readlinklist path 'names ...'\n"
23805 "\n"
23806 msgstr ""
23807
23808 # type: =head2
23809 #: ../fish/guestfish-actions.pod:3564
23810 msgid "realpath"
23811 msgstr ""
23812
23813 # type: verbatim
23814 #: ../fish/guestfish-actions.pod:3566
23815 #, no-wrap
23816 msgid ""
23817 " realpath path\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: =head2
23822 #: ../fish/guestfish-actions.pod:3571
23823 msgid "removexattr"
23824 msgstr ""
23825
23826 # type: verbatim
23827 #: ../fish/guestfish-actions.pod:3573
23828 #, no-wrap
23829 msgid ""
23830 " removexattr xattr path\n"
23831 "\n"
23832 msgstr ""
23833
23834 # type: textblock
23835 #: ../fish/guestfish-actions.pod:3578
23836 msgid "See also: L</lremovexattr>, L<attr(5)>."
23837 msgstr ""
23838
23839 # type: =head2
23840 #: ../fish/guestfish-actions.pod:3580
23841 msgid "resize2fs"
23842 msgstr ""
23843
23844 # type: verbatim
23845 #: ../fish/guestfish-actions.pod:3582
23846 #, no-wrap
23847 msgid ""
23848 " resize2fs device\n"
23849 "\n"
23850 msgstr ""
23851
23852 # type: textblock
23853 #: ../fish/guestfish-actions.pod:3587
23854 msgid ""
23855 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
23856 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
23857 "gives an error about this and sometimes not.  In any case, it is always safe "
23858 "to call L</e2fsck-f> before calling this function."
23859 msgstr ""
23860
23861 # type: =head2
23862 #: ../fish/guestfish-actions.pod:3593
23863 msgid "resize2fs-size"
23864 msgstr ""
23865
23866 # type: verbatim
23867 #: ../fish/guestfish-actions.pod:3595
23868 #, no-wrap
23869 msgid ""
23870 " resize2fs-size device size\n"
23871 "\n"
23872 msgstr ""
23873
23874 # type: textblock
23875 #: ../fish/guestfish-actions.pod:3597
23876 msgid ""
23877 "This command is the same as L</resize2fs> except that it allows you to "
23878 "specify the new size (in bytes) explicitly."
23879 msgstr ""
23880
23881 # type: =head2
23882 #: ../fish/guestfish-actions.pod:3600
23883 msgid "rm"
23884 msgstr ""
23885
23886 # type: verbatim
23887 #: ../fish/guestfish-actions.pod:3602
23888 #, no-wrap
23889 msgid ""
23890 " rm path\n"
23891 "\n"
23892 msgstr ""
23893
23894 # type: =head2
23895 #: ../fish/guestfish-actions.pod:3606
23896 msgid "rm-rf"
23897 msgstr ""
23898
23899 # type: verbatim
23900 #: ../fish/guestfish-actions.pod:3608
23901 #, no-wrap
23902 msgid ""
23903 " rm-rf path\n"
23904 "\n"
23905 msgstr ""
23906
23907 # type: =head2
23908 #: ../fish/guestfish-actions.pod:3614
23909 msgid "rmdir"
23910 msgstr ""
23911
23912 # type: verbatim
23913 #: ../fish/guestfish-actions.pod:3616
23914 #, no-wrap
23915 msgid ""
23916 " rmdir path\n"
23917 "\n"
23918 msgstr ""
23919
23920 # type: =head2
23921 #: ../fish/guestfish-actions.pod:3620
23922 msgid "rmmountpoint"
23923 msgstr ""
23924
23925 # type: verbatim
23926 #: ../fish/guestfish-actions.pod:3622
23927 #, no-wrap
23928 msgid ""
23929 " rmmountpoint exemptpath\n"
23930 "\n"
23931 msgstr ""
23932
23933 # type: textblock
23934 #: ../fish/guestfish-actions.pod:3624
23935 msgid ""
23936 "This calls removes a mountpoint that was previously created with L</"
23937 "mkmountpoint>.  See L</mkmountpoint> for full details."
23938 msgstr ""
23939
23940 # type: =head2
23941 #: ../fish/guestfish-actions.pod:3628
23942 msgid "scrub-device"
23943 msgstr ""
23944
23945 # type: verbatim
23946 #: ../fish/guestfish-actions.pod:3630
23947 #, no-wrap
23948 msgid ""
23949 " scrub-device device\n"
23950 "\n"
23951 msgstr ""
23952
23953 # type: =head2
23954 #: ../fish/guestfish-actions.pod:3641
23955 msgid "scrub-file"
23956 msgstr ""
23957
23958 # type: verbatim
23959 #: ../fish/guestfish-actions.pod:3643
23960 #, no-wrap
23961 msgid ""
23962 " scrub-file file\n"
23963 "\n"
23964 msgstr ""
23965
23966 # type: =head2
23967 #: ../fish/guestfish-actions.pod:3653
23968 msgid "scrub-freespace"
23969 msgstr ""
23970
23971 # type: verbatim
23972 #: ../fish/guestfish-actions.pod:3655
23973 #, no-wrap
23974 msgid ""
23975 " scrub-freespace dir\n"
23976 "\n"
23977 msgstr ""
23978
23979 # type: textblock
23980 #: ../fish/guestfish-actions.pod:3657
23981 msgid ""
23982 "This command creates the directory C<dir> and then fills it with files until "
23983 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
23984 "deletes them.  The intention is to scrub any free space on the partition "
23985 "containing C<dir>."
23986 msgstr ""
23987
23988 # type: =head2
23989 #: ../fish/guestfish-actions.pod:3666
23990 msgid "set-append"
23991 msgstr ""
23992
23993 # type: =head2
23994 #: ../fish/guestfish-actions.pod:3668
23995 msgid "append"
23996 msgstr ""
23997
23998 # type: verbatim
23999 #: ../fish/guestfish-actions.pod:3670
24000 #, no-wrap
24001 msgid ""
24002 " set-append append\n"
24003 "\n"
24004 msgstr ""
24005
24006 # type: =head2
24007 #: ../fish/guestfish-actions.pod:3681
24008 msgid "set-autosync"
24009 msgstr ""
24010
24011 # type: =head2
24012 #: ../fish/guestfish-actions.pod:3683
24013 msgid "autosync"
24014 msgstr ""
24015
24016 # type: verbatim
24017 #: ../fish/guestfish-actions.pod:3685
24018 #, no-wrap
24019 msgid ""
24020 " set-autosync true|false\n"
24021 "\n"
24022 msgstr ""
24023
24024 # type: textblock
24025 #: ../fish/guestfish-actions.pod:3687
24026 msgid ""
24027 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
24028 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
24029 "closed (also if the program exits without closing handles)."
24030 msgstr ""
24031
24032 # type: =head2
24033 #: ../fish/guestfish-actions.pod:3695
24034 msgid "set-direct"
24035 msgstr ""
24036
24037 # type: =head2
24038 #: ../fish/guestfish-actions.pod:3697
24039 msgid "direct"
24040 msgstr ""
24041
24042 # type: verbatim
24043 #: ../fish/guestfish-actions.pod:3699
24044 #, no-wrap
24045 msgid ""
24046 " set-direct true|false\n"
24047 "\n"
24048 msgstr ""
24049
24050 # type: textblock
24051 #: ../fish/guestfish-actions.pod:3705
24052 msgid ""
24053 "One consequence of this is that log messages aren't caught by the library "
24054 "and handled by L</set-log-message-callback>, but go straight to stdout."
24055 msgstr ""
24056
24057 # type: =head2
24058 #: ../fish/guestfish-actions.pod:3714
24059 msgid "set-e2label"
24060 msgstr ""
24061
24062 # type: verbatim
24063 #: ../fish/guestfish-actions.pod:3716
24064 #, no-wrap
24065 msgid ""
24066 " set-e2label device label\n"
24067 "\n"
24068 msgstr ""
24069
24070 # type: textblock
24071 #: ../fish/guestfish-actions.pod:3722
24072 msgid ""
24073 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
24074 "label on a filesystem."
24075 msgstr ""
24076
24077 # type: =head2
24078 #: ../fish/guestfish-actions.pod:3725
24079 msgid "set-e2uuid"
24080 msgstr ""
24081
24082 # type: verbatim
24083 #: ../fish/guestfish-actions.pod:3727
24084 #, no-wrap
24085 msgid ""
24086 " set-e2uuid device uuid\n"
24087 "\n"
24088 msgstr ""
24089
24090 # type: textblock
24091 #: ../fish/guestfish-actions.pod:3734
24092 msgid ""
24093 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
24094 "UUID of a filesystem."
24095 msgstr ""
24096
24097 # type: =head2
24098 #: ../fish/guestfish-actions.pod:3737
24099 msgid "set-memsize"
24100 msgstr ""
24101
24102 # type: =head2
24103 #: ../fish/guestfish-actions.pod:3739
24104 msgid "memsize"
24105 msgstr ""
24106
24107 # type: verbatim
24108 #: ../fish/guestfish-actions.pod:3741
24109 #, no-wrap
24110 msgid ""
24111 " set-memsize memsize\n"
24112 "\n"
24113 msgstr ""
24114
24115 # type: textblock
24116 #: ../fish/guestfish-actions.pod:3743
24117 msgid ""
24118 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
24119 "This only has any effect if called before L</launch>."
24120 msgstr ""
24121
24122 # type: =head2
24123 #: ../fish/guestfish-actions.pod:3754
24124 msgid "set-network"
24125 msgstr ""
24126
24127 # type: =head2
24128 #: ../fish/guestfish-actions.pod:3756
24129 msgid "network"
24130 msgstr ""
24131
24132 # type: verbatim
24133 #: ../fish/guestfish-actions.pod:3758
24134 #, no-wrap
24135 msgid ""
24136 " set-network true|false\n"
24137 "\n"
24138 msgstr ""
24139
24140 # type: textblock
24141 #: ../fish/guestfish-actions.pod:3766
24142 msgid ""
24143 "You must call this before calling L</launch>, otherwise it has no effect."
24144 msgstr ""
24145
24146 # type: =head2
24147 #: ../fish/guestfish-actions.pod:3769
24148 msgid "set-path"
24149 msgstr ""
24150
24151 # type: =head2
24152 #: ../fish/guestfish-actions.pod:3771
24153 msgid "path"
24154 msgstr ""
24155
24156 # type: verbatim
24157 #: ../fish/guestfish-actions.pod:3773
24158 #, no-wrap
24159 msgid ""
24160 " set-path searchpath\n"
24161 "\n"
24162 msgstr ""
24163
24164 # type: =head2
24165 #: ../fish/guestfish-actions.pod:3782
24166 msgid "set-qemu"
24167 msgstr ""
24168
24169 # type: =head2
24170 #: ../fish/guestfish-actions.pod:3784
24171 msgid "qemu"
24172 msgstr ""
24173
24174 # type: verbatim
24175 #: ../fish/guestfish-actions.pod:3786
24176 #, no-wrap
24177 msgid ""
24178 " set-qemu qemu\n"
24179 "\n"
24180 msgstr ""
24181
24182 # type: =head2
24183 #: ../fish/guestfish-actions.pod:3806
24184 msgid "set-recovery-proc"
24185 msgstr ""
24186
24187 # type: =head2
24188 #: ../fish/guestfish-actions.pod:3808
24189 msgid "recovery-proc"
24190 msgstr ""
24191
24192 # type: verbatim
24193 #: ../fish/guestfish-actions.pod:3810
24194 #, no-wrap
24195 msgid ""
24196 " set-recovery-proc true|false\n"
24197 "\n"
24198 msgstr ""
24199
24200 # type: textblock
24201 #: ../fish/guestfish-actions.pod:3812
24202 msgid ""
24203 "If this is called with the parameter C<false> then L</launch> does not "
24204 "create a recovery process.  The purpose of the recovery process is to stop "
24205 "runaway qemu processes in the case where the main program aborts abruptly."
24206 msgstr ""
24207
24208 # type: textblock
24209 #: ../fish/guestfish-actions.pod:3817
24210 msgid ""
24211 "This only has any effect if called before L</launch>, and the default is "
24212 "true."
24213 msgstr ""
24214
24215 # type: =head2
24216 #: ../fish/guestfish-actions.pod:3826
24217 msgid "set-selinux"
24218 msgstr ""
24219
24220 # type: =head2
24221 #: ../fish/guestfish-actions.pod:3828
24222 msgid "selinux"
24223 msgstr ""
24224
24225 # type: verbatim
24226 #: ../fish/guestfish-actions.pod:3830
24227 #, no-wrap
24228 msgid ""
24229 " set-selinux true|false\n"
24230 "\n"
24231 msgstr ""
24232
24233 # type: =head2
24234 #: ../fish/guestfish-actions.pod:3841
24235 msgid "set-trace"
24236 msgstr ""
24237
24238 # type: =head2
24239 #: ../fish/guestfish-actions.pod:3843
24240 msgid "trace"
24241 msgstr ""
24242
24243 # type: verbatim
24244 #: ../fish/guestfish-actions.pod:3845
24245 #, no-wrap
24246 msgid ""
24247 " set-trace true|false\n"
24248 "\n"
24249 msgstr ""
24250
24251 # type: =head2
24252 #: ../fish/guestfish-actions.pod:3861
24253 msgid "set-verbose"
24254 msgstr ""
24255
24256 # type: =head2
24257 #: ../fish/guestfish-actions.pod:3863
24258 msgid "verbose"
24259 msgstr ""
24260
24261 # type: verbatim
24262 #: ../fish/guestfish-actions.pod:3865
24263 #, no-wrap
24264 msgid ""
24265 " set-verbose true|false\n"
24266 "\n"
24267 msgstr ""
24268
24269 # type: =head2
24270 #: ../fish/guestfish-actions.pod:3872
24271 msgid "setcon"
24272 msgstr ""
24273
24274 # type: verbatim
24275 #: ../fish/guestfish-actions.pod:3874
24276 #, no-wrap
24277 msgid ""
24278 " setcon context\n"
24279 "\n"
24280 msgstr ""
24281
24282 # type: =head2
24283 #: ../fish/guestfish-actions.pod:3881
24284 msgid "setxattr"
24285 msgstr ""
24286
24287 # type: verbatim
24288 #: ../fish/guestfish-actions.pod:3883
24289 #, no-wrap
24290 msgid ""
24291 " setxattr xattr val vallen path\n"
24292 "\n"
24293 msgstr ""
24294
24295 # type: textblock
24296 #: ../fish/guestfish-actions.pod:3889
24297 msgid "See also: L</lsetxattr>, L<attr(5)>."
24298 msgstr ""
24299
24300 # type: =head2
24301 #: ../fish/guestfish-actions.pod:3891
24302 msgid "sfdisk"
24303 msgstr ""
24304
24305 # type: verbatim
24306 #: ../fish/guestfish-actions.pod:3893
24307 #, no-wrap
24308 msgid ""
24309 " sfdisk device cyls heads sectors 'lines ...'\n"
24310 "\n"
24311 msgstr ""
24312
24313 # type: textblock
24314 #: ../fish/guestfish-actions.pod:3915
24315 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
24316 msgstr ""
24317
24318 # type: =head2
24319 #: ../fish/guestfish-actions.pod:3921
24320 msgid "sfdiskM"
24321 msgstr ""
24322
24323 # type: verbatim
24324 #: ../fish/guestfish-actions.pod:3923
24325 #, no-wrap
24326 msgid ""
24327 " sfdiskM device 'lines ...'\n"
24328 "\n"
24329 msgstr ""
24330
24331 # type: textblock
24332 #: ../fish/guestfish-actions.pod:3925
24333 msgid ""
24334 "This is a simplified interface to the L</sfdisk> command, where partition "
24335 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
24336 "you don't need to specify the cyls, heads and sectors parameters which were "
24337 "rarely if ever used anyway."
24338 msgstr ""
24339
24340 # type: textblock
24341 #: ../fish/guestfish-actions.pod:3931
24342 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
24343 msgstr ""
24344
24345 # type: =head2
24346 #: ../fish/guestfish-actions.pod:3937
24347 msgid "sfdisk-N"
24348 msgstr ""
24349
24350 # type: verbatim
24351 #: ../fish/guestfish-actions.pod:3939
24352 #, no-wrap
24353 msgid ""
24354 " sfdisk-N device partnum cyls heads sectors line\n"
24355 "\n"
24356 msgstr ""
24357
24358 # type: textblock
24359 #: ../fish/guestfish-actions.pod:3944
24360 msgid ""
24361 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
24362 "cyls/heads/sectors parameters."
24363 msgstr ""
24364
24365 # type: textblock
24366 #: ../fish/guestfish-actions.pod:3947
24367 msgid "See also: L</part-add>"
24368 msgstr ""
24369
24370 # type: =head2
24371 #: ../fish/guestfish-actions.pod:3952
24372 msgid "sfdisk-disk-geometry"
24373 msgstr ""
24374
24375 # type: verbatim
24376 #: ../fish/guestfish-actions.pod:3954
24377 #, no-wrap
24378 msgid ""
24379 " sfdisk-disk-geometry device\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: textblock
24384 #: ../fish/guestfish-actions.pod:3956
24385 msgid ""
24386 "This displays the disk geometry of C<device> read from the partition table.  "
24387 "Especially in the case where the underlying block device has been resized, "
24388 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
24389 "kernel-geometry>)."
24390 msgstr ""
24391
24392 # type: =head2
24393 #: ../fish/guestfish-actions.pod:3964
24394 msgid "sfdisk-kernel-geometry"
24395 msgstr ""
24396
24397 # type: verbatim
24398 #: ../fish/guestfish-actions.pod:3966
24399 #, no-wrap
24400 msgid ""
24401 " sfdisk-kernel-geometry device\n"
24402 "\n"
24403 msgstr ""
24404
24405 # type: =head2
24406 #: ../fish/guestfish-actions.pod:3973
24407 msgid "sfdisk-l"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #: ../fish/guestfish-actions.pod:3975
24412 #, no-wrap
24413 msgid ""
24414 " sfdisk-l device\n"
24415 "\n"
24416 msgstr ""
24417
24418 # type: textblock
24419 #: ../fish/guestfish-actions.pod:3981
24420 msgid "See also: L</part-list>"
24421 msgstr ""
24422
24423 # type: =head2
24424 #: ../fish/guestfish-actions.pod:3983
24425 msgid "sh"
24426 msgstr ""
24427
24428 # type: verbatim
24429 #: ../fish/guestfish-actions.pod:3985
24430 #, no-wrap
24431 msgid ""
24432 " sh command\n"
24433 "\n"
24434 msgstr ""
24435
24436 # type: textblock
24437 #: ../fish/guestfish-actions.pod:3990
24438 msgid "This is like L</command>, but passes the command to:"
24439 msgstr ""
24440
24441 # type: textblock
24442 #: ../fish/guestfish-actions.pod:3998
24443 msgid "All the provisos about L</command> apply to this call."
24444 msgstr ""
24445
24446 # type: =head2
24447 #: ../fish/guestfish-actions.pod:4000
24448 msgid "sh-lines"
24449 msgstr ""
24450
24451 # type: verbatim
24452 #: ../fish/guestfish-actions.pod:4002
24453 #, no-wrap
24454 msgid ""
24455 " sh-lines command\n"
24456 "\n"
24457 msgstr ""
24458
24459 # type: textblock
24460 #: ../fish/guestfish-actions.pod:4004
24461 msgid "This is the same as L</sh>, but splits the result into a list of lines."
24462 msgstr ""
24463
24464 # type: textblock
24465 #: ../fish/guestfish-actions.pod:4007
24466 msgid "See also: L</command-lines>"
24467 msgstr ""
24468
24469 # type: =head2
24470 #: ../fish/guestfish-actions.pod:4009
24471 msgid "sleep"
24472 msgstr ""
24473
24474 # type: verbatim
24475 #: ../fish/guestfish-actions.pod:4011
24476 #, no-wrap
24477 msgid ""
24478 " sleep secs\n"
24479 "\n"
24480 msgstr ""
24481
24482 # type: =head2
24483 #: ../fish/guestfish-actions.pod:4015
24484 msgid "stat"
24485 msgstr ""
24486
24487 # type: verbatim
24488 #: ../fish/guestfish-actions.pod:4017
24489 #, no-wrap
24490 msgid ""
24491 " stat path\n"
24492 "\n"
24493 msgstr ""
24494
24495 # type: =head2
24496 #: ../fish/guestfish-actions.pod:4023
24497 msgid "statvfs"
24498 msgstr ""
24499
24500 # type: verbatim
24501 #: ../fish/guestfish-actions.pod:4025
24502 #, no-wrap
24503 msgid ""
24504 " statvfs path\n"
24505 "\n"
24506 msgstr ""
24507
24508 # type: =head2
24509 #: ../fish/guestfish-actions.pod:4033
24510 msgid "strings"
24511 msgstr ""
24512
24513 # type: verbatim
24514 #: ../fish/guestfish-actions.pod:4035
24515 #, no-wrap
24516 msgid ""
24517 " strings path\n"
24518 "\n"
24519 msgstr ""
24520
24521 # type: =head2
24522 #: ../fish/guestfish-actions.pod:4043
24523 msgid "strings-e"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #: ../fish/guestfish-actions.pod:4045
24528 #, no-wrap
24529 msgid ""
24530 " strings-e encoding path\n"
24531 "\n"
24532 msgstr ""
24533
24534 # type: textblock
24535 #: ../fish/guestfish-actions.pod:4047
24536 msgid ""
24537 "This is like the L</strings> command, but allows you to specify the encoding "
24538 "of strings that are looked for in the source file C<path>."
24539 msgstr ""
24540
24541 # type: textblock
24542 #: ../fish/guestfish-actions.pod:4057
24543 msgid ""
24544 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
24545 "ISO-8859-X (this is what L</strings> uses)."
24546 msgstr ""
24547
24548 # type: =head2
24549 #: ../fish/guestfish-actions.pod:4089
24550 msgid "swapoff-device"
24551 msgstr ""
24552
24553 # type: verbatim
24554 #: ../fish/guestfish-actions.pod:4091
24555 #, no-wrap
24556 msgid ""
24557 " swapoff-device device\n"
24558 "\n"
24559 msgstr ""
24560
24561 # type: textblock
24562 #: ../fish/guestfish-actions.pod:4093
24563 msgid ""
24564 "This command disables the libguestfs appliance swap device or partition "
24565 "named C<device>.  See L</swapon-device>."
24566 msgstr ""
24567
24568 # type: =head2
24569 #: ../fish/guestfish-actions.pod:4097
24570 msgid "swapoff-file"
24571 msgstr ""
24572
24573 # type: verbatim
24574 #: ../fish/guestfish-actions.pod:4099
24575 #, no-wrap
24576 msgid ""
24577 " swapoff-file file\n"
24578 "\n"
24579 msgstr ""
24580
24581 # type: =head2
24582 #: ../fish/guestfish-actions.pod:4103
24583 msgid "swapoff-label"
24584 msgstr ""
24585
24586 # type: verbatim
24587 #: ../fish/guestfish-actions.pod:4105
24588 #, no-wrap
24589 msgid ""
24590 " swapoff-label label\n"
24591 "\n"
24592 msgstr ""
24593
24594 # type: =head2
24595 #: ../fish/guestfish-actions.pod:4110
24596 msgid "swapoff-uuid"
24597 msgstr ""
24598
24599 # type: verbatim
24600 #: ../fish/guestfish-actions.pod:4112
24601 #, no-wrap
24602 msgid ""
24603 " swapoff-uuid uuid\n"
24604 "\n"
24605 msgstr ""
24606
24607 # type: =head2
24608 #: ../fish/guestfish-actions.pod:4117
24609 msgid "swapon-device"
24610 msgstr ""
24611
24612 # type: verbatim
24613 #: ../fish/guestfish-actions.pod:4119
24614 #, no-wrap
24615 msgid ""
24616 " swapon-device device\n"
24617 "\n"
24618 msgstr ""
24619
24620 # type: textblock
24621 #: ../fish/guestfish-actions.pod:4121
24622 msgid ""
24623 "This command enables the libguestfs appliance to use the swap device or "
24624 "partition named C<device>.  The increased memory is made available for all "
24625 "commands, for example those run using L</command> or L</sh>."
24626 msgstr ""
24627
24628 # type: =head2
24629 #: ../fish/guestfish-actions.pod:4133
24630 msgid "swapon-file"
24631 msgstr ""
24632
24633 # type: verbatim
24634 #: ../fish/guestfish-actions.pod:4135
24635 #, no-wrap
24636 msgid ""
24637 " swapon-file file\n"
24638 "\n"
24639 msgstr ""
24640
24641 # type: textblock
24642 #: ../fish/guestfish-actions.pod:4137
24643 msgid ""
24644 "This command enables swap to a file.  See L</swapon-device> for other notes."
24645 msgstr ""
24646
24647 # type: =head2
24648 #: ../fish/guestfish-actions.pod:4140
24649 msgid "swapon-label"
24650 msgstr ""
24651
24652 # type: verbatim
24653 #: ../fish/guestfish-actions.pod:4142
24654 #, no-wrap
24655 msgid ""
24656 " swapon-label label\n"
24657 "\n"
24658 msgstr ""
24659
24660 # type: textblock
24661 #: ../fish/guestfish-actions.pod:4144
24662 msgid ""
24663 "This command enables swap to a labeled swap partition.  See L</swapon-"
24664 "device> for other notes."
24665 msgstr ""
24666
24667 # type: =head2
24668 #: ../fish/guestfish-actions.pod:4147
24669 msgid "swapon-uuid"
24670 msgstr ""
24671
24672 # type: verbatim
24673 #: ../fish/guestfish-actions.pod:4149
24674 #, no-wrap
24675 msgid ""
24676 " swapon-uuid uuid\n"
24677 "\n"
24678 msgstr ""
24679
24680 # type: textblock
24681 #: ../fish/guestfish-actions.pod:4151
24682 msgid ""
24683 "This command enables swap to a swap partition with the given UUID.  See L</"
24684 "swapon-device> for other notes."
24685 msgstr ""
24686
24687 # type: =head2
24688 #: ../fish/guestfish-actions.pod:4154
24689 msgid "sync"
24690 msgstr ""
24691
24692 # type: verbatim
24693 #: ../fish/guestfish-actions.pod:4156
24694 #, no-wrap
24695 msgid ""
24696 " sync\n"
24697 "\n"
24698 msgstr ""
24699
24700 # type: =head2
24701 #: ../fish/guestfish-actions.pod:4164
24702 msgid "tail"
24703 msgstr ""
24704
24705 # type: verbatim
24706 #: ../fish/guestfish-actions.pod:4166
24707 #, no-wrap
24708 msgid ""
24709 " tail path\n"
24710 "\n"
24711 msgstr ""
24712
24713 # type: =head2
24714 #: ../fish/guestfish-actions.pod:4174
24715 msgid "tail-n"
24716 msgstr ""
24717
24718 # type: verbatim
24719 #: ../fish/guestfish-actions.pod:4176
24720 #, no-wrap
24721 msgid ""
24722 " tail-n nrlines path\n"
24723 "\n"
24724 msgstr ""
24725
24726 # type: =head2
24727 #: ../fish/guestfish-actions.pod:4189
24728 msgid "tar-in"
24729 msgstr ""
24730
24731 # type: verbatim
24732 #: ../fish/guestfish-actions.pod:4191
24733 #, no-wrap
24734 msgid ""
24735 " tar-in (tarfile|-) directory\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: textblock
24740 #: ../fish/guestfish-actions.pod:4196
24741 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
24742 msgstr ""
24743
24744 # type: =head2
24745 #: ../fish/guestfish-actions.pod:4201
24746 msgid "tar-out"
24747 msgstr ""
24748
24749 # type: verbatim
24750 #: ../fish/guestfish-actions.pod:4203
24751 #, no-wrap
24752 msgid ""
24753 " tar-out directory (tarfile|-)\n"
24754 "\n"
24755 msgstr ""
24756
24757 # type: textblock
24758 #: ../fish/guestfish-actions.pod:4208
24759 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
24760 msgstr ""
24761
24762 # type: =head2
24763 #: ../fish/guestfish-actions.pod:4213
24764 msgid "tgz-in"
24765 msgstr ""
24766
24767 # type: verbatim
24768 #: ../fish/guestfish-actions.pod:4215
24769 #, no-wrap
24770 msgid ""
24771 " tgz-in (tarball|-) directory\n"
24772 "\n"
24773 msgstr ""
24774
24775 # type: textblock
24776 #: ../fish/guestfish-actions.pod:4220
24777 msgid "To upload an uncompressed tarball, use L</tar-in>."
24778 msgstr ""
24779
24780 # type: =head2
24781 #: ../fish/guestfish-actions.pod:4224
24782 msgid "tgz-out"
24783 msgstr ""
24784
24785 # type: verbatim
24786 #: ../fish/guestfish-actions.pod:4226
24787 #, no-wrap
24788 msgid ""
24789 " tgz-out directory (tarball|-)\n"
24790 "\n"
24791 msgstr ""
24792
24793 # type: textblock
24794 #: ../fish/guestfish-actions.pod:4231
24795 msgid "To download an uncompressed tarball, use L</tar-out>."
24796 msgstr ""
24797
24798 # type: =head2
24799 #: ../fish/guestfish-actions.pod:4235
24800 msgid "touch"
24801 msgstr ""
24802
24803 # type: verbatim
24804 #: ../fish/guestfish-actions.pod:4237
24805 #, no-wrap
24806 msgid ""
24807 " touch path\n"
24808 "\n"
24809 msgstr ""
24810
24811 # type: =head2
24812 #: ../fish/guestfish-actions.pod:4246
24813 msgid "truncate"
24814 msgstr ""
24815
24816 # type: verbatim
24817 #: ../fish/guestfish-actions.pod:4248
24818 #, no-wrap
24819 msgid ""
24820 " truncate path\n"
24821 "\n"
24822 msgstr ""
24823
24824 # type: =head2
24825 #: ../fish/guestfish-actions.pod:4253
24826 msgid "truncate-size"
24827 msgstr ""
24828
24829 # type: verbatim
24830 #: ../fish/guestfish-actions.pod:4255
24831 #, no-wrap
24832 msgid ""
24833 " truncate-size path size\n"
24834 "\n"
24835 msgstr ""
24836
24837 # type: textblock
24838 #: ../fish/guestfish-actions.pod:4260
24839 msgid ""
24840 "If the current file size is less than C<size> then the file is extended to "
24841 "the required size with zero bytes.  This creates a sparse file (ie. disk "
24842 "blocks are not allocated for the file until you write to it).  To create a "
24843 "non-sparse file of zeroes, use L</fallocate64> instead."
24844 msgstr ""
24845
24846 # type: =head2
24847 #: ../fish/guestfish-actions.pod:4266
24848 msgid "tune2fs-l"
24849 msgstr ""
24850
24851 # type: verbatim
24852 #: ../fish/guestfish-actions.pod:4268
24853 #, no-wrap
24854 msgid ""
24855 " tune2fs-l device\n"
24856 "\n"
24857 msgstr ""
24858
24859 # type: =head2
24860 #: ../fish/guestfish-actions.pod:4278
24861 msgid "txz-in"
24862 msgstr ""
24863
24864 # type: verbatim
24865 #: ../fish/guestfish-actions.pod:4280
24866 #, no-wrap
24867 msgid ""
24868 " txz-in (tarball|-) directory\n"
24869 "\n"
24870 msgstr ""
24871
24872 # type: =head2
24873 #: ../fish/guestfish-actions.pod:4287
24874 msgid "txz-out"
24875 msgstr ""
24876
24877 # type: verbatim
24878 #: ../fish/guestfish-actions.pod:4289
24879 #, no-wrap
24880 msgid ""
24881 " txz-out directory (tarball|-)\n"
24882 "\n"
24883 msgstr ""
24884
24885 # type: =head2
24886 #: ../fish/guestfish-actions.pod:4296
24887 msgid "umask"
24888 msgstr ""
24889
24890 # type: verbatim
24891 #: ../fish/guestfish-actions.pod:4298
24892 #, no-wrap
24893 msgid ""
24894 " umask mask\n"
24895 "\n"
24896 msgstr ""
24897
24898 # type: textblock
24899 #: ../fish/guestfish-actions.pod:4312
24900 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
24901 msgstr ""
24902
24903 # type: =head2
24904 #: ../fish/guestfish-actions.pod:4317
24905 msgid "umount"
24906 msgstr ""
24907
24908 # type: =head2
24909 #: ../fish/guestfish-actions.pod:4319
24910 msgid "unmount"
24911 msgstr ""
24912
24913 # type: verbatim
24914 #: ../fish/guestfish-actions.pod:4321
24915 #, no-wrap
24916 msgid ""
24917 " umount pathordevice\n"
24918 "\n"
24919 msgstr ""
24920
24921 # type: =head2
24922 #: ../fish/guestfish-actions.pod:4327
24923 msgid "umount-all"
24924 msgstr ""
24925
24926 # type: =head2
24927 #: ../fish/guestfish-actions.pod:4329
24928 msgid "unmount-all"
24929 msgstr ""
24930
24931 # type: verbatim
24932 #: ../fish/guestfish-actions.pod:4331
24933 #, no-wrap
24934 msgid ""
24935 " umount-all\n"
24936 "\n"
24937 msgstr ""
24938
24939 # type: =head2
24940 #: ../fish/guestfish-actions.pod:4337
24941 msgid "upload"
24942 msgstr ""
24943
24944 # type: verbatim
24945 #: ../fish/guestfish-actions.pod:4339
24946 #, no-wrap
24947 msgid ""
24948 " upload (filename|-) remotefilename\n"
24949 "\n"
24950 msgstr ""
24951
24952 # type: textblock
24953 #: ../fish/guestfish-actions.pod:4346
24954 msgid "See also L</download>."
24955 msgstr ""
24956
24957 # type: =head2
24958 #: ../fish/guestfish-actions.pod:4350
24959 msgid "upload-offset"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #: ../fish/guestfish-actions.pod:4352
24964 #, no-wrap
24965 msgid ""
24966 " upload-offset (filename|-) remotefilename offset\n"
24967 "\n"
24968 msgstr ""
24969
24970 # type: textblock
24971 #: ../fish/guestfish-actions.pod:4364
24972 msgid ""
24973 "Note that there is no limit on the amount of data that can be uploaded with "
24974 "this call, unlike with L</pwrite>, and this call always writes the full "
24975 "amount unless an error occurs."
24976 msgstr ""
24977
24978 # type: textblock
24979 #: ../fish/guestfish-actions.pod:4369
24980 msgid "See also L</upload>, L</pwrite>."
24981 msgstr ""
24982
24983 # type: =head2
24984 #: ../fish/guestfish-actions.pod:4373
24985 msgid "utimens"
24986 msgstr ""
24987
24988 # type: verbatim
24989 #: ../fish/guestfish-actions.pod:4375
24990 #, no-wrap
24991 msgid ""
24992 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
24993 "\n"
24994 msgstr ""
24995
24996 # type: =head2
24997 #: ../fish/guestfish-actions.pod:4394
24998 msgid "version"
24999 msgstr ""
25000
25001 # type: verbatim
25002 #: ../fish/guestfish-actions.pod:4396
25003 #, no-wrap
25004 msgid ""
25005 " version\n"
25006 "\n"
25007 msgstr ""
25008
25009 # type: textblock
25010 #: ../fish/guestfish-actions.pod:4423
25011 msgid ""
25012 "I<Note:> Don't use this call to test for availability of features.  In "
25013 "enterprise distributions we backport features from later versions into "
25014 "earlier versions, making this an unreliable way to test for features.  Use "
25015 "L</available> instead."
25016 msgstr ""
25017
25018 # type: =head2
25019 #: ../fish/guestfish-actions.pod:4429
25020 msgid "vfs-label"
25021 msgstr ""
25022
25023 # type: verbatim
25024 #: ../fish/guestfish-actions.pod:4431
25025 #, no-wrap
25026 msgid ""
25027 " vfs-label device\n"
25028 "\n"
25029 msgstr ""
25030
25031 # type: textblock
25032 #: ../fish/guestfish-actions.pod:4438
25033 msgid "To find a filesystem from the label, use L</findfs-label>."
25034 msgstr ""
25035
25036 # type: =head2
25037 #: ../fish/guestfish-actions.pod:4440
25038 msgid "vfs-type"
25039 msgstr ""
25040
25041 # type: verbatim
25042 #: ../fish/guestfish-actions.pod:4442
25043 #, no-wrap
25044 msgid ""
25045 " vfs-type device\n"
25046 "\n"
25047 msgstr ""
25048
25049 # type: =head2
25050 #: ../fish/guestfish-actions.pod:4452
25051 msgid "vfs-uuid"
25052 msgstr ""
25053
25054 # type: verbatim
25055 #: ../fish/guestfish-actions.pod:4454
25056 #, no-wrap
25057 msgid ""
25058 " vfs-uuid device\n"
25059 "\n"
25060 msgstr ""
25061
25062 # type: textblock
25063 #: ../fish/guestfish-actions.pod:4461
25064 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
25065 msgstr ""
25066
25067 # type: =head2
25068 #: ../fish/guestfish-actions.pod:4463
25069 msgid "vg-activate"
25070 msgstr ""
25071
25072 # type: verbatim
25073 #: ../fish/guestfish-actions.pod:4465
25074 #, no-wrap
25075 msgid ""
25076 " vg-activate true|false 'volgroups ...'\n"
25077 "\n"
25078 msgstr ""
25079
25080 # type: =head2
25081 #: ../fish/guestfish-actions.pod:4478
25082 msgid "vg-activate-all"
25083 msgstr ""
25084
25085 # type: verbatim
25086 #: ../fish/guestfish-actions.pod:4480
25087 #, no-wrap
25088 msgid ""
25089 " vg-activate-all true|false\n"
25090 "\n"
25091 msgstr ""
25092
25093 # type: =head2
25094 #: ../fish/guestfish-actions.pod:4490
25095 msgid "vgcreate"
25096 msgstr ""
25097
25098 # type: verbatim
25099 #: ../fish/guestfish-actions.pod:4492
25100 #, no-wrap
25101 msgid ""
25102 " vgcreate volgroup 'physvols ...'\n"
25103 "\n"
25104 msgstr ""
25105
25106 # type: =head2
25107 #: ../fish/guestfish-actions.pod:4497
25108 msgid "vglvuuids"
25109 msgstr ""
25110
25111 # type: verbatim
25112 #: ../fish/guestfish-actions.pod:4499
25113 #, no-wrap
25114 msgid ""
25115 " vglvuuids vgname\n"
25116 "\n"
25117 msgstr ""
25118
25119 # type: textblock
25120 #: ../fish/guestfish-actions.pod:4504
25121 msgid ""
25122 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
25123 "logical volumes and volume groups."
25124 msgstr ""
25125
25126 # type: textblock
25127 #: ../fish/guestfish-actions.pod:4507
25128 msgid "See also L</vgpvuuids>."
25129 msgstr ""
25130
25131 # type: =head2
25132 #: ../fish/guestfish-actions.pod:4509
25133 msgid "vgpvuuids"
25134 msgstr ""
25135
25136 # type: verbatim
25137 #: ../fish/guestfish-actions.pod:4511
25138 #, no-wrap
25139 msgid ""
25140 " vgpvuuids vgname\n"
25141 "\n"
25142 msgstr ""
25143
25144 # type: textblock
25145 #: ../fish/guestfish-actions.pod:4516
25146 msgid ""
25147 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
25148 "physical volumes and volume groups."
25149 msgstr ""
25150
25151 # type: textblock
25152 #: ../fish/guestfish-actions.pod:4519
25153 msgid "See also L</vglvuuids>."
25154 msgstr ""
25155
25156 # type: =head2
25157 #: ../fish/guestfish-actions.pod:4521
25158 msgid "vgremove"
25159 msgstr ""
25160
25161 # type: verbatim
25162 #: ../fish/guestfish-actions.pod:4523
25163 #, no-wrap
25164 msgid ""
25165 " vgremove vgname\n"
25166 "\n"
25167 msgstr ""
25168
25169 # type: =head2
25170 #: ../fish/guestfish-actions.pod:4530
25171 msgid "vgrename"
25172 msgstr ""
25173
25174 # type: verbatim
25175 #: ../fish/guestfish-actions.pod:4532
25176 #, no-wrap
25177 msgid ""
25178 " vgrename volgroup newvolgroup\n"
25179 "\n"
25180 msgstr ""
25181
25182 # type: =head2
25183 #: ../fish/guestfish-actions.pod:4536
25184 msgid "vgs"
25185 msgstr ""
25186
25187 # type: verbatim
25188 #: ../fish/guestfish-actions.pod:4538
25189 #, no-wrap
25190 msgid ""
25191 " vgs\n"
25192 "\n"
25193 msgstr ""
25194
25195 # type: textblock
25196 #: ../fish/guestfish-actions.pod:4546
25197 msgid "See also L</vgs-full>."
25198 msgstr ""
25199
25200 # type: =head2
25201 #: ../fish/guestfish-actions.pod:4548
25202 msgid "vgs-full"
25203 msgstr ""
25204
25205 # type: verbatim
25206 #: ../fish/guestfish-actions.pod:4550
25207 #, no-wrap
25208 msgid ""
25209 " vgs-full\n"
25210 "\n"
25211 msgstr ""
25212
25213 # type: =head2
25214 #: ../fish/guestfish-actions.pod:4555
25215 msgid "vgscan"
25216 msgstr ""
25217
25218 # type: verbatim
25219 #: ../fish/guestfish-actions.pod:4557
25220 #, no-wrap
25221 msgid ""
25222 " vgscan\n"
25223 "\n"
25224 msgstr ""
25225
25226 # type: =head2
25227 #: ../fish/guestfish-actions.pod:4562
25228 msgid "vguuid"
25229 msgstr ""
25230
25231 # type: verbatim
25232 #: ../fish/guestfish-actions.pod:4564
25233 #, no-wrap
25234 msgid ""
25235 " vguuid vgname\n"
25236 "\n"
25237 msgstr ""
25238
25239 # type: =head2
25240 #: ../fish/guestfish-actions.pod:4568
25241 msgid "wc-c"
25242 msgstr ""
25243
25244 # type: verbatim
25245 #: ../fish/guestfish-actions.pod:4570
25246 #, no-wrap
25247 msgid ""
25248 " wc-c path\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: =head2
25253 #: ../fish/guestfish-actions.pod:4575
25254 msgid "wc-l"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #: ../fish/guestfish-actions.pod:4577
25259 #, no-wrap
25260 msgid ""
25261 " wc-l path\n"
25262 "\n"
25263 msgstr ""
25264
25265 # type: =head2
25266 #: ../fish/guestfish-actions.pod:4582
25267 msgid "wc-w"
25268 msgstr ""
25269
25270 # type: verbatim
25271 #: ../fish/guestfish-actions.pod:4584
25272 #, no-wrap
25273 msgid ""
25274 " wc-w path\n"
25275 "\n"
25276 msgstr ""
25277
25278 # type: =head2
25279 #: ../fish/guestfish-actions.pod:4589
25280 msgid "write"
25281 msgstr ""
25282
25283 # type: verbatim
25284 #: ../fish/guestfish-actions.pod:4591
25285 #, no-wrap
25286 msgid ""
25287 " write path content\n"
25288 "\n"
25289 msgstr ""
25290
25291 # type: =head2
25292 #: ../fish/guestfish-actions.pod:4599
25293 msgid "write-file"
25294 msgstr ""
25295
25296 # type: verbatim
25297 #: ../fish/guestfish-actions.pod:4601
25298 #, no-wrap
25299 msgid ""
25300 " write-file path content size\n"
25301 "\n"
25302 msgstr ""
25303
25304 # type: =head2
25305 #: ../fish/guestfish-actions.pod:4624
25306 msgid "zegrep"
25307 msgstr ""
25308
25309 # type: verbatim
25310 #: ../fish/guestfish-actions.pod:4626
25311 #, no-wrap
25312 msgid ""
25313 " zegrep regex path\n"
25314 "\n"
25315 msgstr ""
25316
25317 # type: =head2
25318 #: ../fish/guestfish-actions.pod:4634
25319 msgid "zegrepi"
25320 msgstr ""
25321
25322 # type: verbatim
25323 #: ../fish/guestfish-actions.pod:4636
25324 #, no-wrap
25325 msgid ""
25326 " zegrepi regex path\n"
25327 "\n"
25328 msgstr ""
25329
25330 # type: =head2
25331 #: ../fish/guestfish-actions.pod:4644
25332 msgid "zero"
25333 msgstr ""
25334
25335 # type: verbatim
25336 #: ../fish/guestfish-actions.pod:4646
25337 #, no-wrap
25338 msgid ""
25339 " zero device\n"
25340 "\n"
25341 msgstr ""
25342
25343 # type: textblock
25344 #: ../fish/guestfish-actions.pod:4654
25345 msgid "See also: L</zero-device>, L</scrub-device>."
25346 msgstr ""
25347
25348 # type: =head2
25349 #: ../fish/guestfish-actions.pod:4656
25350 msgid "zero-device"
25351 msgstr ""
25352
25353 # type: verbatim
25354 #: ../fish/guestfish-actions.pod:4658
25355 #, no-wrap
25356 msgid ""
25357 " zero-device device\n"
25358 "\n"
25359 msgstr ""
25360
25361 # type: textblock
25362 #: ../fish/guestfish-actions.pod:4660
25363 msgid ""
25364 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
25365 "which just zeroes the first few blocks of a device."
25366 msgstr ""
25367
25368 # type: =head2
25369 #: ../fish/guestfish-actions.pod:4667
25370 msgid "zerofree"
25371 msgstr ""
25372
25373 # type: verbatim
25374 #: ../fish/guestfish-actions.pod:4669
25375 #, no-wrap
25376 msgid ""
25377 " zerofree device\n"
25378 "\n"
25379 msgstr ""
25380
25381 # type: =head2
25382 #: ../fish/guestfish-actions.pod:4682
25383 msgid "zfgrep"
25384 msgstr ""
25385
25386 # type: verbatim
25387 #: ../fish/guestfish-actions.pod:4684
25388 #, no-wrap
25389 msgid ""
25390 " zfgrep pattern path\n"
25391 "\n"
25392 msgstr ""
25393
25394 # type: =head2
25395 #: ../fish/guestfish-actions.pod:4692
25396 msgid "zfgrepi"
25397 msgstr ""
25398
25399 # type: verbatim
25400 #: ../fish/guestfish-actions.pod:4694
25401 #, no-wrap
25402 msgid ""
25403 " zfgrepi pattern path\n"
25404 "\n"
25405 msgstr ""
25406
25407 # type: =head2
25408 #: ../fish/guestfish-actions.pod:4702
25409 msgid "zfile"
25410 msgstr ""
25411
25412 # type: verbatim
25413 #: ../fish/guestfish-actions.pod:4704
25414 #, no-wrap
25415 msgid ""
25416 " zfile meth path\n"
25417 "\n"
25418 msgstr ""
25419
25420 # type: textblock
25421 #: ../fish/guestfish-actions.pod:4711
25422 msgid ""
25423 "Since 1.0.63, use L</file> instead which can now process compressed files."
25424 msgstr ""
25425
25426 # type: =head2
25427 #: ../fish/guestfish-actions.pod:4721
25428 msgid "zgrep"
25429 msgstr ""
25430
25431 # type: verbatim
25432 #: ../fish/guestfish-actions.pod:4723
25433 #, no-wrap
25434 msgid ""
25435 " zgrep regex path\n"
25436 "\n"
25437 msgstr ""
25438
25439 # type: =head2
25440 #: ../fish/guestfish-actions.pod:4731
25441 msgid "zgrepi"
25442 msgstr ""
25443
25444 # type: verbatim
25445 #: ../fish/guestfish-actions.pod:4733
25446 #, no-wrap
25447 msgid ""
25448 " zgrepi regex path\n"
25449 "\n"
25450 msgstr ""
25451
25452 # type: =head2
25453 #: ../fish/guestfish-commands.pod:1
25454 msgid "alloc"
25455 msgstr ""
25456
25457 # type: =head2
25458 #: ../fish/guestfish-commands.pod:3
25459 msgid "allocate"
25460 msgstr ""
25461
25462 # type: verbatim
25463 #: ../fish/guestfish-commands.pod:5
25464 #, no-wrap
25465 msgid ""
25466 " alloc filename size\n"
25467 "\n"
25468 msgstr ""
25469
25470 # type: textblock
25471 #: ../fish/guestfish-commands.pod:7
25472 msgid ""
25473 "This creates an empty (zeroed) file of the given size, and then adds so it "
25474 "can be further examined."
25475 msgstr ""
25476
25477 # type: textblock
25478 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
25479 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
25480 msgstr ""
25481
25482 # type: textblock
25483 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
25484 msgid "Size can be specified using standard suffixes, eg. C<1M>."
25485 msgstr ""
25486
25487 # type: textblock
25488 #: ../fish/guestfish-commands.pod:14
25489 msgid ""
25490 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
25491 "image, see L</PREPARED DISK IMAGES>."
25492 msgstr ""
25493
25494 # type: =head2
25495 #: ../fish/guestfish-commands.pod:17
25496 msgid "copy-in"
25497 msgstr ""
25498
25499 # type: verbatim
25500 #: ../fish/guestfish-commands.pod:19
25501 #, no-wrap
25502 msgid ""
25503 " copy-in local [local ...] /remotedir\n"
25504 "\n"
25505 msgstr ""
25506
25507 # type: textblock
25508 #: ../fish/guestfish-commands.pod:21
25509 msgid ""
25510 "C<copy-in> copies local files or directories recursively into the disk "
25511 "image, placing them in the directory called C</remotedir> (which must "
25512 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
25513 "other commands as necessary."
25514 msgstr ""
25515
25516 # type: textblock
25517 #: ../fish/guestfish-commands.pod:26
25518 msgid ""
25519 "Multiple local files and directories can be specified, but the last "
25520 "parameter must always be a remote directory.  Wildcards cannot be used."
25521 msgstr ""
25522
25523 # type: =head2
25524 #: ../fish/guestfish-commands.pod:30
25525 msgid "copy-out"
25526 msgstr ""
25527
25528 # type: verbatim
25529 #: ../fish/guestfish-commands.pod:32
25530 #, no-wrap
25531 msgid ""
25532 " copy-out remote [remote ...] localdir\n"
25533 "\n"
25534 msgstr ""
25535
25536 # type: textblock
25537 #: ../fish/guestfish-commands.pod:34
25538 msgid ""
25539 "C<copy-out> copies remote files or directories recursively out of the disk "
25540 "image, placing them on the host disk in a local directory called C<localdir> "
25541 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
25542 "download>, L</tar-out> and other commands as necessary."
25543 msgstr ""
25544
25545 # type: textblock
25546 #: ../fish/guestfish-commands.pod:40
25547 msgid ""
25548 "Multiple remote files and directories can be specified, but the last "
25549 "parameter must always be a local directory.  To download to the current "
25550 "directory, use C<.> as in:"
25551 msgstr ""
25552
25553 # type: verbatim
25554 #: ../fish/guestfish-commands.pod:44
25555 #, no-wrap
25556 msgid ""
25557 " copy-out /home .\n"
25558 "\n"
25559 msgstr ""
25560
25561 # type: textblock
25562 #: ../fish/guestfish-commands.pod:46
25563 msgid ""
25564 "Wildcards cannot be used in the ordinary command, but you can use them with "
25565 "the help of L</glob> like this:"
25566 msgstr ""
25567
25568 # type: verbatim
25569 #: ../fish/guestfish-commands.pod:49
25570 #, no-wrap
25571 msgid ""
25572 " glob copy-out /home/* .\n"
25573 "\n"
25574 msgstr ""
25575
25576 # type: =head2
25577 #: ../fish/guestfish-commands.pod:51
25578 msgid "echo"
25579 msgstr ""
25580
25581 # type: verbatim
25582 #: ../fish/guestfish-commands.pod:53
25583 #, no-wrap
25584 msgid ""
25585 " echo [params ...]\n"
25586 "\n"
25587 msgstr ""
25588
25589 # type: textblock
25590 #: ../fish/guestfish-commands.pod:55
25591 msgid "This echos the parameters to the terminal."
25592 msgstr ""
25593
25594 # type: =head2
25595 #: ../fish/guestfish-commands.pod:57
25596 msgid "edit"
25597 msgstr ""
25598
25599 # type: =head2
25600 #: ../fish/guestfish-commands.pod:59
25601 msgid "vi"
25602 msgstr ""
25603
25604 # type: =head2
25605 #: ../fish/guestfish-commands.pod:61
25606 msgid "emacs"
25607 msgstr ""
25608
25609 # type: verbatim
25610 #: ../fish/guestfish-commands.pod:63
25611 #, no-wrap
25612 msgid ""
25613 " edit filename\n"
25614 "\n"
25615 msgstr ""
25616
25617 # type: textblock
25618 #: ../fish/guestfish-commands.pod:65
25619 msgid ""
25620 "This is used to edit a file.  It downloads the file, edits it locally using "
25621 "your editor, then uploads the result."
25622 msgstr ""
25623
25624 # type: textblock
25625 #: ../fish/guestfish-commands.pod:68
25626 msgid ""
25627 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
25628 "or C<emacs> you will get those corresponding editors."
25629 msgstr ""
25630
25631 # type: =head2
25632 #: ../fish/guestfish-commands.pod:72
25633 msgid "glob"
25634 msgstr ""
25635
25636 # type: verbatim
25637 #: ../fish/guestfish-commands.pod:74
25638 #, no-wrap
25639 msgid ""
25640 " glob command args...\n"
25641 "\n"
25642 msgstr ""
25643
25644 # type: textblock
25645 #: ../fish/guestfish-commands.pod:76
25646 msgid ""
25647 "Expand wildcards in any paths in the args list, and run C<command> "
25648 "repeatedly on each matching path."
25649 msgstr ""
25650
25651 # type: textblock
25652 #: ../fish/guestfish-commands.pod:79
25653 msgid "See L</WILDCARDS AND GLOBBING>."
25654 msgstr ""
25655
25656 # type: =head2
25657 #: ../fish/guestfish-commands.pod:81
25658 msgid "hexedit"
25659 msgstr ""
25660
25661 # type: verbatim
25662 #: ../fish/guestfish-commands.pod:83
25663 #, no-wrap
25664 msgid ""
25665 " hexedit <filename|device>\n"
25666 " hexedit <filename|device> <max>\n"
25667 " hexedit <filename|device> <start> <max>\n"
25668 "\n"
25669 msgstr ""
25670
25671 # type: textblock
25672 #: ../fish/guestfish-commands.pod:87
25673 msgid ""
25674 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
25675 "device."
25676 msgstr ""
25677
25678 # type: textblock
25679 #: ../fish/guestfish-commands.pod:90
25680 msgid ""
25681 "This command works by downloading potentially the whole file or device, "
25682 "editing it locally, then uploading it.  If the file or device is large, you "
25683 "have to specify which part you wish to edit by using C<max> and/or C<start> "
25684 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
25685 "usual modifiers allowed such as C<1M> (1 megabyte)."
25686 msgstr ""
25687
25688 # type: textblock
25689 #: ../fish/guestfish-commands.pod:97
25690 msgid "For example to edit the first few sectors of a disk you might do:"
25691 msgstr ""
25692
25693 # type: verbatim
25694 #: ../fish/guestfish-commands.pod:100
25695 #, no-wrap
25696 msgid ""
25697 " hexedit /dev/sda 1M\n"
25698 "\n"
25699 msgstr ""
25700
25701 # type: textblock
25702 #: ../fish/guestfish-commands.pod:102
25703 msgid ""
25704 "which would allow you to edit anywhere within the first megabyte of the disk."
25705 msgstr ""
25706
25707 # type: textblock
25708 #: ../fish/guestfish-commands.pod:105
25709 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
25710 msgstr ""
25711
25712 # type: verbatim
25713 #: ../fish/guestfish-commands.pod:107
25714 #, no-wrap
25715 msgid ""
25716 " hexedit /dev/sda1 0x400 0x400\n"
25717 "\n"
25718 msgstr ""
25719
25720 # type: textblock
25721 #: ../fish/guestfish-commands.pod:109
25722 msgid "(assuming the superblock is in the standard location)."
25723 msgstr ""
25724
25725 # type: textblock
25726 #: ../fish/guestfish-commands.pod:111
25727 msgid ""
25728 "This command requires the external L<hexedit(1)> program.  You can specify "
25729 "another program to use by setting the C<HEXEDITOR> environment variable."
25730 msgstr ""
25731
25732 # type: textblock
25733 #: ../fish/guestfish-commands.pod:115
25734 msgid "See also L</hexdump>."
25735 msgstr ""
25736
25737 # type: =head2
25738 #: ../fish/guestfish-commands.pod:117
25739 msgid "lcd"
25740 msgstr ""
25741
25742 # type: verbatim
25743 #: ../fish/guestfish-commands.pod:119
25744 #, no-wrap
25745 msgid ""
25746 " lcd directory\n"
25747 "\n"
25748 msgstr ""
25749
25750 # type: textblock
25751 #: ../fish/guestfish-commands.pod:121
25752 msgid ""
25753 "Change the local directory, ie. the current directory of guestfish itself."
25754 msgstr ""
25755
25756 # type: textblock
25757 #: ../fish/guestfish-commands.pod:124
25758 msgid "Note that C<!cd> won't do what you might expect."
25759 msgstr ""
25760
25761 # type: =head2
25762 #: ../fish/guestfish-commands.pod:126
25763 msgid "man"
25764 msgstr ""
25765
25766 # type: =head2
25767 #: ../fish/guestfish-commands.pod:128
25768 msgid "manual"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #: ../fish/guestfish-commands.pod:130
25773 #, no-wrap
25774 msgid ""
25775 "  man\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: textblock
25780 #: ../fish/guestfish-commands.pod:132
25781 msgid "Opens the manual page for guestfish."
25782 msgstr ""
25783
25784 # type: =head2
25785 #: ../fish/guestfish-commands.pod:134
25786 msgid "more"
25787 msgstr ""
25788
25789 # type: =head2
25790 #: ../fish/guestfish-commands.pod:136
25791 msgid "less"
25792 msgstr ""
25793
25794 # type: verbatim
25795 #: ../fish/guestfish-commands.pod:138
25796 #, no-wrap
25797 msgid ""
25798 " more filename\n"
25799 "\n"
25800 msgstr ""
25801
25802 # type: verbatim
25803 #: ../fish/guestfish-commands.pod:140
25804 #, no-wrap
25805 msgid ""
25806 " less filename\n"
25807 "\n"
25808 msgstr ""
25809
25810 # type: textblock
25811 #: ../fish/guestfish-commands.pod:142
25812 msgid "This is used to view a file."
25813 msgstr ""
25814
25815 # type: textblock
25816 #: ../fish/guestfish-commands.pod:144
25817 msgid ""
25818 "The default viewer is C<$PAGER>.  However if you use the alternate command "
25819 "C<less> you will get the C<less> command specifically."
25820 msgstr ""
25821
25822 # type: =head2
25823 #: ../fish/guestfish-commands.pod:147
25824 msgid "reopen"
25825 msgstr ""
25826
25827 # type: verbatim
25828 #: ../fish/guestfish-commands.pod:149
25829 #, no-wrap
25830 msgid ""
25831 "  reopen\n"
25832 "\n"
25833 msgstr ""
25834
25835 # type: textblock
25836 #: ../fish/guestfish-commands.pod:151
25837 msgid ""
25838 "Close and reopen the libguestfs handle.  It is not necessary to use this "
25839 "normally, because the handle is closed properly when guestfish exits.  "
25840 "However this is occasionally useful for testing."
25841 msgstr ""
25842
25843 # type: =head2
25844 #: ../fish/guestfish-commands.pod:155
25845 msgid "sparse"
25846 msgstr ""
25847
25848 # type: verbatim
25849 #: ../fish/guestfish-commands.pod:157
25850 #, no-wrap
25851 msgid ""
25852 " sparse filename size\n"
25853 "\n"
25854 msgstr ""
25855
25856 # type: textblock
25857 #: ../fish/guestfish-commands.pod:159
25858 msgid ""
25859 "This creates an empty sparse file of the given size, and then adds so it can "
25860 "be further examined."
25861 msgstr ""
25862
25863 # type: textblock
25864 #: ../fish/guestfish-commands.pod:162
25865 msgid ""
25866 "In all respects it works the same as the L</alloc> command, except that the "
25867 "image file is allocated sparsely, which means that disk blocks are not "
25868 "assigned to the file until they are needed.  Sparse disk files only use "
25869 "space when written to, but they are slower and there is a danger you could "
25870 "run out of real disk space during a write operation."
25871 msgstr ""
25872
25873 # type: =head2
25874 #: ../fish/guestfish-commands.pod:172
25875 msgid "supported"
25876 msgstr ""
25877
25878 # type: verbatim
25879 #: ../fish/guestfish-commands.pod:174
25880 #, no-wrap
25881 msgid ""
25882 " supported\n"
25883 "\n"
25884 msgstr ""
25885
25886 # type: textblock
25887 #: ../fish/guestfish-commands.pod:176
25888 msgid ""
25889 "This command returns a list of the optional groups known to the daemon, and "
25890 "indicates which ones are supported by this build of the libguestfs appliance."
25891 msgstr ""
25892
25893 # type: textblock
25894 #: ../fish/guestfish-commands.pod:180
25895 msgid "See also L<guestfs(3)/AVAILABILITY>."
25896 msgstr ""
25897
25898 # type: =head2
25899 #: ../fish/guestfish-commands.pod:182
25900 msgid "time"
25901 msgstr ""
25902
25903 # type: verbatim
25904 #: ../fish/guestfish-commands.pod:184
25905 #, no-wrap
25906 msgid ""
25907 " time command args...\n"
25908 "\n"
25909 msgstr ""
25910
25911 # type: textblock
25912 #: ../fish/guestfish-commands.pod:186
25913 msgid ""
25914 "Run the command as usual, but print the elapsed time afterwards.  This can "
25915 "be useful for benchmarking operations."
25916 msgstr ""
25917
25918 # type: textblock
25919 #: ../test-tool/libguestfs-test-tool.pod:5
25920 msgid "libguestfs-test-tool - End user tests for libguestfs"
25921 msgstr ""
25922
25923 # type: verbatim
25924 #: ../test-tool/libguestfs-test-tool.pod:9
25925 #, no-wrap
25926 msgid ""
25927 " libguestfs-test-tool [--options]\n"
25928 "\n"
25929 msgstr ""
25930
25931 # type: textblock
25932 #: ../test-tool/libguestfs-test-tool.pod:13
25933 msgid ""
25934 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
25935 "and developers, to allow them to check basic libguestfs functionality is "
25936 "working.  This is needed because libguestfs occasionally breaks for reasons "
25937 "beyond our control: usually because of changes in the underlying qemu or "
25938 "kernel packages, or the host environment."
25939 msgstr ""
25940
25941 # type: textblock
25942 #: ../test-tool/libguestfs-test-tool.pod:20
25943 msgid "If you suspect a problem in libguestfs, then just run:"
25944 msgstr ""
25945
25946 # type: verbatim
25947 #: ../test-tool/libguestfs-test-tool.pod:22
25948 #, no-wrap
25949 msgid ""
25950 " libguestfs-test-tool\n"
25951 "\n"
25952 msgstr ""
25953
25954 # type: textblock
25955 #: ../test-tool/libguestfs-test-tool.pod:24
25956 msgid "It will print lots of diagnostic messages."
25957 msgstr ""
25958
25959 # type: textblock
25960 #: ../test-tool/libguestfs-test-tool.pod:26
25961 msgid "If it runs to completion successfully, you will see this near the end:"
25962 msgstr ""
25963
25964 # type: verbatim
25965 #: ../test-tool/libguestfs-test-tool.pod:28
25966 #, no-wrap
25967 msgid ""
25968 " ===== TEST FINISHED OK =====\n"
25969 "\n"
25970 msgstr ""
25971
25972 # type: textblock
25973 #: ../test-tool/libguestfs-test-tool.pod:30
25974 msgid "and the test tool will exit with code 0."
25975 msgstr ""
25976
25977 # type: textblock
25978 #: ../test-tool/libguestfs-test-tool.pod:32
25979 msgid ""
25980 "If it fails (and/or exits with non-zero error code), please paste the "
25981 "B<complete, unedited> output of the test tool into a bug report.  More "
25982 "information about reporting bugs can be found on the L<http://libguestfs.org/"
25983 "> website."
25984 msgstr ""
25985
25986 # type: =item
25987 #: ../test-tool/libguestfs-test-tool.pod:41
25988 msgid "I<--help>"
25989 msgstr ""
25990
25991 # type: textblock
25992 #: ../test-tool/libguestfs-test-tool.pod:43
25993 msgid "Display short usage information and exit."
25994 msgstr ""
25995
25996 # type: =item
25997 #: ../test-tool/libguestfs-test-tool.pod:45
25998 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
25999 msgstr ""
26000
26001 # type: textblock
26002 #: ../test-tool/libguestfs-test-tool.pod:47
26003 msgid ""
26004 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
26005 "normally look in the C<$libexec> directory that was configured when the tool "
26006 "was built."
26007 msgstr ""
26008
26009 # type: =item
26010 #: ../test-tool/libguestfs-test-tool.pod:51
26011 msgid "I<--qemu qemu_binary>"
26012 msgstr ""
26013
26014 # type: textblock
26015 #: ../test-tool/libguestfs-test-tool.pod:53
26016 msgid ""
26017 "If you have downloaded another qemu binary, point this option at the full "
26018 "path of the binary to try it."
26019 msgstr ""
26020
26021 # type: =item
26022 #: ../test-tool/libguestfs-test-tool.pod:56
26023 msgid "I<--qemudir qemu_source_dir>"
26024 msgstr ""
26025
26026 # type: textblock
26027 #: ../test-tool/libguestfs-test-tool.pod:58
26028 msgid ""
26029 "If you have compiled qemu from source, point this option at the source "
26030 "directory to try it."
26031 msgstr ""
26032
26033 # type: =item
26034 #: ../test-tool/libguestfs-test-tool.pod:61
26035 msgid "I<--timeout N>"
26036 msgstr ""
26037
26038 # type: textblock
26039 #: ../test-tool/libguestfs-test-tool.pod:63
26040 msgid ""
26041 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
26042 "does not usually need to be adjusted unless your machine is very slow."
26043 msgstr ""
26044
26045 # type: =head1
26046 #: ../test-tool/libguestfs-test-tool.pod:69
26047 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
26048 msgstr ""
26049
26050 # type: textblock
26051 #: ../test-tool/libguestfs-test-tool.pod:71
26052 msgid ""
26053 "If you have compiled another version of qemu from source and would like to "
26054 "try that, then you can use the I<--qemudir> option to point to the qemu "
26055 "source directory."
26056 msgstr ""
26057
26058 # type: textblock
26059 #: ../test-tool/libguestfs-test-tool.pod:75
26060 msgid ""
26061 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
26062 "option to point to the binary."
26063 msgstr ""
26064
26065 # type: textblock
26066 #: ../test-tool/libguestfs-test-tool.pod:78
26067 msgid ""
26068 "When using an alternate qemu with libguestfs, usually you would need to "
26069 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
26070 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
26071 "use either of the I<--qemudir> or I<--qemu> options."
26072 msgstr ""
26073
26074 # type: textblock
26075 #: ../test-tool/libguestfs-test-tool.pod:85
26076 msgid ""
26077 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
26078 "I<1> if there was an error."
26079 msgstr ""
26080
26081 # type: =item
26082 #: ../test-tool/libguestfs-test-tool.pod:92
26083 msgid "/usr/libexec/libguestfs-test-tool-helper"
26084 msgstr ""
26085
26086 # type: textblock
26087 #: ../test-tool/libguestfs-test-tool.pod:94
26088 msgid ""
26089 "This helper program is run inside the appliance and provides additional "
26090 "tests."
26091 msgstr ""
26092
26093 # type: =item
26094 #: ../test-tool/libguestfs-test-tool.pod:97
26095 msgid "/usr/bin/mkisofs"
26096 msgstr ""
26097
26098 # type: textblock
26099 #: ../test-tool/libguestfs-test-tool.pod:99
26100 msgid ""
26101 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
26102 "which is used as part of the tests."
26103 msgstr ""
26104
26105 # type: textblock
26106 #: ../test-tool/libguestfs-test-tool.pod:106
26107 msgid ""
26108 "For the full list of environment variables which may affect libguestfs, "
26109 "please see the L<guestfs(3)> manual page."
26110 msgstr ""
26111
26112 # type: textblock
26113 #: ../test-tool/libguestfs-test-tool.pod:111
26114 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
26115 msgstr ""
26116
26117 # type: textblock
26118 #: ../test-tool/libguestfs-test-tool.pod:121
26119 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
26120 msgstr ""
26121
26122 # type: textblock
26123 #: ../fuse/guestmount.pod:5
26124 msgid ""
26125 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
26126 msgstr ""
26127
26128 # type: verbatim
26129 #: ../fuse/guestmount.pod:9
26130 #, no-wrap
26131 msgid ""
26132 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
26133 "\n"
26134 msgstr ""
26135
26136 # type: verbatim
26137 #: ../fuse/guestmount.pod:11
26138 #, no-wrap
26139 msgid ""
26140 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
26141 "\n"
26142 msgstr ""
26143
26144 # type: verbatim
26145 #: ../fuse/guestmount.pod:13
26146 #, no-wrap
26147 msgid ""
26148 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
26149 "\n"
26150 msgstr ""
26151
26152 # type: textblock
26153 #: ../fuse/guestmount.pod:17
26154 msgid ""
26155 "You must I<not> use C<guestmount> in read-write mode on live virtual "
26156 "machines.  If you do this, you risk disk corruption in the VM."
26157 msgstr ""
26158
26159 # type: textblock
26160 #: ../fuse/guestmount.pod:22
26161 msgid ""
26162 "The guestmount program can be used to mount virtual machine filesystems and "
26163 "other disk images on the host.  It uses libguestfs for access to the guest "
26164 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
26165 "a mountable device."
26166 msgstr ""
26167
26168 # type: textblock
26169 #: ../fuse/guestmount.pod:27
26170 msgid ""
26171 "Along with other options, you have to give at least one device (I<-a> "
26172 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
26173 "option) or use the I<-i> inspection option.  How this works is better "
26174 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
26175 "below."
26176 msgstr ""
26177
26178 # type: textblock
26179 #: ../fuse/guestmount.pod:33
26180 msgid ""
26181 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
26182 "by you, and the filesystem will not be visible to any other users unless you "
26183 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
26184 "the filesystem, use the C<fusermount -u> command."
26185 msgstr ""
26186
26187 # type: textblock
26188 #: ../fuse/guestmount.pod:41
26189 msgid ""
26190 "For a typical Windows guest which has its main filesystem on the first "
26191 "partition:"
26192 msgstr ""
26193
26194 # type: verbatim
26195 #: ../fuse/guestmount.pod:44
26196 #, no-wrap
26197 msgid ""
26198 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
26199 "\n"
26200 msgstr ""
26201
26202 # type: textblock
26203 #: ../fuse/guestmount.pod:46
26204 msgid ""
26205 "For a typical Linux guest which has a /boot filesystem on the first "
26206 "partition, and the root filesystem on a logical volume:"
26207 msgstr ""
26208
26209 # type: verbatim
26210 #: ../fuse/guestmount.pod:49
26211 #, no-wrap
26212 msgid ""
26213 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
26214 "\n"
26215 msgstr ""
26216
26217 # type: textblock
26218 #: ../fuse/guestmount.pod:51
26219 msgid "To get libguestfs to detect guest mountpoints for you:"
26220 msgstr ""
26221
26222 # type: verbatim
26223 #: ../fuse/guestmount.pod:53
26224 #, no-wrap
26225 msgid ""
26226 " guestmount -a guest.img -i --ro /mnt\n"
26227 "\n"
26228 msgstr ""
26229
26230 # type: textblock
26231 #: ../fuse/guestmount.pod:55
26232 msgid "For a libvirt guest called \"Guest\" you could do:"
26233 msgstr ""
26234
26235 # type: verbatim
26236 #: ../fuse/guestmount.pod:57
26237 #, no-wrap
26238 msgid ""
26239 " guestmount -d Guest -i --ro /mnt\n"
26240 "\n"
26241 msgstr ""
26242
26243 # type: textblock
26244 #: ../fuse/guestmount.pod:59
26245 msgid ""
26246 "If you don't know what filesystems are contained in a guest or disk image, "
26247 "use L<virt-filesystems(1)> first:"
26248 msgstr ""
26249
26250 # type: verbatim
26251 #: ../fuse/guestmount.pod:62
26252 #, no-wrap
26253 msgid ""
26254 " virt-filesystems MyGuest\n"
26255 "\n"
26256 msgstr ""
26257
26258 # type: textblock
26259 #: ../fuse/guestmount.pod:64
26260 msgid ""
26261 "If you want to trace the libguestfs calls but without excessive debugging "
26262 "information, we recommend:"
26263 msgstr ""
26264
26265 # type: verbatim
26266 #: ../fuse/guestmount.pod:67
26267 #, no-wrap
26268 msgid ""
26269 " guestmount [...] --trace /mnt\n"
26270 "\n"
26271 msgstr ""
26272
26273 # type: textblock
26274 #: ../fuse/guestmount.pod:69
26275 msgid "If you want to debug the program, we recommend:"
26276 msgstr ""
26277
26278 # type: verbatim
26279 #: ../fuse/guestmount.pod:71
26280 #, no-wrap
26281 msgid ""
26282 " guestmount [...] --trace --verbose /mnt\n"
26283 "\n"
26284 msgstr ""
26285
26286 # type: =item
26287 #: ../fuse/guestmount.pod:77
26288 msgid "B<-a image> | B<--add image>"
26289 msgstr ""
26290
26291 # type: textblock
26292 #: ../fuse/guestmount.pod:79
26293 msgid "Add a block device or virtual machine image."
26294 msgstr ""
26295
26296 # type: =item
26297 #: ../fuse/guestmount.pod:84
26298 msgid "B<-c URI> | B<--connect URI>"
26299 msgstr ""
26300
26301 # type: =item
26302 #: ../fuse/guestmount.pod:90
26303 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
26304 msgstr ""
26305
26306 # type: =item
26307 #: ../fuse/guestmount.pod:96
26308 msgid "B<--dir-cache-timeout N>"
26309 msgstr ""
26310
26311 # type: textblock
26312 #: ../fuse/guestmount.pod:98
26313 msgid ""
26314 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
26315 "seconds.  The readdir cache [actually, there are several semi-independent "
26316 "caches] is populated after a readdir(2) call with the stat and extended "
26317 "attributes of the files in the directory, in anticipation that they will be "
26318 "requested soon after."
26319 msgstr ""
26320
26321 # type: textblock
26322 #: ../fuse/guestmount.pod:104
26323 msgid ""
26324 "There is also a different attribute cache implemented by FUSE (see the FUSE "
26325 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
26326 "requests, only cache existing ones."
26327 msgstr ""
26328
26329 # type: =item
26330 #: ../fuse/guestmount.pod:115
26331 msgid "B<--format=raw|qcow2|..> | B<--format>"
26332 msgstr ""
26333
26334 # type: textblock
26335 #: ../fuse/guestmount.pod:122
26336 msgid ""
26337 "If you have untrusted raw-format guest disk images, you should use this "
26338 "option to specify the disk format.  This avoids a possible security problem "
26339 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
26340 "guestfs_add_drive_opts>."
26341 msgstr ""
26342
26343 # type: =item
26344 #: ../fuse/guestmount.pod:127
26345 msgid "B<--fuse-help>"
26346 msgstr ""
26347
26348 # type: textblock
26349 #: ../fuse/guestmount.pod:129
26350 msgid "Display help on special FUSE options (see I<-o> below)."
26351 msgstr ""
26352
26353 # type: textblock
26354 #: ../fuse/guestmount.pod:133
26355 msgid "Display brief help and exit."
26356 msgstr ""
26357
26358 # type: =item
26359 #: ../fuse/guestmount.pod:135
26360 msgid "B<-i> | B<--inspector>"
26361 msgstr ""
26362
26363 # type: =item
26364 #: ../fuse/guestmount.pod:146
26365 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
26366 msgstr ""
26367
26368 # type: textblock
26369 #: ../fuse/guestmount.pod:148
26370 msgid ""
26371 "Mount the named partition or logical volume on the given mountpoint B<in the "
26372 "guest> (this has nothing to do with mountpoints in the host)."
26373 msgstr ""
26374
26375 # type: textblock
26376 #: ../fuse/guestmount.pod:151
26377 msgid ""
26378 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
26379 "something on C</>."
26380 msgstr ""
26381
26382 # type: =item
26383 #: ../fuse/guestmount.pod:154
26384 msgid "B<-n> | B<--no-sync>"
26385 msgstr ""
26386
26387 # type: textblock
26388 #: ../fuse/guestmount.pod:156
26389 msgid ""
26390 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
26391 "unmounted.  If you specify this option, then we don't attempt to sync the "
26392 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
26393 msgstr ""
26394
26395 # type: =item
26396 #: ../fuse/guestmount.pod:161
26397 msgid "B<-o option> | B<--option option>"
26398 msgstr ""
26399
26400 # type: textblock
26401 #: ../fuse/guestmount.pod:163
26402 msgid "Pass extra options to FUSE."
26403 msgstr ""
26404
26405 # type: textblock
26406 #: ../fuse/guestmount.pod:165
26407 msgid ""
26408 "To get a list of all the extra options supported by FUSE, use the command "
26409 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
26410 "of them are a good idea."
26411 msgstr ""
26412
26413 # type: verbatim
26414 #: ../fuse/guestmount.pod:169
26415 #, no-wrap
26416 msgid ""
26417 " guestmount --fuse-help\n"
26418 "\n"
26419 msgstr ""
26420
26421 # type: textblock
26422 #: ../fuse/guestmount.pod:171
26423 msgid "Some potentially useful FUSE options:"
26424 msgstr ""
26425
26426 # type: =item
26427 #: ../fuse/guestmount.pod:175
26428 msgid "B<-o allow_other>"
26429 msgstr ""
26430
26431 # type: textblock
26432 #: ../fuse/guestmount.pod:177
26433 msgid "Allow other users to see the filesystem."
26434 msgstr ""
26435
26436 # type: =item
26437 #: ../fuse/guestmount.pod:179
26438 msgid "B<-o attr_timeout=N>"
26439 msgstr ""
26440
26441 # type: textblock
26442 #: ../fuse/guestmount.pod:181
26443 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
26444 msgstr ""
26445
26446 # type: =item
26447 #: ../fuse/guestmount.pod:183
26448 msgid "B<-o kernel_cache>"
26449 msgstr ""
26450
26451 # type: textblock
26452 #: ../fuse/guestmount.pod:185
26453 msgid ""
26454 "Allow the kernel to cache files (reduces the number of reads that have to go "
26455 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
26456 "afford the extra memory usage."
26457 msgstr ""
26458
26459 # type: =item
26460 #: ../fuse/guestmount.pod:189
26461 msgid "B<-o uid=N> B<-o gid=N>"
26462 msgstr ""
26463
26464 # type: textblock
26465 #: ../fuse/guestmount.pod:191
26466 msgid ""
26467 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
26468 "the chosen values."
26469 msgstr ""
26470
26471 # type: =item
26472 #: ../fuse/guestmount.pod:196
26473 msgid "B<-r> | B<--ro>"
26474 msgstr ""
26475
26476 # type: textblock
26477 #: ../fuse/guestmount.pod:198
26478 msgid ""
26479 "Add devices and mount everything read-only.  Also disallow writes and make "
26480 "the disk appear read-only to FUSE."
26481 msgstr ""
26482
26483 # type: textblock
26484 #: ../fuse/guestmount.pod:201
26485 msgid ""
26486 "This is highly recommended if you are not going to edit the guest disk.  If "
26487 "the guest is running and this option is I<not> supplied, then there is a "
26488 "strong risk of disk corruption in the guest.  We try to prevent this from "
26489 "happening, but it is not always possible."
26490 msgstr ""
26491
26492 # type: textblock
26493 #: ../fuse/guestmount.pod:206
26494 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
26495 msgstr ""
26496
26497 # type: textblock
26498 #: ../fuse/guestmount.pod:210
26499 msgid "Enable SELinux support for the guest."
26500 msgstr ""
26501
26502 # type: =item
26503 #: ../fuse/guestmount.pod:212
26504 msgid "B<-v> | B<--verbose>"
26505 msgstr ""
26506
26507 # type: textblock
26508 #: ../fuse/guestmount.pod:214
26509 msgid "Enable verbose messages from underlying libguestfs."
26510 msgstr ""
26511
26512 # type: =item
26513 #: ../fuse/guestmount.pod:216
26514 msgid "B<-V> | B<--version>"
26515 msgstr ""
26516
26517 # type: textblock
26518 #: ../fuse/guestmount.pod:218
26519 msgid "Display the program version and exit."
26520 msgstr ""
26521
26522 # type: =item
26523 #: ../fuse/guestmount.pod:220
26524 msgid "B<-w> | B<--rw>"
26525 msgstr ""
26526
26527 # type: textblock
26528 #: ../fuse/guestmount.pod:222
26529 msgid ""
26530 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
26531 "FOR READ AND WRITE>."
26532 msgstr ""
26533
26534 # type: =item
26535 #: ../fuse/guestmount.pod:225
26536 msgid "B<-x> | B<--trace>"
26537 msgstr ""
26538
26539 # type: textblock
26540 #: ../fuse/guestmount.pod:227
26541 msgid "Trace libguestfs calls and entry into each FUSE function."
26542 msgstr ""
26543
26544 # type: textblock
26545 #: ../fuse/guestmount.pod:229
26546 msgid "This also stops the daemon from forking into the background."
26547 msgstr ""
26548
26549 # type: textblock
26550 #: ../fuse/guestmount.pod:235
26551 msgid ""
26552 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
26553 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
26554 "net/>."
26555 msgstr ""