Version 1.11.18.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.11.18\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-07-15 17:18+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3 ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35 ../tools/virt-list-partitions.pl:30
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../src/guestfs.pod:5
27 msgid "guestfs - Library for accessing and modifying virtual machine images"
28 msgstr ""
29
30 #. type: =head1
31 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7 ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39 ../tools/virt-list-partitions.pl:34
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../src/guestfs.pod:9
37 #, no-wrap
38 msgid ""
39 " #include <guestfs.h>\n"
40 " \n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../src/guestfs.pod:11
45 #, no-wrap
46 msgid ""
47 " guestfs_h *g = guestfs_create ();\n"
48 " guestfs_add_drive (g, \"guest.img\");\n"
49 " guestfs_launch (g);\n"
50 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
51 " guestfs_touch (g, \"/hello\");\n"
52 " guestfs_umount (g, \"/\");\n"
53 " guestfs_close (g);\n"
54 "\n"
55 msgstr ""
56
57 #. type: verbatim
58 #: ../src/guestfs.pod:19
59 #, no-wrap
60 msgid ""
61 " cc prog.c -o prog -lguestfs\n"
62 "or:\n"
63 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
64 "\n"
65 msgstr ""
66
67 #. type: =head1
68 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30 ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20 ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47 ../tools/virt-list-partitions.pl:40
69 msgid "DESCRIPTION"
70 msgstr ""
71
72 #. type: textblock
73 #: ../src/guestfs.pod:25
74 msgid ""
75 "Libguestfs is a library for accessing and modifying guest disk images.  "
76 "Amongst the things this is good for: making batch configuration changes to "
77 "guests, getting disk used/free statistics (see also: virt-df), migrating "
78 "between virtualization systems (see also: virt-p2v), performing partial "
79 "backups, performing partial guest clones, cloning guests and changing "
80 "registry/UUID/hostname info, and much else besides."
81 msgstr ""
82
83 #. type: textblock
84 #: ../src/guestfs.pod:33
85 msgid ""
86 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
87 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
88 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
89 "qcow2, vmdk."
90 msgstr ""
91
92 #. type: textblock
93 #: ../src/guestfs.pod:38
94 msgid ""
95 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
96 "what filesystem is in each LV, etc.).  It can also run commands in the "
97 "context of the guest.  Also you can access filesystems over FUSE."
98 msgstr ""
99
100 #. type: textblock
101 #: ../src/guestfs.pod:43
102 msgid ""
103 "Libguestfs is a library that can be linked with C and C++ management "
104 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
105 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
106 "line."
107 msgstr ""
108
109 #. type: textblock
110 #: ../src/guestfs.pod:48
111 msgid ""
112 "You don't need to be root to use libguestfs, although obviously you do need "
113 "enough permissions to access the disk images."
114 msgstr ""
115
116 #. type: textblock
117 #: ../src/guestfs.pod:51
118 msgid ""
119 "Libguestfs is a large API because it can do many things.  For a gentle "
120 "introduction, please read the L</API OVERVIEW> section next."
121 msgstr ""
122
123 #. type: textblock
124 #: ../src/guestfs.pod:54
125 msgid ""
126 "There are also some example programs in the L<guestfs-examples(3)> manual "
127 "page."
128 msgstr ""
129
130 #. type: =head1
131 #: ../src/guestfs.pod:57
132 msgid "API OVERVIEW"
133 msgstr ""
134
135 #. type: textblock
136 #: ../src/guestfs.pod:59
137 msgid ""
138 "This section provides a gentler overview of the libguestfs API.  We also try "
139 "to group API calls together, where that may not be obvious from reading "
140 "about the individual calls in the main section of this manual."
141 msgstr ""
142
143 #. type: =head2
144 #: ../src/guestfs.pod:64
145 msgid "HANDLES"
146 msgstr ""
147
148 #. type: textblock
149 #: ../src/guestfs.pod:66
150 msgid ""
151 "Before you can use libguestfs calls, you have to create a handle.  Then you "
152 "must add at least one disk image to the handle, followed by launching the "
153 "handle, then performing whatever operations you want, and finally closing "
154 "the handle.  By convention we use the single letter C<g> for the name of the "
155 "handle variable, although of course you can use any name you want."
156 msgstr ""
157
158 #. type: textblock
159 #: ../src/guestfs.pod:73
160 msgid "The general structure of all libguestfs-using programs looks like this:"
161 msgstr ""
162
163 #. type: verbatim
164 #: ../src/guestfs.pod:76
165 #, no-wrap
166 msgid ""
167 " guestfs_h *g = guestfs_create ();\n"
168 " \n"
169 msgstr ""
170
171 #. type: verbatim
172 #: ../src/guestfs.pod:78
173 #, no-wrap
174 msgid ""
175 " /* Call guestfs_add_drive additional times if there are\n"
176 "  * multiple disk images.\n"
177 "  */\n"
178 " guestfs_add_drive (g, \"guest.img\");\n"
179 " \n"
180 msgstr ""
181
182 #. type: verbatim
183 #: ../src/guestfs.pod:83
184 #, no-wrap
185 msgid ""
186 " /* Most manipulation calls won't work until you've launched\n"
187 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
188 "  * and _before_ other commands.\n"
189 "  */\n"
190 " guestfs_launch (g);\n"
191 " \n"
192 msgstr ""
193
194 #. type: verbatim
195 #: ../src/guestfs.pod:89
196 #, no-wrap
197 msgid ""
198 " /* Now you can examine what partitions, LVs etc are available.\n"
199 "  */\n"
200 " char **partitions = guestfs_list_partitions (g);\n"
201 " char **logvols = guestfs_lvs (g);\n"
202 " \n"
203 msgstr ""
204
205 #. type: verbatim
206 #: ../src/guestfs.pod:94
207 #, no-wrap
208 msgid ""
209 " /* To access a filesystem in the image, you must mount it.\n"
210 "  */\n"
211 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
212 " \n"
213 msgstr ""
214
215 #. type: verbatim
216 #: ../src/guestfs.pod:98
217 #, no-wrap
218 msgid ""
219 " /* Now you can perform filesystem actions on the guest\n"
220 "  * disk image.\n"
221 "  */\n"
222 " guestfs_touch (g, \"/hello\");\n"
223 " \n"
224 msgstr ""
225
226 #. type: verbatim
227 #: ../src/guestfs.pod:103
228 #, no-wrap
229 msgid ""
230 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
231 "  * it is done automatically when you close the handle.  See\n"
232 "  * discussion of autosync in this page.\n"
233 "  */\n"
234 " guestfs_sync (g);\n"
235 " \n"
236 msgstr ""
237
238 #. type: verbatim
239 #: ../src/guestfs.pod:109
240 #, no-wrap
241 msgid ""
242 " /* Close the handle 'g'. */\n"
243 " guestfs_close (g);\n"
244 "\n"
245 msgstr ""
246
247 #. type: textblock
248 #: ../src/guestfs.pod:112
249 msgid ""
250 "The code above doesn't include any error checking.  In real code you should "
251 "check return values carefully for errors.  In general all functions that "
252 "return integers return C<-1> on error, and all functions that return "
253 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
254 "how to handle errors, and consult the documentation for each function call "
255 "below to see precisely how they return error indications.  See "
256 "L<guestfs-examples(3)> for fully worked examples."
257 msgstr ""
258
259 #. type: =head2
260 #: ../src/guestfs.pod:121
261 msgid "DISK IMAGES"
262 msgstr ""
263
264 #. type: textblock
265 #: ../src/guestfs.pod:123
266 msgid ""
267 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
268 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
269 "actual block device, or simply an empty file of zeroes that you have created "
270 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
271 "of these."
272 msgstr ""
273
274 #. type: textblock
275 #: ../src/guestfs.pod:129
276 msgid ""
277 "The call you should use in modern code for adding drives is "
278 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
279 "specifying that the format is raw, do:"
280 msgstr ""
281
282 #. type: verbatim
283 #: ../src/guestfs.pod:133
284 #, no-wrap
285 msgid ""
286 " guestfs_add_drive_opts (g, filename,\n"
287 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
288 "                         -1);\n"
289 "\n"
290 msgstr ""
291
292 #. type: textblock
293 #: ../src/guestfs.pod:137
294 msgid "You can add a disk read-only using:"
295 msgstr ""
296
297 #. type: verbatim
298 #: ../src/guestfs.pod:139
299 #, no-wrap
300 msgid ""
301 " guestfs_add_drive_opts (g, filename,\n"
302 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
303 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
304 "                         -1);\n"
305 "\n"
306 msgstr ""
307
308 #. type: textblock
309 #: ../src/guestfs.pod:144
310 msgid ""
311 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
312 "libguestfs won't modify the file."
313 msgstr ""
314
315 #. type: textblock
316 #: ../src/guestfs.pod:147
317 msgid ""
318 "Be extremely cautious if the disk image is in use, eg. if it is being used "
319 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
320 "corruption, but adding it read-only is safe."
321 msgstr ""
322
323 #. type: textblock
324 #: ../src/guestfs.pod:151
325 msgid ""
326 "You must add at least one disk image, and you may add multiple disk images.  "
327 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
328 "first one you added), C</dev/sdb> (for the second one you added), etc."
329 msgstr ""
330
331 #. type: textblock
332 #: ../src/guestfs.pod:156
333 msgid ""
334 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
335 "can call L</guestfs_list_devices> to get a list of the device names, in the "
336 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
337 msgstr ""
338
339 #. type: =head2
340 #: ../src/guestfs.pod:161
341 msgid "MOUNTING"
342 msgstr ""
343
344 #. type: textblock
345 #: ../src/guestfs.pod:163
346 msgid ""
347 "Before you can read or write files, create directories and so on in a disk "
348 "image that contains filesystems, you have to mount those filesystems using "
349 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
350 "a disk image contains (for example) one partition with a filesystem on that "
351 "partition, then you can mount it directly:"
352 msgstr ""
353
354 #. type: verbatim
355 #: ../src/guestfs.pod:170
356 #, no-wrap
357 msgid ""
358 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
359 "\n"
360 msgstr ""
361
362 #. type: textblock
363 #: ../src/guestfs.pod:172
364 msgid ""
365 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
366 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
367 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
368 "that these are libguestfs virtual devices, and are nothing to do with host "
369 "devices."
370 msgstr ""
371
372 #. type: textblock
373 #: ../src/guestfs.pod:178
374 msgid ""
375 "If you are given a disk image and you don't know what it contains then you "
376 "have to find out.  Libguestfs can do that too: use "
377 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
378 "and LVs, and either try mounting each to see what is mountable, or else "
379 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
380 "filesystems, use L</guestfs_list_filesystems>."
381 msgstr ""
382
383 #. type: textblock
384 #: ../src/guestfs.pod:186
385 msgid ""
386 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
387 "L</INSPECTION> below).  But you might find it easier to look at higher level "
388 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
389 msgstr ""
390
391 #. type: textblock
392 #: ../src/guestfs.pod:191
393 msgid ""
394 "To mount a filesystem 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:194
400 msgid "FILESYSTEM ACCESS AND MODIFICATION"
401 msgstr ""
402
403 #. type: textblock
404 #: ../src/guestfs.pod:196
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:202
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:205
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:208
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:210
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:214
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:217
452 #, no-wrap
453 msgid ""
454 " guestfs_mkdir (g, \"/var\");\n"
455 "\n"
456 msgstr ""
457
458 #. type: textblock
459 #: ../src/guestfs.pod:219
460 msgid "To create a symlink you could do:"
461 msgstr ""
462
463 #. type: verbatim
464 #: ../src/guestfs.pod:221
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:224
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:227
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:233
491 msgid ""
492 "File writes are affected by the per-handle umask, set by calling "
493 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
494 msgstr ""
495
496 #. type: =head2
497 #: ../src/guestfs.pod:236
498 msgid "PARTITIONING"
499 msgstr ""
500
501 #. type: textblock
502 #: ../src/guestfs.pod:238
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:241
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:245
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:250
528 msgid ""
529 "Obviously this effectively wipes anything that was on that disk image "
530 "before."
531 msgstr ""
532
533 #. type: =head2
534 #: ../src/guestfs.pod:253
535 msgid "LVM2"
536 msgstr ""
537
538 #. type: textblock
539 #: ../src/guestfs.pod:255
540 msgid ""
541 "Libguestfs provides access to a large part of the LVM2 API, such as "
542 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
543 "unless you familiarize yourself with the concepts of physical volumes, "
544 "volume groups and logical volumes."
545 msgstr ""
546
547 #. type: textblock
548 #: ../src/guestfs.pod:260
549 msgid ""
550 "This author strongly recommends reading the LVM HOWTO, online at "
551 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
552 msgstr ""
553
554 #. type: =head2
555 #: ../src/guestfs.pod:263
556 msgid "DOWNLOADING"
557 msgstr ""
558
559 #. type: textblock
560 #: ../src/guestfs.pod:265
561 msgid ""
562 "Use L</guestfs_cat> to download small, text only files.  This call is "
563 "limited to files which are less than 2 MB and which cannot contain any ASCII "
564 "NUL (C<\\0>) characters.  However the API is very simple to use."
565 msgstr ""
566
567 #. type: textblock
568 #: ../src/guestfs.pod:269
569 msgid ""
570 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
571 "bit data, since it returns a (pointer, size) pair.  However it is still "
572 "limited to \"small\" files, less than 2 MB."
573 msgstr ""
574
575 #. type: textblock
576 #: ../src/guestfs.pod:273
577 msgid ""
578 "L</guestfs_download> can be used to download any file, with no limits on "
579 "content or size (even files larger than 4 GB)."
580 msgstr ""
581
582 #. type: textblock
583 #: ../src/guestfs.pod:276
584 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
585 msgstr ""
586
587 #. type: =head2
588 #: ../src/guestfs.pod:279
589 msgid "UPLOADING"
590 msgstr ""
591
592 #. type: textblock
593 #: ../src/guestfs.pod:281
594 msgid ""
595 "It's often the case that you want to write a file or files to the disk "
596 "image."
597 msgstr ""
598
599 #. type: textblock
600 #: ../src/guestfs.pod:284
601 msgid ""
602 "To write a small file with fixed content, use L</guestfs_write>.  To create "
603 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
604 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
605 "variety of other functions for creating test files, for example "
606 "L</guestfs_fill> and L</guestfs_fill_pattern>."
607 msgstr ""
608
609 #. type: textblock
610 #: ../src/guestfs.pod:290
611 msgid ""
612 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
613 "file content or size (even files larger than 4 GB)."
614 msgstr ""
615
616 #. type: textblock
617 #: ../src/guestfs.pod:293
618 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
619 msgstr ""
620
621 #. type: textblock
622 #: ../src/guestfs.pod:295
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 "
626 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
627 "the drive in a predictable way (eg. adding it last after all other drives) "
628 "then you can get the device name from L</guestfs_list_devices> and mount it "
629 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
630 "sometimes non-portable between kernel versions, and they don't support "
631 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
632 "using a label or UUID, use an ISO image instead."
633 msgstr ""
634
635 #. type: =head2
636 #: ../src/guestfs.pod:306
637 msgid "COPYING"
638 msgstr ""
639
640 #. type: textblock
641 #: ../src/guestfs.pod:308
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:314
650 msgid "B<file> to B<file>"
651 msgstr ""
652
653 #. type: textblock
654 #: ../src/guestfs.pod:316
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:319
662 msgid "B<file or device> to B<file or device>"
663 msgstr ""
664
665 #. type: textblock
666 #: ../src/guestfs.pod:321
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:324
674 msgid "Example: duplicate the contents of an LV:"
675 msgstr ""
676
677 #. type: verbatim
678 #: ../src/guestfs.pod:326
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:328
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 "
690 "L</guestfs_copy_size>."
691 msgstr ""
692
693 #. type: =item
694 #: ../src/guestfs.pod:332
695 msgid "B<file on the host> to B<file or device>"
696 msgstr ""
697
698 #. type: textblock
699 #: ../src/guestfs.pod:334
700 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
701 msgstr ""
702
703 #. type: =item
704 #: ../src/guestfs.pod:336
705 msgid "B<file or device> to B<file on the host>"
706 msgstr ""
707
708 #. type: textblock
709 #: ../src/guestfs.pod:338
710 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
711 msgstr ""
712
713 #. type: =head2
714 #: ../src/guestfs.pod:342
715 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
716 msgstr ""
717
718 #. type: textblock
719 #: ../src/guestfs.pod:344
720 msgid ""
721 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
722 "L</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>, "
725 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
726 "stderr, and arbitrary file descriptor N."
727 msgstr ""
728
729 #. type: textblock
730 #: ../src/guestfs.pod:352
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:355
736 #, no-wrap
737 msgid ""
738 " guestfs_download (g, filename, \"/dev/stdout\");\n"
739 "\n"
740 msgstr ""
741
742 #. type: textblock
743 #: ../src/guestfs.pod:357
744 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
745 msgstr ""
746
747 #. type: verbatim
748 #: ../src/guestfs.pod:359
749 #, no-wrap
750 msgid ""
751 " char devfd[64];\n"
752 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
753 " guestfs_tar_out (g, \"/\", devfd);\n"
754 "\n"
755 msgstr ""
756
757 #. type: =head2
758 #: ../src/guestfs.pod:363
759 msgid "LISTING FILES"
760 msgstr ""
761
762 #. type: textblock
763 #: ../src/guestfs.pod:365
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:368
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:371
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:375
786 msgid ""
787 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
788 "files."
789 msgstr ""
790
791 #. type: =head2
792 #: ../src/guestfs.pod:378
793 msgid "RUNNING COMMANDS"
794 msgstr ""
795
796 #. type: textblock
797 #: ../src/guestfs.pod:380
798 msgid ""
799 "Although libguestfs is primarily an API for manipulating files inside guest "
800 "images, we also provide some limited facilities for running commands inside "
801 "guests."
802 msgstr ""
803
804 #. type: textblock
805 #: ../src/guestfs.pod:384
806 msgid "There are many limitations to this:"
807 msgstr ""
808
809 #. type: =item
810 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064 ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077 ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112 ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652 ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763 ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052 ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420 ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437 ../src/guestfs.pod:3011 ../src/guestfs.pod:3015 ../src/guestfs.pod:3019 ../src/guestfs.pod:3023 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2863 ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2885 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947 ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961 ../tools/virt-win-reg.pl:195 ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206 ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714 ../tools/virt-win-reg.pl:720
811 msgid "*"
812 msgstr ""
813
814 #. type: textblock
815 #: ../src/guestfs.pod:390
816 msgid ""
817 "The kernel version that the command runs under will be different from what "
818 "it expects."
819 msgstr ""
820
821 #. type: textblock
822 #: ../src/guestfs.pod:395
823 msgid ""
824 "If the command needs to communicate with daemons, then most likely they "
825 "won't be running."
826 msgstr ""
827
828 #. type: textblock
829 #: ../src/guestfs.pod:400
830 msgid "The command will be running in limited memory."
831 msgstr ""
832
833 #. type: textblock
834 #: ../src/guestfs.pod:404
835 msgid ""
836 "The network may not be available unless you enable it (see "
837 "L</guestfs_set_network>)."
838 msgstr ""
839
840 #. type: textblock
841 #: ../src/guestfs.pod:409
842 msgid "Only supports Linux guests (not Windows, BSD, etc)."
843 msgstr ""
844
845 #. type: textblock
846 #: ../src/guestfs.pod:413
847 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
848 msgstr ""
849
850 #. type: textblock
851 #: ../src/guestfs.pod:418
852 msgid ""
853 "For SELinux guests, you may need to enable SELinux and load policy first.  "
854 "See L</SELINUX> in this manpage."
855 msgstr ""
856
857 #. type: textblock
858 #: ../src/guestfs.pod:423
859 msgid ""
860 "I<Security:> It is not safe to run commands from untrusted, possibly "
861 "malicious guests.  These commands may attempt to exploit your program by "
862 "sending unexpected output.  They could also try to exploit the Linux kernel "
863 "or qemu provided by the libguestfs appliance.  They could use the network "
864 "provided by the libguestfs appliance to bypass ordinary network partitions "
865 "and firewalls.  They could use the elevated privileges or different SELinux "
866 "context of your program to their advantage."
867 msgstr ""
868
869 #. type: textblock
870 #: ../src/guestfs.pod:432
871 msgid ""
872 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
873 "(a script which runs when the guest next boots normally), and to have this "
874 "script run the commands you want in the normal context of the running guest, "
875 "network security and so on.  For information about other security issues, "
876 "see L</SECURITY>."
877 msgstr ""
878
879 #. type: textblock
880 #: ../src/guestfs.pod:440
881 msgid ""
882 "The two main API calls to run commands are L</guestfs_command> and "
883 "L</guestfs_sh> (there are also variations)."
884 msgstr ""
885
886 #. type: textblock
887 #: ../src/guestfs.pod:443
888 msgid ""
889 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
890 "shell globs, redirections, etc will work."
891 msgstr ""
892
893 #. type: =head2
894 #: ../src/guestfs.pod:446
895 msgid "CONFIGURATION FILES"
896 msgstr ""
897
898 #. type: textblock
899 #: ../src/guestfs.pod:448
900 msgid ""
901 "To read and write configuration files in Linux guest filesystems, we "
902 "strongly recommend using Augeas.  For example, Augeas understands how to "
903 "read and write, say, a Linux shadow password file or X.org configuration "
904 "file, and so avoids you having to write that code."
905 msgstr ""
906
907 #. type: textblock
908 #: ../src/guestfs.pod:453
909 msgid ""
910 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
911 "document Augeas itself here because there is excellent documentation on the "
912 "L<http://augeas.net/> website."
913 msgstr ""
914
915 #. type: textblock
916 #: ../src/guestfs.pod:457
917 msgid ""
918 "If you don't want to use Augeas (you fool!) then try calling "
919 "L</guestfs_read_lines> to get the file as a list of lines which you can "
920 "iterate over."
921 msgstr ""
922
923 #. type: =head2
924 #: ../src/guestfs.pod:461
925 msgid "SELINUX"
926 msgstr ""
927
928 #. type: textblock
929 #: ../src/guestfs.pod:463
930 msgid ""
931 "We support SELinux guests.  To ensure that labeling happens correctly in "
932 "SELinux guests, you need to enable SELinux and load the guest's policy:"
933 msgstr ""
934
935 #. type: =item
936 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395 ../src/guestfs.pod:2465
937 msgid "1."
938 msgstr ""
939
940 #. type: textblock
941 #: ../src/guestfs.pod:471
942 msgid "Before launching, do:"
943 msgstr ""
944
945 #. type: verbatim
946 #: ../src/guestfs.pod:473
947 #, no-wrap
948 msgid ""
949 " guestfs_set_selinux (g, 1);\n"
950 "\n"
951 msgstr ""
952
953 #. type: =item
954 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399 ../src/guestfs.pod:2490
955 msgid "2."
956 msgstr ""
957
958 #. type: textblock
959 #: ../src/guestfs.pod:477
960 msgid ""
961 "After mounting the guest's filesystem(s), load the policy.  This is best "
962 "done by running the L<load_policy(8)> command in the guest itself:"
963 msgstr ""
964
965 #. type: verbatim
966 #: ../src/guestfs.pod:481
967 #, no-wrap
968 msgid ""
969 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
970 "\n"
971 msgstr ""
972
973 #. type: textblock
974 #: ../src/guestfs.pod:483
975 msgid ""
976 "(Older versions of C<load_policy> require you to specify the name of the "
977 "policy file)."
978 msgstr ""
979
980 #. type: =item
981 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
982 msgid "3."
983 msgstr ""
984
985 #. type: textblock
986 #: ../src/guestfs.pod:488
987 msgid ""
988 "Optionally, set the security context for the API.  The correct security "
989 "context to use can only be known by inspecting the guest.  As an example:"
990 msgstr ""
991
992 #. type: verbatim
993 #: ../src/guestfs.pod:492
994 #, no-wrap
995 msgid ""
996 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
997 "\n"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../src/guestfs.pod:496
1002 msgid "This will work for running commands and editing existing files."
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../src/guestfs.pod:498
1007 msgid ""
1008 "When new files are created, you may need to label them explicitly, for "
1009 "example by running the external command C<restorecon pathname>."
1010 msgstr ""
1011
1012 #. type: =head2
1013 #: ../src/guestfs.pod:502
1014 msgid "UMASK"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../src/guestfs.pod:504
1019 msgid ""
1020 "Certain calls are affected by the current file mode creation mask (the "
1021 "\"umask\").  In particular ones which create files or directories, such as "
1022 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1023 "either the default mode that the file is created with or modifies the mode "
1024 "that you supply."
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../src/guestfs.pod:510
1029 msgid ""
1030 "The default umask is C<022>, so files are created with modes such as C<0644> "
1031 "and directories with C<0755>."
1032 msgstr ""
1033
1034 #. type: textblock
1035 #: ../src/guestfs.pod:513
1036 msgid ""
1037 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1038 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
1039 "L</guestfs_chmod> after creating each file or directory."
1040 msgstr ""
1041
1042 #. type: textblock
1043 #: ../src/guestfs.pod:517
1044 msgid "For more information about umask, see L<umask(2)>."
1045 msgstr ""
1046
1047 #. type: =head1
1048 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:825
1049 msgid "ENCRYPTED DISKS"
1050 msgstr ""
1051
1052 #. type: textblock
1053 #: ../src/guestfs.pod:521
1054 msgid ""
1055 "Libguestfs allows you to access Linux guests which have been encrypted using "
1056 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1057 "standard.  This includes nearly all whole disk encryption systems used by "
1058 "modern Linux guests."
1059 msgstr ""
1060
1061 #. type: textblock
1062 #: ../src/guestfs.pod:527
1063 msgid ""
1064 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1065 "returns the string C<crypto_LUKS>)."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../src/guestfs.pod:530
1070 msgid ""
1071 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1072 "will require the passphrase!"
1073 msgstr ""
1074
1075 #. type: textblock
1076 #: ../src/guestfs.pod:533
1077 msgid ""
1078 "Opening a LUKS device creates a new device mapper device called "
1079 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
1080 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
1081 "decrypted from and encrypted to the underlying block device respectively."
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../src/guestfs.pod:539
1086 msgid ""
1087 "LVM volume groups on the device can be made visible by calling "
1088 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
1089 "volume(s) can now be mounted in the usual way."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../src/guestfs.pod:543
1094 msgid ""
1095 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1096 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1097 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
1098 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1099 "underlying encrypted block device)."
1100 msgstr ""
1101
1102 #. type: =head2
1103 #: ../src/guestfs.pod:550
1104 msgid "INSPECTION"
1105 msgstr ""
1106
1107 #. type: textblock
1108 #: ../src/guestfs.pod:552
1109 msgid ""
1110 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1111 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1112 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1113 "version 1.5.3 the most frequently used part of this library has been "
1114 "rewritten in C and moved into the core code)."
1115 msgstr ""
1116
1117 #. type: textblock
1118 #: ../src/guestfs.pod:559
1119 msgid ""
1120 "Add all disks belonging to the unknown virtual machine and call "
1121 "L</guestfs_launch> in the usual way."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../src/guestfs.pod:562
1126 msgid ""
1127 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1128 "and certain heuristics, and returns a list of operating systems that were "
1129 "found.  An empty list means none were found.  A single element is the root "
1130 "filesystem of the operating system.  For dual- or multi-boot guests, "
1131 "multiple roots can be returned, each one corresponding to a separate "
1132 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1133 "world of virtualization, but since this scenario can happen, we have built "
1134 "libguestfs to deal with it.)"
1135 msgstr ""
1136
1137 #. type: textblock
1138 #: ../src/guestfs.pod:571
1139 msgid ""
1140 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1141 "to get additional details about that operating system.  For example, call "
1142 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1143 "Windows and Linux-based operating systems respectively."
1144 msgstr ""
1145
1146 #. type: textblock
1147 #: ../src/guestfs.pod:577
1148 msgid ""
1149 "Un*x-like and Linux-based operating systems usually consist of several "
1150 "filesystems which are mounted at boot time (for example, a separate boot "
1151 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1152 "filesystems correspond to mount points.  Call "
1153 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1154 "hash table like this example:"
1155 msgstr ""
1156
1157 #. type: verbatim
1158 #: ../src/guestfs.pod:584
1159 #, no-wrap
1160 msgid ""
1161 " /boot => /dev/sda1\n"
1162 " /     => /dev/vg_guest/lv_root\n"
1163 " /usr  => /dev/vg_guest/lv_usr\n"
1164 "\n"
1165 msgstr ""
1166
1167 #. type: textblock
1168 #: ../src/guestfs.pod:588
1169 msgid ""
1170 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1171 "filesystems as suggested."
1172 msgstr ""
1173
1174 #. type: textblock
1175 #: ../src/guestfs.pod:591
1176 msgid ""
1177 "Be careful to mount filesystems in the right order (eg. C</> before "
1178 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
1179 "work."
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../src/guestfs.pod:595
1184 msgid ""
1185 "Inspection currently only works for some common operating systems.  "
1186 "Contributors are welcome to send patches for other operating systems that we "
1187 "currently cannot detect."
1188 msgstr ""
1189
1190 #. type: textblock
1191 #: ../src/guestfs.pod:599
1192 msgid ""
1193 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1194 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1195 "encrypted devices."
1196 msgstr ""
1197
1198 #. type: textblock
1199 #: ../src/guestfs.pod:603
1200 msgid ""
1201 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1202 "inspection and caches the results in the guest handle.  Subsequent calls to "
1203 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
1204 "re-read the disks.  If you change the content of the guest disks, you can "
1205 "redo inspection by calling L</guestfs_inspect_os> again.  "
1206 "(L</guestfs_inspect_list_applications> works a little differently from the "
1207 "other calls and does read the disks.  See documentation for that function "
1208 "for details)."
1209 msgstr ""
1210
1211 #. type: =head3
1212 #: ../src/guestfs.pod:612
1213 msgid "INSPECTING INSTALL DISKS"
1214 msgstr ""
1215
1216 #. type: textblock
1217 #: ../src/guestfs.pod:614
1218 msgid ""
1219 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1220 "CDs and more."
1221 msgstr ""
1222
1223 #. type: textblock
1224 #: ../src/guestfs.pod:617
1225 msgid ""
1226 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1227 "system, which currently can be C<installed> (a regular operating system) or "
1228 "C<installer> (some sort of install disk)."
1229 msgstr ""
1230
1231 #. type: textblock
1232 #: ../src/guestfs.pod:621
1233 msgid ""
1234 "Further information is available about the operating system that can be "
1235 "installed using the regular inspection APIs like "
1236 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
1237 "etc."
1238 msgstr ""
1239
1240 #. type: textblock
1241 #: ../src/guestfs.pod:626
1242 msgid ""
1243 "Some additional information specific to installer disks is also available "
1244 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
1245 "L</guestfs_inspect_is_multipart> calls."
1246 msgstr ""
1247
1248 #. type: =head2
1249 #: ../src/guestfs.pod:631
1250 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1251 msgstr ""
1252
1253 #. type: textblock
1254 #: ../src/guestfs.pod:633
1255 msgid ""
1256 "Libguestfs can mount NTFS partitions.  It does this using the "
1257 "L<http://www.ntfs-3g.org/> driver."
1258 msgstr ""
1259
1260 #. type: =head3
1261 #: ../src/guestfs.pod:636
1262 msgid "DRIVE LETTERS AND PATHS"
1263 msgstr ""
1264
1265 #. type: textblock
1266 #: ../src/guestfs.pod:638
1267 msgid ""
1268 "DOS and Windows still use drive letters, and the filesystems are always "
1269 "treated as case insensitive by Windows itself, and therefore you might find "
1270 "a Windows configuration file referring to a path like "
1271 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
1272 "that directory might be referred to as C</WINDOWS/System32>."
1273 msgstr ""
1274
1275 #. type: textblock
1276 #: ../src/guestfs.pod:644
1277 msgid ""
1278 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1279 "L</guestfs_inspect_get_drive_mappings>)"
1280 msgstr ""
1281
1282 #. type: textblock
1283 #: ../src/guestfs.pod:647
1284 msgid ""
1285 "Dealing with separator characters (backslash vs forward slash) is outside "
1286 "the scope of libguestfs, but usually a simple character replacement will "
1287 "work."
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../src/guestfs.pod:651
1292 msgid ""
1293 "To resolve the case insensitivity of paths, call "
1294 "L</guestfs_case_sensitive_path>."
1295 msgstr ""
1296
1297 #. type: =head3
1298 #: ../src/guestfs.pod:654
1299 msgid "ACCESSING THE WINDOWS REGISTRY"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../src/guestfs.pod:656
1304 msgid ""
1305 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1306 "files, through the library C<hivex> which is part of the libguestfs project "
1307 "although ships as a separate tarball.  You have to locate and download the "
1308 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1309 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
1310 "L<virt-win-reg(1)> for more help on this issue."
1311 msgstr ""
1312
1313 #. type: =head3
1314 #: ../src/guestfs.pod:664
1315 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1316 msgstr ""
1317
1318 #. type: textblock
1319 #: ../src/guestfs.pod:666
1320 msgid ""
1321 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1322 "provide something which looks like a Linux symlink.  The way it tries to do "
1323 "the rewriting is described here:"
1324 msgstr ""
1325
1326 #. type: textblock
1327 #: ../src/guestfs.pod:670
1328 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
1329 msgstr ""
1330
1331 #. type: textblock
1332 #: ../src/guestfs.pod:672
1333 msgid ""
1334 "The essential problem is that ntfs-3g simply does not have enough "
1335 "information to do a correct job.  NTFS links can contain drive letters and "
1336 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1337 "It is almost certainly the case that libguestfs callers should ignore what "
1338 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../src/guestfs.pod:679
1343 msgid ""
1344 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
1345 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1346 "attribute, and read the raw reparse data from that (you can find the format "
1347 "documented in various places around the web)."
1348 msgstr ""
1349
1350 #. type: =head3
1351 #: ../src/guestfs.pod:684
1352 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1353 msgstr ""
1354
1355 #. type: textblock
1356 #: ../src/guestfs.pod:686
1357 msgid ""
1358 "There are other useful extended attributes that can be read from ntfs-3g "
1359 "filesystems (using L</guestfs_getxattr>).  See:"
1360 msgstr ""
1361
1362 #. type: textblock
1363 #: ../src/guestfs.pod:689
1364 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1365 msgstr ""
1366
1367 #. type: =head2
1368 #: ../src/guestfs.pod:691
1369 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1370 msgstr ""
1371
1372 #. type: textblock
1373 #: ../src/guestfs.pod:693
1374 msgid ""
1375 "Although we don't want to discourage you from using the C API, we will "
1376 "mention here that the same API is also available in other languages."
1377 msgstr ""
1378
1379 #. type: textblock
1380 #: ../src/guestfs.pod:696
1381 msgid ""
1382 "The API is broadly identical in all supported languages.  This means that "
1383 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1384 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1385 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1386 "each language."
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../src/guestfs.pod:702
1391 msgid ""
1392 "Error messages are automatically transformed into exceptions if the language "
1393 "supports it."
1394 msgstr ""
1395
1396 #. type: textblock
1397 #: ../src/guestfs.pod:705
1398 msgid ""
1399 "We don't try to \"object orientify\" parts of the API in OO languages, "
1400 "although contributors are welcome to write higher level APIs above what we "
1401 "provide in their favourite languages if they wish."
1402 msgstr ""
1403
1404 #. type: =item
1405 #: ../src/guestfs.pod:711
1406 msgid "B<C++>"
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../src/guestfs.pod:713
1411 msgid ""
1412 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1413 "identical to the C API.  C++ classes and exceptions are not used."
1414 msgstr ""
1415
1416 #. type: =item
1417 #: ../src/guestfs.pod:717
1418 msgid "B<C#>"
1419 msgstr ""
1420
1421 #. type: textblock
1422 #: ../src/guestfs.pod:719
1423 msgid ""
1424 "The C# bindings are highly experimental.  Please read the warnings at the "
1425 "top of C<csharp/Libguestfs.cs>."
1426 msgstr ""
1427
1428 #. type: =item
1429 #: ../src/guestfs.pod:722
1430 msgid "B<Haskell>"
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../src/guestfs.pod:724
1435 msgid ""
1436 "This is the only language binding that is working but incomplete.  Only "
1437 "calls which return simple integers have been bound in Haskell, and we are "
1438 "looking for help to complete this binding."
1439 msgstr ""
1440
1441 #. type: =item
1442 #: ../src/guestfs.pod:728
1443 msgid "B<Java>"
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../src/guestfs.pod:730
1448 msgid ""
1449 "Full documentation is contained in the Javadoc which is distributed with "
1450 "libguestfs."
1451 msgstr ""
1452
1453 #. type: =item
1454 #: ../src/guestfs.pod:733
1455 msgid "B<OCaml>"
1456 msgstr ""
1457
1458 #. type: textblock
1459 #: ../src/guestfs.pod:735
1460 msgid "See L<guestfs-ocaml(3)>."
1461 msgstr ""
1462
1463 #. type: =item
1464 #: ../src/guestfs.pod:737
1465 msgid "B<Perl>"
1466 msgstr ""
1467
1468 #. type: textblock
1469 #: ../src/guestfs.pod:739
1470 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1471 msgstr ""
1472
1473 #. type: =item
1474 #: ../src/guestfs.pod:741
1475 msgid "B<PHP>"
1476 msgstr ""
1477
1478 #. type: textblock
1479 #: ../src/guestfs.pod:743
1480 msgid ""
1481 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1482 "the php-libguestfs package for your distribution."
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../src/guestfs.pod:746
1487 msgid "The PHP binding only works correctly on 64 bit machines."
1488 msgstr ""
1489
1490 #. type: =item
1491 #: ../src/guestfs.pod:748
1492 msgid "B<Python>"
1493 msgstr ""
1494
1495 #. type: textblock
1496 #: ../src/guestfs.pod:750
1497 msgid "See L<guestfs-python(3)>."
1498 msgstr ""
1499
1500 #. type: =item
1501 #: ../src/guestfs.pod:752
1502 msgid "B<Ruby>"
1503 msgstr ""
1504
1505 #. type: textblock
1506 #: ../src/guestfs.pod:754
1507 msgid "See L<guestfs-ruby(3)>."
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../src/guestfs.pod:756
1512 msgid "B<shell scripts>"
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../src/guestfs.pod:758
1517 msgid "See L<guestfish(1)>."
1518 msgstr ""
1519
1520 #. type: =head2
1521 #: ../src/guestfs.pod:762
1522 msgid "LIBGUESTFS GOTCHAS"
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../src/guestfs.pod:764
1527 msgid ""
1528 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1529 "system [...] that works in the way it is documented but is counterintuitive "
1530 "and almost invites mistakes.\""
1531 msgstr ""
1532
1533 #. type: textblock
1534 #: ../src/guestfs.pod:768
1535 msgid ""
1536 "Since we developed libguestfs and the associated tools, there are several "
1537 "things we would have designed differently, but are now stuck with for "
1538 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1539 "release, you can expect these to change.  Beware of them."
1540 msgstr ""
1541
1542 #. type: =item
1543 #: ../src/guestfs.pod:776
1544 msgid "Autosync / forgetting to sync."
1545 msgstr ""
1546
1547 #. type: textblock
1548 #: ../src/guestfs.pod:778
1549 msgid ""
1550 "I<Update:> Autosync is enabled by default for all API users starting from "
1551 "libguestfs 1.5.24.  This section only applies to older versions."
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../src/guestfs.pod:781
1556 msgid ""
1557 "When modifying a filesystem from C or another language, you B<must> unmount "
1558 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1559 "libguestfs handle.  You can also call:"
1560 msgstr ""
1561
1562 #. type: verbatim
1563 #: ../src/guestfs.pod:785
1564 #, no-wrap
1565 msgid ""
1566 " guestfs_set_autosync (g, 1);\n"
1567 "\n"
1568 msgstr ""
1569
1570 #. type: textblock
1571 #: ../src/guestfs.pod:787
1572 msgid ""
1573 "to have the unmount/sync done automatically for you when the handle 'g' is "
1574 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1575 "q.v.)"
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../src/guestfs.pod:791
1580 msgid ""
1581 "If you forget to do this, then it is entirely possible that your changes "
1582 "won't be written out, or will be partially written, or (very rarely) that "
1583 "you'll get disk corruption."
1584 msgstr ""
1585
1586 #. type: textblock
1587 #: ../src/guestfs.pod:795
1588 msgid ""
1589 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1590 "guestfish scripts that forget to sync will work just fine, which can make "
1591 "this very puzzling if you are trying to debug a problem."
1592 msgstr ""
1593
1594 #. type: =item
1595 #: ../src/guestfs.pod:799
1596 msgid "Mount option C<-o sync> should not be the default."
1597 msgstr ""
1598
1599 #. type: textblock
1600 #: ../src/guestfs.pod:801
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:805
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:808
1616 msgid "Read-only should be the default."
1617 msgstr ""
1618
1619 #. type: textblock
1620 #: ../src/guestfs.pod:810
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:813
1628 msgid "This would reduce the potential to corrupt live VM images."
1629 msgstr ""
1630
1631 #. type: textblock
1632 #: ../src/guestfs.pod:815
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 "
1636 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
1637 msgstr ""
1638
1639 #. type: =item
1640 #: ../src/guestfs.pod:819
1641 msgid "guestfish command line is hard to use."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../src/guestfs.pod:821
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:828
1656 msgid "guestfish megabyte modifiers don't work right on all commands"
1657 msgstr ""
1658
1659 #. type: textblock
1660 #: ../src/guestfs.pod:830
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:837
1671 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1672 msgstr ""
1673
1674 #. type: verbatim
1675 #: ../src/guestfs.pod:839
1676 #, no-wrap
1677 msgid ""
1678 " lvcreate LV VG 100M\n"
1679 "\n"
1680 msgstr ""
1681
1682 #. type: textblock
1683 #: ../src/guestfs.pod:841
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:846
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:849
1700 msgid "Ambiguity between devices and paths"
1701 msgstr ""
1702
1703 #. type: textblock
1704 #: ../src/guestfs.pod:851
1705 msgid ""
1706 "There is a subtle ambiguity in the API between a device name "
1707 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
1708 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../src/guestfs.pod:856
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:862
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:868
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:870
1740 msgid "which would allow you to pass arguments like:"
1741 msgstr ""
1742
1743 #. type: verbatim
1744 #: ../src/guestfs.pod:872
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:877
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:882
1763 msgid "KEYS AND PASSPHRASES"
1764 msgstr ""
1765
1766 #. type: textblock
1767 #: ../src/guestfs.pod:884
1768 msgid ""
1769 "Certain libguestfs calls take a parameter that contains sensitive key "
1770 "material, passed in as a C string."
1771 msgstr ""
1772
1773 #. type: textblock
1774 #: ../src/guestfs.pod:887
1775 msgid ""
1776 "In the future we would hope to change the libguestfs implementation so that "
1777 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1778 "swap.  However this is I<not> done at the moment, because of the complexity "
1779 "of such an implementation."
1780 msgstr ""
1781
1782 #. type: textblock
1783 #: ../src/guestfs.pod:892
1784 msgid ""
1785 "Therefore you should be aware that any key parameter you pass to libguestfs "
1786 "might end up being written out to the swap partition.  If this is a concern, "
1787 "scrub the swap partition or don't use libguestfs on encrypted devices."
1788 msgstr ""
1789
1790 #. type: =head2
1791 #: ../src/guestfs.pod:897
1792 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../src/guestfs.pod:899
1797 msgid ""
1798 "All high-level libguestfs actions are synchronous.  If you want to use "
1799 "libguestfs asynchronously then you must create a thread."
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../src/guestfs.pod:902
1804 msgid ""
1805 "Only use the handle from a single thread.  Either use the handle exclusively "
1806 "from one thread, or provide your own mutex so that two threads cannot issue "
1807 "calls on the same handle at the same time."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../src/guestfs.pod:906
1812 msgid ""
1813 "See the graphical program guestfs-browser for one possible architecture for "
1814 "multithreaded programs using libvirt and libguestfs."
1815 msgstr ""
1816
1817 #. type: =head2
1818 #: ../src/guestfs.pod:909
1819 msgid "PATH"
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../src/guestfs.pod:911
1824 msgid ""
1825 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1826 "internal path."
1827 msgstr ""
1828
1829 #. type: textblock
1830 #: ../src/guestfs.pod:914
1831 msgid ""
1832 "By default it looks for these in the directory C<$libdir/guestfs> "
1833 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1834 msgstr ""
1835
1836 #. type: textblock
1837 #: ../src/guestfs.pod:917
1838 msgid ""
1839 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1840 "to change the directories that libguestfs will search in.  The value is a "
1841 "colon-separated list of paths.  The current directory is I<not> searched "
1842 "unless the path contains an empty element or C<.>.  For example "
1843 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1844 "then C</usr/lib/guestfs>."
1845 msgstr ""
1846
1847 #. type: =head2
1848 #: ../src/guestfs.pod:924
1849 msgid "QEMU WRAPPERS"
1850 msgstr ""
1851
1852 #. type: textblock
1853 #: ../src/guestfs.pod:926
1854 msgid ""
1855 "If you want to compile your own qemu, run qemu from a non-standard location, "
1856 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1857 "around qemu."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../src/guestfs.pod:930
1862 msgid ""
1863 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1864 "last command in the shell script (so that qemu replaces the shell and "
1865 "becomes the direct child of the libguestfs-using program).  If you don't do "
1866 "this, then the qemu process won't be cleaned up correctly."
1867 msgstr ""
1868
1869 #. type: textblock
1870 #: ../src/guestfs.pod:935
1871 msgid ""
1872 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1873 "source:"
1874 msgstr ""
1875
1876 #. type: verbatim
1877 #: ../src/guestfs.pod:938
1878 #, no-wrap
1879 msgid ""
1880 " #!/bin/sh -\n"
1881 " qemudir=/home/rjones/d/qemu\n"
1882 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1883 "\"$@\"\n"
1884 "\n"
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../src/guestfs.pod:942
1889 msgid ""
1890 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1891 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1892 "example:"
1893 msgstr ""
1894
1895 #. type: verbatim
1896 #: ../src/guestfs.pod:946
1897 #, no-wrap
1898 msgid ""
1899 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1900 "\n"
1901 msgstr ""
1902
1903 #. type: textblock
1904 #: ../src/guestfs.pod:948
1905 msgid ""
1906 "Note that libguestfs also calls qemu with the -help and -version options in "
1907 "order to determine features."
1908 msgstr ""
1909
1910 #. type: =head2
1911 #: ../src/guestfs.pod:951
1912 msgid "ATTACHING TO RUNNING DAEMONS"
1913 msgstr ""
1914
1915 #. type: textblock
1916 #: ../src/guestfs.pod:953
1917 msgid ""
1918 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
1919 "babies.  Use with caution."
1920 msgstr ""
1921
1922 #. type: textblock
1923 #: ../src/guestfs.pod:956
1924 msgid ""
1925 "I<Note (2):> This section explains how to attach to a running daemon from a "
1926 "low level perspective.  For most users, simply using virt tools such as "
1927 "L<guestfish(1)> with the I<--live> option will \"just work\"."
1928 msgstr ""
1929
1930 #. type: =head3
1931 #: ../src/guestfs.pod:960
1932 msgid "Using guestfs_set_attach_method"
1933 msgstr ""
1934
1935 #. type: textblock
1936 #: ../src/guestfs.pod:962
1937 msgid ""
1938 "By calling L</guestfs_set_attach_method> you can change how the library "
1939 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
1940 "L</ARCHITECTURE> for some background)."
1941 msgstr ""
1942
1943 #. type: textblock
1944 #: ../src/guestfs.pod:966
1945 msgid ""
1946 "The normal attach method is C<appliance>, where a small appliance is created "
1947 "containing the daemon, and then the library connects to this."
1948 msgstr ""
1949
1950 #. type: textblock
1951 #: ../src/guestfs.pod:969
1952 msgid ""
1953 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
1954 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
1955 "daemon over the Unix domain socket."
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../src/guestfs.pod:973
1960 msgid ""
1961 "The normal use for this is to connect to a running virtual machine that "
1962 "contains a C<guestfsd> daemon, and send commands so you can read and write "
1963 "files inside the live virtual machine."
1964 msgstr ""
1965
1966 #. type: =head3
1967 #: ../src/guestfs.pod:977
1968 msgid "Using guestfs_add_domain with live flag"
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../src/guestfs.pod:979
1973 msgid ""
1974 "L</guestfs_add_domain> provides some help for getting the correct attach "
1975 "method.  If you pass the C<live> option to this function, then (if the "
1976 "virtual machine is running) it will examine the libvirt XML looking for a "
1977 "virtio-serial channel to connect to:"
1978 msgstr ""
1979
1980 #. type: verbatim
1981 #: ../src/guestfs.pod:985
1982 #, no-wrap
1983 msgid ""
1984 " <domain>\n"
1985 "   ...\n"
1986 "   <devices>\n"
1987 "     ...\n"
1988 "     <channel type='unix'>\n"
1989 "       <source mode='bind' path='/path/to/socket'/>\n"
1990 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
1991 "     </channel>\n"
1992 "     ...\n"
1993 "   </devices>\n"
1994 " </domain>\n"
1995 "\n"
1996 msgstr ""
1997
1998 #. type: textblock
1999 #: ../src/guestfs.pod:997
2000 msgid ""
2001 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2002 "method to C<unix:/path/to/socket>."
2003 msgstr ""
2004
2005 #. type: textblock
2006 #: ../src/guestfs.pod:1000
2007 msgid ""
2008 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2009 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2010 "to attach to and modify live virtual machines."
2011 msgstr ""
2012
2013 #. type: textblock
2014 #: ../src/guestfs.pod:1004
2015 msgid ""
2016 "The virtual machine needs to have been set up beforehand so that it has the "
2017 "virtio-serial channel and so that guestfsd is running inside it."
2018 msgstr ""
2019
2020 #. type: =head2
2021 #: ../src/guestfs.pod:1008
2022 msgid "ABI GUARANTEE"
2023 msgstr ""
2024
2025 #. type: textblock
2026 #: ../src/guestfs.pod:1010
2027 msgid ""
2028 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2029 "actions as outlined in this section.  Although we will deprecate some "
2030 "actions, for example if they get replaced by newer calls, we will keep the "
2031 "old actions forever.  This allows you the developer to program in confidence "
2032 "against the libguestfs API."
2033 msgstr ""
2034
2035 #. type: =head2
2036 #: ../src/guestfs.pod:1016
2037 msgid "BLOCK DEVICE NAMING"
2038 msgstr ""
2039
2040 #. type: textblock
2041 #: ../src/guestfs.pod:1018
2042 msgid ""
2043 "In the kernel there is now quite a profusion of schemata for naming block "
2044 "devices (in this context, by I<block device> I mean a physical or virtual "
2045 "hard drive).  The original Linux IDE driver used names starting with "
2046 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2047 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2048 "replacement for the old IDE driver (particularly for SATA devices) those "
2049 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2050 "machines with paravirtualized drivers.  This has created several different "
2051 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2052 "Xen PV disks."
2053 msgstr ""
2054
2055 #. type: textblock
2056 #: ../src/guestfs.pod:1030
2057 msgid ""
2058 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2059 "Linux kernel to access block devices.  We can run a variety of appliances "
2060 "based on a variety of Linux kernels."
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../src/guestfs.pod:1034
2065 msgid ""
2066 "This causes a problem for libguestfs because many API calls use device or "
2067 "partition names.  Working scripts and the recipe (example) scripts that we "
2068 "make available over the internet could fail if the naming scheme changes."
2069 msgstr ""
2070
2071 #. type: textblock
2072 #: ../src/guestfs.pod:1039
2073 msgid ""
2074 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2075 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2076 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2077 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../src/guestfs.pod:1045
2082 msgid ""
2083 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2084 "L</guestfs_list_partitions> and similar calls return the true names of the "
2085 "devices and partitions as known to the appliance."
2086 msgstr ""
2087
2088 #. type: =head3
2089 #: ../src/guestfs.pod:1050
2090 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2091 msgstr ""
2092
2093 #. type: textblock
2094 #: ../src/guestfs.pod:1052
2095 msgid ""
2096 "Usually this translation is transparent.  However in some (very rare)  cases "
2097 "you may need to know the exact algorithm.  Such cases include where you use "
2098 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2099 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2100 "devices."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../src/guestfs.pod:1058
2105 msgid ""
2106 "The algorithm is applied only to I<parameters> which are known to be either "
2107 "device or partition names.  Return values from functions such as "
2108 "L</guestfs_list_devices> are never changed."
2109 msgstr ""
2110
2111 #. type: textblock
2112 #: ../src/guestfs.pod:1066
2113 msgid "Is the string a parameter which is a device or partition name?"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../src/guestfs.pod:1070
2118 msgid "Does the string begin with C</dev/sd>?"
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../src/guestfs.pod:1074
2123 msgid ""
2124 "Does the named device exist? If so, we use that device.  However if I<not> "
2125 "then we continue with this algorithm."
2126 msgstr ""
2127
2128 #. type: textblock
2129 #: ../src/guestfs.pod:1079
2130 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../src/guestfs.pod:1081
2135 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2136 msgstr ""
2137
2138 #. type: textblock
2139 #: ../src/guestfs.pod:1083
2140 msgid "If that named device exists, use it.  If not, continue."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../src/guestfs.pod:1087
2145 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2146 msgstr ""
2147
2148 #. type: textblock
2149 #: ../src/guestfs.pod:1089
2150 msgid "If that named device exists, use it.  If not, return an error."
2151 msgstr ""
2152
2153 #. type: =head3
2154 #: ../src/guestfs.pod:1093
2155 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2156 msgstr ""
2157
2158 #. type: textblock
2159 #: ../src/guestfs.pod:1095
2160 msgid ""
2161 "Although the standard naming scheme and automatic translation is useful for "
2162 "simple programs and guestfish scripts, for larger programs it is best not to "
2163 "rely on this mechanism."
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../src/guestfs.pod:1099
2168 msgid ""
2169 "Where possible for maximum future portability programs using libguestfs "
2170 "should use these future-proof techniques:"
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../src/guestfs.pod:1106
2175 msgid ""
2176 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2177 "device names, and then use those names directly."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../src/guestfs.pod:1109
2182 msgid "Since those device names exist by definition, they will never be translated."
2183 msgstr ""
2184
2185 #. type: textblock
2186 #: ../src/guestfs.pod:1114
2187 msgid ""
2188 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2189 "filesystem labels."
2190 msgstr ""
2191
2192 #. type: =head1
2193 #: ../src/guestfs.pod:1119
2194 msgid "SECURITY"
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../src/guestfs.pod:1121
2199 msgid ""
2200 "This section discusses security implications of using libguestfs, "
2201 "particularly with untrusted or malicious guests or disk images."
2202 msgstr ""
2203
2204 #. type: =head2
2205 #: ../src/guestfs.pod:1124
2206 msgid "GENERAL SECURITY CONSIDERATIONS"
2207 msgstr ""
2208
2209 #. type: textblock
2210 #: ../src/guestfs.pod:1126
2211 msgid ""
2212 "Be careful with any files or data that you download from a guest (by "
2213 "\"download\" we mean not just the L</guestfs_download> command but any "
2214 "command that reads files, filenames, directories or anything else from a "
2215 "disk image).  An attacker could manipulate the data to fool your program "
2216 "into doing the wrong thing.  Consider cases such as:"
2217 msgstr ""
2218
2219 #. type: textblock
2220 #: ../src/guestfs.pod:1136
2221 msgid "the data (file etc) not being present"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../src/guestfs.pod:1140
2226 msgid "being present but empty"
2227 msgstr ""
2228
2229 #. type: textblock
2230 #: ../src/guestfs.pod:1144
2231 msgid "being much larger than normal"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../src/guestfs.pod:1148
2236 msgid "containing arbitrary 8 bit data"
2237 msgstr ""
2238
2239 #. type: textblock
2240 #: ../src/guestfs.pod:1152
2241 msgid "being in an unexpected character encoding"
2242 msgstr ""
2243
2244 #. type: textblock
2245 #: ../src/guestfs.pod:1156
2246 msgid "containing homoglyphs."
2247 msgstr ""
2248
2249 #. type: =head2
2250 #: ../src/guestfs.pod:1160
2251 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2252 msgstr ""
2253
2254 #. type: textblock
2255 #: ../src/guestfs.pod:1162
2256 msgid ""
2257 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2258 "(VFS) module can sometimes be escalated into exploits by deliberately "
2259 "creating a malicious, malformed filesystem.  These exploits are very severe "
2260 "for two reasons.  Firstly there are very many filesystem drivers in the "
2261 "kernel, and many of them are infrequently used and not much developer "
2262 "attention has been paid to the code.  Linux userspace helps potential "
2263 "crackers by detecting the filesystem type and automatically choosing the "
2264 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2265 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2266 "exploit (worse in some ways), giving immediate and total access to the "
2267 "system right down to the hardware level."
2268 msgstr ""
2269
2270 #. type: textblock
2271 #: ../src/guestfs.pod:1175
2272 msgid ""
2273 "That explains why you should never mount a filesystem from an untrusted "
2274 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2275 "inside a qemu virtual machine, usually running as a non-root user.  The "
2276 "attacker would need to write a filesystem which first exploited the kernel, "
2277 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2278 "the libguestfs protocol, and finally to be as serious as the host kernel "
2279 "exploit it would need to escalate its privileges to root.  This multi-step "
2280 "escalation, performed by a static piece of data, is thought to be extremely "
2281 "hard to do, although we never say 'never' about security issues."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../src/guestfs.pod:1186
2286 msgid ""
2287 "In any case callers can reduce the attack surface by forcing the filesystem "
2288 "type when mounting (use L</guestfs_mount_vfs>)."
2289 msgstr ""
2290
2291 #. type: =head2
2292 #: ../src/guestfs.pod:1189
2293 msgid "PROTOCOL SECURITY"
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../src/guestfs.pod:1191
2298 msgid ""
2299 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2300 "defined upper message size.  However a program that uses libguestfs must "
2301 "also take care - for example you can write a program that downloads a binary "
2302 "from a disk image and executes it locally, and no amount of protocol "
2303 "security will save you from the consequences."
2304 msgstr ""
2305
2306 #. type: =head2
2307 #: ../src/guestfs.pod:1197
2308 msgid "INSPECTION SECURITY"
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../src/guestfs.pod:1199
2313 msgid ""
2314 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2315 "directly from the guest, and these could contain any 8 bit data.  Callers "
2316 "should be careful to escape these before printing them to a structured file "
2317 "(for example, use HTML escaping if creating a web page)."
2318 msgstr ""
2319
2320 #. type: textblock
2321 #: ../src/guestfs.pod:1205
2322 msgid ""
2323 "Guest configuration may be altered in unusual ways by the administrator of "
2324 "the virtual machine, and may not reflect reality (particularly for untrusted "
2325 "or actively malicious guests).  For example we parse the hostname from "
2326 "configuration files like C</etc/sysconfig/network> that we find in the "
2327 "guest, but the guest administrator can easily manipulate these files to "
2328 "provide the wrong hostname."
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../src/guestfs.pod:1213
2333 msgid ""
2334 "The inspection API parses guest configuration using two external libraries: "
2335 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2336 "designed to be robust in the face of malicious data, although denial of "
2337 "service attacks are still possible, for example with oversized configuration "
2338 "files."
2339 msgstr ""
2340
2341 #. type: =head2
2342 #: ../src/guestfs.pod:1219
2343 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../src/guestfs.pod:1221
2348 msgid ""
2349 "Be very cautious about running commands from the guest.  By running a "
2350 "command in the guest, you are giving CPU time to a binary that you do not "
2351 "control, under the same user account as the library, albeit wrapped in qemu "
2352 "virtualization.  More information and alternatives can be found in the "
2353 "section L</RUNNING COMMANDS>."
2354 msgstr ""
2355
2356 #. type: =head2
2357 #: ../src/guestfs.pod:1227
2358 msgid "CVE-2010-3851"
2359 msgstr ""
2360
2361 #. type: textblock
2362 #: ../src/guestfs.pod:1229
2363 msgid "https://bugzilla.redhat.com/642934"
2364 msgstr ""
2365
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1231
2368 msgid ""
2369 "This security bug concerns the automatic disk format detection that qemu "
2370 "does on disk images."
2371 msgstr ""
2372
2373 #. type: textblock
2374 #: ../src/guestfs.pod:1234
2375 msgid ""
2376 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2377 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2378 "for one of the known headers, and if none is found then assuming the disk "
2379 "image must be raw."
2380 msgstr ""
2381
2382 #. type: textblock
2383 #: ../src/guestfs.pod:1239
2384 msgid ""
2385 "This allows a guest which has been given a raw disk image to write some "
2386 "other header.  At next boot (or when the disk image is accessed by "
2387 "libguestfs) qemu would do autodetection and think the disk image format was, "
2388 "say, qcow2 based on the header written by the guest."
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../src/guestfs.pod:1244
2393 msgid ""
2394 "This in itself would not be a problem, but qcow2 offers many features, one "
2395 "of which is to allow a disk image to refer to another image (called the "
2396 "\"backing disk\").  It does this by placing the path to the backing disk "
2397 "into the qcow2 header.  This path is not validated and could point to any "
2398 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2399 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2400 "control of the attacker."
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../src/guestfs.pod:1252
2405 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2406 msgstr ""
2407
2408 #. type: textblock
2409 #: ../src/guestfs.pod:1259
2410 msgid "You have enabled the network or have opened the disk in write mode."
2411 msgstr ""
2412
2413 #. type: textblock
2414 #: ../src/guestfs.pod:1263
2415 msgid ""
2416 "You are also running untrusted code from the guest (see L</RUNNING "
2417 "COMMANDS>)."
2418 msgstr ""
2419
2420 #. type: textblock
2421 #: ../src/guestfs.pod:1268
2422 msgid ""
2423 "The way to avoid this is to specify the expected disk format when adding "
2424 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2425 "should always do this if the disk is raw format, and it's a good idea for "
2426 "other cases too."
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../src/guestfs.pod:1273
2431 msgid ""
2432 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2433 "format is fetched from libvirt and passed through."
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1276
2438 msgid ""
2439 "For libguestfs tools, use the I<--format> command line parameter as "
2440 "appropriate."
2441 msgstr ""
2442
2443 #. type: =head1
2444 #: ../src/guestfs.pod:1279
2445 msgid "CONNECTION MANAGEMENT"
2446 msgstr ""
2447
2448 #. type: =head2
2449 #: ../src/guestfs.pod:1281
2450 msgid "guestfs_h *"
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../src/guestfs.pod:1283
2455 msgid ""
2456 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2457 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2458 "handle and release all resources used."
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../src/guestfs.pod:1287
2463 msgid ""
2464 "For information on using multiple handles and threads, see the section "
2465 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2466 msgstr ""
2467
2468 #. type: =head2
2469 #: ../src/guestfs.pod:1290
2470 msgid "guestfs_create"
2471 msgstr ""
2472
2473 #. type: verbatim
2474 #: ../src/guestfs.pod:1292
2475 #, no-wrap
2476 msgid ""
2477 " guestfs_h *guestfs_create (void);\n"
2478 "\n"
2479 msgstr ""
2480
2481 #. type: textblock
2482 #: ../src/guestfs.pod:1294
2483 msgid "Create a connection handle."
2484 msgstr ""
2485
2486 #. type: textblock
2487 #: ../src/guestfs.pod:1296
2488 msgid ""
2489 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2490 "NULL."
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../src/guestfs.pod:1299
2495 msgid ""
2496 "You have to \"configure\" the handle after creating it.  This includes "
2497 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2498 "handle at least once."
2499 msgstr ""
2500
2501 #. type: textblock
2502 #: ../src/guestfs.pod:1303
2503 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../src/guestfs.pod:1305
2508 msgid ""
2509 "You may also want to configure error handling for the handle.  See the "
2510 "L</ERROR HANDLING> section below."
2511 msgstr ""
2512
2513 #. type: =head2
2514 #: ../src/guestfs.pod:1308
2515 msgid "guestfs_close"
2516 msgstr ""
2517
2518 #. type: verbatim
2519 #: ../src/guestfs.pod:1310
2520 #, no-wrap
2521 msgid ""
2522 " void guestfs_close (guestfs_h *g);\n"
2523 "\n"
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../src/guestfs.pod:1312
2528 msgid "This closes the connection handle and frees up all resources used."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../src/guestfs.pod:1314
2533 msgid ""
2534 "If autosync was set on the handle and the handle was launched, then this "
2535 "implicitly calls various functions to unmount filesystems and sync the "
2536 "disk.  See L</guestfs_set_autosync> for more details."
2537 msgstr ""
2538
2539 #. type: textblock
2540 #: ../src/guestfs.pod:1318
2541 msgid "If a close callback was set on the handle, then it is called."
2542 msgstr ""
2543
2544 #. type: =head1
2545 #: ../src/guestfs.pod:1320
2546 msgid "ERROR HANDLING"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../src/guestfs.pod:1322
2551 msgid ""
2552 "API functions can return errors.  For example, almost all functions that "
2553 "return C<int> will return C<-1> to indicate an error."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../src/guestfs.pod:1325
2558 msgid ""
2559 "Additional information is available for errors: an error message string and "
2560 "optionally an error number (errno) if the thing that failed was a system "
2561 "call."
2562 msgstr ""
2563
2564 #. type: textblock
2565 #: ../src/guestfs.pod:1329
2566 msgid ""
2567 "You can get at the additional information about the last error on the handle "
2568 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2569 "up an error handler with L</guestfs_set_error_handler>."
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../src/guestfs.pod:1334
2574 msgid ""
2575 "When the handle is created, a default error handler is installed which "
2576 "prints the error message string to C<stderr>.  For small short-running "
2577 "command line programs it is sufficient to do:"
2578 msgstr ""
2579
2580 #. type: verbatim
2581 #: ../src/guestfs.pod:1338
2582 #, no-wrap
2583 msgid ""
2584 " if (guestfs_launch (g) == -1)\n"
2585 "   exit (EXIT_FAILURE);\n"
2586 "\n"
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../src/guestfs.pod:1341
2591 msgid ""
2592 "since the default error handler will ensure that an error message has been "
2593 "printed to C<stderr> before the program exits."
2594 msgstr ""
2595
2596 #. type: textblock
2597 #: ../src/guestfs.pod:1344
2598 msgid ""
2599 "For other programs the caller will almost certainly want to install an "
2600 "alternate error handler or do error handling in-line like this:"
2601 msgstr ""
2602
2603 #. type: verbatim
2604 #: ../src/guestfs.pod:1347
2605 #, no-wrap
2606 msgid ""
2607 " g = guestfs_create ();\n"
2608 " \n"
2609 msgstr ""
2610
2611 #. type: verbatim
2612 #: ../src/guestfs.pod:1349
2613 #, no-wrap
2614 msgid ""
2615 " /* This disables the default behaviour of printing errors\n"
2616 "    on stderr. */\n"
2617 " guestfs_set_error_handler (g, NULL, NULL);\n"
2618 " \n"
2619 msgstr ""
2620
2621 #. type: verbatim
2622 #: ../src/guestfs.pod:1353
2623 #, no-wrap
2624 msgid ""
2625 " if (guestfs_launch (g) == -1) {\n"
2626 "   /* Examine the error message and print it etc. */\n"
2627 "   char *msg = guestfs_last_error (g);\n"
2628 "   int errnum = guestfs_last_errno (g);\n"
2629 "   fprintf (stderr, \"%s\\n\", msg);\n"
2630 "   /* ... */\n"
2631 "  }\n"
2632 "\n"
2633 msgstr ""
2634
2635 #. type: textblock
2636 #: ../src/guestfs.pod:1361
2637 msgid ""
2638 "Out of memory errors are handled differently.  The default action is to call "
2639 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2640 "L</guestfs_set_out_of_memory_handler>."
2641 msgstr ""
2642
2643 #. type: textblock
2644 #: ../src/guestfs.pod:1365
2645 msgid ""
2646 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2647 "because there is no handle if this happens there is no way to get additional "
2648 "error information.  However L</guestfs_create> is supposed to be a "
2649 "lightweight operation which can only fail because of insufficient memory (it "
2650 "returns NULL in this case)."
2651 msgstr ""
2652
2653 #. type: =head2
2654 #: ../src/guestfs.pod:1371
2655 msgid "guestfs_last_error"
2656 msgstr ""
2657
2658 #. type: verbatim
2659 #: ../src/guestfs.pod:1373
2660 #, no-wrap
2661 msgid ""
2662 " const char *guestfs_last_error (guestfs_h *g);\n"
2663 "\n"
2664 msgstr ""
2665
2666 #. type: textblock
2667 #: ../src/guestfs.pod:1375
2668 msgid ""
2669 "This returns the last error message that happened on C<g>.  If there has not "
2670 "been an error since the handle was created, then this returns C<NULL>."
2671 msgstr ""
2672
2673 #. type: textblock
2674 #: ../src/guestfs.pod:1379
2675 msgid ""
2676 "The lifetime of the returned string is until the next error occurs, or "
2677 "L</guestfs_close> is called."
2678 msgstr ""
2679
2680 #. type: =head2
2681 #: ../src/guestfs.pod:1382
2682 msgid "guestfs_last_errno"
2683 msgstr ""
2684
2685 #. type: verbatim
2686 #: ../src/guestfs.pod:1384
2687 #, no-wrap
2688 msgid ""
2689 " int guestfs_last_errno (guestfs_h *g);\n"
2690 "\n"
2691 msgstr ""
2692
2693 #. type: textblock
2694 #: ../src/guestfs.pod:1386
2695 msgid "This returns the last error number (errno) that happened on C<g>."
2696 msgstr ""
2697
2698 #. type: textblock
2699 #: ../src/guestfs.pod:1388
2700 msgid "If successful, an errno integer not equal to zero is returned."
2701 msgstr ""
2702
2703 #. type: textblock
2704 #: ../src/guestfs.pod:1390
2705 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2706 msgstr ""
2707
2708 #. type: textblock
2709 #: ../src/guestfs.pod:1397
2710 msgid "There has not been any error on the handle."
2711 msgstr ""
2712
2713 #. type: textblock
2714 #: ../src/guestfs.pod:1401
2715 msgid ""
2716 "There has been an error but the errno was meaningless.  This corresponds to "
2717 "the case where the error did not come from a failed system call, but for "
2718 "some other reason."
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../src/guestfs.pod:1407
2723 msgid ""
2724 "There was an error from a failed system call, but for some reason the errno "
2725 "was not captured and returned.  This usually indicates a bug in libguestfs."
2726 msgstr ""
2727
2728 #. type: textblock
2729 #: ../src/guestfs.pod:1413
2730 msgid ""
2731 "Libguestfs tries to convert the errno from inside the applicance into a "
2732 "corresponding errno for the caller (not entirely trivial: the appliance "
2733 "might be running a completely different operating system from the library "
2734 "and error numbers are not standardized across Un*xen).  If this could not be "
2735 "done, then the error is translated to C<EINVAL>.  In practice this should "
2736 "only happen in very rare circumstances."
2737 msgstr ""
2738
2739 #. type: =head2
2740 #: ../src/guestfs.pod:1421
2741 msgid "guestfs_set_error_handler"
2742 msgstr ""
2743
2744 #. type: verbatim
2745 #: ../src/guestfs.pod:1423
2746 #, no-wrap
2747 msgid ""
2748 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2749 "                                           void *opaque,\n"
2750 "                                           const char *msg);\n"
2751 " void guestfs_set_error_handler (guestfs_h *g,\n"
2752 "                                 guestfs_error_handler_cb cb,\n"
2753 "                                 void *opaque);\n"
2754 "\n"
2755 msgstr ""
2756
2757 #. type: textblock
2758 #: ../src/guestfs.pod:1430
2759 msgid ""
2760 "The callback C<cb> will be called if there is an error.  The parameters "
2761 "passed to the callback are an opaque data pointer and the error message "
2762 "string."
2763 msgstr ""
2764
2765 #. type: textblock
2766 #: ../src/guestfs.pod:1434
2767 msgid ""
2768 "C<errno> is not passed to the callback.  To get that the callback must call "
2769 "L</guestfs_last_errno>."
2770 msgstr ""
2771
2772 #. type: textblock
2773 #: ../src/guestfs.pod:1437
2774 msgid ""
2775 "Note that the message string C<msg> is freed as soon as the callback "
2776 "function returns, so if you want to stash it somewhere you must make your "
2777 "own copy."
2778 msgstr ""
2779
2780 #. type: textblock
2781 #: ../src/guestfs.pod:1441
2782 msgid "The default handler prints messages on C<stderr>."
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../src/guestfs.pod:1443
2787 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2788 msgstr ""
2789
2790 #. type: =head2
2791 #: ../src/guestfs.pod:1445
2792 msgid "guestfs_get_error_handler"
2793 msgstr ""
2794
2795 #. type: verbatim
2796 #: ../src/guestfs.pod:1447
2797 #, no-wrap
2798 msgid ""
2799 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2800 "                                                     void **opaque_rtn);\n"
2801 "\n"
2802 msgstr ""
2803
2804 #. type: textblock
2805 #: ../src/guestfs.pod:1450
2806 msgid "Returns the current error handler callback."
2807 msgstr ""
2808
2809 #. type: =head2
2810 #: ../src/guestfs.pod:1452
2811 msgid "guestfs_set_out_of_memory_handler"
2812 msgstr ""
2813
2814 #. type: verbatim
2815 #: ../src/guestfs.pod:1454
2816 #, no-wrap
2817 msgid ""
2818 " typedef void (*guestfs_abort_cb) (void);\n"
2819 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2820 "                                        guestfs_abort_cb);\n"
2821 "\n"
2822 msgstr ""
2823
2824 #. type: textblock
2825 #: ../src/guestfs.pod:1458
2826 msgid ""
2827 "The callback C<cb> will be called if there is an out of memory situation.  "
2828 "I<Note this callback must not return>."
2829 msgstr ""
2830
2831 #. type: textblock
2832 #: ../src/guestfs.pod:1461
2833 msgid "The default is to call L<abort(3)>."
2834 msgstr ""
2835
2836 #. type: textblock
2837 #: ../src/guestfs.pod:1463
2838 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2839 msgstr ""
2840
2841 #. type: =head2
2842 #: ../src/guestfs.pod:1466
2843 msgid "guestfs_get_out_of_memory_handler"
2844 msgstr ""
2845
2846 #. type: verbatim
2847 #: ../src/guestfs.pod:1468
2848 #, no-wrap
2849 msgid ""
2850 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2851 "\n"
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../src/guestfs.pod:1470
2856 msgid "This returns the current out of memory handler."
2857 msgstr ""
2858
2859 #. type: =head1
2860 #: ../src/guestfs.pod:1472
2861 msgid "API CALLS"
2862 msgstr ""
2863
2864 #. type: textblock
2865 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1068
2866 msgid "@ACTIONS@"
2867 msgstr ""
2868
2869 #. type: =head1
2870 #: ../src/guestfs.pod:1476
2871 msgid "STRUCTURES"
2872 msgstr ""
2873
2874 #. type: textblock
2875 #: ../src/guestfs.pod:1478
2876 msgid "@STRUCTS@"
2877 msgstr ""
2878
2879 #. type: =head1
2880 #: ../src/guestfs.pod:1480
2881 msgid "AVAILABILITY"
2882 msgstr ""
2883
2884 #. type: =head2
2885 #: ../src/guestfs.pod:1482
2886 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../src/guestfs.pod:1484
2891 msgid ""
2892 "Using L</guestfs_available> you can test availability of the following "
2893 "groups of functions.  This test queries the appliance to see if the "
2894 "appliance you are currently using supports the functionality."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../src/guestfs.pod:1489
2899 msgid "@AVAILABILITY@"
2900 msgstr ""
2901
2902 #. type: =head2
2903 #: ../src/guestfs.pod:1491
2904 msgid "GUESTFISH supported COMMAND"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../src/guestfs.pod:1493
2909 msgid ""
2910 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2911 "prints out the available groups and whether they are supported by this build "
2912 "of libguestfs.  Note however that you have to do C<run> first."
2913 msgstr ""
2914
2915 #. type: =head2
2916 #: ../src/guestfs.pod:1498
2917 msgid "SINGLE CALLS AT COMPILE TIME"
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../src/guestfs.pod:1500
2922 msgid ""
2923 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2924 "function, such as:"
2925 msgstr ""
2926
2927 #. type: verbatim
2928 #: ../src/guestfs.pod:1503
2929 #, no-wrap
2930 msgid ""
2931 " #define LIBGUESTFS_HAVE_DD 1\n"
2932 "\n"
2933 msgstr ""
2934
2935 #. type: textblock
2936 #: ../src/guestfs.pod:1505
2937 msgid "if L</guestfs_dd> is available."
2938 msgstr ""
2939
2940 #. type: textblock
2941 #: ../src/guestfs.pod:1507
2942 msgid ""
2943 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2944 "function is available at compile time, we recommended using build tools such "
2945 "as autoconf or cmake.  For example in autotools you could use:"
2946 msgstr ""
2947
2948 #. type: verbatim
2949 #: ../src/guestfs.pod:1512
2950 #, no-wrap
2951 msgid ""
2952 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2953 " AC_CHECK_FUNCS([guestfs_dd])\n"
2954 "\n"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../src/guestfs.pod:1515
2959 msgid ""
2960 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2961 "in your program."
2962 msgstr ""
2963
2964 #. type: =head2
2965 #: ../src/guestfs.pod:1518
2966 msgid "SINGLE CALLS AT RUN TIME"
2967 msgstr ""
2968
2969 #. type: textblock
2970 #: ../src/guestfs.pod:1520
2971 msgid ""
2972 "Testing at compile time doesn't guarantee that a function really exists in "
2973 "the library.  The reason is that you might be dynamically linked against a "
2974 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
2975 "This situation unfortunately results in a segmentation fault, which is a "
2976 "shortcoming of the C dynamic linking system itself."
2977 msgstr ""
2978
2979 #. type: textblock
2980 #: ../src/guestfs.pod:1527
2981 msgid ""
2982 "You can use L<dlopen(3)> to test if a function is available at run time, as "
2983 "in this example program (note that you still need the compile time check as "
2984 "well):"
2985 msgstr ""
2986
2987 #. type: verbatim
2988 #: ../src/guestfs.pod:1531
2989 #, no-wrap
2990 msgid ""
2991 " #include <stdio.h>\n"
2992 " #include <stdlib.h>\n"
2993 " #include <unistd.h>\n"
2994 " #include <dlfcn.h>\n"
2995 " #include <guestfs.h>\n"
2996 " \n"
2997 msgstr ""
2998
2999 #. type: verbatim
3000 #: ../src/guestfs.pod:1537
3001 #, no-wrap
3002 msgid ""
3003 " main ()\n"
3004 " {\n"
3005 " #ifdef LIBGUESTFS_HAVE_DD\n"
3006 "   void *dl;\n"
3007 "   int has_function;\n"
3008 " \n"
3009 msgstr ""
3010
3011 #. type: verbatim
3012 #: ../src/guestfs.pod:1543
3013 #, no-wrap
3014 msgid ""
3015 "   /* Test if the function guestfs_dd is really available. */\n"
3016 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3017 "   if (!dl) {\n"
3018 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3019 "     exit (EXIT_FAILURE);\n"
3020 "   }\n"
3021 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3022 "   dlclose (dl);\n"
3023 " \n"
3024 msgstr ""
3025
3026 #. type: verbatim
3027 #: ../src/guestfs.pod:1552
3028 #, no-wrap
3029 msgid ""
3030 "   if (!has_function)\n"
3031 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3032 "   else {\n"
3033 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3034 "     /* Now it's safe to call\n"
3035 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3036 "     */\n"
3037 "   }\n"
3038 " #else\n"
3039 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3040 " #endif\n"
3041 "  }\n"
3042 "\n"
3043 msgstr ""
3044
3045 #. type: textblock
3046 #: ../src/guestfs.pod:1565
3047 msgid ""
3048 "You may think the above is an awful lot of hassle, and it is.  There are "
3049 "other ways outside of the C linking system to ensure that this kind of "
3050 "incompatibility never arises, such as using package versioning:"
3051 msgstr ""
3052
3053 #. type: verbatim
3054 #: ../src/guestfs.pod:1570
3055 #, no-wrap
3056 msgid ""
3057 " Requires: libguestfs >= 1.0.80\n"
3058 "\n"
3059 msgstr ""
3060
3061 #. type: =head1
3062 #: ../src/guestfs.pod:1572
3063 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../src/guestfs.pod:1574
3068 msgid ""
3069 "A recent feature of the API is the introduction of calls which take optional "
3070 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3071 "takes variable arguments (ie. C<...>), as in this example:"
3072 msgstr ""
3073
3074 #. type: verbatim
3075 #: ../src/guestfs.pod:1579
3076 #, no-wrap
3077 msgid ""
3078 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3079 "\n"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../src/guestfs.pod:1581
3084 msgid ""
3085 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3086 "call with no optional arguments specified:"
3087 msgstr ""
3088
3089 #. type: verbatim
3090 #: ../src/guestfs.pod:1584
3091 #, no-wrap
3092 msgid ""
3093 " guestfs_add_drive_opts (g, filename, -1);\n"
3094 "\n"
3095 msgstr ""
3096
3097 #. type: textblock
3098 #: ../src/guestfs.pod:1586
3099 msgid "With a single optional argument:"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../src/guestfs.pod:1588
3104 #, no-wrap
3105 msgid ""
3106 " guestfs_add_drive_opts (g, filename,\n"
3107 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3108 "                         -1);\n"
3109 "\n"
3110 msgstr ""
3111
3112 #. type: textblock
3113 #: ../src/guestfs.pod:1592
3114 msgid "With two:"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../src/guestfs.pod:1594
3119 #, no-wrap
3120 msgid ""
3121 " guestfs_add_drive_opts (g, filename,\n"
3122 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3123 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3124 "                         -1);\n"
3125 "\n"
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../src/guestfs.pod:1599
3130 msgid ""
3131 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3132 "happen!"
3133 msgstr ""
3134
3135 #. type: =head2
3136 #: ../src/guestfs.pod:1602
3137 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3138 msgstr ""
3139
3140 #. type: textblock
3141 #: ../src/guestfs.pod:1604
3142 msgid ""
3143 "The second variant has the same name with the suffix C<_va>, which works the "
3144 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3145 "example function, this is declared:"
3146 msgstr ""
3147
3148 #. type: verbatim
3149 #: ../src/guestfs.pod:1608
3150 #, no-wrap
3151 msgid ""
3152 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3153 "                                va_list args);\n"
3154 "\n"
3155 msgstr ""
3156
3157 #. type: =head2
3158 #: ../src/guestfs.pod:1611
3159 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../src/guestfs.pod:1613
3164 msgid ""
3165 "The third variant is useful where you need to construct these calls.  You "
3166 "pass in a structure where you fill in the optional fields.  The structure "
3167 "has a bitmask as the first element which you must set to indicate which "
3168 "fields you have filled in.  For our example function the structure and call "
3169 "are declared:"
3170 msgstr ""
3171
3172 #. type: verbatim
3173 #: ../src/guestfs.pod:1619
3174 #, no-wrap
3175 msgid ""
3176 " struct guestfs_add_drive_opts_argv {\n"
3177 "   uint64_t bitmask;\n"
3178 "   int readonly;\n"
3179 "   const char *format;\n"
3180 "   /* ... */\n"
3181 " };\n"
3182 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3183 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3184 "\n"
3185 msgstr ""
3186
3187 #. type: textblock
3188 #: ../src/guestfs.pod:1628
3189 msgid "You could call it like this:"
3190 msgstr ""
3191
3192 #. type: verbatim
3193 #: ../src/guestfs.pod:1630
3194 #, no-wrap
3195 msgid ""
3196 " struct guestfs_add_drive_opts_argv optargs = {\n"
3197 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3198 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3199 "   .readonly = 1,\n"
3200 "   .format = \"qcow2\"\n"
3201 " };\n"
3202 " \n"
3203 msgstr ""
3204
3205 #. type: verbatim
3206 #: ../src/guestfs.pod:1637
3207 #, no-wrap
3208 msgid ""
3209 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3210 "\n"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:2853 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1287 ../fish/guestfish-actions.pod:1929 ../tools/virt-win-reg.pl:704
3215 msgid "Notes:"
3216 msgstr ""
3217
3218 #. type: textblock
3219 #: ../src/guestfs.pod:1645
3220 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3221 msgstr ""
3222
3223 #. type: textblock
3224 #: ../src/guestfs.pod:1650
3225 msgid "You do not need to fill in all fields of the structure."
3226 msgstr ""
3227
3228 #. type: textblock
3229 #: ../src/guestfs.pod:1654
3230 msgid ""
3231 "There must be a one-to-one correspondence between fields of the structure "
3232 "that are filled in, and bits set in the bitmask."
3233 msgstr ""
3234
3235 #. type: =head2
3236 #: ../src/guestfs.pod:1659
3237 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3238 msgstr ""
3239
3240 #. type: textblock
3241 #: ../src/guestfs.pod:1661
3242 msgid ""
3243 "In other languages, optional arguments are expressed in the way that is "
3244 "natural for that language.  We refer you to the language-specific "
3245 "documentation for more details on that."
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../src/guestfs.pod:1665
3250 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3251 msgstr ""
3252
3253 #. type: =head2
3254 #: ../src/guestfs.pod:1667
3255 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3256 msgstr ""
3257
3258 #. type: textblock
3259 #: ../src/guestfs.pod:1669
3260 msgid ""
3261 "B<Note:> This section documents the generic event mechanism introduced in "
3262 "libguestfs 1.10, which you should use in new code if possible.  The old "
3263 "functions C<guestfs_set_log_message_callback>, "
3264 "C<guestfs_set_subprocess_quit_callback>, "
3265 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3266 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3267 "page.  Because of the ABI guarantee, the old functions continue to work."
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../src/guestfs.pod:1678
3272 msgid ""
3273 "Handles generate events when certain things happen, such as log messages "
3274 "being generated, progress messages during long-running operations, or the "
3275 "handle being closed.  The API calls described below let you register a "
3276 "callback to be called when events happen.  You can register multiple "
3277 "callbacks (for the same, different or overlapping sets of events), and "
3278 "individually remove callbacks.  If callbacks are not removed, then they "
3279 "remain in force until the handle is closed."
3280 msgstr ""
3281
3282 #. type: textblock
3283 #: ../src/guestfs.pod:1686
3284 msgid ""
3285 "In the current implementation, events are only generated synchronously: that "
3286 "means that events (and hence callbacks) can only happen while you are in the "
3287 "middle of making another libguestfs call.  The callback is called in the "
3288 "same thread."
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../src/guestfs.pod:1691
3293 msgid ""
3294 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3295 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3296 msgstr ""
3297
3298 #. type: =head3
3299 #: ../src/guestfs.pod:1695
3300 msgid "CLASSES OF EVENTS"
3301 msgstr ""
3302
3303 #. type: =item
3304 #: ../src/guestfs.pod:1699
3305 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1702
3310 msgid ""
3311 "The callback function will be called while the handle is being closed "
3312 "(synchronously from L</guestfs_close>)."
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../src/guestfs.pod:1705
3317 msgid ""
3318 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3319 "handles that are open when the program exits.  This means that this callback "
3320 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3321 "problems in higher-level languages (eg. if your HLL interpreter has already "
3322 "been cleaned up by the time this is called, and if your callback then jumps "
3323 "into some HLL function)."
3324 msgstr ""
3325
3326 #. type: textblock
3327 #: ../src/guestfs.pod:1712
3328 msgid ""
3329 "If no callback is registered: the handle is closed without any callback "
3330 "being invoked."
3331 msgstr ""
3332
3333 #. type: =item
3334 #: ../src/guestfs.pod:1715
3335 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../src/guestfs.pod:1718
3340 msgid ""
3341 "The callback function will be called when the child process quits, either "
3342 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3343 "corresponds to a transition from any state to the CONFIG state)."
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3348 msgid "If no callback is registered: the event is ignored."
3349 msgstr ""
3350
3351 #. type: =item
3352 #: ../src/guestfs.pod:1724
3353 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../src/guestfs.pod:1727
3358 msgid ""
3359 "The callback function will be called when the child process becomes ready "
3360 "first time after it has been launched.  (This corresponds to a transition "
3361 "from LAUNCHING to the READY state)."
3362 msgstr ""
3363
3364 #. type: =item
3365 #: ../src/guestfs.pod:1733
3366 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../src/guestfs.pod:1736
3371 msgid ""
3372 "Some long-running operations can generate progress messages.  If this "
3373 "callback is registered, then it will be called each time a progress message "
3374 "is generated (usually two seconds after the operation started, and three "
3375 "times per second thereafter until it completes, although the frequency may "
3376 "change in future versions)."
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../src/guestfs.pod:1742
3381 msgid ""
3382 "The callback receives in the payload four unsigned 64 bit numbers which are "
3383 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../src/guestfs.pod:1745
3388 msgid ""
3389 "The units of C<total> are not defined, although for some operations C<total> "
3390 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3391 "or megabytes), and C<position> may be the portion which has been "
3392 "transferred."
3393 msgstr ""
3394
3395 #. type: textblock
3396 #: ../src/guestfs.pod:1750
3397 msgid "The only defined and stable parts of the API are:"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../src/guestfs.pod:1756
3402 msgid ""
3403 "The callback can display to the user some type of progress bar or indicator "
3404 "which shows the ratio of C<position>:C<total>."
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../src/guestfs.pod:1761
3409 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3410 msgstr ""
3411
3412 #. type: textblock
3413 #: ../src/guestfs.pod:1765
3414 msgid ""
3415 "If any progress notification is sent during a call, then a final progress "
3416 "notification is always sent when C<position> = C<total> (I<unless> the call "
3417 "fails with an error)."
3418 msgstr ""
3419
3420 #. type: textblock
3421 #: ../src/guestfs.pod:1769
3422 msgid ""
3423 "This is to simplify caller code, so callers can easily set the progress "
3424 "indicator to \"100%\" at the end of the operation, without requiring special "
3425 "code to detect this case."
3426 msgstr ""
3427
3428 #. type: textblock
3429 #: ../src/guestfs.pod:1775
3430 msgid ""
3431 "For some calls we are unable to estimate the progress of the call, but we "
3432 "can still generate progress messages to indicate activity.  This is known as "
3433 "\"pulse mode\", and is directly supported by certain progress bar "
3434 "implementations (eg. GtkProgressBar)."
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../src/guestfs.pod:1780
3439 msgid ""
3440 "For these calls, zero or more progress messages are generated with "
3441 "C<position = 0> and C<total = 1>, followed by a final message with "
3442 "C<position = total = 1>."
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../src/guestfs.pod:1784
3447 msgid ""
3448 "As noted above, if the call fails with an error then the final message may "
3449 "not be generated."
3450 msgstr ""
3451
3452 #. type: textblock
3453 #: ../src/guestfs.pod:1789
3454 msgid ""
3455 "The callback also receives the procedure number (C<proc_nr>) and serial "
3456 "number (C<serial>) of the call.  These are only useful for debugging "
3457 "protocol issues, and the callback can normally ignore them.  The callback "
3458 "may want to print these numbers in error messages or debugging messages."
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../src/guestfs.pod:1795
3463 msgid "If no callback is registered: progress messages are discarded."
3464 msgstr ""
3465
3466 #. type: =item
3467 #: ../src/guestfs.pod:1797
3468 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../src/guestfs.pod:1800
3473 msgid ""
3474 "The callback function is called whenever a log message is generated by qemu, "
3475 "the appliance kernel, guestfsd (daemon), or utility programs."
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../src/guestfs.pod:1803
3480 msgid ""
3481 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
3482 "(L</guestfs_launch>) then additional debug messages are generated."
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3487 msgid ""
3488 "If no callback is registered: the messages are discarded unless the verbose "
3489 "flag is set in which case they are sent to stderr.  You can override the "
3490 "printing of verbose messages to stderr by setting up a callback."
3491 msgstr ""
3492
3493 #. type: =item
3494 #: ../src/guestfs.pod:1811
3495 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../src/guestfs.pod:1814
3500 msgid ""
3501 "The callback function is called whenever a log message is generated by the "
3502 "library part of libguestfs."
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../src/guestfs.pod:1817
3507 msgid ""
3508 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3509 "messages are generated."
3510 msgstr ""
3511
3512 #. type: =item
3513 #: ../src/guestfs.pod:1825
3514 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../src/guestfs.pod:1828
3519 msgid ""
3520 "The callback function is called whenever a trace message is generated.  This "
3521 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3522 msgstr ""
3523
3524 #. type: textblock
3525 #: ../src/guestfs.pod:1831
3526 msgid ""
3527 "If no callback is registered: the messages are sent to stderr.  You can "
3528 "override the printing of trace messages to stderr by setting up a callback."
3529 msgstr ""
3530
3531 #. type: =head3
3532 #: ../src/guestfs.pod:1837
3533 msgid "guestfs_set_event_callback"
3534 msgstr ""
3535
3536 #. type: verbatim
3537 #: ../src/guestfs.pod:1839
3538 #, no-wrap
3539 msgid ""
3540 " int guestfs_set_event_callback (guestfs_h *g,\n"
3541 "                                 guestfs_event_callback cb,\n"
3542 "                                 uint64_t event_bitmask,\n"
3543 "                                 int flags,\n"
3544 "                                 void *opaque);\n"
3545 "\n"
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../src/guestfs.pod:1845
3550 msgid ""
3551 "This function registers a callback (C<cb>) for all event classes in the "
3552 "C<event_bitmask>."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../src/guestfs.pod:1848
3557 msgid ""
3558 "For example, to register for all log message events, you could call this "
3559 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3560 "To register a single callback for all possible classes of events, use "
3561 "C<GUESTFS_EVENT_ALL>."
3562 msgstr ""
3563
3564 #. type: textblock
3565 #: ../src/guestfs.pod:1854
3566 msgid "C<flags> should always be passed as 0."
3567 msgstr ""
3568
3569 #. type: textblock
3570 #: ../src/guestfs.pod:1856
3571 msgid ""
3572 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3573 "it for any purpose."
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../src/guestfs.pod:1859
3578 msgid ""
3579 "The return value is the event handle (an integer) which you can use to "
3580 "delete the callback (see below)."
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../src/guestfs.pod:1862
3585 msgid ""
3586 "If there is an error, this function returns C<-1>, and sets the error in the "
3587 "handle in the usual way (see L</guestfs_last_error> etc.)"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../src/guestfs.pod:1865
3592 msgid ""
3593 "Callbacks remain in effect until they are deleted, or until the handle is "
3594 "closed."
3595 msgstr ""
3596
3597 #. type: textblock
3598 #: ../src/guestfs.pod:1868
3599 msgid ""
3600 "In the case where multiple callbacks are registered for a particular event "
3601 "class, all of the callbacks are called.  The order in which multiple "
3602 "callbacks are called is not defined."
3603 msgstr ""
3604
3605 #. type: =head3
3606 #: ../src/guestfs.pod:1872
3607 msgid "guestfs_delete_event_callback"
3608 msgstr ""
3609
3610 #. type: verbatim
3611 #: ../src/guestfs.pod:1874
3612 #, no-wrap
3613 msgid ""
3614 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3615 "\n"
3616 msgstr ""
3617
3618 #. type: textblock
3619 #: ../src/guestfs.pod:1876
3620 msgid ""
3621 "Delete a callback that was previously registered.  C<event_handle> should be "
3622 "the integer that was returned by a previous call to "
3623 "C<guestfs_set_event_callback> on the same handle."
3624 msgstr ""
3625
3626 #. type: =head3
3627 #: ../src/guestfs.pod:1880
3628 msgid "guestfs_event_callback"
3629 msgstr ""
3630
3631 #. type: verbatim
3632 #: ../src/guestfs.pod:1882
3633 #, no-wrap
3634 msgid ""
3635 " typedef void (*guestfs_event_callback) (\n"
3636 "                  guestfs_h *g,\n"
3637 "                  void *opaque,\n"
3638 "                  uint64_t event,\n"
3639 "                  int event_handle,\n"
3640 "                  int flags,\n"
3641 "                  const char *buf, size_t buf_len,\n"
3642 "                  const uint64_t *array, size_t array_len);\n"
3643 "\n"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../src/guestfs.pod:1891
3648 msgid "This is the type of the event callback function that you have to provide."
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../src/guestfs.pod:1894
3653 msgid ""
3654 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3655 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3656 "handle, and C<flags> which in the current API you should ignore."
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../src/guestfs.pod:1898
3661 msgid ""
3662 "The remaining parameters contain the event payload (if any).  Each event may "
3663 "contain a payload, which usually relates to the event class, but for future "
3664 "proofing your code should be written to handle any payload for any event "
3665 "class."
3666 msgstr ""
3667
3668 #. type: textblock
3669 #: ../src/guestfs.pod:1903
3670 msgid ""
3671 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3672 "there is no message buffer).  Note that this message buffer can contain "
3673 "arbitrary 8 bit data, including NUL bytes."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../src/guestfs.pod:1907
3678 msgid ""
3679 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3680 "moment this is only used for progress messages."
3681 msgstr ""
3682
3683 #. type: =head3
3684 #: ../src/guestfs.pod:1910
3685 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../src/guestfs.pod:1912
3690 msgid ""
3691 "One motivation for the generic event API was to allow GUI programs to "
3692 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3693 "unconditionally to C<stderr>."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../src/guestfs.pod:1916
3698 msgid ""
3699 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3700 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3701 "messages are not events; you must capture error messages separately)."
3702 msgstr ""
3703
3704 #. type: textblock
3705 #: ../src/guestfs.pod:1921
3706 msgid ""
3707 "Programs have to set up a callback to capture the classes of events of "
3708 "interest:"
3709 msgstr ""
3710
3711 #. type: verbatim
3712 #: ../src/guestfs.pod:1924
3713 #, no-wrap
3714 msgid ""
3715 " int eh =\n"
3716 "   guestfs_set_event_callback\n"
3717 "     (g, message_callback,\n"
3718 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3719 "      GUESTFS_EVENT_TRACE,\n"
3720 "      0, NULL) == -1)\n"
3721 " if (eh == -1) {\n"
3722 "   // handle error in the usual way\n"
3723 " }\n"
3724 "\n"
3725 msgstr ""
3726
3727 #. type: textblock
3728 #: ../src/guestfs.pod:1934
3729 msgid ""
3730 "The callback can then direct messages to the appropriate place.  In this "
3731 "example, messages are directed to syslog:"
3732 msgstr ""
3733
3734 #. type: verbatim
3735 #: ../src/guestfs.pod:1937
3736 #, no-wrap
3737 msgid ""
3738 " static void\n"
3739 " message_callback (\n"
3740 "         guestfs_h *g,\n"
3741 "         void *opaque,\n"
3742 "         uint64_t event,\n"
3743 "         int event_handle,\n"
3744 "         int flags,\n"
3745 "         const char *buf, size_t buf_len,\n"
3746 "         const uint64_t *array, size_t array_len)\n"
3747 " {\n"
3748 "   const int priority = LOG_USER|LOG_INFO;\n"
3749 "   if (buf_len > 0)\n"
3750 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3751 " }\n"
3752 "\n"
3753 msgstr ""
3754
3755 #. type: =head1
3756 #: ../src/guestfs.pod:1952
3757 msgid "CANCELLING LONG TRANSFERS"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../src/guestfs.pod:1954
3762 msgid ""
3763 "Some operations can be cancelled by the caller while they are in progress.  "
3764 "Currently only operations that involve uploading or downloading data can be "
3765 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
3766 "parameters in the generator)."
3767 msgstr ""
3768
3769 #. type: =head2
3770 #: ../src/guestfs.pod:1959
3771 msgid "guestfs_user_cancel"
3772 msgstr ""
3773
3774 #. type: verbatim
3775 #: ../src/guestfs.pod:1961
3776 #, no-wrap
3777 msgid ""
3778 " void guestfs_user_cancel (guestfs_h *g);\n"
3779 "\n"
3780 msgstr ""
3781
3782 #. type: textblock
3783 #: ../src/guestfs.pod:1963
3784 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../src/guestfs.pod:1966
3789 msgid ""
3790 "Unlike most other libguestfs calls, this function is signal safe and thread "
3791 "safe.  You can call it from a signal handler or from another thread, without "
3792 "needing to do any locking."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../src/guestfs.pod:1970
3797 msgid ""
3798 "The transfer that was in progress (if there is one) will stop shortly "
3799 "afterwards, and will return an error.  The errno (see "
3800 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
3801 "out if the operation was cancelled or failed because of another error."
3802 msgstr ""
3803
3804 #. type: textblock
3805 #: ../src/guestfs.pod:1976
3806 msgid ""
3807 "No cleanup is performed: for example, if a file was being uploaded then "
3808 "after cancellation there may be a partially uploaded file.  It is the "
3809 "caller's responsibility to clean up if necessary."
3810 msgstr ""
3811
3812 #. type: textblock
3813 #: ../src/guestfs.pod:1980
3814 msgid "There are two common places that you might call C<guestfs_user_cancel>."
3815 msgstr ""
3816
3817 #. type: textblock
3818 #: ../src/guestfs.pod:1982
3819 msgid ""
3820 "In an interactive text-based program, you might call it from a C<SIGINT> "
3821 "signal handler so that pressing C<^C> cancels the current operation.  (You "
3822 "also need to call L</guestfs_set_pgroup> so that child processes don't "
3823 "receive the C<^C> signal)."
3824 msgstr ""
3825
3826 #. type: textblock
3827 #: ../src/guestfs.pod:1987
3828 msgid ""
3829 "In a graphical program, when the main thread is displaying a progress bar "
3830 "with a cancel button, wire up the cancel button to call this function."
3831 msgstr ""
3832
3833 #. type: =head1
3834 #: ../src/guestfs.pod:1991
3835 msgid "PRIVATE DATA AREA"
3836 msgstr ""
3837
3838 #. type: textblock
3839 #: ../src/guestfs.pod:1993
3840 msgid ""
3841 "You can attach named pieces of private data to the libguestfs handle, fetch "
3842 "them by name, and walk over them, for the lifetime of the handle.  This is "
3843 "called the private data area and is only available from the C API."
3844 msgstr ""
3845
3846 #. type: textblock
3847 #: ../src/guestfs.pod:1998
3848 msgid "To attach a named piece of data, use the following call:"
3849 msgstr ""
3850
3851 #. type: verbatim
3852 #: ../src/guestfs.pod:2000
3853 #, no-wrap
3854 msgid ""
3855 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3856 "\n"
3857 msgstr ""
3858
3859 #. type: textblock
3860 #: ../src/guestfs.pod:2002
3861 msgid ""
3862 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3863 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3864 "overwritten."
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../src/guestfs.pod:2006
3869 msgid ""
3870 "You can use any C<key> you want, but your key should I<not> start with an "
3871 "underscore character.  Keys beginning with an underscore character are "
3872 "reserved for internal libguestfs purposes (eg. for implementing language "
3873 "bindings).  It is recommended that you prefix the key with some unique "
3874 "string to avoid collisions with other users."
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../src/guestfs.pod:2012
3879 msgid "To retrieve the pointer, use:"
3880 msgstr ""
3881
3882 #. type: verbatim
3883 #: ../src/guestfs.pod:2014
3884 #, no-wrap
3885 msgid ""
3886 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3887 "\n"
3888 msgstr ""
3889
3890 #. type: textblock
3891 #: ../src/guestfs.pod:2016
3892 msgid ""
3893 "This function returns C<NULL> if either no data is found associated with "
3894 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3895 "C<NULL>."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../src/guestfs.pod:2020
3900 msgid ""
3901 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3902 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3903 "all.  In particular, libguestfs does I<not> try to free the data when the "
3904 "handle is closed.  If the data must be freed, then the caller must either "
3905 "free it before calling L</guestfs_close> or must set up a close callback to "
3906 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../src/guestfs.pod:2027
3911 msgid "To walk over all entries, use these two functions:"
3912 msgstr ""
3913
3914 #. type: verbatim
3915 #: ../src/guestfs.pod:2029
3916 #, no-wrap
3917 msgid ""
3918 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3919 "\n"
3920 msgstr ""
3921
3922 #. type: verbatim
3923 #: ../src/guestfs.pod:2031
3924 #, no-wrap
3925 msgid ""
3926 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3927 "\n"
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../src/guestfs.pod:2033
3932 msgid ""
3933 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3934 "not have any particular meaning -- keys are not returned in any defined "
3935 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3936 "corresponding data pointer is returned from the function.  C<NULL> is "
3937 "returned if there are no keys stored in the handle."
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../src/guestfs.pod:2039
3942 msgid ""
3943 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3944 "value of this function is also C<NULL> is there are no further entries to "
3945 "return."
3946 msgstr ""
3947
3948 #. type: textblock
3949 #: ../src/guestfs.pod:2043
3950 msgid "Notes about walking over entries:"
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../src/guestfs.pod:2049
3955 msgid "You must not call C<guestfs_set_private> while walking over the entries."
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../src/guestfs.pod:2054
3960 msgid ""
3961 "The handle maintains an internal iterator which is reset when you call "
3962 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3963 "call C<guestfs_set_private>."
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../src/guestfs.pod:2060
3968 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3969 msgstr ""
3970
3971 #. type: verbatim
3972 #: ../src/guestfs.pod:2062
3973 #, no-wrap
3974 msgid ""
3975 " guestfs_set_private (g, key, NULL);\n"
3976 "\n"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../src/guestfs.pod:2064
3981 msgid "then that C<key> is not returned when walking."
3982 msgstr ""
3983
3984 #. type: textblock
3985 #: ../src/guestfs.pod:2068
3986 msgid ""
3987 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
3988 "C<guestfs_next_private> or C<guestfs_set_private>."
3989 msgstr ""
3990
3991 #. type: textblock
3992 #: ../src/guestfs.pod:2074
3993 msgid ""
3994 "The following example code shows how to print all keys and data pointers "
3995 "that are associated with the handle C<g>:"
3996 msgstr ""
3997
3998 #. type: verbatim
3999 #: ../src/guestfs.pod:2077
4000 #, no-wrap
4001 msgid ""
4002 " const char *key;\n"
4003 " void *data = guestfs_first_private (g, &key);\n"
4004 " while (data != NULL)\n"
4005 "   {\n"
4006 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4007 "     data = guestfs_next_private (g, &key);\n"
4008 "   }\n"
4009 "\n"
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../src/guestfs.pod:2085
4014 msgid ""
4015 "More commonly you are only interested in keys that begin with an "
4016 "application-specific prefix C<foo_>.  Modify the loop like so:"
4017 msgstr ""
4018
4019 #. type: verbatim
4020 #: ../src/guestfs.pod:2088
4021 #, no-wrap
4022 msgid ""
4023 " const char *key;\n"
4024 " void *data = guestfs_first_private (g, &key);\n"
4025 " while (data != NULL)\n"
4026 "   {\n"
4027 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4028 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4029 "     data = guestfs_next_private (g, &key);\n"
4030 "   }\n"
4031 "\n"
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../src/guestfs.pod:2097
4036 msgid ""
4037 "If you need to modify keys while walking, then you have to jump back to the "
4038 "beginning of the loop.  For example, to delete all keys prefixed with "
4039 "C<foo_>:"
4040 msgstr ""
4041
4042 #. type: verbatim
4043 #: ../src/guestfs.pod:2101
4044 #, no-wrap
4045 msgid ""
4046 "  const char *key;\n"
4047 "  void *data;\n"
4048 " again:\n"
4049 "  data = guestfs_first_private (g, &key);\n"
4050 "  while (data != NULL)\n"
4051 "    {\n"
4052 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4053 "        {\n"
4054 "          guestfs_set_private (g, key, NULL);\n"
4055 "          /* note that 'key' pointer is now invalid, and so is\n"
4056 "             the internal iterator */\n"
4057 "          goto again;\n"
4058 "        }\n"
4059 "      data = guestfs_next_private (g, &key);\n"
4060 "    }\n"
4061 "\n"
4062 msgstr ""
4063
4064 #. type: textblock
4065 #: ../src/guestfs.pod:2117
4066 msgid ""
4067 "Note that the above loop is guaranteed to terminate because the keys are "
4068 "being deleted, but other manipulations of keys within the loop might not "
4069 "terminate unless you also maintain an indication of which keys have been "
4070 "visited."
4071 msgstr ""
4072
4073 #. type: =end
4074 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
4075 msgid "html"
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../src/guestfs.pod:2124
4080 msgid ""
4081 "<!-- old anchor for the next section --> <a "
4082 "name=\"state_machine_and_low_level_event_api\"/>"
4083 msgstr ""
4084
4085 #. type: =head1
4086 #: ../src/guestfs.pod:2129
4087 msgid "ARCHITECTURE"
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../src/guestfs.pod:2131
4092 msgid ""
4093 "Internally, libguestfs is implemented by running an appliance (a special "
4094 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4095 "process of the main program."
4096 msgstr ""
4097
4098 #. type: verbatim
4099 #: ../src/guestfs.pod:2135
4100 #, no-wrap
4101 msgid ""
4102 "  ___________________\n"
4103 " /                   \\\n"
4104 " | main program      |\n"
4105 " |                   |\n"
4106 " |                   |           child process / appliance\n"
4107 " |                   |           __________________________\n"
4108 " |                   |          / qemu                     \\\n"
4109 " +-------------------+   RPC    |      +-----------------+ |\n"
4110 " | libguestfs     <--------------------> guestfsd        | |\n"
4111 " |                   |          |      +-----------------+ |\n"
4112 " \\___________________/          |      | Linux kernel    | |\n"
4113 "                                |      +--^--------------+ |\n"
4114 "                                \\_________|________________/\n"
4115 "                                          |\n"
4116 "                                   _______v______\n"
4117 "                                  /              \\\n"
4118 "                                  | Device or    |\n"
4119 "                                  | disk image   |\n"
4120 "                                  \\______________/\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../src/guestfs.pod:2155
4126 msgid ""
4127 "The library, linked to the main program, creates the child process and hence "
4128 "the appliance in the L</guestfs_launch> function."
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../src/guestfs.pod:2158
4133 msgid ""
4134 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4135 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4136 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4137 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4138 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4139 "attached to the qemu process which translates device access by the "
4140 "appliance's Linux kernel into accesses to the image."
4141 msgstr ""
4142
4143 #. type: textblock
4144 #: ../src/guestfs.pod:2167
4145 msgid ""
4146 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4147 "Although the disk image you are attached to might also be used by some "
4148 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4149 "care if both libguestfs's qemu process and your virtual machine are trying "
4150 "to update the disk image at the same time, since these usually results in "
4151 "massive disk corruption)."
4152 msgstr ""
4153
4154 #. type: =head1
4155 #: ../src/guestfs.pod:2174
4156 msgid "STATE MACHINE"
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../src/guestfs.pod:2176
4161 msgid "libguestfs uses a state machine to model the child process:"
4162 msgstr ""
4163
4164 #. type: verbatim
4165 #: ../src/guestfs.pod:2178
4166 #, no-wrap
4167 msgid ""
4168 "                         |\n"
4169 "                    guestfs_create\n"
4170 "                         |\n"
4171 "                         |\n"
4172 "                     ____V_____\n"
4173 "                    /          \\\n"
4174 "                    |  CONFIG  |\n"
4175 "                    \\__________/\n"
4176 "                     ^ ^   ^  \\\n"
4177 "                    /  |    \\  \\ guestfs_launch\n"
4178 "                   /   |    _\\__V______\n"
4179 "                  /    |   /           \\\n"
4180 "                 /     |   | LAUNCHING |\n"
4181 "                /      |   \\___________/\n"
4182 "               /       |       /\n"
4183 "              /        |  guestfs_launch\n"
4184 "             /         |     /\n"
4185 "    ______  /        __|____V\n"
4186 "   /      \\ ------> /        \\\n"
4187 "   | BUSY |         | READY  |\n"
4188 "   \\______/ <------ \\________/\n"
4189 "\n"
4190 msgstr ""
4191
4192 #. type: textblock
4193 #: ../src/guestfs.pod:2200
4194 msgid ""
4195 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4196 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4197 "(3) alternating between READY and BUSY as commands are issued to, and "
4198 "carried out by, the child process."
4199 msgstr ""
4200
4201 #. type: textblock
4202 #: ../src/guestfs.pod:2205
4203 msgid ""
4204 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4205 "asynchronously at any time (eg. due to some internal error), and that causes "
4206 "the state to transition back to CONFIG."
4207 msgstr ""
4208
4209 #. type: textblock
4210 #: ../src/guestfs.pod:2209
4211 msgid ""
4212 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4213 "issued when in the CONFIG state."
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../src/guestfs.pod:2212
4218 msgid ""
4219 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4220 "L</guestfs_launch> blocks until the child process is READY to accept "
4221 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4222 "moves the state from CONFIG to LAUNCHING while it is running."
4223 msgstr ""
4224
4225 #. type: textblock
4226 #: ../src/guestfs.pod:2218
4227 msgid ""
4228 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4229 "state.  These API calls block waiting for the command to be carried out "
4230 "(ie. the state to transition to BUSY and then back to READY).  There are no "
4231 "non-blocking versions, and no way to issue more than one command per handle "
4232 "at the same time."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../src/guestfs.pod:2224
4237 msgid ""
4238 "Finally, the child process sends asynchronous messages back to the main "
4239 "program, such as kernel log messages.  You can register a callback to "
4240 "receive these messages."
4241 msgstr ""
4242
4243 #. type: =head1
4244 #: ../src/guestfs.pod:2228
4245 msgid "INTERNALS"
4246 msgstr ""
4247
4248 #. type: =head2
4249 #: ../src/guestfs.pod:2230
4250 msgid "COMMUNICATION PROTOCOL"
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../src/guestfs.pod:2232
4255 msgid ""
4256 "Don't rely on using this protocol directly.  This section documents how it "
4257 "currently works, but it may change at any time."
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../src/guestfs.pod:2235
4262 msgid ""
4263 "The protocol used to talk between the library and the daemon running inside "
4264 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4265 "1014, RFC 1832, RFC 4506)."
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../src/guestfs.pod:2239
4270 msgid ""
4271 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4272 "this file is automatically generated)."
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../src/guestfs.pod:2242
4277 msgid ""
4278 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4279 "and C<FileOut> parameters, which are handled with very simple request/reply "
4280 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4281 "parameters, which use the same request and reply messages, but they may also "
4282 "be followed by files sent using a chunked encoding."
4283 msgstr ""
4284
4285 #. type: =head3
4286 #: ../src/guestfs.pod:2249
4287 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../src/guestfs.pod:2251
4292 msgid "For ordinary functions, the request message is:"
4293 msgstr ""
4294
4295 #. type: verbatim
4296 #: ../src/guestfs.pod:2253
4297 #, no-wrap
4298 msgid ""
4299 " total length (header + arguments,\n"
4300 "      but not including the length word itself)\n"
4301 " struct guestfs_message_header (encoded as XDR)\n"
4302 " struct guestfs_<foo>_args (encoded as XDR)\n"
4303 "\n"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../src/guestfs.pod:2258
4308 msgid ""
4309 "The total length field allows the daemon to allocate a fixed size buffer "
4310 "into which it slurps the rest of the message.  As a result, the total length "
4311 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4312 "effective size of any request is limited to somewhere under this size."
4313 msgstr ""
4314
4315 #. type: textblock
4316 #: ../src/guestfs.pod:2264
4317 msgid ""
4318 "Note also that many functions don't take any arguments, in which case the "
4319 "C<guestfs_I<foo>_args> is completely omitted."
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../src/guestfs.pod:2267
4324 msgid ""
4325 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4326 "receiver knows what type of args structure to expect, or none at all."
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../src/guestfs.pod:2271
4331 msgid ""
4332 "For functions that take optional arguments, the optional arguments are "
4333 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4334 "arguments.  A bitmask in the header indicates which optional arguments are "
4335 "meaningful.  The bitmask is also checked to see if it contains bits set "
4336 "which the daemon does not know about (eg. if more optional arguments were "
4337 "added in a later version of the library), and this causes the call to be "
4338 "rejected."
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../src/guestfs.pod:2279
4343 msgid "The reply message for ordinary functions is:"
4344 msgstr ""
4345
4346 #. type: verbatim
4347 #: ../src/guestfs.pod:2281
4348 #, no-wrap
4349 msgid ""
4350 " total length (header + ret,\n"
4351 "      but not including the length word itself)\n"
4352 " struct guestfs_message_header (encoded as XDR)\n"
4353 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4354 "\n"
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../src/guestfs.pod:2286
4359 msgid ""
4360 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4361 "functions that return no formal return values."
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../src/guestfs.pod:2289
4366 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4367 msgstr ""
4368
4369 #. type: textblock
4370 #: ../src/guestfs.pod:2292
4371 msgid ""
4372 "In the case of an error, a flag is set in the header, and the reply message "
4373 "is slightly changed:"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../src/guestfs.pod:2295
4378 #, no-wrap
4379 msgid ""
4380 " total length (header + error,\n"
4381 "      but not including the length word itself)\n"
4382 " struct guestfs_message_header (encoded as XDR)\n"
4383 " struct guestfs_message_error (encoded as XDR)\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: textblock
4388 #: ../src/guestfs.pod:2300
4389 msgid ""
4390 "The C<guestfs_message_error> structure contains the error message as a "
4391 "string."
4392 msgstr ""
4393
4394 #. type: =head3
4395 #: ../src/guestfs.pod:2303
4396 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../src/guestfs.pod:2305
4401 msgid ""
4402 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4403 "The normal request message is sent (see above).  However this is followed by "
4404 "a sequence of file chunks."
4405 msgstr ""
4406
4407 #. type: verbatim
4408 #: ../src/guestfs.pod:2309
4409 #, no-wrap
4410 msgid ""
4411 " total length (header + arguments,\n"
4412 "      but not including the length word itself,\n"
4413 "      and not including the chunks)\n"
4414 " struct guestfs_message_header (encoded as XDR)\n"
4415 " struct guestfs_<foo>_args (encoded as XDR)\n"
4416 " sequence of chunks for FileIn param #0\n"
4417 " sequence of chunks for FileIn param #1 etc.\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../src/guestfs.pod:2317
4423 msgid "The \"sequence of chunks\" is:"
4424 msgstr ""
4425
4426 #. type: verbatim
4427 #: ../src/guestfs.pod:2319
4428 #, no-wrap
4429 msgid ""
4430 " length of chunk (not including length word itself)\n"
4431 " struct guestfs_chunk (encoded as XDR)\n"
4432 " length of chunk\n"
4433 " struct guestfs_chunk (encoded as XDR)\n"
4434 "   ...\n"
4435 " length of chunk\n"
4436 " struct guestfs_chunk (with data.data_len == 0)\n"
4437 "\n"
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2327
4442 msgid ""
4443 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4444 "is set in the final chunk to indicate either successful completion or early "
4445 "cancellation."
4446 msgstr ""
4447
4448 #. type: textblock
4449 #: ../src/guestfs.pod:2331
4450 msgid ""
4451 "At time of writing there are no functions that have more than one FileIn "
4452 "parameter.  However this is (theoretically) supported, by sending the "
4453 "sequence of chunks for each FileIn parameter one after another (from left to "
4454 "right)."
4455 msgstr ""
4456
4457 #. type: textblock
4458 #: ../src/guestfs.pod:2336
4459 msgid ""
4460 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4461 "transfer.  The library does this by sending a chunk with a special flag set "
4462 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4463 "RPC, does I<not> send any reply, and goes back to reading the next request."
4464 msgstr ""
4465
4466 #. type: textblock
4467 #: ../src/guestfs.pod:2342
4468 msgid ""
4469 "The daemon may also cancel.  It does this by writing a special word "
4470 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4471 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4472 "cancel chunk).  The special word is chosen so that even if cancellation "
4473 "happens right at the end of the transfer (after the library has finished "
4474 "writing and has started listening for the reply), the \"spurious\" cancel "
4475 "flag will not be confused with the reply message."
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../src/guestfs.pod:2351
4480 msgid ""
4481 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4482 "limit), and also files where the size is not known in advance (eg. from "
4483 "pipes or sockets).  However the chunks are rather small "
4484 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4485 "to keep much in memory."
4486 msgstr ""
4487
4488 #. type: =head3
4489 #: ../src/guestfs.pod:2357
4490 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4491 msgstr ""
4492
4493 #. type: textblock
4494 #: ../src/guestfs.pod:2359
4495 msgid ""
4496 "The protocol for FileOut parameters is exactly the same as for FileIn "
4497 "parameters, but with the roles of daemon and library reversed."
4498 msgstr ""
4499
4500 #. type: verbatim
4501 #: ../src/guestfs.pod:2362
4502 #, no-wrap
4503 msgid ""
4504 " total length (header + ret,\n"
4505 "      but not including the length word itself,\n"
4506 "      and not including the chunks)\n"
4507 " struct guestfs_message_header (encoded as XDR)\n"
4508 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4509 " sequence of chunks for FileOut param #0\n"
4510 " sequence of chunks for FileOut param #1 etc.\n"
4511 "\n"
4512 msgstr ""
4513
4514 #. type: =head3
4515 #: ../src/guestfs.pod:2370
4516 msgid "INITIAL MESSAGE"
4517 msgstr ""
4518
4519 #. type: textblock
4520 #: ../src/guestfs.pod:2372
4521 msgid ""
4522 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4523 "which indicates that the guest and daemon is alive.  This is what "
4524 "L</guestfs_launch> waits for."
4525 msgstr ""
4526
4527 #. type: =head3
4528 #: ../src/guestfs.pod:2376
4529 msgid "PROGRESS NOTIFICATION MESSAGES"
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../src/guestfs.pod:2378
4534 msgid ""
4535 "The daemon may send progress notification messages at any time.  These are "
4536 "distinguished by the normal length word being replaced by "
4537 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../src/guestfs.pod:2382
4542 msgid ""
4543 "The library turns them into progress callbacks (see "
4544 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
4545 "them if not."
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../src/guestfs.pod:2386
4550 msgid ""
4551 "The daemon self-limits the frequency of progress messages it sends (see "
4552 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4553 "messages."
4554 msgstr ""
4555
4556 #. type: =head1
4557 #: ../src/guestfs.pod:2390
4558 msgid "LIBGUESTFS VERSION NUMBERS"
4559 msgstr ""
4560
4561 #. type: textblock
4562 #: ../src/guestfs.pod:2392
4563 msgid ""
4564 "Since April 2010, libguestfs has started to make separate development and "
4565 "stable releases, along with corresponding branches in our git repository.  "
4566 "These separate releases can be identified by version number:"
4567 msgstr ""
4568
4569 #. type: verbatim
4570 #: ../src/guestfs.pod:2397
4571 #, no-wrap
4572 msgid ""
4573 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4574 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4575 "       |\n"
4576 "       v\n"
4577 " 1  .  3  .  5\n"
4578 " ^           ^\n"
4579 " |           |\n"
4580 " |           `-------- sub-version\n"
4581 " |\n"
4582 " `------ always '1' because we don't change the ABI\n"
4583 "\n"
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../src/guestfs.pod:2408
4588 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4589 msgstr ""
4590
4591 #. type: textblock
4592 #: ../src/guestfs.pod:2410
4593 msgid ""
4594 "As time passes we cherry pick fixes from the development branch and backport "
4595 "those into the stable branch, the effect being that the stable branch should "
4596 "get more stable and less buggy over time.  So the stable releases are ideal "
4597 "for people who don't need new features but would just like the software to "
4598 "work."
4599 msgstr ""
4600
4601 #. type: textblock
4602 #: ../src/guestfs.pod:2416
4603 msgid "Our criteria for backporting changes are:"
4604 msgstr ""
4605
4606 #. type: textblock
4607 #: ../src/guestfs.pod:2422
4608 msgid ""
4609 "Documentation changes which don't affect any code are backported unless the "
4610 "documentation refers to a future feature which is not in stable."
4611 msgstr ""
4612
4613 #. type: textblock
4614 #: ../src/guestfs.pod:2428
4615 msgid ""
4616 "Bug fixes which are not controversial, fix obvious problems, and have been "
4617 "well tested are backported."
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../src/guestfs.pod:2433
4622 msgid ""
4623 "Simple rearrangements of code which shouldn't affect how it works get "
4624 "backported.  This is so that the code in the two branches doesn't get too "
4625 "far out of step, allowing us to backport future fixes more easily."
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../src/guestfs.pod:2439
4630 msgid ""
4631 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4632 "exceptional case: the new feature is required in order to implement an "
4633 "important bug fix."
4634 msgstr ""
4635
4636 #. type: textblock
4637 #: ../src/guestfs.pod:2445
4638 msgid ""
4639 "A new stable branch starts when we think the new features in development are "
4640 "substantial and compelling enough over the current stable branch to warrant "
4641 "it.  When that happens we create new stable and development versions 1.N.0 "
4642 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4643 "stable at this point, but by backporting fixes from development, that branch "
4644 "will stabilize over time."
4645 msgstr ""
4646
4647 #. type: =head1
4648 #: ../src/guestfs.pod:2453
4649 msgid "EXTENDING LIBGUESTFS"
4650 msgstr ""
4651
4652 #. type: =head2
4653 #: ../src/guestfs.pod:2455
4654 msgid "ADDING A NEW API ACTION"
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../src/guestfs.pod:2457
4659 msgid ""
4660 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4661 "documentation) are generated, and this makes it easy to extend the "
4662 "libguestfs API."
4663 msgstr ""
4664
4665 #. type: textblock
4666 #: ../src/guestfs.pod:2461
4667 msgid "To add a new API action there are two changes:"
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../src/guestfs.pod:2467
4672 msgid ""
4673 "You need to add a description of the call (name, parameters, return type, "
4674 "tests, documentation) to C<generator/generator_actions.ml>."
4675 msgstr ""
4676
4677 #. type: textblock
4678 #: ../src/guestfs.pod:2470
4679 msgid ""
4680 "There are two sorts of API action, depending on whether the call goes "
4681 "through to the daemon in the appliance, or is serviced entirely by the "
4682 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4683 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4684 "an example of the latter, since a trace flag is maintained in the handle and "
4685 "all tracing is done on the library side."
4686 msgstr ""
4687
4688 #. type: textblock
4689 #: ../src/guestfs.pod:2478
4690 msgid ""
4691 "Most new actions are of the first type, and get added to the "
4692 "C<daemon_functions> list.  Each function has a unique procedure number used "
4693 "in the RPC protocol which is assigned to that action when we publish "
4694 "libguestfs and cannot be reused.  Take the latest procedure number and "
4695 "increment it."
4696 msgstr ""
4697
4698 #. type: textblock
4699 #: ../src/guestfs.pod:2484
4700 msgid ""
4701 "For library-only actions of the second type, add to the "
4702 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4703 "library and do not travel over the RPC mechanism to the daemon, these "
4704 "functions do not need a procedure number, and so the procedure number is set "
4705 "to C<-1>."
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../src/guestfs.pod:2492
4710 msgid "Implement the action (in C):"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../src/guestfs.pod:2494
4715 msgid ""
4716 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4717 "C<daemon/> directory."
4718 msgstr ""
4719
4720 #. type: textblock
4721 #: ../src/guestfs.pod:2497
4722 msgid ""
4723 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4724 "(note: double underscore) in the C<src/> directory."
4725 msgstr ""
4726
4727 #. type: textblock
4728 #: ../src/guestfs.pod:2500
4729 msgid "In either case, use another function as an example of what to do."
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2504
4734 msgid "After making these changes, use C<make> to compile."
4735 msgstr ""
4736
4737 #. type: textblock
4738 #: ../src/guestfs.pod:2506
4739 msgid ""
4740 "Note that you don't need to implement the RPC, language bindings, manual "
4741 "pages or anything else.  It's all automatically generated from the OCaml "
4742 "description."
4743 msgstr ""
4744
4745 #. type: =head2
4746 #: ../src/guestfs.pod:2510
4747 msgid "ADDING TESTS FOR AN API ACTION"
4748 msgstr ""
4749
4750 #. type: textblock
4751 #: ../src/guestfs.pod:2512
4752 msgid ""
4753 "You can supply zero or as many tests as you want per API call.  The tests "
4754 "can either be added as part of the API description "
4755 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
4756 "drop a script into C<regressions/>.  Note that adding a script to "
4757 "C<regressions/> is slower, so if possible use the first method."
4758 msgstr ""
4759
4760 #. type: textblock
4761 #: ../src/guestfs.pod:2518
4762 msgid ""
4763 "The following describes the test environment used when you add an API test "
4764 "in C<generator_actions.ml>."
4765 msgstr ""
4766
4767 #. type: textblock
4768 #: ../src/guestfs.pod:2521
4769 msgid "The test environment has 4 block devices:"
4770 msgstr ""
4771
4772 #. type: =item
4773 #: ../src/guestfs.pod:2525
4774 msgid "C</dev/sda> 500MB"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../src/guestfs.pod:2527
4779 msgid "General block device for testing."
4780 msgstr ""
4781
4782 #. type: =item
4783 #: ../src/guestfs.pod:2529
4784 msgid "C</dev/sdb> 50MB"
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../src/guestfs.pod:2531
4789 msgid ""
4790 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4791 "operations."
4792 msgstr ""
4793
4794 #. type: =item
4795 #: ../src/guestfs.pod:2534
4796 msgid "C</dev/sdc> 10MB"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../src/guestfs.pod:2536
4801 msgid "Used in a few tests where two block devices are needed."
4802 msgstr ""
4803
4804 #. type: =item
4805 #: ../src/guestfs.pod:2538
4806 msgid "C</dev/sdd>"
4807 msgstr ""
4808
4809 #. type: textblock
4810 #: ../src/guestfs.pod:2540
4811 msgid "ISO with fixed content (see C<images/test.iso>)."
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2544
4816 msgid ""
4817 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4818 "appliance and block devices are reused between tests.  So don't try testing "
4819 "L</guestfs_kill_subprocess> :-x"
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../src/guestfs.pod:2548
4824 msgid ""
4825 "Each test starts with an initial scenario, selected using one of the "
4826 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4827 "initialize the disks mentioned above in a particular way as documented in "
4828 "C<generator_types.ml>.  You should not assume anything about the previous "
4829 "contents of other disks that are not initialized."
4830 msgstr ""
4831
4832 #. type: textblock
4833 #: ../src/guestfs.pod:2554
4834 msgid ""
4835 "You can add a prerequisite clause to any individual test.  This is a "
4836 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
4837 "if testing a command which might not work on all variations of libguestfs "
4838 "builds.  A test that has prerequisite of C<Always> means to run "
4839 "unconditionally."
4840 msgstr ""
4841
4842 #. type: textblock
4843 #: ../src/guestfs.pod:2560
4844 msgid ""
4845 "In addition, packagers can skip individual tests by setting environment "
4846 "variables before running C<make check>."
4847 msgstr ""
4848
4849 #. type: verbatim
4850 #: ../src/guestfs.pod:2563
4851 #, no-wrap
4852 msgid ""
4853 " SKIP_TEST_<CMD>_<NUM>=1\n"
4854 "\n"
4855 msgstr ""
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2565
4859 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2567
4864 msgid "or:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../src/guestfs.pod:2569
4869 #, no-wrap
4870 msgid ""
4871 " SKIP_TEST_<CMD>=1\n"
4872 "\n"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../src/guestfs.pod:2571
4877 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4878 msgstr ""
4879
4880 #. type: textblock
4881 #: ../src/guestfs.pod:2573
4882 msgid "Packagers can run only certain tests by setting for example:"
4883 msgstr ""
4884
4885 #. type: verbatim
4886 #: ../src/guestfs.pod:2575
4887 #, no-wrap
4888 msgid ""
4889 " TEST_ONLY=\"vfs_type zerofree\"\n"
4890 "\n"
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../src/guestfs.pod:2577
4895 msgid ""
4896 "See C<capitests/tests.c> for more details of how these environment variables "
4897 "work."
4898 msgstr ""
4899
4900 #. type: =head2
4901 #: ../src/guestfs.pod:2580
4902 msgid "DEBUGGING NEW API ACTIONS"
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../src/guestfs.pod:2582
4907 msgid "Test new actions work before submitting them."
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../src/guestfs.pod:2584
4912 msgid "You can use guestfish to try out new commands."
4913 msgstr ""
4914
4915 #. type: textblock
4916 #: ../src/guestfs.pod:2586
4917 msgid ""
4918 "Debugging the daemon is a problem because it runs inside a minimal "
4919 "environment.  However you can fprintf messages in the daemon to stderr, and "
4920 "they will show up if you use C<guestfish -v>."
4921 msgstr ""
4922
4923 #. type: =head2
4924 #: ../src/guestfs.pod:2590
4925 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4926 msgstr ""
4927
4928 #. type: textblock
4929 #: ../src/guestfs.pod:2592
4930 msgid ""
4931 "Our C source code generally adheres to some basic code-formatting "
4932 "conventions.  The existing code base is not totally consistent on this "
4933 "front, but we do prefer that contributed code be formatted similarly.  In "
4934 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4935 "indentation level, and other than that, follow the K&R style."
4936 msgstr ""
4937
4938 #. type: textblock
4939 #: ../src/guestfs.pod:2598
4940 msgid ""
4941 "If you use Emacs, add the following to one of one of your start-up files "
4942 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
4943 msgstr ""
4944
4945 #. type: verbatim
4946 #: ../src/guestfs.pod:2601
4947 #, no-wrap
4948 msgid ""
4949 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4950 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4951 " (add-hook 'find-file-hook\n"
4952 "     '(lambda () (if (and buffer-file-name\n"
4953 "                          (string-match \"/libguestfs\\\\>\"\n"
4954 "                              (buffer-file-name))\n"
4955 "                          (not (string-equal mode-name \"Change Log\"))\n"
4956 "                          (not (string-equal mode-name \"Makefile\")))\n"
4957 "                     (setq indent-tabs-mode nil))))\n"
4958 " \n"
4959 msgstr ""
4960
4961 #. type: verbatim
4962 #: ../src/guestfs.pod:2611
4963 #, no-wrap
4964 msgid ""
4965 " ;;; When editing C sources in libguestfs, use this style.\n"
4966 " (defun libguestfs-c-mode ()\n"
4967 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4968 "   (interactive)\n"
4969 "   (c-set-style \"K&R\")\n"
4970 "   (setq c-indent-level 2)\n"
4971 "   (setq c-basic-offset 2))\n"
4972 " (add-hook 'c-mode-hook\n"
4973 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4974 "                               (buffer-file-name))\n"
4975 "                           (libguestfs-c-mode))))\n"
4976 "\n"
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../src/guestfs.pod:2623
4981 msgid "Enable warnings when compiling (and fix any problems this finds):"
4982 msgstr ""
4983
4984 #. type: verbatim
4985 #: ../src/guestfs.pod:2626
4986 #, no-wrap
4987 msgid ""
4988 " ./configure --enable-gcc-warnings\n"
4989 "\n"
4990 msgstr ""
4991
4992 #. type: textblock
4993 #: ../src/guestfs.pod:2628
4994 msgid "Useful targets are:"
4995 msgstr ""
4996
4997 #. type: verbatim
4998 #: ../src/guestfs.pod:2630
4999 #, no-wrap
5000 msgid ""
5001 " make syntax-check  # checks the syntax of the C code\n"
5002 " make check         # runs the test suite\n"
5003 "\n"
5004 msgstr ""
5005
5006 #. type: =head2
5007 #: ../src/guestfs.pod:2633
5008 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5009 msgstr ""
5010
5011 #. type: textblock
5012 #: ../src/guestfs.pod:2635
5013 msgid ""
5014 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5015 "which are used to do shell quoting."
5016 msgstr ""
5017
5018 #. type: =item
5019 #: ../src/guestfs.pod:2640
5020 msgid "%Q"
5021 msgstr ""
5022
5023 #. type: textblock
5024 #: ../src/guestfs.pod:2642
5025 msgid ""
5026 "Simple shell quoted string.  Any spaces or other shell characters are "
5027 "escaped for you."
5028 msgstr ""
5029
5030 #. type: =item
5031 #: ../src/guestfs.pod:2645
5032 msgid "%R"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../src/guestfs.pod:2647
5037 msgid ""
5038 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5039 "the sysroot."
5040 msgstr ""
5041
5042 #. type: textblock
5043 #: ../src/guestfs.pod:2652 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
5044 msgid "For example:"
5045 msgstr ""
5046
5047 #. type: verbatim
5048 #: ../src/guestfs.pod:2654
5049 #, no-wrap
5050 msgid ""
5051 " asprintf (&cmd, \"cat %R\", path);\n"
5052 "\n"
5053 msgstr ""
5054
5055 #. type: textblock
5056 #: ../src/guestfs.pod:2656
5057 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5058 msgstr ""
5059
5060 #. type: textblock
5061 #: ../src/guestfs.pod:2658
5062 msgid ""
5063 "I<Note:> Do I<not> use these when you are passing parameters to the "
5064 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
5065 "because they are not passed via the shell (instead, straight to exec).  You "
5066 "probably want to use the C<sysroot_path()> function however."
5067 msgstr ""
5068
5069 #. type: =head2
5070 #: ../src/guestfs.pod:2664
5071 msgid "SUBMITTING YOUR NEW API ACTIONS"
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2666
5076 msgid ""
5077 "Submit patches to the mailing list: "
5078 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
5079 "L<rjones@redhat.com>."
5080 msgstr ""
5081
5082 #. type: =head2
5083 #: ../src/guestfs.pod:2670
5084 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../src/guestfs.pod:2672
5089 msgid "We support i18n (gettext anyhow) in the library."
5090 msgstr ""
5091
5092 #. type: textblock
5093 #: ../src/guestfs.pod:2674
5094 msgid ""
5095 "However many messages come from the daemon, and we don't translate those at "
5096 "the moment.  One reason is that the appliance generally has all locale files "
5097 "removed from it, because they take up a lot of space.  So we'd have to readd "
5098 "some of those, as well as copying our PO files into the appliance."
5099 msgstr ""
5100
5101 #. type: textblock
5102 #: ../src/guestfs.pod:2680
5103 msgid ""
5104 "Debugging messages are never translated, since they are intended for the "
5105 "programmers."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../src/guestfs.pod:2683
5110 msgid "SOURCE CODE SUBDIRECTORIES"
5111 msgstr ""
5112
5113 #. type: =item
5114 #: ../src/guestfs.pod:2687 ../src/guestfs-actions.pod:6174 ../fish/guestfish-actions.pod:4072
5115 msgid "C<appliance>"
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../src/guestfs.pod:2689
5120 msgid "The libguestfs appliance, build scripts and so on."
5121 msgstr ""
5122
5123 #. type: =item
5124 #: ../src/guestfs.pod:2691
5125 msgid "C<capitests>"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../src/guestfs.pod:2693
5130 msgid "Automated tests of the C API."
5131 msgstr ""
5132
5133 #. type: =item
5134 #: ../src/guestfs.pod:2695
5135 msgid "C<cat>"
5136 msgstr ""
5137
5138 #. type: textblock
5139 #: ../src/guestfs.pod:2697
5140 msgid ""
5141 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5142 "documentation."
5143 msgstr ""
5144
5145 #. type: =item
5146 #: ../src/guestfs.pod:2700
5147 msgid "C<caution>"
5148 msgstr ""
5149
5150 #. type: textblock
5151 #: ../src/guestfs.pod:2702
5152 msgid ""
5153 "Safety and liveness tests of components that libguestfs depends upon (not of "
5154 "libguestfs itself).  Mainly this is for qemu and the kernel."
5155 msgstr ""
5156
5157 #. type: =item
5158 #: ../src/guestfs.pod:2705
5159 msgid "C<contrib>"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../src/guestfs.pod:2707
5164 msgid "Outside contributions, experimental parts."
5165 msgstr ""
5166
5167 #. type: =item
5168 #: ../src/guestfs.pod:2709
5169 msgid "C<daemon>"
5170 msgstr ""
5171
5172 #. type: textblock
5173 #: ../src/guestfs.pod:2711
5174 msgid ""
5175 "The daemon that runs inside the libguestfs appliance and carries out "
5176 "actions."
5177 msgstr ""
5178
5179 #. type: =item
5180 #: ../src/guestfs.pod:2714
5181 msgid "C<df>"
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../src/guestfs.pod:2716
5186 msgid "L<virt-df(1)> command and documentation."
5187 msgstr ""
5188
5189 #. type: =item
5190 #: ../src/guestfs.pod:2718
5191 msgid "C<edit>"
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../src/guestfs.pod:2720
5196 msgid "L<virt-edit(1)> command and documentation."
5197 msgstr ""
5198
5199 #. type: =item
5200 #: ../src/guestfs.pod:2722
5201 msgid "C<examples>"
5202 msgstr ""
5203
5204 #. type: textblock
5205 #: ../src/guestfs.pod:2724
5206 msgid "C API example code."
5207 msgstr ""
5208
5209 #. type: =item
5210 #: ../src/guestfs.pod:2726
5211 msgid "C<fish>"
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../src/guestfs.pod:2728
5216 msgid ""
5217 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5218 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5219 "L<virt-tar-out(1)>."
5220 msgstr ""
5221
5222 #. type: =item
5223 #: ../src/guestfs.pod:2732
5224 msgid "C<fuse>"
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../src/guestfs.pod:2734
5229 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5230 msgstr ""
5231
5232 #. type: =item
5233 #: ../src/guestfs.pod:2736
5234 msgid "C<generator>"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../src/guestfs.pod:2738
5239 msgid ""
5240 "The crucially important generator, used to automatically generate large "
5241 "amounts of boilerplate C code for things like RPC and bindings."
5242 msgstr ""
5243
5244 #. type: =item
5245 #: ../src/guestfs.pod:2741
5246 msgid "C<images>"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../src/guestfs.pod:2743
5251 msgid "Files used by the test suite."
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../src/guestfs.pod:2745
5256 msgid "Some \"phony\" guest images which we test against."
5257 msgstr ""
5258
5259 #. type: =item
5260 #: ../src/guestfs.pod:2747
5261 msgid "C<inspector>"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../src/guestfs.pod:2749
5266 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5267 msgstr ""
5268
5269 #. type: =item
5270 #: ../src/guestfs.pod:2751
5271 msgid "C<logo>"
5272 msgstr ""
5273
5274 #. type: textblock
5275 #: ../src/guestfs.pod:2753
5276 msgid "Logo used on the website.  The fish is called Arthur by the way."
5277 msgstr ""
5278
5279 #. type: =item
5280 #: ../src/guestfs.pod:2755
5281 msgid "C<m4>"
5282 msgstr ""
5283
5284 #. type: textblock
5285 #: ../src/guestfs.pod:2757
5286 msgid "M4 macros used by autoconf."
5287 msgstr ""
5288
5289 #. type: =item
5290 #: ../src/guestfs.pod:2759
5291 msgid "C<po>"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../src/guestfs.pod:2761
5296 msgid "Translations of simple gettext strings."
5297 msgstr ""
5298
5299 #. type: =item
5300 #: ../src/guestfs.pod:2763
5301 msgid "C<po-docs>"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../src/guestfs.pod:2765
5306 msgid ""
5307 "The build infrastructure and PO files for translations of manpages and POD "
5308 "files.  Eventually this will be combined with the C<po> directory, but that "
5309 "is rather complicated."
5310 msgstr ""
5311
5312 #. type: =item
5313 #: ../src/guestfs.pod:2769
5314 msgid "C<regressions>"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../src/guestfs.pod:2771
5319 msgid "Regression tests."
5320 msgstr ""
5321
5322 #. type: =item
5323 #: ../src/guestfs.pod:2773
5324 msgid "C<rescue>"
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../src/guestfs.pod:2775
5329 msgid "L<virt-rescue(1)> command and documentation."
5330 msgstr ""
5331
5332 #. type: =item
5333 #: ../src/guestfs.pod:2777
5334 msgid "C<src>"
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../src/guestfs.pod:2779
5339 msgid "Source code to the C library."
5340 msgstr ""
5341
5342 #. type: =item
5343 #: ../src/guestfs.pod:2781
5344 msgid "C<tools>"
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../src/guestfs.pod:2783
5349 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5350 msgstr ""
5351
5352 #. type: =item
5353 #: ../src/guestfs.pod:2785
5354 msgid "C<test-tool>"
5355 msgstr ""
5356
5357 #. type: textblock
5358 #: ../src/guestfs.pod:2787
5359 msgid ""
5360 "Test tool for end users to test if their qemu/kernel combination will work "
5361 "with libguestfs."
5362 msgstr ""
5363
5364 #. type: =item
5365 #: ../src/guestfs.pod:2790
5366 msgid "C<csharp>"
5367 msgstr ""
5368
5369 #. type: =item
5370 #: ../src/guestfs.pod:2792
5371 msgid "C<haskell>"
5372 msgstr ""
5373
5374 #. type: =item
5375 #: ../src/guestfs.pod:2794
5376 msgid "C<java>"
5377 msgstr ""
5378
5379 #. type: =item
5380 #: ../src/guestfs.pod:2796
5381 msgid "C<ocaml>"
5382 msgstr ""
5383
5384 #. type: =item
5385 #: ../src/guestfs.pod:2798
5386 msgid "C<php>"
5387 msgstr ""
5388
5389 #. type: =item
5390 #: ../src/guestfs.pod:2800
5391 msgid "C<perl>"
5392 msgstr ""
5393
5394 #. type: =item
5395 #: ../src/guestfs.pod:2802
5396 msgid "C<python>"
5397 msgstr ""
5398
5399 #. type: =item
5400 #: ../src/guestfs.pod:2804
5401 msgid "C<ruby>"
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../src/guestfs.pod:2806
5406 msgid "Language bindings."
5407 msgstr ""
5408
5409 #. type: =head1
5410 #: ../src/guestfs.pod:2810
5411 msgid "LIMITS"
5412 msgstr ""
5413
5414 #. type: =head2
5415 #: ../src/guestfs.pod:2812
5416 msgid "PROTOCOL LIMITS"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../src/guestfs.pod:2814
5421 msgid ""
5422 "Internally libguestfs uses a message-based protocol to pass API calls and "
5423 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5424 "plenty more detail about this).  The maximum message size used by the "
5425 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5426 "aware of this limit.  The API calls which may be affected are individually "
5427 "documented, with a link back to this section of the documentation."
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../src/guestfs.pod:2822
5432 msgid ""
5433 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5434 "a simple string.  Because this string is at some point internally encoded as "
5435 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5436 "the requested file is larger than this then you will get an error."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../src/guestfs.pod:2828
5441 msgid ""
5442 "In order to transfer large files into and out of the guest filesystem, you "
5443 "need to use particular calls that support this.  The sections L</UPLOADING> "
5444 "and L</DOWNLOADING> document how to do this."
5445 msgstr ""
5446
5447 #. type: textblock
5448 #: ../src/guestfs.pod:2832
5449 msgid ""
5450 "You might also consider mounting the disk image using our FUSE filesystem "
5451 "support (L<guestmount(1)>)."
5452 msgstr ""
5453
5454 #. type: =head2
5455 #: ../src/guestfs.pod:2835
5456 msgid "MAXIMUM NUMBER OF DISKS"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../src/guestfs.pod:2837
5461 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../src/guestfs.pod:2840
5466 msgid ""
5467 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5468 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5469 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5470 "purposes."
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../src/guestfs.pod:2845
5475 msgid ""
5476 "We are working to substantially raise this limit in future versions but it "
5477 "requires complex changes to qemu."
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../src/guestfs.pod:2848
5482 msgid ""
5483 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5484 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5485 "requires changes to qemu."
5486 msgstr ""
5487
5488 #. type: =head2
5489 #: ../src/guestfs.pod:2852
5490 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../src/guestfs.pod:2854
5495 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5496 msgstr ""
5497
5498 #. type: textblock
5499 #: ../src/guestfs.pod:2856
5500 msgid ""
5501 "This is because it reserves 4 bits for the minor device number (thus "
5502 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2859
5507 msgid ""
5508 "If you attach a disk with more than 15 partitions, the extra partitions are "
5509 "ignored by libguestfs."
5510 msgstr ""
5511
5512 #. type: =head2
5513 #: ../src/guestfs.pod:2862
5514 msgid "MAXIMUM SIZE OF A DISK"
5515 msgstr ""
5516
5517 #. type: textblock
5518 #: ../src/guestfs.pod:2864
5519 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../src/guestfs.pod:2866
5524 msgid ""
5525 "We have tested block devices up to 1 exabyte (2**60 or "
5526 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5527 "filesystem."
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../src/guestfs.pod:2870
5532 msgid ""
5533 "Although libguestfs probably does not impose any limit, the underlying host "
5534 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5535 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5536 "TB).  If you store disk images as host logical volumes then you are limited "
5537 "by the maximum size of an LV."
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../src/guestfs.pod:2876
5542 msgid ""
5543 "For the hugest disk image files, we recommend using XFS on the host for "
5544 "storage."
5545 msgstr ""
5546
5547 #. type: =head2
5548 #: ../src/guestfs.pod:2879
5549 msgid "MAXIMUM SIZE OF A PARTITION"
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../src/guestfs.pod:2881
5554 msgid ""
5555 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5556 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5557 "address a partition located beyond 2 TB on the disk."
5558 msgstr ""
5559
5560 #. type: textblock
5561 #: ../src/guestfs.pod:2885
5562 msgid ""
5563 "It is recommended that you use GPT partitions on disks which are larger than "
5564 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5565 "which are theoretically larger than the largest disk we could support."
5566 msgstr ""
5567
5568 #. type: =head2
5569 #: ../src/guestfs.pod:2890
5570 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2892
5575 msgid ""
5576 "This depends on the filesystem type.  libguestfs itself does not impose any "
5577 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5578 "what these limits are."
5579 msgstr ""
5580
5581 #. type: =head2
5582 #: ../src/guestfs.pod:2896
5583 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5584 msgstr ""
5585
5586 #. type: textblock
5587 #: ../src/guestfs.pod:2898
5588 msgid ""
5589 "The API functions L</guestfs_upload>, L</guestfs_download>, "
5590 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5591 "uploads and downloads."
5592 msgstr ""
5593
5594 #. type: =head2
5595 #: ../src/guestfs.pod:2902
5596 msgid "INSPECTION LIMITS"
5597 msgstr ""
5598
5599 #. type: textblock
5600 #: ../src/guestfs.pod:2904
5601 msgid ""
5602 "The inspection code has several arbitrary limits on things like the size of "
5603 "Windows Registry hive it will read, and the length of product name.  These "
5604 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5605 "memory and disk space on the host, and should not be reached in practice.  "
5606 "See the source code for more information."
5607 msgstr ""
5608
5609 #. type: =head1
5610 #: ../src/guestfs.pod:2910 ../fish/guestfish.pod:1075 ../test-tool/libguestfs-test-tool.pod:82
5611 msgid "ENVIRONMENT VARIABLES"
5612 msgstr ""
5613
5614 #. type: =item
5615 #: ../src/guestfs.pod:2914 ../fish/guestfish.pod:1106
5616 msgid "LIBGUESTFS_APPEND"
5617 msgstr ""
5618
5619 #. type: textblock
5620 #: ../src/guestfs.pod:2916 ../fish/guestfish.pod:1108
5621 msgid "Pass additional options to the guest kernel."
5622 msgstr ""
5623
5624 #. type: =item
5625 #: ../src/guestfs.pod:2918 ../fish/guestfish.pod:1110
5626 msgid "LIBGUESTFS_DEBUG"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../src/guestfs.pod:2920
5631 msgid ""
5632 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5633 "effect as calling C<guestfs_set_verbose (g, 1)>."
5634 msgstr ""
5635
5636 #. type: =item
5637 #: ../src/guestfs.pod:2923 ../fish/guestfish.pod:1115
5638 msgid "LIBGUESTFS_MEMSIZE"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../src/guestfs.pod:2925 ../fish/guestfish.pod:1117
5643 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
5644 msgstr ""
5645
5646 #. type: verbatim
5647 #: ../src/guestfs.pod:2928 ../fish/guestfish.pod:1120
5648 #, no-wrap
5649 msgid ""
5650 " LIBGUESTFS_MEMSIZE=700\n"
5651 "\n"
5652 msgstr ""
5653
5654 #. type: =item
5655 #: ../src/guestfs.pod:2930 ../fish/guestfish.pod:1122
5656 msgid "LIBGUESTFS_PATH"
5657 msgstr ""
5658
5659 #. type: textblock
5660 #: ../src/guestfs.pod:2932
5661 msgid ""
5662 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5663 "the discussion of paths in section L</PATH> above."
5664 msgstr ""
5665
5666 #. type: =item
5667 #: ../src/guestfs.pod:2935 ../fish/guestfish.pod:1127
5668 msgid "LIBGUESTFS_QEMU"
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../src/guestfs.pod:2937 ../fish/guestfish.pod:1129
5673 msgid ""
5674 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5675 "which was found at compile time by the configure script is used."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../src/guestfs.pod:2941
5680 msgid "See also L</QEMU WRAPPERS> above."
5681 msgstr ""
5682
5683 #. type: =item
5684 #: ../src/guestfs.pod:2943 ../fish/guestfish.pod:1133
5685 msgid "LIBGUESTFS_TRACE"
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../src/guestfs.pod:2945
5690 msgid ""
5691 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5692 "effect as calling C<guestfs_set_trace (g, 1)>."
5693 msgstr ""
5694
5695 #. type: =item
5696 #: ../src/guestfs.pod:2948 ../fish/guestfish.pod:1142
5697 msgid "TMPDIR"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../src/guestfs.pod:2950 ../fish/guestfish.pod:1144
5702 msgid ""
5703 "Location of temporary directory, defaults to C</tmp> except for the cached "
5704 "supermin appliance which defaults to C</var/tmp>."
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../src/guestfs.pod:2953 ../fish/guestfish.pod:1147
5709 msgid ""
5710 "If libguestfs was compiled to use the supermin appliance then the real "
5711 "appliance is cached in this directory, shared between all handles belonging "
5712 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5713 "use in case C</var/tmp> is not large enough."
5714 msgstr ""
5715
5716 #. type: =head1
5717 #: ../src/guestfs.pod:2961 ../fish/guestfish.pod:1214 ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279 ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539 ../tools/virt-list-partitions.pl:257
5718 msgid "SEE ALSO"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../src/guestfs.pod:2963
5723 msgid ""
5724 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
5725 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
5726 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
5727 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
5728 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
5729 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
5730 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
5731 "L<http://libguestfs.org/>."
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../src/guestfs.pod:2990
5736 msgid ""
5737 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
5738 "L<lvm(8)>, L<disktype(1)>."
5739 msgstr ""
5740
5741 #. type: =head1
5742 #: ../src/guestfs.pod:2997 ../tools/virt-win-reg.pl:759 ../tools/virt-make-fs.pl:553
5743 msgid "BUGS"
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../src/guestfs.pod:2999
5748 msgid "To get a list of bugs against libguestfs use this link:"
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../src/guestfs.pod:3001
5753 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../src/guestfs.pod:3003
5758 msgid "To report a new bug against libguestfs use this link:"
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../src/guestfs.pod:3005
5763 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
5764 msgstr ""
5765
5766 #. type: textblock
5767 #: ../src/guestfs.pod:3007
5768 msgid "When reporting a bug, please check:"
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../src/guestfs.pod:3013
5773 msgid "That the bug hasn't been reported already."
5774 msgstr ""
5775
5776 #. type: textblock
5777 #: ../src/guestfs.pod:3017
5778 msgid "That you are testing a recent version."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../src/guestfs.pod:3021
5783 msgid "Describe the bug accurately, and give a way to reproduce it."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../src/guestfs.pod:3025
5788 msgid ""
5789 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5790 "bug report."
5791 msgstr ""
5792
5793 #. type: =head1
5794 #: ../src/guestfs.pod:3030 ../fish/guestfish.pod:1238 ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
5795 msgid "AUTHORS"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../src/guestfs.pod:3032 ../fish/guestfish.pod:1240 ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
5800 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5801 msgstr ""
5802
5803 #. type: =head1
5804 #: ../src/guestfs.pod:3034 ../fish/guestfish.pod:1242 ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294 ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568 ../tools/virt-list-partitions.pl:273
5805 msgid "COPYRIGHT"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../src/guestfs.pod:3036 ../fish/guestfish.pod:1244 ../test-tool/libguestfs-test-tool.pod:99
5810 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../src/guestfs.pod:3039
5815 msgid ""
5816 "This library is free software; you can redistribute it and/or modify it "
5817 "under the terms of the GNU Lesser General Public License as published by the "
5818 "Free Software Foundation; either version 2 of the License, or (at your "
5819 "option) any later version."
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../src/guestfs.pod:3044
5824 msgid ""
5825 "This library is distributed in the hope that it will be useful, but WITHOUT "
5826 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5827 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5828 "for more details."
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../src/guestfs.pod:3049
5833 msgid ""
5834 "You should have received a copy of the GNU Lesser General Public License "
5835 "along with this library; if not, write to the Free Software Foundation, "
5836 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5837 msgstr ""
5838
5839 #. type: =head2
5840 #: ../src/guestfs-actions.pod:1
5841 msgid "guestfs_add_cdrom"
5842 msgstr ""
5843
5844 #. type: verbatim
5845 #: ../src/guestfs-actions.pod:3
5846 #, no-wrap
5847 msgid ""
5848 " int\n"
5849 " guestfs_add_cdrom (guestfs_h *g,\n"
5850 "                    const char *filename);\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5856 msgid "This function adds a virtual CD-ROM disk image to the guest."
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5861 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../src/guestfs-actions.pod:17
5866 msgid ""
5867 "This call checks for the existence of C<filename>.  This stops you from "
5868 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5869 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5870 "instead."
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../src/guestfs-actions.pod:24
5875 msgid ""
5876 "If you just want to add an ISO file (often you use this as an efficient way "
5877 "to transfer large files into the guest), then you should probably use "
5878 "C<guestfs_add_drive_ro> instead."
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508 ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2579 ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3848 ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:3875 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3904 ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4049 ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4149 ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4280 ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4489 ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4525 ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4764 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4875 ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4973 ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5158 ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5248 ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5300 ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5452 ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5691 ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:5999 ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6032 ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6058 ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6207 ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6369 ../src/guestfs-actions.pod:6393 ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6489 ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6857 ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7038 ../src/guestfs-actions.pod:7054 ../src/guestfs-actions.pod:7071 ../src/guestfs-actions.pod:7084 ../src/guestfs-actions.pod:7104 ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7208 ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7509 ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7587 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7670 ../src/guestfs-actions.pod:7694 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7809
5883 msgid "This function returns 0 on success or -1 on error."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
5888 msgid ""
5889 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5890 "instead."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4945 ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:6534 ../src/guestfs-actions.pod:6564 ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:7592 ../src/guestfs-actions.pod:7702 ../src/guestfs-actions.pod:7872 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292 ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454 ../fish/guestfish-actions.pod:4349 ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394 ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:5081 ../fish/guestfish-actions.pod:5179
5895 msgid ""
5896 "Deprecated functions will not be removed from the API, but the fact that "
5897 "they are deprecated indicates that there are problems with correct use of "
5898 "these functions."
5899 msgstr ""
5900
5901 #. type: textblock
5902 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7073 ../src/guestfs-actions.pod:7596
5903 msgid "(Added in 0.3)"
5904 msgstr ""
5905
5906 #. type: =head2
5907 #: ../src/guestfs-actions.pod:41
5908 msgid "guestfs_add_domain"
5909 msgstr ""
5910
5911 #. type: verbatim
5912 #: ../src/guestfs-actions.pod:43
5913 #, no-wrap
5914 msgid ""
5915 " int\n"
5916 " guestfs_add_domain (guestfs_h *g,\n"
5917 "                     const char *dom,\n"
5918 "                     ...);\n"
5919 "\n"
5920 msgstr ""
5921
5922 #. type: textblock
5923 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:5176
5924 msgid ""
5925 "You may supply a list of optional arguments to this call.  Use zero or more "
5926 "of the following pairs of parameters, and terminate the list with C<-1> on "
5927 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5928 msgstr ""
5929
5930 #. type: verbatim
5931 #: ../src/guestfs-actions.pod:53
5932 #, no-wrap
5933 msgid ""
5934 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5935 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5936 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5937 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
5938 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
5939 "\n"
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../src/guestfs-actions.pod:59
5944 msgid ""
5945 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5946 "It works by connecting to libvirt, requesting the domain and domain XML from "
5947 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5948 "one."
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
5953 msgid ""
5954 "The number of disks added is returned.  This operation is atomic: if an "
5955 "error is returned, then no disks are added."
5956 msgstr ""
5957
5958 #. type: textblock
5959 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
5960 msgid ""
5961 "This function does some minimal checks to make sure the libvirt domain is "
5962 "not running (unless C<readonly> is true).  In a future version we will try "
5963 "to acquire the libvirt lock on each disk."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
5968 msgid ""
5969 "Disks must be accessible locally.  This often means that adding disks from a "
5970 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5971 "unless those disks are accessible via the same device path locally too."
5972 msgstr ""
5973
5974 #. type: textblock
5975 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
5976 msgid ""
5977 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5978 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5979 "default libvirt URI (or one set through an environment variable, see the "
5980 "libvirt documentation for full details)."
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
5985 msgid ""
5986 "The optional C<live> flag controls whether this call will try to connect to "
5987 "a running virtual machine C<guestfsd> process if it sees a suitable "
5988 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5989 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5990 "DAEMONS> for more information."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
5995 msgid ""
5996 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5997 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5998 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5999 "as usual."
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../src/guestfs-actions.pod:94
6004 msgid ""
6005 "The other optional parameters are passed directly through to "
6006 "C<guestfs_add_drive_opts>."
6007 msgstr ""
6008
6009 #. type: textblock
6010 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:2470 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:5135 ../src/guestfs-actions.pod:5355 ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7633
6011 msgid "On error this function returns -1."
6012 msgstr ""
6013
6014 #. type: textblock
6015 #: ../src/guestfs-actions.pod:99
6016 msgid "(Added in 1.7.4)"
6017 msgstr ""
6018
6019 #. type: =head2
6020 #: ../src/guestfs-actions.pod:101
6021 msgid "guestfs_add_domain_va"
6022 msgstr ""
6023
6024 #. type: verbatim
6025 #: ../src/guestfs-actions.pod:103
6026 #, no-wrap
6027 msgid ""
6028 " int\n"
6029 " guestfs_add_domain_va (guestfs_h *g,\n"
6030 "                        const char *dom,\n"
6031 "                        va_list args);\n"
6032 "\n"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../src/guestfs-actions.pod:108
6037 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:2920 ../src/guestfs-actions.pod:4705 ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5225 ../src/guestfs-actions.pod:5236
6042 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6043 msgstr ""
6044
6045 #. type: =head2
6046 #: ../src/guestfs-actions.pod:112
6047 msgid "guestfs_add_domain_argv"
6048 msgstr ""
6049
6050 #. type: verbatim
6051 #: ../src/guestfs-actions.pod:114
6052 #, no-wrap
6053 msgid ""
6054 " int\n"
6055 " guestfs_add_domain_argv (guestfs_h *g,\n"
6056 "                          const char *dom,\n"
6057 "                          const struct guestfs_add_domain_argv *optargs);\n"
6058 "\n"
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../src/guestfs-actions.pod:119
6063 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6064 msgstr ""
6065
6066 #. type: =head2
6067 #: ../src/guestfs-actions.pod:123
6068 msgid "guestfs_add_drive"
6069 msgstr ""
6070
6071 #. type: verbatim
6072 #: ../src/guestfs-actions.pod:125
6073 #, no-wrap
6074 msgid ""
6075 " int\n"
6076 " guestfs_add_drive (guestfs_h *g,\n"
6077 "                    const char *filename);\n"
6078 "\n"
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../src/guestfs-actions.pod:129
6083 msgid ""
6084 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6085 "optional parameters, so the disk is added writable, with the format being "
6086 "detected automatically."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../src/guestfs-actions.pod:133
6091 msgid ""
6092 "Automatic detection of the format opens you up to a potential security hole "
6093 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6094 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6095 "you should think about replacing calls to this function with calls to "
6096 "C<guestfs_add_drive_opts>, and specifying the format."
6097 msgstr ""
6098
6099 #. type: =head2
6100 #: ../src/guestfs-actions.pod:144
6101 msgid "guestfs_add_drive_opts"
6102 msgstr ""
6103
6104 #. type: verbatim
6105 #: ../src/guestfs-actions.pod:146
6106 #, no-wrap
6107 msgid ""
6108 " int\n"
6109 " guestfs_add_drive_opts (guestfs_h *g,\n"
6110 "                         const char *filename,\n"
6111 "                         ...);\n"
6112 "\n"
6113 msgstr ""
6114
6115 #. type: verbatim
6116 #: ../src/guestfs-actions.pod:156
6117 #, no-wrap
6118 msgid ""
6119 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6120 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6121 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6122 "\n"
6123 msgstr ""
6124
6125 #. type: textblock
6126 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6127 msgid ""
6128 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6129 "The first time you call this function, the disk appears as C</dev/sda>, the "
6130 "second time as C</dev/sdb>, and so on."
6131 msgstr ""
6132
6133 #. type: textblock
6134 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6135 msgid ""
6136 "You don't necessarily need to be root when using libguestfs.  However you "
6137 "obviously do need sufficient permissions to access the filename for whatever "
6138 "operations you want to perform (ie. read access if you just want to read the "
6139 "image or write access if you want to modify the image)."
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6144 msgid "This call checks that C<filename> exists."
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
6149 msgid "The optional arguments are:"
6150 msgstr ""
6151
6152 #. type: =item
6153 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6154 msgid "C<readonly>"
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6159 msgid ""
6160 "If true then the image is treated as read-only.  Writes are still allowed, "
6161 "but they are stored in a temporary snapshot overlay which is discarded at "
6162 "the end.  The disk that you add is not modified."
6163 msgstr ""
6164
6165 #. type: =item
6166 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6167 msgid "C<format>"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../src/guestfs-actions.pod:185
6172 msgid ""
6173 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6174 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6175 "Possible formats include C<raw> and C<qcow2>."
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6180 msgid ""
6181 "Automatic detection of the format opens you up to a potential security hole "
6182 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6183 "RHBZ#642934.  Specifying the format closes this security hole."
6184 msgstr ""
6185
6186 #. type: =item
6187 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6188 msgid "C<iface>"
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../src/guestfs-actions.pod:196
6193 msgid ""
6194 "This rarely-used option lets you emulate the behaviour of the deprecated "
6195 "C<guestfs_add_drive_with_if> call (q.v.)"
6196 msgstr ""
6197
6198 #. type: textblock
6199 #: ../src/guestfs-actions.pod:203
6200 msgid "(Added in 1.5.23)"
6201 msgstr ""
6202
6203 #. type: =head2
6204 #: ../src/guestfs-actions.pod:205
6205 msgid "guestfs_add_drive_opts_va"
6206 msgstr ""
6207
6208 #. type: verbatim
6209 #: ../src/guestfs-actions.pod:207
6210 #, no-wrap
6211 msgid ""
6212 " int\n"
6213 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6214 "                            const char *filename,\n"
6215 "                            va_list args);\n"
6216 "\n"
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../src/guestfs-actions.pod:212
6221 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6222 msgstr ""
6223
6224 #. type: =head2
6225 #: ../src/guestfs-actions.pod:216
6226 msgid "guestfs_add_drive_opts_argv"
6227 msgstr ""
6228
6229 #. type: verbatim
6230 #: ../src/guestfs-actions.pod:218
6231 #, no-wrap
6232 msgid ""
6233 " int\n"
6234 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6235 "                              const char *filename,\n"
6236 "                              const struct guestfs_add_drive_opts_argv "
6237 "*optargs);\n"
6238 "\n"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../src/guestfs-actions.pod:223
6243 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../src/guestfs-actions.pod:227
6248 msgid "guestfs_add_drive_ro"
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../src/guestfs-actions.pod:229
6253 #, no-wrap
6254 msgid ""
6255 " int\n"
6256 " guestfs_add_drive_ro (guestfs_h *g,\n"
6257 "                       const char *filename);\n"
6258 "\n"
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../src/guestfs-actions.pod:233
6263 msgid ""
6264 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6265 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6266 "disk is added read-only, with the format being detected automatically."
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../src/guestfs-actions.pod:240
6271 msgid "(Added in 1.0.38)"
6272 msgstr ""
6273
6274 #. type: =head2
6275 #: ../src/guestfs-actions.pod:242
6276 msgid "guestfs_add_drive_ro_with_if"
6277 msgstr ""
6278
6279 #. type: verbatim
6280 #: ../src/guestfs-actions.pod:244
6281 #, no-wrap
6282 msgid ""
6283 " int\n"
6284 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6285 "                               const char *filename,\n"
6286 "                               const char *iface);\n"
6287 "\n"
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../src/guestfs-actions.pod:249
6292 msgid ""
6293 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6294 "QEMU interface emulation to use at run time."
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2429
6299 msgid "(Added in 1.0.84)"
6300 msgstr ""
6301
6302 #. type: =head2
6303 #: ../src/guestfs-actions.pod:263
6304 msgid "guestfs_add_drive_with_if"
6305 msgstr ""
6306
6307 #. type: verbatim
6308 #: ../src/guestfs-actions.pod:265
6309 #, no-wrap
6310 msgid ""
6311 " int\n"
6312 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6313 "                            const char *filename,\n"
6314 "                            const char *iface);\n"
6315 "\n"
6316 msgstr ""
6317
6318 #. type: textblock
6319 #: ../src/guestfs-actions.pod:270
6320 msgid ""
6321 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6322 "QEMU interface emulation to use at run time."
6323 msgstr ""
6324
6325 #. type: =head2
6326 #: ../src/guestfs-actions.pod:284
6327 msgid "guestfs_aug_clear"
6328 msgstr ""
6329
6330 #. type: verbatim
6331 #: ../src/guestfs-actions.pod:286
6332 #, no-wrap
6333 msgid ""
6334 " int\n"
6335 " guestfs_aug_clear (guestfs_h *g,\n"
6336 "                    const char *augpath);\n"
6337 "\n"
6338 msgstr ""
6339
6340 #. type: textblock
6341 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
6342 msgid ""
6343 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6344 "L<augtool(1)> C<clear> command."
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2179
6349 msgid "(Added in 1.3.4)"
6350 msgstr ""
6351
6352 #. type: =head2
6353 #: ../src/guestfs-actions.pod:297
6354 msgid "guestfs_aug_close"
6355 msgstr ""
6356
6357 #. type: verbatim
6358 #: ../src/guestfs-actions.pod:299
6359 #, no-wrap
6360 msgid ""
6361 " int\n"
6362 " guestfs_aug_close (guestfs_h *g);\n"
6363 "\n"
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../src/guestfs-actions.pod:302
6368 msgid ""
6369 "Close the current Augeas handle and free up any resources used by it.  After "
6370 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6371 "any other Augeas functions."
6372 msgstr ""
6373
6374 #. type: textblock
6375 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:5838
6376 msgid "(Added in 0.7)"
6377 msgstr ""
6378
6379 #. type: =head2
6380 #: ../src/guestfs-actions.pod:311
6381 msgid "guestfs_aug_defnode"
6382 msgstr ""
6383
6384 #. type: verbatim
6385 #: ../src/guestfs-actions.pod:313
6386 #, no-wrap
6387 msgid ""
6388 " struct guestfs_int_bool *\n"
6389 " guestfs_aug_defnode (guestfs_h *g,\n"
6390 "                      const char *name,\n"
6391 "                      const char *expr,\n"
6392 "                      const char *val);\n"
6393 "\n"
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
6398 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../src/guestfs-actions.pod:322
6403 msgid ""
6404 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6405 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6406 "containing that single node."
6407 msgstr ""
6408
6409 #. type: textblock
6410 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
6411 msgid ""
6412 "On success this returns a pair containing the number of nodes in the "
6413 "nodeset, and a boolean flag if a node was created."
6414 msgstr ""
6415
6416 #. type: textblock
6417 #: ../src/guestfs-actions.pod:330
6418 msgid ""
6419 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6420 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6421 msgstr ""
6422
6423 #. type: =head2
6424 #: ../src/guestfs-actions.pod:336
6425 msgid "guestfs_aug_defvar"
6426 msgstr ""
6427
6428 #. type: verbatim
6429 #: ../src/guestfs-actions.pod:338
6430 #, no-wrap
6431 msgid ""
6432 " int\n"
6433 " guestfs_aug_defvar (guestfs_h *g,\n"
6434 "                     const char *name,\n"
6435 "                     const char *expr);\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
6441 msgid ""
6442 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6443 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
6448 msgid ""
6449 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6450 "evaluates to something which is not a nodeset."
6451 msgstr ""
6452
6453 #. type: =head2
6454 #: ../src/guestfs-actions.pod:354
6455 msgid "guestfs_aug_get"
6456 msgstr ""
6457
6458 #. type: verbatim
6459 #: ../src/guestfs-actions.pod:356
6460 #, no-wrap
6461 msgid ""
6462 " char *\n"
6463 " guestfs_aug_get (guestfs_h *g,\n"
6464 "                  const char *augpath);\n"
6465 "\n"
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
6470 msgid ""
6471 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6472 "node, the C<value> is returned."
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2202 ../src/guestfs-actions.pod:2394 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3108 ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6681 ../src/guestfs-actions.pod:7355 ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7566 ../src/guestfs-actions.pod:7866
6477 msgid ""
6478 "This function returns a string, or NULL on error.  I<The caller must free "
6479 "the returned string after use>."
6480 msgstr ""
6481
6482 #. type: =head2
6483 #: ../src/guestfs-actions.pod:368
6484 msgid "guestfs_aug_init"
6485 msgstr ""
6486
6487 #. type: verbatim
6488 #: ../src/guestfs-actions.pod:370
6489 #, no-wrap
6490 msgid ""
6491 " int\n"
6492 " guestfs_aug_init (guestfs_h *g,\n"
6493 "                   const char *root,\n"
6494 "                   int flags);\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
6500 msgid ""
6501 "Create a new Augeas handle for editing configuration files.  If there was "
6502 "any previous Augeas handle associated with this guestfs session, then it is "
6503 "closed."
6504 msgstr ""
6505
6506 #. type: textblock
6507 #: ../src/guestfs-actions.pod:379
6508 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
6513 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
6518 msgid ""
6519 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6520 "logical I<or> of the following integers:"
6521 msgstr ""
6522
6523 #. type: =item
6524 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
6525 msgid "C<AUG_SAVE_BACKUP> = 1"
6526 msgstr ""
6527
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
6530 msgid "Keep the original file with a C<.augsave> extension."
6531 msgstr ""
6532
6533 #. type: =item
6534 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
6535 msgid "C<AUG_SAVE_NEWFILE> = 2"
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
6540 msgid ""
6541 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6542 "original.  Overrides C<AUG_SAVE_BACKUP>."
6543 msgstr ""
6544
6545 #. type: =item
6546 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
6547 msgid "C<AUG_TYPE_CHECK> = 4"
6548 msgstr ""
6549
6550 #. type: textblock
6551 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
6552 msgid "Typecheck lenses (can be expensive)."
6553 msgstr ""
6554
6555 #. type: =item
6556 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
6557 msgid "C<AUG_NO_STDINC> = 8"
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
6562 msgid "Do not use standard load path for modules."
6563 msgstr ""
6564
6565 #. type: =item
6566 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
6567 msgid "C<AUG_SAVE_NOOP> = 16"
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
6572 msgid "Make save a no-op, just record what would have been changed."
6573 msgstr ""
6574
6575 #. type: =item
6576 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
6577 msgid "C<AUG_NO_LOAD> = 32"
6578 msgstr ""
6579
6580 #. type: textblock
6581 #: ../src/guestfs-actions.pod:414
6582 msgid "Do not load the tree in C<guestfs_aug_init>."
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:418
6587 msgid "To close the handle, you can call C<guestfs_aug_close>."
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
6592 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6593 msgstr ""
6594
6595 #. type: =head2
6596 #: ../src/guestfs-actions.pod:426
6597 msgid "guestfs_aug_insert"
6598 msgstr ""
6599
6600 #. type: verbatim
6601 #: ../src/guestfs-actions.pod:428
6602 #, no-wrap
6603 msgid ""
6604 " int\n"
6605 " guestfs_aug_insert (guestfs_h *g,\n"
6606 "                     const char *augpath,\n"
6607 "                     const char *label,\n"
6608 "                     int before);\n"
6609 "\n"
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
6614 msgid ""
6615 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6616 "or after C<path> (depending on the boolean flag C<before>)."
6617 msgstr ""
6618
6619 #. type: textblock
6620 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
6621 msgid ""
6622 "C<path> must match exactly one existing node in the tree, and C<label> must "
6623 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6624 msgstr ""
6625
6626 #. type: =head2
6627 #: ../src/guestfs-actions.pod:446
6628 msgid "guestfs_aug_load"
6629 msgstr ""
6630
6631 #. type: verbatim
6632 #: ../src/guestfs-actions.pod:448
6633 #, no-wrap
6634 msgid ""
6635 " int\n"
6636 " guestfs_aug_load (guestfs_h *g);\n"
6637 "\n"
6638 msgstr ""
6639
6640 #. type: textblock
6641 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
6642 msgid "Load files into the tree."
6643 msgstr ""
6644
6645 #. type: textblock
6646 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
6647 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6648 msgstr ""
6649
6650 #. type: =head2
6651 #: ../src/guestfs-actions.pod:460
6652 msgid "guestfs_aug_ls"
6653 msgstr ""
6654
6655 #. type: verbatim
6656 #: ../src/guestfs-actions.pod:462
6657 #, no-wrap
6658 msgid ""
6659 " char **\n"
6660 " guestfs_aug_ls (guestfs_h *g,\n"
6661 "                 const char *augpath);\n"
6662 "\n"
6663 msgstr ""
6664
6665 #. type: textblock
6666 #: ../src/guestfs-actions.pod:466
6667 msgid ""
6668 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6669 "sorting the resulting nodes into alphabetical order."
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485 ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138 ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:2290 ../src/guestfs-actions.pod:2309 ../src/guestfs-actions.pod:2352 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3921 ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7526 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7823 ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7907
6674 msgid ""
6675 "This function returns a NULL-terminated array of strings (like "
6676 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
6677 "strings and the array after use>."
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063 ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5649 ../src/guestfs-actions.pod:6046 ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:7197 ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7443 ../src/guestfs-actions.pod:7706
6682 msgid "(Added in 0.8)"
6683 msgstr ""
6684
6685 #. type: =head2
6686 #: ../src/guestfs-actions.pod:475
6687 msgid "guestfs_aug_match"
6688 msgstr ""
6689
6690 #. type: verbatim
6691 #: ../src/guestfs-actions.pod:477
6692 #, no-wrap
6693 msgid ""
6694 " char **\n"
6695 " guestfs_aug_match (guestfs_h *g,\n"
6696 "                    const char *augpath);\n"
6697 "\n"
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
6702 msgid ""
6703 "Returns a list of paths which match the path expression C<path>.  The "
6704 "returned paths are sufficiently qualified so that they match exactly one "
6705 "node in the current tree."
6706 msgstr ""
6707
6708 #. type: =head2
6709 #: ../src/guestfs-actions.pod:491
6710 msgid "guestfs_aug_mv"
6711 msgstr ""
6712
6713 #. type: verbatim
6714 #: ../src/guestfs-actions.pod:493
6715 #, no-wrap
6716 msgid ""
6717 " int\n"
6718 " guestfs_aug_mv (guestfs_h *g,\n"
6719 "                 const char *src,\n"
6720 "                 const char *dest);\n"
6721 "\n"
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
6726 msgid ""
6727 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6728 "C<dest> is overwritten if it exists."
6729 msgstr ""
6730
6731 #. type: =head2
6732 #: ../src/guestfs-actions.pod:505
6733 msgid "guestfs_aug_rm"
6734 msgstr ""
6735
6736 #. type: verbatim
6737 #: ../src/guestfs-actions.pod:507
6738 #, no-wrap
6739 msgid ""
6740 " int\n"
6741 " guestfs_aug_rm (guestfs_h *g,\n"
6742 "                 const char *augpath);\n"
6743 "\n"
6744 msgstr ""
6745
6746 #. type: textblock
6747 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
6748 msgid "Remove C<path> and all of its children."
6749 msgstr ""
6750
6751 #. type: textblock
6752 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
6753 msgid "On success this returns the number of entries which were removed."
6754 msgstr ""
6755
6756 #. type: =head2
6757 #: ../src/guestfs-actions.pod:519
6758 msgid "guestfs_aug_save"
6759 msgstr ""
6760
6761 #. type: verbatim
6762 #: ../src/guestfs-actions.pod:521
6763 #, no-wrap
6764 msgid ""
6765 " int\n"
6766 " guestfs_aug_save (guestfs_h *g);\n"
6767 "\n"
6768 msgstr ""
6769
6770 #. type: textblock
6771 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
6772 msgid "This writes all pending changes to disk."
6773 msgstr ""
6774
6775 #. type: textblock
6776 #: ../src/guestfs-actions.pod:526
6777 msgid ""
6778 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6779 "are saved."
6780 msgstr ""
6781
6782 #. type: =head2
6783 #: ../src/guestfs-actions.pod:533
6784 msgid "guestfs_aug_set"
6785 msgstr ""
6786
6787 #. type: verbatim
6788 #: ../src/guestfs-actions.pod:535
6789 #, no-wrap
6790 msgid ""
6791 " int\n"
6792 " guestfs_aug_set (guestfs_h *g,\n"
6793 "                  const char *augpath,\n"
6794 "                  const char *val);\n"
6795 "\n"
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
6800 msgid "Set the value associated with C<path> to C<val>."
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../src/guestfs-actions.pod:542
6805 msgid ""
6806 "In the Augeas API, it is possible to clear a node by setting the value to "
6807 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6808 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6809 msgstr ""
6810
6811 #. type: =head2
6812 #: ../src/guestfs-actions.pod:551
6813 msgid "guestfs_available"
6814 msgstr ""
6815
6816 #. type: verbatim
6817 #: ../src/guestfs-actions.pod:553
6818 #, no-wrap
6819 msgid ""
6820 " int\n"
6821 " guestfs_available (guestfs_h *g,\n"
6822 "                    char *const *groups);\n"
6823 "\n"
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
6828 msgid ""
6829 "This command is used to check the availability of some groups of "
6830 "functionality in the appliance, which not all builds of the libguestfs "
6831 "appliance will be able to provide."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../src/guestfs-actions.pod:561
6836 msgid ""
6837 "The libguestfs groups, and the functions that those groups correspond to, "
6838 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6839 "runtime by calling C<guestfs_available_all_groups>."
6840 msgstr ""
6841
6842 #. type: textblock
6843 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
6844 msgid ""
6845 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6846 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6847 "and Augeas (configuration file editing) functions."
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
6852 msgid "The command returns no error if I<all> requested groups are available."
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
6857 msgid ""
6858 "It fails with an error if one or more of the requested groups is unavailable "
6859 "in the appliance."
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
6864 msgid ""
6865 "If an unknown group name is included in the list of groups then an error is "
6866 "always returned."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
6871 msgid "I<Notes:>"
6872 msgstr ""
6873
6874 #. type: textblock
6875 #: ../src/guestfs-actions.pod:585
6876 msgid "You must call C<guestfs_launch> before calling this function."
6877 msgstr ""
6878
6879 #. type: textblock
6880 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
6881 msgid ""
6882 "The reason is because we don't know what groups are supported by the "
6883 "appliance/daemon until it is running and can be queried."
6884 msgstr ""
6885
6886 #. type: textblock
6887 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
6888 msgid ""
6889 "If a group of functions is available, this does not necessarily mean that "
6890 "they will work.  You still have to check for errors when calling individual "
6891 "API functions even if they are available."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
6896 msgid ""
6897 "It is usually the job of distro packagers to build complete functionality "
6898 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6899 "with all requirements satisfied, will support everything."
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../src/guestfs-actions.pod:607
6904 msgid ""
6905 "This call was added in version C<1.0.80>.  In previous versions of "
6906 "libguestfs all you could do would be to speculatively execute a command to "
6907 "find out if the daemon implemented it.  See also C<guestfs_version>."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
6912 msgid "(Added in 1.0.80)"
6913 msgstr ""
6914
6915 #. type: =head2
6916 #: ../src/guestfs-actions.pod:618
6917 msgid "guestfs_available_all_groups"
6918 msgstr ""
6919
6920 #. type: verbatim
6921 #: ../src/guestfs-actions.pod:620
6922 #, no-wrap
6923 msgid ""
6924 " char **\n"
6925 " guestfs_available_all_groups (guestfs_h *g);\n"
6926 "\n"
6927 msgstr ""
6928
6929 #. type: textblock
6930 #: ../src/guestfs-actions.pod:623
6931 msgid ""
6932 "This command returns a list of all optional groups that this daemon knows "
6933 "about.  Note this returns both supported and unsupported groups.  To find "
6934 "out which ones the daemon can actually support you have to call "
6935 "C<guestfs_available> on each member of the returned list."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../src/guestfs-actions.pod:629
6940 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
6941 msgstr ""
6942
6943 #. type: textblock
6944 #: ../src/guestfs-actions.pod:635
6945 msgid "(Added in 1.3.15)"
6946 msgstr ""
6947
6948 #. type: =head2
6949 #: ../src/guestfs-actions.pod:637
6950 msgid "guestfs_base64_in"
6951 msgstr ""
6952
6953 #. type: verbatim
6954 #: ../src/guestfs-actions.pod:639
6955 #, no-wrap
6956 msgid ""
6957 " int\n"
6958 " guestfs_base64_in (guestfs_h *g,\n"
6959 "                    const char *base64file,\n"
6960 "                    const char *filename);\n"
6961 "\n"
6962 msgstr ""
6963
6964 #. type: textblock
6965 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
6966 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6967 msgstr ""
6968
6969 #. type: textblock
6970 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
6971 msgid "(Added in 1.3.5)"
6972 msgstr ""
6973
6974 #. type: =head2
6975 #: ../src/guestfs-actions.pod:651
6976 msgid "guestfs_base64_out"
6977 msgstr ""
6978
6979 #. type: verbatim
6980 #: ../src/guestfs-actions.pod:653
6981 #, no-wrap
6982 msgid ""
6983 " int\n"
6984 " guestfs_base64_out (guestfs_h *g,\n"
6985 "                     const char *filename,\n"
6986 "                     const char *base64file);\n"
6987 "\n"
6988 msgstr ""
6989
6990 #. type: textblock
6991 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
6992 msgid ""
6993 "This command downloads the contents of C<filename>, writing it out to local "
6994 "file C<base64file> encoded as base64."
6995 msgstr ""
6996
6997 #. type: =head2
6998 #: ../src/guestfs-actions.pod:665
6999 msgid "guestfs_blockdev_flushbufs"
7000 msgstr ""
7001
7002 #. type: verbatim
7003 #: ../src/guestfs-actions.pod:667
7004 #, no-wrap
7005 msgid ""
7006 " int\n"
7007 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7008 "                             const char *device);\n"
7009 "\n"
7010 msgstr ""
7011
7012 #. type: textblock
7013 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7014 msgid "This tells the kernel to flush internal buffers associated with C<device>."
7015 msgstr ""
7016
7017 #. type: textblock
7018 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819 ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464 ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508 ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527 ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7019 msgid "This uses the L<blockdev(8)> command."
7020 msgstr ""
7021
7022 #. type: textblock
7023 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7024 msgid "(Added in 0.9.3)"
7025 msgstr ""
7026
7027 #. type: =head2
7028 #: ../src/guestfs-actions.pod:680
7029 msgid "guestfs_blockdev_getbsz"
7030 msgstr ""
7031
7032 #. type: verbatim
7033 #: ../src/guestfs-actions.pod:682
7034 #, no-wrap
7035 msgid ""
7036 " int\n"
7037 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7038 "                          const char *device);\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7044 msgid "This returns the block size of a device."
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788 ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7049 msgid ""
7050 "(Note this is different from both I<size in blocks> and I<filesystem block "
7051 "size>)."
7052 msgstr ""
7053
7054 #. type: =head2
7055 #: ../src/guestfs-actions.pod:697
7056 msgid "guestfs_blockdev_getro"
7057 msgstr ""
7058
7059 #. type: verbatim
7060 #: ../src/guestfs-actions.pod:699
7061 #, no-wrap
7062 msgid ""
7063 " int\n"
7064 " guestfs_blockdev_getro (guestfs_h *g,\n"
7065 "                         const char *device);\n"
7066 "\n"
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7071 msgid ""
7072 "Returns a boolean indicating if the block device is read-only (true if "
7073 "read-only, false if not)."
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2165 ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:5337
7078 msgid "This function returns a C truth value on success or -1 on error."
7079 msgstr ""
7080
7081 #. type: =head2
7082 #: ../src/guestfs-actions.pod:712
7083 msgid "guestfs_blockdev_getsize64"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../src/guestfs-actions.pod:714
7088 #, no-wrap
7089 msgid ""
7090 " int64_t\n"
7091 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7092 "                             const char *device);\n"
7093 "\n"
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7098 msgid "This returns the size of the device in bytes."
7099 msgstr ""
7100
7101 #. type: textblock
7102 #: ../src/guestfs-actions.pod:720
7103 msgid "See also C<guestfs_blockdev_getsz>."
7104 msgstr ""
7105
7106 #. type: =head2
7107 #: ../src/guestfs-actions.pod:728
7108 msgid "guestfs_blockdev_getss"
7109 msgstr ""
7110
7111 #. type: verbatim
7112 #: ../src/guestfs-actions.pod:730
7113 #, no-wrap
7114 msgid ""
7115 " int\n"
7116 " guestfs_blockdev_getss (guestfs_h *g,\n"
7117 "                         const char *device);\n"
7118 "\n"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
7123 msgid ""
7124 "This returns the size of sectors on a block device.  Usually 512, but can be "
7125 "larger for modern devices."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../src/guestfs-actions.pod:737
7130 msgid ""
7131 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7132 "that)."
7133 msgstr ""
7134
7135 #. type: =head2
7136 #: ../src/guestfs-actions.pod:746
7137 msgid "guestfs_blockdev_getsz"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../src/guestfs-actions.pod:748
7142 #, no-wrap
7143 msgid ""
7144 " int64_t\n"
7145 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7146 "                         const char *device);\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
7152 msgid ""
7153 "This returns the size of the device in units of 512-byte sectors (even if "
7154 "the sectorsize isn't 512 bytes ... weird)."
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../src/guestfs-actions.pod:755
7159 msgid ""
7160 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7161 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7162 msgstr ""
7163
7164 #. type: =head2
7165 #: ../src/guestfs-actions.pod:765
7166 msgid "guestfs_blockdev_rereadpt"
7167 msgstr ""
7168
7169 #. type: verbatim
7170 #: ../src/guestfs-actions.pod:767
7171 #, no-wrap
7172 msgid ""
7173 " int\n"
7174 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7175 "                            const char *device);\n"
7176 "\n"
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
7181 msgid "Reread the partition table on C<device>."
7182 msgstr ""
7183
7184 #. type: =head2
7185 #: ../src/guestfs-actions.pod:779
7186 msgid "guestfs_blockdev_setbsz"
7187 msgstr ""
7188
7189 #. type: verbatim
7190 #: ../src/guestfs-actions.pod:781
7191 #, no-wrap
7192 msgid ""
7193 " int\n"
7194 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7195 "                          const char *device,\n"
7196 "                          int blocksize);\n"
7197 "\n"
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
7202 msgid "This sets the block size of a device."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../src/guestfs-actions.pod:797
7207 msgid "guestfs_blockdev_setro"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../src/guestfs-actions.pod:799
7212 #, no-wrap
7213 msgid ""
7214 " int\n"
7215 " guestfs_blockdev_setro (guestfs_h *g,\n"
7216 "                         const char *device);\n"
7217 "\n"
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
7222 msgid "Sets the block device named C<device> to read-only."
7223 msgstr ""
7224
7225 #. type: =head2
7226 #: ../src/guestfs-actions.pod:811
7227 msgid "guestfs_blockdev_setrw"
7228 msgstr ""
7229
7230 #. type: verbatim
7231 #: ../src/guestfs-actions.pod:813
7232 #, no-wrap
7233 msgid ""
7234 " int\n"
7235 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7236 "                         const char *device);\n"
7237 "\n"
7238 msgstr ""
7239
7240 #. type: textblock
7241 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
7242 msgid "Sets the block device named C<device> to read-write."
7243 msgstr ""
7244
7245 #. type: =head2
7246 #: ../src/guestfs-actions.pod:825
7247 msgid "guestfs_btrfs_filesystem_resize"
7248 msgstr ""
7249
7250 #. type: verbatim
7251 #: ../src/guestfs-actions.pod:827
7252 #, no-wrap
7253 msgid ""
7254 " int\n"
7255 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
7256 "                                  const char *mountpoint,\n"
7257 "                                  ...);\n"
7258 "\n"
7259 msgstr ""
7260
7261 #. type: verbatim
7262 #: ../src/guestfs-actions.pod:837
7263 #, no-wrap
7264 msgid ""
7265 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
7266 "\n"
7267 msgstr ""
7268
7269 #. type: textblock
7270 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:549
7271 msgid "This command resizes a btrfs filesystem."
7272 msgstr ""
7273
7274 #. type: textblock
7275 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:551
7276 msgid ""
7277 "Note that unlike other resize calls, the filesystem has to be mounted and "
7278 "the parameter is the mountpoint not the device (this is a requirement of "
7279 "btrfs itself)."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5187 ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
7284 msgid "The optional parameters are:"
7285 msgstr ""
7286
7287 #. type: =item
7288 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
7289 msgid "C<size>"
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../src/guestfs-actions.pod:851 ../fish/guestfish-actions.pod:561
7294 msgid ""
7295 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7296 "resized to the maximum size."
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../src/guestfs-actions.pod:856 ../fish/guestfish-actions.pod:566
7301 msgid "See also L<btrfs(8)>."
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../src/guestfs-actions.pod:860
7306 msgid "(Added in 1.11.17)"
7307 msgstr ""
7308
7309 #. type: =head2
7310 #: ../src/guestfs-actions.pod:862
7311 msgid "guestfs_btrfs_filesystem_resize_va"
7312 msgstr ""
7313
7314 #. type: verbatim
7315 #: ../src/guestfs-actions.pod:864
7316 #, no-wrap
7317 msgid ""
7318 " int\n"
7319 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
7320 "                                     const char *mountpoint,\n"
7321 "                                     va_list args);\n"
7322 "\n"
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../src/guestfs-actions.pod:869
7327 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
7328 msgstr ""
7329
7330 #. type: =head2
7331 #: ../src/guestfs-actions.pod:873
7332 msgid "guestfs_btrfs_filesystem_resize_argv"
7333 msgstr ""
7334
7335 #. type: verbatim
7336 #: ../src/guestfs-actions.pod:875
7337 #, no-wrap
7338 msgid ""
7339 " int\n"
7340 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
7341 "                                       const char *mountpoint,\n"
7342 "                                       const struct "
7343 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
7344 "\n"
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../src/guestfs-actions.pod:880
7349 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
7350 msgstr ""
7351
7352 #. type: =head2
7353 #: ../src/guestfs-actions.pod:884
7354 msgid "guestfs_case_sensitive_path"
7355 msgstr ""
7356
7357 #. type: verbatim
7358 #: ../src/guestfs-actions.pod:886
7359 #, no-wrap
7360 msgid ""
7361 " char *\n"
7362 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7363 "                              const char *path);\n"
7364 "\n"
7365 msgstr ""
7366
7367 #. type: textblock
7368 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:574
7369 msgid ""
7370 "This can be used to resolve case insensitive paths on a filesystem which is "
7371 "case sensitive.  The use case is to resolve paths which you have read from "
7372 "Windows configuration files or the Windows Registry, to the true path."
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:579
7377 msgid ""
7378 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7379 "(and probably others), which is that although the underlying filesystem is "
7380 "case-insensitive, the driver exports the filesystem to Linux as "
7381 "case-sensitive."
7382 msgstr ""
7383
7384 #. type: textblock
7385 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:584
7386 msgid ""
7387 "One consequence of this is that special directories such as C<c:\\windows> "
7388 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7389 "precise details of how they were created.  In Windows itself this would not "
7390 "be a problem."
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:590
7395 msgid ""
7396 "Bug or feature? You decide: "
7397 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7398 msgstr ""
7399
7400 #. type: textblock
7401 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:593
7402 msgid ""
7403 "This function resolves the true case of each element in the path and returns "
7404 "the case-sensitive path."
7405 msgstr ""
7406
7407 #. type: textblock
7408 #: ../src/guestfs-actions.pod:912
7409 msgid ""
7410 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
7411 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7412 "how the directories were originally created under Windows)."
7413 msgstr ""
7414
7415 #. type: textblock
7416 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:601
7417 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../src/guestfs-actions.pod:920
7422 msgid "See also C<guestfs_realpath>."
7423 msgstr ""
7424
7425 #. type: textblock
7426 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7377
7427 msgid "(Added in 1.0.75)"
7428 msgstr ""
7429
7430 #. type: =head2
7431 #: ../src/guestfs-actions.pod:927
7432 msgid "guestfs_cat"
7433 msgstr ""
7434
7435 #. type: verbatim
7436 #: ../src/guestfs-actions.pod:929
7437 #, no-wrap
7438 msgid ""
7439 " char *\n"
7440 " guestfs_cat (guestfs_h *g,\n"
7441 "              const char *path);\n"
7442 "\n"
7443 msgstr ""
7444
7445 #. type: textblock
7446 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5824 ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3831
7447 msgid "Return the contents of the file named C<path>."
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../src/guestfs-actions.pod:935
7452 msgid ""
7453 "Note that this function cannot correctly handle binary files (specifically, "
7454 "files containing C<\\0> character which is treated as end of string).  For "
7455 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7456 "functions which have a more complex interface."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560 ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825 ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2313 ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5789 ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:6817 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7672 ../src/guestfs-actions.pod:7696 ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7846 ../src/guestfs-actions.pod:7892 ../src/guestfs-actions.pod:7911 ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752 ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536 ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579 ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:3701 ../fish/guestfish-actions.pod:3716 ../fish/guestfish-actions.pod:3792 ../fish/guestfish-actions.pod:3809 ../fish/guestfish-actions.pod:3824 ../fish/guestfish-actions.pod:4493 ../fish/guestfish-actions.pod:4539 ../fish/guestfish-actions.pod:4624 ../fish/guestfish-actions.pod:4639 ../fish/guestfish-actions.pod:5045 ../fish/guestfish-actions.pod:5057 ../fish/guestfish-actions.pod:5075 ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5102 ../fish/guestfish-actions.pod:5151 ../fish/guestfish-actions.pod:5161 ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7461 msgid ""
7462 "Because of the message protocol, there is a transfer limit of somewhere "
7463 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3738 ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:3837 ../src/guestfs-actions.pod:3925 ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4347 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:7530 ../src/guestfs-actions.pod:7544
7468 msgid "(Added in 0.4)"
7469 msgstr ""
7470
7471 #. type: =head2
7472 #: ../src/guestfs-actions.pod:948
7473 msgid "guestfs_checksum"
7474 msgstr ""
7475
7476 #. type: verbatim
7477 #: ../src/guestfs-actions.pod:950
7478 #, no-wrap
7479 msgid ""
7480 " char *\n"
7481 " guestfs_checksum (guestfs_h *g,\n"
7482 "                   const char *csumtype,\n"
7483 "                   const char *path);\n"
7484 "\n"
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../src/guestfs-actions.pod:955 ../fish/guestfish-actions.pod:624
7489 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:627
7494 msgid ""
7495 "The type of checksum to compute is given by the C<csumtype> parameter which "
7496 "must have one of the following values:"
7497 msgstr ""
7498
7499 #. type: =item
7500 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:632
7501 msgid "C<crc>"
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../src/guestfs-actions.pod:965 ../fish/guestfish-actions.pod:634
7506 msgid ""
7507 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7508 "C<cksum> command."
7509 msgstr ""
7510
7511 #. type: =item
7512 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:637
7513 msgid "C<md5>"
7514 msgstr ""
7515
7516 #. type: textblock
7517 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:639
7518 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7519 msgstr ""
7520
7521 #. type: =item
7522 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:641
7523 msgid "C<sha1>"
7524 msgstr ""
7525
7526 #. type: textblock
7527 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:643
7528 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7529 msgstr ""
7530
7531 #. type: =item
7532 #: ../src/guestfs-actions.pod:976 ../fish/guestfish-actions.pod:645
7533 msgid "C<sha224>"
7534 msgstr ""
7535
7536 #. type: textblock
7537 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:647
7538 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7539 msgstr ""
7540
7541 #. type: =item
7542 #: ../src/guestfs-actions.pod:980 ../fish/guestfish-actions.pod:649
7543 msgid "C<sha256>"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:651
7548 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7549 msgstr ""
7550
7551 #. type: =item
7552 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:653
7553 msgid "C<sha384>"
7554 msgstr ""
7555
7556 #. type: textblock
7557 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:655
7558 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7559 msgstr ""
7560
7561 #. type: =item
7562 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:657
7563 msgid "C<sha512>"
7564 msgstr ""
7565
7566 #. type: textblock
7567 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:659
7568 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../src/guestfs-actions.pod:994 ../fish/guestfish-actions.pod:663
7573 msgid "The checksum is returned as a printable string."
7574 msgstr ""
7575
7576 #. type: textblock
7577 #: ../src/guestfs-actions.pod:996
7578 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../src/guestfs-actions.pod:998
7583 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:7233
7588 msgid "(Added in 1.0.2)"
7589 msgstr ""
7590
7591 #. type: =head2
7592 #: ../src/guestfs-actions.pod:1005
7593 msgid "guestfs_checksum_device"
7594 msgstr ""
7595
7596 #. type: verbatim
7597 #: ../src/guestfs-actions.pod:1007
7598 #, no-wrap
7599 msgid ""
7600 " char *\n"
7601 " guestfs_checksum_device (guestfs_h *g,\n"
7602 "                          const char *csumtype,\n"
7603 "                          const char *device);\n"
7604 "\n"
7605 msgstr ""
7606
7607 #. type: textblock
7608 #: ../src/guestfs-actions.pod:1012
7609 msgid ""
7610 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7611 "device named C<device>.  For the types of checksums supported see the "
7612 "C<guestfs_checksum> command."
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5533 ../src/guestfs-actions.pod:7142 ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7556
7617 msgid "(Added in 1.3.2)"
7618 msgstr ""
7619
7620 #. type: =head2
7621 #: ../src/guestfs-actions.pod:1021
7622 msgid "guestfs_checksums_out"
7623 msgstr ""
7624
7625 #. type: verbatim
7626 #: ../src/guestfs-actions.pod:1023
7627 #, no-wrap
7628 msgid ""
7629 " int\n"
7630 " guestfs_checksums_out (guestfs_h *g,\n"
7631 "                        const char *csumtype,\n"
7632 "                        const char *directory,\n"
7633 "                        const char *sumsfile);\n"
7634 "\n"
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../src/guestfs-actions.pod:1029 ../fish/guestfish-actions.pod:681
7639 msgid ""
7640 "This command computes the checksums of all regular files in C<directory> and "
7641 "then emits a list of those checksums to the local output file C<sumsfile>."
7642 msgstr ""
7643
7644 #. type: textblock
7645 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:685
7646 msgid ""
7647 "This can be used for verifying the integrity of a virtual machine.  However "
7648 "to be properly secure you should pay attention to the output of the checksum "
7649 "command (it uses the ones from GNU coreutils).  In particular when the "
7650 "filename is not printable, coreutils uses a special backslash syntax.  For "
7651 "more information, see the GNU coreutils info file."
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../src/guestfs-actions.pod:1043
7656 msgid "(Added in 1.3.7)"
7657 msgstr ""
7658
7659 #. type: =head2
7660 #: ../src/guestfs-actions.pod:1045
7661 msgid "guestfs_chmod"
7662 msgstr ""
7663
7664 #. type: verbatim
7665 #: ../src/guestfs-actions.pod:1047
7666 #, no-wrap
7667 msgid ""
7668 " int\n"
7669 " guestfs_chmod (guestfs_h *g,\n"
7670 "                int mode,\n"
7671 "                const char *path);\n"
7672 "\n"
7673 msgstr ""
7674
7675 #. type: textblock
7676 #: ../src/guestfs-actions.pod:1052 ../fish/guestfish-actions.pod:699
7677 msgid ""
7678 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7679 "supported."
7680 msgstr ""
7681
7682 #. type: textblock
7683 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:702
7684 msgid ""
7685 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7686 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7687 "C<700>."
7688 msgstr ""
7689
7690 #. type: textblock
7691 #: ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4812 ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209 ../fish/guestfish-actions.pod:3219
7692 msgid "The mode actually set is affected by the umask."
7693 msgstr ""
7694
7695 #. type: =head2
7696 #: ../src/guestfs-actions.pod:1065
7697 msgid "guestfs_chown"
7698 msgstr ""
7699
7700 #. type: verbatim
7701 #: ../src/guestfs-actions.pod:1067
7702 #, no-wrap
7703 msgid ""
7704 " int\n"
7705 " guestfs_chown (guestfs_h *g,\n"
7706 "                int owner,\n"
7707 "                int group,\n"
7708 "                const char *path);\n"
7709 "\n"
7710 msgstr ""
7711
7712 #. type: textblock
7713 #: ../src/guestfs-actions.pod:1073 ../fish/guestfish-actions.pod:712
7714 msgid "Change the file owner to C<owner> and group to C<group>."
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3655 ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
7719 msgid ""
7720 "Only numeric uid and gid are supported.  If you want to use names, you will "
7721 "need to locate and parse the password file yourself (Augeas support makes "
7722 "this relatively easy)."
7723 msgstr ""
7724
7725 #. type: =head2
7726 #: ../src/guestfs-actions.pod:1083
7727 msgid "guestfs_command"
7728 msgstr ""
7729
7730 #. type: verbatim
7731 #: ../src/guestfs-actions.pod:1085
7732 #, no-wrap
7733 msgid ""
7734 " char *\n"
7735 " guestfs_command (guestfs_h *g,\n"
7736 "                  char *const *arguments);\n"
7737 "\n"
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:722
7742 msgid ""
7743 "This call runs a command from the guest filesystem.  The filesystem must be "
7744 "mounted, and must contain a compatible operating system (ie. something "
7745 "Linux, with the same or compatible processor architecture)."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../src/guestfs-actions.pod:1094
7750 msgid ""
7751 "The single parameter is an argv-style list of arguments.  The first element "
7752 "is the name of the program to run.  Subsequent elements are parameters.  The "
7753 "list must be non-empty (ie. must contain a program name).  Note that the "
7754 "command runs directly, and is I<not> invoked via the shell (see "
7755 "C<guestfs_sh>)."
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../src/guestfs-actions.pod:1101 ../fish/guestfish-actions.pod:734
7760 msgid "The return value is anything printed to I<stdout> by the command."
7761 msgstr ""
7762
7763 #. type: textblock
7764 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:737
7765 msgid ""
7766 "If the command returns a non-zero exit status, then this function returns an "
7767 "error message.  The error message string is the content of I<stderr> from "
7768 "the command."
7769 msgstr ""
7770
7771 #. type: textblock
7772 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:741
7773 msgid ""
7774 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7775 "C</bin>.  If you require a program from another location, you should provide "
7776 "the full path in the first parameter."
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:746
7781 msgid ""
7782 "Shared libraries and data files required by the program must be available on "
7783 "filesystems which are mounted in the correct places.  It is the caller's "
7784 "responsibility to ensure all filesystems that are needed are mounted at the "
7785 "right locations."
7786 msgstr ""
7787
7788 #. type: textblock
7789 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145 ../src/guestfs-actions.pod:1610
7790 msgid "(Added in 0.9.1)"
7791 msgstr ""
7792
7793 #. type: =head2
7794 #: ../src/guestfs-actions.pod:1127
7795 msgid "guestfs_command_lines"
7796 msgstr ""
7797
7798 #. type: verbatim
7799 #: ../src/guestfs-actions.pod:1129
7800 #, no-wrap
7801 msgid ""
7802 " char **\n"
7803 " guestfs_command_lines (guestfs_h *g,\n"
7804 "                        char *const *arguments);\n"
7805 "\n"
7806 msgstr ""
7807
7808 #. type: textblock
7809 #: ../src/guestfs-actions.pod:1133
7810 msgid ""
7811 "This is the same as C<guestfs_command>, but splits the result into a list of "
7812 "lines."
7813 msgstr ""
7814
7815 #. type: textblock
7816 #: ../src/guestfs-actions.pod:1136
7817 msgid "See also: C<guestfs_sh_lines>"
7818 msgstr ""
7819
7820 #. type: =head2
7821 #: ../src/guestfs-actions.pod:1147
7822 msgid "guestfs_config"
7823 msgstr ""
7824
7825 #. type: verbatim
7826 #: ../src/guestfs-actions.pod:1149
7827 #, no-wrap
7828 msgid ""
7829 " int\n"
7830 " guestfs_config (guestfs_h *g,\n"
7831 "                 const char *qemuparam,\n"
7832 "                 const char *qemuvalue);\n"
7833 "\n"
7834 msgstr ""
7835
7836 #. type: textblock
7837 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:771
7838 msgid ""
7839 "This can be used to add arbitrary qemu command line parameters of the form "
7840 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7841 "setting some parameters which would interfere with parameters that we use."
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:776
7846 msgid "The first character of C<param> string must be a C<-> (dash)."
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../src/guestfs-actions.pod:1161 ../fish/guestfish-actions.pod:778
7851 msgid "C<value> can be NULL."
7852 msgstr ""
7853
7854 #. type: =head2
7855 #: ../src/guestfs-actions.pod:1167
7856 msgid "guestfs_copy_size"
7857 msgstr ""
7858
7859 #. type: verbatim
7860 #: ../src/guestfs-actions.pod:1169
7861 #, no-wrap
7862 msgid ""
7863 " int\n"
7864 " guestfs_copy_size (guestfs_h *g,\n"
7865 "                    const char *src,\n"
7866 "                    const char *dest,\n"
7867 "                    int64_t size);\n"
7868 "\n"
7869 msgstr ""
7870
7871 #. type: textblock
7872 #: ../src/guestfs-actions.pod:1175 ../fish/guestfish-actions.pod:784
7873 msgid ""
7874 "This command copies exactly C<size> bytes from one source device or file "
7875 "C<src> to another destination device or file C<dest>."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:787
7880 msgid ""
7881 "Note this will fail if the source is too short or if the destination is not "
7882 "large enough."
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306 ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7262 ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7782
7887 msgid ""
7888 "This long-running command can generate progress notification messages so "
7889 "that the caller can display a progress bar or indicator.  To receive these "
7890 "messages, the caller must register a progress event callback.  See "
7891 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
7892 msgstr ""
7893
7894 #. type: textblock
7895 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7463 ../src/guestfs-actions.pod:7483 ../src/guestfs-actions.pod:7569
7896 msgid "(Added in 1.0.87)"
7897 msgstr ""
7898
7899 #. type: =head2
7900 #: ../src/guestfs-actions.pod:1190
7901 msgid "guestfs_cp"
7902 msgstr ""
7903
7904 #. type: verbatim
7905 #: ../src/guestfs-actions.pod:1192
7906 #, no-wrap
7907 msgid ""
7908 " int\n"
7909 " guestfs_cp (guestfs_h *g,\n"
7910 "             const char *src,\n"
7911 "             const char *dest);\n"
7912 "\n"
7913 msgstr ""
7914
7915 #. type: textblock
7916 #: ../src/guestfs-actions.pod:1197 ../fish/guestfish-actions.pod:794
7917 msgid ""
7918 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7919 "destination filename or destination directory."
7920 msgstr ""
7921
7922 #. type: textblock
7923 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5583
7924 msgid "(Added in 1.0.18)"
7925 msgstr ""
7926
7927 #. type: =head2
7928 #: ../src/guestfs-actions.pod:1204
7929 msgid "guestfs_cp_a"
7930 msgstr ""
7931
7932 #. type: verbatim
7933 #: ../src/guestfs-actions.pod:1206
7934 #, no-wrap
7935 msgid ""
7936 " int\n"
7937 " guestfs_cp_a (guestfs_h *g,\n"
7938 "               const char *src,\n"
7939 "               const char *dest);\n"
7940 "\n"
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:801
7945 msgid ""
7946 "This copies a file or directory from C<src> to C<dest> recursively using the "
7947 "C<cp -a> command."
7948 msgstr ""
7949
7950 #. type: =head2
7951 #: ../src/guestfs-actions.pod:1218
7952 msgid "guestfs_dd"
7953 msgstr ""
7954
7955 #. type: verbatim
7956 #: ../src/guestfs-actions.pod:1220
7957 #, no-wrap
7958 msgid ""
7959 " int\n"
7960 " guestfs_dd (guestfs_h *g,\n"
7961 "             const char *src,\n"
7962 "             const char *dest);\n"
7963 "\n"
7964 msgstr ""
7965
7966 #. type: textblock
7967 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:808
7968 msgid ""
7969 "This command copies from one source device or file C<src> to another "
7970 "destination device or file C<dest>.  Normally you would use this to copy to "
7971 "or from a device or partition, for example to duplicate a filesystem."
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../src/guestfs-actions.pod:1230
7976 msgid ""
7977 "If the destination is a device, it must be as large or larger than the "
7978 "source file or device, otherwise the copy will fail.  This command cannot do "
7979 "partial copies (see C<guestfs_copy_size>)."
7980 msgstr ""
7981
7982 #. type: =head2
7983 #: ../src/guestfs-actions.pod:1238
7984 msgid "guestfs_df"
7985 msgstr ""
7986
7987 #. type: verbatim
7988 #: ../src/guestfs-actions.pod:1240
7989 #, no-wrap
7990 msgid ""
7991 " char *\n"
7992 " guestfs_df (guestfs_h *g);\n"
7993 "\n"
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:821
7998 msgid "This command runs the C<df> command to report disk space used."
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
8003 msgid ""
8004 "This command is mostly useful for interactive sessions.  It is I<not> "
8005 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8006 "from programs."
8007 msgstr ""
8008
8009 #. type: textblock
8010 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6990 ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
8011 msgid "(Added in 1.0.54)"
8012 msgstr ""
8013
8014 #. type: =head2
8015 #: ../src/guestfs-actions.pod:1254
8016 msgid "guestfs_df_h"
8017 msgstr ""
8018
8019 #. type: verbatim
8020 #: ../src/guestfs-actions.pod:1256
8021 #, no-wrap
8022 msgid ""
8023 " char *\n"
8024 " guestfs_df_h (guestfs_h *g);\n"
8025 "\n"
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:831
8030 msgid ""
8031 "This command runs the C<df -h> command to report disk space used in "
8032 "human-readable format."
8033 msgstr ""
8034
8035 #. type: =head2
8036 #: ../src/guestfs-actions.pod:1271
8037 msgid "guestfs_dmesg"
8038 msgstr ""
8039
8040 #. type: verbatim
8041 #: ../src/guestfs-actions.pod:1273
8042 #, no-wrap
8043 msgid ""
8044 " char *\n"
8045 " guestfs_dmesg (guestfs_h *g);\n"
8046 "\n"
8047 msgstr ""
8048
8049 #. type: textblock
8050 #: ../src/guestfs-actions.pod:1276 ../fish/guestfish-actions.pod:842
8051 msgid ""
8052 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8053 "This is sometimes useful for extended debugging of problems."
8054 msgstr ""
8055
8056 #. type: textblock
8057 #: ../src/guestfs-actions.pod:1280
8058 msgid ""
8059 "Another way to get the same information is to enable verbose messages with "
8060 "C<guestfs_set_verbose> or by setting the environment variable "
8061 "C<LIBGUESTFS_DEBUG=1> before running the program."
8062 msgstr ""
8063
8064 #. type: =head2
8065 #: ../src/guestfs-actions.pod:1290
8066 msgid "guestfs_download"
8067 msgstr ""
8068
8069 #. type: verbatim
8070 #: ../src/guestfs-actions.pod:1292
8071 #, no-wrap
8072 msgid ""
8073 " int\n"
8074 " guestfs_download (guestfs_h *g,\n"
8075 "                   const char *remotefilename,\n"
8076 "                   const char *filename);\n"
8077 "\n"
8078 msgstr ""
8079
8080 #. type: textblock
8081 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322 ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
8082 msgid ""
8083 "Download file C<remotefilename> and save it as C<filename> on the local "
8084 "machine."
8085 msgstr ""
8086
8087 #. type: textblock
8088 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7222 ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4797
8089 msgid "C<filename> can also be a named pipe."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../src/guestfs-actions.pod:1302
8094 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8095 msgstr ""
8096
8097 #. type: =head2
8098 #: ../src/guestfs-actions.pod:1313
8099 msgid "guestfs_download_offset"
8100 msgstr ""
8101
8102 #. type: verbatim
8103 #: ../src/guestfs-actions.pod:1315
8104 #, no-wrap
8105 msgid ""
8106 " int\n"
8107 " guestfs_download_offset (guestfs_h *g,\n"
8108 "                          const char *remotefilename,\n"
8109 "                          const char *filename,\n"
8110 "                          int64_t offset,\n"
8111 "                          int64_t size);\n"
8112 "\n"
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:871
8117 msgid ""
8118 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8119 "region must be within the file or device)."
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../src/guestfs-actions.pod:1328
8124 msgid ""
8125 "Note that there is no limit on the amount of data that can be downloaded "
8126 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8127 "full amount unless an error occurs."
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../src/guestfs-actions.pod:1333
8132 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7267
8137 msgid "(Added in 1.5.17)"
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../src/guestfs-actions.pod:1344
8142 msgid "guestfs_drop_caches"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../src/guestfs-actions.pod:1346
8147 #, no-wrap
8148 msgid ""
8149 " int\n"
8150 " guestfs_drop_caches (guestfs_h *g,\n"
8151 "                      int whattodrop);\n"
8152 "\n"
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:887
8157 msgid ""
8158 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8159 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8160 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:892
8165 msgid "Setting C<whattodrop> to 3 should drop everything."
8166 msgstr ""
8167
8168 #. type: textblock
8169 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:894
8170 msgid ""
8171 "This automatically calls L<sync(2)> before the operation, so that the "
8172 "maximum guest memory is freed."
8173 msgstr ""
8174
8175 #. type: =head2
8176 #: ../src/guestfs-actions.pod:1364
8177 msgid "guestfs_du"
8178 msgstr ""
8179
8180 #. type: verbatim
8181 #: ../src/guestfs-actions.pod:1366
8182 #, no-wrap
8183 msgid ""
8184 " int64_t\n"
8185 " guestfs_du (guestfs_h *g,\n"
8186 "             const char *path);\n"
8187 "\n"
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../src/guestfs-actions.pod:1370 ../fish/guestfish-actions.pod:901
8192 msgid ""
8193 "This command runs the C<du -s> command to estimate file space usage for "
8194 "C<path>."
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:904
8199 msgid ""
8200 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8201 "estimate includes the contents of the directory and all subdirectories "
8202 "(recursively)."
8203 msgstr ""
8204
8205 #. type: textblock
8206 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:908
8207 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8208 msgstr ""
8209
8210 #. type: =head2
8211 #: ../src/guestfs-actions.pod:1389
8212 msgid "guestfs_e2fsck_f"
8213 msgstr ""
8214
8215 #. type: verbatim
8216 #: ../src/guestfs-actions.pod:1391
8217 #, no-wrap
8218 msgid ""
8219 " int\n"
8220 " guestfs_e2fsck_f (guestfs_h *g,\n"
8221 "                   const char *device);\n"
8222 "\n"
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:915
8227 msgid ""
8228 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8229 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8230 "clean (I<-f>)."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../src/guestfs-actions.pod:1399
8235 msgid ""
8236 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8237 "Normally you should use C<guestfs_fsck>."
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../src/guestfs-actions.pod:1404
8242 msgid "(Added in 1.0.29)"
8243 msgstr ""
8244
8245 #. type: =head2
8246 #: ../src/guestfs-actions.pod:1406
8247 msgid "guestfs_echo_daemon"
8248 msgstr ""
8249
8250 #. type: verbatim
8251 #: ../src/guestfs-actions.pod:1408
8252 #, no-wrap
8253 msgid ""
8254 " char *\n"
8255 " guestfs_echo_daemon (guestfs_h *g,\n"
8256 "                      char *const *words);\n"
8257 "\n"
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:926
8262 msgid ""
8263 "This command concatenates the list of C<words> passed with single spaces "
8264 "between them and returns the resulting string."
8265 msgstr ""
8266
8267 #. type: textblock
8268 #: ../src/guestfs-actions.pod:1415 ../fish/guestfish-actions.pod:929
8269 msgid "You can use this command to test the connection through to the daemon."
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../src/guestfs-actions.pod:1417
8274 msgid "See also C<guestfs_ping_daemon>."
8275 msgstr ""
8276
8277 #. type: textblock
8278 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2167 ../src/guestfs-actions.pod:6438
8279 msgid "(Added in 1.0.69)"
8280 msgstr ""
8281
8282 #. type: =head2
8283 #: ../src/guestfs-actions.pod:1424
8284 msgid "guestfs_egrep"
8285 msgstr ""
8286
8287 #. type: verbatim
8288 #: ../src/guestfs-actions.pod:1426
8289 #, no-wrap
8290 msgid ""
8291 " char **\n"
8292 " guestfs_egrep (guestfs_h *g,\n"
8293 "                const char *regex,\n"
8294 "                const char *path);\n"
8295 "\n"
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:937
8300 msgid "This calls the external C<egrep> program and returns the matching lines."
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2500 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2568 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6846 ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:7725 ../src/guestfs-actions.pod:7744 ../src/guestfs-actions.pod:7830 ../src/guestfs-actions.pod:7849 ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
8305 msgid "(Added in 1.0.66)"
8306 msgstr ""
8307
8308 #. type: =head2
8309 #: ../src/guestfs-actions.pod:1443
8310 msgid "guestfs_egrepi"
8311 msgstr ""
8312
8313 #. type: verbatim
8314 #: ../src/guestfs-actions.pod:1445
8315 #, no-wrap
8316 msgid ""
8317 " char **\n"
8318 " guestfs_egrepi (guestfs_h *g,\n"
8319 "                 const char *regex,\n"
8320 "                 const char *path);\n"
8321 "\n"
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:947
8326 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8327 msgstr ""
8328
8329 #. type: =head2
8330 #: ../src/guestfs-actions.pod:1462
8331 msgid "guestfs_equal"
8332 msgstr ""
8333
8334 #. type: verbatim
8335 #: ../src/guestfs-actions.pod:1464
8336 #, no-wrap
8337 msgid ""
8338 " int\n"
8339 " guestfs_equal (guestfs_h *g,\n"
8340 "                const char *file1,\n"
8341 "                const char *file2);\n"
8342 "\n"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../src/guestfs-actions.pod:1469 ../fish/guestfish-actions.pod:957
8347 msgid ""
8348 "This compares the two files C<file1> and C<file2> and returns true if their "
8349 "content is exactly equal, or false otherwise."
8350 msgstr ""
8351
8352 #. type: textblock
8353 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:960
8354 msgid "The external L<cmp(1)> program is used for the comparison."
8355 msgstr ""
8356
8357 #. type: =head2
8358 #: ../src/guestfs-actions.pod:1478
8359 msgid "guestfs_exists"
8360 msgstr ""
8361
8362 #. type: verbatim
8363 #: ../src/guestfs-actions.pod:1480
8364 #, no-wrap
8365 msgid ""
8366 " int\n"
8367 " guestfs_exists (guestfs_h *g,\n"
8368 "                 const char *path);\n"
8369 "\n"
8370 msgstr ""
8371
8372 #. type: textblock
8373 #: ../src/guestfs-actions.pod:1484 ../fish/guestfish-actions.pod:966
8374 msgid ""
8375 "This returns C<true> if and only if there is a file, directory (or anything) "
8376 "with the given C<path> name."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../src/guestfs-actions.pod:1487
8381 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8382 msgstr ""
8383
8384 #. type: =head2
8385 #: ../src/guestfs-actions.pod:1493
8386 msgid "guestfs_fallocate"
8387 msgstr ""
8388
8389 #. type: verbatim
8390 #: ../src/guestfs-actions.pod:1495
8391 #, no-wrap
8392 msgid ""
8393 " int\n"
8394 " guestfs_fallocate (guestfs_h *g,\n"
8395 "                    const char *path,\n"
8396 "                    int len);\n"
8397 "\n"
8398 msgstr ""
8399
8400 #. type: textblock
8401 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
8402 msgid ""
8403 "This command preallocates a file (containing zero bytes) named C<path> of "
8404 "size C<len> bytes.  If the file exists already, it is overwritten."
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:979
8409 msgid ""
8410 "Do not confuse this with the guestfish-specific C<alloc> command which "
8411 "allocates a file in the host and attaches it as a device."
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:983
8416 msgid ""
8417 "This function is deprecated.  In new code, use the C<fallocate64> call "
8418 "instead."
8419 msgstr ""
8420
8421 #. type: =head2
8422 #: ../src/guestfs-actions.pod:1519
8423 msgid "guestfs_fallocate64"
8424 msgstr ""
8425
8426 #. type: verbatim
8427 #: ../src/guestfs-actions.pod:1521
8428 #, no-wrap
8429 msgid ""
8430 " int\n"
8431 " guestfs_fallocate64 (guestfs_h *g,\n"
8432 "                      const char *path,\n"
8433 "                      int64_t len);\n"
8434 "\n"
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../src/guestfs-actions.pod:1530
8439 msgid ""
8440 "Note that this call allocates disk blocks for the file.  To create a sparse "
8441 "file use C<guestfs_truncate_size> instead."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../src/guestfs-actions.pod:1533
8446 msgid ""
8447 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8448 "oversight it only allowed 30 bit lengths to be specified, effectively "
8449 "limiting the maximum size of files created through that call to 1GB."
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1006
8454 msgid ""
8455 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8456 "commands which create a file in the host and attach it as a device."
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../src/guestfs-actions.pod:1544
8461 msgid "(Added in 1.3.17)"
8462 msgstr ""
8463
8464 #. type: =head2
8465 #: ../src/guestfs-actions.pod:1546
8466 msgid "guestfs_fgrep"
8467 msgstr ""
8468
8469 #. type: verbatim
8470 #: ../src/guestfs-actions.pod:1548
8471 #, no-wrap
8472 msgid ""
8473 " char **\n"
8474 " guestfs_fgrep (guestfs_h *g,\n"
8475 "                const char *pattern,\n"
8476 "                const char *path);\n"
8477 "\n"
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../src/guestfs-actions.pod:1553 ../fish/guestfish-actions.pod:1014
8482 msgid "This calls the external C<fgrep> program and returns the matching lines."
8483 msgstr ""
8484
8485 #. type: =head2
8486 #: ../src/guestfs-actions.pod:1565
8487 msgid "guestfs_fgrepi"
8488 msgstr ""
8489
8490 #. type: verbatim
8491 #: ../src/guestfs-actions.pod:1567
8492 #, no-wrap
8493 msgid ""
8494 " char **\n"
8495 " guestfs_fgrepi (guestfs_h *g,\n"
8496 "                 const char *pattern,\n"
8497 "                 const char *path);\n"
8498 "\n"
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1024
8503 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8504 msgstr ""
8505
8506 #. type: =head2
8507 #: ../src/guestfs-actions.pod:1584
8508 msgid "guestfs_file"
8509 msgstr ""
8510
8511 #. type: verbatim
8512 #: ../src/guestfs-actions.pod:1586
8513 #, no-wrap
8514 msgid ""
8515 " char *\n"
8516 " guestfs_file (guestfs_h *g,\n"
8517 "               const char *path);\n"
8518 "\n"
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1034
8523 msgid ""
8524 "This call uses the standard L<file(1)> command to determine the type or "
8525 "contents of the file."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1037
8530 msgid ""
8531 "This call will also transparently look inside various types of compressed "
8532 "file."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1040
8537 msgid ""
8538 "The exact command which runs is C<file -zb path>.  Note in particular that "
8539 "the filename is not prepended to the output (the I<-b> option)."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1044
8544 msgid ""
8545 "The output depends on the output of the underlying L<file(1)> command and it "
8546 "can change in future in ways beyond our control.  In other words, the output "
8547 "is not guaranteed by the ABI."
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../src/guestfs-actions.pod:1604
8552 msgid ""
8553 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
8554 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../src/guestfs-actions.pod:1612
8559 msgid "guestfs_file_architecture"
8560 msgstr ""
8561
8562 #. type: verbatim
8563 #: ../src/guestfs-actions.pod:1614
8564 #, no-wrap
8565 msgid ""
8566 " char *\n"
8567 " guestfs_file_architecture (guestfs_h *g,\n"
8568 "                            const char *filename);\n"
8569 "\n"
8570 msgstr ""
8571
8572 #. type: textblock
8573 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1055
8574 msgid ""
8575 "This detects the architecture of the binary C<filename>, and returns it if "
8576 "known."
8577 msgstr ""
8578
8579 #. type: textblock
8580 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1058
8581 msgid "Currently defined architectures are:"
8582 msgstr ""
8583
8584 #. type: =item
8585 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1062
8586 msgid "\"i386\""
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1064
8591 msgid ""
8592 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8593 "irrespective of the precise processor requirements of the binary."
8594 msgstr ""
8595
8596 #. type: =item
8597 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1067
8598 msgid "\"x86_64\""
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1069
8603 msgid "64 bit x86-64."
8604 msgstr ""
8605
8606 #. type: =item
8607 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1071
8608 msgid "\"sparc\""
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1073
8613 msgid "32 bit SPARC."
8614 msgstr ""
8615
8616 #. type: =item
8617 #: ../src/guestfs-actions.pod:1638 ../fish/guestfish-actions.pod:1075
8618 msgid "\"sparc64\""
8619 msgstr ""
8620
8621 #. type: textblock
8622 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1077
8623 msgid "64 bit SPARC V9 and above."
8624 msgstr ""
8625
8626 #. type: =item
8627 #: ../src/guestfs-actions.pod:1642 ../fish/guestfish-actions.pod:1079
8628 msgid "\"ia64\""
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1081
8633 msgid "Intel Itanium."
8634 msgstr ""
8635
8636 #. type: =item
8637 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1083
8638 msgid "\"ppc\""
8639 msgstr ""
8640
8641 #. type: textblock
8642 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1085
8643 msgid "32 bit Power PC."
8644 msgstr ""
8645
8646 #. type: =item
8647 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1087
8648 msgid "\"ppc64\""
8649 msgstr ""
8650
8651 #. type: textblock
8652 #: ../src/guestfs-actions.pod:1652 ../fish/guestfish-actions.pod:1089
8653 msgid "64 bit Power PC."
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1093
8658 msgid "Libguestfs may return other architecture strings in future."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1095
8663 msgid "The function works on at least the following types of files:"
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1101
8668 msgid "many types of Un*x and Linux binary"
8669 msgstr ""
8670
8671 #. type: textblock
8672 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1105
8673 msgid "many types of Un*x and Linux shared library"
8674 msgstr ""
8675
8676 #. type: textblock
8677 #: ../src/guestfs-actions.pod:1672 ../fish/guestfish-actions.pod:1109
8678 msgid "Windows Win32 and Win64 binaries"
8679 msgstr ""
8680
8681 #. type: textblock
8682 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1113
8683 msgid "Windows Win32 and Win64 DLLs"
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../src/guestfs-actions.pod:1678 ../fish/guestfish-actions.pod:1115
8688 msgid "Win32 binaries and DLLs return C<i386>."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../src/guestfs-actions.pod:1680 ../fish/guestfish-actions.pod:1117
8693 msgid "Win64 binaries and DLLs return C<x86_64>."
8694 msgstr ""
8695
8696 #. type: textblock
8697 #: ../src/guestfs-actions.pod:1684 ../fish/guestfish-actions.pod:1121
8698 msgid "Linux kernel modules"
8699 msgstr ""
8700
8701 #. type: textblock
8702 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1125
8703 msgid "Linux new-style initrd images"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1129
8708 msgid "some non-x86 Linux vmlinuz kernels"
8709 msgstr ""
8710
8711 #. type: textblock
8712 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1133
8713 msgid "What it can't do currently:"
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../src/guestfs-actions.pod:1702 ../fish/guestfish-actions.pod:1139
8718 msgid "static libraries (libfoo.a)"
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../src/guestfs-actions.pod:1706 ../fish/guestfish-actions.pod:1143
8723 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1147
8728 msgid "x86 Linux vmlinuz kernels"
8729 msgstr ""
8730
8731 #. type: textblock
8732 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1149
8733 msgid ""
8734 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8735 "compressed code, and are horribly hard to unpack.  If you want to find the "
8736 "architecture of a kernel, use the architecture of the associated initrd or "
8737 "kernel module(s) instead."
8738 msgstr ""
8739
8740 #. type: textblock
8741 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:3002 ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3170 ../src/guestfs-actions.pod:3407 ../src/guestfs-actions.pod:3539
8742 msgid "(Added in 1.5.3)"
8743 msgstr ""
8744
8745 #. type: =head2
8746 #: ../src/guestfs-actions.pod:1724
8747 msgid "guestfs_filesize"
8748 msgstr ""
8749
8750 #. type: verbatim
8751 #: ../src/guestfs-actions.pod:1726
8752 #, no-wrap
8753 msgid ""
8754 " int64_t\n"
8755 " guestfs_filesize (guestfs_h *g,\n"
8756 "                   const char *file);\n"
8757 "\n"
8758 msgstr ""
8759
8760 #. type: textblock
8761 #: ../src/guestfs-actions.pod:1730 ../fish/guestfish-actions.pod:1160
8762 msgid "This command returns the size of C<file> in bytes."
8763 msgstr ""
8764
8765 #. type: textblock
8766 #: ../src/guestfs-actions.pod:1732
8767 msgid ""
8768 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
8769 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
8770 "devices, use C<guestfs_blockdev_getsize64>."
8771 msgstr ""
8772
8773 #. type: textblock
8774 #: ../src/guestfs-actions.pod:1738
8775 msgid "(Added in 1.0.82)"
8776 msgstr ""
8777
8778 #. type: =head2
8779 #: ../src/guestfs-actions.pod:1740
8780 msgid "guestfs_fill"
8781 msgstr ""
8782
8783 #. type: verbatim
8784 #: ../src/guestfs-actions.pod:1742
8785 #, no-wrap
8786 msgid ""
8787 " int\n"
8788 " guestfs_fill (guestfs_h *g,\n"
8789 "               int c,\n"
8790 "               int len,\n"
8791 "               const char *path);\n"
8792 "\n"
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1170
8797 msgid ""
8798 "This command creates a new file called C<path>.  The initial content of the "
8799 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8800 "C<[0..255]>."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../src/guestfs-actions.pod:1752
8805 msgid ""
8806 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8807 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
8808 "bytes use C<guestfs_fill_pattern>."
8809 msgstr ""
8810
8811 #. type: textblock
8812 #: ../src/guestfs-actions.pod:1764
8813 msgid "(Added in 1.0.79)"
8814 msgstr ""
8815
8816 #. type: =head2
8817 #: ../src/guestfs-actions.pod:1766
8818 msgid "guestfs_fill_pattern"
8819 msgstr ""
8820
8821 #. type: verbatim
8822 #: ../src/guestfs-actions.pod:1768
8823 #, no-wrap
8824 msgid ""
8825 " int\n"
8826 " guestfs_fill_pattern (guestfs_h *g,\n"
8827 "                       const char *pattern,\n"
8828 "                       int len,\n"
8829 "                       const char *path);\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../src/guestfs-actions.pod:1774
8835 msgid ""
8836 "This function is like C<guestfs_fill> except that it creates a new file of "
8837 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
8838 "pattern is truncated if necessary to ensure the length of the file is "
8839 "exactly C<len> bytes."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1786
8844 msgid "(Added in 1.3.12)"
8845 msgstr ""
8846
8847 #. type: =head2
8848 #: ../src/guestfs-actions.pod:1788
8849 msgid "guestfs_find"
8850 msgstr ""
8851
8852 #. type: verbatim
8853 #: ../src/guestfs-actions.pod:1790
8854 #, no-wrap
8855 msgid ""
8856 " char **\n"
8857 " guestfs_find (guestfs_h *g,\n"
8858 "               const char *directory);\n"
8859 "\n"
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../src/guestfs-actions.pod:1794 ../fish/guestfish-actions.pod:1192
8864 msgid ""
8865 "This command lists out all files and directories, recursively, starting at "
8866 "C<directory>.  It is essentially equivalent to running the shell command "
8867 "C<find directory -print> but some post-processing happens on the output, "
8868 "described below."
8869 msgstr ""
8870
8871 #. type: textblock
8872 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1197
8873 msgid ""
8874 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8875 "structure was:"
8876 msgstr ""
8877
8878 #. type: verbatim
8879 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1200
8880 #, no-wrap
8881 msgid ""
8882 " /tmp/a\n"
8883 " /tmp/b\n"
8884 " /tmp/c/d\n"
8885 "\n"
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../src/guestfs-actions.pod:1806
8890 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
8891 msgstr ""
8892
8893 #. type: verbatim
8894 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1207
8895 #, no-wrap
8896 msgid ""
8897 " a\n"
8898 " b\n"
8899 " c\n"
8900 " c/d\n"
8901 "\n"
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1212
8906 msgid "If C<directory> is not a directory, then this command returns an error."
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1215
8911 msgid "The returned list is sorted."
8912 msgstr ""
8913
8914 #. type: textblock
8915 #: ../src/guestfs-actions.pod:1819
8916 msgid "See also C<guestfs_find0>."
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:6001
8921 msgid "(Added in 1.0.27)"
8922 msgstr ""
8923
8924 #. type: =head2
8925 #: ../src/guestfs-actions.pod:1830
8926 msgid "guestfs_find0"
8927 msgstr ""
8928
8929 #. type: verbatim
8930 #: ../src/guestfs-actions.pod:1832
8931 #, no-wrap
8932 msgid ""
8933 " int\n"
8934 " guestfs_find0 (guestfs_h *g,\n"
8935 "                const char *directory,\n"
8936 "                const char *files);\n"
8937 "\n"
8938 msgstr ""
8939
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1226
8942 msgid ""
8943 "This command lists out all files and directories, recursively, starting at "
8944 "C<directory>, placing the resulting list in the external file called "
8945 "C<files>."
8946 msgstr ""
8947
8948 #. type: textblock
8949 #: ../src/guestfs-actions.pod:1841
8950 msgid ""
8951 "This command works the same way as C<guestfs_find> with the following "
8952 "exceptions:"
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1237
8957 msgid "The resulting list is written to an external file."
8958 msgstr ""
8959
8960 #. type: textblock
8961 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1241
8962 msgid ""
8963 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8964 "L<find(1)> option I<-print0>."
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1246
8969 msgid "This command is not limited in the number of names that it can return."
8970 msgstr ""
8971
8972 #. type: textblock
8973 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1251
8974 msgid "The result list is not sorted."
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../src/guestfs-actions.pod:1868
8979 msgid "(Added in 1.0.74)"
8980 msgstr ""
8981
8982 #. type: =head2
8983 #: ../src/guestfs-actions.pod:1870
8984 msgid "guestfs_findfs_label"
8985 msgstr ""
8986
8987 #. type: verbatim
8988 #: ../src/guestfs-actions.pod:1872
8989 #, no-wrap
8990 msgid ""
8991 " char *\n"
8992 " guestfs_findfs_label (guestfs_h *g,\n"
8993 "                       const char *label);\n"
8994 "\n"
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1261
8999 msgid ""
9000 "This command searches the filesystems and returns the one which has the "
9001 "given label.  An error is returned if no such filesystem can be found."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../src/guestfs-actions.pod:1880
9006 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9007 msgstr ""
9008
9009 #. type: =head2
9010 #: ../src/guestfs-actions.pod:1887
9011 msgid "guestfs_findfs_uuid"
9012 msgstr ""
9013
9014 #. type: verbatim
9015 #: ../src/guestfs-actions.pod:1889
9016 #, no-wrap
9017 msgid ""
9018 " char *\n"
9019 " guestfs_findfs_uuid (guestfs_h *g,\n"
9020 "                      const char *uuid);\n"
9021 "\n"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../src/guestfs-actions.pod:1893 ../fish/guestfish-actions.pod:1271
9026 msgid ""
9027 "This command searches the filesystems and returns the one which has the "
9028 "given UUID.  An error is returned if no such filesystem can be found."
9029 msgstr ""
9030
9031 #. type: textblock
9032 #: ../src/guestfs-actions.pod:1897
9033 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9034 msgstr ""
9035
9036 #. type: =head2
9037 #: ../src/guestfs-actions.pod:1904
9038 msgid "guestfs_fsck"
9039 msgstr ""
9040
9041 #. type: verbatim
9042 #: ../src/guestfs-actions.pod:1906
9043 #, no-wrap
9044 msgid ""
9045 " int\n"
9046 " guestfs_fsck (guestfs_h *g,\n"
9047 "               const char *fstype,\n"
9048 "               const char *device);\n"
9049 "\n"
9050 msgstr ""
9051
9052 #. type: textblock
9053 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1281
9054 msgid ""
9055 "This runs the filesystem checker (fsck) on C<device> which should have "
9056 "filesystem type C<fstype>."
9057 msgstr ""
9058
9059 #. type: textblock
9060 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1284
9061 msgid ""
9062 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9063 "codes from C<fsck>."
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1293
9068 msgid "Multiple status codes can be summed together."
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1297
9073 msgid ""
9074 "A non-zero return code can mean \"success\", for example if errors have been "
9075 "corrected on the filesystem."
9076 msgstr ""
9077
9078 #. type: textblock
9079 #: ../src/guestfs-actions.pod:1932 ../fish/guestfish-actions.pod:1302
9080 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9081 msgstr ""
9082
9083 #. type: textblock
9084 #: ../src/guestfs-actions.pod:1937 ../fish/guestfish-actions.pod:1307
9085 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7768
9090 msgid "(Added in 1.0.16)"
9091 msgstr ""
9092
9093 #. type: =head2
9094 #: ../src/guestfs-actions.pod:1943
9095 msgid "guestfs_get_append"
9096 msgstr ""
9097
9098 #. type: verbatim
9099 #: ../src/guestfs-actions.pod:1945
9100 #, no-wrap
9101 msgid ""
9102 " const char *\n"
9103 " guestfs_get_append (guestfs_h *g);\n"
9104 "\n"
9105 msgstr ""
9106
9107 #. type: textblock
9108 #: ../src/guestfs-actions.pod:1948 ../fish/guestfish-actions.pod:1313
9109 msgid ""
9110 "Return the additional kernel options which are added to the guest kernel "
9111 "command line."
9112 msgstr ""
9113
9114 #. type: textblock
9115 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1316
9116 msgid "If C<NULL> then no options are added."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../src/guestfs-actions.pod:1953
9121 msgid ""
9122 "This function returns a string which may be NULL.  There is no way to return "
9123 "an error from this function.  The string is owned by the guest handle and "
9124 "must I<not> be freed."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:6161 ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7414 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7811
9129 msgid "(Added in 1.0.26)"
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../src/guestfs-actions.pod:1959
9134 msgid "guestfs_get_attach_method"
9135 msgstr ""
9136
9137 #. type: verbatim
9138 #: ../src/guestfs-actions.pod:1961
9139 #, no-wrap
9140 msgid ""
9141 " char *\n"
9142 " guestfs_get_attach_method (guestfs_h *g);\n"
9143 "\n"
9144 msgstr ""
9145
9146 #. type: textblock
9147 #: ../src/guestfs-actions.pod:1964
9148 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
9149 msgstr ""
9150
9151 #. type: textblock
9152 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6191
9153 msgid "(Added in 1.9.8)"
9154 msgstr ""
9155
9156 #. type: =head2
9157 #: ../src/guestfs-actions.pod:1971
9158 msgid "guestfs_get_autosync"
9159 msgstr ""
9160
9161 #. type: verbatim
9162 #: ../src/guestfs-actions.pod:1973
9163 #, no-wrap
9164 msgid ""
9165 " int\n"
9166 " guestfs_get_autosync (guestfs_h *g);\n"
9167 "\n"
9168 msgstr ""
9169
9170 #. type: textblock
9171 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1328
9172 msgid "Get the autosync flag."
9173 msgstr ""
9174
9175 #. type: =head2
9176 #: ../src/guestfs-actions.pod:1982
9177 msgid "guestfs_get_direct"
9178 msgstr ""
9179
9180 #. type: verbatim
9181 #: ../src/guestfs-actions.pod:1984
9182 #, no-wrap
9183 msgid ""
9184 " int\n"
9185 " guestfs_get_direct (guestfs_h *g);\n"
9186 "\n"
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1334
9191 msgid "Return the direct appliance mode flag."
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6232
9196 msgid "(Added in 1.0.72)"
9197 msgstr ""
9198
9199 #. type: =head2
9200 #: ../src/guestfs-actions.pod:1993
9201 msgid "guestfs_get_e2label"
9202 msgstr ""
9203
9204 #. type: verbatim
9205 #: ../src/guestfs-actions.pod:1995
9206 #, no-wrap
9207 msgid ""
9208 " char *\n"
9209 " guestfs_get_e2label (guestfs_h *g,\n"
9210 "                      const char *device);\n"
9211 "\n"
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../src/guestfs-actions.pod:1999 ../fish/guestfish-actions.pod:1340
9216 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../src/guestfs-actions.pod:2005 ../fish/guestfish-actions.pod:1343
9221 msgid ""
9222 "This function is deprecated.  In new code, use the C<vfs_label> call "
9223 "instead."
9224 msgstr ""
9225
9226 #. type: textblock
9227 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6269
9228 msgid "(Added in 1.0.15)"
9229 msgstr ""
9230
9231 #. type: =head2
9232 #: ../src/guestfs-actions.pod:2014
9233 msgid "guestfs_get_e2uuid"
9234 msgstr ""
9235
9236 #. type: verbatim
9237 #: ../src/guestfs-actions.pod:2016
9238 #, no-wrap
9239 msgid ""
9240 " char *\n"
9241 " guestfs_get_e2uuid (guestfs_h *g,\n"
9242 "                     const char *device);\n"
9243 "\n"
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../src/guestfs-actions.pod:2020 ../fish/guestfish-actions.pod:1354
9248 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1357
9253 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9254 msgstr ""
9255
9256 #. type: =head2
9257 #: ../src/guestfs-actions.pod:2035
9258 msgid "guestfs_get_memsize"
9259 msgstr ""
9260
9261 #. type: verbatim
9262 #: ../src/guestfs-actions.pod:2037
9263 #, no-wrap
9264 msgid ""
9265 " int\n"
9266 " guestfs_get_memsize (guestfs_h *g);\n"
9267 "\n"
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1368
9272 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../src/guestfs-actions.pod:2043
9277 msgid ""
9278 "If C<guestfs_set_memsize> was not called on this handle, and if "
9279 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9280 "value for memsize."
9281 msgstr ""
9282
9283 #. type: textblock
9284 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2137 ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6409 ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432 ../fish/guestfish-actions.pod:4157 ../fish/guestfish-actions.pod:4259
9285 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9286 msgstr ""
9287
9288 #. type: textblock
9289 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:5904 ../src/guestfs-actions.pod:6290 ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:7183
9290 msgid "(Added in 1.0.55)"
9291 msgstr ""
9292
9293 #. type: =head2
9294 #: ../src/guestfs-actions.pod:2054
9295 msgid "guestfs_get_network"
9296 msgstr ""
9297
9298 #. type: verbatim
9299 #: ../src/guestfs-actions.pod:2056
9300 #, no-wrap
9301 msgid ""
9302 " int\n"
9303 " guestfs_get_network (guestfs_h *g);\n"
9304 "\n"
9305 msgstr ""
9306
9307 #. type: textblock
9308 #: ../src/guestfs-actions.pod:2059 ../fish/guestfish-actions.pod:1382
9309 msgid "This returns the enable network flag."
9310 msgstr ""
9311
9312 #. type: textblock
9313 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6309
9314 msgid "(Added in 1.5.4)"
9315 msgstr ""
9316
9317 #. type: =head2
9318 #: ../src/guestfs-actions.pod:2065
9319 msgid "guestfs_get_path"
9320 msgstr ""
9321
9322 #. type: verbatim
9323 #: ../src/guestfs-actions.pod:2067
9324 #, no-wrap
9325 msgid ""
9326 " const char *\n"
9327 " guestfs_get_path (guestfs_h *g);\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../src/guestfs-actions.pod:2070 ../fish/guestfish-actions.pod:1388
9333 msgid "Return the current search path."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1390
9338 msgid ""
9339 "This is always non-NULL.  If it wasn't set already, then this will return "
9340 "the default path."
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2113
9345 msgid ""
9346 "This function returns a string, or NULL on error.  The string is owned by "
9347 "the guest handle and must I<not> be freed."
9348 msgstr ""
9349
9350 #. type: =head2
9351 #: ../src/guestfs-actions.pod:2080
9352 msgid "guestfs_get_pgroup"
9353 msgstr ""
9354
9355 #. type: verbatim
9356 #: ../src/guestfs-actions.pod:2082
9357 #, no-wrap
9358 msgid ""
9359 " int\n"
9360 " guestfs_get_pgroup (guestfs_h *g);\n"
9361 "\n"
9362 msgstr ""
9363
9364 #. type: textblock
9365 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1397
9366 msgid "This returns the process group flag."
9367 msgstr ""
9368
9369 #. type: =head2
9370 #: ../src/guestfs-actions.pod:2089
9371 msgid "guestfs_get_pid"
9372 msgstr ""
9373
9374 #. type: verbatim
9375 #: ../src/guestfs-actions.pod:2091
9376 #, no-wrap
9377 msgid ""
9378 " int\n"
9379 " guestfs_get_pid (guestfs_h *g);\n"
9380 "\n"
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../src/guestfs-actions.pod:2094 ../fish/guestfish-actions.pod:1405
9385 msgid ""
9386 "Return the process ID of the qemu subprocess.  If there is no qemu "
9387 "subprocess, then this will return an error."
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../src/guestfs-actions.pod:2097 ../fish/guestfish-actions.pod:1408
9392 msgid "This is an internal call used for debugging and testing."
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../src/guestfs-actions.pod:2101
9397 msgid "(Added in 1.0.56)"
9398 msgstr ""
9399
9400 #. type: =head2
9401 #: ../src/guestfs-actions.pod:2103
9402 msgid "guestfs_get_qemu"
9403 msgstr ""
9404
9405 #. type: verbatim
9406 #: ../src/guestfs-actions.pod:2105
9407 #, no-wrap
9408 msgid ""
9409 " const char *\n"
9410 " guestfs_get_qemu (guestfs_h *g);\n"
9411 "\n"
9412 msgstr ""
9413
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1414
9416 msgid "Return the current qemu binary."
9417 msgstr ""
9418
9419 #. type: textblock
9420 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1416
9421 msgid ""
9422 "This is always non-NULL.  If it wasn't set already, then this will return "
9423 "the default qemu binary name."
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../src/guestfs-actions.pod:2116 ../src/guestfs-actions.pod:6371
9428 msgid "(Added in 1.0.6)"
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../src/guestfs-actions.pod:2118
9433 msgid "guestfs_get_recovery_proc"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../src/guestfs-actions.pod:2120
9438 #, no-wrap
9439 msgid ""
9440 " int\n"
9441 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9442 "\n"
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../src/guestfs-actions.pod:2123 ../fish/guestfish-actions.pod:1423
9447 msgid "Return the recovery process enabled flag."
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:7086 ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7298
9452 msgid "(Added in 1.0.77)"
9453 msgstr ""
9454
9455 #. type: =head2
9456 #: ../src/guestfs-actions.pod:2129
9457 msgid "guestfs_get_selinux"
9458 msgstr ""
9459
9460 #. type: verbatim
9461 #: ../src/guestfs-actions.pod:2131
9462 #, no-wrap
9463 msgid ""
9464 " int\n"
9465 " guestfs_get_selinux (guestfs_h *g);\n"
9466 "\n"
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../src/guestfs-actions.pod:2134
9471 msgid ""
9472 "This returns the current setting of the selinux flag which is passed to the "
9473 "appliance at boot time.  See C<guestfs_set_selinux>."
9474 msgstr ""
9475
9476 #. type: textblock
9477 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6472
9478 msgid "(Added in 1.0.67)"
9479 msgstr ""
9480
9481 #. type: =head2
9482 #: ../src/guestfs-actions.pod:2144
9483 msgid "guestfs_get_state"
9484 msgstr ""
9485
9486 #. type: verbatim
9487 #: ../src/guestfs-actions.pod:2146
9488 #, no-wrap
9489 msgid ""
9490 " int\n"
9491 " guestfs_get_state (guestfs_h *g);\n"
9492 "\n"
9493 msgstr ""
9494
9495 #. type: textblock
9496 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1439
9497 msgid ""
9498 "This returns the current state as an opaque integer.  This is only useful "
9499 "for printing debug and internal error messages."
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3522 ../src/guestfs-actions.pod:3549 ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2434
9504 msgid "For more information on states, see L<guestfs(3)>."
9505 msgstr ""
9506
9507 #. type: =head2
9508 #: ../src/guestfs-actions.pod:2158
9509 msgid "guestfs_get_trace"
9510 msgstr ""
9511
9512 #. type: verbatim
9513 #: ../src/guestfs-actions.pod:2160
9514 #, no-wrap
9515 msgid ""
9516 " int\n"
9517 " guestfs_get_trace (guestfs_h *g);\n"
9518 "\n"
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1448
9523 msgid "Return the command trace flag."
9524 msgstr ""
9525
9526 #. type: =head2
9527 #: ../src/guestfs-actions.pod:2169
9528 msgid "guestfs_get_umask"
9529 msgstr ""
9530
9531 #. type: verbatim
9532 #: ../src/guestfs-actions.pod:2171
9533 #, no-wrap
9534 msgid ""
9535 " int\n"
9536 " guestfs_get_umask (guestfs_h *g);\n"
9537 "\n"
9538 msgstr ""
9539
9540 #. type: textblock
9541 #: ../src/guestfs-actions.pod:2174
9542 msgid ""
9543 "Return the current umask.  By default the umask is C<022> unless it has been "
9544 "set by calling C<guestfs_umask>."
9545 msgstr ""
9546
9547 #. type: =head2
9548 #: ../src/guestfs-actions.pod:2181
9549 msgid "guestfs_get_verbose"
9550 msgstr ""
9551
9552 #. type: verbatim
9553 #: ../src/guestfs-actions.pod:2183
9554 #, no-wrap
9555 msgid ""
9556 " int\n"
9557 " guestfs_get_verbose (guestfs_h *g);\n"
9558 "\n"
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1461
9563 msgid "This returns the verbose messages flag."
9564 msgstr ""
9565
9566 #. type: =head2
9567 #: ../src/guestfs-actions.pod:2192
9568 msgid "guestfs_getcon"
9569 msgstr ""
9570
9571 #. type: verbatim
9572 #: ../src/guestfs-actions.pod:2194
9573 #, no-wrap
9574 msgid ""
9575 " char *\n"
9576 " guestfs_getcon (guestfs_h *g);\n"
9577 "\n"
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1467
9582 msgid "This gets the SELinux security context of the daemon."
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../src/guestfs-actions.pod:2199
9587 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9588 msgstr ""
9589
9590 #. type: =head2
9591 #: ../src/guestfs-actions.pod:2207
9592 msgid "guestfs_getxattr"
9593 msgstr ""
9594
9595 #. type: verbatim
9596 #: ../src/guestfs-actions.pod:2209
9597 #, no-wrap
9598 msgid ""
9599 " char *\n"
9600 " guestfs_getxattr (guestfs_h *g,\n"
9601 "                   const char *path,\n"
9602 "                   const char *name,\n"
9603 "                   size_t *size_r);\n"
9604 "\n"
9605 msgstr ""
9606
9607 #. type: textblock
9608 #: ../src/guestfs-actions.pod:2215
9609 msgid ""
9610 "Get a single extended attribute from file C<path> named C<name>.  This call "
9611 "follows symlinks.  If you want to lookup an extended attribute for the "
9612 "symlink itself, use C<guestfs_lgetxattr>."
9613 msgstr ""
9614
9615 #. type: textblock
9616 #: ../src/guestfs-actions.pod:2219 ../src/guestfs-actions.pod:3675
9617 msgid ""
9618 "Normally it is better to get all extended attributes from a file in one go "
9619 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9620 "implementations are buggy and do not provide a way to list out attributes.  "
9621 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9622 "extended attributes you want in advance and call this function."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682 ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
9627 msgid ""
9628 "Extended attribute values are blobs of binary data.  If there is no extended "
9629 "attribute named C<name>, this returns an error."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../src/guestfs-actions.pod:2229
9634 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:2422 ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5809
9639 msgid ""
9640 "This function returns a buffer, or NULL on error.  The size of the returned "
9641 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9642 "after use>."
9643 msgstr ""
9644
9645 #. type: textblock
9646 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:3691
9647 msgid "(Added in 1.7.24)"
9648 msgstr ""
9649
9650 #. type: =head2
9651 #: ../src/guestfs-actions.pod:2237
9652 msgid "guestfs_getxattrs"
9653 msgstr ""
9654
9655 #. type: verbatim
9656 #: ../src/guestfs-actions.pod:2239
9657 #, no-wrap
9658 msgid ""
9659 " struct guestfs_xattr_list *\n"
9660 " guestfs_getxattrs (guestfs_h *g,\n"
9661 "                    const char *path);\n"
9662 "\n"
9663 msgstr ""
9664
9665 #. type: textblock
9666 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1496
9667 msgid "This call lists the extended attributes of the file or directory C<path>."
9668 msgstr ""
9669
9670 #. type: textblock
9671 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1499
9672 msgid ""
9673 "At the system call level, this is a combination of the L<listxattr(2)> and "
9674 "L<getxattr(2)> calls."
9675 msgstr ""
9676
9677 #. type: textblock
9678 #: ../src/guestfs-actions.pod:2249
9679 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:4391
9684 msgid ""
9685 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9686 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9687 msgstr ""
9688
9689 #. type: textblock
9690 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7876
9691 msgid "(Added in 1.0.59)"
9692 msgstr ""
9693
9694 #. type: =head2
9695 #: ../src/guestfs-actions.pod:2257
9696 msgid "guestfs_glob_expand"
9697 msgstr ""
9698
9699 #. type: verbatim
9700 #: ../src/guestfs-actions.pod:2259
9701 #, no-wrap
9702 msgid ""
9703 " char **\n"
9704 " guestfs_glob_expand (guestfs_h *g,\n"
9705 "                      const char *pattern);\n"
9706 "\n"
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1508
9711 msgid ""
9712 "This command searches for all the pathnames matching C<pattern> according to "
9713 "the wildcard expansion rules used by the shell."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1512
9718 msgid "If no paths match, then this returns an empty list (note: not an error)."
9719 msgstr ""
9720
9721 #. type: textblock
9722 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1515
9723 msgid ""
9724 "It is just a wrapper around the C L<glob(3)> function with flags "
9725 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6701
9730 msgid "(Added in 1.0.50)"
9731 msgstr ""
9732
9733 #. type: =head2
9734 #: ../src/guestfs-actions.pod:2280
9735 msgid "guestfs_grep"
9736 msgstr ""
9737
9738 #. type: verbatim
9739 #: ../src/guestfs-actions.pod:2282
9740 #, no-wrap
9741 msgid ""
9742 " char **\n"
9743 " guestfs_grep (guestfs_h *g,\n"
9744 "               const char *regex,\n"
9745 "               const char *path);\n"
9746 "\n"
9747 msgstr ""
9748
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1523
9751 msgid "This calls the external C<grep> program and returns the matching lines."
9752 msgstr ""
9753
9754 #. type: =head2
9755 #: ../src/guestfs-actions.pod:2299
9756 msgid "guestfs_grepi"
9757 msgstr ""
9758
9759 #. type: verbatim
9760 #: ../src/guestfs-actions.pod:2301
9761 #, no-wrap
9762 msgid ""
9763 " char **\n"
9764 " guestfs_grepi (guestfs_h *g,\n"
9765 "                const char *regex,\n"
9766 "                const char *path);\n"
9767 "\n"
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1533
9772 msgid "This calls the external C<grep -i> program and returns the matching lines."
9773 msgstr ""
9774
9775 #. type: =head2
9776 #: ../src/guestfs-actions.pod:2318
9777 msgid "guestfs_grub_install"
9778 msgstr ""
9779
9780 #. type: verbatim
9781 #: ../src/guestfs-actions.pod:2320
9782 #, no-wrap
9783 msgid ""
9784 " int\n"
9785 " guestfs_grub_install (guestfs_h *g,\n"
9786 "                       const char *root,\n"
9787 "                       const char *device);\n"
9788 "\n"
9789 msgstr ""
9790
9791 #. type: textblock
9792 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1543
9793 msgid ""
9794 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
9795 "the root directory being C<root>."
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../src/guestfs-actions.pod:2328 ../fish/guestfish-actions.pod:1546
9800 msgid ""
9801 "Note: If grub-install reports the error \"No suitable drive was found in the "
9802 "generated device map.\" it may be that you need to create a "
9803 "C</boot/grub/device.map> file first that contains the mapping between grub "
9804 "device names and Linux device names.  It is usually sufficient to create a "
9805 "file containing:"
9806 msgstr ""
9807
9808 #. type: verbatim
9809 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1553
9810 #, no-wrap
9811 msgid ""
9812 " (hd0) /dev/vda\n"
9813 "\n"
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1555
9818 msgid "replacing C</dev/vda> with the name of the installation device."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../src/guestfs-actions.pod:2341
9823 msgid "(Added in 1.0.17)"
9824 msgstr ""
9825
9826 #. type: =head2
9827 #: ../src/guestfs-actions.pod:2343
9828 msgid "guestfs_head"
9829 msgstr ""
9830
9831 #. type: verbatim
9832 #: ../src/guestfs-actions.pod:2345
9833 #, no-wrap
9834 msgid ""
9835 " char **\n"
9836 " guestfs_head (guestfs_h *g,\n"
9837 "               const char *path);\n"
9838 "\n"
9839 msgstr ""
9840
9841 #. type: textblock
9842 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1561
9843 msgid ""
9844 "This command returns up to the first 10 lines of a file as a list of "
9845 "strings."
9846 msgstr ""
9847
9848 #. type: =head2
9849 #: ../src/guestfs-actions.pod:2361
9850 msgid "guestfs_head_n"
9851 msgstr ""
9852
9853 #. type: verbatim
9854 #: ../src/guestfs-actions.pod:2363
9855 #, no-wrap
9856 msgid ""
9857 " char **\n"
9858 " guestfs_head_n (guestfs_h *g,\n"
9859 "                 int nrlines,\n"
9860 "                 const char *path);\n"
9861 "\n"
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../src/guestfs-actions.pod:2368 ../fish/guestfish-actions.pod:1571
9866 msgid ""
9867 "If the parameter C<nrlines> is a positive number, this returns the first "
9868 "C<nrlines> lines of the file C<path>."
9869 msgstr ""
9870
9871 #. type: textblock
9872 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1574
9873 msgid ""
9874 "If the parameter C<nrlines> is a negative number, this returns lines from "
9875 "the file C<path>, excluding the last C<nrlines> lines."
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6981 ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4637
9880 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9881 msgstr ""
9882
9883 #. type: =head2
9884 #: ../src/guestfs-actions.pod:2385
9885 msgid "guestfs_hexdump"
9886 msgstr ""
9887
9888 #. type: verbatim
9889 #: ../src/guestfs-actions.pod:2387
9890 #, no-wrap
9891 msgid ""
9892 " char *\n"
9893 " guestfs_hexdump (guestfs_h *g,\n"
9894 "                  const char *path);\n"
9895 "\n"
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../src/guestfs-actions.pod:2391 ../fish/guestfish-actions.pod:1586
9900 msgid ""
9901 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9902 "human-readable, canonical hex dump of the file."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6820
9907 msgid "(Added in 1.0.22)"
9908 msgstr ""
9909
9910 #. type: =head2
9911 #: ../src/guestfs-actions.pod:2402
9912 msgid "guestfs_initrd_cat"
9913 msgstr ""
9914
9915 #. type: verbatim
9916 #: ../src/guestfs-actions.pod:2404
9917 #, no-wrap
9918 msgid ""
9919 " char *\n"
9920 " guestfs_initrd_cat (guestfs_h *g,\n"
9921 "                     const char *initrdpath,\n"
9922 "                     const char *filename,\n"
9923 "                     size_t *size_r);\n"
9924 "\n"
9925 msgstr ""
9926
9927 #. type: textblock
9928 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1596
9929 msgid ""
9930 "This command unpacks the file C<filename> from the initrd file called "
9931 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9932 "character."
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1600
9937 msgid ""
9938 "For example, in guestfish you could use the following command to examine the "
9939 "boot script (usually called C</init>)  contained in a Linux initrd or "
9940 "initramfs image:"
9941 msgstr ""
9942
9943 #. type: verbatim
9944 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1604
9945 #, no-wrap
9946 msgid ""
9947 " initrd-cat /boot/initrd-<version>.img init\n"
9948 "\n"
9949 msgstr ""
9950
9951 #. type: textblock
9952 #: ../src/guestfs-actions.pod:2420
9953 msgid "See also C<guestfs_initrd_list>."
9954 msgstr ""
9955
9956 #. type: =head2
9957 #: ../src/guestfs-actions.pod:2431
9958 msgid "guestfs_initrd_list"
9959 msgstr ""
9960
9961 #. type: verbatim
9962 #: ../src/guestfs-actions.pod:2433
9963 #, no-wrap
9964 msgid ""
9965 " char **\n"
9966 " guestfs_initrd_list (guestfs_h *g,\n"
9967 "                      const char *path);\n"
9968 "\n"
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1615
9973 msgid "This command lists out files contained in an initrd."
9974 msgstr ""
9975
9976 #. type: textblock
9977 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1617
9978 msgid ""
9979 "The files are listed without any initial C</> character.  The files are "
9980 "listed in the order they appear (not necessarily alphabetical).  Directory "
9981 "names are listed as separate items."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1621
9986 msgid ""
9987 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9988 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9989 "files)."
9990 msgstr ""
9991
9992 #. type: =head2
9993 #: ../src/guestfs-actions.pod:2453
9994 msgid "guestfs_inotify_add_watch"
9995 msgstr ""
9996
9997 #. type: verbatim
9998 #: ../src/guestfs-actions.pod:2455
9999 #, no-wrap
10000 msgid ""
10001 " int64_t\n"
10002 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10003 "                            const char *path,\n"
10004 "                            int mask);\n"
10005 "\n"
10006 msgstr ""
10007
10008 #. type: textblock
10009 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1629
10010 msgid "Watch C<path> for the events listed in C<mask>."
10011 msgstr ""
10012
10013 #. type: textblock
10014 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1631
10015 msgid ""
10016 "Note that if C<path> is a directory then events within that directory are "
10017 "watched, but this does I<not> happen recursively (in subdirectories)."
10018 msgstr ""
10019
10020 #. type: textblock
10021 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1635
10022 msgid ""
10023 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10024 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10025 msgstr ""
10026
10027 #. type: =head2
10028 #: ../src/guestfs-actions.pod:2474
10029 msgid "guestfs_inotify_close"
10030 msgstr ""
10031
10032 #. type: verbatim
10033 #: ../src/guestfs-actions.pod:2476
10034 #, no-wrap
10035 msgid ""
10036 " int\n"
10037 " guestfs_inotify_close (guestfs_h *g);\n"
10038 "\n"
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1643
10043 msgid ""
10044 "This closes the inotify handle which was previously opened by inotify_init.  "
10045 "It removes all watches, throws away any pending events, and deallocates all "
10046 "resources."
10047 msgstr ""
10048
10049 #. type: =head2
10050 #: ../src/guestfs-actions.pod:2487
10051 msgid "guestfs_inotify_files"
10052 msgstr ""
10053
10054 #. type: verbatim
10055 #: ../src/guestfs-actions.pod:2489
10056 #, no-wrap
10057 msgid ""
10058 " char **\n"
10059 " guestfs_inotify_files (guestfs_h *g);\n"
10060 "\n"
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../src/guestfs-actions.pod:2492
10065 msgid ""
10066 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10067 "returns a list of pathnames of objects that were touched.  The returned "
10068 "pathnames are sorted and deduplicated."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../src/guestfs-actions.pod:2502
10073 msgid "guestfs_inotify_init"
10074 msgstr ""
10075
10076 #. type: verbatim
10077 #: ../src/guestfs-actions.pod:2504
10078 #, no-wrap
10079 msgid ""
10080 " int\n"
10081 " guestfs_inotify_init (guestfs_h *g,\n"
10082 "                       int maxevents);\n"
10083 "\n"
10084 msgstr ""
10085
10086 #. type: textblock
10087 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1659
10088 msgid ""
10089 "This command creates a new inotify handle.  The inotify subsystem can be "
10090 "used to notify events which happen to objects in the guest filesystem."
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../src/guestfs-actions.pod:2512
10095 msgid ""
10096 "C<maxevents> is the maximum number of events which will be queued up between "
10097 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10098 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10099 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10100 "throws away events, but records the fact that it threw them away by setting "
10101 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10102 "C<guestfs_inotify_read>)."
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../src/guestfs-actions.pod:2522
10107 msgid ""
10108 "Before any events are generated, you have to add some watches to the "
10109 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10110 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../src/guestfs-actions.pod:2528
10115 msgid ""
10116 "Queued up events should be read periodically by calling "
10117 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10118 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10119 "often enough then you risk the internal queue overflowing."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../src/guestfs-actions.pod:2535
10124 msgid ""
10125 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10126 "This also removes any watches automatically."
10127 msgstr ""
10128
10129 #. type: textblock
10130 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1690
10131 msgid ""
10132 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10133 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10134 "that there is one global inotify handle per libguestfs instance."
10135 msgstr ""
10136
10137 #. type: =head2
10138 #: ../src/guestfs-actions.pod:2548
10139 msgid "guestfs_inotify_read"
10140 msgstr ""
10141
10142 #. type: verbatim
10143 #: ../src/guestfs-actions.pod:2550
10144 #, no-wrap
10145 msgid ""
10146 " struct guestfs_inotify_event_list *\n"
10147 " guestfs_inotify_read (guestfs_h *g);\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1699
10153 msgid ""
10154 "Return the complete queue of events that have happened since the previous "
10155 "read call."
10156 msgstr ""
10157
10158 #. type: textblock
10159 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1702
10160 msgid "If no events have happened, this returns an empty list."
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1704
10165 msgid ""
10166 "I<Note>: In order to make sure that all events have been read, you must call "
10167 "this function repeatedly until it returns an empty list.  The reason is that "
10168 "the call will read events up to the maximum appliance-to-host message size "
10169 "and leave remaining events in the queue."
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../src/guestfs-actions.pod:2564
10174 msgid ""
10175 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10176 "there was an error.  I<The caller must call "
10177 "C<guestfs_free_inotify_event_list> after use>."
10178 msgstr ""
10179
10180 #. type: =head2
10181 #: ../src/guestfs-actions.pod:2570
10182 msgid "guestfs_inotify_rm_watch"
10183 msgstr ""
10184
10185 #. type: verbatim
10186 #: ../src/guestfs-actions.pod:2572
10187 #, no-wrap
10188 msgid ""
10189 " int\n"
10190 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10191 "                           int wd);\n"
10192 "\n"
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../src/guestfs-actions.pod:2576
10197 msgid ""
10198 "Remove a previously defined inotify watch.  See "
10199 "C<guestfs_inotify_add_watch>."
10200 msgstr ""
10201
10202 #. type: =head2
10203 #: ../src/guestfs-actions.pod:2583
10204 msgid "guestfs_inspect_get_arch"
10205 msgstr ""
10206
10207 #. type: verbatim
10208 #: ../src/guestfs-actions.pod:2585
10209 #, no-wrap
10210 msgid ""
10211 " char *\n"
10212 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10213 "                           const char *root);\n"
10214 "\n"
10215 msgstr ""
10216
10217 #. type: textblock
10218 #: ../src/guestfs-actions.pod:2589
10219 msgid ""
10220 "This returns the architecture of the inspected operating system.  The "
10221 "possible return values are listed under C<guestfs_file_architecture>."
10222 msgstr ""
10223
10224 #. type: textblock
10225 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1725
10226 msgid ""
10227 "If the architecture could not be determined, then the string C<unknown> is "
10228 "returned."
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2686 ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2809 ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:3023 ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072 ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3165 ../src/guestfs-actions.pod:3185 ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3358 ../src/guestfs-actions.pod:3399 ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200 ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2342
10233 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10234 msgstr ""
10235
10236 #. type: =head2
10237 #: ../src/guestfs-actions.pod:2603
10238 msgid "guestfs_inspect_get_distro"
10239 msgstr ""
10240
10241 #. type: verbatim
10242 #: ../src/guestfs-actions.pod:2605
10243 #, no-wrap
10244 msgid ""
10245 " char *\n"
10246 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10247 "                             const char *root);\n"
10248 "\n"
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1734
10253 msgid "This returns the distro (distribution) of the inspected operating system."
10254 msgstr ""
10255
10256 #. type: textblock
10257 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:1737
10258 msgid "Currently defined distros are:"
10259 msgstr ""
10260
10261 #. type: =item
10262 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1741
10263 msgid "\"archlinux\""
10264 msgstr ""
10265
10266 #. type: textblock
10267 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1743
10268 msgid "Arch Linux."
10269 msgstr ""
10270
10271 #. type: =item
10272 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1745
10273 msgid "\"centos\""
10274 msgstr ""
10275
10276 #. type: textblock
10277 #: ../src/guestfs-actions.pod:2622 ../fish/guestfish-actions.pod:1747
10278 msgid "CentOS."
10279 msgstr ""
10280
10281 #. type: =item
10282 #: ../src/guestfs-actions.pod:2624 ../fish/guestfish-actions.pod:1749
10283 msgid "\"debian\""
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1751
10288 msgid "Debian."
10289 msgstr ""
10290
10291 #. type: =item
10292 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:1753
10293 msgid "\"fedora\""
10294 msgstr ""
10295
10296 #. type: textblock
10297 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1755
10298 msgid "Fedora."
10299 msgstr ""
10300
10301 #. type: =item
10302 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:1757
10303 msgid "\"gentoo\""
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../src/guestfs-actions.pod:2634 ../fish/guestfish-actions.pod:1759
10308 msgid "Gentoo."
10309 msgstr ""
10310
10311 #. type: =item
10312 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1761
10313 msgid "\"linuxmint\""
10314 msgstr ""
10315
10316 #. type: textblock
10317 #: ../src/guestfs-actions.pod:2638 ../fish/guestfish-actions.pod:1763
10318 msgid "Linux Mint."
10319 msgstr ""
10320
10321 #. type: =item
10322 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1765
10323 msgid "\"mandriva\""
10324 msgstr ""
10325
10326 #. type: textblock
10327 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1767
10328 msgid "Mandriva."
10329 msgstr ""
10330
10331 #. type: =item
10332 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1769
10333 msgid "\"meego\""
10334 msgstr ""
10335
10336 #. type: textblock
10337 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1771
10338 msgid "MeeGo."
10339 msgstr ""
10340
10341 #. type: =item
10342 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1773
10343 msgid "\"pardus\""
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1775
10348 msgid "Pardus."
10349 msgstr ""
10350
10351 #. type: =item
10352 #: ../src/guestfs-actions.pod:2652 ../fish/guestfish-actions.pod:1777
10353 msgid "\"redhat-based\""
10354 msgstr ""
10355
10356 #. type: textblock
10357 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1779
10358 msgid "Some Red Hat-derived distro."
10359 msgstr ""
10360
10361 #. type: =item
10362 #: ../src/guestfs-actions.pod:2656 ../fish/guestfish-actions.pod:1781
10363 msgid "\"rhel\""
10364 msgstr ""
10365
10366 #. type: textblock
10367 #: ../src/guestfs-actions.pod:2658 ../fish/guestfish-actions.pod:1783
10368 msgid "Red Hat Enterprise Linux."
10369 msgstr ""
10370
10371 #. type: =item
10372 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1785
10373 msgid "\"scientificlinux\""
10374 msgstr ""
10375
10376 #. type: textblock
10377 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1787
10378 msgid "Scientific Linux."
10379 msgstr ""
10380
10381 #. type: =item
10382 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1789
10383 msgid "\"slackware\""
10384 msgstr ""
10385
10386 #. type: textblock
10387 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1791
10388 msgid "Slackware."
10389 msgstr ""
10390
10391 #. type: =item
10392 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1793
10393 msgid "\"ubuntu\""
10394 msgstr ""
10395
10396 #. type: textblock
10397 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1795
10398 msgid "Ubuntu."
10399 msgstr ""
10400
10401 #. type: =item
10402 #: ../src/guestfs-actions.pod:2672 ../src/guestfs-actions.pod:2781 ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145
10403 msgid "\"unknown\""
10404 msgstr ""
10405
10406 #. type: textblock
10407 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1799
10408 msgid "The distro could not be determined."
10409 msgstr ""
10410
10411 #. type: =item
10412 #: ../src/guestfs-actions.pod:2676 ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
10413 msgid "\"windows\""
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1803
10418 msgid ""
10419 "Windows does not have distributions.  This string is returned if the OS type "
10420 "is Windows."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:2151
10425 msgid ""
10426 "Future versions of libguestfs may return other strings here.  The caller "
10427 "should be prepared to handle any string."
10428 msgstr ""
10429
10430 #. type: =head2
10431 #: ../src/guestfs-actions.pod:2693
10432 msgid "guestfs_inspect_get_drive_mappings"
10433 msgstr ""
10434
10435 #. type: verbatim
10436 #: ../src/guestfs-actions.pod:2695
10437 #, no-wrap
10438 msgid ""
10439 " char **\n"
10440 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10441 "                                     const char *root);\n"
10442 "\n"
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1817
10447 msgid ""
10448 "This call is useful for Windows which uses a primitive system of assigning "
10449 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10450 "Windows Registry to find out how disks/partitions are mapped to drive "
10451 "letters, and returns a hash table as in the example below:"
10452 msgstr ""
10453
10454 #. type: verbatim
10455 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1823
10456 #, no-wrap
10457 msgid ""
10458 " C      =>     /dev/vda2\n"
10459 " E      =>     /dev/vdb1\n"
10460 " F      =>     /dev/vdc1\n"
10461 "\n"
10462 msgstr ""
10463
10464 #. type: textblock
10465 #: ../src/guestfs-actions.pod:2709 ../fish/guestfish-actions.pod:1827
10466 msgid ""
10467 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10468 "and just contains the drive letter, without the customary colon separator "
10469 "character."
10470 msgstr ""
10471
10472 #. type: textblock
10473 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:1831
10474 msgid ""
10475 "In future we may support other operating systems that also used drive "
10476 "letters, but the keys for those might not be case insensitive and might be "
10477 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10478 "C<h1> etc."
10479 msgstr ""
10480
10481 #. type: textblock
10482 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1836
10483 msgid ""
10484 "For Windows guests, currently only hard drive mappings are returned.  "
10485 "Removable disks (eg. DVD-ROMs) are ignored."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../src/guestfs-actions.pod:2721 ../fish/guestfish-actions.pod:1839
10490 msgid ""
10491 "For guests that do not use drive mappings, or if the drive mappings could "
10492 "not be determined, this returns an empty hash table."
10493 msgstr ""
10494
10495 #. type: textblock
10496 #: ../src/guestfs-actions.pod:2724
10497 msgid ""
10498 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10499 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../src/guestfs-actions.pod:2728 ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:5076 ../src/guestfs-actions.pod:7122
10504 msgid ""
10505 "This function returns a NULL-terminated array of strings, or NULL if there "
10506 "was an error.  The array of strings will always have length C<2n+1>, where "
10507 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10508 "caller must free the strings and the array after use>."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../src/guestfs-actions.pod:2734 ../src/guestfs-actions.pod:3190
10513 msgid "(Added in 1.9.17)"
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../src/guestfs-actions.pod:2736
10518 msgid "guestfs_inspect_get_filesystems"
10519 msgstr ""
10520
10521 #. type: verbatim
10522 #: ../src/guestfs-actions.pod:2738
10523 #, no-wrap
10524 msgid ""
10525 " char **\n"
10526 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10527 "                                  const char *root);\n"
10528 "\n"
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../src/guestfs-actions.pod:2742 ../fish/guestfish-actions.pod:1850
10533 msgid ""
10534 "This returns a list of all the filesystems that we think are associated with "
10535 "this operating system.  This includes the root filesystem, other ordinary "
10536 "filesystems, and non-mounted devices like swap partitions."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1855
10541 msgid ""
10542 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10543 "to be shared between operating systems."
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../src/guestfs-actions.pod:2750
10548 msgid ""
10549 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10550 "C<guestfs_inspect_get_mountpoints>."
10551 msgstr ""
10552
10553 #. type: =head2
10554 #: ../src/guestfs-actions.pod:2759
10555 msgid "guestfs_inspect_get_format"
10556 msgstr ""
10557
10558 #. type: verbatim
10559 #: ../src/guestfs-actions.pod:2761
10560 #, no-wrap
10561 msgid ""
10562 " char *\n"
10563 " guestfs_inspect_get_format (guestfs_h *g,\n"
10564 "                             const char *root);\n"
10565 "\n"
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1865
10570 msgid ""
10571 "This returns the format of the inspected operating system.  You can use it "
10572 "to detect install images, live CDs and similar."
10573 msgstr ""
10574
10575 #. type: textblock
10576 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1868
10577 msgid "Currently defined formats are:"
10578 msgstr ""
10579
10580 #. type: =item
10581 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1872
10582 msgid "\"installed\""
10583 msgstr ""
10584
10585 #. type: textblock
10586 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1874
10587 msgid "This is an installed operating system."
10588 msgstr ""
10589
10590 #. type: =item
10591 #: ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1876
10592 msgid "\"installer\""
10593 msgstr ""
10594
10595 #. type: textblock
10596 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1878
10597 msgid ""
10598 "The disk image being inspected is not an installed operating system, but a "
10599 "I<bootable> install disk, live CD, or similar."
10600 msgstr ""
10601
10602 #. type: textblock
10603 #: ../src/guestfs-actions.pod:2783 ../fish/guestfish-actions.pod:1883
10604 msgid "The format of this disk image is not known."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../src/guestfs-actions.pod:2795 ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:6020
10609 msgid "(Added in 1.9.4)"
10610 msgstr ""
10611
10612 #. type: =head2
10613 #: ../src/guestfs-actions.pod:2797
10614 msgid "guestfs_inspect_get_hostname"
10615 msgstr ""
10616
10617 #. type: verbatim
10618 #: ../src/guestfs-actions.pod:2799
10619 #, no-wrap
10620 msgid ""
10621 " char *\n"
10622 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10623 "                               const char *root);\n"
10624 "\n"
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:1896
10629 msgid ""
10630 "This function returns the hostname of the operating system as found by "
10631 "inspection of the guest's configuration files."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1899
10636 msgid ""
10637 "If the hostname could not be determined, then the string C<unknown> is "
10638 "returned."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../src/guestfs-actions.pod:2814
10643 msgid "(Added in 1.7.9)"
10644 msgstr ""
10645
10646 #. type: =head2
10647 #: ../src/guestfs-actions.pod:2816
10648 msgid "guestfs_inspect_get_icon"
10649 msgstr ""
10650
10651 #. type: verbatim
10652 #: ../src/guestfs-actions.pod:2818
10653 #, no-wrap
10654 msgid ""
10655 " char *\n"
10656 " guestfs_inspect_get_icon (guestfs_h *g,\n"
10657 "                           const char *root,\n"
10658 "                           size_t *size_r,\n"
10659 "                           ...);\n"
10660 "\n"
10661 msgstr ""
10662
10663 #. type: verbatim
10664 #: ../src/guestfs-actions.pod:2829
10665 #, no-wrap
10666 msgid ""
10667 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
10668 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
10669 "\n"
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1908
10674 msgid ""
10675 "This function returns an icon corresponding to the inspected operating "
10676 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10677 "to PNG if necessary)."
10678 msgstr ""
10679
10680 #. type: textblock
10681 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:1912
10682 msgid ""
10683 "If it was not possible to get an icon this function returns a zero-length "
10684 "(non-NULL) buffer.  I<Callers must check for this case>."
10685 msgstr ""
10686
10687 #. type: textblock
10688 #: ../src/guestfs-actions.pod:2839 ../fish/guestfish-actions.pod:1915
10689 msgid ""
10690 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10691 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10692 "this file will be returned.  You can disable favicons by passing the "
10693 "optional C<favicon> boolean as false (default is true)."
10694 msgstr ""
10695
10696 #. type: textblock
10697 #: ../src/guestfs-actions.pod:2845 ../fish/guestfish-actions.pod:1921
10698 msgid ""
10699 "If finding the favicon fails, then we look in other places in the guest for "
10700 "a suitable icon."
10701 msgstr ""
10702
10703 #. type: textblock
10704 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1924
10705 msgid ""
10706 "If the optional C<highquality> boolean is true then only high quality icons "
10707 "are returned, which means only icons of high resolution with an alpha "
10708 "channel.  The default (false) is to return any icon we can, even if it is of "
10709 "substandard quality."
10710 msgstr ""
10711
10712 #. type: textblock
10713 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1935
10714 msgid ""
10715 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10716 "before you call this, since it needs to read information from the guest "
10717 "filesystem during the call."
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../src/guestfs-actions.pod:2865 ../fish/guestfish-actions.pod:1941
10722 msgid ""
10723 "B<Security:> The icon data comes from the untrusted guest, and should be "
10724 "treated with caution.  PNG files have been known to contain exploits.  "
10725 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10726 "trying to process or display the icon."
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1949
10731 msgid ""
10732 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10733 "tries to return the largest, highest quality icon available.  The "
10734 "application must scale the icon to the required size."
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../src/guestfs-actions.pod:2880 ../fish/guestfish-actions.pod:1956
10739 msgid ""
10740 "Extracting icons from Windows guests requires the external C<wrestool> "
10741 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10742 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10743 "installed separately."
10744 msgstr ""
10745
10746 #. type: textblock
10747 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1963
10748 msgid ""
10749 "Operating system icons are usually trademarks.  Seek legal advice before "
10750 "using trademarks in applications."
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:4975
10755 msgid "(Added in 1.11.12)"
10756 msgstr ""
10757
10758 #. type: =head2
10759 #: ../src/guestfs-actions.pod:2898
10760 msgid "guestfs_inspect_get_icon_va"
10761 msgstr ""
10762
10763 #. type: verbatim
10764 #: ../src/guestfs-actions.pod:2900
10765 #, no-wrap
10766 msgid ""
10767 " char *\n"
10768 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
10769 "                              const char *root,\n"
10770 "                              size_t *size_r,\n"
10771 "                              va_list args);\n"
10772 "\n"
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../src/guestfs-actions.pod:2906
10777 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
10778 msgstr ""
10779
10780 #. type: =head2
10781 #: ../src/guestfs-actions.pod:2910
10782 msgid "guestfs_inspect_get_icon_argv"
10783 msgstr ""
10784
10785 #. type: verbatim
10786 #: ../src/guestfs-actions.pod:2912
10787 #, no-wrap
10788 msgid ""
10789 " char *\n"
10790 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
10791 "                                const char *root,\n"
10792 "                                size_t *size_r,\n"
10793 "                                const struct guestfs_inspect_get_icon_argv "
10794 "*optargs);\n"
10795 "\n"
10796 msgstr ""
10797
10798 #. type: textblock
10799 #: ../src/guestfs-actions.pod:2918
10800 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
10801 msgstr ""
10802
10803 #. type: =head2
10804 #: ../src/guestfs-actions.pod:2922
10805 msgid "guestfs_inspect_get_major_version"
10806 msgstr ""
10807
10808 #. type: verbatim
10809 #: ../src/guestfs-actions.pod:2924
10810 #, no-wrap
10811 msgid ""
10812 " int\n"
10813 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10814 "                                    const char *root);\n"
10815 "\n"
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:1974
10820 msgid "This returns the major version number of the inspected operating system."
10821 msgstr ""
10822
10823 #. type: textblock
10824 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:1977
10825 msgid ""
10826 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10827 "popular public names used by the operating system.  Notably the operating "
10828 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10829 "1).  You can find out the real versions corresponding to releases of Windows "
10830 "by consulting Wikipedia or MSDN."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
10835 msgid "If the version could not be determined, then C<0> is returned."
10836 msgstr ""
10837
10838 #. type: =head2
10839 #: ../src/guestfs-actions.pod:2946
10840 msgid "guestfs_inspect_get_minor_version"
10841 msgstr ""
10842
10843 #. type: verbatim
10844 #: ../src/guestfs-actions.pod:2948
10845 #, no-wrap
10846 msgid ""
10847 " int\n"
10848 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10849 "                                    const char *root);\n"
10850 "\n"
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:1992
10855 msgid "This returns the minor version number of the inspected operating system."
10856 msgstr ""
10857
10858 #. type: textblock
10859 #: ../src/guestfs-actions.pod:2957
10860 msgid ""
10861 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10862 "C<guestfs_inspect_get_major_version>."
10863 msgstr ""
10864
10865 #. type: =head2
10866 #: ../src/guestfs-actions.pod:2964
10867 msgid "guestfs_inspect_get_mountpoints"
10868 msgstr ""
10869
10870 #. type: verbatim
10871 #: ../src/guestfs-actions.pod:2966
10872 #, no-wrap
10873 msgid ""
10874 " char **\n"
10875 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
10876 "                                  const char *root);\n"
10877 "\n"
10878 msgstr ""
10879
10880 #. type: textblock
10881 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2004
10882 msgid ""
10883 "This returns a hash of where we think the filesystems associated with this "
10884 "operating system should be mounted.  Callers should note that this is at "
10885 "best an educated guess made by reading configuration files such as "
10886 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10887 "are non-existent or not mountable and callers should be prepared to handle "
10888 "or ignore failures if they try to mount them."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2013
10893 msgid ""
10894 "Each element in the returned hashtable has a key which is the path of the "
10895 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10896 "mounted there (eg. C</dev/sda1>)."
10897 msgstr ""
10898
10899 #. type: textblock
10900 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2018
10901 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10902 msgstr ""
10903
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2987
10906 msgid ""
10907 "For operating systems like Windows which still use drive letters, this call "
10908 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10909 "information about the mapping of drive letters to partitions, see "
10910 "C<guestfs_inspect_get_drive_mappings>."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../src/guestfs-actions.pod:2993
10915 msgid ""
10916 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10917 "C<guestfs_inspect_get_filesystems>."
10918 msgstr ""
10919
10920 #. type: =head2
10921 #: ../src/guestfs-actions.pod:3004
10922 msgid "guestfs_inspect_get_package_format"
10923 msgstr ""
10924
10925 #. type: verbatim
10926 #: ../src/guestfs-actions.pod:3006
10927 #, no-wrap
10928 msgid ""
10929 " char *\n"
10930 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
10931 "                                     const char *root);\n"
10932 "\n"
10933 msgstr ""
10934
10935 #. type: textblock
10936 #: ../src/guestfs-actions.pod:3010
10937 msgid ""
10938 "This function and C<guestfs_inspect_get_package_management> return the "
10939 "package format and package management tool used by the inspected operating "
10940 "system.  For example for Fedora these functions would return C<rpm> (package "
10941 "format) and C<yum> (package management)."
10942 msgstr ""
10943
10944 #. type: textblock
10945 #: ../src/guestfs-actions.pod:3016 ../fish/guestfish-actions.pod:2040
10946 msgid ""
10947 "This returns the string C<unknown> if we could not determine the package "
10948 "format I<or> if the operating system does not have a real packaging system "
10949 "(eg. Windows)."
10950 msgstr ""
10951
10952 #. type: textblock
10953 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2044
10954 msgid ""
10955 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
10956 "Future versions of libguestfs may return other strings."
10957 msgstr ""
10958
10959 #. type: textblock
10960 #: ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3056
10961 msgid "(Added in 1.7.5)"
10962 msgstr ""
10963
10964 #. type: =head2
10965 #: ../src/guestfs-actions.pod:3030
10966 msgid "guestfs_inspect_get_package_management"
10967 msgstr ""
10968
10969 #. type: verbatim
10970 #: ../src/guestfs-actions.pod:3032
10971 #, no-wrap
10972 msgid ""
10973 " char *\n"
10974 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
10975 "                                         const char *root);\n"
10976 "\n"
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../src/guestfs-actions.pod:3036
10981 msgid ""
10982 "C<guestfs_inspect_get_package_format> and this function return the package "
10983 "format and package management tool used by the inspected operating system.  "
10984 "For example for Fedora these functions would return C<rpm> (package format) "
10985 "and C<yum> (package management)."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2059
10990 msgid ""
10991 "This returns the string C<unknown> if we could not determine the package "
10992 "management tool I<or> if the operating system does not have a real packaging "
10993 "system (eg. Windows)."
10994 msgstr ""
10995
10996 #. type: textblock
10997 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2063
10998 msgid ""
10999 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11000 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11001 "libguestfs may return other strings."
11002 msgstr ""
11003
11004 #. type: =head2
11005 #: ../src/guestfs-actions.pod:3058
11006 msgid "guestfs_inspect_get_product_name"
11007 msgstr ""
11008
11009 #. type: verbatim
11010 #: ../src/guestfs-actions.pod:3060
11011 #, no-wrap
11012 msgid ""
11013 " char *\n"
11014 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11015 "                                   const char *root);\n"
11016 "\n"
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2074
11021 msgid ""
11022 "This returns the product name of the inspected operating system.  The "
11023 "product name is generally some freeform string which can be displayed to the "
11024 "user, but should not be parsed by programs."
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2079
11029 msgid ""
11030 "If the product name could not be determined, then the string C<unknown> is "
11031 "returned."
11032 msgstr ""
11033
11034 #. type: =head2
11035 #: ../src/guestfs-actions.pod:3079
11036 msgid "guestfs_inspect_get_product_variant"
11037 msgstr ""
11038
11039 #. type: verbatim
11040 #: ../src/guestfs-actions.pod:3081
11041 #, no-wrap
11042 msgid ""
11043 " char *\n"
11044 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
11045 "                                      const char *root);\n"
11046 "\n"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2088
11051 msgid "This returns the product variant of the inspected operating system."
11052 msgstr ""
11053
11054 #. type: textblock
11055 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2091
11056 msgid ""
11057 "For Windows guests, this returns the contents of the Registry key "
11058 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
11059 "which is usually a string such as C<Client> or C<Server> (other values are "
11060 "possible).  This can be used to distinguish consumer and enterprise versions "
11061 "of Windows that have the same version number (for example, Windows 7 and "
11062 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11063 "the latter is C<Server>)."
11064 msgstr ""
11065
11066 #. type: textblock
11067 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2100
11068 msgid ""
11069 "For enterprise Linux guests, in future we intend this to return the product "
11070 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11071 "implemented at present."
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2104
11076 msgid ""
11077 "If the product variant could not be determined, then the string C<unknown> "
11078 "is returned."
11079 msgstr ""
11080
11081 #. type: textblock
11082 #: ../src/guestfs-actions.pod:3104
11083 msgid ""
11084 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11085 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../src/guestfs-actions.pod:3111
11090 msgid "(Added in 1.9.13)"
11091 msgstr ""
11092
11093 #. type: =head2
11094 #: ../src/guestfs-actions.pod:3113
11095 msgid "guestfs_inspect_get_roots"
11096 msgstr ""
11097
11098 #. type: verbatim
11099 #: ../src/guestfs-actions.pod:3115
11100 #, no-wrap
11101 msgid ""
11102 " char **\n"
11103 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11104 "\n"
11105 msgstr ""
11106
11107 #. type: textblock
11108 #: ../src/guestfs-actions.pod:3118
11109 msgid ""
11110 "This function is a convenient way to get the list of root devices, as "
11111 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11112 "the whole inspection process."
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../src/guestfs-actions.pod:3122
11117 msgid ""
11118 "This returns an empty list if either no root devices were found or the "
11119 "caller has not called C<guestfs_inspect_os>."
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../src/guestfs-actions.pod:3131
11124 msgid "(Added in 1.7.3)"
11125 msgstr ""
11126
11127 #. type: =head2
11128 #: ../src/guestfs-actions.pod:3133
11129 msgid "guestfs_inspect_get_type"
11130 msgstr ""
11131
11132 #. type: verbatim
11133 #: ../src/guestfs-actions.pod:3135
11134 #, no-wrap
11135 msgid ""
11136 " char *\n"
11137 " guestfs_inspect_get_type (guestfs_h *g,\n"
11138 "                           const char *root);\n"
11139 "\n"
11140 msgstr ""
11141
11142 #. type: textblock
11143 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2128
11144 msgid ""
11145 "This returns the type of the inspected operating system.  Currently defined "
11146 "types are:"
11147 msgstr ""
11148
11149 #. type: =item
11150 #: ../src/guestfs-actions.pod:3144 ../fish/guestfish-actions.pod:2133
11151 msgid "\"linux\""
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2135
11156 msgid "Any Linux-based operating system."
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2139
11161 msgid "Any Microsoft Windows operating system."
11162 msgstr ""
11163
11164 #. type: =item
11165 #: ../src/guestfs-actions.pod:3152 ../fish/guestfish-actions.pod:2141
11166 msgid "\"freebsd\""
11167 msgstr ""
11168
11169 #. type: textblock
11170 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2143
11171 msgid "FreeBSD."
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../src/guestfs-actions.pod:3158 ../fish/guestfish-actions.pod:2147
11176 msgid "The operating system type could not be determined."
11177 msgstr ""
11178
11179 #. type: =head2
11180 #: ../src/guestfs-actions.pod:3172
11181 msgid "guestfs_inspect_get_windows_current_control_set"
11182 msgstr ""
11183
11184 #. type: verbatim
11185 #: ../src/guestfs-actions.pod:3174
11186 #, no-wrap
11187 msgid ""
11188 " char *\n"
11189 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
11190 "                                                  const char *root);\n"
11191 "\n"
11192 msgstr ""
11193
11194 #. type: textblock
11195 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2160
11196 msgid ""
11197 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11198 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11199 msgstr ""
11200
11201 #. type: textblock
11202 #: ../src/guestfs-actions.pod:3181 ../fish/guestfish-actions.pod:2163
11203 msgid ""
11204 "This call assumes that the guest is Windows and that the Registry could be "
11205 "examined by inspection.  If this is not the case then an error is returned."
11206 msgstr ""
11207
11208 #. type: =head2
11209 #: ../src/guestfs-actions.pod:3192
11210 msgid "guestfs_inspect_get_windows_systemroot"
11211 msgstr ""
11212
11213 #. type: verbatim
11214 #: ../src/guestfs-actions.pod:3194
11215 #, no-wrap
11216 msgid ""
11217 " char *\n"
11218 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11219 "                                         const char *root);\n"
11220 "\n"
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2173
11225 msgid ""
11226 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11227 "is a directory path such as C</WINDOWS>."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2176
11232 msgid ""
11233 "This call assumes that the guest is Windows and that the systemroot could be "
11234 "determined by inspection.  If this is not the case then an error is "
11235 "returned."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../src/guestfs-actions.pod:3210
11240 msgid "(Added in 1.5.25)"
11241 msgstr ""
11242
11243 #. type: =head2
11244 #: ../src/guestfs-actions.pod:3212
11245 msgid "guestfs_inspect_is_live"
11246 msgstr ""
11247
11248 #. type: verbatim
11249 #: ../src/guestfs-actions.pod:3214
11250 #, no-wrap
11251 msgid ""
11252 " int\n"
11253 " guestfs_inspect_is_live (guestfs_h *g,\n"
11254 "                          const char *root);\n"
11255 "\n"
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../src/guestfs-actions.pod:3218
11260 msgid ""
11261 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11262 "disk), then this returns true if a live image was detected on the disk."
11263 msgstr ""
11264
11265 #. type: =head2
11266 #: ../src/guestfs-actions.pod:3228
11267 msgid "guestfs_inspect_is_multipart"
11268 msgstr ""
11269
11270 #. type: verbatim
11271 #: ../src/guestfs-actions.pod:3230
11272 #, no-wrap
11273 msgid ""
11274 " int\n"
11275 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11276 "                               const char *root);\n"
11277 "\n"
11278 msgstr ""
11279
11280 #. type: textblock
11281 #: ../src/guestfs-actions.pod:3234
11282 msgid ""
11283 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11284 "disk), then this returns true if the disk is part of a set."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../src/guestfs-actions.pod:3244
11289 msgid "guestfs_inspect_is_netinst"
11290 msgstr ""
11291
11292 #. type: verbatim
11293 #: ../src/guestfs-actions.pod:3246
11294 #, no-wrap
11295 msgid ""
11296 " int\n"
11297 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11298 "                             const char *root);\n"
11299 "\n"
11300 msgstr ""
11301
11302 #. type: textblock
11303 #: ../src/guestfs-actions.pod:3250
11304 msgid ""
11305 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11306 "disk), then this returns true if the disk is a network installer, ie. not a "
11307 "self-contained install CD but one which is likely to require network access "
11308 "to complete the install."
11309 msgstr ""
11310
11311 #. type: =head2
11312 #: ../src/guestfs-actions.pod:3262
11313 msgid "guestfs_inspect_list_applications"
11314 msgstr ""
11315
11316 #. type: verbatim
11317 #: ../src/guestfs-actions.pod:3264
11318 #, no-wrap
11319 msgid ""
11320 " struct guestfs_application_list *\n"
11321 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11322 "                                    const char *root);\n"
11323 "\n"
11324 msgstr ""
11325
11326 #. type: textblock
11327 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2218
11328 msgid "Return the list of applications installed in the operating system."
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../src/guestfs-actions.pod:3270
11333 msgid ""
11334 "I<Note:> This call works differently from other parts of the inspection "
11335 "API.  You have to call C<guestfs_inspect_os>, then "
11336 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11337 "this.  Listing applications is a significantly more difficult operation "
11338 "which requires access to the full filesystem.  Also note that unlike the "
11339 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11340 "the libguestfs handle, this call actually reads parts of the mounted "
11341 "filesystems during the call."
11342 msgstr ""
11343
11344 #. type: textblock
11345 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2230
11346 msgid ""
11347 "This returns an empty list if the inspection code was not able to determine "
11348 "the list of applications."
11349 msgstr ""
11350
11351 #. type: textblock
11352 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2233
11353 msgid "The application structure contains the following fields:"
11354 msgstr ""
11355
11356 #. type: =item
11357 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2237
11358 msgid "C<app_name>"
11359 msgstr ""
11360
11361 #. type: textblock
11362 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2239
11363 msgid ""
11364 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11365 "guests, this is the package name."
11366 msgstr ""
11367
11368 #. type: =item
11369 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2242
11370 msgid "C<app_display_name>"
11371 msgstr ""
11372
11373 #. type: textblock
11374 #: ../src/guestfs-actions.pod:3294 ../fish/guestfish-actions.pod:2244
11375 msgid ""
11376 "The display name of the application, sometimes localized to the install "
11377 "language of the guest operating system."
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../src/guestfs-actions.pod:3297 ../fish/guestfish-actions.pod:2247
11382 msgid ""
11383 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11384 "to display something can use C<app_name> instead."
11385 msgstr ""
11386
11387 #. type: =item
11388 #: ../src/guestfs-actions.pod:3300 ../fish/guestfish-actions.pod:2250
11389 msgid "C<app_epoch>"
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2252
11394 msgid ""
11395 "For package managers which use epochs, this contains the epoch of the "
11396 "package (an integer).  If unavailable, this is returned as C<0>."
11397 msgstr ""
11398
11399 #. type: =item
11400 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2255
11401 msgid "C<app_version>"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2257
11406 msgid ""
11407 "The version string of the application or package.  If unavailable this is "
11408 "returned as an empty string C<\"\">."
11409 msgstr ""
11410
11411 #. type: =item
11412 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2260
11413 msgid "C<app_release>"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2262
11418 msgid ""
11419 "The release string of the application or package, for package managers that "
11420 "use this.  If unavailable this is returned as an empty string C<\"\">."
11421 msgstr ""
11422
11423 #. type: =item
11424 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2266
11425 msgid "C<app_install_path>"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../src/guestfs-actions.pod:3318 ../fish/guestfish-actions.pod:2268
11430 msgid ""
11431 "The installation path of the application (on operating systems such as "
11432 "Windows which use installation paths).  This path is in the format used by "
11433 "the guest operating system, it is not a libguestfs path."
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2273
11438 msgid "If unavailable this is returned as an empty string C<\"\">."
11439 msgstr ""
11440
11441 #. type: =item
11442 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2275
11443 msgid "C<app_trans_path>"
11444 msgstr ""
11445
11446 #. type: textblock
11447 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2277
11448 msgid ""
11449 "The install path translated into a libguestfs path.  If unavailable this is "
11450 "returned as an empty string C<\"\">."
11451 msgstr ""
11452
11453 #. type: =item
11454 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2280
11455 msgid "C<app_publisher>"
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2282
11460 msgid ""
11461 "The name of the publisher of the application, for package managers that use "
11462 "this.  If unavailable this is returned as an empty string C<\"\">."
11463 msgstr ""
11464
11465 #. type: =item
11466 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2286
11467 msgid "C<app_url>"
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../src/guestfs-actions.pod:3338 ../fish/guestfish-actions.pod:2288
11472 msgid ""
11473 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11474 "returned as an empty string C<\"\">."
11475 msgstr ""
11476
11477 #. type: =item
11478 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2291
11479 msgid "C<app_source_package>"
11480 msgstr ""
11481
11482 #. type: textblock
11483 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2293
11484 msgid ""
11485 "For packaging systems which support this, the name of the source package.  "
11486 "If unavailable this is returned as an empty string C<\"\">."
11487 msgstr ""
11488
11489 #. type: =item
11490 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2296
11491 msgid "C<app_summary>"
11492 msgstr ""
11493
11494 #. type: textblock
11495 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2298
11496 msgid ""
11497 "A short (usually one line) description of the application or package.  If "
11498 "unavailable this is returned as an empty string C<\"\">."
11499 msgstr ""
11500
11501 #. type: =item
11502 #: ../src/guestfs-actions.pod:3351 ../fish/guestfish-actions.pod:2301
11503 msgid "C<app_description>"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2303
11508 msgid ""
11509 "A longer description of the application or package.  If unavailable this is "
11510 "returned as an empty string C<\"\">."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../src/guestfs-actions.pod:3360
11515 msgid ""
11516 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11517 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11518 "after use>."
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../src/guestfs-actions.pod:3364
11523 msgid "(Added in 1.7.8)"
11524 msgstr ""
11525
11526 #. type: =head2
11527 #: ../src/guestfs-actions.pod:3366
11528 msgid "guestfs_inspect_os"
11529 msgstr ""
11530
11531 #. type: verbatim
11532 #: ../src/guestfs-actions.pod:3368
11533 #, no-wrap
11534 msgid ""
11535 " char **\n"
11536 " guestfs_inspect_os (guestfs_h *g);\n"
11537 "\n"
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2314
11542 msgid ""
11543 "This function uses other libguestfs functions and certain heuristics to "
11544 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11545 "for operating systems."
11546 msgstr ""
11547
11548 #. type: textblock
11549 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2318
11550 msgid "The list returned is empty if no operating systems were found."
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2320
11555 msgid ""
11556 "If one operating system was found, then this returns a list with a single "
11557 "element, which is the name of the root filesystem of this operating system.  "
11558 "It is also possible for this function to return a list containing more than "
11559 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11560 "element being the root filesystem of one of the operating systems."
11561 msgstr ""
11562
11563 #. type: textblock
11564 #: ../src/guestfs-actions.pod:3384
11565 msgid ""
11566 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11567 "functions in order to query further information about each operating system, "
11568 "such as the name and version."
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../src/guestfs-actions.pod:3389
11573 msgid ""
11574 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11575 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11576 "the contents.  This should be called with no disks currently mounted.  The "
11577 "function may also use Augeas, so any existing Augeas handle will be closed."
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2338
11582 msgid ""
11583 "This function cannot decrypt encrypted disks.  The caller must do that first "
11584 "(supplying the necessary keys) if the disk is encrypted."
11585 msgstr ""
11586
11587 #. type: textblock
11588 #: ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:3814
11589 msgid "See also C<guestfs_list_filesystems>."
11590 msgstr ""
11591
11592 #. type: =head2
11593 #: ../src/guestfs-actions.pod:3409
11594 msgid "guestfs_is_blockdev"
11595 msgstr ""
11596
11597 #. type: verbatim
11598 #: ../src/guestfs-actions.pod:3411
11599 #, no-wrap
11600 msgid ""
11601 " int\n"
11602 " guestfs_is_blockdev (guestfs_h *g,\n"
11603 "                      const char *path);\n"
11604 "\n"
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2350
11609 msgid ""
11610 "This returns C<true> if and only if there is a block device with the given "
11611 "C<path> name."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3477 ../src/guestfs-actions.pod:3492 ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3579
11616 msgid "See also C<guestfs_stat>."
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583
11621 msgid "(Added in 1.5.10)"
11622 msgstr ""
11623
11624 #. type: =head2
11625 #: ../src/guestfs-actions.pod:3424
11626 msgid "guestfs_is_busy"
11627 msgstr ""
11628
11629 #. type: verbatim
11630 #: ../src/guestfs-actions.pod:3426
11631 #, no-wrap
11632 msgid ""
11633 " int\n"
11634 " guestfs_is_busy (guestfs_h *g);\n"
11635 "\n"
11636 msgstr ""
11637
11638 #. type: textblock
11639 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2359
11640 msgid ""
11641 "This returns true iff this handle is busy processing a command (in the "
11642 "C<BUSY> state)."
11643 msgstr ""
11644
11645 #. type: =head2
11646 #: ../src/guestfs-actions.pod:3438
11647 msgid "guestfs_is_chardev"
11648 msgstr ""
11649
11650 #. type: verbatim
11651 #: ../src/guestfs-actions.pod:3440
11652 #, no-wrap
11653 msgid ""
11654 " int\n"
11655 " guestfs_is_chardev (guestfs_h *g,\n"
11656 "                     const char *path);\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2368
11662 msgid ""
11663 "This returns C<true> if and only if there is a character device with the "
11664 "given C<path> name."
11665 msgstr ""
11666
11667 #. type: =head2
11668 #: ../src/guestfs-actions.pod:3453
11669 msgid "guestfs_is_config"
11670 msgstr ""
11671
11672 #. type: verbatim
11673 #: ../src/guestfs-actions.pod:3455
11674 #, no-wrap
11675 msgid ""
11676 " int\n"
11677 " guestfs_is_config (guestfs_h *g);\n"
11678 "\n"
11679 msgstr ""
11680
11681 #. type: textblock
11682 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2377
11683 msgid ""
11684 "This returns true iff this handle is being configured (in the C<CONFIG> "
11685 "state)."
11686 msgstr ""
11687
11688 #. type: =head2
11689 #: ../src/guestfs-actions.pod:3467
11690 msgid "guestfs_is_dir"
11691 msgstr ""
11692
11693 #. type: verbatim
11694 #: ../src/guestfs-actions.pod:3469
11695 #, no-wrap
11696 msgid ""
11697 " int\n"
11698 " guestfs_is_dir (guestfs_h *g,\n"
11699 "                 const char *path);\n"
11700 "\n"
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2386
11705 msgid ""
11706 "This returns C<true> if and only if there is a directory with the given "
11707 "C<path> name.  Note that it returns false for other objects like files."
11708 msgstr ""
11709
11710 #. type: =head2
11711 #: ../src/guestfs-actions.pod:3483
11712 msgid "guestfs_is_fifo"
11713 msgstr ""
11714
11715 #. type: verbatim
11716 #: ../src/guestfs-actions.pod:3485
11717 #, no-wrap
11718 msgid ""
11719 " int\n"
11720 " guestfs_is_fifo (guestfs_h *g,\n"
11721 "                  const char *path);\n"
11722 "\n"
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2396
11727 msgid ""
11728 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11729 "given C<path> name."
11730 msgstr ""
11731
11732 #. type: =head2
11733 #: ../src/guestfs-actions.pod:3498
11734 msgid "guestfs_is_file"
11735 msgstr ""
11736
11737 #. type: verbatim
11738 #: ../src/guestfs-actions.pod:3500
11739 #, no-wrap
11740 msgid ""
11741 " int\n"
11742 " guestfs_is_file (guestfs_h *g,\n"
11743 "                  const char *path);\n"
11744 "\n"
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../src/guestfs-actions.pod:3504 ../fish/guestfish-actions.pod:2405
11749 msgid ""
11750 "This returns C<true> if and only if there is a regular file with the given "
11751 "C<path> name.  Note that it returns false for other objects like "
11752 "directories."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../src/guestfs-actions.pod:3514
11757 msgid "guestfs_is_launching"
11758 msgstr ""
11759
11760 #. type: verbatim
11761 #: ../src/guestfs-actions.pod:3516
11762 #, no-wrap
11763 msgid ""
11764 " int\n"
11765 " guestfs_is_launching (guestfs_h *g);\n"
11766 "\n"
11767 msgstr ""
11768
11769 #. type: textblock
11770 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2415
11771 msgid ""
11772 "This returns true iff this handle is launching the subprocess (in the "
11773 "C<LAUNCHING> state)."
11774 msgstr ""
11775
11776 #. type: =head2
11777 #: ../src/guestfs-actions.pod:3528
11778 msgid "guestfs_is_lv"
11779 msgstr ""
11780
11781 #. type: verbatim
11782 #: ../src/guestfs-actions.pod:3530
11783 #, no-wrap
11784 msgid ""
11785 " int\n"
11786 " guestfs_is_lv (guestfs_h *g,\n"
11787 "                const char *device);\n"
11788 "\n"
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2424
11793 msgid ""
11794 "This command tests whether C<device> is a logical volume, and returns true "
11795 "iff this is the case."
11796 msgstr ""
11797
11798 #. type: =head2
11799 #: ../src/guestfs-actions.pod:3541
11800 msgid "guestfs_is_ready"
11801 msgstr ""
11802
11803 #. type: verbatim
11804 #: ../src/guestfs-actions.pod:3543
11805 #, no-wrap
11806 msgid ""
11807 " int\n"
11808 " guestfs_is_ready (guestfs_h *g);\n"
11809 "\n"
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2431
11814 msgid ""
11815 "This returns true iff this handle is ready to accept commands (in the "
11816 "C<READY> state)."
11817 msgstr ""
11818
11819 #. type: =head2
11820 #: ../src/guestfs-actions.pod:3555
11821 msgid "guestfs_is_socket"
11822 msgstr ""
11823
11824 #. type: verbatim
11825 #: ../src/guestfs-actions.pod:3557
11826 #, no-wrap
11827 msgid ""
11828 " int\n"
11829 " guestfs_is_socket (guestfs_h *g,\n"
11830 "                    const char *path);\n"
11831 "\n"
11832 msgstr ""
11833
11834 #. type: textblock
11835 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2440
11836 msgid ""
11837 "This returns C<true> if and only if there is a Unix domain socket with the "
11838 "given C<path> name."
11839 msgstr ""
11840
11841 #. type: =head2
11842 #: ../src/guestfs-actions.pod:3570
11843 msgid "guestfs_is_symlink"
11844 msgstr ""
11845
11846 #. type: verbatim
11847 #: ../src/guestfs-actions.pod:3572
11848 #, no-wrap
11849 msgid ""
11850 " int\n"
11851 " guestfs_is_symlink (guestfs_h *g,\n"
11852 "                     const char *path);\n"
11853 "\n"
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2449
11858 msgid ""
11859 "This returns C<true> if and only if there is a symbolic link with the given "
11860 "C<path> name."
11861 msgstr ""
11862
11863 #. type: =head2
11864 #: ../src/guestfs-actions.pod:3585
11865 msgid "guestfs_is_zero"
11866 msgstr ""
11867
11868 #. type: verbatim
11869 #: ../src/guestfs-actions.pod:3587
11870 #, no-wrap
11871 msgid ""
11872 " int\n"
11873 " guestfs_is_zero (guestfs_h *g,\n"
11874 "                  const char *path);\n"
11875 "\n"
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../src/guestfs-actions.pod:3591 ../fish/guestfish-actions.pod:2458
11880 msgid ""
11881 "This returns true iff the file exists and the file is empty or it contains "
11882 "all zero bytes."
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
11887 msgid "(Added in 1.11.8)"
11888 msgstr ""
11889
11890 #. type: =head2
11891 #: ../src/guestfs-actions.pod:3598
11892 msgid "guestfs_is_zero_device"
11893 msgstr ""
11894
11895 #. type: verbatim
11896 #: ../src/guestfs-actions.pod:3600
11897 #, no-wrap
11898 msgid ""
11899 " int\n"
11900 " guestfs_is_zero_device (guestfs_h *g,\n"
11901 "                         const char *device);\n"
11902 "\n"
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2465
11907 msgid "This returns true iff the device exists and contains all zero bytes."
11908 msgstr ""
11909
11910 #. type: textblock
11911 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2467
11912 msgid "Note that for large devices this can take a long time to run."
11913 msgstr ""
11914
11915 #. type: =head2
11916 #: ../src/guestfs-actions.pod:3612
11917 msgid "guestfs_kill_subprocess"
11918 msgstr ""
11919
11920 #. type: verbatim
11921 #: ../src/guestfs-actions.pod:3614
11922 #, no-wrap
11923 msgid ""
11924 " int\n"
11925 " guestfs_kill_subprocess (guestfs_h *g);\n"
11926 "\n"
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2473
11931 msgid "This kills the qemu subprocess.  You should never need to call this."
11932 msgstr ""
11933
11934 #. type: =head2
11935 #: ../src/guestfs-actions.pod:3623
11936 msgid "guestfs_launch"
11937 msgstr ""
11938
11939 #. type: verbatim
11940 #: ../src/guestfs-actions.pod:3625
11941 #, no-wrap
11942 msgid ""
11943 " int\n"
11944 " guestfs_launch (guestfs_h *g);\n"
11945 "\n"
11946 msgstr ""
11947
11948 #. type: textblock
11949 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2481
11950 msgid ""
11951 "Internally libguestfs is implemented by running a virtual machine using "
11952 "L<qemu(1)>."
11953 msgstr ""
11954
11955 #. type: textblock
11956 #: ../src/guestfs-actions.pod:3631 ../fish/guestfish-actions.pod:2484
11957 msgid ""
11958 "You should call this after configuring the handle (eg. adding drives) but "
11959 "before performing any actions."
11960 msgstr ""
11961
11962 #. type: =head2
11963 #: ../src/guestfs-actions.pod:3643
11964 msgid "guestfs_lchown"
11965 msgstr ""
11966
11967 #. type: verbatim
11968 #: ../src/guestfs-actions.pod:3645
11969 #, no-wrap
11970 msgid ""
11971 " int\n"
11972 " guestfs_lchown (guestfs_h *g,\n"
11973 "                 int owner,\n"
11974 "                 int group,\n"
11975 "                 const char *path);\n"
11976 "\n"
11977 msgstr ""
11978
11979 #. type: textblock
11980 #: ../src/guestfs-actions.pod:3651
11981 msgid ""
11982 "Change the file owner to C<owner> and group to C<group>.  This is like "
11983 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
11984 "changed, not the target."
11985 msgstr ""
11986
11987 #. type: =head2
11988 #: ../src/guestfs-actions.pod:3663
11989 msgid "guestfs_lgetxattr"
11990 msgstr ""
11991
11992 #. type: verbatim
11993 #: ../src/guestfs-actions.pod:3665
11994 #, no-wrap
11995 msgid ""
11996 " char *\n"
11997 " guestfs_lgetxattr (guestfs_h *g,\n"
11998 "                    const char *path,\n"
11999 "                    const char *name,\n"
12000 "                    size_t *size_r);\n"
12001 "\n"
12002 msgstr ""
12003
12004 #. type: textblock
12005 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2503
12006 msgid ""
12007 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12008 "is a symlink, then this call returns an extended attribute from the symlink."
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../src/guestfs-actions.pod:3685
12013 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../src/guestfs-actions.pod:3693
12018 msgid "guestfs_lgetxattrs"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../src/guestfs-actions.pod:3695
12023 #, no-wrap
12024 msgid ""
12025 " struct guestfs_xattr_list *\n"
12026 " guestfs_lgetxattrs (guestfs_h *g,\n"
12027 "                     const char *path);\n"
12028 "\n"
12029 msgstr ""
12030
12031 #. type: textblock
12032 #: ../src/guestfs-actions.pod:3699
12033 msgid ""
12034 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12035 "then it returns the extended attributes of the link itself."
12036 msgstr ""
12037
12038 #. type: =head2
12039 #: ../src/guestfs-actions.pod:3709
12040 msgid "guestfs_list_9p"
12041 msgstr ""
12042
12043 #. type: verbatim
12044 #: ../src/guestfs-actions.pod:3711
12045 #, no-wrap
12046 msgid ""
12047 " char **\n"
12048 " guestfs_list_9p (guestfs_h *g);\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../src/guestfs-actions.pod:3714 ../fish/guestfish-actions.pod:2531
12054 msgid ""
12055 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12056 "returned."
12057 msgstr ""
12058
12059 #. type: =head2
12060 #: ../src/guestfs-actions.pod:3723
12061 msgid "guestfs_list_devices"
12062 msgstr ""
12063
12064 #. type: verbatim
12065 #: ../src/guestfs-actions.pod:3725
12066 #, no-wrap
12067 msgid ""
12068 " char **\n"
12069 " guestfs_list_devices (guestfs_h *g);\n"
12070 "\n"
12071 msgstr ""
12072
12073 #. type: textblock
12074 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2538
12075 msgid "List all the block devices."
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2540
12080 msgid "The full block device names are returned, eg. C</dev/sda>."
12081 msgstr ""
12082
12083 #. type: =head2
12084 #: ../src/guestfs-actions.pod:3740
12085 msgid "guestfs_list_dm_devices"
12086 msgstr ""
12087
12088 #. type: verbatim
12089 #: ../src/guestfs-actions.pod:3742
12090 #, no-wrap
12091 msgid ""
12092 " char **\n"
12093 " guestfs_list_dm_devices (guestfs_h *g);\n"
12094 "\n"
12095 msgstr ""
12096
12097 #. type: textblock
12098 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2548
12099 msgid "List all device mapper devices."
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../src/guestfs-actions.pod:3747
12104 msgid ""
12105 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12106 "previous call to C<guestfs_luks_open>."
12107 msgstr ""
12108
12109 #. type: textblock
12110 #: ../src/guestfs-actions.pod:3750
12111 msgid ""
12112 "Device mapper devices which correspond to logical volumes are I<not> "
12113 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
12114 "volumes."
12115 msgstr ""
12116
12117 #. type: textblock
12118 #: ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:5214
12119 msgid "(Added in 1.11.15)"
12120 msgstr ""
12121
12122 #. type: =head2
12123 #: ../src/guestfs-actions.pod:3760
12124 msgid "guestfs_list_filesystems"
12125 msgstr ""
12126
12127 #. type: verbatim
12128 #: ../src/guestfs-actions.pod:3762
12129 #, no-wrap
12130 msgid ""
12131 " char **\n"
12132 " guestfs_list_filesystems (guestfs_h *g);\n"
12133 "\n"
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2561
12138 msgid ""
12139 "This inspection command looks for filesystems on partitions, block devices "
12140 "and logical volumes, returning a list of devices containing filesystems and "
12141 "their type."
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2565
12146 msgid ""
12147 "The return value is a hash, where the keys are the devices containing "
12148 "filesystems, and the values are the filesystem types.  For example:"
12149 msgstr ""
12150
12151 #. type: verbatim
12152 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2569
12153 #, no-wrap
12154 msgid ""
12155 " \"/dev/sda1\" => \"ntfs\"\n"
12156 " \"/dev/sda2\" => \"ext2\"\n"
12157 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12158 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../src/guestfs-actions.pod:3778 ../fish/guestfish-actions.pod:2574
12164 msgid ""
12165 "The value can have the special value \"unknown\", meaning the content of the "
12166 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12167 msgstr ""
12168
12169 #. type: textblock
12170 #: ../src/guestfs-actions.pod:3782
12171 msgid ""
12172 "This command runs other libguestfs commands, which might include "
12173 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12174 "soon after launch and only when nothing is mounted."
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../src/guestfs-actions.pod:3786
12179 msgid ""
12180 "Not all of the filesystems returned will be mountable.  In particular, swap "
12181 "partitions are returned in the list.  Also this command does not check that "
12182 "each filesystem found is valid and mountable, and some filesystems might be "
12183 "mountable but require special options.  Filesystems may not all belong to a "
12184 "single logical operating system (use C<guestfs_inspect_os> to look for "
12185 "OSes)."
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5569
12190 msgid "(Added in 1.5.15)"
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../src/guestfs-actions.pod:3802
12195 msgid "guestfs_list_partitions"
12196 msgstr ""
12197
12198 #. type: verbatim
12199 #: ../src/guestfs-actions.pod:3804
12200 #, no-wrap
12201 msgid ""
12202 " char **\n"
12203 " guestfs_list_partitions (guestfs_h *g);\n"
12204 "\n"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2594
12209 msgid "List all the partitions detected on all block devices."
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2596
12214 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12215 msgstr ""
12216
12217 #. type: textblock
12218 #: ../src/guestfs-actions.pod:3811
12219 msgid ""
12220 "This does not return logical volumes.  For that you will need to call "
12221 "C<guestfs_lvs>."
12222 msgstr ""
12223
12224 #. type: =head2
12225 #: ../src/guestfs-actions.pod:3822
12226 msgid "guestfs_ll"
12227 msgstr ""
12228
12229 #. type: verbatim
12230 #: ../src/guestfs-actions.pod:3824
12231 #, no-wrap
12232 msgid ""
12233 " char *\n"
12234 " guestfs_ll (guestfs_h *g,\n"
12235 "             const char *directory);\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2607
12241 msgid ""
12242 "List the files in C<directory> (relative to the root directory, there is no "
12243 "cwd) in the format of 'ls -la'."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
12248 msgid ""
12249 "This command is mostly useful for interactive sessions.  It is I<not> "
12250 "intended that you try to parse the output string."
12251 msgstr ""
12252
12253 #. type: =head2
12254 #: ../src/guestfs-actions.pod:3839
12255 msgid "guestfs_ln"
12256 msgstr ""
12257
12258 #. type: verbatim
12259 #: ../src/guestfs-actions.pod:3841
12260 #, no-wrap
12261 msgid ""
12262 " int\n"
12263 " guestfs_ln (guestfs_h *g,\n"
12264 "             const char *target,\n"
12265 "             const char *linkname);\n"
12266 "\n"
12267 msgstr ""
12268
12269 #. type: textblock
12270 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
12271 msgid "This command creates a hard link using the C<ln> command."
12272 msgstr ""
12273
12274 #. type: =head2
12275 #: ../src/guestfs-actions.pod:3852
12276 msgid "guestfs_ln_f"
12277 msgstr ""
12278
12279 #. type: verbatim
12280 #: ../src/guestfs-actions.pod:3854
12281 #, no-wrap
12282 msgid ""
12283 " int\n"
12284 " guestfs_ln_f (guestfs_h *g,\n"
12285 "               const char *target,\n"
12286 "               const char *linkname);\n"
12287 "\n"
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../src/guestfs-actions.pod:3859 ../fish/guestfish-actions.pod:2623
12292 msgid ""
12293 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12294 "option removes the link (C<linkname>) if it exists already."
12295 msgstr ""
12296
12297 #. type: =head2
12298 #: ../src/guestfs-actions.pod:3866
12299 msgid "guestfs_ln_s"
12300 msgstr ""
12301
12302 #. type: verbatim
12303 #: ../src/guestfs-actions.pod:3868
12304 #, no-wrap
12305 msgid ""
12306 " int\n"
12307 " guestfs_ln_s (guestfs_h *g,\n"
12308 "               const char *target,\n"
12309 "               const char *linkname);\n"
12310 "\n"
12311 msgstr ""
12312
12313 #. type: textblock
12314 #: ../src/guestfs-actions.pod:3873 ../fish/guestfish-actions.pod:2630
12315 msgid "This command creates a symbolic link using the C<ln -s> command."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../src/guestfs-actions.pod:3879
12320 msgid "guestfs_ln_sf"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../src/guestfs-actions.pod:3881
12325 #, no-wrap
12326 msgid ""
12327 " int\n"
12328 " guestfs_ln_sf (guestfs_h *g,\n"
12329 "                const char *target,\n"
12330 "                const char *linkname);\n"
12331 "\n"
12332 msgstr ""
12333
12334 #. type: textblock
12335 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2636
12336 msgid ""
12337 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12338 "option removes the link (C<linkname>) if it exists already."
12339 msgstr ""
12340
12341 #. type: =head2
12342 #: ../src/guestfs-actions.pod:3893
12343 msgid "guestfs_lremovexattr"
12344 msgstr ""
12345
12346 #. type: verbatim
12347 #: ../src/guestfs-actions.pod:3895
12348 #, no-wrap
12349 msgid ""
12350 " int\n"
12351 " guestfs_lremovexattr (guestfs_h *g,\n"
12352 "                       const char *xattr,\n"
12353 "                       const char *path);\n"
12354 "\n"
12355 msgstr ""
12356
12357 #. type: textblock
12358 #: ../src/guestfs-actions.pod:3900
12359 msgid ""
12360 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12361 "link, then it removes an extended attribute of the link itself."
12362 msgstr ""
12363
12364 #. type: =head2
12365 #: ../src/guestfs-actions.pod:3908
12366 msgid "guestfs_ls"
12367 msgstr ""
12368
12369 #. type: verbatim
12370 #: ../src/guestfs-actions.pod:3910
12371 #, no-wrap
12372 msgid ""
12373 " char **\n"
12374 " guestfs_ls (guestfs_h *g,\n"
12375 "             const char *directory);\n"
12376 "\n"
12377 msgstr ""
12378
12379 #. type: textblock
12380 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2651
12381 msgid ""
12382 "List the files in C<directory> (relative to the root directory, there is no "
12383 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
12384 "shown."
12385 msgstr ""
12386
12387 #. type: textblock
12388 #: ../src/guestfs-actions.pod:3918
12389 msgid ""
12390 "This command is mostly useful for interactive sessions.  Programs should "
12391 "probably use C<guestfs_readdir> instead."
12392 msgstr ""
12393
12394 #. type: =head2
12395 #: ../src/guestfs-actions.pod:3927
12396 msgid "guestfs_lsetxattr"
12397 msgstr ""
12398
12399 #. type: verbatim
12400 #: ../src/guestfs-actions.pod:3929
12401 #, no-wrap
12402 msgid ""
12403 " int\n"
12404 " guestfs_lsetxattr (guestfs_h *g,\n"
12405 "                    const char *xattr,\n"
12406 "                    const char *val,\n"
12407 "                    int vallen,\n"
12408 "                    const char *path);\n"
12409 "\n"
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../src/guestfs-actions.pod:3936
12414 msgid ""
12415 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12416 "then it sets an extended attribute of the link itself."
12417 msgstr ""
12418
12419 #. type: =head2
12420 #: ../src/guestfs-actions.pod:3944
12421 msgid "guestfs_lstat"
12422 msgstr ""
12423
12424 #. type: verbatim
12425 #: ../src/guestfs-actions.pod:3946
12426 #, no-wrap
12427 msgid ""
12428 " struct guestfs_stat *\n"
12429 " guestfs_lstat (guestfs_h *g,\n"
12430 "                const char *path);\n"
12431 "\n"
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:6721 ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4472
12436 msgid "Returns file information for the given C<path>."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../src/guestfs-actions.pod:3952
12441 msgid ""
12442 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12443 "link, then the link is stat-ed, not the file it refers to."
12444 msgstr ""
12445
12446 #. type: textblock
12447 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2676
12448 msgid "This is the same as the C<lstat(2)> system call."
12449 msgstr ""
12450
12451 #. type: textblock
12452 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:6725
12453 msgid ""
12454 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12455 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12456 msgstr ""
12457
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:7128
12460 msgid "(Added in 0.9.2)"
12461 msgstr ""
12462
12463 #. type: =head2
12464 #: ../src/guestfs-actions.pod:3964
12465 msgid "guestfs_lstatlist"
12466 msgstr ""
12467
12468 #. type: verbatim
12469 #: ../src/guestfs-actions.pod:3966
12470 #, no-wrap
12471 msgid ""
12472 " struct guestfs_stat_list *\n"
12473 " guestfs_lstatlist (guestfs_h *g,\n"
12474 "                    const char *path,\n"
12475 "                    char *const *names);\n"
12476 "\n"
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../src/guestfs-actions.pod:3971
12481 msgid ""
12482 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12483 "files, where all files are in the directory C<path>.  C<names> is the list "
12484 "of files from this directory."
12485 msgstr ""
12486
12487 #. type: textblock
12488 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2686
12489 msgid ""
12490 "On return you get a list of stat structs, with a one-to-one correspondence "
12491 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12492 "then the C<ino> field of that structure is set to C<-1>."
12493 msgstr ""
12494
12495 #. type: textblock
12496 #: ../src/guestfs-actions.pod:3980
12497 msgid ""
12498 "This call is intended for programs that want to efficiently list a directory "
12499 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12500 "for a similarly efficient call for getting extended attributes.  Very long "
12501 "directory listings might cause the protocol message size to be exceeded, "
12502 "causing this call to fail.  The caller must split up such requests into "
12503 "smaller groups of names."
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../src/guestfs-actions.pod:3988
12508 msgid ""
12509 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12510 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12511 msgstr ""
12512
12513 #. type: =head2
12514 #: ../src/guestfs-actions.pod:3994
12515 msgid "guestfs_luks_add_key"
12516 msgstr ""
12517
12518 #. type: verbatim
12519 #: ../src/guestfs-actions.pod:3996
12520 #, no-wrap
12521 msgid ""
12522 " int\n"
12523 " guestfs_luks_add_key (guestfs_h *g,\n"
12524 "                       const char *device,\n"
12525 "                       const char *key,\n"
12526 "                       const char *newkey,\n"
12527 "                       int keyslot);\n"
12528 "\n"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../src/guestfs-actions.pod:4003 ../fish/guestfish-actions.pod:2703
12533 msgid ""
12534 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12535 "existing key, and is used to access the device.  C<newkey> is the new key to "
12536 "add.  C<keyslot> is the key slot that will be replaced."
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../src/guestfs-actions.pod:4008
12541 msgid ""
12542 "Note that if C<keyslot> already contains a key, then this command will "
12543 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4054 ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
12548 msgid ""
12549 "This function takes a key or passphrase parameter which could contain "
12550 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12551 "information."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4101
12556 msgid "(Added in 1.5.2)"
12557 msgstr ""
12558
12559 #. type: =head2
12560 #: ../src/guestfs-actions.pod:4020
12561 msgid "guestfs_luks_close"
12562 msgstr ""
12563
12564 #. type: verbatim
12565 #: ../src/guestfs-actions.pod:4022
12566 #, no-wrap
12567 msgid ""
12568 " int\n"
12569 " guestfs_luks_close (guestfs_h *g,\n"
12570 "                     const char *device);\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../src/guestfs-actions.pod:4026
12576 msgid ""
12577 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12578 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12579 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12580 "underlying block device."
12581 msgstr ""
12582
12583 #. type: textblock
12584 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4155 ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4253
12585 msgid "(Added in 1.5.1)"
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../src/guestfs-actions.pod:4036
12590 msgid "guestfs_luks_format"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../src/guestfs-actions.pod:4038
12595 #, no-wrap
12596 msgid ""
12597 " int\n"
12598 " guestfs_luks_format (guestfs_h *g,\n"
12599 "                      const char *device,\n"
12600 "                      const char *key,\n"
12601 "                      int keyslot);\n"
12602 "\n"
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2729
12607 msgid ""
12608 "This command erases existing data on C<device> and formats the device as a "
12609 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12610 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12611 msgstr ""
12612
12613 #. type: textblock
12614 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:6102 ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7787 ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498 ../fish/guestfish-actions.pod:4018 ../fish/guestfish-actions.pod:4343 ../fish/guestfish-actions.pod:4366 ../fish/guestfish-actions.pod:4388 ../fish/guestfish-actions.pod:5126
12615 msgid ""
12616 "B<This command is dangerous.  Without careful use you can easily destroy all "
12617 "your data>."
12618 msgstr ""
12619
12620 #. type: =head2
12621 #: ../src/guestfs-actions.pod:4060
12622 msgid "guestfs_luks_format_cipher"
12623 msgstr ""
12624
12625 #. type: verbatim
12626 #: ../src/guestfs-actions.pod:4062
12627 #, no-wrap
12628 msgid ""
12629 " int\n"
12630 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12631 "                             const char *device,\n"
12632 "                             const char *key,\n"
12633 "                             int keyslot,\n"
12634 "                             const char *cipher);\n"
12635 "\n"
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../src/guestfs-actions.pod:4069
12640 msgid ""
12641 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12642 "set the C<cipher> used."
12643 msgstr ""
12644
12645 #. type: =head2
12646 #: ../src/guestfs-actions.pod:4083
12647 msgid "guestfs_luks_kill_slot"
12648 msgstr ""
12649
12650 #. type: verbatim
12651 #: ../src/guestfs-actions.pod:4085
12652 #, no-wrap
12653 msgid ""
12654 " int\n"
12655 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12656 "                         const char *device,\n"
12657 "                         const char *key,\n"
12658 "                         int keyslot);\n"
12659 "\n"
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2757
12664 msgid ""
12665 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12666 "device C<device>.  C<key> must be one of the I<other> keys."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../src/guestfs-actions.pod:4103
12671 msgid "guestfs_luks_open"
12672 msgstr ""
12673
12674 #. type: verbatim
12675 #: ../src/guestfs-actions.pod:4105
12676 #, no-wrap
12677 msgid ""
12678 " int\n"
12679 " guestfs_luks_open (guestfs_h *g,\n"
12680 "                    const char *device,\n"
12681 "                    const char *key,\n"
12682 "                    const char *mapname);\n"
12683 "\n"
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:2768
12688 msgid ""
12689 "This command opens a block device which has been encrypted according to the "
12690 "Linux Unified Key Setup (LUKS) standard."
12691 msgstr ""
12692
12693 #. type: textblock
12694 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2771
12695 msgid "C<device> is the encrypted block device or partition."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2773
12700 msgid ""
12701 "The caller must supply one of the keys associated with the LUKS block "
12702 "device, in the C<key> parameter."
12703 msgstr ""
12704
12705 #. type: textblock
12706 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2776
12707 msgid ""
12708 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12709 "writes to this block device are decrypted from and encrypted to the "
12710 "underlying C<device> respectively."
12711 msgstr ""
12712
12713 #. type: textblock
12714 #: ../src/guestfs-actions.pod:4123
12715 msgid ""
12716 "If this block device contains LVM volume groups, then calling "
12717 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12718 "visible."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../src/guestfs-actions.pod:4127
12723 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
12724 msgstr ""
12725
12726 #. type: =head2
12727 #: ../src/guestfs-actions.pod:4138
12728 msgid "guestfs_luks_open_ro"
12729 msgstr ""
12730
12731 #. type: verbatim
12732 #: ../src/guestfs-actions.pod:4140
12733 #, no-wrap
12734 msgid ""
12735 " int\n"
12736 " guestfs_luks_open_ro (guestfs_h *g,\n"
12737 "                       const char *device,\n"
12738 "                       const char *key,\n"
12739 "                       const char *mapname);\n"
12740 "\n"
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../src/guestfs-actions.pod:4146
12745 msgid ""
12746 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12747 "created."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../src/guestfs-actions.pod:4157
12752 msgid "guestfs_lvcreate"
12753 msgstr ""
12754
12755 #. type: verbatim
12756 #: ../src/guestfs-actions.pod:4159
12757 #, no-wrap
12758 msgid ""
12759 " int\n"
12760 " guestfs_lvcreate (guestfs_h *g,\n"
12761 "                   const char *logvol,\n"
12762 "                   const char *volgroup,\n"
12763 "                   int mbytes);\n"
12764 "\n"
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../src/guestfs-actions.pod:4165 ../fish/guestfish-actions.pod:2804
12769 msgid ""
12770 "This creates an LVM logical volume called C<logvol> on the volume group "
12771 "C<volgroup>, with C<size> megabytes."
12772 msgstr ""
12773
12774 #. type: =head2
12775 #: ../src/guestfs-actions.pod:4172
12776 msgid "guestfs_lvm_canonical_lv_name"
12777 msgstr ""
12778
12779 #. type: verbatim
12780 #: ../src/guestfs-actions.pod:4174
12781 #, no-wrap
12782 msgid ""
12783 " char *\n"
12784 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12785 "                                const char *lvname);\n"
12786 "\n"
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2811
12791 msgid ""
12792 "This converts alternative naming schemes for LVs that you might find to the "
12793 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12794 "C</dev/VG/LV>."
12795 msgstr ""
12796
12797 #. type: textblock
12798 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
12799 msgid ""
12800 "This command returns an error if the C<lvname> parameter does not refer to a "
12801 "logical volume."
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../src/guestfs-actions.pod:4185
12806 msgid "See also C<guestfs_is_lv>."
12807 msgstr ""
12808
12809 #. type: textblock
12810 #: ../src/guestfs-actions.pod:4190
12811 msgid "(Added in 1.5.24)"
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../src/guestfs-actions.pod:4192
12816 msgid "guestfs_lvm_clear_filter"
12817 msgstr ""
12818
12819 #. type: verbatim
12820 #: ../src/guestfs-actions.pod:4194
12821 #, no-wrap
12822 msgid ""
12823 " int\n"
12824 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12825 "\n"
12826 msgstr ""
12827
12828 #. type: textblock
12829 #: ../src/guestfs-actions.pod:4197
12830 msgid ""
12831 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12832 "see every block device."
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4242 ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
12837 msgid "This command also clears the LVM cache and performs a volume group scan."
12838 msgstr ""
12839
12840 #. type: =head2
12841 #: ../src/guestfs-actions.pod:4207
12842 msgid "guestfs_lvm_remove_all"
12843 msgstr ""
12844
12845 #. type: verbatim
12846 #: ../src/guestfs-actions.pod:4209
12847 #, no-wrap
12848 msgid ""
12849 " int\n"
12850 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12851 "\n"
12852 msgstr ""
12853
12854 #. type: textblock
12855 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2834
12856 msgid ""
12857 "This command removes all LVM logical volumes, volume groups and physical "
12858 "volumes."
12859 msgstr ""
12860
12861 #. type: =head2
12862 #: ../src/guestfs-actions.pod:4222
12863 msgid "guestfs_lvm_set_filter"
12864 msgstr ""
12865
12866 #. type: verbatim
12867 #: ../src/guestfs-actions.pod:4224
12868 #, no-wrap
12869 msgid ""
12870 " int\n"
12871 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12872 "                         char *const *devices);\n"
12873 "\n"
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2844
12878 msgid ""
12879 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12880 "block devices in the list C<devices>, and will ignore all other attached "
12881 "block devices."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../src/guestfs-actions.pod:4232 ../fish/guestfish-actions.pod:2848
12886 msgid ""
12887 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12888 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12889 "there are two types of duplication possible: either cloned PVs/VGs which "
12890 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12891 "same name.  In normal operation you cannot create this situation, but you "
12892 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12893 "inside the LVM metadata."
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:2861
12898 msgid "You can filter whole block devices or individual partitions."
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2863
12903 msgid ""
12904 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12905 "filesystem), even if you are not filtering out that VG."
12906 msgstr ""
12907
12908 #. type: =head2
12909 #: ../src/guestfs-actions.pod:4255
12910 msgid "guestfs_lvremove"
12911 msgstr ""
12912
12913 #. type: verbatim
12914 #: ../src/guestfs-actions.pod:4257
12915 #, no-wrap
12916 msgid ""
12917 " int\n"
12918 " guestfs_lvremove (guestfs_h *g,\n"
12919 "                   const char *device);\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:2871
12925 msgid ""
12926 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12927 "LV, such as C</dev/VG/LV>."
12928 msgstr ""
12929
12930 #. type: textblock
12931 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2874
12932 msgid ""
12933 "You can also remove all LVs in a volume group by specifying the VG name, "
12934 "C</dev/VG>."
12935 msgstr ""
12936
12937 #. type: textblock
12938 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:7498
12939 msgid "(Added in 1.0.13)"
12940 msgstr ""
12941
12942 #. type: =head2
12943 #: ../src/guestfs-actions.pod:4271
12944 msgid "guestfs_lvrename"
12945 msgstr ""
12946
12947 #. type: verbatim
12948 #: ../src/guestfs-actions.pod:4273
12949 #, no-wrap
12950 msgid ""
12951 " int\n"
12952 " guestfs_lvrename (guestfs_h *g,\n"
12953 "                   const char *logvol,\n"
12954 "                   const char *newlogvol);\n"
12955 "\n"
12956 msgstr ""
12957
12958 #. type: textblock
12959 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2881
12960 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12961 msgstr ""
12962
12963 #. type: textblock
12964 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7511
12965 msgid "(Added in 1.0.83)"
12966 msgstr ""
12967
12968 #. type: =head2
12969 #: ../src/guestfs-actions.pod:4284
12970 msgid "guestfs_lvresize"
12971 msgstr ""
12972
12973 #. type: verbatim
12974 #: ../src/guestfs-actions.pod:4286
12975 #, no-wrap
12976 msgid ""
12977 " int\n"
12978 " guestfs_lvresize (guestfs_h *g,\n"
12979 "                   const char *device,\n"
12980 "                   int mbytes);\n"
12981 "\n"
12982 msgstr ""
12983
12984 #. type: textblock
12985 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2887
12986 msgid ""
12987 "This resizes (expands or shrinks) an existing LVM logical volume to "
12988 "C<mbytes>.  When reducing, data in the reduced part is lost."
12989 msgstr ""
12990
12991 #. type: =head2
12992 #: ../src/guestfs-actions.pod:4299
12993 msgid "guestfs_lvresize_free"
12994 msgstr ""
12995
12996 #. type: verbatim
12997 #: ../src/guestfs-actions.pod:4301
12998 #, no-wrap
12999 msgid ""
13000 " int\n"
13001 " guestfs_lvresize_free (guestfs_h *g,\n"
13002 "                        const char *lv,\n"
13003 "                        int percent);\n"
13004 "\n"
13005 msgstr ""
13006
13007 #. type: textblock
13008 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:2895
13009 msgid ""
13010 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13011 "remaining free space in the volume group.  Commonly you would call this with "
13012 "pc = 100 which expands the logical volume as much as possible, using all "
13013 "remaining free space in the volume group."
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../src/guestfs-actions.pod:4314
13018 msgid "(Added in 1.3.3)"
13019 msgstr ""
13020
13021 #. type: =head2
13022 #: ../src/guestfs-actions.pod:4316
13023 msgid "guestfs_lvs"
13024 msgstr ""
13025
13026 #. type: verbatim
13027 #: ../src/guestfs-actions.pod:4318
13028 #, no-wrap
13029 msgid ""
13030 " char **\n"
13031 " guestfs_lvs (guestfs_h *g);\n"
13032 "\n"
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2905
13037 msgid ""
13038 "List all the logical volumes detected.  This is the equivalent of the "
13039 "L<lvs(8)> command."
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2908
13044 msgid ""
13045 "This returns a list of the logical volume device names "
13046 "(eg. C</dev/VolGroup00/LogVol00>)."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../src/guestfs-actions.pod:4327
13051 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13052 msgstr ""
13053
13054 #. type: =head2
13055 #: ../src/guestfs-actions.pod:4335
13056 msgid "guestfs_lvs_full"
13057 msgstr ""
13058
13059 #. type: verbatim
13060 #: ../src/guestfs-actions.pod:4337
13061 #, no-wrap
13062 msgid ""
13063 " struct guestfs_lvm_lv_list *\n"
13064 " guestfs_lvs_full (guestfs_h *g);\n"
13065 "\n"
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../src/guestfs-actions.pod:4340 ../fish/guestfish-actions.pod:2917
13070 msgid ""
13071 "List all the logical volumes detected.  This is the equivalent of the "
13072 "L<lvs(8)> command.  The \"full\" version includes all fields."
13073 msgstr ""
13074
13075 #. type: textblock
13076 #: ../src/guestfs-actions.pod:4343
13077 msgid ""
13078 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13079 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
13080 "use>."
13081 msgstr ""
13082
13083 #. type: =head2
13084 #: ../src/guestfs-actions.pod:4349
13085 msgid "guestfs_lvuuid"
13086 msgstr ""
13087
13088 #. type: verbatim
13089 #: ../src/guestfs-actions.pod:4351
13090 #, no-wrap
13091 msgid ""
13092 " char *\n"
13093 " guestfs_lvuuid (guestfs_h *g,\n"
13094 "                 const char *device);\n"
13095 "\n"
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../src/guestfs-actions.pod:4355 ../fish/guestfish-actions.pod:2924
13100 msgid "This command returns the UUID of the LVM LV C<device>."
13101 msgstr ""
13102
13103 #. type: =head2
13104 #: ../src/guestfs-actions.pod:4362
13105 msgid "guestfs_lxattrlist"
13106 msgstr ""
13107
13108 #. type: verbatim
13109 #: ../src/guestfs-actions.pod:4364
13110 #, no-wrap
13111 msgid ""
13112 " struct guestfs_xattr_list *\n"
13113 " guestfs_lxattrlist (guestfs_h *g,\n"
13114 "                     const char *path,\n"
13115 "                     char *const *names);\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2930
13121 msgid ""
13122 "This call allows you to get the extended attributes of multiple files, where "
13123 "all files are in the directory C<path>.  C<names> is the list of files from "
13124 "this directory."
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../src/guestfs-actions.pod:4373 ../fish/guestfish-actions.pod:2934
13129 msgid ""
13130 "On return you get a flat list of xattr structs which must be interpreted "
13131 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13132 "C<attrval> in this struct is zero-length to indicate there was an error "
13133 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13134 "number (the number of following attributes for this file, which could be "
13135 "C<\"0\">).  Then after the first xattr struct are the zero or more "
13136 "attributes for the first named file.  This repeats for the second and "
13137 "subsequent files."
13138 msgstr ""
13139
13140 #. type: textblock
13141 #: ../src/guestfs-actions.pod:4383
13142 msgid ""
13143 "This call is intended for programs that want to efficiently list a directory "
13144 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13145 "a similarly efficient call for getting standard stats.  Very long directory "
13146 "listings might cause the protocol message size to be exceeded, causing this "
13147 "call to fail.  The caller must split up such requests into smaller groups of "
13148 "names."
13149 msgstr ""
13150
13151 #. type: =head2
13152 #: ../src/guestfs-actions.pod:4397
13153 msgid "guestfs_mkdir"
13154 msgstr ""
13155
13156 #. type: verbatim
13157 #: ../src/guestfs-actions.pod:4399
13158 #, no-wrap
13159 msgid ""
13160 " int\n"
13161 " guestfs_mkdir (guestfs_h *g,\n"
13162 "                const char *path);\n"
13163 "\n"
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2956
13168 msgid "Create a directory named C<path>."
13169 msgstr ""
13170
13171 #. type: =head2
13172 #: ../src/guestfs-actions.pod:4409
13173 msgid "guestfs_mkdir_mode"
13174 msgstr ""
13175
13176 #. type: verbatim
13177 #: ../src/guestfs-actions.pod:4411
13178 #, no-wrap
13179 msgid ""
13180 " int\n"
13181 " guestfs_mkdir_mode (guestfs_h *g,\n"
13182 "                     const char *path,\n"
13183 "                     int mode);\n"
13184 "\n"
13185 msgstr ""
13186
13187 #. type: textblock
13188 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2962
13189 msgid ""
13190 "This command creates a directory, setting the initial permissions of the "
13191 "directory to C<mode>."
13192 msgstr ""
13193
13194 #. type: textblock
13195 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:2965
13196 msgid ""
13197 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13198 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13199 "other ways."
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:4423
13204 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13205 msgstr ""
13206
13207 #. type: =head2
13208 #: ../src/guestfs-actions.pod:4429
13209 msgid "guestfs_mkdir_p"
13210 msgstr ""
13211
13212 #. type: verbatim
13213 #: ../src/guestfs-actions.pod:4431
13214 #, no-wrap
13215 msgid ""
13216 " int\n"
13217 " guestfs_mkdir_p (guestfs_h *g,\n"
13218 "                  const char *path);\n"
13219 "\n"
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2975
13224 msgid ""
13225 "Create a directory named C<path>, creating any parent directories as "
13226 "necessary.  This is like the C<mkdir -p> shell command."
13227 msgstr ""
13228
13229 #. type: =head2
13230 #: ../src/guestfs-actions.pod:4442
13231 msgid "guestfs_mkdtemp"
13232 msgstr ""
13233
13234 #. type: verbatim
13235 #: ../src/guestfs-actions.pod:4444
13236 #, no-wrap
13237 msgid ""
13238 " char *\n"
13239 " guestfs_mkdtemp (guestfs_h *g,\n"
13240 "                  const char *template);\n"
13241 "\n"
13242 msgstr ""
13243
13244 #. type: textblock
13245 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2982
13246 msgid ""
13247 "This command creates a temporary directory.  The C<template> parameter "
13248 "should be a full pathname for the temporary directory name with the final "
13249 "six characters being \"XXXXXX\"."
13250 msgstr ""
13251
13252 #. type: textblock
13253 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2987
13254 msgid ""
13255 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13256 "being suitable for Windows filesystems."
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2990
13261 msgid "The name of the temporary directory that was created is returned."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2993
13266 msgid "The temporary directory is created with mode 0700 and is owned by root."
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2996
13271 msgid ""
13272 "The caller is responsible for deleting the temporary directory and its "
13273 "contents after use."
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2999
13278 msgid "See also: L<mkdtemp(3)>"
13279 msgstr ""
13280
13281 #. type: =head2
13282 #: ../src/guestfs-actions.pod:4472
13283 msgid "guestfs_mke2fs_J"
13284 msgstr ""
13285
13286 #. type: verbatim
13287 #: ../src/guestfs-actions.pod:4474
13288 #, no-wrap
13289 msgid ""
13290 " int\n"
13291 " guestfs_mke2fs_J (guestfs_h *g,\n"
13292 "                   const char *fstype,\n"
13293 "                   int blocksize,\n"
13294 "                   const char *device,\n"
13295 "                   const char *journal);\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../src/guestfs-actions.pod:4481 ../fish/guestfish-actions.pod:3005
13301 msgid ""
13302 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13303 "C<journal>.  It is equivalent to the command:"
13304 msgstr ""
13305
13306 #. type: verbatim
13307 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
13308 #, no-wrap
13309 msgid ""
13310 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13311 "\n"
13312 msgstr ""
13313
13314 #. type: textblock
13315 #: ../src/guestfs-actions.pod:4487
13316 msgid "See also C<guestfs_mke2journal>."
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4907
13321 msgid "(Added in 1.0.68)"
13322 msgstr ""
13323
13324 #. type: =head2
13325 #: ../src/guestfs-actions.pod:4493
13326 msgid "guestfs_mke2fs_JL"
13327 msgstr ""
13328
13329 #. type: verbatim
13330 #: ../src/guestfs-actions.pod:4495
13331 #, no-wrap
13332 msgid ""
13333 " int\n"
13334 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13335 "                    const char *fstype,\n"
13336 "                    int blocksize,\n"
13337 "                    const char *device,\n"
13338 "                    const char *label);\n"
13339 "\n"
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3017
13344 msgid ""
13345 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13346 "the journal labeled C<label>."
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../src/guestfs-actions.pod:4505
13351 msgid "See also C<guestfs_mke2journal_L>."
13352 msgstr ""
13353
13354 #. type: =head2
13355 #: ../src/guestfs-actions.pod:4511
13356 msgid "guestfs_mke2fs_JU"
13357 msgstr ""
13358
13359 #. type: verbatim
13360 #: ../src/guestfs-actions.pod:4513
13361 #, no-wrap
13362 msgid ""
13363 " int\n"
13364 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13365 "                    const char *fstype,\n"
13366 "                    int blocksize,\n"
13367 "                    const char *device,\n"
13368 "                    const char *uuid);\n"
13369 "\n"
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3026
13374 msgid ""
13375 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13376 "the journal with UUID C<uuid>."
13377 msgstr ""
13378
13379 #. type: textblock
13380 #: ../src/guestfs-actions.pod:4523
13381 msgid "See also C<guestfs_mke2journal_U>."
13382 msgstr ""
13383
13384 #. type: =head2
13385 #: ../src/guestfs-actions.pod:4529
13386 msgid "guestfs_mke2journal"
13387 msgstr ""
13388
13389 #. type: verbatim
13390 #: ../src/guestfs-actions.pod:4531
13391 #, no-wrap
13392 msgid ""
13393 " int\n"
13394 " guestfs_mke2journal (guestfs_h *g,\n"
13395 "                      int blocksize,\n"
13396 "                      const char *device);\n"
13397 "\n"
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3035
13402 msgid ""
13403 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13404 "command:"
13405 msgstr ""
13406
13407 #. type: verbatim
13408 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3038
13409 #, no-wrap
13410 msgid ""
13411 " mke2fs -O journal_dev -b blocksize device\n"
13412 "\n"
13413 msgstr ""
13414
13415 #. type: =head2
13416 #: ../src/guestfs-actions.pod:4545
13417 msgid "guestfs_mke2journal_L"
13418 msgstr ""
13419
13420 #. type: verbatim
13421 #: ../src/guestfs-actions.pod:4547
13422 #, no-wrap
13423 msgid ""
13424 " int\n"
13425 " guestfs_mke2journal_L (guestfs_h *g,\n"
13426 "                        int blocksize,\n"
13427 "                        const char *label,\n"
13428 "                        const char *device);\n"
13429 "\n"
13430 msgstr ""
13431
13432 #. type: textblock
13433 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3044
13434 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13435 msgstr ""
13436
13437 #. type: =head2
13438 #: ../src/guestfs-actions.pod:4559
13439 msgid "guestfs_mke2journal_U"
13440 msgstr ""
13441
13442 #. type: verbatim
13443 #: ../src/guestfs-actions.pod:4561
13444 #, no-wrap
13445 msgid ""
13446 " int\n"
13447 " guestfs_mke2journal_U (guestfs_h *g,\n"
13448 "                        int blocksize,\n"
13449 "                        const char *uuid,\n"
13450 "                        const char *device);\n"
13451 "\n"
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../src/guestfs-actions.pod:4567 ../fish/guestfish-actions.pod:3050
13456 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13457 msgstr ""
13458
13459 #. type: =head2
13460 #: ../src/guestfs-actions.pod:4573
13461 msgid "guestfs_mkfifo"
13462 msgstr ""
13463
13464 #. type: verbatim
13465 #: ../src/guestfs-actions.pod:4575
13466 #, no-wrap
13467 msgid ""
13468 " int\n"
13469 " guestfs_mkfifo (guestfs_h *g,\n"
13470 "                 int mode,\n"
13471 "                 const char *path);\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../src/guestfs-actions.pod:4580
13477 msgid ""
13478 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13479 "is just a convenient wrapper around C<guestfs_mknod>."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../src/guestfs-actions.pod:4590
13484 msgid "guestfs_mkfs"
13485 msgstr ""
13486
13487 #. type: verbatim
13488 #: ../src/guestfs-actions.pod:4592
13489 #, no-wrap
13490 msgid ""
13491 " int\n"
13492 " guestfs_mkfs (guestfs_h *g,\n"
13493 "               const char *fstype,\n"
13494 "               const char *device);\n"
13495 "\n"
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3066
13500 msgid ""
13501 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13502 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13503 msgstr ""
13504
13505 #. type: =head2
13506 #: ../src/guestfs-actions.pod:4605
13507 msgid "guestfs_mkfs_b"
13508 msgstr ""
13509
13510 #. type: verbatim
13511 #: ../src/guestfs-actions.pod:4607
13512 #, no-wrap
13513 msgid ""
13514 " int\n"
13515 " guestfs_mkfs_b (guestfs_h *g,\n"
13516 "                 const char *fstype,\n"
13517 "                 int blocksize,\n"
13518 "                 const char *device);\n"
13519 "\n"
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../src/guestfs-actions.pod:4613
13524 msgid ""
13525 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13526 "block size of the resulting filesystem.  Supported block sizes depend on the "
13527 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4663 ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
13532 msgid ""
13533 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13534 "cluster size."
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../src/guestfs-actions.pod:4623 ../fish/guestfish-actions.pod:3082
13539 msgid ""
13540 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
13541 "instead."
13542 msgstr ""
13543
13544 #. type: =head2
13545 #: ../src/guestfs-actions.pod:4632
13546 msgid "guestfs_mkfs_opts"
13547 msgstr ""
13548
13549 #. type: verbatim
13550 #: ../src/guestfs-actions.pod:4634
13551 #, no-wrap
13552 msgid ""
13553 " int\n"
13554 " guestfs_mkfs_opts (guestfs_h *g,\n"
13555 "                    const char *fstype,\n"
13556 "                    const char *device,\n"
13557 "                    ...);\n"
13558 "\n"
13559 msgstr ""
13560
13561 #. type: verbatim
13562 #: ../src/guestfs-actions.pod:4645
13563 #, no-wrap
13564 msgid ""
13565 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13566 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13567 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
13568 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
13569 "\n"
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3093
13574 msgid ""
13575 "This function creates a filesystem on C<device>.  The filesystem type is "
13576 "C<fstype>, for example C<ext3>."
13577 msgstr ""
13578
13579 #. type: =item
13580 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3100
13581 msgid "C<blocksize>"
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3102
13586 msgid ""
13587 "The filesystem block size.  Supported block sizes depend on the filesystem "
13588 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13589 "filesystems."
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3109
13594 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13595 msgstr ""
13596
13597 #. type: =item
13598 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3111
13599 msgid "C<features>"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3113
13604 msgid "This passes the I<-O> parameter to the external mkfs program."
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3115
13609 msgid ""
13610 "For certain filesystem types, this allows extra filesystem features to be "
13611 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3119
13616 msgid ""
13617 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13618 "type."
13619 msgstr ""
13620
13621 #. type: =item
13622 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3122
13623 msgid "C<inode>"
13624 msgstr ""
13625
13626 #. type: textblock
13627 #: ../src/guestfs-actions.pod:4681 ../fish/guestfish-actions.pod:3124
13628 msgid ""
13629 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13630 "sets the inode size (only for ext2/3/4 filesystems at present)."
13631 msgstr ""
13632
13633 #. type: =item
13634 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3127
13635 msgid "C<sectorsize>"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3129
13640 msgid ""
13641 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13642 "sets sector size for ufs filesystem."
13643 msgstr ""
13644
13645 #. type: textblock
13646 #: ../src/guestfs-actions.pod:4693
13647 msgid "(Added in 1.7.19)"
13648 msgstr ""
13649
13650 #. type: =head2
13651 #: ../src/guestfs-actions.pod:4695
13652 msgid "guestfs_mkfs_opts_va"
13653 msgstr ""
13654
13655 #. type: verbatim
13656 #: ../src/guestfs-actions.pod:4697
13657 #, no-wrap
13658 msgid ""
13659 " int\n"
13660 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13661 "                       const char *fstype,\n"
13662 "                       const char *device,\n"
13663 "                       va_list args);\n"
13664 "\n"
13665 msgstr ""
13666
13667 #. type: textblock
13668 #: ../src/guestfs-actions.pod:4703
13669 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13670 msgstr ""
13671
13672 #. type: =head2
13673 #: ../src/guestfs-actions.pod:4707
13674 msgid "guestfs_mkfs_opts_argv"
13675 msgstr ""
13676
13677 #. type: verbatim
13678 #: ../src/guestfs-actions.pod:4709
13679 #, no-wrap
13680 msgid ""
13681 " int\n"
13682 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13683 "                         const char *fstype,\n"
13684 "                         const char *device,\n"
13685 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13686 "\n"
13687 msgstr ""
13688
13689 #. type: textblock
13690 #: ../src/guestfs-actions.pod:4715
13691 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13692 msgstr ""
13693
13694 #. type: =head2
13695 #: ../src/guestfs-actions.pod:4719
13696 msgid "guestfs_mkmountpoint"
13697 msgstr ""
13698
13699 #. type: verbatim
13700 #: ../src/guestfs-actions.pod:4721
13701 #, no-wrap
13702 msgid ""
13703 " int\n"
13704 " guestfs_mkmountpoint (guestfs_h *g,\n"
13705 "                       const char *exemptpath);\n"
13706 "\n"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../src/guestfs-actions.pod:4725
13711 msgid ""
13712 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13713 "that can be used to create extra mountpoints before mounting the first "
13714 "filesystem."
13715 msgstr ""
13716
13717 #. type: textblock
13718 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3144
13719 msgid ""
13720 "These calls are I<only> necessary in some very limited circumstances, mainly "
13721 "the case where you want to mount a mix of unrelated and/or read-only "
13722 "filesystems together."
13723 msgstr ""
13724
13725 #. type: textblock
13726 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3148
13727 msgid ""
13728 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13729 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13730 "inside that.  You can unpack this as follows in guestfish:"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3153
13735 #, no-wrap
13736 msgid ""
13737 " add-ro Fedora-11-i686-Live.iso\n"
13738 " run\n"
13739 " mkmountpoint /cd\n"
13740 " mkmountpoint /sqsh\n"
13741 " mkmountpoint /ext3fs\n"
13742 " mount /dev/sda /cd\n"
13743 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13744 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13745 "\n"
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3162
13750 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13751 msgstr ""
13752
13753 #. type: textblock
13754 #: ../src/guestfs-actions.pod:4749
13755 msgid ""
13756 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13757 "may get unexpected errors if you try to mix these calls.  It is safest to "
13758 "manually unmount filesystems and remove mountpoints after use."
13759 msgstr ""
13760
13761 #. type: textblock
13762 #: ../src/guestfs-actions.pod:4753
13763 msgid ""
13764 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13765 "first, so for this to work for manual mountpoints, you must ensure that the "
13766 "innermost mountpoints have the longest pathnames, as in the example code "
13767 "above."
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3173
13772 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13773 msgstr ""
13774
13775 #. type: textblock
13776 #: ../src/guestfs-actions.pod:4760
13777 msgid ""
13778 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13779 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13780 "can also trigger these issues."
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:5082 ../src/guestfs-actions.pod:6086
13785 msgid "(Added in 1.0.62)"
13786 msgstr ""
13787
13788 #. type: =head2
13789 #: ../src/guestfs-actions.pod:4768
13790 msgid "guestfs_mknod"
13791 msgstr ""
13792
13793 #. type: verbatim
13794 #: ../src/guestfs-actions.pod:4770
13795 #, no-wrap
13796 msgid ""
13797 " int\n"
13798 " guestfs_mknod (guestfs_h *g,\n"
13799 "                int mode,\n"
13800 "                int devmajor,\n"
13801 "                int devminor,\n"
13802 "                const char *path);\n"
13803 "\n"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3183
13808 msgid ""
13809 "This call creates block or character special devices, or named pipes "
13810 "(FIFOs)."
13811 msgstr ""
13812
13813 #. type: textblock
13814 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3186
13815 msgid ""
13816 "The C<mode> parameter should be the mode, using the standard constants.  "
13817 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13818 "used when creating block and character special devices."
13819 msgstr ""
13820
13821 #. type: textblock
13822 #: ../src/guestfs-actions.pod:4785
13823 msgid ""
13824 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13825 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13826 "regular file).  These constants are available in the standard Linux header "
13827 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13828 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13829 "the appropriate constant for you."
13830 msgstr ""
13831
13832 #. type: =head2
13833 #: ../src/guestfs-actions.pod:4799
13834 msgid "guestfs_mknod_b"
13835 msgstr ""
13836
13837 #. type: verbatim
13838 #: ../src/guestfs-actions.pod:4801
13839 #, no-wrap
13840 msgid ""
13841 " int\n"
13842 " guestfs_mknod_b (guestfs_h *g,\n"
13843 "                  int mode,\n"
13844 "                  int devmajor,\n"
13845 "                  int devminor,\n"
13846 "                  const char *path);\n"
13847 "\n"
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../src/guestfs-actions.pod:4808
13852 msgid ""
13853 "This call creates a block device node called C<path> with mode C<mode> and "
13854 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13855 "wrapper around C<guestfs_mknod>."
13856 msgstr ""
13857
13858 #. type: =head2
13859 #: ../src/guestfs-actions.pod:4818
13860 msgid "guestfs_mknod_c"
13861 msgstr ""
13862
13863 #. type: verbatim
13864 #: ../src/guestfs-actions.pod:4820
13865 #, no-wrap
13866 msgid ""
13867 " int\n"
13868 " guestfs_mknod_c (guestfs_h *g,\n"
13869 "                  int mode,\n"
13870 "                  int devmajor,\n"
13871 "                  int devminor,\n"
13872 "                  const char *path);\n"
13873 "\n"
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../src/guestfs-actions.pod:4827
13878 msgid ""
13879 "This call creates a char device node called C<path> with mode C<mode> and "
13880 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13881 "wrapper around C<guestfs_mknod>."
13882 msgstr ""
13883
13884 #. type: =head2
13885 #: ../src/guestfs-actions.pod:4837
13886 msgid "guestfs_mkswap"
13887 msgstr ""
13888
13889 #. type: verbatim
13890 #: ../src/guestfs-actions.pod:4839
13891 #, no-wrap
13892 msgid ""
13893 " int\n"
13894 " guestfs_mkswap (guestfs_h *g,\n"
13895 "                 const char *device);\n"
13896 "\n"
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3225
13901 msgid "Create a swap partition on C<device>."
13902 msgstr ""
13903
13904 #. type: =head2
13905 #: ../src/guestfs-actions.pod:4849
13906 msgid "guestfs_mkswap_L"
13907 msgstr ""
13908
13909 #. type: verbatim
13910 #: ../src/guestfs-actions.pod:4851
13911 #, no-wrap
13912 msgid ""
13913 " int\n"
13914 " guestfs_mkswap_L (guestfs_h *g,\n"
13915 "                   const char *label,\n"
13916 "                   const char *device);\n"
13917 "\n"
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3231
13922 msgid "Create a swap partition on C<device> with label C<label>."
13923 msgstr ""
13924
13925 #. type: textblock
13926 #: ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:3233
13927 msgid ""
13928 "Note that you cannot attach a swap label to a block device "
13929 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13930 "the kernel or swap tools."
13931 msgstr ""
13932
13933 #. type: =head2
13934 #: ../src/guestfs-actions.pod:4866
13935 msgid "guestfs_mkswap_U"
13936 msgstr ""
13937
13938 #. type: verbatim
13939 #: ../src/guestfs-actions.pod:4868
13940 #, no-wrap
13941 msgid ""
13942 " int\n"
13943 " guestfs_mkswap_U (guestfs_h *g,\n"
13944 "                   const char *uuid,\n"
13945 "                   const char *device);\n"
13946 "\n"
13947 msgstr ""
13948
13949 #. type: textblock
13950 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3241
13951 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13952 msgstr ""
13953
13954 #. type: =head2
13955 #: ../src/guestfs-actions.pod:4879
13956 msgid "guestfs_mkswap_file"
13957 msgstr ""
13958
13959 #. type: verbatim
13960 #: ../src/guestfs-actions.pod:4881
13961 #, no-wrap
13962 msgid ""
13963 " int\n"
13964 " guestfs_mkswap_file (guestfs_h *g,\n"
13965 "                      const char *path);\n"
13966 "\n"
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3247
13971 msgid "Create a swap file."
13972 msgstr ""
13973
13974 #. type: textblock
13975 #: ../src/guestfs-actions.pod:4887
13976 msgid ""
13977 "This command just writes a swap file signature to an existing file.  To "
13978 "create the file itself, use something like C<guestfs_fallocate>."
13979 msgstr ""
13980
13981 #. type: =head2
13982 #: ../src/guestfs-actions.pod:4894
13983 msgid "guestfs_modprobe"
13984 msgstr ""
13985
13986 #. type: verbatim
13987 #: ../src/guestfs-actions.pod:4896
13988 #, no-wrap
13989 msgid ""
13990 " int\n"
13991 " guestfs_modprobe (guestfs_h *g,\n"
13992 "                   const char *modulename);\n"
13993 "\n"
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3256
13998 msgid "This loads a kernel module in the appliance."
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3258
14003 msgid ""
14004 "The kernel module must have been whitelisted when libguestfs was built (see "
14005 "C<appliance/kmod.whitelist.in> in the source)."
14006 msgstr ""
14007
14008 #. type: =head2
14009 #: ../src/guestfs-actions.pod:4909
14010 msgid "guestfs_mount"
14011 msgstr ""
14012
14013 #. type: verbatim
14014 #: ../src/guestfs-actions.pod:4911
14015 #, no-wrap
14016 msgid ""
14017 " int\n"
14018 " guestfs_mount (guestfs_h *g,\n"
14019 "                const char *device,\n"
14020 "                const char *mountpoint);\n"
14021 "\n"
14022 msgstr ""
14023
14024 #. type: textblock
14025 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3265
14026 msgid ""
14027 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14028 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14029 "those block devices contain partitions, they will have the usual names "
14030 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3271
14035 msgid ""
14036 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14037 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14038 "mounted on directories which already exist."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3276
14043 msgid ""
14044 "The mounted filesystem is writable, if we have sufficient permissions on the "
14045 "underlying device."
14046 msgstr ""
14047
14048 #. type: textblock
14049 #: ../src/guestfs-actions.pod:4930
14050 msgid ""
14051 "B<Important note:> When you use this call, the filesystem options C<sync> "
14052 "and C<noatime> are set implicitly.  This was originally done because we "
14053 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14054 "very large negative performance impact and negligible effect on "
14055 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14056 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14057 "(use an empty string for the first parameter if you don't want any options)."
14058 msgstr ""
14059
14060 #. type: textblock
14061 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3289
14062 msgid ""
14063 "This function is deprecated.  In new code, use the C<mount_options> call "
14064 "instead."
14065 msgstr ""
14066
14067 #. type: =head2
14068 #: ../src/guestfs-actions.pod:4951
14069 msgid "guestfs_mount_9p"
14070 msgstr ""
14071
14072 #. type: verbatim
14073 #: ../src/guestfs-actions.pod:4953
14074 #, no-wrap
14075 msgid ""
14076 " int\n"
14077 " guestfs_mount_9p (guestfs_h *g,\n"
14078 "                   const char *mounttag,\n"
14079 "                   const char *mountpoint,\n"
14080 "                   ...);\n"
14081 "\n"
14082 msgstr ""
14083
14084 #. type: verbatim
14085 #: ../src/guestfs-actions.pod:4964
14086 #, no-wrap
14087 msgid ""
14088 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
14089 "\n"
14090 msgstr ""
14091
14092 #. type: textblock
14093 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3300
14094 msgid ""
14095 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14096 "C<mountpoint>."
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3303
14101 msgid ""
14102 "If required, C<trans=virtio> will be automatically added to the options.  "
14103 "Any other options required can be passed in the optional C<options> "
14104 "parameter."
14105 msgstr ""
14106
14107 #. type: =head2
14108 #: ../src/guestfs-actions.pod:4977
14109 msgid "guestfs_mount_9p_va"
14110 msgstr ""
14111
14112 #. type: verbatim
14113 #: ../src/guestfs-actions.pod:4979
14114 #, no-wrap
14115 msgid ""
14116 " int\n"
14117 " guestfs_mount_9p_va (guestfs_h *g,\n"
14118 "                      const char *mounttag,\n"
14119 "                      const char *mountpoint,\n"
14120 "                      va_list args);\n"
14121 "\n"
14122 msgstr ""
14123
14124 #. type: textblock
14125 #: ../src/guestfs-actions.pod:4985
14126 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
14127 msgstr ""
14128
14129 #. type: =head2
14130 #: ../src/guestfs-actions.pod:4989
14131 msgid "guestfs_mount_9p_argv"
14132 msgstr ""
14133
14134 #. type: verbatim
14135 #: ../src/guestfs-actions.pod:4991
14136 #, no-wrap
14137 msgid ""
14138 " int\n"
14139 " guestfs_mount_9p_argv (guestfs_h *g,\n"
14140 "                        const char *mounttag,\n"
14141 "                        const char *mountpoint,\n"
14142 "                        const struct guestfs_mount_9p_argv *optargs);\n"
14143 "\n"
14144 msgstr ""
14145
14146 #. type: textblock
14147 #: ../src/guestfs-actions.pod:4997
14148 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
14149 msgstr ""
14150
14151 #. type: =head2
14152 #: ../src/guestfs-actions.pod:5001
14153 msgid "guestfs_mount_loop"
14154 msgstr ""
14155
14156 #. type: verbatim
14157 #: ../src/guestfs-actions.pod:5003
14158 #, no-wrap
14159 msgid ""
14160 " int\n"
14161 " guestfs_mount_loop (guestfs_h *g,\n"
14162 "                     const char *file,\n"
14163 "                     const char *mountpoint);\n"
14164 "\n"
14165 msgstr ""
14166
14167 #. type: textblock
14168 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3313
14169 msgid ""
14170 "This command lets you mount C<file> (a filesystem image in a file) on a "
14171 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14172 "mountpoint>."
14173 msgstr ""
14174
14175 #. type: =head2
14176 #: ../src/guestfs-actions.pod:5016
14177 msgid "guestfs_mount_options"
14178 msgstr ""
14179
14180 #. type: verbatim
14181 #: ../src/guestfs-actions.pod:5018
14182 #, no-wrap
14183 msgid ""
14184 " int\n"
14185 " guestfs_mount_options (guestfs_h *g,\n"
14186 "                        const char *options,\n"
14187 "                        const char *device,\n"
14188 "                        const char *mountpoint);\n"
14189 "\n"
14190 msgstr ""
14191
14192 #. type: textblock
14193 #: ../src/guestfs-actions.pod:5024
14194 msgid ""
14195 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14196 "the mount options as for the L<mount(8)> I<-o> flag."
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3325
14201 msgid ""
14202 "If the C<options> parameter is an empty string, then no options are passed "
14203 "(all options default to whatever the filesystem uses)."
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065
14208 msgid "(Added in 1.0.10)"
14209 msgstr ""
14210
14211 #. type: =head2
14212 #: ../src/guestfs-actions.pod:5036
14213 msgid "guestfs_mount_ro"
14214 msgstr ""
14215
14216 #. type: verbatim
14217 #: ../src/guestfs-actions.pod:5038
14218 #, no-wrap
14219 msgid ""
14220 " int\n"
14221 " guestfs_mount_ro (guestfs_h *g,\n"
14222 "                   const char *device,\n"
14223 "                   const char *mountpoint);\n"
14224 "\n"
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../src/guestfs-actions.pod:5043
14229 msgid ""
14230 "This is the same as the C<guestfs_mount> command, but it mounts the "
14231 "filesystem with the read-only (I<-o ro>) flag."
14232 msgstr ""
14233
14234 #. type: =head2
14235 #: ../src/guestfs-actions.pod:5050
14236 msgid "guestfs_mount_vfs"
14237 msgstr ""
14238
14239 #. type: verbatim
14240 #: ../src/guestfs-actions.pod:5052
14241 #, no-wrap
14242 msgid ""
14243 " int\n"
14244 " guestfs_mount_vfs (guestfs_h *g,\n"
14245 "                    const char *options,\n"
14246 "                    const char *vfstype,\n"
14247 "                    const char *device,\n"
14248 "                    const char *mountpoint);\n"
14249 "\n"
14250 msgstr ""
14251
14252 #. type: textblock
14253 #: ../src/guestfs-actions.pod:5059
14254 msgid ""
14255 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14256 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
14257 "I<-t> flags."
14258 msgstr ""
14259
14260 #. type: =head2
14261 #: ../src/guestfs-actions.pod:5067
14262 msgid "guestfs_mountpoints"
14263 msgstr ""
14264
14265 #. type: verbatim
14266 #: ../src/guestfs-actions.pod:5069
14267 #, no-wrap
14268 msgid ""
14269 " char **\n"
14270 " guestfs_mountpoints (guestfs_h *g);\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../src/guestfs-actions.pod:5072
14276 msgid ""
14277 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14278 "devices.  This one returns a hash table (map) of device name to directory "
14279 "where the device is mounted."
14280 msgstr ""
14281
14282 #. type: =head2
14283 #: ../src/guestfs-actions.pod:5084
14284 msgid "guestfs_mounts"
14285 msgstr ""
14286
14287 #. type: verbatim
14288 #: ../src/guestfs-actions.pod:5086
14289 #, no-wrap
14290 msgid ""
14291 " char **\n"
14292 " guestfs_mounts (guestfs_h *g);\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3356
14298 msgid ""
14299 "This returns the list of currently mounted filesystems.  It returns the list "
14300 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3359
14305 msgid "Some internal mounts are not shown."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../src/guestfs-actions.pod:5094
14310 msgid "See also: C<guestfs_mountpoints>"
14311 msgstr ""
14312
14313 #. type: =head2
14314 #: ../src/guestfs-actions.pod:5102
14315 msgid "guestfs_mv"
14316 msgstr ""
14317
14318 #. type: verbatim
14319 #: ../src/guestfs-actions.pod:5104
14320 #, no-wrap
14321 msgid ""
14322 " int\n"
14323 " guestfs_mv (guestfs_h *g,\n"
14324 "             const char *src,\n"
14325 "             const char *dest);\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3367
14331 msgid ""
14332 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14333 "destination filename or destination directory."
14334 msgstr ""
14335
14336 #. type: =head2
14337 #: ../src/guestfs-actions.pod:5116
14338 msgid "guestfs_ntfs_3g_probe"
14339 msgstr ""
14340
14341 #. type: verbatim
14342 #: ../src/guestfs-actions.pod:5118
14343 #, no-wrap
14344 msgid ""
14345 " int\n"
14346 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14347 "                        int rw,\n"
14348 "                        const char *device);\n"
14349 "\n"
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3374
14354 msgid ""
14355 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14356 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
14357 "read-write, and some cannot be mounted at all)."
14358 msgstr ""
14359
14360 #. type: textblock
14361 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3378
14362 msgid ""
14363 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14364 "can be mounted read-write.  Set it to false if you want to test if the "
14365 "volume can be mounted read-only."
14366 msgstr ""
14367
14368 #. type: textblock
14369 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3382
14370 msgid ""
14371 "The return value is an integer which C<0> if the operation would succeed, or "
14372 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14373 msgstr ""
14374
14375 #. type: textblock
14376 #: ../src/guestfs-actions.pod:5137
14377 msgid "(Added in 1.0.43)"
14378 msgstr ""
14379
14380 #. type: =head2
14381 #: ../src/guestfs-actions.pod:5139
14382 msgid "guestfs_ntfsresize"
14383 msgstr ""
14384
14385 #. type: verbatim
14386 #: ../src/guestfs-actions.pod:5141
14387 #, no-wrap
14388 msgid ""
14389 " int\n"
14390 " guestfs_ntfsresize (guestfs_h *g,\n"
14391 "                     const char *device);\n"
14392 "\n"
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5184 ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
14397 msgid ""
14398 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14399 "size of the underlying device."
14400 msgstr ""
14401
14402 #. type: textblock
14403 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3393
14404 msgid ""
14405 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14406 "consistency check (for safety).  You have to boot into Windows to perform "
14407 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14408 "resize filesystems which have been marked in this way.  So in effect it is "
14409 "not possible to call ntfsresize multiple times on a single filesystem "
14410 "without booting into Windows between each resize."
14411 msgstr ""
14412
14413 #. type: textblock
14414 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
14415 msgid "See also L<ntfsresize(8)>."
14416 msgstr ""
14417
14418 #. type: textblock
14419 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5250 ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
14420 msgid ""
14421 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
14422 "instead."
14423 msgstr ""
14424
14425 #. type: =head2
14426 #: ../src/guestfs-actions.pod:5169
14427 msgid "guestfs_ntfsresize_opts"
14428 msgstr ""
14429
14430 #. type: verbatim
14431 #: ../src/guestfs-actions.pod:5171
14432 #, no-wrap
14433 msgid ""
14434 " int\n"
14435 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
14436 "                          const char *device,\n"
14437 "                          ...);\n"
14438 "\n"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../src/guestfs-actions.pod:5181
14443 #, no-wrap
14444 msgid ""
14445 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
14446 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
14447 "\n"
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3423
14452 msgid ""
14453 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14454 "resized to fit the container (eg. partition)."
14455 msgstr ""
14456
14457 #. type: =item
14458 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3426
14459 msgid "C<force>"
14460 msgstr ""
14461
14462 #. type: textblock
14463 #: ../src/guestfs-actions.pod:5198 ../fish/guestfish-actions.pod:3428
14464 msgid ""
14465 "If this option is true, then force the resize of the filesystem even if the "
14466 "filesystem is marked as requiring a consistency check."
14467 msgstr ""
14468
14469 #. type: textblock
14470 #: ../src/guestfs-actions.pod:5201
14471 msgid ""
14472 "After the resize operation, the filesystem is always marked as requiring a "
14473 "consistency check (for safety).  You have to boot into Windows to perform "
14474 "this check and clear this condition.  If you I<don't> set the C<force> "
14475 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
14476 "times on a single filesystem without booting into Windows between each "
14477 "resize."
14478 msgstr ""
14479
14480 #. type: =head2
14481 #: ../src/guestfs-actions.pod:5216
14482 msgid "guestfs_ntfsresize_opts_va"
14483 msgstr ""
14484
14485 #. type: verbatim
14486 #: ../src/guestfs-actions.pod:5218
14487 #, no-wrap
14488 msgid ""
14489 " int\n"
14490 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
14491 "                             const char *device,\n"
14492 "                             va_list args);\n"
14493 "\n"
14494 msgstr ""
14495
14496 #. type: textblock
14497 #: ../src/guestfs-actions.pod:5223
14498 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
14499 msgstr ""
14500
14501 #. type: =head2
14502 #: ../src/guestfs-actions.pod:5227
14503 msgid "guestfs_ntfsresize_opts_argv"
14504 msgstr ""
14505
14506 #. type: verbatim
14507 #: ../src/guestfs-actions.pod:5229
14508 #, no-wrap
14509 msgid ""
14510 " int\n"
14511 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
14512 "                               const char *device,\n"
14513 "                               const struct guestfs_ntfsresize_opts_argv "
14514 "*optargs);\n"
14515 "\n"
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../src/guestfs-actions.pod:5234
14520 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../src/guestfs-actions.pod:5238
14525 msgid "guestfs_ntfsresize_size"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../src/guestfs-actions.pod:5240
14530 #, no-wrap
14531 msgid ""
14532 " int\n"
14533 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14534 "                          const char *device,\n"
14535 "                          int64_t size);\n"
14536 "\n"
14537 msgstr ""
14538
14539 #. type: textblock
14540 #: ../src/guestfs-actions.pod:5245
14541 msgid ""
14542 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14543 "to specify the new size (in bytes) explicitly."
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5693 ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:7655
14548 msgid "(Added in 1.3.14)"
14549 msgstr ""
14550
14551 #. type: =head2
14552 #: ../src/guestfs-actions.pod:5259
14553 msgid "guestfs_part_add"
14554 msgstr ""
14555
14556 #. type: verbatim
14557 #: ../src/guestfs-actions.pod:5261
14558 #, no-wrap
14559 msgid ""
14560 " int\n"
14561 " guestfs_part_add (guestfs_h *g,\n"
14562 "                   const char *device,\n"
14563 "                   const char *prlogex,\n"
14564 "                   int64_t startsect,\n"
14565 "                   int64_t endsect);\n"
14566 "\n"
14567 msgstr ""
14568
14569 #. type: textblock
14570 #: ../src/guestfs-actions.pod:5268
14571 msgid ""
14572 "This command adds a partition to C<device>.  If there is no partition table "
14573 "on the device, call C<guestfs_part_init> first."
14574 msgstr ""
14575
14576 #. type: textblock
14577 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3465
14578 msgid ""
14579 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14580 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14581 "C<logical>) and C<e> (or C<extended>) partition types."
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../src/guestfs-actions.pod:5276 ../fish/guestfish-actions.pod:3470
14586 msgid ""
14587 "C<startsect> and C<endsect> are the start and end of the partition in "
14588 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
14589 "from the end of the disk (C<-1> is the last sector)."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../src/guestfs-actions.pod:5280
14594 msgid ""
14595 "Creating a partition which covers the whole disk is not so easy.  Use "
14596 "C<guestfs_part_disk> to do that."
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5454 ../src/guestfs-actions.pod:5492 ../src/guestfs-actions.pod:5511 ../src/guestfs-actions.pod:5551
14601 msgid "(Added in 1.0.78)"
14602 msgstr ""
14603
14604 #. type: =head2
14605 #: ../src/guestfs-actions.pod:5287
14606 msgid "guestfs_part_del"
14607 msgstr ""
14608
14609 #. type: verbatim
14610 #: ../src/guestfs-actions.pod:5289
14611 #, no-wrap
14612 msgid ""
14613 " int\n"
14614 " guestfs_part_del (guestfs_h *g,\n"
14615 "                   const char *device,\n"
14616 "                   int partnum);\n"
14617 "\n"
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3481
14622 msgid "This command deletes the partition numbered C<partnum> on C<device>."
14623 msgstr ""
14624
14625 #. type: textblock
14626 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:3483
14627 msgid ""
14628 "Note that in the case of MBR partitioning, deleting an extended partition "
14629 "also deletes any logical partitions it contains."
14630 msgstr ""
14631
14632 #. type: =head2
14633 #: ../src/guestfs-actions.pod:5304
14634 msgid "guestfs_part_disk"
14635 msgstr ""
14636
14637 #. type: verbatim
14638 #: ../src/guestfs-actions.pod:5306
14639 #, no-wrap
14640 msgid ""
14641 " int\n"
14642 " guestfs_part_disk (guestfs_h *g,\n"
14643 "                    const char *device,\n"
14644 "                    const char *parttype);\n"
14645 "\n"
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:5311
14650 msgid ""
14651 "This command is simply a combination of C<guestfs_part_init> followed by "
14652 "C<guestfs_part_add> to create a single primary partition covering the whole "
14653 "disk."
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:5315
14658 msgid ""
14659 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14660 "possible values are described in C<guestfs_part_init>."
14661 msgstr ""
14662
14663 #. type: =head2
14664 #: ../src/guestfs-actions.pod:5325
14665 msgid "guestfs_part_get_bootable"
14666 msgstr ""
14667
14668 #. type: verbatim
14669 #: ../src/guestfs-actions.pod:5327
14670 #, no-wrap
14671 msgid ""
14672 " int\n"
14673 " guestfs_part_get_bootable (guestfs_h *g,\n"
14674 "                            const char *device,\n"
14675 "                            int partnum);\n"
14676 "\n"
14677 msgstr ""
14678
14679 #. type: textblock
14680 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3505
14681 msgid ""
14682 "This command returns true if the partition C<partnum> on C<device> has the "
14683 "bootable flag set."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../src/guestfs-actions.pod:5335
14688 msgid "See also C<guestfs_part_set_bootable>."
14689 msgstr ""
14690
14691 #. type: =head2
14692 #: ../src/guestfs-actions.pod:5341
14693 msgid "guestfs_part_get_mbr_id"
14694 msgstr ""
14695
14696 #. type: verbatim
14697 #: ../src/guestfs-actions.pod:5343
14698 #, no-wrap
14699 msgid ""
14700 " int\n"
14701 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
14702 "                          const char *device,\n"
14703 "                          int partnum);\n"
14704 "\n"
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3514
14709 msgid ""
14710 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14711 "partition C<partnum>."
14712 msgstr ""
14713
14714 #. type: textblock
14715 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5527
14716 msgid ""
14717 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14718 "undefined results for other partition table types (see "
14719 "C<guestfs_part_get_parttype>)."
14720 msgstr ""
14721
14722 #. type: =head2
14723 #: ../src/guestfs-actions.pod:5359
14724 msgid "guestfs_part_get_parttype"
14725 msgstr ""
14726
14727 #. type: verbatim
14728 #: ../src/guestfs-actions.pod:5361
14729 #, no-wrap
14730 msgid ""
14731 " char *\n"
14732 " guestfs_part_get_parttype (guestfs_h *g,\n"
14733 "                            const char *device);\n"
14734 "\n"
14735 msgstr ""
14736
14737 #. type: textblock
14738 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3525
14739 msgid ""
14740 "This command examines the partition table on C<device> and returns the "
14741 "partition table type (format) being used."
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../src/guestfs-actions.pod:5368
14746 msgid ""
14747 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14748 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14749 "possible, although unusual.  See C<guestfs_part_init> for a full list."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../src/guestfs-actions.pod:5378
14754 msgid "guestfs_part_init"
14755 msgstr ""
14756
14757 #. type: verbatim
14758 #: ../src/guestfs-actions.pod:5380
14759 #, no-wrap
14760 msgid ""
14761 " int\n"
14762 " guestfs_part_init (guestfs_h *g,\n"
14763 "                    const char *device,\n"
14764 "                    const char *parttype);\n"
14765 "\n"
14766 msgstr ""
14767
14768 #. type: textblock
14769 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3537
14770 msgid ""
14771 "This creates an empty partition table on C<device> of one of the partition "
14772 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14773 "(for large disks)."
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../src/guestfs-actions.pod:5389
14778 msgid ""
14779 "Initially there are no partitions.  Following this, you should call "
14780 "C<guestfs_part_add> for each partition required."
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3544
14785 msgid "Possible values for C<parttype> are:"
14786 msgstr ""
14787
14788 #. type: =item
14789 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3548
14790 msgid "B<efi> | B<gpt>"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3550
14795 msgid "Intel EFI / GPT partition table."
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3552
14800 msgid ""
14801 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14802 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14803 "the C<mbr> format."
14804 msgstr ""
14805
14806 #. type: =item
14807 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3556
14808 msgid "B<mbr> | B<msdos>"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3558
14813 msgid ""
14814 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14815 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14816 "TB.  For large disks we recommend using C<gpt>."
14817 msgstr ""
14818
14819 #. type: textblock
14820 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3565
14821 msgid "Other partition table types that may work but are not supported include:"
14822 msgstr ""
14823
14824 #. type: =item
14825 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3570
14826 msgid "B<aix>"
14827 msgstr ""
14828
14829 #. type: textblock
14830 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3572
14831 msgid "AIX disk labels."
14832 msgstr ""
14833
14834 #. type: =item
14835 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3574
14836 msgid "B<amiga> | B<rdb>"
14837 msgstr ""
14838
14839 #. type: textblock
14840 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3576
14841 msgid "Amiga \"Rigid Disk Block\" format."
14842 msgstr ""
14843
14844 #. type: =item
14845 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3578
14846 msgid "B<bsd>"
14847 msgstr ""
14848
14849 #. type: textblock
14850 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3580
14851 msgid "BSD disk labels."
14852 msgstr ""
14853
14854 #. type: =item
14855 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3582
14856 msgid "B<dasd>"
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3584
14861 msgid "DASD, used on IBM mainframes."
14862 msgstr ""
14863
14864 #. type: =item
14865 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3586
14866 msgid "B<dvh>"
14867 msgstr ""
14868
14869 #. type: textblock
14870 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3588
14871 msgid "MIPS/SGI volumes."
14872 msgstr ""
14873
14874 #. type: =item
14875 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3590
14876 msgid "B<mac>"
14877 msgstr ""
14878
14879 #. type: textblock
14880 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3592
14881 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14882 msgstr ""
14883
14884 #. type: =item
14885 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3594
14886 msgid "B<pc98>"
14887 msgstr ""
14888
14889 #. type: textblock
14890 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3596
14891 msgid "NEC PC-98 format, common in Japan apparently."
14892 msgstr ""
14893
14894 #. type: =item
14895 #: ../src/guestfs-actions.pod:5446 ../fish/guestfish-actions.pod:3598
14896 msgid "B<sun>"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3600
14901 msgid "Sun disk labels."
14902 msgstr ""
14903
14904 #. type: =head2
14905 #: ../src/guestfs-actions.pod:5456
14906 msgid "guestfs_part_list"
14907 msgstr ""
14908
14909 #. type: verbatim
14910 #: ../src/guestfs-actions.pod:5458
14911 #, no-wrap
14912 msgid ""
14913 " struct guestfs_partition_list *\n"
14914 " guestfs_part_list (guestfs_h *g,\n"
14915 "                    const char *device);\n"
14916 "\n"
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:3608
14921 msgid ""
14922 "This command parses the partition table on C<device> and returns the list of "
14923 "partitions found."
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3611
14928 msgid "The fields in the returned structure are:"
14929 msgstr ""
14930
14931 #. type: =item
14932 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:3615
14933 msgid "B<part_num>"
14934 msgstr ""
14935
14936 #. type: textblock
14937 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3617
14938 msgid "Partition number, counting from 1."
14939 msgstr ""
14940
14941 #. type: =item
14942 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3619
14943 msgid "B<part_start>"
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../src/guestfs-actions.pod:5475
14948 msgid ""
14949 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14950 "the device's sector size, see C<guestfs_blockdev_getss>."
14951 msgstr ""
14952
14953 #. type: =item
14954 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3624
14955 msgid "B<part_end>"
14956 msgstr ""
14957
14958 #. type: textblock
14959 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3626
14960 msgid "End of the partition in bytes."
14961 msgstr ""
14962
14963 #. type: =item
14964 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3628
14965 msgid "B<part_size>"
14966 msgstr ""
14967
14968 #. type: textblock
14969 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3630
14970 msgid "Size of the partition in bytes."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../src/guestfs-actions.pod:5488
14975 msgid ""
14976 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14977 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14978 "use>."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../src/guestfs-actions.pod:5494
14983 msgid "guestfs_part_set_bootable"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../src/guestfs-actions.pod:5496
14988 #, no-wrap
14989 msgid ""
14990 " int\n"
14991 " guestfs_part_set_bootable (guestfs_h *g,\n"
14992 "                            const char *device,\n"
14993 "                            int partnum,\n"
14994 "                            int bootable);\n"
14995 "\n"
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3638
15000 msgid ""
15001 "This sets the bootable flag on partition numbered C<partnum> on device "
15002 "C<device>.  Note that partitions are numbered from 1."
15003 msgstr ""
15004
15005 #. type: textblock
15006 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3641
15007 msgid ""
15008 "The bootable flag is used by some operating systems (notably Windows) to "
15009 "determine which partition to boot from.  It is by no means universally "
15010 "recognized."
15011 msgstr ""
15012
15013 #. type: =head2
15014 #: ../src/guestfs-actions.pod:5513
15015 msgid "guestfs_part_set_mbr_id"
15016 msgstr ""
15017
15018 #. type: verbatim
15019 #: ../src/guestfs-actions.pod:5515
15020 #, no-wrap
15021 msgid ""
15022 " int\n"
15023 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15024 "                          const char *device,\n"
15025 "                          int partnum,\n"
15026 "                          int idbyte);\n"
15027 "\n"
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3649
15032 msgid ""
15033 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15034 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15035 "documentation are in fact hexadecimal numbers, but usually documented "
15036 "without any leading \"0x\" which might be confusing."
15037 msgstr ""
15038
15039 #. type: =head2
15040 #: ../src/guestfs-actions.pod:5535
15041 msgid "guestfs_part_set_name"
15042 msgstr ""
15043
15044 #. type: verbatim
15045 #: ../src/guestfs-actions.pod:5537
15046 #, no-wrap
15047 msgid ""
15048 " int\n"
15049 " guestfs_part_set_name (guestfs_h *g,\n"
15050 "                        const char *device,\n"
15051 "                        int partnum,\n"
15052 "                        const char *name);\n"
15053 "\n"
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3663
15058 msgid ""
15059 "This sets the partition name on partition numbered C<partnum> on device "
15060 "C<device>.  Note that partitions are numbered from 1."
15061 msgstr ""
15062
15063 #. type: textblock
15064 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3666
15065 msgid ""
15066 "The partition name can only be set on certain types of partition table.  "
15067 "This works on C<gpt> but not on C<mbr> partitions."
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../src/guestfs-actions.pod:5553
15072 msgid "guestfs_part_to_dev"
15073 msgstr ""
15074
15075 #. type: verbatim
15076 #: ../src/guestfs-actions.pod:5555
15077 #, no-wrap
15078 msgid ""
15079 " char *\n"
15080 " guestfs_part_to_dev (guestfs_h *g,\n"
15081 "                      const char *partition);\n"
15082 "\n"
15083 msgstr ""
15084
15085 #. type: textblock
15086 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3673
15087 msgid ""
15088 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15089 "partition number, returning the device name (eg. \"/dev/sdb\")."
15090 msgstr ""
15091
15092 #. type: textblock
15093 #: ../src/guestfs-actions.pod:5563
15094 msgid ""
15095 "The named partition must exist, for example as a string returned from "
15096 "C<guestfs_list_partitions>."
15097 msgstr ""
15098
15099 #. type: =head2
15100 #: ../src/guestfs-actions.pod:5571
15101 msgid "guestfs_ping_daemon"
15102 msgstr ""
15103
15104 #. type: verbatim
15105 #: ../src/guestfs-actions.pod:5573
15106 #, no-wrap
15107 msgid ""
15108 " int\n"
15109 " guestfs_ping_daemon (guestfs_h *g);\n"
15110 "\n"
15111 msgstr ""
15112
15113 #. type: textblock
15114 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3684
15115 msgid ""
15116 "This is a test probe into the guestfs daemon running inside the qemu "
15117 "subprocess.  Calling this function checks that the daemon responds to the "
15118 "ping message, without affecting the daemon or attached block device(s) in "
15119 "any other way."
15120 msgstr ""
15121
15122 #. type: =head2
15123 #: ../src/guestfs-actions.pod:5585
15124 msgid "guestfs_pread"
15125 msgstr ""
15126
15127 #. type: verbatim
15128 #: ../src/guestfs-actions.pod:5587
15129 #, no-wrap
15130 msgid ""
15131 " char *\n"
15132 " guestfs_pread (guestfs_h *g,\n"
15133 "                const char *path,\n"
15134 "                int count,\n"
15135 "                int64_t offset,\n"
15136 "                size_t *size_r);\n"
15137 "\n"
15138 msgstr ""
15139
15140 #. type: textblock
15141 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3693
15142 msgid ""
15143 "This command lets you read part of a file.  It reads C<count> bytes of the "
15144 "file, starting at C<offset>, from file C<path>."
15145 msgstr ""
15146
15147 #. type: textblock
15148 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3696 ../fish/guestfish-actions.pod:3711
15149 msgid ""
15150 "This may read fewer bytes than requested.  For further details see the "
15151 "L<pread(2)> system call."
15152 msgstr ""
15153
15154 #. type: textblock
15155 #: ../src/guestfs-actions.pod:5600
15156 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15157 msgstr ""
15158
15159 #. type: =head2
15160 #: ../src/guestfs-actions.pod:5611
15161 msgid "guestfs_pread_device"
15162 msgstr ""
15163
15164 #. type: verbatim
15165 #: ../src/guestfs-actions.pod:5613
15166 #, no-wrap
15167 msgid ""
15168 " char *\n"
15169 " guestfs_pread_device (guestfs_h *g,\n"
15170 "                       const char *device,\n"
15171 "                       int count,\n"
15172 "                       int64_t offset,\n"
15173 "                       size_t *size_r);\n"
15174 "\n"
15175 msgstr ""
15176
15177 #. type: textblock
15178 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:3708
15179 msgid ""
15180 "This command lets you read part of a file.  It reads C<count> bytes of "
15181 "C<device>, starting at C<offset>."
15182 msgstr ""
15183
15184 #. type: textblock
15185 #: ../src/guestfs-actions.pod:5626
15186 msgid "See also C<guestfs_pread>."
15187 msgstr ""
15188
15189 #. type: textblock
15190 #: ../src/guestfs-actions.pod:5635
15191 msgid "(Added in 1.5.21)"
15192 msgstr ""
15193
15194 #. type: =head2
15195 #: ../src/guestfs-actions.pod:5637
15196 msgid "guestfs_pvcreate"
15197 msgstr ""
15198
15199 #. type: verbatim
15200 #: ../src/guestfs-actions.pod:5639
15201 #, no-wrap
15202 msgid ""
15203 " int\n"
15204 " guestfs_pvcreate (guestfs_h *g,\n"
15205 "                   const char *device);\n"
15206 "\n"
15207 msgstr ""
15208
15209 #. type: textblock
15210 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3723
15211 msgid ""
15212 "This creates an LVM physical volume on the named C<device>, where C<device> "
15213 "should usually be a partition name such as C</dev/sda1>."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../src/guestfs-actions.pod:5651
15218 msgid "guestfs_pvremove"
15219 msgstr ""
15220
15221 #. type: verbatim
15222 #: ../src/guestfs-actions.pod:5653
15223 #, no-wrap
15224 msgid ""
15225 " int\n"
15226 " guestfs_pvremove (guestfs_h *g,\n"
15227 "                   const char *device);\n"
15228 "\n"
15229 msgstr ""
15230
15231 #. type: textblock
15232 #: ../src/guestfs-actions.pod:5657 ../fish/guestfish-actions.pod:3731
15233 msgid ""
15234 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15235 "it."
15236 msgstr ""
15237
15238 #. type: textblock
15239 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3734
15240 msgid ""
15241 "The implementation uses the C<pvremove> command which refuses to wipe "
15242 "physical volumes that contain any volume groups, so you have to remove those "
15243 "first."
15244 msgstr ""
15245
15246 #. type: =head2
15247 #: ../src/guestfs-actions.pod:5668
15248 msgid "guestfs_pvresize"
15249 msgstr ""
15250
15251 #. type: verbatim
15252 #: ../src/guestfs-actions.pod:5670
15253 #, no-wrap
15254 msgid ""
15255 " int\n"
15256 " guestfs_pvresize (guestfs_h *g,\n"
15257 "                   const char *device);\n"
15258 "\n"
15259 msgstr ""
15260
15261 #. type: textblock
15262 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3742
15263 msgid ""
15264 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15265 "the new size of the underlying device."
15266 msgstr ""
15267
15268 #. type: =head2
15269 #: ../src/guestfs-actions.pod:5681
15270 msgid "guestfs_pvresize_size"
15271 msgstr ""
15272
15273 #. type: verbatim
15274 #: ../src/guestfs-actions.pod:5683
15275 #, no-wrap
15276 msgid ""
15277 " int\n"
15278 " guestfs_pvresize_size (guestfs_h *g,\n"
15279 "                        const char *device,\n"
15280 "                        int64_t size);\n"
15281 "\n"
15282 msgstr ""
15283
15284 #. type: textblock
15285 #: ../src/guestfs-actions.pod:5688
15286 msgid ""
15287 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15288 "specify the new size (in bytes) explicitly."
15289 msgstr ""
15290
15291 #. type: =head2
15292 #: ../src/guestfs-actions.pod:5695
15293 msgid "guestfs_pvs"
15294 msgstr ""
15295
15296 #. type: verbatim
15297 #: ../src/guestfs-actions.pod:5697
15298 #, no-wrap
15299 msgid ""
15300 " char **\n"
15301 " guestfs_pvs (guestfs_h *g);\n"
15302 "\n"
15303 msgstr ""
15304
15305 #. type: textblock
15306 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3756
15307 msgid ""
15308 "List all the physical volumes detected.  This is the equivalent of the "
15309 "L<pvs(8)> command."
15310 msgstr ""
15311
15312 #. type: textblock
15313 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3759
15314 msgid ""
15315 "This returns a list of just the device names that contain PVs "
15316 "(eg. C</dev/sda2>)."
15317 msgstr ""
15318
15319 #. type: textblock
15320 #: ../src/guestfs-actions.pod:5706
15321 msgid "See also C<guestfs_pvs_full>."
15322 msgstr ""
15323
15324 #. type: =head2
15325 #: ../src/guestfs-actions.pod:5714
15326 msgid "guestfs_pvs_full"
15327 msgstr ""
15328
15329 #. type: verbatim
15330 #: ../src/guestfs-actions.pod:5716
15331 #, no-wrap
15332 msgid ""
15333 " struct guestfs_lvm_pv_list *\n"
15334 " guestfs_pvs_full (guestfs_h *g);\n"
15335 "\n"
15336 msgstr ""
15337
15338 #. type: textblock
15339 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3768
15340 msgid ""
15341 "List all the physical volumes detected.  This is the equivalent of the "
15342 "L<pvs(8)> command.  The \"full\" version includes all fields."
15343 msgstr ""
15344
15345 #. type: textblock
15346 #: ../src/guestfs-actions.pod:5722
15347 msgid ""
15348 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15349 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
15350 "use>."
15351 msgstr ""
15352
15353 #. type: =head2
15354 #: ../src/guestfs-actions.pod:5728
15355 msgid "guestfs_pvuuid"
15356 msgstr ""
15357
15358 #. type: verbatim
15359 #: ../src/guestfs-actions.pod:5730
15360 #, no-wrap
15361 msgid ""
15362 " char *\n"
15363 " guestfs_pvuuid (guestfs_h *g,\n"
15364 "                 const char *device);\n"
15365 "\n"
15366 msgstr ""
15367
15368 #. type: textblock
15369 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3775
15370 msgid "This command returns the UUID of the LVM PV C<device>."
15371 msgstr ""
15372
15373 #. type: =head2
15374 #: ../src/guestfs-actions.pod:5741
15375 msgid "guestfs_pwrite"
15376 msgstr ""
15377
15378 #. type: verbatim
15379 #: ../src/guestfs-actions.pod:5743
15380 #, no-wrap
15381 msgid ""
15382 " int\n"
15383 " guestfs_pwrite (guestfs_h *g,\n"
15384 "                 const char *path,\n"
15385 "                 const char *content,\n"
15386 "                 size_t content_size,\n"
15387 "                 int64_t offset);\n"
15388 "\n"
15389 msgstr ""
15390
15391 #. type: textblock
15392 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3781
15393 msgid ""
15394 "This command writes to part of a file.  It writes the data buffer C<content> "
15395 "to the file C<path> starting at offset C<offset>."
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3784
15400 msgid ""
15401 "This command implements the L<pwrite(2)> system call, and like that system "
15402 "call it may not write the full data requested.  The return value is the "
15403 "number of bytes that were actually written to the file.  This could even be "
15404 "0, although short writes are unlikely for regular files in ordinary "
15405 "circumstances."
15406 msgstr ""
15407
15408 #. type: textblock
15409 #: ../src/guestfs-actions.pod:5759
15410 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15411 msgstr ""
15412
15413 #. type: =head2
15414 #: ../src/guestfs-actions.pod:5768
15415 msgid "guestfs_pwrite_device"
15416 msgstr ""
15417
15418 #. type: verbatim
15419 #: ../src/guestfs-actions.pod:5770
15420 #, no-wrap
15421 msgid ""
15422 " int\n"
15423 " guestfs_pwrite_device (guestfs_h *g,\n"
15424 "                        const char *device,\n"
15425 "                        const char *content,\n"
15426 "                        size_t content_size,\n"
15427 "                        int64_t offset);\n"
15428 "\n"
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3799
15433 msgid ""
15434 "This command writes to part of a device.  It writes the data buffer "
15435 "C<content> to C<device> starting at offset C<offset>."
15436 msgstr ""
15437
15438 #. type: textblock
15439 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3802
15440 msgid ""
15441 "This command implements the L<pwrite(2)> system call, and like that system "
15442 "call it may not write the full data requested (although short writes to disk "
15443 "devices and partitions are probably impossible with standard Linux kernels)."
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../src/guestfs-actions.pod:5785
15448 msgid "See also C<guestfs_pwrite>."
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../src/guestfs-actions.pod:5792
15453 msgid "(Added in 1.5.20)"
15454 msgstr ""
15455
15456 #. type: =head2
15457 #: ../src/guestfs-actions.pod:5794
15458 msgid "guestfs_read_file"
15459 msgstr ""
15460
15461 #. type: verbatim
15462 #: ../src/guestfs-actions.pod:5796
15463 #, no-wrap
15464 msgid ""
15465 " char *\n"
15466 " guestfs_read_file (guestfs_h *g,\n"
15467 "                    const char *path,\n"
15468 "                    size_t *size_r);\n"
15469 "\n"
15470 msgstr ""
15471
15472 #. type: textblock
15473 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3816
15474 msgid "This calls returns the contents of the file C<path> as a buffer."
15475 msgstr ""
15476
15477 #. type: textblock
15478 #: ../src/guestfs-actions.pod:5804
15479 msgid ""
15480 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
15481 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
15482 "function is limited in the total size of file that can be handled."
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../src/guestfs-actions.pod:5816
15487 msgid "(Added in 1.0.63)"
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../src/guestfs-actions.pod:5818
15492 msgid "guestfs_read_lines"
15493 msgstr ""
15494
15495 #. type: verbatim
15496 #: ../src/guestfs-actions.pod:5820
15497 #, no-wrap
15498 msgid ""
15499 " char **\n"
15500 " guestfs_read_lines (guestfs_h *g,\n"
15501 "                     const char *path);\n"
15502 "\n"
15503 msgstr ""
15504
15505 #. type: textblock
15506 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3833
15507 msgid ""
15508 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15509 "C<CRLF> character sequences are I<not> returned."
15510 msgstr ""
15511
15512 #. type: textblock
15513 #: ../src/guestfs-actions.pod:5829
15514 msgid ""
15515 "Note that this function cannot correctly handle binary files (specifically, "
15516 "files containing C<\\0> character which is treated as end of line).  For "
15517 "those you need to use the C<guestfs_read_file> function which has a more "
15518 "complex interface."
15519 msgstr ""
15520
15521 #. type: =head2
15522 #: ../src/guestfs-actions.pod:5840
15523 msgid "guestfs_readdir"
15524 msgstr ""
15525
15526 #. type: verbatim
15527 #: ../src/guestfs-actions.pod:5842
15528 #, no-wrap
15529 msgid ""
15530 " struct guestfs_dirent_list *\n"
15531 " guestfs_readdir (guestfs_h *g,\n"
15532 "                  const char *dir);\n"
15533 "\n"
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3845
15538 msgid "This returns the list of directory entries in directory C<dir>."
15539 msgstr ""
15540
15541 #. type: textblock
15542 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3847
15543 msgid ""
15544 "All entries in the directory are returned, including C<.> and C<..>.  The "
15545 "entries are I<not> sorted, but returned in the same order as the underlying "
15546 "filesystem."
15547 msgstr ""
15548
15549 #. type: textblock
15550 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3851
15551 msgid ""
15552 "Also this call returns basic file type information about each file.  The "
15553 "C<ftyp> field will contain one of the following characters:"
15554 msgstr ""
15555
15556 #. type: =item
15557 #: ../src/guestfs-actions.pod:5857 ../fish/guestfish-actions.pod:3856
15558 msgid "'b'"
15559 msgstr ""
15560
15561 #. type: textblock
15562 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3858
15563 msgid "Block special"
15564 msgstr ""
15565
15566 #. type: =item
15567 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3860
15568 msgid "'c'"
15569 msgstr ""
15570
15571 #. type: textblock
15572 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3862
15573 msgid "Char special"
15574 msgstr ""
15575
15576 #. type: =item
15577 #: ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3864
15578 msgid "'d'"
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3866
15583 msgid "Directory"
15584 msgstr ""
15585
15586 #. type: =item
15587 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3868
15588 msgid "'f'"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3870
15593 msgid "FIFO (named pipe)"
15594 msgstr ""
15595
15596 #. type: =item
15597 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3872
15598 msgid "'l'"
15599 msgstr ""
15600
15601 #. type: textblock
15602 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3874
15603 msgid "Symbolic link"
15604 msgstr ""
15605
15606 #. type: =item
15607 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3876
15608 msgid "'r'"
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3878
15613 msgid "Regular file"
15614 msgstr ""
15615
15616 #. type: =item
15617 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3880
15618 msgid "'s'"
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3882
15623 msgid "Socket"
15624 msgstr ""
15625
15626 #. type: =item
15627 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3884
15628 msgid "'u'"
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3886
15633 msgid "Unknown file type"
15634 msgstr ""
15635
15636 #. type: =item
15637 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3888
15638 msgid "'?'"
15639 msgstr ""
15640
15641 #. type: textblock
15642 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3890
15643 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../src/guestfs-actions.pod:5896
15648 msgid ""
15649 "This function is primarily intended for use by programs.  To get a simple "
15650 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
15651 "consumption, use C<guestfs_ll>."
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../src/guestfs-actions.pod:5900
15656 msgid ""
15657 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
15658 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
15659 "use>."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../src/guestfs-actions.pod:5906
15664 msgid "guestfs_readlink"
15665 msgstr ""
15666
15667 #. type: verbatim
15668 #: ../src/guestfs-actions.pod:5908
15669 #, no-wrap
15670 msgid ""
15671 " char *\n"
15672 " guestfs_readlink (guestfs_h *g,\n"
15673 "                   const char *path);\n"
15674 "\n"
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3903
15679 msgid "This command reads the target of a symbolic link."
15680 msgstr ""
15681
15682 #. type: =head2
15683 #: ../src/guestfs-actions.pod:5919
15684 msgid "guestfs_readlinklist"
15685 msgstr ""
15686
15687 #. type: verbatim
15688 #: ../src/guestfs-actions.pod:5921
15689 #, no-wrap
15690 msgid ""
15691 " char **\n"
15692 " guestfs_readlinklist (guestfs_h *g,\n"
15693 "                       const char *path,\n"
15694 "                       char *const *names);\n"
15695 "\n"
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3909
15700 msgid ""
15701 "This call allows you to do a C<readlink> operation on multiple files, where "
15702 "all files are in the directory C<path>.  C<names> is the list of files from "
15703 "this directory."
15704 msgstr ""
15705
15706 #. type: textblock
15707 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3913
15708 msgid ""
15709 "On return you get a list of strings, with a one-to-one correspondence to the "
15710 "C<names> list.  Each string is the value of the symbolic link."
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../src/guestfs-actions.pod:5934 ../fish/guestfish-actions.pod:3917
15715 msgid ""
15716 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15717 "result string is the empty string C<\"\">.  However the whole operation is "
15718 "completed even if there were C<readlink(2)> errors, and so you can call this "
15719 "function with names where you don't know if they are symbolic links already "
15720 "(albeit slightly less efficient)."
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3924
15725 msgid ""
15726 "This call is intended for programs that want to efficiently list a directory "
15727 "contents without making many round-trips.  Very long directory listings "
15728 "might cause the protocol message size to be exceeded, causing this call to "
15729 "fail.  The caller must split up such requests into smaller groups of names."
15730 msgstr ""
15731
15732 #. type: =head2
15733 #: ../src/guestfs-actions.pod:5954
15734 msgid "guestfs_realpath"
15735 msgstr ""
15736
15737 #. type: verbatim
15738 #: ../src/guestfs-actions.pod:5956
15739 #, no-wrap
15740 msgid ""
15741 " char *\n"
15742 " guestfs_realpath (guestfs_h *g,\n"
15743 "                   const char *path);\n"
15744 "\n"
15745 msgstr ""
15746
15747 #. type: textblock
15748 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3935
15749 msgid ""
15750 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15751 "has no C<.>, C<..> or symbolic link path elements."
15752 msgstr ""
15753
15754 #. type: =head2
15755 #: ../src/guestfs-actions.pod:5968
15756 msgid "guestfs_removexattr"
15757 msgstr ""
15758
15759 #. type: verbatim
15760 #: ../src/guestfs-actions.pod:5970
15761 #, no-wrap
15762 msgid ""
15763 " int\n"
15764 " guestfs_removexattr (guestfs_h *g,\n"
15765 "                      const char *xattr,\n"
15766 "                      const char *path);\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../src/guestfs-actions.pod:5975 ../fish/guestfish-actions.pod:3942
15772 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15773 msgstr ""
15774
15775 #. type: textblock
15776 #: ../src/guestfs-actions.pod:5978
15777 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15778 msgstr ""
15779
15780 #. type: =head2
15781 #: ../src/guestfs-actions.pod:5984
15782 msgid "guestfs_resize2fs"
15783 msgstr ""
15784
15785 #. type: verbatim
15786 #: ../src/guestfs-actions.pod:5986
15787 #, no-wrap
15788 msgid ""
15789 " int\n"
15790 " guestfs_resize2fs (guestfs_h *g,\n"
15791 "                    const char *device);\n"
15792 "\n"
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:3951
15797 msgid ""
15798 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15799 "underlying device."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../src/guestfs-actions.pod:5993
15804 msgid ""
15805 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15806 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15807 "sometimes gives an error about this and sometimes not.  In any case, it is "
15808 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15809 msgstr ""
15810
15811 #. type: =head2
15812 #: ../src/guestfs-actions.pod:6003
15813 msgid "guestfs_resize2fs_M"
15814 msgstr ""
15815
15816 #. type: verbatim
15817 #: ../src/guestfs-actions.pod:6005
15818 #, no-wrap
15819 msgid ""
15820 " int\n"
15821 " guestfs_resize2fs_M (guestfs_h *g,\n"
15822 "                      const char *device);\n"
15823 "\n"
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../src/guestfs-actions.pod:6009
15828 msgid ""
15829 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15830 "resized to its minimum size.  This works like the I<-M> option to the "
15831 "C<resize2fs> command."
15832 msgstr ""
15833
15834 #. type: textblock
15835 #: ../src/guestfs-actions.pod:6013
15836 msgid ""
15837 "To get the resulting size of the filesystem you should call "
15838 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15839 "These two numbers, multiplied together, give the resulting size of the "
15840 "minimal filesystem in bytes."
15841 msgstr ""
15842
15843 #. type: =head2
15844 #: ../src/guestfs-actions.pod:6022
15845 msgid "guestfs_resize2fs_size"
15846 msgstr ""
15847
15848 #. type: verbatim
15849 #: ../src/guestfs-actions.pod:6024
15850 #, no-wrap
15851 msgid ""
15852 " int\n"
15853 " guestfs_resize2fs_size (guestfs_h *g,\n"
15854 "                         const char *device,\n"
15855 "                         int64_t size);\n"
15856 "\n"
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../src/guestfs-actions.pod:6029
15861 msgid ""
15862 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15863 "to specify the new size (in bytes) explicitly."
15864 msgstr ""
15865
15866 #. type: =head2
15867 #: ../src/guestfs-actions.pod:6036
15868 msgid "guestfs_rm"
15869 msgstr ""
15870
15871 #. type: verbatim
15872 #: ../src/guestfs-actions.pod:6038
15873 #, no-wrap
15874 msgid ""
15875 " int\n"
15876 " guestfs_rm (guestfs_h *g,\n"
15877 "             const char *path);\n"
15878 "\n"
15879 msgstr ""
15880
15881 #. type: textblock
15882 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:3984
15883 msgid "Remove the single file C<path>."
15884 msgstr ""
15885
15886 #. type: =head2
15887 #: ../src/guestfs-actions.pod:6048
15888 msgid "guestfs_rm_rf"
15889 msgstr ""
15890
15891 #. type: verbatim
15892 #: ../src/guestfs-actions.pod:6050
15893 #, no-wrap
15894 msgid ""
15895 " int\n"
15896 " guestfs_rm_rf (guestfs_h *g,\n"
15897 "                const char *path);\n"
15898 "\n"
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:3990
15903 msgid ""
15904 "Remove the file or directory C<path>, recursively removing the contents if "
15905 "its a directory.  This is like the C<rm -rf> shell command."
15906 msgstr ""
15907
15908 #. type: =head2
15909 #: ../src/guestfs-actions.pod:6062
15910 msgid "guestfs_rmdir"
15911 msgstr ""
15912
15913 #. type: verbatim
15914 #: ../src/guestfs-actions.pod:6064
15915 #, no-wrap
15916 msgid ""
15917 " int\n"
15918 " guestfs_rmdir (guestfs_h *g,\n"
15919 "                const char *path);\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../src/guestfs-actions.pod:6068 ../fish/guestfish-actions.pod:3998
15925 msgid "Remove the single directory C<path>."
15926 msgstr ""
15927
15928 #. type: =head2
15929 #: ../src/guestfs-actions.pod:6074
15930 msgid "guestfs_rmmountpoint"
15931 msgstr ""
15932
15933 #. type: verbatim
15934 #: ../src/guestfs-actions.pod:6076
15935 #, no-wrap
15936 msgid ""
15937 " int\n"
15938 " guestfs_rmmountpoint (guestfs_h *g,\n"
15939 "                       const char *exemptpath);\n"
15940 "\n"
15941 msgstr ""
15942
15943 #. type: textblock
15944 #: ../src/guestfs-actions.pod:6080
15945 msgid ""
15946 "This calls removes a mountpoint that was previously created with "
15947 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15948 msgstr ""
15949
15950 #. type: =head2
15951 #: ../src/guestfs-actions.pod:6088
15952 msgid "guestfs_scrub_device"
15953 msgstr ""
15954
15955 #. type: verbatim
15956 #: ../src/guestfs-actions.pod:6090
15957 #, no-wrap
15958 msgid ""
15959 " int\n"
15960 " guestfs_scrub_device (guestfs_h *g,\n"
15961 "                       const char *device);\n"
15962 "\n"
15963 msgstr ""
15964
15965 #. type: textblock
15966 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4012
15967 msgid ""
15968 "This command writes patterns over C<device> to make data retrieval more "
15969 "difficult."
15970 msgstr ""
15971
15972 #. type: textblock
15973 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4043
15974 msgid ""
15975 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15976 "more details."
15977 msgstr ""
15978
15979 #. type: textblock
15980 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6123 ../src/guestfs-actions.pod:6142
15981 msgid "(Added in 1.0.52)"
15982 msgstr ""
15983
15984 #. type: =head2
15985 #: ../src/guestfs-actions.pod:6107
15986 msgid "guestfs_scrub_file"
15987 msgstr ""
15988
15989 #. type: verbatim
15990 #: ../src/guestfs-actions.pod:6109
15991 #, no-wrap
15992 msgid ""
15993 " int\n"
15994 " guestfs_scrub_file (guestfs_h *g,\n"
15995 "                     const char *file);\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4025
16001 msgid ""
16002 "This command writes patterns over a file to make data retrieval more "
16003 "difficult."
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4028
16008 msgid "The file is I<removed> after scrubbing."
16009 msgstr ""
16010
16011 #. type: =head2
16012 #: ../src/guestfs-actions.pod:6125
16013 msgid "guestfs_scrub_freespace"
16014 msgstr ""
16015
16016 #. type: verbatim
16017 #: ../src/guestfs-actions.pod:6127
16018 #, no-wrap
16019 msgid ""
16020 " int\n"
16021 " guestfs_scrub_freespace (guestfs_h *g,\n"
16022 "                          const char *dir);\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../src/guestfs-actions.pod:6131
16028 msgid ""
16029 "This command creates the directory C<dir> and then fills it with files until "
16030 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16031 "and deletes them.  The intention is to scrub any free space on the partition "
16032 "containing C<dir>."
16033 msgstr ""
16034
16035 #. type: =head2
16036 #: ../src/guestfs-actions.pod:6144
16037 msgid "guestfs_set_append"
16038 msgstr ""
16039
16040 #. type: verbatim
16041 #: ../src/guestfs-actions.pod:6146
16042 #, no-wrap
16043 msgid ""
16044 " int\n"
16045 " guestfs_set_append (guestfs_h *g,\n"
16046 "                     const char *append);\n"
16047 "\n"
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4052
16052 msgid ""
16053 "This function is used to add additional options to the guest kernel command "
16054 "line."
16055 msgstr ""
16056
16057 #. type: textblock
16058 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4055
16059 msgid ""
16060 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16061 "environment variable."
16062 msgstr ""
16063
16064 #. type: textblock
16065 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4058
16066 msgid ""
16067 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16068 "(libguestfs always adds a few of its own)."
16069 msgstr ""
16070
16071 #. type: =head2
16072 #: ../src/guestfs-actions.pod:6163
16073 msgid "guestfs_set_attach_method"
16074 msgstr ""
16075
16076 #. type: verbatim
16077 #: ../src/guestfs-actions.pod:6165
16078 #, no-wrap
16079 msgid ""
16080 " int\n"
16081 " guestfs_set_attach_method (guestfs_h *g,\n"
16082 "                            const char *attachmethod);\n"
16083 "\n"
16084 msgstr ""
16085
16086 #. type: textblock
16087 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4067
16088 msgid ""
16089 "Set the method that libguestfs uses to connect to the back end guestfsd "
16090 "daemon.  Possible methods are:"
16091 msgstr ""
16092
16093 #. type: textblock
16094 #: ../src/guestfs-actions.pod:6176 ../fish/guestfish-actions.pod:4074
16095 msgid ""
16096 "Launch an appliance and connect to it.  This is the ordinary method and the "
16097 "default."
16098 msgstr ""
16099
16100 #. type: =item
16101 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4077
16102 msgid "C<unix:I<path>>"
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../src/guestfs-actions.pod:6181 ../fish/guestfish-actions.pod:4079
16107 msgid "Connect to the Unix domain socket I<path>."
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4081
16112 msgid ""
16113 "This method lets you connect to an existing daemon or (using virtio-serial) "
16114 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16115 "RUNNING DAEMONS>."
16116 msgstr ""
16117
16118 #. type: =head2
16119 #: ../src/guestfs-actions.pod:6193
16120 msgid "guestfs_set_autosync"
16121 msgstr ""
16122
16123 #. type: verbatim
16124 #: ../src/guestfs-actions.pod:6195
16125 #, no-wrap
16126 msgid ""
16127 " int\n"
16128 " guestfs_set_autosync (guestfs_h *g,\n"
16129 "                       int autosync);\n"
16130 "\n"
16131 msgstr ""
16132
16133 #. type: textblock
16134 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4093
16135 msgid ""
16136 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16137 "effort attempt to make filesystems consistent and synchronized when the "
16138 "handle is closed (also if the program exits without closing handles)."
16139 msgstr ""
16140
16141 #. type: textblock
16142 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4098
16143 msgid ""
16144 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16145 "disabled by default)."
16146 msgstr ""
16147
16148 #. type: =head2
16149 #: ../src/guestfs-actions.pod:6211
16150 msgid "guestfs_set_direct"
16151 msgstr ""
16152
16153 #. type: verbatim
16154 #: ../src/guestfs-actions.pod:6213
16155 #, no-wrap
16156 msgid ""
16157 " int\n"
16158 " guestfs_set_direct (guestfs_h *g,\n"
16159 "                     int direct);\n"
16160 "\n"
16161 msgstr ""
16162
16163 #. type: textblock
16164 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4107
16165 msgid ""
16166 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16167 "passed directly through to the appliance once it is launched."
16168 msgstr ""
16169
16170 #. type: textblock
16171 #: ../src/guestfs-actions.pod:6221
16172 msgid ""
16173 "One consequence of this is that log messages aren't caught by the library "
16174 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16175 "stdout."
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4115
16180 msgid "You probably don't want to use this unless you know what you are doing."
16181 msgstr ""
16182
16183 #. type: textblock
16184 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4118
16185 msgid "The default is disabled."
16186 msgstr ""
16187
16188 #. type: =head2
16189 #: ../src/guestfs-actions.pod:6234
16190 msgid "guestfs_set_e2label"
16191 msgstr ""
16192
16193 #. type: verbatim
16194 #: ../src/guestfs-actions.pod:6236
16195 #, no-wrap
16196 msgid ""
16197 " int\n"
16198 " guestfs_set_e2label (guestfs_h *g,\n"
16199 "                      const char *device,\n"
16200 "                      const char *label);\n"
16201 "\n"
16202 msgstr ""
16203
16204 #. type: textblock
16205 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4124
16206 msgid ""
16207 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16208 "C<label>.  Filesystem labels are limited to 16 characters."
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../src/guestfs-actions.pod:6245
16213 msgid ""
16214 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16215 "the existing label on a filesystem."
16216 msgstr ""
16217
16218 #. type: =head2
16219 #: ../src/guestfs-actions.pod:6252
16220 msgid "guestfs_set_e2uuid"
16221 msgstr ""
16222
16223 #. type: verbatim
16224 #: ../src/guestfs-actions.pod:6254
16225 #, no-wrap
16226 msgid ""
16227 " int\n"
16228 " guestfs_set_e2uuid (guestfs_h *g,\n"
16229 "                     const char *device,\n"
16230 "                     const char *uuid);\n"
16231 "\n"
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4135
16236 msgid ""
16237 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16238 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16239 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../src/guestfs-actions.pod:6264
16244 msgid ""
16245 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16246 "the existing UUID of a filesystem."
16247 msgstr ""
16248
16249 #. type: =head2
16250 #: ../src/guestfs-actions.pod:6271
16251 msgid "guestfs_set_memsize"
16252 msgstr ""
16253
16254 #. type: verbatim
16255 #: ../src/guestfs-actions.pod:6273
16256 #, no-wrap
16257 msgid ""
16258 " int\n"
16259 " guestfs_set_memsize (guestfs_h *g,\n"
16260 "                      int memsize);\n"
16261 "\n"
16262 msgstr ""
16263
16264 #. type: textblock
16265 #: ../src/guestfs-actions.pod:6277
16266 msgid ""
16267 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16268 "This only has any effect if called before C<guestfs_launch>."
16269 msgstr ""
16270
16271 #. type: textblock
16272 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4153
16273 msgid ""
16274 "You can also change this by setting the environment variable "
16275 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16276 msgstr ""
16277
16278 #. type: =head2
16279 #: ../src/guestfs-actions.pod:6292
16280 msgid "guestfs_set_network"
16281 msgstr ""
16282
16283 #. type: verbatim
16284 #: ../src/guestfs-actions.pod:6294
16285 #, no-wrap
16286 msgid ""
16287 " int\n"
16288 " guestfs_set_network (guestfs_h *g,\n"
16289 "                      int network);\n"
16290 "\n"
16291 msgstr ""
16292
16293 #. type: textblock
16294 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4166
16295 msgid ""
16296 "If C<network> is true, then the network is enabled in the libguestfs "
16297 "appliance.  The default is false."
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4169
16302 msgid ""
16303 "This affects whether commands are able to access the network (see "
16304 "L<guestfs(3)/RUNNING COMMANDS>)."
16305 msgstr ""
16306
16307 #. type: textblock
16308 #: ../src/guestfs-actions.pod:6304
16309 msgid ""
16310 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16311 "effect."
16312 msgstr ""
16313
16314 #. type: =head2
16315 #: ../src/guestfs-actions.pod:6311
16316 msgid "guestfs_set_path"
16317 msgstr ""
16318
16319 #. type: verbatim
16320 #: ../src/guestfs-actions.pod:6313
16321 #, no-wrap
16322 msgid ""
16323 " int\n"
16324 " guestfs_set_path (guestfs_h *g,\n"
16325 "                   const char *searchpath);\n"
16326 "\n"
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4181
16331 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4183
16336 msgid ""
16337 "The default is C<$libdir/guestfs> unless overridden by setting "
16338 "C<LIBGUESTFS_PATH> environment variable."
16339 msgstr ""
16340
16341 #. type: textblock
16342 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4186
16343 msgid "Setting C<path> to C<NULL> restores the default path."
16344 msgstr ""
16345
16346 #. type: =head2
16347 #: ../src/guestfs-actions.pod:6328
16348 msgid "guestfs_set_pgroup"
16349 msgstr ""
16350
16351 #. type: verbatim
16352 #: ../src/guestfs-actions.pod:6330
16353 #, no-wrap
16354 msgid ""
16355 " int\n"
16356 " guestfs_set_pgroup (guestfs_h *g,\n"
16357 "                     int pgroup);\n"
16358 "\n"
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4194
16363 msgid ""
16364 "If C<pgroup> is true, child processes are placed into their own process "
16365 "group."
16366 msgstr ""
16367
16368 #. type: textblock
16369 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4197
16370 msgid ""
16371 "The practical upshot of this is that signals like C<SIGINT> (from users "
16372 "pressing C<^C>) won't be received by the child process."
16373 msgstr ""
16374
16375 #. type: textblock
16376 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4200
16377 msgid ""
16378 "The default for this flag is false, because usually you want C<^C> to kill "
16379 "the subprocess."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../src/guestfs-actions.pod:6345
16384 msgid "guestfs_set_qemu"
16385 msgstr ""
16386
16387 #. type: verbatim
16388 #: ../src/guestfs-actions.pod:6347
16389 #, no-wrap
16390 msgid ""
16391 " int\n"
16392 " guestfs_set_qemu (guestfs_h *g,\n"
16393 "                   const char *qemu);\n"
16394 "\n"
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4209
16399 msgid "Set the qemu binary that we will use."
16400 msgstr ""
16401
16402 #. type: textblock
16403 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4211
16404 msgid "The default is chosen when the library was compiled by the configure script."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4214
16409 msgid ""
16410 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16411 "variable."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4217
16416 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16417 msgstr ""
16418
16419 #. type: textblock
16420 #: ../src/guestfs-actions.pod:6361 ../fish/guestfish-actions.pod:4219
16421 msgid ""
16422 "Note that you should call this function as early as possible after creating "
16423 "the handle.  This is because some pre-launch operations depend on testing "
16424 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16425 "don't retest features, and so you might see inconsistent results.  Using the "
16426 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16427 "the qemu binary at the same time as the handle is created."
16428 msgstr ""
16429
16430 #. type: =head2
16431 #: ../src/guestfs-actions.pod:6373
16432 msgid "guestfs_set_recovery_proc"
16433 msgstr ""
16434
16435 #. type: verbatim
16436 #: ../src/guestfs-actions.pod:6375
16437 #, no-wrap
16438 msgid ""
16439 " int\n"
16440 " guestfs_set_recovery_proc (guestfs_h *g,\n"
16441 "                            int recoveryproc);\n"
16442 "\n"
16443 msgstr ""
16444
16445 #. type: textblock
16446 #: ../src/guestfs-actions.pod:6379
16447 msgid ""
16448 "If this is called with the parameter C<false> then C<guestfs_launch> does "
16449 "not create a recovery process.  The purpose of the recovery process is to "
16450 "stop runaway qemu processes in the case where the main program aborts "
16451 "abruptly."
16452 msgstr ""
16453
16454 #. type: textblock
16455 #: ../src/guestfs-actions.pod:6384
16456 msgid ""
16457 "This only has any effect if called before C<guestfs_launch>, and the default "
16458 "is true."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:6387 ../fish/guestfish-actions.pod:4241
16463 msgid ""
16464 "About the only time when you would want to disable this is if the main "
16465 "process will fork itself into the background (\"daemonize\" itself).  In "
16466 "this case the recovery process thinks that the main program has disappeared "
16467 "and so kills qemu, which is not very helpful."
16468 msgstr ""
16469
16470 #. type: =head2
16471 #: ../src/guestfs-actions.pod:6397
16472 msgid "guestfs_set_selinux"
16473 msgstr ""
16474
16475 #. type: verbatim
16476 #: ../src/guestfs-actions.pod:6399
16477 #, no-wrap
16478 msgid ""
16479 " int\n"
16480 " guestfs_set_selinux (guestfs_h *g,\n"
16481 "                      int selinux);\n"
16482 "\n"
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4253
16487 msgid ""
16488 "This sets the selinux flag that is passed to the appliance at boot time.  "
16489 "The default is C<selinux=0> (disabled)."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4256
16494 msgid ""
16495 "Note that if SELinux is enabled, it is always in Permissive mode "
16496 "(C<enforcing=0>)."
16497 msgstr ""
16498
16499 #. type: =head2
16500 #: ../src/guestfs-actions.pod:6416
16501 msgid "guestfs_set_trace"
16502 msgstr ""
16503
16504 #. type: verbatim
16505 #: ../src/guestfs-actions.pod:6418
16506 #, no-wrap
16507 msgid ""
16508 " int\n"
16509 " guestfs_set_trace (guestfs_h *g,\n"
16510 "                    int trace);\n"
16511 "\n"
16512 msgstr ""
16513
16514 #. type: textblock
16515 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4268
16516 msgid ""
16517 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
16518 "return values are traced."
16519 msgstr ""
16520
16521 #. type: textblock
16522 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4271
16523 msgid ""
16524 "If you want to trace C API calls into libguestfs (and other libraries) then "
16525 "possibly a better way is to use the external ltrace(1) command."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../src/guestfs-actions.pod:6429 ../fish/guestfish-actions.pod:4275
16530 msgid ""
16531 "Command traces are disabled unless the environment variable "
16532 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../src/guestfs-actions.pod:6432
16537 msgid ""
16538 "Trace messages are normally sent to C<stderr>, unless you register a "
16539 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../src/guestfs-actions.pod:6440
16544 msgid "guestfs_set_verbose"
16545 msgstr ""
16546
16547 #. type: verbatim
16548 #: ../src/guestfs-actions.pod:6442
16549 #, no-wrap
16550 msgid ""
16551 " int\n"
16552 " guestfs_set_verbose (guestfs_h *g,\n"
16553 "                      int verbose);\n"
16554 "\n"
16555 msgstr ""
16556
16557 #. type: textblock
16558 #: ../src/guestfs-actions.pod:6446 ../fish/guestfish-actions.pod:4288
16559 msgid "If C<verbose> is true, this turns on verbose messages."
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4290
16564 msgid ""
16565 "Verbose messages are disabled unless the environment variable "
16566 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../src/guestfs-actions.pod:6451
16571 msgid ""
16572 "Verbose messages are normally sent to C<stderr>, unless you register a "
16573 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
16574 msgstr ""
16575
16576 #. type: =head2
16577 #: ../src/guestfs-actions.pod:6459
16578 msgid "guestfs_setcon"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../src/guestfs-actions.pod:6461
16583 #, no-wrap
16584 msgid ""
16585 " int\n"
16586 " guestfs_setcon (guestfs_h *g,\n"
16587 "                 const char *context);\n"
16588 "\n"
16589 msgstr ""
16590
16591 #. type: textblock
16592 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4301
16593 msgid ""
16594 "This sets the SELinux security context of the daemon to the string "
16595 "C<context>."
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4304
16600 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16601 msgstr ""
16602
16603 #. type: =head2
16604 #: ../src/guestfs-actions.pod:6474
16605 msgid "guestfs_setxattr"
16606 msgstr ""
16607
16608 #. type: verbatim
16609 #: ../src/guestfs-actions.pod:6476
16610 #, no-wrap
16611 msgid ""
16612 " int\n"
16613 " guestfs_setxattr (guestfs_h *g,\n"
16614 "                   const char *xattr,\n"
16615 "                   const char *val,\n"
16616 "                   int vallen,\n"
16617 "                   const char *path);\n"
16618 "\n"
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4310
16623 msgid ""
16624 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16625 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16626 msgstr ""
16627
16628 #. type: textblock
16629 #: ../src/guestfs-actions.pod:6487
16630 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
16631 msgstr ""
16632
16633 #. type: =head2
16634 #: ../src/guestfs-actions.pod:6493
16635 msgid "guestfs_sfdisk"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../src/guestfs-actions.pod:6495
16640 #, no-wrap
16641 msgid ""
16642 " int\n"
16643 " guestfs_sfdisk (guestfs_h *g,\n"
16644 "                 const char *device,\n"
16645 "                 int cyls,\n"
16646 "                 int heads,\n"
16647 "                 int sectors,\n"
16648 "                 char *const *lines);\n"
16649 "\n"
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4320
16654 msgid ""
16655 "This is a direct interface to the L<sfdisk(8)> program for creating "
16656 "partitions on block devices."
16657 msgstr ""
16658
16659 #. type: textblock
16660 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4323
16661 msgid "C<device> should be a block device, for example C</dev/sda>."
16662 msgstr ""
16663
16664 #. type: textblock
16665 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4325
16666 msgid ""
16667 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16668 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
16669 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16670 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16671 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16672 "the kernel) cannot work out the right geometry and you will need to tell it."
16673 msgstr ""
16674
16675 #. type: textblock
16676 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4333
16677 msgid ""
16678 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16679 "refer to the L<sfdisk(8)> manpage."
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../src/guestfs-actions.pod:6519 ../fish/guestfish-actions.pod:4336
16684 msgid ""
16685 "To create a single partition occupying the whole disk, you would pass "
16686 "C<lines> as a single element list, when the single element being the string "
16687 "C<,> (comma)."
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../src/guestfs-actions.pod:6523
16692 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
16693 msgstr ""
16694
16695 #. type: textblock
16696 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4346 ../fish/guestfish-actions.pod:4369 ../fish/guestfish-actions.pod:4391
16697 msgid "This function is deprecated.  In new code, use the C<part_add> call instead."
16698 msgstr ""
16699
16700 #. type: =head2
16701 #: ../src/guestfs-actions.pod:6540
16702 msgid "guestfs_sfdiskM"
16703 msgstr ""
16704
16705 #. type: verbatim
16706 #: ../src/guestfs-actions.pod:6542
16707 #, no-wrap
16708 msgid ""
16709 " int\n"
16710 " guestfs_sfdiskM (guestfs_h *g,\n"
16711 "                  const char *device,\n"
16712 "                  char *const *lines);\n"
16713 "\n"
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../src/guestfs-actions.pod:6547
16718 msgid ""
16719 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
16720 "partition sizes are specified in megabytes only (rounded to the nearest "
16721 "cylinder) and you don't need to specify the cyls, heads and sectors "
16722 "parameters which were rarely if ever used anyway."
16723 msgstr ""
16724
16725 #. type: textblock
16726 #: ../src/guestfs-actions.pod:6553
16727 msgid ""
16728 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
16729 "C<guestfs_part_disk>"
16730 msgstr ""
16731
16732 #. type: =head2
16733 #: ../src/guestfs-actions.pod:6570
16734 msgid "guestfs_sfdisk_N"
16735 msgstr ""
16736
16737 #. type: verbatim
16738 #: ../src/guestfs-actions.pod:6572
16739 #, no-wrap
16740 msgid ""
16741 " int\n"
16742 " guestfs_sfdisk_N (guestfs_h *g,\n"
16743 "                   const char *device,\n"
16744 "                   int partnum,\n"
16745 "                   int cyls,\n"
16746 "                   int heads,\n"
16747 "                   int sectors,\n"
16748 "                   const char *line);\n"
16749 "\n"
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../src/guestfs-actions.pod:6581 ../fish/guestfish-actions.pod:4380
16754 msgid ""
16755 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16756 "(note: C<n> counts from 1)."
16757 msgstr ""
16758
16759 #. type: textblock
16760 #: ../src/guestfs-actions.pod:6584
16761 msgid ""
16762 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
16763 "for the cyls/heads/sectors parameters."
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../src/guestfs-actions.pod:6587
16768 msgid "See also: C<guestfs_part_add>"
16769 msgstr ""
16770
16771 #. type: =head2
16772 #: ../src/guestfs-actions.pod:6603
16773 msgid "guestfs_sfdisk_disk_geometry"
16774 msgstr ""
16775
16776 #. type: verbatim
16777 #: ../src/guestfs-actions.pod:6605
16778 #, no-wrap
16779 msgid ""
16780 " char *\n"
16781 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
16782 "                               const char *device);\n"
16783 "\n"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../src/guestfs-actions.pod:6609
16788 msgid ""
16789 "This displays the disk geometry of C<device> read from the partition table.  "
16790 "Especially in the case where the underlying block device has been resized, "
16791 "this can be different from the kernel's idea of the geometry (see "
16792 "C<guestfs_sfdisk_kernel_geometry>)."
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6630 ../fish/guestfish-actions.pod:4407 ../fish/guestfish-actions.pod:4416
16797 msgid "The result is in human-readable format, and not designed to be parsed."
16798 msgstr ""
16799
16800 #. type: =head2
16801 #: ../src/guestfs-actions.pod:6622
16802 msgid "guestfs_sfdisk_kernel_geometry"
16803 msgstr ""
16804
16805 #. type: verbatim
16806 #: ../src/guestfs-actions.pod:6624
16807 #, no-wrap
16808 msgid ""
16809 " char *\n"
16810 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16811 "                                 const char *device);\n"
16812 "\n"
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../src/guestfs-actions.pod:6628 ../fish/guestfish-actions.pod:4414
16817 msgid "This displays the kernel's idea of the geometry of C<device>."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../src/guestfs-actions.pod:6638
16822 msgid "guestfs_sfdisk_l"
16823 msgstr ""
16824
16825 #. type: verbatim
16826 #: ../src/guestfs-actions.pod:6640
16827 #, no-wrap
16828 msgid ""
16829 " char *\n"
16830 " guestfs_sfdisk_l (guestfs_h *g,\n"
16831 "                   const char *device);\n"
16832 "\n"
16833 msgstr ""
16834
16835 #. type: textblock
16836 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4423
16837 msgid ""
16838 "This displays the partition table on C<device>, in the human-readable output "
16839 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../src/guestfs-actions.pod:6648
16844 msgid "See also: C<guestfs_part_list>"
16845 msgstr ""
16846
16847 #. type: textblock
16848 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4429
16849 msgid ""
16850 "This function is deprecated.  In new code, use the C<part_list> call "
16851 "instead."
16852 msgstr ""
16853
16854 #. type: =head2
16855 #: ../src/guestfs-actions.pod:6662
16856 msgid "guestfs_sh"
16857 msgstr ""
16858
16859 #. type: verbatim
16860 #: ../src/guestfs-actions.pod:6664
16861 #, no-wrap
16862 msgid ""
16863 " char *\n"
16864 " guestfs_sh (guestfs_h *g,\n"
16865 "             const char *command);\n"
16866 "\n"
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../src/guestfs-actions.pod:6668 ../fish/guestfish-actions.pod:4440
16871 msgid ""
16872 "This call runs a command from the guest filesystem via the guest's "
16873 "C</bin/sh>."
16874 msgstr ""
16875
16876 #. type: textblock
16877 #: ../src/guestfs-actions.pod:6671
16878 msgid "This is like C<guestfs_command>, but passes the command to:"
16879 msgstr ""
16880
16881 #. type: verbatim
16882 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4445
16883 #, no-wrap
16884 msgid ""
16885 " /bin/sh -c \"command\"\n"
16886 "\n"
16887 msgstr ""
16888
16889 #. type: textblock
16890 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4447
16891 msgid ""
16892 "Depending on the guest's shell, this usually results in wildcards being "
16893 "expanded, shell expressions being interpolated and so on."
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../src/guestfs-actions.pod:6679
16898 msgid "All the provisos about C<guestfs_command> apply to this call."
16899 msgstr ""
16900
16901 #. type: =head2
16902 #: ../src/guestfs-actions.pod:6686
16903 msgid "guestfs_sh_lines"
16904 msgstr ""
16905
16906 #. type: verbatim
16907 #: ../src/guestfs-actions.pod:6688
16908 #, no-wrap
16909 msgid ""
16910 " char **\n"
16911 " guestfs_sh_lines (guestfs_h *g,\n"
16912 "                   const char *command);\n"
16913 "\n"
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../src/guestfs-actions.pod:6692
16918 msgid ""
16919 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16920 "lines."
16921 msgstr ""
16922
16923 #. type: textblock
16924 #: ../src/guestfs-actions.pod:6695
16925 msgid "See also: C<guestfs_command_lines>"
16926 msgstr ""
16927
16928 #. type: =head2
16929 #: ../src/guestfs-actions.pod:6703
16930 msgid "guestfs_sleep"
16931 msgstr ""
16932
16933 #. type: verbatim
16934 #: ../src/guestfs-actions.pod:6705
16935 #, no-wrap
16936 msgid ""
16937 " int\n"
16938 " guestfs_sleep (guestfs_h *g,\n"
16939 "                int secs);\n"
16940 "\n"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4466
16945 msgid "Sleep for C<secs> seconds."
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../src/guestfs-actions.pod:6713
16950 msgid "(Added in 1.0.41)"
16951 msgstr ""
16952
16953 #. type: =head2
16954 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-structs.pod:109
16955 msgid "guestfs_stat"
16956 msgstr ""
16957
16958 #. type: verbatim
16959 #: ../src/guestfs-actions.pod:6717
16960 #, no-wrap
16961 msgid ""
16962 " struct guestfs_stat *\n"
16963 " guestfs_stat (guestfs_h *g,\n"
16964 "               const char *path);\n"
16965 "\n"
16966 msgstr ""
16967
16968 #. type: textblock
16969 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4474
16970 msgid "This is the same as the C<stat(2)> system call."
16971 msgstr ""
16972
16973 #. type: =head2
16974 #: ../src/guestfs-actions.pod:6731 ../src/guestfs-structs.pod:135
16975 msgid "guestfs_statvfs"
16976 msgstr ""
16977
16978 #. type: verbatim
16979 #: ../src/guestfs-actions.pod:6733
16980 #, no-wrap
16981 msgid ""
16982 " struct guestfs_statvfs *\n"
16983 " guestfs_statvfs (guestfs_h *g,\n"
16984 "                  const char *path);\n"
16985 "\n"
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../src/guestfs-actions.pod:6737 ../fish/guestfish-actions.pod:4480
16990 msgid ""
16991 "Returns file system statistics for any mounted file system.  C<path> should "
16992 "be a file or directory in the mounted file system (typically it is the mount "
16993 "point itself, but it doesn't need to be)."
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4484
16998 msgid "This is the same as the C<statvfs(2)> system call."
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../src/guestfs-actions.pod:6743
17003 msgid ""
17004 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17005 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17006 msgstr ""
17007
17008 #. type: =head2
17009 #: ../src/guestfs-actions.pod:6749
17010 msgid "guestfs_strings"
17011 msgstr ""
17012
17013 #. type: verbatim
17014 #: ../src/guestfs-actions.pod:6751
17015 #, no-wrap
17016 msgid ""
17017 " char **\n"
17018 " guestfs_strings (guestfs_h *g,\n"
17019 "                  const char *path);\n"
17020 "\n"
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4490
17025 msgid ""
17026 "This runs the L<strings(1)> command on a file and returns the list of "
17027 "printable strings found."
17028 msgstr ""
17029
17030 #. type: =head2
17031 #: ../src/guestfs-actions.pod:6767
17032 msgid "guestfs_strings_e"
17033 msgstr ""
17034
17035 #. type: verbatim
17036 #: ../src/guestfs-actions.pod:6769
17037 #, no-wrap
17038 msgid ""
17039 " char **\n"
17040 " guestfs_strings_e (guestfs_h *g,\n"
17041 "                    const char *encoding,\n"
17042 "                    const char *path);\n"
17043 "\n"
17044 msgstr ""
17045
17046 #. type: textblock
17047 #: ../src/guestfs-actions.pod:6774
17048 msgid ""
17049 "This is like the C<guestfs_strings> command, but allows you to specify the "
17050 "encoding of strings that are looked for in the source file C<path>."
17051 msgstr ""
17052
17053 #. type: textblock
17054 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4504
17055 msgid "Allowed encodings are:"
17056 msgstr ""
17057
17058 #. type: =item
17059 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4508
17060 msgid "s"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../src/guestfs-actions.pod:6784
17065 msgid ""
17066 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17067 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17068 msgstr ""
17069
17070 #. type: =item
17071 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4513
17072 msgid "S"
17073 msgstr ""
17074
17075 #. type: textblock
17076 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4515
17077 msgid "Single 8-bit-byte characters."
17078 msgstr ""
17079
17080 #. type: =item
17081 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4517
17082 msgid "b"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4519
17087 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17088 msgstr ""
17089
17090 #. type: =item
17091 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
17092 msgid "l (lower case letter L)"
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4524
17097 msgid ""
17098 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17099 "examining binaries in Windows guests."
17100 msgstr ""
17101
17102 #. type: =item
17103 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4527
17104 msgid "B"
17105 msgstr ""
17106
17107 #. type: textblock
17108 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4529
17109 msgid "32-bit big endian such as UCS-4BE."
17110 msgstr ""
17111
17112 #. type: =item
17113 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4531
17114 msgid "L"
17115 msgstr ""
17116
17117 #. type: textblock
17118 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4533
17119 msgid "32-bit little endian such as UCS-4LE."
17120 msgstr ""
17121
17122 #. type: textblock
17123 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4537
17124 msgid "The returned strings are transcoded to UTF-8."
17125 msgstr ""
17126
17127 #. type: =head2
17128 #: ../src/guestfs-actions.pod:6822
17129 msgid "guestfs_swapoff_device"
17130 msgstr ""
17131
17132 #. type: verbatim
17133 #: ../src/guestfs-actions.pod:6824
17134 #, no-wrap
17135 msgid ""
17136 " int\n"
17137 " guestfs_swapoff_device (guestfs_h *g,\n"
17138 "                         const char *device);\n"
17139 "\n"
17140 msgstr ""
17141
17142 #. type: textblock
17143 #: ../src/guestfs-actions.pod:6828
17144 msgid ""
17145 "This command disables the libguestfs appliance swap device or partition "
17146 "named C<device>.  See C<guestfs_swapon_device>."
17147 msgstr ""
17148
17149 #. type: =head2
17150 #: ../src/guestfs-actions.pod:6836
17151 msgid "guestfs_swapoff_file"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../src/guestfs-actions.pod:6838
17156 #, no-wrap
17157 msgid ""
17158 " int\n"
17159 " guestfs_swapoff_file (guestfs_h *g,\n"
17160 "                       const char *file);\n"
17161 "\n"
17162 msgstr ""
17163
17164 #. type: textblock
17165 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4554
17166 msgid "This command disables the libguestfs appliance swap on file."
17167 msgstr ""
17168
17169 #. type: =head2
17170 #: ../src/guestfs-actions.pod:6848
17171 msgid "guestfs_swapoff_label"
17172 msgstr ""
17173
17174 #. type: verbatim
17175 #: ../src/guestfs-actions.pod:6850
17176 #, no-wrap
17177 msgid ""
17178 " int\n"
17179 " guestfs_swapoff_label (guestfs_h *g,\n"
17180 "                        const char *label);\n"
17181 "\n"
17182 msgstr ""
17183
17184 #. type: textblock
17185 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4560
17186 msgid ""
17187 "This command disables the libguestfs appliance swap on labeled swap "
17188 "partition."
17189 msgstr ""
17190
17191 #. type: =head2
17192 #: ../src/guestfs-actions.pod:6861
17193 msgid "guestfs_swapoff_uuid"
17194 msgstr ""
17195
17196 #. type: verbatim
17197 #: ../src/guestfs-actions.pod:6863
17198 #, no-wrap
17199 msgid ""
17200 " int\n"
17201 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17202 "                       const char *uuid);\n"
17203 "\n"
17204 msgstr ""
17205
17206 #. type: textblock
17207 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4567
17208 msgid ""
17209 "This command disables the libguestfs appliance swap partition with the given "
17210 "UUID."
17211 msgstr ""
17212
17213 #. type: =head2
17214 #: ../src/guestfs-actions.pod:6874
17215 msgid "guestfs_swapon_device"
17216 msgstr ""
17217
17218 #. type: verbatim
17219 #: ../src/guestfs-actions.pod:6876
17220 #, no-wrap
17221 msgid ""
17222 " int\n"
17223 " guestfs_swapon_device (guestfs_h *g,\n"
17224 "                        const char *device);\n"
17225 "\n"
17226 msgstr ""
17227
17228 #. type: textblock
17229 #: ../src/guestfs-actions.pod:6880
17230 msgid ""
17231 "This command enables the libguestfs appliance to use the swap device or "
17232 "partition named C<device>.  The increased memory is made available for all "
17233 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17234 msgstr ""
17235
17236 #. type: textblock
17237 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
17238 msgid ""
17239 "Note that you should not swap to existing guest swap partitions unless you "
17240 "know what you are doing.  They may contain hibernation information, or other "
17241 "information that the guest doesn't want you to trash.  You also risk leaking "
17242 "information about the host to the guest this way.  Instead, attach a new "
17243 "host device to the guest and swap on that."
17244 msgstr ""
17245
17246 #. type: =head2
17247 #: ../src/guestfs-actions.pod:6896
17248 msgid "guestfs_swapon_file"
17249 msgstr ""
17250
17251 #. type: verbatim
17252 #: ../src/guestfs-actions.pod:6898
17253 #, no-wrap
17254 msgid ""
17255 " int\n"
17256 " guestfs_swapon_file (guestfs_h *g,\n"
17257 "                      const char *file);\n"
17258 "\n"
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../src/guestfs-actions.pod:6902
17263 msgid ""
17264 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17265 "notes."
17266 msgstr ""
17267
17268 #. type: =head2
17269 #: ../src/guestfs-actions.pod:6909
17270 msgid "guestfs_swapon_label"
17271 msgstr ""
17272
17273 #. type: verbatim
17274 #: ../src/guestfs-actions.pod:6911
17275 #, no-wrap
17276 msgid ""
17277 " int\n"
17278 " guestfs_swapon_label (guestfs_h *g,\n"
17279 "                       const char *label);\n"
17280 "\n"
17281 msgstr ""
17282
17283 #. type: textblock
17284 #: ../src/guestfs-actions.pod:6915
17285 msgid ""
17286 "This command enables swap to a labeled swap partition.  See "
17287 "C<guestfs_swapon_device> for other notes."
17288 msgstr ""
17289
17290 #. type: =head2
17291 #: ../src/guestfs-actions.pod:6922
17292 msgid "guestfs_swapon_uuid"
17293 msgstr ""
17294
17295 #. type: verbatim
17296 #: ../src/guestfs-actions.pod:6924
17297 #, no-wrap
17298 msgid ""
17299 " int\n"
17300 " guestfs_swapon_uuid (guestfs_h *g,\n"
17301 "                      const char *uuid);\n"
17302 "\n"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../src/guestfs-actions.pod:6928
17307 msgid ""
17308 "This command enables swap to a swap partition with the given UUID.  See "
17309 "C<guestfs_swapon_device> for other notes."
17310 msgstr ""
17311
17312 #. type: =head2
17313 #: ../src/guestfs-actions.pod:6935
17314 msgid "guestfs_sync"
17315 msgstr ""
17316
17317 #. type: verbatim
17318 #: ../src/guestfs-actions.pod:6937
17319 #, no-wrap
17320 msgid ""
17321 " int\n"
17322 " guestfs_sync (guestfs_h *g);\n"
17323 "\n"
17324 msgstr ""
17325
17326 #. type: textblock
17327 #: ../src/guestfs-actions.pod:6940 ../fish/guestfish-actions.pod:4611
17328 msgid ""
17329 "This syncs the disk, so that any writes are flushed through to the "
17330 "underlying disk image."
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4614
17335 msgid ""
17336 "You should always call this if you have modified a disk image, before "
17337 "closing the handle."
17338 msgstr ""
17339
17340 #. type: =head2
17341 #: ../src/guestfs-actions.pod:6950
17342 msgid "guestfs_tail"
17343 msgstr ""
17344
17345 #. type: verbatim
17346 #: ../src/guestfs-actions.pod:6952
17347 #, no-wrap
17348 msgid ""
17349 " char **\n"
17350 " guestfs_tail (guestfs_h *g,\n"
17351 "               const char *path);\n"
17352 "\n"
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4621
17357 msgid "This command returns up to the last 10 lines of a file as a list of strings."
17358 msgstr ""
17359
17360 #. type: =head2
17361 #: ../src/guestfs-actions.pod:6968
17362 msgid "guestfs_tail_n"
17363 msgstr ""
17364
17365 #. type: verbatim
17366 #: ../src/guestfs-actions.pod:6970
17367 #, no-wrap
17368 msgid ""
17369 " char **\n"
17370 " guestfs_tail_n (guestfs_h *g,\n"
17371 "                 int nrlines,\n"
17372 "                 const char *path);\n"
17373 "\n"
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../src/guestfs-actions.pod:6975 ../fish/guestfish-actions.pod:4631
17378 msgid ""
17379 "If the parameter C<nrlines> is a positive number, this returns the last "
17380 "C<nrlines> lines of the file C<path>."
17381 msgstr ""
17382
17383 #. type: textblock
17384 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4634
17385 msgid ""
17386 "If the parameter C<nrlines> is a negative number, this returns lines from "
17387 "the file C<path>, starting with the C<-nrlines>th line."
17388 msgstr ""
17389
17390 #. type: =head2
17391 #: ../src/guestfs-actions.pod:6992
17392 msgid "guestfs_tar_in"
17393 msgstr ""
17394
17395 #. type: verbatim
17396 #: ../src/guestfs-actions.pod:6994
17397 #, no-wrap
17398 msgid ""
17399 " int\n"
17400 " guestfs_tar_in (guestfs_h *g,\n"
17401 "                 const char *tarfile,\n"
17402 "                 const char *directory);\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4646
17408 msgid ""
17409 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17410 "tar file) into C<directory>."
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../src/guestfs-actions.pod:7002
17415 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7040 ../src/guestfs-actions.pod:7056
17420 msgid "(Added in 1.0.3)"
17421 msgstr ""
17422
17423 #. type: =head2
17424 #: ../src/guestfs-actions.pod:7009
17425 msgid "guestfs_tar_out"
17426 msgstr ""
17427
17428 #. type: verbatim
17429 #: ../src/guestfs-actions.pod:7011
17430 #, no-wrap
17431 msgid ""
17432 " int\n"
17433 " guestfs_tar_out (guestfs_h *g,\n"
17434 "                  const char *directory,\n"
17435 "                  const char *tarfile);\n"
17436 "\n"
17437 msgstr ""
17438
17439 #. type: textblock
17440 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4658
17441 msgid ""
17442 "This command packs the contents of C<directory> and downloads it to local "
17443 "file C<tarfile>."
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../src/guestfs-actions.pod:7019
17448 msgid ""
17449 "To download a compressed tarball, use C<guestfs_tgz_out> or "
17450 "C<guestfs_txz_out>."
17451 msgstr ""
17452
17453 #. type: =head2
17454 #: ../src/guestfs-actions.pod:7026
17455 msgid "guestfs_tgz_in"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../src/guestfs-actions.pod:7028
17460 #, no-wrap
17461 msgid ""
17462 " int\n"
17463 " guestfs_tgz_in (guestfs_h *g,\n"
17464 "                 const char *tarball,\n"
17465 "                 const char *directory);\n"
17466 "\n"
17467 msgstr ""
17468
17469 #. type: textblock
17470 #: ../src/guestfs-actions.pod:7033 ../fish/guestfish-actions.pod:4670
17471 msgid ""
17472 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17473 "tar file) into C<directory>."
17474 msgstr ""
17475
17476 #. type: textblock
17477 #: ../src/guestfs-actions.pod:7036
17478 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
17479 msgstr ""
17480
17481 #. type: =head2
17482 #: ../src/guestfs-actions.pod:7042
17483 msgid "guestfs_tgz_out"
17484 msgstr ""
17485
17486 #. type: verbatim
17487 #: ../src/guestfs-actions.pod:7044
17488 #, no-wrap
17489 msgid ""
17490 " int\n"
17491 " guestfs_tgz_out (guestfs_h *g,\n"
17492 "                  const char *directory,\n"
17493 "                  const char *tarball);\n"
17494 "\n"
17495 msgstr ""
17496
17497 #. type: textblock
17498 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:4681
17499 msgid ""
17500 "This command packs the contents of C<directory> and downloads it to local "
17501 "file C<tarball>."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../src/guestfs-actions.pod:7052
17506 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
17507 msgstr ""
17508
17509 #. type: =head2
17510 #: ../src/guestfs-actions.pod:7058
17511 msgid "guestfs_touch"
17512 msgstr ""
17513
17514 #. type: verbatim
17515 #: ../src/guestfs-actions.pod:7060
17516 #, no-wrap
17517 msgid ""
17518 " int\n"
17519 " guestfs_touch (guestfs_h *g,\n"
17520 "                const char *path);\n"
17521 "\n"
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4692
17526 msgid ""
17527 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17528 "timestamps on a file, or, if the file does not exist, to create a new "
17529 "zero-length file."
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4696
17534 msgid ""
17535 "This command only works on regular files, and will fail on other file types "
17536 "such as directories, symbolic links, block special etc."
17537 msgstr ""
17538
17539 #. type: =head2
17540 #: ../src/guestfs-actions.pod:7075
17541 msgid "guestfs_truncate"
17542 msgstr ""
17543
17544 #. type: verbatim
17545 #: ../src/guestfs-actions.pod:7077
17546 #, no-wrap
17547 msgid ""
17548 " int\n"
17549 " guestfs_truncate (guestfs_h *g,\n"
17550 "                   const char *path);\n"
17551 "\n"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../src/guestfs-actions.pod:7081 ../fish/guestfish-actions.pod:4703
17556 msgid ""
17557 "This command truncates C<path> to a zero-length file.  The file must exist "
17558 "already."
17559 msgstr ""
17560
17561 #. type: =head2
17562 #: ../src/guestfs-actions.pod:7088
17563 msgid "guestfs_truncate_size"
17564 msgstr ""
17565
17566 #. type: verbatim
17567 #: ../src/guestfs-actions.pod:7090
17568 #, no-wrap
17569 msgid ""
17570 " int\n"
17571 " guestfs_truncate_size (guestfs_h *g,\n"
17572 "                        const char *path,\n"
17573 "                        int64_t size);\n"
17574 "\n"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4710
17579 msgid ""
17580 "This command truncates C<path> to size C<size> bytes.  The file must exist "
17581 "already."
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../src/guestfs-actions.pod:7098
17586 msgid ""
17587 "If the current file size is less than C<size> then the file is extended to "
17588 "the required size with zero bytes.  This creates a sparse file (ie. disk "
17589 "blocks are not allocated for the file until you write to it).  To create a "
17590 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
17591 msgstr ""
17592
17593 #. type: =head2
17594 #: ../src/guestfs-actions.pod:7108
17595 msgid "guestfs_tune2fs_l"
17596 msgstr ""
17597
17598 #. type: verbatim
17599 #: ../src/guestfs-actions.pod:7110
17600 #, no-wrap
17601 msgid ""
17602 " char **\n"
17603 " guestfs_tune2fs_l (guestfs_h *g,\n"
17604 "                    const char *device);\n"
17605 "\n"
17606 msgstr ""
17607
17608 #. type: textblock
17609 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4723
17610 msgid ""
17611 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
17612 "C<device>."
17613 msgstr ""
17614
17615 #. type: textblock
17616 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4726
17617 msgid ""
17618 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
17619 "for more details.  The list of fields returned isn't clearly defined, and "
17620 "depends on both the version of C<tune2fs> that libguestfs was built against, "
17621 "and the filesystem itself."
17622 msgstr ""
17623
17624 #. type: =head2
17625 #: ../src/guestfs-actions.pod:7130
17626 msgid "guestfs_txz_in"
17627 msgstr ""
17628
17629 #. type: verbatim
17630 #: ../src/guestfs-actions.pod:7132
17631 #, no-wrap
17632 msgid ""
17633 " int\n"
17634 " guestfs_txz_in (guestfs_h *g,\n"
17635 "                 const char *tarball,\n"
17636 "                 const char *directory);\n"
17637 "\n"
17638 msgstr ""
17639
17640 #. type: textblock
17641 #: ../src/guestfs-actions.pod:7137 ../fish/guestfish-actions.pod:4735
17642 msgid ""
17643 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
17644 "tar file) into C<directory>."
17645 msgstr ""
17646
17647 #. type: =head2
17648 #: ../src/guestfs-actions.pod:7144
17649 msgid "guestfs_txz_out"
17650 msgstr ""
17651
17652 #. type: verbatim
17653 #: ../src/guestfs-actions.pod:7146
17654 #, no-wrap
17655 msgid ""
17656 " int\n"
17657 " guestfs_txz_out (guestfs_h *g,\n"
17658 "                  const char *directory,\n"
17659 "                  const char *tarball);\n"
17660 "\n"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4744
17665 msgid ""
17666 "This command packs the contents of C<directory> and downloads it to local "
17667 "file C<tarball> (as an xz compressed tar archive)."
17668 msgstr ""
17669
17670 #. type: =head2
17671 #: ../src/guestfs-actions.pod:7158
17672 msgid "guestfs_umask"
17673 msgstr ""
17674
17675 #. type: verbatim
17676 #: ../src/guestfs-actions.pod:7160
17677 #, no-wrap
17678 msgid ""
17679 " int\n"
17680 " guestfs_umask (guestfs_h *g,\n"
17681 "                int mask);\n"
17682 "\n"
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../src/guestfs-actions.pod:7164 ../fish/guestfish-actions.pod:4753
17687 msgid ""
17688 "This function sets the mask used for creating new files and device nodes to "
17689 "C<mask & 0777>."
17690 msgstr ""
17691
17692 #. type: textblock
17693 #: ../src/guestfs-actions.pod:7167 ../fish/guestfish-actions.pod:4756
17694 msgid ""
17695 "Typical umask values would be C<022> which creates new files with "
17696 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17697 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../src/guestfs-actions.pod:7172 ../fish/guestfish-actions.pod:4761
17702 msgid ""
17703 "The default umask is C<022>.  This is important because it means that "
17704 "directories and device nodes will be created with C<0644> or C<0755> mode "
17705 "even if you specify C<0777>."
17706 msgstr ""
17707
17708 #. type: textblock
17709 #: ../src/guestfs-actions.pod:7176
17710 msgid ""
17711 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
17712 "C<guestfs_mkdir>."
17713 msgstr ""
17714
17715 #. type: textblock
17716 #: ../src/guestfs-actions.pod:7179 ../fish/guestfish-actions.pod:4768
17717 msgid "This call returns the previous umask."
17718 msgstr ""
17719
17720 #. type: =head2
17721 #: ../src/guestfs-actions.pod:7185
17722 msgid "guestfs_umount"
17723 msgstr ""
17724
17725 #. type: verbatim
17726 #: ../src/guestfs-actions.pod:7187
17727 #, no-wrap
17728 msgid ""
17729 " int\n"
17730 " guestfs_umount (guestfs_h *g,\n"
17731 "                 const char *pathordevice);\n"
17732 "\n"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4776
17737 msgid ""
17738 "This unmounts the given filesystem.  The filesystem may be specified either "
17739 "by its mountpoint (path) or the device which contains the filesystem."
17740 msgstr ""
17741
17742 #. type: =head2
17743 #: ../src/guestfs-actions.pod:7199
17744 msgid "guestfs_umount_all"
17745 msgstr ""
17746
17747 #. type: verbatim
17748 #: ../src/guestfs-actions.pod:7201
17749 #, no-wrap
17750 msgid ""
17751 " int\n"
17752 " guestfs_umount_all (guestfs_h *g);\n"
17753 "\n"
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4786
17758 msgid "This unmounts all mounted filesystems."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../src/guestfs-actions.pod:7206 ../fish/guestfish-actions.pod:4788
17763 msgid "Some internal mounts are not unmounted by this call."
17764 msgstr ""
17765
17766 #. type: =head2
17767 #: ../src/guestfs-actions.pod:7212
17768 msgid "guestfs_upload"
17769 msgstr ""
17770
17771 #. type: verbatim
17772 #: ../src/guestfs-actions.pod:7214
17773 #, no-wrap
17774 msgid ""
17775 " int\n"
17776 " guestfs_upload (guestfs_h *g,\n"
17777 "                 const char *filename,\n"
17778 "                 const char *remotefilename);\n"
17779 "\n"
17780 msgstr ""
17781
17782 #. type: textblock
17783 #: ../src/guestfs-actions.pod:7219 ../src/guestfs-actions.pod:7243 ../fish/guestfish-actions.pod:4794 ../fish/guestfish-actions.pod:4807
17784 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../src/guestfs-actions.pod:7224
17789 msgid "See also C<guestfs_download>."
17790 msgstr ""
17791
17792 #. type: =head2
17793 #: ../src/guestfs-actions.pod:7235
17794 msgid "guestfs_upload_offset"
17795 msgstr ""
17796
17797 #. type: verbatim
17798 #: ../src/guestfs-actions.pod:7237
17799 #, no-wrap
17800 msgid ""
17801 " int\n"
17802 " guestfs_upload_offset (guestfs_h *g,\n"
17803 "                        const char *filename,\n"
17804 "                        const char *remotefilename,\n"
17805 "                        int64_t offset);\n"
17806 "\n"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../src/guestfs-actions.pod:7246 ../fish/guestfish-actions.pod:4810
17811 msgid ""
17812 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17813 "The intention is to overwrite parts of existing files or devices, although "
17814 "if a non-existant file is specified then it is created with a \"hole\" "
17815 "before C<offset>.  The size of the data written is implicit in the size of "
17816 "the source C<filename>."
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../src/guestfs-actions.pod:7253
17821 msgid ""
17822 "Note that there is no limit on the amount of data that can be uploaded with "
17823 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17824 "full amount unless an error occurs."
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../src/guestfs-actions.pod:7258
17829 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17830 msgstr ""
17831
17832 #. type: =head2
17833 #: ../src/guestfs-actions.pod:7269
17834 msgid "guestfs_utimens"
17835 msgstr ""
17836
17837 #. type: verbatim
17838 #: ../src/guestfs-actions.pod:7271
17839 #, no-wrap
17840 msgid ""
17841 " int\n"
17842 " guestfs_utimens (guestfs_h *g,\n"
17843 "                  const char *path,\n"
17844 "                  int64_t atsecs,\n"
17845 "                  int64_t atnsecs,\n"
17846 "                  int64_t mtsecs,\n"
17847 "                  int64_t mtnsecs);\n"
17848 "\n"
17849 msgstr ""
17850
17851 #. type: textblock
17852 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4830
17853 msgid "This command sets the timestamps of a file with nanosecond precision."
17854 msgstr ""
17855
17856 #. type: textblock
17857 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4833
17858 msgid ""
17859 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17860 "from the epoch."
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4836
17865 msgid ""
17866 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17867 "nanoseconds from the epoch."
17868 msgstr ""
17869
17870 #. type: textblock
17871 #: ../src/guestfs-actions.pod:7288 ../fish/guestfish-actions.pod:4839
17872 msgid ""
17873 "If the C<*nsecs> field contains the special value C<-1> then the "
17874 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17875 "ignored in this case)."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../src/guestfs-actions.pod:7292 ../fish/guestfish-actions.pod:4843
17880 msgid ""
17881 "If the C<*nsecs> field contains the special value C<-2> then the "
17882 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17883 "in this case)."
17884 msgstr ""
17885
17886 #. type: =head2
17887 #: ../src/guestfs-actions.pod:7300 ../src/guestfs-structs.pod:175
17888 msgid "guestfs_version"
17889 msgstr ""
17890
17891 #. type: verbatim
17892 #: ../src/guestfs-actions.pod:7302
17893 #, no-wrap
17894 msgid ""
17895 " struct guestfs_version *\n"
17896 " guestfs_version (guestfs_h *g);\n"
17897 "\n"
17898 msgstr ""
17899
17900 #. type: textblock
17901 #: ../src/guestfs-actions.pod:7305 ../fish/guestfish-actions.pod:4851
17902 msgid "Return the libguestfs version number that the program is linked against."
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../src/guestfs-actions.pod:7308 ../fish/guestfish-actions.pod:4854
17907 msgid ""
17908 "Note that because of dynamic linking this is not necessarily the version of "
17909 "libguestfs that you compiled against.  You can compile the program, and then "
17910 "at runtime dynamically link against a completely different C<libguestfs.so> "
17911 "library."
17912 msgstr ""
17913
17914 #. type: textblock
17915 #: ../src/guestfs-actions.pod:7313 ../fish/guestfish-actions.pod:4859
17916 msgid ""
17917 "This call was added in version C<1.0.58>.  In previous versions of "
17918 "libguestfs there was no way to get the version number.  From C code you can "
17919 "use dynamic linker functions to find out if this symbol exists (if it "
17920 "doesn't, then it's an earlier version)."
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4865
17925 msgid ""
17926 "The call returns a structure with four elements.  The first three (C<major>, "
17927 "C<minor> and C<release>) are numbers and correspond to the usual version "
17928 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17929 "but may be used for distro-specific information."
17930 msgstr ""
17931
17932 #. type: textblock
17933 #: ../src/guestfs-actions.pod:7325 ../fish/guestfish-actions.pod:4871
17934 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4874
17939 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../src/guestfs-actions.pod:7330
17944 msgid ""
17945 "I<Note:> Don't use this call to test for availability of features.  In "
17946 "enterprise distributions we backport features from later versions into "
17947 "earlier versions, making this an unreliable way to test for features.  Use "
17948 "C<guestfs_available> instead."
17949 msgstr ""
17950
17951 #. type: textblock
17952 #: ../src/guestfs-actions.pod:7336
17953 msgid ""
17954 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17955 "error.  I<The caller must call C<guestfs_free_version> after use>."
17956 msgstr ""
17957
17958 #. type: textblock
17959 #: ../src/guestfs-actions.pod:7340
17960 msgid "(Added in 1.0.58)"
17961 msgstr ""
17962
17963 #. type: =head2
17964 #: ../src/guestfs-actions.pod:7342
17965 msgid "guestfs_vfs_label"
17966 msgstr ""
17967
17968 #. type: verbatim
17969 #: ../src/guestfs-actions.pod:7344
17970 #, no-wrap
17971 msgid ""
17972 " char *\n"
17973 " guestfs_vfs_label (guestfs_h *g,\n"
17974 "                    const char *device);\n"
17975 "\n"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../src/guestfs-actions.pod:7348 ../fish/guestfish-actions.pod:4886
17980 msgid "This returns the filesystem label of the filesystem on C<device>."
17981 msgstr ""
17982
17983 #. type: textblock
17984 #: ../src/guestfs-actions.pod:7351 ../fish/guestfish-actions.pod:4889
17985 msgid "If the filesystem is unlabeled, this returns the empty string."
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../src/guestfs-actions.pod:7353
17990 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17991 msgstr ""
17992
17993 #. type: textblock
17994 #: ../src/guestfs-actions.pod:7358 ../src/guestfs-actions.pod:7395
17995 msgid "(Added in 1.3.18)"
17996 msgstr ""
17997
17998 #. type: =head2
17999 #: ../src/guestfs-actions.pod:7360
18000 msgid "guestfs_vfs_type"
18001 msgstr ""
18002
18003 #. type: verbatim
18004 #: ../src/guestfs-actions.pod:7362
18005 #, no-wrap
18006 msgid ""
18007 " char *\n"
18008 " guestfs_vfs_type (guestfs_h *g,\n"
18009 "                   const char *device);\n"
18010 "\n"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4897
18015 msgid ""
18016 "This command gets the filesystem type corresponding to the filesystem on "
18017 "C<device>."
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4900
18022 msgid ""
18023 "For most filesystems, the result is the name of the Linux VFS module which "
18024 "would be used to mount this filesystem if you mounted it without specifying "
18025 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18026 msgstr ""
18027
18028 #. type: =head2
18029 #: ../src/guestfs-actions.pod:7379
18030 msgid "guestfs_vfs_uuid"
18031 msgstr ""
18032
18033 #. type: verbatim
18034 #: ../src/guestfs-actions.pod:7381
18035 #, no-wrap
18036 msgid ""
18037 " char *\n"
18038 " guestfs_vfs_uuid (guestfs_h *g,\n"
18039 "                   const char *device);\n"
18040 "\n"
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../src/guestfs-actions.pod:7385 ../fish/guestfish-actions.pod:4909
18045 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../src/guestfs-actions.pod:7388 ../fish/guestfish-actions.pod:4912
18050 msgid "If the filesystem does not have a UUID, this returns the empty string."
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../src/guestfs-actions.pod:7390
18055 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18056 msgstr ""
18057
18058 #. type: =head2
18059 #: ../src/guestfs-actions.pod:7397
18060 msgid "guestfs_vg_activate"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../src/guestfs-actions.pod:7399
18065 #, no-wrap
18066 msgid ""
18067 " int\n"
18068 " guestfs_vg_activate (guestfs_h *g,\n"
18069 "                      int activate,\n"
18070 "                      char *const *volgroups);\n"
18071 "\n"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../src/guestfs-actions.pod:7404 ../fish/guestfish-actions.pod:4920
18076 msgid ""
18077 "This command activates or (if C<activate> is false) deactivates all logical "
18078 "volumes in the listed volume groups C<volgroups>."
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../src/guestfs-actions.pod:7407 ../fish/guestfish-actions.pod:4923
18083 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4925
18088 msgid ""
18089 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18090 "activated or deactivated."
18091 msgstr ""
18092
18093 #. type: =head2
18094 #: ../src/guestfs-actions.pod:7416
18095 msgid "guestfs_vg_activate_all"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../src/guestfs-actions.pod:7418
18100 #, no-wrap
18101 msgid ""
18102 " int\n"
18103 " guestfs_vg_activate_all (guestfs_h *g,\n"
18104 "                          int activate);\n"
18105 "\n"
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4932
18110 msgid ""
18111 "This command activates or (if C<activate> is false) deactivates all logical "
18112 "volumes in all volume groups."
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../src/guestfs-actions.pod:7425 ../fish/guestfish-actions.pod:4935
18117 msgid "This command is the same as running C<vgchange -a y|n>"
18118 msgstr ""
18119
18120 #. type: =head2
18121 #: ../src/guestfs-actions.pod:7431
18122 msgid "guestfs_vgcreate"
18123 msgstr ""
18124
18125 #. type: verbatim
18126 #: ../src/guestfs-actions.pod:7433
18127 #, no-wrap
18128 msgid ""
18129 " int\n"
18130 " guestfs_vgcreate (guestfs_h *g,\n"
18131 "                   const char *volgroup,\n"
18132 "                   char *const *physvols);\n"
18133 "\n"
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4941
18138 msgid ""
18139 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18140 "of physical volumes C<physvols>."
18141 msgstr ""
18142
18143 #. type: =head2
18144 #: ../src/guestfs-actions.pod:7445
18145 msgid "guestfs_vglvuuids"
18146 msgstr ""
18147
18148 #. type: verbatim
18149 #: ../src/guestfs-actions.pod:7447
18150 #, no-wrap
18151 msgid ""
18152 " char **\n"
18153 " guestfs_vglvuuids (guestfs_h *g,\n"
18154 "                    const char *vgname);\n"
18155 "\n"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../src/guestfs-actions.pod:7451 ../fish/guestfish-actions.pod:4948
18160 msgid ""
18161 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18162 "volumes created in this volume group."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../src/guestfs-actions.pod:7454
18167 msgid ""
18168 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18169 "associate logical volumes and volume groups."
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../src/guestfs-actions.pod:7457
18174 msgid "See also C<guestfs_vgpvuuids>."
18175 msgstr ""
18176
18177 #. type: =head2
18178 #: ../src/guestfs-actions.pod:7465
18179 msgid "guestfs_vgpvuuids"
18180 msgstr ""
18181
18182 #. type: verbatim
18183 #: ../src/guestfs-actions.pod:7467
18184 #, no-wrap
18185 msgid ""
18186 " char **\n"
18187 " guestfs_vgpvuuids (guestfs_h *g,\n"
18188 "                    const char *vgname);\n"
18189 "\n"
18190 msgstr ""
18191
18192 #. type: textblock
18193 #: ../src/guestfs-actions.pod:7471 ../fish/guestfish-actions.pod:4960
18194 msgid ""
18195 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18196 "volumes that this volume group resides on."
18197 msgstr ""
18198
18199 #. type: textblock
18200 #: ../src/guestfs-actions.pod:7474
18201 msgid ""
18202 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
18203 "associate physical volumes and volume groups."
18204 msgstr ""
18205
18206 #. type: textblock
18207 #: ../src/guestfs-actions.pod:7477
18208 msgid "See also C<guestfs_vglvuuids>."
18209 msgstr ""
18210
18211 #. type: =head2
18212 #: ../src/guestfs-actions.pod:7485
18213 msgid "guestfs_vgremove"
18214 msgstr ""
18215
18216 #. type: verbatim
18217 #: ../src/guestfs-actions.pod:7487
18218 #, no-wrap
18219 msgid ""
18220 " int\n"
18221 " guestfs_vgremove (guestfs_h *g,\n"
18222 "                   const char *vgname);\n"
18223 "\n"
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../src/guestfs-actions.pod:7491 ../fish/guestfish-actions.pod:4972
18228 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../src/guestfs-actions.pod:7493 ../fish/guestfish-actions.pod:4974
18233 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
18234 msgstr ""
18235
18236 #. type: =head2
18237 #: ../src/guestfs-actions.pod:7500
18238 msgid "guestfs_vgrename"
18239 msgstr ""
18240
18241 #. type: verbatim
18242 #: ../src/guestfs-actions.pod:7502
18243 #, no-wrap
18244 msgid ""
18245 " int\n"
18246 " guestfs_vgrename (guestfs_h *g,\n"
18247 "                   const char *volgroup,\n"
18248 "                   const char *newvolgroup);\n"
18249 "\n"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../src/guestfs-actions.pod:7507 ../fish/guestfish-actions.pod:4981
18254 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18255 msgstr ""
18256
18257 #. type: =head2
18258 #: ../src/guestfs-actions.pod:7513
18259 msgid "guestfs_vgs"
18260 msgstr ""
18261
18262 #. type: verbatim
18263 #: ../src/guestfs-actions.pod:7515
18264 #, no-wrap
18265 msgid ""
18266 " char **\n"
18267 " guestfs_vgs (guestfs_h *g);\n"
18268 "\n"
18269 msgstr ""
18270
18271 #. type: textblock
18272 #: ../src/guestfs-actions.pod:7518 ../fish/guestfish-actions.pod:4987
18273 msgid ""
18274 "List all the volumes groups detected.  This is the equivalent of the "
18275 "L<vgs(8)> command."
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../src/guestfs-actions.pod:7521 ../fish/guestfish-actions.pod:4990
18280 msgid ""
18281 "This returns a list of just the volume group names that were detected "
18282 "(eg. C<VolGroup00>)."
18283 msgstr ""
18284
18285 #. type: textblock
18286 #: ../src/guestfs-actions.pod:7524
18287 msgid "See also C<guestfs_vgs_full>."
18288 msgstr ""
18289
18290 #. type: =head2
18291 #: ../src/guestfs-actions.pod:7532
18292 msgid "guestfs_vgs_full"
18293 msgstr ""
18294
18295 #. type: verbatim
18296 #: ../src/guestfs-actions.pod:7534
18297 #, no-wrap
18298 msgid ""
18299 " struct guestfs_lvm_vg_list *\n"
18300 " guestfs_vgs_full (guestfs_h *g);\n"
18301 "\n"
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../src/guestfs-actions.pod:7537 ../fish/guestfish-actions.pod:4999
18306 msgid ""
18307 "List all the volumes groups detected.  This is the equivalent of the "
18308 "L<vgs(8)> command.  The \"full\" version includes all fields."
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../src/guestfs-actions.pod:7540
18313 msgid ""
18314 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
18315 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
18316 "use>."
18317 msgstr ""
18318
18319 #. type: =head2
18320 #: ../src/guestfs-actions.pod:7546
18321 msgid "guestfs_vgscan"
18322 msgstr ""
18323
18324 #. type: verbatim
18325 #: ../src/guestfs-actions.pod:7548
18326 #, no-wrap
18327 msgid ""
18328 " int\n"
18329 " guestfs_vgscan (guestfs_h *g);\n"
18330 "\n"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../src/guestfs-actions.pod:7551 ../fish/guestfish-actions.pod:5006
18335 msgid ""
18336 "This rescans all block devices and rebuilds the list of LVM physical "
18337 "volumes, volume groups and logical volumes."
18338 msgstr ""
18339
18340 #. type: =head2
18341 #: ../src/guestfs-actions.pod:7558
18342 msgid "guestfs_vguuid"
18343 msgstr ""
18344
18345 #. type: verbatim
18346 #: ../src/guestfs-actions.pod:7560
18347 #, no-wrap
18348 msgid ""
18349 " char *\n"
18350 " guestfs_vguuid (guestfs_h *g,\n"
18351 "                 const char *vgname);\n"
18352 "\n"
18353 msgstr ""
18354
18355 #. type: textblock
18356 #: ../src/guestfs-actions.pod:7564 ../fish/guestfish-actions.pod:5013
18357 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18358 msgstr ""
18359
18360 #. type: =head2
18361 #: ../src/guestfs-actions.pod:7571
18362 msgid "guestfs_wait_ready"
18363 msgstr ""
18364
18365 #. type: verbatim
18366 #: ../src/guestfs-actions.pod:7573
18367 #, no-wrap
18368 msgid ""
18369 " int\n"
18370 " guestfs_wait_ready (guestfs_h *g);\n"
18371 "\n"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../src/guestfs-actions.pod:7576
18376 msgid "This function is a no op."
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../src/guestfs-actions.pod:7578
18381 msgid ""
18382 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
18383 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
18384 "is no longer necessary because C<guestfs_launch> now does the waiting."
18385 msgstr ""
18386
18387 #. type: textblock
18388 #: ../src/guestfs-actions.pod:7583
18389 msgid ""
18390 "If you see any calls to this function in code then you can just remove them, "
18391 "unless you want to retain compatibility with older versions of the API."
18392 msgstr ""
18393
18394 #. type: textblock
18395 #: ../src/guestfs-actions.pod:7589
18396 msgid "This function is deprecated.  In new code, use the C<launch> call instead."
18397 msgstr ""
18398
18399 #. type: =head2
18400 #: ../src/guestfs-actions.pod:7598
18401 msgid "guestfs_wc_c"
18402 msgstr ""
18403
18404 #. type: verbatim
18405 #: ../src/guestfs-actions.pod:7600
18406 #, no-wrap
18407 msgid ""
18408 " int\n"
18409 " guestfs_wc_c (guestfs_h *g,\n"
18410 "               const char *path);\n"
18411 "\n"
18412 msgstr ""
18413
18414 #. type: textblock
18415 #: ../src/guestfs-actions.pod:7604 ../fish/guestfish-actions.pod:5019
18416 msgid ""
18417 "This command counts the characters in a file, using the C<wc -c> external "
18418 "command."
18419 msgstr ""
18420
18421 #. type: =head2
18422 #: ../src/guestfs-actions.pod:7611
18423 msgid "guestfs_wc_l"
18424 msgstr ""
18425
18426 #. type: verbatim
18427 #: ../src/guestfs-actions.pod:7613
18428 #, no-wrap
18429 msgid ""
18430 " int\n"
18431 " guestfs_wc_l (guestfs_h *g,\n"
18432 "               const char *path);\n"
18433 "\n"
18434 msgstr ""
18435
18436 #. type: textblock
18437 #: ../src/guestfs-actions.pod:7617 ../fish/guestfish-actions.pod:5026
18438 msgid ""
18439 "This command counts the lines in a file, using the C<wc -l> external "
18440 "command."
18441 msgstr ""
18442
18443 #. type: =head2
18444 #: ../src/guestfs-actions.pod:7624
18445 msgid "guestfs_wc_w"
18446 msgstr ""
18447
18448 #. type: verbatim
18449 #: ../src/guestfs-actions.pod:7626
18450 #, no-wrap
18451 msgid ""
18452 " int\n"
18453 " guestfs_wc_w (guestfs_h *g,\n"
18454 "               const char *path);\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../src/guestfs-actions.pod:7630 ../fish/guestfish-actions.pod:5033
18460 msgid ""
18461 "This command counts the words in a file, using the C<wc -w> external "
18462 "command."
18463 msgstr ""
18464
18465 #. type: =head2
18466 #: ../src/guestfs-actions.pod:7637
18467 msgid "guestfs_write"
18468 msgstr ""
18469
18470 #. type: verbatim
18471 #: ../src/guestfs-actions.pod:7639
18472 #, no-wrap
18473 msgid ""
18474 " int\n"
18475 " guestfs_write (guestfs_h *g,\n"
18476 "                const char *path,\n"
18477 "                const char *content,\n"
18478 "                size_t content_size);\n"
18479 "\n"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../src/guestfs-actions.pod:7645 ../fish/guestfish-actions.pod:5040
18484 msgid ""
18485 "This call creates a file called C<path>.  The content of the file is the "
18486 "string C<content> (which can contain any 8 bit data)."
18487 msgstr ""
18488
18489 #. type: textblock
18490 #: ../src/guestfs-actions.pod:7648
18491 msgid "See also C<guestfs_write_append>."
18492 msgstr ""
18493
18494 #. type: =head2
18495 #: ../src/guestfs-actions.pod:7657
18496 msgid "guestfs_write_append"
18497 msgstr ""
18498
18499 #. type: verbatim
18500 #: ../src/guestfs-actions.pod:7659
18501 #, no-wrap
18502 msgid ""
18503 " int\n"
18504 " guestfs_write_append (guestfs_h *g,\n"
18505 "                       const char *path,\n"
18506 "                       const char *content,\n"
18507 "                       size_t content_size);\n"
18508 "\n"
18509 msgstr ""
18510
18511 #. type: textblock
18512 #: ../src/guestfs-actions.pod:7665 ../fish/guestfish-actions.pod:5052
18513 msgid ""
18514 "This call appends C<content> to the end of file C<path>.  If C<path> does "
18515 "not exist, then a new file is created."
18516 msgstr ""
18517
18518 #. type: textblock
18519 #: ../src/guestfs-actions.pod:7668
18520 msgid "See also C<guestfs_write>."
18521 msgstr ""
18522
18523 #. type: =head2
18524 #: ../src/guestfs-actions.pod:7675
18525 msgid "guestfs_write_file"
18526 msgstr ""
18527
18528 #. type: verbatim
18529 #: ../src/guestfs-actions.pod:7677
18530 #, no-wrap
18531 msgid ""
18532 " int\n"
18533 " guestfs_write_file (guestfs_h *g,\n"
18534 "                     const char *path,\n"
18535 "                     const char *content,\n"
18536 "                     int size);\n"
18537 "\n"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../src/guestfs-actions.pod:7683 ../fish/guestfish-actions.pod:5064
18542 msgid ""
18543 "This call creates a file called C<path>.  The contents of the file is the "
18544 "string C<content> (which can contain any 8 bit data), with length C<size>."
18545 msgstr ""
18546
18547 #. type: textblock
18548 #: ../src/guestfs-actions.pod:7687 ../fish/guestfish-actions.pod:5068
18549 msgid ""
18550 "As a special case, if C<size> is C<0> then the length is calculated using "
18551 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
18552 msgstr ""
18553
18554 #. type: textblock
18555 #: ../src/guestfs-actions.pod:7691 ../fish/guestfish-actions.pod:5072
18556 msgid ""
18557 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
18558 "I<not> work, even if the length is specified."
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../src/guestfs-actions.pod:7699 ../fish/guestfish-actions.pod:5078
18563 msgid "This function is deprecated.  In new code, use the C<write> call instead."
18564 msgstr ""
18565
18566 #. type: =head2
18567 #: ../src/guestfs-actions.pod:7708
18568 msgid "guestfs_zegrep"
18569 msgstr ""
18570
18571 #. type: verbatim
18572 #: ../src/guestfs-actions.pod:7710
18573 #, no-wrap
18574 msgid ""
18575 " char **\n"
18576 " guestfs_zegrep (guestfs_h *g,\n"
18577 "                 const char *regex,\n"
18578 "                 const char *path);\n"
18579 "\n"
18580 msgstr ""
18581
18582 #. type: textblock
18583 #: ../src/guestfs-actions.pod:7715 ../fish/guestfish-actions.pod:5089
18584 msgid "This calls the external C<zegrep> program and returns the matching lines."
18585 msgstr ""
18586
18587 #. type: =head2
18588 #: ../src/guestfs-actions.pod:7727
18589 msgid "guestfs_zegrepi"
18590 msgstr ""
18591
18592 #. type: verbatim
18593 #: ../src/guestfs-actions.pod:7729
18594 #, no-wrap
18595 msgid ""
18596 " char **\n"
18597 " guestfs_zegrepi (guestfs_h *g,\n"
18598 "                  const char *regex,\n"
18599 "                  const char *path);\n"
18600 "\n"
18601 msgstr ""
18602
18603 #. type: textblock
18604 #: ../src/guestfs-actions.pod:7734 ../fish/guestfish-actions.pod:5099
18605 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
18606 msgstr ""
18607
18608 #. type: =head2
18609 #: ../src/guestfs-actions.pod:7746
18610 msgid "guestfs_zero"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../src/guestfs-actions.pod:7748
18615 #, no-wrap
18616 msgid ""
18617 " int\n"
18618 " guestfs_zero (guestfs_h *g,\n"
18619 "               const char *device);\n"
18620 "\n"
18621 msgstr ""
18622
18623 #. type: textblock
18624 #: ../src/guestfs-actions.pod:7752 ../fish/guestfish-actions.pod:5109
18625 msgid "This command writes zeroes over the first few blocks of C<device>."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../src/guestfs-actions.pod:7754 ../fish/guestfish-actions.pod:5111
18630 msgid ""
18631 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
18632 "securely wipe the device).  It should be sufficient to remove any partition "
18633 "tables, filesystem superblocks and so on."
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../src/guestfs-actions.pod:7758
18638 msgid ""
18639 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
18640 "C<guestfs_is_zero_device>"
18641 msgstr ""
18642
18643 #. type: =head2
18644 #: ../src/guestfs-actions.pod:7770
18645 msgid "guestfs_zero_device"
18646 msgstr ""
18647
18648 #. type: verbatim
18649 #: ../src/guestfs-actions.pod:7772
18650 #, no-wrap
18651 msgid ""
18652 " int\n"
18653 " guestfs_zero_device (guestfs_h *g,\n"
18654 "                      const char *device);\n"
18655 "\n"
18656 msgstr ""
18657
18658 #. type: textblock
18659 #: ../src/guestfs-actions.pod:7776
18660 msgid ""
18661 "This command writes zeroes over the entire C<device>.  Compare with "
18662 "C<guestfs_zero> which just zeroes the first few blocks of a device."
18663 msgstr ""
18664
18665 #. type: textblock
18666 #: ../src/guestfs-actions.pod:7790
18667 msgid "(Added in 1.3.1)"
18668 msgstr ""
18669
18670 #. type: =head2
18671 #: ../src/guestfs-actions.pod:7792
18672 msgid "guestfs_zerofree"
18673 msgstr ""
18674
18675 #. type: verbatim
18676 #: ../src/guestfs-actions.pod:7794
18677 #, no-wrap
18678 msgid ""
18679 " int\n"
18680 " guestfs_zerofree (guestfs_h *g,\n"
18681 "                   const char *device);\n"
18682 "\n"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../src/guestfs-actions.pod:7798 ../fish/guestfish-actions.pod:5133
18687 msgid ""
18688 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
18689 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
18690 "possible to compress the filesystem more effectively."
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../src/guestfs-actions.pod:7803 ../fish/guestfish-actions.pod:5138
18695 msgid "You should B<not> run this program if the filesystem is mounted."
18696 msgstr ""
18697
18698 #. type: textblock
18699 #: ../src/guestfs-actions.pod:7806 ../fish/guestfish-actions.pod:5141
18700 msgid ""
18701 "It is possible that using this program can damage the filesystem or data on "
18702 "the filesystem."
18703 msgstr ""
18704
18705 #. type: =head2
18706 #: ../src/guestfs-actions.pod:7813
18707 msgid "guestfs_zfgrep"
18708 msgstr ""
18709
18710 #. type: verbatim
18711 #: ../src/guestfs-actions.pod:7815
18712 #, no-wrap
18713 msgid ""
18714 " char **\n"
18715 " guestfs_zfgrep (guestfs_h *g,\n"
18716 "                 const char *pattern,\n"
18717 "                 const char *path);\n"
18718 "\n"
18719 msgstr ""
18720
18721 #. type: textblock
18722 #: ../src/guestfs-actions.pod:7820 ../fish/guestfish-actions.pod:5148
18723 msgid "This calls the external C<zfgrep> program and returns the matching lines."
18724 msgstr ""
18725
18726 #. type: =head2
18727 #: ../src/guestfs-actions.pod:7832
18728 msgid "guestfs_zfgrepi"
18729 msgstr ""
18730
18731 #. type: verbatim
18732 #: ../src/guestfs-actions.pod:7834
18733 #, no-wrap
18734 msgid ""
18735 " char **\n"
18736 " guestfs_zfgrepi (guestfs_h *g,\n"
18737 "                  const char *pattern,\n"
18738 "                  const char *path);\n"
18739 "\n"
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../src/guestfs-actions.pod:7839 ../fish/guestfish-actions.pod:5158
18744 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
18745 msgstr ""
18746
18747 #. type: =head2
18748 #: ../src/guestfs-actions.pod:7851
18749 msgid "guestfs_zfile"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../src/guestfs-actions.pod:7853
18754 #, no-wrap
18755 msgid ""
18756 " char *\n"
18757 " guestfs_zfile (guestfs_h *g,\n"
18758 "                const char *meth,\n"
18759 "                const char *path);\n"
18760 "\n"
18761 msgstr ""
18762
18763 #. type: textblock
18764 #: ../src/guestfs-actions.pod:7858 ../fish/guestfish-actions.pod:5168
18765 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
18766 msgstr ""
18767
18768 #. type: textblock
18769 #: ../src/guestfs-actions.pod:7861 ../fish/guestfish-actions.pod:5171
18770 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18771 msgstr ""
18772
18773 #. type: textblock
18774 #: ../src/guestfs-actions.pod:7863
18775 msgid ""
18776 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
18777 "files."
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../src/guestfs-actions.pod:7869 ../fish/guestfish-actions.pod:5176
18782 msgid "This function is deprecated.  In new code, use the C<file> call instead."
18783 msgstr ""
18784
18785 #. type: =head2
18786 #: ../src/guestfs-actions.pod:7878
18787 msgid "guestfs_zgrep"
18788 msgstr ""
18789
18790 #. type: verbatim
18791 #: ../src/guestfs-actions.pod:7880
18792 #, no-wrap
18793 msgid ""
18794 " char **\n"
18795 " guestfs_zgrep (guestfs_h *g,\n"
18796 "                const char *regex,\n"
18797 "                const char *path);\n"
18798 "\n"
18799 msgstr ""
18800
18801 #. type: textblock
18802 #: ../src/guestfs-actions.pod:7885 ../fish/guestfish-actions.pod:5187
18803 msgid "This calls the external C<zgrep> program and returns the matching lines."
18804 msgstr ""
18805
18806 #. type: =head2
18807 #: ../src/guestfs-actions.pod:7897
18808 msgid "guestfs_zgrepi"
18809 msgstr ""
18810
18811 #. type: verbatim
18812 #: ../src/guestfs-actions.pod:7899
18813 #, no-wrap
18814 msgid ""
18815 " char **\n"
18816 " guestfs_zgrepi (guestfs_h *g,\n"
18817 "                 const char *regex,\n"
18818 "                 const char *path);\n"
18819 "\n"
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../src/guestfs-actions.pod:7904 ../fish/guestfish-actions.pod:5197
18824 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
18825 msgstr ""
18826
18827 #. type: =item
18828 #: ../src/guestfs-availability.pod:3
18829 msgid "B<augeas>"
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../src/guestfs-availability.pod:5
18834 msgid ""
18835 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
18836 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
18837 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
18838 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
18839 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
18840 msgstr ""
18841
18842 #. type: =item
18843 #: ../src/guestfs-availability.pod:21
18844 msgid "B<btrfs>"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../src/guestfs-availability.pod:23
18849 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
18850 msgstr ""
18851
18852 #. type: =item
18853 #: ../src/guestfs-availability.pod:26
18854 msgid "B<inotify>"
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../src/guestfs-availability.pod:28
18859 msgid ""
18860 "The following functions: L</guestfs_inotify_add_watch> "
18861 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
18862 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18863 msgstr ""
18864
18865 #. type: =item
18866 #: ../src/guestfs-availability.pod:36
18867 msgid "B<linuxfsuuid>"
18868 msgstr ""
18869
18870 #. type: textblock
18871 #: ../src/guestfs-availability.pod:38
18872 msgid ""
18873 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
18874 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18875 msgstr ""
18876
18877 #. type: =item
18878 #: ../src/guestfs-availability.pod:45
18879 msgid "B<linuxmodules>"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../src/guestfs-availability.pod:47
18884 msgid "The following functions: L</guestfs_modprobe>"
18885 msgstr ""
18886
18887 #. type: =item
18888 #: ../src/guestfs-availability.pod:50
18889 msgid "B<linuxxattrs>"
18890 msgstr ""
18891
18892 #. type: textblock
18893 #: ../src/guestfs-availability.pod:52
18894 msgid ""
18895 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
18896 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
18897 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
18898 "L</guestfs_setxattr>"
18899 msgstr ""
18900
18901 #. type: =item
18902 #: ../src/guestfs-availability.pod:63
18903 msgid "B<luks>"
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../src/guestfs-availability.pod:65
18908 msgid ""
18909 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
18910 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
18911 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18912 msgstr ""
18913
18914 #. type: =item
18915 #: ../src/guestfs-availability.pod:74
18916 msgid "B<lvm2>"
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../src/guestfs-availability.pod:76
18921 msgid ""
18922 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
18923 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
18924 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
18925 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
18926 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
18927 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
18928 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
18929 "L</guestfs_vgs_full>"
18930 msgstr ""
18931
18932 #. type: =item
18933 #: ../src/guestfs-availability.pod:99
18934 msgid "B<mknod>"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../src/guestfs-availability.pod:101
18939 msgid ""
18940 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
18941 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
18942 msgstr ""
18943
18944 #. type: =item
18945 #: ../src/guestfs-availability.pod:107
18946 msgid "B<ntfs3g>"
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../src/guestfs-availability.pod:109
18951 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18952 msgstr ""
18953
18954 #. type: =item
18955 #: ../src/guestfs-availability.pod:112
18956 msgid "B<ntfsprogs>"
18957 msgstr ""
18958
18959 #. type: textblock
18960 #: ../src/guestfs-availability.pod:114
18961 msgid ""
18962 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
18963 "L</guestfs_ntfsresize_size>"
18964 msgstr ""
18965
18966 #. type: =item
18967 #: ../src/guestfs-availability.pod:119
18968 msgid "B<realpath>"
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../src/guestfs-availability.pod:121
18973 msgid "The following functions: L</guestfs_realpath>"
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../src/guestfs-availability.pod:124
18978 msgid "B<scrub>"
18979 msgstr ""
18980
18981 #. type: textblock
18982 #: ../src/guestfs-availability.pod:126
18983 msgid ""
18984 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
18985 "L</guestfs_scrub_freespace>"
18986 msgstr ""
18987
18988 #. type: =item
18989 #: ../src/guestfs-availability.pod:131
18990 msgid "B<selinux>"
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../src/guestfs-availability.pod:133
18995 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18996 msgstr ""
18997
18998 #. type: =item
18999 #: ../src/guestfs-availability.pod:137
19000 msgid "B<xz>"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../src/guestfs-availability.pod:139
19005 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19006 msgstr ""
19007
19008 #. type: =item
19009 #: ../src/guestfs-availability.pod:143
19010 msgid "B<zerofree>"
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../src/guestfs-availability.pod:145
19015 msgid "The following functions: L</guestfs_zerofree>"
19016 msgstr ""
19017
19018 #. type: =head2
19019 #: ../src/guestfs-structs.pod:1
19020 msgid "guestfs_int_bool"
19021 msgstr ""
19022
19023 #. type: verbatim
19024 #: ../src/guestfs-structs.pod:3
19025 #, no-wrap
19026 msgid ""
19027 " struct guestfs_int_bool {\n"
19028 "   int32_t i;\n"
19029 "   int32_t b;\n"
19030 " };\n"
19031 " \n"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../src/guestfs-structs.pod:8
19036 #, no-wrap
19037 msgid ""
19038 " struct guestfs_int_bool_list {\n"
19039 "   uint32_t len; /* Number of elements in list. */\n"
19040 "   struct guestfs_int_bool *val; /* Elements. */\n"
19041 " };\n"
19042 " \n"
19043 msgstr ""
19044
19045 #. type: verbatim
19046 #: ../src/guestfs-structs.pod:13
19047 #, no-wrap
19048 msgid ""
19049 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19050 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19051 "\n"
19052 msgstr ""
19053
19054 #. type: =head2
19055 #: ../src/guestfs-structs.pod:16
19056 msgid "guestfs_lvm_pv"
19057 msgstr ""
19058
19059 #. type: verbatim
19060 #: ../src/guestfs-structs.pod:18
19061 #, no-wrap
19062 msgid ""
19063 " struct guestfs_lvm_pv {\n"
19064 "   char *pv_name;\n"
19065 "   /* The next field is NOT nul-terminated, be careful when printing it: "
19066 "*/\n"
19067 "   char pv_uuid[32];\n"
19068 "   char *pv_fmt;\n"
19069 "   uint64_t pv_size;\n"
19070 "   uint64_t dev_size;\n"
19071 "   uint64_t pv_free;\n"
19072 "   uint64_t pv_used;\n"
19073 "   char *pv_attr;\n"
19074 "   int64_t pv_pe_count;\n"
19075 "   int64_t pv_pe_alloc_count;\n"
19076 "   char *pv_tags;\n"
19077 "   uint64_t pe_start;\n"
19078 "   int64_t pv_mda_count;\n"
19079 "   uint64_t pv_mda_free;\n"
19080 " };\n"
19081 " \n"
19082 msgstr ""
19083
19084 #. type: verbatim
19085 #: ../src/guestfs-structs.pod:36
19086 #, no-wrap
19087 msgid ""
19088 " struct guestfs_lvm_pv_list {\n"
19089 "   uint32_t len; /* Number of elements in list. */\n"
19090 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19091 " };\n"
19092 " \n"
19093 msgstr ""
19094
19095 #. type: verbatim
19096 #: ../src/guestfs-structs.pod:41
19097 #, no-wrap
19098 msgid ""
19099 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
19100 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
19101 "\n"
19102 msgstr ""
19103
19104 #. type: =head2
19105 #: ../src/guestfs-structs.pod:44
19106 msgid "guestfs_lvm_vg"
19107 msgstr ""
19108
19109 #. type: verbatim
19110 #: ../src/guestfs-structs.pod:46
19111 #, no-wrap
19112 msgid ""
19113 " struct guestfs_lvm_vg {\n"
19114 "   char *vg_name;\n"
19115 "   /* The next field is NOT nul-terminated, be careful when printing it: "
19116 "*/\n"
19117 "   char vg_uuid[32];\n"
19118 "   char *vg_fmt;\n"
19119 "   char *vg_attr;\n"
19120 "   uint64_t vg_size;\n"
19121 "   uint64_t vg_free;\n"
19122 "   char *vg_sysid;\n"
19123 "   uint64_t vg_extent_size;\n"
19124 "   int64_t vg_extent_count;\n"
19125 "   int64_t vg_free_count;\n"
19126 "   int64_t max_lv;\n"
19127 "   int64_t max_pv;\n"
19128 "   int64_t pv_count;\n"
19129 "   int64_t lv_count;\n"
19130 "   int64_t snap_count;\n"
19131 "   int64_t vg_seqno;\n"
19132 "   char *vg_tags;\n"
19133 "   int64_t vg_mda_count;\n"
19134 "   uint64_t vg_mda_free;\n"
19135 " };\n"
19136 " \n"
19137 msgstr ""
19138
19139 #. type: verbatim
19140 #: ../src/guestfs-structs.pod:69
19141 #, no-wrap
19142 msgid ""
19143 " struct guestfs_lvm_vg_list {\n"
19144 "   uint32_t len; /* Number of elements in list. */\n"
19145 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
19146 " };\n"
19147 " \n"
19148 msgstr ""
19149
19150 #. type: verbatim
19151 #: ../src/guestfs-structs.pod:74
19152 #, no-wrap
19153 msgid ""
19154 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
19155 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
19156 "\n"
19157 msgstr ""
19158
19159 #. type: =head2
19160 #: ../src/guestfs-structs.pod:77
19161 msgid "guestfs_lvm_lv"
19162 msgstr ""
19163
19164 #. type: verbatim
19165 #: ../src/guestfs-structs.pod:79
19166 #, no-wrap
19167 msgid ""
19168 " struct guestfs_lvm_lv {\n"
19169 "   char *lv_name;\n"
19170 "   /* The next field is NOT nul-terminated, be careful when printing it: "
19171 "*/\n"
19172 "   char lv_uuid[32];\n"
19173 "   char *lv_attr;\n"
19174 "   int64_t lv_major;\n"
19175 "   int64_t lv_minor;\n"
19176 "   int64_t lv_kernel_major;\n"
19177 "   int64_t lv_kernel_minor;\n"
19178 "   uint64_t lv_size;\n"
19179 "   int64_t seg_count;\n"
19180 "   char *origin;\n"
19181 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19182 "   float snap_percent;\n"
19183 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
19184 "   float copy_percent;\n"
19185 "   char *move_pv;\n"
19186 "   char *lv_tags;\n"
19187 "   char *mirror_log;\n"
19188 "   char *modules;\n"
19189 " };\n"
19190 " \n"
19191 msgstr ""
19192
19193 #. type: verbatim
19194 #: ../src/guestfs-structs.pod:101
19195 #, no-wrap
19196 msgid ""
19197 " struct guestfs_lvm_lv_list {\n"
19198 "   uint32_t len; /* Number of elements in list. */\n"
19199 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
19200 " };\n"
19201 " \n"
19202 msgstr ""
19203
19204 #. type: verbatim
19205 #: ../src/guestfs-structs.pod:106
19206 #, no-wrap
19207 msgid ""
19208 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
19209 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
19210 "\n"
19211 msgstr ""
19212
19213 #. type: verbatim
19214 #: ../src/guestfs-structs.pod:111
19215 #, no-wrap
19216 msgid ""
19217 " struct guestfs_stat {\n"
19218 "   int64_t dev;\n"
19219 "   int64_t ino;\n"
19220 "   int64_t mode;\n"
19221 "   int64_t nlink;\n"
19222 "   int64_t uid;\n"
19223 "   int64_t gid;\n"
19224 "   int64_t rdev;\n"
19225 "   int64_t size;\n"
19226 "   int64_t blksize;\n"
19227 "   int64_t blocks;\n"
19228 "   int64_t atime;\n"
19229 "   int64_t mtime;\n"
19230 "   int64_t ctime;\n"
19231 " };\n"
19232 " \n"
19233 msgstr ""
19234
19235 #. type: verbatim
19236 #: ../src/guestfs-structs.pod:127
19237 #, no-wrap
19238 msgid ""
19239 " struct guestfs_stat_list {\n"
19240 "   uint32_t len; /* Number of elements in list. */\n"
19241 "   struct guestfs_stat *val; /* Elements. */\n"
19242 " };\n"
19243 " \n"
19244 msgstr ""
19245
19246 #. type: verbatim
19247 #: ../src/guestfs-structs.pod:132
19248 #, no-wrap
19249 msgid ""
19250 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
19251 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
19252 "\n"
19253 msgstr ""
19254
19255 #. type: verbatim
19256 #: ../src/guestfs-structs.pod:137
19257 #, no-wrap
19258 msgid ""
19259 " struct guestfs_statvfs {\n"
19260 "   int64_t bsize;\n"
19261 "   int64_t frsize;\n"
19262 "   int64_t blocks;\n"
19263 "   int64_t bfree;\n"
19264 "   int64_t bavail;\n"
19265 "   int64_t files;\n"
19266 "   int64_t ffree;\n"
19267 "   int64_t favail;\n"
19268 "   int64_t fsid;\n"
19269 "   int64_t flag;\n"
19270 "   int64_t namemax;\n"
19271 " };\n"
19272 " \n"
19273 msgstr ""
19274
19275 #. type: verbatim
19276 #: ../src/guestfs-structs.pod:151
19277 #, no-wrap
19278 msgid ""
19279 " struct guestfs_statvfs_list {\n"
19280 "   uint32_t len; /* Number of elements in list. */\n"
19281 "   struct guestfs_statvfs *val; /* Elements. */\n"
19282 " };\n"
19283 " \n"
19284 msgstr ""
19285
19286 #. type: verbatim
19287 #: ../src/guestfs-structs.pod:156
19288 #, no-wrap
19289 msgid ""
19290 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
19291 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
19292 "\n"
19293 msgstr ""
19294
19295 #. type: =head2
19296 #: ../src/guestfs-structs.pod:159
19297 msgid "guestfs_dirent"
19298 msgstr ""
19299
19300 #. type: verbatim
19301 #: ../src/guestfs-structs.pod:161
19302 #, no-wrap
19303 msgid ""
19304 " struct guestfs_dirent {\n"
19305 "   int64_t ino;\n"
19306 "   char ftyp;\n"
19307 "   char *name;\n"
19308 " };\n"
19309 " \n"
19310 msgstr ""
19311
19312 #. type: verbatim
19313 #: ../src/guestfs-structs.pod:167
19314 #, no-wrap
19315 msgid ""
19316 " struct guestfs_dirent_list {\n"
19317 "   uint32_t len; /* Number of elements in list. */\n"
19318 "   struct guestfs_dirent *val; /* Elements. */\n"
19319 " };\n"
19320 " \n"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../src/guestfs-structs.pod:172
19325 #, no-wrap
19326 msgid ""
19327 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
19328 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
19329 "\n"
19330 msgstr ""
19331
19332 #. type: verbatim
19333 #: ../src/guestfs-structs.pod:177
19334 #, no-wrap
19335 msgid ""
19336 " struct guestfs_version {\n"
19337 "   int64_t major;\n"
19338 "   int64_t minor;\n"
19339 "   int64_t release;\n"
19340 "   char *extra;\n"
19341 " };\n"
19342 " \n"
19343 msgstr ""
19344
19345 #. type: verbatim
19346 #: ../src/guestfs-structs.pod:184
19347 #, no-wrap
19348 msgid ""
19349 " struct guestfs_version_list {\n"
19350 "   uint32_t len; /* Number of elements in list. */\n"
19351 "   struct guestfs_version *val; /* Elements. */\n"
19352 " };\n"
19353 " \n"
19354 msgstr ""
19355
19356 #. type: verbatim
19357 #: ../src/guestfs-structs.pod:189
19358 #, no-wrap
19359 msgid ""
19360 " void guestfs_free_version (struct guestfs_free_version *);\n"
19361 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
19362 "\n"
19363 msgstr ""
19364
19365 #. type: =head2
19366 #: ../src/guestfs-structs.pod:192
19367 msgid "guestfs_xattr"
19368 msgstr ""
19369
19370 #. type: verbatim
19371 #: ../src/guestfs-structs.pod:194
19372 #, no-wrap
19373 msgid ""
19374 " struct guestfs_xattr {\n"
19375 "   char *attrname;\n"
19376 "   /* The next two fields describe a byte array. */\n"
19377 "   uint32_t attrval_len;\n"
19378 "   char *attrval;\n"
19379 " };\n"
19380 " \n"
19381 msgstr ""
19382
19383 #. type: verbatim
19384 #: ../src/guestfs-structs.pod:201
19385 #, no-wrap
19386 msgid ""
19387 " struct guestfs_xattr_list {\n"
19388 "   uint32_t len; /* Number of elements in list. */\n"
19389 "   struct guestfs_xattr *val; /* Elements. */\n"
19390 " };\n"
19391 " \n"
19392 msgstr ""
19393
19394 #. type: verbatim
19395 #: ../src/guestfs-structs.pod:206
19396 #, no-wrap
19397 msgid ""
19398 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
19399 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
19400 "\n"
19401 msgstr ""
19402
19403 #. type: =head2
19404 #: ../src/guestfs-structs.pod:209
19405 msgid "guestfs_inotify_event"
19406 msgstr ""
19407
19408 #. type: verbatim
19409 #: ../src/guestfs-structs.pod:211
19410 #, no-wrap
19411 msgid ""
19412 " struct guestfs_inotify_event {\n"
19413 "   int64_t in_wd;\n"
19414 "   uint32_t in_mask;\n"
19415 "   uint32_t in_cookie;\n"
19416 "   char *in_name;\n"
19417 " };\n"
19418 " \n"
19419 msgstr ""
19420
19421 #. type: verbatim
19422 #: ../src/guestfs-structs.pod:218
19423 #, no-wrap
19424 msgid ""
19425 " struct guestfs_inotify_event_list {\n"
19426 "   uint32_t len; /* Number of elements in list. */\n"
19427 "   struct guestfs_inotify_event *val; /* Elements. */\n"
19428 " };\n"
19429 " \n"
19430 msgstr ""
19431
19432 #. type: verbatim
19433 #: ../src/guestfs-structs.pod:223
19434 #, no-wrap
19435 msgid ""
19436 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
19437 " void guestfs_free_inotify_event_list (struct "
19438 "guestfs_free_inotify_event_list *);\n"
19439 "\n"
19440 msgstr ""
19441
19442 #. type: =head2
19443 #: ../src/guestfs-structs.pod:226
19444 msgid "guestfs_partition"
19445 msgstr ""
19446
19447 #. type: verbatim
19448 #: ../src/guestfs-structs.pod:228
19449 #, no-wrap
19450 msgid ""
19451 " struct guestfs_partition {\n"
19452 "   int32_t part_num;\n"
19453 "   uint64_t part_start;\n"
19454 "   uint64_t part_end;\n"
19455 "   uint64_t part_size;\n"
19456 " };\n"
19457 " \n"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../src/guestfs-structs.pod:235
19462 #, no-wrap
19463 msgid ""
19464 " struct guestfs_partition_list {\n"
19465 "   uint32_t len; /* Number of elements in list. */\n"
19466 "   struct guestfs_partition *val; /* Elements. */\n"
19467 " };\n"
19468 " \n"
19469 msgstr ""
19470
19471 #. type: verbatim
19472 #: ../src/guestfs-structs.pod:240
19473 #, no-wrap
19474 msgid ""
19475 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
19476 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
19477 "\n"
19478 msgstr ""
19479
19480 #. type: =head2
19481 #: ../src/guestfs-structs.pod:243
19482 msgid "guestfs_application"
19483 msgstr ""
19484
19485 #. type: verbatim
19486 #: ../src/guestfs-structs.pod:245
19487 #, no-wrap
19488 msgid ""
19489 " struct guestfs_application {\n"
19490 "   char *app_name;\n"
19491 "   char *app_display_name;\n"
19492 "   int32_t app_epoch;\n"
19493 "   char *app_version;\n"
19494 "   char *app_release;\n"
19495 "   char *app_install_path;\n"
19496 "   char *app_trans_path;\n"
19497 "   char *app_publisher;\n"
19498 "   char *app_url;\n"
19499 "   char *app_source_package;\n"
19500 "   char *app_summary;\n"
19501 "   char *app_description;\n"
19502 " };\n"
19503 " \n"
19504 msgstr ""
19505
19506 #. type: verbatim
19507 #: ../src/guestfs-structs.pod:260
19508 #, no-wrap
19509 msgid ""
19510 " struct guestfs_application_list {\n"
19511 "   uint32_t len; /* Number of elements in list. */\n"
19512 "   struct guestfs_application *val; /* Elements. */\n"
19513 " };\n"
19514 " \n"
19515 msgstr ""
19516
19517 #. type: verbatim
19518 #: ../src/guestfs-structs.pod:265
19519 #, no-wrap
19520 msgid ""
19521 " void guestfs_free_application (struct guestfs_free_application *);\n"
19522 " void guestfs_free_application_list (struct guestfs_free_application_list "
19523 "*);\n"
19524 "\n"
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../fish/guestfish.pod:5
19529 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19530 msgstr ""
19531
19532 #. type: verbatim
19533 #: ../fish/guestfish.pod:9
19534 #, no-wrap
19535 msgid ""
19536 " guestfish [--options] [commands]\n"
19537 "\n"
19538 msgstr ""
19539
19540 #. type: verbatim
19541 #: ../fish/guestfish.pod:11
19542 #, no-wrap
19543 msgid ""
19544 " guestfish\n"
19545 "\n"
19546 msgstr ""
19547
19548 #. type: verbatim
19549 #: ../fish/guestfish.pod:13
19550 #, no-wrap
19551 msgid ""
19552 " guestfish [--ro|--rw] -a disk.img\n"
19553 "\n"
19554 msgstr ""
19555
19556 #. type: verbatim
19557 #: ../fish/guestfish.pod:15
19558 #, no-wrap
19559 msgid ""
19560 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19561 "\n"
19562 msgstr ""
19563
19564 #. type: verbatim
19565 #: ../fish/guestfish.pod:17
19566 #, no-wrap
19567 msgid ""
19568 " guestfish -d libvirt-domain\n"
19569 "\n"
19570 msgstr ""
19571
19572 #. type: verbatim
19573 #: ../fish/guestfish.pod:19
19574 #, no-wrap
19575 msgid ""
19576 " guestfish [--ro|--rw] -a disk.img -i\n"
19577 "\n"
19578 msgstr ""
19579
19580 #. type: verbatim
19581 #: ../fish/guestfish.pod:21
19582 #, no-wrap
19583 msgid ""
19584 " guestfish -d libvirt-domain -i\n"
19585 "\n"
19586 msgstr ""
19587
19588 #. type: =head1
19589 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
19590 msgid "WARNING"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:25
19595 msgid ""
19596 "Using guestfish in read/write mode on live virtual machines can be "
19597 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
19598 "option to use guestfish safely if the disk image or virtual machine might be "
19599 "live."
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fish/guestfish.pod:32
19604 msgid ""
19605 "Guestfish is a shell and command-line tool for examining and modifying "
19606 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
19607 "functionality of the guestfs API, see L<guestfs(3)>."
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:36
19612 msgid ""
19613 "Guestfish gives you structured access to the libguestfs API, from shell "
19614 "scripts or the command line or interactively.  If you want to rescue a "
19615 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
19616 "command."
19617 msgstr ""
19618
19619 #. type: =head1
19620 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:1007 ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
19621 msgid "EXAMPLES"
19622 msgstr ""
19623
19624 #. type: =head2
19625 #: ../fish/guestfish.pod:43
19626 msgid "As an interactive shell"
19627 msgstr ""
19628
19629 #. type: verbatim
19630 #: ../fish/guestfish.pod:45
19631 #, no-wrap
19632 msgid ""
19633 " $ guestfish\n"
19634 " \n"
19635 msgstr ""
19636
19637 #. type: verbatim
19638 #: ../fish/guestfish.pod:47
19639 #, no-wrap
19640 msgid ""
19641 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
19642 " editing virtual machine filesystems.\n"
19643 " \n"
19644 msgstr ""
19645
19646 #. type: verbatim
19647 #: ../fish/guestfish.pod:50
19648 #, no-wrap
19649 msgid ""
19650 " Type: 'help' for a list of commands\n"
19651 "       'man' to read the manual\n"
19652 "       'quit' to quit the shell\n"
19653 " \n"
19654 msgstr ""
19655
19656 #. type: verbatim
19657 #: ../fish/guestfish.pod:54
19658 #, no-wrap
19659 msgid ""
19660 " ><fs> add-ro disk.img\n"
19661 " ><fs> run\n"
19662 " ><fs> list-filesystems\n"
19663 " /dev/sda1: ext4\n"
19664 " /dev/vg_guest/lv_root: ext4\n"
19665 " /dev/vg_guest/lv_swap: swap\n"
19666 " ><fs> mount /dev/vg_guest/lv_root /\n"
19667 " ><fs> cat /etc/fstab\n"
19668 " # /etc/fstab\n"
19669 " # Created by anaconda\n"
19670 " [...]\n"
19671 " ><fs> exit\n"
19672 "\n"
19673 msgstr ""
19674
19675 #. type: =head2
19676 #: ../fish/guestfish.pod:67
19677 msgid "From shell scripts"
19678 msgstr ""
19679
19680 #. type: textblock
19681 #: ../fish/guestfish.pod:69
19682 msgid "Create a new C</etc/motd> file in a guest or disk image:"
19683 msgstr ""
19684
19685 #. type: verbatim
19686 #: ../fish/guestfish.pod:71
19687 #, no-wrap
19688 msgid ""
19689 " guestfish <<_EOF_\n"
19690 " add disk.img\n"
19691 " run\n"
19692 " mount /dev/vg_guest/lv_root /\n"
19693 " write /etc/motd \"Welcome, new users\"\n"
19694 " _EOF_\n"
19695 "\n"
19696 msgstr ""
19697
19698 #. type: textblock
19699 #: ../fish/guestfish.pod:78
19700 msgid "List the LVM logical volumes in a disk image:"
19701 msgstr ""
19702
19703 #. type: verbatim
19704 #: ../fish/guestfish.pod:80
19705 #, no-wrap
19706 msgid ""
19707 " guestfish -a disk.img --ro <<_EOF_\n"
19708 " run\n"
19709 " lvs\n"
19710 " _EOF_\n"
19711 "\n"
19712 msgstr ""
19713
19714 #. type: textblock
19715 #: ../fish/guestfish.pod:85
19716 msgid "List all the filesystems in a disk image:"
19717 msgstr ""
19718
19719 #. type: verbatim
19720 #: ../fish/guestfish.pod:87
19721 #, no-wrap
19722 msgid ""
19723 " guestfish -a disk.img --ro <<_EOF_\n"
19724 " run\n"
19725 " list-filesystems\n"
19726 " _EOF_\n"
19727 "\n"
19728 msgstr ""
19729
19730 #. type: =head2
19731 #: ../fish/guestfish.pod:92
19732 msgid "On one command line"
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:94
19737 msgid "Update C</etc/resolv.conf> in a guest:"
19738 msgstr ""
19739
19740 #. type: verbatim
19741 #: ../fish/guestfish.pod:96
19742 #, no-wrap
19743 msgid ""
19744 " guestfish \\\n"
19745 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
19746 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
19747 "\n"
19748 msgstr ""
19749
19750 #. type: textblock
19751 #: ../fish/guestfish.pod:100
19752 msgid "Edit C</boot/grub/grub.conf> interactively:"
19753 msgstr ""
19754
19755 #. type: verbatim
19756 #: ../fish/guestfish.pod:102
19757 #, no-wrap
19758 msgid ""
19759 " guestfish --rw --add disk.img \\\n"
19760 "   --mount /dev/vg_guest/lv_root \\\n"
19761 "   --mount /dev/sda1:/boot \\\n"
19762 "   edit /boot/grub/grub.conf\n"
19763 "\n"
19764 msgstr ""
19765
19766 #. type: =head2
19767 #: ../fish/guestfish.pod:107
19768 msgid "Mount disks automatically"
19769 msgstr ""
19770
19771 #. type: textblock
19772 #: ../fish/guestfish.pod:109
19773 msgid ""
19774 "Use the I<-i> option to automatically mount the disks from a virtual "
19775 "machine:"
19776 msgstr ""
19777
19778 #. type: verbatim
19779 #: ../fish/guestfish.pod:112
19780 #, no-wrap
19781 msgid ""
19782 " guestfish --ro -a disk.img -i cat /etc/group\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: verbatim
19787 #: ../fish/guestfish.pod:114
19788 #, no-wrap
19789 msgid ""
19790 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
19791 "\n"
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../fish/guestfish.pod:116
19796 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
19797 msgstr ""
19798
19799 #. type: verbatim
19800 #: ../fish/guestfish.pod:118
19801 #, no-wrap
19802 msgid ""
19803 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
19804 "\n"
19805 msgstr ""
19806
19807 #. type: =head2
19808 #: ../fish/guestfish.pod:120
19809 msgid "As a script interpreter"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/guestfish.pod:122
19814 msgid "Create a 100MB disk containing an ext2-formatted partition:"
19815 msgstr ""
19816
19817 #. type: verbatim
19818 #: ../fish/guestfish.pod:124
19819 #, no-wrap
19820 msgid ""
19821 " #!/usr/bin/guestfish -f\n"
19822 " sparse test1.img 100M\n"
19823 " run\n"
19824 " part-disk /dev/sda mbr\n"
19825 " mkfs ext2 /dev/sda1\n"
19826 "\n"
19827 msgstr ""
19828
19829 #. type: =head2
19830 #: ../fish/guestfish.pod:130
19831 msgid "Start with a prepared disk"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:132
19836 msgid ""
19837 "An alternate way to create a 100MB disk called C<test1.img> containing a "
19838 "single ext2-formatted partition:"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../fish/guestfish.pod:135
19843 #, no-wrap
19844 msgid ""
19845 " guestfish -N fs\n"
19846 "\n"
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../fish/guestfish.pod:137
19851 msgid "To list what is available do:"
19852 msgstr ""
19853
19854 #. type: verbatim
19855 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
19856 #, no-wrap
19857 msgid ""
19858 " guestfish -N help | less\n"
19859 "\n"
19860 msgstr ""
19861
19862 #. type: =head2
19863 #: ../fish/guestfish.pod:141
19864 msgid "Remote control"
19865 msgstr ""
19866
19867 #. type: verbatim
19868 #: ../fish/guestfish.pod:143
19869 #, no-wrap
19870 msgid ""
19871 " eval \"`guestfish --listen`\"\n"
19872 " guestfish --remote add-ro disk.img\n"
19873 " guestfish --remote run\n"
19874 " guestfish --remote lvs\n"
19875 "\n"
19876 msgstr ""
19877
19878 #. type: =head1
19879 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96 ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103 ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
19880 msgid "OPTIONS"
19881 msgstr ""
19882
19883 #. type: =item
19884 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143 ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
19885 msgid "B<--help>"
19886 msgstr ""
19887
19888 #. type: textblock
19889 #: ../fish/guestfish.pod:154
19890 msgid "Displays general help on options."
19891 msgstr ""
19892
19893 #. type: =item
19894 #: ../fish/guestfish.pod:156
19895 msgid "B<-h>"
19896 msgstr ""
19897
19898 #. type: =item
19899 #: ../fish/guestfish.pod:158
19900 msgid "B<--cmd-help>"
19901 msgstr ""
19902
19903 #. type: textblock
19904 #: ../fish/guestfish.pod:160
19905 msgid "Lists all available guestfish commands."
19906 msgstr ""
19907
19908 #. type: =item
19909 #: ../fish/guestfish.pod:162
19910 msgid "B<-h cmd>"
19911 msgstr ""
19912
19913 #. type: =item
19914 #: ../fish/guestfish.pod:164
19915 msgid "B<--cmd-help cmd>"
19916 msgstr ""
19917
19918 #. type: textblock
19919 #: ../fish/guestfish.pod:166
19920 msgid "Displays detailed help on a single command C<cmd>."
19921 msgstr ""
19922
19923 #. type: =item
19924 #: ../fish/guestfish.pod:168
19925 msgid "B<-a image>"
19926 msgstr ""
19927
19928 #. type: =item
19929 #: ../fish/guestfish.pod:170
19930 msgid "B<--add image>"
19931 msgstr ""
19932
19933 #. type: textblock
19934 #: ../fish/guestfish.pod:172
19935 msgid "Add a block device or virtual machine image to the shell."
19936 msgstr ""
19937
19938 #. type: textblock
19939 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
19940 msgid ""
19941 "The format of the disk image is auto-detected.  To override this and force a "
19942 "particular format use the I<--format=..> option."
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:177
19947 msgid ""
19948 "Using this flag is mostly equivalent to using the C<add> command, with "
19949 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19950 "the I<--format=...> flag was given."
19951 msgstr ""
19952
19953 #. type: =item
19954 #: ../fish/guestfish.pod:181
19955 msgid "B<-c URI>"
19956 msgstr ""
19957
19958 #. type: =item
19959 #: ../fish/guestfish.pod:183
19960 msgid "B<--connect URI>"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
19965 msgid ""
19966 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19967 "URI to use.  The default is to use the default libvirt connection."
19968 msgstr ""
19969
19970 #. type: =item
19971 #: ../fish/guestfish.pod:189
19972 msgid "B<--csh>"
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/guestfish.pod:191
19977 msgid ""
19978 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19979 "section L</REMOTE CONTROL AND CSH> below."
19980 msgstr ""
19981
19982 #. type: =item
19983 #: ../fish/guestfish.pod:194
19984 msgid "B<-d libvirt-domain>"
19985 msgstr ""
19986
19987 #. type: =item
19988 #: ../fish/guestfish.pod:196
19989 msgid "B<--domain libvirt-domain>"
19990 msgstr ""
19991
19992 #. type: textblock
19993 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
19994 msgid ""
19995 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19996 "used, then any libvirt domain can be used.  However in write mode, only "
19997 "libvirt domains which are shut down can be named here."
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
20002 msgid "Domain UUIDs can be used instead of names."
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:204
20007 msgid ""
20008 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20009 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20010 "if the I<--format:...> flag was given."
20011 msgstr ""
20012
20013 #. type: =item
20014 #: ../fish/guestfish.pod:208
20015 msgid "B<-D>"
20016 msgstr ""
20017
20018 #. type: =item
20019 #: ../fish/guestfish.pod:210
20020 msgid "B<--no-dest-paths>"
20021 msgstr ""
20022
20023 #. type: textblock
20024 #: ../fish/guestfish.pod:212
20025 msgid ""
20026 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20027 "to hit the tab key to complete paths on the guest filesystem, but this "
20028 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20029 "allow this feature to be disabled."
20030 msgstr ""
20031
20032 #. type: =item
20033 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
20034 msgid "B<--echo-keys>"
20035 msgstr ""
20036
20037 #. type: textblock
20038 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
20039 msgid ""
20040 "When prompting for keys and passphrases, guestfish normally turns echoing "
20041 "off so you cannot see what you are typing.  If you are not worried about "
20042 "Tempest attacks and there is no one else in the room you can specify this "
20043 "flag to see what you are typing."
20044 msgstr ""
20045
20046 #. type: =item
20047 #: ../fish/guestfish.pod:224
20048 msgid "B<-f file>"
20049 msgstr ""
20050
20051 #. type: =item
20052 #: ../fish/guestfish.pod:226
20053 msgid "B<--file file>"
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:228
20058 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20059 msgstr ""
20060
20061 #. type: verbatim
20062 #: ../fish/guestfish.pod:231
20063 #, no-wrap
20064 msgid ""
20065 " #!/usr/bin/guestfish -f\n"
20066 "\n"
20067 msgstr ""
20068
20069 #. type: =item
20070 #: ../fish/guestfish.pod:233
20071 msgid "B<--format=raw|qcow2|..>"
20072 msgstr ""
20073
20074 #. type: =item
20075 #: ../fish/guestfish.pod:235
20076 msgid "B<--format>"
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
20081 msgid ""
20082 "The default for the I<-a> option is to auto-detect the format of the disk "
20083 "image.  Using this forces the disk format for I<-a> options which follow on "
20084 "the command line.  Using I<--format> with no argument switches back to "
20085 "auto-detection for subsequent I<-a> options."
20086 msgstr ""
20087
20088 #. type: verbatim
20089 #: ../fish/guestfish.pod:244
20090 #, no-wrap
20091 msgid ""
20092 " guestfish --format=raw -a disk.img\n"
20093 "\n"
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../fish/guestfish.pod:246
20098 msgid "forces raw format (no auto-detection) for C<disk.img>."
20099 msgstr ""
20100
20101 #. type: verbatim
20102 #: ../fish/guestfish.pod:248
20103 #, no-wrap
20104 msgid ""
20105 " guestfish --format=raw -a disk.img --format -a another.img\n"
20106 "\n"
20107 msgstr ""
20108
20109 #. type: textblock
20110 #: ../fish/guestfish.pod:250
20111 msgid ""
20112 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
20113 "auto-detection for C<another.img>."
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/guestfish.pod:253
20118 msgid ""
20119 "If you have untrusted raw-format guest disk images, you should use this "
20120 "option to specify the disk format.  This avoids a possible security problem "
20121 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20122 msgstr ""
20123
20124 #. type: =item
20125 #: ../fish/guestfish.pod:258
20126 msgid "B<-i>"
20127 msgstr ""
20128
20129 #. type: =item
20130 #: ../fish/guestfish.pod:260
20131 msgid "B<--inspector>"
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
20136 msgid ""
20137 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20138 "system and mount filesystems as they would be mounted on the real virtual "
20139 "machine."
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:266
20144 msgid "Typical usage is either:"
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../fish/guestfish.pod:268
20149 #, no-wrap
20150 msgid ""
20151 " guestfish -d myguest -i\n"
20152 "\n"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:270
20157 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20158 msgstr ""
20159
20160 #. type: verbatim
20161 #: ../fish/guestfish.pod:272
20162 #, no-wrap
20163 msgid ""
20164 " guestfish --ro -d myguest -i\n"
20165 "\n"
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../fish/guestfish.pod:274
20170 msgid "(for active domains, readonly), or specify the block device directly:"
20171 msgstr ""
20172
20173 #. type: verbatim
20174 #: ../fish/guestfish.pod:276
20175 #, no-wrap
20176 msgid ""
20177 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20178 "\n"
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../fish/guestfish.pod:278
20183 msgid ""
20184 "Note that the command line syntax changed slightly over older versions of "
20185 "guestfish.  You can still use the old syntax:"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../fish/guestfish.pod:281
20190 #, no-wrap
20191 msgid ""
20192 " guestfish [--ro] -i disk.img\n"
20193 "\n"
20194 msgstr ""
20195
20196 #. type: verbatim
20197 #: ../fish/guestfish.pod:283
20198 #, no-wrap
20199 msgid ""
20200 " guestfish [--ro] -i libvirt-domain\n"
20201 "\n"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fish/guestfish.pod:285
20206 msgid ""
20207 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20208 "then using other commands to mount the filesystems that were found."
20209 msgstr ""
20210
20211 #. type: =item
20212 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
20213 msgid "B<--keys-from-stdin>"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
20218 msgid ""
20219 "Read key or passphrase parameters from stdin.  The default is to try to read "
20220 "passphrases from the user by opening C</dev/tty>."
20221 msgstr ""
20222
20223 #. type: =item
20224 #: ../fish/guestfish.pod:294
20225 msgid "B<--listen>"
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:296
20230 msgid ""
20231 "Fork into the background and listen for remote commands.  See section "
20232 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20233 msgstr ""
20234
20235 #. type: =item
20236 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
20237 msgid "B<--live>"
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
20242 msgid ""
20243 "Connect to a live virtual machine.  (Experimental, see "
20244 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
20245 msgstr ""
20246
20247 #. type: =item
20248 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
20249 msgid "B<-m dev[:mountpoint[:options]]>"
20250 msgstr ""
20251
20252 #. type: =item
20253 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
20254 msgid "B<--mount dev[:mountpoint[:options]]>"
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:308
20259 msgid "Mount the named partition or logical volume on the given mountpoint."
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/guestfish.pod:310
20264 msgid "If the mountpoint is omitted, it defaults to C</>."
20265 msgstr ""
20266
20267 #. type: textblock
20268 #: ../fish/guestfish.pod:312
20269 msgid "You have to mount something on C</> before most commands will work."
20270 msgstr ""
20271
20272 #. type: textblock
20273 #: ../fish/guestfish.pod:314
20274 msgid ""
20275 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20276 "launched."
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fish/guestfish.pod:317
20281 msgid ""
20282 "If you don't know what filesystems a disk image contains, you can either run "
20283 "guestfish without this option, then list the partitions, filesystems and LVs "
20284 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20285 "commands), or you can use the L<virt-filesystems(1)> program."
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
20290 msgid ""
20291 "The third (and rarely used) part of the mount parameter is the list of mount "
20292 "options used to mount the underlying filesystem.  If this is not given, then "
20293 "the mount options are either the empty string or C<ro> (the latter if the "
20294 "I<--ro> flag is used).  By specifying the mount options, you override this "
20295 "default choice.  Probably the only time you would use this is to enable ACLs "
20296 "and/or extended attributes if the filesystem can support them:"
20297 msgstr ""
20298
20299 #. type: verbatim
20300 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
20301 #, no-wrap
20302 msgid ""
20303 " -m /dev/sda1:/:acl,user_xattr\n"
20304 "\n"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:333
20309 msgid "Using this flag is equivalent to using the C<mount-options> command."
20310 msgstr ""
20311
20312 #. type: =item
20313 #: ../fish/guestfish.pod:335
20314 msgid "B<-n>"
20315 msgstr ""
20316
20317 #. type: =item
20318 #: ../fish/guestfish.pod:337
20319 msgid "B<--no-sync>"
20320 msgstr ""
20321
20322 #. type: textblock
20323 #: ../fish/guestfish.pod:339
20324 msgid ""
20325 "Disable autosync.  This is enabled by default.  See the discussion of "
20326 "autosync in the L<guestfs(3)> manpage."
20327 msgstr ""
20328
20329 #. type: =item
20330 #: ../fish/guestfish.pod:342
20331 msgid "B<-N type>"
20332 msgstr ""
20333
20334 #. type: =item
20335 #: ../fish/guestfish.pod:344
20336 msgid "B<--new type>"
20337 msgstr ""
20338
20339 #. type: =item
20340 #: ../fish/guestfish.pod:346
20341 msgid "B<-N help>"
20342 msgstr ""
20343
20344 #. type: textblock
20345 #: ../fish/guestfish.pod:348
20346 msgid ""
20347 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20348 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20349 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20350 "IMAGES> below."
20351 msgstr ""
20352
20353 #. type: =item
20354 #: ../fish/guestfish.pod:353
20355 msgid "B<--progress-bars>"
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../fish/guestfish.pod:355
20360 msgid "Enable progress bars, even when guestfish is used non-interactively."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:357
20365 msgid ""
20366 "Progress bars are enabled by default when guestfish is used as an "
20367 "interactive shell."
20368 msgstr ""
20369
20370 #. type: =item
20371 #: ../fish/guestfish.pod:360
20372 msgid "B<--no-progress-bars>"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:362
20377 msgid "Disable progress bars."
20378 msgstr ""
20379
20380 #. type: =item
20381 #: ../fish/guestfish.pod:364
20382 msgid "B<--remote[=pid]>"
20383 msgstr ""
20384
20385 #. type: textblock
20386 #: ../fish/guestfish.pod:366
20387 msgid ""
20388 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20389 "CONTROL GUESTFISH OVER A SOCKET> below."
20390 msgstr ""
20391
20392 #. type: =item
20393 #: ../fish/guestfish.pod:369
20394 msgid "B<-r>"
20395 msgstr ""
20396
20397 #. type: =item
20398 #: ../fish/guestfish.pod:371
20399 msgid "B<--ro>"
20400 msgstr ""
20401
20402 #. type: textblock
20403 #: ../fish/guestfish.pod:373
20404 msgid ""
20405 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20406 "mounts are done read-only."
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../fish/guestfish.pod:376
20411 msgid ""
20412 "The option must always be used if the disk image or virtual machine might be "
20413 "running, and is generally recommended in cases where you don't need write "
20414 "access to the disk."
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fish/guestfish.pod:380
20419 msgid ""
20420 "Note that prepared disk images created with I<-N> are not affected by this "
20421 "option.  Also commands like C<add> are not affected - you have to specify "
20422 "the C<readonly:true> option explicitly if you need it."
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/guestfish.pod:384
20427 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20428 msgstr ""
20429
20430 #. type: =item
20431 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
20432 msgid "B<--selinux>"
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../fish/guestfish.pod:388
20437 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20438 msgstr ""
20439
20440 #. type: =item
20441 #: ../fish/guestfish.pod:390
20442 msgid "B<-v>"
20443 msgstr ""
20444
20445 #. type: =item
20446 #: ../fish/guestfish.pod:392
20447 msgid "B<--verbose>"
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:394
20452 msgid ""
20453 "Enable very verbose messages.  This is particularly useful if you find a "
20454 "bug."
20455 msgstr ""
20456
20457 #. type: =item
20458 #: ../fish/guestfish.pod:397
20459 msgid "B<-V>"
20460 msgstr ""
20461
20462 #. type: =item
20463 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112 ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119 ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
20464 msgid "B<--version>"
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fish/guestfish.pod:401
20469 msgid "Display the guestfish / libguestfs version number and exit."
20470 msgstr ""
20471
20472 #. type: =item
20473 #: ../fish/guestfish.pod:403
20474 msgid "B<-w>"
20475 msgstr ""
20476
20477 #. type: =item
20478 #: ../fish/guestfish.pod:405
20479 msgid "B<--rw>"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
20484 msgid ""
20485 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20486 "mounts are done read-write."
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../fish/guestfish.pod:410
20491 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20492 msgstr ""
20493
20494 #. type: =item
20495 #: ../fish/guestfish.pod:412
20496 msgid "B<-x>"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fish/guestfish.pod:414
20501 msgid "Echo each command before executing it."
20502 msgstr ""
20503
20504 #. type: =head1
20505 #: ../fish/guestfish.pod:418
20506 msgid "COMMANDS ON COMMAND LINE"
20507 msgstr ""
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:420
20511 msgid "Any additional (non-option) arguments are treated as commands to execute."
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../fish/guestfish.pod:423
20516 msgid ""
20517 "Commands to execute should be separated by a colon (C<:>), where the colon "
20518 "is a separate parameter.  Thus:"
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fish/guestfish.pod:426
20523 #, no-wrap
20524 msgid ""
20525 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20526 "\n"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fish/guestfish.pod:428
20531 msgid ""
20532 "If there are no additional arguments, then we enter a shell, either an "
20533 "interactive shell with a prompt (if the input is a terminal) or a "
20534 "non-interactive shell."
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../fish/guestfish.pod:432
20539 msgid ""
20540 "In either command line mode or non-interactive shell, the first command that "
20541 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20542 "prompt) if a command fails, you can continue to enter commands."
20543 msgstr ""
20544
20545 #. type: =head1
20546 #: ../fish/guestfish.pod:437
20547 msgid "USING launch (OR run)"
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:439
20552 msgid ""
20553 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20554 "then launch it, then mount any disks you need, and finally issue "
20555 "actions/commands.  So the general order of the day is:"
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../fish/guestfish.pod:447
20560 msgid "add or -a/--add"
20561 msgstr ""
20562
20563 #. type: textblock
20564 #: ../fish/guestfish.pod:451
20565 msgid "launch (aka run)"
20566 msgstr ""
20567
20568 #. type: textblock
20569 #: ../fish/guestfish.pod:455
20570 msgid "mount or -m/--mount"
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../fish/guestfish.pod:459
20575 msgid "any other commands"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fish/guestfish.pod:463
20580 msgid ""
20581 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20582 "guest before mounting or performing any other commands."
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../fish/guestfish.pod:466
20587 msgid ""
20588 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20589 "I<--new> options were given then C<run> is done automatically, simply "
20590 "because guestfish can't perform the action you asked for without doing this."
20591 msgstr ""
20592
20593 #. type: =head1
20594 #: ../fish/guestfish.pod:471
20595 msgid "OPENING DISKS FOR READ AND WRITE"
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../fish/guestfish.pod:473
20600 msgid ""
20601 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20602 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20603 "I<-i> and I<-m> open disk images read-only or for writing."
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../fish/guestfish.pod:478
20608 msgid ""
20609 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20610 "opening disk images supplied on the command line for write.  To open a disk "
20611 "image read-only you have to do I<-a image --ro>."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:482
20616 msgid ""
20617 "This matters: If you accidentally open a live VM disk image writable then "
20618 "you will cause irreversible disk corruption."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../fish/guestfish.pod:485
20623 msgid ""
20624 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
20625 "images will be opened read-only.  You will have to either specify "
20626 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20627 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20628 "access for disk images specified by those other command line options."
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../fish/guestfish.pod:492
20633 msgid ""
20634 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20635 "which does nothing (it is already the default).  However it is highly "
20636 "recommended that you use this option to indicate that you need write access, "
20637 "and prepare your scripts for the day when this option will be required for "
20638 "write access."
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../fish/guestfish.pod:498
20643 msgid ""
20644 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20645 "other libguestfs program apart from guestfish and guestmount."
20646 msgstr ""
20647
20648 #. type: =head1
20649 #: ../fish/guestfish.pod:501
20650 msgid "QUOTING"
20651 msgstr ""
20652
20653 #. type: textblock
20654 #: ../fish/guestfish.pod:503
20655 msgid ""
20656 "You can quote ordinary parameters using either single or double quotes.  For "
20657 "example:"
20658 msgstr ""
20659
20660 #. type: verbatim
20661 #: ../fish/guestfish.pod:506
20662 #, no-wrap
20663 msgid ""
20664 " add \"file with a space.img\"\n"
20665 "\n"
20666 msgstr ""
20667
20668 #. type: verbatim
20669 #: ../fish/guestfish.pod:508
20670 #, no-wrap
20671 msgid ""
20672 " rm '/file name'\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: verbatim
20677 #: ../fish/guestfish.pod:510
20678 #, no-wrap
20679 msgid ""
20680 " rm '/\"'\n"
20681 "\n"
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../fish/guestfish.pod:512
20686 msgid ""
20687 "A few commands require a list of strings to be passed.  For these, use a "
20688 "whitespace-separated list, enclosed in quotes.  Strings containing "
20689 "whitespace to be passed through must be enclosed in single quotes.  A "
20690 "literal single quote must be escaped with a backslash."
20691 msgstr ""
20692
20693 #. type: verbatim
20694 #: ../fish/guestfish.pod:517
20695 #, no-wrap
20696 msgid ""
20697 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
20698 " command \"/bin/echo 'foo      bar'\"\n"
20699 " command \"/bin/echo \\'foo\\'\"\n"
20700 "\n"
20701 msgstr ""
20702
20703 #. type: =head2
20704 #: ../fish/guestfish.pod:521
20705 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../fish/guestfish.pod:523
20710 msgid ""
20711 "In double-quoted arguments (only) use backslash to insert special "
20712 "characters:"
20713 msgstr ""
20714
20715 #. type: =item
20716 #: ../fish/guestfish.pod:528
20717 msgid "C<\\a>"
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../fish/guestfish.pod:530
20722 msgid "Alert (bell) character."
20723 msgstr ""
20724
20725 #. type: =item
20726 #: ../fish/guestfish.pod:532
20727 msgid "C<\\b>"
20728 msgstr ""
20729
20730 #. type: textblock
20731 #: ../fish/guestfish.pod:534
20732 msgid "Backspace character."
20733 msgstr ""
20734
20735 #. type: =item
20736 #: ../fish/guestfish.pod:536
20737 msgid "C<\\f>"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/guestfish.pod:538
20742 msgid "Form feed character."
20743 msgstr ""
20744
20745 #. type: =item
20746 #: ../fish/guestfish.pod:540
20747 msgid "C<\\n>"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../fish/guestfish.pod:542
20752 msgid "Newline character."
20753 msgstr ""
20754
20755 #. type: =item
20756 #: ../fish/guestfish.pod:544
20757 msgid "C<\\r>"
20758 msgstr ""
20759
20760 #. type: textblock
20761 #: ../fish/guestfish.pod:546
20762 msgid "Carriage return character."
20763 msgstr ""
20764
20765 #. type: =item
20766 #: ../fish/guestfish.pod:548
20767 msgid "C<\\t>"
20768 msgstr ""
20769
20770 #. type: textblock
20771 #: ../fish/guestfish.pod:550
20772 msgid "Horizontal tab character."
20773 msgstr ""
20774
20775 #. type: =item
20776 #: ../fish/guestfish.pod:552
20777 msgid "C<\\v>"
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../fish/guestfish.pod:554
20782 msgid "Vertical tab character."
20783 msgstr ""
20784
20785 #. type: =item
20786 #: ../fish/guestfish.pod:556
20787 msgid "C<\\\">"
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../fish/guestfish.pod:558
20792 msgid "A literal double quote character."
20793 msgstr ""
20794
20795 #. type: =item
20796 #: ../fish/guestfish.pod:560
20797 msgid "C<\\ooo>"
20798 msgstr ""
20799
20800 #. type: textblock
20801 #: ../fish/guestfish.pod:562
20802 msgid ""
20803 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
20804 "(unlike C)."
20805 msgstr ""
20806
20807 #. type: =item
20808 #: ../fish/guestfish.pod:565
20809 msgid "C<\\xhh>"
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../fish/guestfish.pod:567
20814 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
20815 msgstr ""
20816
20817 #. type: textblock
20818 #: ../fish/guestfish.pod:570
20819 msgid ""
20820 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
20821 "strings."
20822 msgstr ""
20823
20824 #. type: =item
20825 #: ../fish/guestfish.pod:573
20826 msgid "C<\\\\>"
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../fish/guestfish.pod:575
20831 msgid "A literal backslash character."
20832 msgstr ""
20833
20834 #. type: =head1
20835 #: ../fish/guestfish.pod:579
20836 msgid "OPTIONAL ARGUMENTS"
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../fish/guestfish.pod:581
20841 msgid ""
20842 "Some commands take optional arguments.  These arguments appear in this "
20843 "documentation as C<[argname:..]>.  You can use them as in these examples:"
20844 msgstr ""
20845
20846 #. type: verbatim
20847 #: ../fish/guestfish.pod:585
20848 #, no-wrap
20849 msgid ""
20850 " add-drive-opts filename\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: verbatim
20855 #: ../fish/guestfish.pod:587
20856 #, no-wrap
20857 msgid ""
20858 " add-drive-opts filename readonly:true\n"
20859 "\n"
20860 msgstr ""
20861
20862 #. type: verbatim
20863 #: ../fish/guestfish.pod:589
20864 #, no-wrap
20865 msgid ""
20866 " add-drive-opts filename format:qcow2 readonly:false\n"
20867 "\n"
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../fish/guestfish.pod:591
20872 msgid ""
20873 "Each optional argument can appear at most once.  All optional arguments must "
20874 "appear after the required ones."
20875 msgstr ""
20876
20877 #. type: =head1
20878 #: ../fish/guestfish.pod:594
20879 msgid "NUMBERS"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fish/guestfish.pod:596
20884 msgid "This section applies to all commands which can take integers as parameters."
20885 msgstr ""
20886
20887 #. type: =head2
20888 #: ../fish/guestfish.pod:599
20889 msgid "SIZE SUFFIX"
20890 msgstr ""
20891
20892 #. type: textblock
20893 #: ../fish/guestfish.pod:601
20894 msgid ""
20895 "When the command takes a parameter measured in bytes, you can use one of the "
20896 "following suffixes to specify kilobytes, megabytes and larger sizes:"
20897 msgstr ""
20898
20899 #. type: =item
20900 #: ../fish/guestfish.pod:607
20901 msgid "B<k> or B<K> or B<KiB>"
20902 msgstr ""
20903
20904 #. type: textblock
20905 #: ../fish/guestfish.pod:609
20906 msgid "The size in kilobytes (multiplied by 1024)."
20907 msgstr ""
20908
20909 #. type: =item
20910 #: ../fish/guestfish.pod:611
20911 msgid "B<KB>"
20912 msgstr ""
20913
20914 #. type: textblock
20915 #: ../fish/guestfish.pod:613
20916 msgid "The size in SI 1000 byte units."
20917 msgstr ""
20918
20919 #. type: =item
20920 #: ../fish/guestfish.pod:615
20921 msgid "B<M> or B<MiB>"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../fish/guestfish.pod:617
20926 msgid "The size in megabytes (multiplied by 1048576)."
20927 msgstr ""
20928
20929 #. type: =item
20930 #: ../fish/guestfish.pod:619
20931 msgid "B<MB>"
20932 msgstr ""
20933
20934 #. type: textblock
20935 #: ../fish/guestfish.pod:621
20936 msgid "The size in SI 1000000 byte units."
20937 msgstr ""
20938
20939 #. type: =item
20940 #: ../fish/guestfish.pod:623
20941 msgid "B<G> or B<GiB>"
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:625
20946 msgid "The size in gigabytes (multiplied by 2**30)."
20947 msgstr ""
20948
20949 #. type: =item
20950 #: ../fish/guestfish.pod:627
20951 msgid "B<GB>"
20952 msgstr ""
20953
20954 #. type: textblock
20955 #: ../fish/guestfish.pod:629
20956 msgid "The size in SI 10**9 byte units."
20957 msgstr ""
20958
20959 #. type: =item
20960 #: ../fish/guestfish.pod:631
20961 msgid "B<T> or B<TiB>"
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../fish/guestfish.pod:633
20966 msgid "The size in terabytes (multiplied by 2**40)."
20967 msgstr ""
20968
20969 #. type: =item
20970 #: ../fish/guestfish.pod:635
20971 msgid "B<TB>"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:637
20976 msgid "The size in SI 10**12 byte units."
20977 msgstr ""
20978
20979 #. type: =item
20980 #: ../fish/guestfish.pod:639
20981 msgid "B<P> or B<PiB>"
20982 msgstr ""
20983
20984 #. type: textblock
20985 #: ../fish/guestfish.pod:641
20986 msgid "The size in petabytes (multiplied by 2**50)."
20987 msgstr ""
20988
20989 #. type: =item
20990 #: ../fish/guestfish.pod:643
20991 msgid "B<PB>"
20992 msgstr ""
20993
20994 #. type: textblock
20995 #: ../fish/guestfish.pod:645
20996 msgid "The size in SI 10**15 byte units."
20997 msgstr ""
20998
20999 #. type: =item
21000 #: ../fish/guestfish.pod:647
21001 msgid "B<E> or B<EiB>"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../fish/guestfish.pod:649
21006 msgid "The size in exabytes (multiplied by 2**60)."
21007 msgstr ""
21008
21009 #. type: =item
21010 #: ../fish/guestfish.pod:651
21011 msgid "B<EB>"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../fish/guestfish.pod:653
21016 msgid "The size in SI 10**18 byte units."
21017 msgstr ""
21018
21019 #. type: =item
21020 #: ../fish/guestfish.pod:655
21021 msgid "B<Z> or B<ZiB>"
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../fish/guestfish.pod:657
21026 msgid "The size in zettabytes (multiplied by 2**70)."
21027 msgstr ""
21028
21029 #. type: =item
21030 #: ../fish/guestfish.pod:659
21031 msgid "B<ZB>"
21032 msgstr ""
21033
21034 #. type: textblock
21035 #: ../fish/guestfish.pod:661
21036 msgid "The size in SI 10**21 byte units."
21037 msgstr ""
21038
21039 #. type: =item
21040 #: ../fish/guestfish.pod:663
21041 msgid "B<Y> or B<YiB>"
21042 msgstr ""
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:665
21046 msgid "The size in yottabytes (multiplied by 2**80)."
21047 msgstr ""
21048
21049 #. type: =item
21050 #: ../fish/guestfish.pod:667
21051 msgid "B<YB>"
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../fish/guestfish.pod:669
21056 msgid "The size in SI 10**24 byte units."
21057 msgstr ""
21058
21059 #. type: verbatim
21060 #: ../fish/guestfish.pod:675
21061 #, no-wrap
21062 msgid ""
21063 " truncate-size /file 1G\n"
21064 "\n"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../fish/guestfish.pod:677
21069 msgid "would truncate the file to 1 gigabyte."
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../fish/guestfish.pod:679
21074 msgid ""
21075 "Be careful because a few commands take sizes in kilobytes or megabytes "
21076 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
21077 "Adding a suffix will probably not do what you expect."
21078 msgstr ""
21079
21080 #. type: =head2
21081 #: ../fish/guestfish.pod:683
21082 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../fish/guestfish.pod:685
21087 msgid ""
21088 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21089 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21090 msgstr ""
21091
21092 #. type: verbatim
21093 #: ../fish/guestfish.pod:688
21094 #, no-wrap
21095 msgid ""
21096 " 1234      decimal number 1234\n"
21097 " 02322     octal number, equivalent to decimal 1234\n"
21098 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21099 "\n"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../fish/guestfish.pod:692
21104 msgid ""
21105 "When using the C<chmod> command, you almost always want to specify an octal "
21106 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21107 "L<chmod(1)> program):"
21108 msgstr ""
21109
21110 #. type: verbatim
21111 #: ../fish/guestfish.pod:696
21112 #, no-wrap
21113 msgid ""
21114 " chmod 0777 /public  # OK\n"
21115 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21116 "\n"
21117 msgstr ""
21118
21119 #. type: textblock
21120 #: ../fish/guestfish.pod:699
21121 msgid ""
21122 "Commands that return numbers usually print them in decimal, but some "
21123 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21124 "octal, preceeded by C<0>)."
21125 msgstr ""
21126
21127 #. type: =head1
21128 #: ../fish/guestfish.pod:703
21129 msgid "WILDCARDS AND GLOBBING"
21130 msgstr ""
21131
21132 #. type: textblock
21133 #: ../fish/guestfish.pod:705
21134 msgid ""
21135 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21136 "(globbing) by default.  So for example the following will not do what you "
21137 "expect:"
21138 msgstr ""
21139
21140 #. type: verbatim
21141 #: ../fish/guestfish.pod:709
21142 #, no-wrap
21143 msgid ""
21144 " rm-rf /home/*\n"
21145 "\n"
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../fish/guestfish.pod:711
21150 msgid ""
21151 "Assuming you don't have a directory called literally C</home/*> then the "
21152 "above command will return an error."
21153 msgstr ""
21154
21155 #. type: textblock
21156 #: ../fish/guestfish.pod:714
21157 msgid "To perform wildcard expansion, use the C<glob> command."
21158 msgstr ""
21159
21160 #. type: verbatim
21161 #: ../fish/guestfish.pod:716
21162 #, no-wrap
21163 msgid ""
21164 " glob rm-rf /home/*\n"
21165 "\n"
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../fish/guestfish.pod:718
21170 msgid ""
21171 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21172 "many times), equivalent to:"
21173 msgstr ""
21174
21175 #. type: verbatim
21176 #: ../fish/guestfish.pod:721
21177 #, no-wrap
21178 msgid ""
21179 " rm-rf /home/jim\n"
21180 " rm-rf /home/joe\n"
21181 " rm-rf /home/mary\n"
21182 "\n"
21183 msgstr ""
21184
21185 #. type: textblock
21186 #: ../fish/guestfish.pod:725
21187 msgid "C<glob> only works on simple guest paths and not on device names."
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../fish/guestfish.pod:727
21192 msgid ""
21193 "If you have several parameters, each containing a wildcard, then glob will "
21194 "perform a Cartesian product."
21195 msgstr ""
21196
21197 #. type: =head1
21198 #: ../fish/guestfish.pod:730
21199 msgid "COMMENTS"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../fish/guestfish.pod:732
21204 msgid ""
21205 "Any line which starts with a I<#> character is treated as a comment and "
21206 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21207 "a command.  For example:"
21208 msgstr ""
21209
21210 #. type: verbatim
21211 #: ../fish/guestfish.pod:736
21212 #, no-wrap
21213 msgid ""
21214 " # this is a comment\n"
21215 "         # this is a comment\n"
21216 " foo # NOT a comment\n"
21217 "\n"
21218 msgstr ""
21219
21220 #. type: textblock
21221 #: ../fish/guestfish.pod:740
21222 msgid "Blank lines are also ignored."
21223 msgstr ""
21224
21225 #. type: =head1
21226 #: ../fish/guestfish.pod:742
21227 msgid "RUNNING COMMANDS LOCALLY"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:744
21232 msgid ""
21233 "Any line which starts with a I<!> character is treated as a command sent to "
21234 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21235 msgstr ""
21236
21237 #. type: verbatim
21238 #: ../fish/guestfish.pod:748
21239 #, no-wrap
21240 msgid ""
21241 " !mkdir local\n"
21242 " tgz-out /remote local/remote-data.tar.gz\n"
21243 "\n"
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../fish/guestfish.pod:751
21248 msgid ""
21249 "will create a directory C<local> on the host, and then export the contents "
21250 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21251 "(See C<tgz-out>)."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fish/guestfish.pod:755
21256 msgid ""
21257 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21258 "effect, due to the way that subprocesses work in Unix."
21259 msgstr ""
21260
21261 #. type: =head2
21262 #: ../fish/guestfish.pod:758
21263 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../fish/guestfish.pod:760
21268 msgid ""
21269 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21270 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21271 "and executed as guestfish commands."
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../fish/guestfish.pod:764
21276 msgid ""
21277 "Thus you can use shell script to construct arbitrary guestfish commands "
21278 "which are then parsed by guestfish."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../fish/guestfish.pod:767
21283 msgid ""
21284 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21285 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21286 "if we use a shell script to create the guestfish commands for us:"
21287 msgstr ""
21288
21289 #. type: verbatim
21290 #: ../fish/guestfish.pod:772
21291 #, no-wrap
21292 msgid ""
21293 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21294 "\n"
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../fish/guestfish.pod:774
21299 msgid "or with names like C</foo.001>:"
21300 msgstr ""
21301
21302 #. type: verbatim
21303 #: ../fish/guestfish.pod:776
21304 #, no-wrap
21305 msgid ""
21306 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21307 "\n"
21308 msgstr ""
21309
21310 #. type: textblock
21311 #: ../fish/guestfish.pod:778
21312 msgid ""
21313 "When using guestfish interactively it can be helpful to just run the shell "
21314 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21315 "ordinary I<!> local command), see what guestfish commands it would run, and "
21316 "when you are happy with those prepend the C<E<lt>> character to run the "
21317 "guestfish commands for real."
21318 msgstr ""
21319
21320 #. type: =head1
21321 #: ../fish/guestfish.pod:784
21322 msgid "PIPES"
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../fish/guestfish.pod:786
21327 msgid ""
21328 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21329 "command (a guestfish command) to the second command (any host command).  For "
21330 "example:"
21331 msgstr ""
21332
21333 #. type: verbatim
21334 #: ../fish/guestfish.pod:790
21335 #, no-wrap
21336 msgid ""
21337 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21338 "\n"
21339 msgstr ""
21340
21341 #. type: textblock
21342 #: ../fish/guestfish.pod:792
21343 msgid ""
21344 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21345 "program).  The above command would list all accounts in the guest filesystem "
21346 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21347 msgstr ""
21348
21349 #. type: verbatim
21350 #: ../fish/guestfish.pod:797
21351 #, no-wrap
21352 msgid ""
21353 " hexdump /bin/ls | head\n"
21354 " list-devices | tail -1\n"
21355 " tgz-out / - | tar ztf -\n"
21356 "\n"
21357 msgstr ""
21358
21359 #. type: textblock
21360 #: ../fish/guestfish.pod:801
21361 msgid ""
21362 "The space before the pipe symbol is required, any space after the pipe "
21363 "symbol is optional.  Everything after the pipe symbol is just passed "
21364 "straight to the host shell, so it can contain redirections, globs and "
21365 "anything else that makes sense on the host side."
21366 msgstr ""
21367
21368 #. type: textblock
21369 #: ../fish/guestfish.pod:806
21370 msgid ""
21371 "To use a literal argument which begins with a pipe symbol, you have to quote "
21372 "it, eg:"
21373 msgstr ""
21374
21375 #. type: verbatim
21376 #: ../fish/guestfish.pod:809
21377 #, no-wrap
21378 msgid ""
21379 " echo \"|\"\n"
21380 "\n"
21381 msgstr ""
21382
21383 #. type: =head1
21384 #: ../fish/guestfish.pod:811
21385 msgid "HOME DIRECTORIES"
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../fish/guestfish.pod:813
21390 msgid ""
21391 "If a parameter starts with the character C<~> then the tilde may be expanded "
21392 "as a home directory path (either C<~> for the current user's home directory, "
21393 "or C<~user> for another user)."
21394 msgstr ""
21395
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:817
21398 msgid ""
21399 "Note that home directory expansion happens for users known I<on the host>, "
21400 "not in the guest filesystem."
21401 msgstr ""
21402
21403 #. type: textblock
21404 #: ../fish/guestfish.pod:820
21405 msgid ""
21406 "To use a literal argument which begins with a tilde, you have to quote it, "
21407 "eg:"
21408 msgstr ""
21409
21410 #. type: verbatim
21411 #: ../fish/guestfish.pod:823
21412 #, no-wrap
21413 msgid ""
21414 " echo \"~\"\n"
21415 "\n"
21416 msgstr ""
21417
21418 #. type: textblock
21419 #: ../fish/guestfish.pod:827
21420 msgid ""
21421 "Libguestfs has some support for Linux guests encrypted according to the "
21422 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21423 "disk encryption systems used by modern Linux guests.  Currently only "
21424 "LVM-on-LUKS is supported."
21425 msgstr ""
21426
21427 #. type: textblock
21428 #: ../fish/guestfish.pod:832
21429 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21430 msgstr ""
21431
21432 #. type: verbatim
21433 #: ../fish/guestfish.pod:834
21434 #, no-wrap
21435 msgid ""
21436 " ><fs> vfs-type /dev/sda2\n"
21437 " crypto_LUKS\n"
21438 "\n"
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../fish/guestfish.pod:837
21443 msgid ""
21444 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21445 "device called C</dev/mapper/luksdev>."
21446 msgstr ""
21447
21448 #. type: verbatim
21449 #: ../fish/guestfish.pod:840
21450 #, no-wrap
21451 msgid ""
21452 " ><fs> luks-open /dev/sda2 luksdev\n"
21453 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21454 "\n"
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../fish/guestfish.pod:843
21459 msgid ""
21460 "Finally you have to tell LVM to scan for volume groups on the newly created "
21461 "mapper device:"
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../fish/guestfish.pod:846
21466 #, no-wrap
21467 msgid ""
21468 " vgscan\n"
21469 " vg-activate-all true\n"
21470 "\n"
21471 msgstr ""
21472
21473 #. type: textblock
21474 #: ../fish/guestfish.pod:849
21475 msgid "The logical volume(s) can now be mounted in the usual way."
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../fish/guestfish.pod:851
21480 msgid ""
21481 "Before closing a LUKS device you must unmount any logical volumes on it and "
21482 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21483 "one.  Then you can close the mapper device:"
21484 msgstr ""
21485
21486 #. type: verbatim
21487 #: ../fish/guestfish.pod:855
21488 #, no-wrap
21489 msgid ""
21490 " vg-activate false /dev/VG\n"
21491 " luks-close /dev/mapper/luksdev\n"
21492 "\n"
21493 msgstr ""
21494
21495 #. type: =head1
21496 #: ../fish/guestfish.pod:858
21497 msgid "WINDOWS PATHS"
21498 msgstr ""
21499
21500 #. type: textblock
21501 #: ../fish/guestfish.pod:860
21502 msgid ""
21503 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21504 "letters and paths (with some limitations).  The following commands are "
21505 "equivalent:"
21506 msgstr ""
21507
21508 #. type: verbatim
21509 #: ../fish/guestfish.pod:864
21510 #, no-wrap
21511 msgid ""
21512 " file /WINDOWS/system32/config/system.LOG\n"
21513 "\n"
21514 msgstr ""
21515
21516 #. type: verbatim
21517 #: ../fish/guestfish.pod:866
21518 #, no-wrap
21519 msgid ""
21520 " file win:\\windows\\system32\\config\\system.log\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: verbatim
21525 #: ../fish/guestfish.pod:868
21526 #, no-wrap
21527 msgid ""
21528 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21529 "\n"
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../fish/guestfish.pod:870
21534 msgid ""
21535 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21536 "where the drive is mounted, prepending that to the path, changing all "
21537 "backslash characters to forward slash, then resolving the result using "
21538 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
21539 "then the parameter might be rewritten like this:"
21540 msgstr ""
21541
21542 #. type: verbatim
21543 #: ../fish/guestfish.pod:876
21544 #, no-wrap
21545 msgid ""
21546 " win:e:\\foo\\bar => /e/FOO/bar\n"
21547 "\n"
21548 msgstr ""
21549
21550 #. type: textblock
21551 #: ../fish/guestfish.pod:878
21552 msgid "This only works in argument positions that expect a path."
21553 msgstr ""
21554
21555 #. type: =head1
21556 #: ../fish/guestfish.pod:880
21557 msgid "UPLOADING AND DOWNLOADING FILES"
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../fish/guestfish.pod:882
21562 msgid ""
21563 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21564 "others which upload from or download to a local file, you can use the "
21565 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21566 msgstr ""
21567
21568 #. type: verbatim
21569 #: ../fish/guestfish.pod:886
21570 #, no-wrap
21571 msgid ""
21572 " upload - /foo\n"
21573 "\n"
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../fish/guestfish.pod:888
21578 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
21579 msgstr ""
21580
21581 #. type: verbatim
21582 #: ../fish/guestfish.pod:891
21583 #, no-wrap
21584 msgid ""
21585 " tar-out /etc - | tar tf -\n"
21586 "\n"
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../fish/guestfish.pod:893
21591 msgid ""
21592 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21593 "command (see L</PIPES>)."
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:896
21598 msgid ""
21599 "When using C<-> to read from stdin, the input is read up to the end of "
21600 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21601 "some arbitrary end marker:"
21602 msgstr ""
21603
21604 #. type: verbatim
21605 #: ../fish/guestfish.pod:900
21606 #, no-wrap
21607 msgid ""
21608 " upload -<<END /foo\n"
21609 " input line 1\n"
21610 " input line 2\n"
21611 " input line 3\n"
21612 " END\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: textblock
21617 #: ../fish/guestfish.pod:906
21618 msgid ""
21619 "Any string of characters can be used instead of C<END>.  The end marker must "
21620 "appear on a line of its own, without any preceeding or following characters "
21621 "(not even spaces)."
21622 msgstr ""
21623
21624 #. type: textblock
21625 #: ../fish/guestfish.pod:910
21626 msgid ""
21627 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21628 "upload local files (so-called \"FileIn\" parameters in the generator)."
21629 msgstr ""
21630
21631 #. type: =head1
21632 #: ../fish/guestfish.pod:913
21633 msgid "EXIT ON ERROR BEHAVIOUR"
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../fish/guestfish.pod:915
21638 msgid ""
21639 "By default, guestfish will ignore any errors when in interactive mode "
21640 "(ie. taking commands from a human over a tty), and will exit on the first "
21641 "error in non-interactive mode (scripts, commands given on the command line)."
21642 msgstr ""
21643
21644 #. type: textblock
21645 #: ../fish/guestfish.pod:920
21646 msgid ""
21647 "If you prefix a command with a I<-> character, then that command will not "
21648 "cause guestfish to exit, even if that (one) command returns an error."
21649 msgstr ""
21650
21651 #. type: =head1
21652 #: ../fish/guestfish.pod:924
21653 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../fish/guestfish.pod:926
21658 msgid ""
21659 "Guestfish can be remote-controlled over a socket.  This is useful "
21660 "particularly in shell scripts where you want to make several different "
21661 "changes to a filesystem, but you don't want the overhead of starting up a "
21662 "guestfish process each time."
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../fish/guestfish.pod:931
21667 msgid "Start a guestfish server process using:"
21668 msgstr ""
21669
21670 #. type: verbatim
21671 #: ../fish/guestfish.pod:933
21672 #, no-wrap
21673 msgid ""
21674 " eval \"`guestfish --listen`\"\n"
21675 "\n"
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../fish/guestfish.pod:935
21680 msgid "and then send it commands by doing:"
21681 msgstr ""
21682
21683 #. type: verbatim
21684 #: ../fish/guestfish.pod:937
21685 #, no-wrap
21686 msgid ""
21687 " guestfish --remote cmd [...]\n"
21688 "\n"
21689 msgstr ""
21690
21691 #. type: textblock
21692 #: ../fish/guestfish.pod:939
21693 msgid "To cause the server to exit, send it the exit command:"
21694 msgstr ""
21695
21696 #. type: verbatim
21697 #: ../fish/guestfish.pod:941
21698 #, no-wrap
21699 msgid ""
21700 " guestfish --remote exit\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fish/guestfish.pod:943
21706 msgid ""
21707 "Note that the server will normally exit if there is an error in a command.  "
21708 "You can change this in the usual way.  See section L</EXIT ON ERROR "
21709 "BEHAVIOUR>."
21710 msgstr ""
21711
21712 #. type: =head2
21713 #: ../fish/guestfish.pod:947
21714 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../fish/guestfish.pod:949
21719 msgid ""
21720 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
21721 "is how the I<--remote> option knows where to send the commands.  You can "
21722 "have several guestfish listener processes running using:"
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../fish/guestfish.pod:953
21727 #, no-wrap
21728 msgid ""
21729 " eval \"`guestfish --listen`\"\n"
21730 " pid1=$GUESTFISH_PID\n"
21731 " eval \"`guestfish --listen`\"\n"
21732 " pid2=$GUESTFISH_PID\n"
21733 " ...\n"
21734 " guestfish --remote=$pid1 cmd\n"
21735 " guestfish --remote=$pid2 cmd\n"
21736 "\n"
21737 msgstr ""
21738
21739 #. type: =head2
21740 #: ../fish/guestfish.pod:961
21741 msgid "REMOTE CONTROL AND CSH"
21742 msgstr ""
21743
21744 #. type: textblock
21745 #: ../fish/guestfish.pod:963
21746 msgid ""
21747 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
21748 "option:"
21749 msgstr ""
21750
21751 #. type: verbatim
21752 #: ../fish/guestfish.pod:966
21753 #, no-wrap
21754 msgid ""
21755 " eval \"`guestfish --listen --csh`\"\n"
21756 "\n"
21757 msgstr ""
21758
21759 #. type: =head2
21760 #: ../fish/guestfish.pod:968
21761 msgid "REMOTE CONTROL DETAILS"
21762 msgstr ""
21763
21764 #. type: textblock
21765 #: ../fish/guestfish.pod:970
21766 msgid ""
21767 "Remote control happens over a Unix domain socket called "
21768 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
21769 "of the process, and C<$PID> is the process ID of the server."
21770 msgstr ""
21771
21772 #. type: textblock
21773 #: ../fish/guestfish.pod:974
21774 msgid "Guestfish client and server versions must match exactly."
21775 msgstr ""
21776
21777 #. type: =head1
21778 #: ../fish/guestfish.pod:976
21779 msgid "PREPARED DISK IMAGES"
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../fish/guestfish.pod:978
21784 msgid ""
21785 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
21786 "preformatted disk images that guestfish can make for you to save typing.  "
21787 "This is particularly useful for testing purposes.  This option is used "
21788 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
21789 "can be mixed with I<-a>)."
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../fish/guestfish.pod:984
21794 msgid ""
21795 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
21796 "the second and so on.  Existing files in the current directory are "
21797 "I<overwritten>."
21798 msgstr ""
21799
21800 #. type: textblock
21801 #: ../fish/guestfish.pod:988
21802 msgid ""
21803 "The type briefly describes how the disk should be sized, partitioned, how "
21804 "filesystem(s) should be created, and how content should be added.  "
21805 "Optionally the type can be followed by extra parameters, separated by C<:> "
21806 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
21807 "sparsely-allocated disk, containing a single partition, with the partition "
21808 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
21809 "on a 1GB disk instead."
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../fish/guestfish.pod:996
21814 msgid "To list the available types and any extra parameters they take, run:"
21815 msgstr ""
21816
21817 #. type: textblock
21818 #: ../fish/guestfish.pod:1000
21819 msgid ""
21820 "Note that the prepared filesystem is not mounted.  You would usually have to "
21821 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
21822 msgstr ""
21823
21824 #. type: textblock
21825 #: ../fish/guestfish.pod:1004
21826 msgid ""
21827 "If any I<-N> or I<--new> options are given, the guest is automatically "
21828 "launched."
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../fish/guestfish.pod:1009
21833 msgid "Create a 100MB disk with an ext4-formatted partition:"
21834 msgstr ""
21835
21836 #. type: verbatim
21837 #: ../fish/guestfish.pod:1011
21838 #, no-wrap
21839 msgid ""
21840 " guestfish -N fs:ext4\n"
21841 "\n"
21842 msgstr ""
21843
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:1013
21846 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
21847 msgstr ""
21848
21849 #. type: verbatim
21850 #: ../fish/guestfish.pod:1015
21851 #, no-wrap
21852 msgid ""
21853 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
21854 "\n"
21855 msgstr ""
21856
21857 #. type: textblock
21858 #: ../fish/guestfish.pod:1017
21859 msgid "Create a blank 200MB disk:"
21860 msgstr ""
21861
21862 #. type: verbatim
21863 #: ../fish/guestfish.pod:1019
21864 #, no-wrap
21865 msgid ""
21866 " guestfish -N disk:200M\n"
21867 "\n"
21868 msgstr ""
21869
21870 #. type: =head1
21871 #: ../fish/guestfish.pod:1021
21872 msgid "PROGRESS BARS"
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../fish/guestfish.pod:1023
21877 msgid ""
21878 "Some (not all) long-running commands send progress notification messages as "
21879 "they are running.  Guestfish turns these messages into progress bars."
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../fish/guestfish.pod:1027
21884 msgid ""
21885 "When a command that supports progress bars takes longer than two seconds to "
21886 "run, and if progress bars are enabled, then you will see one appearing below "
21887 "the command:"
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../fish/guestfish.pod:1031
21892 #, no-wrap
21893 msgid ""
21894 " ><fs> copy-size /large-file /another-file 2048M\n"
21895 " / 10% [#####-----------------------------------------] 00:30\n"
21896 "\n"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fish/guestfish.pod:1034
21901 msgid ""
21902 "The spinner on the left hand side moves round once for every progress "
21903 "notification received from the backend.  This is a (reasonably) golden "
21904 "assurance that the command is \"doing something\" even if the progress bar "
21905 "is not moving, because the command is able to send the progress "
21906 "notifications.  When the bar reaches 100% and the command finishes, the "
21907 "spinner disappears."
21908 msgstr ""
21909
21910 #. type: textblock
21911 #: ../fish/guestfish.pod:1041
21912 msgid ""
21913 "Progress bars are enabled by default when guestfish is used interactively.  "
21914 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21915 "and you can disable them completely using I<--no-progress-bars>."
21916 msgstr ""
21917
21918 #. type: =head1
21919 #: ../fish/guestfish.pod:1046
21920 msgid "GUESTFISH COMMANDS"
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../fish/guestfish.pod:1048
21925 msgid ""
21926 "The commands in this section are guestfish convenience commands, in other "
21927 "words, they are not part of the L<guestfs(3)> API."
21928 msgstr ""
21929
21930 #. type: =head2
21931 #: ../fish/guestfish.pod:1051
21932 msgid "help"
21933 msgstr ""
21934
21935 #. type: verbatim
21936 #: ../fish/guestfish.pod:1053
21937 #, no-wrap
21938 msgid ""
21939 " help\n"
21940 " help cmd\n"
21941 "\n"
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fish/guestfish.pod:1056
21946 msgid "Without any parameter, this provides general help."
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:1058
21951 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21952 msgstr ""
21953
21954 #. type: =head2
21955 #: ../fish/guestfish.pod:1060
21956 msgid "quit | exit"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../fish/guestfish.pod:1062
21961 msgid "This exits guestfish.  You can also use C<^D> key."
21962 msgstr ""
21963
21964 #. type: textblock
21965 #: ../fish/guestfish.pod:1064
21966 msgid "@FISH_COMMANDS@"
21967 msgstr ""
21968
21969 #. type: =head1
21970 #: ../fish/guestfish.pod:1066
21971 msgid "COMMANDS"
21972 msgstr ""
21973
21974 #. type: =head1
21975 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
21976 msgid "EXIT CODE"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../fish/guestfish.pod:1072
21981 msgid ""
21982 "guestfish returns 0 if the commands completed without error, or 1 if there "
21983 "was an error."
21984 msgstr ""
21985
21986 #. type: =item
21987 #: ../fish/guestfish.pod:1079
21988 msgid "EDITOR"
21989 msgstr ""
21990
21991 #. type: textblock
21992 #: ../fish/guestfish.pod:1081
21993 msgid ""
21994 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21995 "C<vi>."
21996 msgstr ""
21997
21998 #. type: =item
21999 #: ../fish/guestfish.pod:1084
22000 msgid "GUESTFISH_DISPLAY_IMAGE"
22001 msgstr ""
22002
22003 #. type: textblock
22004 #: ../fish/guestfish.pod:1086
22005 msgid ""
22006 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
22007 "If not set, it uses L<display(1)>."
22008 msgstr ""
22009
22010 #. type: =item
22011 #: ../fish/guestfish.pod:1089
22012 msgid "GUESTFISH_PID"
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../fish/guestfish.pod:1091
22017 msgid ""
22018 "Used with the I<--remote> option to specify the remote guestfish process to "
22019 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22020 msgstr ""
22021
22022 #. type: =item
22023 #: ../fish/guestfish.pod:1095
22024 msgid "HEXEDITOR"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fish/guestfish.pod:1097
22029 msgid ""
22030 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22031 "not specified, the external L<hexedit(1)> program is used."
22032 msgstr ""
22033
22034 #. type: =item
22035 #: ../fish/guestfish.pod:1101
22036 msgid "HOME"
22037 msgstr ""
22038
22039 #. type: textblock
22040 #: ../fish/guestfish.pod:1103
22041 msgid ""
22042 "If compiled with GNU readline support, various files in the home directory "
22043 "can be used.  See L</FILES>."
22044 msgstr ""
22045
22046 #. type: textblock
22047 #: ../fish/guestfish.pod:1112
22048 msgid ""
22049 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22050 "effect as using the B<-v> option."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../fish/guestfish.pod:1124
22055 msgid ""
22056 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22057 "the discussion of paths in L<guestfs(3)>."
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:1135
22062 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22063 msgstr ""
22064
22065 #. type: =item
22066 #: ../fish/guestfish.pod:1137
22067 msgid "PAGER"
22068 msgstr ""
22069
22070 #. type: textblock
22071 #: ../fish/guestfish.pod:1139
22072 msgid ""
22073 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22074 "C<more>."
22075 msgstr ""
22076
22077 #. type: =head1
22078 #: ../fish/guestfish.pod:1155 ../fuse/guestmount.pod:264
22079 msgid "FILES"
22080 msgstr ""
22081
22082 #. type: =item
22083 #: ../fish/guestfish.pod:1159 ../fuse/guestmount.pod:268
22084 msgid "$HOME/.libguestfs-tools.rc"
22085 msgstr ""
22086
22087 #. type: =item
22088 #: ../fish/guestfish.pod:1161 ../fuse/guestmount.pod:270
22089 msgid "/etc/libguestfs-tools.conf"
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../fish/guestfish.pod:1163 ../fuse/guestmount.pod:272
22094 msgid ""
22095 "This configuration file controls the default read-only or read-write mode "
22096 "(I<--ro> or I<--rw>)."
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../fish/guestfish.pod:1166
22101 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22102 msgstr ""
22103
22104 #. type: =item
22105 #: ../fish/guestfish.pod:1168
22106 msgid "$HOME/.guestfish"
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../fish/guestfish.pod:1170
22111 msgid ""
22112 "If compiled with GNU readline support, then the command history is saved in "
22113 "this file."
22114 msgstr ""
22115
22116 #. type: =item
22117 #: ../fish/guestfish.pod:1173
22118 msgid "$HOME/.inputrc"
22119 msgstr ""
22120
22121 #. type: =item
22122 #: ../fish/guestfish.pod:1175
22123 msgid "/etc/inputrc"
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../fish/guestfish.pod:1177
22128 msgid ""
22129 "If compiled with GNU readline support, then these files can be used to "
22130 "configure readline.  For further information, please see "
22131 "L<readline(3)/INITIALIZATION FILE>."
22132 msgstr ""
22133
22134 #. type: textblock
22135 #: ../fish/guestfish.pod:1181
22136 msgid "To write rules which only apply to guestfish, use:"
22137 msgstr ""
22138
22139 #. type: verbatim
22140 #: ../fish/guestfish.pod:1183
22141 #, no-wrap
22142 msgid ""
22143 " $if guestfish\n"
22144 " ...\n"
22145 " $endif\n"
22146 "\n"
22147 msgstr ""
22148
22149 #. type: textblock
22150 #: ../fish/guestfish.pod:1187
22151 msgid ""
22152 "Variables that you can set in inputrc that change the behaviour of guestfish "
22153 "in useful ways include:"
22154 msgstr ""
22155
22156 #. type: =item
22157 #: ../fish/guestfish.pod:1192
22158 msgid "completion-ignore-case (default: on)"
22159 msgstr ""
22160
22161 #. type: textblock
22162 #: ../fish/guestfish.pod:1194
22163 msgid ""
22164 "By default, guestfish will ignore case when tab-completing paths on the "
22165 "disk.  Use:"
22166 msgstr ""
22167
22168 #. type: verbatim
22169 #: ../fish/guestfish.pod:1197
22170 #, no-wrap
22171 msgid ""
22172 " set completion-ignore-case off\n"
22173 "\n"
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../fish/guestfish.pod:1199
22178 msgid "to make guestfish case sensitive."
22179 msgstr ""
22180
22181 #. type: =item
22182 #: ../fish/guestfish.pod:1203
22183 msgid "test1.img"
22184 msgstr ""
22185
22186 #. type: =item
22187 #: ../fish/guestfish.pod:1205
22188 msgid "test2.img (etc)"
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../fish/guestfish.pod:1207
22193 msgid ""
22194 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22195 "will be created in the file C<test1.img> in the current directory.  The "
22196 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22197 "the same name will be overwritten."
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../fish/guestfish.pod:1216
22202 msgid ""
22203 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
22204 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
22205 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
22206 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
22207 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
22208 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>."
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../fish/guestfish.pod:1247 ../test-tool/libguestfs-test-tool.pod:102 ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
22213 msgid ""
22214 "This program is free software; you can redistribute it and/or modify it "
22215 "under the terms of the GNU General Public License as published by the Free "
22216 "Software Foundation; either version 2 of the License, or (at your option) "
22217 "any later version."
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../fish/guestfish.pod:1252 ../test-tool/libguestfs-test-tool.pod:107 ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
22222 msgid ""
22223 "This program is distributed in the hope that it will be useful, but WITHOUT "
22224 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
22225 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
22226 "more details."
22227 msgstr ""
22228
22229 #. type: textblock
22230 #: ../fish/guestfish.pod:1257 ../test-tool/libguestfs-test-tool.pod:112 ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
22231 msgid ""
22232 "You should have received a copy of the GNU General Public License along with "
22233 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
22234 "Ave, Cambridge, MA 02139, USA."
22235 msgstr ""
22236
22237 #. type: =head2
22238 #: ../fish/guestfish-actions.pod:1
22239 msgid "add-cdrom"
22240 msgstr ""
22241
22242 #. type: verbatim
22243 #: ../fish/guestfish-actions.pod:3
22244 #, no-wrap
22245 msgid ""
22246 " add-cdrom filename\n"
22247 "\n"
22248 msgstr ""
22249
22250 #. type: textblock
22251 #: ../fish/guestfish-actions.pod:15
22252 msgid ""
22253 "This call checks for the existence of C<filename>.  This stops you from "
22254 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22255 "and C<http:> URLs.  To specify those, use the general L</config> call "
22256 "instead."
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../fish/guestfish-actions.pod:22
22261 msgid ""
22262 "If you just want to add an ISO file (often you use this as an efficient way "
22263 "to transfer large files into the guest), then you should probably use "
22264 "L</add-drive-ro> instead."
22265 msgstr ""
22266
22267 #. type: =head2
22268 #: ../fish/guestfish-actions.pod:35
22269 msgid "add-domain"
22270 msgstr ""
22271
22272 #. type: =head2
22273 #: ../fish/guestfish-actions.pod:37
22274 msgid "domain"
22275 msgstr ""
22276
22277 #. type: verbatim
22278 #: ../fish/guestfish-actions.pod:39
22279 #, no-wrap
22280 msgid ""
22281 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
22282 "[allowuuid:..]\n"
22283 "\n"
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../fish/guestfish-actions.pod:41
22288 msgid ""
22289 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
22290 "It works by connecting to libvirt, requesting the domain and domain XML from "
22291 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
22292 msgstr ""
22293
22294 #. type: textblock
22295 #: ../fish/guestfish-actions.pod:76
22296 msgid ""
22297 "The other optional parameters are passed directly through to "
22298 "L</add-drive-opts>."
22299 msgstr ""
22300
22301 #. type: textblock
22302 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968 ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307 ../fish/guestfish-actions.pod:3442
22303 msgid ""
22304 "This command has one or more optional arguments.  See L</OPTIONAL "
22305 "ARGUMENTS>."
22306 msgstr ""
22307
22308 #. type: =head2
22309 #: ../fish/guestfish-actions.pod:81
22310 msgid "add-drive"
22311 msgstr ""
22312
22313 #. type: verbatim
22314 #: ../fish/guestfish-actions.pod:83
22315 #, no-wrap
22316 msgid ""
22317 " add-drive filename\n"
22318 "\n"
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../fish/guestfish-actions.pod:85
22323 msgid ""
22324 "This function is the equivalent of calling L</add-drive-opts> with no "
22325 "optional parameters, so the disk is added writable, with the format being "
22326 "detected automatically."
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../fish/guestfish-actions.pod:89
22331 msgid ""
22332 "Automatic detection of the format opens you up to a potential security hole "
22333 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
22334 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
22335 "you should think about replacing calls to this function with calls to "
22336 "L</add-drive-opts>, and specifying the format."
22337 msgstr ""
22338
22339 #. type: =head2
22340 #: ../fish/guestfish-actions.pod:96
22341 msgid "add-drive-opts"
22342 msgstr ""
22343
22344 #. type: =head2
22345 #: ../fish/guestfish-actions.pod:98
22346 msgid "add"
22347 msgstr ""
22348
22349 #. type: verbatim
22350 #: ../fish/guestfish-actions.pod:100
22351 #, no-wrap
22352 msgid ""
22353 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
22354 "\n"
22355 msgstr ""
22356
22357 #. type: textblock
22358 #: ../fish/guestfish-actions.pod:127
22359 msgid ""
22360 "This forces the image format.  If you omit this (or use L</add-drive> or "
22361 "L</add-drive-ro>) then the format is automatically detected.  Possible "
22362 "formats include C<raw> and C<qcow2>."
22363 msgstr ""
22364
22365 #. type: textblock
22366 #: ../fish/guestfish-actions.pod:138
22367 msgid ""
22368 "This rarely-used option lets you emulate the behaviour of the deprecated "
22369 "L</add-drive-with-if> call (q.v.)"
22370 msgstr ""
22371
22372 #. type: =head2
22373 #: ../fish/guestfish-actions.pod:145
22374 msgid "add-drive-ro"
22375 msgstr ""
22376
22377 #. type: =head2
22378 #: ../fish/guestfish-actions.pod:147
22379 msgid "add-ro"
22380 msgstr ""
22381
22382 #. type: verbatim
22383 #: ../fish/guestfish-actions.pod:149
22384 #, no-wrap
22385 msgid ""
22386 " add-drive-ro filename\n"
22387 "\n"
22388 msgstr ""
22389
22390 #. type: textblock
22391 #: ../fish/guestfish-actions.pod:151
22392 msgid ""
22393 "This function is the equivalent of calling L</add-drive-opts> with the "
22394 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
22395 "is added read-only, with the format being detected automatically."
22396 msgstr ""
22397
22398 #. type: =head2
22399 #: ../fish/guestfish-actions.pod:156
22400 msgid "add-drive-ro-with-if"
22401 msgstr ""
22402
22403 #. type: verbatim
22404 #: ../fish/guestfish-actions.pod:158
22405 #, no-wrap
22406 msgid ""
22407 " add-drive-ro-with-if filename iface\n"
22408 "\n"
22409 msgstr ""
22410
22411 #. type: textblock
22412 #: ../fish/guestfish-actions.pod:160
22413 msgid ""
22414 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
22415 "interface emulation to use at run time."
22416 msgstr ""
22417
22418 #. type: =head2
22419 #: ../fish/guestfish-actions.pod:170
22420 msgid "add-drive-with-if"
22421 msgstr ""
22422
22423 #. type: verbatim
22424 #: ../fish/guestfish-actions.pod:172
22425 #, no-wrap
22426 msgid ""
22427 " add-drive-with-if filename iface\n"
22428 "\n"
22429 msgstr ""
22430
22431 #. type: textblock
22432 #: ../fish/guestfish-actions.pod:174
22433 msgid ""
22434 "This is the same as L</add-drive> but it allows you to specify the QEMU "
22435 "interface emulation to use at run time."
22436 msgstr ""
22437
22438 #. type: =head2
22439 #: ../fish/guestfish-actions.pod:184
22440 msgid "aug-clear"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../fish/guestfish-actions.pod:186
22445 #, no-wrap
22446 msgid ""
22447 " aug-clear augpath\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: =head2
22452 #: ../fish/guestfish-actions.pod:191
22453 msgid "aug-close"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../fish/guestfish-actions.pod:193
22458 #, no-wrap
22459 msgid ""
22460 " aug-close\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../fish/guestfish-actions.pod:195
22466 msgid ""
22467 "Close the current Augeas handle and free up any resources used by it.  After "
22468 "calling this, you have to call L</aug-init> again before you can use any "
22469 "other Augeas functions."
22470 msgstr ""
22471
22472 #. type: =head2
22473 #: ../fish/guestfish-actions.pod:200
22474 msgid "aug-defnode"
22475 msgstr ""
22476
22477 #. type: verbatim
22478 #: ../fish/guestfish-actions.pod:202
22479 #, no-wrap
22480 msgid ""
22481 " aug-defnode name expr val\n"
22482 "\n"
22483 msgstr ""
22484
22485 #. type: textblock
22486 #: ../fish/guestfish-actions.pod:207
22487 msgid ""
22488 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22489 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
22490 "containing that single node."
22491 msgstr ""
22492
22493 #. type: =head2
22494 #: ../fish/guestfish-actions.pod:215
22495 msgid "aug-defvar"
22496 msgstr ""
22497
22498 #. type: verbatim
22499 #: ../fish/guestfish-actions.pod:217
22500 #, no-wrap
22501 msgid ""
22502 " aug-defvar name expr\n"
22503 "\n"
22504 msgstr ""
22505
22506 #. type: =head2
22507 #: ../fish/guestfish-actions.pod:226
22508 msgid "aug-get"
22509 msgstr ""
22510
22511 #. type: verbatim
22512 #: ../fish/guestfish-actions.pod:228
22513 #, no-wrap
22514 msgid ""
22515 " aug-get augpath\n"
22516 "\n"
22517 msgstr ""
22518
22519 #. type: =head2
22520 #: ../fish/guestfish-actions.pod:233
22521 msgid "aug-init"
22522 msgstr ""
22523
22524 #. type: verbatim
22525 #: ../fish/guestfish-actions.pod:235
22526 #, no-wrap
22527 msgid ""
22528 " aug-init root flags\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../fish/guestfish-actions.pod:241
22534 msgid "You must call this before using any other L</aug-*> commands."
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../fish/guestfish-actions.pod:276
22539 msgid "Do not load the tree in L</aug-init>."
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../fish/guestfish-actions.pod:280
22544 msgid "To close the handle, you can call L</aug-close>."
22545 msgstr ""
22546
22547 #. type: =head2
22548 #: ../fish/guestfish-actions.pod:284
22549 msgid "aug-insert"
22550 msgstr ""
22551
22552 #. type: verbatim
22553 #: ../fish/guestfish-actions.pod:286
22554 #, no-wrap
22555 msgid ""
22556 " aug-insert augpath label true|false\n"
22557 "\n"
22558 msgstr ""
22559
22560 #. type: =head2
22561 #: ../fish/guestfish-actions.pod:296
22562 msgid "aug-load"
22563 msgstr ""
22564
22565 #. type: verbatim
22566 #: ../fish/guestfish-actions.pod:298
22567 #, no-wrap
22568 msgid ""
22569 " aug-load\n"
22570 "\n"
22571 msgstr ""
22572
22573 #. type: =head2
22574 #: ../fish/guestfish-actions.pod:305
22575 msgid "aug-ls"
22576 msgstr ""
22577
22578 #. type: verbatim
22579 #: ../fish/guestfish-actions.pod:307
22580 #, no-wrap
22581 msgid ""
22582 " aug-ls augpath\n"
22583 "\n"
22584 msgstr ""
22585
22586 #. type: textblock
22587 #: ../fish/guestfish-actions.pod:309
22588 msgid ""
22589 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
22590 "resulting nodes into alphabetical order."
22591 msgstr ""
22592
22593 #. type: =head2
22594 #: ../fish/guestfish-actions.pod:312
22595 msgid "aug-match"
22596 msgstr ""
22597
22598 #. type: verbatim
22599 #: ../fish/guestfish-actions.pod:314
22600 #, no-wrap
22601 msgid ""
22602 " aug-match augpath\n"
22603 "\n"
22604 msgstr ""
22605
22606 #. type: =head2
22607 #: ../fish/guestfish-actions.pod:320
22608 msgid "aug-mv"
22609 msgstr ""
22610
22611 #. type: verbatim
22612 #: ../fish/guestfish-actions.pod:322
22613 #, no-wrap
22614 msgid ""
22615 " aug-mv src dest\n"
22616 "\n"
22617 msgstr ""
22618
22619 #. type: =head2
22620 #: ../fish/guestfish-actions.pod:327
22621 msgid "aug-rm"
22622 msgstr ""
22623
22624 #. type: verbatim
22625 #: ../fish/guestfish-actions.pod:329
22626 #, no-wrap
22627 msgid ""
22628 " aug-rm augpath\n"
22629 "\n"
22630 msgstr ""
22631
22632 #. type: =head2
22633 #: ../fish/guestfish-actions.pod:335
22634 msgid "aug-save"
22635 msgstr ""
22636
22637 #. type: verbatim
22638 #: ../fish/guestfish-actions.pod:337
22639 #, no-wrap
22640 msgid ""
22641 " aug-save\n"
22642 "\n"
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../fish/guestfish-actions.pod:341
22647 msgid ""
22648 "The flags which were passed to L</aug-init> affect exactly how files are "
22649 "saved."
22650 msgstr ""
22651
22652 #. type: =head2
22653 #: ../fish/guestfish-actions.pod:344
22654 msgid "aug-set"
22655 msgstr ""
22656
22657 #. type: verbatim
22658 #: ../fish/guestfish-actions.pod:346
22659 #, no-wrap
22660 msgid ""
22661 " aug-set augpath val\n"
22662 "\n"
22663 msgstr ""
22664
22665 #. type: textblock
22666 #: ../fish/guestfish-actions.pod:350
22667 msgid ""
22668 "In the Augeas API, it is possible to clear a node by setting the value to "
22669 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22670 "this call.  Instead you must use the L</aug-clear> call."
22671 msgstr ""
22672
22673 #. type: =head2
22674 #: ../fish/guestfish-actions.pod:355
22675 msgid "available"
22676 msgstr ""
22677
22678 #. type: verbatim
22679 #: ../fish/guestfish-actions.pod:357
22680 #, no-wrap
22681 msgid ""
22682 " available 'groups ...'\n"
22683 "\n"
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../fish/guestfish-actions.pod:363
22688 msgid ""
22689 "The libguestfs groups, and the functions that those groups correspond to, "
22690 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22691 "runtime by calling L</available-all-groups>."
22692 msgstr ""
22693
22694 #. type: textblock
22695 #: ../fish/guestfish-actions.pod:387
22696 msgid "You must call L</launch> before calling this function."
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../fish/guestfish-actions.pod:409
22701 msgid ""
22702 "This call was added in version C<1.0.80>.  In previous versions of "
22703 "libguestfs all you could do would be to speculatively execute a command to "
22704 "find out if the daemon implemented it.  See also L</version>."
22705 msgstr ""
22706
22707 #. type: =head2
22708 #: ../fish/guestfish-actions.pod:416
22709 msgid "available-all-groups"
22710 msgstr ""
22711
22712 #. type: verbatim
22713 #: ../fish/guestfish-actions.pod:418
22714 #, no-wrap
22715 msgid ""
22716 " available-all-groups\n"
22717 "\n"
22718 msgstr ""
22719
22720 #. type: textblock
22721 #: ../fish/guestfish-actions.pod:420
22722 msgid ""
22723 "This command returns a list of all optional groups that this daemon knows "
22724 "about.  Note this returns both supported and unsupported groups.  To find "
22725 "out which ones the daemon can actually support you have to call "
22726 "L</available> on each member of the returned list."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../fish/guestfish-actions.pod:426
22731 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
22732 msgstr ""
22733
22734 #. type: =head2
22735 #: ../fish/guestfish-actions.pod:428
22736 msgid "base64-in"
22737 msgstr ""
22738
22739 #. type: verbatim
22740 #: ../fish/guestfish-actions.pod:430
22741 #, no-wrap
22742 msgid ""
22743 " base64-in (base64file|-) filename\n"
22744 "\n"
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862 ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255 ../fish/guestfish-actions.pod:4652 ../fish/guestfish-actions.pod:4664 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4738 ../fish/guestfish-actions.pod:4747 ../fish/guestfish-actions.pod:4801 ../fish/guestfish-actions.pod:4824
22749 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
22750 msgstr ""
22751
22752 #. type: =head2
22753 #: ../fish/guestfish-actions.pod:437
22754 msgid "base64-out"
22755 msgstr ""
22756
22757 #. type: verbatim
22758 #: ../fish/guestfish-actions.pod:439
22759 #, no-wrap
22760 msgid ""
22761 " base64-out filename (base64file|-)\n"
22762 "\n"
22763 msgstr ""
22764
22765 #. type: =head2
22766 #: ../fish/guestfish-actions.pod:446
22767 msgid "blockdev-flushbufs"
22768 msgstr ""
22769
22770 #. type: verbatim
22771 #: ../fish/guestfish-actions.pod:448
22772 #, no-wrap
22773 msgid ""
22774 " blockdev-flushbufs device\n"
22775 "\n"
22776 msgstr ""
22777
22778 #. type: =head2
22779 #: ../fish/guestfish-actions.pod:455
22780 msgid "blockdev-getbsz"
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../fish/guestfish-actions.pod:457
22785 #, no-wrap
22786 msgid ""
22787 " blockdev-getbsz device\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: =head2
22792 #: ../fish/guestfish-actions.pod:466
22793 msgid "blockdev-getro"
22794 msgstr ""
22795
22796 #. type: verbatim
22797 #: ../fish/guestfish-actions.pod:468
22798 #, no-wrap
22799 msgid ""
22800 " blockdev-getro device\n"
22801 "\n"
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../fish/guestfish-actions.pod:475
22806 msgid "blockdev-getsize64"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../fish/guestfish-actions.pod:477
22811 #, no-wrap
22812 msgid ""
22813 " blockdev-getsize64 device\n"
22814 "\n"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../fish/guestfish-actions.pod:481
22819 msgid "See also L</blockdev-getsz>."
22820 msgstr ""
22821
22822 #. type: =head2
22823 #: ../fish/guestfish-actions.pod:485
22824 msgid "blockdev-getss"
22825 msgstr ""
22826
22827 #. type: verbatim
22828 #: ../fish/guestfish-actions.pod:487
22829 #, no-wrap
22830 msgid ""
22831 " blockdev-getss device\n"
22832 "\n"
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../fish/guestfish-actions.pod:492
22837 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
22838 msgstr ""
22839
22840 #. type: =head2
22841 #: ../fish/guestfish-actions.pod:497
22842 msgid "blockdev-getsz"
22843 msgstr ""
22844
22845 #. type: verbatim
22846 #: ../fish/guestfish-actions.pod:499
22847 #, no-wrap
22848 msgid ""
22849 " blockdev-getsz device\n"
22850 "\n"
22851 msgstr ""
22852
22853 #. type: textblock
22854 #: ../fish/guestfish-actions.pod:504
22855 msgid ""
22856 "See also L</blockdev-getss> for the real sector size of the device, and "
22857 "L</blockdev-getsize64> for the more useful I<size in bytes>."
22858 msgstr ""
22859
22860 #. type: =head2
22861 #: ../fish/guestfish-actions.pod:510
22862 msgid "blockdev-rereadpt"
22863 msgstr ""
22864
22865 #. type: verbatim
22866 #: ../fish/guestfish-actions.pod:512
22867 #, no-wrap
22868 msgid ""
22869 " blockdev-rereadpt device\n"
22870 "\n"
22871 msgstr ""
22872
22873 #. type: =head2
22874 #: ../fish/guestfish-actions.pod:518
22875 msgid "blockdev-setbsz"
22876 msgstr ""
22877
22878 #. type: verbatim
22879 #: ../fish/guestfish-actions.pod:520
22880 #, no-wrap
22881 msgid ""
22882 " blockdev-setbsz device blocksize\n"
22883 "\n"
22884 msgstr ""
22885
22886 #. type: =head2
22887 #: ../fish/guestfish-actions.pod:529
22888 msgid "blockdev-setro"
22889 msgstr ""
22890
22891 #. type: verbatim
22892 #: ../fish/guestfish-actions.pod:531
22893 #, no-wrap
22894 msgid ""
22895 " blockdev-setro device\n"
22896 "\n"
22897 msgstr ""
22898
22899 #. type: =head2
22900 #: ../fish/guestfish-actions.pod:537
22901 msgid "blockdev-setrw"
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../fish/guestfish-actions.pod:539
22906 #, no-wrap
22907 msgid ""
22908 " blockdev-setrw device\n"
22909 "\n"
22910 msgstr ""
22911
22912 #. type: =head2
22913 #: ../fish/guestfish-actions.pod:545
22914 msgid "btrfs-filesystem-resize"
22915 msgstr ""
22916
22917 #. type: verbatim
22918 #: ../fish/guestfish-actions.pod:547
22919 #, no-wrap
22920 msgid ""
22921 " btrfs-filesystem-resize mountpoint [size:..]\n"
22922 "\n"
22923 msgstr ""
22924
22925 #. type: =head2
22926 #: ../fish/guestfish-actions.pod:570
22927 msgid "case-sensitive-path"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../fish/guestfish-actions.pod:572
22932 #, no-wrap
22933 msgid ""
22934 " case-sensitive-path path\n"
22935 "\n"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../fish/guestfish-actions.pod:596
22940 msgid ""
22941 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
22942 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22943 "how the directories were originally created under Windows)."
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../fish/guestfish-actions.pod:604
22948 msgid "See also L</realpath>."
22949 msgstr ""
22950
22951 #. type: =head2
22952 #: ../fish/guestfish-actions.pod:606
22953 msgid "cat"
22954 msgstr ""
22955
22956 #. type: verbatim
22957 #: ../fish/guestfish-actions.pod:608
22958 #, no-wrap
22959 msgid ""
22960 " cat path\n"
22961 "\n"
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../fish/guestfish-actions.pod:612
22966 msgid ""
22967 "Note that this function cannot correctly handle binary files (specifically, "
22968 "files containing C<\\0> character which is treated as end of string).  For "
22969 "those you need to use the L</read-file> or L</download> functions which have "
22970 "a more complex interface."
22971 msgstr ""
22972
22973 #. type: =head2
22974 #: ../fish/guestfish-actions.pod:620
22975 msgid "checksum"
22976 msgstr ""
22977
22978 #. type: verbatim
22979 #: ../fish/guestfish-actions.pod:622
22980 #, no-wrap
22981 msgid ""
22982 " checksum csumtype path\n"
22983 "\n"
22984 msgstr ""
22985
22986 #. type: textblock
22987 #: ../fish/guestfish-actions.pod:665
22988 msgid "To get the checksum for a device, use L</checksum-device>."
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../fish/guestfish-actions.pod:667
22993 msgid "To get the checksums for many files, use L</checksums-out>."
22994 msgstr ""
22995
22996 #. type: =head2
22997 #: ../fish/guestfish-actions.pod:669
22998 msgid "checksum-device"
22999 msgstr ""
23000
23001 #. type: verbatim
23002 #: ../fish/guestfish-actions.pod:671
23003 #, no-wrap
23004 msgid ""
23005 " checksum-device csumtype device\n"
23006 "\n"
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../fish/guestfish-actions.pod:673
23011 msgid ""
23012 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
23013 "device named C<device>.  For the types of checksums supported see the "
23014 "L</checksum> command."
23015 msgstr ""
23016
23017 #. type: =head2
23018 #: ../fish/guestfish-actions.pod:677
23019 msgid "checksums-out"
23020 msgstr ""
23021
23022 #. type: verbatim
23023 #: ../fish/guestfish-actions.pod:679
23024 #, no-wrap
23025 msgid ""
23026 " checksums-out csumtype directory (sumsfile|-)\n"
23027 "\n"
23028 msgstr ""
23029
23030 #. type: =head2
23031 #: ../fish/guestfish-actions.pod:695
23032 msgid "chmod"
23033 msgstr ""
23034
23035 #. type: verbatim
23036 #: ../fish/guestfish-actions.pod:697
23037 #, no-wrap
23038 msgid ""
23039 " chmod mode path\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: =head2
23044 #: ../fish/guestfish-actions.pod:708
23045 msgid "chown"
23046 msgstr ""
23047
23048 #. type: verbatim
23049 #: ../fish/guestfish-actions.pod:710
23050 #, no-wrap
23051 msgid ""
23052 " chown owner group path\n"
23053 "\n"
23054 msgstr ""
23055
23056 #. type: =head2
23057 #: ../fish/guestfish-actions.pod:718
23058 msgid "command"
23059 msgstr ""
23060
23061 #. type: verbatim
23062 #: ../fish/guestfish-actions.pod:720
23063 #, no-wrap
23064 msgid ""
23065 " command 'arguments ...'\n"
23066 "\n"
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../fish/guestfish-actions.pod:727
23071 msgid ""
23072 "The single parameter is an argv-style list of arguments.  The first element "
23073 "is the name of the program to run.  Subsequent elements are parameters.  The "
23074 "list must be non-empty (ie. must contain a program name).  Note that the "
23075 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
23076 msgstr ""
23077
23078 #. type: =head2
23079 #: ../fish/guestfish-actions.pod:755
23080 msgid "command-lines"
23081 msgstr ""
23082
23083 #. type: verbatim
23084 #: ../fish/guestfish-actions.pod:757
23085 #, no-wrap
23086 msgid ""
23087 " command-lines 'arguments ...'\n"
23088 "\n"
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../fish/guestfish-actions.pod:759
23093 msgid "This is the same as L</command>, but splits the result into a list of lines."
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../fish/guestfish-actions.pod:762
23098 msgid "See also: L</sh-lines>"
23099 msgstr ""
23100
23101 #. type: =head2
23102 #: ../fish/guestfish-actions.pod:767
23103 msgid "config"
23104 msgstr ""
23105
23106 #. type: verbatim
23107 #: ../fish/guestfish-actions.pod:769
23108 #, no-wrap
23109 msgid ""
23110 " config qemuparam qemuvalue\n"
23111 "\n"
23112 msgstr ""
23113
23114 #. type: =head2
23115 #: ../fish/guestfish-actions.pod:780
23116 msgid "copy-size"
23117 msgstr ""
23118
23119 #. type: verbatim
23120 #: ../fish/guestfish-actions.pod:782
23121 #, no-wrap
23122 msgid ""
23123 " copy-size src dest size\n"
23124 "\n"
23125 msgstr ""
23126
23127 #. type: =head2
23128 #: ../fish/guestfish-actions.pod:790
23129 msgid "cp"
23130 msgstr ""
23131
23132 #. type: verbatim
23133 #: ../fish/guestfish-actions.pod:792
23134 #, no-wrap
23135 msgid ""
23136 " cp src dest\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: =head2
23141 #: ../fish/guestfish-actions.pod:797
23142 msgid "cp-a"
23143 msgstr ""
23144
23145 #. type: verbatim
23146 #: ../fish/guestfish-actions.pod:799
23147 #, no-wrap
23148 msgid ""
23149 " cp-a src dest\n"
23150 "\n"
23151 msgstr ""
23152
23153 #. type: =head2
23154 #: ../fish/guestfish-actions.pod:804
23155 msgid "dd"
23156 msgstr ""
23157
23158 #. type: verbatim
23159 #: ../fish/guestfish-actions.pod:806
23160 #, no-wrap
23161 msgid ""
23162 " dd src dest\n"
23163 "\n"
23164 msgstr ""
23165
23166 #. type: textblock
23167 #: ../fish/guestfish-actions.pod:813
23168 msgid ""
23169 "If the destination is a device, it must be as large or larger than the "
23170 "source file or device, otherwise the copy will fail.  This command cannot do "
23171 "partial copies (see L</copy-size>)."
23172 msgstr ""
23173
23174 #. type: =head2
23175 #: ../fish/guestfish-actions.pod:817
23176 msgid "df"
23177 msgstr ""
23178
23179 #. type: verbatim
23180 #: ../fish/guestfish-actions.pod:819
23181 #, no-wrap
23182 msgid ""
23183 " df\n"
23184 "\n"
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
23189 msgid ""
23190 "This command is mostly useful for interactive sessions.  It is I<not> "
23191 "intended that you try to parse the output string.  Use L</statvfs> from "
23192 "programs."
23193 msgstr ""
23194
23195 #. type: =head2
23196 #: ../fish/guestfish-actions.pod:827
23197 msgid "df-h"
23198 msgstr ""
23199
23200 #. type: verbatim
23201 #: ../fish/guestfish-actions.pod:829
23202 #, no-wrap
23203 msgid ""
23204 " df-h\n"
23205 "\n"
23206 msgstr ""
23207
23208 #. type: =head2
23209 #: ../fish/guestfish-actions.pod:838
23210 msgid "dmesg"
23211 msgstr ""
23212
23213 #. type: verbatim
23214 #: ../fish/guestfish-actions.pod:840
23215 #, no-wrap
23216 msgid ""
23217 " dmesg\n"
23218 "\n"
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../fish/guestfish-actions.pod:846
23223 msgid ""
23224 "Another way to get the same information is to enable verbose messages with "
23225 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
23226 "before running the program."
23227 msgstr ""
23228
23229 #. type: =head2
23230 #: ../fish/guestfish-actions.pod:851
23231 msgid "download"
23232 msgstr ""
23233
23234 #. type: verbatim
23235 #: ../fish/guestfish-actions.pod:853
23236 #, no-wrap
23237 msgid ""
23238 " download remotefilename (filename|-)\n"
23239 "\n"
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../fish/guestfish-actions.pod:860
23244 msgid "See also L</upload>, L</cat>."
23245 msgstr ""
23246
23247 #. type: =head2
23248 #: ../fish/guestfish-actions.pod:864
23249 msgid "download-offset"
23250 msgstr ""
23251
23252 #. type: verbatim
23253 #: ../fish/guestfish-actions.pod:866
23254 #, no-wrap
23255 msgid ""
23256 " download-offset remotefilename (filename|-) offset size\n"
23257 "\n"
23258 msgstr ""
23259
23260 #. type: textblock
23261 #: ../fish/guestfish-actions.pod:874
23262 msgid ""
23263 "Note that there is no limit on the amount of data that can be downloaded "
23264 "with this call, unlike with L</pread>, and this call always reads the full "
23265 "amount unless an error occurs."
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../fish/guestfish-actions.pod:879
23270 msgid "See also L</download>, L</pread>."
23271 msgstr ""
23272
23273 #. type: =head2
23274 #: ../fish/guestfish-actions.pod:883
23275 msgid "drop-caches"
23276 msgstr ""
23277
23278 #. type: verbatim
23279 #: ../fish/guestfish-actions.pod:885
23280 #, no-wrap
23281 msgid ""
23282 " drop-caches whattodrop\n"
23283 "\n"
23284 msgstr ""
23285
23286 #. type: =head2
23287 #: ../fish/guestfish-actions.pod:897
23288 msgid "du"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../fish/guestfish-actions.pod:899
23293 #, no-wrap
23294 msgid ""
23295 " du path\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: =head2
23300 #: ../fish/guestfish-actions.pod:911
23301 msgid "e2fsck-f"
23302 msgstr ""
23303
23304 #. type: verbatim
23305 #: ../fish/guestfish-actions.pod:913
23306 #, no-wrap
23307 msgid ""
23308 " e2fsck-f device\n"
23309 "\n"
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../fish/guestfish-actions.pod:919
23314 msgid ""
23315 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
23316 "should use L</fsck>."
23317 msgstr ""
23318
23319 #. type: =head2
23320 #: ../fish/guestfish-actions.pod:922
23321 msgid "echo-daemon"
23322 msgstr ""
23323
23324 #. type: verbatim
23325 #: ../fish/guestfish-actions.pod:924
23326 #, no-wrap
23327 msgid ""
23328 " echo-daemon 'words ...'\n"
23329 "\n"
23330 msgstr ""
23331
23332 #. type: textblock
23333 #: ../fish/guestfish-actions.pod:931
23334 msgid "See also L</ping-daemon>."
23335 msgstr ""
23336
23337 #. type: =head2
23338 #: ../fish/guestfish-actions.pod:933
23339 msgid "egrep"
23340 msgstr ""
23341
23342 #. type: verbatim
23343 #: ../fish/guestfish-actions.pod:935
23344 #, no-wrap
23345 msgid ""
23346 " egrep regex path\n"
23347 "\n"
23348 msgstr ""
23349
23350 #. type: =head2
23351 #: ../fish/guestfish-actions.pod:943
23352 msgid "egrepi"
23353 msgstr ""
23354
23355 #. type: verbatim
23356 #: ../fish/guestfish-actions.pod:945
23357 #, no-wrap
23358 msgid ""
23359 " egrepi regex path\n"
23360 "\n"
23361 msgstr ""
23362
23363 #. type: =head2
23364 #: ../fish/guestfish-actions.pod:953
23365 msgid "equal"
23366 msgstr ""
23367
23368 #. type: verbatim
23369 #: ../fish/guestfish-actions.pod:955
23370 #, no-wrap
23371 msgid ""
23372 " equal file1 file2\n"
23373 "\n"
23374 msgstr ""
23375
23376 #. type: =head2
23377 #: ../fish/guestfish-actions.pod:962
23378 msgid "exists"
23379 msgstr ""
23380
23381 #. type: verbatim
23382 #: ../fish/guestfish-actions.pod:964
23383 #, no-wrap
23384 msgid ""
23385 " exists path\n"
23386 "\n"
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../fish/guestfish-actions.pod:969
23391 msgid "See also L</is-file>, L</is-dir>, L</stat>."
23392 msgstr ""
23393
23394 #. type: =head2
23395 #: ../fish/guestfish-actions.pod:971
23396 msgid "fallocate"
23397 msgstr ""
23398
23399 #. type: verbatim
23400 #: ../fish/guestfish-actions.pod:973
23401 #, no-wrap
23402 msgid ""
23403 " fallocate path len\n"
23404 "\n"
23405 msgstr ""
23406
23407 #. type: =head2
23408 #: ../fish/guestfish-actions.pod:990
23409 msgid "fallocate64"
23410 msgstr ""
23411
23412 #. type: verbatim
23413 #: ../fish/guestfish-actions.pod:992
23414 #, no-wrap
23415 msgid ""
23416 " fallocate64 path len\n"
23417 "\n"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../fish/guestfish-actions.pod:998
23422 msgid ""
23423 "Note that this call allocates disk blocks for the file.  To create a sparse "
23424 "file use L</truncate-size> instead."
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../fish/guestfish-actions.pod:1001
23429 msgid ""
23430 "The deprecated call L</fallocate> does the same, but owing to an oversight "
23431 "it only allowed 30 bit lengths to be specified, effectively limiting the "
23432 "maximum size of files created through that call to 1GB."
23433 msgstr ""
23434
23435 #. type: =head2
23436 #: ../fish/guestfish-actions.pod:1010
23437 msgid "fgrep"
23438 msgstr ""
23439
23440 #. type: verbatim
23441 #: ../fish/guestfish-actions.pod:1012
23442 #, no-wrap
23443 msgid ""
23444 " fgrep pattern path\n"
23445 "\n"
23446 msgstr ""
23447
23448 #. type: =head2
23449 #: ../fish/guestfish-actions.pod:1020
23450 msgid "fgrepi"
23451 msgstr ""
23452
23453 #. type: verbatim
23454 #: ../fish/guestfish-actions.pod:1022
23455 #, no-wrap
23456 msgid ""
23457 " fgrepi pattern path\n"
23458 "\n"
23459 msgstr ""
23460
23461 #. type: =head2
23462 #: ../fish/guestfish-actions.pod:1030
23463 msgid "file"
23464 msgstr ""
23465
23466 #. type: verbatim
23467 #: ../fish/guestfish-actions.pod:1032
23468 #, no-wrap
23469 msgid ""
23470 " file path\n"
23471 "\n"
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../fish/guestfish-actions.pod:1048
23476 msgid ""
23477 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
23478 "(etc), L</is-zero>."
23479 msgstr ""
23480
23481 #. type: =head2
23482 #: ../fish/guestfish-actions.pod:1051
23483 msgid "file-architecture"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../fish/guestfish-actions.pod:1053
23488 #, no-wrap
23489 msgid ""
23490 " file-architecture filename\n"
23491 "\n"
23492 msgstr ""
23493
23494 #. type: =head2
23495 #: ../fish/guestfish-actions.pod:1156
23496 msgid "filesize"
23497 msgstr ""
23498
23499 #. type: verbatim
23500 #: ../fish/guestfish-actions.pod:1158
23501 #, no-wrap
23502 msgid ""
23503 " filesize file\n"
23504 "\n"
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../fish/guestfish-actions.pod:1162
23509 msgid ""
23510 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
23511 "L</is-file> etc.  To get the size of block devices, use "
23512 "L</blockdev-getsize64>."
23513 msgstr ""
23514
23515 #. type: =head2
23516 #: ../fish/guestfish-actions.pod:1166
23517 msgid "fill"
23518 msgstr ""
23519
23520 #. type: verbatim
23521 #: ../fish/guestfish-actions.pod:1168
23522 #, no-wrap
23523 msgid ""
23524 " fill c len path\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: textblock
23529 #: ../fish/guestfish-actions.pod:1174
23530 msgid ""
23531 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23532 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
23533 "L</fill-pattern>."
23534 msgstr ""
23535
23536 #. type: =head2
23537 #: ../fish/guestfish-actions.pod:1179
23538 msgid "fill-pattern"
23539 msgstr ""
23540
23541 #. type: verbatim
23542 #: ../fish/guestfish-actions.pod:1181
23543 #, no-wrap
23544 msgid ""
23545 " fill-pattern pattern len path\n"
23546 "\n"
23547 msgstr ""
23548
23549 #. type: textblock
23550 #: ../fish/guestfish-actions.pod:1183
23551 msgid ""
23552 "This function is like L</fill> except that it creates a new file of length "
23553 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
23554 "is truncated if necessary to ensure the length of the file is exactly C<len> "
23555 "bytes."
23556 msgstr ""
23557
23558 #. type: =head2
23559 #: ../fish/guestfish-actions.pod:1188
23560 msgid "find"
23561 msgstr ""
23562
23563 #. type: verbatim
23564 #: ../fish/guestfish-actions.pod:1190
23565 #, no-wrap
23566 msgid ""
23567 " find directory\n"
23568 "\n"
23569 msgstr ""
23570
23571 #. type: textblock
23572 #: ../fish/guestfish-actions.pod:1204
23573 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../fish/guestfish-actions.pod:1217
23578 msgid "See also L</find0>."
23579 msgstr ""
23580
23581 #. type: =head2
23582 #: ../fish/guestfish-actions.pod:1222
23583 msgid "find0"
23584 msgstr ""
23585
23586 #. type: verbatim
23587 #: ../fish/guestfish-actions.pod:1224
23588 #, no-wrap
23589 msgid ""
23590 " find0 directory (files|-)\n"
23591 "\n"
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../fish/guestfish-actions.pod:1230
23596 msgid "This command works the same way as L</find> with the following exceptions:"
23597 msgstr ""
23598
23599 #. type: =head2
23600 #: ../fish/guestfish-actions.pod:1257
23601 msgid "findfs-label"
23602 msgstr ""
23603
23604 #. type: verbatim
23605 #: ../fish/guestfish-actions.pod:1259
23606 #, no-wrap
23607 msgid ""
23608 " findfs-label label\n"
23609 "\n"
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../fish/guestfish-actions.pod:1265
23614 msgid "To find the label of a filesystem, use L</vfs-label>."
23615 msgstr ""
23616
23617 #. type: =head2
23618 #: ../fish/guestfish-actions.pod:1267
23619 msgid "findfs-uuid"
23620 msgstr ""
23621
23622 #. type: verbatim
23623 #: ../fish/guestfish-actions.pod:1269
23624 #, no-wrap
23625 msgid ""
23626 " findfs-uuid uuid\n"
23627 "\n"
23628 msgstr ""
23629
23630 #. type: textblock
23631 #: ../fish/guestfish-actions.pod:1275
23632 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
23633 msgstr ""
23634
23635 #. type: =head2
23636 #: ../fish/guestfish-actions.pod:1277
23637 msgid "fsck"
23638 msgstr ""
23639
23640 #. type: verbatim
23641 #: ../fish/guestfish-actions.pod:1279
23642 #, no-wrap
23643 msgid ""
23644 " fsck fstype device\n"
23645 "\n"
23646 msgstr ""
23647
23648 #. type: =head2
23649 #: ../fish/guestfish-actions.pod:1309
23650 msgid "get-append"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../fish/guestfish-actions.pod:1311
23655 #, no-wrap
23656 msgid ""
23657 " get-append\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: =head2
23662 #: ../fish/guestfish-actions.pod:1318
23663 msgid "get-attach-method"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../fish/guestfish-actions.pod:1320
23668 #, no-wrap
23669 msgid ""
23670 " get-attach-method\n"
23671 "\n"
23672 msgstr ""
23673
23674 #. type: textblock
23675 #: ../fish/guestfish-actions.pod:1322
23676 msgid "Return the current attach method.  See L</set-attach-method>."
23677 msgstr ""
23678
23679 #. type: =head2
23680 #: ../fish/guestfish-actions.pod:1324
23681 msgid "get-autosync"
23682 msgstr ""
23683
23684 #. type: verbatim
23685 #: ../fish/guestfish-actions.pod:1326
23686 #, no-wrap
23687 msgid ""
23688 " get-autosync\n"
23689 "\n"
23690 msgstr ""
23691
23692 #. type: =head2
23693 #: ../fish/guestfish-actions.pod:1330
23694 msgid "get-direct"
23695 msgstr ""
23696
23697 #. type: verbatim
23698 #: ../fish/guestfish-actions.pod:1332
23699 #, no-wrap
23700 msgid ""
23701 " get-direct\n"
23702 "\n"
23703 msgstr ""
23704
23705 #. type: =head2
23706 #: ../fish/guestfish-actions.pod:1336
23707 msgid "get-e2label"
23708 msgstr ""
23709
23710 #. type: verbatim
23711 #: ../fish/guestfish-actions.pod:1338
23712 #, no-wrap
23713 msgid ""
23714 " get-e2label device\n"
23715 "\n"
23716 msgstr ""
23717
23718 #. type: =head2
23719 #: ../fish/guestfish-actions.pod:1350
23720 msgid "get-e2uuid"
23721 msgstr ""
23722
23723 #. type: verbatim
23724 #: ../fish/guestfish-actions.pod:1352
23725 #, no-wrap
23726 msgid ""
23727 " get-e2uuid device\n"
23728 "\n"
23729 msgstr ""
23730
23731 #. type: =head2
23732 #: ../fish/guestfish-actions.pod:1364
23733 msgid "get-memsize"
23734 msgstr ""
23735
23736 #. type: verbatim
23737 #: ../fish/guestfish-actions.pod:1366
23738 #, no-wrap
23739 msgid ""
23740 " get-memsize\n"
23741 "\n"
23742 msgstr ""
23743
23744 #. type: textblock
23745 #: ../fish/guestfish-actions.pod:1371
23746 msgid ""
23747 "If L</set-memsize> was not called on this handle, and if "
23748 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23749 "value for memsize."
23750 msgstr ""
23751
23752 #. type: =head2
23753 #: ../fish/guestfish-actions.pod:1378
23754 msgid "get-network"
23755 msgstr ""
23756
23757 #. type: verbatim
23758 #: ../fish/guestfish-actions.pod:1380
23759 #, no-wrap
23760 msgid ""
23761 " get-network\n"
23762 "\n"
23763 msgstr ""
23764
23765 #. type: =head2
23766 #: ../fish/guestfish-actions.pod:1384
23767 msgid "get-path"
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../fish/guestfish-actions.pod:1386
23772 #, no-wrap
23773 msgid ""
23774 " get-path\n"
23775 "\n"
23776 msgstr ""
23777
23778 #. type: =head2
23779 #: ../fish/guestfish-actions.pod:1393
23780 msgid "get-pgroup"
23781 msgstr ""
23782
23783 #. type: verbatim
23784 #: ../fish/guestfish-actions.pod:1395
23785 #, no-wrap
23786 msgid ""
23787 " get-pgroup\n"
23788 "\n"
23789 msgstr ""
23790
23791 #. type: =head2
23792 #: ../fish/guestfish-actions.pod:1399
23793 msgid "get-pid"
23794 msgstr ""
23795
23796 #. type: =head2
23797 #: ../fish/guestfish-actions.pod:1401
23798 msgid "pid"
23799 msgstr ""
23800
23801 #. type: verbatim
23802 #: ../fish/guestfish-actions.pod:1403
23803 #, no-wrap
23804 msgid ""
23805 " get-pid\n"
23806 "\n"
23807 msgstr ""
23808
23809 #. type: =head2
23810 #: ../fish/guestfish-actions.pod:1410
23811 msgid "get-qemu"
23812 msgstr ""
23813
23814 #. type: verbatim
23815 #: ../fish/guestfish-actions.pod:1412
23816 #, no-wrap
23817 msgid ""
23818 " get-qemu\n"
23819 "\n"
23820 msgstr ""
23821
23822 #. type: =head2
23823 #: ../fish/guestfish-actions.pod:1419
23824 msgid "get-recovery-proc"
23825 msgstr ""
23826
23827 #. type: verbatim
23828 #: ../fish/guestfish-actions.pod:1421
23829 #, no-wrap
23830 msgid ""
23831 " get-recovery-proc\n"
23832 "\n"
23833 msgstr ""
23834
23835 #. type: =head2
23836 #: ../fish/guestfish-actions.pod:1425
23837 msgid "get-selinux"
23838 msgstr ""
23839
23840 #. type: verbatim
23841 #: ../fish/guestfish-actions.pod:1427
23842 #, no-wrap
23843 msgid ""
23844 " get-selinux\n"
23845 "\n"
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../fish/guestfish-actions.pod:1429
23850 msgid ""
23851 "This returns the current setting of the selinux flag which is passed to the "
23852 "appliance at boot time.  See L</set-selinux>."
23853 msgstr ""
23854
23855 #. type: =head2
23856 #: ../fish/guestfish-actions.pod:1435
23857 msgid "get-state"
23858 msgstr ""
23859
23860 #. type: verbatim
23861 #: ../fish/guestfish-actions.pod:1437
23862 #, no-wrap
23863 msgid ""
23864 " get-state\n"
23865 "\n"
23866 msgstr ""
23867
23868 #. type: =head2
23869 #: ../fish/guestfish-actions.pod:1444
23870 msgid "get-trace"
23871 msgstr ""
23872
23873 #. type: verbatim
23874 #: ../fish/guestfish-actions.pod:1446
23875 #, no-wrap
23876 msgid ""
23877 " get-trace\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: =head2
23882 #: ../fish/guestfish-actions.pod:1450
23883 msgid "get-umask"
23884 msgstr ""
23885
23886 #. type: verbatim
23887 #: ../fish/guestfish-actions.pod:1452
23888 #, no-wrap
23889 msgid ""
23890 " get-umask\n"
23891 "\n"
23892 msgstr ""
23893
23894 #. type: textblock
23895 #: ../fish/guestfish-actions.pod:1454
23896 msgid ""
23897 "Return the current umask.  By default the umask is C<022> unless it has been "
23898 "set by calling L</umask>."
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../fish/guestfish-actions.pod:1457
23903 msgid "get-verbose"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../fish/guestfish-actions.pod:1459
23908 #, no-wrap
23909 msgid ""
23910 " get-verbose\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: =head2
23915 #: ../fish/guestfish-actions.pod:1463
23916 msgid "getcon"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../fish/guestfish-actions.pod:1465
23921 #, no-wrap
23922 msgid ""
23923 " getcon\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../fish/guestfish-actions.pod:1469
23929 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
23930 msgstr ""
23931
23932 #. type: =head2
23933 #: ../fish/guestfish-actions.pod:1472
23934 msgid "getxattr"
23935 msgstr ""
23936
23937 #. type: verbatim
23938 #: ../fish/guestfish-actions.pod:1474
23939 #, no-wrap
23940 msgid ""
23941 " getxattr path name\n"
23942 "\n"
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../fish/guestfish-actions.pod:1476
23947 msgid ""
23948 "Get a single extended attribute from file C<path> named C<name>.  This call "
23949 "follows symlinks.  If you want to lookup an extended attribute for the "
23950 "symlink itself, use L</lgetxattr>."
23951 msgstr ""
23952
23953 #. type: textblock
23954 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
23955 msgid ""
23956 "Normally it is better to get all extended attributes from a file in one go "
23957 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
23958 "buggy and do not provide a way to list out attributes.  For these "
23959 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
23960 "attributes you want in advance and call this function."
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../fish/guestfish-actions.pod:1490
23965 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
23966 msgstr ""
23967
23968 #. type: =head2
23969 #: ../fish/guestfish-actions.pod:1492
23970 msgid "getxattrs"
23971 msgstr ""
23972
23973 #. type: verbatim
23974 #: ../fish/guestfish-actions.pod:1494
23975 #, no-wrap
23976 msgid ""
23977 " getxattrs path\n"
23978 "\n"
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../fish/guestfish-actions.pod:1502
23983 msgid "See also: L</lgetxattrs>, L<attr(5)>."
23984 msgstr ""
23985
23986 #. type: =head2
23987 #: ../fish/guestfish-actions.pod:1504
23988 msgid "glob-expand"
23989 msgstr ""
23990
23991 #. type: verbatim
23992 #: ../fish/guestfish-actions.pod:1506
23993 #, no-wrap
23994 msgid ""
23995 " glob-expand pattern\n"
23996 "\n"
23997 msgstr ""
23998
23999 #. type: =head2
24000 #: ../fish/guestfish-actions.pod:1519
24001 msgid "grep"
24002 msgstr ""
24003
24004 #. type: verbatim
24005 #: ../fish/guestfish-actions.pod:1521
24006 #, no-wrap
24007 msgid ""
24008 " grep regex path\n"
24009 "\n"
24010 msgstr ""
24011
24012 #. type: =head2
24013 #: ../fish/guestfish-actions.pod:1529
24014 msgid "grepi"
24015 msgstr ""
24016
24017 #. type: verbatim
24018 #: ../fish/guestfish-actions.pod:1531
24019 #, no-wrap
24020 msgid ""
24021 " grepi regex path\n"
24022 "\n"
24023 msgstr ""
24024
24025 #. type: =head2
24026 #: ../fish/guestfish-actions.pod:1539
24027 msgid "grub-install"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../fish/guestfish-actions.pod:1541
24032 #, no-wrap
24033 msgid ""
24034 " grub-install root device\n"
24035 "\n"
24036 msgstr ""
24037
24038 #. type: =head2
24039 #: ../fish/guestfish-actions.pod:1557
24040 msgid "head"
24041 msgstr ""
24042
24043 #. type: verbatim
24044 #: ../fish/guestfish-actions.pod:1559
24045 #, no-wrap
24046 msgid ""
24047 " head path\n"
24048 "\n"
24049 msgstr ""
24050
24051 #. type: =head2
24052 #: ../fish/guestfish-actions.pod:1567
24053 msgid "head-n"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../fish/guestfish-actions.pod:1569
24058 #, no-wrap
24059 msgid ""
24060 " head-n nrlines path\n"
24061 "\n"
24062 msgstr ""
24063
24064 #. type: =head2
24065 #: ../fish/guestfish-actions.pod:1582
24066 msgid "hexdump"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../fish/guestfish-actions.pod:1584
24071 #, no-wrap
24072 msgid ""
24073 " hexdump path\n"
24074 "\n"
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../fish/guestfish-actions.pod:1592
24079 msgid "initrd-cat"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../fish/guestfish-actions.pod:1594
24084 #, no-wrap
24085 msgid ""
24086 " initrd-cat initrdpath filename\n"
24087 "\n"
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../fish/guestfish-actions.pod:1606
24092 msgid "See also L</initrd-list>."
24093 msgstr ""
24094
24095 #. type: =head2
24096 #: ../fish/guestfish-actions.pod:1611
24097 msgid "initrd-list"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../fish/guestfish-actions.pod:1613
24102 #, no-wrap
24103 msgid ""
24104 " initrd-list path\n"
24105 "\n"
24106 msgstr ""
24107
24108 #. type: =head2
24109 #: ../fish/guestfish-actions.pod:1625
24110 msgid "inotify-add-watch"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../fish/guestfish-actions.pod:1627
24115 #, no-wrap
24116 msgid ""
24117 " inotify-add-watch path mask\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: =head2
24122 #: ../fish/guestfish-actions.pod:1639
24123 msgid "inotify-close"
24124 msgstr ""
24125
24126 #. type: verbatim
24127 #: ../fish/guestfish-actions.pod:1641
24128 #, no-wrap
24129 msgid ""
24130 " inotify-close\n"
24131 "\n"
24132 msgstr ""
24133
24134 #. type: =head2
24135 #: ../fish/guestfish-actions.pod:1647
24136 msgid "inotify-files"
24137 msgstr ""
24138
24139 #. type: verbatim
24140 #: ../fish/guestfish-actions.pod:1649
24141 #, no-wrap
24142 msgid ""
24143 " inotify-files\n"
24144 "\n"
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../fish/guestfish-actions.pod:1651
24149 msgid ""
24150 "This function is a helpful wrapper around L</inotify-read> which just "
24151 "returns a list of pathnames of objects that were touched.  The returned "
24152 "pathnames are sorted and deduplicated."
24153 msgstr ""
24154
24155 #. type: =head2
24156 #: ../fish/guestfish-actions.pod:1655
24157 msgid "inotify-init"
24158 msgstr ""
24159
24160 #. type: verbatim
24161 #: ../fish/guestfish-actions.pod:1657
24162 #, no-wrap
24163 msgid ""
24164 " inotify-init maxevents\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../fish/guestfish-actions.pod:1663
24170 msgid ""
24171 "C<maxevents> is the maximum number of events which will be queued up between "
24172 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
24173 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
24174 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
24175 "but records the fact that it threw them away by setting a flag "
24176 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
24177 msgstr ""
24178
24179 #. type: textblock
24180 #: ../fish/guestfish-actions.pod:1673
24181 msgid ""
24182 "Before any events are generated, you have to add some watches to the "
24183 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
24184 "L</inotify-watch-all>."
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../fish/guestfish-actions.pod:1679
24189 msgid ""
24190 "Queued up events should be read periodically by calling L</inotify-read> (or "
24191 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
24192 "If you don't read the events out often enough then you risk the internal "
24193 "queue overflowing."
24194 msgstr ""
24195
24196 #. type: textblock
24197 #: ../fish/guestfish-actions.pod:1686
24198 msgid ""
24199 "The handle should be closed after use by calling L</inotify-close>.  This "
24200 "also removes any watches automatically."
24201 msgstr ""
24202
24203 #. type: =head2
24204 #: ../fish/guestfish-actions.pod:1695
24205 msgid "inotify-read"
24206 msgstr ""
24207
24208 #. type: verbatim
24209 #: ../fish/guestfish-actions.pod:1697
24210 #, no-wrap
24211 msgid ""
24212 " inotify-read\n"
24213 "\n"
24214 msgstr ""
24215
24216 #. type: =head2
24217 #: ../fish/guestfish-actions.pod:1710
24218 msgid "inotify-rm-watch"
24219 msgstr ""
24220
24221 #. type: verbatim
24222 #: ../fish/guestfish-actions.pod:1712
24223 #, no-wrap
24224 msgid ""
24225 " inotify-rm-watch wd\n"
24226 "\n"
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../fish/guestfish-actions.pod:1714
24231 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
24232 msgstr ""
24233
24234 #. type: =head2
24235 #: ../fish/guestfish-actions.pod:1717
24236 msgid "inspect-get-arch"
24237 msgstr ""
24238
24239 #. type: verbatim
24240 #: ../fish/guestfish-actions.pod:1719
24241 #, no-wrap
24242 msgid ""
24243 " inspect-get-arch root\n"
24244 "\n"
24245 msgstr ""
24246
24247 #. type: textblock
24248 #: ../fish/guestfish-actions.pod:1721
24249 msgid ""
24250 "This returns the architecture of the inspected operating system.  The "
24251 "possible return values are listed under L</file-architecture>."
24252 msgstr ""
24253
24254 #. type: =head2
24255 #: ../fish/guestfish-actions.pod:1730
24256 msgid "inspect-get-distro"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../fish/guestfish-actions.pod:1732
24261 #, no-wrap
24262 msgid ""
24263 " inspect-get-distro root\n"
24264 "\n"
24265 msgstr ""
24266
24267 #. type: =head2
24268 #: ../fish/guestfish-actions.pod:1813
24269 msgid "inspect-get-drive-mappings"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../fish/guestfish-actions.pod:1815
24274 #, no-wrap
24275 msgid ""
24276 " inspect-get-drive-mappings root\n"
24277 "\n"
24278 msgstr ""
24279
24280 #. type: textblock
24281 #: ../fish/guestfish-actions.pod:1842
24282 msgid ""
24283 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24284 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
24285 msgstr ""
24286
24287 #. type: =head2
24288 #: ../fish/guestfish-actions.pod:1846
24289 msgid "inspect-get-filesystems"
24290 msgstr ""
24291
24292 #. type: verbatim
24293 #: ../fish/guestfish-actions.pod:1848
24294 #, no-wrap
24295 msgid ""
24296 " inspect-get-filesystems root\n"
24297 "\n"
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../fish/guestfish-actions.pod:1858
24302 msgid ""
24303 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24304 "L</inspect-get-mountpoints>."
24305 msgstr ""
24306
24307 #. type: =head2
24308 #: ../fish/guestfish-actions.pod:1861
24309 msgid "inspect-get-format"
24310 msgstr ""
24311
24312 #. type: verbatim
24313 #: ../fish/guestfish-actions.pod:1863
24314 #, no-wrap
24315 msgid ""
24316 " inspect-get-format root\n"
24317 "\n"
24318 msgstr ""
24319
24320 #. type: =head2
24321 #: ../fish/guestfish-actions.pod:1892
24322 msgid "inspect-get-hostname"
24323 msgstr ""
24324
24325 #. type: verbatim
24326 #: ../fish/guestfish-actions.pod:1894
24327 #, no-wrap
24328 msgid ""
24329 " inspect-get-hostname root\n"
24330 "\n"
24331 msgstr ""
24332
24333 #. type: =head2
24334 #: ../fish/guestfish-actions.pod:1904
24335 msgid "inspect-get-icon"
24336 msgstr ""
24337
24338 #. type: verbatim
24339 #: ../fish/guestfish-actions.pod:1906
24340 #, no-wrap
24341 msgid ""
24342 " inspect-get-icon root [favicon:..] [highquality:..]\n"
24343 "\n"
24344 msgstr ""
24345
24346 #. type: =head2
24347 #: ../fish/guestfish-actions.pod:1970
24348 msgid "inspect-get-major-version"
24349 msgstr ""
24350
24351 #. type: verbatim
24352 #: ../fish/guestfish-actions.pod:1972
24353 #, no-wrap
24354 msgid ""
24355 " inspect-get-major-version root\n"
24356 "\n"
24357 msgstr ""
24358
24359 #. type: =head2
24360 #: ../fish/guestfish-actions.pod:1988
24361 msgid "inspect-get-minor-version"
24362 msgstr ""
24363
24364 #. type: verbatim
24365 #: ../fish/guestfish-actions.pod:1990
24366 #, no-wrap
24367 msgid ""
24368 " inspect-get-minor-version root\n"
24369 "\n"
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../fish/guestfish-actions.pod:1997
24374 msgid ""
24375 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24376 "L</inspect-get-major-version>."
24377 msgstr ""
24378
24379 #. type: =head2
24380 #: ../fish/guestfish-actions.pod:2000
24381 msgid "inspect-get-mountpoints"
24382 msgstr ""
24383
24384 #. type: verbatim
24385 #: ../fish/guestfish-actions.pod:2002
24386 #, no-wrap
24387 msgid ""
24388 " inspect-get-mountpoints root\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../fish/guestfish-actions.pod:2021
24394 msgid ""
24395 "For operating systems like Windows which still use drive letters, this call "
24396 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24397 "information about the mapping of drive letters to partitions, see "
24398 "L</inspect-get-drive-mappings>."
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../fish/guestfish-actions.pod:2027
24403 msgid ""
24404 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24405 "L</inspect-get-filesystems>."
24406 msgstr ""
24407
24408 #. type: =head2
24409 #: ../fish/guestfish-actions.pod:2030
24410 msgid "inspect-get-package-format"
24411 msgstr ""
24412
24413 #. type: verbatim
24414 #: ../fish/guestfish-actions.pod:2032
24415 #, no-wrap
24416 msgid ""
24417 " inspect-get-package-format root\n"
24418 "\n"
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../fish/guestfish-actions.pod:2034
24423 msgid ""
24424 "This function and L</inspect-get-package-management> return the package "
24425 "format and package management tool used by the inspected operating system.  "
24426 "For example for Fedora these functions would return C<rpm> (package format) "
24427 "and C<yum> (package management)."
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../fish/guestfish-actions.pod:2049
24432 msgid "inspect-get-package-management"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../fish/guestfish-actions.pod:2051
24437 #, no-wrap
24438 msgid ""
24439 " inspect-get-package-management root\n"
24440 "\n"
24441 msgstr ""
24442
24443 #. type: textblock
24444 #: ../fish/guestfish-actions.pod:2053
24445 msgid ""
24446 "L</inspect-get-package-format> and this function return the package format "
24447 "and package management tool used by the inspected operating system.  For "
24448 "example for Fedora these functions would return C<rpm> (package format) and "
24449 "C<yum> (package management)."
24450 msgstr ""
24451
24452 #. type: =head2
24453 #: ../fish/guestfish-actions.pod:2070
24454 msgid "inspect-get-product-name"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../fish/guestfish-actions.pod:2072
24459 #, no-wrap
24460 msgid ""
24461 " inspect-get-product-name root\n"
24462 "\n"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../fish/guestfish-actions.pod:2084
24467 msgid "inspect-get-product-variant"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../fish/guestfish-actions.pod:2086
24472 #, no-wrap
24473 msgid ""
24474 " inspect-get-product-variant root\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: textblock
24479 #: ../fish/guestfish-actions.pod:2107
24480 msgid ""
24481 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24482 "L</inspect-get-product-name>, L</inspect-get-major-version>."
24483 msgstr ""
24484
24485 #. type: =head2
24486 #: ../fish/guestfish-actions.pod:2111
24487 msgid "inspect-get-roots"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../fish/guestfish-actions.pod:2113
24492 #, no-wrap
24493 msgid ""
24494 " inspect-get-roots\n"
24495 "\n"
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../fish/guestfish-actions.pod:2115
24500 msgid ""
24501 "This function is a convenient way to get the list of root devices, as "
24502 "returned from a previous call to L</inspect-os>, but without redoing the "
24503 "whole inspection process."
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../fish/guestfish-actions.pod:2119
24508 msgid ""
24509 "This returns an empty list if either no root devices were found or the "
24510 "caller has not called L</inspect-os>."
24511 msgstr ""
24512
24513 #. type: =head2
24514 #: ../fish/guestfish-actions.pod:2124
24515 msgid "inspect-get-type"
24516 msgstr ""
24517
24518 #. type: verbatim
24519 #: ../fish/guestfish-actions.pod:2126
24520 #, no-wrap
24521 msgid ""
24522 " inspect-get-type root\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: =head2
24527 #: ../fish/guestfish-actions.pod:2156
24528 msgid "inspect-get-windows-current-control-set"
24529 msgstr ""
24530
24531 #. type: verbatim
24532 #: ../fish/guestfish-actions.pod:2158
24533 #, no-wrap
24534 msgid ""
24535 " inspect-get-windows-current-control-set root\n"
24536 "\n"
24537 msgstr ""
24538
24539 #. type: =head2
24540 #: ../fish/guestfish-actions.pod:2169
24541 msgid "inspect-get-windows-systemroot"
24542 msgstr ""
24543
24544 #. type: verbatim
24545 #: ../fish/guestfish-actions.pod:2171
24546 #, no-wrap
24547 msgid ""
24548 " inspect-get-windows-systemroot root\n"
24549 "\n"
24550 msgstr ""
24551
24552 #. type: =head2
24553 #: ../fish/guestfish-actions.pod:2182
24554 msgid "inspect-is-live"
24555 msgstr ""
24556
24557 #. type: verbatim
24558 #: ../fish/guestfish-actions.pod:2184
24559 #, no-wrap
24560 msgid ""
24561 " inspect-is-live root\n"
24562 "\n"
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../fish/guestfish-actions.pod:2186
24567 msgid ""
24568 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24569 "then this returns true if a live image was detected on the disk."
24570 msgstr ""
24571
24572 #. type: =head2
24573 #: ../fish/guestfish-actions.pod:2192
24574 msgid "inspect-is-multipart"
24575 msgstr ""
24576
24577 #. type: verbatim
24578 #: ../fish/guestfish-actions.pod:2194
24579 #, no-wrap
24580 msgid ""
24581 " inspect-is-multipart root\n"
24582 "\n"
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../fish/guestfish-actions.pod:2196
24587 msgid ""
24588 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24589 "then this returns true if the disk is part of a set."
24590 msgstr ""
24591
24592 #. type: =head2
24593 #: ../fish/guestfish-actions.pod:2202
24594 msgid "inspect-is-netinst"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../fish/guestfish-actions.pod:2204
24599 #, no-wrap
24600 msgid ""
24601 " inspect-is-netinst root\n"
24602 "\n"
24603 msgstr ""
24604
24605 #. type: textblock
24606 #: ../fish/guestfish-actions.pod:2206
24607 msgid ""
24608 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
24609 "then this returns true if the disk is a network installer, ie. not a "
24610 "self-contained install CD but one which is likely to require network access "
24611 "to complete the install."
24612 msgstr ""
24613
24614 #. type: =head2
24615 #: ../fish/guestfish-actions.pod:2214
24616 msgid "inspect-list-applications"
24617 msgstr ""
24618
24619 #. type: verbatim
24620 #: ../fish/guestfish-actions.pod:2216
24621 #, no-wrap
24622 msgid ""
24623 " inspect-list-applications root\n"
24624 "\n"
24625 msgstr ""
24626
24627 #. type: textblock
24628 #: ../fish/guestfish-actions.pod:2220
24629 msgid ""
24630 "I<Note:> This call works differently from other parts of the inspection "
24631 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
24632 "then mount up the disks, before calling this.  Listing applications is a "
24633 "significantly more difficult operation which requires access to the full "
24634 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
24635 "are just returning data cached in the libguestfs handle, this call actually "
24636 "reads parts of the mounted filesystems during the call."
24637 msgstr ""
24638
24639 #. type: =head2
24640 #: ../fish/guestfish-actions.pod:2310
24641 msgid "inspect-os"
24642 msgstr ""
24643
24644 #. type: verbatim
24645 #: ../fish/guestfish-actions.pod:2312
24646 #, no-wrap
24647 msgid ""
24648 " inspect-os\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: textblock
24653 #: ../fish/guestfish-actions.pod:2327
24654 msgid ""
24655 "You can pass the root string(s) returned to other L</inspect-get-*> "
24656 "functions in order to query further information about each operating system, "
24657 "such as the name and version."
24658 msgstr ""
24659
24660 #. type: textblock
24661 #: ../fish/guestfish-actions.pod:2332
24662 msgid ""
24663 "This function uses other libguestfs features such as L</mount-ro> and "
24664 "L</umount-all> in order to mount and unmount filesystems and look at the "
24665 "contents.  This should be called with no disks currently mounted.  The "
24666 "function may also use Augeas, so any existing Augeas handle will be closed."
24667 msgstr ""
24668
24669 #. type: textblock
24670 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2601
24671 msgid "See also L</list-filesystems>."
24672 msgstr ""
24673
24674 #. type: =head2
24675 #: ../fish/guestfish-actions.pod:2346
24676 msgid "is-blockdev"
24677 msgstr ""
24678
24679 #. type: verbatim
24680 #: ../fish/guestfish-actions.pod:2348
24681 #, no-wrap
24682 msgid ""
24683 " is-blockdev path\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: textblock
24688 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399 ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2452
24689 msgid "See also L</stat>."
24690 msgstr ""
24691
24692 #. type: =head2
24693 #: ../fish/guestfish-actions.pod:2355
24694 msgid "is-busy"
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../fish/guestfish-actions.pod:2357
24699 #, no-wrap
24700 msgid ""
24701 " is-busy\n"
24702 "\n"
24703 msgstr ""
24704
24705 #. type: =head2
24706 #: ../fish/guestfish-actions.pod:2364
24707 msgid "is-chardev"
24708 msgstr ""
24709
24710 #. type: verbatim
24711 #: ../fish/guestfish-actions.pod:2366
24712 #, no-wrap
24713 msgid ""
24714 " is-chardev path\n"
24715 "\n"
24716 msgstr ""
24717
24718 #. type: =head2
24719 #: ../fish/guestfish-actions.pod:2373
24720 msgid "is-config"
24721 msgstr ""
24722
24723 #. type: verbatim
24724 #: ../fish/guestfish-actions.pod:2375
24725 #, no-wrap
24726 msgid ""
24727 " is-config\n"
24728 "\n"
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../fish/guestfish-actions.pod:2382
24733 msgid "is-dir"
24734 msgstr ""
24735
24736 #. type: verbatim
24737 #: ../fish/guestfish-actions.pod:2384
24738 #, no-wrap
24739 msgid ""
24740 " is-dir path\n"
24741 "\n"
24742 msgstr ""
24743
24744 #. type: =head2
24745 #: ../fish/guestfish-actions.pod:2392
24746 msgid "is-fifo"
24747 msgstr ""
24748
24749 #. type: verbatim
24750 #: ../fish/guestfish-actions.pod:2394
24751 #, no-wrap
24752 msgid ""
24753 " is-fifo path\n"
24754 "\n"
24755 msgstr ""
24756
24757 #. type: =head2
24758 #: ../fish/guestfish-actions.pod:2401
24759 msgid "is-file"
24760 msgstr ""
24761
24762 #. type: verbatim
24763 #: ../fish/guestfish-actions.pod:2403
24764 #, no-wrap
24765 msgid ""
24766 " is-file path\n"
24767 "\n"
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../fish/guestfish-actions.pod:2411
24772 msgid "is-launching"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../fish/guestfish-actions.pod:2413
24777 #, no-wrap
24778 msgid ""
24779 " is-launching\n"
24780 "\n"
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../fish/guestfish-actions.pod:2420
24785 msgid "is-lv"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../fish/guestfish-actions.pod:2422
24790 #, no-wrap
24791 msgid ""
24792 " is-lv device\n"
24793 "\n"
24794 msgstr ""
24795
24796 #. type: =head2
24797 #: ../fish/guestfish-actions.pod:2427
24798 msgid "is-ready"
24799 msgstr ""
24800
24801 #. type: verbatim
24802 #: ../fish/guestfish-actions.pod:2429
24803 #, no-wrap
24804 msgid ""
24805 " is-ready\n"
24806 "\n"
24807 msgstr ""
24808
24809 #. type: =head2
24810 #: ../fish/guestfish-actions.pod:2436
24811 msgid "is-socket"
24812 msgstr ""
24813
24814 #. type: verbatim
24815 #: ../fish/guestfish-actions.pod:2438
24816 #, no-wrap
24817 msgid ""
24818 " is-socket path\n"
24819 "\n"
24820 msgstr ""
24821
24822 #. type: =head2
24823 #: ../fish/guestfish-actions.pod:2445
24824 msgid "is-symlink"
24825 msgstr ""
24826
24827 #. type: verbatim
24828 #: ../fish/guestfish-actions.pod:2447
24829 #, no-wrap
24830 msgid ""
24831 " is-symlink path\n"
24832 "\n"
24833 msgstr ""
24834
24835 #. type: =head2
24836 #: ../fish/guestfish-actions.pod:2454
24837 msgid "is-zero"
24838 msgstr ""
24839
24840 #. type: verbatim
24841 #: ../fish/guestfish-actions.pod:2456
24842 #, no-wrap
24843 msgid ""
24844 " is-zero path\n"
24845 "\n"
24846 msgstr ""
24847
24848 #. type: =head2
24849 #: ../fish/guestfish-actions.pod:2461
24850 msgid "is-zero-device"
24851 msgstr ""
24852
24853 #. type: verbatim
24854 #: ../fish/guestfish-actions.pod:2463
24855 #, no-wrap
24856 msgid ""
24857 " is-zero-device device\n"
24858 "\n"
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../fish/guestfish-actions.pod:2469
24863 msgid "kill-subprocess"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../fish/guestfish-actions.pod:2471
24868 #, no-wrap
24869 msgid ""
24870 " kill-subprocess\n"
24871 "\n"
24872 msgstr ""
24873
24874 #. type: =head2
24875 #: ../fish/guestfish-actions.pod:2475
24876 msgid "launch"
24877 msgstr ""
24878
24879 #. type: =head2
24880 #: ../fish/guestfish-actions.pod:2477
24881 msgid "run"
24882 msgstr ""
24883
24884 #. type: verbatim
24885 #: ../fish/guestfish-actions.pod:2479
24886 #, no-wrap
24887 msgid ""
24888 " launch\n"
24889 "\n"
24890 msgstr ""
24891
24892 #. type: =head2
24893 #: ../fish/guestfish-actions.pod:2487
24894 msgid "lchown"
24895 msgstr ""
24896
24897 #. type: verbatim
24898 #: ../fish/guestfish-actions.pod:2489
24899 #, no-wrap
24900 msgid ""
24901 " lchown owner group path\n"
24902 "\n"
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../fish/guestfish-actions.pod:2491
24907 msgid ""
24908 "Change the file owner to C<owner> and group to C<group>.  This is like "
24909 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
24910 "the target."
24911 msgstr ""
24912
24913 #. type: =head2
24914 #: ../fish/guestfish-actions.pod:2499
24915 msgid "lgetxattr"
24916 msgstr ""
24917
24918 #. type: verbatim
24919 #: ../fish/guestfish-actions.pod:2501
24920 #, no-wrap
24921 msgid ""
24922 " lgetxattr path name\n"
24923 "\n"
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../fish/guestfish-actions.pod:2517
24928 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
24929 msgstr ""
24930
24931 #. type: =head2
24932 #: ../fish/guestfish-actions.pod:2519
24933 msgid "lgetxattrs"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../fish/guestfish-actions.pod:2521
24938 #, no-wrap
24939 msgid ""
24940 " lgetxattrs path\n"
24941 "\n"
24942 msgstr ""
24943
24944 #. type: textblock
24945 #: ../fish/guestfish-actions.pod:2523
24946 msgid ""
24947 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
24948 "it returns the extended attributes of the link itself."
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../fish/guestfish-actions.pod:2527
24953 msgid "list-9p"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../fish/guestfish-actions.pod:2529
24958 #, no-wrap
24959 msgid ""
24960 " list-9p\n"
24961 "\n"
24962 msgstr ""
24963
24964 #. type: =head2
24965 #: ../fish/guestfish-actions.pod:2534
24966 msgid "list-devices"
24967 msgstr ""
24968
24969 #. type: verbatim
24970 #: ../fish/guestfish-actions.pod:2536
24971 #, no-wrap
24972 msgid ""
24973 " list-devices\n"
24974 "\n"
24975 msgstr ""
24976
24977 #. type: =head2
24978 #: ../fish/guestfish-actions.pod:2544
24979 msgid "list-dm-devices"
24980 msgstr ""
24981
24982 #. type: verbatim
24983 #: ../fish/guestfish-actions.pod:2546
24984 #, no-wrap
24985 msgid ""
24986 " list-dm-devices\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../fish/guestfish-actions.pod:2550
24992 msgid ""
24993 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
24994 "previous call to L</luks-open>."
24995 msgstr ""
24996
24997 #. type: textblock
24998 #: ../fish/guestfish-actions.pod:2553
24999 msgid ""
25000 "Device mapper devices which correspond to logical volumes are I<not> "
25001 "returned in this list.  Call L</lvs> if you want to list logical volumes."
25002 msgstr ""
25003
25004 #. type: =head2
25005 #: ../fish/guestfish-actions.pod:2557
25006 msgid "list-filesystems"
25007 msgstr ""
25008
25009 #. type: verbatim
25010 #: ../fish/guestfish-actions.pod:2559
25011 #, no-wrap
25012 msgid ""
25013 " list-filesystems\n"
25014 "\n"
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../fish/guestfish-actions.pod:2578
25019 msgid ""
25020 "This command runs other libguestfs commands, which might include L</mount> "
25021 "and L</umount>, and therefore you should use this soon after launch and only "
25022 "when nothing is mounted."
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../fish/guestfish-actions.pod:2582
25027 msgid ""
25028 "Not all of the filesystems returned will be mountable.  In particular, swap "
25029 "partitions are returned in the list.  Also this command does not check that "
25030 "each filesystem found is valid and mountable, and some filesystems might be "
25031 "mountable but require special options.  Filesystems may not all belong to a "
25032 "single logical operating system (use L</inspect-os> to look for OSes)."
25033 msgstr ""
25034
25035 #. type: =head2
25036 #: ../fish/guestfish-actions.pod:2590
25037 msgid "list-partitions"
25038 msgstr ""
25039
25040 #. type: verbatim
25041 #: ../fish/guestfish-actions.pod:2592
25042 #, no-wrap
25043 msgid ""
25044 " list-partitions\n"
25045 "\n"
25046 msgstr ""
25047
25048 #. type: textblock
25049 #: ../fish/guestfish-actions.pod:2598
25050 msgid ""
25051 "This does not return logical volumes.  For that you will need to call "
25052 "L</lvs>."
25053 msgstr ""
25054
25055 #. type: =head2
25056 #: ../fish/guestfish-actions.pod:2603
25057 msgid "ll"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../fish/guestfish-actions.pod:2605
25062 #, no-wrap
25063 msgid ""
25064 " ll directory\n"
25065 "\n"
25066 msgstr ""
25067
25068 #. type: =head2
25069 #: ../fish/guestfish-actions.pod:2613
25070 msgid "ln"
25071 msgstr ""
25072
25073 #. type: verbatim
25074 #: ../fish/guestfish-actions.pod:2615
25075 #, no-wrap
25076 msgid ""
25077 " ln target linkname\n"
25078 "\n"
25079 msgstr ""
25080
25081 #. type: =head2
25082 #: ../fish/guestfish-actions.pod:2619
25083 msgid "ln-f"
25084 msgstr ""
25085
25086 #. type: verbatim
25087 #: ../fish/guestfish-actions.pod:2621
25088 #, no-wrap
25089 msgid ""
25090 " ln-f target linkname\n"
25091 "\n"
25092 msgstr ""
25093
25094 #. type: =head2
25095 #: ../fish/guestfish-actions.pod:2626
25096 msgid "ln-s"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../fish/guestfish-actions.pod:2628
25101 #, no-wrap
25102 msgid ""
25103 " ln-s target linkname\n"
25104 "\n"
25105 msgstr ""
25106
25107 #. type: =head2
25108 #: ../fish/guestfish-actions.pod:2632
25109 msgid "ln-sf"
25110 msgstr ""
25111
25112 #. type: verbatim
25113 #: ../fish/guestfish-actions.pod:2634
25114 #, no-wrap
25115 msgid ""
25116 " ln-sf target linkname\n"
25117 "\n"
25118 msgstr ""
25119
25120 #. type: =head2
25121 #: ../fish/guestfish-actions.pod:2639
25122 msgid "lremovexattr"
25123 msgstr ""
25124
25125 #. type: verbatim
25126 #: ../fish/guestfish-actions.pod:2641
25127 #, no-wrap
25128 msgid ""
25129 " lremovexattr xattr path\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../fish/guestfish-actions.pod:2643
25135 msgid ""
25136 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
25137 "it removes an extended attribute of the link itself."
25138 msgstr ""
25139
25140 #. type: =head2
25141 #: ../fish/guestfish-actions.pod:2647
25142 msgid "ls"
25143 msgstr ""
25144
25145 #. type: verbatim
25146 #: ../fish/guestfish-actions.pod:2649
25147 #, no-wrap
25148 msgid ""
25149 " ls directory\n"
25150 "\n"
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../fish/guestfish-actions.pod:2655
25155 msgid ""
25156 "This command is mostly useful for interactive sessions.  Programs should "
25157 "probably use L</readdir> instead."
25158 msgstr ""
25159
25160 #. type: =head2
25161 #: ../fish/guestfish-actions.pod:2658
25162 msgid "lsetxattr"
25163 msgstr ""
25164
25165 #. type: verbatim
25166 #: ../fish/guestfish-actions.pod:2660
25167 #, no-wrap
25168 msgid ""
25169 " lsetxattr xattr val vallen path\n"
25170 "\n"
25171 msgstr ""
25172
25173 #. type: textblock
25174 #: ../fish/guestfish-actions.pod:2662
25175 msgid ""
25176 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
25177 "sets an extended attribute of the link itself."
25178 msgstr ""
25179
25180 #. type: =head2
25181 #: ../fish/guestfish-actions.pod:2666
25182 msgid "lstat"
25183 msgstr ""
25184
25185 #. type: verbatim
25186 #: ../fish/guestfish-actions.pod:2668
25187 #, no-wrap
25188 msgid ""
25189 " lstat path\n"
25190 "\n"
25191 msgstr ""
25192
25193 #. type: textblock
25194 #: ../fish/guestfish-actions.pod:2672
25195 msgid ""
25196 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
25197 "the link is stat-ed, not the file it refers to."
25198 msgstr ""
25199
25200 #. type: =head2
25201 #: ../fish/guestfish-actions.pod:2678
25202 msgid "lstatlist"
25203 msgstr ""
25204
25205 #. type: verbatim
25206 #: ../fish/guestfish-actions.pod:2680
25207 #, no-wrap
25208 msgid ""
25209 " lstatlist path 'names ...'\n"
25210 "\n"
25211 msgstr ""
25212
25213 #. type: textblock
25214 #: ../fish/guestfish-actions.pod:2682
25215 msgid ""
25216 "This call allows you to perform the L</lstat> operation on multiple files, "
25217 "where all files are in the directory C<path>.  C<names> is the list of files "
25218 "from this directory."
25219 msgstr ""
25220
25221 #. type: textblock
25222 #: ../fish/guestfish-actions.pod:2691
25223 msgid ""
25224 "This call is intended for programs that want to efficiently list a directory "
25225 "contents without making many round-trips.  See also L</lxattrlist> for a "
25226 "similarly efficient call for getting extended attributes.  Very long "
25227 "directory listings might cause the protocol message size to be exceeded, "
25228 "causing this call to fail.  The caller must split up such requests into "
25229 "smaller groups of names."
25230 msgstr ""
25231
25232 #. type: =head2
25233 #: ../fish/guestfish-actions.pod:2699
25234 msgid "luks-add-key"
25235 msgstr ""
25236
25237 #. type: verbatim
25238 #: ../fish/guestfish-actions.pod:2701
25239 #, no-wrap
25240 msgid ""
25241 " luks-add-key device keyslot\n"
25242 "\n"
25243 msgstr ""
25244
25245 #. type: textblock
25246 #: ../fish/guestfish-actions.pod:2708
25247 msgid ""
25248 "Note that if C<keyslot> already contains a key, then this command will "
25249 "fail.  You have to use L</luks-kill-slot> first to remove that key."
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734 ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761 ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
25254 msgid ""
25255 "This command has one or more key or passphrase parameters.  Guestfish will "
25256 "prompt for these separately."
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../fish/guestfish-actions.pod:2715
25261 msgid "luks-close"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../fish/guestfish-actions.pod:2717
25266 #, no-wrap
25267 msgid ""
25268 " luks-close device\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../fish/guestfish-actions.pod:2719
25274 msgid ""
25275 "This closes a LUKS device that was created earlier by L</luks-open> or "
25276 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
25277 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25278 "underlying block device."
25279 msgstr ""
25280
25281 #. type: =head2
25282 #: ../fish/guestfish-actions.pod:2725
25283 msgid "luks-format"
25284 msgstr ""
25285
25286 #. type: verbatim
25287 #: ../fish/guestfish-actions.pod:2727
25288 #, no-wrap
25289 msgid ""
25290 " luks-format device keyslot\n"
25291 "\n"
25292 msgstr ""
25293
25294 #. type: =head2
25295 #: ../fish/guestfish-actions.pod:2740
25296 msgid "luks-format-cipher"
25297 msgstr ""
25298
25299 #. type: verbatim
25300 #: ../fish/guestfish-actions.pod:2742
25301 #, no-wrap
25302 msgid ""
25303 " luks-format-cipher device keyslot cipher\n"
25304 "\n"
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../fish/guestfish-actions.pod:2744
25309 msgid ""
25310 "This command is the same as L</luks-format> but it also allows you to set "
25311 "the C<cipher> used."
25312 msgstr ""
25313
25314 #. type: =head2
25315 #: ../fish/guestfish-actions.pod:2753
25316 msgid "luks-kill-slot"
25317 msgstr ""
25318
25319 #. type: verbatim
25320 #: ../fish/guestfish-actions.pod:2755
25321 #, no-wrap
25322 msgid ""
25323 " luks-kill-slot device keyslot\n"
25324 "\n"
25325 msgstr ""
25326
25327 #. type: =head2
25328 #: ../fish/guestfish-actions.pod:2764
25329 msgid "luks-open"
25330 msgstr ""
25331
25332 #. type: verbatim
25333 #: ../fish/guestfish-actions.pod:2766
25334 #, no-wrap
25335 msgid ""
25336 " luks-open device mapname\n"
25337 "\n"
25338 msgstr ""
25339
25340 #. type: textblock
25341 #: ../fish/guestfish-actions.pod:2780
25342 msgid ""
25343 "If this block device contains LVM volume groups, then calling L</vgscan> "
25344 "followed by L</vg-activate-all> will make them visible."
25345 msgstr ""
25346
25347 #. type: textblock
25348 #: ../fish/guestfish-actions.pod:2784
25349 msgid "Use L</list-dm-devices> to list all device mapper devices."
25350 msgstr ""
25351
25352 #. type: =head2
25353 #: ../fish/guestfish-actions.pod:2790
25354 msgid "luks-open-ro"
25355 msgstr ""
25356
25357 #. type: verbatim
25358 #: ../fish/guestfish-actions.pod:2792
25359 #, no-wrap
25360 msgid ""
25361 " luks-open-ro device mapname\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: textblock
25366 #: ../fish/guestfish-actions.pod:2794
25367 msgid ""
25368 "This is the same as L</luks-open> except that a read-only mapping is "
25369 "created."
25370 msgstr ""
25371
25372 #. type: =head2
25373 #: ../fish/guestfish-actions.pod:2800
25374 msgid "lvcreate"
25375 msgstr ""
25376
25377 #. type: verbatim
25378 #: ../fish/guestfish-actions.pod:2802
25379 #, no-wrap
25380 msgid ""
25381 " lvcreate logvol volgroup mbytes\n"
25382 "\n"
25383 msgstr ""
25384
25385 #. type: =head2
25386 #: ../fish/guestfish-actions.pod:2807
25387 msgid "lvm-canonical-lv-name"
25388 msgstr ""
25389
25390 #. type: verbatim
25391 #: ../fish/guestfish-actions.pod:2809
25392 #, no-wrap
25393 msgid ""
25394 " lvm-canonical-lv-name lvname\n"
25395 "\n"
25396 msgstr ""
25397
25398 #. type: textblock
25399 #: ../fish/guestfish-actions.pod:2818
25400 msgid "See also L</is-lv>."
25401 msgstr ""
25402
25403 #. type: =head2
25404 #: ../fish/guestfish-actions.pod:2820
25405 msgid "lvm-clear-filter"
25406 msgstr ""
25407
25408 #. type: verbatim
25409 #: ../fish/guestfish-actions.pod:2822
25410 #, no-wrap
25411 msgid ""
25412 " lvm-clear-filter\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../fish/guestfish-actions.pod:2824
25418 msgid ""
25419 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
25420 "block device."
25421 msgstr ""
25422
25423 #. type: =head2
25424 #: ../fish/guestfish-actions.pod:2830
25425 msgid "lvm-remove-all"
25426 msgstr ""
25427
25428 #. type: verbatim
25429 #: ../fish/guestfish-actions.pod:2832
25430 #, no-wrap
25431 msgid ""
25432 " lvm-remove-all\n"
25433 "\n"
25434 msgstr ""
25435
25436 #. type: =head2
25437 #: ../fish/guestfish-actions.pod:2840
25438 msgid "lvm-set-filter"
25439 msgstr ""
25440
25441 #. type: verbatim
25442 #: ../fish/guestfish-actions.pod:2842
25443 #, no-wrap
25444 msgid ""
25445 " lvm-set-filter 'devices ...'\n"
25446 "\n"
25447 msgstr ""
25448
25449 #. type: =head2
25450 #: ../fish/guestfish-actions.pod:2867
25451 msgid "lvremove"
25452 msgstr ""
25453
25454 #. type: verbatim
25455 #: ../fish/guestfish-actions.pod:2869
25456 #, no-wrap
25457 msgid ""
25458 " lvremove device\n"
25459 "\n"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../fish/guestfish-actions.pod:2877
25464 msgid "lvrename"
25465 msgstr ""
25466
25467 #. type: verbatim
25468 #: ../fish/guestfish-actions.pod:2879
25469 #, no-wrap
25470 msgid ""
25471 " lvrename logvol newlogvol\n"
25472 "\n"
25473 msgstr ""
25474
25475 #. type: =head2
25476 #: ../fish/guestfish-actions.pod:2883
25477 msgid "lvresize"
25478 msgstr ""
25479
25480 #. type: verbatim
25481 #: ../fish/guestfish-actions.pod:2885
25482 #, no-wrap
25483 msgid ""
25484 " lvresize device mbytes\n"
25485 "\n"
25486 msgstr ""
25487
25488 #. type: =head2
25489 #: ../fish/guestfish-actions.pod:2891
25490 msgid "lvresize-free"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../fish/guestfish-actions.pod:2893
25495 #, no-wrap
25496 msgid ""
25497 " lvresize-free lv percent\n"
25498 "\n"
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../fish/guestfish-actions.pod:2901
25503 msgid "lvs"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../fish/guestfish-actions.pod:2903
25508 #, no-wrap
25509 msgid ""
25510 " lvs\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: textblock
25515 #: ../fish/guestfish-actions.pod:2911
25516 msgid "See also L</lvs-full>, L</list-filesystems>."
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../fish/guestfish-actions.pod:2913
25521 msgid "lvs-full"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../fish/guestfish-actions.pod:2915
25526 #, no-wrap
25527 msgid ""
25528 " lvs-full\n"
25529 "\n"
25530 msgstr ""
25531
25532 #. type: =head2
25533 #: ../fish/guestfish-actions.pod:2920
25534 msgid "lvuuid"
25535 msgstr ""
25536
25537 #. type: verbatim
25538 #: ../fish/guestfish-actions.pod:2922
25539 #, no-wrap
25540 msgid ""
25541 " lvuuid device\n"
25542 "\n"
25543 msgstr ""
25544
25545 #. type: =head2
25546 #: ../fish/guestfish-actions.pod:2926
25547 msgid "lxattrlist"
25548 msgstr ""
25549
25550 #. type: verbatim
25551 #: ../fish/guestfish-actions.pod:2928
25552 #, no-wrap
25553 msgid ""
25554 " lxattrlist path 'names ...'\n"
25555 "\n"
25556 msgstr ""
25557
25558 #. type: textblock
25559 #: ../fish/guestfish-actions.pod:2944
25560 msgid ""
25561 "This call is intended for programs that want to efficiently list a directory "
25562 "contents without making many round-trips.  See also L</lstatlist> for a "
25563 "similarly efficient call for getting standard stats.  Very long directory "
25564 "listings might cause the protocol message size to be exceeded, causing this "
25565 "call to fail.  The caller must split up such requests into smaller groups of "
25566 "names."
25567 msgstr ""
25568
25569 #. type: =head2
25570 #: ../fish/guestfish-actions.pod:2952
25571 msgid "mkdir"
25572 msgstr ""
25573
25574 #. type: verbatim
25575 #: ../fish/guestfish-actions.pod:2954
25576 #, no-wrap
25577 msgid ""
25578 " mkdir path\n"
25579 "\n"
25580 msgstr ""
25581
25582 #. type: =head2
25583 #: ../fish/guestfish-actions.pod:2958
25584 msgid "mkdir-mode"
25585 msgstr ""
25586
25587 #. type: verbatim
25588 #: ../fish/guestfish-actions.pod:2960
25589 #, no-wrap
25590 msgid ""
25591 " mkdir-mode path mode\n"
25592 "\n"
25593 msgstr ""
25594
25595 #. type: textblock
25596 #: ../fish/guestfish-actions.pod:2969
25597 msgid "See also L</mkdir>, L</umask>"
25598 msgstr ""
25599
25600 #. type: =head2
25601 #: ../fish/guestfish-actions.pod:2971
25602 msgid "mkdir-p"
25603 msgstr ""
25604
25605 #. type: verbatim
25606 #: ../fish/guestfish-actions.pod:2973
25607 #, no-wrap
25608 msgid ""
25609 " mkdir-p path\n"
25610 "\n"
25611 msgstr ""
25612
25613 #. type: =head2
25614 #: ../fish/guestfish-actions.pod:2978
25615 msgid "mkdtemp"
25616 msgstr ""
25617
25618 #. type: verbatim
25619 #: ../fish/guestfish-actions.pod:2980
25620 #, no-wrap
25621 msgid ""
25622 " mkdtemp template\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: =head2
25627 #: ../fish/guestfish-actions.pod:3001
25628 msgid "mke2fs-J"
25629 msgstr ""
25630
25631 #. type: verbatim
25632 #: ../fish/guestfish-actions.pod:3003
25633 #, no-wrap
25634 msgid ""
25635 " mke2fs-J fstype blocksize device journal\n"
25636 "\n"
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../fish/guestfish-actions.pod:3011
25641 msgid "See also L</mke2journal>."
25642 msgstr ""
25643
25644 #. type: =head2
25645 #: ../fish/guestfish-actions.pod:3013
25646 msgid "mke2fs-JL"
25647 msgstr ""
25648
25649 #. type: verbatim
25650 #: ../fish/guestfish-actions.pod:3015
25651 #, no-wrap
25652 msgid ""
25653 " mke2fs-JL fstype blocksize device label\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: textblock
25658 #: ../fish/guestfish-actions.pod:3020
25659 msgid "See also L</mke2journal-L>."
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../fish/guestfish-actions.pod:3022
25664 msgid "mke2fs-JU"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../fish/guestfish-actions.pod:3024
25669 #, no-wrap
25670 msgid ""
25671 " mke2fs-JU fstype blocksize device uuid\n"
25672 "\n"
25673 msgstr ""
25674
25675 #. type: textblock
25676 #: ../fish/guestfish-actions.pod:3029
25677 msgid "See also L</mke2journal-U>."
25678 msgstr ""
25679
25680 #. type: =head2
25681 #: ../fish/guestfish-actions.pod:3031
25682 msgid "mke2journal"
25683 msgstr ""
25684
25685 #. type: verbatim
25686 #: ../fish/guestfish-actions.pod:3033
25687 #, no-wrap
25688 msgid ""
25689 " mke2journal blocksize device\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../fish/guestfish-actions.pod:3040
25695 msgid "mke2journal-L"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../fish/guestfish-actions.pod:3042
25700 #, no-wrap
25701 msgid ""
25702 " mke2journal-L blocksize label device\n"
25703 "\n"
25704 msgstr ""
25705
25706 #. type: =head2
25707 #: ../fish/guestfish-actions.pod:3046
25708 msgid "mke2journal-U"
25709 msgstr ""
25710
25711 #. type: verbatim
25712 #: ../fish/guestfish-actions.pod:3048
25713 #, no-wrap
25714 msgid ""
25715 " mke2journal-U blocksize uuid device\n"
25716 "\n"
25717 msgstr ""
25718
25719 #. type: =head2
25720 #: ../fish/guestfish-actions.pod:3052
25721 msgid "mkfifo"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../fish/guestfish-actions.pod:3054
25726 #, no-wrap
25727 msgid ""
25728 " mkfifo mode path\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../fish/guestfish-actions.pod:3056
25734 msgid ""
25735 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25736 "is just a convenient wrapper around L</mknod>."
25737 msgstr ""
25738
25739 #. type: =head2
25740 #: ../fish/guestfish-actions.pod:3062
25741 msgid "mkfs"
25742 msgstr ""
25743
25744 #. type: verbatim
25745 #: ../fish/guestfish-actions.pod:3064
25746 #, no-wrap
25747 msgid ""
25748 " mkfs fstype device\n"
25749 "\n"
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../fish/guestfish-actions.pod:3070
25754 msgid "mkfs-b"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../fish/guestfish-actions.pod:3072
25759 #, no-wrap
25760 msgid ""
25761 " mkfs-b fstype blocksize device\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../fish/guestfish-actions.pod:3074
25767 msgid ""
25768 "This call is similar to L</mkfs>, but it allows you to control the block "
25769 "size of the resulting filesystem.  Supported block sizes depend on the "
25770 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25771 msgstr ""
25772
25773 #. type: =head2
25774 #: ../fish/guestfish-actions.pod:3089
25775 msgid "mkfs-opts"
25776 msgstr ""
25777
25778 #. type: verbatim
25779 #: ../fish/guestfish-actions.pod:3091
25780 #, no-wrap
25781 msgid ""
25782 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
25783 "[sectorsize:..]\n"
25784 "\n"
25785 msgstr ""
25786
25787 #. type: =head2
25788 #: ../fish/guestfish-actions.pod:3136
25789 msgid "mkmountpoint"
25790 msgstr ""
25791
25792 #. type: verbatim
25793 #: ../fish/guestfish-actions.pod:3138
25794 #, no-wrap
25795 msgid ""
25796 " mkmountpoint exemptpath\n"
25797 "\n"
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../fish/guestfish-actions.pod:3140
25802 msgid ""
25803 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
25804 "to create extra mountpoints before mounting the first filesystem."
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../fish/guestfish-actions.pod:3164
25809 msgid ""
25810 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
25811 "unexpected errors if you try to mix these calls.  It is safest to manually "
25812 "unmount filesystems and remove mountpoints after use."
25813 msgstr ""
25814
25815 #. type: textblock
25816 #: ../fish/guestfish-actions.pod:3168
25817 msgid ""
25818 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
25819 "for this to work for manual mountpoints, you must ensure that the innermost "
25820 "mountpoints have the longest pathnames, as in the example code above."
25821 msgstr ""
25822
25823 #. type: textblock
25824 #: ../fish/guestfish-actions.pod:3175
25825 msgid ""
25826 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
25827 "L</umount-all> to be called when the handle is closed which can also trigger "
25828 "these issues."
25829 msgstr ""
25830
25831 #. type: =head2
25832 #: ../fish/guestfish-actions.pod:3179
25833 msgid "mknod"
25834 msgstr ""
25835
25836 #. type: verbatim
25837 #: ../fish/guestfish-actions.pod:3181
25838 #, no-wrap
25839 msgid ""
25840 " mknod mode devmajor devminor path\n"
25841 "\n"
25842 msgstr ""
25843
25844 #. type: textblock
25845 #: ../fish/guestfish-actions.pod:3191
25846 msgid ""
25847 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
25848 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
25849 "regular file).  These constants are available in the standard Linux header "
25850 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
25851 "wrappers around this command which bitwise OR in the appropriate constant "
25852 "for you."
25853 msgstr ""
25854
25855 #. type: =head2
25856 #: ../fish/guestfish-actions.pod:3201
25857 msgid "mknod-b"
25858 msgstr ""
25859
25860 #. type: verbatim
25861 #: ../fish/guestfish-actions.pod:3203
25862 #, no-wrap
25863 msgid ""
25864 " mknod-b mode devmajor devminor path\n"
25865 "\n"
25866 msgstr ""
25867
25868 #. type: textblock
25869 #: ../fish/guestfish-actions.pod:3205
25870 msgid ""
25871 "This call creates a block device node called C<path> with mode C<mode> and "
25872 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25873 "wrapper around L</mknod>."
25874 msgstr ""
25875
25876 #. type: =head2
25877 #: ../fish/guestfish-actions.pod:3211
25878 msgid "mknod-c"
25879 msgstr ""
25880
25881 #. type: verbatim
25882 #: ../fish/guestfish-actions.pod:3213
25883 #, no-wrap
25884 msgid ""
25885 " mknod-c mode devmajor devminor path\n"
25886 "\n"
25887 msgstr ""
25888
25889 #. type: textblock
25890 #: ../fish/guestfish-actions.pod:3215
25891 msgid ""
25892 "This call creates a char device node called C<path> with mode C<mode> and "
25893 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
25894 "wrapper around L</mknod>."
25895 msgstr ""
25896
25897 #. type: =head2
25898 #: ../fish/guestfish-actions.pod:3221
25899 msgid "mkswap"
25900 msgstr ""
25901
25902 #. type: verbatim
25903 #: ../fish/guestfish-actions.pod:3223
25904 #, no-wrap
25905 msgid ""
25906 " mkswap device\n"
25907 "\n"
25908 msgstr ""
25909
25910 #. type: =head2
25911 #: ../fish/guestfish-actions.pod:3227
25912 msgid "mkswap-L"
25913 msgstr ""
25914
25915 #. type: verbatim
25916 #: ../fish/guestfish-actions.pod:3229
25917 #, no-wrap
25918 msgid ""
25919 " mkswap-L label device\n"
25920 "\n"
25921 msgstr ""
25922
25923 #. type: =head2
25924 #: ../fish/guestfish-actions.pod:3237
25925 msgid "mkswap-U"
25926 msgstr ""
25927
25928 #. type: verbatim
25929 #: ../fish/guestfish-actions.pod:3239
25930 #, no-wrap
25931 msgid ""
25932 " mkswap-U uuid device\n"
25933 "\n"
25934 msgstr ""
25935
25936 #. type: =head2
25937 #: ../fish/guestfish-actions.pod:3243
25938 msgid "mkswap-file"
25939 msgstr ""
25940
25941 #. type: verbatim
25942 #: ../fish/guestfish-actions.pod:3245
25943 #, no-wrap
25944 msgid ""
25945 " mkswap-file path\n"
25946 "\n"
25947 msgstr ""
25948
25949 #. type: textblock
25950 #: ../fish/guestfish-actions.pod:3249
25951 msgid ""
25952 "This command just writes a swap file signature to an existing file.  To "
25953 "create the file itself, use something like L</fallocate>."
25954 msgstr ""
25955
25956 #. type: =head2
25957 #: ../fish/guestfish-actions.pod:3252
25958 msgid "modprobe"
25959 msgstr ""
25960
25961 #. type: verbatim
25962 #: ../fish/guestfish-actions.pod:3254
25963 #, no-wrap
25964 msgid ""
25965 " modprobe modulename\n"
25966 "\n"
25967 msgstr ""
25968
25969 #. type: =head2
25970 #: ../fish/guestfish-actions.pod:3261
25971 msgid "mount"
25972 msgstr ""
25973
25974 #. type: verbatim
25975 #: ../fish/guestfish-actions.pod:3263
25976 #, no-wrap
25977 msgid ""
25978 " mount device mountpoint\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: textblock
25983 #: ../fish/guestfish-actions.pod:3279
25984 msgid ""
25985 "B<Important note:> When you use this call, the filesystem options C<sync> "
25986 "and C<noatime> are set implicitly.  This was originally done because we "
25987 "thought it would improve reliability, but it turns out that I<-o sync> has a "
25988 "very large negative performance impact and negligible effect on "
25989 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
25990 "code that needs performance, and instead use L</mount-options> (use an empty "
25991 "string for the first parameter if you don't want any options)."
25992 msgstr ""
25993
25994 #. type: =head2
25995 #: ../fish/guestfish-actions.pod:3296
25996 msgid "mount-9p"
25997 msgstr ""
25998
25999 #. type: verbatim
26000 #: ../fish/guestfish-actions.pod:3298
26001 #, no-wrap
26002 msgid ""
26003 " mount-9p mounttag mountpoint [options:..]\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../fish/guestfish-actions.pod:3309
26009 msgid "mount-loop"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../fish/guestfish-actions.pod:3311
26014 #, no-wrap
26015 msgid ""
26016 " mount-loop file mountpoint\n"
26017 "\n"
26018 msgstr ""
26019
26020 #. type: =head2
26021 #: ../fish/guestfish-actions.pod:3317
26022 msgid "mount-options"
26023 msgstr ""
26024
26025 #. type: verbatim
26026 #: ../fish/guestfish-actions.pod:3319
26027 #, no-wrap
26028 msgid ""
26029 " mount-options options device mountpoint\n"
26030 "\n"
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../fish/guestfish-actions.pod:3321
26035 msgid ""
26036 "This is the same as the L</mount> command, but it allows you to set the "
26037 "mount options as for the L<mount(8)> I<-o> flag."
26038 msgstr ""
26039
26040 #. type: =head2
26041 #: ../fish/guestfish-actions.pod:3329
26042 msgid "mount-ro"
26043 msgstr ""
26044
26045 #. type: verbatim
26046 #: ../fish/guestfish-actions.pod:3331
26047 #, no-wrap
26048 msgid ""
26049 " mount-ro device mountpoint\n"
26050 "\n"
26051 msgstr ""
26052
26053 #. type: textblock
26054 #: ../fish/guestfish-actions.pod:3333
26055 msgid ""
26056 "This is the same as the L</mount> command, but it mounts the filesystem with "
26057 "the read-only (I<-o ro>) flag."
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../fish/guestfish-actions.pod:3336
26062 msgid "mount-vfs"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../fish/guestfish-actions.pod:3338
26067 #, no-wrap
26068 msgid ""
26069 " mount-vfs options vfstype device mountpoint\n"
26070 "\n"
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../fish/guestfish-actions.pod:3340
26075 msgid ""
26076 "This is the same as the L</mount> command, but it allows you to set both the "
26077 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
26078 msgstr ""
26079
26080 #. type: =head2
26081 #: ../fish/guestfish-actions.pod:3344
26082 msgid "mountpoints"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../fish/guestfish-actions.pod:3346
26087 #, no-wrap
26088 msgid ""
26089 " mountpoints\n"
26090 "\n"
26091 msgstr ""
26092
26093 #. type: textblock
26094 #: ../fish/guestfish-actions.pod:3348
26095 msgid ""
26096 "This call is similar to L</mounts>.  That call returns a list of devices.  "
26097 "This one returns a hash table (map) of device name to directory where the "
26098 "device is mounted."
26099 msgstr ""
26100
26101 #. type: =head2
26102 #: ../fish/guestfish-actions.pod:3352
26103 msgid "mounts"
26104 msgstr ""
26105
26106 #. type: verbatim
26107 #: ../fish/guestfish-actions.pod:3354
26108 #, no-wrap
26109 msgid ""
26110 " mounts\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../fish/guestfish-actions.pod:3361
26116 msgid "See also: L</mountpoints>"
26117 msgstr ""
26118
26119 #. type: =head2
26120 #: ../fish/guestfish-actions.pod:3363
26121 msgid "mv"
26122 msgstr ""
26123
26124 #. type: verbatim
26125 #: ../fish/guestfish-actions.pod:3365
26126 #, no-wrap
26127 msgid ""
26128 " mv src dest\n"
26129 "\n"
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../fish/guestfish-actions.pod:3370
26134 msgid "ntfs-3g-probe"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../fish/guestfish-actions.pod:3372
26139 #, no-wrap
26140 msgid ""
26141 " ntfs-3g-probe true|false device\n"
26142 "\n"
26143 msgstr ""
26144
26145 #. type: =head2
26146 #: ../fish/guestfish-actions.pod:3386
26147 msgid "ntfsresize"
26148 msgstr ""
26149
26150 #. type: verbatim
26151 #: ../fish/guestfish-actions.pod:3388
26152 #, no-wrap
26153 msgid ""
26154 " ntfsresize device\n"
26155 "\n"
26156 msgstr ""
26157
26158 #. type: =head2
26159 #: ../fish/guestfish-actions.pod:3410
26160 msgid "ntfsresize-opts"
26161 msgstr ""
26162
26163 #. type: verbatim
26164 #: ../fish/guestfish-actions.pod:3412
26165 #, no-wrap
26166 msgid ""
26167 " ntfsresize-opts device [size:..] [force:..]\n"
26168 "\n"
26169 msgstr ""
26170
26171 #. type: textblock
26172 #: ../fish/guestfish-actions.pod:3431
26173 msgid ""
26174 "After the resize operation, the filesystem is always marked as requiring a "
26175 "consistency check (for safety).  You have to boot into Windows to perform "
26176 "this check and clear this condition.  If you I<don't> set the C<force> "
26177 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
26178 "a single filesystem without booting into Windows between each resize."
26179 msgstr ""
26180
26181 #. type: =head2
26182 #: ../fish/guestfish-actions.pod:3444
26183 msgid "ntfsresize-size"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../fish/guestfish-actions.pod:3446
26188 #, no-wrap
26189 msgid ""
26190 " ntfsresize-size device size\n"
26191 "\n"
26192 msgstr ""
26193
26194 #. type: textblock
26195 #: ../fish/guestfish-actions.pod:3448
26196 msgid ""
26197 "This command is the same as L</ntfsresize> except that it allows you to "
26198 "specify the new size (in bytes) explicitly."
26199 msgstr ""
26200
26201 #. type: =head2
26202 #: ../fish/guestfish-actions.pod:3458
26203 msgid "part-add"
26204 msgstr ""
26205
26206 #. type: verbatim
26207 #: ../fish/guestfish-actions.pod:3460
26208 #, no-wrap
26209 msgid ""
26210 " part-add device prlogex startsect endsect\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../fish/guestfish-actions.pod:3462
26216 msgid ""
26217 "This command adds a partition to C<device>.  If there is no partition table "
26218 "on the device, call L</part-init> first."
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../fish/guestfish-actions.pod:3474
26223 msgid ""
26224 "Creating a partition which covers the whole disk is not so easy.  Use "
26225 "L</part-disk> to do that."
26226 msgstr ""
26227
26228 #. type: =head2
26229 #: ../fish/guestfish-actions.pod:3477
26230 msgid "part-del"
26231 msgstr ""
26232
26233 #. type: verbatim
26234 #: ../fish/guestfish-actions.pod:3479
26235 #, no-wrap
26236 msgid ""
26237 " part-del device partnum\n"
26238 "\n"
26239 msgstr ""
26240
26241 #. type: =head2
26242 #: ../fish/guestfish-actions.pod:3487
26243 msgid "part-disk"
26244 msgstr ""
26245
26246 #. type: verbatim
26247 #: ../fish/guestfish-actions.pod:3489
26248 #, no-wrap
26249 msgid ""
26250 " part-disk device parttype\n"
26251 "\n"
26252 msgstr ""
26253
26254 #. type: textblock
26255 #: ../fish/guestfish-actions.pod:3491
26256 msgid ""
26257 "This command is simply a combination of L</part-init> followed by "
26258 "L</part-add> to create a single primary partition covering the whole disk."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../fish/guestfish-actions.pod:3495
26263 msgid ""
26264 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26265 "possible values are described in L</part-init>."
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../fish/guestfish-actions.pod:3501
26270 msgid "part-get-bootable"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../fish/guestfish-actions.pod:3503
26275 #, no-wrap
26276 msgid ""
26277 " part-get-bootable device partnum\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../fish/guestfish-actions.pod:3508
26283 msgid "See also L</part-set-bootable>."
26284 msgstr ""
26285
26286 #. type: =head2
26287 #: ../fish/guestfish-actions.pod:3510
26288 msgid "part-get-mbr-id"
26289 msgstr ""
26290
26291 #. type: verbatim
26292 #: ../fish/guestfish-actions.pod:3512
26293 #, no-wrap
26294 msgid ""
26295 " part-get-mbr-id device partnum\n"
26296 "\n"
26297 msgstr ""
26298
26299 #. type: textblock
26300 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3655
26301 msgid ""
26302 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26303 "undefined results for other partition table types (see "
26304 "L</part-get-parttype>)."
26305 msgstr ""
26306
26307 #. type: =head2
26308 #: ../fish/guestfish-actions.pod:3521
26309 msgid "part-get-parttype"
26310 msgstr ""
26311
26312 #. type: verbatim
26313 #: ../fish/guestfish-actions.pod:3523
26314 #, no-wrap
26315 msgid ""
26316 " part-get-parttype device\n"
26317 "\n"
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../fish/guestfish-actions.pod:3528
26322 msgid ""
26323 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26324 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26325 "possible, although unusual.  See L</part-init> for a full list."
26326 msgstr ""
26327
26328 #. type: =head2
26329 #: ../fish/guestfish-actions.pod:3533
26330 msgid "part-init"
26331 msgstr ""
26332
26333 #. type: verbatim
26334 #: ../fish/guestfish-actions.pod:3535
26335 #, no-wrap
26336 msgid ""
26337 " part-init device parttype\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: textblock
26342 #: ../fish/guestfish-actions.pod:3541
26343 msgid ""
26344 "Initially there are no partitions.  Following this, you should call "
26345 "L</part-add> for each partition required."
26346 msgstr ""
26347
26348 #. type: =head2
26349 #: ../fish/guestfish-actions.pod:3604
26350 msgid "part-list"
26351 msgstr ""
26352
26353 #. type: verbatim
26354 #: ../fish/guestfish-actions.pod:3606
26355 #, no-wrap
26356 msgid ""
26357 " part-list device\n"
26358 "\n"
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../fish/guestfish-actions.pod:3621
26363 msgid ""
26364 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26365 "the device's sector size, see L</blockdev-getss>."
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../fish/guestfish-actions.pod:3634
26370 msgid "part-set-bootable"
26371 msgstr ""
26372
26373 #. type: verbatim
26374 #: ../fish/guestfish-actions.pod:3636
26375 #, no-wrap
26376 msgid ""
26377 " part-set-bootable device partnum true|false\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: =head2
26382 #: ../fish/guestfish-actions.pod:3645
26383 msgid "part-set-mbr-id"
26384 msgstr ""
26385
26386 #. type: verbatim
26387 #: ../fish/guestfish-actions.pod:3647
26388 #, no-wrap
26389 msgid ""
26390 " part-set-mbr-id device partnum idbyte\n"
26391 "\n"
26392 msgstr ""
26393
26394 #. type: =head2
26395 #: ../fish/guestfish-actions.pod:3659
26396 msgid "part-set-name"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../fish/guestfish-actions.pod:3661
26401 #, no-wrap
26402 msgid ""
26403 " part-set-name device partnum name\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: =head2
26408 #: ../fish/guestfish-actions.pod:3669
26409 msgid "part-to-dev"
26410 msgstr ""
26411
26412 #. type: verbatim
26413 #: ../fish/guestfish-actions.pod:3671
26414 #, no-wrap
26415 msgid ""
26416 " part-to-dev partition\n"
26417 "\n"
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../fish/guestfish-actions.pod:3677
26422 msgid ""
26423 "The named partition must exist, for example as a string returned from "
26424 "L</list-partitions>."
26425 msgstr ""
26426
26427 #. type: =head2
26428 #: ../fish/guestfish-actions.pod:3680
26429 msgid "ping-daemon"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../fish/guestfish-actions.pod:3682
26434 #, no-wrap
26435 msgid ""
26436 " ping-daemon\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../fish/guestfish-actions.pod:3689
26442 msgid "pread"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../fish/guestfish-actions.pod:3691
26447 #, no-wrap
26448 msgid ""
26449 " pread path count offset\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../fish/guestfish-actions.pod:3699
26455 msgid "See also L</pwrite>, L</pread-device>."
26456 msgstr ""
26457
26458 #. type: =head2
26459 #: ../fish/guestfish-actions.pod:3704
26460 msgid "pread-device"
26461 msgstr ""
26462
26463 #. type: verbatim
26464 #: ../fish/guestfish-actions.pod:3706
26465 #, no-wrap
26466 msgid ""
26467 " pread-device device count offset\n"
26468 "\n"
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../fish/guestfish-actions.pod:3714
26473 msgid "See also L</pread>."
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../fish/guestfish-actions.pod:3719
26478 msgid "pvcreate"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../fish/guestfish-actions.pod:3721
26483 #, no-wrap
26484 msgid ""
26485 " pvcreate device\n"
26486 "\n"
26487 msgstr ""
26488
26489 #. type: =head2
26490 #: ../fish/guestfish-actions.pod:3727
26491 msgid "pvremove"
26492 msgstr ""
26493
26494 #. type: verbatim
26495 #: ../fish/guestfish-actions.pod:3729
26496 #, no-wrap
26497 msgid ""
26498 " pvremove device\n"
26499 "\n"
26500 msgstr ""
26501
26502 #. type: =head2
26503 #: ../fish/guestfish-actions.pod:3738
26504 msgid "pvresize"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../fish/guestfish-actions.pod:3740
26509 #, no-wrap
26510 msgid ""
26511 " pvresize device\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: =head2
26516 #: ../fish/guestfish-actions.pod:3745
26517 msgid "pvresize-size"
26518 msgstr ""
26519
26520 #. type: verbatim
26521 #: ../fish/guestfish-actions.pod:3747
26522 #, no-wrap
26523 msgid ""
26524 " pvresize-size device size\n"
26525 "\n"
26526 msgstr ""
26527
26528 #. type: textblock
26529 #: ../fish/guestfish-actions.pod:3749
26530 msgid ""
26531 "This command is the same as L</pvresize> except that it allows you to "
26532 "specify the new size (in bytes) explicitly."
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../fish/guestfish-actions.pod:3752
26537 msgid "pvs"
26538 msgstr ""
26539
26540 #. type: verbatim
26541 #: ../fish/guestfish-actions.pod:3754
26542 #, no-wrap
26543 msgid ""
26544 " pvs\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../fish/guestfish-actions.pod:3762
26550 msgid "See also L</pvs-full>."
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../fish/guestfish-actions.pod:3764
26555 msgid "pvs-full"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../fish/guestfish-actions.pod:3766
26560 #, no-wrap
26561 msgid ""
26562 " pvs-full\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../fish/guestfish-actions.pod:3771
26568 msgid "pvuuid"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../fish/guestfish-actions.pod:3773
26573 #, no-wrap
26574 msgid ""
26575 " pvuuid device\n"
26576 "\n"
26577 msgstr ""
26578
26579 #. type: =head2
26580 #: ../fish/guestfish-actions.pod:3777
26581 msgid "pwrite"
26582 msgstr ""
26583
26584 #. type: verbatim
26585 #: ../fish/guestfish-actions.pod:3779
26586 #, no-wrap
26587 msgid ""
26588 " pwrite path content offset\n"
26589 "\n"
26590 msgstr ""
26591
26592 #. type: textblock
26593 #: ../fish/guestfish-actions.pod:3790
26594 msgid "See also L</pread>, L</pwrite-device>."
26595 msgstr ""
26596
26597 #. type: =head2
26598 #: ../fish/guestfish-actions.pod:3795
26599 msgid "pwrite-device"
26600 msgstr ""
26601
26602 #. type: verbatim
26603 #: ../fish/guestfish-actions.pod:3797
26604 #, no-wrap
26605 msgid ""
26606 " pwrite-device device content offset\n"
26607 "\n"
26608 msgstr ""
26609
26610 #. type: textblock
26611 #: ../fish/guestfish-actions.pod:3807
26612 msgid "See also L</pwrite>."
26613 msgstr ""
26614
26615 #. type: =head2
26616 #: ../fish/guestfish-actions.pod:3812
26617 msgid "read-file"
26618 msgstr ""
26619
26620 #. type: verbatim
26621 #: ../fish/guestfish-actions.pod:3814
26622 #, no-wrap
26623 msgid ""
26624 " read-file path\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../fish/guestfish-actions.pod:3819
26630 msgid ""
26631 "Unlike L</cat>, this function can correctly handle files that contain "
26632 "embedded ASCII NUL characters.  However unlike L</download>, this function "
26633 "is limited in the total size of file that can be handled."
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../fish/guestfish-actions.pod:3827
26638 msgid "read-lines"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../fish/guestfish-actions.pod:3829
26643 #, no-wrap
26644 msgid ""
26645 " read-lines path\n"
26646 "\n"
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../fish/guestfish-actions.pod:3836
26651 msgid ""
26652 "Note that this function cannot correctly handle binary files (specifically, "
26653 "files containing C<\\0> character which is treated as end of line).  For "
26654 "those you need to use the L</read-file> function which has a more complex "
26655 "interface."
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../fish/guestfish-actions.pod:3841
26660 msgid "readdir"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../fish/guestfish-actions.pod:3843
26665 #, no-wrap
26666 msgid ""
26667 " readdir dir\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: textblock
26672 #: ../fish/guestfish-actions.pod:3895
26673 msgid ""
26674 "This function is primarily intended for use by programs.  To get a simple "
26675 "list of names, use L</ls>.  To get a printable directory for human "
26676 "consumption, use L</ll>."
26677 msgstr ""
26678
26679 #. type: =head2
26680 #: ../fish/guestfish-actions.pod:3899
26681 msgid "readlink"
26682 msgstr ""
26683
26684 #. type: verbatim
26685 #: ../fish/guestfish-actions.pod:3901
26686 #, no-wrap
26687 msgid ""
26688 " readlink path\n"
26689 "\n"
26690 msgstr ""
26691
26692 #. type: =head2
26693 #: ../fish/guestfish-actions.pod:3905
26694 msgid "readlinklist"
26695 msgstr ""
26696
26697 #. type: verbatim
26698 #: ../fish/guestfish-actions.pod:3907
26699 #, no-wrap
26700 msgid ""
26701 " readlinklist path 'names ...'\n"
26702 "\n"
26703 msgstr ""
26704
26705 #. type: =head2
26706 #: ../fish/guestfish-actions.pod:3931
26707 msgid "realpath"
26708 msgstr ""
26709
26710 #. type: verbatim
26711 #: ../fish/guestfish-actions.pod:3933
26712 #, no-wrap
26713 msgid ""
26714 " realpath path\n"
26715 "\n"
26716 msgstr ""
26717
26718 #. type: =head2
26719 #: ../fish/guestfish-actions.pod:3938
26720 msgid "removexattr"
26721 msgstr ""
26722
26723 #. type: verbatim
26724 #: ../fish/guestfish-actions.pod:3940
26725 #, no-wrap
26726 msgid ""
26727 " removexattr xattr path\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: textblock
26732 #: ../fish/guestfish-actions.pod:3945
26733 msgid "See also: L</lremovexattr>, L<attr(5)>."
26734 msgstr ""
26735
26736 #. type: =head2
26737 #: ../fish/guestfish-actions.pod:3947
26738 msgid "resize2fs"
26739 msgstr ""
26740
26741 #. type: verbatim
26742 #: ../fish/guestfish-actions.pod:3949
26743 #, no-wrap
26744 msgid ""
26745 " resize2fs device\n"
26746 "\n"
26747 msgstr ""
26748
26749 #. type: textblock
26750 #: ../fish/guestfish-actions.pod:3954
26751 msgid ""
26752 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
26753 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
26754 "gives an error about this and sometimes not.  In any case, it is always safe "
26755 "to call L</e2fsck-f> before calling this function."
26756 msgstr ""
26757
26758 #. type: =head2
26759 #: ../fish/guestfish-actions.pod:3960
26760 msgid "resize2fs-M"
26761 msgstr ""
26762
26763 #. type: verbatim
26764 #: ../fish/guestfish-actions.pod:3962
26765 #, no-wrap
26766 msgid ""
26767 " resize2fs-M device\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../fish/guestfish-actions.pod:3964
26773 msgid ""
26774 "This command is the same as L</resize2fs>, but the filesystem is resized to "
26775 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
26776 "command."
26777 msgstr ""
26778
26779 #. type: textblock
26780 #: ../fish/guestfish-actions.pod:3968
26781 msgid ""
26782 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
26783 "and read the C<Block size> and C<Block count> values.  These two numbers, "
26784 "multiplied together, give the resulting size of the minimal filesystem in "
26785 "bytes."
26786 msgstr ""
26787
26788 #. type: =head2
26789 #: ../fish/guestfish-actions.pod:3973
26790 msgid "resize2fs-size"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../fish/guestfish-actions.pod:3975
26795 #, no-wrap
26796 msgid ""
26797 " resize2fs-size device size\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: textblock
26802 #: ../fish/guestfish-actions.pod:3977
26803 msgid ""
26804 "This command is the same as L</resize2fs> except that it allows you to "
26805 "specify the new size (in bytes) explicitly."
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../fish/guestfish-actions.pod:3980
26810 msgid "rm"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../fish/guestfish-actions.pod:3982
26815 #, no-wrap
26816 msgid ""
26817 " rm path\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../fish/guestfish-actions.pod:3986
26823 msgid "rm-rf"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../fish/guestfish-actions.pod:3988
26828 #, no-wrap
26829 msgid ""
26830 " rm-rf path\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: =head2
26835 #: ../fish/guestfish-actions.pod:3994
26836 msgid "rmdir"
26837 msgstr ""
26838
26839 #. type: verbatim
26840 #: ../fish/guestfish-actions.pod:3996
26841 #, no-wrap
26842 msgid ""
26843 " rmdir path\n"
26844 "\n"
26845 msgstr ""
26846
26847 #. type: =head2
26848 #: ../fish/guestfish-actions.pod:4000
26849 msgid "rmmountpoint"
26850 msgstr ""
26851
26852 #. type: verbatim
26853 #: ../fish/guestfish-actions.pod:4002
26854 #, no-wrap
26855 msgid ""
26856 " rmmountpoint exemptpath\n"
26857 "\n"
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../fish/guestfish-actions.pod:4004
26862 msgid ""
26863 "This calls removes a mountpoint that was previously created with "
26864 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../fish/guestfish-actions.pod:4008
26869 msgid "scrub-device"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../fish/guestfish-actions.pod:4010
26874 #, no-wrap
26875 msgid ""
26876 " scrub-device device\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: =head2
26881 #: ../fish/guestfish-actions.pod:4021
26882 msgid "scrub-file"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../fish/guestfish-actions.pod:4023
26887 #, no-wrap
26888 msgid ""
26889 " scrub-file file\n"
26890 "\n"
26891 msgstr ""
26892
26893 #. type: =head2
26894 #: ../fish/guestfish-actions.pod:4033
26895 msgid "scrub-freespace"
26896 msgstr ""
26897
26898 #. type: verbatim
26899 #: ../fish/guestfish-actions.pod:4035
26900 #, no-wrap
26901 msgid ""
26902 " scrub-freespace dir\n"
26903 "\n"
26904 msgstr ""
26905
26906 #. type: textblock
26907 #: ../fish/guestfish-actions.pod:4037
26908 msgid ""
26909 "This command creates the directory C<dir> and then fills it with files until "
26910 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
26911 "deletes them.  The intention is to scrub any free space on the partition "
26912 "containing C<dir>."
26913 msgstr ""
26914
26915 #. type: =head2
26916 #: ../fish/guestfish-actions.pod:4046
26917 msgid "set-append"
26918 msgstr ""
26919
26920 #. type: =head2
26921 #: ../fish/guestfish-actions.pod:4048
26922 msgid "append"
26923 msgstr ""
26924
26925 #. type: verbatim
26926 #: ../fish/guestfish-actions.pod:4050
26927 #, no-wrap
26928 msgid ""
26929 " set-append append\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../fish/guestfish-actions.pod:4061
26935 msgid "set-attach-method"
26936 msgstr ""
26937
26938 #. type: =head2
26939 #: ../fish/guestfish-actions.pod:4063
26940 msgid "attach-method"
26941 msgstr ""
26942
26943 #. type: verbatim
26944 #: ../fish/guestfish-actions.pod:4065
26945 #, no-wrap
26946 msgid ""
26947 " set-attach-method attachmethod\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: =head2
26952 #: ../fish/guestfish-actions.pod:4087
26953 msgid "set-autosync"
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../fish/guestfish-actions.pod:4089
26958 msgid "autosync"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../fish/guestfish-actions.pod:4091
26963 #, no-wrap
26964 msgid ""
26965 " set-autosync true|false\n"
26966 "\n"
26967 msgstr ""
26968
26969 #. type: =head2
26970 #: ../fish/guestfish-actions.pod:4101
26971 msgid "set-direct"
26972 msgstr ""
26973
26974 #. type: =head2
26975 #: ../fish/guestfish-actions.pod:4103
26976 msgid "direct"
26977 msgstr ""
26978
26979 #. type: verbatim
26980 #: ../fish/guestfish-actions.pod:4105
26981 #, no-wrap
26982 msgid ""
26983 " set-direct true|false\n"
26984 "\n"
26985 msgstr ""
26986
26987 #. type: textblock
26988 #: ../fish/guestfish-actions.pod:4111
26989 msgid ""
26990 "One consequence of this is that log messages aren't caught by the library "
26991 "and handled by L</set-log-message-callback>, but go straight to stdout."
26992 msgstr ""
26993
26994 #. type: =head2
26995 #: ../fish/guestfish-actions.pod:4120
26996 msgid "set-e2label"
26997 msgstr ""
26998
26999 #. type: verbatim
27000 #: ../fish/guestfish-actions.pod:4122
27001 #, no-wrap
27002 msgid ""
27003 " set-e2label device label\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../fish/guestfish-actions.pod:4128
27009 msgid ""
27010 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
27011 "label on a filesystem."
27012 msgstr ""
27013
27014 #. type: =head2
27015 #: ../fish/guestfish-actions.pod:4131
27016 msgid "set-e2uuid"
27017 msgstr ""
27018
27019 #. type: verbatim
27020 #: ../fish/guestfish-actions.pod:4133
27021 #, no-wrap
27022 msgid ""
27023 " set-e2uuid device uuid\n"
27024 "\n"
27025 msgstr ""
27026
27027 #. type: textblock
27028 #: ../fish/guestfish-actions.pod:4140
27029 msgid ""
27030 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
27031 "UUID of a filesystem."
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../fish/guestfish-actions.pod:4143
27036 msgid "set-memsize"
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../fish/guestfish-actions.pod:4145
27041 msgid "memsize"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../fish/guestfish-actions.pod:4147
27046 #, no-wrap
27047 msgid ""
27048 " set-memsize memsize\n"
27049 "\n"
27050 msgstr ""
27051
27052 #. type: textblock
27053 #: ../fish/guestfish-actions.pod:4149
27054 msgid ""
27055 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27056 "This only has any effect if called before L</launch>."
27057 msgstr ""
27058
27059 #. type: =head2
27060 #: ../fish/guestfish-actions.pod:4160
27061 msgid "set-network"
27062 msgstr ""
27063
27064 #. type: =head2
27065 #: ../fish/guestfish-actions.pod:4162
27066 msgid "network"
27067 msgstr ""
27068
27069 #. type: verbatim
27070 #: ../fish/guestfish-actions.pod:4164
27071 #, no-wrap
27072 msgid ""
27073 " set-network true|false\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: textblock
27078 #: ../fish/guestfish-actions.pod:4172
27079 msgid "You must call this before calling L</launch>, otherwise it has no effect."
27080 msgstr ""
27081
27082 #. type: =head2
27083 #: ../fish/guestfish-actions.pod:4175
27084 msgid "set-path"
27085 msgstr ""
27086
27087 #. type: =head2
27088 #: ../fish/guestfish-actions.pod:4177
27089 msgid "path"
27090 msgstr ""
27091
27092 #. type: verbatim
27093 #: ../fish/guestfish-actions.pod:4179
27094 #, no-wrap
27095 msgid ""
27096 " set-path searchpath\n"
27097 "\n"
27098 msgstr ""
27099
27100 #. type: =head2
27101 #: ../fish/guestfish-actions.pod:4188
27102 msgid "set-pgroup"
27103 msgstr ""
27104
27105 #. type: =head2
27106 #: ../fish/guestfish-actions.pod:4190
27107 msgid "pgroup"
27108 msgstr ""
27109
27110 #. type: verbatim
27111 #: ../fish/guestfish-actions.pod:4192
27112 #, no-wrap
27113 msgid ""
27114 " set-pgroup true|false\n"
27115 "\n"
27116 msgstr ""
27117
27118 #. type: =head2
27119 #: ../fish/guestfish-actions.pod:4203
27120 msgid "set-qemu"
27121 msgstr ""
27122
27123 #. type: =head2
27124 #: ../fish/guestfish-actions.pod:4205
27125 msgid "qemu"
27126 msgstr ""
27127
27128 #. type: verbatim
27129 #: ../fish/guestfish-actions.pod:4207
27130 #, no-wrap
27131 msgid ""
27132 " set-qemu qemu\n"
27133 "\n"
27134 msgstr ""
27135
27136 #. type: =head2
27137 #: ../fish/guestfish-actions.pod:4227
27138 msgid "set-recovery-proc"
27139 msgstr ""
27140
27141 #. type: =head2
27142 #: ../fish/guestfish-actions.pod:4229
27143 msgid "recovery-proc"
27144 msgstr ""
27145
27146 #. type: verbatim
27147 #: ../fish/guestfish-actions.pod:4231
27148 #, no-wrap
27149 msgid ""
27150 " set-recovery-proc true|false\n"
27151 "\n"
27152 msgstr ""
27153
27154 #. type: textblock
27155 #: ../fish/guestfish-actions.pod:4233
27156 msgid ""
27157 "If this is called with the parameter C<false> then L</launch> does not "
27158 "create a recovery process.  The purpose of the recovery process is to stop "
27159 "runaway qemu processes in the case where the main program aborts abruptly."
27160 msgstr ""
27161
27162 #. type: textblock
27163 #: ../fish/guestfish-actions.pod:4238
27164 msgid ""
27165 "This only has any effect if called before L</launch>, and the default is "
27166 "true."
27167 msgstr ""
27168
27169 #. type: =head2
27170 #: ../fish/guestfish-actions.pod:4247
27171 msgid "set-selinux"
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../fish/guestfish-actions.pod:4249
27176 msgid "selinux"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../fish/guestfish-actions.pod:4251
27181 #, no-wrap
27182 msgid ""
27183 " set-selinux true|false\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: =head2
27188 #: ../fish/guestfish-actions.pod:4262
27189 msgid "set-trace"
27190 msgstr ""
27191
27192 #. type: =head2
27193 #: ../fish/guestfish-actions.pod:4264
27194 msgid "trace"
27195 msgstr ""
27196
27197 #. type: verbatim
27198 #: ../fish/guestfish-actions.pod:4266
27199 #, no-wrap
27200 msgid ""
27201 " set-trace true|false\n"
27202 "\n"
27203 msgstr ""
27204
27205 #. type: textblock
27206 #: ../fish/guestfish-actions.pod:4278
27207 msgid ""
27208 "Trace messages are normally sent to C<stderr>, unless you register a "
27209 "callback to send them somewhere else (see L</set-event-callback>)."
27210 msgstr ""
27211
27212 #. type: =head2
27213 #: ../fish/guestfish-actions.pod:4282
27214 msgid "set-verbose"
27215 msgstr ""
27216
27217 #. type: =head2
27218 #: ../fish/guestfish-actions.pod:4284
27219 msgid "verbose"
27220 msgstr ""
27221
27222 #. type: verbatim
27223 #: ../fish/guestfish-actions.pod:4286
27224 #, no-wrap
27225 msgid ""
27226 " set-verbose true|false\n"
27227 "\n"
27228 msgstr ""
27229
27230 #. type: textblock
27231 #: ../fish/guestfish-actions.pod:4293
27232 msgid ""
27233 "Verbose messages are normally sent to C<stderr>, unless you register a "
27234 "callback to send them somewhere else (see L</set-event-callback>)."
27235 msgstr ""
27236
27237 #. type: =head2
27238 #: ../fish/guestfish-actions.pod:4297
27239 msgid "setcon"
27240 msgstr ""
27241
27242 #. type: verbatim
27243 #: ../fish/guestfish-actions.pod:4299
27244 #, no-wrap
27245 msgid ""
27246 " setcon context\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../fish/guestfish-actions.pod:4306
27252 msgid "setxattr"
27253 msgstr ""
27254
27255 #. type: verbatim
27256 #: ../fish/guestfish-actions.pod:4308
27257 #, no-wrap
27258 msgid ""
27259 " setxattr xattr val vallen path\n"
27260 "\n"
27261 msgstr ""
27262
27263 #. type: textblock
27264 #: ../fish/guestfish-actions.pod:4314
27265 msgid "See also: L</lsetxattr>, L<attr(5)>."
27266 msgstr ""
27267
27268 #. type: =head2
27269 #: ../fish/guestfish-actions.pod:4316
27270 msgid "sfdisk"
27271 msgstr ""
27272
27273 #. type: verbatim
27274 #: ../fish/guestfish-actions.pod:4318
27275 #, no-wrap
27276 msgid ""
27277 " sfdisk device cyls heads sectors 'lines ...'\n"
27278 "\n"
27279 msgstr ""
27280
27281 #. type: textblock
27282 #: ../fish/guestfish-actions.pod:4340
27283 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
27284 msgstr ""
27285
27286 #. type: =head2
27287 #: ../fish/guestfish-actions.pod:4353
27288 msgid "sfdiskM"
27289 msgstr ""
27290
27291 #. type: verbatim
27292 #: ../fish/guestfish-actions.pod:4355
27293 #, no-wrap
27294 msgid ""
27295 " sfdiskM device 'lines ...'\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../fish/guestfish-actions.pod:4357
27301 msgid ""
27302 "This is a simplified interface to the L</sfdisk> command, where partition "
27303 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
27304 "you don't need to specify the cyls, heads and sectors parameters which were "
27305 "rarely if ever used anyway."
27306 msgstr ""
27307
27308 #. type: textblock
27309 #: ../fish/guestfish-actions.pod:4363
27310 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
27311 msgstr ""
27312
27313 #. type: =head2
27314 #: ../fish/guestfish-actions.pod:4376
27315 msgid "sfdisk-N"
27316 msgstr ""
27317
27318 #. type: verbatim
27319 #: ../fish/guestfish-actions.pod:4378
27320 #, no-wrap
27321 msgid ""
27322 " sfdisk-N device partnum cyls heads sectors line\n"
27323 "\n"
27324 msgstr ""
27325
27326 #. type: textblock
27327 #: ../fish/guestfish-actions.pod:4383
27328 msgid ""
27329 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
27330 "cyls/heads/sectors parameters."
27331 msgstr ""
27332
27333 #. type: textblock
27334 #: ../fish/guestfish-actions.pod:4386
27335 msgid "See also: L</part-add>"
27336 msgstr ""
27337
27338 #. type: =head2
27339 #: ../fish/guestfish-actions.pod:4398
27340 msgid "sfdisk-disk-geometry"
27341 msgstr ""
27342
27343 #. type: verbatim
27344 #: ../fish/guestfish-actions.pod:4400
27345 #, no-wrap
27346 msgid ""
27347 " sfdisk-disk-geometry device\n"
27348 "\n"
27349 msgstr ""
27350
27351 #. type: textblock
27352 #: ../fish/guestfish-actions.pod:4402
27353 msgid ""
27354 "This displays the disk geometry of C<device> read from the partition table.  "
27355 "Especially in the case where the underlying block device has been resized, "
27356 "this can be different from the kernel's idea of the geometry (see "
27357 "L</sfdisk-kernel-geometry>)."
27358 msgstr ""
27359
27360 #. type: =head2
27361 #: ../fish/guestfish-actions.pod:4410
27362 msgid "sfdisk-kernel-geometry"
27363 msgstr ""
27364
27365 #. type: verbatim
27366 #: ../fish/guestfish-actions.pod:4412
27367 #, no-wrap
27368 msgid ""
27369 " sfdisk-kernel-geometry device\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../fish/guestfish-actions.pod:4419
27375 msgid "sfdisk-l"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../fish/guestfish-actions.pod:4421
27380 #, no-wrap
27381 msgid ""
27382 " sfdisk-l device\n"
27383 "\n"
27384 msgstr ""
27385
27386 #. type: textblock
27387 #: ../fish/guestfish-actions.pod:4427
27388 msgid "See also: L</part-list>"
27389 msgstr ""
27390
27391 #. type: =head2
27392 #: ../fish/guestfish-actions.pod:4436
27393 msgid "sh"
27394 msgstr ""
27395
27396 #. type: verbatim
27397 #: ../fish/guestfish-actions.pod:4438
27398 #, no-wrap
27399 msgid ""
27400 " sh command\n"
27401 "\n"
27402 msgstr ""
27403
27404 #. type: textblock
27405 #: ../fish/guestfish-actions.pod:4443
27406 msgid "This is like L</command>, but passes the command to:"
27407 msgstr ""
27408
27409 #. type: textblock
27410 #: ../fish/guestfish-actions.pod:4451
27411 msgid "All the provisos about L</command> apply to this call."
27412 msgstr ""
27413
27414 #. type: =head2
27415 #: ../fish/guestfish-actions.pod:4453
27416 msgid "sh-lines"
27417 msgstr ""
27418
27419 #. type: verbatim
27420 #: ../fish/guestfish-actions.pod:4455
27421 #, no-wrap
27422 msgid ""
27423 " sh-lines command\n"
27424 "\n"
27425 msgstr ""
27426
27427 #. type: textblock
27428 #: ../fish/guestfish-actions.pod:4457
27429 msgid "This is the same as L</sh>, but splits the result into a list of lines."
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../fish/guestfish-actions.pod:4460
27434 msgid "See also: L</command-lines>"
27435 msgstr ""
27436
27437 #. type: =head2
27438 #: ../fish/guestfish-actions.pod:4462
27439 msgid "sleep"
27440 msgstr ""
27441
27442 #. type: verbatim
27443 #: ../fish/guestfish-actions.pod:4464
27444 #, no-wrap
27445 msgid ""
27446 " sleep secs\n"
27447 "\n"
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../fish/guestfish-actions.pod:4468
27452 msgid "stat"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../fish/guestfish-actions.pod:4470
27457 #, no-wrap
27458 msgid ""
27459 " stat path\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: =head2
27464 #: ../fish/guestfish-actions.pod:4476
27465 msgid "statvfs"
27466 msgstr ""
27467
27468 #. type: verbatim
27469 #: ../fish/guestfish-actions.pod:4478
27470 #, no-wrap
27471 msgid ""
27472 " statvfs path\n"
27473 "\n"
27474 msgstr ""
27475
27476 #. type: =head2
27477 #: ../fish/guestfish-actions.pod:4486
27478 msgid "strings"
27479 msgstr ""
27480
27481 #. type: verbatim
27482 #: ../fish/guestfish-actions.pod:4488
27483 #, no-wrap
27484 msgid ""
27485 " strings path\n"
27486 "\n"
27487 msgstr ""
27488
27489 #. type: =head2
27490 #: ../fish/guestfish-actions.pod:4496
27491 msgid "strings-e"
27492 msgstr ""
27493
27494 #. type: verbatim
27495 #: ../fish/guestfish-actions.pod:4498
27496 #, no-wrap
27497 msgid ""
27498 " strings-e encoding path\n"
27499 "\n"
27500 msgstr ""
27501
27502 #. type: textblock
27503 #: ../fish/guestfish-actions.pod:4500
27504 msgid ""
27505 "This is like the L</strings> command, but allows you to specify the encoding "
27506 "of strings that are looked for in the source file C<path>."
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../fish/guestfish-actions.pod:4510
27511 msgid ""
27512 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
27513 "ISO-8859-X (this is what L</strings> uses)."
27514 msgstr ""
27515
27516 #. type: =head2
27517 #: ../fish/guestfish-actions.pod:4542
27518 msgid "swapoff-device"
27519 msgstr ""
27520
27521 #. type: verbatim
27522 #: ../fish/guestfish-actions.pod:4544
27523 #, no-wrap
27524 msgid ""
27525 " swapoff-device device\n"
27526 "\n"
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../fish/guestfish-actions.pod:4546
27531 msgid ""
27532 "This command disables the libguestfs appliance swap device or partition "
27533 "named C<device>.  See L</swapon-device>."
27534 msgstr ""
27535
27536 #. type: =head2
27537 #: ../fish/guestfish-actions.pod:4550
27538 msgid "swapoff-file"
27539 msgstr ""
27540
27541 #. type: verbatim
27542 #: ../fish/guestfish-actions.pod:4552
27543 #, no-wrap
27544 msgid ""
27545 " swapoff-file file\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../fish/guestfish-actions.pod:4556
27551 msgid "swapoff-label"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../fish/guestfish-actions.pod:4558
27556 #, no-wrap
27557 msgid ""
27558 " swapoff-label label\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: =head2
27563 #: ../fish/guestfish-actions.pod:4563
27564 msgid "swapoff-uuid"
27565 msgstr ""
27566
27567 #. type: verbatim
27568 #: ../fish/guestfish-actions.pod:4565
27569 #, no-wrap
27570 msgid ""
27571 " swapoff-uuid uuid\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: =head2
27576 #: ../fish/guestfish-actions.pod:4570
27577 msgid "swapon-device"
27578 msgstr ""
27579
27580 #. type: verbatim
27581 #: ../fish/guestfish-actions.pod:4572
27582 #, no-wrap
27583 msgid ""
27584 " swapon-device device\n"
27585 "\n"
27586 msgstr ""
27587
27588 #. type: textblock
27589 #: ../fish/guestfish-actions.pod:4574
27590 msgid ""
27591 "This command enables the libguestfs appliance to use the swap device or "
27592 "partition named C<device>.  The increased memory is made available for all "
27593 "commands, for example those run using L</command> or L</sh>."
27594 msgstr ""
27595
27596 #. type: =head2
27597 #: ../fish/guestfish-actions.pod:4586
27598 msgid "swapon-file"
27599 msgstr ""
27600
27601 #. type: verbatim
27602 #: ../fish/guestfish-actions.pod:4588
27603 #, no-wrap
27604 msgid ""
27605 " swapon-file file\n"
27606 "\n"
27607 msgstr ""
27608
27609 #. type: textblock
27610 #: ../fish/guestfish-actions.pod:4590
27611 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
27612 msgstr ""
27613
27614 #. type: =head2
27615 #: ../fish/guestfish-actions.pod:4593
27616 msgid "swapon-label"
27617 msgstr ""
27618
27619 #. type: verbatim
27620 #: ../fish/guestfish-actions.pod:4595
27621 #, no-wrap
27622 msgid ""
27623 " swapon-label label\n"
27624 "\n"
27625 msgstr ""
27626
27627 #. type: textblock
27628 #: ../fish/guestfish-actions.pod:4597
27629 msgid ""
27630 "This command enables swap to a labeled swap partition.  See "
27631 "L</swapon-device> for other notes."
27632 msgstr ""
27633
27634 #. type: =head2
27635 #: ../fish/guestfish-actions.pod:4600
27636 msgid "swapon-uuid"
27637 msgstr ""
27638
27639 #. type: verbatim
27640 #: ../fish/guestfish-actions.pod:4602
27641 #, no-wrap
27642 msgid ""
27643 " swapon-uuid uuid\n"
27644 "\n"
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../fish/guestfish-actions.pod:4604
27649 msgid ""
27650 "This command enables swap to a swap partition with the given UUID.  See "
27651 "L</swapon-device> for other notes."
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../fish/guestfish-actions.pod:4607
27656 msgid "sync"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../fish/guestfish-actions.pod:4609
27661 #, no-wrap
27662 msgid ""
27663 " sync\n"
27664 "\n"
27665 msgstr ""
27666
27667 #. type: =head2
27668 #: ../fish/guestfish-actions.pod:4617
27669 msgid "tail"
27670 msgstr ""
27671
27672 #. type: verbatim
27673 #: ../fish/guestfish-actions.pod:4619
27674 #, no-wrap
27675 msgid ""
27676 " tail path\n"
27677 "\n"
27678 msgstr ""
27679
27680 #. type: =head2
27681 #: ../fish/guestfish-actions.pod:4627
27682 msgid "tail-n"
27683 msgstr ""
27684
27685 #. type: verbatim
27686 #: ../fish/guestfish-actions.pod:4629
27687 #, no-wrap
27688 msgid ""
27689 " tail-n nrlines path\n"
27690 "\n"
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../fish/guestfish-actions.pod:4642
27695 msgid "tar-in"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../fish/guestfish-actions.pod:4644
27700 #, no-wrap
27701 msgid ""
27702 " tar-in (tarfile|-) directory\n"
27703 "\n"
27704 msgstr ""
27705
27706 #. type: textblock
27707 #: ../fish/guestfish-actions.pod:4649
27708 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
27709 msgstr ""
27710
27711 #. type: =head2
27712 #: ../fish/guestfish-actions.pod:4654
27713 msgid "tar-out"
27714 msgstr ""
27715
27716 #. type: verbatim
27717 #: ../fish/guestfish-actions.pod:4656
27718 #, no-wrap
27719 msgid ""
27720 " tar-out directory (tarfile|-)\n"
27721 "\n"
27722 msgstr ""
27723
27724 #. type: textblock
27725 #: ../fish/guestfish-actions.pod:4661
27726 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
27727 msgstr ""
27728
27729 #. type: =head2
27730 #: ../fish/guestfish-actions.pod:4666
27731 msgid "tgz-in"
27732 msgstr ""
27733
27734 #. type: verbatim
27735 #: ../fish/guestfish-actions.pod:4668
27736 #, no-wrap
27737 msgid ""
27738 " tgz-in (tarball|-) directory\n"
27739 "\n"
27740 msgstr ""
27741
27742 #. type: textblock
27743 #: ../fish/guestfish-actions.pod:4673
27744 msgid "To upload an uncompressed tarball, use L</tar-in>."
27745 msgstr ""
27746
27747 #. type: =head2
27748 #: ../fish/guestfish-actions.pod:4677
27749 msgid "tgz-out"
27750 msgstr ""
27751
27752 #. type: verbatim
27753 #: ../fish/guestfish-actions.pod:4679
27754 #, no-wrap
27755 msgid ""
27756 " tgz-out directory (tarball|-)\n"
27757 "\n"
27758 msgstr ""
27759
27760 #. type: textblock
27761 #: ../fish/guestfish-actions.pod:4684
27762 msgid "To download an uncompressed tarball, use L</tar-out>."
27763 msgstr ""
27764
27765 #. type: =head2
27766 #: ../fish/guestfish-actions.pod:4688
27767 msgid "touch"
27768 msgstr ""
27769
27770 #. type: verbatim
27771 #: ../fish/guestfish-actions.pod:4690
27772 #, no-wrap
27773 msgid ""
27774 " touch path\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../fish/guestfish-actions.pod:4699
27780 msgid "truncate"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../fish/guestfish-actions.pod:4701
27785 #, no-wrap
27786 msgid ""
27787 " truncate path\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: =head2
27792 #: ../fish/guestfish-actions.pod:4706
27793 msgid "truncate-size"
27794 msgstr ""
27795
27796 #. type: verbatim
27797 #: ../fish/guestfish-actions.pod:4708
27798 #, no-wrap
27799 msgid ""
27800 " truncate-size path size\n"
27801 "\n"
27802 msgstr ""
27803
27804 #. type: textblock
27805 #: ../fish/guestfish-actions.pod:4713
27806 msgid ""
27807 "If the current file size is less than C<size> then the file is extended to "
27808 "the required size with zero bytes.  This creates a sparse file (ie. disk "
27809 "blocks are not allocated for the file until you write to it).  To create a "
27810 "non-sparse file of zeroes, use L</fallocate64> instead."
27811 msgstr ""
27812
27813 #. type: =head2
27814 #: ../fish/guestfish-actions.pod:4719
27815 msgid "tune2fs-l"
27816 msgstr ""
27817
27818 #. type: verbatim
27819 #: ../fish/guestfish-actions.pod:4721
27820 #, no-wrap
27821 msgid ""
27822 " tune2fs-l device\n"
27823 "\n"
27824 msgstr ""
27825
27826 #. type: =head2
27827 #: ../fish/guestfish-actions.pod:4731
27828 msgid "txz-in"
27829 msgstr ""
27830
27831 #. type: verbatim
27832 #: ../fish/guestfish-actions.pod:4733
27833 #, no-wrap
27834 msgid ""
27835 " txz-in (tarball|-) directory\n"
27836 "\n"
27837 msgstr ""
27838
27839 #. type: =head2
27840 #: ../fish/guestfish-actions.pod:4740
27841 msgid "txz-out"
27842 msgstr ""
27843
27844 #. type: verbatim
27845 #: ../fish/guestfish-actions.pod:4742
27846 #, no-wrap
27847 msgid ""
27848 " txz-out directory (tarball|-)\n"
27849 "\n"
27850 msgstr ""
27851
27852 #. type: =head2
27853 #: ../fish/guestfish-actions.pod:4749
27854 msgid "umask"
27855 msgstr ""
27856
27857 #. type: verbatim
27858 #: ../fish/guestfish-actions.pod:4751
27859 #, no-wrap
27860 msgid ""
27861 " umask mask\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../fish/guestfish-actions.pod:4765
27867 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../fish/guestfish-actions.pod:4770
27872 msgid "umount"
27873 msgstr ""
27874
27875 #. type: =head2
27876 #: ../fish/guestfish-actions.pod:4772
27877 msgid "unmount"
27878 msgstr ""
27879
27880 #. type: verbatim
27881 #: ../fish/guestfish-actions.pod:4774
27882 #, no-wrap
27883 msgid ""
27884 " umount pathordevice\n"
27885 "\n"
27886 msgstr ""
27887
27888 #. type: =head2
27889 #: ../fish/guestfish-actions.pod:4780
27890 msgid "umount-all"
27891 msgstr ""
27892
27893 #. type: =head2
27894 #: ../fish/guestfish-actions.pod:4782
27895 msgid "unmount-all"
27896 msgstr ""
27897
27898 #. type: verbatim
27899 #: ../fish/guestfish-actions.pod:4784
27900 #, no-wrap
27901 msgid ""
27902 " umount-all\n"
27903 "\n"
27904 msgstr ""
27905
27906 #. type: =head2
27907 #: ../fish/guestfish-actions.pod:4790
27908 msgid "upload"
27909 msgstr ""
27910
27911 #. type: verbatim
27912 #: ../fish/guestfish-actions.pod:4792
27913 #, no-wrap
27914 msgid ""
27915 " upload (filename|-) remotefilename\n"
27916 "\n"
27917 msgstr ""
27918
27919 #. type: textblock
27920 #: ../fish/guestfish-actions.pod:4799
27921 msgid "See also L</download>."
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../fish/guestfish-actions.pod:4803
27926 msgid "upload-offset"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../fish/guestfish-actions.pod:4805
27931 #, no-wrap
27932 msgid ""
27933 " upload-offset (filename|-) remotefilename offset\n"
27934 "\n"
27935 msgstr ""
27936
27937 #. type: textblock
27938 #: ../fish/guestfish-actions.pod:4817
27939 msgid ""
27940 "Note that there is no limit on the amount of data that can be uploaded with "
27941 "this call, unlike with L</pwrite>, and this call always writes the full "
27942 "amount unless an error occurs."
27943 msgstr ""
27944
27945 #. type: textblock
27946 #: ../fish/guestfish-actions.pod:4822
27947 msgid "See also L</upload>, L</pwrite>."
27948 msgstr ""
27949
27950 #. type: =head2
27951 #: ../fish/guestfish-actions.pod:4826
27952 msgid "utimens"
27953 msgstr ""
27954
27955 #. type: verbatim
27956 #: ../fish/guestfish-actions.pod:4828
27957 #, no-wrap
27958 msgid ""
27959 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
27960 "\n"
27961 msgstr ""
27962
27963 #. type: =head2
27964 #: ../fish/guestfish-actions.pod:4847
27965 msgid "version"
27966 msgstr ""
27967
27968 #. type: verbatim
27969 #: ../fish/guestfish-actions.pod:4849
27970 #, no-wrap
27971 msgid ""
27972 " version\n"
27973 "\n"
27974 msgstr ""
27975
27976 #. type: textblock
27977 #: ../fish/guestfish-actions.pod:4876
27978 msgid ""
27979 "I<Note:> Don't use this call to test for availability of features.  In "
27980 "enterprise distributions we backport features from later versions into "
27981 "earlier versions, making this an unreliable way to test for features.  Use "
27982 "L</available> instead."
27983 msgstr ""
27984
27985 #. type: =head2
27986 #: ../fish/guestfish-actions.pod:4882
27987 msgid "vfs-label"
27988 msgstr ""
27989
27990 #. type: verbatim
27991 #: ../fish/guestfish-actions.pod:4884
27992 #, no-wrap
27993 msgid ""
27994 " vfs-label device\n"
27995 "\n"
27996 msgstr ""
27997
27998 #. type: textblock
27999 #: ../fish/guestfish-actions.pod:4891
28000 msgid "To find a filesystem from the label, use L</findfs-label>."
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../fish/guestfish-actions.pod:4893
28005 msgid "vfs-type"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../fish/guestfish-actions.pod:4895
28010 #, no-wrap
28011 msgid ""
28012 " vfs-type device\n"
28013 "\n"
28014 msgstr ""
28015
28016 #. type: =head2
28017 #: ../fish/guestfish-actions.pod:4905
28018 msgid "vfs-uuid"
28019 msgstr ""
28020
28021 #. type: verbatim
28022 #: ../fish/guestfish-actions.pod:4907
28023 #, no-wrap
28024 msgid ""
28025 " vfs-uuid device\n"
28026 "\n"
28027 msgstr ""
28028
28029 #. type: textblock
28030 #: ../fish/guestfish-actions.pod:4914
28031 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
28032 msgstr ""
28033
28034 #. type: =head2
28035 #: ../fish/guestfish-actions.pod:4916
28036 msgid "vg-activate"
28037 msgstr ""
28038
28039 #. type: verbatim
28040 #: ../fish/guestfish-actions.pod:4918
28041 #, no-wrap
28042 msgid ""
28043 " vg-activate true|false 'volgroups ...'\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: =head2
28048 #: ../fish/guestfish-actions.pod:4928
28049 msgid "vg-activate-all"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../fish/guestfish-actions.pod:4930
28054 #, no-wrap
28055 msgid ""
28056 " vg-activate-all true|false\n"
28057 "\n"
28058 msgstr ""
28059
28060 #. type: =head2
28061 #: ../fish/guestfish-actions.pod:4937
28062 msgid "vgcreate"
28063 msgstr ""
28064
28065 #. type: verbatim
28066 #: ../fish/guestfish-actions.pod:4939
28067 #, no-wrap
28068 msgid ""
28069 " vgcreate volgroup 'physvols ...'\n"
28070 "\n"
28071 msgstr ""
28072
28073 #. type: =head2
28074 #: ../fish/guestfish-actions.pod:4944
28075 msgid "vglvuuids"
28076 msgstr ""
28077
28078 #. type: verbatim
28079 #: ../fish/guestfish-actions.pod:4946
28080 #, no-wrap
28081 msgid ""
28082 " vglvuuids vgname\n"
28083 "\n"
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../fish/guestfish-actions.pod:4951
28088 msgid ""
28089 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
28090 "logical volumes and volume groups."
28091 msgstr ""
28092
28093 #. type: textblock
28094 #: ../fish/guestfish-actions.pod:4954
28095 msgid "See also L</vgpvuuids>."
28096 msgstr ""
28097
28098 #. type: =head2
28099 #: ../fish/guestfish-actions.pod:4956
28100 msgid "vgpvuuids"
28101 msgstr ""
28102
28103 #. type: verbatim
28104 #: ../fish/guestfish-actions.pod:4958
28105 #, no-wrap
28106 msgid ""
28107 " vgpvuuids vgname\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: textblock
28112 #: ../fish/guestfish-actions.pod:4963
28113 msgid ""
28114 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
28115 "physical volumes and volume groups."
28116 msgstr ""
28117
28118 #. type: textblock
28119 #: ../fish/guestfish-actions.pod:4966
28120 msgid "See also L</vglvuuids>."
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../fish/guestfish-actions.pod:4968
28125 msgid "vgremove"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../fish/guestfish-actions.pod:4970
28130 #, no-wrap
28131 msgid ""
28132 " vgremove vgname\n"
28133 "\n"
28134 msgstr ""
28135
28136 #. type: =head2
28137 #: ../fish/guestfish-actions.pod:4977
28138 msgid "vgrename"
28139 msgstr ""
28140
28141 #. type: verbatim
28142 #: ../fish/guestfish-actions.pod:4979
28143 #, no-wrap
28144 msgid ""
28145 " vgrename volgroup newvolgroup\n"
28146 "\n"
28147 msgstr ""
28148
28149 #. type: =head2
28150 #: ../fish/guestfish-actions.pod:4983
28151 msgid "vgs"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../fish/guestfish-actions.pod:4985
28156 #, no-wrap
28157 msgid ""
28158 " vgs\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../fish/guestfish-actions.pod:4993
28164 msgid "See also L</vgs-full>."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../fish/guestfish-actions.pod:4995
28169 msgid "vgs-full"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../fish/guestfish-actions.pod:4997
28174 #, no-wrap
28175 msgid ""
28176 " vgs-full\n"
28177 "\n"
28178 msgstr ""
28179
28180 #. type: =head2
28181 #: ../fish/guestfish-actions.pod:5002
28182 msgid "vgscan"
28183 msgstr ""
28184
28185 #. type: verbatim
28186 #: ../fish/guestfish-actions.pod:5004
28187 #, no-wrap
28188 msgid ""
28189 " vgscan\n"
28190 "\n"
28191 msgstr ""
28192
28193 #. type: =head2
28194 #: ../fish/guestfish-actions.pod:5009
28195 msgid "vguuid"
28196 msgstr ""
28197
28198 #. type: verbatim
28199 #: ../fish/guestfish-actions.pod:5011
28200 #, no-wrap
28201 msgid ""
28202 " vguuid vgname\n"
28203 "\n"
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../fish/guestfish-actions.pod:5015
28208 msgid "wc-c"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../fish/guestfish-actions.pod:5017
28213 #, no-wrap
28214 msgid ""
28215 " wc-c path\n"
28216 "\n"
28217 msgstr ""
28218
28219 #. type: =head2
28220 #: ../fish/guestfish-actions.pod:5022
28221 msgid "wc-l"
28222 msgstr ""
28223
28224 #. type: verbatim
28225 #: ../fish/guestfish-actions.pod:5024
28226 #, no-wrap
28227 msgid ""
28228 " wc-l path\n"
28229 "\n"
28230 msgstr ""
28231
28232 #. type: =head2
28233 #: ../fish/guestfish-actions.pod:5029
28234 msgid "wc-w"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../fish/guestfish-actions.pod:5031
28239 #, no-wrap
28240 msgid ""
28241 " wc-w path\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: =head2
28246 #: ../fish/guestfish-actions.pod:5036
28247 msgid "write"
28248 msgstr ""
28249
28250 #. type: verbatim
28251 #: ../fish/guestfish-actions.pod:5038
28252 #, no-wrap
28253 msgid ""
28254 " write path content\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../fish/guestfish-actions.pod:5043
28260 msgid "See also L</write-append>."
28261 msgstr ""
28262
28263 #. type: =head2
28264 #: ../fish/guestfish-actions.pod:5048
28265 msgid "write-append"
28266 msgstr ""
28267
28268 #. type: verbatim
28269 #: ../fish/guestfish-actions.pod:5050
28270 #, no-wrap
28271 msgid ""
28272 " write-append path content\n"
28273 "\n"
28274 msgstr ""
28275
28276 #. type: textblock
28277 #: ../fish/guestfish-actions.pod:5055
28278 msgid "See also L</write>."
28279 msgstr ""
28280
28281 #. type: =head2
28282 #: ../fish/guestfish-actions.pod:5060
28283 msgid "write-file"
28284 msgstr ""
28285
28286 #. type: verbatim
28287 #: ../fish/guestfish-actions.pod:5062
28288 #, no-wrap
28289 msgid ""
28290 " write-file path content size\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: =head2
28295 #: ../fish/guestfish-actions.pod:5085
28296 msgid "zegrep"
28297 msgstr ""
28298
28299 #. type: verbatim
28300 #: ../fish/guestfish-actions.pod:5087
28301 #, no-wrap
28302 msgid ""
28303 " zegrep regex path\n"
28304 "\n"
28305 msgstr ""
28306
28307 #. type: =head2
28308 #: ../fish/guestfish-actions.pod:5095
28309 msgid "zegrepi"
28310 msgstr ""
28311
28312 #. type: verbatim
28313 #: ../fish/guestfish-actions.pod:5097
28314 #, no-wrap
28315 msgid ""
28316 " zegrepi regex path\n"
28317 "\n"
28318 msgstr ""
28319
28320 #. type: =head2
28321 #: ../fish/guestfish-actions.pod:5105
28322 msgid "zero"
28323 msgstr ""
28324
28325 #. type: verbatim
28326 #: ../fish/guestfish-actions.pod:5107
28327 #, no-wrap
28328 msgid ""
28329 " zero device\n"
28330 "\n"
28331 msgstr ""
28332
28333 #. type: textblock
28334 #: ../fish/guestfish-actions.pod:5115
28335 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
28336 msgstr ""
28337
28338 #. type: =head2
28339 #: ../fish/guestfish-actions.pod:5118
28340 msgid "zero-device"
28341 msgstr ""
28342
28343 #. type: verbatim
28344 #: ../fish/guestfish-actions.pod:5120
28345 #, no-wrap
28346 msgid ""
28347 " zero-device device\n"
28348 "\n"
28349 msgstr ""
28350
28351 #. type: textblock
28352 #: ../fish/guestfish-actions.pod:5122
28353 msgid ""
28354 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
28355 "which just zeroes the first few blocks of a device."
28356 msgstr ""
28357
28358 #. type: =head2
28359 #: ../fish/guestfish-actions.pod:5129
28360 msgid "zerofree"
28361 msgstr ""
28362
28363 #. type: verbatim
28364 #: ../fish/guestfish-actions.pod:5131
28365 #, no-wrap
28366 msgid ""
28367 " zerofree device\n"
28368 "\n"
28369 msgstr ""
28370
28371 #. type: =head2
28372 #: ../fish/guestfish-actions.pod:5144
28373 msgid "zfgrep"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../fish/guestfish-actions.pod:5146
28378 #, no-wrap
28379 msgid ""
28380 " zfgrep pattern path\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: =head2
28385 #: ../fish/guestfish-actions.pod:5154
28386 msgid "zfgrepi"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../fish/guestfish-actions.pod:5156
28391 #, no-wrap
28392 msgid ""
28393 " zfgrepi pattern path\n"
28394 "\n"
28395 msgstr ""
28396
28397 #. type: =head2
28398 #: ../fish/guestfish-actions.pod:5164
28399 msgid "zfile"
28400 msgstr ""
28401
28402 #. type: verbatim
28403 #: ../fish/guestfish-actions.pod:5166
28404 #, no-wrap
28405 msgid ""
28406 " zfile meth path\n"
28407 "\n"
28408 msgstr ""
28409
28410 #. type: textblock
28411 #: ../fish/guestfish-actions.pod:5173
28412 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../fish/guestfish-actions.pod:5183
28417 msgid "zgrep"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../fish/guestfish-actions.pod:5185
28422 #, no-wrap
28423 msgid ""
28424 " zgrep regex path\n"
28425 "\n"
28426 msgstr ""
28427
28428 #. type: =head2
28429 #: ../fish/guestfish-actions.pod:5193
28430 msgid "zgrepi"
28431 msgstr ""
28432
28433 #. type: verbatim
28434 #: ../fish/guestfish-actions.pod:5195
28435 #, no-wrap
28436 msgid ""
28437 " zgrepi regex path\n"
28438 "\n"
28439 msgstr ""
28440
28441 #. type: =head2
28442 #: ../fish/guestfish-commands.pod:1
28443 msgid "alloc"
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../fish/guestfish-commands.pod:3
28448 msgid "allocate"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../fish/guestfish-commands.pod:5
28453 #, no-wrap
28454 msgid ""
28455 " alloc filename size\n"
28456 "\n"
28457 msgstr ""
28458
28459 #. type: textblock
28460 #: ../fish/guestfish-commands.pod:7
28461 msgid ""
28462 "This creates an empty (zeroed) file of the given size, and then adds so it "
28463 "can be further examined."
28464 msgstr ""
28465
28466 #. type: textblock
28467 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
28468 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
28469 msgstr ""
28470
28471 #. type: textblock
28472 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
28473 msgid "Size can be specified using standard suffixes, eg. C<1M>."
28474 msgstr ""
28475
28476 #. type: textblock
28477 #: ../fish/guestfish-commands.pod:14
28478 msgid ""
28479 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
28480 "image, see L</PREPARED DISK IMAGES>."
28481 msgstr ""
28482
28483 #. type: =head2
28484 #: ../fish/guestfish-commands.pod:17
28485 msgid "copy-in"
28486 msgstr ""
28487
28488 #. type: verbatim
28489 #: ../fish/guestfish-commands.pod:19
28490 #, no-wrap
28491 msgid ""
28492 " copy-in local [local ...] /remotedir\n"
28493 "\n"
28494 msgstr ""
28495
28496 #. type: textblock
28497 #: ../fish/guestfish-commands.pod:21
28498 msgid ""
28499 "C<copy-in> copies local files or directories recursively into the disk "
28500 "image, placing them in the directory called C</remotedir> (which must "
28501 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
28502 "other commands as necessary."
28503 msgstr ""
28504
28505 #. type: textblock
28506 #: ../fish/guestfish-commands.pod:26
28507 msgid ""
28508 "Multiple local files and directories can be specified, but the last "
28509 "parameter must always be a remote directory.  Wildcards cannot be used."
28510 msgstr ""
28511
28512 #. type: =head2
28513 #: ../fish/guestfish-commands.pod:30
28514 msgid "copy-out"
28515 msgstr ""
28516
28517 #. type: verbatim
28518 #: ../fish/guestfish-commands.pod:32
28519 #, no-wrap
28520 msgid ""
28521 " copy-out remote [remote ...] localdir\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../fish/guestfish-commands.pod:34
28527 msgid ""
28528 "C<copy-out> copies remote files or directories recursively out of the disk "
28529 "image, placing them on the host disk in a local directory called C<localdir> "
28530 "(which must exist).  This guestfish meta-command turns into a sequence of "
28531 "L</download>, L</tar-out> and other commands as necessary."
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../fish/guestfish-commands.pod:40
28536 msgid ""
28537 "Multiple remote files and directories can be specified, but the last "
28538 "parameter must always be a local directory.  To download to the current "
28539 "directory, use C<.> as in:"
28540 msgstr ""
28541
28542 #. type: verbatim
28543 #: ../fish/guestfish-commands.pod:44
28544 #, no-wrap
28545 msgid ""
28546 " copy-out /home .\n"
28547 "\n"
28548 msgstr ""
28549
28550 #. type: textblock
28551 #: ../fish/guestfish-commands.pod:46
28552 msgid ""
28553 "Wildcards cannot be used in the ordinary command, but you can use them with "
28554 "the help of L</glob> like this:"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../fish/guestfish-commands.pod:49
28559 #, no-wrap
28560 msgid ""
28561 " glob copy-out /home/* .\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: =head2
28566 #: ../fish/guestfish-commands.pod:51
28567 msgid "display"
28568 msgstr ""
28569
28570 #. type: verbatim
28571 #: ../fish/guestfish-commands.pod:53
28572 #, no-wrap
28573 msgid ""
28574 " display filename\n"
28575 "\n"
28576 msgstr ""
28577
28578 #. type: textblock
28579 #: ../fish/guestfish-commands.pod:55
28580 msgid ""
28581 "Use C<display> (a graphical display program) to display an image file.  It "
28582 "downloads the file, and runs C<display> on it."
28583 msgstr ""
28584
28585 #. type: textblock
28586 #: ../fish/guestfish-commands.pod:58
28587 msgid ""
28588 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
28589 "environment variable.  For example to use the GNOME display program:"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../fish/guestfish-commands.pod:61
28594 #, no-wrap
28595 msgid ""
28596 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
28597 "\n"
28598 msgstr ""
28599
28600 #. type: textblock
28601 #: ../fish/guestfish-commands.pod:63
28602 msgid "See also L<display(1)>."
28603 msgstr ""
28604
28605 #. type: =head2
28606 #: ../fish/guestfish-commands.pod:65
28607 msgid "echo"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../fish/guestfish-commands.pod:67
28612 #, no-wrap
28613 msgid ""
28614 " echo [params ...]\n"
28615 "\n"
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../fish/guestfish-commands.pod:69
28620 msgid "This echos the parameters to the terminal."
28621 msgstr ""
28622
28623 #. type: =head2
28624 #: ../fish/guestfish-commands.pod:71
28625 msgid "edit"
28626 msgstr ""
28627
28628 #. type: =head2
28629 #: ../fish/guestfish-commands.pod:73
28630 msgid "vi"
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../fish/guestfish-commands.pod:75
28635 msgid "emacs"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../fish/guestfish-commands.pod:77
28640 #, no-wrap
28641 msgid ""
28642 " edit filename\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../fish/guestfish-commands.pod:79
28648 msgid ""
28649 "This is used to edit a file.  It downloads the file, edits it locally using "
28650 "your editor, then uploads the result."
28651 msgstr ""
28652
28653 #. type: textblock
28654 #: ../fish/guestfish-commands.pod:82
28655 msgid ""
28656 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
28657 "or C<emacs> you will get those corresponding editors."
28658 msgstr ""
28659
28660 #. type: =head2
28661 #: ../fish/guestfish-commands.pod:86
28662 msgid "glob"
28663 msgstr ""
28664
28665 #. type: verbatim
28666 #: ../fish/guestfish-commands.pod:88
28667 #, no-wrap
28668 msgid ""
28669 " glob command args...\n"
28670 "\n"
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../fish/guestfish-commands.pod:90
28675 msgid ""
28676 "Expand wildcards in any paths in the args list, and run C<command> "
28677 "repeatedly on each matching path."
28678 msgstr ""
28679
28680 #. type: textblock
28681 #: ../fish/guestfish-commands.pod:93
28682 msgid "See L</WILDCARDS AND GLOBBING>."
28683 msgstr ""
28684
28685 #. type: =head2
28686 #: ../fish/guestfish-commands.pod:95
28687 msgid "hexedit"
28688 msgstr ""
28689
28690 #. type: verbatim
28691 #: ../fish/guestfish-commands.pod:97
28692 #, no-wrap
28693 msgid ""
28694 " hexedit <filename|device>\n"
28695 " hexedit <filename|device> <max>\n"
28696 " hexedit <filename|device> <start> <max>\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../fish/guestfish-commands.pod:101
28702 msgid ""
28703 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
28704 "device."
28705 msgstr ""
28706
28707 #. type: textblock
28708 #: ../fish/guestfish-commands.pod:104
28709 msgid ""
28710 "This command works by downloading potentially the whole file or device, "
28711 "editing it locally, then uploading it.  If the file or device is large, you "
28712 "have to specify which part you wish to edit by using C<max> and/or C<start> "
28713 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
28714 "usual modifiers allowed such as C<1M> (1 megabyte)."
28715 msgstr ""
28716
28717 #. type: textblock
28718 #: ../fish/guestfish-commands.pod:111
28719 msgid "For example to edit the first few sectors of a disk you might do:"
28720 msgstr ""
28721
28722 #. type: verbatim
28723 #: ../fish/guestfish-commands.pod:114
28724 #, no-wrap
28725 msgid ""
28726 " hexedit /dev/sda 1M\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../fish/guestfish-commands.pod:116
28732 msgid ""
28733 "which would allow you to edit anywhere within the first megabyte of the "
28734 "disk."
28735 msgstr ""
28736
28737 #. type: textblock
28738 #: ../fish/guestfish-commands.pod:119
28739 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../fish/guestfish-commands.pod:121
28744 #, no-wrap
28745 msgid ""
28746 " hexedit /dev/sda1 0x400 0x400\n"
28747 "\n"
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../fish/guestfish-commands.pod:123
28752 msgid "(assuming the superblock is in the standard location)."
28753 msgstr ""
28754
28755 #. type: textblock
28756 #: ../fish/guestfish-commands.pod:125
28757 msgid ""
28758 "This command requires the external L<hexedit(1)> program.  You can specify "
28759 "another program to use by setting the C<HEXEDITOR> environment variable."
28760 msgstr ""
28761
28762 #. type: textblock
28763 #: ../fish/guestfish-commands.pod:129
28764 msgid "See also L</hexdump>."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../fish/guestfish-commands.pod:131
28769 msgid "lcd"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../fish/guestfish-commands.pod:133
28774 #, no-wrap
28775 msgid ""
28776 " lcd directory\n"
28777 "\n"
28778 msgstr ""
28779
28780 #. type: textblock
28781 #: ../fish/guestfish-commands.pod:135
28782 msgid "Change the local directory, ie. the current directory of guestfish itself."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../fish/guestfish-commands.pod:138
28787 msgid "Note that C<!cd> won't do what you might expect."
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../fish/guestfish-commands.pod:140
28792 msgid "man"
28793 msgstr ""
28794
28795 #. type: =head2
28796 #: ../fish/guestfish-commands.pod:142
28797 msgid "manual"
28798 msgstr ""
28799
28800 #. type: verbatim
28801 #: ../fish/guestfish-commands.pod:144
28802 #, no-wrap
28803 msgid ""
28804 "  man\n"
28805 "\n"
28806 msgstr ""
28807
28808 #. type: textblock
28809 #: ../fish/guestfish-commands.pod:146
28810 msgid "Opens the manual page for guestfish."
28811 msgstr ""
28812
28813 #. type: =head2
28814 #: ../fish/guestfish-commands.pod:148
28815 msgid "more"
28816 msgstr ""
28817
28818 #. type: =head2
28819 #: ../fish/guestfish-commands.pod:150
28820 msgid "less"
28821 msgstr ""
28822
28823 #. type: verbatim
28824 #: ../fish/guestfish-commands.pod:152
28825 #, no-wrap
28826 msgid ""
28827 " more filename\n"
28828 "\n"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../fish/guestfish-commands.pod:154
28833 #, no-wrap
28834 msgid ""
28835 " less filename\n"
28836 "\n"
28837 msgstr ""
28838
28839 #. type: textblock
28840 #: ../fish/guestfish-commands.pod:156
28841 msgid "This is used to view a file."
28842 msgstr ""
28843
28844 #. type: textblock
28845 #: ../fish/guestfish-commands.pod:158
28846 msgid ""
28847 "The default viewer is C<$PAGER>.  However if you use the alternate command "
28848 "C<less> you will get the C<less> command specifically."
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../fish/guestfish-commands.pod:161
28853 msgid "reopen"
28854 msgstr ""
28855
28856 #. type: verbatim
28857 #: ../fish/guestfish-commands.pod:163
28858 #, no-wrap
28859 msgid ""
28860 "  reopen\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: textblock
28865 #: ../fish/guestfish-commands.pod:165
28866 msgid ""
28867 "Close and reopen the libguestfs handle.  It is not necessary to use this "
28868 "normally, because the handle is closed properly when guestfish exits.  "
28869 "However this is occasionally useful for testing."
28870 msgstr ""
28871
28872 #. type: =head2
28873 #: ../fish/guestfish-commands.pod:169
28874 msgid "sparse"
28875 msgstr ""
28876
28877 #. type: verbatim
28878 #: ../fish/guestfish-commands.pod:171
28879 #, no-wrap
28880 msgid ""
28881 " sparse filename size\n"
28882 "\n"
28883 msgstr ""
28884
28885 #. type: textblock
28886 #: ../fish/guestfish-commands.pod:173
28887 msgid ""
28888 "This creates an empty sparse file of the given size, and then adds so it can "
28889 "be further examined."
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../fish/guestfish-commands.pod:176
28894 msgid ""
28895 "In all respects it works the same as the L</alloc> command, except that the "
28896 "image file is allocated sparsely, which means that disk blocks are not "
28897 "assigned to the file until they are needed.  Sparse disk files only use "
28898 "space when written to, but they are slower and there is a danger you could "
28899 "run out of real disk space during a write operation."
28900 msgstr ""
28901
28902 #. type: =head2
28903 #: ../fish/guestfish-commands.pod:186
28904 msgid "supported"
28905 msgstr ""
28906
28907 #. type: verbatim
28908 #: ../fish/guestfish-commands.pod:188
28909 #, no-wrap
28910 msgid ""
28911 " supported\n"
28912 "\n"
28913 msgstr ""
28914
28915 #. type: textblock
28916 #: ../fish/guestfish-commands.pod:190
28917 msgid ""
28918 "This command returns a list of the optional groups known to the daemon, and "
28919 "indicates which ones are supported by this build of the libguestfs "
28920 "appliance."
28921 msgstr ""
28922
28923 #. type: textblock
28924 #: ../fish/guestfish-commands.pod:194
28925 msgid "See also L<guestfs(3)/AVAILABILITY>."
28926 msgstr ""
28927
28928 #. type: =head2
28929 #: ../fish/guestfish-commands.pod:196
28930 msgid "time"
28931 msgstr ""
28932
28933 #. type: verbatim
28934 #: ../fish/guestfish-commands.pod:198
28935 #, no-wrap
28936 msgid ""
28937 " time command args...\n"
28938 "\n"
28939 msgstr ""
28940
28941 #. type: textblock
28942 #: ../fish/guestfish-commands.pod:200
28943 msgid ""
28944 "Run the command as usual, but print the elapsed time afterwards.  This can "
28945 "be useful for benchmarking operations."
28946 msgstr ""
28947
28948 #. type: textblock
28949 #: ../test-tool/libguestfs-test-tool.pod:5
28950 msgid "libguestfs-test-tool - End user tests for libguestfs"
28951 msgstr ""
28952
28953 #. type: verbatim
28954 #: ../test-tool/libguestfs-test-tool.pod:9
28955 #, no-wrap
28956 msgid ""
28957 " libguestfs-test-tool [--options]\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../test-tool/libguestfs-test-tool.pod:13
28963 msgid ""
28964 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
28965 "and developers, to allow them to check basic libguestfs functionality is "
28966 "working.  This is needed because libguestfs occasionally breaks for reasons "
28967 "beyond our control: usually because of changes in the underlying qemu or "
28968 "kernel packages, or the host environment."
28969 msgstr ""
28970
28971 #. type: textblock
28972 #: ../test-tool/libguestfs-test-tool.pod:20
28973 msgid "If you suspect a problem in libguestfs, then just run:"
28974 msgstr ""
28975
28976 #. type: verbatim
28977 #: ../test-tool/libguestfs-test-tool.pod:22
28978 #, no-wrap
28979 msgid ""
28980 " libguestfs-test-tool\n"
28981 "\n"
28982 msgstr ""
28983
28984 #. type: textblock
28985 #: ../test-tool/libguestfs-test-tool.pod:24
28986 msgid "It will print lots of diagnostic messages."
28987 msgstr ""
28988
28989 #. type: textblock
28990 #: ../test-tool/libguestfs-test-tool.pod:26
28991 msgid "If it runs to completion successfully, you will see this near the end:"
28992 msgstr ""
28993
28994 #. type: verbatim
28995 #: ../test-tool/libguestfs-test-tool.pod:28
28996 #, no-wrap
28997 msgid ""
28998 " ===== TEST FINISHED OK =====\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: textblock
29003 #: ../test-tool/libguestfs-test-tool.pod:30
29004 msgid "and the test tool will exit with code 0."
29005 msgstr ""
29006
29007 #. type: textblock
29008 #: ../test-tool/libguestfs-test-tool.pod:32
29009 msgid ""
29010 "If it fails (and/or exits with non-zero error code), please paste the "
29011 "B<complete, unedited> output of the test tool into a bug report.  More "
29012 "information about reporting bugs can be found on the "
29013 "L<http://libguestfs.org/> website."
29014 msgstr ""
29015
29016 #. type: =item
29017 #: ../test-tool/libguestfs-test-tool.pod:41
29018 msgid "I<--help>"
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../test-tool/libguestfs-test-tool.pod:43
29023 msgid "Display short usage information and exit."
29024 msgstr ""
29025
29026 #. type: =item
29027 #: ../test-tool/libguestfs-test-tool.pod:45
29028 msgid "I<--qemu qemu_binary>"
29029 msgstr ""
29030
29031 #. type: textblock
29032 #: ../test-tool/libguestfs-test-tool.pod:47
29033 msgid ""
29034 "If you have downloaded another qemu binary, point this option at the full "
29035 "path of the binary to try it."
29036 msgstr ""
29037
29038 #. type: =item
29039 #: ../test-tool/libguestfs-test-tool.pod:50
29040 msgid "I<--qemudir qemu_source_dir>"
29041 msgstr ""
29042
29043 #. type: textblock
29044 #: ../test-tool/libguestfs-test-tool.pod:52
29045 msgid ""
29046 "If you have compiled qemu from source, point this option at the source "
29047 "directory to try it."
29048 msgstr ""
29049
29050 #. type: =item
29051 #: ../test-tool/libguestfs-test-tool.pod:55
29052 msgid "I<--timeout N>"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../test-tool/libguestfs-test-tool.pod:57
29057 msgid ""
29058 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
29059 "does not usually need to be adjusted unless your machine is very slow."
29060 msgstr ""
29061
29062 #. type: =head1
29063 #: ../test-tool/libguestfs-test-tool.pod:63
29064 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
29065 msgstr ""
29066
29067 #. type: textblock
29068 #: ../test-tool/libguestfs-test-tool.pod:65
29069 msgid ""
29070 "If you have compiled another version of qemu from source and would like to "
29071 "try that, then you can use the I<--qemudir> option to point to the qemu "
29072 "source directory."
29073 msgstr ""
29074
29075 #. type: textblock
29076 #: ../test-tool/libguestfs-test-tool.pod:69
29077 msgid ""
29078 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
29079 "option to point to the binary."
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../test-tool/libguestfs-test-tool.pod:72
29084 msgid ""
29085 "When using an alternate qemu with libguestfs, usually you would need to "
29086 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
29087 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
29088 "when you use either of the I<--qemudir> or I<--qemu> options."
29089 msgstr ""
29090
29091 #. type: textblock
29092 #: ../test-tool/libguestfs-test-tool.pod:79
29093 msgid ""
29094 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
29095 "I<1> if there was an error."
29096 msgstr ""
29097
29098 #. type: textblock
29099 #: ../test-tool/libguestfs-test-tool.pod:84
29100 msgid ""
29101 "For the full list of environment variables which may affect libguestfs, "
29102 "please see the L<guestfs(3)> manual page."
29103 msgstr ""
29104
29105 #. type: textblock
29106 #: ../test-tool/libguestfs-test-tool.pod:89
29107 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
29108 msgstr ""
29109
29110 #. type: textblock
29111 #: ../fuse/guestmount.pod:5
29112 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
29113 msgstr ""
29114
29115 #. type: verbatim
29116 #: ../fuse/guestmount.pod:9
29117 #, no-wrap
29118 msgid ""
29119 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
29120 "\n"
29121 msgstr ""
29122
29123 #. type: verbatim
29124 #: ../fuse/guestmount.pod:11
29125 #, no-wrap
29126 msgid ""
29127 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
29128 "\n"
29129 msgstr ""
29130
29131 #. type: verbatim
29132 #: ../fuse/guestmount.pod:13
29133 #, no-wrap
29134 msgid ""
29135 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
29136 "\n"
29137 msgstr ""
29138
29139 #. type: textblock
29140 #: ../fuse/guestmount.pod:17
29141 msgid ""
29142 "You must I<not> use C<guestmount> in read-write mode on live virtual "
29143 "machines.  If you do this, you risk disk corruption in the VM."
29144 msgstr ""
29145
29146 #. type: textblock
29147 #: ../fuse/guestmount.pod:22
29148 msgid ""
29149 "The guestmount program can be used to mount virtual machine filesystems and "
29150 "other disk images on the host.  It uses libguestfs for access to the guest "
29151 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
29152 "a mountable device."
29153 msgstr ""
29154
29155 #. type: textblock
29156 #: ../fuse/guestmount.pod:27
29157 msgid ""
29158 "Along with other options, you have to give at least one device (I<-a> "
29159 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
29160 "option) or use the I<-i> inspection option.  How this works is better "
29161 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
29162 "below."
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../fuse/guestmount.pod:33
29167 msgid ""
29168 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
29169 "by you, and the filesystem will not be visible to any other users unless you "
29170 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
29171 "the filesystem, use the C<fusermount -u> command."
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../fuse/guestmount.pod:41
29176 msgid ""
29177 "For a typical Windows guest which has its main filesystem on the first "
29178 "partition:"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../fuse/guestmount.pod:44
29183 #, no-wrap
29184 msgid ""
29185 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../fuse/guestmount.pod:46
29191 msgid ""
29192 "For a typical Linux guest which has a /boot filesystem on the first "
29193 "partition, and the root filesystem on a logical volume:"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../fuse/guestmount.pod:49
29198 #, no-wrap
29199 msgid ""
29200 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
29201 "\n"
29202 msgstr ""
29203
29204 #. type: textblock
29205 #: ../fuse/guestmount.pod:51
29206 msgid "To get libguestfs to detect guest mountpoints for you:"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../fuse/guestmount.pod:53
29211 #, no-wrap
29212 msgid ""
29213 " guestmount -a guest.img -i --ro /mnt\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: textblock
29218 #: ../fuse/guestmount.pod:55
29219 msgid "For a libvirt guest called \"Guest\" you could do:"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../fuse/guestmount.pod:57
29224 #, no-wrap
29225 msgid ""
29226 " guestmount -d Guest -i --ro /mnt\n"
29227 "\n"
29228 msgstr ""
29229
29230 #. type: textblock
29231 #: ../fuse/guestmount.pod:59
29232 msgid ""
29233 "If you don't know what filesystems are contained in a guest or disk image, "
29234 "use L<virt-filesystems(1)> first:"
29235 msgstr ""
29236
29237 #. type: verbatim
29238 #: ../fuse/guestmount.pod:62
29239 #, no-wrap
29240 msgid ""
29241 " virt-filesystems MyGuest\n"
29242 "\n"
29243 msgstr ""
29244
29245 #. type: textblock
29246 #: ../fuse/guestmount.pod:64
29247 msgid ""
29248 "If you want to trace the libguestfs calls but without excessive debugging "
29249 "information, we recommend:"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../fuse/guestmount.pod:67
29254 #, no-wrap
29255 msgid ""
29256 " guestmount [...] --trace /mnt\n"
29257 "\n"
29258 msgstr ""
29259
29260 #. type: textblock
29261 #: ../fuse/guestmount.pod:69
29262 msgid "If you want to debug the program, we recommend:"
29263 msgstr ""
29264
29265 #. type: verbatim
29266 #: ../fuse/guestmount.pod:71
29267 #, no-wrap
29268 msgid ""
29269 " guestmount [...] --trace --verbose /mnt\n"
29270 "\n"
29271 msgstr ""
29272
29273 #. type: =head1
29274 #: ../fuse/guestmount.pod:73
29275 msgid "NOTES"
29276 msgstr ""
29277
29278 #. type: =head2
29279 #: ../fuse/guestmount.pod:75
29280 msgid "Other users cannot see the filesystem by default"
29281 msgstr ""
29282
29283 #. type: textblock
29284 #: ../fuse/guestmount.pod:77
29285 msgid ""
29286 "If you mount a filesystem as one user (eg. root), then other users will not "
29287 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
29288 "option when mounting:"
29289 msgstr ""
29290
29291 #. type: verbatim
29292 #: ../fuse/guestmount.pod:81
29293 #, no-wrap
29294 msgid ""
29295 " sudo guestmount [...] -o allow_other /mnt\n"
29296 "\n"
29297 msgstr ""
29298
29299 #. type: =item
29300 #: ../fuse/guestmount.pod:87
29301 msgid "B<-a image> | B<--add image>"
29302 msgstr ""
29303
29304 #. type: textblock
29305 #: ../fuse/guestmount.pod:89
29306 msgid "Add a block device or virtual machine image."
29307 msgstr ""
29308
29309 #. type: =item
29310 #: ../fuse/guestmount.pod:94
29311 msgid "B<-c URI> | B<--connect URI>"
29312 msgstr ""
29313
29314 #. type: =item
29315 #: ../fuse/guestmount.pod:100
29316 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
29317 msgstr ""
29318
29319 #. type: =item
29320 #: ../fuse/guestmount.pod:108
29321 msgid "B<--dir-cache-timeout N>"
29322 msgstr ""
29323
29324 #. type: textblock
29325 #: ../fuse/guestmount.pod:110
29326 msgid ""
29327 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
29328 "seconds.  The readdir cache [actually, there are several semi-independent "
29329 "caches] is populated after a readdir(2) call with the stat and extended "
29330 "attributes of the files in the directory, in anticipation that they will be "
29331 "requested soon after."
29332 msgstr ""
29333
29334 #. type: textblock
29335 #: ../fuse/guestmount.pod:116
29336 msgid ""
29337 "There is also a different attribute cache implemented by FUSE (see the FUSE "
29338 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
29339 "requests, only cache existing ones."
29340 msgstr ""
29341
29342 #. type: =item
29343 #: ../fuse/guestmount.pod:127
29344 msgid "B<--format=raw|qcow2|..> | B<--format>"
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../fuse/guestmount.pod:134
29349 msgid ""
29350 "If you have untrusted raw-format guest disk images, you should use this "
29351 "option to specify the disk format.  This avoids a possible security problem "
29352 "with malicious guests (CVE-2010-3851).  See also "
29353 "L<guestfs(3)/guestfs_add_drive_opts>."
29354 msgstr ""
29355
29356 #. type: =item
29357 #: ../fuse/guestmount.pod:139
29358 msgid "B<--fuse-help>"
29359 msgstr ""
29360
29361 #. type: textblock
29362 #: ../fuse/guestmount.pod:141
29363 msgid "Display help on special FUSE options (see I<-o> below)."
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../fuse/guestmount.pod:145
29368 msgid "Display brief help and exit."
29369 msgstr ""
29370
29371 #. type: =item
29372 #: ../fuse/guestmount.pod:147
29373 msgid "B<-i> | B<--inspector>"
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../fuse/guestmount.pod:167
29378 msgid ""
29379 "Mount the named partition or logical volume on the given mountpoint B<in the "
29380 "guest> (this has nothing to do with mountpoints in the host)."
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../fuse/guestmount.pod:170
29385 msgid ""
29386 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
29387 "something on C</>."
29388 msgstr ""
29389
29390 #. type: =item
29391 #: ../fuse/guestmount.pod:183
29392 msgid "B<-n> | B<--no-sync>"
29393 msgstr ""
29394
29395 #. type: textblock
29396 #: ../fuse/guestmount.pod:185
29397 msgid ""
29398 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
29399 "unmounted.  If you specify this option, then we don't attempt to sync the "
29400 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
29401 msgstr ""
29402
29403 #. type: =item
29404 #: ../fuse/guestmount.pod:190
29405 msgid "B<-o option> | B<--option option>"
29406 msgstr ""
29407
29408 #. type: textblock
29409 #: ../fuse/guestmount.pod:192
29410 msgid "Pass extra options to FUSE."
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../fuse/guestmount.pod:194
29415 msgid ""
29416 "To get a list of all the extra options supported by FUSE, use the command "
29417 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
29418 "of them are a good idea."
29419 msgstr ""
29420
29421 #. type: verbatim
29422 #: ../fuse/guestmount.pod:198
29423 #, no-wrap
29424 msgid ""
29425 " guestmount --fuse-help\n"
29426 "\n"
29427 msgstr ""
29428
29429 #. type: textblock
29430 #: ../fuse/guestmount.pod:200
29431 msgid "Some potentially useful FUSE options:"
29432 msgstr ""
29433
29434 #. type: =item
29435 #: ../fuse/guestmount.pod:204
29436 msgid "B<-o allow_other>"
29437 msgstr ""
29438
29439 #. type: textblock
29440 #: ../fuse/guestmount.pod:206
29441 msgid "Allow other users to see the filesystem."
29442 msgstr ""
29443
29444 #. type: =item
29445 #: ../fuse/guestmount.pod:208
29446 msgid "B<-o attr_timeout=N>"
29447 msgstr ""
29448
29449 #. type: textblock
29450 #: ../fuse/guestmount.pod:210
29451 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
29452 msgstr ""
29453
29454 #. type: =item
29455 #: ../fuse/guestmount.pod:212
29456 msgid "B<-o kernel_cache>"
29457 msgstr ""
29458
29459 #. type: textblock
29460 #: ../fuse/guestmount.pod:214
29461 msgid ""
29462 "Allow the kernel to cache files (reduces the number of reads that have to go "
29463 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
29464 "afford the extra memory usage."
29465 msgstr ""
29466
29467 #. type: =item
29468 #: ../fuse/guestmount.pod:218
29469 msgid "B<-o uid=N> B<-o gid=N>"
29470 msgstr ""
29471
29472 #. type: textblock
29473 #: ../fuse/guestmount.pod:220
29474 msgid ""
29475 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
29476 "the chosen values."
29477 msgstr ""
29478
29479 #. type: =item
29480 #: ../fuse/guestmount.pod:225
29481 msgid "B<-r> | B<--ro>"
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../fuse/guestmount.pod:227
29486 msgid ""
29487 "Add devices and mount everything read-only.  Also disallow writes and make "
29488 "the disk appear read-only to FUSE."
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../fuse/guestmount.pod:230
29493 msgid ""
29494 "This is highly recommended if you are not going to edit the guest disk.  If "
29495 "the guest is running and this option is I<not> supplied, then there is a "
29496 "strong risk of disk corruption in the guest.  We try to prevent this from "
29497 "happening, but it is not always possible."
29498 msgstr ""
29499
29500 #. type: textblock
29501 #: ../fuse/guestmount.pod:235
29502 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../fuse/guestmount.pod:239
29507 msgid "Enable SELinux support for the guest."
29508 msgstr ""
29509
29510 #. type: =item
29511 #: ../fuse/guestmount.pod:241
29512 msgid "B<-v> | B<--verbose>"
29513 msgstr ""
29514
29515 #. type: textblock
29516 #: ../fuse/guestmount.pod:243
29517 msgid "Enable verbose messages from underlying libguestfs."
29518 msgstr ""
29519
29520 #. type: =item
29521 #: ../fuse/guestmount.pod:245
29522 msgid "B<-V> | B<--version>"
29523 msgstr ""
29524
29525 #. type: textblock
29526 #: ../fuse/guestmount.pod:247
29527 msgid "Display the program version and exit."
29528 msgstr ""
29529
29530 #. type: =item
29531 #: ../fuse/guestmount.pod:249
29532 msgid "B<-w> | B<--rw>"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
29537 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
29538 msgstr ""
29539
29540 #. type: =item
29541 #: ../fuse/guestmount.pod:256
29542 msgid "B<-x> | B<--trace>"
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../fuse/guestmount.pod:258
29547 msgid "Trace libguestfs calls and entry into each FUSE function."
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../fuse/guestmount.pod:260
29552 msgid "This also stops the daemon from forking into the background."
29553 msgstr ""
29554
29555 #. type: textblock
29556 #: ../fuse/guestmount.pod:281
29557 msgid ""
29558 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29559 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
29560 "L<http://fuse.sf.net/>."
29561 msgstr ""
29562
29563 #. type: textblock
29564 #: ../fuse/guestmount.pod:296
29565 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
29566 msgstr ""
29567
29568 #. type: textblock
29569 #: ../tools/virt-win-reg.pl:37
29570 msgid ""
29571 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
29572 "guest"
29573 msgstr ""
29574
29575 #. type: verbatim
29576 #: ../tools/virt-win-reg.pl:41
29577 #, no-wrap
29578 msgid ""
29579 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
29580 "\n"
29581 msgstr ""
29582
29583 #. type: verbatim
29584 #: ../tools/virt-win-reg.pl:43
29585 #, no-wrap
29586 msgid ""
29587 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
29588 "\n"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../tools/virt-win-reg.pl:45
29593 #, no-wrap
29594 msgid ""
29595 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
29596 "\n"
29597 msgstr ""
29598
29599 #. type: verbatim
29600 #: ../tools/virt-win-reg.pl:47
29601 #, no-wrap
29602 msgid ""
29603 " virt-win-reg --merge domname [input.reg ...]\n"
29604 "\n"
29605 msgstr ""
29606
29607 #. type: verbatim
29608 #: ../tools/virt-win-reg.pl:49
29609 #, no-wrap
29610 msgid ""
29611 " virt-win-reg [--options] disk.img ... # instead of domname\n"
29612 "\n"
29613 msgstr ""
29614
29615 #. type: textblock
29616 #: ../tools/virt-win-reg.pl:53
29617 msgid ""
29618 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
29619 "virtual machines.  If you do this, you I<will> get irreversible disk "
29620 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
29621 "but doesn't catch all cases."
29622 msgstr ""
29623
29624 #. type: textblock
29625 #: ../tools/virt-win-reg.pl:58
29626 msgid ""
29627 "Modifying the Windows Registry is an inherently risky operation.  The format "
29628 "is deliberately obscure and undocumented, and Registry changes can leave the "
29629 "system unbootable.  Therefore when using the I<--merge> option, make sure "
29630 "you have a reliable backup first."
29631 msgstr ""
29632
29633 #. type: textblock
29634 #: ../tools/virt-win-reg.pl:65
29635 msgid ""
29636 "This program can export and merge Windows Registry entries from a Windows "
29637 "guest."
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../tools/virt-win-reg.pl:68
29642 msgid ""
29643 "The first parameter is the libvirt guest name or the raw disk image of a "
29644 "Windows guest."
29645 msgstr ""
29646
29647 #. type: textblock
29648 #: ../tools/virt-win-reg.pl:71
29649 msgid ""
29650 "If I<--merge> is I<not> specified, then the chosen registry key is "
29651 "displayed/exported (recursively).  For example:"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../tools/virt-win-reg.pl:74
29656 #, no-wrap
29657 msgid ""
29658 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
29659 "\n"
29660 msgstr ""
29661
29662 #. type: textblock
29663 #: ../tools/virt-win-reg.pl:76
29664 msgid "You can also display single values from within registry keys, for example:"
29665 msgstr ""
29666
29667 #. type: verbatim
29668 #: ../tools/virt-win-reg.pl:79
29669 #, no-wrap
29670 msgid ""
29671 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
29672 " $ virt-win-reg Windows7 $cvkey ProductName\n"
29673 " Windows 7 Enterprise\n"
29674 "\n"
29675 msgstr ""
29676
29677 #. type: textblock
29678 #: ../tools/virt-win-reg.pl:83
29679 msgid ""
29680 "With I<--merge>, you can merge a textual regedit file into the Windows "
29681 "Registry:"
29682 msgstr ""
29683
29684 #. type: verbatim
29685 #: ../tools/virt-win-reg.pl:86
29686 #, no-wrap
29687 msgid ""
29688 " $ virt-win-reg --merge Windows7 changes.reg\n"
29689 "\n"
29690 msgstr ""
29691
29692 #. type: =head1
29693 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29694 msgid "NOTE"
29695 msgstr ""
29696
29697 #. type: textblock
29698 #: ../tools/virt-win-reg.pl:90
29699 msgid ""
29700 "This program is only meant for simple access to the registry.  If you want "
29701 "to do complicated things with the registry, we suggest you download the "
29702 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29703 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29704 "L<hivexregedit(1)>."
29705 msgstr ""
29706
29707 #. type: textblock
29708 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
29709 msgid "Display brief help."
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
29714 msgid "Display version number and exit."
29715 msgstr ""
29716
29717 #. type: =item
29718 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29719 msgid "B<--debug>"
29720 msgstr ""
29721
29722 #. type: textblock
29723 #: ../tools/virt-win-reg.pl:122
29724 msgid "Enable debugging messages."
29725 msgstr ""
29726
29727 #. type: =item
29728 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
29729 msgid "B<--connect URI> | B<-c URI>"
29730 msgstr ""
29731
29732 #. type: textblock
29733 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
29734 msgid ""
29735 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
29736 "to the default libvirt hypervisor."
29737 msgstr ""
29738
29739 #. type: textblock
29740 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
29741 msgid ""
29742 "If you specify guest block devices directly, then libvirt is not used at "
29743 "all."
29744 msgstr ""
29745
29746 #. type: =item
29747 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
29748 msgid "B<--format> raw"
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
29753 msgid ""
29754 "Specify the format of disk images given on the command line.  If this is "
29755 "omitted then the format is autodetected from the content of the disk image."
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
29760 msgid ""
29761 "If disk images are requested from libvirt, then this program asks libvirt "
29762 "for this information.  In this case, the value of the format parameter is "
29763 "ignored."
29764 msgstr ""
29765
29766 #. type: textblock
29767 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
29768 msgid ""
29769 "If working with untrusted raw-format guest disk images, you should ensure "
29770 "the format is always specified."
29771 msgstr ""
29772
29773 #. type: =item
29774 #: ../tools/virt-win-reg.pl:157
29775 msgid "B<--merge>"
29776 msgstr ""
29777
29778 #. type: textblock
29779 #: ../tools/virt-win-reg.pl:159
29780 msgid ""
29781 "In merge mode, this merges a textual regedit file into the Windows Registry "
29782 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29783 "displays or exports Registry entries instead."
29784 msgstr ""
29785
29786 #. type: textblock
29787 #: ../tools/virt-win-reg.pl:163
29788 msgid ""
29789 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29790 "result in disk corruption.  However exporting (without this flag)  is always "
29791 "safe."
29792 msgstr ""
29793
29794 #. type: =item
29795 #: ../tools/virt-win-reg.pl:171
29796 msgid "B<--encoding> UTF-16LE|ASCII"
29797 msgstr ""
29798
29799 #. type: textblock
29800 #: ../tools/virt-win-reg.pl:173
29801 msgid ""
29802 "When merging (only), you may need to specify the encoding for strings to be "
29803 "used in the hive file.  This is explained in detail in "
29804 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
29805 msgstr ""
29806
29807 #. type: textblock
29808 #: ../tools/virt-win-reg.pl:177
29809 msgid ""
29810 "The default is to use UTF-16LE, which should work with recent versions of "
29811 "Windows."
29812 msgstr ""
29813
29814 #. type: =item
29815 #: ../tools/virt-win-reg.pl:184
29816 msgid "B<--unsafe-printable-strings>"
29817 msgstr ""
29818
29819 #. type: textblock
29820 #: ../tools/virt-win-reg.pl:186
29821 msgid ""
29822 "When exporting (only), assume strings are UTF-16LE and print them as strings "
29823 "instead of hex sequences.  Remove the final zero codepoint from strings if "
29824 "present."
29825 msgstr ""
29826
29827 #. type: textblock
29828 #: ../tools/virt-win-reg.pl:190
29829 msgid ""
29830 "This is unsafe and does not preserve the fidelity of strings in the original "
29831 "Registry for various reasons:"
29832 msgstr ""
29833
29834 #. type: textblock
29835 #: ../tools/virt-win-reg.pl:197
29836 msgid ""
29837 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
29838 "other encodings will be corrupted by this transformation."
29839 msgstr ""
29840
29841 #. type: textblock
29842 #: ../tools/virt-win-reg.pl:202
29843 msgid ""
29844 "Assumes that everything which has type 1 or 2 is really a string and that "
29845 "everything else is not a string, but the type field in real Registries is "
29846 "not reliable."
29847 msgstr ""
29848
29849 #. type: textblock
29850 #: ../tools/virt-win-reg.pl:208
29851 msgid ""
29852 "Loses information about whether a zero codepoint followed the string in the "
29853 "Registry or not."
29854 msgstr ""
29855
29856 #. type: textblock
29857 #: ../tools/virt-win-reg.pl:213
29858 msgid ""
29859 "This all happens because the Registry itself contains no information about "
29860 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
29861 msgstr ""
29862
29863 #. type: textblock
29864 #: ../tools/virt-win-reg.pl:217
29865 msgid ""
29866 "You should only use this option for quick hacking and debugging of the "
29867 "Registry contents, and I<never> use it if the output is going to be passed "
29868 "into another program or stored in another Registry."
29869 msgstr ""
29870
29871 #. type: =head1
29872 #: ../tools/virt-win-reg.pl:554
29873 msgid "SUPPORTED SYSTEMS"
29874 msgstr ""
29875
29876 #. type: textblock
29877 #: ../tools/virt-win-reg.pl:556
29878 msgid ""
29879 "The program currently supports Windows NT-derived guests starting with "
29880 "Windows XP through to at least Windows 7."
29881 msgstr ""
29882
29883 #. type: textblock
29884 #: ../tools/virt-win-reg.pl:559
29885 msgid "The following Registry keys are supported:"
29886 msgstr ""
29887
29888 #. type: =item
29889 #: ../tools/virt-win-reg.pl:563
29890 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
29891 msgstr ""
29892
29893 #. type: =item
29894 #: ../tools/virt-win-reg.pl:565
29895 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
29896 msgstr ""
29897
29898 #. type: =item
29899 #: ../tools/virt-win-reg.pl:567
29900 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
29901 msgstr ""
29902
29903 #. type: =item
29904 #: ../tools/virt-win-reg.pl:569
29905 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
29906 msgstr ""
29907
29908 #. type: =item
29909 #: ../tools/virt-win-reg.pl:571
29910 msgid "C<HKEY_USERS\\.DEFAULT>"
29911 msgstr ""
29912
29913 #. type: =item
29914 #: ../tools/virt-win-reg.pl:573
29915 msgid "C<HKEY_USERS\\I<SID>>"
29916 msgstr ""
29917
29918 #. type: textblock
29919 #: ../tools/virt-win-reg.pl:575
29920 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
29921 msgstr ""
29922
29923 #. type: =item
29924 #: ../tools/virt-win-reg.pl:577
29925 msgid "C<HKEY_USERS\\I<username>>"
29926 msgstr ""
29927
29928 #. type: textblock
29929 #: ../tools/virt-win-reg.pl:579
29930 msgid "where I<username> is a local user name (this is a libguestfs extension)."
29931 msgstr ""
29932
29933 #. type: textblock
29934 #: ../tools/virt-win-reg.pl:583
29935 msgid ""
29936 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29937 "C<HKEY_USERS>."
29938 msgstr ""
29939
29940 #. type: textblock
29941 #: ../tools/virt-win-reg.pl:586
29942 msgid ""
29943 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
29944 "supported (there is no \"current user\")."
29945 msgstr ""
29946
29947 #. type: =head1
29948 #: ../tools/virt-win-reg.pl:589
29949 msgid "ENCODING"
29950 msgstr ""
29951
29952 #. type: textblock
29953 #: ../tools/virt-win-reg.pl:591
29954 msgid ""
29955 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29956 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
29957 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
29958 "with Windows-style line endings, you may need to reencode the whole file "
29959 "before or after processing."
29960 msgstr ""
29961
29962 #. type: textblock
29963 #: ../tools/virt-win-reg.pl:597
29964 msgid ""
29965 "To reencode a file from Windows format to Linux (before processing it with "
29966 "the I<--merge> option), you would do something like this:"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../tools/virt-win-reg.pl:600
29971 #, no-wrap
29972 msgid ""
29973 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29974 "\n"
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../tools/virt-win-reg.pl:602
29979 msgid ""
29980 "To go in the opposite direction, after exporting and before sending the file "
29981 "to a Windows user, do something like this:"
29982 msgstr ""
29983
29984 #. type: verbatim
29985 #: ../tools/virt-win-reg.pl:605
29986 #, no-wrap
29987 msgid ""
29988 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29989 "\n"
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../tools/virt-win-reg.pl:607
29994 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29995 msgstr ""
29996
29997 #. type: textblock
29998 #: ../tools/virt-win-reg.pl:609
29999 msgid ""
30000 "If you are unsure about the current encoding, use the L<file(1)> command.  "
30001 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
30002 "Windows-style (CRLF) line endings, like this:"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../tools/virt-win-reg.pl:613
30007 #, no-wrap
30008 msgid ""
30009 " $ file software.reg\n"
30010 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
30011 " with CRLF line terminators\n"
30012 "\n"
30013 msgstr ""
30014
30015 #. type: textblock
30016 #: ../tools/virt-win-reg.pl:617
30017 msgid "This file would need conversion before you could I<--merge> it."
30018 msgstr ""
30019
30020 #. type: =head1
30021 #: ../tools/virt-win-reg.pl:619
30022 msgid "CurrentControlSet etc."
30023 msgstr ""
30024
30025 #. type: textblock
30026 #: ../tools/virt-win-reg.pl:621
30027 msgid ""
30028 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
30029 "Registry at the level of the hive file, and therefore you cannot modify "
30030 "these."
30031 msgstr ""
30032
30033 #. type: textblock
30034 #: ../tools/virt-win-reg.pl:625
30035 msgid ""
30036 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
30037 "circumstances it might refer to another control set.  The way to find out is "
30038 "to look at the C<HKLM\\SYSTEM\\Select> key:"
30039 msgstr ""
30040
30041 #. type: verbatim
30042 #: ../tools/virt-win-reg.pl:629
30043 #, no-wrap
30044 msgid ""
30045 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
30046 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
30047 " \"Current\"=dword:00000001\n"
30048 " \"Default\"=dword:00000001\n"
30049 " \"Failed\"=dword:00000000\n"
30050 " \"LastKnownGood\"=dword:00000002\n"
30051 "\n"
30052 msgstr ""
30053
30054 #. type: textblock
30055 #: ../tools/virt-win-reg.pl:636
30056 msgid "\"Current\" is the one which Windows will choose when it boots."
30057 msgstr ""
30058
30059 #. type: textblock
30060 #: ../tools/virt-win-reg.pl:638
30061 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
30062 msgstr ""
30063
30064 #. type: =head1
30065 #: ../tools/virt-win-reg.pl:641
30066 msgid "WINDOWS TIPS"
30067 msgstr ""
30068
30069 #. type: textblock
30070 #: ../tools/virt-win-reg.pl:643
30071 msgid ""
30072 "Note that some of these tips modify the guest disk image.  The guest I<must> "
30073 "be shut off, else you will get disk corruption."
30074 msgstr ""
30075
30076 #. type: =head2
30077 #: ../tools/virt-win-reg.pl:646
30078 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
30079 msgstr ""
30080
30081 #. type: textblock
30082 #: ../tools/virt-win-reg.pl:648
30083 msgid ""
30084 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
30085 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
30086 "is uploaded into C<C:\\>:"
30087 msgstr ""
30088
30089 #. type: verbatim
30090 #: ../tools/virt-win-reg.pl:652
30091 #, no-wrap
30092 msgid ""
30093 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
30094 "\n"
30095 msgstr ""
30096
30097 #. type: textblock
30098 #: ../tools/virt-win-reg.pl:654
30099 msgid "Prepare a regedit file containing the registry change:"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../tools/virt-win-reg.pl:656
30104 #, no-wrap
30105 msgid ""
30106 " cat > test.reg <<'EOF'\n"
30107 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
30108 " \"Test\"=\"c:\\\\test.bat\"\n"
30109 " EOF\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../tools/virt-win-reg.pl:661
30115 msgid ""
30116 "In this example we use the key C<RunOnce> which means that the script will "
30117 "run precisely once when the first user logs in.  If you want it to run every "
30118 "time a user logs in, replace C<RunOnce> with C<Run>."
30119 msgstr ""
30120
30121 #. type: textblock
30122 #: ../tools/virt-win-reg.pl:665
30123 msgid "Now update the registry:"
30124 msgstr ""
30125
30126 #. type: verbatim
30127 #: ../tools/virt-win-reg.pl:667
30128 #, no-wrap
30129 msgid ""
30130 " virt-win-reg --merge WindowsGuest test.reg\n"
30131 "\n"
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../tools/virt-win-reg.pl:669
30136 msgid "INSTALLING A SERVICE"
30137 msgstr ""
30138
30139 #. type: textblock
30140 #: ../tools/virt-win-reg.pl:671
30141 msgid ""
30142 "This section assumes you are familiar with Windows services, and you either "
30143 "have a program which handles the Windows Service Control Protocol directly "
30144 "or you want to run any program using a service wrapper like SrvAny or the "
30145 "free RHSrvAny."
30146 msgstr ""
30147
30148 #. type: textblock
30149 #: ../tools/virt-win-reg.pl:676
30150 msgid ""
30151 "First upload the program and optionally the service wrapper.  In this case "
30152 "the test program is called C<test.exe> and we are using the RHSrvAny "
30153 "wrapper:"
30154 msgstr ""
30155
30156 #. type: verbatim
30157 #: ../tools/virt-win-reg.pl:680
30158 #, no-wrap
30159 msgid ""
30160 " guestfish -i -d WindowsGuest <<EOF\n"
30161 "   upload rhsrvany.exe /rhsrvany.exe\n"
30162 "   upload test.exe /test.exe\n"
30163 " EOF\n"
30164 "\n"
30165 msgstr ""
30166
30167 #. type: textblock
30168 #: ../tools/virt-win-reg.pl:685
30169 msgid ""
30170 "Prepare a regedit file containing the registry changes.  In this example, "
30171 "the first registry change is needed for the service itself or the service "
30172 "wrapper (if used).  The second registry change is only needed because I am "
30173 "using the RHSrvAny service wrapper."
30174 msgstr ""
30175
30176 #. type: verbatim
30177 #: ../tools/virt-win-reg.pl:690
30178 #, no-wrap
30179 msgid ""
30180 " cat > service.reg <<'EOF'\n"
30181 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
30182 " \"Type\"=dword:00000010\n"
30183 " \"Start\"=dword:00000002\n"
30184 " \"ErrorControl\"=dword:00000001\n"
30185 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
30186 " \"DisplayName\"=\"RHSrvAny\"\n"
30187 " \"ObjectName\"=\"NetworkService\"\n"
30188 " \n"
30189 msgstr ""
30190
30191 #. type: verbatim
30192 #: ../tools/virt-win-reg.pl:699
30193 #, no-wrap
30194 msgid ""
30195 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
30196 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
30197 " \"PWD\"=\"c:\\\\Temp\"\n"
30198 " EOF\n"
30199 "\n"
30200 msgstr ""
30201
30202 #. type: textblock
30203 #: ../tools/virt-win-reg.pl:710
30204 msgid ""
30205 "For use of C<ControlSet001> see the section above in this manual page.  You "
30206 "may need to adjust this according to the control set that is in use by the "
30207 "guest."
30208 msgstr ""
30209
30210 #. type: textblock
30211 #: ../tools/virt-win-reg.pl:716
30212 msgid ""
30213 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
30214 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
30215 "privileged account."
30216 msgstr ""
30217
30218 #. type: textblock
30219 #: ../tools/virt-win-reg.pl:722
30220 msgid ""
30221 "For the meaning of the magic numbers, see this Microsoft KB article: "
30222 "L<http://support.microsoft.com/kb/103000>."
30223 msgstr ""
30224
30225 #. type: textblock
30226 #: ../tools/virt-win-reg.pl:727
30227 msgid "Update the registry:"
30228 msgstr ""
30229
30230 #. type: verbatim
30231 #: ../tools/virt-win-reg.pl:729
30232 #, no-wrap
30233 msgid ""
30234 " virt-win-reg --merge WindowsGuest service.reg\n"
30235 "\n"
30236 msgstr ""
30237
30238 #. type: =head1
30239 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532 ../tools/virt-list-partitions.pl:250
30240 msgid "SHELL QUOTING"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../tools/virt-win-reg.pl:733
30245 msgid ""
30246 "Be careful when passing parameters containing C<\\> (backslash) in the "
30247 "shell.  Usually you will have to use 'single quotes' or double backslashes "
30248 "(but not both) to protect them from the shell."
30249 msgstr ""
30250
30251 #. type: textblock
30252 #: ../tools/virt-win-reg.pl:737
30253 msgid "Paths and value names are case-insensitive."
30254 msgstr ""
30255
30256 #. type: textblock
30257 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:252
30258 msgid ""
30259 "Libvirt guest names can contain arbitrary characters, some of which have "
30260 "meaning to the shell such as C<#> and space.  You may need to quote or "
30261 "escape these characters on the command line.  See the shell manual page "
30262 "L<sh(1)> for details."
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../tools/virt-win-reg.pl:746
30267 msgid ""
30268 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
30269 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
30270 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
30271 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
30276 msgid ""
30277 "When reporting bugs, please enable debugging and capture the I<complete> "
30278 "output:"
30279 msgstr ""
30280
30281 #. type: verbatim
30282 #: ../tools/virt-win-reg.pl:764
30283 #, no-wrap
30284 msgid ""
30285 " export LIBGUESTFS_DEBUG=1\n"
30286 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
30287 "\n"
30288 msgstr ""
30289
30290 #. type: textblock
30291 #: ../tools/virt-win-reg.pl:767
30292 msgid ""
30293 "Attach /tmp/virt-win-reg.log to a new bug report at "
30294 "L<https://bugzilla.redhat.com/>"
30295 msgstr ""
30296
30297 #. type: =head1
30298 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564 ../tools/virt-list-partitions.pl:269
30299 msgid "AUTHOR"
30300 msgstr ""
30301
30302 #. type: textblock
30303 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566 ../tools/virt-list-partitions.pl:271
30304 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
30305 msgstr ""
30306
30307 #. type: textblock
30308 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
30309 msgid "Copyright (C) 2010 Red Hat Inc."
30310 msgstr ""
30311
30312 #. type: textblock
30313 #: ../tools/virt-list-filesystems.pl:32
30314 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
30315 msgstr ""
30316
30317 #. type: verbatim
30318 #: ../tools/virt-list-filesystems.pl:36
30319 #, no-wrap
30320 msgid ""
30321 " virt-list-filesystems [--options] domname\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: verbatim
30326 #: ../tools/virt-list-filesystems.pl:38
30327 #, no-wrap
30328 msgid ""
30329 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
30330 "\n"
30331 msgstr ""
30332
30333 #. type: textblock
30334 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
30335 msgid ""
30336 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
30337 "replacement."
30338 msgstr ""
30339
30340 #. type: textblock
30341 #: ../tools/virt-list-filesystems.pl:45
30342 msgid ""
30343 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
30344 "are contained in a virtual machine or disk image."
30345 msgstr ""
30346
30347 #. type: textblock
30348 #: ../tools/virt-list-filesystems.pl:49
30349 msgid ""
30350 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
30351 "functionality.  For more complex cases you should look at the "
30352 "L<guestfish(1)> tool."
30353 msgstr ""
30354
30355 #. type: =item
30356 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
30357 msgid "B<-l> | B<--long>"
30358 msgstr ""
30359
30360 #. type: textblock
30361 #: ../tools/virt-list-filesystems.pl:108
30362 msgid ""
30363 "With this option, C<virt-list-filesystems> displays the type of each "
30364 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
30365 msgstr ""
30366
30367 #. type: =item
30368 #: ../tools/virt-list-filesystems.pl:115
30369 msgid "B<-a> | B<--all>"
30370 msgstr ""
30371
30372 #. type: textblock
30373 #: ../tools/virt-list-filesystems.pl:117
30374 msgid ""
30375 "Normally we only show mountable filesystems.  If this option is given then "
30376 "swap devices are shown too."
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../tools/virt-list-filesystems.pl:191
30381 msgid ""
30382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
30383 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
30384 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30385 msgstr ""
30386
30387 #. type: textblock
30388 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
30389 msgid "Copyright (C) 2009 Red Hat Inc."
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../tools/virt-tar.pl:33
30394 msgid "virt-tar - Extract or upload files to a virtual machine"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../tools/virt-tar.pl:37
30399 #, no-wrap
30400 msgid ""
30401 " virt-tar [--options] -x domname directory tarball\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: verbatim
30406 #: ../tools/virt-tar.pl:39
30407 #, no-wrap
30408 msgid ""
30409 " virt-tar [--options] -u domname tarball directory\n"
30410 "\n"
30411 msgstr ""
30412
30413 #. type: verbatim
30414 #: ../tools/virt-tar.pl:41
30415 #, no-wrap
30416 msgid ""
30417 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
30418 "\n"
30419 msgstr ""
30420
30421 #. type: verbatim
30422 #: ../tools/virt-tar.pl:43
30423 #, no-wrap
30424 msgid ""
30425 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
30426 "\n"
30427 msgstr ""
30428
30429 #. type: textblock
30430 #: ../tools/virt-tar.pl:47
30431 msgid ""
30432 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
30433 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
30434 msgstr ""
30435
30436 #. type: textblock
30437 #: ../tools/virt-tar.pl:52
30438 msgid "Download C</home> from the VM into a local tarball:"
30439 msgstr ""
30440
30441 #. type: verbatim
30442 #: ../tools/virt-tar.pl:54
30443 #, no-wrap
30444 msgid ""
30445 " virt-tar -x domname /home home.tar\n"
30446 "\n"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../tools/virt-tar.pl:56
30451 #, no-wrap
30452 msgid ""
30453 " virt-tar -zx domname /home home.tar.gz\n"
30454 "\n"
30455 msgstr ""
30456
30457 #. type: textblock
30458 #: ../tools/virt-tar.pl:58
30459 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
30460 msgstr ""
30461
30462 #. type: verbatim
30463 #: ../tools/virt-tar.pl:60
30464 #, no-wrap
30465 msgid ""
30466 " virt-tar -u domname uploadstuff.tar /tmp\n"
30467 "\n"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../tools/virt-tar.pl:62
30472 #, no-wrap
30473 msgid ""
30474 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
30475 "\n"
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../tools/virt-tar.pl:66
30480 msgid ""
30481 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
30482 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
30483 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../tools/virt-tar.pl:71
30488 msgid ""
30489 "You can use I<-x> (extract) on live virtual machines, but you might get "
30490 "inconsistent results or errors if there is filesystem activity inside the "
30491 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
30492 "work, but the only way to guarantee consistent results is if the virtual "
30493 "machine is shut down."
30494 msgstr ""
30495
30496 #. type: textblock
30497 #: ../tools/virt-tar.pl:79
30498 msgid ""
30499 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
30500 "parts of a guest filesystem.  There are many possibilities: making backups, "
30501 "uploading data files, snooping on guest activity, fixing or customizing "
30502 "guests, etc."
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../tools/virt-tar.pl:84
30507 msgid ""
30508 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
30509 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
30510 "should look at the L<guestfish(1)> tool."
30511 msgstr ""
30512
30513 #. type: textblock
30514 #: ../tools/virt-tar.pl:88
30515 msgid ""
30516 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
30517 "its contents (recursively) from the virtual machine into a local tarball.  "
30518 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
30519 "virtual machine.  You cannot use these two options together."
30520 msgstr ""
30521
30522 #. type: textblock
30523 #: ../tools/virt-tar.pl:94
30524 msgid ""
30525 "In addition, you may need to use the I<-z> (gZip) option to enable "
30526 "compression.  When uploading, you have to specify I<-z> if the upload file "
30527 "is compressed because virt-tar won't detect this on its own."
30528 msgstr ""
30529
30530 #. type: textblock
30531 #: ../tools/virt-tar.pl:98
30532 msgid ""
30533 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
30534 "example it cannot do PKZip files or bzip2 compression.  If you want that "
30535 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
30536 "the L<libguestfs(3)> API)."
30537 msgstr ""
30538
30539 #. type: =item
30540 #: ../tools/virt-tar.pl:156
30541 msgid "B<-x> | B<--extract> | B<--download>"
30542 msgstr ""
30543
30544 #. type: =item
30545 #: ../tools/virt-tar.pl:158
30546 msgid "B<-u> | B<--upload>"
30547 msgstr ""
30548
30549 #. type: textblock
30550 #: ../tools/virt-tar.pl:160
30551 msgid ""
30552 "Use I<-x> to extract (download) a directory from a virtual machine to a "
30553 "local tarball."
30554 msgstr ""
30555
30556 #. type: textblock
30557 #: ../tools/virt-tar.pl:163
30558 msgid ""
30559 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
30560 "Please read the L</WARNING> section above before using this option."
30561 msgstr ""
30562
30563 #. type: textblock
30564 #: ../tools/virt-tar.pl:167
30565 msgid "You must specify exactly one of these options."
30566 msgstr ""
30567
30568 #. type: =item
30569 #: ../tools/virt-tar.pl:173
30570 msgid "B<-z> | B<--gzip>"
30571 msgstr ""
30572
30573 #. type: textblock
30574 #: ../tools/virt-tar.pl:175
30575 msgid "Specify that the input or output tarball is gzip-compressed."
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../tools/virt-tar.pl:288
30580 msgid ""
30581 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
30582 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
30583 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
30584 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30585 msgstr ""
30586
30587 #. type: textblock
30588 #: ../tools/virt-make-fs.pl:37
30589 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
30590 msgstr ""
30591
30592 #. type: verbatim
30593 #: ../tools/virt-make-fs.pl:41
30594 #, no-wrap
30595 msgid ""
30596 " virt-make-fs [--options] input.tar output.img\n"
30597 "\n"
30598 msgstr ""
30599
30600 #. type: verbatim
30601 #: ../tools/virt-make-fs.pl:43
30602 #, no-wrap
30603 msgid ""
30604 " virt-make-fs [--options] input.tar.gz output.img\n"
30605 "\n"
30606 msgstr ""
30607
30608 #. type: verbatim
30609 #: ../tools/virt-make-fs.pl:45
30610 #, no-wrap
30611 msgid ""
30612 " virt-make-fs [--options] directory output.img\n"
30613 "\n"
30614 msgstr ""
30615
30616 #. type: textblock
30617 #: ../tools/virt-make-fs.pl:49
30618 msgid ""
30619 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
30620 "archive or some files in a directory.  It is similar to tools like "
30621 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
30622 "it can create common filesystem types like ext2/3 or NTFS, which can be "
30623 "useful if you want to attach these filesystems to existing virtual machines "
30624 "(eg. to import large amounts of read-only data to a VM)."
30625 msgstr ""
30626
30627 #. type: textblock
30628 #: ../tools/virt-make-fs.pl:57
30629 msgid "Basic usage is:"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../tools/virt-make-fs.pl:59
30634 #, no-wrap
30635 msgid ""
30636 " virt-make-fs input output\n"
30637 "\n"
30638 msgstr ""
30639
30640 #. type: textblock
30641 #: ../tools/virt-make-fs.pl:61
30642 msgid ""
30643 "where C<input> is either a directory containing files that you want to add, "
30644 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
30645 "C<output> is a disk image.  The input type is detected automatically.  The "
30646 "output disk image defaults to a raw ext2 image unless you specify extra "
30647 "flags (see L</OPTIONS> below)."
30648 msgstr ""
30649
30650 #. type: =head2
30651 #: ../tools/virt-make-fs.pl:67
30652 msgid "EXTRA SPACE"
30653 msgstr ""
30654
30655 #. type: textblock
30656 #: ../tools/virt-make-fs.pl:69
30657 msgid ""
30658 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
30659 "the files that it contains, but might have extra space.  Depending on how "
30660 "you are going to use the output, you might think this extra space is wasted "
30661 "and want to minimize it, or you might want to leave space so that more files "
30662 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
30663 "but you can use the I<--size> flag to leave space in the filesystem if you "
30664 "want it."
30665 msgstr ""
30666
30667 #. type: textblock
30668 #: ../tools/virt-make-fs.pl:77
30669 msgid ""
30670 "An alternative way to leave extra space but not make the output image any "
30671 "bigger is to use an alternative disk image format (instead of the default "
30672 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
30673 "image format (check your hypervisor supports this before using it).  This "
30674 "allows you to choose a large I<--size> but the extra space won't actually be "
30675 "allocated in the image until you try to store something in it."
30676 msgstr ""
30677
30678 #. type: textblock
30679 #: ../tools/virt-make-fs.pl:85
30680 msgid ""
30681 "Don't forget that you can also use local commands including L<resize2fs(8)> "
30682 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
30683 "to build another image from scratch."
30684 msgstr ""
30685
30686 #. type: =head3
30687 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
30688 msgid "EXAMPLE"
30689 msgstr ""
30690
30691 #. type: verbatim
30692 #: ../tools/virt-make-fs.pl:91
30693 #, no-wrap
30694 msgid ""
30695 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
30696 "\n"
30697 msgstr ""
30698
30699 #. type: =head2
30700 #: ../tools/virt-make-fs.pl:93
30701 msgid "FILESYSTEM TYPE"
30702 msgstr ""
30703
30704 #. type: textblock
30705 #: ../tools/virt-make-fs.pl:95
30706 msgid ""
30707 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
30708 "libguestfs supports can be used (but I<not> read-only formats like "
30709 "ISO9660).  Here are some of the more common choices:"
30710 msgstr ""
30711
30712 #. type: =item
30713 #: ../tools/virt-make-fs.pl:101
30714 msgid "I<ext3>"
30715 msgstr ""
30716
30717 #. type: textblock
30718 #: ../tools/virt-make-fs.pl:103
30719 msgid ""
30720 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
30721 "you are not going to use the filesystem in a way that requires the journal, "
30722 "then this is just wasted overhead."
30723 msgstr ""
30724
30725 #. type: =item
30726 #: ../tools/virt-make-fs.pl:107
30727 msgid "I<ntfs> or I<vfat>"
30728 msgstr ""
30729
30730 #. type: textblock
30731 #: ../tools/virt-make-fs.pl:109
30732 msgid "Useful if exporting data to a Windows guest."
30733 msgstr ""
30734
30735 #. type: textblock
30736 #: ../tools/virt-make-fs.pl:111
30737 msgid ""
30738 "I<Note for vfat>: The tar archive or local directory must only contain files "
30739 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
30740 "program running within libguestfs is unable to change the ownership of "
30741 "non-root files, since vfat itself does not support this."
30742 msgstr ""
30743
30744 #. type: =item
30745 #: ../tools/virt-make-fs.pl:116
30746 msgid "I<minix>"
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../tools/virt-make-fs.pl:118
30751 msgid ""
30752 "Lower overhead than C<ext2>, but certain limitations on filename length and "
30753 "total filesystem size."
30754 msgstr ""
30755
30756 #. type: verbatim
30757 #: ../tools/virt-make-fs.pl:125
30758 #, no-wrap
30759 msgid ""
30760 " virt-make-fs --type=minix input minixfs.img\n"
30761 "\n"
30762 msgstr ""
30763
30764 #. type: =head2
30765 #: ../tools/virt-make-fs.pl:127
30766 msgid "TO PARTITION OR NOT TO PARTITION"
30767 msgstr ""
30768
30769 #. type: textblock
30770 #: ../tools/virt-make-fs.pl:129
30771 msgid "Optionally virt-make-fs can add a partition table to the output disk."
30772 msgstr ""
30773
30774 #. type: textblock
30775 #: ../tools/virt-make-fs.pl:131
30776 msgid ""
30777 "Adding a partition can make the disk image more compatible with certain "
30778 "virtualized operating systems which don't expect to see a filesystem "
30779 "directly located on a block device (Linux doesn't care and will happily "
30780 "handle both types)."
30781 msgstr ""
30782
30783 #. type: textblock
30784 #: ../tools/virt-make-fs.pl:136
30785 msgid ""
30786 "On the other hand, if you have a partition table then the output image is no "
30787 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
30788 "directly on a partitioned disk image.  (However libguestfs tools such as "
30789 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../tools/virt-make-fs.pl:144
30794 msgid "Add an MBR partition:"
30795 msgstr ""
30796
30797 #. type: verbatim
30798 #: ../tools/virt-make-fs.pl:146
30799 #, no-wrap
30800 msgid ""
30801 " virt-make-fs --partition -- input disk.img\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: textblock
30806 #: ../tools/virt-make-fs.pl:148
30807 msgid ""
30808 "If the output disk image could be terabyte-sized or larger, it's better to "
30809 "use an EFI/GPT-compatible partition table:"
30810 msgstr ""
30811
30812 #. type: verbatim
30813 #: ../tools/virt-make-fs.pl:151
30814 #, no-wrap
30815 msgid ""
30816 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
30817 "\n"
30818 msgstr ""
30819
30820 #. type: textblock
30821 #: ../tools/virt-make-fs.pl:179
30822 msgid "Enable debugging information."
30823 msgstr ""
30824
30825 #. type: =item
30826 #: ../tools/virt-make-fs.pl:185
30827 msgid "B<--size=E<lt>NE<gt>>"
30828 msgstr ""
30829
30830 #. type: =item
30831 #: ../tools/virt-make-fs.pl:187
30832 msgid "B<--size=+E<lt>NE<gt>>"
30833 msgstr ""
30834
30835 #. type: =item
30836 #: ../tools/virt-make-fs.pl:189
30837 msgid "B<-s E<lt>NE<gt>>"
30838 msgstr ""
30839
30840 #. type: =item
30841 #: ../tools/virt-make-fs.pl:191
30842 msgid "B<-s +E<lt>NE<gt>>"
30843 msgstr ""
30844
30845 #. type: textblock
30846 #: ../tools/virt-make-fs.pl:193
30847 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
30848 msgstr ""
30849
30850 #. type: textblock
30851 #: ../tools/virt-make-fs.pl:196
30852 msgid ""
30853 "If this option is I<not> given, then the output image will be just large "
30854 "enough to contain all the files, with not much wasted space."
30855 msgstr ""
30856
30857 #. type: textblock
30858 #: ../tools/virt-make-fs.pl:199
30859 msgid ""
30860 "To choose a fixed size output disk, specify an absolute number followed by "
30861 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30862 "Petabytes or Exabytes.  This must be large enough to contain all the input "
30863 "files, else you will get an error."
30864 msgstr ""
30865
30866 #. type: textblock
30867 #: ../tools/virt-make-fs.pl:204
30868 msgid ""
30869 "To leave extra space, specify C<+> (plus sign) and a number followed by "
30870 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30871 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30872 "the input files, and (approximately) an extra 200 MB free space."
30873 msgstr ""
30874
30875 #. type: textblock
30876 #: ../tools/virt-make-fs.pl:210
30877 msgid ""
30878 "Note that virt-make-fs estimates free space, and therefore will not produce "
30879 "filesystems containing precisely the free space requested.  (It is much more "
30880 "expensive and time-consuming to produce a filesystem which has precisely the "
30881 "desired free space)."
30882 msgstr ""
30883
30884 #. type: =item
30885 #: ../tools/virt-make-fs.pl:219
30886 msgid "B<--format=E<lt>fmtE<gt>>"
30887 msgstr ""
30888
30889 #. type: =item
30890 #: ../tools/virt-make-fs.pl:221
30891 msgid "B<-F E<lt>fmtE<gt>>"
30892 msgstr ""
30893
30894 #. type: textblock
30895 #: ../tools/virt-make-fs.pl:223
30896 msgid "Choose the output disk image format."
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../tools/virt-make-fs.pl:225
30901 msgid "The default is C<raw> (raw disk image)."
30902 msgstr ""
30903
30904 #. type: textblock
30905 #: ../tools/virt-make-fs.pl:227
30906 msgid ""
30907 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30908 "that would really make sense here is C<qcow2>."
30909 msgstr ""
30910
30911 #. type: =item
30912 #: ../tools/virt-make-fs.pl:234
30913 msgid "B<--type=E<lt>fsE<gt>>"
30914 msgstr ""
30915
30916 #. type: =item
30917 #: ../tools/virt-make-fs.pl:236
30918 msgid "B<-t E<lt>fsE<gt>>"
30919 msgstr ""
30920
30921 #. type: textblock
30922 #: ../tools/virt-make-fs.pl:238
30923 msgid "Choose the output filesystem type."
30924 msgstr ""
30925
30926 #. type: textblock
30927 #: ../tools/virt-make-fs.pl:240
30928 msgid "The default is C<ext2>."
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../tools/virt-make-fs.pl:242
30933 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
30934 msgstr ""
30935
30936 #. type: =item
30937 #: ../tools/virt-make-fs.pl:249
30938 msgid "B<--partition>"
30939 msgstr ""
30940
30941 #. type: =item
30942 #: ../tools/virt-make-fs.pl:251
30943 msgid "B<--partition=E<lt>parttypeE<gt>>"
30944 msgstr ""
30945
30946 #. type: textblock
30947 #: ../tools/virt-make-fs.pl:253
30948 msgid ""
30949 "If specified, this flag adds an MBR partition table to the output disk "
30950 "image."
30951 msgstr ""
30952
30953 #. type: textblock
30954 #: ../tools/virt-make-fs.pl:256
30955 msgid ""
30956 "You can change the partition table type, eg. I<--partition=gpt> for large "
30957 "disks."
30958 msgstr ""
30959
30960 #. type: textblock
30961 #: ../tools/virt-make-fs.pl:259
30962 msgid ""
30963 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30964 "might consider the next parameter to be the partition type.  For example:"
30965 msgstr ""
30966
30967 #. type: verbatim
30968 #: ../tools/virt-make-fs.pl:263
30969 #, no-wrap
30970 msgid ""
30971 " virt-make-fs --partition input.tar ...\n"
30972 "\n"
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../tools/virt-make-fs.pl:265
30977 msgid ""
30978 "would cause virt-make-fs to think you wanted to use a partition type of "
30979 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30980 "dash) between options and the input file argument:"
30981 msgstr ""
30982
30983 #. type: verbatim
30984 #: ../tools/virt-make-fs.pl:269
30985 #, no-wrap
30986 msgid ""
30987 " virt-make-fs --partition -- input.tar ...\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: textblock
30992 #: ../tools/virt-make-fs.pl:541
30993 msgid ""
30994 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30995 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
30996 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30997 msgstr ""
30998
30999 #. type: verbatim
31000 #: ../tools/virt-make-fs.pl:558
31001 #, no-wrap
31002 msgid ""
31003 " export LIBGUESTFS_DEBUG=1\n"
31004 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
31005 "\n"
31006 msgstr ""
31007
31008 #. type: textblock
31009 #: ../tools/virt-make-fs.pl:561
31010 msgid ""
31011 "Attach /tmp/virt-make-fs.log to a new bug report at "
31012 "L<https://bugzilla.redhat.com/>"
31013 msgstr ""
31014
31015 #. type: textblock
31016 #: ../tools/virt-list-partitions.pl:32
31017 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../tools/virt-list-partitions.pl:36
31022 #, no-wrap
31023 msgid ""
31024 " virt-list-partitions [--options] domname\n"
31025 "\n"
31026 msgstr ""
31027
31028 #. type: verbatim
31029 #: ../tools/virt-list-partitions.pl:38
31030 #, no-wrap
31031 msgid ""
31032 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
31033 "\n"
31034 msgstr ""
31035
31036 #. type: textblock
31037 #: ../tools/virt-list-partitions.pl:45
31038 msgid ""
31039 "C<virt-list-partitions> is a command line tool to list the partitions that "
31040 "are contained in a virtual machine or disk image.  It is mainly useful as a "
31041 "first step to using L<virt-resize(1)>."
31042 msgstr ""
31043
31044 #. type: textblock
31045 #: ../tools/virt-list-partitions.pl:50
31046 msgid ""
31047 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
31048 "functionality.  For more complex cases you should look at the "
31049 "L<guestfish(1)> tool."
31050 msgstr ""
31051
31052 #. type: =item
31053 #: ../tools/virt-list-partitions.pl:107
31054 msgid "B<-h> | B<--human-readable>"
31055 msgstr ""
31056
31057 #. type: textblock
31058 #: ../tools/virt-list-partitions.pl:109
31059 msgid "Show sizes in human-readable form (eg. \"1G\")."
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../tools/virt-list-partitions.pl:117
31064 msgid ""
31065 "With this option, C<virt-list-partitions> displays the type and size of each "
31066 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
31067 msgstr ""
31068
31069 #. type: =item
31070 #: ../tools/virt-list-partitions.pl:124
31071 msgid "B<-t> | B<--total>"
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../tools/virt-list-partitions.pl:126
31076 msgid "Display the total size of each block device (as a separate row or rows)."
31077 msgstr ""
31078
31079 #. type: textblock
31080 #: ../tools/virt-list-partitions.pl:259
31081 msgid ""
31082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
31083 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
31084 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
31085 msgstr ""
31086
31087 #. type: textblock
31088 #: ../tools/virt-list-partitions.pl:275
31089 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31090 msgstr ""