Version 1.10.3.
[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.10.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-05-18 12:00+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-edit.pl:32 ../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-edit.pl:36 ../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-edit.pl:50 ../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:1753 ../src/guestfs.pod:1758 ../src/guestfs.pod:1762 ../src/guestfs.pod:1772 ../src/guestfs.pod:2007 ../src/guestfs.pod:2012 ../src/guestfs.pod:2018 ../src/guestfs.pod:2026 ../src/guestfs.pod:2380 ../src/guestfs.pod:2386 ../src/guestfs.pod:2391 ../src/guestfs.pod:2397 ../src/guestfs.pod:2962 ../src/guestfs.pod:2966 ../src/guestfs.pod:2970 ../src/guestfs.pod:2974 ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:585 ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:599 ../src/guestfs-actions.pod:1600 ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1608 ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1620 ../src/guestfs-actions.pod:1624 ../src/guestfs-actions.pod:1628 ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1642 ../src/guestfs-actions.pod:1646 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1859 ../src/guestfs-actions.pod:1863 ../src/guestfs-actions.pod:1868 ../fish/guestfish.pod:443 ../fish/guestfish.pod:447 ../fish/guestfish.pod:451 ../fish/guestfish.pod:455 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:380 ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:402 ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1096 ../fish/guestfish-actions.pod:1100 ../fish/guestfish-actions.pod:1110 ../fish/guestfish-actions.pod:1114 ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1208 ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1273 ../tools/virt-edit.pl:351 ../tools/virt-edit.pl:356 ../tools/virt-edit.pl:361 ../tools/virt-edit.pl:372 ../tools/virt-edit.pl:376 ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548
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:2425
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:2450
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:765
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:1008
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:1855 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
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."
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../src/guestfs.pod:1677
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:1685
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:1690
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:1694
3300 msgid "CLASSES OF EVENTS"
3301 msgstr ""
3302
3303 #. type: =item
3304 #: ../src/guestfs.pod:1698
3305 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1701
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:1704
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:1711
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:1714
3335 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../src/guestfs.pod:1717
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:1721 ../src/guestfs.pod:1730
3348 msgid "If no callback is registered: the event is ignored."
3349 msgstr ""
3350
3351 #. type: =item
3352 #: ../src/guestfs.pod:1723
3353 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../src/guestfs.pod:1726
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:1732
3366 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../src/guestfs.pod:1735
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:1741
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:1744
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:1749
3397 msgid "The only defined and stable parts of the API are:"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../src/guestfs.pod:1755
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:1760
3409 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3410 msgstr ""
3411
3412 #. type: textblock
3413 #: ../src/guestfs.pod:1764
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:1768
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:1774
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:1779
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:1783
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:1788
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:1794
3463 msgid "If no callback is registered: progress messages are discarded."
3464 msgstr ""
3465
3466 #. type: =item
3467 #: ../src/guestfs.pod:1796
3468 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../src/guestfs.pod:1799
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:1802
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:1805 ../src/guestfs.pod:1819
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:1810
3495 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../src/guestfs.pod:1813
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:1816
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:1824
3514 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3515 msgstr ""
3516
3517 #. type: textblock
3518 #: ../src/guestfs.pod:1827
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:1830
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:1836
3533 msgid "guestfs_set_event_callback"
3534 msgstr ""
3535
3536 #. type: verbatim
3537 #: ../src/guestfs.pod:1838
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:1844
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:1847
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:1853
3566 msgid "C<flags> should always be passed as 0."
3567 msgstr ""
3568
3569 #. type: textblock
3570 #: ../src/guestfs.pod:1855
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:1858
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:1861
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:1864
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:1867
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:1871
3607 msgid "guestfs_delete_event_callback"
3608 msgstr ""
3609
3610 #. type: verbatim
3611 #: ../src/guestfs.pod:1873
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:1875
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:1879
3628 msgid "guestfs_event_callback"
3629 msgstr ""
3630
3631 #. type: verbatim
3632 #: ../src/guestfs.pod:1881
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:1890
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:1893
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:1897
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:1902
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:1906
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:1909
3685 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../src/guestfs.pod:1911
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:1915
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:1920
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:1923
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:1933
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:1936
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:1951
3757 msgid "PRIVATE DATA AREA"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../src/guestfs.pod:1953
3762 msgid ""
3763 "You can attach named pieces of private data to the libguestfs handle, fetch "
3764 "them by name, and walk over them, for the lifetime of the handle.  This is "
3765 "called the private data area and is only available from the C API."
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1958
3770 msgid "To attach a named piece of data, use the following call:"
3771 msgstr ""
3772
3773 #. type: verbatim
3774 #: ../src/guestfs.pod:1960
3775 #, no-wrap
3776 msgid ""
3777 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3778 "\n"
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../src/guestfs.pod:1962
3783 msgid ""
3784 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3785 "pointer (which can be C<NULL>).  Any previous item with the same key is "
3786 "overwritten."
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../src/guestfs.pod:1966
3791 msgid ""
3792 "You can use any C<key> you want, but your key should I<not> start with an "
3793 "underscore character.  Keys beginning with an underscore character are "
3794 "reserved for internal libguestfs purposes (eg. for implementing language "
3795 "bindings).  It is recommended that you prefix the key with some unique "
3796 "string to avoid collisions with other users."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1972
3801 msgid "To retrieve the pointer, use:"
3802 msgstr ""
3803
3804 #. type: verbatim
3805 #: ../src/guestfs.pod:1974
3806 #, no-wrap
3807 msgid ""
3808 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3809 "\n"
3810 msgstr ""
3811
3812 #. type: textblock
3813 #: ../src/guestfs.pod:1976
3814 msgid ""
3815 "This function returns C<NULL> if either no data is found associated with "
3816 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3817 "C<NULL>."
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../src/guestfs.pod:1980
3822 msgid ""
3823 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3824 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3825 "all.  In particular, libguestfs does I<not> try to free the data when the "
3826 "handle is closed.  If the data must be freed, then the caller must either "
3827 "free it before calling L</guestfs_close> or must set up a close callback to "
3828 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../src/guestfs.pod:1987
3833 msgid "To walk over all entries, use these two functions:"
3834 msgstr ""
3835
3836 #. type: verbatim
3837 #: ../src/guestfs.pod:1989
3838 #, no-wrap
3839 msgid ""
3840 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3841 "\n"
3842 msgstr ""
3843
3844 #. type: verbatim
3845 #: ../src/guestfs.pod:1991
3846 #, no-wrap
3847 msgid ""
3848 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3849 "\n"
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../src/guestfs.pod:1993
3854 msgid ""
3855 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3856 "not have any particular meaning -- keys are not returned in any defined "
3857 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3858 "corresponding data pointer is returned from the function.  C<NULL> is "
3859 "returned if there are no keys stored in the handle."
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../src/guestfs.pod:1999
3864 msgid ""
3865 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3866 "value of this function is also C<NULL> is there are no further entries to "
3867 "return."
3868 msgstr ""
3869
3870 #. type: textblock
3871 #: ../src/guestfs.pod:2003
3872 msgid "Notes about walking over entries:"
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../src/guestfs.pod:2009
3877 msgid "You must not call C<guestfs_set_private> while walking over the entries."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../src/guestfs.pod:2014
3882 msgid ""
3883 "The handle maintains an internal iterator which is reset when you call "
3884 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3885 "call C<guestfs_set_private>."
3886 msgstr ""
3887
3888 #. type: textblock
3889 #: ../src/guestfs.pod:2020
3890 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3891 msgstr ""
3892
3893 #. type: verbatim
3894 #: ../src/guestfs.pod:2022
3895 #, no-wrap
3896 msgid ""
3897 " guestfs_set_private (g, key, NULL);\n"
3898 "\n"
3899 msgstr ""
3900
3901 #. type: textblock
3902 #: ../src/guestfs.pod:2024
3903 msgid "then that C<key> is not returned when walking."
3904 msgstr ""
3905
3906 #. type: textblock
3907 #: ../src/guestfs.pod:2028
3908 msgid ""
3909 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
3910 "C<guestfs_next_private> or C<guestfs_set_private>."
3911 msgstr ""
3912
3913 #. type: textblock
3914 #: ../src/guestfs.pod:2034
3915 msgid ""
3916 "The following example code shows how to print all keys and data pointers "
3917 "that are associated with the handle C<g>:"
3918 msgstr ""
3919
3920 #. type: verbatim
3921 #: ../src/guestfs.pod:2037
3922 #, no-wrap
3923 msgid ""
3924 " const char *key;\n"
3925 " void *data = guestfs_first_private (g, &key);\n"
3926 " while (data != NULL)\n"
3927 "   {\n"
3928 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
3929 "     data = guestfs_next_private (g, &key);\n"
3930 "   }\n"
3931 "\n"
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../src/guestfs.pod:2045
3936 msgid ""
3937 "More commonly you are only interested in keys that begin with an "
3938 "application-specific prefix C<foo_>.  Modify the loop like so:"
3939 msgstr ""
3940
3941 #. type: verbatim
3942 #: ../src/guestfs.pod:2048
3943 #, no-wrap
3944 msgid ""
3945 " const char *key;\n"
3946 " void *data = guestfs_first_private (g, &key);\n"
3947 " while (data != NULL)\n"
3948 "   {\n"
3949 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
3950 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
3951 "     data = guestfs_next_private (g, &key);\n"
3952 "   }\n"
3953 "\n"
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../src/guestfs.pod:2057
3958 msgid ""
3959 "If you need to modify keys while walking, then you have to jump back to the "
3960 "beginning of the loop.  For example, to delete all keys prefixed with "
3961 "C<foo_>:"
3962 msgstr ""
3963
3964 #. type: verbatim
3965 #: ../src/guestfs.pod:2061
3966 #, no-wrap
3967 msgid ""
3968 "  const char *key;\n"
3969 "  void *data;\n"
3970 " again:\n"
3971 "  data = guestfs_first_private (g, &key);\n"
3972 "  while (data != NULL)\n"
3973 "    {\n"
3974 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
3975 "        {\n"
3976 "          guestfs_set_private (g, key, NULL);\n"
3977 "          /* note that 'key' pointer is now invalid, and so is\n"
3978 "             the internal iterator */\n"
3979 "          goto again;\n"
3980 "        }\n"
3981 "      data = guestfs_next_private (g, &key);\n"
3982 "    }\n"
3983 "\n"
3984 msgstr ""
3985
3986 #. type: textblock
3987 #: ../src/guestfs.pod:2077
3988 msgid ""
3989 "Note that the above loop is guaranteed to terminate because the keys are "
3990 "being deleted, but other manipulations of keys within the loop might not "
3991 "terminate unless you also maintain an indication of which keys have been "
3992 "visited."
3993 msgstr ""
3994
3995 #. type: =end
3996 #: ../src/guestfs.pod:2082 ../src/guestfs.pod:2087
3997 msgid "html"
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../src/guestfs.pod:2084
4002 msgid ""
4003 "<!-- old anchor for the next section --> <a "
4004 "name=\"state_machine_and_low_level_event_api\"/>"
4005 msgstr ""
4006
4007 #. type: =head1
4008 #: ../src/guestfs.pod:2089
4009 msgid "ARCHITECTURE"
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../src/guestfs.pod:2091
4014 msgid ""
4015 "Internally, libguestfs is implemented by running an appliance (a special "
4016 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4017 "process of the main program."
4018 msgstr ""
4019
4020 #. type: verbatim
4021 #: ../src/guestfs.pod:2095
4022 #, no-wrap
4023 msgid ""
4024 "  ___________________\n"
4025 " /                   \\\n"
4026 " | main program      |\n"
4027 " |                   |\n"
4028 " |                   |           child process / appliance\n"
4029 " |                   |           __________________________\n"
4030 " |                   |          / qemu                     \\\n"
4031 " +-------------------+   RPC    |      +-----------------+ |\n"
4032 " | libguestfs     <--------------------> guestfsd        | |\n"
4033 " |                   |          |      +-----------------+ |\n"
4034 " \\___________________/          |      | Linux kernel    | |\n"
4035 "                                |      +--^--------------+ |\n"
4036 "                                \\_________|________________/\n"
4037 "                                          |\n"
4038 "                                   _______v______\n"
4039 "                                  /              \\\n"
4040 "                                  | Device or    |\n"
4041 "                                  | disk image   |\n"
4042 "                                  \\______________/\n"
4043 "\n"
4044 msgstr ""
4045
4046 #. type: textblock
4047 #: ../src/guestfs.pod:2115
4048 msgid ""
4049 "The library, linked to the main program, creates the child process and hence "
4050 "the appliance in the L</guestfs_launch> function."
4051 msgstr ""
4052
4053 #. type: textblock
4054 #: ../src/guestfs.pod:2118
4055 msgid ""
4056 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4057 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4058 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4059 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4060 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4061 "attached to the qemu process which translates device access by the "
4062 "appliance's Linux kernel into accesses to the image."
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../src/guestfs.pod:2127
4067 msgid ""
4068 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4069 "Although the disk image you are attached to might also be used by some "
4070 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4071 "care if both libguestfs's qemu process and your virtual machine are trying "
4072 "to update the disk image at the same time, since these usually results in "
4073 "massive disk corruption)."
4074 msgstr ""
4075
4076 #. type: =head1
4077 #: ../src/guestfs.pod:2134
4078 msgid "STATE MACHINE"
4079 msgstr ""
4080
4081 #. type: textblock
4082 #: ../src/guestfs.pod:2136
4083 msgid "libguestfs uses a state machine to model the child process:"
4084 msgstr ""
4085
4086 #. type: verbatim
4087 #: ../src/guestfs.pod:2138
4088 #, no-wrap
4089 msgid ""
4090 "                         |\n"
4091 "                    guestfs_create\n"
4092 "                         |\n"
4093 "                         |\n"
4094 "                     ____V_____\n"
4095 "                    /          \\\n"
4096 "                    |  CONFIG  |\n"
4097 "                    \\__________/\n"
4098 "                     ^ ^   ^  \\\n"
4099 "                    /  |    \\  \\ guestfs_launch\n"
4100 "                   /   |    _\\__V______\n"
4101 "                  /    |   /           \\\n"
4102 "                 /     |   | LAUNCHING |\n"
4103 "                /      |   \\___________/\n"
4104 "               /       |       /\n"
4105 "              /        |  guestfs_launch\n"
4106 "             /         |     /\n"
4107 "    ______  /        __|____V\n"
4108 "   /      \\ ------> /        \\\n"
4109 "   | BUSY |         | READY  |\n"
4110 "   \\______/ <------ \\________/\n"
4111 "\n"
4112 msgstr ""
4113
4114 #. type: textblock
4115 #: ../src/guestfs.pod:2160
4116 msgid ""
4117 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4118 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4119 "(3) alternating between READY and BUSY as commands are issued to, and "
4120 "carried out by, the child process."
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../src/guestfs.pod:2165
4125 msgid ""
4126 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4127 "asynchronously at any time (eg. due to some internal error), and that causes "
4128 "the state to transition back to CONFIG."
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../src/guestfs.pod:2169
4133 msgid ""
4134 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4135 "issued when in the CONFIG state."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../src/guestfs.pod:2172
4140 msgid ""
4141 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4142 "L</guestfs_launch> blocks until the child process is READY to accept "
4143 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4144 "moves the state from CONFIG to LAUNCHING while it is running."
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../src/guestfs.pod:2178
4149 msgid ""
4150 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4151 "state.  These API calls block waiting for the command to be carried out "
4152 "(ie. the state to transition to BUSY and then back to READY).  There are no "
4153 "non-blocking versions, and no way to issue more than one command per handle "
4154 "at the same time."
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../src/guestfs.pod:2184
4159 msgid ""
4160 "Finally, the child process sends asynchronous messages back to the main "
4161 "program, such as kernel log messages.  You can register a callback to "
4162 "receive these messages."
4163 msgstr ""
4164
4165 #. type: =head1
4166 #: ../src/guestfs.pod:2188
4167 msgid "INTERNALS"
4168 msgstr ""
4169
4170 #. type: =head2
4171 #: ../src/guestfs.pod:2190
4172 msgid "COMMUNICATION PROTOCOL"
4173 msgstr ""
4174
4175 #. type: textblock
4176 #: ../src/guestfs.pod:2192
4177 msgid ""
4178 "Don't rely on using this protocol directly.  This section documents how it "
4179 "currently works, but it may change at any time."
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../src/guestfs.pod:2195
4184 msgid ""
4185 "The protocol used to talk between the library and the daemon running inside "
4186 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4187 "1014, RFC 1832, RFC 4506)."
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../src/guestfs.pod:2199
4192 msgid ""
4193 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4194 "this file is automatically generated)."
4195 msgstr ""
4196
4197 #. type: textblock
4198 #: ../src/guestfs.pod:2202
4199 msgid ""
4200 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4201 "and C<FileOut> parameters, which are handled with very simple request/reply "
4202 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4203 "parameters, which use the same request and reply messages, but they may also "
4204 "be followed by files sent using a chunked encoding."
4205 msgstr ""
4206
4207 #. type: =head3
4208 #: ../src/guestfs.pod:2209
4209 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../src/guestfs.pod:2211
4214 msgid "For ordinary functions, the request message is:"
4215 msgstr ""
4216
4217 #. type: verbatim
4218 #: ../src/guestfs.pod:2213
4219 #, no-wrap
4220 msgid ""
4221 " total length (header + arguments,\n"
4222 "      but not including the length word itself)\n"
4223 " struct guestfs_message_header (encoded as XDR)\n"
4224 " struct guestfs_<foo>_args (encoded as XDR)\n"
4225 "\n"
4226 msgstr ""
4227
4228 #. type: textblock
4229 #: ../src/guestfs.pod:2218
4230 msgid ""
4231 "The total length field allows the daemon to allocate a fixed size buffer "
4232 "into which it slurps the rest of the message.  As a result, the total length "
4233 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4234 "effective size of any request is limited to somewhere under this size."
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../src/guestfs.pod:2224
4239 msgid ""
4240 "Note also that many functions don't take any arguments, in which case the "
4241 "C<guestfs_I<foo>_args> is completely omitted."
4242 msgstr ""
4243
4244 #. type: textblock
4245 #: ../src/guestfs.pod:2227
4246 msgid ""
4247 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4248 "receiver knows what type of args structure to expect, or none at all."
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../src/guestfs.pod:2231
4253 msgid ""
4254 "For functions that take optional arguments, the optional arguments are "
4255 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4256 "arguments.  A bitmask in the header indicates which optional arguments are "
4257 "meaningful.  The bitmask is also checked to see if it contains bits set "
4258 "which the daemon does not know about (eg. if more optional arguments were "
4259 "added in a later version of the library), and this causes the call to be "
4260 "rejected."
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../src/guestfs.pod:2239
4265 msgid "The reply message for ordinary functions is:"
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../src/guestfs.pod:2241
4270 #, no-wrap
4271 msgid ""
4272 " total length (header + ret,\n"
4273 "      but not including the length word itself)\n"
4274 " struct guestfs_message_header (encoded as XDR)\n"
4275 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4276 "\n"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../src/guestfs.pod:2246
4281 msgid ""
4282 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4283 "functions that return no formal return values."
4284 msgstr ""
4285
4286 #. type: textblock
4287 #: ../src/guestfs.pod:2249
4288 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4289 msgstr ""
4290
4291 #. type: textblock
4292 #: ../src/guestfs.pod:2252
4293 msgid ""
4294 "In the case of an error, a flag is set in the header, and the reply message "
4295 "is slightly changed:"
4296 msgstr ""
4297
4298 #. type: verbatim
4299 #: ../src/guestfs.pod:2255
4300 #, no-wrap
4301 msgid ""
4302 " total length (header + error,\n"
4303 "      but not including the length word itself)\n"
4304 " struct guestfs_message_header (encoded as XDR)\n"
4305 " struct guestfs_message_error (encoded as XDR)\n"
4306 "\n"
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../src/guestfs.pod:2260
4311 msgid ""
4312 "The C<guestfs_message_error> structure contains the error message as a "
4313 "string."
4314 msgstr ""
4315
4316 #. type: =head3
4317 #: ../src/guestfs.pod:2263
4318 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4319 msgstr ""
4320
4321 #. type: textblock
4322 #: ../src/guestfs.pod:2265
4323 msgid ""
4324 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4325 "The normal request message is sent (see above).  However this is followed by "
4326 "a sequence of file chunks."
4327 msgstr ""
4328
4329 #. type: verbatim
4330 #: ../src/guestfs.pod:2269
4331 #, no-wrap
4332 msgid ""
4333 " total length (header + arguments,\n"
4334 "      but not including the length word itself,\n"
4335 "      and not including the chunks)\n"
4336 " struct guestfs_message_header (encoded as XDR)\n"
4337 " struct guestfs_<foo>_args (encoded as XDR)\n"
4338 " sequence of chunks for FileIn param #0\n"
4339 " sequence of chunks for FileIn param #1 etc.\n"
4340 "\n"
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../src/guestfs.pod:2277
4345 msgid "The \"sequence of chunks\" is:"
4346 msgstr ""
4347
4348 #. type: verbatim
4349 #: ../src/guestfs.pod:2279
4350 #, no-wrap
4351 msgid ""
4352 " length of chunk (not including length word itself)\n"
4353 " struct guestfs_chunk (encoded as XDR)\n"
4354 " length of chunk\n"
4355 " struct guestfs_chunk (encoded as XDR)\n"
4356 "   ...\n"
4357 " length of chunk\n"
4358 " struct guestfs_chunk (with data.data_len == 0)\n"
4359 "\n"
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../src/guestfs.pod:2287
4364 msgid ""
4365 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4366 "is set in the final chunk to indicate either successful completion or early "
4367 "cancellation."
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../src/guestfs.pod:2291
4372 msgid ""
4373 "At time of writing there are no functions that have more than one FileIn "
4374 "parameter.  However this is (theoretically) supported, by sending the "
4375 "sequence of chunks for each FileIn parameter one after another (from left to "
4376 "right)."
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../src/guestfs.pod:2296
4381 msgid ""
4382 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4383 "transfer.  The library does this by sending a chunk with a special flag set "
4384 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4385 "RPC, does I<not> send any reply, and goes back to reading the next request."
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../src/guestfs.pod:2302
4390 msgid ""
4391 "The daemon may also cancel.  It does this by writing a special word "
4392 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4393 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4394 "cancel chunk).  The special word is chosen so that even if cancellation "
4395 "happens right at the end of the transfer (after the library has finished "
4396 "writing and has started listening for the reply), the \"spurious\" cancel "
4397 "flag will not be confused with the reply message."
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../src/guestfs.pod:2311
4402 msgid ""
4403 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4404 "limit), and also files where the size is not known in advance (eg. from "
4405 "pipes or sockets).  However the chunks are rather small "
4406 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4407 "to keep much in memory."
4408 msgstr ""
4409
4410 #. type: =head3
4411 #: ../src/guestfs.pod:2317
4412 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4413 msgstr ""
4414
4415 #. type: textblock
4416 #: ../src/guestfs.pod:2319
4417 msgid ""
4418 "The protocol for FileOut parameters is exactly the same as for FileIn "
4419 "parameters, but with the roles of daemon and library reversed."
4420 msgstr ""
4421
4422 #. type: verbatim
4423 #: ../src/guestfs.pod:2322
4424 #, no-wrap
4425 msgid ""
4426 " total length (header + ret,\n"
4427 "      but not including the length word itself,\n"
4428 "      and not including the chunks)\n"
4429 " struct guestfs_message_header (encoded as XDR)\n"
4430 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4431 " sequence of chunks for FileOut param #0\n"
4432 " sequence of chunks for FileOut param #1 etc.\n"
4433 "\n"
4434 msgstr ""
4435
4436 #. type: =head3
4437 #: ../src/guestfs.pod:2330
4438 msgid "INITIAL MESSAGE"
4439 msgstr ""
4440
4441 #. type: textblock
4442 #: ../src/guestfs.pod:2332
4443 msgid ""
4444 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4445 "which indicates that the guest and daemon is alive.  This is what "
4446 "L</guestfs_launch> waits for."
4447 msgstr ""
4448
4449 #. type: =head3
4450 #: ../src/guestfs.pod:2336
4451 msgid "PROGRESS NOTIFICATION MESSAGES"
4452 msgstr ""
4453
4454 #. type: textblock
4455 #: ../src/guestfs.pod:2338
4456 msgid ""
4457 "The daemon may send progress notification messages at any time.  These are "
4458 "distinguished by the normal length word being replaced by "
4459 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../src/guestfs.pod:2342
4464 msgid ""
4465 "The library turns them into progress callbacks (see "
4466 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
4467 "them if not."
4468 msgstr ""
4469
4470 #. type: textblock
4471 #: ../src/guestfs.pod:2346
4472 msgid ""
4473 "The daemon self-limits the frequency of progress messages it sends (see "
4474 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4475 "messages."
4476 msgstr ""
4477
4478 #. type: =head1
4479 #: ../src/guestfs.pod:2350
4480 msgid "LIBGUESTFS VERSION NUMBERS"
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../src/guestfs.pod:2352
4485 msgid ""
4486 "Since April 2010, libguestfs has started to make separate development and "
4487 "stable releases, along with corresponding branches in our git repository.  "
4488 "These separate releases can be identified by version number:"
4489 msgstr ""
4490
4491 #. type: verbatim
4492 #: ../src/guestfs.pod:2357
4493 #, no-wrap
4494 msgid ""
4495 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4496 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4497 "       |\n"
4498 "       v\n"
4499 " 1  .  3  .  5\n"
4500 " ^           ^\n"
4501 " |           |\n"
4502 " |           `-------- sub-version\n"
4503 " |\n"
4504 " `------ always '1' because we don't change the ABI\n"
4505 "\n"
4506 msgstr ""
4507
4508 #. type: textblock
4509 #: ../src/guestfs.pod:2368
4510 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4511 msgstr ""
4512
4513 #. type: textblock
4514 #: ../src/guestfs.pod:2370
4515 msgid ""
4516 "As time passes we cherry pick fixes from the development branch and backport "
4517 "those into the stable branch, the effect being that the stable branch should "
4518 "get more stable and less buggy over time.  So the stable releases are ideal "
4519 "for people who don't need new features but would just like the software to "
4520 "work."
4521 msgstr ""
4522
4523 #. type: textblock
4524 #: ../src/guestfs.pod:2376
4525 msgid "Our criteria for backporting changes are:"
4526 msgstr ""
4527
4528 #. type: textblock
4529 #: ../src/guestfs.pod:2382
4530 msgid ""
4531 "Documentation changes which don't affect any code are backported unless the "
4532 "documentation refers to a future feature which is not in stable."
4533 msgstr ""
4534
4535 #. type: textblock
4536 #: ../src/guestfs.pod:2388
4537 msgid ""
4538 "Bug fixes which are not controversial, fix obvious problems, and have been "
4539 "well tested are backported."
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../src/guestfs.pod:2393
4544 msgid ""
4545 "Simple rearrangements of code which shouldn't affect how it works get "
4546 "backported.  This is so that the code in the two branches doesn't get too "
4547 "far out of step, allowing us to backport future fixes more easily."
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../src/guestfs.pod:2399
4552 msgid ""
4553 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4554 "exceptional case: the new feature is required in order to implement an "
4555 "important bug fix."
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../src/guestfs.pod:2405
4560 msgid ""
4561 "A new stable branch starts when we think the new features in development are "
4562 "substantial and compelling enough over the current stable branch to warrant "
4563 "it.  When that happens we create new stable and development versions 1.N.0 "
4564 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4565 "stable at this point, but by backporting fixes from development, that branch "
4566 "will stabilize over time."
4567 msgstr ""
4568
4569 #. type: =head1
4570 #: ../src/guestfs.pod:2413
4571 msgid "EXTENDING LIBGUESTFS"
4572 msgstr ""
4573
4574 #. type: =head2
4575 #: ../src/guestfs.pod:2415
4576 msgid "ADDING A NEW API ACTION"
4577 msgstr ""
4578
4579 #. type: textblock
4580 #: ../src/guestfs.pod:2417
4581 msgid ""
4582 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4583 "documentation) are generated, and this makes it easy to extend the "
4584 "libguestfs API."
4585 msgstr ""
4586
4587 #. type: textblock
4588 #: ../src/guestfs.pod:2421
4589 msgid "To add a new API action there are two changes:"
4590 msgstr ""
4591
4592 #. type: textblock
4593 #: ../src/guestfs.pod:2427
4594 msgid ""
4595 "You need to add a description of the call (name, parameters, return type, "
4596 "tests, documentation) to C<generator/generator_actions.ml>."
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../src/guestfs.pod:2430
4601 msgid ""
4602 "There are two sorts of API action, depending on whether the call goes "
4603 "through to the daemon in the appliance, or is serviced entirely by the "
4604 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4605 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4606 "an example of the latter, since a trace flag is maintained in the handle and "
4607 "all tracing is done on the library side."
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../src/guestfs.pod:2438
4612 msgid ""
4613 "Most new actions are of the first type, and get added to the "
4614 "C<daemon_functions> list.  Each function has a unique procedure number used "
4615 "in the RPC protocol which is assigned to that action when we publish "
4616 "libguestfs and cannot be reused.  Take the latest procedure number and "
4617 "increment it."
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../src/guestfs.pod:2444
4622 msgid ""
4623 "For library-only actions of the second type, add to the "
4624 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4625 "library and do not travel over the RPC mechanism to the daemon, these "
4626 "functions do not need a procedure number, and so the procedure number is set "
4627 "to C<-1>."
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../src/guestfs.pod:2452
4632 msgid "Implement the action (in C):"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../src/guestfs.pod:2454
4637 msgid ""
4638 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4639 "C<daemon/> directory."
4640 msgstr ""
4641
4642 #. type: textblock
4643 #: ../src/guestfs.pod:2457
4644 msgid ""
4645 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4646 "(note: double underscore) in the C<src/> directory."
4647 msgstr ""
4648
4649 #. type: textblock
4650 #: ../src/guestfs.pod:2460
4651 msgid "In either case, use another function as an example of what to do."
4652 msgstr ""
4653
4654 #. type: textblock
4655 #: ../src/guestfs.pod:2464
4656 msgid "After making these changes, use C<make> to compile."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../src/guestfs.pod:2466
4661 msgid ""
4662 "Note that you don't need to implement the RPC, language bindings, manual "
4663 "pages or anything else.  It's all automatically generated from the OCaml "
4664 "description."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../src/guestfs.pod:2470
4669 msgid "ADDING TESTS FOR AN API ACTION"
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../src/guestfs.pod:2472
4674 msgid ""
4675 "You can supply zero or as many tests as you want per API call.  The tests "
4676 "can either be added as part of the API description "
4677 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
4678 "drop a script into C<regressions/>.  Note that adding a script to "
4679 "C<regressions/> is slower, so if possible use the first method."
4680 msgstr ""
4681
4682 #. type: textblock
4683 #: ../src/guestfs.pod:2478
4684 msgid ""
4685 "The following describes the test environment used when you add an API test "
4686 "in C<generator_actions.ml>."
4687 msgstr ""
4688
4689 #. type: textblock
4690 #: ../src/guestfs.pod:2481
4691 msgid "The test environment has 4 block devices:"
4692 msgstr ""
4693
4694 #. type: =item
4695 #: ../src/guestfs.pod:2485
4696 msgid "C</dev/sda> 500MB"
4697 msgstr ""
4698
4699 #. type: textblock
4700 #: ../src/guestfs.pod:2487
4701 msgid "General block device for testing."
4702 msgstr ""
4703
4704 #. type: =item
4705 #: ../src/guestfs.pod:2489
4706 msgid "C</dev/sdb> 50MB"
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2491
4711 msgid ""
4712 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4713 "operations."
4714 msgstr ""
4715
4716 #. type: =item
4717 #: ../src/guestfs.pod:2494
4718 msgid "C</dev/sdc> 10MB"
4719 msgstr ""
4720
4721 #. type: textblock
4722 #: ../src/guestfs.pod:2496
4723 msgid "Used in a few tests where two block devices are needed."
4724 msgstr ""
4725
4726 #. type: =item
4727 #: ../src/guestfs.pod:2498
4728 msgid "C</dev/sdd>"
4729 msgstr ""
4730
4731 #. type: textblock
4732 #: ../src/guestfs.pod:2500
4733 msgid "ISO with fixed content (see C<images/test.iso>)."
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../src/guestfs.pod:2504
4738 msgid ""
4739 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4740 "appliance and block devices are reused between tests.  So don't try testing "
4741 "L</guestfs_kill_subprocess> :-x"
4742 msgstr ""
4743
4744 #. type: textblock
4745 #: ../src/guestfs.pod:2508
4746 msgid ""
4747 "Each test starts with an initial scenario, selected using one of the "
4748 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4749 "initialize the disks mentioned above in a particular way as documented in "
4750 "C<generator_types.ml>.  You should not assume anything about the previous "
4751 "contents of other disks that are not initialized."
4752 msgstr ""
4753
4754 #. type: textblock
4755 #: ../src/guestfs.pod:2514
4756 msgid ""
4757 "You can add a prerequisite clause to any individual test.  This is a "
4758 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
4759 "if testing a command which might not work on all variations of libguestfs "
4760 "builds.  A test that has prerequisite of C<Always> means to run "
4761 "unconditionally."
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../src/guestfs.pod:2520
4766 msgid ""
4767 "In addition, packagers can skip individual tests by setting environment "
4768 "variables before running C<make check>."
4769 msgstr ""
4770
4771 #. type: verbatim
4772 #: ../src/guestfs.pod:2523
4773 #, no-wrap
4774 msgid ""
4775 " SKIP_TEST_<CMD>_<NUM>=1\n"
4776 "\n"
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../src/guestfs.pod:2525
4781 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../src/guestfs.pod:2527
4786 msgid "or:"
4787 msgstr ""
4788
4789 #. type: verbatim
4790 #: ../src/guestfs.pod:2529
4791 #, no-wrap
4792 msgid ""
4793 " SKIP_TEST_<CMD>=1\n"
4794 "\n"
4795 msgstr ""
4796
4797 #. type: textblock
4798 #: ../src/guestfs.pod:2531
4799 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../src/guestfs.pod:2533
4804 msgid "Packagers can run only certain tests by setting for example:"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../src/guestfs.pod:2535
4809 #, no-wrap
4810 msgid ""
4811 " TEST_ONLY=\"vfs_type zerofree\"\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: textblock
4816 #: ../src/guestfs.pod:2537
4817 msgid ""
4818 "See C<capitests/tests.c> for more details of how these environment variables "
4819 "work."
4820 msgstr ""
4821
4822 #. type: =head2
4823 #: ../src/guestfs.pod:2540
4824 msgid "DEBUGGING NEW API ACTIONS"
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../src/guestfs.pod:2542
4829 msgid "Test new actions work before submitting them."
4830 msgstr ""
4831
4832 #. type: textblock
4833 #: ../src/guestfs.pod:2544
4834 msgid "You can use guestfish to try out new commands."
4835 msgstr ""
4836
4837 #. type: textblock
4838 #: ../src/guestfs.pod:2546
4839 msgid ""
4840 "Debugging the daemon is a problem because it runs inside a minimal "
4841 "environment.  However you can fprintf messages in the daemon to stderr, and "
4842 "they will show up if you use C<guestfish -v>."
4843 msgstr ""
4844
4845 #. type: =head2
4846 #: ../src/guestfs.pod:2550
4847 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4848 msgstr ""
4849
4850 #. type: textblock
4851 #: ../src/guestfs.pod:2552
4852 msgid ""
4853 "Our C source code generally adheres to some basic code-formatting "
4854 "conventions.  The existing code base is not totally consistent on this "
4855 "front, but we do prefer that contributed code be formatted similarly.  In "
4856 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4857 "indentation level, and other than that, follow the K&R style."
4858 msgstr ""
4859
4860 #. type: textblock
4861 #: ../src/guestfs.pod:2558
4862 msgid ""
4863 "If you use Emacs, add the following to one of one of your start-up files "
4864 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../src/guestfs.pod:2561
4869 #, no-wrap
4870 msgid ""
4871 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4872 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4873 " (add-hook 'find-file-hook\n"
4874 "     '(lambda () (if (and buffer-file-name\n"
4875 "                          (string-match \"/libguestfs\\\\>\"\n"
4876 "                              (buffer-file-name))\n"
4877 "                          (not (string-equal mode-name \"Change Log\"))\n"
4878 "                          (not (string-equal mode-name \"Makefile\")))\n"
4879 "                     (setq indent-tabs-mode nil))))\n"
4880 " \n"
4881 msgstr ""
4882
4883 #. type: verbatim
4884 #: ../src/guestfs.pod:2571
4885 #, no-wrap
4886 msgid ""
4887 " ;;; When editing C sources in libguestfs, use this style.\n"
4888 " (defun libguestfs-c-mode ()\n"
4889 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4890 "   (interactive)\n"
4891 "   (c-set-style \"K&R\")\n"
4892 "   (setq c-indent-level 2)\n"
4893 "   (setq c-basic-offset 2))\n"
4894 " (add-hook 'c-mode-hook\n"
4895 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4896 "                               (buffer-file-name))\n"
4897 "                           (libguestfs-c-mode))))\n"
4898 "\n"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../src/guestfs.pod:2583
4903 msgid "Enable warnings when compiling (and fix any problems this finds):"
4904 msgstr ""
4905
4906 #. type: verbatim
4907 #: ../src/guestfs.pod:2586
4908 #, no-wrap
4909 msgid ""
4910 " ./configure --enable-gcc-warnings\n"
4911 "\n"
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../src/guestfs.pod:2588
4916 msgid "Useful targets are:"
4917 msgstr ""
4918
4919 #. type: verbatim
4920 #: ../src/guestfs.pod:2590
4921 #, no-wrap
4922 msgid ""
4923 " make syntax-check  # checks the syntax of the C code\n"
4924 " make check         # runs the test suite\n"
4925 "\n"
4926 msgstr ""
4927
4928 #. type: =head2
4929 #: ../src/guestfs.pod:2593
4930 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4931 msgstr ""
4932
4933 #. type: textblock
4934 #: ../src/guestfs.pod:2595
4935 msgid ""
4936 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4937 "which are used to do shell quoting."
4938 msgstr ""
4939
4940 #. type: =item
4941 #: ../src/guestfs.pod:2600
4942 msgid "%Q"
4943 msgstr ""
4944
4945 #. type: textblock
4946 #: ../src/guestfs.pod:2602
4947 msgid ""
4948 "Simple shell quoted string.  Any spaces or other shell characters are "
4949 "escaped for you."
4950 msgstr ""
4951
4952 #. type: =item
4953 #: ../src/guestfs.pod:2605
4954 msgid "%R"
4955 msgstr ""
4956
4957 #. type: textblock
4958 #: ../src/guestfs.pod:2607
4959 msgid ""
4960 "Same as C<%Q> except the string is treated as a path which is prefixed by "
4961 "the sysroot."
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../src/guestfs.pod:2612 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
4966 msgid "For example:"
4967 msgstr ""
4968
4969 #. type: verbatim
4970 #: ../src/guestfs.pod:2614
4971 #, no-wrap
4972 msgid ""
4973 " asprintf (&cmd, \"cat %R\", path);\n"
4974 "\n"
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../src/guestfs.pod:2616
4979 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../src/guestfs.pod:2618
4984 msgid ""
4985 "I<Note:> Do I<not> use these when you are passing parameters to the "
4986 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
4987 "because they are not passed via the shell (instead, straight to exec).  You "
4988 "probably want to use the C<sysroot_path()> function however."
4989 msgstr ""
4990
4991 #. type: =head2
4992 #: ../src/guestfs.pod:2624
4993 msgid "SUBMITTING YOUR NEW API ACTIONS"
4994 msgstr ""
4995
4996 #. type: textblock
4997 #: ../src/guestfs.pod:2626
4998 msgid ""
4999 "Submit patches to the mailing list: "
5000 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
5001 "L<rjones@redhat.com>."
5002 msgstr ""
5003
5004 #. type: =head2
5005 #: ../src/guestfs.pod:2630
5006 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../src/guestfs.pod:2632
5011 msgid "We support i18n (gettext anyhow) in the library."
5012 msgstr ""
5013
5014 #. type: textblock
5015 #: ../src/guestfs.pod:2634
5016 msgid ""
5017 "However many messages come from the daemon, and we don't translate those at "
5018 "the moment.  One reason is that the appliance generally has all locale files "
5019 "removed from it, because they take up a lot of space.  So we'd have to readd "
5020 "some of those, as well as copying our PO files into the appliance."
5021 msgstr ""
5022
5023 #. type: textblock
5024 #: ../src/guestfs.pod:2640
5025 msgid ""
5026 "Debugging messages are never translated, since they are intended for the "
5027 "programmers."
5028 msgstr ""
5029
5030 #. type: =head2
5031 #: ../src/guestfs.pod:2643
5032 msgid "SOURCE CODE SUBDIRECTORIES"
5033 msgstr ""
5034
5035 #. type: =item
5036 #: ../src/guestfs.pod:2647 ../src/guestfs-actions.pod:5814 ../fish/guestfish-actions.pod:3908
5037 msgid "C<appliance>"
5038 msgstr ""
5039
5040 #. type: textblock
5041 #: ../src/guestfs.pod:2649
5042 msgid "The libguestfs appliance, build scripts and so on."
5043 msgstr ""
5044
5045 #. type: =item
5046 #: ../src/guestfs.pod:2651
5047 msgid "C<capitests>"
5048 msgstr ""
5049
5050 #. type: textblock
5051 #: ../src/guestfs.pod:2653
5052 msgid "Automated tests of the C API."
5053 msgstr ""
5054
5055 #. type: =item
5056 #: ../src/guestfs.pod:2655
5057 msgid "C<cat>"
5058 msgstr ""
5059
5060 #. type: textblock
5061 #: ../src/guestfs.pod:2657
5062 msgid ""
5063 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5064 "documentation."
5065 msgstr ""
5066
5067 #. type: =item
5068 #: ../src/guestfs.pod:2660
5069 msgid "C<contrib>"
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../src/guestfs.pod:2662
5074 msgid "Outside contributions, experimental parts."
5075 msgstr ""
5076
5077 #. type: =item
5078 #: ../src/guestfs.pod:2664
5079 msgid "C<daemon>"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../src/guestfs.pod:2666
5084 msgid ""
5085 "The daemon that runs inside the libguestfs appliance and carries out "
5086 "actions."
5087 msgstr ""
5088
5089 #. type: =item
5090 #: ../src/guestfs.pod:2669
5091 msgid "C<df>"
5092 msgstr ""
5093
5094 #. type: textblock
5095 #: ../src/guestfs.pod:2671
5096 msgid "L<virt-df(1)> command and documentation."
5097 msgstr ""
5098
5099 #. type: =item
5100 #: ../src/guestfs.pod:2673
5101 msgid "C<examples>"
5102 msgstr ""
5103
5104 #. type: textblock
5105 #: ../src/guestfs.pod:2675
5106 msgid "C API example code."
5107 msgstr ""
5108
5109 #. type: =item
5110 #: ../src/guestfs.pod:2677
5111 msgid "C<fish>"
5112 msgstr ""
5113
5114 #. type: textblock
5115 #: ../src/guestfs.pod:2679
5116 msgid ""
5117 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5118 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5119 "L<virt-tar-out(1)>."
5120 msgstr ""
5121
5122 #. type: =item
5123 #: ../src/guestfs.pod:2683
5124 msgid "C<fuse>"
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../src/guestfs.pod:2685
5129 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5130 msgstr ""
5131
5132 #. type: =item
5133 #: ../src/guestfs.pod:2687
5134 msgid "C<generator>"
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../src/guestfs.pod:2689
5139 msgid ""
5140 "The crucially important generator, used to automatically generate large "
5141 "amounts of boilerplate C code for things like RPC and bindings."
5142 msgstr ""
5143
5144 #. type: =item
5145 #: ../src/guestfs.pod:2692
5146 msgid "C<images>"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../src/guestfs.pod:2694
5151 msgid "Files used by the test suite."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../src/guestfs.pod:2696
5156 msgid "Some \"phony\" guest images which we test against."
5157 msgstr ""
5158
5159 #. type: =item
5160 #: ../src/guestfs.pod:2698
5161 msgid "C<inspector>"
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../src/guestfs.pod:2700
5166 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5167 msgstr ""
5168
5169 #. type: =item
5170 #: ../src/guestfs.pod:2702
5171 msgid "C<logo>"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2704
5176 msgid "Logo used on the website.  The fish is called Arthur by the way."
5177 msgstr ""
5178
5179 #. type: =item
5180 #: ../src/guestfs.pod:2706
5181 msgid "C<m4>"
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../src/guestfs.pod:2708
5186 msgid "M4 macros used by autoconf."
5187 msgstr ""
5188
5189 #. type: =item
5190 #: ../src/guestfs.pod:2710
5191 msgid "C<po>"
5192 msgstr ""
5193
5194 #. type: textblock
5195 #: ../src/guestfs.pod:2712
5196 msgid "Translations of simple gettext strings."
5197 msgstr ""
5198
5199 #. type: =item
5200 #: ../src/guestfs.pod:2714
5201 msgid "C<po-docs>"
5202 msgstr ""
5203
5204 #. type: textblock
5205 #: ../src/guestfs.pod:2716
5206 msgid ""
5207 "The build infrastructure and PO files for translations of manpages and POD "
5208 "files.  Eventually this will be combined with the C<po> directory, but that "
5209 "is rather complicated."
5210 msgstr ""
5211
5212 #. type: =item
5213 #: ../src/guestfs.pod:2720
5214 msgid "C<regressions>"
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../src/guestfs.pod:2722
5219 msgid "Regression tests."
5220 msgstr ""
5221
5222 #. type: =item
5223 #: ../src/guestfs.pod:2724
5224 msgid "C<rescue>"
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../src/guestfs.pod:2726
5229 msgid "L<virt-rescue(1)> command and documentation."
5230 msgstr ""
5231
5232 #. type: =item
5233 #: ../src/guestfs.pod:2728
5234 msgid "C<src>"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../src/guestfs.pod:2730
5239 msgid "Source code to the C library."
5240 msgstr ""
5241
5242 #. type: =item
5243 #: ../src/guestfs.pod:2732
5244 msgid "C<tools>"
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../src/guestfs.pod:2734
5249 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5250 msgstr ""
5251
5252 #. type: =item
5253 #: ../src/guestfs.pod:2736
5254 msgid "C<test-tool>"
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../src/guestfs.pod:2738
5259 msgid ""
5260 "Test tool for end users to test if their qemu/kernel combination will work "
5261 "with libguestfs."
5262 msgstr ""
5263
5264 #. type: =item
5265 #: ../src/guestfs.pod:2741
5266 msgid "C<csharp>"
5267 msgstr ""
5268
5269 #. type: =item
5270 #: ../src/guestfs.pod:2743
5271 msgid "C<haskell>"
5272 msgstr ""
5273
5274 #. type: =item
5275 #: ../src/guestfs.pod:2745
5276 msgid "C<java>"
5277 msgstr ""
5278
5279 #. type: =item
5280 #: ../src/guestfs.pod:2747
5281 msgid "C<ocaml>"
5282 msgstr ""
5283
5284 #. type: =item
5285 #: ../src/guestfs.pod:2749
5286 msgid "C<php>"
5287 msgstr ""
5288
5289 #. type: =item
5290 #: ../src/guestfs.pod:2751
5291 msgid "C<perl>"
5292 msgstr ""
5293
5294 #. type: =item
5295 #: ../src/guestfs.pod:2753
5296 msgid "C<python>"
5297 msgstr ""
5298
5299 #. type: =item
5300 #: ../src/guestfs.pod:2755
5301 msgid "C<ruby>"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../src/guestfs.pod:2757
5306 msgid "Language bindings."
5307 msgstr ""
5308
5309 #. type: =head1
5310 #: ../src/guestfs.pod:2761
5311 msgid "LIMITS"
5312 msgstr ""
5313
5314 #. type: =head2
5315 #: ../src/guestfs.pod:2763
5316 msgid "PROTOCOL LIMITS"
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../src/guestfs.pod:2765
5321 msgid ""
5322 "Internally libguestfs uses a message-based protocol to pass API calls and "
5323 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5324 "plenty more detail about this).  The maximum message size used by the "
5325 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5326 "aware of this limit.  The API calls which may be affected are individually "
5327 "documented, with a link back to this section of the documentation."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../src/guestfs.pod:2773
5332 msgid ""
5333 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5334 "a simple string.  Because this string is at some point internally encoded as "
5335 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5336 "the requested file is larger than this then you will get an error."
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../src/guestfs.pod:2779
5341 msgid ""
5342 "In order to transfer large files into and out of the guest filesystem, you "
5343 "need to use particular calls that support this.  The sections L</UPLOADING> "
5344 "and L</DOWNLOADING> document how to do this."
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../src/guestfs.pod:2783
5349 msgid ""
5350 "You might also consider mounting the disk image using our FUSE filesystem "
5351 "support (L<guestmount(1)>)."
5352 msgstr ""
5353
5354 #. type: =head2
5355 #: ../src/guestfs.pod:2786
5356 msgid "MAXIMUM NUMBER OF DISKS"
5357 msgstr ""
5358
5359 #. type: textblock
5360 #: ../src/guestfs.pod:2788
5361 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2791
5366 msgid ""
5367 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5368 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5369 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5370 "purposes."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../src/guestfs.pod:2796
5375 msgid ""
5376 "We are working to substantially raise this limit in future versions but it "
5377 "requires complex changes to qemu."
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../src/guestfs.pod:2799
5382 msgid ""
5383 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5384 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5385 "requires changes to qemu."
5386 msgstr ""
5387
5388 #. type: =head2
5389 #: ../src/guestfs.pod:2803
5390 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5391 msgstr ""
5392
5393 #. type: textblock
5394 #: ../src/guestfs.pod:2805
5395 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../src/guestfs.pod:2807
5400 msgid ""
5401 "This is because it reserves 4 bits for the minor device number (thus "
5402 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
5403 msgstr ""
5404
5405 #. type: textblock
5406 #: ../src/guestfs.pod:2810
5407 msgid ""
5408 "If you attach a disk with more than 15 partitions, the extra partitions are "
5409 "ignored by libguestfs."
5410 msgstr ""
5411
5412 #. type: =head2
5413 #: ../src/guestfs.pod:2813
5414 msgid "MAXIMUM SIZE OF A DISK"
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../src/guestfs.pod:2815
5419 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../src/guestfs.pod:2817
5424 msgid ""
5425 "We have tested block devices up to 1 exabyte (2**60 or "
5426 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5427 "filesystem."
5428 msgstr ""
5429
5430 #. type: textblock
5431 #: ../src/guestfs.pod:2821
5432 msgid ""
5433 "Although libguestfs probably does not impose any limit, the underlying host "
5434 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5435 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5436 "TB).  If you store disk images as host logical volumes then you are limited "
5437 "by the maximum size of an LV."
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../src/guestfs.pod:2827
5442 msgid ""
5443 "For the hugest disk image files, we recommend using XFS on the host for "
5444 "storage."
5445 msgstr ""
5446
5447 #. type: =head2
5448 #: ../src/guestfs.pod:2830
5449 msgid "MAXIMUM SIZE OF A PARTITION"
5450 msgstr ""
5451
5452 #. type: textblock
5453 #: ../src/guestfs.pod:2832
5454 msgid ""
5455 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
5456 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
5457 "address a partition located beyond 2 TB on the disk."
5458 msgstr ""
5459
5460 #. type: textblock
5461 #: ../src/guestfs.pod:2836
5462 msgid ""
5463 "It is recommended that you use GPT partitions on disks which are larger than "
5464 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
5465 "which are theoretically larger than the largest disk we could support."
5466 msgstr ""
5467
5468 #. type: =head2
5469 #: ../src/guestfs.pod:2841
5470 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../src/guestfs.pod:2843
5475 msgid ""
5476 "This depends on the filesystem type.  libguestfs itself does not impose any "
5477 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
5478 "what these limits are."
5479 msgstr ""
5480
5481 #. type: =head2
5482 #: ../src/guestfs.pod:2847
5483 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
5484 msgstr ""
5485
5486 #. type: textblock
5487 #: ../src/guestfs.pod:2849
5488 msgid ""
5489 "The API functions L</guestfs_upload>, L</guestfs_download>, "
5490 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
5491 "uploads and downloads."
5492 msgstr ""
5493
5494 #. type: =head2
5495 #: ../src/guestfs.pod:2853
5496 msgid "INSPECTION LIMITS"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../src/guestfs.pod:2855
5501 msgid ""
5502 "The inspection code has several arbitrary limits on things like the size of "
5503 "Windows Registry hive it will read, and the length of product name.  These "
5504 "are intended to stop a malicious guest from consuming arbitrary amounts of "
5505 "memory and disk space on the host, and should not be reached in practice.  "
5506 "See the source code for more information."
5507 msgstr ""
5508
5509 #. type: =head1
5510 #: ../src/guestfs.pod:2861 ../fish/guestfish.pod:1015 ../test-tool/libguestfs-test-tool.pod:82 ../tools/virt-edit.pl:476
5511 msgid "ENVIRONMENT VARIABLES"
5512 msgstr ""
5513
5514 #. type: =item
5515 #: ../src/guestfs.pod:2865 ../fish/guestfish.pod:1041
5516 msgid "LIBGUESTFS_APPEND"
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../src/guestfs.pod:2867 ../fish/guestfish.pod:1043
5521 msgid "Pass additional options to the guest kernel."
5522 msgstr ""
5523
5524 #. type: =item
5525 #: ../src/guestfs.pod:2869 ../fish/guestfish.pod:1045
5526 msgid "LIBGUESTFS_DEBUG"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../src/guestfs.pod:2871
5531 msgid ""
5532 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5533 "effect as calling C<guestfs_set_verbose (g, 1)>."
5534 msgstr ""
5535
5536 #. type: =item
5537 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1050
5538 msgid "LIBGUESTFS_MEMSIZE"
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../src/guestfs.pod:2876 ../fish/guestfish.pod:1052
5543 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
5544 msgstr ""
5545
5546 #. type: verbatim
5547 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1055
5548 #, no-wrap
5549 msgid ""
5550 " LIBGUESTFS_MEMSIZE=700\n"
5551 "\n"
5552 msgstr ""
5553
5554 #. type: =item
5555 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1057
5556 msgid "LIBGUESTFS_PATH"
5557 msgstr ""
5558
5559 #. type: textblock
5560 #: ../src/guestfs.pod:2883
5561 msgid ""
5562 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5563 "the discussion of paths in section L</PATH> above."
5564 msgstr ""
5565
5566 #. type: =item
5567 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1062
5568 msgid "LIBGUESTFS_QEMU"
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../src/guestfs.pod:2888 ../fish/guestfish.pod:1064
5573 msgid ""
5574 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5575 "which was found at compile time by the configure script is used."
5576 msgstr ""
5577
5578 #. type: textblock
5579 #: ../src/guestfs.pod:2892
5580 msgid "See also L</QEMU WRAPPERS> above."
5581 msgstr ""
5582
5583 #. type: =item
5584 #: ../src/guestfs.pod:2894 ../fish/guestfish.pod:1068
5585 msgid "LIBGUESTFS_TRACE"
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../src/guestfs.pod:2896
5590 msgid ""
5591 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5592 "effect as calling C<guestfs_set_trace (g, 1)>."
5593 msgstr ""
5594
5595 #. type: =item
5596 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1077
5597 msgid "TMPDIR"
5598 msgstr ""
5599
5600 #. type: textblock
5601 #: ../src/guestfs.pod:2901 ../fish/guestfish.pod:1079
5602 msgid ""
5603 "Location of temporary directory, defaults to C</tmp> except for the cached "
5604 "supermin appliance which defaults to C</var/tmp>."
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1082
5609 msgid ""
5610 "If libguestfs was compiled to use the supermin appliance then the real "
5611 "appliance is cached in this directory, shared between all handles belonging "
5612 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5613 "use in case C</var/tmp> is not large enough."
5614 msgstr ""
5615
5616 #. type: =head1
5617 #: ../src/guestfs.pod:2912 ../fish/guestfish.pod:1149 ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:267 ../tools/virt-edit.pl:496 ../tools/virt-win-reg.pl:572 ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539 ../tools/virt-list-partitions.pl:257
5618 msgid "SEE ALSO"
5619 msgstr ""
5620
5621 #. type: textblock
5622 #: ../src/guestfs.pod:2914
5623 msgid ""
5624 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
5625 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
5626 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
5627 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
5628 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
5629 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
5630 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
5631 "L<http://libguestfs.org/>."
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../src/guestfs.pod:2941
5636 msgid ""
5637 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
5638 "L<lvm(8)>, L<disktype(1)>."
5639 msgstr ""
5640
5641 #. type: =head1
5642 #: ../src/guestfs.pod:2948 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:553
5643 msgid "BUGS"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../src/guestfs.pod:2950
5648 msgid "To get a list of bugs against libguestfs use this link:"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../src/guestfs.pod:2952
5653 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../src/guestfs.pod:2954
5658 msgid "To report a new bug against libguestfs use this link:"
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../src/guestfs.pod:2956
5663 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../src/guestfs.pod:2958
5668 msgid "When reporting a bug, please check:"
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../src/guestfs.pod:2964
5673 msgid "That the bug hasn't been reported already."
5674 msgstr ""
5675
5676 #. type: textblock
5677 #: ../src/guestfs.pod:2968
5678 msgid "That you are testing a recent version."
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../src/guestfs.pod:2972
5683 msgid "Describe the bug accurately, and give a way to reproduce it."
5684 msgstr ""
5685
5686 #. type: textblock
5687 #: ../src/guestfs.pod:2976
5688 msgid ""
5689 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5690 "bug report."
5691 msgstr ""
5692
5693 #. type: =head1
5694 #: ../src/guestfs.pod:2981 ../fish/guestfish.pod:1172 ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:278
5695 msgid "AUTHORS"
5696 msgstr ""
5697
5698 #. type: textblock
5699 #: ../src/guestfs.pod:2983 ../fish/guestfish.pod:1174 ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:280
5700 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5701 msgstr ""
5702
5703 #. type: =head1
5704 #: ../src/guestfs.pod:2985 ../fish/guestfish.pod:1176 ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:282 ../tools/virt-edit.pl:514 ../tools/virt-win-reg.pl:602 ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568 ../tools/virt-list-partitions.pl:273
5705 msgid "COPYRIGHT"
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../src/guestfs.pod:2987 ../fish/guestfish.pod:1178 ../test-tool/libguestfs-test-tool.pod:99
5710 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../src/guestfs.pod:2990
5715 msgid ""
5716 "This library is free software; you can redistribute it and/or modify it "
5717 "under the terms of the GNU Lesser General Public License as published by the "
5718 "Free Software Foundation; either version 2 of the License, or (at your "
5719 "option) any later version."
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../src/guestfs.pod:2995
5724 msgid ""
5725 "This library is distributed in the hope that it will be useful, but WITHOUT "
5726 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5727 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5728 "for more details."
5729 msgstr ""
5730
5731 #. type: textblock
5732 #: ../src/guestfs.pod:3000
5733 msgid ""
5734 "You should have received a copy of the GNU Lesser General Public License "
5735 "along with this library; if not, write to the Free Software Foundation, "
5736 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5737 msgstr ""
5738
5739 #. type: =head2
5740 #: ../src/guestfs-actions.pod:1
5741 msgid "guestfs_add_cdrom"
5742 msgstr ""
5743
5744 #. type: verbatim
5745 #: ../src/guestfs-actions.pod:3
5746 #, no-wrap
5747 msgid ""
5748 " int\n"
5749 " guestfs_add_cdrom (guestfs_h *g,\n"
5750 "                    const char *filename);\n"
5751 "\n"
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5756 msgid "This function adds a virtual CD-ROM disk image to the guest."
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5761 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../src/guestfs-actions.pod:17
5766 msgid ""
5767 "This call checks for the existence of C<filename>.  This stops you from "
5768 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5769 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5770 "instead."
5771 msgstr ""
5772
5773 #. type: textblock
5774 #: ../src/guestfs-actions.pod:24
5775 msgid ""
5776 "If you just want to add an ISO file (often you use this as an efficient way "
5777 "to transfer large files into the guest), then you should probably use "
5778 "C<guestfs_add_drive_ro> instead."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134 ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232 ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436 ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495 ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541 ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670 ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787 ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815 ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996 ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098 ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135 ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270 ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1477 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2410 ../src/guestfs-actions.pod:2471 ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:3459 ../src/guestfs-actions.pod:3474 ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3681 ../src/guestfs-actions.pod:3695 ../src/guestfs-actions.pod:3710 ../src/guestfs-actions.pod:3746 ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3838 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3878 ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3933 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4054 ../src/guestfs-actions.pod:4070 ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4098 ../src/guestfs-actions.pod:4115 ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4228 ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4292 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4404 ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:4482 ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:4624 ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:4653 ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4883 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4960 ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5223 ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5319 ../src/guestfs-actions.pod:5333 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:5710 ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:5740 ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5780 ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5829 ../src/guestfs-actions.pod:5845 ../src/guestfs-actions.pod:5868 ../src/guestfs-actions.pod:5886 ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5926 ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6014 ../src/guestfs-actions.pod:6033 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6076 ../src/guestfs-actions.pod:6091 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6147 ../src/guestfs-actions.pod:6170 ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6450 ../src/guestfs-actions.pod:6463 ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6524 ../src/guestfs-actions.pod:6539 ../src/guestfs-actions.pod:6598 ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:6647 ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6819 ../src/guestfs-actions.pod:6853 ../src/guestfs-actions.pod:6889 ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7040 ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7186 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7266 ../src/guestfs-actions.pod:7332 ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7380
5783 msgid "This function returns 0 on success or -1 on error."
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248 ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
5788 msgid ""
5789 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5790 "instead."
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251 ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1448 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7443 ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175 ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319 ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:3008 ../fish/guestfish-actions.pod:4866 ../fish/guestfish-actions.pod:4963
5795 msgid ""
5796 "Deprecated functions will not be removed from the API, but the fact that "
5797 "they are deprecated indicates that there are problems with correct use of "
5798 "these functions."
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136 ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6541 ../src/guestfs-actions.pod:6666 ../src/guestfs-actions.pod:7188
5803 msgid "(Added in 0.3)"
5804 msgstr ""
5805
5806 #. type: =head2
5807 #: ../src/guestfs-actions.pod:41
5808 msgid "guestfs_add_domain"
5809 msgstr ""
5810
5811 #. type: verbatim
5812 #: ../src/guestfs-actions.pod:43
5813 #, no-wrap
5814 msgid ""
5815 " int\n"
5816 " guestfs_add_domain (guestfs_h *g,\n"
5817 "                     const char *dom,\n"
5818 "                     ...);\n"
5819 "\n"
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145 ../src/guestfs-actions.pod:4443
5824 msgid ""
5825 "You may supply a list of optional arguments to this call.  Use zero or more "
5826 "of the following pairs of parameters, and terminate the list with C<-1> on "
5827 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5828 msgstr ""
5829
5830 #. type: verbatim
5831 #: ../src/guestfs-actions.pod:53
5832 #, no-wrap
5833 msgid ""
5834 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5835 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5836 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5837 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
5838 "\n"
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../src/guestfs-actions.pod:58
5843 msgid ""
5844 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5845 "It works by connecting to libvirt, requesting the domain and domain XML from "
5846 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5847 "one."
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
5852 msgid ""
5853 "The number of disks added is returned.  This operation is atomic: if an "
5854 "error is returned, then no disks are added."
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
5859 msgid ""
5860 "This function does some minimal checks to make sure the libvirt domain is "
5861 "not running (unless C<readonly> is true).  In a future version we will try "
5862 "to acquire the libvirt lock on each disk."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
5867 msgid ""
5868 "Disks must be accessible locally.  This often means that adding disks from a "
5869 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5870 "unless those disks are accessible via the same device path locally too."
5871 msgstr ""
5872
5873 #. type: textblock
5874 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
5875 msgid ""
5876 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5877 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5878 "default libvirt URI (or one set through an environment variable, see the "
5879 "libvirt documentation for full details)."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
5884 msgid ""
5885 "The optional C<live> flag controls whether this call will try to connect to "
5886 "a running virtual machine C<guestfsd> process if it sees a suitable "
5887 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5888 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5889 "DAEMONS> for more information."
5890 msgstr ""
5891
5892 #. type: textblock
5893 #: ../src/guestfs-actions.pod:88
5894 msgid ""
5895 "The other optional parameters are passed directly through to "
5896 "C<guestfs_add_drive_opts>."
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344 ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687 ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315 ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1877 ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2026 ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2104 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2801 ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4997 ../src/guestfs-actions.pod:5403 ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:6774 ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7225
5901 msgid "On error this function returns -1."
5902 msgstr ""
5903
5904 #. type: textblock
5905 #: ../src/guestfs-actions.pod:93
5906 msgid "(Added in 1.7.4)"
5907 msgstr ""
5908
5909 #. type: =head2
5910 #: ../src/guestfs-actions.pod:95
5911 msgid "guestfs_add_domain_va"
5912 msgstr ""
5913
5914 #. type: verbatim
5915 #: ../src/guestfs-actions.pod:97
5916 #, no-wrap
5917 msgid ""
5918 " int\n"
5919 " guestfs_add_domain_va (guestfs_h *g,\n"
5920 "                        const char *dom,\n"
5921 "                        va_list args);\n"
5922 "\n"
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../src/guestfs-actions.pod:102
5927 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5928 msgstr ""
5929
5930 #. type: textblock
5931 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115 ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219 ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4508
5932 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5933 msgstr ""
5934
5935 #. type: =head2
5936 #: ../src/guestfs-actions.pod:106
5937 msgid "guestfs_add_domain_argv"
5938 msgstr ""
5939
5940 #. type: verbatim
5941 #: ../src/guestfs-actions.pod:108
5942 #, no-wrap
5943 msgid ""
5944 " int\n"
5945 " guestfs_add_domain_argv (guestfs_h *g,\n"
5946 "                          const char *dom,\n"
5947 "                          const struct guestfs_add_domain_argv *optargs);\n"
5948 "\n"
5949 msgstr ""
5950
5951 #. type: textblock
5952 #: ../src/guestfs-actions.pod:113
5953 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
5954 msgstr ""
5955
5956 #. type: =head2
5957 #: ../src/guestfs-actions.pod:117
5958 msgid "guestfs_add_drive"
5959 msgstr ""
5960
5961 #. type: verbatim
5962 #: ../src/guestfs-actions.pod:119
5963 #, no-wrap
5964 msgid ""
5965 " int\n"
5966 " guestfs_add_drive (guestfs_h *g,\n"
5967 "                    const char *filename);\n"
5968 "\n"
5969 msgstr ""
5970
5971 #. type: textblock
5972 #: ../src/guestfs-actions.pod:123
5973 msgid ""
5974 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
5975 "optional parameters, so the disk is added writable, with the format being "
5976 "detected automatically."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../src/guestfs-actions.pod:127
5981 msgid ""
5982 "Automatic detection of the format opens you up to a potential security hole "
5983 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5984 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5985 "you should think about replacing calls to this function with calls to "
5986 "C<guestfs_add_drive_opts>, and specifying the format."
5987 msgstr ""
5988
5989 #. type: =head2
5990 #: ../src/guestfs-actions.pod:138
5991 msgid "guestfs_add_drive_opts"
5992 msgstr ""
5993
5994 #. type: verbatim
5995 #: ../src/guestfs-actions.pod:140
5996 #, no-wrap
5997 msgid ""
5998 " int\n"
5999 " guestfs_add_drive_opts (guestfs_h *g,\n"
6000 "                         const char *filename,\n"
6001 "                         ...);\n"
6002 "\n"
6003 msgstr ""
6004
6005 #. type: verbatim
6006 #: ../src/guestfs-actions.pod:150
6007 #, no-wrap
6008 msgid ""
6009 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6010 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6011 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6012 "\n"
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6017 msgid ""
6018 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6019 "The first time you call this function, the disk appears as C</dev/sda>, the "
6020 "second time as C</dev/sdb>, and so on."
6021 msgstr ""
6022
6023 #. type: textblock
6024 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6025 msgid ""
6026 "You don't necessarily need to be root when using libguestfs.  However you "
6027 "obviously do need sufficient permissions to access the filename for whatever "
6028 "operations you want to perform (ie. read access if you just want to read the "
6029 "image or write access if you want to modify the image)."
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6034 msgid "This call checks that C<filename> exists."
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:3019
6039 msgid "The optional arguments are:"
6040 msgstr ""
6041
6042 #. type: =item
6043 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6044 msgid "C<readonly>"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6049 msgid ""
6050 "If true then the image is treated as read-only.  Writes are still allowed, "
6051 "but they are stored in a temporary snapshot overlay which is discarded at "
6052 "the end.  The disk that you add is not modified."
6053 msgstr ""
6054
6055 #. type: =item
6056 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6057 msgid "C<format>"
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../src/guestfs-actions.pod:179
6062 msgid ""
6063 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6064 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6065 "Possible formats include C<raw> and C<qcow2>."
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6070 msgid ""
6071 "Automatic detection of the format opens you up to a potential security hole "
6072 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6073 "RHBZ#642934.  Specifying the format closes this security hole."
6074 msgstr ""
6075
6076 #. type: =item
6077 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6078 msgid "C<iface>"
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../src/guestfs-actions.pod:190
6083 msgid ""
6084 "This rarely-used option lets you emulate the behaviour of the deprecated "
6085 "C<guestfs_add_drive_with_if> call (q.v.)"
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../src/guestfs-actions.pod:197
6090 msgid "(Added in 1.5.23)"
6091 msgstr ""
6092
6093 #. type: =head2
6094 #: ../src/guestfs-actions.pod:199
6095 msgid "guestfs_add_drive_opts_va"
6096 msgstr ""
6097
6098 #. type: verbatim
6099 #: ../src/guestfs-actions.pod:201
6100 #, no-wrap
6101 msgid ""
6102 " int\n"
6103 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6104 "                            const char *filename,\n"
6105 "                            va_list args);\n"
6106 "\n"
6107 msgstr ""
6108
6109 #. type: textblock
6110 #: ../src/guestfs-actions.pod:206
6111 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6112 msgstr ""
6113
6114 #. type: =head2
6115 #: ../src/guestfs-actions.pod:210
6116 msgid "guestfs_add_drive_opts_argv"
6117 msgstr ""
6118
6119 #. type: verbatim
6120 #: ../src/guestfs-actions.pod:212
6121 #, no-wrap
6122 msgid ""
6123 " int\n"
6124 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6125 "                              const char *filename,\n"
6126 "                              const struct guestfs_add_drive_opts_argv "
6127 "*optargs);\n"
6128 "\n"
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../src/guestfs-actions.pod:217
6133 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6134 msgstr ""
6135
6136 #. type: =head2
6137 #: ../src/guestfs-actions.pod:221
6138 msgid "guestfs_add_drive_ro"
6139 msgstr ""
6140
6141 #. type: verbatim
6142 #: ../src/guestfs-actions.pod:223
6143 #, no-wrap
6144 msgid ""
6145 " int\n"
6146 " guestfs_add_drive_ro (guestfs_h *g,\n"
6147 "                       const char *filename);\n"
6148 "\n"
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../src/guestfs-actions.pod:227
6153 msgid ""
6154 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6155 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6156 "disk is added read-only, with the format being detected automatically."
6157 msgstr ""
6158
6159 #. type: textblock
6160 #: ../src/guestfs-actions.pod:234
6161 msgid "(Added in 1.0.38)"
6162 msgstr ""
6163
6164 #. type: =head2
6165 #: ../src/guestfs-actions.pod:236
6166 msgid "guestfs_add_drive_ro_with_if"
6167 msgstr ""
6168
6169 #. type: verbatim
6170 #: ../src/guestfs-actions.pod:238
6171 #, no-wrap
6172 msgid ""
6173 " int\n"
6174 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6175 "                               const char *filename,\n"
6176 "                               const char *iface);\n"
6177 "\n"
6178 msgstr ""
6179
6180 #. type: textblock
6181 #: ../src/guestfs-actions.pod:243
6182 msgid ""
6183 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6184 "QEMU interface emulation to use at run time."
6185 msgstr ""
6186
6187 #. type: textblock
6188 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276 ../src/guestfs-actions.pod:2356
6189 msgid "(Added in 1.0.84)"
6190 msgstr ""
6191
6192 #. type: =head2
6193 #: ../src/guestfs-actions.pod:257
6194 msgid "guestfs_add_drive_with_if"
6195 msgstr ""
6196
6197 #. type: verbatim
6198 #: ../src/guestfs-actions.pod:259
6199 #, no-wrap
6200 msgid ""
6201 " int\n"
6202 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6203 "                            const char *filename,\n"
6204 "                            const char *iface);\n"
6205 "\n"
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../src/guestfs-actions.pod:264
6210 msgid ""
6211 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6212 "QEMU interface emulation to use at run time."
6213 msgstr ""
6214
6215 #. type: =head2
6216 #: ../src/guestfs-actions.pod:278
6217 msgid "guestfs_aug_clear"
6218 msgstr ""
6219
6220 #. type: verbatim
6221 #: ../src/guestfs-actions.pod:280
6222 #, no-wrap
6223 msgid ""
6224 " int\n"
6225 " guestfs_aug_clear (guestfs_h *g,\n"
6226 "                    const char *augpath);\n"
6227 "\n"
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6232 msgid ""
6233 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6234 "L<augtool(1)> C<clear> command."
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2106
6239 msgid "(Added in 1.3.4)"
6240 msgstr ""
6241
6242 #. type: =head2
6243 #: ../src/guestfs-actions.pod:291
6244 msgid "guestfs_aug_close"
6245 msgstr ""
6246
6247 #. type: verbatim
6248 #: ../src/guestfs-actions.pod:293
6249 #, no-wrap
6250 msgid ""
6251 " int\n"
6252 " guestfs_aug_close (guestfs_h *g);\n"
6253 "\n"
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../src/guestfs-actions.pod:296
6258 msgid ""
6259 "Close the current Augeas handle and free up any resources used by it.  After "
6260 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6261 "any other Augeas functions."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328 ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360 ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438 ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483 ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511 ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:5480
6266 msgid "(Added in 0.7)"
6267 msgstr ""
6268
6269 #. type: =head2
6270 #: ../src/guestfs-actions.pod:305
6271 msgid "guestfs_aug_defnode"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../src/guestfs-actions.pod:307
6276 #, no-wrap
6277 msgid ""
6278 " struct guestfs_int_bool *\n"
6279 " guestfs_aug_defnode (guestfs_h *g,\n"
6280 "                      const char *name,\n"
6281 "                      const char *expr,\n"
6282 "                      const char *val);\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6288 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../src/guestfs-actions.pod:316
6293 msgid ""
6294 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6295 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6296 "containing that single node."
6297 msgstr ""
6298
6299 #. type: textblock
6300 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6301 msgid ""
6302 "On success this returns a pair containing the number of nodes in the "
6303 "nodeset, and a boolean flag if a node was created."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../src/guestfs-actions.pod:324
6308 msgid ""
6309 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6310 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6311 msgstr ""
6312
6313 #. type: =head2
6314 #: ../src/guestfs-actions.pod:330
6315 msgid "guestfs_aug_defvar"
6316 msgstr ""
6317
6318 #. type: verbatim
6319 #: ../src/guestfs-actions.pod:332
6320 #, no-wrap
6321 msgid ""
6322 " int\n"
6323 " guestfs_aug_defvar (guestfs_h *g,\n"
6324 "                     const char *name,\n"
6325 "                     const char *expr);\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6331 msgid ""
6332 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6333 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6334 msgstr ""
6335
6336 #. type: textblock
6337 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6338 msgid ""
6339 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6340 "evaluates to something which is not a nodeset."
6341 msgstr ""
6342
6343 #. type: =head2
6344 #: ../src/guestfs-actions.pod:348
6345 msgid "guestfs_aug_get"
6346 msgstr ""
6347
6348 #. type: verbatim
6349 #: ../src/guestfs-actions.pod:350
6350 #, no-wrap
6351 msgid ""
6352 " char *\n"
6353 " guestfs_aug_get (guestfs_h *g,\n"
6354 "                  const char *augpath);\n"
6355 "\n"
6356 msgstr ""
6357
6358 #. type: textblock
6359 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6360 msgid ""
6361 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6362 "node, the C<value> is returned."
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857 ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935 ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054 ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201 ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1354 ../src/guestfs-actions.pod:1545 ../src/guestfs-actions.pod:1657 ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1837 ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1938 ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2872 ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3068 ../src/guestfs-actions.pod:3640 ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4160 ../src/guestfs-actions.pod:4270 ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5556 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6233 ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6967 ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7165 ../src/guestfs-actions.pod:7437
6367 msgid ""
6368 "This function returns a string, or NULL on error.  I<The caller must free "
6369 "the returned string after use>."
6370 msgstr ""
6371
6372 #. type: =head2
6373 #: ../src/guestfs-actions.pod:362
6374 msgid "guestfs_aug_init"
6375 msgstr ""
6376
6377 #. type: verbatim
6378 #: ../src/guestfs-actions.pod:364
6379 #, no-wrap
6380 msgid ""
6381 " int\n"
6382 " guestfs_aug_init (guestfs_h *g,\n"
6383 "                   const char *root,\n"
6384 "                   int flags);\n"
6385 "\n"
6386 msgstr ""
6387
6388 #. type: textblock
6389 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
6390 msgid ""
6391 "Create a new Augeas handle for editing configuration files.  If there was "
6392 "any previous Augeas handle associated with this guestfs session, then it is "
6393 "closed."
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../src/guestfs-actions.pod:373
6398 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
6403 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
6408 msgid ""
6409 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6410 "logical I<or> of the following integers:"
6411 msgstr ""
6412
6413 #. type: =item
6414 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
6415 msgid "C<AUG_SAVE_BACKUP> = 1"
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
6420 msgid "Keep the original file with a C<.augsave> extension."
6421 msgstr ""
6422
6423 #. type: =item
6424 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
6425 msgid "C<AUG_SAVE_NEWFILE> = 2"
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
6430 msgid ""
6431 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6432 "original.  Overrides C<AUG_SAVE_BACKUP>."
6433 msgstr ""
6434
6435 #. type: =item
6436 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
6437 msgid "C<AUG_TYPE_CHECK> = 4"
6438 msgstr ""
6439
6440 #. type: textblock
6441 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
6442 msgid "Typecheck lenses (can be expensive)."
6443 msgstr ""
6444
6445 #. type: =item
6446 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
6447 msgid "C<AUG_NO_STDINC> = 8"
6448 msgstr ""
6449
6450 #. type: textblock
6451 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
6452 msgid "Do not use standard load path for modules."
6453 msgstr ""
6454
6455 #. type: =item
6456 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
6457 msgid "C<AUG_SAVE_NOOP> = 16"
6458 msgstr ""
6459
6460 #. type: textblock
6461 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
6462 msgid "Make save a no-op, just record what would have been changed."
6463 msgstr ""
6464
6465 #. type: =item
6466 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
6467 msgid "C<AUG_NO_LOAD> = 32"
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../src/guestfs-actions.pod:408
6472 msgid "Do not load the tree in C<guestfs_aug_init>."
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../src/guestfs-actions.pod:412
6477 msgid "To close the handle, you can call C<guestfs_aug_close>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
6482 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../src/guestfs-actions.pod:420
6487 msgid "guestfs_aug_insert"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../src/guestfs-actions.pod:422
6492 #, no-wrap
6493 msgid ""
6494 " int\n"
6495 " guestfs_aug_insert (guestfs_h *g,\n"
6496 "                     const char *augpath,\n"
6497 "                     const char *label,\n"
6498 "                     int before);\n"
6499 "\n"
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
6504 msgid ""
6505 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6506 "or after C<path> (depending on the boolean flag C<before>)."
6507 msgstr ""
6508
6509 #. type: textblock
6510 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
6511 msgid ""
6512 "C<path> must match exactly one existing node in the tree, and C<label> must "
6513 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6514 msgstr ""
6515
6516 #. type: =head2
6517 #: ../src/guestfs-actions.pod:440
6518 msgid "guestfs_aug_load"
6519 msgstr ""
6520
6521 #. type: verbatim
6522 #: ../src/guestfs-actions.pod:442
6523 #, no-wrap
6524 msgid ""
6525 " int\n"
6526 " guestfs_aug_load (guestfs_h *g);\n"
6527 "\n"
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
6532 msgid "Load files into the tree."
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
6537 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6538 msgstr ""
6539
6540 #. type: =head2
6541 #: ../src/guestfs-actions.pod:454
6542 msgid "guestfs_aug_ls"
6543 msgstr ""
6544
6545 #. type: verbatim
6546 #: ../src/guestfs-actions.pod:456
6547 #, no-wrap
6548 msgid ""
6549 " char **\n"
6550 " guestfs_aug_ls (guestfs_h *g,\n"
6551 "                 const char *augpath);\n"
6552 "\n"
6553 msgstr ""
6554
6555 #. type: textblock
6556 #: ../src/guestfs-actions.pod:460
6557 msgid ""
6558 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6559 "sorting the resulting nodes into alphabetical order."
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479 ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073 ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1388 ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1510 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2236 ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2303 ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2981 ../src/guestfs-actions.pod:3270 ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:3622 ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5476 ../src/guestfs-actions.pod:5590 ../src/guestfs-actions.pod:6290 ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6552 ../src/guestfs-actions.pod:6576 ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7078 ../src/guestfs-actions.pod:7125 ../src/guestfs-actions.pod:7290 ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:7394 ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7478
6564 msgid ""
6565 "This function returns a NULL-terminated array of strings (like "
6566 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
6567 "strings and the array after use>."
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1426 ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4023 ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6790 ../src/guestfs-actions.pod:6803 ../src/guestfs-actions.pod:7042 ../src/guestfs-actions.pod:7278
6572 msgid "(Added in 0.8)"
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../src/guestfs-actions.pod:469
6577 msgid "guestfs_aug_match"
6578 msgstr ""
6579
6580 #. type: verbatim
6581 #: ../src/guestfs-actions.pod:471
6582 #, no-wrap
6583 msgid ""
6584 " char **\n"
6585 " guestfs_aug_match (guestfs_h *g,\n"
6586 "                    const char *augpath);\n"
6587 "\n"
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
6592 msgid ""
6593 "Returns a list of paths which match the path expression C<path>.  The "
6594 "returned paths are sufficiently qualified so that they match exactly one "
6595 "node in the current tree."
6596 msgstr ""
6597
6598 #. type: =head2
6599 #: ../src/guestfs-actions.pod:485
6600 msgid "guestfs_aug_mv"
6601 msgstr ""
6602
6603 #. type: verbatim
6604 #: ../src/guestfs-actions.pod:487
6605 #, no-wrap
6606 msgid ""
6607 " int\n"
6608 " guestfs_aug_mv (guestfs_h *g,\n"
6609 "                 const char *src,\n"
6610 "                 const char *dest);\n"
6611 "\n"
6612 msgstr ""
6613
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
6616 msgid ""
6617 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6618 "C<dest> is overwritten if it exists."
6619 msgstr ""
6620
6621 #. type: =head2
6622 #: ../src/guestfs-actions.pod:499
6623 msgid "guestfs_aug_rm"
6624 msgstr ""
6625
6626 #. type: verbatim
6627 #: ../src/guestfs-actions.pod:501
6628 #, no-wrap
6629 msgid ""
6630 " int\n"
6631 " guestfs_aug_rm (guestfs_h *g,\n"
6632 "                 const char *augpath);\n"
6633 "\n"
6634 msgstr ""
6635
6636 #. type: textblock
6637 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
6638 msgid "Remove C<path> and all of its children."
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
6643 msgid "On success this returns the number of entries which were removed."
6644 msgstr ""
6645
6646 #. type: =head2
6647 #: ../src/guestfs-actions.pod:513
6648 msgid "guestfs_aug_save"
6649 msgstr ""
6650
6651 #. type: verbatim
6652 #: ../src/guestfs-actions.pod:515
6653 #, no-wrap
6654 msgid ""
6655 " int\n"
6656 " guestfs_aug_save (guestfs_h *g);\n"
6657 "\n"
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
6662 msgid "This writes all pending changes to disk."
6663 msgstr ""
6664
6665 #. type: textblock
6666 #: ../src/guestfs-actions.pod:520
6667 msgid ""
6668 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6669 "are saved."
6670 msgstr ""
6671
6672 #. type: =head2
6673 #: ../src/guestfs-actions.pod:527
6674 msgid "guestfs_aug_set"
6675 msgstr ""
6676
6677 #. type: verbatim
6678 #: ../src/guestfs-actions.pod:529
6679 #, no-wrap
6680 msgid ""
6681 " int\n"
6682 " guestfs_aug_set (guestfs_h *g,\n"
6683 "                  const char *augpath,\n"
6684 "                  const char *val);\n"
6685 "\n"
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
6690 msgid "Set the value associated with C<path> to C<val>."
6691 msgstr ""
6692
6693 #. type: textblock
6694 #: ../src/guestfs-actions.pod:536
6695 msgid ""
6696 "In the Augeas API, it is possible to clear a node by setting the value to "
6697 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6698 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6699 msgstr ""
6700
6701 #. type: =head2
6702 #: ../src/guestfs-actions.pod:545
6703 msgid "guestfs_available"
6704 msgstr ""
6705
6706 #. type: verbatim
6707 #: ../src/guestfs-actions.pod:547
6708 #, no-wrap
6709 msgid ""
6710 " int\n"
6711 " guestfs_available (guestfs_h *g,\n"
6712 "                    char *const *groups);\n"
6713 "\n"
6714 msgstr ""
6715
6716 #. type: textblock
6717 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
6718 msgid ""
6719 "This command is used to check the availability of some groups of "
6720 "functionality in the appliance, which not all builds of the libguestfs "
6721 "appliance will be able to provide."
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../src/guestfs-actions.pod:555
6726 msgid ""
6727 "The libguestfs groups, and the functions that those groups correspond to, "
6728 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6729 "runtime by calling C<guestfs_available_all_groups>."
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
6734 msgid ""
6735 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6736 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6737 "and Augeas (configuration file editing) functions."
6738 msgstr ""
6739
6740 #. type: textblock
6741 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
6742 msgid "The command returns no error if I<all> requested groups are available."
6743 msgstr ""
6744
6745 #. type: textblock
6746 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
6747 msgid ""
6748 "It fails with an error if one or more of the requested groups is unavailable "
6749 "in the appliance."
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
6754 msgid ""
6755 "If an unknown group name is included in the list of groups then an error is "
6756 "always returned."
6757 msgstr ""
6758
6759 #. type: textblock
6760 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
6761 msgid "I<Notes:>"
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../src/guestfs-actions.pod:579
6766 msgid "You must call C<guestfs_launch> before calling this function."
6767 msgstr ""
6768
6769 #. type: textblock
6770 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
6771 msgid ""
6772 "The reason is because we don't know what groups are supported by the "
6773 "appliance/daemon until it is running and can be queried."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
6778 msgid ""
6779 "If a group of functions is available, this does not necessarily mean that "
6780 "they will work.  You still have to check for errors when calling individual "
6781 "API functions even if they are available."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
6786 msgid ""
6787 "It is usually the job of distro packagers to build complete functionality "
6788 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6789 "with all requirements satisfied, will support everything."
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../src/guestfs-actions.pod:601
6794 msgid ""
6795 "This call was added in version C<1.0.80>.  In previous versions of "
6796 "libguestfs all you could do would be to speculatively execute a command to "
6797 "find out if the daemon implemented it.  See also C<guestfs_version>."
6798 msgstr ""
6799
6800 #. type: textblock
6801 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
6802 msgid "(Added in 1.0.80)"
6803 msgstr ""
6804
6805 #. type: =head2
6806 #: ../src/guestfs-actions.pod:612
6807 msgid "guestfs_available_all_groups"
6808 msgstr ""
6809
6810 #. type: verbatim
6811 #: ../src/guestfs-actions.pod:614
6812 #, no-wrap
6813 msgid ""
6814 " char **\n"
6815 " guestfs_available_all_groups (guestfs_h *g);\n"
6816 "\n"
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../src/guestfs-actions.pod:617
6821 msgid ""
6822 "This command returns a list of all optional groups that this daemon knows "
6823 "about.  Note this returns both supported and unsupported groups.  To find "
6824 "out which ones the daemon can actually support you have to call "
6825 "C<guestfs_available> on each member of the returned list."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../src/guestfs-actions.pod:623
6830 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../src/guestfs-actions.pod:629
6835 msgid "(Added in 1.3.15)"
6836 msgstr ""
6837
6838 #. type: =head2
6839 #: ../src/guestfs-actions.pod:631
6840 msgid "guestfs_base64_in"
6841 msgstr ""
6842
6843 #. type: verbatim
6844 #: ../src/guestfs-actions.pod:633
6845 #, no-wrap
6846 msgid ""
6847 " int\n"
6848 " guestfs_base64_in (guestfs_h *g,\n"
6849 "                    const char *base64file,\n"
6850 "                    const char *filename);\n"
6851 "\n"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
6856 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6857 msgstr ""
6858
6859 #. type: textblock
6860 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
6861 msgid "(Added in 1.3.5)"
6862 msgstr ""
6863
6864 #. type: =head2
6865 #: ../src/guestfs-actions.pod:645
6866 msgid "guestfs_base64_out"
6867 msgstr ""
6868
6869 #. type: verbatim
6870 #: ../src/guestfs-actions.pod:647
6871 #, no-wrap
6872 msgid ""
6873 " int\n"
6874 " guestfs_base64_out (guestfs_h *g,\n"
6875 "                     const char *filename,\n"
6876 "                     const char *base64file);\n"
6877 "\n"
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
6882 msgid ""
6883 "This command downloads the contents of C<filename>, writing it out to local "
6884 "file C<base64file> encoded as base64."
6885 msgstr ""
6886
6887 #. type: =head2
6888 #: ../src/guestfs-actions.pod:659
6889 msgid "guestfs_blockdev_flushbufs"
6890 msgstr ""
6891
6892 #. type: verbatim
6893 #: ../src/guestfs-actions.pod:661
6894 #, no-wrap
6895 msgid ""
6896 " int\n"
6897 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
6898 "                             const char *device);\n"
6899 "\n"
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
6904 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716 ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753 ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785 ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813 ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459 ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503 ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522 ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
6909 msgid "This uses the L<blockdev(8)> command."
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720 ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757 ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789 ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
6914 msgid "(Added in 0.9.3)"
6915 msgstr ""
6916
6917 #. type: =head2
6918 #: ../src/guestfs-actions.pod:674
6919 msgid "guestfs_blockdev_getbsz"
6920 msgstr ""
6921
6922 #. type: verbatim
6923 #: ../src/guestfs-actions.pod:676
6924 #, no-wrap
6925 msgid ""
6926 " int\n"
6927 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
6928 "                          const char *device);\n"
6929 "\n"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
6934 msgid "This returns the block size of a device."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
6939 msgid ""
6940 "(Note this is different from both I<size in blocks> and I<filesystem block "
6941 "size>)."
6942 msgstr ""
6943
6944 #. type: =head2
6945 #: ../src/guestfs-actions.pod:691
6946 msgid "guestfs_blockdev_getro"
6947 msgstr ""
6948
6949 #. type: verbatim
6950 #: ../src/guestfs-actions.pod:693
6951 #, no-wrap
6952 msgid ""
6953 " int\n"
6954 " guestfs_blockdev_getro (guestfs_h *g,\n"
6955 "                         const char *device);\n"
6956 "\n"
6957 msgstr ""
6958
6959 #. type: textblock
6960 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
6961 msgid ""
6962 "Returns a boolean indicating if the block device is read-only (true if "
6963 "read-only, false if not)."
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1914 ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1997 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2067 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2115 ../src/guestfs-actions.pod:3088 ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3124 ../src/guestfs-actions.pod:3287 ../src/guestfs-actions.pod:3301 ../src/guestfs-actions.pod:3316 ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3346 ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3404 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3433 ../src/guestfs-actions.pod:3448 ../src/guestfs-actions.pod:4979
6968 msgid "This function returns a C truth value on success or -1 on error."
6969 msgstr ""
6970
6971 #. type: =head2
6972 #: ../src/guestfs-actions.pod:706
6973 msgid "guestfs_blockdev_getsize64"
6974 msgstr ""
6975
6976 #. type: verbatim
6977 #: ../src/guestfs-actions.pod:708
6978 #, no-wrap
6979 msgid ""
6980 " int64_t\n"
6981 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
6982 "                             const char *device);\n"
6983 "\n"
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
6988 msgid "This returns the size of the device in bytes."
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../src/guestfs-actions.pod:714
6993 msgid "See also C<guestfs_blockdev_getsz>."
6994 msgstr ""
6995
6996 #. type: =head2
6997 #: ../src/guestfs-actions.pod:722
6998 msgid "guestfs_blockdev_getss"
6999 msgstr ""
7000
7001 #. type: verbatim
7002 #: ../src/guestfs-actions.pod:724
7003 #, no-wrap
7004 msgid ""
7005 " int\n"
7006 " guestfs_blockdev_getss (guestfs_h *g,\n"
7007 "                         const char *device);\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7013 msgid ""
7014 "This returns the size of sectors on a block device.  Usually 512, but can be "
7015 "larger for modern devices."
7016 msgstr ""
7017
7018 #. type: textblock
7019 #: ../src/guestfs-actions.pod:731
7020 msgid ""
7021 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7022 "that)."
7023 msgstr ""
7024
7025 #. type: =head2
7026 #: ../src/guestfs-actions.pod:740
7027 msgid "guestfs_blockdev_getsz"
7028 msgstr ""
7029
7030 #. type: verbatim
7031 #: ../src/guestfs-actions.pod:742
7032 #, no-wrap
7033 msgid ""
7034 " int64_t\n"
7035 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7036 "                         const char *device);\n"
7037 "\n"
7038 msgstr ""
7039
7040 #. type: textblock
7041 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7042 msgid ""
7043 "This returns the size of the device in units of 512-byte sectors (even if "
7044 "the sectorsize isn't 512 bytes ... weird)."
7045 msgstr ""
7046
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:749
7049 msgid ""
7050 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7051 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7052 msgstr ""
7053
7054 #. type: =head2
7055 #: ../src/guestfs-actions.pod:759
7056 msgid "guestfs_blockdev_rereadpt"
7057 msgstr ""
7058
7059 #. type: verbatim
7060 #: ../src/guestfs-actions.pod:761
7061 #, no-wrap
7062 msgid ""
7063 " int\n"
7064 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7065 "                            const char *device);\n"
7066 "\n"
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7071 msgid "Reread the partition table on C<device>."
7072 msgstr ""
7073
7074 #. type: =head2
7075 #: ../src/guestfs-actions.pod:773
7076 msgid "guestfs_blockdev_setbsz"
7077 msgstr ""
7078
7079 #. type: verbatim
7080 #: ../src/guestfs-actions.pod:775
7081 #, no-wrap
7082 msgid ""
7083 " int\n"
7084 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7085 "                          const char *device,\n"
7086 "                          int blocksize);\n"
7087 "\n"
7088 msgstr ""
7089
7090 #. type: textblock
7091 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7092 msgid "This sets the block size of a device."
7093 msgstr ""
7094
7095 #. type: =head2
7096 #: ../src/guestfs-actions.pod:791
7097 msgid "guestfs_blockdev_setro"
7098 msgstr ""
7099
7100 #. type: verbatim
7101 #: ../src/guestfs-actions.pod:793
7102 #, no-wrap
7103 msgid ""
7104 " int\n"
7105 " guestfs_blockdev_setro (guestfs_h *g,\n"
7106 "                         const char *device);\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7112 msgid "Sets the block device named C<device> to read-only."
7113 msgstr ""
7114
7115 #. type: =head2
7116 #: ../src/guestfs-actions.pod:805
7117 msgid "guestfs_blockdev_setrw"
7118 msgstr ""
7119
7120 #. type: verbatim
7121 #: ../src/guestfs-actions.pod:807
7122 #, no-wrap
7123 msgid ""
7124 " int\n"
7125 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7126 "                         const char *device);\n"
7127 "\n"
7128 msgstr ""
7129
7130 #. type: textblock
7131 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7132 msgid "Sets the block device named C<device> to read-write."
7133 msgstr ""
7134
7135 #. type: =head2
7136 #: ../src/guestfs-actions.pod:819
7137 msgid "guestfs_case_sensitive_path"
7138 msgstr ""
7139
7140 #. type: verbatim
7141 #: ../src/guestfs-actions.pod:821
7142 #, no-wrap
7143 msgid ""
7144 " char *\n"
7145 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7146 "                              const char *path);\n"
7147 "\n"
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7152 msgid ""
7153 "This can be used to resolve case insensitive paths on a filesystem which is "
7154 "case sensitive.  The use case is to resolve paths which you have read from "
7155 "Windows configuration files or the Windows Registry, to the true path."
7156 msgstr ""
7157
7158 #. type: textblock
7159 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7160 msgid ""
7161 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7162 "(and probably others), which is that although the underlying filesystem is "
7163 "case-insensitive, the driver exports the filesystem to Linux as "
7164 "case-sensitive."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
7169 msgid ""
7170 "One consequence of this is that special directories such as C<c:\\windows> "
7171 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7172 "precise details of how they were created.  In Windows itself this would not "
7173 "be a problem."
7174 msgstr ""
7175
7176 #. type: textblock
7177 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
7178 msgid ""
7179 "Bug or feature? You decide: "
7180 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7181 msgstr ""
7182
7183 #. type: textblock
7184 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
7185 msgid ""
7186 "This function resolves the true case of each element in the path and returns "
7187 "the case-sensitive path."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../src/guestfs-actions.pod:847
7192 msgid ""
7193 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
7194 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7195 "how the directories were originally created under Windows)."
7196 msgstr ""
7197
7198 #. type: textblock
7199 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
7200 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../src/guestfs-actions.pod:855
7205 msgid "See also C<guestfs_realpath>."
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6970
7210 msgid "(Added in 1.0.75)"
7211 msgstr ""
7212
7213 #. type: =head2
7214 #: ../src/guestfs-actions.pod:862
7215 msgid "guestfs_cat"
7216 msgstr ""
7217
7218 #. type: verbatim
7219 #: ../src/guestfs-actions.pod:864
7220 #, no-wrap
7221 msgid ""
7222 " char *\n"
7223 " guestfs_cat (guestfs_h *g,\n"
7224 "              const char *path);\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5466 ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3667
7230 msgid "Return the contents of the file named C<path>."
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../src/guestfs-actions.pod:870
7235 msgid ""
7236 "Note that this function cannot correctly handle binary files (specifically, "
7237 "files containing C<\\0> character which is treated as end of string).  For "
7238 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7239 "functions which have a more complex interface."
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057 ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:1495 ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1763 ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:5248 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5431 ../src/guestfs-actions.pod:5455 ../src/guestfs-actions.pod:6355 ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7268 ../src/guestfs-actions.pod:7294 ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7417 ../src/guestfs-actions.pod:7463 ../src/guestfs-actions.pod:7482 ../fish/guestfish-actions.pod:587 ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734 ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920 ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997 ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556 ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3552 ../fish/guestfish-actions.pod:3628 ../fish/guestfish-actions.pod:3645 ../fish/guestfish-actions.pod:3660 ../fish/guestfish-actions.pod:4286 ../fish/guestfish-actions.pod:4332 ../fish/guestfish-actions.pod:4417 ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:4842 ../fish/guestfish-actions.pod:4860 ../fish/guestfish-actions.pod:4877 ../fish/guestfish-actions.pod:4887 ../fish/guestfish-actions.pod:4935 ../fish/guestfish-actions.pod:4945 ../fish/guestfish-actions.pod:4974 ../fish/guestfish-actions.pod:4984
7244 msgid ""
7245 "Because of the message protocol, there is a transfer limit of somewhere "
7246 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:4150 ../src/guestfs-actions.pod:5354 ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:7129 ../src/guestfs-actions.pod:7143
7251 msgid "(Added in 0.4)"
7252 msgstr ""
7253
7254 #. type: =head2
7255 #: ../src/guestfs-actions.pod:883
7256 msgid "guestfs_checksum"
7257 msgstr ""
7258
7259 #. type: verbatim
7260 #: ../src/guestfs-actions.pod:885
7261 #, no-wrap
7262 msgid ""
7263 " char *\n"
7264 " guestfs_checksum (guestfs_h *g,\n"
7265 "                   const char *csumtype,\n"
7266 "                   const char *path);\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
7272 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7273 msgstr ""
7274
7275 #. type: textblock
7276 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
7277 msgid ""
7278 "The type of checksum to compute is given by the C<csumtype> parameter which "
7279 "must have one of the following values:"
7280 msgstr ""
7281
7282 #. type: =item
7283 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
7284 msgid "C<crc>"
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
7289 msgid ""
7290 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7291 "C<cksum> command."
7292 msgstr ""
7293
7294 #. type: =item
7295 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
7296 msgid "C<md5>"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
7301 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7302 msgstr ""
7303
7304 #. type: =item
7305 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
7306 msgid "C<sha1>"
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
7311 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7312 msgstr ""
7313
7314 #. type: =item
7315 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
7316 msgid "C<sha224>"
7317 msgstr ""
7318
7319 #. type: textblock
7320 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
7321 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7322 msgstr ""
7323
7324 #. type: =item
7325 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
7326 msgid "C<sha256>"
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
7331 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7332 msgstr ""
7333
7334 #. type: =item
7335 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
7336 msgid "C<sha384>"
7337 msgstr ""
7338
7339 #. type: textblock
7340 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
7341 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7342 msgstr ""
7343
7344 #. type: =item
7345 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
7346 msgid "C<sha512>"
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
7351 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
7356 msgid "The checksum is returned as a printable string."
7357 msgstr ""
7358
7359 #. type: textblock
7360 #: ../src/guestfs-actions.pod:931
7361 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7362 msgstr ""
7363
7364 #. type: textblock
7365 #: ../src/guestfs-actions.pod:933
7366 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:3303 ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:6826
7371 msgid "(Added in 1.0.2)"
7372 msgstr ""
7373
7374 #. type: =head2
7375 #: ../src/guestfs-actions.pod:940
7376 msgid "guestfs_checksum_device"
7377 msgstr ""
7378
7379 #. type: verbatim
7380 #: ../src/guestfs-actions.pod:942
7381 #, no-wrap
7382 msgid ""
7383 " char *\n"
7384 " guestfs_checksum_device (guestfs_h *g,\n"
7385 "                          const char *csumtype,\n"
7386 "                          const char *device);\n"
7387 "\n"
7388 msgstr ""
7389
7390 #. type: textblock
7391 #: ../src/guestfs-actions.pod:947
7392 msgid ""
7393 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7394 "device named C<device>.  For the types of checksums supported see the "
7395 "C<guestfs_checksum> command."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4885 ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4981 ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5175 ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6749 ../src/guestfs-actions.pod:7155
7400 msgid "(Added in 1.3.2)"
7401 msgstr ""
7402
7403 #. type: =head2
7404 #: ../src/guestfs-actions.pod:956
7405 msgid "guestfs_checksums_out"
7406 msgstr ""
7407
7408 #. type: verbatim
7409 #: ../src/guestfs-actions.pod:958
7410 #, no-wrap
7411 msgid ""
7412 " int\n"
7413 " guestfs_checksums_out (guestfs_h *g,\n"
7414 "                        const char *csumtype,\n"
7415 "                        const char *directory,\n"
7416 "                        const char *sumsfile);\n"
7417 "\n"
7418 msgstr ""
7419
7420 #. type: textblock
7421 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
7422 msgid ""
7423 "This command computes the checksums of all regular files in C<directory> and "
7424 "then emits a list of those checksums to the local output file C<sumsfile>."
7425 msgstr ""
7426
7427 #. type: textblock
7428 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
7429 msgid ""
7430 "This can be used for verifying the integrity of a virtual machine.  However "
7431 "to be properly secure you should pay attention to the output of the checksum "
7432 "command (it uses the ones from GNU coreutils).  In particular when the "
7433 "filename is not printable, coreutils uses a special backslash syntax.  For "
7434 "more information, see the GNU coreutils info file."
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../src/guestfs-actions.pod:978
7439 msgid "(Added in 1.3.7)"
7440 msgstr ""
7441
7442 #. type: =head2
7443 #: ../src/guestfs-actions.pod:980
7444 msgid "guestfs_chmod"
7445 msgstr ""
7446
7447 #. type: verbatim
7448 #: ../src/guestfs-actions.pod:982
7449 #, no-wrap
7450 msgid ""
7451 " int\n"
7452 " guestfs_chmod (guestfs_h *g,\n"
7453 "                int mode,\n"
7454 "                const char *path);\n"
7455 "\n"
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
7460 msgid ""
7461 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7462 "supported."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
7467 msgid ""
7468 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7469 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7470 "C<700>."
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4387 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4622 ../fish/guestfish-actions.pod:676 ../fish/guestfish-actions.pod:2983 ../fish/guestfish-actions.pod:3112 ../fish/guestfish-actions.pod:3122 ../fish/guestfish-actions.pod:3132
7475 msgid "The mode actually set is affected by the umask."
7476 msgstr ""
7477
7478 #. type: =head2
7479 #: ../src/guestfs-actions.pod:1000
7480 msgid "guestfs_chown"
7481 msgstr ""
7482
7483 #. type: verbatim
7484 #: ../src/guestfs-actions.pod:1002
7485 #, no-wrap
7486 msgid ""
7487 " int\n"
7488 " guestfs_chown (guestfs_h *g,\n"
7489 "                int owner,\n"
7490 "                int group,\n"
7491 "                const char *path);\n"
7492 "\n"
7493 msgstr ""
7494
7495 #. type: textblock
7496 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
7497 msgid "Change the file owner to C<owner> and group to C<group>."
7498 msgstr ""
7499
7500 #. type: textblock
7501 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2441
7502 msgid ""
7503 "Only numeric uid and gid are supported.  If you want to use names, you will "
7504 "need to locate and parse the password file yourself (Augeas support makes "
7505 "this relatively easy)."
7506 msgstr ""
7507
7508 #. type: =head2
7509 #: ../src/guestfs-actions.pod:1018
7510 msgid "guestfs_command"
7511 msgstr ""
7512
7513 #. type: verbatim
7514 #: ../src/guestfs-actions.pod:1020
7515 #, no-wrap
7516 msgid ""
7517 " char *\n"
7518 " guestfs_command (guestfs_h *g,\n"
7519 "                  char *const *arguments);\n"
7520 "\n"
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
7525 msgid ""
7526 "This call runs a command from the guest filesystem.  The filesystem must be "
7527 "mounted, and must contain a compatible operating system (ie. something "
7528 "Linux, with the same or compatible processor architecture)."
7529 msgstr ""
7530
7531 #. type: textblock
7532 #: ../src/guestfs-actions.pod:1029
7533 msgid ""
7534 "The single parameter is an argv-style list of arguments.  The first element "
7535 "is the name of the program to run.  Subsequent elements are parameters.  The "
7536 "list must be non-empty (ie. must contain a program name).  Note that the "
7537 "command runs directly, and is I<not> invoked via the shell (see "
7538 "C<guestfs_sh>)."
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
7543 msgid "The return value is anything printed to I<stdout> by the command."
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
7548 msgid ""
7549 "If the command returns a non-zero exit status, then this function returns an "
7550 "error message.  The error message string is the content of I<stderr> from "
7551 "the command."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
7556 msgid ""
7557 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7558 "C</bin>.  If you require a program from another location, you should provide "
7559 "the full path in the first parameter."
7560 msgstr ""
7561
7562 #. type: textblock
7563 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
7564 msgid ""
7565 "Shared libraries and data files required by the program must be available on "
7566 "filesystems which are mounted in the correct places.  It is the caller's "
7567 "responsibility to ensure all filesystems that are needed are mounted at the "
7568 "right locations."
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:1548
7573 msgid "(Added in 0.9.1)"
7574 msgstr ""
7575
7576 #. type: =head2
7577 #: ../src/guestfs-actions.pod:1062
7578 msgid "guestfs_command_lines"
7579 msgstr ""
7580
7581 #. type: verbatim
7582 #: ../src/guestfs-actions.pod:1064
7583 #, no-wrap
7584 msgid ""
7585 " char **\n"
7586 " guestfs_command_lines (guestfs_h *g,\n"
7587 "                        char *const *arguments);\n"
7588 "\n"
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../src/guestfs-actions.pod:1068
7593 msgid ""
7594 "This is the same as C<guestfs_command>, but splits the result into a list of "
7595 "lines."
7596 msgstr ""
7597
7598 #. type: textblock
7599 #: ../src/guestfs-actions.pod:1071
7600 msgid "See also: C<guestfs_sh_lines>"
7601 msgstr ""
7602
7603 #. type: =head2
7604 #: ../src/guestfs-actions.pod:1082
7605 msgid "guestfs_config"
7606 msgstr ""
7607
7608 #. type: verbatim
7609 #: ../src/guestfs-actions.pod:1084
7610 #, no-wrap
7611 msgid ""
7612 " int\n"
7613 " guestfs_config (guestfs_h *g,\n"
7614 "                 const char *qemuparam,\n"
7615 "                 const char *qemuvalue);\n"
7616 "\n"
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
7621 msgid ""
7622 "This can be used to add arbitrary qemu command line parameters of the form "
7623 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7624 "setting some parameters which would interfere with parameters that we use."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
7629 msgid "The first character of C<param> string must be a C<-> (dash)."
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
7634 msgid "C<value> can be NULL."
7635 msgstr ""
7636
7637 #. type: =head2
7638 #: ../src/guestfs-actions.pod:1102
7639 msgid "guestfs_copy_size"
7640 msgstr ""
7641
7642 #. type: verbatim
7643 #: ../src/guestfs-actions.pod:1104
7644 #, no-wrap
7645 msgid ""
7646 " int\n"
7647 " guestfs_copy_size (guestfs_h *g,\n"
7648 "                    const char *src,\n"
7649 "                    const char *dest,\n"
7650 "                    int64_t size);\n"
7651 "\n"
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
7656 msgid ""
7657 "This command copies exactly C<size> bytes from one source device or file "
7658 "C<src> to another destination device or file C<dest>."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
7663 msgid ""
7664 "Note this will fail if the source is too short or if the destination is not "
7665 "large enough."
7666 msgstr ""
7667
7668 #. type: textblock
7669 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1317 ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6855 ../src/guestfs-actions.pod:7334 ../src/guestfs-actions.pod:7353
7670 msgid ""
7671 "This long-running command can generate progress notification messages so "
7672 "that the caller can display a progress bar or indicator.  To receive these "
7673 "messages, the caller must register a progress event callback.  See "
7674 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:5381 ../src/guestfs-actions.pod:7062 ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7168
7679 msgid "(Added in 1.0.87)"
7680 msgstr ""
7681
7682 #. type: =head2
7683 #: ../src/guestfs-actions.pod:1125
7684 msgid "guestfs_cp"
7685 msgstr ""
7686
7687 #. type: verbatim
7688 #: ../src/guestfs-actions.pod:1127
7689 #, no-wrap
7690 msgid ""
7691 " int\n"
7692 " guestfs_cp (guestfs_h *g,\n"
7693 "             const char *src,\n"
7694 "             const char *dest);\n"
7695 "\n"
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
7700 msgid ""
7701 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7702 "destination filename or destination directory."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151 ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:4848 ../src/guestfs-actions.pod:5225
7707 msgid "(Added in 1.0.18)"
7708 msgstr ""
7709
7710 #. type: =head2
7711 #: ../src/guestfs-actions.pod:1139
7712 msgid "guestfs_cp_a"
7713 msgstr ""
7714
7715 #. type: verbatim
7716 #: ../src/guestfs-actions.pod:1141
7717 #, no-wrap
7718 msgid ""
7719 " int\n"
7720 " guestfs_cp_a (guestfs_h *g,\n"
7721 "               const char *src,\n"
7722 "               const char *dest);\n"
7723 "\n"
7724 msgstr ""
7725
7726 #. type: textblock
7727 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
7728 msgid ""
7729 "This copies a file or directory from C<src> to C<dest> recursively using the "
7730 "C<cp -a> command."
7731 msgstr ""
7732
7733 #. type: =head2
7734 #: ../src/guestfs-actions.pod:1153
7735 msgid "guestfs_dd"
7736 msgstr ""
7737
7738 #. type: verbatim
7739 #: ../src/guestfs-actions.pod:1155
7740 #, no-wrap
7741 msgid ""
7742 " int\n"
7743 " guestfs_dd (guestfs_h *g,\n"
7744 "             const char *src,\n"
7745 "             const char *dest);\n"
7746 "\n"
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
7751 msgid ""
7752 "This command copies from one source device or file C<src> to another "
7753 "destination device or file C<dest>.  Normally you would use this to copy to "
7754 "or from a device or partition, for example to duplicate a filesystem."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../src/guestfs-actions.pod:1165
7759 msgid ""
7760 "If the destination is a device, it must be as large or larger than the "
7761 "source file or device, otherwise the copy will fail.  This command cannot do "
7762 "partial copies (see C<guestfs_copy_size>)."
7763 msgstr ""
7764
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:1173
7767 msgid "guestfs_df"
7768 msgstr ""
7769
7770 #. type: verbatim
7771 #: ../src/guestfs-actions.pod:1175
7772 #, no-wrap
7773 msgid ""
7774 " char *\n"
7775 " guestfs_df (guestfs_h *g);\n"
7776 "\n"
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
7781 msgid "This command runs the C<df> command to report disk space used."
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
7786 msgid ""
7787 "This command is mostly useful for interactive sessions.  It is I<not> "
7788 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
7789 "from programs."
7790 msgstr ""
7791
7792 #. type: textblock
7793 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204 ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:2286 ../src/guestfs-actions.pod:2310 ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:4748 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7227
7794 msgid "(Added in 1.0.54)"
7795 msgstr ""
7796
7797 #. type: =head2
7798 #: ../src/guestfs-actions.pod:1189
7799 msgid "guestfs_df_h"
7800 msgstr ""
7801
7802 #. type: verbatim
7803 #: ../src/guestfs-actions.pod:1191
7804 #, no-wrap
7805 msgid ""
7806 " char *\n"
7807 " guestfs_df_h (guestfs_h *g);\n"
7808 "\n"
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
7813 msgid ""
7814 "This command runs the C<df -h> command to report disk space used in "
7815 "human-readable format."
7816 msgstr ""
7817
7818 #. type: =head2
7819 #: ../src/guestfs-actions.pod:1206
7820 msgid "guestfs_dmesg"
7821 msgstr ""
7822
7823 #. type: verbatim
7824 #: ../src/guestfs-actions.pod:1208
7825 #, no-wrap
7826 msgid ""
7827 " char *\n"
7828 " guestfs_dmesg (guestfs_h *g);\n"
7829 "\n"
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
7834 msgid ""
7835 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7836 "This is sometimes useful for extended debugging of problems."
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../src/guestfs-actions.pod:1215
7841 msgid ""
7842 "Another way to get the same information is to enable verbose messages with "
7843 "C<guestfs_set_verbose> or by setting the environment variable "
7844 "C<LIBGUESTFS_DEBUG=1> before running the program."
7845 msgstr ""
7846
7847 #. type: =head2
7848 #: ../src/guestfs-actions.pod:1225
7849 msgid "guestfs_download"
7850 msgstr ""
7851
7852 #. type: verbatim
7853 #: ../src/guestfs-actions.pod:1227
7854 #, no-wrap
7855 msgid ""
7856 " int\n"
7857 " guestfs_download (guestfs_h *g,\n"
7858 "                   const char *remotefilename,\n"
7859 "                   const char *filename);\n"
7860 "\n"
7861 msgstr ""
7862
7863 #. type: textblock
7864 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257 ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
7865 msgid ""
7866 "Download file C<remotefilename> and save it as C<filename> on the local "
7867 "machine."
7868 msgstr ""
7869
7870 #. type: textblock
7871 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6815 ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4590
7872 msgid "C<filename> can also be a named pipe."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../src/guestfs-actions.pod:1237
7877 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../src/guestfs-actions.pod:1248
7882 msgid "guestfs_download_offset"
7883 msgstr ""
7884
7885 #. type: verbatim
7886 #: ../src/guestfs-actions.pod:1250
7887 #, no-wrap
7888 msgid ""
7889 " int\n"
7890 " guestfs_download_offset (guestfs_h *g,\n"
7891 "                          const char *remotefilename,\n"
7892 "                          const char *filename,\n"
7893 "                          int64_t offset,\n"
7894 "                          int64_t size);\n"
7895 "\n"
7896 msgstr ""
7897
7898 #. type: textblock
7899 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
7900 msgid ""
7901 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7902 "region must be within the file or device)."
7903 msgstr ""
7904
7905 #. type: textblock
7906 #: ../src/guestfs-actions.pod:1263
7907 msgid ""
7908 "Note that there is no limit on the amount of data that can be downloaded "
7909 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
7910 "full amount unless an error occurs."
7911 msgstr ""
7912
7913 #. type: textblock
7914 #: ../src/guestfs-actions.pod:1268
7915 msgid "See also C<guestfs_download>, C<guestfs_pread>."
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6860
7920 msgid "(Added in 1.5.17)"
7921 msgstr ""
7922
7923 #. type: =head2
7924 #: ../src/guestfs-actions.pod:1279
7925 msgid "guestfs_drop_caches"
7926 msgstr ""
7927
7928 #. type: verbatim
7929 #: ../src/guestfs-actions.pod:1281
7930 #, no-wrap
7931 msgid ""
7932 " int\n"
7933 " guestfs_drop_caches (guestfs_h *g,\n"
7934 "                      int whattodrop);\n"
7935 "\n"
7936 msgstr ""
7937
7938 #. type: textblock
7939 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
7940 msgid ""
7941 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7942 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7943 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
7948 msgid "Setting C<whattodrop> to 3 should drop everything."
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
7953 msgid ""
7954 "This automatically calls L<sync(2)> before the operation, so that the "
7955 "maximum guest memory is freed."
7956 msgstr ""
7957
7958 #. type: =head2
7959 #: ../src/guestfs-actions.pod:1299
7960 msgid "guestfs_du"
7961 msgstr ""
7962
7963 #. type: verbatim
7964 #: ../src/guestfs-actions.pod:1301
7965 #, no-wrap
7966 msgid ""
7967 " int64_t\n"
7968 " guestfs_du (guestfs_h *g,\n"
7969 "             const char *path);\n"
7970 "\n"
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
7975 msgid ""
7976 "This command runs the C<du -s> command to estimate file space usage for "
7977 "C<path>."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
7982 msgid ""
7983 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7984 "estimate includes the contents of the directory and all subdirectories "
7985 "(recursively)."
7986 msgstr ""
7987
7988 #. type: textblock
7989 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
7990 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7991 msgstr ""
7992
7993 #. type: =head2
7994 #: ../src/guestfs-actions.pod:1324
7995 msgid "guestfs_e2fsck_f"
7996 msgstr ""
7997
7998 #. type: verbatim
7999 #: ../src/guestfs-actions.pod:1326
8000 #, no-wrap
8001 msgid ""
8002 " int\n"
8003 " guestfs_e2fsck_f (guestfs_h *g,\n"
8004 "                   const char *device);\n"
8005 "\n"
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../src/guestfs-actions.pod:1330 ../fish/guestfish-actions.pod:885
8010 msgid ""
8011 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8012 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8013 "clean (I<-f>)."
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../src/guestfs-actions.pod:1334
8018 msgid ""
8019 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8020 "Normally you should use C<guestfs_fsck>."
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../src/guestfs-actions.pod:1339
8025 msgid "(Added in 1.0.29)"
8026 msgstr ""
8027
8028 #. type: =head2
8029 #: ../src/guestfs-actions.pod:1341
8030 msgid "guestfs_echo_daemon"
8031 msgstr ""
8032
8033 #. type: verbatim
8034 #: ../src/guestfs-actions.pod:1343
8035 #, no-wrap
8036 msgid ""
8037 " char *\n"
8038 " guestfs_echo_daemon (guestfs_h *g,\n"
8039 "                      char *const *words);\n"
8040 "\n"
8041 msgstr ""
8042
8043 #. type: textblock
8044 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:896
8045 msgid ""
8046 "This command concatenates the list of C<words> passed with single spaces "
8047 "between them and returns the resulting string."
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:899
8052 msgid "You can use this command to test the connection through to the daemon."
8053 msgstr ""
8054
8055 #. type: textblock
8056 #: ../src/guestfs-actions.pod:1352
8057 msgid "See also C<guestfs_ping_daemon>."
8058 msgstr ""
8059
8060 #. type: textblock
8061 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6059
8062 msgid "(Added in 1.0.69)"
8063 msgstr ""
8064
8065 #. type: =head2
8066 #: ../src/guestfs-actions.pod:1359
8067 msgid "guestfs_egrep"
8068 msgstr ""
8069
8070 #. type: verbatim
8071 #: ../src/guestfs-actions.pod:1361
8072 #, no-wrap
8073 msgid ""
8074 " char **\n"
8075 " guestfs_egrep (guestfs_h *g,\n"
8076 "                const char *regex,\n"
8077 "                const char *path);\n"
8078 "\n"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../src/guestfs-actions.pod:1366 ../fish/guestfish-actions.pod:907
8083 msgid "This calls the external C<egrep> program and returns the matching lines."
8084 msgstr ""
8085
8086 #. type: textblock
8087 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1395 ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:2224 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2427 ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3683 ../src/guestfs-actions.pod:3697 ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:5559 ../src/guestfs-actions.pod:5608 ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6500 ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:7297 ../src/guestfs-actions.pod:7316 ../src/guestfs-actions.pod:7401 ../src/guestfs-actions.pod:7420 ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7485
8088 msgid "(Added in 1.0.66)"
8089 msgstr ""
8090
8091 #. type: =head2
8092 #: ../src/guestfs-actions.pod:1378
8093 msgid "guestfs_egrepi"
8094 msgstr ""
8095
8096 #. type: verbatim
8097 #: ../src/guestfs-actions.pod:1380
8098 #, no-wrap
8099 msgid ""
8100 " char **\n"
8101 " guestfs_egrepi (guestfs_h *g,\n"
8102 "                 const char *regex,\n"
8103 "                 const char *path);\n"
8104 "\n"
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:917
8109 msgid "This calls the external C<egrep -i> program and returns the matching lines."
8110 msgstr ""
8111
8112 #. type: =head2
8113 #: ../src/guestfs-actions.pod:1397
8114 msgid "guestfs_equal"
8115 msgstr ""
8116
8117 #. type: verbatim
8118 #: ../src/guestfs-actions.pod:1399
8119 #, no-wrap
8120 msgid ""
8121 " int\n"
8122 " guestfs_equal (guestfs_h *g,\n"
8123 "                const char *file1,\n"
8124 "                const char *file2);\n"
8125 "\n"
8126 msgstr ""
8127
8128 #. type: textblock
8129 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:927
8130 msgid ""
8131 "This compares the two files C<file1> and C<file2> and returns true if their "
8132 "content is exactly equal, or false otherwise."
8133 msgstr ""
8134
8135 #. type: textblock
8136 #: ../src/guestfs-actions.pod:1407 ../fish/guestfish-actions.pod:930
8137 msgid "The external L<cmp(1)> program is used for the comparison."
8138 msgstr ""
8139
8140 #. type: =head2
8141 #: ../src/guestfs-actions.pod:1413
8142 msgid "guestfs_exists"
8143 msgstr ""
8144
8145 #. type: verbatim
8146 #: ../src/guestfs-actions.pod:1415
8147 #, no-wrap
8148 msgid ""
8149 " int\n"
8150 " guestfs_exists (guestfs_h *g,\n"
8151 "                 const char *path);\n"
8152 "\n"
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:936
8157 msgid ""
8158 "This returns C<true> if and only if there is a file, directory (or anything) "
8159 "with the given C<path> name."
8160 msgstr ""
8161
8162 #. type: textblock
8163 #: ../src/guestfs-actions.pod:1422
8164 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8165 msgstr ""
8166
8167 #. type: =head2
8168 #: ../src/guestfs-actions.pod:1428
8169 msgid "guestfs_fallocate"
8170 msgstr ""
8171
8172 #. type: verbatim
8173 #: ../src/guestfs-actions.pod:1430
8174 #, no-wrap
8175 msgid ""
8176 " int\n"
8177 " guestfs_fallocate (guestfs_h *g,\n"
8178 "                    const char *path,\n"
8179 "                    int len);\n"
8180 "\n"
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1461 ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
8185 msgid ""
8186 "This command preallocates a file (containing zero bytes) named C<path> of "
8187 "size C<len> bytes.  If the file exists already, it is overwritten."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../src/guestfs-actions.pod:1439 ../fish/guestfish-actions.pod:949
8192 msgid ""
8193 "Do not confuse this with the guestfish-specific C<alloc> command which "
8194 "allocates a file in the host and attaches it as a device."
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:953
8199 msgid ""
8200 "This function is deprecated.  In new code, use the C<fallocate64> call "
8201 "instead."
8202 msgstr ""
8203
8204 #. type: =head2
8205 #: ../src/guestfs-actions.pod:1454
8206 msgid "guestfs_fallocate64"
8207 msgstr ""
8208
8209 #. type: verbatim
8210 #: ../src/guestfs-actions.pod:1456
8211 #, no-wrap
8212 msgid ""
8213 " int\n"
8214 " guestfs_fallocate64 (guestfs_h *g,\n"
8215 "                      const char *path,\n"
8216 "                      int64_t len);\n"
8217 "\n"
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../src/guestfs-actions.pod:1465
8222 msgid ""
8223 "Note that this call allocates disk blocks for the file.  To create a sparse "
8224 "file use C<guestfs_truncate_size> instead."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../src/guestfs-actions.pod:1468
8229 msgid ""
8230 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8231 "oversight it only allowed 30 bit lengths to be specified, effectively "
8232 "limiting the maximum size of files created through that call to 1GB."
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../src/guestfs-actions.pod:1473 ../fish/guestfish-actions.pod:976
8237 msgid ""
8238 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8239 "commands which create a file in the host and attach it as a device."
8240 msgstr ""
8241
8242 #. type: textblock
8243 #: ../src/guestfs-actions.pod:1479
8244 msgid "(Added in 1.3.17)"
8245 msgstr ""
8246
8247 #. type: =head2
8248 #: ../src/guestfs-actions.pod:1481
8249 msgid "guestfs_fgrep"
8250 msgstr ""
8251
8252 #. type: verbatim
8253 #: ../src/guestfs-actions.pod:1483
8254 #, no-wrap
8255 msgid ""
8256 " char **\n"
8257 " guestfs_fgrep (guestfs_h *g,\n"
8258 "                const char *pattern,\n"
8259 "                const char *path);\n"
8260 "\n"
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:984
8265 msgid "This calls the external C<fgrep> program and returns the matching lines."
8266 msgstr ""
8267
8268 #. type: =head2
8269 #: ../src/guestfs-actions.pod:1500
8270 msgid "guestfs_fgrepi"
8271 msgstr ""
8272
8273 #. type: verbatim
8274 #: ../src/guestfs-actions.pod:1502
8275 #, no-wrap
8276 msgid ""
8277 " char **\n"
8278 " guestfs_fgrepi (guestfs_h *g,\n"
8279 "                 const char *pattern,\n"
8280 "                 const char *path);\n"
8281 "\n"
8282 msgstr ""
8283
8284 #. type: textblock
8285 #: ../src/guestfs-actions.pod:1507 ../fish/guestfish-actions.pod:994
8286 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8287 msgstr ""
8288
8289 #. type: =head2
8290 #: ../src/guestfs-actions.pod:1519
8291 msgid "guestfs_file"
8292 msgstr ""
8293
8294 #. type: verbatim
8295 #: ../src/guestfs-actions.pod:1521
8296 #, no-wrap
8297 msgid ""
8298 " char *\n"
8299 " guestfs_file (guestfs_h *g,\n"
8300 "               const char *path);\n"
8301 "\n"
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../src/guestfs-actions.pod:1525 ../fish/guestfish-actions.pod:1004
8306 msgid ""
8307 "This call uses the standard L<file(1)> command to determine the type or "
8308 "contents of the file."
8309 msgstr ""
8310
8311 #. type: textblock
8312 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1007
8313 msgid ""
8314 "This call will also transparently look inside various types of compressed "
8315 "file."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1010
8320 msgid ""
8321 "The exact command which runs is C<file -zb path>.  Note in particular that "
8322 "the filename is not prepended to the output (the I<-b> option)."
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../src/guestfs-actions.pod:1535
8327 msgid ""
8328 "This command can also be used on C</dev/> devices (and partitions, LV "
8329 "names).  You can for example use this to determine if a device contains a "
8330 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1019
8335 msgid ""
8336 "If the C<path> does not begin with C</dev/> then this command only works for "
8337 "the content of regular files.  For other file types (directory, symbolic "
8338 "link etc) it will just return the string C<directory> etc."
8339 msgstr ""
8340
8341 #. type: =head2
8342 #: ../src/guestfs-actions.pod:1550
8343 msgid "guestfs_file_architecture"
8344 msgstr ""
8345
8346 #. type: verbatim
8347 #: ../src/guestfs-actions.pod:1552
8348 #, no-wrap
8349 msgid ""
8350 " char *\n"
8351 " guestfs_file_architecture (guestfs_h *g,\n"
8352 "                            const char *filename);\n"
8353 "\n"
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../src/guestfs-actions.pod:1556 ../fish/guestfish-actions.pod:1028
8358 msgid ""
8359 "This detects the architecture of the binary C<filename>, and returns it if "
8360 "known."
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1031
8365 msgid "Currently defined architectures are:"
8366 msgstr ""
8367
8368 #. type: =item
8369 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1035
8370 msgid "\"i386\""
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1037
8375 msgid ""
8376 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8377 "irrespective of the precise processor requirements of the binary."
8378 msgstr ""
8379
8380 #. type: =item
8381 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1040
8382 msgid "\"x86_64\""
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1042
8387 msgid "64 bit x86-64."
8388 msgstr ""
8389
8390 #. type: =item
8391 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1044
8392 msgid "\"sparc\""
8393 msgstr ""
8394
8395 #. type: textblock
8396 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1046
8397 msgid "32 bit SPARC."
8398 msgstr ""
8399
8400 #. type: =item
8401 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1048
8402 msgid "\"sparc64\""
8403 msgstr ""
8404
8405 #. type: textblock
8406 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1050
8407 msgid "64 bit SPARC V9 and above."
8408 msgstr ""
8409
8410 #. type: =item
8411 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1052
8412 msgid "\"ia64\""
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1054
8417 msgid "Intel Itanium."
8418 msgstr ""
8419
8420 #. type: =item
8421 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1056
8422 msgid "\"ppc\""
8423 msgstr ""
8424
8425 #. type: textblock
8426 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1058
8427 msgid "32 bit Power PC."
8428 msgstr ""
8429
8430 #. type: =item
8431 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1060
8432 msgid "\"ppc64\""
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1062
8437 msgid "64 bit Power PC."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1066
8442 msgid "Libguestfs may return other architecture strings in future."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1068
8447 msgid "The function works on at least the following types of files:"
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1074
8452 msgid "many types of Un*x and Linux binary"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1078
8457 msgid "many types of Un*x and Linux shared library"
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1082
8462 msgid "Windows Win32 and Win64 binaries"
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../src/guestfs-actions.pod:1614 ../fish/guestfish-actions.pod:1086
8467 msgid "Windows Win32 and Win64 DLLs"
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1088
8472 msgid "Win32 binaries and DLLs return C<i386>."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1090
8477 msgid "Win64 binaries and DLLs return C<x86_64>."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1094
8482 msgid "Linux kernel modules"
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1098
8487 msgid "Linux new-style initrd images"
8488 msgstr ""
8489
8490 #. type: textblock
8491 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1102
8492 msgid "some non-x86 Linux vmlinuz kernels"
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1106
8497 msgid "What it can't do currently:"
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1112
8502 msgid "static libraries (libfoo.a)"
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1116
8507 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1120
8512 msgid "x86 Linux vmlinuz kernels"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1122
8517 msgid ""
8518 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8519 "compressed code, and are horribly hard to unpack.  If you want to find the "
8520 "architecture of a kernel, use the architecture of the associated initrd or "
8521 "kernel module(s) instead."
8522 msgstr ""
8523
8524 #. type: textblock
8525 #: ../src/guestfs-actions.pod:1660 ../src/guestfs-actions.pod:1823 ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3406
8526 msgid "(Added in 1.5.3)"
8527 msgstr ""
8528
8529 #. type: =head2
8530 #: ../src/guestfs-actions.pod:1662
8531 msgid "guestfs_filesize"
8532 msgstr ""
8533
8534 #. type: verbatim
8535 #: ../src/guestfs-actions.pod:1664
8536 #, no-wrap
8537 msgid ""
8538 " int64_t\n"
8539 " guestfs_filesize (guestfs_h *g,\n"
8540 "                   const char *file);\n"
8541 "\n"
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1133
8546 msgid "This command returns the size of C<file> in bytes."
8547 msgstr ""
8548
8549 #. type: textblock
8550 #: ../src/guestfs-actions.pod:1670
8551 msgid ""
8552 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
8553 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
8554 "devices, use C<guestfs_blockdev_getsize64>."
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../src/guestfs-actions.pod:1676
8559 msgid "(Added in 1.0.82)"
8560 msgstr ""
8561
8562 #. type: =head2
8563 #: ../src/guestfs-actions.pod:1678
8564 msgid "guestfs_fill"
8565 msgstr ""
8566
8567 #. type: verbatim
8568 #: ../src/guestfs-actions.pod:1680
8569 #, no-wrap
8570 msgid ""
8571 " int\n"
8572 " guestfs_fill (guestfs_h *g,\n"
8573 "               int c,\n"
8574 "               int len,\n"
8575 "               const char *path);\n"
8576 "\n"
8577 msgstr ""
8578
8579 #. type: textblock
8580 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1143
8581 msgid ""
8582 "This command creates a new file called C<path>.  The initial content of the "
8583 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8584 "C<[0..255]>."
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../src/guestfs-actions.pod:1690
8589 msgid ""
8590 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8591 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
8592 "bytes use C<guestfs_fill_pattern>."
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../src/guestfs-actions.pod:1702
8597 msgid "(Added in 1.0.79)"
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../src/guestfs-actions.pod:1704
8602 msgid "guestfs_fill_pattern"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../src/guestfs-actions.pod:1706
8607 #, no-wrap
8608 msgid ""
8609 " int\n"
8610 " guestfs_fill_pattern (guestfs_h *g,\n"
8611 "                       const char *pattern,\n"
8612 "                       int len,\n"
8613 "                       const char *path);\n"
8614 "\n"
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../src/guestfs-actions.pod:1712
8619 msgid ""
8620 "This function is like C<guestfs_fill> except that it creates a new file of "
8621 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
8622 "pattern is truncated if necessary to ensure the length of the file is "
8623 "exactly C<len> bytes."
8624 msgstr ""
8625
8626 #. type: textblock
8627 #: ../src/guestfs-actions.pod:1724
8628 msgid "(Added in 1.3.12)"
8629 msgstr ""
8630
8631 #. type: =head2
8632 #: ../src/guestfs-actions.pod:1726
8633 msgid "guestfs_find"
8634 msgstr ""
8635
8636 #. type: verbatim
8637 #: ../src/guestfs-actions.pod:1728
8638 #, no-wrap
8639 msgid ""
8640 " char **\n"
8641 " guestfs_find (guestfs_h *g,\n"
8642 "               const char *directory);\n"
8643 "\n"
8644 msgstr ""
8645
8646 #. type: textblock
8647 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1165
8648 msgid ""
8649 "This command lists out all files and directories, recursively, starting at "
8650 "C<directory>.  It is essentially equivalent to running the shell command "
8651 "C<find directory -print> but some post-processing happens on the output, "
8652 "described below."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1170
8657 msgid ""
8658 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8659 "structure was:"
8660 msgstr ""
8661
8662 #. type: verbatim
8663 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1173
8664 #, no-wrap
8665 msgid ""
8666 " /tmp/a\n"
8667 " /tmp/b\n"
8668 " /tmp/c/d\n"
8669 "\n"
8670 msgstr ""
8671
8672 #. type: textblock
8673 #: ../src/guestfs-actions.pod:1744
8674 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
8675 msgstr ""
8676
8677 #. type: verbatim
8678 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1180
8679 #, no-wrap
8680 msgid ""
8681 " a\n"
8682 " b\n"
8683 " c\n"
8684 " c/d\n"
8685 "\n"
8686 msgstr ""
8687
8688 #. type: textblock
8689 #: ../src/guestfs-actions.pod:1752 ../fish/guestfish-actions.pod:1185
8690 msgid "If C<directory> is not a directory, then this command returns an error."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1188
8695 msgid "The returned list is sorted."
8696 msgstr ""
8697
8698 #. type: textblock
8699 #: ../src/guestfs-actions.pod:1757
8700 msgid "See also C<guestfs_find0>."
8701 msgstr ""
8702
8703 #. type: textblock
8704 #: ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:5643
8705 msgid "(Added in 1.0.27)"
8706 msgstr ""
8707
8708 #. type: =head2
8709 #: ../src/guestfs-actions.pod:1768
8710 msgid "guestfs_find0"
8711 msgstr ""
8712
8713 #. type: verbatim
8714 #: ../src/guestfs-actions.pod:1770
8715 #, no-wrap
8716 msgid ""
8717 " int\n"
8718 " guestfs_find0 (guestfs_h *g,\n"
8719 "                const char *directory,\n"
8720 "                const char *files);\n"
8721 "\n"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1199
8726 msgid ""
8727 "This command lists out all files and directories, recursively, starting at "
8728 "C<directory>, placing the resulting list in the external file called "
8729 "C<files>."
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../src/guestfs-actions.pod:1779
8734 msgid ""
8735 "This command works the same way as C<guestfs_find> with the following "
8736 "exceptions:"
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1210
8741 msgid "The resulting list is written to an external file."
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1214
8746 msgid ""
8747 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8748 "L<find(1)> option I<-print0>."
8749 msgstr ""
8750
8751 #. type: textblock
8752 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1219
8753 msgid "This command is not limited in the number of names that it can return."
8754 msgstr ""
8755
8756 #. type: textblock
8757 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1224
8758 msgid "The result list is not sorted."
8759 msgstr ""
8760
8761 #. type: textblock
8762 #: ../src/guestfs-actions.pod:1806
8763 msgid "(Added in 1.0.74)"
8764 msgstr ""
8765
8766 #. type: =head2
8767 #: ../src/guestfs-actions.pod:1808
8768 msgid "guestfs_findfs_label"
8769 msgstr ""
8770
8771 #. type: verbatim
8772 #: ../src/guestfs-actions.pod:1810
8773 #, no-wrap
8774 msgid ""
8775 " char *\n"
8776 " guestfs_findfs_label (guestfs_h *g,\n"
8777 "                       const char *label);\n"
8778 "\n"
8779 msgstr ""
8780
8781 #. type: textblock
8782 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1234
8783 msgid ""
8784 "This command searches the filesystems and returns the one which has the "
8785 "given label.  An error is returned if no such filesystem can be found."
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../src/guestfs-actions.pod:1818
8790 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
8791 msgstr ""
8792
8793 #. type: =head2
8794 #: ../src/guestfs-actions.pod:1825
8795 msgid "guestfs_findfs_uuid"
8796 msgstr ""
8797
8798 #. type: verbatim
8799 #: ../src/guestfs-actions.pod:1827
8800 #, no-wrap
8801 msgid ""
8802 " char *\n"
8803 " guestfs_findfs_uuid (guestfs_h *g,\n"
8804 "                      const char *uuid);\n"
8805 "\n"
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../src/guestfs-actions.pod:1831 ../fish/guestfish-actions.pod:1244
8810 msgid ""
8811 "This command searches the filesystems and returns the one which has the "
8812 "given UUID.  An error is returned if no such filesystem can be found."
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../src/guestfs-actions.pod:1835
8817 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
8818 msgstr ""
8819
8820 #. type: =head2
8821 #: ../src/guestfs-actions.pod:1842
8822 msgid "guestfs_fsck"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../src/guestfs-actions.pod:1844
8827 #, no-wrap
8828 msgid ""
8829 " int\n"
8830 " guestfs_fsck (guestfs_h *g,\n"
8831 "               const char *fstype,\n"
8832 "               const char *device);\n"
8833 "\n"
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../src/guestfs-actions.pod:1849 ../fish/guestfish-actions.pod:1254
8838 msgid ""
8839 "This runs the filesystem checker (fsck) on C<device> which should have "
8840 "filesystem type C<fstype>."
8841 msgstr ""
8842
8843 #. type: textblock
8844 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1257
8845 msgid ""
8846 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8847 "codes from C<fsck>."
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1266
8852 msgid "Multiple status codes can be summed together."
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1270
8857 msgid ""
8858 "A non-zero return code can mean \"success\", for example if errors have been "
8859 "corrected on the filesystem."
8860 msgstr ""
8861
8862 #. type: textblock
8863 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1275
8864 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8865 msgstr ""
8866
8867 #. type: textblock
8868 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1280
8869 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8870 msgstr ""
8871
8872 #. type: textblock
8873 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:7339
8874 msgid "(Added in 1.0.16)"
8875 msgstr ""
8876
8877 #. type: =head2
8878 #: ../src/guestfs-actions.pod:1881
8879 msgid "guestfs_get_append"
8880 msgstr ""
8881
8882 #. type: verbatim
8883 #: ../src/guestfs-actions.pod:1883
8884 #, no-wrap
8885 msgid ""
8886 " const char *\n"
8887 " guestfs_get_append (guestfs_h *g);\n"
8888 "\n"
8889 msgstr ""
8890
8891 #. type: textblock
8892 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1286
8893 msgid ""
8894 "Return the additional kernel options which are added to the guest kernel "
8895 "command line."
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1289
8900 msgid "If C<NULL> then no options are added."
8901 msgstr ""
8902
8903 #. type: textblock
8904 #: ../src/guestfs-actions.pod:1891
8905 msgid ""
8906 "This function returns a string which may be NULL.  There is no way to return "
8907 "an error from this function.  The string is owned by the guest handle and "
8908 "must I<not> be freed."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:5321 ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6253 ../src/guestfs-actions.pod:7010 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7382
8913 msgid "(Added in 1.0.26)"
8914 msgstr ""
8915
8916 #. type: =head2
8917 #: ../src/guestfs-actions.pod:1897
8918 msgid "guestfs_get_attach_method"
8919 msgstr ""
8920
8921 #. type: verbatim
8922 #: ../src/guestfs-actions.pod:1899
8923 #, no-wrap
8924 msgid ""
8925 " char *\n"
8926 " guestfs_get_attach_method (guestfs_h *g);\n"
8927 "\n"
8928 msgstr ""
8929
8930 #. type: textblock
8931 #: ../src/guestfs-actions.pod:1902
8932 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
8933 msgstr ""
8934
8935 #. type: =head2
8936 #: ../src/guestfs-actions.pod:1907
8937 msgid "guestfs_get_autosync"
8938 msgstr ""
8939
8940 #. type: verbatim
8941 #: ../src/guestfs-actions.pod:1909
8942 #, no-wrap
8943 msgid ""
8944 " int\n"
8945 " guestfs_get_autosync (guestfs_h *g);\n"
8946 "\n"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1301
8951 msgid "Get the autosync flag."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../src/guestfs-actions.pod:1918
8956 msgid "guestfs_get_direct"
8957 msgstr ""
8958
8959 #. type: verbatim
8960 #: ../src/guestfs-actions.pod:1920
8961 #, no-wrap
8962 msgid ""
8963 " int\n"
8964 " guestfs_get_direct (guestfs_h *g);\n"
8965 "\n"
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1307
8970 msgid "Return the direct appliance mode flag."
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:5870
8975 msgid "(Added in 1.0.72)"
8976 msgstr ""
8977
8978 #. type: =head2
8979 #: ../src/guestfs-actions.pod:1929
8980 msgid "guestfs_get_e2label"
8981 msgstr ""
8982
8983 #. type: verbatim
8984 #: ../src/guestfs-actions.pod:1931
8985 #, no-wrap
8986 msgid ""
8987 " char *\n"
8988 " guestfs_get_e2label (guestfs_h *g,\n"
8989 "                      const char *device);\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1313
8995 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1316
9000 msgid ""
9001 "This function is deprecated.  In new code, use the C<vfs_label> call "
9002 "instead."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5907
9007 msgid "(Added in 1.0.15)"
9008 msgstr ""
9009
9010 #. type: =head2
9011 #: ../src/guestfs-actions.pod:1950
9012 msgid "guestfs_get_e2uuid"
9013 msgstr ""
9014
9015 #. type: verbatim
9016 #: ../src/guestfs-actions.pod:1952
9017 #, no-wrap
9018 msgid ""
9019 " char *\n"
9020 " guestfs_get_e2uuid (guestfs_h *g,\n"
9021 "                     const char *device);\n"
9022 "\n"
9023 msgstr ""
9024
9025 #. type: textblock
9026 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1327
9027 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1330
9032 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9033 msgstr ""
9034
9035 #. type: =head2
9036 #: ../src/guestfs-actions.pod:1971
9037 msgid "guestfs_get_memsize"
9038 msgstr ""
9039
9040 #. type: verbatim
9041 #: ../src/guestfs-actions.pod:1973
9042 #, no-wrap
9043 msgid ""
9044 " int\n"
9045 " guestfs_get_memsize (guestfs_h *g);\n"
9046 "\n"
9047 msgstr ""
9048
9049 #. type: textblock
9050 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1341
9051 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../src/guestfs-actions.pod:1979
9056 msgid ""
9057 "If C<guestfs_set_memsize> was not called on this handle, and if "
9058 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9059 "value for memsize."
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:5923 ../src/guestfs-actions.pod:6030 ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399 ../fish/guestfish-actions.pod:3993 ../fish/guestfish-actions.pod:4080
9064 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9065 msgstr ""
9066
9067 #. type: textblock
9068 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:4391 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4607 ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4638 ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4668 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5928 ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6776
9069 msgid "(Added in 1.0.55)"
9070 msgstr ""
9071
9072 #. type: =head2
9073 #: ../src/guestfs-actions.pod:1990
9074 msgid "guestfs_get_network"
9075 msgstr ""
9076
9077 #. type: verbatim
9078 #: ../src/guestfs-actions.pod:1992
9079 #, no-wrap
9080 msgid ""
9081 " int\n"
9082 " guestfs_get_network (guestfs_h *g);\n"
9083 "\n"
9084 msgstr ""
9085
9086 #. type: textblock
9087 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1355
9088 msgid "This returns the enable network flag."
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:5947
9093 msgid "(Added in 1.5.4)"
9094 msgstr ""
9095
9096 #. type: =head2
9097 #: ../src/guestfs-actions.pod:2001
9098 msgid "guestfs_get_path"
9099 msgstr ""
9100
9101 #. type: verbatim
9102 #: ../src/guestfs-actions.pod:2003
9103 #, no-wrap
9104 msgid ""
9105 " const char *\n"
9106 " guestfs_get_path (guestfs_h *g);\n"
9107 "\n"
9108 msgstr ""
9109
9110 #. type: textblock
9111 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1361
9112 msgid "Return the current search path."
9113 msgstr ""
9114
9115 #. type: textblock
9116 #: ../src/guestfs-actions.pod:2008 ../fish/guestfish-actions.pod:1363
9117 msgid ""
9118 "This is always non-NULL.  If it wasn't set already, then this will return "
9119 "the default path."
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2040
9124 msgid ""
9125 "This function returns a string, or NULL on error.  The string is owned by "
9126 "the guest handle and must I<not> be freed."
9127 msgstr ""
9128
9129 #. type: =head2
9130 #: ../src/guestfs-actions.pod:2016
9131 msgid "guestfs_get_pid"
9132 msgstr ""
9133
9134 #. type: verbatim
9135 #: ../src/guestfs-actions.pod:2018
9136 #, no-wrap
9137 msgid ""
9138 " int\n"
9139 " guestfs_get_pid (guestfs_h *g);\n"
9140 "\n"
9141 msgstr ""
9142
9143 #. type: textblock
9144 #: ../src/guestfs-actions.pod:2021 ../fish/guestfish-actions.pod:1372
9145 msgid ""
9146 "Return the process ID of the qemu subprocess.  If there is no qemu "
9147 "subprocess, then this will return an error."
9148 msgstr ""
9149
9150 #. type: textblock
9151 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1375
9152 msgid "This is an internal call used for debugging and testing."
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../src/guestfs-actions.pod:2028
9157 msgid "(Added in 1.0.56)"
9158 msgstr ""
9159
9160 #. type: =head2
9161 #: ../src/guestfs-actions.pod:2030
9162 msgid "guestfs_get_qemu"
9163 msgstr ""
9164
9165 #. type: verbatim
9166 #: ../src/guestfs-actions.pod:2032
9167 #, no-wrap
9168 msgid ""
9169 " const char *\n"
9170 " guestfs_get_qemu (guestfs_h *g);\n"
9171 "\n"
9172 msgstr ""
9173
9174 #. type: textblock
9175 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1381
9176 msgid "Return the current qemu binary."
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../src/guestfs-actions.pod:2037 ../fish/guestfish-actions.pod:1383
9181 msgid ""
9182 "This is always non-NULL.  If it wasn't set already, then this will return "
9183 "the default qemu binary name."
9184 msgstr ""
9185
9186 #. type: textblock
9187 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5992
9188 msgid "(Added in 1.0.6)"
9189 msgstr ""
9190
9191 #. type: =head2
9192 #: ../src/guestfs-actions.pod:2045
9193 msgid "guestfs_get_recovery_proc"
9194 msgstr ""
9195
9196 #. type: verbatim
9197 #: ../src/guestfs-actions.pod:2047
9198 #, no-wrap
9199 msgid ""
9200 " int\n"
9201 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9202 "\n"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../src/guestfs-actions.pod:2050 ../fish/guestfish-actions.pod:1390
9207 msgid "Return the recovery process enabled flag."
9208 msgstr ""
9209
9210 #. type: textblock
9211 #: ../src/guestfs-actions.pod:2054 ../src/guestfs-actions.pod:3501 ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:4198 ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6679 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6891
9212 msgid "(Added in 1.0.77)"
9213 msgstr ""
9214
9215 #. type: =head2
9216 #: ../src/guestfs-actions.pod:2056
9217 msgid "guestfs_get_selinux"
9218 msgstr ""
9219
9220 #. type: verbatim
9221 #: ../src/guestfs-actions.pod:2058
9222 #, no-wrap
9223 msgid ""
9224 " int\n"
9225 " guestfs_get_selinux (guestfs_h *g);\n"
9226 "\n"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../src/guestfs-actions.pod:2061
9231 msgid ""
9232 "This returns the current setting of the selinux flag which is passed to the "
9233 "appliance at boot time.  See C<guestfs_set_selinux>."
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6093
9238 msgid "(Added in 1.0.67)"
9239 msgstr ""
9240
9241 #. type: =head2
9242 #: ../src/guestfs-actions.pod:2071
9243 msgid "guestfs_get_state"
9244 msgstr ""
9245
9246 #. type: verbatim
9247 #: ../src/guestfs-actions.pod:2073
9248 #, no-wrap
9249 msgid ""
9250 " int\n"
9251 " guestfs_get_state (guestfs_h *g);\n"
9252 "\n"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:2076 ../fish/guestfish-actions.pod:1406
9257 msgid ""
9258 "This returns the current state as an opaque integer.  This is only useful "
9259 "for printing debug and internal error messages."
9260 msgstr ""
9261
9262 #. type: textblock
9263 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:3299 ../src/guestfs-actions.pod:3328 ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3416 ../fish/guestfish-actions.pod:1409 ../fish/guestfish-actions.pod:2323 ../fish/guestfish-actions.pod:2341 ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2395
9264 msgid "For more information on states, see L<guestfs(3)>."
9265 msgstr ""
9266
9267 #. type: =head2
9268 #: ../src/guestfs-actions.pod:2085
9269 msgid "guestfs_get_trace"
9270 msgstr ""
9271
9272 #. type: verbatim
9273 #: ../src/guestfs-actions.pod:2087
9274 #, no-wrap
9275 msgid ""
9276 " int\n"
9277 " guestfs_get_trace (guestfs_h *g);\n"
9278 "\n"
9279 msgstr ""
9280
9281 #. type: textblock
9282 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
9283 msgid "Return the command trace flag."
9284 msgstr ""
9285
9286 #. type: =head2
9287 #: ../src/guestfs-actions.pod:2096
9288 msgid "guestfs_get_umask"
9289 msgstr ""
9290
9291 #. type: verbatim
9292 #: ../src/guestfs-actions.pod:2098
9293 #, no-wrap
9294 msgid ""
9295 " int\n"
9296 " guestfs_get_umask (guestfs_h *g);\n"
9297 "\n"
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../src/guestfs-actions.pod:2101
9302 msgid ""
9303 "Return the current umask.  By default the umask is C<022> unless it has been "
9304 "set by calling C<guestfs_umask>."
9305 msgstr ""
9306
9307 #. type: =head2
9308 #: ../src/guestfs-actions.pod:2108
9309 msgid "guestfs_get_verbose"
9310 msgstr ""
9311
9312 #. type: verbatim
9313 #: ../src/guestfs-actions.pod:2110
9314 #, no-wrap
9315 msgid ""
9316 " int\n"
9317 " guestfs_get_verbose (guestfs_h *g);\n"
9318 "\n"
9319 msgstr ""
9320
9321 #. type: textblock
9322 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1428
9323 msgid "This returns the verbose messages flag."
9324 msgstr ""
9325
9326 #. type: =head2
9327 #: ../src/guestfs-actions.pod:2119
9328 msgid "guestfs_getcon"
9329 msgstr ""
9330
9331 #. type: verbatim
9332 #: ../src/guestfs-actions.pod:2121
9333 #, no-wrap
9334 msgid ""
9335 " char *\n"
9336 " guestfs_getcon (guestfs_h *g);\n"
9337 "\n"
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:2124 ../fish/guestfish-actions.pod:1434
9342 msgid "This gets the SELinux security context of the daemon."
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../src/guestfs-actions.pod:2126
9347 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9348 msgstr ""
9349
9350 #. type: =head2
9351 #: ../src/guestfs-actions.pod:2134
9352 msgid "guestfs_getxattr"
9353 msgstr ""
9354
9355 #. type: verbatim
9356 #: ../src/guestfs-actions.pod:2136
9357 #, no-wrap
9358 msgid ""
9359 " char *\n"
9360 " guestfs_getxattr (guestfs_h *g,\n"
9361 "                   const char *path,\n"
9362 "                   const char *name,\n"
9363 "                   size_t *size_r);\n"
9364 "\n"
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../src/guestfs-actions.pod:2142
9369 msgid ""
9370 "Get a single extended attribute from file C<path> named C<name>.  This call "
9371 "follows symlinks.  If you want to lookup an extended attribute for the "
9372 "symlink itself, use C<guestfs_lgetxattr>."
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:3515
9377 msgid ""
9378 "Normally it is better to get all extended attributes from a file in one go "
9379 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9380 "implementations are buggy and do not provide a way to list out attributes.  "
9381 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9382 "extended attributes you want in advance and call this function."
9383 msgstr ""
9384
9385 #. type: textblock
9386 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:3522 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2460
9387 msgid ""
9388 "Extended attribute values are blobs of binary data.  If there is no extended "
9389 "attribute named C<name>, this returns an error."
9390 msgstr ""
9391
9392 #. type: textblock
9393 #: ../src/guestfs-actions.pod:2156
9394 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9395 msgstr ""
9396
9397 #. type: textblock
9398 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:5244 ../src/guestfs-actions.pod:5270 ../src/guestfs-actions.pod:5451
9399 msgid ""
9400 "This function returns a buffer, or NULL on error.  The size of the returned "
9401 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9402 "after use>."
9403 msgstr ""
9404
9405 #. type: textblock
9406 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:3531
9407 msgid "(Added in 1.7.24)"
9408 msgstr ""
9409
9410 #. type: =head2
9411 #: ../src/guestfs-actions.pod:2164
9412 msgid "guestfs_getxattrs"
9413 msgstr ""
9414
9415 #. type: verbatim
9416 #: ../src/guestfs-actions.pod:2166
9417 #, no-wrap
9418 msgid ""
9419 " struct guestfs_xattr_list *\n"
9420 " guestfs_getxattrs (guestfs_h *g,\n"
9421 "                    const char *path);\n"
9422 "\n"
9423 msgstr ""
9424
9425 #. type: textblock
9426 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1463
9427 msgid "This call lists the extended attributes of the file or directory C<path>."
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1466
9432 msgid ""
9433 "At the system call level, this is a combination of the L<listxattr(2)> and "
9434 "L<getxattr(2)> calls."
9435 msgstr ""
9436
9437 #. type: textblock
9438 #: ../src/guestfs-actions.pod:2176
9439 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9440 msgstr ""
9441
9442 #. type: textblock
9443 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:4194
9444 msgid ""
9445 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9446 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9447 msgstr ""
9448
9449 #. type: textblock
9450 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:3547 ../src/guestfs-actions.pod:3712 ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:5624 ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:7447
9451 msgid "(Added in 1.0.59)"
9452 msgstr ""
9453
9454 #. type: =head2
9455 #: ../src/guestfs-actions.pod:2184
9456 msgid "guestfs_glob_expand"
9457 msgstr ""
9458
9459 #. type: verbatim
9460 #: ../src/guestfs-actions.pod:2186
9461 #, no-wrap
9462 msgid ""
9463 " char **\n"
9464 " guestfs_glob_expand (guestfs_h *g,\n"
9465 "                      const char *pattern);\n"
9466 "\n"
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../src/guestfs-actions.pod:2190 ../fish/guestfish-actions.pod:1475
9471 msgid ""
9472 "This command searches for all the pathnames matching C<pattern> according to "
9473 "the wildcard expansion rules used by the shell."
9474 msgstr ""
9475
9476 #. type: textblock
9477 #: ../src/guestfs-actions.pod:2194 ../fish/guestfish-actions.pod:1479
9478 msgid "If no paths match, then this returns an empty list (note: not an error)."
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1482
9483 msgid ""
9484 "It is just a wrapper around the C L<glob(3)> function with flags "
9485 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6277 ../src/guestfs-actions.pod:6294
9490 msgid "(Added in 1.0.50)"
9491 msgstr ""
9492
9493 #. type: =head2
9494 #: ../src/guestfs-actions.pod:2207
9495 msgid "guestfs_grep"
9496 msgstr ""
9497
9498 #. type: verbatim
9499 #: ../src/guestfs-actions.pod:2209
9500 #, no-wrap
9501 msgid ""
9502 " char **\n"
9503 " guestfs_grep (guestfs_h *g,\n"
9504 "               const char *regex,\n"
9505 "               const char *path);\n"
9506 "\n"
9507 msgstr ""
9508
9509 #. type: textblock
9510 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1490
9511 msgid "This calls the external C<grep> program and returns the matching lines."
9512 msgstr ""
9513
9514 #. type: =head2
9515 #: ../src/guestfs-actions.pod:2226
9516 msgid "guestfs_grepi"
9517 msgstr ""
9518
9519 #. type: verbatim
9520 #: ../src/guestfs-actions.pod:2228
9521 #, no-wrap
9522 msgid ""
9523 " char **\n"
9524 " guestfs_grepi (guestfs_h *g,\n"
9525 "                const char *regex,\n"
9526 "                const char *path);\n"
9527 "\n"
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1500
9532 msgid "This calls the external C<grep -i> program and returns the matching lines."
9533 msgstr ""
9534
9535 #. type: =head2
9536 #: ../src/guestfs-actions.pod:2245
9537 msgid "guestfs_grub_install"
9538 msgstr ""
9539
9540 #. type: verbatim
9541 #: ../src/guestfs-actions.pod:2247
9542 #, no-wrap
9543 msgid ""
9544 " int\n"
9545 " guestfs_grub_install (guestfs_h *g,\n"
9546 "                       const char *root,\n"
9547 "                       const char *device);\n"
9548 "\n"
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1510
9553 msgid ""
9554 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
9555 "the root directory being C<root>."
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1513
9560 msgid ""
9561 "Note: If grub-install reports the error \"No suitable drive was found in the "
9562 "generated device map.\" it may be that you need to create a "
9563 "C</boot/grub/device.map> file first that contains the mapping between grub "
9564 "device names and Linux device names.  It is usually sufficient to create a "
9565 "file containing:"
9566 msgstr ""
9567
9568 #. type: verbatim
9569 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1520
9570 #, no-wrap
9571 msgid ""
9572 " (hd0) /dev/vda\n"
9573 "\n"
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1522
9578 msgid "replacing C</dev/vda> with the name of the installation device."
9579 msgstr ""
9580
9581 #. type: textblock
9582 #: ../src/guestfs-actions.pod:2268
9583 msgid "(Added in 1.0.17)"
9584 msgstr ""
9585
9586 #. type: =head2
9587 #: ../src/guestfs-actions.pod:2270
9588 msgid "guestfs_head"
9589 msgstr ""
9590
9591 #. type: verbatim
9592 #: ../src/guestfs-actions.pod:2272
9593 #, no-wrap
9594 msgid ""
9595 " char **\n"
9596 " guestfs_head (guestfs_h *g,\n"
9597 "               const char *path);\n"
9598 "\n"
9599 msgstr ""
9600
9601 #. type: textblock
9602 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1528
9603 msgid ""
9604 "This command returns up to the first 10 lines of a file as a list of "
9605 "strings."
9606 msgstr ""
9607
9608 #. type: =head2
9609 #: ../src/guestfs-actions.pod:2288
9610 msgid "guestfs_head_n"
9611 msgstr ""
9612
9613 #. type: verbatim
9614 #: ../src/guestfs-actions.pod:2290
9615 #, no-wrap
9616 msgid ""
9617 " char **\n"
9618 " guestfs_head_n (guestfs_h *g,\n"
9619 "                 int nrlines,\n"
9620 "                 const char *path);\n"
9621 "\n"
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1538
9626 msgid ""
9627 "If the parameter C<nrlines> is a positive number, this returns the first "
9628 "C<nrlines> lines of the file C<path>."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1541
9633 msgid ""
9634 "If the parameter C<nrlines> is a negative number, this returns lines from "
9635 "the file C<path>, excluding the last C<nrlines> lines."
9636 msgstr ""
9637
9638 #. type: textblock
9639 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4430
9640 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9641 msgstr ""
9642
9643 #. type: =head2
9644 #: ../src/guestfs-actions.pod:2312
9645 msgid "guestfs_hexdump"
9646 msgstr ""
9647
9648 #. type: verbatim
9649 #: ../src/guestfs-actions.pod:2314
9650 #, no-wrap
9651 msgid ""
9652 " char *\n"
9653 " guestfs_hexdump (guestfs_h *g,\n"
9654 "                  const char *path);\n"
9655 "\n"
9656 msgstr ""
9657
9658 #. type: textblock
9659 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1553
9660 msgid ""
9661 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9662 "human-readable, canonical hex dump of the file."
9663 msgstr ""
9664
9665 #. type: textblock
9666 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6413
9667 msgid "(Added in 1.0.22)"
9668 msgstr ""
9669
9670 #. type: =head2
9671 #: ../src/guestfs-actions.pod:2329
9672 msgid "guestfs_initrd_cat"
9673 msgstr ""
9674
9675 #. type: verbatim
9676 #: ../src/guestfs-actions.pod:2331
9677 #, no-wrap
9678 msgid ""
9679 " char *\n"
9680 " guestfs_initrd_cat (guestfs_h *g,\n"
9681 "                     const char *initrdpath,\n"
9682 "                     const char *filename,\n"
9683 "                     size_t *size_r);\n"
9684 "\n"
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1563
9689 msgid ""
9690 "This command unpacks the file C<filename> from the initrd file called "
9691 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9692 "character."
9693 msgstr ""
9694
9695 #. type: textblock
9696 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1567
9697 msgid ""
9698 "For example, in guestfish you could use the following command to examine the "
9699 "boot script (usually called C</init>)  contained in a Linux initrd or "
9700 "initramfs image:"
9701 msgstr ""
9702
9703 #. type: verbatim
9704 #: ../src/guestfs-actions.pod:2345 ../fish/guestfish-actions.pod:1571
9705 #, no-wrap
9706 msgid ""
9707 " initrd-cat /boot/initrd-<version>.img init\n"
9708 "\n"
9709 msgstr ""
9710
9711 #. type: textblock
9712 #: ../src/guestfs-actions.pod:2347
9713 msgid "See also C<guestfs_initrd_list>."
9714 msgstr ""
9715
9716 #. type: =head2
9717 #: ../src/guestfs-actions.pod:2358
9718 msgid "guestfs_initrd_list"
9719 msgstr ""
9720
9721 #. type: verbatim
9722 #: ../src/guestfs-actions.pod:2360
9723 #, no-wrap
9724 msgid ""
9725 " char **\n"
9726 " guestfs_initrd_list (guestfs_h *g,\n"
9727 "                      const char *path);\n"
9728 "\n"
9729 msgstr ""
9730
9731 #. type: textblock
9732 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1582
9733 msgid "This command lists out files contained in an initrd."
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1584
9738 msgid ""
9739 "The files are listed without any initial C</> character.  The files are "
9740 "listed in the order they appear (not necessarily alphabetical).  Directory "
9741 "names are listed as separate items."
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1588
9746 msgid ""
9747 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9748 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9749 "files)."
9750 msgstr ""
9751
9752 #. type: =head2
9753 #: ../src/guestfs-actions.pod:2380
9754 msgid "guestfs_inotify_add_watch"
9755 msgstr ""
9756
9757 #. type: verbatim
9758 #: ../src/guestfs-actions.pod:2382
9759 #, no-wrap
9760 msgid ""
9761 " int64_t\n"
9762 " guestfs_inotify_add_watch (guestfs_h *g,\n"
9763 "                            const char *path,\n"
9764 "                            int mask);\n"
9765 "\n"
9766 msgstr ""
9767
9768 #. type: textblock
9769 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1596
9770 msgid "Watch C<path> for the events listed in C<mask>."
9771 msgstr ""
9772
9773 #. type: textblock
9774 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1598
9775 msgid ""
9776 "Note that if C<path> is a directory then events within that directory are "
9777 "watched, but this does I<not> happen recursively (in subdirectories)."
9778 msgstr ""
9779
9780 #. type: textblock
9781 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1602
9782 msgid ""
9783 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9784 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9785 msgstr ""
9786
9787 #. type: =head2
9788 #: ../src/guestfs-actions.pod:2401
9789 msgid "guestfs_inotify_close"
9790 msgstr ""
9791
9792 #. type: verbatim
9793 #: ../src/guestfs-actions.pod:2403
9794 #, no-wrap
9795 msgid ""
9796 " int\n"
9797 " guestfs_inotify_close (guestfs_h *g);\n"
9798 "\n"
9799 msgstr ""
9800
9801 #. type: textblock
9802 #: ../src/guestfs-actions.pod:2406 ../fish/guestfish-actions.pod:1610
9803 msgid ""
9804 "This closes the inotify handle which was previously opened by inotify_init.  "
9805 "It removes all watches, throws away any pending events, and deallocates all "
9806 "resources."
9807 msgstr ""
9808
9809 #. type: =head2
9810 #: ../src/guestfs-actions.pod:2414
9811 msgid "guestfs_inotify_files"
9812 msgstr ""
9813
9814 #. type: verbatim
9815 #: ../src/guestfs-actions.pod:2416
9816 #, no-wrap
9817 msgid ""
9818 " char **\n"
9819 " guestfs_inotify_files (guestfs_h *g);\n"
9820 "\n"
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../src/guestfs-actions.pod:2419
9825 msgid ""
9826 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
9827 "returns a list of pathnames of objects that were touched.  The returned "
9828 "pathnames are sorted and deduplicated."
9829 msgstr ""
9830
9831 #. type: =head2
9832 #: ../src/guestfs-actions.pod:2429
9833 msgid "guestfs_inotify_init"
9834 msgstr ""
9835
9836 #. type: verbatim
9837 #: ../src/guestfs-actions.pod:2431
9838 #, no-wrap
9839 msgid ""
9840 " int\n"
9841 " guestfs_inotify_init (guestfs_h *g,\n"
9842 "                       int maxevents);\n"
9843 "\n"
9844 msgstr ""
9845
9846 #. type: textblock
9847 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1626
9848 msgid ""
9849 "This command creates a new inotify handle.  The inotify subsystem can be "
9850 "used to notify events which happen to objects in the guest filesystem."
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../src/guestfs-actions.pod:2439
9855 msgid ""
9856 "C<maxevents> is the maximum number of events which will be queued up between "
9857 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
9858 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
9859 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
9860 "throws away events, but records the fact that it threw them away by setting "
9861 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
9862 "C<guestfs_inotify_read>)."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../src/guestfs-actions.pod:2449
9867 msgid ""
9868 "Before any events are generated, you have to add some watches to the "
9869 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
9870 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
9871 msgstr ""
9872
9873 #. type: textblock
9874 #: ../src/guestfs-actions.pod:2455
9875 msgid ""
9876 "Queued up events should be read periodically by calling "
9877 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
9878 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
9879 "often enough then you risk the internal queue overflowing."
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../src/guestfs-actions.pod:2462
9884 msgid ""
9885 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
9886 "This also removes any watches automatically."
9887 msgstr ""
9888
9889 #. type: textblock
9890 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1657
9891 msgid ""
9892 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9893 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9894 "that there is one global inotify handle per libguestfs instance."
9895 msgstr ""
9896
9897 #. type: =head2
9898 #: ../src/guestfs-actions.pod:2475
9899 msgid "guestfs_inotify_read"
9900 msgstr ""
9901
9902 #. type: verbatim
9903 #: ../src/guestfs-actions.pod:2477
9904 #, no-wrap
9905 msgid ""
9906 " struct guestfs_inotify_event_list *\n"
9907 " guestfs_inotify_read (guestfs_h *g);\n"
9908 "\n"
9909 msgstr ""
9910
9911 #. type: textblock
9912 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1666
9913 msgid ""
9914 "Return the complete queue of events that have happened since the previous "
9915 "read call."
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1669
9920 msgid "If no events have happened, this returns an empty list."
9921 msgstr ""
9922
9923 #. type: textblock
9924 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1671
9925 msgid ""
9926 "I<Note>: In order to make sure that all events have been read, you must call "
9927 "this function repeatedly until it returns an empty list.  The reason is that "
9928 "the call will read events up to the maximum appliance-to-host message size "
9929 "and leave remaining events in the queue."
9930 msgstr ""
9931
9932 #. type: textblock
9933 #: ../src/guestfs-actions.pod:2491
9934 msgid ""
9935 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
9936 "there was an error.  I<The caller must call "
9937 "C<guestfs_free_inotify_event_list> after use>."
9938 msgstr ""
9939
9940 #. type: =head2
9941 #: ../src/guestfs-actions.pod:2497
9942 msgid "guestfs_inotify_rm_watch"
9943 msgstr ""
9944
9945 #. type: verbatim
9946 #: ../src/guestfs-actions.pod:2499
9947 #, no-wrap
9948 msgid ""
9949 " int\n"
9950 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
9951 "                           int wd);\n"
9952 "\n"
9953 msgstr ""
9954
9955 #. type: textblock
9956 #: ../src/guestfs-actions.pod:2503
9957 msgid ""
9958 "Remove a previously defined inotify watch.  See "
9959 "C<guestfs_inotify_add_watch>."
9960 msgstr ""
9961
9962 #. type: =head2
9963 #: ../src/guestfs-actions.pod:2510
9964 msgid "guestfs_inspect_get_arch"
9965 msgstr ""
9966
9967 #. type: verbatim
9968 #: ../src/guestfs-actions.pod:2512
9969 #, no-wrap
9970 msgid ""
9971 " char *\n"
9972 " guestfs_inspect_get_arch (guestfs_h *g,\n"
9973 "                           const char *root);\n"
9974 "\n"
9975 msgstr ""
9976
9977 #. type: textblock
9978 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2632 ../src/guestfs-actions.pod:2676 ../src/guestfs-actions.pod:2702 ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2854 ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:2914 ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3096 ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3132
9979 msgid ""
9980 "This function should only be called with a root device string as returned by "
9981 "C<guestfs_inspect_os>."
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../src/guestfs-actions.pod:2519
9986 msgid ""
9987 "This returns the architecture of the inspected operating system.  The "
9988 "possible return values are listed under C<guestfs_file_architecture>."
9989 msgstr ""
9990
9991 #. type: textblock
9992 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1695
9993 msgid ""
9994 "If the architecture could not be determined, then the string C<unknown> is "
9995 "returned."
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2619 ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:2778 ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2901 ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:3022 ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3066 ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3103 ../src/guestfs-actions.pod:3122 ../src/guestfs-actions.pod:3225 ../src/guestfs-actions.pod:3266 ../fish/guestfish-actions.pod:1698 ../fish/guestfish-actions.pod:1784 ../fish/guestfish-actions.pod:1872 ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:2002 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2062 ../fish/guestfish-actions.pod:2097 ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2129 ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2155 ../fish/guestfish-actions.pod:2170 ../fish/guestfish-actions.pod:2269 ../fish/guestfish-actions.pod:2303
10000 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10001 msgstr ""
10002
10003 #. type: =head2
10004 #: ../src/guestfs-actions.pod:2533
10005 msgid "guestfs_inspect_get_distro"
10006 msgstr ""
10007
10008 #. type: verbatim
10009 #: ../src/guestfs-actions.pod:2535
10010 #, no-wrap
10011 msgid ""
10012 " char *\n"
10013 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10014 "                             const char *root);\n"
10015 "\n"
10016 msgstr ""
10017
10018 #. type: textblock
10019 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1707
10020 msgid "This returns the distro (distribution) of the inspected operating system."
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1710
10025 msgid "Currently defined distros are:"
10026 msgstr ""
10027
10028 #. type: =item
10029 #: ../src/guestfs-actions.pod:2549 ../fish/guestfish-actions.pod:1714
10030 msgid "\"archlinux\""
10031 msgstr ""
10032
10033 #. type: textblock
10034 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1716
10035 msgid "Arch Linux."
10036 msgstr ""
10037
10038 #. type: =item
10039 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1718
10040 msgid "\"centos\""
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1720
10045 msgid "CentOS."
10046 msgstr ""
10047
10048 #. type: =item
10049 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1722
10050 msgid "\"debian\""
10051 msgstr ""
10052
10053 #. type: textblock
10054 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1724
10055 msgid "Debian."
10056 msgstr ""
10057
10058 #. type: =item
10059 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1726
10060 msgid "\"fedora\""
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1728
10065 msgid "Fedora."
10066 msgstr ""
10067
10068 #. type: =item
10069 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1730
10070 msgid "\"gentoo\""
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1732
10075 msgid "Gentoo."
10076 msgstr ""
10077
10078 #. type: =item
10079 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1734
10080 msgid "\"linuxmint\""
10081 msgstr ""
10082
10083 #. type: textblock
10084 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1736
10085 msgid "Linux Mint."
10086 msgstr ""
10087
10088 #. type: =item
10089 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1738
10090 msgid "\"mandriva\""
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1740
10095 msgid "Mandriva."
10096 msgstr ""
10097
10098 #. type: =item
10099 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1742
10100 msgid "\"meego\""
10101 msgstr ""
10102
10103 #. type: textblock
10104 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1744
10105 msgid "MeeGo."
10106 msgstr ""
10107
10108 #. type: =item
10109 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1746
10110 msgid "\"pardus\""
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1748
10115 msgid "Pardus."
10116 msgstr ""
10117
10118 #. type: =item
10119 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1750
10120 msgid "\"redhat-based\""
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1752
10125 msgid "Some Red Hat-derived distro."
10126 msgstr ""
10127
10128 #. type: =item
10129 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1754
10130 msgid "\"rhel\""
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1756
10135 msgid "Red Hat Enterprise Linux."
10136 msgstr ""
10137
10138 #. type: =item
10139 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1758
10140 msgid "\"scientificlinux\""
10141 msgstr ""
10142
10143 #. type: textblock
10144 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1760
10145 msgid "Scientific Linux."
10146 msgstr ""
10147
10148 #. type: =item
10149 #: ../src/guestfs-actions.pod:2597 ../fish/guestfish-actions.pod:1762
10150 msgid "\"slackware\""
10151 msgstr ""
10152
10153 #. type: textblock
10154 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1764
10155 msgid "Slackware."
10156 msgstr ""
10157
10158 #. type: =item
10159 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1766
10160 msgid "\"ubuntu\""
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1768
10165 msgid "Ubuntu."
10166 msgstr ""
10167
10168 #. type: =item
10169 #: ../src/guestfs-actions.pod:2605 ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:1770 ../fish/guestfish-actions.pod:1863 ../fish/guestfish-actions.pod:2088
10170 msgid "\"unknown\""
10171 msgstr ""
10172
10173 #. type: textblock
10174 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1772
10175 msgid "The distro could not be determined."
10176 msgstr ""
10177
10178 #. type: =item
10179 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:2080
10180 msgid "\"windows\""
10181 msgstr ""
10182
10183 #. type: textblock
10184 #: ../src/guestfs-actions.pod:2611 ../fish/guestfish-actions.pod:1776
10185 msgid ""
10186 "Windows does not have distributions.  This string is returned if the OS type "
10187 "is Windows."
10188 msgstr ""
10189
10190 #. type: textblock
10191 #: ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2727 ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:1781 ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:2094
10192 msgid ""
10193 "Future versions of libguestfs may return other strings here.  The caller "
10194 "should be prepared to handle any string."
10195 msgstr ""
10196
10197 #. type: =head2
10198 #: ../src/guestfs-actions.pod:2626
10199 msgid "guestfs_inspect_get_drive_mappings"
10200 msgstr ""
10201
10202 #. type: verbatim
10203 #: ../src/guestfs-actions.pod:2628
10204 #, no-wrap
10205 msgid ""
10206 " char **\n"
10207 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10208 "                                     const char *root);\n"
10209 "\n"
10210 msgstr ""
10211
10212 #. type: textblock
10213 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1793
10214 msgid ""
10215 "This call is useful for Windows which uses a primitive system of assigning "
10216 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10217 "Windows Registry to find out how disks/partitions are mapped to drive "
10218 "letters, and returns a hash table as in the example below:"
10219 msgstr ""
10220
10221 #. type: verbatim
10222 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1799
10223 #, no-wrap
10224 msgid ""
10225 " C      =>     /dev/vda2\n"
10226 " E      =>     /dev/vdb1\n"
10227 " F      =>     /dev/vdc1\n"
10228 "\n"
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:1803
10233 msgid ""
10234 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10235 "and just contains the drive letter, without the customary colon separator "
10236 "character."
10237 msgstr ""
10238
10239 #. type: textblock
10240 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1807
10241 msgid ""
10242 "In future we may support other operating systems that also used drive "
10243 "letters, but the keys for those might not be case insensitive and might be "
10244 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10245 "C<h1> etc."
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1812
10250 msgid ""
10251 "For Windows guests, currently only hard drive mappings are returned.  "
10252 "Removable disks (eg. DVD-ROMs) are ignored."
10253 msgstr ""
10254
10255 #. type: textblock
10256 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1815
10257 msgid ""
10258 "For guests that do not use drive mappings, or if the drive mappings could "
10259 "not be determined, this returns an empty hash table."
10260 msgstr ""
10261
10262 #. type: textblock
10263 #: ../src/guestfs-actions.pod:2660
10264 msgid ""
10265 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10266 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10267 msgstr ""
10268
10269 #. type: textblock
10270 #: ../src/guestfs-actions.pod:2664 ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:4810 ../src/guestfs-actions.pod:6715
10271 msgid ""
10272 "This function returns a NULL-terminated array of strings, or NULL if there "
10273 "was an error.  The array of strings will always have length C<2n+1>, where "
10274 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10275 "caller must free the strings and the array after use>."
10276 msgstr ""
10277
10278 #. type: =head2
10279 #: ../src/guestfs-actions.pod:2670
10280 msgid "guestfs_inspect_get_filesystems"
10281 msgstr ""
10282
10283 #. type: verbatim
10284 #: ../src/guestfs-actions.pod:2672
10285 #, no-wrap
10286 msgid ""
10287 " char **\n"
10288 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10289 "                                  const char *root);\n"
10290 "\n"
10291 msgstr ""
10292
10293 #. type: textblock
10294 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
10295 msgid ""
10296 "This returns a list of all the filesystems that we think are associated with "
10297 "this operating system.  This includes the root filesystem, other ordinary "
10298 "filesystems, and non-mounted devices like swap partitions."
10299 msgstr ""
10300
10301 #. type: textblock
10302 #: ../src/guestfs-actions.pod:2684 ../fish/guestfish-actions.pod:1834
10303 msgid ""
10304 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10305 "to be shared between operating systems."
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../src/guestfs-actions.pod:2687
10310 msgid ""
10311 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10312 "C<guestfs_inspect_get_mountpoints>."
10313 msgstr ""
10314
10315 #. type: =head2
10316 #: ../src/guestfs-actions.pod:2696
10317 msgid "guestfs_inspect_get_format"
10318 msgstr ""
10319
10320 #. type: verbatim
10321 #: ../src/guestfs-actions.pod:2698
10322 #, no-wrap
10323 msgid ""
10324 " char *\n"
10325 " guestfs_inspect_get_format (guestfs_h *g,\n"
10326 "                             const char *root);\n"
10327 "\n"
10328 msgstr ""
10329
10330 #. type: textblock
10331 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1847
10332 msgid ""
10333 "This returns the format of the inspected operating system.  You can use it "
10334 "to detect install images, live CDs and similar."
10335 msgstr ""
10336
10337 #. type: textblock
10338 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1850
10339 msgid "Currently defined formats are:"
10340 msgstr ""
10341
10342 #. type: =item
10343 #: ../src/guestfs-actions.pod:2712 ../fish/guestfish-actions.pod:1854
10344 msgid "\"installed\""
10345 msgstr ""
10346
10347 #. type: textblock
10348 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1856
10349 msgid "This is an installed operating system."
10350 msgstr ""
10351
10352 #. type: =item
10353 #: ../src/guestfs-actions.pod:2716 ../fish/guestfish-actions.pod:1858
10354 msgid "\"installer\""
10355 msgstr ""
10356
10357 #. type: textblock
10358 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1860
10359 msgid ""
10360 "The disk image being inspected is not an installed operating system, but a "
10361 "I<bootable> install disk, live CD, or similar."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../src/guestfs-actions.pod:2723 ../fish/guestfish-actions.pod:1865
10366 msgid "The format of this disk image is not known."
10367 msgstr ""
10368
10369 #. type: =head2
10370 #: ../src/guestfs-actions.pod:2735
10371 msgid "guestfs_inspect_get_hostname"
10372 msgstr ""
10373
10374 #. type: verbatim
10375 #: ../src/guestfs-actions.pod:2737
10376 #, no-wrap
10377 msgid ""
10378 " char *\n"
10379 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10380 "                               const char *root);\n"
10381 "\n"
10382 msgstr ""
10383
10384 #. type: textblock
10385 #: ../src/guestfs-actions.pod:2744 ../fish/guestfish-actions.pod:1881
10386 msgid ""
10387 "This function returns the hostname of the operating system as found by "
10388 "inspection of the guest's configuration files."
10389 msgstr ""
10390
10391 #. type: textblock
10392 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1884
10393 msgid ""
10394 "If the hostname could not be determined, then the string C<unknown> is "
10395 "returned."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../src/guestfs-actions.pod:2755
10400 msgid "(Added in 1.7.9)"
10401 msgstr ""
10402
10403 #. type: =head2
10404 #: ../src/guestfs-actions.pod:2757
10405 msgid "guestfs_inspect_get_major_version"
10406 msgstr ""
10407
10408 #. type: verbatim
10409 #: ../src/guestfs-actions.pod:2759
10410 #, no-wrap
10411 msgid ""
10412 " int\n"
10413 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10414 "                                    const char *root);\n"
10415 "\n"
10416 msgstr ""
10417
10418 #. type: textblock
10419 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1896
10420 msgid "This returns the major version number of the inspected operating system."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../src/guestfs-actions.pod:2769 ../fish/guestfish-actions.pod:1899
10425 msgid ""
10426 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10427 "popular public names used by the operating system.  Notably the operating "
10428 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10429 "1).  You can find out the real versions corresponding to releases of Windows "
10430 "by consulting Wikipedia or MSDN."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1906 ../fish/guestfish-actions.pod:1920
10435 msgid "If the version could not be determined, then C<0> is returned."
10436 msgstr ""
10437
10438 #. type: =head2
10439 #: ../src/guestfs-actions.pod:2784
10440 msgid "guestfs_inspect_get_minor_version"
10441 msgstr ""
10442
10443 #. type: verbatim
10444 #: ../src/guestfs-actions.pod:2786
10445 #, no-wrap
10446 msgid ""
10447 " int\n"
10448 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10449 "                                    const char *root);\n"
10450 "\n"
10451 msgstr ""
10452
10453 #. type: textblock
10454 #: ../src/guestfs-actions.pod:2793 ../fish/guestfish-actions.pod:1917
10455 msgid "This returns the minor version number of the inspected operating system."
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../src/guestfs-actions.pod:2798
10460 msgid ""
10461 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10462 "C<guestfs_inspect_get_major_version>."
10463 msgstr ""
10464
10465 #. type: =head2
10466 #: ../src/guestfs-actions.pod:2805
10467 msgid "guestfs_inspect_get_mountpoints"
10468 msgstr ""
10469
10470 #. type: verbatim
10471 #: ../src/guestfs-actions.pod:2807
10472 #, no-wrap
10473 msgid ""
10474 " char **\n"
10475 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
10476 "                                  const char *root);\n"
10477 "\n"
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1932
10482 msgid ""
10483 "This returns a hash of where we think the filesystems associated with this "
10484 "operating system should be mounted.  Callers should note that this is at "
10485 "best an educated guess made by reading configuration files such as "
10486 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10487 "are non-existent or not mountable and callers should be prepared to handle "
10488 "or ignore failures if they try to mount them."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:1941
10493 msgid ""
10494 "Each element in the returned hashtable has a key which is the path of the "
10495 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10496 "mounted there (eg. C</dev/sda1>)."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1946
10501 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10502 msgstr ""
10503
10504 #. type: textblock
10505 #: ../src/guestfs-actions.pod:2831
10506 msgid ""
10507 "For operating systems like Windows which still use drive letters, this call "
10508 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10509 "information about the mapping of drive letters to partitions, see "
10510 "C<guestfs_inspect_get_drive_mappings>."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../src/guestfs-actions.pod:2837
10515 msgid ""
10516 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10517 "C<guestfs_inspect_get_filesystems>."
10518 msgstr ""
10519
10520 #. type: =head2
10521 #: ../src/guestfs-actions.pod:2848
10522 msgid "guestfs_inspect_get_package_format"
10523 msgstr ""
10524
10525 #. type: verbatim
10526 #: ../src/guestfs-actions.pod:2850
10527 #, no-wrap
10528 msgid ""
10529 " char *\n"
10530 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
10531 "                                     const char *root);\n"
10532 "\n"
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../src/guestfs-actions.pod:2857
10537 msgid ""
10538 "This function and C<guestfs_inspect_get_package_management> return the "
10539 "package format and package management tool used by the inspected operating "
10540 "system.  For example for Fedora these functions would return C<rpm> (package "
10541 "format) and C<yum> (package management)."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../src/guestfs-actions.pod:2863 ../fish/guestfish-actions.pod:1971
10546 msgid ""
10547 "This returns the string C<unknown> if we could not determine the package "
10548 "format I<or> if the operating system does not have a real packaging system "
10549 "(eg. Windows)."
10550 msgstr ""
10551
10552 #. type: textblock
10553 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:1975
10554 msgid ""
10555 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
10556 "Future versions of libguestfs may return other strings."
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2906
10561 msgid "(Added in 1.7.5)"
10562 msgstr ""
10563
10564 #. type: =head2
10565 #: ../src/guestfs-actions.pod:2877
10566 msgid "guestfs_inspect_get_package_management"
10567 msgstr ""
10568
10569 #. type: verbatim
10570 #: ../src/guestfs-actions.pod:2879
10571 #, no-wrap
10572 msgid ""
10573 " char *\n"
10574 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
10575 "                                         const char *root);\n"
10576 "\n"
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../src/guestfs-actions.pod:2886
10581 msgid ""
10582 "C<guestfs_inspect_get_package_format> and this function return the package "
10583 "format and package management tool used by the inspected operating system.  "
10584 "For example for Fedora these functions would return C<rpm> (package format) "
10585 "and C<yum> (package management)."
10586 msgstr ""
10587
10588 #. type: textblock
10589 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:1993
10590 msgid ""
10591 "This returns the string C<unknown> if we could not determine the package "
10592 "management tool I<or> if the operating system does not have a real packaging "
10593 "system (eg. Windows)."
10594 msgstr ""
10595
10596 #. type: textblock
10597 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1997
10598 msgid ""
10599 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10600 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
10601 "libguestfs may return other strings."
10602 msgstr ""
10603
10604 #. type: =head2
10605 #: ../src/guestfs-actions.pod:2908
10606 msgid "guestfs_inspect_get_product_name"
10607 msgstr ""
10608
10609 #. type: verbatim
10610 #: ../src/guestfs-actions.pod:2910
10611 #, no-wrap
10612 msgid ""
10613 " char *\n"
10614 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
10615 "                                   const char *root);\n"
10616 "\n"
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2011
10621 msgid ""
10622 "This returns the product name of the inspected operating system.  The "
10623 "product name is generally some freeform string which can be displayed to the "
10624 "user, but should not be parsed by programs."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2016
10629 msgid ""
10630 "If the product name could not be determined, then the string C<unknown> is "
10631 "returned."
10632 msgstr ""
10633
10634 #. type: =head2
10635 #: ../src/guestfs-actions.pod:2932
10636 msgid "guestfs_inspect_get_product_variant"
10637 msgstr ""
10638
10639 #. type: verbatim
10640 #: ../src/guestfs-actions.pod:2934
10641 #, no-wrap
10642 msgid ""
10643 " char *\n"
10644 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
10645 "                                      const char *root);\n"
10646 "\n"
10647 msgstr ""
10648
10649 #. type: textblock
10650 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:2028
10651 msgid "This returns the product variant of the inspected operating system."
10652 msgstr ""
10653
10654 #. type: textblock
10655 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2031
10656 msgid ""
10657 "For Windows guests, this returns the contents of the Registry key "
10658 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10659 "which is usually a string such as C<Client> or C<Server> (other values are "
10660 "possible).  This can be used to distinguish consumer and enterprise versions "
10661 "of Windows that have the same version number (for example, Windows 7 and "
10662 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10663 "the latter is C<Server>)."
10664 msgstr ""
10665
10666 #. type: textblock
10667 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2040
10668 msgid ""
10669 "For enterprise Linux guests, in future we intend this to return the product "
10670 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10671 "implemented at present."
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2044
10676 msgid ""
10677 "If the product variant could not be determined, then the string C<unknown> "
10678 "is returned."
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../src/guestfs-actions.pod:2960
10683 msgid ""
10684 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10685 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../src/guestfs-actions.pod:2967
10690 msgid "guestfs_inspect_get_roots"
10691 msgstr ""
10692
10693 #. type: verbatim
10694 #: ../src/guestfs-actions.pod:2969
10695 #, no-wrap
10696 msgid ""
10697 " char **\n"
10698 " guestfs_inspect_get_roots (guestfs_h *g);\n"
10699 "\n"
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../src/guestfs-actions.pod:2972
10704 msgid ""
10705 "This function is a convenient way to get the list of root devices, as "
10706 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
10707 "the whole inspection process."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../src/guestfs-actions.pod:2976
10712 msgid ""
10713 "This returns an empty list if either no root devices were found or the "
10714 "caller has not called C<guestfs_inspect_os>."
10715 msgstr ""
10716
10717 #. type: textblock
10718 #: ../src/guestfs-actions.pod:2985
10719 msgid "(Added in 1.7.3)"
10720 msgstr ""
10721
10722 #. type: =head2
10723 #: ../src/guestfs-actions.pod:2987
10724 msgid "guestfs_inspect_get_type"
10725 msgstr ""
10726
10727 #. type: verbatim
10728 #: ../src/guestfs-actions.pod:2989
10729 #, no-wrap
10730 msgid ""
10731 " char *\n"
10732 " guestfs_inspect_get_type (guestfs_h *g,\n"
10733 "                           const char *root);\n"
10734 "\n"
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2071
10739 msgid ""
10740 "This returns the type of the inspected operating system.  Currently defined "
10741 "types are:"
10742 msgstr ""
10743
10744 #. type: =item
10745 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2076
10746 msgid "\"linux\""
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2078
10751 msgid "Any Linux-based operating system."
10752 msgstr ""
10753
10754 #. type: textblock
10755 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2082
10756 msgid "Any Microsoft Windows operating system."
10757 msgstr ""
10758
10759 #. type: =item
10760 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2084
10761 msgid "\"freebsd\""
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:3011 ../fish/guestfish-actions.pod:2086
10766 msgid "FreeBSD."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2090
10771 msgid "The operating system type could not be determined."
10772 msgstr ""
10773
10774 #. type: =head2
10775 #: ../src/guestfs-actions.pod:3029
10776 msgid "guestfs_inspect_get_windows_current_control_set"
10777 msgstr ""
10778
10779 #. type: verbatim
10780 #: ../src/guestfs-actions.pod:3031
10781 #, no-wrap
10782 msgid ""
10783 " char *\n"
10784 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
10785 "                                                  const char *root);\n"
10786 "\n"
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2106
10791 msgid ""
10792 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10793 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10794 msgstr ""
10795
10796 #. type: textblock
10797 #: ../src/guestfs-actions.pod:3041 ../fish/guestfish-actions.pod:2109
10798 msgid ""
10799 "This call assumes that the guest is Windows and that the Registry could be "
10800 "examined by inspection.  If this is not the case then an error is returned."
10801 msgstr ""
10802
10803 #. type: =head2
10804 #: ../src/guestfs-actions.pod:3050
10805 msgid "guestfs_inspect_get_windows_systemroot"
10806 msgstr ""
10807
10808 #. type: verbatim
10809 #: ../src/guestfs-actions.pod:3052
10810 #, no-wrap
10811 msgid ""
10812 " char *\n"
10813 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
10814 "                                         const char *root);\n"
10815 "\n"
10816 msgstr ""
10817
10818 #. type: textblock
10819 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2122
10820 msgid ""
10821 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10822 "is a directory path such as C</WINDOWS>."
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2125
10827 msgid ""
10828 "This call assumes that the guest is Windows and that the systemroot could be "
10829 "determined by inspection.  If this is not the case then an error is "
10830 "returned."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../src/guestfs-actions.pod:3071
10835 msgid "(Added in 1.5.25)"
10836 msgstr ""
10837
10838 #. type: =head2
10839 #: ../src/guestfs-actions.pod:3073
10840 msgid "guestfs_inspect_is_live"
10841 msgstr ""
10842
10843 #. type: verbatim
10844 #: ../src/guestfs-actions.pod:3075
10845 #, no-wrap
10846 msgid ""
10847 " int\n"
10848 " guestfs_inspect_is_live (guestfs_h *g,\n"
10849 "                          const char *root);\n"
10850 "\n"
10851 msgstr ""
10852
10853 #. type: textblock
10854 #: ../src/guestfs-actions.pod:3082
10855 msgid ""
10856 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10857 "disk), then this returns true if a live image was detected on the disk."
10858 msgstr ""
10859
10860 #. type: =head2
10861 #: ../src/guestfs-actions.pod:3090
10862 msgid "guestfs_inspect_is_multipart"
10863 msgstr ""
10864
10865 #. type: verbatim
10866 #: ../src/guestfs-actions.pod:3092
10867 #, no-wrap
10868 msgid ""
10869 " int\n"
10870 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
10871 "                               const char *root);\n"
10872 "\n"
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../src/guestfs-actions.pod:3099
10877 msgid ""
10878 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10879 "disk), then this returns true if the disk is part of a set."
10880 msgstr ""
10881
10882 #. type: =head2
10883 #: ../src/guestfs-actions.pod:3107
10884 msgid "guestfs_inspect_is_netinst"
10885 msgstr ""
10886
10887 #. type: verbatim
10888 #: ../src/guestfs-actions.pod:3109
10889 #, no-wrap
10890 msgid ""
10891 " int\n"
10892 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
10893 "                             const char *root);\n"
10894 "\n"
10895 msgstr ""
10896
10897 #. type: textblock
10898 #: ../src/guestfs-actions.pod:3116
10899 msgid ""
10900 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10901 "disk), then this returns true if the disk is a network installer, ie. not a "
10902 "self-contained install CD but one which is likely to require network access "
10903 "to complete the install."
10904 msgstr ""
10905
10906 #. type: =head2
10907 #: ../src/guestfs-actions.pod:3126
10908 msgid "guestfs_inspect_list_applications"
10909 msgstr ""
10910
10911 #. type: verbatim
10912 #: ../src/guestfs-actions.pod:3128
10913 #, no-wrap
10914 msgid ""
10915 " struct guestfs_application_list *\n"
10916 " guestfs_inspect_list_applications (guestfs_h *g,\n"
10917 "                                    const char *root);\n"
10918 "\n"
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../src/guestfs-actions.pod:3135 ../fish/guestfish-actions.pod:2179
10923 msgid "Return the list of applications installed in the operating system."
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:3137
10928 msgid ""
10929 "I<Note:> This call works differently from other parts of the inspection "
10930 "API.  You have to call C<guestfs_inspect_os>, then "
10931 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
10932 "this.  Listing applications is a significantly more difficult operation "
10933 "which requires access to the full filesystem.  Also note that unlike the "
10934 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
10935 "the libguestfs handle, this call actually reads parts of the mounted "
10936 "filesystems during the call."
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../src/guestfs-actions.pod:3147 ../fish/guestfish-actions.pod:2191
10941 msgid ""
10942 "This returns an empty list if the inspection code was not able to determine "
10943 "the list of applications."
10944 msgstr ""
10945
10946 #. type: textblock
10947 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2194
10948 msgid "The application structure contains the following fields:"
10949 msgstr ""
10950
10951 #. type: =item
10952 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2198
10953 msgid "C<app_name>"
10954 msgstr ""
10955
10956 #. type: textblock
10957 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2200
10958 msgid ""
10959 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10960 "guests, this is the package name."
10961 msgstr ""
10962
10963 #. type: =item
10964 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2203
10965 msgid "C<app_display_name>"
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2205
10970 msgid ""
10971 "The display name of the application, sometimes localized to the install "
10972 "language of the guest operating system."
10973 msgstr ""
10974
10975 #. type: textblock
10976 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2208
10977 msgid ""
10978 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10979 "to display something can use C<app_name> instead."
10980 msgstr ""
10981
10982 #. type: =item
10983 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2211
10984 msgid "C<app_epoch>"
10985 msgstr ""
10986
10987 #. type: textblock
10988 #: ../src/guestfs-actions.pod:3169 ../fish/guestfish-actions.pod:2213
10989 msgid ""
10990 "For package managers which use epochs, this contains the epoch of the "
10991 "package (an integer).  If unavailable, this is returned as C<0>."
10992 msgstr ""
10993
10994 #. type: =item
10995 #: ../src/guestfs-actions.pod:3172 ../fish/guestfish-actions.pod:2216
10996 msgid "C<app_version>"
10997 msgstr ""
10998
10999 #. type: textblock
11000 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2218
11001 msgid ""
11002 "The version string of the application or package.  If unavailable this is "
11003 "returned as an empty string C<\"\">."
11004 msgstr ""
11005
11006 #. type: =item
11007 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2221
11008 msgid "C<app_release>"
11009 msgstr ""
11010
11011 #. type: textblock
11012 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:2223
11013 msgid ""
11014 "The release string of the application or package, for package managers that "
11015 "use this.  If unavailable this is returned as an empty string C<\"\">."
11016 msgstr ""
11017
11018 #. type: =item
11019 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2227
11020 msgid "C<app_install_path>"
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2229
11025 msgid ""
11026 "The installation path of the application (on operating systems such as "
11027 "Windows which use installation paths).  This path is in the format used by "
11028 "the guest operating system, it is not a libguestfs path."
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../src/guestfs-actions.pod:3190 ../fish/guestfish-actions.pod:2234
11033 msgid "If unavailable this is returned as an empty string C<\"\">."
11034 msgstr ""
11035
11036 #. type: =item
11037 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2236
11038 msgid "C<app_trans_path>"
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2238
11043 msgid ""
11044 "The install path translated into a libguestfs path.  If unavailable this is "
11045 "returned as an empty string C<\"\">."
11046 msgstr ""
11047
11048 #. type: =item
11049 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2241
11050 msgid "C<app_publisher>"
11051 msgstr ""
11052
11053 #. type: textblock
11054 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2243
11055 msgid ""
11056 "The name of the publisher of the application, for package managers that use "
11057 "this.  If unavailable this is returned as an empty string C<\"\">."
11058 msgstr ""
11059
11060 #. type: =item
11061 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2247
11062 msgid "C<app_url>"
11063 msgstr ""
11064
11065 #. type: textblock
11066 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2249
11067 msgid ""
11068 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11069 "returned as an empty string C<\"\">."
11070 msgstr ""
11071
11072 #. type: =item
11073 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2252
11074 msgid "C<app_source_package>"
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2254
11079 msgid ""
11080 "For packaging systems which support this, the name of the source package.  "
11081 "If unavailable this is returned as an empty string C<\"\">."
11082 msgstr ""
11083
11084 #. type: =item
11085 #: ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:2257
11086 msgid "C<app_summary>"
11087 msgstr ""
11088
11089 #. type: textblock
11090 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2259
11091 msgid ""
11092 "A short (usually one line) description of the application or package.  If "
11093 "unavailable this is returned as an empty string C<\"\">."
11094 msgstr ""
11095
11096 #. type: =item
11097 #: ../src/guestfs-actions.pod:3218 ../fish/guestfish-actions.pod:2262
11098 msgid "C<app_description>"
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2264
11103 msgid ""
11104 "A longer description of the application or package.  If unavailable this is "
11105 "returned as an empty string C<\"\">."
11106 msgstr ""
11107
11108 #. type: textblock
11109 #: ../src/guestfs-actions.pod:3227
11110 msgid ""
11111 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11112 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11113 "after use>."
11114 msgstr ""
11115
11116 #. type: textblock
11117 #: ../src/guestfs-actions.pod:3231
11118 msgid "(Added in 1.7.8)"
11119 msgstr ""
11120
11121 #. type: =head2
11122 #: ../src/guestfs-actions.pod:3233
11123 msgid "guestfs_inspect_os"
11124 msgstr ""
11125
11126 #. type: verbatim
11127 #: ../src/guestfs-actions.pod:3235
11128 #, no-wrap
11129 msgid ""
11130 " char **\n"
11131 " guestfs_inspect_os (guestfs_h *g);\n"
11132 "\n"
11133 msgstr ""
11134
11135 #. type: textblock
11136 #: ../src/guestfs-actions.pod:3238 ../fish/guestfish-actions.pod:2275
11137 msgid ""
11138 "This function uses other libguestfs functions and certain heuristics to "
11139 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11140 "for operating systems."
11141 msgstr ""
11142
11143 #. type: textblock
11144 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2279
11145 msgid "The list returned is empty if no operating systems were found."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2281
11150 msgid ""
11151 "If one operating system was found, then this returns a list with a single "
11152 "element, which is the name of the root filesystem of this operating system.  "
11153 "It is also possible for this function to return a list containing more than "
11154 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11155 "element being the root filesystem of one of the operating systems."
11156 msgstr ""
11157
11158 #. type: textblock
11159 #: ../src/guestfs-actions.pod:3251
11160 msgid ""
11161 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11162 "functions in order to query further information about each operating system, "
11163 "such as the name and version."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../src/guestfs-actions.pod:3256
11168 msgid ""
11169 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11170 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11171 "the contents.  This should be called with no disks currently mounted.  The "
11172 "function may also use Augeas, so any existing Augeas handle will be closed."
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2299
11177 msgid ""
11178 "This function cannot decrypt encrypted disks.  The caller must do that first "
11179 "(supplying the necessary keys) if the disk is encrypted."
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3620
11184 msgid "See also C<guestfs_list_filesystems>."
11185 msgstr ""
11186
11187 #. type: =head2
11188 #: ../src/guestfs-actions.pod:3276
11189 msgid "guestfs_is_blockdev"
11190 msgstr ""
11191
11192 #. type: verbatim
11193 #: ../src/guestfs-actions.pod:3278
11194 #, no-wrap
11195 msgid ""
11196 " int\n"
11197 " guestfs_is_blockdev (guestfs_h *g,\n"
11198 "                      const char *path);\n"
11199 "\n"
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:3282 ../fish/guestfish-actions.pod:2311
11204 msgid ""
11205 "This returns C<true> if and only if there is a block device with the given "
11206 "C<path> name."
11207 msgstr ""
11208
11209 #. type: textblock
11210 #: ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3359 ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3431 ../src/guestfs-actions.pod:3446
11211 msgid "See also C<guestfs_stat>."
11212 msgstr ""
11213
11214 #. type: textblock
11215 #: ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:3318 ../src/guestfs-actions.pod:3363 ../src/guestfs-actions.pod:3435 ../src/guestfs-actions.pod:3450
11216 msgid "(Added in 1.5.10)"
11217 msgstr ""
11218
11219 #. type: =head2
11220 #: ../src/guestfs-actions.pod:3291
11221 msgid "guestfs_is_busy"
11222 msgstr ""
11223
11224 #. type: verbatim
11225 #: ../src/guestfs-actions.pod:3293
11226 #, no-wrap
11227 msgid ""
11228 " int\n"
11229 " guestfs_is_busy (guestfs_h *g);\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../src/guestfs-actions.pod:3296 ../fish/guestfish-actions.pod:2320
11235 msgid ""
11236 "This returns true iff this handle is busy processing a command (in the "
11237 "C<BUSY> state)."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../src/guestfs-actions.pod:3305
11242 msgid "guestfs_is_chardev"
11243 msgstr ""
11244
11245 #. type: verbatim
11246 #: ../src/guestfs-actions.pod:3307
11247 #, no-wrap
11248 msgid ""
11249 " int\n"
11250 " guestfs_is_chardev (guestfs_h *g,\n"
11251 "                     const char *path);\n"
11252 "\n"
11253 msgstr ""
11254
11255 #. type: textblock
11256 #: ../src/guestfs-actions.pod:3311 ../fish/guestfish-actions.pod:2329
11257 msgid ""
11258 "This returns C<true> if and only if there is a character device with the "
11259 "given C<path> name."
11260 msgstr ""
11261
11262 #. type: =head2
11263 #: ../src/guestfs-actions.pod:3320
11264 msgid "guestfs_is_config"
11265 msgstr ""
11266
11267 #. type: verbatim
11268 #: ../src/guestfs-actions.pod:3322
11269 #, no-wrap
11270 msgid ""
11271 " int\n"
11272 " guestfs_is_config (guestfs_h *g);\n"
11273 "\n"
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2338
11278 msgid ""
11279 "This returns true iff this handle is being configured (in the C<CONFIG> "
11280 "state)."
11281 msgstr ""
11282
11283 #. type: =head2
11284 #: ../src/guestfs-actions.pod:3334
11285 msgid "guestfs_is_dir"
11286 msgstr ""
11287
11288 #. type: verbatim
11289 #: ../src/guestfs-actions.pod:3336
11290 #, no-wrap
11291 msgid ""
11292 " int\n"
11293 " guestfs_is_dir (guestfs_h *g,\n"
11294 "                 const char *path);\n"
11295 "\n"
11296 msgstr ""
11297
11298 #. type: textblock
11299 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2347
11300 msgid ""
11301 "This returns C<true> if and only if there is a directory with the given "
11302 "C<path> name.  Note that it returns false for other objects like files."
11303 msgstr ""
11304
11305 #. type: =head2
11306 #: ../src/guestfs-actions.pod:3350
11307 msgid "guestfs_is_fifo"
11308 msgstr ""
11309
11310 #. type: verbatim
11311 #: ../src/guestfs-actions.pod:3352
11312 #, no-wrap
11313 msgid ""
11314 " int\n"
11315 " guestfs_is_fifo (guestfs_h *g,\n"
11316 "                  const char *path);\n"
11317 "\n"
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../src/guestfs-actions.pod:3356 ../fish/guestfish-actions.pod:2357
11322 msgid ""
11323 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11324 "given C<path> name."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../src/guestfs-actions.pod:3365
11329 msgid "guestfs_is_file"
11330 msgstr ""
11331
11332 #. type: verbatim
11333 #: ../src/guestfs-actions.pod:3367
11334 #, no-wrap
11335 msgid ""
11336 " int\n"
11337 " guestfs_is_file (guestfs_h *g,\n"
11338 "                  const char *path);\n"
11339 "\n"
11340 msgstr ""
11341
11342 #. type: textblock
11343 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2366
11344 msgid ""
11345 "This returns C<true> if and only if there is a regular file with the given "
11346 "C<path> name.  Note that it returns false for other objects like "
11347 "directories."
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../src/guestfs-actions.pod:3381
11352 msgid "guestfs_is_launching"
11353 msgstr ""
11354
11355 #. type: verbatim
11356 #: ../src/guestfs-actions.pod:3383
11357 #, no-wrap
11358 msgid ""
11359 " int\n"
11360 " guestfs_is_launching (guestfs_h *g);\n"
11361 "\n"
11362 msgstr ""
11363
11364 #. type: textblock
11365 #: ../src/guestfs-actions.pod:3386 ../fish/guestfish-actions.pod:2376
11366 msgid ""
11367 "This returns true iff this handle is launching the subprocess (in the "
11368 "C<LAUNCHING> state)."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../src/guestfs-actions.pod:3395
11373 msgid "guestfs_is_lv"
11374 msgstr ""
11375
11376 #. type: verbatim
11377 #: ../src/guestfs-actions.pod:3397
11378 #, no-wrap
11379 msgid ""
11380 " int\n"
11381 " guestfs_is_lv (guestfs_h *g,\n"
11382 "                const char *device);\n"
11383 "\n"
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../src/guestfs-actions.pod:3401 ../fish/guestfish-actions.pod:2385
11388 msgid ""
11389 "This command tests whether C<device> is a logical volume, and returns true "
11390 "iff this is the case."
11391 msgstr ""
11392
11393 #. type: =head2
11394 #: ../src/guestfs-actions.pod:3408
11395 msgid "guestfs_is_ready"
11396 msgstr ""
11397
11398 #. type: verbatim
11399 #: ../src/guestfs-actions.pod:3410
11400 #, no-wrap
11401 msgid ""
11402 " int\n"
11403 " guestfs_is_ready (guestfs_h *g);\n"
11404 "\n"
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../src/guestfs-actions.pod:3413 ../fish/guestfish-actions.pod:2392
11409 msgid ""
11410 "This returns true iff this handle is ready to accept commands (in the "
11411 "C<READY> state)."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../src/guestfs-actions.pod:3422
11416 msgid "guestfs_is_socket"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../src/guestfs-actions.pod:3424
11421 #, no-wrap
11422 msgid ""
11423 " int\n"
11424 " guestfs_is_socket (guestfs_h *g,\n"
11425 "                    const char *path);\n"
11426 "\n"
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../src/guestfs-actions.pod:3428 ../fish/guestfish-actions.pod:2401
11431 msgid ""
11432 "This returns C<true> if and only if there is a Unix domain socket with the "
11433 "given C<path> name."
11434 msgstr ""
11435
11436 #. type: =head2
11437 #: ../src/guestfs-actions.pod:3437
11438 msgid "guestfs_is_symlink"
11439 msgstr ""
11440
11441 #. type: verbatim
11442 #: ../src/guestfs-actions.pod:3439
11443 #, no-wrap
11444 msgid ""
11445 " int\n"
11446 " guestfs_is_symlink (guestfs_h *g,\n"
11447 "                     const char *path);\n"
11448 "\n"
11449 msgstr ""
11450
11451 #. type: textblock
11452 #: ../src/guestfs-actions.pod:3443 ../fish/guestfish-actions.pod:2410
11453 msgid ""
11454 "This returns C<true> if and only if there is a symbolic link with the given "
11455 "C<path> name."
11456 msgstr ""
11457
11458 #. type: =head2
11459 #: ../src/guestfs-actions.pod:3452
11460 msgid "guestfs_kill_subprocess"
11461 msgstr ""
11462
11463 #. type: verbatim
11464 #: ../src/guestfs-actions.pod:3454
11465 #, no-wrap
11466 msgid ""
11467 " int\n"
11468 " guestfs_kill_subprocess (guestfs_h *g);\n"
11469 "\n"
11470 msgstr ""
11471
11472 #. type: textblock
11473 #: ../src/guestfs-actions.pod:3457 ../fish/guestfish-actions.pod:2419
11474 msgid "This kills the qemu subprocess.  You should never need to call this."
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../src/guestfs-actions.pod:3463
11479 msgid "guestfs_launch"
11480 msgstr ""
11481
11482 #. type: verbatim
11483 #: ../src/guestfs-actions.pod:3465
11484 #, no-wrap
11485 msgid ""
11486 " int\n"
11487 " guestfs_launch (guestfs_h *g);\n"
11488 "\n"
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2427
11493 msgid ""
11494 "Internally libguestfs is implemented by running a virtual machine using "
11495 "L<qemu(1)>."
11496 msgstr ""
11497
11498 #. type: textblock
11499 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2430
11500 msgid ""
11501 "You should call this after configuring the handle (eg. adding drives) but "
11502 "before performing any actions."
11503 msgstr ""
11504
11505 #. type: =head2
11506 #: ../src/guestfs-actions.pod:3483
11507 msgid "guestfs_lchown"
11508 msgstr ""
11509
11510 #. type: verbatim
11511 #: ../src/guestfs-actions.pod:3485
11512 #, no-wrap
11513 msgid ""
11514 " int\n"
11515 " guestfs_lchown (guestfs_h *g,\n"
11516 "                 int owner,\n"
11517 "                 int group,\n"
11518 "                 const char *path);\n"
11519 "\n"
11520 msgstr ""
11521
11522 #. type: textblock
11523 #: ../src/guestfs-actions.pod:3491
11524 msgid ""
11525 "Change the file owner to C<owner> and group to C<group>.  This is like "
11526 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
11527 "changed, not the target."
11528 msgstr ""
11529
11530 #. type: =head2
11531 #: ../src/guestfs-actions.pod:3503
11532 msgid "guestfs_lgetxattr"
11533 msgstr ""
11534
11535 #. type: verbatim
11536 #: ../src/guestfs-actions.pod:3505
11537 #, no-wrap
11538 msgid ""
11539 " char *\n"
11540 " guestfs_lgetxattr (guestfs_h *g,\n"
11541 "                    const char *path,\n"
11542 "                    const char *name,\n"
11543 "                    size_t *size_r);\n"
11544 "\n"
11545 msgstr ""
11546
11547 #. type: textblock
11548 #: ../src/guestfs-actions.pod:3511 ../fish/guestfish-actions.pod:2449
11549 msgid ""
11550 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11551 "is a symlink, then this call returns an extended attribute from the symlink."
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../src/guestfs-actions.pod:3525
11556 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
11557 msgstr ""
11558
11559 #. type: =head2
11560 #: ../src/guestfs-actions.pod:3533
11561 msgid "guestfs_lgetxattrs"
11562 msgstr ""
11563
11564 #. type: verbatim
11565 #: ../src/guestfs-actions.pod:3535
11566 #, no-wrap
11567 msgid ""
11568 " struct guestfs_xattr_list *\n"
11569 " guestfs_lgetxattrs (guestfs_h *g,\n"
11570 "                     const char *path);\n"
11571 "\n"
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../src/guestfs-actions.pod:3539
11576 msgid ""
11577 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
11578 "then it returns the extended attributes of the link itself."
11579 msgstr ""
11580
11581 #. type: =head2
11582 #: ../src/guestfs-actions.pod:3549
11583 msgid "guestfs_list_devices"
11584 msgstr ""
11585
11586 #. type: verbatim
11587 #: ../src/guestfs-actions.pod:3551
11588 #, no-wrap
11589 msgid ""
11590 " char **\n"
11591 " guestfs_list_devices (guestfs_h *g);\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../src/guestfs-actions.pod:3554 ../fish/guestfish-actions.pod:2477
11597 msgid "List all the block devices."
11598 msgstr ""
11599
11600 #. type: textblock
11601 #: ../src/guestfs-actions.pod:3556 ../fish/guestfish-actions.pod:2479
11602 msgid "The full block device names are returned, eg. C</dev/sda>."
11603 msgstr ""
11604
11605 #. type: =head2
11606 #: ../src/guestfs-actions.pod:3566
11607 msgid "guestfs_list_filesystems"
11608 msgstr ""
11609
11610 #. type: verbatim
11611 #: ../src/guestfs-actions.pod:3568
11612 #, no-wrap
11613 msgid ""
11614 " char **\n"
11615 " guestfs_list_filesystems (guestfs_h *g);\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../src/guestfs-actions.pod:3571 ../fish/guestfish-actions.pod:2487
11621 msgid ""
11622 "This inspection command looks for filesystems on partitions, block devices "
11623 "and logical volumes, returning a list of devices containing filesystems and "
11624 "their type."
11625 msgstr ""
11626
11627 #. type: textblock
11628 #: ../src/guestfs-actions.pod:3575 ../fish/guestfish-actions.pod:2491
11629 msgid ""
11630 "The return value is a hash, where the keys are the devices containing "
11631 "filesystems, and the values are the filesystem types.  For example:"
11632 msgstr ""
11633
11634 #. type: verbatim
11635 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2495
11636 #, no-wrap
11637 msgid ""
11638 " \"/dev/sda1\" => \"ntfs\"\n"
11639 " \"/dev/sda2\" => \"ext2\"\n"
11640 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11641 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11642 "\n"
11643 msgstr ""
11644
11645 #. type: textblock
11646 #: ../src/guestfs-actions.pod:3584 ../fish/guestfish-actions.pod:2500
11647 msgid ""
11648 "The value can have the special value \"unknown\", meaning the content of the "
11649 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../src/guestfs-actions.pod:3588
11654 msgid ""
11655 "This command runs other libguestfs commands, which might include "
11656 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
11657 "soon after launch and only when nothing is mounted."
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../src/guestfs-actions.pod:3592
11662 msgid ""
11663 "Not all of the filesystems returned will be mountable.  In particular, swap "
11664 "partitions are returned in the list.  Also this command does not check that "
11665 "each filesystem found is valid and mountable, and some filesystems might be "
11666 "mountable but require special options.  Filesystems may not all belong to a "
11667 "single logical operating system (use C<guestfs_inspect_os> to look for "
11668 "OSes)."
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:5211
11673 msgid "(Added in 1.5.15)"
11674 msgstr ""
11675
11676 #. type: =head2
11677 #: ../src/guestfs-actions.pod:3608
11678 msgid "guestfs_list_partitions"
11679 msgstr ""
11680
11681 #. type: verbatim
11682 #: ../src/guestfs-actions.pod:3610
11683 #, no-wrap
11684 msgid ""
11685 " char **\n"
11686 " guestfs_list_partitions (guestfs_h *g);\n"
11687 "\n"
11688 msgstr ""
11689
11690 #. type: textblock
11691 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2520
11692 msgid "List all the partitions detected on all block devices."
11693 msgstr ""
11694
11695 #. type: textblock
11696 #: ../src/guestfs-actions.pod:3615 ../fish/guestfish-actions.pod:2522
11697 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../src/guestfs-actions.pod:3617
11702 msgid ""
11703 "This does not return logical volumes.  For that you will need to call "
11704 "C<guestfs_lvs>."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../src/guestfs-actions.pod:3628
11709 msgid "guestfs_ll"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../src/guestfs-actions.pod:3630
11714 #, no-wrap
11715 msgid ""
11716 " char *\n"
11717 " guestfs_ll (guestfs_h *g,\n"
11718 "             const char *directory);\n"
11719 "\n"
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2533
11724 msgid ""
11725 "List the files in C<directory> (relative to the root directory, there is no "
11726 "cwd) in the format of 'ls -la'."
11727 msgstr ""
11728
11729 #. type: textblock
11730 #: ../src/guestfs-actions.pod:3637 ../fish/guestfish-actions.pod:2536
11731 msgid ""
11732 "This command is mostly useful for interactive sessions.  It is I<not> "
11733 "intended that you try to parse the output string."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../src/guestfs-actions.pod:3645
11738 msgid "guestfs_ln"
11739 msgstr ""
11740
11741 #. type: verbatim
11742 #: ../src/guestfs-actions.pod:3647
11743 #, no-wrap
11744 msgid ""
11745 " int\n"
11746 " guestfs_ln (guestfs_h *g,\n"
11747 "             const char *target,\n"
11748 "             const char *linkname);\n"
11749 "\n"
11750 msgstr ""
11751
11752 #. type: textblock
11753 #: ../src/guestfs-actions.pod:3652 ../fish/guestfish-actions.pod:2543
11754 msgid "This command creates a hard link using the C<ln> command."
11755 msgstr ""
11756
11757 #. type: =head2
11758 #: ../src/guestfs-actions.pod:3658
11759 msgid "guestfs_ln_f"
11760 msgstr ""
11761
11762 #. type: verbatim
11763 #: ../src/guestfs-actions.pod:3660
11764 #, no-wrap
11765 msgid ""
11766 " int\n"
11767 " guestfs_ln_f (guestfs_h *g,\n"
11768 "               const char *target,\n"
11769 "               const char *linkname);\n"
11770 "\n"
11771 msgstr ""
11772
11773 #. type: textblock
11774 #: ../src/guestfs-actions.pod:3665 ../fish/guestfish-actions.pod:2549
11775 msgid ""
11776 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11777 "option removes the link (C<linkname>) if it exists already."
11778 msgstr ""
11779
11780 #. type: =head2
11781 #: ../src/guestfs-actions.pod:3672
11782 msgid "guestfs_ln_s"
11783 msgstr ""
11784
11785 #. type: verbatim
11786 #: ../src/guestfs-actions.pod:3674
11787 #, no-wrap
11788 msgid ""
11789 " int\n"
11790 " guestfs_ln_s (guestfs_h *g,\n"
11791 "               const char *target,\n"
11792 "               const char *linkname);\n"
11793 "\n"
11794 msgstr ""
11795
11796 #. type: textblock
11797 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2556
11798 msgid "This command creates a symbolic link using the C<ln -s> command."
11799 msgstr ""
11800
11801 #. type: =head2
11802 #: ../src/guestfs-actions.pod:3685
11803 msgid "guestfs_ln_sf"
11804 msgstr ""
11805
11806 #. type: verbatim
11807 #: ../src/guestfs-actions.pod:3687
11808 #, no-wrap
11809 msgid ""
11810 " int\n"
11811 " guestfs_ln_sf (guestfs_h *g,\n"
11812 "                const char *target,\n"
11813 "                const char *linkname);\n"
11814 "\n"
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2562
11819 msgid ""
11820 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11821 "option removes the link (C<linkname>) if it exists already."
11822 msgstr ""
11823
11824 #. type: =head2
11825 #: ../src/guestfs-actions.pod:3699
11826 msgid "guestfs_lremovexattr"
11827 msgstr ""
11828
11829 #. type: verbatim
11830 #: ../src/guestfs-actions.pod:3701
11831 #, no-wrap
11832 msgid ""
11833 " int\n"
11834 " guestfs_lremovexattr (guestfs_h *g,\n"
11835 "                       const char *xattr,\n"
11836 "                       const char *path);\n"
11837 "\n"
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../src/guestfs-actions.pod:3706
11842 msgid ""
11843 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
11844 "link, then it removes an extended attribute of the link itself."
11845 msgstr ""
11846
11847 #. type: =head2
11848 #: ../src/guestfs-actions.pod:3714
11849 msgid "guestfs_ls"
11850 msgstr ""
11851
11852 #. type: verbatim
11853 #: ../src/guestfs-actions.pod:3716
11854 #, no-wrap
11855 msgid ""
11856 " char **\n"
11857 " guestfs_ls (guestfs_h *g,\n"
11858 "             const char *directory);\n"
11859 "\n"
11860 msgstr ""
11861
11862 #. type: textblock
11863 #: ../src/guestfs-actions.pod:3720 ../fish/guestfish-actions.pod:2577
11864 msgid ""
11865 "List the files in C<directory> (relative to the root directory, there is no "
11866 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11867 "shown."
11868 msgstr ""
11869
11870 #. type: textblock
11871 #: ../src/guestfs-actions.pod:3724
11872 msgid ""
11873 "This command is mostly useful for interactive sessions.  Programs should "
11874 "probably use C<guestfs_readdir> instead."
11875 msgstr ""
11876
11877 #. type: =head2
11878 #: ../src/guestfs-actions.pod:3733
11879 msgid "guestfs_lsetxattr"
11880 msgstr ""
11881
11882 #. type: verbatim
11883 #: ../src/guestfs-actions.pod:3735
11884 #, no-wrap
11885 msgid ""
11886 " int\n"
11887 " guestfs_lsetxattr (guestfs_h *g,\n"
11888 "                    const char *xattr,\n"
11889 "                    const char *val,\n"
11890 "                    int vallen,\n"
11891 "                    const char *path);\n"
11892 "\n"
11893 msgstr ""
11894
11895 #. type: textblock
11896 #: ../src/guestfs-actions.pod:3742
11897 msgid ""
11898 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
11899 "then it sets an extended attribute of the link itself."
11900 msgstr ""
11901
11902 #. type: =head2
11903 #: ../src/guestfs-actions.pod:3750
11904 msgid "guestfs_lstat"
11905 msgstr ""
11906
11907 #. type: verbatim
11908 #: ../src/guestfs-actions.pod:3752
11909 #, no-wrap
11910 msgid ""
11911 " struct guestfs_stat *\n"
11912 " guestfs_lstat (guestfs_h *g,\n"
11913 "                const char *path);\n"
11914 "\n"
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:4265
11919 msgid "Returns file information for the given C<path>."
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../src/guestfs-actions.pod:3758
11924 msgid ""
11925 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
11926 "link, then the link is stat-ed, not the file it refers to."
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2602
11931 msgid "This is the same as the C<lstat(2)> system call."
11932 msgstr ""
11933
11934 #. type: textblock
11935 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:6318
11936 msgid ""
11937 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
11938 "error.  I<The caller must call C<guestfs_free_stat> after use>."
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6721
11943 msgid "(Added in 0.9.2)"
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../src/guestfs-actions.pod:3770
11948 msgid "guestfs_lstatlist"
11949 msgstr ""
11950
11951 #. type: verbatim
11952 #: ../src/guestfs-actions.pod:3772
11953 #, no-wrap
11954 msgid ""
11955 " struct guestfs_stat_list *\n"
11956 " guestfs_lstatlist (guestfs_h *g,\n"
11957 "                    const char *path,\n"
11958 "                    char *const *names);\n"
11959 "\n"
11960 msgstr ""
11961
11962 #. type: textblock
11963 #: ../src/guestfs-actions.pod:3777
11964 msgid ""
11965 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
11966 "files, where all files are in the directory C<path>.  C<names> is the list "
11967 "of files from this directory."
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2612
11972 msgid ""
11973 "On return you get a list of stat structs, with a one-to-one correspondence "
11974 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11975 "then the C<ino> field of that structure is set to C<-1>."
11976 msgstr ""
11977
11978 #. type: textblock
11979 #: ../src/guestfs-actions.pod:3786
11980 msgid ""
11981 "This call is intended for programs that want to efficiently list a directory "
11982 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
11983 "for a similarly efficient call for getting extended attributes.  Very long "
11984 "directory listings might cause the protocol message size to be exceeded, "
11985 "causing this call to fail.  The caller must split up such requests into "
11986 "smaller groups of names."
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../src/guestfs-actions.pod:3794
11991 msgid ""
11992 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
11993 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
11994 msgstr ""
11995
11996 #. type: =head2
11997 #: ../src/guestfs-actions.pod:3800
11998 msgid "guestfs_luks_add_key"
11999 msgstr ""
12000
12001 #. type: verbatim
12002 #: ../src/guestfs-actions.pod:3802
12003 #, no-wrap
12004 msgid ""
12005 " int\n"
12006 " guestfs_luks_add_key (guestfs_h *g,\n"
12007 "                       const char *device,\n"
12008 "                       const char *key,\n"
12009 "                       const char *newkey,\n"
12010 "                       int keyslot);\n"
12011 "\n"
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2629
12016 msgid ""
12017 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12018 "existing key, and is used to access the device.  C<newkey> is the new key to "
12019 "add.  C<keyslot> is the key slot that will be replaced."
12020 msgstr ""
12021
12022 #. type: textblock
12023 #: ../src/guestfs-actions.pod:3814
12024 msgid ""
12025 "Note that if C<keyslot> already contains a key, then this command will "
12026 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903 ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3954
12031 msgid ""
12032 "This function takes a key or passphrase parameter which could contain "
12033 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12034 "information."
12035 msgstr ""
12036
12037 #. type: textblock
12038 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3907
12039 msgid "(Added in 1.5.2)"
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../src/guestfs-actions.pod:3826
12044 msgid "guestfs_luks_close"
12045 msgstr ""
12046
12047 #. type: verbatim
12048 #: ../src/guestfs-actions.pod:3828
12049 #, no-wrap
12050 msgid ""
12051 " int\n"
12052 " guestfs_luks_close (guestfs_h *g,\n"
12053 "                     const char *device);\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../src/guestfs-actions.pod:3832
12059 msgid ""
12060 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
12061 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
12062 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
12063 "underlying block device."
12064 msgstr ""
12065
12066 #. type: textblock
12067 #: ../src/guestfs-actions.pod:3840 ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4056
12068 msgid "(Added in 1.5.1)"
12069 msgstr ""
12070
12071 #. type: =head2
12072 #: ../src/guestfs-actions.pod:3842
12073 msgid "guestfs_luks_format"
12074 msgstr ""
12075
12076 #. type: verbatim
12077 #: ../src/guestfs-actions.pod:3844
12078 #, no-wrap
12079 msgid ""
12080 " int\n"
12081 " guestfs_luks_format (guestfs_h *g,\n"
12082 "                      const char *device,\n"
12083 "                      const char *key,\n"
12084 "                      int keyslot);\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2655
12090 msgid ""
12091 "This command erases existing data on C<device> and formats the device as a "
12092 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12093 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12094 msgstr ""
12095
12096 #. type: textblock
12097 #: ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4962 ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:6149 ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6198 ../src/guestfs-actions.pod:7358 ../fish/guestfish-actions.pod:2663 ../fish/guestfish-actions.pod:2676 ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:3334 ../fish/guestfish-actions.pod:3854 ../fish/guestfish-actions.pod:4164 ../fish/guestfish-actions.pod:4180 ../fish/guestfish-actions.pod:4195 ../fish/guestfish-actions.pod:4910
12098 msgid ""
12099 "B<This command is dangerous.  Without careful use you can easily destroy all "
12100 "your data>."
12101 msgstr ""
12102
12103 #. type: =head2
12104 #: ../src/guestfs-actions.pod:3866
12105 msgid "guestfs_luks_format_cipher"
12106 msgstr ""
12107
12108 #. type: verbatim
12109 #: ../src/guestfs-actions.pod:3868
12110 #, no-wrap
12111 msgid ""
12112 " int\n"
12113 " guestfs_luks_format_cipher (guestfs_h *g,\n"
12114 "                             const char *device,\n"
12115 "                             const char *key,\n"
12116 "                             int keyslot,\n"
12117 "                             const char *cipher);\n"
12118 "\n"
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../src/guestfs-actions.pod:3875
12123 msgid ""
12124 "This command is the same as C<guestfs_luks_format> but it also allows you to "
12125 "set the C<cipher> used."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../src/guestfs-actions.pod:3889
12130 msgid "guestfs_luks_kill_slot"
12131 msgstr ""
12132
12133 #. type: verbatim
12134 #: ../src/guestfs-actions.pod:3891
12135 #, no-wrap
12136 msgid ""
12137 " int\n"
12138 " guestfs_luks_kill_slot (guestfs_h *g,\n"
12139 "                         const char *device,\n"
12140 "                         const char *key,\n"
12141 "                         int keyslot);\n"
12142 "\n"
12143 msgstr ""
12144
12145 #. type: textblock
12146 #: ../src/guestfs-actions.pod:3897 ../fish/guestfish-actions.pod:2683
12147 msgid ""
12148 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12149 "device C<device>.  C<key> must be one of the I<other> keys."
12150 msgstr ""
12151
12152 #. type: =head2
12153 #: ../src/guestfs-actions.pod:3909
12154 msgid "guestfs_luks_open"
12155 msgstr ""
12156
12157 #. type: verbatim
12158 #: ../src/guestfs-actions.pod:3911
12159 #, no-wrap
12160 msgid ""
12161 " int\n"
12162 " guestfs_luks_open (guestfs_h *g,\n"
12163 "                    const char *device,\n"
12164 "                    const char *key,\n"
12165 "                    const char *mapname);\n"
12166 "\n"
12167 msgstr ""
12168
12169 #. type: textblock
12170 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:2694
12171 msgid ""
12172 "This command opens a block device which has been encrypted according to the "
12173 "Linux Unified Key Setup (LUKS) standard."
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../src/guestfs-actions.pod:3920 ../fish/guestfish-actions.pod:2697
12178 msgid "C<device> is the encrypted block device or partition."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2699
12183 msgid ""
12184 "The caller must supply one of the keys associated with the LUKS block "
12185 "device, in the C<key> parameter."
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../src/guestfs-actions.pod:3925 ../fish/guestfish-actions.pod:2702
12190 msgid ""
12191 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12192 "writes to this block device are decrypted from and encrypted to the "
12193 "underlying C<device> respectively."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../src/guestfs-actions.pod:3929
12198 msgid ""
12199 "If this block device contains LVM volume groups, then calling "
12200 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12201 "visible."
12202 msgstr ""
12203
12204 #. type: =head2
12205 #: ../src/guestfs-actions.pod:3941
12206 msgid "guestfs_luks_open_ro"
12207 msgstr ""
12208
12209 #. type: verbatim
12210 #: ../src/guestfs-actions.pod:3943
12211 #, no-wrap
12212 msgid ""
12213 " int\n"
12214 " guestfs_luks_open_ro (guestfs_h *g,\n"
12215 "                       const char *device,\n"
12216 "                       const char *key,\n"
12217 "                       const char *mapname);\n"
12218 "\n"
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../src/guestfs-actions.pod:3949
12223 msgid ""
12224 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12225 "created."
12226 msgstr ""
12227
12228 #. type: =head2
12229 #: ../src/guestfs-actions.pod:3960
12230 msgid "guestfs_lvcreate"
12231 msgstr ""
12232
12233 #. type: verbatim
12234 #: ../src/guestfs-actions.pod:3962
12235 #, no-wrap
12236 msgid ""
12237 " int\n"
12238 " guestfs_lvcreate (guestfs_h *g,\n"
12239 "                   const char *logvol,\n"
12240 "                   const char *volgroup,\n"
12241 "                   int mbytes);\n"
12242 "\n"
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2727
12247 msgid ""
12248 "This creates an LVM logical volume called C<logvol> on the volume group "
12249 "C<volgroup>, with C<size> megabytes."
12250 msgstr ""
12251
12252 #. type: =head2
12253 #: ../src/guestfs-actions.pod:3975
12254 msgid "guestfs_lvm_canonical_lv_name"
12255 msgstr ""
12256
12257 #. type: verbatim
12258 #: ../src/guestfs-actions.pod:3977
12259 #, no-wrap
12260 msgid ""
12261 " char *\n"
12262 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12263 "                                const char *lvname);\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2734
12269 msgid ""
12270 "This converts alternative naming schemes for LVs that you might find to the "
12271 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12272 "C</dev/VG/LV>."
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../src/guestfs-actions.pod:3985 ../fish/guestfish-actions.pod:2738
12277 msgid ""
12278 "This command returns an error if the C<lvname> parameter does not refer to a "
12279 "logical volume."
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../src/guestfs-actions.pod:3988
12284 msgid "See also C<guestfs_is_lv>."
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../src/guestfs-actions.pod:3993
12289 msgid "(Added in 1.5.24)"
12290 msgstr ""
12291
12292 #. type: =head2
12293 #: ../src/guestfs-actions.pod:3995
12294 msgid "guestfs_lvm_clear_filter"
12295 msgstr ""
12296
12297 #. type: verbatim
12298 #: ../src/guestfs-actions.pod:3997
12299 #, no-wrap
12300 msgid ""
12301 " int\n"
12302 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12303 "\n"
12304 msgstr ""
12305
12306 #. type: textblock
12307 #: ../src/guestfs-actions.pod:4000
12308 msgid ""
12309 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12310 "see every block device."
12311 msgstr ""
12312
12313 #. type: textblock
12314 #: ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2781
12315 msgid "This command also clears the LVM cache and performs a volume group scan."
12316 msgstr ""
12317
12318 #. type: =head2
12319 #: ../src/guestfs-actions.pod:4010
12320 msgid "guestfs_lvm_remove_all"
12321 msgstr ""
12322
12323 #. type: verbatim
12324 #: ../src/guestfs-actions.pod:4012
12325 #, no-wrap
12326 msgid ""
12327 " int\n"
12328 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12329 "\n"
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2757
12334 msgid ""
12335 "This command removes all LVM logical volumes, volume groups and physical "
12336 "volumes."
12337 msgstr ""
12338
12339 #. type: =head2
12340 #: ../src/guestfs-actions.pod:4025
12341 msgid "guestfs_lvm_set_filter"
12342 msgstr ""
12343
12344 #. type: verbatim
12345 #: ../src/guestfs-actions.pod:4027
12346 #, no-wrap
12347 msgid ""
12348 " int\n"
12349 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12350 "                         char *const *devices);\n"
12351 "\n"
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../src/guestfs-actions.pod:4031 ../fish/guestfish-actions.pod:2767
12356 msgid ""
12357 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12358 "block devices in the list C<devices>, and will ignore all other attached "
12359 "block devices."
12360 msgstr ""
12361
12362 #. type: textblock
12363 #: ../src/guestfs-actions.pod:4035 ../fish/guestfish-actions.pod:2771
12364 msgid ""
12365 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12366 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12367 "there are two types of duplication possible: either cloned PVs/VGs which "
12368 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12369 "same name.  In normal operation you cannot create this situation, but you "
12370 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12371 "inside the LVM metadata."
12372 msgstr ""
12373
12374 #. type: textblock
12375 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2784
12376 msgid "You can filter whole block devices or individual partitions."
12377 msgstr ""
12378
12379 #. type: textblock
12380 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2786
12381 msgid ""
12382 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12383 "filesystem), even if you are not filtering out that VG."
12384 msgstr ""
12385
12386 #. type: =head2
12387 #: ../src/guestfs-actions.pod:4058
12388 msgid "guestfs_lvremove"
12389 msgstr ""
12390
12391 #. type: verbatim
12392 #: ../src/guestfs-actions.pod:4060
12393 #, no-wrap
12394 msgid ""
12395 " int\n"
12396 " guestfs_lvremove (guestfs_h *g,\n"
12397 "                   const char *device);\n"
12398 "\n"
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:2794
12403 msgid ""
12404 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12405 "LV, such as C</dev/VG/LV>."
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2797
12410 msgid ""
12411 "You can also remove all LVs in a volume group by specifying the VG name, "
12412 "C</dev/VG>."
12413 msgstr ""
12414
12415 #. type: textblock
12416 #: ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:7097
12417 msgid "(Added in 1.0.13)"
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../src/guestfs-actions.pod:4074
12422 msgid "guestfs_lvrename"
12423 msgstr ""
12424
12425 #. type: verbatim
12426 #: ../src/guestfs-actions.pod:4076
12427 #, no-wrap
12428 msgid ""
12429 " int\n"
12430 " guestfs_lvrename (guestfs_h *g,\n"
12431 "                   const char *logvol,\n"
12432 "                   const char *newlogvol);\n"
12433 "\n"
12434 msgstr ""
12435
12436 #. type: textblock
12437 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:2804
12438 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12439 msgstr ""
12440
12441 #. type: textblock
12442 #: ../src/guestfs-actions.pod:4085 ../src/guestfs-actions.pod:7110
12443 msgid "(Added in 1.0.83)"
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../src/guestfs-actions.pod:4087
12448 msgid "guestfs_lvresize"
12449 msgstr ""
12450
12451 #. type: verbatim
12452 #: ../src/guestfs-actions.pod:4089
12453 #, no-wrap
12454 msgid ""
12455 " int\n"
12456 " guestfs_lvresize (guestfs_h *g,\n"
12457 "                   const char *device,\n"
12458 "                   int mbytes);\n"
12459 "\n"
12460 msgstr ""
12461
12462 #. type: textblock
12463 #: ../src/guestfs-actions.pod:4094 ../fish/guestfish-actions.pod:2810
12464 msgid ""
12465 "This resizes (expands or shrinks) an existing LVM logical volume to "
12466 "C<mbytes>.  When reducing, data in the reduced part is lost."
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../src/guestfs-actions.pod:4102
12471 msgid "guestfs_lvresize_free"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../src/guestfs-actions.pod:4104
12476 #, no-wrap
12477 msgid ""
12478 " int\n"
12479 " guestfs_lvresize_free (guestfs_h *g,\n"
12480 "                        const char *lv,\n"
12481 "                        int percent);\n"
12482 "\n"
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2818
12487 msgid ""
12488 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12489 "remaining free space in the volume group.  Commonly you would call this with "
12490 "pc = 100 which expands the logical volume as much as possible, using all "
12491 "remaining free space in the volume group."
12492 msgstr ""
12493
12494 #. type: textblock
12495 #: ../src/guestfs-actions.pod:4117
12496 msgid "(Added in 1.3.3)"
12497 msgstr ""
12498
12499 #. type: =head2
12500 #: ../src/guestfs-actions.pod:4119
12501 msgid "guestfs_lvs"
12502 msgstr ""
12503
12504 #. type: verbatim
12505 #: ../src/guestfs-actions.pod:4121
12506 #, no-wrap
12507 msgid ""
12508 " char **\n"
12509 " guestfs_lvs (guestfs_h *g);\n"
12510 "\n"
12511 msgstr ""
12512
12513 #. type: textblock
12514 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:2828
12515 msgid ""
12516 "List all the logical volumes detected.  This is the equivalent of the "
12517 "L<lvs(8)> command."
12518 msgstr ""
12519
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:4127 ../fish/guestfish-actions.pod:2831
12522 msgid ""
12523 "This returns a list of the logical volume device names "
12524 "(eg. C</dev/VolGroup00/LogVol00>)."
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../src/guestfs-actions.pod:4130
12529 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
12530 msgstr ""
12531
12532 #. type: =head2
12533 #: ../src/guestfs-actions.pod:4138
12534 msgid "guestfs_lvs_full"
12535 msgstr ""
12536
12537 #. type: verbatim
12538 #: ../src/guestfs-actions.pod:4140
12539 #, no-wrap
12540 msgid ""
12541 " struct guestfs_lvm_lv_list *\n"
12542 " guestfs_lvs_full (guestfs_h *g);\n"
12543 "\n"
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../src/guestfs-actions.pod:4143 ../fish/guestfish-actions.pod:2840
12548 msgid ""
12549 "List all the logical volumes detected.  This is the equivalent of the "
12550 "L<lvs(8)> command.  The \"full\" version includes all fields."
12551 msgstr ""
12552
12553 #. type: textblock
12554 #: ../src/guestfs-actions.pod:4146
12555 msgid ""
12556 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
12557 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
12558 "use>."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../src/guestfs-actions.pod:4152
12563 msgid "guestfs_lvuuid"
12564 msgstr ""
12565
12566 #. type: verbatim
12567 #: ../src/guestfs-actions.pod:4154
12568 #, no-wrap
12569 msgid ""
12570 " char *\n"
12571 " guestfs_lvuuid (guestfs_h *g,\n"
12572 "                 const char *device);\n"
12573 "\n"
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:2847
12578 msgid "This command returns the UUID of the LVM LV C<device>."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../src/guestfs-actions.pod:4165
12583 msgid "guestfs_lxattrlist"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../src/guestfs-actions.pod:4167
12588 #, no-wrap
12589 msgid ""
12590 " struct guestfs_xattr_list *\n"
12591 " guestfs_lxattrlist (guestfs_h *g,\n"
12592 "                     const char *path,\n"
12593 "                     char *const *names);\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:2853
12599 msgid ""
12600 "This call allows you to get the extended attributes of multiple files, where "
12601 "all files are in the directory C<path>.  C<names> is the list of files from "
12602 "this directory."
12603 msgstr ""
12604
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2857
12607 msgid ""
12608 "On return you get a flat list of xattr structs which must be interpreted "
12609 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12610 "C<attrval> in this struct is zero-length to indicate there was an error "
12611 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12612 "number (the number of following attributes for this file, which could be "
12613 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12614 "attributes for the first named file.  This repeats for the second and "
12615 "subsequent files."
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../src/guestfs-actions.pod:4186
12620 msgid ""
12621 "This call is intended for programs that want to efficiently list a directory "
12622 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
12623 "a similarly efficient call for getting standard stats.  Very long directory "
12624 "listings might cause the protocol message size to be exceeded, causing this "
12625 "call to fail.  The caller must split up such requests into smaller groups of "
12626 "names."
12627 msgstr ""
12628
12629 #. type: =head2
12630 #: ../src/guestfs-actions.pod:4200
12631 msgid "guestfs_mkdir"
12632 msgstr ""
12633
12634 #. type: verbatim
12635 #: ../src/guestfs-actions.pod:4202
12636 #, no-wrap
12637 msgid ""
12638 " int\n"
12639 " guestfs_mkdir (guestfs_h *g,\n"
12640 "                const char *path);\n"
12641 "\n"
12642 msgstr ""
12643
12644 #. type: textblock
12645 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2879
12646 msgid "Create a directory named C<path>."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../src/guestfs-actions.pod:4212
12651 msgid "guestfs_mkdir_mode"
12652 msgstr ""
12653
12654 #. type: verbatim
12655 #: ../src/guestfs-actions.pod:4214
12656 #, no-wrap
12657 msgid ""
12658 " int\n"
12659 " guestfs_mkdir_mode (guestfs_h *g,\n"
12660 "                     const char *path,\n"
12661 "                     int mode);\n"
12662 "\n"
12663 msgstr ""
12664
12665 #. type: textblock
12666 #: ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:2885
12667 msgid ""
12668 "This command creates a directory, setting the initial permissions of the "
12669 "directory to C<mode>."
12670 msgstr ""
12671
12672 #. type: textblock
12673 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2888
12674 msgid ""
12675 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12676 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12677 "other ways."
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../src/guestfs-actions.pod:4226
12682 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
12683 msgstr ""
12684
12685 #. type: =head2
12686 #: ../src/guestfs-actions.pod:4232
12687 msgid "guestfs_mkdir_p"
12688 msgstr ""
12689
12690 #. type: verbatim
12691 #: ../src/guestfs-actions.pod:4234
12692 #, no-wrap
12693 msgid ""
12694 " int\n"
12695 " guestfs_mkdir_p (guestfs_h *g,\n"
12696 "                  const char *path);\n"
12697 "\n"
12698 msgstr ""
12699
12700 #. type: textblock
12701 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:2898
12702 msgid ""
12703 "Create a directory named C<path>, creating any parent directories as "
12704 "necessary.  This is like the C<mkdir -p> shell command."
12705 msgstr ""
12706
12707 #. type: =head2
12708 #: ../src/guestfs-actions.pod:4245
12709 msgid "guestfs_mkdtemp"
12710 msgstr ""
12711
12712 #. type: verbatim
12713 #: ../src/guestfs-actions.pod:4247
12714 #, no-wrap
12715 msgid ""
12716 " char *\n"
12717 " guestfs_mkdtemp (guestfs_h *g,\n"
12718 "                  const char *template);\n"
12719 "\n"
12720 msgstr ""
12721
12722 #. type: textblock
12723 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2905
12724 msgid ""
12725 "This command creates a temporary directory.  The C<template> parameter "
12726 "should be a full pathname for the temporary directory name with the final "
12727 "six characters being \"XXXXXX\"."
12728 msgstr ""
12729
12730 #. type: textblock
12731 #: ../src/guestfs-actions.pod:4256 ../fish/guestfish-actions.pod:2910
12732 msgid ""
12733 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12734 "being suitable for Windows filesystems."
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../src/guestfs-actions.pod:4259 ../fish/guestfish-actions.pod:2913
12739 msgid "The name of the temporary directory that was created is returned."
12740 msgstr ""
12741
12742 #. type: textblock
12743 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2916
12744 msgid "The temporary directory is created with mode 0700 and is owned by root."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2919
12749 msgid ""
12750 "The caller is responsible for deleting the temporary directory and its "
12751 "contents after use."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2922
12756 msgid "See also: L<mkdtemp(3)>"
12757 msgstr ""
12758
12759 #. type: =head2
12760 #: ../src/guestfs-actions.pod:4275
12761 msgid "guestfs_mke2fs_J"
12762 msgstr ""
12763
12764 #. type: verbatim
12765 #: ../src/guestfs-actions.pod:4277
12766 #, no-wrap
12767 msgid ""
12768 " int\n"
12769 " guestfs_mke2fs_J (guestfs_h *g,\n"
12770 "                   const char *fstype,\n"
12771 "                   int blocksize,\n"
12772 "                   const char *device,\n"
12773 "                   const char *journal);\n"
12774 "\n"
12775 msgstr ""
12776
12777 #. type: textblock
12778 #: ../src/guestfs-actions.pod:4284 ../fish/guestfish-actions.pod:2928
12779 msgid ""
12780 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12781 "C<journal>.  It is equivalent to the command:"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../src/guestfs-actions.pod:4288 ../fish/guestfish-actions.pod:2932
12786 #, no-wrap
12787 msgid ""
12788 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12789 "\n"
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../src/guestfs-actions.pod:4290
12794 msgid "See also C<guestfs_mke2journal>."
12795 msgstr ""
12796
12797 #. type: textblock
12798 #: ../src/guestfs-actions.pod:4294 ../src/guestfs-actions.pod:4312 ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4433 ../src/guestfs-actions.pod:4698
12799 msgid "(Added in 1.0.68)"
12800 msgstr ""
12801
12802 #. type: =head2
12803 #: ../src/guestfs-actions.pod:4296
12804 msgid "guestfs_mke2fs_JL"
12805 msgstr ""
12806
12807 #. type: verbatim
12808 #: ../src/guestfs-actions.pod:4298
12809 #, no-wrap
12810 msgid ""
12811 " int\n"
12812 " guestfs_mke2fs_JL (guestfs_h *g,\n"
12813 "                    const char *fstype,\n"
12814 "                    int blocksize,\n"
12815 "                    const char *device,\n"
12816 "                    const char *label);\n"
12817 "\n"
12818 msgstr ""
12819
12820 #. type: textblock
12821 #: ../src/guestfs-actions.pod:4305 ../fish/guestfish-actions.pod:2940
12822 msgid ""
12823 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12824 "the journal labeled C<label>."
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../src/guestfs-actions.pod:4308
12829 msgid "See also C<guestfs_mke2journal_L>."
12830 msgstr ""
12831
12832 #. type: =head2
12833 #: ../src/guestfs-actions.pod:4314
12834 msgid "guestfs_mke2fs_JU"
12835 msgstr ""
12836
12837 #. type: verbatim
12838 #: ../src/guestfs-actions.pod:4316
12839 #, no-wrap
12840 msgid ""
12841 " int\n"
12842 " guestfs_mke2fs_JU (guestfs_h *g,\n"
12843 "                    const char *fstype,\n"
12844 "                    int blocksize,\n"
12845 "                    const char *device,\n"
12846 "                    const char *uuid);\n"
12847 "\n"
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:2949
12852 msgid ""
12853 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12854 "the journal with UUID C<uuid>."
12855 msgstr ""
12856
12857 #. type: textblock
12858 #: ../src/guestfs-actions.pod:4326
12859 msgid "See also C<guestfs_mke2journal_U>."
12860 msgstr ""
12861
12862 #. type: =head2
12863 #: ../src/guestfs-actions.pod:4332
12864 msgid "guestfs_mke2journal"
12865 msgstr ""
12866
12867 #. type: verbatim
12868 #: ../src/guestfs-actions.pod:4334
12869 #, no-wrap
12870 msgid ""
12871 " int\n"
12872 " guestfs_mke2journal (guestfs_h *g,\n"
12873 "                      int blocksize,\n"
12874 "                      const char *device);\n"
12875 "\n"
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:2958
12880 msgid ""
12881 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12882 "command:"
12883 msgstr ""
12884
12885 #. type: verbatim
12886 #: ../src/guestfs-actions.pod:4342 ../fish/guestfish-actions.pod:2961
12887 #, no-wrap
12888 msgid ""
12889 " mke2fs -O journal_dev -b blocksize device\n"
12890 "\n"
12891 msgstr ""
12892
12893 #. type: =head2
12894 #: ../src/guestfs-actions.pod:4348
12895 msgid "guestfs_mke2journal_L"
12896 msgstr ""
12897
12898 #. type: verbatim
12899 #: ../src/guestfs-actions.pod:4350
12900 #, no-wrap
12901 msgid ""
12902 " int\n"
12903 " guestfs_mke2journal_L (guestfs_h *g,\n"
12904 "                        int blocksize,\n"
12905 "                        const char *label,\n"
12906 "                        const char *device);\n"
12907 "\n"
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../src/guestfs-actions.pod:4356 ../fish/guestfish-actions.pod:2967
12912 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12913 msgstr ""
12914
12915 #. type: =head2
12916 #: ../src/guestfs-actions.pod:4362
12917 msgid "guestfs_mke2journal_U"
12918 msgstr ""
12919
12920 #. type: verbatim
12921 #: ../src/guestfs-actions.pod:4364
12922 #, no-wrap
12923 msgid ""
12924 " int\n"
12925 " guestfs_mke2journal_U (guestfs_h *g,\n"
12926 "                        int blocksize,\n"
12927 "                        const char *uuid,\n"
12928 "                        const char *device);\n"
12929 "\n"
12930 msgstr ""
12931
12932 #. type: textblock
12933 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:2973
12934 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12935 msgstr ""
12936
12937 #. type: =head2
12938 #: ../src/guestfs-actions.pod:4376
12939 msgid "guestfs_mkfifo"
12940 msgstr ""
12941
12942 #. type: verbatim
12943 #: ../src/guestfs-actions.pod:4378
12944 #, no-wrap
12945 msgid ""
12946 " int\n"
12947 " guestfs_mkfifo (guestfs_h *g,\n"
12948 "                 int mode,\n"
12949 "                 const char *path);\n"
12950 "\n"
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../src/guestfs-actions.pod:4383
12955 msgid ""
12956 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12957 "is just a convenient wrapper around C<guestfs_mknod>."
12958 msgstr ""
12959
12960 #. type: =head2
12961 #: ../src/guestfs-actions.pod:4393
12962 msgid "guestfs_mkfs"
12963 msgstr ""
12964
12965 #. type: verbatim
12966 #: ../src/guestfs-actions.pod:4395
12967 #, no-wrap
12968 msgid ""
12969 " int\n"
12970 " guestfs_mkfs (guestfs_h *g,\n"
12971 "               const char *fstype,\n"
12972 "               const char *device);\n"
12973 "\n"
12974 msgstr ""
12975
12976 #. type: textblock
12977 #: ../src/guestfs-actions.pod:4400 ../fish/guestfish-actions.pod:2989
12978 msgid ""
12979 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12980 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12981 msgstr ""
12982
12983 #. type: =head2
12984 #: ../src/guestfs-actions.pod:4408
12985 msgid "guestfs_mkfs_b"
12986 msgstr ""
12987
12988 #. type: verbatim
12989 #: ../src/guestfs-actions.pod:4410
12990 #, no-wrap
12991 msgid ""
12992 " int\n"
12993 " guestfs_mkfs_b (guestfs_h *g,\n"
12994 "                 const char *fstype,\n"
12995 "                 int blocksize,\n"
12996 "                 const char *device);\n"
12997 "\n"
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../src/guestfs-actions.pod:4416
13002 msgid ""
13003 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
13004 "block size of the resulting filesystem.  Supported block sizes depend on the "
13005 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3002 ../fish/guestfish-actions.pod:3029
13010 msgid ""
13011 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13012 "cluster size."
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:3005
13017 msgid ""
13018 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
13019 "instead."
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../src/guestfs-actions.pod:4435
13024 msgid "guestfs_mkfs_opts"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../src/guestfs-actions.pod:4437
13029 #, no-wrap
13030 msgid ""
13031 " int\n"
13032 " guestfs_mkfs_opts (guestfs_h *g,\n"
13033 "                    const char *fstype,\n"
13034 "                    const char *device,\n"
13035 "                    ...);\n"
13036 "\n"
13037 msgstr ""
13038
13039 #. type: verbatim
13040 #: ../src/guestfs-actions.pod:4448
13041 #, no-wrap
13042 msgid ""
13043 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
13044 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3016
13050 msgid ""
13051 "This function creates a filesystem on C<device>.  The filesystem type is "
13052 "C<fstype>, for example C<ext3>."
13053 msgstr ""
13054
13055 #. type: =item
13056 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:3023
13057 msgid "C<blocksize>"
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:3025
13062 msgid ""
13063 "The filesystem block size.  Supported block sizes depend on the filesystem "
13064 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13065 "filesystems."
13066 msgstr ""
13067
13068 #. type: textblock
13069 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3032
13070 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13071 msgstr ""
13072
13073 #. type: =item
13074 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3034
13075 msgid "C<features>"
13076 msgstr ""
13077
13078 #. type: textblock
13079 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3036
13080 msgid "This passes the I<-O> parameter to the external mkfs program."
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3038
13085 msgid ""
13086 "For certain filesystem types, this allows extra filesystem features to be "
13087 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3042
13092 msgid ""
13093 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13094 "type."
13095 msgstr ""
13096
13097 #. type: textblock
13098 #: ../src/guestfs-actions.pod:4484
13099 msgid "(Added in 1.7.19)"
13100 msgstr ""
13101
13102 #. type: =head2
13103 #: ../src/guestfs-actions.pod:4486
13104 msgid "guestfs_mkfs_opts_va"
13105 msgstr ""
13106
13107 #. type: verbatim
13108 #: ../src/guestfs-actions.pod:4488
13109 #, no-wrap
13110 msgid ""
13111 " int\n"
13112 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
13113 "                       const char *fstype,\n"
13114 "                       const char *device,\n"
13115 "                       va_list args);\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../src/guestfs-actions.pod:4494
13121 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
13122 msgstr ""
13123
13124 #. type: =head2
13125 #: ../src/guestfs-actions.pod:4498
13126 msgid "guestfs_mkfs_opts_argv"
13127 msgstr ""
13128
13129 #. type: verbatim
13130 #: ../src/guestfs-actions.pod:4500
13131 #, no-wrap
13132 msgid ""
13133 " int\n"
13134 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
13135 "                         const char *fstype,\n"
13136 "                         const char *device,\n"
13137 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
13138 "\n"
13139 msgstr ""
13140
13141 #. type: textblock
13142 #: ../src/guestfs-actions.pod:4506
13143 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
13144 msgstr ""
13145
13146 #. type: =head2
13147 #: ../src/guestfs-actions.pod:4510
13148 msgid "guestfs_mkmountpoint"
13149 msgstr ""
13150
13151 #. type: verbatim
13152 #: ../src/guestfs-actions.pod:4512
13153 #, no-wrap
13154 msgid ""
13155 " int\n"
13156 " guestfs_mkmountpoint (guestfs_h *g,\n"
13157 "                       const char *exemptpath);\n"
13158 "\n"
13159 msgstr ""
13160
13161 #. type: textblock
13162 #: ../src/guestfs-actions.pod:4516
13163 msgid ""
13164 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
13165 "that can be used to create extra mountpoints before mounting the first "
13166 "filesystem."
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3057
13171 msgid ""
13172 "These calls are I<only> necessary in some very limited circumstances, mainly "
13173 "the case where you want to mount a mix of unrelated and/or read-only "
13174 "filesystems together."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3061
13179 msgid ""
13180 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13181 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13182 "inside that.  You can unpack this as follows in guestfish:"
13183 msgstr ""
13184
13185 #. type: verbatim
13186 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3066
13187 #, no-wrap
13188 msgid ""
13189 " add-ro Fedora-11-i686-Live.iso\n"
13190 " run\n"
13191 " mkmountpoint /cd\n"
13192 " mkmountpoint /sqsh\n"
13193 " mkmountpoint /ext3fs\n"
13194 " mount /dev/sda /cd\n"
13195 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13196 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13197 "\n"
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../src/guestfs-actions.pod:4538 ../fish/guestfish-actions.pod:3075
13202 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../src/guestfs-actions.pod:4540
13207 msgid ""
13208 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13209 "may get unexpected errors if you try to mix these calls.  It is safest to "
13210 "manually unmount filesystems and remove mountpoints after use."
13211 msgstr ""
13212
13213 #. type: textblock
13214 #: ../src/guestfs-actions.pod:4544
13215 msgid ""
13216 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13217 "first, so for this to work for manual mountpoints, you must ensure that the "
13218 "innermost mountpoints have the longest pathnames, as in the example code "
13219 "above."
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3086
13224 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../src/guestfs-actions.pod:4551
13229 msgid ""
13230 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13231 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13232 "can also trigger these issues."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:5726
13237 msgid "(Added in 1.0.62)"
13238 msgstr ""
13239
13240 #. type: =head2
13241 #: ../src/guestfs-actions.pod:4559
13242 msgid "guestfs_mknod"
13243 msgstr ""
13244
13245 #. type: verbatim
13246 #: ../src/guestfs-actions.pod:4561
13247 #, no-wrap
13248 msgid ""
13249 " int\n"
13250 " guestfs_mknod (guestfs_h *g,\n"
13251 "                int mode,\n"
13252 "                int devmajor,\n"
13253 "                int devminor,\n"
13254 "                const char *path);\n"
13255 "\n"
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../src/guestfs-actions.pod:4568 ../fish/guestfish-actions.pod:3096
13260 msgid ""
13261 "This call creates block or character special devices, or named pipes "
13262 "(FIFOs)."
13263 msgstr ""
13264
13265 #. type: textblock
13266 #: ../src/guestfs-actions.pod:4571 ../fish/guestfish-actions.pod:3099
13267 msgid ""
13268 "The C<mode> parameter should be the mode, using the standard constants.  "
13269 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13270 "used when creating block and character special devices."
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../src/guestfs-actions.pod:4576
13275 msgid ""
13276 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13277 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13278 "regular file).  These constants are available in the standard Linux header "
13279 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13280 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13281 "the appropriate constant for you."
13282 msgstr ""
13283
13284 #. type: =head2
13285 #: ../src/guestfs-actions.pod:4590
13286 msgid "guestfs_mknod_b"
13287 msgstr ""
13288
13289 #. type: verbatim
13290 #: ../src/guestfs-actions.pod:4592
13291 #, no-wrap
13292 msgid ""
13293 " int\n"
13294 " guestfs_mknod_b (guestfs_h *g,\n"
13295 "                  int mode,\n"
13296 "                  int devmajor,\n"
13297 "                  int devminor,\n"
13298 "                  const char *path);\n"
13299 "\n"
13300 msgstr ""
13301
13302 #. type: textblock
13303 #: ../src/guestfs-actions.pod:4599
13304 msgid ""
13305 "This call creates a block device node called C<path> with mode C<mode> and "
13306 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13307 "wrapper around C<guestfs_mknod>."
13308 msgstr ""
13309
13310 #. type: =head2
13311 #: ../src/guestfs-actions.pod:4609
13312 msgid "guestfs_mknod_c"
13313 msgstr ""
13314
13315 #. type: verbatim
13316 #: ../src/guestfs-actions.pod:4611
13317 #, no-wrap
13318 msgid ""
13319 " int\n"
13320 " guestfs_mknod_c (guestfs_h *g,\n"
13321 "                  int mode,\n"
13322 "                  int devmajor,\n"
13323 "                  int devminor,\n"
13324 "                  const char *path);\n"
13325 "\n"
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../src/guestfs-actions.pod:4618
13330 msgid ""
13331 "This call creates a char device node called C<path> with mode C<mode> and "
13332 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13333 "wrapper around C<guestfs_mknod>."
13334 msgstr ""
13335
13336 #. type: =head2
13337 #: ../src/guestfs-actions.pod:4628
13338 msgid "guestfs_mkswap"
13339 msgstr ""
13340
13341 #. type: verbatim
13342 #: ../src/guestfs-actions.pod:4630
13343 #, no-wrap
13344 msgid ""
13345 " int\n"
13346 " guestfs_mkswap (guestfs_h *g,\n"
13347 "                 const char *device);\n"
13348 "\n"
13349 msgstr ""
13350
13351 #. type: textblock
13352 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3138
13353 msgid "Create a swap partition on C<device>."
13354 msgstr ""
13355
13356 #. type: =head2
13357 #: ../src/guestfs-actions.pod:4640
13358 msgid "guestfs_mkswap_L"
13359 msgstr ""
13360
13361 #. type: verbatim
13362 #: ../src/guestfs-actions.pod:4642
13363 #, no-wrap
13364 msgid ""
13365 " int\n"
13366 " guestfs_mkswap_L (guestfs_h *g,\n"
13367 "                   const char *label,\n"
13368 "                   const char *device);\n"
13369 "\n"
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../src/guestfs-actions.pod:4647 ../fish/guestfish-actions.pod:3144
13374 msgid "Create a swap partition on C<device> with label C<label>."
13375 msgstr ""
13376
13377 #. type: textblock
13378 #: ../src/guestfs-actions.pod:4649 ../fish/guestfish-actions.pod:3146
13379 msgid ""
13380 "Note that you cannot attach a swap label to a block device "
13381 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13382 "the kernel or swap tools."
13383 msgstr ""
13384
13385 #. type: =head2
13386 #: ../src/guestfs-actions.pod:4657
13387 msgid "guestfs_mkswap_U"
13388 msgstr ""
13389
13390 #. type: verbatim
13391 #: ../src/guestfs-actions.pod:4659
13392 #, no-wrap
13393 msgid ""
13394 " int\n"
13395 " guestfs_mkswap_U (guestfs_h *g,\n"
13396 "                   const char *uuid,\n"
13397 "                   const char *device);\n"
13398 "\n"
13399 msgstr ""
13400
13401 #. type: textblock
13402 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3154
13403 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13404 msgstr ""
13405
13406 #. type: =head2
13407 #: ../src/guestfs-actions.pod:4670
13408 msgid "guestfs_mkswap_file"
13409 msgstr ""
13410
13411 #. type: verbatim
13412 #: ../src/guestfs-actions.pod:4672
13413 #, no-wrap
13414 msgid ""
13415 " int\n"
13416 " guestfs_mkswap_file (guestfs_h *g,\n"
13417 "                      const char *path);\n"
13418 "\n"
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3160
13423 msgid "Create a swap file."
13424 msgstr ""
13425
13426 #. type: textblock
13427 #: ../src/guestfs-actions.pod:4678
13428 msgid ""
13429 "This command just writes a swap file signature to an existing file.  To "
13430 "create the file itself, use something like C<guestfs_fallocate>."
13431 msgstr ""
13432
13433 #. type: =head2
13434 #: ../src/guestfs-actions.pod:4685
13435 msgid "guestfs_modprobe"
13436 msgstr ""
13437
13438 #. type: verbatim
13439 #: ../src/guestfs-actions.pod:4687
13440 #, no-wrap
13441 msgid ""
13442 " int\n"
13443 " guestfs_modprobe (guestfs_h *g,\n"
13444 "                   const char *modulename);\n"
13445 "\n"
13446 msgstr ""
13447
13448 #. type: textblock
13449 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3169
13450 msgid "This loads a kernel module in the appliance."
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3171
13455 msgid ""
13456 "The kernel module must have been whitelisted when libguestfs was built (see "
13457 "C<appliance/kmod.whitelist.in> in the source)."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../src/guestfs-actions.pod:4700
13462 msgid "guestfs_mount"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../src/guestfs-actions.pod:4702
13467 #, no-wrap
13468 msgid ""
13469 " int\n"
13470 " guestfs_mount (guestfs_h *g,\n"
13471 "                const char *device,\n"
13472 "                const char *mountpoint);\n"
13473 "\n"
13474 msgstr ""
13475
13476 #. type: textblock
13477 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3178
13478 msgid ""
13479 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13480 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13481 "those block devices contain partitions, they will have the usual names "
13482 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13483 msgstr ""
13484
13485 #. type: textblock
13486 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3184
13487 msgid ""
13488 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13489 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13490 "mounted on directories which already exist."
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3189
13495 msgid ""
13496 "The mounted filesystem is writable, if we have sufficient permissions on the "
13497 "underlying device."
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../src/guestfs-actions.pod:4721
13502 msgid ""
13503 "B<Important note:> When you use this call, the filesystem options C<sync> "
13504 "and C<noatime> are set implicitly.  This was originally done because we "
13505 "thought it would improve reliability, but it turns out that I<-o sync> has a "
13506 "very large negative performance impact and negligible effect on "
13507 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
13508 "in any code that needs performance, and instead use C<guestfs_mount_options> "
13509 "(use an empty string for the first parameter if you don't want any options)."
13510 msgstr ""
13511
13512 #. type: =head2
13513 #: ../src/guestfs-actions.pod:4735
13514 msgid "guestfs_mount_loop"
13515 msgstr ""
13516
13517 #. type: verbatim
13518 #: ../src/guestfs-actions.pod:4737
13519 #, no-wrap
13520 msgid ""
13521 " int\n"
13522 " guestfs_mount_loop (guestfs_h *g,\n"
13523 "                     const char *file,\n"
13524 "                     const char *mountpoint);\n"
13525 "\n"
13526 msgstr ""
13527
13528 #. type: textblock
13529 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3206
13530 msgid ""
13531 "This command lets you mount C<file> (a filesystem image in a file) on a "
13532 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13533 "mountpoint>."
13534 msgstr ""
13535
13536 #. type: =head2
13537 #: ../src/guestfs-actions.pod:4750
13538 msgid "guestfs_mount_options"
13539 msgstr ""
13540
13541 #. type: verbatim
13542 #: ../src/guestfs-actions.pod:4752
13543 #, no-wrap
13544 msgid ""
13545 " int\n"
13546 " guestfs_mount_options (guestfs_h *g,\n"
13547 "                        const char *options,\n"
13548 "                        const char *device,\n"
13549 "                        const char *mountpoint);\n"
13550 "\n"
13551 msgstr ""
13552
13553 #. type: textblock
13554 #: ../src/guestfs-actions.pod:4758
13555 msgid ""
13556 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13557 "the mount options as for the L<mount(8)> I<-o> flag."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3218
13562 msgid ""
13563 "If the C<options> parameter is an empty string, then no options are passed "
13564 "(all options default to whatever the filesystem uses)."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4799
13569 msgid "(Added in 1.0.10)"
13570 msgstr ""
13571
13572 #. type: =head2
13573 #: ../src/guestfs-actions.pod:4770
13574 msgid "guestfs_mount_ro"
13575 msgstr ""
13576
13577 #. type: verbatim
13578 #: ../src/guestfs-actions.pod:4772
13579 #, no-wrap
13580 msgid ""
13581 " int\n"
13582 " guestfs_mount_ro (guestfs_h *g,\n"
13583 "                   const char *device,\n"
13584 "                   const char *mountpoint);\n"
13585 "\n"
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../src/guestfs-actions.pod:4777
13590 msgid ""
13591 "This is the same as the C<guestfs_mount> command, but it mounts the "
13592 "filesystem with the read-only (I<-o ro>) flag."
13593 msgstr ""
13594
13595 #. type: =head2
13596 #: ../src/guestfs-actions.pod:4784
13597 msgid "guestfs_mount_vfs"
13598 msgstr ""
13599
13600 #. type: verbatim
13601 #: ../src/guestfs-actions.pod:4786
13602 #, no-wrap
13603 msgid ""
13604 " int\n"
13605 " guestfs_mount_vfs (guestfs_h *g,\n"
13606 "                    const char *options,\n"
13607 "                    const char *vfstype,\n"
13608 "                    const char *device,\n"
13609 "                    const char *mountpoint);\n"
13610 "\n"
13611 msgstr ""
13612
13613 #. type: textblock
13614 #: ../src/guestfs-actions.pod:4793
13615 msgid ""
13616 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13617 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
13618 "I<-t> flags."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../src/guestfs-actions.pod:4801
13623 msgid "guestfs_mountpoints"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../src/guestfs-actions.pod:4803
13628 #, no-wrap
13629 msgid ""
13630 " char **\n"
13631 " guestfs_mountpoints (guestfs_h *g);\n"
13632 "\n"
13633 msgstr ""
13634
13635 #. type: textblock
13636 #: ../src/guestfs-actions.pod:4806
13637 msgid ""
13638 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
13639 "devices.  This one returns a hash table (map) of device name to directory "
13640 "where the device is mounted."
13641 msgstr ""
13642
13643 #. type: =head2
13644 #: ../src/guestfs-actions.pod:4818
13645 msgid "guestfs_mounts"
13646 msgstr ""
13647
13648 #. type: verbatim
13649 #: ../src/guestfs-actions.pod:4820
13650 #, no-wrap
13651 msgid ""
13652 " char **\n"
13653 " guestfs_mounts (guestfs_h *g);\n"
13654 "\n"
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../src/guestfs-actions.pod:4823 ../fish/guestfish-actions.pod:3249
13659 msgid ""
13660 "This returns the list of currently mounted filesystems.  It returns the list "
13661 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3252
13666 msgid "Some internal mounts are not shown."
13667 msgstr ""
13668
13669 #. type: textblock
13670 #: ../src/guestfs-actions.pod:4828
13671 msgid "See also: C<guestfs_mountpoints>"
13672 msgstr ""
13673
13674 #. type: =head2
13675 #: ../src/guestfs-actions.pod:4836
13676 msgid "guestfs_mv"
13677 msgstr ""
13678
13679 #. type: verbatim
13680 #: ../src/guestfs-actions.pod:4838
13681 #, no-wrap
13682 msgid ""
13683 " int\n"
13684 " guestfs_mv (guestfs_h *g,\n"
13685 "             const char *src,\n"
13686 "             const char *dest);\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3260
13692 msgid ""
13693 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13694 "destination filename or destination directory."
13695 msgstr ""
13696
13697 #. type: =head2
13698 #: ../src/guestfs-actions.pod:4850
13699 msgid "guestfs_ntfs_3g_probe"
13700 msgstr ""
13701
13702 #. type: verbatim
13703 #: ../src/guestfs-actions.pod:4852
13704 #, no-wrap
13705 msgid ""
13706 " int\n"
13707 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
13708 "                        int rw,\n"
13709 "                        const char *device);\n"
13710 "\n"
13711 msgstr ""
13712
13713 #. type: textblock
13714 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3267
13715 msgid ""
13716 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13717 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13718 "read-write, and some cannot be mounted at all)."
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3271
13723 msgid ""
13724 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13725 "can be mounted read-write.  Set it to false if you want to test if the "
13726 "volume can be mounted read-only."
13727 msgstr ""
13728
13729 #. type: textblock
13730 #: ../src/guestfs-actions.pod:4865 ../fish/guestfish-actions.pod:3275
13731 msgid ""
13732 "The return value is an integer which C<0> if the operation would succeed, or "
13733 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13734 msgstr ""
13735
13736 #. type: textblock
13737 #: ../src/guestfs-actions.pod:4871
13738 msgid "(Added in 1.0.43)"
13739 msgstr ""
13740
13741 #. type: =head2
13742 #: ../src/guestfs-actions.pod:4873
13743 msgid "guestfs_ntfsresize"
13744 msgstr ""
13745
13746 #. type: verbatim
13747 #: ../src/guestfs-actions.pod:4875
13748 #, no-wrap
13749 msgid ""
13750 " int\n"
13751 " guestfs_ntfsresize (guestfs_h *g,\n"
13752 "                     const char *device);\n"
13753 "\n"
13754 msgstr ""
13755
13756 #. type: textblock
13757 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3283
13758 msgid ""
13759 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13760 "size of the underlying device.  See also L<ntfsresize(8)>."
13761 msgstr ""
13762
13763 #. type: =head2
13764 #: ../src/guestfs-actions.pod:4887
13765 msgid "guestfs_ntfsresize_size"
13766 msgstr ""
13767
13768 #. type: verbatim
13769 #: ../src/guestfs-actions.pod:4889
13770 #, no-wrap
13771 msgid ""
13772 " int\n"
13773 " guestfs_ntfsresize_size (guestfs_h *g,\n"
13774 "                          const char *device,\n"
13775 "                          int64_t size);\n"
13776 "\n"
13777 msgstr ""
13778
13779 #. type: textblock
13780 #: ../src/guestfs-actions.pod:4894
13781 msgid ""
13782 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
13783 "to specify the new size (in bytes) explicitly."
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5408 ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:7245
13788 msgid "(Added in 1.3.14)"
13789 msgstr ""
13790
13791 #. type: =head2
13792 #: ../src/guestfs-actions.pod:4901
13793 msgid "guestfs_part_add"
13794 msgstr ""
13795
13796 #. type: verbatim
13797 #: ../src/guestfs-actions.pod:4903
13798 #, no-wrap
13799 msgid ""
13800 " int\n"
13801 " guestfs_part_add (guestfs_h *g,\n"
13802 "                   const char *device,\n"
13803 "                   const char *prlogex,\n"
13804 "                   int64_t startsect,\n"
13805 "                   int64_t endsect);\n"
13806 "\n"
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../src/guestfs-actions.pod:4910
13811 msgid ""
13812 "This command adds a partition to C<device>.  If there is no partition table "
13813 "on the device, call C<guestfs_part_init> first."
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3301
13818 msgid ""
13819 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13820 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13821 "C<logical>) and C<e> (or C<extended>) partition types."
13822 msgstr ""
13823
13824 #. type: textblock
13825 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3306
13826 msgid ""
13827 "C<startsect> and C<endsect> are the start and end of the partition in "
13828 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13829 "from the end of the disk (C<-1> is the last sector)."
13830 msgstr ""
13831
13832 #. type: textblock
13833 #: ../src/guestfs-actions.pod:4922
13834 msgid ""
13835 "Creating a partition which covers the whole disk is not so easy.  Use "
13836 "C<guestfs_part_disk> to do that."
13837 msgstr ""
13838
13839 #. type: textblock
13840 #: ../src/guestfs-actions.pod:4927 ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5193
13841 msgid "(Added in 1.0.78)"
13842 msgstr ""
13843
13844 #. type: =head2
13845 #: ../src/guestfs-actions.pod:4929
13846 msgid "guestfs_part_del"
13847 msgstr ""
13848
13849 #. type: verbatim
13850 #: ../src/guestfs-actions.pod:4931
13851 #, no-wrap
13852 msgid ""
13853 " int\n"
13854 " guestfs_part_del (guestfs_h *g,\n"
13855 "                   const char *device,\n"
13856 "                   int partnum);\n"
13857 "\n"
13858 msgstr ""
13859
13860 #. type: textblock
13861 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3317
13862 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13863 msgstr ""
13864
13865 #. type: textblock
13866 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3319
13867 msgid ""
13868 "Note that in the case of MBR partitioning, deleting an extended partition "
13869 "also deletes any logical partitions it contains."
13870 msgstr ""
13871
13872 #. type: =head2
13873 #: ../src/guestfs-actions.pod:4946
13874 msgid "guestfs_part_disk"
13875 msgstr ""
13876
13877 #. type: verbatim
13878 #: ../src/guestfs-actions.pod:4948
13879 #, no-wrap
13880 msgid ""
13881 " int\n"
13882 " guestfs_part_disk (guestfs_h *g,\n"
13883 "                    const char *device,\n"
13884 "                    const char *parttype);\n"
13885 "\n"
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../src/guestfs-actions.pod:4953
13890 msgid ""
13891 "This command is simply a combination of C<guestfs_part_init> followed by "
13892 "C<guestfs_part_add> to create a single primary partition covering the whole "
13893 "disk."
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../src/guestfs-actions.pod:4957
13898 msgid ""
13899 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13900 "possible values are described in C<guestfs_part_init>."
13901 msgstr ""
13902
13903 #. type: =head2
13904 #: ../src/guestfs-actions.pod:4967
13905 msgid "guestfs_part_get_bootable"
13906 msgstr ""
13907
13908 #. type: verbatim
13909 #: ../src/guestfs-actions.pod:4969
13910 #, no-wrap
13911 msgid ""
13912 " int\n"
13913 " guestfs_part_get_bootable (guestfs_h *g,\n"
13914 "                            const char *device,\n"
13915 "                            int partnum);\n"
13916 "\n"
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3341
13921 msgid ""
13922 "This command returns true if the partition C<partnum> on C<device> has the "
13923 "bootable flag set."
13924 msgstr ""
13925
13926 #. type: textblock
13927 #: ../src/guestfs-actions.pod:4977
13928 msgid "See also C<guestfs_part_set_bootable>."
13929 msgstr ""
13930
13931 #. type: =head2
13932 #: ../src/guestfs-actions.pod:4983
13933 msgid "guestfs_part_get_mbr_id"
13934 msgstr ""
13935
13936 #. type: verbatim
13937 #: ../src/guestfs-actions.pod:4985
13938 #, no-wrap
13939 msgid ""
13940 " int\n"
13941 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
13942 "                          const char *device,\n"
13943 "                          int partnum);\n"
13944 "\n"
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3350
13949 msgid ""
13950 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13951 "partition C<partnum>."
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../src/guestfs-actions.pod:4993 ../src/guestfs-actions.pod:5169
13956 msgid ""
13957 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13958 "undefined results for other partition table types (see "
13959 "C<guestfs_part_get_parttype>)."
13960 msgstr ""
13961
13962 #. type: =head2
13963 #: ../src/guestfs-actions.pod:5001
13964 msgid "guestfs_part_get_parttype"
13965 msgstr ""
13966
13967 #. type: verbatim
13968 #: ../src/guestfs-actions.pod:5003
13969 #, no-wrap
13970 msgid ""
13971 " char *\n"
13972 " guestfs_part_get_parttype (guestfs_h *g,\n"
13973 "                            const char *device);\n"
13974 "\n"
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3361
13979 msgid ""
13980 "This command examines the partition table on C<device> and returns the "
13981 "partition table type (format) being used."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../src/guestfs-actions.pod:5010
13986 msgid ""
13987 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13988 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13989 "possible, although unusual.  See C<guestfs_part_init> for a full list."
13990 msgstr ""
13991
13992 #. type: =head2
13993 #: ../src/guestfs-actions.pod:5020
13994 msgid "guestfs_part_init"
13995 msgstr ""
13996
13997 #. type: verbatim
13998 #: ../src/guestfs-actions.pod:5022
13999 #, no-wrap
14000 msgid ""
14001 " int\n"
14002 " guestfs_part_init (guestfs_h *g,\n"
14003 "                    const char *device,\n"
14004 "                    const char *parttype);\n"
14005 "\n"
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:5027 ../fish/guestfish-actions.pod:3373
14010 msgid ""
14011 "This creates an empty partition table on C<device> of one of the partition "
14012 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14013 "(for large disks)."
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../src/guestfs-actions.pod:5031
14018 msgid ""
14019 "Initially there are no partitions.  Following this, you should call "
14020 "C<guestfs_part_add> for each partition required."
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3380
14025 msgid "Possible values for C<parttype> are:"
14026 msgstr ""
14027
14028 #. type: =item
14029 #: ../src/guestfs-actions.pod:5038 ../fish/guestfish-actions.pod:3384
14030 msgid "B<efi> | B<gpt>"
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3386
14035 msgid "Intel EFI / GPT partition table."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3388
14040 msgid ""
14041 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14042 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14043 "the C<mbr> format."
14044 msgstr ""
14045
14046 #. type: =item
14047 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3392
14048 msgid "B<mbr> | B<msdos>"
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../src/guestfs-actions.pod:5048 ../fish/guestfish-actions.pod:3394
14053 msgid ""
14054 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14055 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14056 "TB.  For large disks we recommend using C<gpt>."
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3401
14061 msgid "Other partition table types that may work but are not supported include:"
14062 msgstr ""
14063
14064 #. type: =item
14065 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3406
14066 msgid "B<aix>"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3408
14071 msgid "AIX disk labels."
14072 msgstr ""
14073
14074 #. type: =item
14075 #: ../src/guestfs-actions.pod:5064 ../fish/guestfish-actions.pod:3410
14076 msgid "B<amiga> | B<rdb>"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3412
14081 msgid "Amiga \"Rigid Disk Block\" format."
14082 msgstr ""
14083
14084 #. type: =item
14085 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3414
14086 msgid "B<bsd>"
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3416
14091 msgid "BSD disk labels."
14092 msgstr ""
14093
14094 #. type: =item
14095 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3418
14096 msgid "B<dasd>"
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3420
14101 msgid "DASD, used on IBM mainframes."
14102 msgstr ""
14103
14104 #. type: =item
14105 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3422
14106 msgid "B<dvh>"
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3424
14111 msgid "MIPS/SGI volumes."
14112 msgstr ""
14113
14114 #. type: =item
14115 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3426
14116 msgid "B<mac>"
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3428
14121 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14122 msgstr ""
14123
14124 #. type: =item
14125 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3430
14126 msgid "B<pc98>"
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3432
14131 msgid "NEC PC-98 format, common in Japan apparently."
14132 msgstr ""
14133
14134 #. type: =item
14135 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3434
14136 msgid "B<sun>"
14137 msgstr ""
14138
14139 #. type: textblock
14140 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3436
14141 msgid "Sun disk labels."
14142 msgstr ""
14143
14144 #. type: =head2
14145 #: ../src/guestfs-actions.pod:5098
14146 msgid "guestfs_part_list"
14147 msgstr ""
14148
14149 #. type: verbatim
14150 #: ../src/guestfs-actions.pod:5100
14151 #, no-wrap
14152 msgid ""
14153 " struct guestfs_partition_list *\n"
14154 " guestfs_part_list (guestfs_h *g,\n"
14155 "                    const char *device);\n"
14156 "\n"
14157 msgstr ""
14158
14159 #. type: textblock
14160 #: ../src/guestfs-actions.pod:5104 ../fish/guestfish-actions.pod:3444
14161 msgid ""
14162 "This command parses the partition table on C<device> and returns the list of "
14163 "partitions found."
14164 msgstr ""
14165
14166 #. type: textblock
14167 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3447
14168 msgid "The fields in the returned structure are:"
14169 msgstr ""
14170
14171 #. type: =item
14172 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3451
14173 msgid "B<part_num>"
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3453
14178 msgid "Partition number, counting from 1."
14179 msgstr ""
14180
14181 #. type: =item
14182 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3455
14183 msgid "B<part_start>"
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../src/guestfs-actions.pod:5117
14188 msgid ""
14189 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14190 "the device's sector size, see C<guestfs_blockdev_getss>."
14191 msgstr ""
14192
14193 #. type: =item
14194 #: ../src/guestfs-actions.pod:5120 ../fish/guestfish-actions.pod:3460
14195 msgid "B<part_end>"
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3462
14200 msgid "End of the partition in bytes."
14201 msgstr ""
14202
14203 #. type: =item
14204 #: ../src/guestfs-actions.pod:5124 ../fish/guestfish-actions.pod:3464
14205 msgid "B<part_size>"
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3466
14210 msgid "Size of the partition in bytes."
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../src/guestfs-actions.pod:5130
14215 msgid ""
14216 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14217 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14218 "use>."
14219 msgstr ""
14220
14221 #. type: =head2
14222 #: ../src/guestfs-actions.pod:5136
14223 msgid "guestfs_part_set_bootable"
14224 msgstr ""
14225
14226 #. type: verbatim
14227 #: ../src/guestfs-actions.pod:5138
14228 #, no-wrap
14229 msgid ""
14230 " int\n"
14231 " guestfs_part_set_bootable (guestfs_h *g,\n"
14232 "                            const char *device,\n"
14233 "                            int partnum,\n"
14234 "                            int bootable);\n"
14235 "\n"
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:3474
14240 msgid ""
14241 "This sets the bootable flag on partition numbered C<partnum> on device "
14242 "C<device>.  Note that partitions are numbered from 1."
14243 msgstr ""
14244
14245 #. type: textblock
14246 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3477
14247 msgid ""
14248 "The bootable flag is used by some operating systems (notably Windows) to "
14249 "determine which partition to boot from.  It is by no means universally "
14250 "recognized."
14251 msgstr ""
14252
14253 #. type: =head2
14254 #: ../src/guestfs-actions.pod:5155
14255 msgid "guestfs_part_set_mbr_id"
14256 msgstr ""
14257
14258 #. type: verbatim
14259 #: ../src/guestfs-actions.pod:5157
14260 #, no-wrap
14261 msgid ""
14262 " int\n"
14263 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14264 "                          const char *device,\n"
14265 "                          int partnum,\n"
14266 "                          int idbyte);\n"
14267 "\n"
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3485
14272 msgid ""
14273 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14274 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14275 "documentation are in fact hexadecimal numbers, but usually documented "
14276 "without any leading \"0x\" which might be confusing."
14277 msgstr ""
14278
14279 #. type: =head2
14280 #: ../src/guestfs-actions.pod:5177
14281 msgid "guestfs_part_set_name"
14282 msgstr ""
14283
14284 #. type: verbatim
14285 #: ../src/guestfs-actions.pod:5179
14286 #, no-wrap
14287 msgid ""
14288 " int\n"
14289 " guestfs_part_set_name (guestfs_h *g,\n"
14290 "                        const char *device,\n"
14291 "                        int partnum,\n"
14292 "                        const char *name);\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3499
14298 msgid ""
14299 "This sets the partition name on partition numbered C<partnum> on device "
14300 "C<device>.  Note that partitions are numbered from 1."
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3502
14305 msgid ""
14306 "The partition name can only be set on certain types of partition table.  "
14307 "This works on C<gpt> but not on C<mbr> partitions."
14308 msgstr ""
14309
14310 #. type: =head2
14311 #: ../src/guestfs-actions.pod:5195
14312 msgid "guestfs_part_to_dev"
14313 msgstr ""
14314
14315 #. type: verbatim
14316 #: ../src/guestfs-actions.pod:5197
14317 #, no-wrap
14318 msgid ""
14319 " char *\n"
14320 " guestfs_part_to_dev (guestfs_h *g,\n"
14321 "                      const char *partition);\n"
14322 "\n"
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3509
14327 msgid ""
14328 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14329 "partition number, returning the device name (eg. \"/dev/sdb\")."
14330 msgstr ""
14331
14332 #. type: textblock
14333 #: ../src/guestfs-actions.pod:5205
14334 msgid ""
14335 "The named partition must exist, for example as a string returned from "
14336 "C<guestfs_list_partitions>."
14337 msgstr ""
14338
14339 #. type: =head2
14340 #: ../src/guestfs-actions.pod:5213
14341 msgid "guestfs_ping_daemon"
14342 msgstr ""
14343
14344 #. type: verbatim
14345 #: ../src/guestfs-actions.pod:5215
14346 #, no-wrap
14347 msgid ""
14348 " int\n"
14349 " guestfs_ping_daemon (guestfs_h *g);\n"
14350 "\n"
14351 msgstr ""
14352
14353 #. type: textblock
14354 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:3520
14355 msgid ""
14356 "This is a test probe into the guestfs daemon running inside the qemu "
14357 "subprocess.  Calling this function checks that the daemon responds to the "
14358 "ping message, without affecting the daemon or attached block device(s) in "
14359 "any other way."
14360 msgstr ""
14361
14362 #. type: =head2
14363 #: ../src/guestfs-actions.pod:5227
14364 msgid "guestfs_pread"
14365 msgstr ""
14366
14367 #. type: verbatim
14368 #: ../src/guestfs-actions.pod:5229
14369 #, no-wrap
14370 msgid ""
14371 " char *\n"
14372 " guestfs_pread (guestfs_h *g,\n"
14373 "                const char *path,\n"
14374 "                int count,\n"
14375 "                int64_t offset,\n"
14376 "                size_t *size_r);\n"
14377 "\n"
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../src/guestfs-actions.pod:5236 ../fish/guestfish-actions.pod:3529
14382 msgid ""
14383 "This command lets you read part of a file.  It reads C<count> bytes of the "
14384 "file, starting at C<offset>, from file C<path>."
14385 msgstr ""
14386
14387 #. type: textblock
14388 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3532 ../fish/guestfish-actions.pod:3547
14389 msgid ""
14390 "This may read fewer bytes than requested.  For further details see the "
14391 "L<pread(2)> system call."
14392 msgstr ""
14393
14394 #. type: textblock
14395 #: ../src/guestfs-actions.pod:5242
14396 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
14397 msgstr ""
14398
14399 #. type: =head2
14400 #: ../src/guestfs-actions.pod:5253
14401 msgid "guestfs_pread_device"
14402 msgstr ""
14403
14404 #. type: verbatim
14405 #: ../src/guestfs-actions.pod:5255
14406 #, no-wrap
14407 msgid ""
14408 " char *\n"
14409 " guestfs_pread_device (guestfs_h *g,\n"
14410 "                       const char *device,\n"
14411 "                       int count,\n"
14412 "                       int64_t offset,\n"
14413 "                       size_t *size_r);\n"
14414 "\n"
14415 msgstr ""
14416
14417 #. type: textblock
14418 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:3544
14419 msgid ""
14420 "This command lets you read part of a file.  It reads C<count> bytes of "
14421 "C<device>, starting at C<offset>."
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../src/guestfs-actions.pod:5268
14426 msgid "See also C<guestfs_pread>."
14427 msgstr ""
14428
14429 #. type: textblock
14430 #: ../src/guestfs-actions.pod:5277
14431 msgid "(Added in 1.5.21)"
14432 msgstr ""
14433
14434 #. type: =head2
14435 #: ../src/guestfs-actions.pod:5279
14436 msgid "guestfs_pvcreate"
14437 msgstr ""
14438
14439 #. type: verbatim
14440 #: ../src/guestfs-actions.pod:5281
14441 #, no-wrap
14442 msgid ""
14443 " int\n"
14444 " guestfs_pvcreate (guestfs_h *g,\n"
14445 "                   const char *device);\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../src/guestfs-actions.pod:5285 ../fish/guestfish-actions.pod:3559
14451 msgid ""
14452 "This creates an LVM physical volume on the named C<device>, where C<device> "
14453 "should usually be a partition name such as C</dev/sda1>."
14454 msgstr ""
14455
14456 #. type: =head2
14457 #: ../src/guestfs-actions.pod:5293
14458 msgid "guestfs_pvremove"
14459 msgstr ""
14460
14461 #. type: verbatim
14462 #: ../src/guestfs-actions.pod:5295
14463 #, no-wrap
14464 msgid ""
14465 " int\n"
14466 " guestfs_pvremove (guestfs_h *g,\n"
14467 "                   const char *device);\n"
14468 "\n"
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:3567
14473 msgid ""
14474 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14475 "it."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3570
14480 msgid ""
14481 "The implementation uses the C<pvremove> command which refuses to wipe "
14482 "physical volumes that contain any volume groups, so you have to remove those "
14483 "first."
14484 msgstr ""
14485
14486 #. type: =head2
14487 #: ../src/guestfs-actions.pod:5310
14488 msgid "guestfs_pvresize"
14489 msgstr ""
14490
14491 #. type: verbatim
14492 #: ../src/guestfs-actions.pod:5312
14493 #, no-wrap
14494 msgid ""
14495 " int\n"
14496 " guestfs_pvresize (guestfs_h *g,\n"
14497 "                   const char *device);\n"
14498 "\n"
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3578
14503 msgid ""
14504 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14505 "the new size of the underlying device."
14506 msgstr ""
14507
14508 #. type: =head2
14509 #: ../src/guestfs-actions.pod:5323
14510 msgid "guestfs_pvresize_size"
14511 msgstr ""
14512
14513 #. type: verbatim
14514 #: ../src/guestfs-actions.pod:5325
14515 #, no-wrap
14516 msgid ""
14517 " int\n"
14518 " guestfs_pvresize_size (guestfs_h *g,\n"
14519 "                        const char *device,\n"
14520 "                        int64_t size);\n"
14521 "\n"
14522 msgstr ""
14523
14524 #. type: textblock
14525 #: ../src/guestfs-actions.pod:5330
14526 msgid ""
14527 "This command is the same as C<guestfs_pvresize> except that it allows you to "
14528 "specify the new size (in bytes) explicitly."
14529 msgstr ""
14530
14531 #. type: =head2
14532 #: ../src/guestfs-actions.pod:5337
14533 msgid "guestfs_pvs"
14534 msgstr ""
14535
14536 #. type: verbatim
14537 #: ../src/guestfs-actions.pod:5339
14538 #, no-wrap
14539 msgid ""
14540 " char **\n"
14541 " guestfs_pvs (guestfs_h *g);\n"
14542 "\n"
14543 msgstr ""
14544
14545 #. type: textblock
14546 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3592
14547 msgid ""
14548 "List all the physical volumes detected.  This is the equivalent of the "
14549 "L<pvs(8)> command."
14550 msgstr ""
14551
14552 #. type: textblock
14553 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3595
14554 msgid ""
14555 "This returns a list of just the device names that contain PVs "
14556 "(eg. C</dev/sda2>)."
14557 msgstr ""
14558
14559 #. type: textblock
14560 #: ../src/guestfs-actions.pod:5348
14561 msgid "See also C<guestfs_pvs_full>."
14562 msgstr ""
14563
14564 #. type: =head2
14565 #: ../src/guestfs-actions.pod:5356
14566 msgid "guestfs_pvs_full"
14567 msgstr ""
14568
14569 #. type: verbatim
14570 #: ../src/guestfs-actions.pod:5358
14571 #, no-wrap
14572 msgid ""
14573 " struct guestfs_lvm_pv_list *\n"
14574 " guestfs_pvs_full (guestfs_h *g);\n"
14575 "\n"
14576 msgstr ""
14577
14578 #. type: textblock
14579 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3604
14580 msgid ""
14581 "List all the physical volumes detected.  This is the equivalent of the "
14582 "L<pvs(8)> command.  The \"full\" version includes all fields."
14583 msgstr ""
14584
14585 #. type: textblock
14586 #: ../src/guestfs-actions.pod:5364
14587 msgid ""
14588 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
14589 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
14590 "use>."
14591 msgstr ""
14592
14593 #. type: =head2
14594 #: ../src/guestfs-actions.pod:5370
14595 msgid "guestfs_pvuuid"
14596 msgstr ""
14597
14598 #. type: verbatim
14599 #: ../src/guestfs-actions.pod:5372
14600 #, no-wrap
14601 msgid ""
14602 " char *\n"
14603 " guestfs_pvuuid (guestfs_h *g,\n"
14604 "                 const char *device);\n"
14605 "\n"
14606 msgstr ""
14607
14608 #. type: textblock
14609 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3611
14610 msgid "This command returns the UUID of the LVM PV C<device>."
14611 msgstr ""
14612
14613 #. type: =head2
14614 #: ../src/guestfs-actions.pod:5383
14615 msgid "guestfs_pwrite"
14616 msgstr ""
14617
14618 #. type: verbatim
14619 #: ../src/guestfs-actions.pod:5385
14620 #, no-wrap
14621 msgid ""
14622 " int\n"
14623 " guestfs_pwrite (guestfs_h *g,\n"
14624 "                 const char *path,\n"
14625 "                 const char *content,\n"
14626 "                 size_t content_size,\n"
14627 "                 int64_t offset);\n"
14628 "\n"
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3617
14633 msgid ""
14634 "This command writes to part of a file.  It writes the data buffer C<content> "
14635 "to the file C<path> starting at offset C<offset>."
14636 msgstr ""
14637
14638 #. type: textblock
14639 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3620
14640 msgid ""
14641 "This command implements the L<pwrite(2)> system call, and like that system "
14642 "call it may not write the full data requested.  The return value is the "
14643 "number of bytes that were actually written to the file.  This could even be "
14644 "0, although short writes are unlikely for regular files in ordinary "
14645 "circumstances."
14646 msgstr ""
14647
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:5401
14650 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
14651 msgstr ""
14652
14653 #. type: =head2
14654 #: ../src/guestfs-actions.pod:5410
14655 msgid "guestfs_pwrite_device"
14656 msgstr ""
14657
14658 #. type: verbatim
14659 #: ../src/guestfs-actions.pod:5412
14660 #, no-wrap
14661 msgid ""
14662 " int\n"
14663 " guestfs_pwrite_device (guestfs_h *g,\n"
14664 "                        const char *device,\n"
14665 "                        const char *content,\n"
14666 "                        size_t content_size,\n"
14667 "                        int64_t offset);\n"
14668 "\n"
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../src/guestfs-actions.pod:5419 ../fish/guestfish-actions.pod:3635
14673 msgid ""
14674 "This command writes to part of a device.  It writes the data buffer "
14675 "C<content> to C<device> starting at offset C<offset>."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3638
14680 msgid ""
14681 "This command implements the L<pwrite(2)> system call, and like that system "
14682 "call it may not write the full data requested (although short writes to disk "
14683 "devices and partitions are probably impossible with standard Linux kernels)."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../src/guestfs-actions.pod:5427
14688 msgid "See also C<guestfs_pwrite>."
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../src/guestfs-actions.pod:5434
14693 msgid "(Added in 1.5.20)"
14694 msgstr ""
14695
14696 #. type: =head2
14697 #: ../src/guestfs-actions.pod:5436
14698 msgid "guestfs_read_file"
14699 msgstr ""
14700
14701 #. type: verbatim
14702 #: ../src/guestfs-actions.pod:5438
14703 #, no-wrap
14704 msgid ""
14705 " char *\n"
14706 " guestfs_read_file (guestfs_h *g,\n"
14707 "                    const char *path,\n"
14708 "                    size_t *size_r);\n"
14709 "\n"
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../src/guestfs-actions.pod:5443 ../fish/guestfish-actions.pod:3652
14714 msgid "This calls returns the contents of the file C<path> as a buffer."
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../src/guestfs-actions.pod:5446
14719 msgid ""
14720 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
14721 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
14722 "function is limited in the total size of file that can be handled."
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../src/guestfs-actions.pod:5458
14727 msgid "(Added in 1.0.63)"
14728 msgstr ""
14729
14730 #. type: =head2
14731 #: ../src/guestfs-actions.pod:5460
14732 msgid "guestfs_read_lines"
14733 msgstr ""
14734
14735 #. type: verbatim
14736 #: ../src/guestfs-actions.pod:5462
14737 #, no-wrap
14738 msgid ""
14739 " char **\n"
14740 " guestfs_read_lines (guestfs_h *g,\n"
14741 "                     const char *path);\n"
14742 "\n"
14743 msgstr ""
14744
14745 #. type: textblock
14746 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:3669
14747 msgid ""
14748 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14749 "C<CRLF> character sequences are I<not> returned."
14750 msgstr ""
14751
14752 #. type: textblock
14753 #: ../src/guestfs-actions.pod:5471
14754 msgid ""
14755 "Note that this function cannot correctly handle binary files (specifically, "
14756 "files containing C<\\0> character which is treated as end of line).  For "
14757 "those you need to use the C<guestfs_read_file> function which has a more "
14758 "complex interface."
14759 msgstr ""
14760
14761 #. type: =head2
14762 #: ../src/guestfs-actions.pod:5482
14763 msgid "guestfs_readdir"
14764 msgstr ""
14765
14766 #. type: verbatim
14767 #: ../src/guestfs-actions.pod:5484
14768 #, no-wrap
14769 msgid ""
14770 " struct guestfs_dirent_list *\n"
14771 " guestfs_readdir (guestfs_h *g,\n"
14772 "                  const char *dir);\n"
14773 "\n"
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../src/guestfs-actions.pod:5488 ../fish/guestfish-actions.pod:3681
14778 msgid "This returns the list of directory entries in directory C<dir>."
14779 msgstr ""
14780
14781 #. type: textblock
14782 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:3683
14783 msgid ""
14784 "All entries in the directory are returned, including C<.> and C<..>.  The "
14785 "entries are I<not> sorted, but returned in the same order as the underlying "
14786 "filesystem."
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3687
14791 msgid ""
14792 "Also this call returns basic file type information about each file.  The "
14793 "C<ftyp> field will contain one of the following characters:"
14794 msgstr ""
14795
14796 #. type: =item
14797 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:3692
14798 msgid "'b'"
14799 msgstr ""
14800
14801 #. type: textblock
14802 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
14803 msgid "Block special"
14804 msgstr ""
14805
14806 #. type: =item
14807 #: ../src/guestfs-actions.pod:5503 ../fish/guestfish-actions.pod:3696
14808 msgid "'c'"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3698
14813 msgid "Char special"
14814 msgstr ""
14815
14816 #. type: =item
14817 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3700
14818 msgid "'d'"
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3702
14823 msgid "Directory"
14824 msgstr ""
14825
14826 #. type: =item
14827 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3704
14828 msgid "'f'"
14829 msgstr ""
14830
14831 #. type: textblock
14832 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3706
14833 msgid "FIFO (named pipe)"
14834 msgstr ""
14835
14836 #. type: =item
14837 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3708
14838 msgid "'l'"
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3710
14843 msgid "Symbolic link"
14844 msgstr ""
14845
14846 #. type: =item
14847 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3712
14848 msgid "'r'"
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3714
14853 msgid "Regular file"
14854 msgstr ""
14855
14856 #. type: =item
14857 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3716
14858 msgid "'s'"
14859 msgstr ""
14860
14861 #. type: textblock
14862 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3718
14863 msgid "Socket"
14864 msgstr ""
14865
14866 #. type: =item
14867 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3720
14868 msgid "'u'"
14869 msgstr ""
14870
14871 #. type: textblock
14872 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3722
14873 msgid "Unknown file type"
14874 msgstr ""
14875
14876 #. type: =item
14877 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:3724
14878 msgid "'?'"
14879 msgstr ""
14880
14881 #. type: textblock
14882 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3726
14883 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../src/guestfs-actions.pod:5538
14888 msgid ""
14889 "This function is primarily intended for use by programs.  To get a simple "
14890 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
14891 "consumption, use C<guestfs_ll>."
14892 msgstr ""
14893
14894 #. type: textblock
14895 #: ../src/guestfs-actions.pod:5542
14896 msgid ""
14897 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
14898 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
14899 "use>."
14900 msgstr ""
14901
14902 #. type: =head2
14903 #: ../src/guestfs-actions.pod:5548
14904 msgid "guestfs_readlink"
14905 msgstr ""
14906
14907 #. type: verbatim
14908 #: ../src/guestfs-actions.pod:5550
14909 #, no-wrap
14910 msgid ""
14911 " char *\n"
14912 " guestfs_readlink (guestfs_h *g,\n"
14913 "                   const char *path);\n"
14914 "\n"
14915 msgstr ""
14916
14917 #. type: textblock
14918 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3739
14919 msgid "This command reads the target of a symbolic link."
14920 msgstr ""
14921
14922 #. type: =head2
14923 #: ../src/guestfs-actions.pod:5561
14924 msgid "guestfs_readlinklist"
14925 msgstr ""
14926
14927 #. type: verbatim
14928 #: ../src/guestfs-actions.pod:5563
14929 #, no-wrap
14930 msgid ""
14931 " char **\n"
14932 " guestfs_readlinklist (guestfs_h *g,\n"
14933 "                       const char *path,\n"
14934 "                       char *const *names);\n"
14935 "\n"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3745
14940 msgid ""
14941 "This call allows you to do a C<readlink> operation on multiple files, where "
14942 "all files are in the directory C<path>.  C<names> is the list of files from "
14943 "this directory."
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../src/guestfs-actions.pod:5572 ../fish/guestfish-actions.pod:3749
14948 msgid ""
14949 "On return you get a list of strings, with a one-to-one correspondence to the "
14950 "C<names> list.  Each string is the value of the symbolic link."
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3753
14955 msgid ""
14956 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14957 "result string is the empty string C<\"\">.  However the whole operation is "
14958 "completed even if there were C<readlink(2)> errors, and so you can call this "
14959 "function with names where you don't know if they are symbolic links already "
14960 "(albeit slightly less efficient)."
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../src/guestfs-actions.pod:5583 ../fish/guestfish-actions.pod:3760
14965 msgid ""
14966 "This call is intended for programs that want to efficiently list a directory "
14967 "contents without making many round-trips.  Very long directory listings "
14968 "might cause the protocol message size to be exceeded, causing this call to "
14969 "fail.  The caller must split up such requests into smaller groups of names."
14970 msgstr ""
14971
14972 #. type: =head2
14973 #: ../src/guestfs-actions.pod:5596
14974 msgid "guestfs_realpath"
14975 msgstr ""
14976
14977 #. type: verbatim
14978 #: ../src/guestfs-actions.pod:5598
14979 #, no-wrap
14980 msgid ""
14981 " char *\n"
14982 " guestfs_realpath (guestfs_h *g,\n"
14983 "                   const char *path);\n"
14984 "\n"
14985 msgstr ""
14986
14987 #. type: textblock
14988 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:3771
14989 msgid ""
14990 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14991 "has no C<.>, C<..> or symbolic link path elements."
14992 msgstr ""
14993
14994 #. type: =head2
14995 #: ../src/guestfs-actions.pod:5610
14996 msgid "guestfs_removexattr"
14997 msgstr ""
14998
14999 #. type: verbatim
15000 #: ../src/guestfs-actions.pod:5612
15001 #, no-wrap
15002 msgid ""
15003 " int\n"
15004 " guestfs_removexattr (guestfs_h *g,\n"
15005 "                      const char *xattr,\n"
15006 "                      const char *path);\n"
15007 "\n"
15008 msgstr ""
15009
15010 #. type: textblock
15011 #: ../src/guestfs-actions.pod:5617 ../fish/guestfish-actions.pod:3778
15012 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
15013 msgstr ""
15014
15015 #. type: textblock
15016 #: ../src/guestfs-actions.pod:5620
15017 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
15018 msgstr ""
15019
15020 #. type: =head2
15021 #: ../src/guestfs-actions.pod:5626
15022 msgid "guestfs_resize2fs"
15023 msgstr ""
15024
15025 #. type: verbatim
15026 #: ../src/guestfs-actions.pod:5628
15027 #, no-wrap
15028 msgid ""
15029 " int\n"
15030 " guestfs_resize2fs (guestfs_h *g,\n"
15031 "                    const char *device);\n"
15032 "\n"
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../src/guestfs-actions.pod:5632 ../fish/guestfish-actions.pod:3787
15037 msgid ""
15038 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15039 "underlying device."
15040 msgstr ""
15041
15042 #. type: textblock
15043 #: ../src/guestfs-actions.pod:5635
15044 msgid ""
15045 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
15046 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
15047 "sometimes gives an error about this and sometimes not.  In any case, it is "
15048 "always safe to call C<guestfs_e2fsck_f> before calling this function."
15049 msgstr ""
15050
15051 #. type: =head2
15052 #: ../src/guestfs-actions.pod:5645
15053 msgid "guestfs_resize2fs_M"
15054 msgstr ""
15055
15056 #. type: verbatim
15057 #: ../src/guestfs-actions.pod:5647
15058 #, no-wrap
15059 msgid ""
15060 " int\n"
15061 " guestfs_resize2fs_M (guestfs_h *g,\n"
15062 "                      const char *device);\n"
15063 "\n"
15064 msgstr ""
15065
15066 #. type: textblock
15067 #: ../src/guestfs-actions.pod:5651
15068 msgid ""
15069 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
15070 "resized to its minimum size.  This works like the I<-M> option to the "
15071 "C<resize2fs> command."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:5655
15076 msgid ""
15077 "To get the resulting size of the filesystem you should call "
15078 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
15079 "These two numbers, multiplied together, give the resulting size of the "
15080 "minimal filesystem in bytes."
15081 msgstr ""
15082
15083 #. type: =head2
15084 #: ../src/guestfs-actions.pod:5662
15085 msgid "guestfs_resize2fs_size"
15086 msgstr ""
15087
15088 #. type: verbatim
15089 #: ../src/guestfs-actions.pod:5664
15090 #, no-wrap
15091 msgid ""
15092 " int\n"
15093 " guestfs_resize2fs_size (guestfs_h *g,\n"
15094 "                         const char *device,\n"
15095 "                         int64_t size);\n"
15096 "\n"
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../src/guestfs-actions.pod:5669
15101 msgid ""
15102 "This command is the same as C<guestfs_resize2fs> except that it allows you "
15103 "to specify the new size (in bytes) explicitly."
15104 msgstr ""
15105
15106 #. type: =head2
15107 #: ../src/guestfs-actions.pod:5676
15108 msgid "guestfs_rm"
15109 msgstr ""
15110
15111 #. type: verbatim
15112 #: ../src/guestfs-actions.pod:5678
15113 #, no-wrap
15114 msgid ""
15115 " int\n"
15116 " guestfs_rm (guestfs_h *g,\n"
15117 "             const char *path);\n"
15118 "\n"
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3820
15123 msgid "Remove the single file C<path>."
15124 msgstr ""
15125
15126 #. type: =head2
15127 #: ../src/guestfs-actions.pod:5688
15128 msgid "guestfs_rm_rf"
15129 msgstr ""
15130
15131 #. type: verbatim
15132 #: ../src/guestfs-actions.pod:5690
15133 #, no-wrap
15134 msgid ""
15135 " int\n"
15136 " guestfs_rm_rf (guestfs_h *g,\n"
15137 "                const char *path);\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3826
15143 msgid ""
15144 "Remove the file or directory C<path>, recursively removing the contents if "
15145 "its a directory.  This is like the C<rm -rf> shell command."
15146 msgstr ""
15147
15148 #. type: =head2
15149 #: ../src/guestfs-actions.pod:5702
15150 msgid "guestfs_rmdir"
15151 msgstr ""
15152
15153 #. type: verbatim
15154 #: ../src/guestfs-actions.pod:5704
15155 #, no-wrap
15156 msgid ""
15157 " int\n"
15158 " guestfs_rmdir (guestfs_h *g,\n"
15159 "                const char *path);\n"
15160 "\n"
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3834
15165 msgid "Remove the single directory C<path>."
15166 msgstr ""
15167
15168 #. type: =head2
15169 #: ../src/guestfs-actions.pod:5714
15170 msgid "guestfs_rmmountpoint"
15171 msgstr ""
15172
15173 #. type: verbatim
15174 #: ../src/guestfs-actions.pod:5716
15175 #, no-wrap
15176 msgid ""
15177 " int\n"
15178 " guestfs_rmmountpoint (guestfs_h *g,\n"
15179 "                       const char *exemptpath);\n"
15180 "\n"
15181 msgstr ""
15182
15183 #. type: textblock
15184 #: ../src/guestfs-actions.pod:5720
15185 msgid ""
15186 "This calls removes a mountpoint that was previously created with "
15187 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../src/guestfs-actions.pod:5728
15192 msgid "guestfs_scrub_device"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../src/guestfs-actions.pod:5730
15197 #, no-wrap
15198 msgid ""
15199 " int\n"
15200 " guestfs_scrub_device (guestfs_h *g,\n"
15201 "                       const char *device);\n"
15202 "\n"
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3848
15207 msgid ""
15208 "This command writes patterns over C<device> to make data retrieval more "
15209 "difficult."
15210 msgstr ""
15211
15212 #. type: textblock
15213 #: ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:5758 ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3851 ../fish/guestfish-actions.pod:3866 ../fish/guestfish-actions.pod:3879
15214 msgid ""
15215 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15216 "more details."
15217 msgstr ""
15218
15219 #. type: textblock
15220 #: ../src/guestfs-actions.pod:5745 ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5782
15221 msgid "(Added in 1.0.52)"
15222 msgstr ""
15223
15224 #. type: =head2
15225 #: ../src/guestfs-actions.pod:5747
15226 msgid "guestfs_scrub_file"
15227 msgstr ""
15228
15229 #. type: verbatim
15230 #: ../src/guestfs-actions.pod:5749
15231 #, no-wrap
15232 msgid ""
15233 " int\n"
15234 " guestfs_scrub_file (guestfs_h *g,\n"
15235 "                     const char *file);\n"
15236 "\n"
15237 msgstr ""
15238
15239 #. type: textblock
15240 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3861
15241 msgid ""
15242 "This command writes patterns over a file to make data retrieval more "
15243 "difficult."
15244 msgstr ""
15245
15246 #. type: textblock
15247 #: ../src/guestfs-actions.pod:5756 ../fish/guestfish-actions.pod:3864
15248 msgid "The file is I<removed> after scrubbing."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../src/guestfs-actions.pod:5765
15253 msgid "guestfs_scrub_freespace"
15254 msgstr ""
15255
15256 #. type: verbatim
15257 #: ../src/guestfs-actions.pod:5767
15258 #, no-wrap
15259 msgid ""
15260 " int\n"
15261 " guestfs_scrub_freespace (guestfs_h *g,\n"
15262 "                          const char *dir);\n"
15263 "\n"
15264 msgstr ""
15265
15266 #. type: textblock
15267 #: ../src/guestfs-actions.pod:5771
15268 msgid ""
15269 "This command creates the directory C<dir> and then fills it with files until "
15270 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15271 "and deletes them.  The intention is to scrub any free space on the partition "
15272 "containing C<dir>."
15273 msgstr ""
15274
15275 #. type: =head2
15276 #: ../src/guestfs-actions.pod:5784
15277 msgid "guestfs_set_append"
15278 msgstr ""
15279
15280 #. type: verbatim
15281 #: ../src/guestfs-actions.pod:5786
15282 #, no-wrap
15283 msgid ""
15284 " int\n"
15285 " guestfs_set_append (guestfs_h *g,\n"
15286 "                     const char *append);\n"
15287 "\n"
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../src/guestfs-actions.pod:5790 ../fish/guestfish-actions.pod:3888
15292 msgid ""
15293 "This function is used to add additional options to the guest kernel command "
15294 "line."
15295 msgstr ""
15296
15297 #. type: textblock
15298 #: ../src/guestfs-actions.pod:5793 ../fish/guestfish-actions.pod:3891
15299 msgid ""
15300 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15301 "environment variable."
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:3894
15306 msgid ""
15307 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15308 "(libguestfs always adds a few of its own)."
15309 msgstr ""
15310
15311 #. type: =head2
15312 #: ../src/guestfs-actions.pod:5803
15313 msgid "guestfs_set_attach_method"
15314 msgstr ""
15315
15316 #. type: verbatim
15317 #: ../src/guestfs-actions.pod:5805
15318 #, no-wrap
15319 msgid ""
15320 " int\n"
15321 " guestfs_set_attach_method (guestfs_h *g,\n"
15322 "                            const char *attachmethod);\n"
15323 "\n"
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3903
15328 msgid ""
15329 "Set the method that libguestfs uses to connect to the back end guestfsd "
15330 "daemon.  Possible methods are:"
15331 msgstr ""
15332
15333 #. type: textblock
15334 #: ../src/guestfs-actions.pod:5816 ../fish/guestfish-actions.pod:3910
15335 msgid ""
15336 "Launch an appliance and connect to it.  This is the ordinary method and the "
15337 "default."
15338 msgstr ""
15339
15340 #. type: =item
15341 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3913
15342 msgid "C<unix:I<path>>"
15343 msgstr ""
15344
15345 #. type: textblock
15346 #: ../src/guestfs-actions.pod:5821 ../fish/guestfish-actions.pod:3915
15347 msgid "Connect to the Unix domain socket I<path>."
15348 msgstr ""
15349
15350 #. type: textblock
15351 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3917
15352 msgid ""
15353 "This method lets you connect to an existing daemon or (using virtio-serial) "
15354 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15355 "RUNNING DAEMONS>."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../src/guestfs-actions.pod:5831
15360 msgid "guestfs_set_autosync"
15361 msgstr ""
15362
15363 #. type: verbatim
15364 #: ../src/guestfs-actions.pod:5833
15365 #, no-wrap
15366 msgid ""
15367 " int\n"
15368 " guestfs_set_autosync (guestfs_h *g,\n"
15369 "                       int autosync);\n"
15370 "\n"
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3929
15375 msgid ""
15376 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15377 "effort attempt to make filesystems consistent and synchronized when the "
15378 "handle is closed (also if the program exits without closing handles)."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../src/guestfs-actions.pod:5842 ../fish/guestfish-actions.pod:3934
15383 msgid ""
15384 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15385 "disabled by default)."
15386 msgstr ""
15387
15388 #. type: =head2
15389 #: ../src/guestfs-actions.pod:5849
15390 msgid "guestfs_set_direct"
15391 msgstr ""
15392
15393 #. type: verbatim
15394 #: ../src/guestfs-actions.pod:5851
15395 #, no-wrap
15396 msgid ""
15397 " int\n"
15398 " guestfs_set_direct (guestfs_h *g,\n"
15399 "                     int direct);\n"
15400 "\n"
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3943
15405 msgid ""
15406 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15407 "passed directly through to the appliance once it is launched."
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../src/guestfs-actions.pod:5859
15412 msgid ""
15413 "One consequence of this is that log messages aren't caught by the library "
15414 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
15415 "stdout."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3951
15420 msgid "You probably don't want to use this unless you know what you are doing."
15421 msgstr ""
15422
15423 #. type: textblock
15424 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3954
15425 msgid "The default is disabled."
15426 msgstr ""
15427
15428 #. type: =head2
15429 #: ../src/guestfs-actions.pod:5872
15430 msgid "guestfs_set_e2label"
15431 msgstr ""
15432
15433 #. type: verbatim
15434 #: ../src/guestfs-actions.pod:5874
15435 #, no-wrap
15436 msgid ""
15437 " int\n"
15438 " guestfs_set_e2label (guestfs_h *g,\n"
15439 "                      const char *device,\n"
15440 "                      const char *label);\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3960
15446 msgid ""
15447 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15448 "C<label>.  Filesystem labels are limited to 16 characters."
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../src/guestfs-actions.pod:5883
15453 msgid ""
15454 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
15455 "the existing label on a filesystem."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../src/guestfs-actions.pod:5890
15460 msgid "guestfs_set_e2uuid"
15461 msgstr ""
15462
15463 #. type: verbatim
15464 #: ../src/guestfs-actions.pod:5892
15465 #, no-wrap
15466 msgid ""
15467 " int\n"
15468 " guestfs_set_e2uuid (guestfs_h *g,\n"
15469 "                     const char *device,\n"
15470 "                     const char *uuid);\n"
15471 "\n"
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3971
15476 msgid ""
15477 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15478 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15479 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../src/guestfs-actions.pod:5902
15484 msgid ""
15485 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
15486 "the existing UUID of a filesystem."
15487 msgstr ""
15488
15489 #. type: =head2
15490 #: ../src/guestfs-actions.pod:5909
15491 msgid "guestfs_set_memsize"
15492 msgstr ""
15493
15494 #. type: verbatim
15495 #: ../src/guestfs-actions.pod:5911
15496 #, no-wrap
15497 msgid ""
15498 " int\n"
15499 " guestfs_set_memsize (guestfs_h *g,\n"
15500 "                      int memsize);\n"
15501 "\n"
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../src/guestfs-actions.pod:5915
15506 msgid ""
15507 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15508 "This only has any effect if called before C<guestfs_launch>."
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3989
15513 msgid ""
15514 "You can also change this by setting the environment variable "
15515 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15516 msgstr ""
15517
15518 #. type: =head2
15519 #: ../src/guestfs-actions.pod:5930
15520 msgid "guestfs_set_network"
15521 msgstr ""
15522
15523 #. type: verbatim
15524 #: ../src/guestfs-actions.pod:5932
15525 #, no-wrap
15526 msgid ""
15527 " int\n"
15528 " guestfs_set_network (guestfs_h *g,\n"
15529 "                      int network);\n"
15530 "\n"
15531 msgstr ""
15532
15533 #. type: textblock
15534 #: ../src/guestfs-actions.pod:5936 ../fish/guestfish-actions.pod:4002
15535 msgid ""
15536 "If C<network> is true, then the network is enabled in the libguestfs "
15537 "appliance.  The default is false."
15538 msgstr ""
15539
15540 #. type: textblock
15541 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:4005
15542 msgid ""
15543 "This affects whether commands are able to access the network (see "
15544 "L<guestfs(3)/RUNNING COMMANDS>)."
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../src/guestfs-actions.pod:5942
15549 msgid ""
15550 "You must call this before calling C<guestfs_launch>, otherwise it has no "
15551 "effect."
15552 msgstr ""
15553
15554 #. type: =head2
15555 #: ../src/guestfs-actions.pod:5949
15556 msgid "guestfs_set_path"
15557 msgstr ""
15558
15559 #. type: verbatim
15560 #: ../src/guestfs-actions.pod:5951
15561 #, no-wrap
15562 msgid ""
15563 " int\n"
15564 " guestfs_set_path (guestfs_h *g,\n"
15565 "                   const char *searchpath);\n"
15566 "\n"
15567 msgstr ""
15568
15569 #. type: textblock
15570 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4017
15571 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15572 msgstr ""
15573
15574 #. type: textblock
15575 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4019
15576 msgid ""
15577 "The default is C<$libdir/guestfs> unless overridden by setting "
15578 "C<LIBGUESTFS_PATH> environment variable."
15579 msgstr ""
15580
15581 #. type: textblock
15582 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4022
15583 msgid "Setting C<path> to C<NULL> restores the default path."
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../src/guestfs-actions.pod:5966
15588 msgid "guestfs_set_qemu"
15589 msgstr ""
15590
15591 #. type: verbatim
15592 #: ../src/guestfs-actions.pod:5968
15593 #, no-wrap
15594 msgid ""
15595 " int\n"
15596 " guestfs_set_qemu (guestfs_h *g,\n"
15597 "                   const char *qemu);\n"
15598 "\n"
15599 msgstr ""
15600
15601 #. type: textblock
15602 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4030
15603 msgid "Set the qemu binary that we will use."
15604 msgstr ""
15605
15606 #. type: textblock
15607 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:4032
15608 msgid "The default is chosen when the library was compiled by the configure script."
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:5977 ../fish/guestfish-actions.pod:4035
15613 msgid ""
15614 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15615 "variable."
15616 msgstr ""
15617
15618 #. type: textblock
15619 #: ../src/guestfs-actions.pod:5980 ../fish/guestfish-actions.pod:4038
15620 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../src/guestfs-actions.pod:5982 ../fish/guestfish-actions.pod:4040
15625 msgid ""
15626 "Note that you should call this function as early as possible after creating "
15627 "the handle.  This is because some pre-launch operations depend on testing "
15628 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15629 "don't retest features, and so you might see inconsistent results.  Using the "
15630 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15631 "the qemu binary at the same time as the handle is created."
15632 msgstr ""
15633
15634 #. type: =head2
15635 #: ../src/guestfs-actions.pod:5994
15636 msgid "guestfs_set_recovery_proc"
15637 msgstr ""
15638
15639 #. type: verbatim
15640 #: ../src/guestfs-actions.pod:5996
15641 #, no-wrap
15642 msgid ""
15643 " int\n"
15644 " guestfs_set_recovery_proc (guestfs_h *g,\n"
15645 "                            int recoveryproc);\n"
15646 "\n"
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:6000
15651 msgid ""
15652 "If this is called with the parameter C<false> then C<guestfs_launch> does "
15653 "not create a recovery process.  The purpose of the recovery process is to "
15654 "stop runaway qemu processes in the case where the main program aborts "
15655 "abruptly."
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../src/guestfs-actions.pod:6005
15660 msgid ""
15661 "This only has any effect if called before C<guestfs_launch>, and the default "
15662 "is true."
15663 msgstr ""
15664
15665 #. type: textblock
15666 #: ../src/guestfs-actions.pod:6008 ../fish/guestfish-actions.pod:4062
15667 msgid ""
15668 "About the only time when you would want to disable this is if the main "
15669 "process will fork itself into the background (\"daemonize\" itself).  In "
15670 "this case the recovery process thinks that the main program has disappeared "
15671 "and so kills qemu, which is not very helpful."
15672 msgstr ""
15673
15674 #. type: =head2
15675 #: ../src/guestfs-actions.pod:6018
15676 msgid "guestfs_set_selinux"
15677 msgstr ""
15678
15679 #. type: verbatim
15680 #: ../src/guestfs-actions.pod:6020
15681 #, no-wrap
15682 msgid ""
15683 " int\n"
15684 " guestfs_set_selinux (guestfs_h *g,\n"
15685 "                      int selinux);\n"
15686 "\n"
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4074
15691 msgid ""
15692 "This sets the selinux flag that is passed to the appliance at boot time.  "
15693 "The default is C<selinux=0> (disabled)."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../src/guestfs-actions.pod:6027 ../fish/guestfish-actions.pod:4077
15698 msgid ""
15699 "Note that if SELinux is enabled, it is always in Permissive mode "
15700 "(C<enforcing=0>)."
15701 msgstr ""
15702
15703 #. type: =head2
15704 #: ../src/guestfs-actions.pod:6037
15705 msgid "guestfs_set_trace"
15706 msgstr ""
15707
15708 #. type: verbatim
15709 #: ../src/guestfs-actions.pod:6039
15710 #, no-wrap
15711 msgid ""
15712 " int\n"
15713 " guestfs_set_trace (guestfs_h *g,\n"
15714 "                    int trace);\n"
15715 "\n"
15716 msgstr ""
15717
15718 #. type: textblock
15719 #: ../src/guestfs-actions.pod:6043 ../fish/guestfish-actions.pod:4089
15720 msgid ""
15721 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15722 "return values are traced."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../src/guestfs-actions.pod:6046 ../fish/guestfish-actions.pod:4092
15727 msgid ""
15728 "If you want to trace C API calls into libguestfs (and other libraries) then "
15729 "possibly a better way is to use the external ltrace(1) command."
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4096
15734 msgid ""
15735 "Command traces are disabled unless the environment variable "
15736 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../src/guestfs-actions.pod:6053
15741 msgid ""
15742 "Trace messages are normally sent to C<stderr>, unless you register a "
15743 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../src/guestfs-actions.pod:6061
15748 msgid "guestfs_set_verbose"
15749 msgstr ""
15750
15751 #. type: verbatim
15752 #: ../src/guestfs-actions.pod:6063
15753 #, no-wrap
15754 msgid ""
15755 " int\n"
15756 " guestfs_set_verbose (guestfs_h *g,\n"
15757 "                      int verbose);\n"
15758 "\n"
15759 msgstr ""
15760
15761 #. type: textblock
15762 #: ../src/guestfs-actions.pod:6067 ../fish/guestfish-actions.pod:4109
15763 msgid "If C<verbose> is true, this turns on verbose messages."
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:4111
15768 msgid ""
15769 "Verbose messages are disabled unless the environment variable "
15770 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../src/guestfs-actions.pod:6072
15775 msgid ""
15776 "Verbose messages are normally sent to C<stderr>, unless you register a "
15777 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
15778 msgstr ""
15779
15780 #. type: =head2
15781 #: ../src/guestfs-actions.pod:6080
15782 msgid "guestfs_setcon"
15783 msgstr ""
15784
15785 #. type: verbatim
15786 #: ../src/guestfs-actions.pod:6082
15787 #, no-wrap
15788 msgid ""
15789 " int\n"
15790 " guestfs_setcon (guestfs_h *g,\n"
15791 "                 const char *context);\n"
15792 "\n"
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4122
15797 msgid ""
15798 "This sets the SELinux security context of the daemon to the string "
15799 "C<context>."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4125
15804 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15805 msgstr ""
15806
15807 #. type: =head2
15808 #: ../src/guestfs-actions.pod:6095
15809 msgid "guestfs_setxattr"
15810 msgstr ""
15811
15812 #. type: verbatim
15813 #: ../src/guestfs-actions.pod:6097
15814 #, no-wrap
15815 msgid ""
15816 " int\n"
15817 " guestfs_setxattr (guestfs_h *g,\n"
15818 "                   const char *xattr,\n"
15819 "                   const char *val,\n"
15820 "                   int vallen,\n"
15821 "                   const char *path);\n"
15822 "\n"
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../src/guestfs-actions.pod:6104 ../fish/guestfish-actions.pod:4131
15827 msgid ""
15828 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15829 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../src/guestfs-actions.pod:6108
15834 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
15835 msgstr ""
15836
15837 #. type: =head2
15838 #: ../src/guestfs-actions.pod:6114
15839 msgid "guestfs_sfdisk"
15840 msgstr ""
15841
15842 #. type: verbatim
15843 #: ../src/guestfs-actions.pod:6116
15844 #, no-wrap
15845 msgid ""
15846 " int\n"
15847 " guestfs_sfdisk (guestfs_h *g,\n"
15848 "                 const char *device,\n"
15849 "                 int cyls,\n"
15850 "                 int heads,\n"
15851 "                 int sectors,\n"
15852 "                 char *const *lines);\n"
15853 "\n"
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4141
15858 msgid ""
15859 "This is a direct interface to the L<sfdisk(8)> program for creating "
15860 "partitions on block devices."
15861 msgstr ""
15862
15863 #. type: textblock
15864 #: ../src/guestfs-actions.pod:6127 ../fish/guestfish-actions.pod:4144
15865 msgid "C<device> should be a block device, for example C</dev/sda>."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4146
15870 msgid ""
15871 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15872 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15873 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15874 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15875 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15876 "the kernel) cannot work out the right geometry and you will need to tell it."
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4154
15881 msgid ""
15882 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15883 "refer to the L<sfdisk(8)> manpage."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4157
15888 msgid ""
15889 "To create a single partition occupying the whole disk, you would pass "
15890 "C<lines> as a single element list, when the single element being the string "
15891 "C<,> (comma)."
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../src/guestfs-actions.pod:6144
15896 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
15897 msgstr ""
15898
15899 #. type: =head2
15900 #: ../src/guestfs-actions.pod:6154
15901 msgid "guestfs_sfdiskM"
15902 msgstr ""
15903
15904 #. type: verbatim
15905 #: ../src/guestfs-actions.pod:6156
15906 #, no-wrap
15907 msgid ""
15908 " int\n"
15909 " guestfs_sfdiskM (guestfs_h *g,\n"
15910 "                  const char *device,\n"
15911 "                  char *const *lines);\n"
15912 "\n"
15913 msgstr ""
15914
15915 #. type: textblock
15916 #: ../src/guestfs-actions.pod:6161
15917 msgid ""
15918 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
15919 "partition sizes are specified in megabytes only (rounded to the nearest "
15920 "cylinder) and you don't need to specify the cyls, heads and sectors "
15921 "parameters which were rarely if ever used anyway."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../src/guestfs-actions.pod:6167
15926 msgid ""
15927 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
15928 "C<guestfs_part_disk>"
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../src/guestfs-actions.pod:6177
15933 msgid "guestfs_sfdisk_N"
15934 msgstr ""
15935
15936 #. type: verbatim
15937 #: ../src/guestfs-actions.pod:6179
15938 #, no-wrap
15939 msgid ""
15940 " int\n"
15941 " guestfs_sfdisk_N (guestfs_h *g,\n"
15942 "                   const char *device,\n"
15943 "                   int partnum,\n"
15944 "                   int cyls,\n"
15945 "                   int heads,\n"
15946 "                   int sectors,\n"
15947 "                   const char *line);\n"
15948 "\n"
15949 msgstr ""
15950
15951 #. type: textblock
15952 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4187
15953 msgid ""
15954 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15955 "(note: C<n> counts from 1)."
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../src/guestfs-actions.pod:6191
15960 msgid ""
15961 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
15962 "for the cyls/heads/sectors parameters."
15963 msgstr ""
15964
15965 #. type: textblock
15966 #: ../src/guestfs-actions.pod:6194
15967 msgid "See also: C<guestfs_part_add>"
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../src/guestfs-actions.pod:6203
15972 msgid "guestfs_sfdisk_disk_geometry"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../src/guestfs-actions.pod:6205
15977 #, no-wrap
15978 msgid ""
15979 " char *\n"
15980 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
15981 "                               const char *device);\n"
15982 "\n"
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../src/guestfs-actions.pod:6209
15987 msgid ""
15988 "This displays the disk geometry of C<device> read from the partition table.  "
15989 "Especially in the case where the underlying block device has been resized, "
15990 "this can be different from the kernel's idea of the geometry (see "
15991 "C<guestfs_sfdisk_kernel_geometry>)."
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4207 ../fish/guestfish-actions.pod:4216
15996 msgid "The result is in human-readable format, and not designed to be parsed."
15997 msgstr ""
15998
15999 #. type: =head2
16000 #: ../src/guestfs-actions.pod:6222
16001 msgid "guestfs_sfdisk_kernel_geometry"
16002 msgstr ""
16003
16004 #. type: verbatim
16005 #: ../src/guestfs-actions.pod:6224
16006 #, no-wrap
16007 msgid ""
16008 " char *\n"
16009 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
16010 "                                 const char *device);\n"
16011 "\n"
16012 msgstr ""
16013
16014 #. type: textblock
16015 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4214
16016 msgid "This displays the kernel's idea of the geometry of C<device>."
16017 msgstr ""
16018
16019 #. type: =head2
16020 #: ../src/guestfs-actions.pod:6238
16021 msgid "guestfs_sfdisk_l"
16022 msgstr ""
16023
16024 #. type: verbatim
16025 #: ../src/guestfs-actions.pod:6240
16026 #, no-wrap
16027 msgid ""
16028 " char *\n"
16029 " guestfs_sfdisk_l (guestfs_h *g,\n"
16030 "                   const char *device);\n"
16031 "\n"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4223
16036 msgid ""
16037 "This displays the partition table on C<device>, in the human-readable output "
16038 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../src/guestfs-actions.pod:6248
16043 msgid "See also: C<guestfs_part_list>"
16044 msgstr ""
16045
16046 #. type: =head2
16047 #: ../src/guestfs-actions.pod:6255
16048 msgid "guestfs_sh"
16049 msgstr ""
16050
16051 #. type: verbatim
16052 #: ../src/guestfs-actions.pod:6257
16053 #, no-wrap
16054 msgid ""
16055 " char *\n"
16056 " guestfs_sh (guestfs_h *g,\n"
16057 "             const char *command);\n"
16058 "\n"
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4233
16063 msgid ""
16064 "This call runs a command from the guest filesystem via the guest's "
16065 "C</bin/sh>."
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../src/guestfs-actions.pod:6264
16070 msgid "This is like C<guestfs_command>, but passes the command to:"
16071 msgstr ""
16072
16073 #. type: verbatim
16074 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4238
16075 #, no-wrap
16076 msgid ""
16077 " /bin/sh -c \"command\"\n"
16078 "\n"
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4240
16083 msgid ""
16084 "Depending on the guest's shell, this usually results in wildcards being "
16085 "expanded, shell expressions being interpolated and so on."
16086 msgstr ""
16087
16088 #. type: textblock
16089 #: ../src/guestfs-actions.pod:6272
16090 msgid "All the provisos about C<guestfs_command> apply to this call."
16091 msgstr ""
16092
16093 #. type: =head2
16094 #: ../src/guestfs-actions.pod:6279
16095 msgid "guestfs_sh_lines"
16096 msgstr ""
16097
16098 #. type: verbatim
16099 #: ../src/guestfs-actions.pod:6281
16100 #, no-wrap
16101 msgid ""
16102 " char **\n"
16103 " guestfs_sh_lines (guestfs_h *g,\n"
16104 "                   const char *command);\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../src/guestfs-actions.pod:6285
16110 msgid ""
16111 "This is the same as C<guestfs_sh>, but splits the result into a list of "
16112 "lines."
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../src/guestfs-actions.pod:6288
16117 msgid "See also: C<guestfs_command_lines>"
16118 msgstr ""
16119
16120 #. type: =head2
16121 #: ../src/guestfs-actions.pod:6296
16122 msgid "guestfs_sleep"
16123 msgstr ""
16124
16125 #. type: verbatim
16126 #: ../src/guestfs-actions.pod:6298
16127 #, no-wrap
16128 msgid ""
16129 " int\n"
16130 " guestfs_sleep (guestfs_h *g,\n"
16131 "                int secs);\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4259
16137 msgid "Sleep for C<secs> seconds."
16138 msgstr ""
16139
16140 #. type: textblock
16141 #: ../src/guestfs-actions.pod:6306
16142 msgid "(Added in 1.0.41)"
16143 msgstr ""
16144
16145 #. type: =head2
16146 #: ../src/guestfs-actions.pod:6308 ../src/guestfs-structs.pod:109
16147 msgid "guestfs_stat"
16148 msgstr ""
16149
16150 #. type: verbatim
16151 #: ../src/guestfs-actions.pod:6310
16152 #, no-wrap
16153 msgid ""
16154 " struct guestfs_stat *\n"
16155 " guestfs_stat (guestfs_h *g,\n"
16156 "               const char *path);\n"
16157 "\n"
16158 msgstr ""
16159
16160 #. type: textblock
16161 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4267
16162 msgid "This is the same as the C<stat(2)> system call."
16163 msgstr ""
16164
16165 #. type: =head2
16166 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-structs.pod:135
16167 msgid "guestfs_statvfs"
16168 msgstr ""
16169
16170 #. type: verbatim
16171 #: ../src/guestfs-actions.pod:6326
16172 #, no-wrap
16173 msgid ""
16174 " struct guestfs_statvfs *\n"
16175 " guestfs_statvfs (guestfs_h *g,\n"
16176 "                  const char *path);\n"
16177 "\n"
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../src/guestfs-actions.pod:6330 ../fish/guestfish-actions.pod:4273
16182 msgid ""
16183 "Returns file system statistics for any mounted file system.  C<path> should "
16184 "be a file or directory in the mounted file system (typically it is the mount "
16185 "point itself, but it doesn't need to be)."
16186 msgstr ""
16187
16188 #. type: textblock
16189 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4277
16190 msgid "This is the same as the C<statvfs(2)> system call."
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:6336
16195 msgid ""
16196 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16197 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16198 msgstr ""
16199
16200 #. type: =head2
16201 #: ../src/guestfs-actions.pod:6342
16202 msgid "guestfs_strings"
16203 msgstr ""
16204
16205 #. type: verbatim
16206 #: ../src/guestfs-actions.pod:6344
16207 #, no-wrap
16208 msgid ""
16209 " char **\n"
16210 " guestfs_strings (guestfs_h *g,\n"
16211 "                  const char *path);\n"
16212 "\n"
16213 msgstr ""
16214
16215 #. type: textblock
16216 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4283
16217 msgid ""
16218 "This runs the L<strings(1)> command on a file and returns the list of "
16219 "printable strings found."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../src/guestfs-actions.pod:6360
16224 msgid "guestfs_strings_e"
16225 msgstr ""
16226
16227 #. type: verbatim
16228 #: ../src/guestfs-actions.pod:6362
16229 #, no-wrap
16230 msgid ""
16231 " char **\n"
16232 " guestfs_strings_e (guestfs_h *g,\n"
16233 "                    const char *encoding,\n"
16234 "                    const char *path);\n"
16235 "\n"
16236 msgstr ""
16237
16238 #. type: textblock
16239 #: ../src/guestfs-actions.pod:6367
16240 msgid ""
16241 "This is like the C<guestfs_strings> command, but allows you to specify the "
16242 "encoding of strings that are looked for in the source file C<path>."
16243 msgstr ""
16244
16245 #. type: textblock
16246 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4297
16247 msgid "Allowed encodings are:"
16248 msgstr ""
16249
16250 #. type: =item
16251 #: ../src/guestfs-actions.pod:6375 ../fish/guestfish-actions.pod:4301
16252 msgid "s"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../src/guestfs-actions.pod:6377
16257 msgid ""
16258 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16259 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16260 msgstr ""
16261
16262 #. type: =item
16263 #: ../src/guestfs-actions.pod:6380 ../fish/guestfish-actions.pod:4306
16264 msgid "S"
16265 msgstr ""
16266
16267 #. type: textblock
16268 #: ../src/guestfs-actions.pod:6382 ../fish/guestfish-actions.pod:4308
16269 msgid "Single 8-bit-byte characters."
16270 msgstr ""
16271
16272 #. type: =item
16273 #: ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:4310
16274 msgid "b"
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4312
16279 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16280 msgstr ""
16281
16282 #. type: =item
16283 #: ../src/guestfs-actions.pod:6389 ../fish/guestfish-actions.pod:4315
16284 msgid "l (lower case letter L)"
16285 msgstr ""
16286
16287 #. type: textblock
16288 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4317
16289 msgid ""
16290 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16291 "examining binaries in Windows guests."
16292 msgstr ""
16293
16294 #. type: =item
16295 #: ../src/guestfs-actions.pod:6394 ../fish/guestfish-actions.pod:4320
16296 msgid "B"
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../src/guestfs-actions.pod:6396 ../fish/guestfish-actions.pod:4322
16301 msgid "32-bit big endian such as UCS-4BE."
16302 msgstr ""
16303
16304 #. type: =item
16305 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4324
16306 msgid "L"
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4326
16311 msgid "32-bit little endian such as UCS-4LE."
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4330
16316 msgid "The returned strings are transcoded to UTF-8."
16317 msgstr ""
16318
16319 #. type: =head2
16320 #: ../src/guestfs-actions.pod:6415
16321 msgid "guestfs_swapoff_device"
16322 msgstr ""
16323
16324 #. type: verbatim
16325 #: ../src/guestfs-actions.pod:6417
16326 #, no-wrap
16327 msgid ""
16328 " int\n"
16329 " guestfs_swapoff_device (guestfs_h *g,\n"
16330 "                         const char *device);\n"
16331 "\n"
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../src/guestfs-actions.pod:6421
16336 msgid ""
16337 "This command disables the libguestfs appliance swap device or partition "
16338 "named C<device>.  See C<guestfs_swapon_device>."
16339 msgstr ""
16340
16341 #. type: =head2
16342 #: ../src/guestfs-actions.pod:6429
16343 msgid "guestfs_swapoff_file"
16344 msgstr ""
16345
16346 #. type: verbatim
16347 #: ../src/guestfs-actions.pod:6431
16348 #, no-wrap
16349 msgid ""
16350 " int\n"
16351 " guestfs_swapoff_file (guestfs_h *g,\n"
16352 "                       const char *file);\n"
16353 "\n"
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4347
16358 msgid "This command disables the libguestfs appliance swap on file."
16359 msgstr ""
16360
16361 #. type: =head2
16362 #: ../src/guestfs-actions.pod:6441
16363 msgid "guestfs_swapoff_label"
16364 msgstr ""
16365
16366 #. type: verbatim
16367 #: ../src/guestfs-actions.pod:6443
16368 #, no-wrap
16369 msgid ""
16370 " int\n"
16371 " guestfs_swapoff_label (guestfs_h *g,\n"
16372 "                        const char *label);\n"
16373 "\n"
16374 msgstr ""
16375
16376 #. type: textblock
16377 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4353
16378 msgid ""
16379 "This command disables the libguestfs appliance swap on labeled swap "
16380 "partition."
16381 msgstr ""
16382
16383 #. type: =head2
16384 #: ../src/guestfs-actions.pod:6454
16385 msgid "guestfs_swapoff_uuid"
16386 msgstr ""
16387
16388 #. type: verbatim
16389 #: ../src/guestfs-actions.pod:6456
16390 #, no-wrap
16391 msgid ""
16392 " int\n"
16393 " guestfs_swapoff_uuid (guestfs_h *g,\n"
16394 "                       const char *uuid);\n"
16395 "\n"
16396 msgstr ""
16397
16398 #. type: textblock
16399 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4360
16400 msgid ""
16401 "This command disables the libguestfs appliance swap partition with the given "
16402 "UUID."
16403 msgstr ""
16404
16405 #. type: =head2
16406 #: ../src/guestfs-actions.pod:6467
16407 msgid "guestfs_swapon_device"
16408 msgstr ""
16409
16410 #. type: verbatim
16411 #: ../src/guestfs-actions.pod:6469
16412 #, no-wrap
16413 msgid ""
16414 " int\n"
16415 " guestfs_swapon_device (guestfs_h *g,\n"
16416 "                        const char *device);\n"
16417 "\n"
16418 msgstr ""
16419
16420 #. type: textblock
16421 #: ../src/guestfs-actions.pod:6473
16422 msgid ""
16423 "This command enables the libguestfs appliance to use the swap device or "
16424 "partition named C<device>.  The increased memory is made available for all "
16425 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
16426 msgstr ""
16427
16428 #. type: textblock
16429 #: ../src/guestfs-actions.pod:6478 ../fish/guestfish-actions.pod:4372
16430 msgid ""
16431 "Note that you should not swap to existing guest swap partitions unless you "
16432 "know what you are doing.  They may contain hibernation information, or other "
16433 "information that the guest doesn't want you to trash.  You also risk leaking "
16434 "information about the host to the guest this way.  Instead, attach a new "
16435 "host device to the guest and swap on that."
16436 msgstr ""
16437
16438 #. type: =head2
16439 #: ../src/guestfs-actions.pod:6489
16440 msgid "guestfs_swapon_file"
16441 msgstr ""
16442
16443 #. type: verbatim
16444 #: ../src/guestfs-actions.pod:6491
16445 #, no-wrap
16446 msgid ""
16447 " int\n"
16448 " guestfs_swapon_file (guestfs_h *g,\n"
16449 "                      const char *file);\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:6495
16455 msgid ""
16456 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
16457 "notes."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../src/guestfs-actions.pod:6502
16462 msgid "guestfs_swapon_label"
16463 msgstr ""
16464
16465 #. type: verbatim
16466 #: ../src/guestfs-actions.pod:6504
16467 #, no-wrap
16468 msgid ""
16469 " int\n"
16470 " guestfs_swapon_label (guestfs_h *g,\n"
16471 "                       const char *label);\n"
16472 "\n"
16473 msgstr ""
16474
16475 #. type: textblock
16476 #: ../src/guestfs-actions.pod:6508
16477 msgid ""
16478 "This command enables swap to a labeled swap partition.  See "
16479 "C<guestfs_swapon_device> for other notes."
16480 msgstr ""
16481
16482 #. type: =head2
16483 #: ../src/guestfs-actions.pod:6515
16484 msgid "guestfs_swapon_uuid"
16485 msgstr ""
16486
16487 #. type: verbatim
16488 #: ../src/guestfs-actions.pod:6517
16489 #, no-wrap
16490 msgid ""
16491 " int\n"
16492 " guestfs_swapon_uuid (guestfs_h *g,\n"
16493 "                      const char *uuid);\n"
16494 "\n"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:6521
16499 msgid ""
16500 "This command enables swap to a swap partition with the given UUID.  See "
16501 "C<guestfs_swapon_device> for other notes."
16502 msgstr ""
16503
16504 #. type: =head2
16505 #: ../src/guestfs-actions.pod:6528
16506 msgid "guestfs_sync"
16507 msgstr ""
16508
16509 #. type: verbatim
16510 #: ../src/guestfs-actions.pod:6530
16511 #, no-wrap
16512 msgid ""
16513 " int\n"
16514 " guestfs_sync (guestfs_h *g);\n"
16515 "\n"
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4404
16520 msgid ""
16521 "This syncs the disk, so that any writes are flushed through to the "
16522 "underlying disk image."
16523 msgstr ""
16524
16525 #. type: textblock
16526 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4407
16527 msgid ""
16528 "You should always call this if you have modified a disk image, before "
16529 "closing the handle."
16530 msgstr ""
16531
16532 #. type: =head2
16533 #: ../src/guestfs-actions.pod:6543
16534 msgid "guestfs_tail"
16535 msgstr ""
16536
16537 #. type: verbatim
16538 #: ../src/guestfs-actions.pod:6545
16539 #, no-wrap
16540 msgid ""
16541 " char **\n"
16542 " guestfs_tail (guestfs_h *g,\n"
16543 "               const char *path);\n"
16544 "\n"
16545 msgstr ""
16546
16547 #. type: textblock
16548 #: ../src/guestfs-actions.pod:6549 ../fish/guestfish-actions.pod:4414
16549 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16550 msgstr ""
16551
16552 #. type: =head2
16553 #: ../src/guestfs-actions.pod:6561
16554 msgid "guestfs_tail_n"
16555 msgstr ""
16556
16557 #. type: verbatim
16558 #: ../src/guestfs-actions.pod:6563
16559 #, no-wrap
16560 msgid ""
16561 " char **\n"
16562 " guestfs_tail_n (guestfs_h *g,\n"
16563 "                 int nrlines,\n"
16564 "                 const char *path);\n"
16565 "\n"
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4424
16570 msgid ""
16571 "If the parameter C<nrlines> is a positive number, this returns the last "
16572 "C<nrlines> lines of the file C<path>."
16573 msgstr ""
16574
16575 #. type: textblock
16576 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4427
16577 msgid ""
16578 "If the parameter C<nrlines> is a negative number, this returns lines from "
16579 "the file C<path>, starting with the C<-nrlines>th line."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../src/guestfs-actions.pod:6585
16584 msgid "guestfs_tar_in"
16585 msgstr ""
16586
16587 #. type: verbatim
16588 #: ../src/guestfs-actions.pod:6587
16589 #, no-wrap
16590 msgid ""
16591 " int\n"
16592 " guestfs_tar_in (guestfs_h *g,\n"
16593 "                 const char *tarfile,\n"
16594 "                 const char *directory);\n"
16595 "\n"
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4439
16600 msgid ""
16601 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16602 "tar file) into C<directory>."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../src/guestfs-actions.pod:6595
16607 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
16608 msgstr ""
16609
16610 #. type: textblock
16611 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6649
16612 msgid "(Added in 1.0.3)"
16613 msgstr ""
16614
16615 #. type: =head2
16616 #: ../src/guestfs-actions.pod:6602
16617 msgid "guestfs_tar_out"
16618 msgstr ""
16619
16620 #. type: verbatim
16621 #: ../src/guestfs-actions.pod:6604
16622 #, no-wrap
16623 msgid ""
16624 " int\n"
16625 " guestfs_tar_out (guestfs_h *g,\n"
16626 "                  const char *directory,\n"
16627 "                  const char *tarfile);\n"
16628 "\n"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4451
16633 msgid ""
16634 "This command packs the contents of C<directory> and downloads it to local "
16635 "file C<tarfile>."
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../src/guestfs-actions.pod:6612
16640 msgid ""
16641 "To download a compressed tarball, use C<guestfs_tgz_out> or "
16642 "C<guestfs_txz_out>."
16643 msgstr ""
16644
16645 #. type: =head2
16646 #: ../src/guestfs-actions.pod:6619
16647 msgid "guestfs_tgz_in"
16648 msgstr ""
16649
16650 #. type: verbatim
16651 #: ../src/guestfs-actions.pod:6621
16652 #, no-wrap
16653 msgid ""
16654 " int\n"
16655 " guestfs_tgz_in (guestfs_h *g,\n"
16656 "                 const char *tarball,\n"
16657 "                 const char *directory);\n"
16658 "\n"
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../src/guestfs-actions.pod:6626 ../fish/guestfish-actions.pod:4463
16663 msgid ""
16664 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16665 "tar file) into C<directory>."
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../src/guestfs-actions.pod:6629
16670 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
16671 msgstr ""
16672
16673 #. type: =head2
16674 #: ../src/guestfs-actions.pod:6635
16675 msgid "guestfs_tgz_out"
16676 msgstr ""
16677
16678 #. type: verbatim
16679 #: ../src/guestfs-actions.pod:6637
16680 #, no-wrap
16681 msgid ""
16682 " int\n"
16683 " guestfs_tgz_out (guestfs_h *g,\n"
16684 "                  const char *directory,\n"
16685 "                  const char *tarball);\n"
16686 "\n"
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../src/guestfs-actions.pod:6642 ../fish/guestfish-actions.pod:4474
16691 msgid ""
16692 "This command packs the contents of C<directory> and downloads it to local "
16693 "file C<tarball>."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../src/guestfs-actions.pod:6645
16698 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
16699 msgstr ""
16700
16701 #. type: =head2
16702 #: ../src/guestfs-actions.pod:6651
16703 msgid "guestfs_touch"
16704 msgstr ""
16705
16706 #. type: verbatim
16707 #: ../src/guestfs-actions.pod:6653
16708 #, no-wrap
16709 msgid ""
16710 " int\n"
16711 " guestfs_touch (guestfs_h *g,\n"
16712 "                const char *path);\n"
16713 "\n"
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../src/guestfs-actions.pod:6657 ../fish/guestfish-actions.pod:4485
16718 msgid ""
16719 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16720 "timestamps on a file, or, if the file does not exist, to create a new "
16721 "zero-length file."
16722 msgstr ""
16723
16724 #. type: textblock
16725 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4489
16726 msgid ""
16727 "This command only works on regular files, and will fail on other file types "
16728 "such as directories, symbolic links, block special etc."
16729 msgstr ""
16730
16731 #. type: =head2
16732 #: ../src/guestfs-actions.pod:6668
16733 msgid "guestfs_truncate"
16734 msgstr ""
16735
16736 #. type: verbatim
16737 #: ../src/guestfs-actions.pod:6670
16738 #, no-wrap
16739 msgid ""
16740 " int\n"
16741 " guestfs_truncate (guestfs_h *g,\n"
16742 "                   const char *path);\n"
16743 "\n"
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../src/guestfs-actions.pod:6674 ../fish/guestfish-actions.pod:4496
16748 msgid ""
16749 "This command truncates C<path> to a zero-length file.  The file must exist "
16750 "already."
16751 msgstr ""
16752
16753 #. type: =head2
16754 #: ../src/guestfs-actions.pod:6681
16755 msgid "guestfs_truncate_size"
16756 msgstr ""
16757
16758 #. type: verbatim
16759 #: ../src/guestfs-actions.pod:6683
16760 #, no-wrap
16761 msgid ""
16762 " int\n"
16763 " guestfs_truncate_size (guestfs_h *g,\n"
16764 "                        const char *path,\n"
16765 "                        int64_t size);\n"
16766 "\n"
16767 msgstr ""
16768
16769 #. type: textblock
16770 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4503
16771 msgid ""
16772 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16773 "already."
16774 msgstr ""
16775
16776 #. type: textblock
16777 #: ../src/guestfs-actions.pod:6691
16778 msgid ""
16779 "If the current file size is less than C<size> then the file is extended to "
16780 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16781 "blocks are not allocated for the file until you write to it).  To create a "
16782 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
16783 msgstr ""
16784
16785 #. type: =head2
16786 #: ../src/guestfs-actions.pod:6701
16787 msgid "guestfs_tune2fs_l"
16788 msgstr ""
16789
16790 #. type: verbatim
16791 #: ../src/guestfs-actions.pod:6703
16792 #, no-wrap
16793 msgid ""
16794 " char **\n"
16795 " guestfs_tune2fs_l (guestfs_h *g,\n"
16796 "                    const char *device);\n"
16797 "\n"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../src/guestfs-actions.pod:6707 ../fish/guestfish-actions.pod:4516
16802 msgid ""
16803 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16804 "C<device>."
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4519
16809 msgid ""
16810 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16811 "for more details.  The list of fields returned isn't clearly defined, and "
16812 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16813 "and the filesystem itself."
16814 msgstr ""
16815
16816 #. type: =head2
16817 #: ../src/guestfs-actions.pod:6723
16818 msgid "guestfs_txz_in"
16819 msgstr ""
16820
16821 #. type: verbatim
16822 #: ../src/guestfs-actions.pod:6725
16823 #, no-wrap
16824 msgid ""
16825 " int\n"
16826 " guestfs_txz_in (guestfs_h *g,\n"
16827 "                 const char *tarball,\n"
16828 "                 const char *directory);\n"
16829 "\n"
16830 msgstr ""
16831
16832 #. type: textblock
16833 #: ../src/guestfs-actions.pod:6730 ../fish/guestfish-actions.pod:4528
16834 msgid ""
16835 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16836 "tar file) into C<directory>."
16837 msgstr ""
16838
16839 #. type: =head2
16840 #: ../src/guestfs-actions.pod:6737
16841 msgid "guestfs_txz_out"
16842 msgstr ""
16843
16844 #. type: verbatim
16845 #: ../src/guestfs-actions.pod:6739
16846 #, no-wrap
16847 msgid ""
16848 " int\n"
16849 " guestfs_txz_out (guestfs_h *g,\n"
16850 "                  const char *directory,\n"
16851 "                  const char *tarball);\n"
16852 "\n"
16853 msgstr ""
16854
16855 #. type: textblock
16856 #: ../src/guestfs-actions.pod:6744 ../fish/guestfish-actions.pod:4537
16857 msgid ""
16858 "This command packs the contents of C<directory> and downloads it to local "
16859 "file C<tarball> (as an xz compressed tar archive)."
16860 msgstr ""
16861
16862 #. type: =head2
16863 #: ../src/guestfs-actions.pod:6751
16864 msgid "guestfs_umask"
16865 msgstr ""
16866
16867 #. type: verbatim
16868 #: ../src/guestfs-actions.pod:6753
16869 #, no-wrap
16870 msgid ""
16871 " int\n"
16872 " guestfs_umask (guestfs_h *g,\n"
16873 "                int mask);\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4546
16879 msgid ""
16880 "This function sets the mask used for creating new files and device nodes to "
16881 "C<mask & 0777>."
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../src/guestfs-actions.pod:6760 ../fish/guestfish-actions.pod:4549
16886 msgid ""
16887 "Typical umask values would be C<022> which creates new files with "
16888 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16889 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16890 msgstr ""
16891
16892 #. type: textblock
16893 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4554
16894 msgid ""
16895 "The default umask is C<022>.  This is important because it means that "
16896 "directories and device nodes will be created with C<0644> or C<0755> mode "
16897 "even if you specify C<0777>."
16898 msgstr ""
16899
16900 #. type: textblock
16901 #: ../src/guestfs-actions.pod:6769
16902 msgid ""
16903 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
16904 "C<guestfs_mkdir>."
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../src/guestfs-actions.pod:6772 ../fish/guestfish-actions.pod:4561
16909 msgid "This call returns the previous umask."
16910 msgstr ""
16911
16912 #. type: =head2
16913 #: ../src/guestfs-actions.pod:6778
16914 msgid "guestfs_umount"
16915 msgstr ""
16916
16917 #. type: verbatim
16918 #: ../src/guestfs-actions.pod:6780
16919 #, no-wrap
16920 msgid ""
16921 " int\n"
16922 " guestfs_umount (guestfs_h *g,\n"
16923 "                 const char *pathordevice);\n"
16924 "\n"
16925 msgstr ""
16926
16927 #. type: textblock
16928 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4569
16929 msgid ""
16930 "This unmounts the given filesystem.  The filesystem may be specified either "
16931 "by its mountpoint (path) or the device which contains the filesystem."
16932 msgstr ""
16933
16934 #. type: =head2
16935 #: ../src/guestfs-actions.pod:6792
16936 msgid "guestfs_umount_all"
16937 msgstr ""
16938
16939 #. type: verbatim
16940 #: ../src/guestfs-actions.pod:6794
16941 #, no-wrap
16942 msgid ""
16943 " int\n"
16944 " guestfs_umount_all (guestfs_h *g);\n"
16945 "\n"
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4579
16950 msgid "This unmounts all mounted filesystems."
16951 msgstr ""
16952
16953 #. type: textblock
16954 #: ../src/guestfs-actions.pod:6799 ../fish/guestfish-actions.pod:4581
16955 msgid "Some internal mounts are not unmounted by this call."
16956 msgstr ""
16957
16958 #. type: =head2
16959 #: ../src/guestfs-actions.pod:6805
16960 msgid "guestfs_upload"
16961 msgstr ""
16962
16963 #. type: verbatim
16964 #: ../src/guestfs-actions.pod:6807
16965 #, no-wrap
16966 msgid ""
16967 " int\n"
16968 " guestfs_upload (guestfs_h *g,\n"
16969 "                 const char *filename,\n"
16970 "                 const char *remotefilename);\n"
16971 "\n"
16972 msgstr ""
16973
16974 #. type: textblock
16975 #: ../src/guestfs-actions.pod:6812 ../src/guestfs-actions.pod:6836 ../fish/guestfish-actions.pod:4587 ../fish/guestfish-actions.pod:4600
16976 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16977 msgstr ""
16978
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:6817
16981 msgid "See also C<guestfs_download>."
16982 msgstr ""
16983
16984 #. type: =head2
16985 #: ../src/guestfs-actions.pod:6828
16986 msgid "guestfs_upload_offset"
16987 msgstr ""
16988
16989 #. type: verbatim
16990 #: ../src/guestfs-actions.pod:6830
16991 #, no-wrap
16992 msgid ""
16993 " int\n"
16994 " guestfs_upload_offset (guestfs_h *g,\n"
16995 "                        const char *filename,\n"
16996 "                        const char *remotefilename,\n"
16997 "                        int64_t offset);\n"
16998 "\n"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4603
17003 msgid ""
17004 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17005 "The intention is to overwrite parts of existing files or devices, although "
17006 "if a non-existant file is specified then it is created with a \"hole\" "
17007 "before C<offset>.  The size of the data written is implicit in the size of "
17008 "the source C<filename>."
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../src/guestfs-actions.pod:6846
17013 msgid ""
17014 "Note that there is no limit on the amount of data that can be uploaded with "
17015 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
17016 "full amount unless an error occurs."
17017 msgstr ""
17018
17019 #. type: textblock
17020 #: ../src/guestfs-actions.pod:6851
17021 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
17022 msgstr ""
17023
17024 #. type: =head2
17025 #: ../src/guestfs-actions.pod:6862
17026 msgid "guestfs_utimens"
17027 msgstr ""
17028
17029 #. type: verbatim
17030 #: ../src/guestfs-actions.pod:6864
17031 #, no-wrap
17032 msgid ""
17033 " int\n"
17034 " guestfs_utimens (guestfs_h *g,\n"
17035 "                  const char *path,\n"
17036 "                  int64_t atsecs,\n"
17037 "                  int64_t atnsecs,\n"
17038 "                  int64_t mtsecs,\n"
17039 "                  int64_t mtnsecs);\n"
17040 "\n"
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4623
17045 msgid "This command sets the timestamps of a file with nanosecond precision."
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4626
17050 msgid ""
17051 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17052 "from the epoch."
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4629
17057 msgid ""
17058 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17059 "nanoseconds from the epoch."
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../src/guestfs-actions.pod:6881 ../fish/guestfish-actions.pod:4632
17064 msgid ""
17065 "If the C<*nsecs> field contains the special value C<-1> then the "
17066 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17067 "ignored in this case)."
17068 msgstr ""
17069
17070 #. type: textblock
17071 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4636
17072 msgid ""
17073 "If the C<*nsecs> field contains the special value C<-2> then the "
17074 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17075 "in this case)."
17076 msgstr ""
17077
17078 #. type: =head2
17079 #: ../src/guestfs-actions.pod:6893 ../src/guestfs-structs.pod:175
17080 msgid "guestfs_version"
17081 msgstr ""
17082
17083 #. type: verbatim
17084 #: ../src/guestfs-actions.pod:6895
17085 #, no-wrap
17086 msgid ""
17087 " struct guestfs_version *\n"
17088 " guestfs_version (guestfs_h *g);\n"
17089 "\n"
17090 msgstr ""
17091
17092 #. type: textblock
17093 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4644
17094 msgid "Return the libguestfs version number that the program is linked against."
17095 msgstr ""
17096
17097 #. type: textblock
17098 #: ../src/guestfs-actions.pod:6901 ../fish/guestfish-actions.pod:4647
17099 msgid ""
17100 "Note that because of dynamic linking this is not necessarily the version of "
17101 "libguestfs that you compiled against.  You can compile the program, and then "
17102 "at runtime dynamically link against a completely different C<libguestfs.so> "
17103 "library."
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4652
17108 msgid ""
17109 "This call was added in version C<1.0.58>.  In previous versions of "
17110 "libguestfs there was no way to get the version number.  From C code you can "
17111 "use dynamic linker functions to find out if this symbol exists (if it "
17112 "doesn't, then it's an earlier version)."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4658
17117 msgid ""
17118 "The call returns a structure with four elements.  The first three (C<major>, "
17119 "C<minor> and C<release>) are numbers and correspond to the usual version "
17120 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17121 "but may be used for distro-specific information."
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4664
17126 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
17127 msgstr ""
17128
17129 #. type: textblock
17130 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4667
17131 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../src/guestfs-actions.pod:6923
17136 msgid ""
17137 "I<Note:> Don't use this call to test for availability of features.  In "
17138 "enterprise distributions we backport features from later versions into "
17139 "earlier versions, making this an unreliable way to test for features.  Use "
17140 "C<guestfs_available> instead."
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../src/guestfs-actions.pod:6929
17145 msgid ""
17146 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
17147 "error.  I<The caller must call C<guestfs_free_version> after use>."
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../src/guestfs-actions.pod:6933
17152 msgid "(Added in 1.0.58)"
17153 msgstr ""
17154
17155 #. type: =head2
17156 #: ../src/guestfs-actions.pod:6935
17157 msgid "guestfs_vfs_label"
17158 msgstr ""
17159
17160 #. type: verbatim
17161 #: ../src/guestfs-actions.pod:6937
17162 #, no-wrap
17163 msgid ""
17164 " char *\n"
17165 " guestfs_vfs_label (guestfs_h *g,\n"
17166 "                    const char *device);\n"
17167 "\n"
17168 msgstr ""
17169
17170 #. type: textblock
17171 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4679
17172 msgid "This returns the filesystem label of the filesystem on C<device>."
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4682
17177 msgid "If the filesystem is unlabeled, this returns the empty string."
17178 msgstr ""
17179
17180 #. type: textblock
17181 #: ../src/guestfs-actions.pod:6946
17182 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../src/guestfs-actions.pod:6951 ../src/guestfs-actions.pod:6988
17187 msgid "(Added in 1.3.18)"
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../src/guestfs-actions.pod:6953
17192 msgid "guestfs_vfs_type"
17193 msgstr ""
17194
17195 #. type: verbatim
17196 #: ../src/guestfs-actions.pod:6955
17197 #, no-wrap
17198 msgid ""
17199 " char *\n"
17200 " guestfs_vfs_type (guestfs_h *g,\n"
17201 "                   const char *device);\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4690
17207 msgid ""
17208 "This command gets the filesystem type corresponding to the filesystem on "
17209 "C<device>."
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4693
17214 msgid ""
17215 "For most filesystems, the result is the name of the Linux VFS module which "
17216 "would be used to mount this filesystem if you mounted it without specifying "
17217 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17218 msgstr ""
17219
17220 #. type: =head2
17221 #: ../src/guestfs-actions.pod:6972
17222 msgid "guestfs_vfs_uuid"
17223 msgstr ""
17224
17225 #. type: verbatim
17226 #: ../src/guestfs-actions.pod:6974
17227 #, no-wrap
17228 msgid ""
17229 " char *\n"
17230 " guestfs_vfs_uuid (guestfs_h *g,\n"
17231 "                   const char *device);\n"
17232 "\n"
17233 msgstr ""
17234
17235 #. type: textblock
17236 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4702
17237 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17238 msgstr ""
17239
17240 #. type: textblock
17241 #: ../src/guestfs-actions.pod:6981 ../fish/guestfish-actions.pod:4705
17242 msgid "If the filesystem does not have a UUID, this returns the empty string."
17243 msgstr ""
17244
17245 #. type: textblock
17246 #: ../src/guestfs-actions.pod:6983
17247 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17248 msgstr ""
17249
17250 #. type: =head2
17251 #: ../src/guestfs-actions.pod:6990
17252 msgid "guestfs_vg_activate"
17253 msgstr ""
17254
17255 #. type: verbatim
17256 #: ../src/guestfs-actions.pod:6992
17257 #, no-wrap
17258 msgid ""
17259 " int\n"
17260 " guestfs_vg_activate (guestfs_h *g,\n"
17261 "                      int activate,\n"
17262 "                      char *const *volgroups);\n"
17263 "\n"
17264 msgstr ""
17265
17266 #. type: textblock
17267 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4713
17268 msgid ""
17269 "This command activates or (if C<activate> is false) deactivates all logical "
17270 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17271 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17272 "deactivated, then those devices disappear."
17273 msgstr ""
17274
17275 #. type: textblock
17276 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4719
17277 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../src/guestfs-actions.pod:7005 ../fish/guestfish-actions.pod:4721
17282 msgid ""
17283 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17284 "activated or deactivated."
17285 msgstr ""
17286
17287 #. type: =head2
17288 #: ../src/guestfs-actions.pod:7012
17289 msgid "guestfs_vg_activate_all"
17290 msgstr ""
17291
17292 #. type: verbatim
17293 #: ../src/guestfs-actions.pod:7014
17294 #, no-wrap
17295 msgid ""
17296 " int\n"
17297 " guestfs_vg_activate_all (guestfs_h *g,\n"
17298 "                          int activate);\n"
17299 "\n"
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../src/guestfs-actions.pod:7018 ../fish/guestfish-actions.pod:4728
17304 msgid ""
17305 "This command activates or (if C<activate> is false) deactivates all logical "
17306 "volumes in all volume groups.  If activated, then they are made known to the "
17307 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17308 "those devices disappear."
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../src/guestfs-actions.pod:7024 ../fish/guestfish-actions.pod:4734
17313 msgid "This command is the same as running C<vgchange -a y|n>"
17314 msgstr ""
17315
17316 #. type: =head2
17317 #: ../src/guestfs-actions.pod:7030
17318 msgid "guestfs_vgcreate"
17319 msgstr ""
17320
17321 #. type: verbatim
17322 #: ../src/guestfs-actions.pod:7032
17323 #, no-wrap
17324 msgid ""
17325 " int\n"
17326 " guestfs_vgcreate (guestfs_h *g,\n"
17327 "                   const char *volgroup,\n"
17328 "                   char *const *physvols);\n"
17329 "\n"
17330 msgstr ""
17331
17332 #. type: textblock
17333 #: ../src/guestfs-actions.pod:7037 ../fish/guestfish-actions.pod:4740
17334 msgid ""
17335 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17336 "of physical volumes C<physvols>."
17337 msgstr ""
17338
17339 #. type: =head2
17340 #: ../src/guestfs-actions.pod:7044
17341 msgid "guestfs_vglvuuids"
17342 msgstr ""
17343
17344 #. type: verbatim
17345 #: ../src/guestfs-actions.pod:7046
17346 #, no-wrap
17347 msgid ""
17348 " char **\n"
17349 " guestfs_vglvuuids (guestfs_h *g,\n"
17350 "                    const char *vgname);\n"
17351 "\n"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../src/guestfs-actions.pod:7050 ../fish/guestfish-actions.pod:4747
17356 msgid ""
17357 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17358 "volumes created in this volume group."
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../src/guestfs-actions.pod:7053
17363 msgid ""
17364 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
17365 "associate logical volumes and volume groups."
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../src/guestfs-actions.pod:7056
17370 msgid "See also C<guestfs_vgpvuuids>."
17371 msgstr ""
17372
17373 #. type: =head2
17374 #: ../src/guestfs-actions.pod:7064
17375 msgid "guestfs_vgpvuuids"
17376 msgstr ""
17377
17378 #. type: verbatim
17379 #: ../src/guestfs-actions.pod:7066
17380 #, no-wrap
17381 msgid ""
17382 " char **\n"
17383 " guestfs_vgpvuuids (guestfs_h *g,\n"
17384 "                    const char *vgname);\n"
17385 "\n"
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../src/guestfs-actions.pod:7070 ../fish/guestfish-actions.pod:4759
17390 msgid ""
17391 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17392 "volumes that this volume group resides on."
17393 msgstr ""
17394
17395 #. type: textblock
17396 #: ../src/guestfs-actions.pod:7073
17397 msgid ""
17398 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
17399 "associate physical volumes and volume groups."
17400 msgstr ""
17401
17402 #. type: textblock
17403 #: ../src/guestfs-actions.pod:7076
17404 msgid "See also C<guestfs_vglvuuids>."
17405 msgstr ""
17406
17407 #. type: =head2
17408 #: ../src/guestfs-actions.pod:7084
17409 msgid "guestfs_vgremove"
17410 msgstr ""
17411
17412 #. type: verbatim
17413 #: ../src/guestfs-actions.pod:7086
17414 #, no-wrap
17415 msgid ""
17416 " int\n"
17417 " guestfs_vgremove (guestfs_h *g,\n"
17418 "                   const char *vgname);\n"
17419 "\n"
17420 msgstr ""
17421
17422 #. type: textblock
17423 #: ../src/guestfs-actions.pod:7090 ../fish/guestfish-actions.pod:4771
17424 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17425 msgstr ""
17426
17427 #. type: textblock
17428 #: ../src/guestfs-actions.pod:7092 ../fish/guestfish-actions.pod:4773
17429 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17430 msgstr ""
17431
17432 #. type: =head2
17433 #: ../src/guestfs-actions.pod:7099
17434 msgid "guestfs_vgrename"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../src/guestfs-actions.pod:7101
17439 #, no-wrap
17440 msgid ""
17441 " int\n"
17442 " guestfs_vgrename (guestfs_h *g,\n"
17443 "                   const char *volgroup,\n"
17444 "                   const char *newvolgroup);\n"
17445 "\n"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../src/guestfs-actions.pod:7106 ../fish/guestfish-actions.pod:4780
17450 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17451 msgstr ""
17452
17453 #. type: =head2
17454 #: ../src/guestfs-actions.pod:7112
17455 msgid "guestfs_vgs"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../src/guestfs-actions.pod:7114
17460 #, no-wrap
17461 msgid ""
17462 " char **\n"
17463 " guestfs_vgs (guestfs_h *g);\n"
17464 "\n"
17465 msgstr ""
17466
17467 #. type: textblock
17468 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4786
17469 msgid ""
17470 "List all the volumes groups detected.  This is the equivalent of the "
17471 "L<vgs(8)> command."
17472 msgstr ""
17473
17474 #. type: textblock
17475 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4789
17476 msgid ""
17477 "This returns a list of just the volume group names that were detected "
17478 "(eg. C<VolGroup00>)."
17479 msgstr ""
17480
17481 #. type: textblock
17482 #: ../src/guestfs-actions.pod:7123
17483 msgid "See also C<guestfs_vgs_full>."
17484 msgstr ""
17485
17486 #. type: =head2
17487 #: ../src/guestfs-actions.pod:7131
17488 msgid "guestfs_vgs_full"
17489 msgstr ""
17490
17491 #. type: verbatim
17492 #: ../src/guestfs-actions.pod:7133
17493 #, no-wrap
17494 msgid ""
17495 " struct guestfs_lvm_vg_list *\n"
17496 " guestfs_vgs_full (guestfs_h *g);\n"
17497 "\n"
17498 msgstr ""
17499
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:7136 ../fish/guestfish-actions.pod:4798
17502 msgid ""
17503 "List all the volumes groups detected.  This is the equivalent of the "
17504 "L<vgs(8)> command.  The \"full\" version includes all fields."
17505 msgstr ""
17506
17507 #. type: textblock
17508 #: ../src/guestfs-actions.pod:7139
17509 msgid ""
17510 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
17511 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
17512 "use>."
17513 msgstr ""
17514
17515 #. type: =head2
17516 #: ../src/guestfs-actions.pod:7145
17517 msgid "guestfs_vgscan"
17518 msgstr ""
17519
17520 #. type: verbatim
17521 #: ../src/guestfs-actions.pod:7147
17522 #, no-wrap
17523 msgid ""
17524 " int\n"
17525 " guestfs_vgscan (guestfs_h *g);\n"
17526 "\n"
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../src/guestfs-actions.pod:7150 ../fish/guestfish-actions.pod:4805
17531 msgid ""
17532 "This rescans all block devices and rebuilds the list of LVM physical "
17533 "volumes, volume groups and logical volumes."
17534 msgstr ""
17535
17536 #. type: =head2
17537 #: ../src/guestfs-actions.pod:7157
17538 msgid "guestfs_vguuid"
17539 msgstr ""
17540
17541 #. type: verbatim
17542 #: ../src/guestfs-actions.pod:7159
17543 #, no-wrap
17544 msgid ""
17545 " char *\n"
17546 " guestfs_vguuid (guestfs_h *g,\n"
17547 "                 const char *vgname);\n"
17548 "\n"
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../src/guestfs-actions.pod:7163 ../fish/guestfish-actions.pod:4812
17553 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17554 msgstr ""
17555
17556 #. type: =head2
17557 #: ../src/guestfs-actions.pod:7170
17558 msgid "guestfs_wait_ready"
17559 msgstr ""
17560
17561 #. type: verbatim
17562 #: ../src/guestfs-actions.pod:7172
17563 #, no-wrap
17564 msgid ""
17565 " int\n"
17566 " guestfs_wait_ready (guestfs_h *g);\n"
17567 "\n"
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../src/guestfs-actions.pod:7175
17572 msgid "This function is a no op."
17573 msgstr ""
17574
17575 #. type: textblock
17576 #: ../src/guestfs-actions.pod:7177
17577 msgid ""
17578 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
17579 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
17580 "is no longer necessary because C<guestfs_launch> now does the waiting."
17581 msgstr ""
17582
17583 #. type: textblock
17584 #: ../src/guestfs-actions.pod:7182
17585 msgid ""
17586 "If you see any calls to this function in code then you can just remove them, "
17587 "unless you want to retain compatibility with older versions of the API."
17588 msgstr ""
17589
17590 #. type: =head2
17591 #: ../src/guestfs-actions.pod:7190
17592 msgid "guestfs_wc_c"
17593 msgstr ""
17594
17595 #. type: verbatim
17596 #: ../src/guestfs-actions.pod:7192
17597 #, no-wrap
17598 msgid ""
17599 " int\n"
17600 " guestfs_wc_c (guestfs_h *g,\n"
17601 "               const char *path);\n"
17602 "\n"
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../src/guestfs-actions.pod:7196 ../fish/guestfish-actions.pod:4818
17607 msgid ""
17608 "This command counts the characters in a file, using the C<wc -c> external "
17609 "command."
17610 msgstr ""
17611
17612 #. type: =head2
17613 #: ../src/guestfs-actions.pod:7203
17614 msgid "guestfs_wc_l"
17615 msgstr ""
17616
17617 #. type: verbatim
17618 #: ../src/guestfs-actions.pod:7205
17619 #, no-wrap
17620 msgid ""
17621 " int\n"
17622 " guestfs_wc_l (guestfs_h *g,\n"
17623 "               const char *path);\n"
17624 "\n"
17625 msgstr ""
17626
17627 #. type: textblock
17628 #: ../src/guestfs-actions.pod:7209 ../fish/guestfish-actions.pod:4825
17629 msgid ""
17630 "This command counts the lines in a file, using the C<wc -l> external "
17631 "command."
17632 msgstr ""
17633
17634 #. type: =head2
17635 #: ../src/guestfs-actions.pod:7216
17636 msgid "guestfs_wc_w"
17637 msgstr ""
17638
17639 #. type: verbatim
17640 #: ../src/guestfs-actions.pod:7218
17641 #, no-wrap
17642 msgid ""
17643 " int\n"
17644 " guestfs_wc_w (guestfs_h *g,\n"
17645 "               const char *path);\n"
17646 "\n"
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../src/guestfs-actions.pod:7222 ../fish/guestfish-actions.pod:4832
17651 msgid ""
17652 "This command counts the words in a file, using the C<wc -w> external "
17653 "command."
17654 msgstr ""
17655
17656 #. type: =head2
17657 #: ../src/guestfs-actions.pod:7229
17658 msgid "guestfs_write"
17659 msgstr ""
17660
17661 #. type: verbatim
17662 #: ../src/guestfs-actions.pod:7231
17663 #, no-wrap
17664 msgid ""
17665 " int\n"
17666 " guestfs_write (guestfs_h *g,\n"
17667 "                const char *path,\n"
17668 "                const char *content,\n"
17669 "                size_t content_size);\n"
17670 "\n"
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4839
17675 msgid ""
17676 "This call creates a file called C<path>.  The content of the file is the "
17677 "string C<content> (which can contain any 8 bit data)."
17678 msgstr ""
17679
17680 #. type: =head2
17681 #: ../src/guestfs-actions.pod:7247
17682 msgid "guestfs_write_file"
17683 msgstr ""
17684
17685 #. type: verbatim
17686 #: ../src/guestfs-actions.pod:7249
17687 #, no-wrap
17688 msgid ""
17689 " int\n"
17690 " guestfs_write_file (guestfs_h *g,\n"
17691 "                     const char *path,\n"
17692 "                     const char *content,\n"
17693 "                     int size);\n"
17694 "\n"
17695 msgstr ""
17696
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
17699 msgid ""
17700 "This call creates a file called C<path>.  The contents of the file is the "
17701 "string C<content> (which can contain any 8 bit data), with length C<size>."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../src/guestfs-actions.pod:7259 ../fish/guestfish-actions.pod:4853
17706 msgid ""
17707 "As a special case, if C<size> is C<0> then the length is calculated using "
17708 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17709 msgstr ""
17710
17711 #. type: textblock
17712 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4857
17713 msgid ""
17714 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17715 "I<not> work, even if the length is specified."
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../src/guestfs-actions.pod:7271 ../fish/guestfish-actions.pod:4863
17720 msgid "This function is deprecated.  In new code, use the C<write> call instead."
17721 msgstr ""
17722
17723 #. type: =head2
17724 #: ../src/guestfs-actions.pod:7280
17725 msgid "guestfs_zegrep"
17726 msgstr ""
17727
17728 #. type: verbatim
17729 #: ../src/guestfs-actions.pod:7282
17730 #, no-wrap
17731 msgid ""
17732 " char **\n"
17733 " guestfs_zegrep (guestfs_h *g,\n"
17734 "                 const char *regex,\n"
17735 "                 const char *path);\n"
17736 "\n"
17737 msgstr ""
17738
17739 #. type: textblock
17740 #: ../src/guestfs-actions.pod:7287 ../fish/guestfish-actions.pod:4874
17741 msgid "This calls the external C<zegrep> program and returns the matching lines."
17742 msgstr ""
17743
17744 #. type: =head2
17745 #: ../src/guestfs-actions.pod:7299
17746 msgid "guestfs_zegrepi"
17747 msgstr ""
17748
17749 #. type: verbatim
17750 #: ../src/guestfs-actions.pod:7301
17751 #, no-wrap
17752 msgid ""
17753 " char **\n"
17754 " guestfs_zegrepi (guestfs_h *g,\n"
17755 "                  const char *regex,\n"
17756 "                  const char *path);\n"
17757 "\n"
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../src/guestfs-actions.pod:7306 ../fish/guestfish-actions.pod:4884
17762 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../src/guestfs-actions.pod:7318
17767 msgid "guestfs_zero"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../src/guestfs-actions.pod:7320
17772 #, no-wrap
17773 msgid ""
17774 " int\n"
17775 " guestfs_zero (guestfs_h *g,\n"
17776 "               const char *device);\n"
17777 "\n"
17778 msgstr ""
17779
17780 #. type: textblock
17781 #: ../src/guestfs-actions.pod:7324 ../fish/guestfish-actions.pod:4894
17782 msgid "This command writes zeroes over the first few blocks of C<device>."
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../src/guestfs-actions.pod:7326 ../fish/guestfish-actions.pod:4896
17787 msgid ""
17788 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17789 "securely wipe the device).  It should be sufficient to remove any partition "
17790 "tables, filesystem superblocks and so on."
17791 msgstr ""
17792
17793 #. type: textblock
17794 #: ../src/guestfs-actions.pod:7330
17795 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
17796 msgstr ""
17797
17798 #. type: =head2
17799 #: ../src/guestfs-actions.pod:7341
17800 msgid "guestfs_zero_device"
17801 msgstr ""
17802
17803 #. type: verbatim
17804 #: ../src/guestfs-actions.pod:7343
17805 #, no-wrap
17806 msgid ""
17807 " int\n"
17808 " guestfs_zero_device (guestfs_h *g,\n"
17809 "                      const char *device);\n"
17810 "\n"
17811 msgstr ""
17812
17813 #. type: textblock
17814 #: ../src/guestfs-actions.pod:7347
17815 msgid ""
17816 "This command writes zeroes over the entire C<device>.  Compare with "
17817 "C<guestfs_zero> which just zeroes the first few blocks of a device."
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../src/guestfs-actions.pod:7361
17822 msgid "(Added in 1.3.1)"
17823 msgstr ""
17824
17825 #. type: =head2
17826 #: ../src/guestfs-actions.pod:7363
17827 msgid "guestfs_zerofree"
17828 msgstr ""
17829
17830 #. type: verbatim
17831 #: ../src/guestfs-actions.pod:7365
17832 #, no-wrap
17833 msgid ""
17834 " int\n"
17835 " guestfs_zerofree (guestfs_h *g,\n"
17836 "                   const char *device);\n"
17837 "\n"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4917
17842 msgid ""
17843 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17844 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17845 "possible to compress the filesystem more effectively."
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../src/guestfs-actions.pod:7374 ../fish/guestfish-actions.pod:4922
17850 msgid "You should B<not> run this program if the filesystem is mounted."
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../src/guestfs-actions.pod:7377 ../fish/guestfish-actions.pod:4925
17855 msgid ""
17856 "It is possible that using this program can damage the filesystem or data on "
17857 "the filesystem."
17858 msgstr ""
17859
17860 #. type: =head2
17861 #: ../src/guestfs-actions.pod:7384
17862 msgid "guestfs_zfgrep"
17863 msgstr ""
17864
17865 #. type: verbatim
17866 #: ../src/guestfs-actions.pod:7386
17867 #, no-wrap
17868 msgid ""
17869 " char **\n"
17870 " guestfs_zfgrep (guestfs_h *g,\n"
17871 "                 const char *pattern,\n"
17872 "                 const char *path);\n"
17873 "\n"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../src/guestfs-actions.pod:7391 ../fish/guestfish-actions.pod:4932
17878 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17879 msgstr ""
17880
17881 #. type: =head2
17882 #: ../src/guestfs-actions.pod:7403
17883 msgid "guestfs_zfgrepi"
17884 msgstr ""
17885
17886 #. type: verbatim
17887 #: ../src/guestfs-actions.pod:7405
17888 #, no-wrap
17889 msgid ""
17890 " char **\n"
17891 " guestfs_zfgrepi (guestfs_h *g,\n"
17892 "                  const char *pattern,\n"
17893 "                  const char *path);\n"
17894 "\n"
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../src/guestfs-actions.pod:7410 ../fish/guestfish-actions.pod:4942
17899 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17900 msgstr ""
17901
17902 #. type: =head2
17903 #: ../src/guestfs-actions.pod:7422
17904 msgid "guestfs_zfile"
17905 msgstr ""
17906
17907 #. type: verbatim
17908 #: ../src/guestfs-actions.pod:7424
17909 #, no-wrap
17910 msgid ""
17911 " char *\n"
17912 " guestfs_zfile (guestfs_h *g,\n"
17913 "                const char *meth,\n"
17914 "                const char *path);\n"
17915 "\n"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../src/guestfs-actions.pod:7429 ../fish/guestfish-actions.pod:4952
17920 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../src/guestfs-actions.pod:7432 ../fish/guestfish-actions.pod:4955
17925 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17926 msgstr ""
17927
17928 #. type: textblock
17929 #: ../src/guestfs-actions.pod:7434
17930 msgid ""
17931 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
17932 "files."
17933 msgstr ""
17934
17935 #. type: textblock
17936 #: ../src/guestfs-actions.pod:7440 ../fish/guestfish-actions.pod:4960
17937 msgid "This function is deprecated.  In new code, use the C<file> call instead."
17938 msgstr ""
17939
17940 #. type: =head2
17941 #: ../src/guestfs-actions.pod:7449
17942 msgid "guestfs_zgrep"
17943 msgstr ""
17944
17945 #. type: verbatim
17946 #: ../src/guestfs-actions.pod:7451
17947 #, no-wrap
17948 msgid ""
17949 " char **\n"
17950 " guestfs_zgrep (guestfs_h *g,\n"
17951 "                const char *regex,\n"
17952 "                const char *path);\n"
17953 "\n"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../src/guestfs-actions.pod:7456 ../fish/guestfish-actions.pod:4971
17958 msgid "This calls the external C<zgrep> program and returns the matching lines."
17959 msgstr ""
17960
17961 #. type: =head2
17962 #: ../src/guestfs-actions.pod:7468
17963 msgid "guestfs_zgrepi"
17964 msgstr ""
17965
17966 #. type: verbatim
17967 #: ../src/guestfs-actions.pod:7470
17968 #, no-wrap
17969 msgid ""
17970 " char **\n"
17971 " guestfs_zgrepi (guestfs_h *g,\n"
17972 "                 const char *regex,\n"
17973 "                 const char *path);\n"
17974 "\n"
17975 msgstr ""
17976
17977 #. type: textblock
17978 #: ../src/guestfs-actions.pod:7475 ../fish/guestfish-actions.pod:4981
17979 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17980 msgstr ""
17981
17982 #. type: =item
17983 #: ../src/guestfs-availability.pod:3
17984 msgid "B<augeas>"
17985 msgstr ""
17986
17987 #. type: textblock
17988 #: ../src/guestfs-availability.pod:5
17989 msgid ""
17990 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
17991 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
17992 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
17993 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
17994 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
17995 msgstr ""
17996
17997 #. type: =item
17998 #: ../src/guestfs-availability.pod:21
17999 msgid "B<inotify>"
18000 msgstr ""
18001
18002 #. type: textblock
18003 #: ../src/guestfs-availability.pod:23
18004 msgid ""
18005 "The following functions: L</guestfs_inotify_add_watch> "
18006 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
18007 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
18008 msgstr ""
18009
18010 #. type: =item
18011 #: ../src/guestfs-availability.pod:31
18012 msgid "B<linuxfsuuid>"
18013 msgstr ""
18014
18015 #. type: textblock
18016 #: ../src/guestfs-availability.pod:33
18017 msgid ""
18018 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
18019 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
18020 msgstr ""
18021
18022 #. type: =item
18023 #: ../src/guestfs-availability.pod:40
18024 msgid "B<linuxmodules>"
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../src/guestfs-availability.pod:42
18029 msgid "The following functions: L</guestfs_modprobe>"
18030 msgstr ""
18031
18032 #. type: =item
18033 #: ../src/guestfs-availability.pod:45
18034 msgid "B<linuxxattrs>"
18035 msgstr ""
18036
18037 #. type: textblock
18038 #: ../src/guestfs-availability.pod:47
18039 msgid ""
18040 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
18041 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
18042 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
18043 "L</guestfs_setxattr>"
18044 msgstr ""
18045
18046 #. type: =item
18047 #: ../src/guestfs-availability.pod:58
18048 msgid "B<luks>"
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../src/guestfs-availability.pod:60
18053 msgid ""
18054 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
18055 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
18056 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
18057 msgstr ""
18058
18059 #. type: =item
18060 #: ../src/guestfs-availability.pod:69
18061 msgid "B<lvm2>"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../src/guestfs-availability.pod:71
18066 msgid ""
18067 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
18068 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
18069 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
18070 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
18071 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
18072 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
18073 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
18074 "L</guestfs_vgs_full>"
18075 msgstr ""
18076
18077 #. type: =item
18078 #: ../src/guestfs-availability.pod:94
18079 msgid "B<mknod>"
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../src/guestfs-availability.pod:96
18084 msgid ""
18085 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
18086 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
18087 msgstr ""
18088
18089 #. type: =item
18090 #: ../src/guestfs-availability.pod:102
18091 msgid "B<ntfs3g>"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../src/guestfs-availability.pod:104
18096 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
18097 msgstr ""
18098
18099 #. type: =item
18100 #: ../src/guestfs-availability.pod:107
18101 msgid "B<ntfsprogs>"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../src/guestfs-availability.pod:109
18106 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
18107 msgstr ""
18108
18109 #. type: =item
18110 #: ../src/guestfs-availability.pod:113
18111 msgid "B<realpath>"
18112 msgstr ""
18113
18114 #. type: textblock
18115 #: ../src/guestfs-availability.pod:115
18116 msgid "The following functions: L</guestfs_realpath>"
18117 msgstr ""
18118
18119 #. type: =item
18120 #: ../src/guestfs-availability.pod:118
18121 msgid "B<scrub>"
18122 msgstr ""
18123
18124 #. type: textblock
18125 #: ../src/guestfs-availability.pod:120
18126 msgid ""
18127 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
18128 "L</guestfs_scrub_freespace>"
18129 msgstr ""
18130
18131 #. type: =item
18132 #: ../src/guestfs-availability.pod:125
18133 msgid "B<selinux>"
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../src/guestfs-availability.pod:127
18138 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
18139 msgstr ""
18140
18141 #. type: =item
18142 #: ../src/guestfs-availability.pod:131
18143 msgid "B<xz>"
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../src/guestfs-availability.pod:133
18148 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
18149 msgstr ""
18150
18151 #. type: =item
18152 #: ../src/guestfs-availability.pod:137
18153 msgid "B<zerofree>"
18154 msgstr ""
18155
18156 #. type: textblock
18157 #: ../src/guestfs-availability.pod:139
18158 msgid "The following functions: L</guestfs_zerofree>"
18159 msgstr ""
18160
18161 #. type: =head2
18162 #: ../src/guestfs-structs.pod:1
18163 msgid "guestfs_int_bool"
18164 msgstr ""
18165
18166 #. type: verbatim
18167 #: ../src/guestfs-structs.pod:3
18168 #, no-wrap
18169 msgid ""
18170 " struct guestfs_int_bool {\n"
18171 "   int32_t i;\n"
18172 "   int32_t b;\n"
18173 " };\n"
18174 " \n"
18175 msgstr ""
18176
18177 #. type: verbatim
18178 #: ../src/guestfs-structs.pod:8
18179 #, no-wrap
18180 msgid ""
18181 " struct guestfs_int_bool_list {\n"
18182 "   uint32_t len; /* Number of elements in list. */\n"
18183 "   struct guestfs_int_bool *val; /* Elements. */\n"
18184 " };\n"
18185 " \n"
18186 msgstr ""
18187
18188 #. type: verbatim
18189 #: ../src/guestfs-structs.pod:13
18190 #, no-wrap
18191 msgid ""
18192 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18193 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18194 "\n"
18195 msgstr ""
18196
18197 #. type: =head2
18198 #: ../src/guestfs-structs.pod:16
18199 msgid "guestfs_lvm_pv"
18200 msgstr ""
18201
18202 #. type: verbatim
18203 #: ../src/guestfs-structs.pod:18
18204 #, no-wrap
18205 msgid ""
18206 " struct guestfs_lvm_pv {\n"
18207 "   char *pv_name;\n"
18208 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18209 "*/\n"
18210 "   char pv_uuid[32];\n"
18211 "   char *pv_fmt;\n"
18212 "   uint64_t pv_size;\n"
18213 "   uint64_t dev_size;\n"
18214 "   uint64_t pv_free;\n"
18215 "   uint64_t pv_used;\n"
18216 "   char *pv_attr;\n"
18217 "   int64_t pv_pe_count;\n"
18218 "   int64_t pv_pe_alloc_count;\n"
18219 "   char *pv_tags;\n"
18220 "   uint64_t pe_start;\n"
18221 "   int64_t pv_mda_count;\n"
18222 "   uint64_t pv_mda_free;\n"
18223 " };\n"
18224 " \n"
18225 msgstr ""
18226
18227 #. type: verbatim
18228 #: ../src/guestfs-structs.pod:36
18229 #, no-wrap
18230 msgid ""
18231 " struct guestfs_lvm_pv_list {\n"
18232 "   uint32_t len; /* Number of elements in list. */\n"
18233 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18234 " };\n"
18235 " \n"
18236 msgstr ""
18237
18238 #. type: verbatim
18239 #: ../src/guestfs-structs.pod:41
18240 #, no-wrap
18241 msgid ""
18242 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18243 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18244 "\n"
18245 msgstr ""
18246
18247 #. type: =head2
18248 #: ../src/guestfs-structs.pod:44
18249 msgid "guestfs_lvm_vg"
18250 msgstr ""
18251
18252 #. type: verbatim
18253 #: ../src/guestfs-structs.pod:46
18254 #, no-wrap
18255 msgid ""
18256 " struct guestfs_lvm_vg {\n"
18257 "   char *vg_name;\n"
18258 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18259 "*/\n"
18260 "   char vg_uuid[32];\n"
18261 "   char *vg_fmt;\n"
18262 "   char *vg_attr;\n"
18263 "   uint64_t vg_size;\n"
18264 "   uint64_t vg_free;\n"
18265 "   char *vg_sysid;\n"
18266 "   uint64_t vg_extent_size;\n"
18267 "   int64_t vg_extent_count;\n"
18268 "   int64_t vg_free_count;\n"
18269 "   int64_t max_lv;\n"
18270 "   int64_t max_pv;\n"
18271 "   int64_t pv_count;\n"
18272 "   int64_t lv_count;\n"
18273 "   int64_t snap_count;\n"
18274 "   int64_t vg_seqno;\n"
18275 "   char *vg_tags;\n"
18276 "   int64_t vg_mda_count;\n"
18277 "   uint64_t vg_mda_free;\n"
18278 " };\n"
18279 " \n"
18280 msgstr ""
18281
18282 #. type: verbatim
18283 #: ../src/guestfs-structs.pod:69
18284 #, no-wrap
18285 msgid ""
18286 " struct guestfs_lvm_vg_list {\n"
18287 "   uint32_t len; /* Number of elements in list. */\n"
18288 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18289 " };\n"
18290 " \n"
18291 msgstr ""
18292
18293 #. type: verbatim
18294 #: ../src/guestfs-structs.pod:74
18295 #, no-wrap
18296 msgid ""
18297 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18298 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18299 "\n"
18300 msgstr ""
18301
18302 #. type: =head2
18303 #: ../src/guestfs-structs.pod:77
18304 msgid "guestfs_lvm_lv"
18305 msgstr ""
18306
18307 #. type: verbatim
18308 #: ../src/guestfs-structs.pod:79
18309 #, no-wrap
18310 msgid ""
18311 " struct guestfs_lvm_lv {\n"
18312 "   char *lv_name;\n"
18313 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18314 "*/\n"
18315 "   char lv_uuid[32];\n"
18316 "   char *lv_attr;\n"
18317 "   int64_t lv_major;\n"
18318 "   int64_t lv_minor;\n"
18319 "   int64_t lv_kernel_major;\n"
18320 "   int64_t lv_kernel_minor;\n"
18321 "   uint64_t lv_size;\n"
18322 "   int64_t seg_count;\n"
18323 "   char *origin;\n"
18324 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18325 "   float snap_percent;\n"
18326 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18327 "   float copy_percent;\n"
18328 "   char *move_pv;\n"
18329 "   char *lv_tags;\n"
18330 "   char *mirror_log;\n"
18331 "   char *modules;\n"
18332 " };\n"
18333 " \n"
18334 msgstr ""
18335
18336 #. type: verbatim
18337 #: ../src/guestfs-structs.pod:101
18338 #, no-wrap
18339 msgid ""
18340 " struct guestfs_lvm_lv_list {\n"
18341 "   uint32_t len; /* Number of elements in list. */\n"
18342 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
18343 " };\n"
18344 " \n"
18345 msgstr ""
18346
18347 #. type: verbatim
18348 #: ../src/guestfs-structs.pod:106
18349 #, no-wrap
18350 msgid ""
18351 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
18352 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: verbatim
18357 #: ../src/guestfs-structs.pod:111
18358 #, no-wrap
18359 msgid ""
18360 " struct guestfs_stat {\n"
18361 "   int64_t dev;\n"
18362 "   int64_t ino;\n"
18363 "   int64_t mode;\n"
18364 "   int64_t nlink;\n"
18365 "   int64_t uid;\n"
18366 "   int64_t gid;\n"
18367 "   int64_t rdev;\n"
18368 "   int64_t size;\n"
18369 "   int64_t blksize;\n"
18370 "   int64_t blocks;\n"
18371 "   int64_t atime;\n"
18372 "   int64_t mtime;\n"
18373 "   int64_t ctime;\n"
18374 " };\n"
18375 " \n"
18376 msgstr ""
18377
18378 #. type: verbatim
18379 #: ../src/guestfs-structs.pod:127
18380 #, no-wrap
18381 msgid ""
18382 " struct guestfs_stat_list {\n"
18383 "   uint32_t len; /* Number of elements in list. */\n"
18384 "   struct guestfs_stat *val; /* Elements. */\n"
18385 " };\n"
18386 " \n"
18387 msgstr ""
18388
18389 #. type: verbatim
18390 #: ../src/guestfs-structs.pod:132
18391 #, no-wrap
18392 msgid ""
18393 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
18394 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
18395 "\n"
18396 msgstr ""
18397
18398 #. type: verbatim
18399 #: ../src/guestfs-structs.pod:137
18400 #, no-wrap
18401 msgid ""
18402 " struct guestfs_statvfs {\n"
18403 "   int64_t bsize;\n"
18404 "   int64_t frsize;\n"
18405 "   int64_t blocks;\n"
18406 "   int64_t bfree;\n"
18407 "   int64_t bavail;\n"
18408 "   int64_t files;\n"
18409 "   int64_t ffree;\n"
18410 "   int64_t favail;\n"
18411 "   int64_t fsid;\n"
18412 "   int64_t flag;\n"
18413 "   int64_t namemax;\n"
18414 " };\n"
18415 " \n"
18416 msgstr ""
18417
18418 #. type: verbatim
18419 #: ../src/guestfs-structs.pod:151
18420 #, no-wrap
18421 msgid ""
18422 " struct guestfs_statvfs_list {\n"
18423 "   uint32_t len; /* Number of elements in list. */\n"
18424 "   struct guestfs_statvfs *val; /* Elements. */\n"
18425 " };\n"
18426 " \n"
18427 msgstr ""
18428
18429 #. type: verbatim
18430 #: ../src/guestfs-structs.pod:156
18431 #, no-wrap
18432 msgid ""
18433 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
18434 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
18435 "\n"
18436 msgstr ""
18437
18438 #. type: =head2
18439 #: ../src/guestfs-structs.pod:159
18440 msgid "guestfs_dirent"
18441 msgstr ""
18442
18443 #. type: verbatim
18444 #: ../src/guestfs-structs.pod:161
18445 #, no-wrap
18446 msgid ""
18447 " struct guestfs_dirent {\n"
18448 "   int64_t ino;\n"
18449 "   char ftyp;\n"
18450 "   char *name;\n"
18451 " };\n"
18452 " \n"
18453 msgstr ""
18454
18455 #. type: verbatim
18456 #: ../src/guestfs-structs.pod:167
18457 #, no-wrap
18458 msgid ""
18459 " struct guestfs_dirent_list {\n"
18460 "   uint32_t len; /* Number of elements in list. */\n"
18461 "   struct guestfs_dirent *val; /* Elements. */\n"
18462 " };\n"
18463 " \n"
18464 msgstr ""
18465
18466 #. type: verbatim
18467 #: ../src/guestfs-structs.pod:172
18468 #, no-wrap
18469 msgid ""
18470 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
18471 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
18472 "\n"
18473 msgstr ""
18474
18475 #. type: verbatim
18476 #: ../src/guestfs-structs.pod:177
18477 #, no-wrap
18478 msgid ""
18479 " struct guestfs_version {\n"
18480 "   int64_t major;\n"
18481 "   int64_t minor;\n"
18482 "   int64_t release;\n"
18483 "   char *extra;\n"
18484 " };\n"
18485 " \n"
18486 msgstr ""
18487
18488 #. type: verbatim
18489 #: ../src/guestfs-structs.pod:184
18490 #, no-wrap
18491 msgid ""
18492 " struct guestfs_version_list {\n"
18493 "   uint32_t len; /* Number of elements in list. */\n"
18494 "   struct guestfs_version *val; /* Elements. */\n"
18495 " };\n"
18496 " \n"
18497 msgstr ""
18498
18499 #. type: verbatim
18500 #: ../src/guestfs-structs.pod:189
18501 #, no-wrap
18502 msgid ""
18503 " void guestfs_free_version (struct guestfs_free_version *);\n"
18504 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
18505 "\n"
18506 msgstr ""
18507
18508 #. type: =head2
18509 #: ../src/guestfs-structs.pod:192
18510 msgid "guestfs_xattr"
18511 msgstr ""
18512
18513 #. type: verbatim
18514 #: ../src/guestfs-structs.pod:194
18515 #, no-wrap
18516 msgid ""
18517 " struct guestfs_xattr {\n"
18518 "   char *attrname;\n"
18519 "   /* The next two fields describe a byte array. */\n"
18520 "   uint32_t attrval_len;\n"
18521 "   char *attrval;\n"
18522 " };\n"
18523 " \n"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../src/guestfs-structs.pod:201
18528 #, no-wrap
18529 msgid ""
18530 " struct guestfs_xattr_list {\n"
18531 "   uint32_t len; /* Number of elements in list. */\n"
18532 "   struct guestfs_xattr *val; /* Elements. */\n"
18533 " };\n"
18534 " \n"
18535 msgstr ""
18536
18537 #. type: verbatim
18538 #: ../src/guestfs-structs.pod:206
18539 #, no-wrap
18540 msgid ""
18541 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
18542 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
18543 "\n"
18544 msgstr ""
18545
18546 #. type: =head2
18547 #: ../src/guestfs-structs.pod:209
18548 msgid "guestfs_inotify_event"
18549 msgstr ""
18550
18551 #. type: verbatim
18552 #: ../src/guestfs-structs.pod:211
18553 #, no-wrap
18554 msgid ""
18555 " struct guestfs_inotify_event {\n"
18556 "   int64_t in_wd;\n"
18557 "   uint32_t in_mask;\n"
18558 "   uint32_t in_cookie;\n"
18559 "   char *in_name;\n"
18560 " };\n"
18561 " \n"
18562 msgstr ""
18563
18564 #. type: verbatim
18565 #: ../src/guestfs-structs.pod:218
18566 #, no-wrap
18567 msgid ""
18568 " struct guestfs_inotify_event_list {\n"
18569 "   uint32_t len; /* Number of elements in list. */\n"
18570 "   struct guestfs_inotify_event *val; /* Elements. */\n"
18571 " };\n"
18572 " \n"
18573 msgstr ""
18574
18575 #. type: verbatim
18576 #: ../src/guestfs-structs.pod:223
18577 #, no-wrap
18578 msgid ""
18579 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
18580 " void guestfs_free_inotify_event_list (struct "
18581 "guestfs_free_inotify_event_list *);\n"
18582 "\n"
18583 msgstr ""
18584
18585 #. type: =head2
18586 #: ../src/guestfs-structs.pod:226
18587 msgid "guestfs_partition"
18588 msgstr ""
18589
18590 #. type: verbatim
18591 #: ../src/guestfs-structs.pod:228
18592 #, no-wrap
18593 msgid ""
18594 " struct guestfs_partition {\n"
18595 "   int32_t part_num;\n"
18596 "   uint64_t part_start;\n"
18597 "   uint64_t part_end;\n"
18598 "   uint64_t part_size;\n"
18599 " };\n"
18600 " \n"
18601 msgstr ""
18602
18603 #. type: verbatim
18604 #: ../src/guestfs-structs.pod:235
18605 #, no-wrap
18606 msgid ""
18607 " struct guestfs_partition_list {\n"
18608 "   uint32_t len; /* Number of elements in list. */\n"
18609 "   struct guestfs_partition *val; /* Elements. */\n"
18610 " };\n"
18611 " \n"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../src/guestfs-structs.pod:240
18616 #, no-wrap
18617 msgid ""
18618 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
18619 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
18620 "\n"
18621 msgstr ""
18622
18623 #. type: =head2
18624 #: ../src/guestfs-structs.pod:243
18625 msgid "guestfs_application"
18626 msgstr ""
18627
18628 #. type: verbatim
18629 #: ../src/guestfs-structs.pod:245
18630 #, no-wrap
18631 msgid ""
18632 " struct guestfs_application {\n"
18633 "   char *app_name;\n"
18634 "   char *app_display_name;\n"
18635 "   int32_t app_epoch;\n"
18636 "   char *app_version;\n"
18637 "   char *app_release;\n"
18638 "   char *app_install_path;\n"
18639 "   char *app_trans_path;\n"
18640 "   char *app_publisher;\n"
18641 "   char *app_url;\n"
18642 "   char *app_source_package;\n"
18643 "   char *app_summary;\n"
18644 "   char *app_description;\n"
18645 " };\n"
18646 " \n"
18647 msgstr ""
18648
18649 #. type: verbatim
18650 #: ../src/guestfs-structs.pod:260
18651 #, no-wrap
18652 msgid ""
18653 " struct guestfs_application_list {\n"
18654 "   uint32_t len; /* Number of elements in list. */\n"
18655 "   struct guestfs_application *val; /* Elements. */\n"
18656 " };\n"
18657 " \n"
18658 msgstr ""
18659
18660 #. type: verbatim
18661 #: ../src/guestfs-structs.pod:265
18662 #, no-wrap
18663 msgid ""
18664 " void guestfs_free_application (struct guestfs_free_application *);\n"
18665 " void guestfs_free_application_list (struct guestfs_free_application_list "
18666 "*);\n"
18667 "\n"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:5
18672 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18673 msgstr ""
18674
18675 #. type: verbatim
18676 #: ../fish/guestfish.pod:9
18677 #, no-wrap
18678 msgid ""
18679 " guestfish [--options] [commands]\n"
18680 "\n"
18681 msgstr ""
18682
18683 #. type: verbatim
18684 #: ../fish/guestfish.pod:11
18685 #, no-wrap
18686 msgid ""
18687 " guestfish\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: verbatim
18692 #: ../fish/guestfish.pod:13
18693 #, no-wrap
18694 msgid ""
18695 " guestfish [--ro|--rw] -a disk.img\n"
18696 "\n"
18697 msgstr ""
18698
18699 #. type: verbatim
18700 #: ../fish/guestfish.pod:15
18701 #, no-wrap
18702 msgid ""
18703 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: verbatim
18708 #: ../fish/guestfish.pod:17
18709 #, no-wrap
18710 msgid ""
18711 " guestfish -d libvirt-domain\n"
18712 "\n"
18713 msgstr ""
18714
18715 #. type: verbatim
18716 #: ../fish/guestfish.pod:19
18717 #, no-wrap
18718 msgid ""
18719 " guestfish [--ro|--rw] -a disk.img -i\n"
18720 "\n"
18721 msgstr ""
18722
18723 #. type: verbatim
18724 #: ../fish/guestfish.pod:21
18725 #, no-wrap
18726 msgid ""
18727 " guestfish -d libvirt-domain -i\n"
18728 "\n"
18729 msgstr ""
18730
18731 #. type: =head1
18732 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
18733 msgid "WARNING"
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/guestfish.pod:25
18738 msgid ""
18739 "Using guestfish in read/write mode on live virtual machines can be "
18740 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18741 "option to use guestfish safely if the disk image or virtual machine might be "
18742 "live."
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/guestfish.pod:32
18747 msgid ""
18748 "Guestfish is a shell and command-line tool for examining and modifying "
18749 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18750 "functionality of the guestfs API, see L<guestfs(3)>."
18751 msgstr ""
18752
18753 #. type: textblock
18754 #: ../fish/guestfish.pod:36
18755 msgid ""
18756 "Guestfish gives you structured access to the libguestfs API, from shell "
18757 "scripts or the command line or interactively.  If you want to rescue a "
18758 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18759 "command."
18760 msgstr ""
18761
18762 #. type: =head1
18763 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:947 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:63 ../tools/virt-tar.pl:50
18764 msgid "EXAMPLES"
18765 msgstr ""
18766
18767 #. type: =head2
18768 #: ../fish/guestfish.pod:43
18769 msgid "As an interactive shell"
18770 msgstr ""
18771
18772 #. type: verbatim
18773 #: ../fish/guestfish.pod:45
18774 #, no-wrap
18775 msgid ""
18776 " $ guestfish\n"
18777 " \n"
18778 msgstr ""
18779
18780 #. type: verbatim
18781 #: ../fish/guestfish.pod:47
18782 #, no-wrap
18783 msgid ""
18784 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18785 " editing virtual machine filesystems.\n"
18786 " \n"
18787 msgstr ""
18788
18789 #. type: verbatim
18790 #: ../fish/guestfish.pod:50
18791 #, no-wrap
18792 msgid ""
18793 " Type: 'help' for a list of commands\n"
18794 "       'man' to read the manual\n"
18795 "       'quit' to quit the shell\n"
18796 " \n"
18797 msgstr ""
18798
18799 #. type: verbatim
18800 #: ../fish/guestfish.pod:54
18801 #, no-wrap
18802 msgid ""
18803 " ><fs> add-ro disk.img\n"
18804 " ><fs> run\n"
18805 " ><fs> list-filesystems\n"
18806 " /dev/sda1: ext4\n"
18807 " /dev/vg_guest/lv_root: ext4\n"
18808 " /dev/vg_guest/lv_swap: swap\n"
18809 " ><fs> mount /dev/vg_guest/lv_root /\n"
18810 " ><fs> cat /etc/fstab\n"
18811 " # /etc/fstab\n"
18812 " # Created by anaconda\n"
18813 " [...]\n"
18814 " ><fs> exit\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: =head2
18819 #: ../fish/guestfish.pod:67
18820 msgid "From shell scripts"
18821 msgstr ""
18822
18823 #. type: textblock
18824 #: ../fish/guestfish.pod:69
18825 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18826 msgstr ""
18827
18828 #. type: verbatim
18829 #: ../fish/guestfish.pod:71
18830 #, no-wrap
18831 msgid ""
18832 " guestfish <<_EOF_\n"
18833 " add disk.img\n"
18834 " run\n"
18835 " mount /dev/vg_guest/lv_root /\n"
18836 " write /etc/motd \"Welcome, new users\"\n"
18837 " _EOF_\n"
18838 "\n"
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/guestfish.pod:78
18843 msgid "List the LVM logical volumes in a disk image:"
18844 msgstr ""
18845
18846 #. type: verbatim
18847 #: ../fish/guestfish.pod:80
18848 #, no-wrap
18849 msgid ""
18850 " guestfish -a disk.img --ro <<_EOF_\n"
18851 " run\n"
18852 " lvs\n"
18853 " _EOF_\n"
18854 "\n"
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fish/guestfish.pod:85
18859 msgid "List all the filesystems in a disk image:"
18860 msgstr ""
18861
18862 #. type: verbatim
18863 #: ../fish/guestfish.pod:87
18864 #, no-wrap
18865 msgid ""
18866 " guestfish -a disk.img --ro <<_EOF_\n"
18867 " run\n"
18868 " list-filesystems\n"
18869 " _EOF_\n"
18870 "\n"
18871 msgstr ""
18872
18873 #. type: =head2
18874 #: ../fish/guestfish.pod:92
18875 msgid "On one command line"
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../fish/guestfish.pod:94
18880 msgid "Update C</etc/resolv.conf> in a guest:"
18881 msgstr ""
18882
18883 #. type: verbatim
18884 #: ../fish/guestfish.pod:96
18885 #, no-wrap
18886 msgid ""
18887 " guestfish \\\n"
18888 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18889 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18890 "\n"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:100
18895 msgid "Edit C</boot/grub/grub.conf> interactively:"
18896 msgstr ""
18897
18898 #. type: verbatim
18899 #: ../fish/guestfish.pod:102
18900 #, no-wrap
18901 msgid ""
18902 " guestfish --rw --add disk.img \\\n"
18903 "   --mount /dev/vg_guest/lv_root \\\n"
18904 "   --mount /dev/sda1:/boot \\\n"
18905 "   edit /boot/grub/grub.conf\n"
18906 "\n"
18907 msgstr ""
18908
18909 #. type: =head2
18910 #: ../fish/guestfish.pod:107
18911 msgid "Mount disks automatically"
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fish/guestfish.pod:109
18916 msgid ""
18917 "Use the I<-i> option to automatically mount the disks from a virtual "
18918 "machine:"
18919 msgstr ""
18920
18921 #. type: verbatim
18922 #: ../fish/guestfish.pod:112
18923 #, no-wrap
18924 msgid ""
18925 " guestfish --ro -a disk.img -i cat /etc/group\n"
18926 "\n"
18927 msgstr ""
18928
18929 #. type: verbatim
18930 #: ../fish/guestfish.pod:114
18931 #, no-wrap
18932 msgid ""
18933 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18934 "\n"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:116
18939 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18940 msgstr ""
18941
18942 #. type: verbatim
18943 #: ../fish/guestfish.pod:118
18944 #, no-wrap
18945 msgid ""
18946 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18947 "\n"
18948 msgstr ""
18949
18950 #. type: =head2
18951 #: ../fish/guestfish.pod:120
18952 msgid "As a script interpreter"
18953 msgstr ""
18954
18955 #. type: textblock
18956 #: ../fish/guestfish.pod:122
18957 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18958 msgstr ""
18959
18960 #. type: verbatim
18961 #: ../fish/guestfish.pod:124
18962 #, no-wrap
18963 msgid ""
18964 " #!/usr/bin/guestfish -f\n"
18965 " sparse test1.img 100M\n"
18966 " run\n"
18967 " part-disk /dev/sda mbr\n"
18968 " mkfs ext2 /dev/sda1\n"
18969 "\n"
18970 msgstr ""
18971
18972 #. type: =head2
18973 #: ../fish/guestfish.pod:130
18974 msgid "Start with a prepared disk"
18975 msgstr ""
18976
18977 #. type: textblock
18978 #: ../fish/guestfish.pod:132
18979 msgid ""
18980 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18981 "single ext2-formatted partition:"
18982 msgstr ""
18983
18984 #. type: verbatim
18985 #: ../fish/guestfish.pod:135
18986 #, no-wrap
18987 msgid ""
18988 " guestfish -N fs\n"
18989 "\n"
18990 msgstr ""
18991
18992 #. type: textblock
18993 #: ../fish/guestfish.pod:137
18994 msgid "To list what is available do:"
18995 msgstr ""
18996
18997 #. type: verbatim
18998 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:938
18999 #, no-wrap
19000 msgid ""
19001 " guestfish -N help | less\n"
19002 "\n"
19003 msgstr ""
19004
19005 #. type: =head2
19006 #: ../fish/guestfish.pod:141
19007 msgid "Remote control"
19008 msgstr ""
19009
19010 #. type: verbatim
19011 #: ../fish/guestfish.pod:143
19012 #, no-wrap
19013 msgid ""
19014 " eval \"`guestfish --listen`\"\n"
19015 " guestfish --remote add-ro disk.img\n"
19016 " guestfish --remote run\n"
19017 " guestfish --remote lvs\n"
19018 "\n"
19019 msgstr ""
19020
19021 #. type: =head1
19022 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37 ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:81 ../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
19023 msgid "OPTIONS"
19024 msgstr ""
19025
19026 #. type: =item
19027 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131 ../tools/virt-edit.pl:89 ../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
19028 msgid "B<--help>"
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:154
19033 msgid "Displays general help on options."
19034 msgstr ""
19035
19036 #. type: =item
19037 #: ../fish/guestfish.pod:156
19038 msgid "B<-h>"
19039 msgstr ""
19040
19041 #. type: =item
19042 #: ../fish/guestfish.pod:158
19043 msgid "B<--cmd-help>"
19044 msgstr ""
19045
19046 #. type: textblock
19047 #: ../fish/guestfish.pod:160
19048 msgid "Lists all available guestfish commands."
19049 msgstr ""
19050
19051 #. type: =item
19052 #: ../fish/guestfish.pod:162
19053 msgid "B<-h cmd>"
19054 msgstr ""
19055
19056 #. type: =item
19057 #: ../fish/guestfish.pod:164
19058 msgid "B<--cmd-help cmd>"
19059 msgstr ""
19060
19061 #. type: textblock
19062 #: ../fish/guestfish.pod:166
19063 msgid "Displays detailed help on a single command C<cmd>."
19064 msgstr ""
19065
19066 #. type: =item
19067 #: ../fish/guestfish.pod:168
19068 msgid "B<-a image>"
19069 msgstr ""
19070
19071 #. type: =item
19072 #: ../fish/guestfish.pod:170
19073 msgid "B<--add image>"
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish.pod:172
19078 msgid "Add a block device or virtual machine image to the shell."
19079 msgstr ""
19080
19081 #. type: textblock
19082 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
19083 msgid ""
19084 "The format of the disk image is auto-detected.  To override this and force a "
19085 "particular format use the I<--format=..> option."
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:177
19090 msgid ""
19091 "Using this flag is mostly equivalent to using the C<add> command, with "
19092 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19093 "the I<--format=...> flag was given."
19094 msgstr ""
19095
19096 #. type: =item
19097 #: ../fish/guestfish.pod:181
19098 msgid "B<-c URI>"
19099 msgstr ""
19100
19101 #. type: =item
19102 #: ../fish/guestfish.pod:183
19103 msgid "B<--connect URI>"
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
19108 msgid ""
19109 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19110 "URI to use.  The default is to use the default libvirt connection."
19111 msgstr ""
19112
19113 #. type: =item
19114 #: ../fish/guestfish.pod:189
19115 msgid "B<--csh>"
19116 msgstr ""
19117
19118 #. type: textblock
19119 #: ../fish/guestfish.pod:191
19120 msgid ""
19121 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19122 "section L</REMOTE CONTROL AND CSH> below."
19123 msgstr ""
19124
19125 #. type: =item
19126 #: ../fish/guestfish.pod:194
19127 msgid "B<-d libvirt-domain>"
19128 msgstr ""
19129
19130 #. type: =item
19131 #: ../fish/guestfish.pod:196
19132 msgid "B<--domain libvirt-domain>"
19133 msgstr ""
19134
19135 #. type: textblock
19136 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
19137 msgid ""
19138 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19139 "used, then any libvirt domain can be used.  However in write mode, only "
19140 "libvirt domains which are shut down can be named here."
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:202
19145 msgid ""
19146 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19147 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19148 "if the I<--format:...> flag was given."
19149 msgstr ""
19150
19151 #. type: =item
19152 #: ../fish/guestfish.pod:206
19153 msgid "B<-D>"
19154 msgstr ""
19155
19156 #. type: =item
19157 #: ../fish/guestfish.pod:208
19158 msgid "B<--no-dest-paths>"
19159 msgstr ""
19160
19161 #. type: textblock
19162 #: ../fish/guestfish.pod:210
19163 msgid ""
19164 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19165 "to hit the tab key to complete paths on the guest filesystem, but this "
19166 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19167 "allow this feature to be disabled."
19168 msgstr ""
19169
19170 #. type: =item
19171 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
19172 msgid "B<--echo-keys>"
19173 msgstr ""
19174
19175 #. type: textblock
19176 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
19177 msgid ""
19178 "When prompting for keys and passphrases, guestfish normally turns echoing "
19179 "off so you cannot see what you are typing.  If you are not worried about "
19180 "Tempest attacks and there is no one else in the room you can specify this "
19181 "flag to see what you are typing."
19182 msgstr ""
19183
19184 #. type: =item
19185 #: ../fish/guestfish.pod:222
19186 msgid "B<-f file>"
19187 msgstr ""
19188
19189 #. type: =item
19190 #: ../fish/guestfish.pod:224
19191 msgid "B<--file file>"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:226
19196 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19197 msgstr ""
19198
19199 #. type: verbatim
19200 #: ../fish/guestfish.pod:229
19201 #, no-wrap
19202 msgid ""
19203 " #!/usr/bin/guestfish -f\n"
19204 "\n"
19205 msgstr ""
19206
19207 #. type: =item
19208 #: ../fish/guestfish.pod:231
19209 msgid "B<--format=raw|qcow2|..>"
19210 msgstr ""
19211
19212 #. type: =item
19213 #: ../fish/guestfish.pod:233
19214 msgid "B<--format>"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
19219 msgid ""
19220 "The default for the I<-a> option is to auto-detect the format of the disk "
19221 "image.  Using this forces the disk format for I<-a> options which follow on "
19222 "the command line.  Using I<--format> with no argument switches back to "
19223 "auto-detection for subsequent I<-a> options."
19224 msgstr ""
19225
19226 #. type: verbatim
19227 #: ../fish/guestfish.pod:242
19228 #, no-wrap
19229 msgid ""
19230 " guestfish --format=raw -a disk.img\n"
19231 "\n"
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish.pod:244
19236 msgid "forces raw format (no auto-detection) for C<disk.img>."
19237 msgstr ""
19238
19239 #. type: verbatim
19240 #: ../fish/guestfish.pod:246
19241 #, no-wrap
19242 msgid ""
19243 " guestfish --format=raw -a disk.img --format -a another.img\n"
19244 "\n"
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:248
19249 msgid ""
19250 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
19251 "auto-detection for C<another.img>."
19252 msgstr ""
19253
19254 #. type: textblock
19255 #: ../fish/guestfish.pod:251
19256 msgid ""
19257 "If you have untrusted raw-format guest disk images, you should use this "
19258 "option to specify the disk format.  This avoids a possible security problem "
19259 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19260 msgstr ""
19261
19262 #. type: =item
19263 #: ../fish/guestfish.pod:256
19264 msgid "B<-i>"
19265 msgstr ""
19266
19267 #. type: =item
19268 #: ../fish/guestfish.pod:258
19269 msgid "B<--inspector>"
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
19274 msgid ""
19275 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19276 "system and mount filesystems as they would be mounted on the real virtual "
19277 "machine."
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:264
19282 msgid "Typical usage is either:"
19283 msgstr ""
19284
19285 #. type: verbatim
19286 #: ../fish/guestfish.pod:266
19287 #, no-wrap
19288 msgid ""
19289 " guestfish -d myguest -i\n"
19290 "\n"
19291 msgstr ""
19292
19293 #. type: textblock
19294 #: ../fish/guestfish.pod:268
19295 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19296 msgstr ""
19297
19298 #. type: verbatim
19299 #: ../fish/guestfish.pod:270
19300 #, no-wrap
19301 msgid ""
19302 " guestfish --ro -d myguest -i\n"
19303 "\n"
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fish/guestfish.pod:272
19308 msgid "(for active domains, readonly), or specify the block device directly:"
19309 msgstr ""
19310
19311 #. type: verbatim
19312 #: ../fish/guestfish.pod:274
19313 #, no-wrap
19314 msgid ""
19315 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19316 "\n"
19317 msgstr ""
19318
19319 #. type: textblock
19320 #: ../fish/guestfish.pod:276
19321 msgid ""
19322 "Note that the command line syntax changed slightly over older versions of "
19323 "guestfish.  You can still use the old syntax:"
19324 msgstr ""
19325
19326 #. type: verbatim
19327 #: ../fish/guestfish.pod:279
19328 #, no-wrap
19329 msgid ""
19330 " guestfish [--ro] -i disk.img\n"
19331 "\n"
19332 msgstr ""
19333
19334 #. type: verbatim
19335 #: ../fish/guestfish.pod:281
19336 #, no-wrap
19337 msgid ""
19338 " guestfish [--ro] -i libvirt-domain\n"
19339 "\n"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:283
19344 msgid ""
19345 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19346 "then using other commands to mount the filesystems that were found."
19347 msgstr ""
19348
19349 #. type: =item
19350 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
19351 msgid "B<--keys-from-stdin>"
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
19356 msgid ""
19357 "Read key or passphrase parameters from stdin.  The default is to try to read "
19358 "passphrases from the user by opening C</dev/tty>."
19359 msgstr ""
19360
19361 #. type: =item
19362 #: ../fish/guestfish.pod:292
19363 msgid "B<--listen>"
19364 msgstr ""
19365
19366 #. type: textblock
19367 #: ../fish/guestfish.pod:294
19368 msgid ""
19369 "Fork into the background and listen for remote commands.  See section "
19370 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19371 msgstr ""
19372
19373 #. type: =item
19374 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
19375 msgid "B<--live>"
19376 msgstr ""
19377
19378 #. type: textblock
19379 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
19380 msgid ""
19381 "Connect to a live virtual machine.  (Experimental, see "
19382 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19383 msgstr ""
19384
19385 #. type: =item
19386 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
19387 msgid "B<-m dev[:mountpoint[:options]]>"
19388 msgstr ""
19389
19390 #. type: =item
19391 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
19392 msgid "B<--mount dev[:mountpoint[:options]]>"
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fish/guestfish.pod:306
19397 msgid "Mount the named partition or logical volume on the given mountpoint."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:308
19402 msgid "If the mountpoint is omitted, it defaults to C</>."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:310
19407 msgid "You have to mount something on C</> before most commands will work."
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../fish/guestfish.pod:312
19412 msgid ""
19413 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19414 "launched."
19415 msgstr ""
19416
19417 #. type: textblock
19418 #: ../fish/guestfish.pod:315
19419 msgid ""
19420 "If you don't know what filesystems a disk image contains, you can either run "
19421 "guestfish without this option, then list the partitions, filesystems and LVs "
19422 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19423 "commands), or you can use the L<virt-filesystems(1)> program."
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
19428 msgid ""
19429 "The third (and rarely used) part of the mount parameter is the list of mount "
19430 "options used to mount the underlying filesystem.  If this is not given, then "
19431 "the mount options are either the empty string or C<ro> (the latter if the "
19432 "I<--ro> flag is used).  By specifying the mount options, you override this "
19433 "default choice.  Probably the only time you would use this is to enable ACLs "
19434 "and/or extended attributes if the filesystem can support them:"
19435 msgstr ""
19436
19437 #. type: verbatim
19438 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
19439 #, no-wrap
19440 msgid ""
19441 " -m /dev/sda1:/:acl,user_xattr\n"
19442 "\n"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:331
19447 msgid "Using this flag is equivalent to using the C<mount-options> command."
19448 msgstr ""
19449
19450 #. type: =item
19451 #: ../fish/guestfish.pod:333
19452 msgid "B<-n>"
19453 msgstr ""
19454
19455 #. type: =item
19456 #: ../fish/guestfish.pod:335
19457 msgid "B<--no-sync>"
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:337
19462 msgid ""
19463 "Disable autosync.  This is enabled by default.  See the discussion of "
19464 "autosync in the L<guestfs(3)> manpage."
19465 msgstr ""
19466
19467 #. type: =item
19468 #: ../fish/guestfish.pod:340
19469 msgid "B<-N type>"
19470 msgstr ""
19471
19472 #. type: =item
19473 #: ../fish/guestfish.pod:342
19474 msgid "B<--new type>"
19475 msgstr ""
19476
19477 #. type: =item
19478 #: ../fish/guestfish.pod:344
19479 msgid "B<-N help>"
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:346
19484 msgid ""
19485 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19486 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19487 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19488 "IMAGES> below."
19489 msgstr ""
19490
19491 #. type: =item
19492 #: ../fish/guestfish.pod:351
19493 msgid "B<--progress-bars>"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:353
19498 msgid "Enable progress bars, even when guestfish is used non-interactively."
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:355
19503 msgid ""
19504 "Progress bars are enabled by default when guestfish is used as an "
19505 "interactive shell."
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:358
19510 msgid "B<--no-progress-bars>"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:360
19515 msgid "Disable progress bars."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:362
19520 msgid "B<--remote[=pid]>"
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:364
19525 msgid ""
19526 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19527 "CONTROL GUESTFISH OVER A SOCKET> below."
19528 msgstr ""
19529
19530 #. type: =item
19531 #: ../fish/guestfish.pod:367
19532 msgid "B<-r>"
19533 msgstr ""
19534
19535 #. type: =item
19536 #: ../fish/guestfish.pod:369
19537 msgid "B<--ro>"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:371
19542 msgid ""
19543 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19544 "mounts are done read-only."
19545 msgstr ""
19546
19547 #. type: textblock
19548 #: ../fish/guestfish.pod:374
19549 msgid ""
19550 "The option must always be used if the disk image or virtual machine might be "
19551 "running, and is generally recommended in cases where you don't need write "
19552 "access to the disk."
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:378
19557 msgid ""
19558 "Note that prepared disk images created with I<-N> are not affected by this "
19559 "option.  Also commands like C<add> are not affected - you have to specify "
19560 "the C<readonly:true> option explicitly if you need it."
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../fish/guestfish.pod:382
19565 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19566 msgstr ""
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
19570 msgid "B<--selinux>"
19571 msgstr ""
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:386
19575 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19576 msgstr ""
19577
19578 #. type: =item
19579 #: ../fish/guestfish.pod:388
19580 msgid "B<-v>"
19581 msgstr ""
19582
19583 #. type: =item
19584 #: ../fish/guestfish.pod:390
19585 msgid "B<--verbose>"
19586 msgstr ""
19587
19588 #. type: textblock
19589 #: ../fish/guestfish.pod:392
19590 msgid ""
19591 "Enable very verbose messages.  This is particularly useful if you find a "
19592 "bug."
19593 msgstr ""
19594
19595 #. type: =item
19596 #: ../fish/guestfish.pod:395
19597 msgid "B<-V>"
19598 msgstr ""
19599
19600 #. type: =item
19601 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:97 ../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
19602 msgid "B<--version>"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:399
19607 msgid "Display the guestfish / libguestfs version number and exit."
19608 msgstr ""
19609
19610 #. type: =item
19611 #: ../fish/guestfish.pod:401
19612 msgid "B<-w>"
19613 msgstr ""
19614
19615 #. type: =item
19616 #: ../fish/guestfish.pod:403
19617 msgid "B<--rw>"
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
19622 msgid ""
19623 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19624 "mounts are done read-write."
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/guestfish.pod:408
19629 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19630 msgstr ""
19631
19632 #. type: =item
19633 #: ../fish/guestfish.pod:410
19634 msgid "B<-x>"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../fish/guestfish.pod:412
19639 msgid "Echo each command before executing it."
19640 msgstr ""
19641
19642 #. type: =head1
19643 #: ../fish/guestfish.pod:416
19644 msgid "COMMANDS ON COMMAND LINE"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:418
19649 msgid "Any additional (non-option) arguments are treated as commands to execute."
19650 msgstr ""
19651
19652 #. type: textblock
19653 #: ../fish/guestfish.pod:421
19654 msgid ""
19655 "Commands to execute should be separated by a colon (C<:>), where the colon "
19656 "is a separate parameter.  Thus:"
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:424
19661 #, no-wrap
19662 msgid ""
19663 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:426
19669 msgid ""
19670 "If there are no additional arguments, then we enter a shell, either an "
19671 "interactive shell with a prompt (if the input is a terminal) or a "
19672 "non-interactive shell."
19673 msgstr ""
19674
19675 #. type: textblock
19676 #: ../fish/guestfish.pod:430
19677 msgid ""
19678 "In either command line mode or non-interactive shell, the first command that "
19679 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19680 "prompt) if a command fails, you can continue to enter commands."
19681 msgstr ""
19682
19683 #. type: =head1
19684 #: ../fish/guestfish.pod:435
19685 msgid "USING launch (OR run)"
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:437
19690 msgid ""
19691 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19692 "then launch it, then mount any disks you need, and finally issue "
19693 "actions/commands.  So the general order of the day is:"
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../fish/guestfish.pod:445
19698 msgid "add or -a/--add"
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:449
19703 msgid "launch (aka run)"
19704 msgstr ""
19705
19706 #. type: textblock
19707 #: ../fish/guestfish.pod:453
19708 msgid "mount or -m/--mount"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../fish/guestfish.pod:457
19713 msgid "any other commands"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:461
19718 msgid ""
19719 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19720 "guest before mounting or performing any other commands."
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../fish/guestfish.pod:464
19725 msgid ""
19726 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19727 "I<--new> options were given then C<run> is done automatically, simply "
19728 "because guestfish can't perform the action you asked for without doing this."
19729 msgstr ""
19730
19731 #. type: =head1
19732 #: ../fish/guestfish.pod:469
19733 msgid "OPENING DISKS FOR READ AND WRITE"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:471
19738 msgid ""
19739 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19740 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19741 "I<-i> and I<-m> open disk images read-only or for writing."
19742 msgstr ""
19743
19744 #. type: textblock
19745 #: ../fish/guestfish.pod:476
19746 msgid ""
19747 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19748 "opening disk images supplied on the command line for write.  To open a disk "
19749 "image read-only you have to do I<-a image --ro>."
19750 msgstr ""
19751
19752 #. type: textblock
19753 #: ../fish/guestfish.pod:480
19754 msgid ""
19755 "This matters: If you accidentally open a live VM disk image writable then "
19756 "you will cause irreversible disk corruption."
19757 msgstr ""
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:483
19761 msgid ""
19762 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
19763 "images will be opened read-only.  You will have to either specify "
19764 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19765 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19766 "access for disk images specified by those other command line options."
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:490
19771 msgid ""
19772 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19773 "which does nothing (it is already the default).  However it is highly "
19774 "recommended that you use this option to indicate that you need write access, "
19775 "and prepare your scripts for the day when this option will be required for "
19776 "write access."
19777 msgstr ""
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:496
19781 msgid ""
19782 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19783 "other libguestfs program apart from guestfish and guestmount."
19784 msgstr ""
19785
19786 #. type: =head1
19787 #: ../fish/guestfish.pod:499
19788 msgid "QUOTING"
19789 msgstr ""
19790
19791 #. type: textblock
19792 #: ../fish/guestfish.pod:501
19793 msgid ""
19794 "You can quote ordinary parameters using either single or double quotes.  For "
19795 "example:"
19796 msgstr ""
19797
19798 #. type: verbatim
19799 #: ../fish/guestfish.pod:504
19800 #, no-wrap
19801 msgid ""
19802 " add \"file with a space.img\"\n"
19803 "\n"
19804 msgstr ""
19805
19806 #. type: verbatim
19807 #: ../fish/guestfish.pod:506
19808 #, no-wrap
19809 msgid ""
19810 " rm '/file name'\n"
19811 "\n"
19812 msgstr ""
19813
19814 #. type: verbatim
19815 #: ../fish/guestfish.pod:508
19816 #, no-wrap
19817 msgid ""
19818 " rm '/\"'\n"
19819 "\n"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../fish/guestfish.pod:510
19824 msgid ""
19825 "A few commands require a list of strings to be passed.  For these, use a "
19826 "whitespace-separated list, enclosed in quotes.  Strings containing "
19827 "whitespace to be passed through must be enclosed in single quotes.  A "
19828 "literal single quote must be escaped with a backslash."
19829 msgstr ""
19830
19831 #. type: verbatim
19832 #: ../fish/guestfish.pod:515
19833 #, no-wrap
19834 msgid ""
19835 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19836 " command \"/bin/echo 'foo      bar'\"\n"
19837 " command \"/bin/echo \\'foo\\'\"\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: =head1
19842 #: ../fish/guestfish.pod:519
19843 msgid "OPTIONAL ARGUMENTS"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:521
19848 msgid ""
19849 "Some commands take optional arguments.  These arguments appear in this "
19850 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19851 msgstr ""
19852
19853 #. type: verbatim
19854 #: ../fish/guestfish.pod:525
19855 #, no-wrap
19856 msgid ""
19857 " add-drive-opts filename\n"
19858 "\n"
19859 msgstr ""
19860
19861 #. type: verbatim
19862 #: ../fish/guestfish.pod:527
19863 #, no-wrap
19864 msgid ""
19865 " add-drive-opts filename readonly:true\n"
19866 "\n"
19867 msgstr ""
19868
19869 #. type: verbatim
19870 #: ../fish/guestfish.pod:529
19871 #, no-wrap
19872 msgid ""
19873 " add-drive-opts filename format:qcow2 readonly:false\n"
19874 "\n"
19875 msgstr ""
19876
19877 #. type: textblock
19878 #: ../fish/guestfish.pod:531
19879 msgid ""
19880 "Each optional argument can appear at most once.  All optional arguments must "
19881 "appear after the required ones."
19882 msgstr ""
19883
19884 #. type: =head1
19885 #: ../fish/guestfish.pod:534
19886 msgid "NUMBERS"
19887 msgstr ""
19888
19889 #. type: textblock
19890 #: ../fish/guestfish.pod:536
19891 msgid "This section applies to all commands which can take integers as parameters."
19892 msgstr ""
19893
19894 #. type: =head2
19895 #: ../fish/guestfish.pod:539
19896 msgid "SIZE SUFFIX"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:541
19901 msgid ""
19902 "When the command takes a parameter measured in bytes, you can use one of the "
19903 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19904 msgstr ""
19905
19906 #. type: =item
19907 #: ../fish/guestfish.pod:547
19908 msgid "B<k> or B<K> or B<KiB>"
19909 msgstr ""
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:549
19913 msgid "The size in kilobytes (multiplied by 1024)."
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:551
19918 msgid "B<KB>"
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:553
19923 msgid "The size in SI 1000 byte units."
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:555
19928 msgid "B<M> or B<MiB>"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:557
19933 msgid "The size in megabytes (multiplied by 1048576)."
19934 msgstr ""
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:559
19938 msgid "B<MB>"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:561
19943 msgid "The size in SI 1000000 byte units."
19944 msgstr ""
19945
19946 #. type: =item
19947 #: ../fish/guestfish.pod:563
19948 msgid "B<G> or B<GiB>"
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:565
19953 msgid "The size in gigabytes (multiplied by 2**30)."
19954 msgstr ""
19955
19956 #. type: =item
19957 #: ../fish/guestfish.pod:567
19958 msgid "B<GB>"
19959 msgstr ""
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:569
19963 msgid "The size in SI 10**9 byte units."
19964 msgstr ""
19965
19966 #. type: =item
19967 #: ../fish/guestfish.pod:571
19968 msgid "B<T> or B<TiB>"
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:573
19973 msgid "The size in terabytes (multiplied by 2**40)."
19974 msgstr ""
19975
19976 #. type: =item
19977 #: ../fish/guestfish.pod:575
19978 msgid "B<TB>"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:577
19983 msgid "The size in SI 10**12 byte units."
19984 msgstr ""
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:579
19988 msgid "B<P> or B<PiB>"
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:581
19993 msgid "The size in petabytes (multiplied by 2**50)."
19994 msgstr ""
19995
19996 #. type: =item
19997 #: ../fish/guestfish.pod:583
19998 msgid "B<PB>"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:585
20003 msgid "The size in SI 10**15 byte units."
20004 msgstr ""
20005
20006 #. type: =item
20007 #: ../fish/guestfish.pod:587
20008 msgid "B<E> or B<EiB>"
20009 msgstr ""
20010
20011 #. type: textblock
20012 #: ../fish/guestfish.pod:589
20013 msgid "The size in exabytes (multiplied by 2**60)."
20014 msgstr ""
20015
20016 #. type: =item
20017 #: ../fish/guestfish.pod:591
20018 msgid "B<EB>"
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:593
20023 msgid "The size in SI 10**18 byte units."
20024 msgstr ""
20025
20026 #. type: =item
20027 #: ../fish/guestfish.pod:595
20028 msgid "B<Z> or B<ZiB>"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:597
20033 msgid "The size in zettabytes (multiplied by 2**70)."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../fish/guestfish.pod:599
20038 msgid "B<ZB>"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:601
20043 msgid "The size in SI 10**21 byte units."
20044 msgstr ""
20045
20046 #. type: =item
20047 #: ../fish/guestfish.pod:603
20048 msgid "B<Y> or B<YiB>"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:605
20053 msgid "The size in yottabytes (multiplied by 2**80)."
20054 msgstr ""
20055
20056 #. type: =item
20057 #: ../fish/guestfish.pod:607
20058 msgid "B<YB>"
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../fish/guestfish.pod:609
20063 msgid "The size in SI 10**24 byte units."
20064 msgstr ""
20065
20066 #. type: verbatim
20067 #: ../fish/guestfish.pod:615
20068 #, no-wrap
20069 msgid ""
20070 " truncate-size /file 1G\n"
20071 "\n"
20072 msgstr ""
20073
20074 #. type: textblock
20075 #: ../fish/guestfish.pod:617
20076 msgid "would truncate the file to 1 gigabyte."
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../fish/guestfish.pod:619
20081 msgid ""
20082 "Be careful because a few commands take sizes in kilobytes or megabytes "
20083 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
20084 "Adding a suffix will probably not do what you expect."
20085 msgstr ""
20086
20087 #. type: =head2
20088 #: ../fish/guestfish.pod:623
20089 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20090 msgstr ""
20091
20092 #. type: textblock
20093 #: ../fish/guestfish.pod:625
20094 msgid ""
20095 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20096 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20097 msgstr ""
20098
20099 #. type: verbatim
20100 #: ../fish/guestfish.pod:628
20101 #, no-wrap
20102 msgid ""
20103 " 1234      decimal number 1234\n"
20104 " 02322     octal number, equivalent to decimal 1234\n"
20105 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20106 "\n"
20107 msgstr ""
20108
20109 #. type: textblock
20110 #: ../fish/guestfish.pod:632
20111 msgid ""
20112 "When using the C<chmod> command, you almost always want to specify an octal "
20113 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20114 "L<chmod(1)> program):"
20115 msgstr ""
20116
20117 #. type: verbatim
20118 #: ../fish/guestfish.pod:636
20119 #, no-wrap
20120 msgid ""
20121 " chmod 0777 /public  # OK\n"
20122 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20123 "\n"
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/guestfish.pod:639
20128 msgid ""
20129 "Commands that return numbers usually print them in decimal, but some "
20130 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20131 "octal, preceeded by C<0>)."
20132 msgstr ""
20133
20134 #. type: =head1
20135 #: ../fish/guestfish.pod:643
20136 msgid "WILDCARDS AND GLOBBING"
20137 msgstr ""
20138
20139 #. type: textblock
20140 #: ../fish/guestfish.pod:645
20141 msgid ""
20142 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20143 "(globbing) by default.  So for example the following will not do what you "
20144 "expect:"
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../fish/guestfish.pod:649
20149 #, no-wrap
20150 msgid ""
20151 " rm-rf /home/*\n"
20152 "\n"
20153 msgstr ""
20154
20155 #. type: textblock
20156 #: ../fish/guestfish.pod:651
20157 msgid ""
20158 "Assuming you don't have a directory called literally C</home/*> then the "
20159 "above command will return an error."
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:654
20164 msgid "To perform wildcard expansion, use the C<glob> command."
20165 msgstr ""
20166
20167 #. type: verbatim
20168 #: ../fish/guestfish.pod:656
20169 #, no-wrap
20170 msgid ""
20171 " glob rm-rf /home/*\n"
20172 "\n"
20173 msgstr ""
20174
20175 #. type: textblock
20176 #: ../fish/guestfish.pod:658
20177 msgid ""
20178 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20179 "many times), equivalent to:"
20180 msgstr ""
20181
20182 #. type: verbatim
20183 #: ../fish/guestfish.pod:661
20184 #, no-wrap
20185 msgid ""
20186 " rm-rf /home/jim\n"
20187 " rm-rf /home/joe\n"
20188 " rm-rf /home/mary\n"
20189 "\n"
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fish/guestfish.pod:665
20194 msgid "C<glob> only works on simple guest paths and not on device names."
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:667
20199 msgid ""
20200 "If you have several parameters, each containing a wildcard, then glob will "
20201 "perform a Cartesian product."
20202 msgstr ""
20203
20204 #. type: =head1
20205 #: ../fish/guestfish.pod:670
20206 msgid "COMMENTS"
20207 msgstr ""
20208
20209 #. type: textblock
20210 #: ../fish/guestfish.pod:672
20211 msgid ""
20212 "Any line which starts with a I<#> character is treated as a comment and "
20213 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20214 "a command.  For example:"
20215 msgstr ""
20216
20217 #. type: verbatim
20218 #: ../fish/guestfish.pod:676
20219 #, no-wrap
20220 msgid ""
20221 " # this is a comment\n"
20222 "         # this is a comment\n"
20223 " foo # NOT a comment\n"
20224 "\n"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:680
20229 msgid "Blank lines are also ignored."
20230 msgstr ""
20231
20232 #. type: =head1
20233 #: ../fish/guestfish.pod:682
20234 msgid "RUNNING COMMANDS LOCALLY"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:684
20239 msgid ""
20240 "Any line which starts with a I<!> character is treated as a command sent to "
20241 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20242 msgstr ""
20243
20244 #. type: verbatim
20245 #: ../fish/guestfish.pod:688
20246 #, no-wrap
20247 msgid ""
20248 " !mkdir local\n"
20249 " tgz-out /remote local/remote-data.tar.gz\n"
20250 "\n"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../fish/guestfish.pod:691
20255 msgid ""
20256 "will create a directory C<local> on the host, and then export the contents "
20257 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20258 "(See C<tgz-out>)."
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/guestfish.pod:695
20263 msgid ""
20264 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20265 "effect, due to the way that subprocesses work in Unix."
20266 msgstr ""
20267
20268 #. type: =head2
20269 #: ../fish/guestfish.pod:698
20270 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:700
20275 msgid ""
20276 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20277 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20278 "and executed as guestfish commands."
20279 msgstr ""
20280
20281 #. type: textblock
20282 #: ../fish/guestfish.pod:704
20283 msgid ""
20284 "Thus you can use shell script to construct arbitrary guestfish commands "
20285 "which are then parsed by guestfish."
20286 msgstr ""
20287
20288 #. type: textblock
20289 #: ../fish/guestfish.pod:707
20290 msgid ""
20291 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20292 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20293 "if we use a shell script to create the guestfish commands for us:"
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../fish/guestfish.pod:712
20298 #, no-wrap
20299 msgid ""
20300 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20301 "\n"
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fish/guestfish.pod:714
20306 msgid "or with names like C</foo.001>:"
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../fish/guestfish.pod:716
20311 #, no-wrap
20312 msgid ""
20313 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20314 "\n"
20315 msgstr ""
20316
20317 #. type: textblock
20318 #: ../fish/guestfish.pod:718
20319 msgid ""
20320 "When using guestfish interactively it can be helpful to just run the shell "
20321 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20322 "ordinary I<!> local command), see what guestfish commands it would run, and "
20323 "when you are happy with those prepend the C<E<lt>> character to run the "
20324 "guestfish commands for real."
20325 msgstr ""
20326
20327 #. type: =head1
20328 #: ../fish/guestfish.pod:724
20329 msgid "PIPES"
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fish/guestfish.pod:726
20334 msgid ""
20335 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20336 "command (a guestfish command) to the second command (any host command).  For "
20337 "example:"
20338 msgstr ""
20339
20340 #. type: verbatim
20341 #: ../fish/guestfish.pod:730
20342 #, no-wrap
20343 msgid ""
20344 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20345 "\n"
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/guestfish.pod:732
20350 msgid ""
20351 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20352 "program).  The above command would list all accounts in the guest filesystem "
20353 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:737
20358 #, no-wrap
20359 msgid ""
20360 " hexdump /bin/ls | head\n"
20361 " list-devices | tail -1\n"
20362 " tgz-out / - | tar ztf -\n"
20363 "\n"
20364 msgstr ""
20365
20366 #. type: textblock
20367 #: ../fish/guestfish.pod:741
20368 msgid ""
20369 "The space before the pipe symbol is required, any space after the pipe "
20370 "symbol is optional.  Everything after the pipe symbol is just passed "
20371 "straight to the host shell, so it can contain redirections, globs and "
20372 "anything else that makes sense on the host side."
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:746
20377 msgid ""
20378 "To use a literal argument which begins with a pipe symbol, you have to quote "
20379 "it, eg:"
20380 msgstr ""
20381
20382 #. type: verbatim
20383 #: ../fish/guestfish.pod:749
20384 #, no-wrap
20385 msgid ""
20386 " echo \"|\"\n"
20387 "\n"
20388 msgstr ""
20389
20390 #. type: =head1
20391 #: ../fish/guestfish.pod:751
20392 msgid "HOME DIRECTORIES"
20393 msgstr ""
20394
20395 #. type: textblock
20396 #: ../fish/guestfish.pod:753
20397 msgid ""
20398 "If a parameter starts with the character C<~> then the tilde may be expanded "
20399 "as a home directory path (either C<~> for the current user's home directory, "
20400 "or C<~user> for another user)."
20401 msgstr ""
20402
20403 #. type: textblock
20404 #: ../fish/guestfish.pod:757
20405 msgid ""
20406 "Note that home directory expansion happens for users known I<on the host>, "
20407 "not in the guest filesystem."
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/guestfish.pod:760
20412 msgid ""
20413 "To use a literal argument which begins with a tilde, you have to quote it, "
20414 "eg:"
20415 msgstr ""
20416
20417 #. type: verbatim
20418 #: ../fish/guestfish.pod:763
20419 #, no-wrap
20420 msgid ""
20421 " echo \"~\"\n"
20422 "\n"
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/guestfish.pod:767
20427 msgid ""
20428 "Libguestfs has some support for Linux guests encrypted according to the "
20429 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20430 "disk encryption systems used by modern Linux guests.  Currently only "
20431 "LVM-on-LUKS is supported."
20432 msgstr ""
20433
20434 #. type: textblock
20435 #: ../fish/guestfish.pod:772
20436 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20437 msgstr ""
20438
20439 #. type: verbatim
20440 #: ../fish/guestfish.pod:774
20441 #, no-wrap
20442 msgid ""
20443 " ><fs> vfs-type /dev/sda2\n"
20444 " crypto_LUKS\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../fish/guestfish.pod:777
20450 msgid ""
20451 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20452 "device called C</dev/mapper/luksdev>."
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:780
20457 #, no-wrap
20458 msgid ""
20459 " ><fs> luks-open /dev/sda2 luksdev\n"
20460 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20461 "\n"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:783
20466 msgid ""
20467 "Finally you have to tell LVM to scan for volume groups on the newly created "
20468 "mapper device:"
20469 msgstr ""
20470
20471 #. type: verbatim
20472 #: ../fish/guestfish.pod:786
20473 #, no-wrap
20474 msgid ""
20475 " vgscan\n"
20476 " vg-activate-all true\n"
20477 "\n"
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:789
20482 msgid "The logical volume(s) can now be mounted in the usual way."
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../fish/guestfish.pod:791
20487 msgid ""
20488 "Before closing a LUKS device you must unmount any logical volumes on it and "
20489 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20490 "one.  Then you can close the mapper device:"
20491 msgstr ""
20492
20493 #. type: verbatim
20494 #: ../fish/guestfish.pod:795
20495 #, no-wrap
20496 msgid ""
20497 " vg-activate false /dev/VG\n"
20498 " luks-close /dev/mapper/luksdev\n"
20499 "\n"
20500 msgstr ""
20501
20502 #. type: =head1
20503 #: ../fish/guestfish.pod:798 ../tools/virt-edit.pl:342
20504 msgid "WINDOWS PATHS"
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../fish/guestfish.pod:800
20509 msgid ""
20510 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20511 "letters and paths (with some limitations).  The following commands are "
20512 "equivalent:"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:804
20517 #, no-wrap
20518 msgid ""
20519 " file /WINDOWS/system32/config/system.LOG\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: verbatim
20524 #: ../fish/guestfish.pod:806
20525 #, no-wrap
20526 msgid ""
20527 " file win:\\windows\\system32\\config\\system.log\n"
20528 "\n"
20529 msgstr ""
20530
20531 #. type: verbatim
20532 #: ../fish/guestfish.pod:808
20533 #, no-wrap
20534 msgid ""
20535 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20536 "\n"
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:810
20541 msgid ""
20542 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20543 "where the drive is mounted, prepending that to the path, changing all "
20544 "backslash characters to forward slash, then resolving the result using "
20545 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20546 "then the parameter might be rewritten like this:"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../fish/guestfish.pod:816
20551 #, no-wrap
20552 msgid ""
20553 " win:e:\\foo\\bar => /e/FOO/bar\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:818
20559 msgid "This only works in argument positions that expect a path."
20560 msgstr ""
20561
20562 #. type: =head1
20563 #: ../fish/guestfish.pod:820
20564 msgid "UPLOADING AND DOWNLOADING FILES"
20565 msgstr ""
20566
20567 #. type: textblock
20568 #: ../fish/guestfish.pod:822
20569 msgid ""
20570 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20571 "others which upload from or download to a local file, you can use the "
20572 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20573 msgstr ""
20574
20575 #. type: verbatim
20576 #: ../fish/guestfish.pod:826
20577 #, no-wrap
20578 msgid ""
20579 " upload - /foo\n"
20580 "\n"
20581 msgstr ""
20582
20583 #. type: textblock
20584 #: ../fish/guestfish.pod:828
20585 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20586 msgstr ""
20587
20588 #. type: verbatim
20589 #: ../fish/guestfish.pod:831
20590 #, no-wrap
20591 msgid ""
20592 " tar-out /etc - | tar tf -\n"
20593 "\n"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../fish/guestfish.pod:833
20598 msgid ""
20599 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20600 "command (see L</PIPES>)."
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../fish/guestfish.pod:836
20605 msgid ""
20606 "When using C<-> to read from stdin, the input is read up to the end of "
20607 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20608 "some arbitrary end marker:"
20609 msgstr ""
20610
20611 #. type: verbatim
20612 #: ../fish/guestfish.pod:840
20613 #, no-wrap
20614 msgid ""
20615 " upload -<<END /foo\n"
20616 " input line 1\n"
20617 " input line 2\n"
20618 " input line 3\n"
20619 " END\n"
20620 "\n"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:846
20625 msgid ""
20626 "Any string of characters can be used instead of C<END>.  The end marker must "
20627 "appear on a line of its own, without any preceeding or following characters "
20628 "(not even spaces)."
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../fish/guestfish.pod:850
20633 msgid ""
20634 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20635 "upload local files (so-called \"FileIn\" parameters in the generator)."
20636 msgstr ""
20637
20638 #. type: =head1
20639 #: ../fish/guestfish.pod:853
20640 msgid "EXIT ON ERROR BEHAVIOUR"
20641 msgstr ""
20642
20643 #. type: textblock
20644 #: ../fish/guestfish.pod:855
20645 msgid ""
20646 "By default, guestfish will ignore any errors when in interactive mode "
20647 "(ie. taking commands from a human over a tty), and will exit on the first "
20648 "error in non-interactive mode (scripts, commands given on the command line)."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../fish/guestfish.pod:860
20653 msgid ""
20654 "If you prefix a command with a I<-> character, then that command will not "
20655 "cause guestfish to exit, even if that (one) command returns an error."
20656 msgstr ""
20657
20658 #. type: =head1
20659 #: ../fish/guestfish.pod:864
20660 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../fish/guestfish.pod:866
20665 msgid ""
20666 "Guestfish can be remote-controlled over a socket.  This is useful "
20667 "particularly in shell scripts where you want to make several different "
20668 "changes to a filesystem, but you don't want the overhead of starting up a "
20669 "guestfish process each time."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../fish/guestfish.pod:871
20674 msgid "Start a guestfish server process using:"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../fish/guestfish.pod:873
20679 #, no-wrap
20680 msgid ""
20681 " eval \"`guestfish --listen`\"\n"
20682 "\n"
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../fish/guestfish.pod:875
20687 msgid "and then send it commands by doing:"
20688 msgstr ""
20689
20690 #. type: verbatim
20691 #: ../fish/guestfish.pod:877
20692 #, no-wrap
20693 msgid ""
20694 " guestfish --remote cmd [...]\n"
20695 "\n"
20696 msgstr ""
20697
20698 #. type: textblock
20699 #: ../fish/guestfish.pod:879
20700 msgid "To cause the server to exit, send it the exit command:"
20701 msgstr ""
20702
20703 #. type: verbatim
20704 #: ../fish/guestfish.pod:881
20705 #, no-wrap
20706 msgid ""
20707 " guestfish --remote exit\n"
20708 "\n"
20709 msgstr ""
20710
20711 #. type: textblock
20712 #: ../fish/guestfish.pod:883
20713 msgid ""
20714 "Note that the server will normally exit if there is an error in a command.  "
20715 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20716 "BEHAVIOUR>."
20717 msgstr ""
20718
20719 #. type: =head2
20720 #: ../fish/guestfish.pod:887
20721 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:889
20726 msgid ""
20727 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20728 "is how the I<--remote> option knows where to send the commands.  You can "
20729 "have several guestfish listener processes running using:"
20730 msgstr ""
20731
20732 #. type: verbatim
20733 #: ../fish/guestfish.pod:893
20734 #, no-wrap
20735 msgid ""
20736 " eval \"`guestfish --listen`\"\n"
20737 " pid1=$GUESTFISH_PID\n"
20738 " eval \"`guestfish --listen`\"\n"
20739 " pid2=$GUESTFISH_PID\n"
20740 " ...\n"
20741 " guestfish --remote=$pid1 cmd\n"
20742 " guestfish --remote=$pid2 cmd\n"
20743 "\n"
20744 msgstr ""
20745
20746 #. type: =head2
20747 #: ../fish/guestfish.pod:901
20748 msgid "REMOTE CONTROL AND CSH"
20749 msgstr ""
20750
20751 #. type: textblock
20752 #: ../fish/guestfish.pod:903
20753 msgid ""
20754 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20755 "option:"
20756 msgstr ""
20757
20758 #. type: verbatim
20759 #: ../fish/guestfish.pod:906
20760 #, no-wrap
20761 msgid ""
20762 " eval \"`guestfish --listen --csh`\"\n"
20763 "\n"
20764 msgstr ""
20765
20766 #. type: =head2
20767 #: ../fish/guestfish.pod:908
20768 msgid "REMOTE CONTROL DETAILS"
20769 msgstr ""
20770
20771 #. type: textblock
20772 #: ../fish/guestfish.pod:910
20773 msgid ""
20774 "Remote control happens over a Unix domain socket called "
20775 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20776 "of the process, and C<$PID> is the process ID of the server."
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../fish/guestfish.pod:914
20781 msgid "Guestfish client and server versions must match exactly."
20782 msgstr ""
20783
20784 #. type: =head1
20785 #: ../fish/guestfish.pod:916
20786 msgid "PREPARED DISK IMAGES"
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fish/guestfish.pod:918
20791 msgid ""
20792 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20793 "preformatted disk images that guestfish can make for you to save typing.  "
20794 "This is particularly useful for testing purposes.  This option is used "
20795 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20796 "can be mixed with I<-a>)."
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../fish/guestfish.pod:924
20801 msgid ""
20802 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20803 "the second and so on.  Existing files in the current directory are "
20804 "I<overwritten>."
20805 msgstr ""
20806
20807 #. type: textblock
20808 #: ../fish/guestfish.pod:928
20809 msgid ""
20810 "The type briefly describes how the disk should be sized, partitioned, how "
20811 "filesystem(s) should be created, and how content should be added.  "
20812 "Optionally the type can be followed by extra parameters, separated by C<:> "
20813 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20814 "sparsely-allocated disk, containing a single partition, with the partition "
20815 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20816 "on a 1GB disk instead."
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:936
20821 msgid "To list the available types and any extra parameters they take, run:"
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../fish/guestfish.pod:940
20826 msgid ""
20827 "Note that the prepared filesystem is not mounted.  You would usually have to "
20828 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../fish/guestfish.pod:944
20833 msgid ""
20834 "If any I<-N> or I<--new> options are given, the guest is automatically "
20835 "launched."
20836 msgstr ""
20837
20838 #. type: textblock
20839 #: ../fish/guestfish.pod:949
20840 msgid "Create a 100MB disk with an ext4-formatted partition:"
20841 msgstr ""
20842
20843 #. type: verbatim
20844 #: ../fish/guestfish.pod:951
20845 #, no-wrap
20846 msgid ""
20847 " guestfish -N fs:ext4\n"
20848 "\n"
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/guestfish.pod:953
20853 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20854 msgstr ""
20855
20856 #. type: verbatim
20857 #: ../fish/guestfish.pod:955
20858 #, no-wrap
20859 msgid ""
20860 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20861 "\n"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:957
20866 msgid "Create a blank 200MB disk:"
20867 msgstr ""
20868
20869 #. type: verbatim
20870 #: ../fish/guestfish.pod:959
20871 #, no-wrap
20872 msgid ""
20873 " guestfish -N disk:200M\n"
20874 "\n"
20875 msgstr ""
20876
20877 #. type: =head1
20878 #: ../fish/guestfish.pod:961
20879 msgid "PROGRESS BARS"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fish/guestfish.pod:963
20884 msgid ""
20885 "Some (not all) long-running commands send progress notification messages as "
20886 "they are running.  Guestfish turns these messages into progress bars."
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../fish/guestfish.pod:967
20891 msgid ""
20892 "When a command that supports progress bars takes longer than two seconds to "
20893 "run, and if progress bars are enabled, then you will see one appearing below "
20894 "the command:"
20895 msgstr ""
20896
20897 #. type: verbatim
20898 #: ../fish/guestfish.pod:971
20899 #, no-wrap
20900 msgid ""
20901 " ><fs> copy-size /large-file /another-file 2048M\n"
20902 " / 10% [#####-----------------------------------------] 00:30\n"
20903 "\n"
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../fish/guestfish.pod:974
20908 msgid ""
20909 "The spinner on the left hand side moves round once for every progress "
20910 "notification received from the backend.  This is a (reasonably) golden "
20911 "assurance that the command is \"doing something\" even if the progress bar "
20912 "is not moving, because the command is able to send the progress "
20913 "notifications.  When the bar reaches 100% and the command finishes, the "
20914 "spinner disappears."
20915 msgstr ""
20916
20917 #. type: textblock
20918 #: ../fish/guestfish.pod:981
20919 msgid ""
20920 "Progress bars are enabled by default when guestfish is used interactively.  "
20921 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20922 "and you can disable them completely using I<--no-progress-bars>."
20923 msgstr ""
20924
20925 #. type: =head1
20926 #: ../fish/guestfish.pod:986
20927 msgid "GUESTFISH COMMANDS"
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:988
20932 msgid ""
20933 "The commands in this section are guestfish convenience commands, in other "
20934 "words, they are not part of the L<guestfs(3)> API."
20935 msgstr ""
20936
20937 #. type: =head2
20938 #: ../fish/guestfish.pod:991
20939 msgid "help"
20940 msgstr ""
20941
20942 #. type: verbatim
20943 #: ../fish/guestfish.pod:993
20944 #, no-wrap
20945 msgid ""
20946 " help\n"
20947 " help cmd\n"
20948 "\n"
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../fish/guestfish.pod:996
20953 msgid "Without any parameter, this provides general help."
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:998
20958 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20959 msgstr ""
20960
20961 #. type: =head2
20962 #: ../fish/guestfish.pod:1000
20963 msgid "quit | exit"
20964 msgstr ""
20965
20966 #. type: textblock
20967 #: ../fish/guestfish.pod:1002
20968 msgid "This exits guestfish.  You can also use C<^D> key."
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../fish/guestfish.pod:1004
20973 msgid "@FISH_COMMANDS@"
20974 msgstr ""
20975
20976 #. type: =head1
20977 #: ../fish/guestfish.pod:1006
20978 msgid "COMMANDS"
20979 msgstr ""
20980
20981 #. type: =head1
20982 #: ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:77
20983 msgid "EXIT CODE"
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:1012
20988 msgid ""
20989 "guestfish returns 0 if the commands completed without error, or 1 if there "
20990 "was an error."
20991 msgstr ""
20992
20993 #. type: =item
20994 #: ../fish/guestfish.pod:1019
20995 msgid "EDITOR"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../fish/guestfish.pod:1021
21000 msgid ""
21001 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21002 "C<vi>."
21003 msgstr ""
21004
21005 #. type: =item
21006 #: ../fish/guestfish.pod:1024
21007 msgid "GUESTFISH_PID"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:1026
21012 msgid ""
21013 "Used with the I<--remote> option to specify the remote guestfish process to "
21014 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21015 msgstr ""
21016
21017 #. type: =item
21018 #: ../fish/guestfish.pod:1030
21019 msgid "HEXEDITOR"
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../fish/guestfish.pod:1032
21024 msgid ""
21025 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21026 "not specified, the external L<hexedit(1)> program is used."
21027 msgstr ""
21028
21029 #. type: =item
21030 #: ../fish/guestfish.pod:1036
21031 msgid "HOME"
21032 msgstr ""
21033
21034 #. type: textblock
21035 #: ../fish/guestfish.pod:1038
21036 msgid ""
21037 "If compiled with GNU readline support, various files in the home directory "
21038 "can be used.  See L</FILES>."
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../fish/guestfish.pod:1047
21043 msgid ""
21044 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21045 "effect as using the B<-v> option."
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../fish/guestfish.pod:1059
21050 msgid ""
21051 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21052 "the discussion of paths in L<guestfs(3)>."
21053 msgstr ""
21054
21055 #. type: textblock
21056 #: ../fish/guestfish.pod:1070
21057 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21058 msgstr ""
21059
21060 #. type: =item
21061 #: ../fish/guestfish.pod:1072
21062 msgid "PAGER"
21063 msgstr ""
21064
21065 #. type: textblock
21066 #: ../fish/guestfish.pod:1074
21067 msgid ""
21068 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21069 "C<more>."
21070 msgstr ""
21071
21072 #. type: =head1
21073 #: ../fish/guestfish.pod:1090 ../fuse/guestmount.pod:252
21074 msgid "FILES"
21075 msgstr ""
21076
21077 #. type: =item
21078 #: ../fish/guestfish.pod:1094 ../fuse/guestmount.pod:256
21079 msgid "$HOME/.libguestfs-tools.rc"
21080 msgstr ""
21081
21082 #. type: =item
21083 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
21084 msgid "/etc/libguestfs-tools.conf"
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
21089 msgid ""
21090 "This configuration file controls the default read-only or read-write mode "
21091 "(I<--ro> or I<--rw>)."
21092 msgstr ""
21093
21094 #. type: textblock
21095 #: ../fish/guestfish.pod:1101
21096 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21097 msgstr ""
21098
21099 #. type: =item
21100 #: ../fish/guestfish.pod:1103
21101 msgid "$HOME/.guestfish"
21102 msgstr ""
21103
21104 #. type: textblock
21105 #: ../fish/guestfish.pod:1105
21106 msgid ""
21107 "If compiled with GNU readline support, then the command history is saved in "
21108 "this file."
21109 msgstr ""
21110
21111 #. type: =item
21112 #: ../fish/guestfish.pod:1108
21113 msgid "$HOME/.inputrc"
21114 msgstr ""
21115
21116 #. type: =item
21117 #: ../fish/guestfish.pod:1110
21118 msgid "/etc/inputrc"
21119 msgstr ""
21120
21121 #. type: textblock
21122 #: ../fish/guestfish.pod:1112
21123 msgid ""
21124 "If compiled with GNU readline support, then these files can be used to "
21125 "configure readline.  For further information, please see "
21126 "L<readline(3)/INITIALIZATION FILE>."
21127 msgstr ""
21128
21129 #. type: textblock
21130 #: ../fish/guestfish.pod:1116
21131 msgid "To write rules which only apply to guestfish, use:"
21132 msgstr ""
21133
21134 #. type: verbatim
21135 #: ../fish/guestfish.pod:1118
21136 #, no-wrap
21137 msgid ""
21138 " $if guestfish\n"
21139 " ...\n"
21140 " $endif\n"
21141 "\n"
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../fish/guestfish.pod:1122
21146 msgid ""
21147 "Variables that you can set in inputrc that change the behaviour of guestfish "
21148 "in useful ways include:"
21149 msgstr ""
21150
21151 #. type: =item
21152 #: ../fish/guestfish.pod:1127
21153 msgid "completion-ignore-case (default: on)"
21154 msgstr ""
21155
21156 #. type: textblock
21157 #: ../fish/guestfish.pod:1129
21158 msgid ""
21159 "By default, guestfish will ignore case when tab-completing paths on the "
21160 "disk.  Use:"
21161 msgstr ""
21162
21163 #. type: verbatim
21164 #: ../fish/guestfish.pod:1132
21165 #, no-wrap
21166 msgid ""
21167 " set completion-ignore-case off\n"
21168 "\n"
21169 msgstr ""
21170
21171 #. type: textblock
21172 #: ../fish/guestfish.pod:1134
21173 msgid "to make guestfish case sensitive."
21174 msgstr ""
21175
21176 #. type: =item
21177 #: ../fish/guestfish.pod:1138
21178 msgid "test1.img"
21179 msgstr ""
21180
21181 #. type: =item
21182 #: ../fish/guestfish.pod:1140
21183 msgid "test2.img (etc)"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../fish/guestfish.pod:1142
21188 msgid ""
21189 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21190 "will be created in the file C<test1.img> in the current directory.  The "
21191 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21192 "the same name will be overwritten."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../fish/guestfish.pod:1151
21197 msgid ""
21198 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
21199 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
21200 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
21201 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
21202 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21203 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:102 ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:518 ../tools/virt-win-reg.pl:606 ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
21208 msgid ""
21209 "This program is free software; you can redistribute it and/or modify it "
21210 "under the terms of the GNU General Public License as published by the Free "
21211 "Software Foundation; either version 2 of the License, or (at your option) "
21212 "any later version."
21213 msgstr ""
21214
21215 #. type: textblock
21216 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:107 ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:523 ../tools/virt-win-reg.pl:611 ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
21217 msgid ""
21218 "This program is distributed in the hope that it will be useful, but WITHOUT "
21219 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21220 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21221 "more details."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fish/guestfish.pod:1191 ../test-tool/libguestfs-test-tool.pod:112 ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:528 ../tools/virt-win-reg.pl:616 ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
21226 msgid ""
21227 "You should have received a copy of the GNU General Public License along with "
21228 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21229 "Ave, Cambridge, MA 02139, USA."
21230 msgstr ""
21231
21232 #. type: =head2
21233 #: ../fish/guestfish-actions.pod:1
21234 msgid "add-cdrom"
21235 msgstr ""
21236
21237 #. type: verbatim
21238 #: ../fish/guestfish-actions.pod:3
21239 #, no-wrap
21240 msgid ""
21241 " add-cdrom filename\n"
21242 "\n"
21243 msgstr ""
21244
21245 #. type: textblock
21246 #: ../fish/guestfish-actions.pod:15
21247 msgid ""
21248 "This call checks for the existence of C<filename>.  This stops you from "
21249 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21250 "and C<http:> URLs.  To specify those, use the general L</config> call "
21251 "instead."
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fish/guestfish-actions.pod:22
21256 msgid ""
21257 "If you just want to add an ISO file (often you use this as an efficient way "
21258 "to transfer large files into the guest), then you should probably use "
21259 "L</add-drive-ro> instead."
21260 msgstr ""
21261
21262 #. type: =head2
21263 #: ../fish/guestfish-actions.pod:35
21264 msgid "add-domain"
21265 msgstr ""
21266
21267 #. type: =head2
21268 #: ../fish/guestfish-actions.pod:37
21269 msgid "domain"
21270 msgstr ""
21271
21272 #. type: verbatim
21273 #: ../fish/guestfish-actions.pod:39
21274 #, no-wrap
21275 msgid ""
21276 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
21277 "\n"
21278 msgstr ""
21279
21280 #. type: textblock
21281 #: ../fish/guestfish-actions.pod:41
21282 msgid ""
21283 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21284 "It works by connecting to libvirt, requesting the domain and domain XML from "
21285 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../fish/guestfish-actions.pod:71
21290 msgid ""
21291 "The other optional parameters are passed directly through to "
21292 "L</add-drive-opts>."
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138 ../fish/guestfish-actions.pod:3047
21297 msgid ""
21298 "This command has one or more optional arguments.  See L</OPTIONAL "
21299 "ARGUMENTS>."
21300 msgstr ""
21301
21302 #. type: =head2
21303 #: ../fish/guestfish-actions.pod:76
21304 msgid "add-drive"
21305 msgstr ""
21306
21307 #. type: verbatim
21308 #: ../fish/guestfish-actions.pod:78
21309 #, no-wrap
21310 msgid ""
21311 " add-drive filename\n"
21312 "\n"
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../fish/guestfish-actions.pod:80
21317 msgid ""
21318 "This function is the equivalent of calling L</add-drive-opts> with no "
21319 "optional parameters, so the disk is added writable, with the format being "
21320 "detected automatically."
21321 msgstr ""
21322
21323 #. type: textblock
21324 #: ../fish/guestfish-actions.pod:84
21325 msgid ""
21326 "Automatic detection of the format opens you up to a potential security hole "
21327 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21328 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21329 "you should think about replacing calls to this function with calls to "
21330 "L</add-drive-opts>, and specifying the format."
21331 msgstr ""
21332
21333 #. type: =head2
21334 #: ../fish/guestfish-actions.pod:91
21335 msgid "add-drive-opts"
21336 msgstr ""
21337
21338 #. type: =head2
21339 #: ../fish/guestfish-actions.pod:93
21340 msgid "add"
21341 msgstr ""
21342
21343 #. type: verbatim
21344 #: ../fish/guestfish-actions.pod:95
21345 #, no-wrap
21346 msgid ""
21347 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
21348 "\n"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fish/guestfish-actions.pod:122
21353 msgid ""
21354 "This forces the image format.  If you omit this (or use L</add-drive> or "
21355 "L</add-drive-ro>) then the format is automatically detected.  Possible "
21356 "formats include C<raw> and C<qcow2>."
21357 msgstr ""
21358
21359 #. type: textblock
21360 #: ../fish/guestfish-actions.pod:133
21361 msgid ""
21362 "This rarely-used option lets you emulate the behaviour of the deprecated "
21363 "L</add-drive-with-if> call (q.v.)"
21364 msgstr ""
21365
21366 #. type: =head2
21367 #: ../fish/guestfish-actions.pod:140
21368 msgid "add-drive-ro"
21369 msgstr ""
21370
21371 #. type: =head2
21372 #: ../fish/guestfish-actions.pod:142
21373 msgid "add-ro"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../fish/guestfish-actions.pod:144
21378 #, no-wrap
21379 msgid ""
21380 " add-drive-ro filename\n"
21381 "\n"
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../fish/guestfish-actions.pod:146
21386 msgid ""
21387 "This function is the equivalent of calling L</add-drive-opts> with the "
21388 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
21389 "is added read-only, with the format being detected automatically."
21390 msgstr ""
21391
21392 #. type: =head2
21393 #: ../fish/guestfish-actions.pod:151
21394 msgid "add-drive-ro-with-if"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../fish/guestfish-actions.pod:153
21399 #, no-wrap
21400 msgid ""
21401 " add-drive-ro-with-if filename iface\n"
21402 "\n"
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../fish/guestfish-actions.pod:155
21407 msgid ""
21408 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
21409 "interface emulation to use at run time."
21410 msgstr ""
21411
21412 #. type: =head2
21413 #: ../fish/guestfish-actions.pod:165
21414 msgid "add-drive-with-if"
21415 msgstr ""
21416
21417 #. type: verbatim
21418 #: ../fish/guestfish-actions.pod:167
21419 #, no-wrap
21420 msgid ""
21421 " add-drive-with-if filename iface\n"
21422 "\n"
21423 msgstr ""
21424
21425 #. type: textblock
21426 #: ../fish/guestfish-actions.pod:169
21427 msgid ""
21428 "This is the same as L</add-drive> but it allows you to specify the QEMU "
21429 "interface emulation to use at run time."
21430 msgstr ""
21431
21432 #. type: =head2
21433 #: ../fish/guestfish-actions.pod:179
21434 msgid "aug-clear"
21435 msgstr ""
21436
21437 #. type: verbatim
21438 #: ../fish/guestfish-actions.pod:181
21439 #, no-wrap
21440 msgid ""
21441 " aug-clear augpath\n"
21442 "\n"
21443 msgstr ""
21444
21445 #. type: =head2
21446 #: ../fish/guestfish-actions.pod:186
21447 msgid "aug-close"
21448 msgstr ""
21449
21450 #. type: verbatim
21451 #: ../fish/guestfish-actions.pod:188
21452 #, no-wrap
21453 msgid ""
21454 " aug-close\n"
21455 "\n"
21456 msgstr ""
21457
21458 #. type: textblock
21459 #: ../fish/guestfish-actions.pod:190
21460 msgid ""
21461 "Close the current Augeas handle and free up any resources used by it.  After "
21462 "calling this, you have to call L</aug-init> again before you can use any "
21463 "other Augeas functions."
21464 msgstr ""
21465
21466 #. type: =head2
21467 #: ../fish/guestfish-actions.pod:195
21468 msgid "aug-defnode"
21469 msgstr ""
21470
21471 #. type: verbatim
21472 #: ../fish/guestfish-actions.pod:197
21473 #, no-wrap
21474 msgid ""
21475 " aug-defnode name expr val\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../fish/guestfish-actions.pod:202
21481 msgid ""
21482 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21483 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
21484 "containing that single node."
21485 msgstr ""
21486
21487 #. type: =head2
21488 #: ../fish/guestfish-actions.pod:210
21489 msgid "aug-defvar"
21490 msgstr ""
21491
21492 #. type: verbatim
21493 #: ../fish/guestfish-actions.pod:212
21494 #, no-wrap
21495 msgid ""
21496 " aug-defvar name expr\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: =head2
21501 #: ../fish/guestfish-actions.pod:221
21502 msgid "aug-get"
21503 msgstr ""
21504
21505 #. type: verbatim
21506 #: ../fish/guestfish-actions.pod:223
21507 #, no-wrap
21508 msgid ""
21509 " aug-get augpath\n"
21510 "\n"
21511 msgstr ""
21512
21513 #. type: =head2
21514 #: ../fish/guestfish-actions.pod:228
21515 msgid "aug-init"
21516 msgstr ""
21517
21518 #. type: verbatim
21519 #: ../fish/guestfish-actions.pod:230
21520 #, no-wrap
21521 msgid ""
21522 " aug-init root flags\n"
21523 "\n"
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fish/guestfish-actions.pod:236
21528 msgid "You must call this before using any other L</aug-*> commands."
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../fish/guestfish-actions.pod:271
21533 msgid "Do not load the tree in L</aug-init>."
21534 msgstr ""
21535
21536 #. type: textblock
21537 #: ../fish/guestfish-actions.pod:275
21538 msgid "To close the handle, you can call L</aug-close>."
21539 msgstr ""
21540
21541 #. type: =head2
21542 #: ../fish/guestfish-actions.pod:279
21543 msgid "aug-insert"
21544 msgstr ""
21545
21546 #. type: verbatim
21547 #: ../fish/guestfish-actions.pod:281
21548 #, no-wrap
21549 msgid ""
21550 " aug-insert augpath label true|false\n"
21551 "\n"
21552 msgstr ""
21553
21554 #. type: =head2
21555 #: ../fish/guestfish-actions.pod:291
21556 msgid "aug-load"
21557 msgstr ""
21558
21559 #. type: verbatim
21560 #: ../fish/guestfish-actions.pod:293
21561 #, no-wrap
21562 msgid ""
21563 " aug-load\n"
21564 "\n"
21565 msgstr ""
21566
21567 #. type: =head2
21568 #: ../fish/guestfish-actions.pod:300
21569 msgid "aug-ls"
21570 msgstr ""
21571
21572 #. type: verbatim
21573 #: ../fish/guestfish-actions.pod:302
21574 #, no-wrap
21575 msgid ""
21576 " aug-ls augpath\n"
21577 "\n"
21578 msgstr ""
21579
21580 #. type: textblock
21581 #: ../fish/guestfish-actions.pod:304
21582 msgid ""
21583 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
21584 "resulting nodes into alphabetical order."
21585 msgstr ""
21586
21587 #. type: =head2
21588 #: ../fish/guestfish-actions.pod:307
21589 msgid "aug-match"
21590 msgstr ""
21591
21592 #. type: verbatim
21593 #: ../fish/guestfish-actions.pod:309
21594 #, no-wrap
21595 msgid ""
21596 " aug-match augpath\n"
21597 "\n"
21598 msgstr ""
21599
21600 #. type: =head2
21601 #: ../fish/guestfish-actions.pod:315
21602 msgid "aug-mv"
21603 msgstr ""
21604
21605 #. type: verbatim
21606 #: ../fish/guestfish-actions.pod:317
21607 #, no-wrap
21608 msgid ""
21609 " aug-mv src dest\n"
21610 "\n"
21611 msgstr ""
21612
21613 #. type: =head2
21614 #: ../fish/guestfish-actions.pod:322
21615 msgid "aug-rm"
21616 msgstr ""
21617
21618 #. type: verbatim
21619 #: ../fish/guestfish-actions.pod:324
21620 #, no-wrap
21621 msgid ""
21622 " aug-rm augpath\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: =head2
21627 #: ../fish/guestfish-actions.pod:330
21628 msgid "aug-save"
21629 msgstr ""
21630
21631 #. type: verbatim
21632 #: ../fish/guestfish-actions.pod:332
21633 #, no-wrap
21634 msgid ""
21635 " aug-save\n"
21636 "\n"
21637 msgstr ""
21638
21639 #. type: textblock
21640 #: ../fish/guestfish-actions.pod:336
21641 msgid ""
21642 "The flags which were passed to L</aug-init> affect exactly how files are "
21643 "saved."
21644 msgstr ""
21645
21646 #. type: =head2
21647 #: ../fish/guestfish-actions.pod:339
21648 msgid "aug-set"
21649 msgstr ""
21650
21651 #. type: verbatim
21652 #: ../fish/guestfish-actions.pod:341
21653 #, no-wrap
21654 msgid ""
21655 " aug-set augpath val\n"
21656 "\n"
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../fish/guestfish-actions.pod:345
21661 msgid ""
21662 "In the Augeas API, it is possible to clear a node by setting the value to "
21663 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21664 "this call.  Instead you must use the L</aug-clear> call."
21665 msgstr ""
21666
21667 #. type: =head2
21668 #: ../fish/guestfish-actions.pod:350
21669 msgid "available"
21670 msgstr ""
21671
21672 #. type: verbatim
21673 #: ../fish/guestfish-actions.pod:352
21674 #, no-wrap
21675 msgid ""
21676 " available 'groups ...'\n"
21677 "\n"
21678 msgstr ""
21679
21680 #. type: textblock
21681 #: ../fish/guestfish-actions.pod:358
21682 msgid ""
21683 "The libguestfs groups, and the functions that those groups correspond to, "
21684 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21685 "runtime by calling L</available-all-groups>."
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/guestfish-actions.pod:382
21690 msgid "You must call L</launch> before calling this function."
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fish/guestfish-actions.pod:404
21695 msgid ""
21696 "This call was added in version C<1.0.80>.  In previous versions of "
21697 "libguestfs all you could do would be to speculatively execute a command to "
21698 "find out if the daemon implemented it.  See also L</version>."
21699 msgstr ""
21700
21701 #. type: =head2
21702 #: ../fish/guestfish-actions.pod:411
21703 msgid "available-all-groups"
21704 msgstr ""
21705
21706 #. type: verbatim
21707 #: ../fish/guestfish-actions.pod:413
21708 #, no-wrap
21709 msgid ""
21710 " available-all-groups\n"
21711 "\n"
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../fish/guestfish-actions.pod:415
21716 msgid ""
21717 "This command returns a list of all optional groups that this daemon knows "
21718 "about.  Note this returns both supported and unsupported groups.  To find "
21719 "out which ones the daemon can actually support you have to call "
21720 "L</available> on each member of the returned list."
21721 msgstr ""
21722
21723 #. type: textblock
21724 #: ../fish/guestfish-actions.pod:421
21725 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
21726 msgstr ""
21727
21728 #. type: =head2
21729 #: ../fish/guestfish-actions.pod:423
21730 msgid "base64-in"
21731 msgstr ""
21732
21733 #. type: verbatim
21734 #: ../fish/guestfish-actions.pod:425
21735 #, no-wrap
21736 msgid ""
21737 " base64-in (base64file|-) filename\n"
21738 "\n"
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439 ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832 ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228 ../fish/guestfish-actions.pod:4445 ../fish/guestfish-actions.pod:4457 ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4479 ../fish/guestfish-actions.pod:4531 ../fish/guestfish-actions.pod:4540 ../fish/guestfish-actions.pod:4594 ../fish/guestfish-actions.pod:4617
21743 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
21744 msgstr ""
21745
21746 #. type: =head2
21747 #: ../fish/guestfish-actions.pod:432
21748 msgid "base64-out"
21749 msgstr ""
21750
21751 #. type: verbatim
21752 #: ../fish/guestfish-actions.pod:434
21753 #, no-wrap
21754 msgid ""
21755 " base64-out filename (base64file|-)\n"
21756 "\n"
21757 msgstr ""
21758
21759 #. type: =head2
21760 #: ../fish/guestfish-actions.pod:441
21761 msgid "blockdev-flushbufs"
21762 msgstr ""
21763
21764 #. type: verbatim
21765 #: ../fish/guestfish-actions.pod:443
21766 #, no-wrap
21767 msgid ""
21768 " blockdev-flushbufs device\n"
21769 "\n"
21770 msgstr ""
21771
21772 #. type: =head2
21773 #: ../fish/guestfish-actions.pod:450
21774 msgid "blockdev-getbsz"
21775 msgstr ""
21776
21777 #. type: verbatim
21778 #: ../fish/guestfish-actions.pod:452
21779 #, no-wrap
21780 msgid ""
21781 " blockdev-getbsz device\n"
21782 "\n"
21783 msgstr ""
21784
21785 #. type: =head2
21786 #: ../fish/guestfish-actions.pod:461
21787 msgid "blockdev-getro"
21788 msgstr ""
21789
21790 #. type: verbatim
21791 #: ../fish/guestfish-actions.pod:463
21792 #, no-wrap
21793 msgid ""
21794 " blockdev-getro device\n"
21795 "\n"
21796 msgstr ""
21797
21798 #. type: =head2
21799 #: ../fish/guestfish-actions.pod:470
21800 msgid "blockdev-getsize64"
21801 msgstr ""
21802
21803 #. type: verbatim
21804 #: ../fish/guestfish-actions.pod:472
21805 #, no-wrap
21806 msgid ""
21807 " blockdev-getsize64 device\n"
21808 "\n"
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../fish/guestfish-actions.pod:476
21813 msgid "See also L</blockdev-getsz>."
21814 msgstr ""
21815
21816 #. type: =head2
21817 #: ../fish/guestfish-actions.pod:480
21818 msgid "blockdev-getss"
21819 msgstr ""
21820
21821 #. type: verbatim
21822 #: ../fish/guestfish-actions.pod:482
21823 #, no-wrap
21824 msgid ""
21825 " blockdev-getss device\n"
21826 "\n"
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../fish/guestfish-actions.pod:487
21831 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
21832 msgstr ""
21833
21834 #. type: =head2
21835 #: ../fish/guestfish-actions.pod:492
21836 msgid "blockdev-getsz"
21837 msgstr ""
21838
21839 #. type: verbatim
21840 #: ../fish/guestfish-actions.pod:494
21841 #, no-wrap
21842 msgid ""
21843 " blockdev-getsz device\n"
21844 "\n"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fish/guestfish-actions.pod:499
21849 msgid ""
21850 "See also L</blockdev-getss> for the real sector size of the device, and "
21851 "L</blockdev-getsize64> for the more useful I<size in bytes>."
21852 msgstr ""
21853
21854 #. type: =head2
21855 #: ../fish/guestfish-actions.pod:505
21856 msgid "blockdev-rereadpt"
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../fish/guestfish-actions.pod:507
21861 #, no-wrap
21862 msgid ""
21863 " blockdev-rereadpt device\n"
21864 "\n"
21865 msgstr ""
21866
21867 #. type: =head2
21868 #: ../fish/guestfish-actions.pod:513
21869 msgid "blockdev-setbsz"
21870 msgstr ""
21871
21872 #. type: verbatim
21873 #: ../fish/guestfish-actions.pod:515
21874 #, no-wrap
21875 msgid ""
21876 " blockdev-setbsz device blocksize\n"
21877 "\n"
21878 msgstr ""
21879
21880 #. type: =head2
21881 #: ../fish/guestfish-actions.pod:524
21882 msgid "blockdev-setro"
21883 msgstr ""
21884
21885 #. type: verbatim
21886 #: ../fish/guestfish-actions.pod:526
21887 #, no-wrap
21888 msgid ""
21889 " blockdev-setro device\n"
21890 "\n"
21891 msgstr ""
21892
21893 #. type: =head2
21894 #: ../fish/guestfish-actions.pod:532
21895 msgid "blockdev-setrw"
21896 msgstr ""
21897
21898 #. type: verbatim
21899 #: ../fish/guestfish-actions.pod:534
21900 #, no-wrap
21901 msgid ""
21902 " blockdev-setrw device\n"
21903 "\n"
21904 msgstr ""
21905
21906 #. type: =head2
21907 #: ../fish/guestfish-actions.pod:540
21908 msgid "case-sensitive-path"
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../fish/guestfish-actions.pod:542
21913 #, no-wrap
21914 msgid ""
21915 " case-sensitive-path path\n"
21916 "\n"
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fish/guestfish-actions.pod:566
21921 msgid ""
21922 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
21923 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
21924 "how the directories were originally created under Windows)."
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../fish/guestfish-actions.pod:574
21929 msgid "See also L</realpath>."
21930 msgstr ""
21931
21932 #. type: =head2
21933 #: ../fish/guestfish-actions.pod:576
21934 msgid "cat"
21935 msgstr ""
21936
21937 #. type: verbatim
21938 #: ../fish/guestfish-actions.pod:578
21939 #, no-wrap
21940 msgid ""
21941 " cat path\n"
21942 "\n"
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../fish/guestfish-actions.pod:582
21947 msgid ""
21948 "Note that this function cannot correctly handle binary files (specifically, "
21949 "files containing C<\\0> character which is treated as end of string).  For "
21950 "those you need to use the L</read-file> or L</download> functions which have "
21951 "a more complex interface."
21952 msgstr ""
21953
21954 #. type: =head2
21955 #: ../fish/guestfish-actions.pod:590
21956 msgid "checksum"
21957 msgstr ""
21958
21959 #. type: verbatim
21960 #: ../fish/guestfish-actions.pod:592
21961 #, no-wrap
21962 msgid ""
21963 " checksum csumtype path\n"
21964 "\n"
21965 msgstr ""
21966
21967 #. type: textblock
21968 #: ../fish/guestfish-actions.pod:635
21969 msgid "To get the checksum for a device, use L</checksum-device>."
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../fish/guestfish-actions.pod:637
21974 msgid "To get the checksums for many files, use L</checksums-out>."
21975 msgstr ""
21976
21977 #. type: =head2
21978 #: ../fish/guestfish-actions.pod:639
21979 msgid "checksum-device"
21980 msgstr ""
21981
21982 #. type: verbatim
21983 #: ../fish/guestfish-actions.pod:641
21984 #, no-wrap
21985 msgid ""
21986 " checksum-device csumtype device\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: textblock
21991 #: ../fish/guestfish-actions.pod:643
21992 msgid ""
21993 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
21994 "device named C<device>.  For the types of checksums supported see the "
21995 "L</checksum> command."
21996 msgstr ""
21997
21998 #. type: =head2
21999 #: ../fish/guestfish-actions.pod:647
22000 msgid "checksums-out"
22001 msgstr ""
22002
22003 #. type: verbatim
22004 #: ../fish/guestfish-actions.pod:649
22005 #, no-wrap
22006 msgid ""
22007 " checksums-out csumtype directory (sumsfile|-)\n"
22008 "\n"
22009 msgstr ""
22010
22011 #. type: =head2
22012 #: ../fish/guestfish-actions.pod:665
22013 msgid "chmod"
22014 msgstr ""
22015
22016 #. type: verbatim
22017 #: ../fish/guestfish-actions.pod:667
22018 #, no-wrap
22019 msgid ""
22020 " chmod mode path\n"
22021 "\n"
22022 msgstr ""
22023
22024 #. type: =head2
22025 #: ../fish/guestfish-actions.pod:678
22026 msgid "chown"
22027 msgstr ""
22028
22029 #. type: verbatim
22030 #: ../fish/guestfish-actions.pod:680
22031 #, no-wrap
22032 msgid ""
22033 " chown owner group path\n"
22034 "\n"
22035 msgstr ""
22036
22037 #. type: =head2
22038 #: ../fish/guestfish-actions.pod:688
22039 msgid "command"
22040 msgstr ""
22041
22042 #. type: verbatim
22043 #: ../fish/guestfish-actions.pod:690
22044 #, no-wrap
22045 msgid ""
22046 " command 'arguments ...'\n"
22047 "\n"
22048 msgstr ""
22049
22050 #. type: textblock
22051 #: ../fish/guestfish-actions.pod:697
22052 msgid ""
22053 "The single parameter is an argv-style list of arguments.  The first element "
22054 "is the name of the program to run.  Subsequent elements are parameters.  The "
22055 "list must be non-empty (ie. must contain a program name).  Note that the "
22056 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
22057 msgstr ""
22058
22059 #. type: =head2
22060 #: ../fish/guestfish-actions.pod:725
22061 msgid "command-lines"
22062 msgstr ""
22063
22064 #. type: verbatim
22065 #: ../fish/guestfish-actions.pod:727
22066 #, no-wrap
22067 msgid ""
22068 " command-lines 'arguments ...'\n"
22069 "\n"
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../fish/guestfish-actions.pod:729
22074 msgid "This is the same as L</command>, but splits the result into a list of lines."
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../fish/guestfish-actions.pod:732
22079 msgid "See also: L</sh-lines>"
22080 msgstr ""
22081
22082 #. type: =head2
22083 #: ../fish/guestfish-actions.pod:737
22084 msgid "config"
22085 msgstr ""
22086
22087 #. type: verbatim
22088 #: ../fish/guestfish-actions.pod:739
22089 #, no-wrap
22090 msgid ""
22091 " config qemuparam qemuvalue\n"
22092 "\n"
22093 msgstr ""
22094
22095 #. type: =head2
22096 #: ../fish/guestfish-actions.pod:750
22097 msgid "copy-size"
22098 msgstr ""
22099
22100 #. type: verbatim
22101 #: ../fish/guestfish-actions.pod:752
22102 #, no-wrap
22103 msgid ""
22104 " copy-size src dest size\n"
22105 "\n"
22106 msgstr ""
22107
22108 #. type: =head2
22109 #: ../fish/guestfish-actions.pod:760
22110 msgid "cp"
22111 msgstr ""
22112
22113 #. type: verbatim
22114 #: ../fish/guestfish-actions.pod:762
22115 #, no-wrap
22116 msgid ""
22117 " cp src dest\n"
22118 "\n"
22119 msgstr ""
22120
22121 #. type: =head2
22122 #: ../fish/guestfish-actions.pod:767
22123 msgid "cp-a"
22124 msgstr ""
22125
22126 #. type: verbatim
22127 #: ../fish/guestfish-actions.pod:769
22128 #, no-wrap
22129 msgid ""
22130 " cp-a src dest\n"
22131 "\n"
22132 msgstr ""
22133
22134 #. type: =head2
22135 #: ../fish/guestfish-actions.pod:774
22136 msgid "dd"
22137 msgstr ""
22138
22139 #. type: verbatim
22140 #: ../fish/guestfish-actions.pod:776
22141 #, no-wrap
22142 msgid ""
22143 " dd src dest\n"
22144 "\n"
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../fish/guestfish-actions.pod:783
22149 msgid ""
22150 "If the destination is a device, it must be as large or larger than the "
22151 "source file or device, otherwise the copy will fail.  This command cannot do "
22152 "partial copies (see L</copy-size>)."
22153 msgstr ""
22154
22155 #. type: =head2
22156 #: ../fish/guestfish-actions.pod:787
22157 msgid "df"
22158 msgstr ""
22159
22160 #. type: verbatim
22161 #: ../fish/guestfish-actions.pod:789
22162 #, no-wrap
22163 msgid ""
22164 " df\n"
22165 "\n"
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
22170 msgid ""
22171 "This command is mostly useful for interactive sessions.  It is I<not> "
22172 "intended that you try to parse the output string.  Use L</statvfs> from "
22173 "programs."
22174 msgstr ""
22175
22176 #. type: =head2
22177 #: ../fish/guestfish-actions.pod:797
22178 msgid "df-h"
22179 msgstr ""
22180
22181 #. type: verbatim
22182 #: ../fish/guestfish-actions.pod:799
22183 #, no-wrap
22184 msgid ""
22185 " df-h\n"
22186 "\n"
22187 msgstr ""
22188
22189 #. type: =head2
22190 #: ../fish/guestfish-actions.pod:808
22191 msgid "dmesg"
22192 msgstr ""
22193
22194 #. type: verbatim
22195 #: ../fish/guestfish-actions.pod:810
22196 #, no-wrap
22197 msgid ""
22198 " dmesg\n"
22199 "\n"
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/guestfish-actions.pod:816
22204 msgid ""
22205 "Another way to get the same information is to enable verbose messages with "
22206 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22207 "before running the program."
22208 msgstr ""
22209
22210 #. type: =head2
22211 #: ../fish/guestfish-actions.pod:821
22212 msgid "download"
22213 msgstr ""
22214
22215 #. type: verbatim
22216 #: ../fish/guestfish-actions.pod:823
22217 #, no-wrap
22218 msgid ""
22219 " download remotefilename (filename|-)\n"
22220 "\n"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../fish/guestfish-actions.pod:830
22225 msgid "See also L</upload>, L</cat>."
22226 msgstr ""
22227
22228 #. type: =head2
22229 #: ../fish/guestfish-actions.pod:834
22230 msgid "download-offset"
22231 msgstr ""
22232
22233 #. type: verbatim
22234 #: ../fish/guestfish-actions.pod:836
22235 #, no-wrap
22236 msgid ""
22237 " download-offset remotefilename (filename|-) offset size\n"
22238 "\n"
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/guestfish-actions.pod:844
22243 msgid ""
22244 "Note that there is no limit on the amount of data that can be downloaded "
22245 "with this call, unlike with L</pread>, and this call always reads the full "
22246 "amount unless an error occurs."
22247 msgstr ""
22248
22249 #. type: textblock
22250 #: ../fish/guestfish-actions.pod:849
22251 msgid "See also L</download>, L</pread>."
22252 msgstr ""
22253
22254 #. type: =head2
22255 #: ../fish/guestfish-actions.pod:853
22256 msgid "drop-caches"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../fish/guestfish-actions.pod:855
22261 #, no-wrap
22262 msgid ""
22263 " drop-caches whattodrop\n"
22264 "\n"
22265 msgstr ""
22266
22267 #. type: =head2
22268 #: ../fish/guestfish-actions.pod:867
22269 msgid "du"
22270 msgstr ""
22271
22272 #. type: verbatim
22273 #: ../fish/guestfish-actions.pod:869
22274 #, no-wrap
22275 msgid ""
22276 " du path\n"
22277 "\n"
22278 msgstr ""
22279
22280 #. type: =head2
22281 #: ../fish/guestfish-actions.pod:881
22282 msgid "e2fsck-f"
22283 msgstr ""
22284
22285 #. type: verbatim
22286 #: ../fish/guestfish-actions.pod:883
22287 #, no-wrap
22288 msgid ""
22289 " e2fsck-f device\n"
22290 "\n"
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../fish/guestfish-actions.pod:889
22295 msgid ""
22296 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22297 "should use L</fsck>."
22298 msgstr ""
22299
22300 #. type: =head2
22301 #: ../fish/guestfish-actions.pod:892
22302 msgid "echo-daemon"
22303 msgstr ""
22304
22305 #. type: verbatim
22306 #: ../fish/guestfish-actions.pod:894
22307 #, no-wrap
22308 msgid ""
22309 " echo-daemon 'words ...'\n"
22310 "\n"
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../fish/guestfish-actions.pod:901
22315 msgid "See also L</ping-daemon>."
22316 msgstr ""
22317
22318 #. type: =head2
22319 #: ../fish/guestfish-actions.pod:903
22320 msgid "egrep"
22321 msgstr ""
22322
22323 #. type: verbatim
22324 #: ../fish/guestfish-actions.pod:905
22325 #, no-wrap
22326 msgid ""
22327 " egrep regex path\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: =head2
22332 #: ../fish/guestfish-actions.pod:913
22333 msgid "egrepi"
22334 msgstr ""
22335
22336 #. type: verbatim
22337 #: ../fish/guestfish-actions.pod:915
22338 #, no-wrap
22339 msgid ""
22340 " egrepi regex path\n"
22341 "\n"
22342 msgstr ""
22343
22344 #. type: =head2
22345 #: ../fish/guestfish-actions.pod:923
22346 msgid "equal"
22347 msgstr ""
22348
22349 #. type: verbatim
22350 #: ../fish/guestfish-actions.pod:925
22351 #, no-wrap
22352 msgid ""
22353 " equal file1 file2\n"
22354 "\n"
22355 msgstr ""
22356
22357 #. type: =head2
22358 #: ../fish/guestfish-actions.pod:932
22359 msgid "exists"
22360 msgstr ""
22361
22362 #. type: verbatim
22363 #: ../fish/guestfish-actions.pod:934
22364 #, no-wrap
22365 msgid ""
22366 " exists path\n"
22367 "\n"
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../fish/guestfish-actions.pod:939
22372 msgid "See also L</is-file>, L</is-dir>, L</stat>."
22373 msgstr ""
22374
22375 #. type: =head2
22376 #: ../fish/guestfish-actions.pod:941
22377 msgid "fallocate"
22378 msgstr ""
22379
22380 #. type: verbatim
22381 #: ../fish/guestfish-actions.pod:943
22382 #, no-wrap
22383 msgid ""
22384 " fallocate path len\n"
22385 "\n"
22386 msgstr ""
22387
22388 #. type: =head2
22389 #: ../fish/guestfish-actions.pod:960
22390 msgid "fallocate64"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../fish/guestfish-actions.pod:962
22395 #, no-wrap
22396 msgid ""
22397 " fallocate64 path len\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../fish/guestfish-actions.pod:968
22403 msgid ""
22404 "Note that this call allocates disk blocks for the file.  To create a sparse "
22405 "file use L</truncate-size> instead."
22406 msgstr ""
22407
22408 #. type: textblock
22409 #: ../fish/guestfish-actions.pod:971
22410 msgid ""
22411 "The deprecated call L</fallocate> does the same, but owing to an oversight "
22412 "it only allowed 30 bit lengths to be specified, effectively limiting the "
22413 "maximum size of files created through that call to 1GB."
22414 msgstr ""
22415
22416 #. type: =head2
22417 #: ../fish/guestfish-actions.pod:980
22418 msgid "fgrep"
22419 msgstr ""
22420
22421 #. type: verbatim
22422 #: ../fish/guestfish-actions.pod:982
22423 #, no-wrap
22424 msgid ""
22425 " fgrep pattern path\n"
22426 "\n"
22427 msgstr ""
22428
22429 #. type: =head2
22430 #: ../fish/guestfish-actions.pod:990
22431 msgid "fgrepi"
22432 msgstr ""
22433
22434 #. type: verbatim
22435 #: ../fish/guestfish-actions.pod:992
22436 #, no-wrap
22437 msgid ""
22438 " fgrepi pattern path\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: =head2
22443 #: ../fish/guestfish-actions.pod:1000
22444 msgid "file"
22445 msgstr ""
22446
22447 #. type: verbatim
22448 #: ../fish/guestfish-actions.pod:1002
22449 #, no-wrap
22450 msgid ""
22451 " file path\n"
22452 "\n"
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../fish/guestfish-actions.pod:1014
22457 msgid ""
22458 "This command can also be used on C</dev/> devices (and partitions, LV "
22459 "names).  You can for example use this to determine if a device contains a "
22460 "filesystem, although it's usually better to use L</vfs-type>."
22461 msgstr ""
22462
22463 #. type: =head2
22464 #: ../fish/guestfish-actions.pod:1024
22465 msgid "file-architecture"
22466 msgstr ""
22467
22468 #. type: verbatim
22469 #: ../fish/guestfish-actions.pod:1026
22470 #, no-wrap
22471 msgid ""
22472 " file-architecture filename\n"
22473 "\n"
22474 msgstr ""
22475
22476 #. type: =head2
22477 #: ../fish/guestfish-actions.pod:1129
22478 msgid "filesize"
22479 msgstr ""
22480
22481 #. type: verbatim
22482 #: ../fish/guestfish-actions.pod:1131
22483 #, no-wrap
22484 msgid ""
22485 " filesize file\n"
22486 "\n"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../fish/guestfish-actions.pod:1135
22491 msgid ""
22492 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
22493 "L</is-file> etc.  To get the size of block devices, use "
22494 "L</blockdev-getsize64>."
22495 msgstr ""
22496
22497 #. type: =head2
22498 #: ../fish/guestfish-actions.pod:1139
22499 msgid "fill"
22500 msgstr ""
22501
22502 #. type: verbatim
22503 #: ../fish/guestfish-actions.pod:1141
22504 #, no-wrap
22505 msgid ""
22506 " fill c len path\n"
22507 "\n"
22508 msgstr ""
22509
22510 #. type: textblock
22511 #: ../fish/guestfish-actions.pod:1147
22512 msgid ""
22513 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
22514 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
22515 "L</fill-pattern>."
22516 msgstr ""
22517
22518 #. type: =head2
22519 #: ../fish/guestfish-actions.pod:1152
22520 msgid "fill-pattern"
22521 msgstr ""
22522
22523 #. type: verbatim
22524 #: ../fish/guestfish-actions.pod:1154
22525 #, no-wrap
22526 msgid ""
22527 " fill-pattern pattern len path\n"
22528 "\n"
22529 msgstr ""
22530
22531 #. type: textblock
22532 #: ../fish/guestfish-actions.pod:1156
22533 msgid ""
22534 "This function is like L</fill> except that it creates a new file of length "
22535 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
22536 "is truncated if necessary to ensure the length of the file is exactly C<len> "
22537 "bytes."
22538 msgstr ""
22539
22540 #. type: =head2
22541 #: ../fish/guestfish-actions.pod:1161
22542 msgid "find"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../fish/guestfish-actions.pod:1163
22547 #, no-wrap
22548 msgid ""
22549 " find directory\n"
22550 "\n"
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../fish/guestfish-actions.pod:1177
22555 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
22556 msgstr ""
22557
22558 #. type: textblock
22559 #: ../fish/guestfish-actions.pod:1190
22560 msgid "See also L</find0>."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../fish/guestfish-actions.pod:1195
22565 msgid "find0"
22566 msgstr ""
22567
22568 #. type: verbatim
22569 #: ../fish/guestfish-actions.pod:1197
22570 #, no-wrap
22571 msgid ""
22572 " find0 directory (files|-)\n"
22573 "\n"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../fish/guestfish-actions.pod:1203
22578 msgid "This command works the same way as L</find> with the following exceptions:"
22579 msgstr ""
22580
22581 #. type: =head2
22582 #: ../fish/guestfish-actions.pod:1230
22583 msgid "findfs-label"
22584 msgstr ""
22585
22586 #. type: verbatim
22587 #: ../fish/guestfish-actions.pod:1232
22588 #, no-wrap
22589 msgid ""
22590 " findfs-label label\n"
22591 "\n"
22592 msgstr ""
22593
22594 #. type: textblock
22595 #: ../fish/guestfish-actions.pod:1238
22596 msgid "To find the label of a filesystem, use L</vfs-label>."
22597 msgstr ""
22598
22599 #. type: =head2
22600 #: ../fish/guestfish-actions.pod:1240
22601 msgid "findfs-uuid"
22602 msgstr ""
22603
22604 #. type: verbatim
22605 #: ../fish/guestfish-actions.pod:1242
22606 #, no-wrap
22607 msgid ""
22608 " findfs-uuid uuid\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: textblock
22613 #: ../fish/guestfish-actions.pod:1248
22614 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
22615 msgstr ""
22616
22617 #. type: =head2
22618 #: ../fish/guestfish-actions.pod:1250
22619 msgid "fsck"
22620 msgstr ""
22621
22622 #. type: verbatim
22623 #: ../fish/guestfish-actions.pod:1252
22624 #, no-wrap
22625 msgid ""
22626 " fsck fstype device\n"
22627 "\n"
22628 msgstr ""
22629
22630 #. type: =head2
22631 #: ../fish/guestfish-actions.pod:1282
22632 msgid "get-append"
22633 msgstr ""
22634
22635 #. type: verbatim
22636 #: ../fish/guestfish-actions.pod:1284
22637 #, no-wrap
22638 msgid ""
22639 " get-append\n"
22640 "\n"
22641 msgstr ""
22642
22643 #. type: =head2
22644 #: ../fish/guestfish-actions.pod:1291
22645 msgid "get-attach-method"
22646 msgstr ""
22647
22648 #. type: verbatim
22649 #: ../fish/guestfish-actions.pod:1293
22650 #, no-wrap
22651 msgid ""
22652 " get-attach-method\n"
22653 "\n"
22654 msgstr ""
22655
22656 #. type: textblock
22657 #: ../fish/guestfish-actions.pod:1295
22658 msgid "Return the current attach method.  See L</set-attach-method>."
22659 msgstr ""
22660
22661 #. type: =head2
22662 #: ../fish/guestfish-actions.pod:1297
22663 msgid "get-autosync"
22664 msgstr ""
22665
22666 #. type: verbatim
22667 #: ../fish/guestfish-actions.pod:1299
22668 #, no-wrap
22669 msgid ""
22670 " get-autosync\n"
22671 "\n"
22672 msgstr ""
22673
22674 #. type: =head2
22675 #: ../fish/guestfish-actions.pod:1303
22676 msgid "get-direct"
22677 msgstr ""
22678
22679 #. type: verbatim
22680 #: ../fish/guestfish-actions.pod:1305
22681 #, no-wrap
22682 msgid ""
22683 " get-direct\n"
22684 "\n"
22685 msgstr ""
22686
22687 #. type: =head2
22688 #: ../fish/guestfish-actions.pod:1309
22689 msgid "get-e2label"
22690 msgstr ""
22691
22692 #. type: verbatim
22693 #: ../fish/guestfish-actions.pod:1311
22694 #, no-wrap
22695 msgid ""
22696 " get-e2label device\n"
22697 "\n"
22698 msgstr ""
22699
22700 #. type: =head2
22701 #: ../fish/guestfish-actions.pod:1323
22702 msgid "get-e2uuid"
22703 msgstr ""
22704
22705 #. type: verbatim
22706 #: ../fish/guestfish-actions.pod:1325
22707 #, no-wrap
22708 msgid ""
22709 " get-e2uuid device\n"
22710 "\n"
22711 msgstr ""
22712
22713 #. type: =head2
22714 #: ../fish/guestfish-actions.pod:1337
22715 msgid "get-memsize"
22716 msgstr ""
22717
22718 #. type: verbatim
22719 #: ../fish/guestfish-actions.pod:1339
22720 #, no-wrap
22721 msgid ""
22722 " get-memsize\n"
22723 "\n"
22724 msgstr ""
22725
22726 #. type: textblock
22727 #: ../fish/guestfish-actions.pod:1344
22728 msgid ""
22729 "If L</set-memsize> was not called on this handle, and if "
22730 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
22731 "value for memsize."
22732 msgstr ""
22733
22734 #. type: =head2
22735 #: ../fish/guestfish-actions.pod:1351
22736 msgid "get-network"
22737 msgstr ""
22738
22739 #. type: verbatim
22740 #: ../fish/guestfish-actions.pod:1353
22741 #, no-wrap
22742 msgid ""
22743 " get-network\n"
22744 "\n"
22745 msgstr ""
22746
22747 #. type: =head2
22748 #: ../fish/guestfish-actions.pod:1357
22749 msgid "get-path"
22750 msgstr ""
22751
22752 #. type: verbatim
22753 #: ../fish/guestfish-actions.pod:1359
22754 #, no-wrap
22755 msgid ""
22756 " get-path\n"
22757 "\n"
22758 msgstr ""
22759
22760 #. type: =head2
22761 #: ../fish/guestfish-actions.pod:1366
22762 msgid "get-pid"
22763 msgstr ""
22764
22765 #. type: =head2
22766 #: ../fish/guestfish-actions.pod:1368
22767 msgid "pid"
22768 msgstr ""
22769
22770 #. type: verbatim
22771 #: ../fish/guestfish-actions.pod:1370
22772 #, no-wrap
22773 msgid ""
22774 " get-pid\n"
22775 "\n"
22776 msgstr ""
22777
22778 #. type: =head2
22779 #: ../fish/guestfish-actions.pod:1377
22780 msgid "get-qemu"
22781 msgstr ""
22782
22783 #. type: verbatim
22784 #: ../fish/guestfish-actions.pod:1379
22785 #, no-wrap
22786 msgid ""
22787 " get-qemu\n"
22788 "\n"
22789 msgstr ""
22790
22791 #. type: =head2
22792 #: ../fish/guestfish-actions.pod:1386
22793 msgid "get-recovery-proc"
22794 msgstr ""
22795
22796 #. type: verbatim
22797 #: ../fish/guestfish-actions.pod:1388
22798 #, no-wrap
22799 msgid ""
22800 " get-recovery-proc\n"
22801 "\n"
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../fish/guestfish-actions.pod:1392
22806 msgid "get-selinux"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../fish/guestfish-actions.pod:1394
22811 #, no-wrap
22812 msgid ""
22813 " get-selinux\n"
22814 "\n"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../fish/guestfish-actions.pod:1396
22819 msgid ""
22820 "This returns the current setting of the selinux flag which is passed to the "
22821 "appliance at boot time.  See L</set-selinux>."
22822 msgstr ""
22823
22824 #. type: =head2
22825 #: ../fish/guestfish-actions.pod:1402
22826 msgid "get-state"
22827 msgstr ""
22828
22829 #. type: verbatim
22830 #: ../fish/guestfish-actions.pod:1404
22831 #, no-wrap
22832 msgid ""
22833 " get-state\n"
22834 "\n"
22835 msgstr ""
22836
22837 #. type: =head2
22838 #: ../fish/guestfish-actions.pod:1411
22839 msgid "get-trace"
22840 msgstr ""
22841
22842 #. type: verbatim
22843 #: ../fish/guestfish-actions.pod:1413
22844 #, no-wrap
22845 msgid ""
22846 " get-trace\n"
22847 "\n"
22848 msgstr ""
22849
22850 #. type: =head2
22851 #: ../fish/guestfish-actions.pod:1417
22852 msgid "get-umask"
22853 msgstr ""
22854
22855 #. type: verbatim
22856 #: ../fish/guestfish-actions.pod:1419
22857 #, no-wrap
22858 msgid ""
22859 " get-umask\n"
22860 "\n"
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../fish/guestfish-actions.pod:1421
22865 msgid ""
22866 "Return the current umask.  By default the umask is C<022> unless it has been "
22867 "set by calling L</umask>."
22868 msgstr ""
22869
22870 #. type: =head2
22871 #: ../fish/guestfish-actions.pod:1424
22872 msgid "get-verbose"
22873 msgstr ""
22874
22875 #. type: verbatim
22876 #: ../fish/guestfish-actions.pod:1426
22877 #, no-wrap
22878 msgid ""
22879 " get-verbose\n"
22880 "\n"
22881 msgstr ""
22882
22883 #. type: =head2
22884 #: ../fish/guestfish-actions.pod:1430
22885 msgid "getcon"
22886 msgstr ""
22887
22888 #. type: verbatim
22889 #: ../fish/guestfish-actions.pod:1432
22890 #, no-wrap
22891 msgid ""
22892 " getcon\n"
22893 "\n"
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../fish/guestfish-actions.pod:1436
22898 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
22899 msgstr ""
22900
22901 #. type: =head2
22902 #: ../fish/guestfish-actions.pod:1439
22903 msgid "getxattr"
22904 msgstr ""
22905
22906 #. type: verbatim
22907 #: ../fish/guestfish-actions.pod:1441
22908 #, no-wrap
22909 msgid ""
22910 " getxattr path name\n"
22911 "\n"
22912 msgstr ""
22913
22914 #. type: textblock
22915 #: ../fish/guestfish-actions.pod:1443
22916 msgid ""
22917 "Get a single extended attribute from file C<path> named C<name>.  This call "
22918 "follows symlinks.  If you want to lookup an extended attribute for the "
22919 "symlink itself, use L</lgetxattr>."
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2453
22924 msgid ""
22925 "Normally it is better to get all extended attributes from a file in one go "
22926 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
22927 "buggy and do not provide a way to list out attributes.  For these "
22928 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
22929 "attributes you want in advance and call this function."
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../fish/guestfish-actions.pod:1457
22934 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
22935 msgstr ""
22936
22937 #. type: =head2
22938 #: ../fish/guestfish-actions.pod:1459
22939 msgid "getxattrs"
22940 msgstr ""
22941
22942 #. type: verbatim
22943 #: ../fish/guestfish-actions.pod:1461
22944 #, no-wrap
22945 msgid ""
22946 " getxattrs path\n"
22947 "\n"
22948 msgstr ""
22949
22950 #. type: textblock
22951 #: ../fish/guestfish-actions.pod:1469
22952 msgid "See also: L</lgetxattrs>, L<attr(5)>."
22953 msgstr ""
22954
22955 #. type: =head2
22956 #: ../fish/guestfish-actions.pod:1471
22957 msgid "glob-expand"
22958 msgstr ""
22959
22960 #. type: verbatim
22961 #: ../fish/guestfish-actions.pod:1473
22962 #, no-wrap
22963 msgid ""
22964 " glob-expand pattern\n"
22965 "\n"
22966 msgstr ""
22967
22968 #. type: =head2
22969 #: ../fish/guestfish-actions.pod:1486
22970 msgid "grep"
22971 msgstr ""
22972
22973 #. type: verbatim
22974 #: ../fish/guestfish-actions.pod:1488
22975 #, no-wrap
22976 msgid ""
22977 " grep regex path\n"
22978 "\n"
22979 msgstr ""
22980
22981 #. type: =head2
22982 #: ../fish/guestfish-actions.pod:1496
22983 msgid "grepi"
22984 msgstr ""
22985
22986 #. type: verbatim
22987 #: ../fish/guestfish-actions.pod:1498
22988 #, no-wrap
22989 msgid ""
22990 " grepi regex path\n"
22991 "\n"
22992 msgstr ""
22993
22994 #. type: =head2
22995 #: ../fish/guestfish-actions.pod:1506
22996 msgid "grub-install"
22997 msgstr ""
22998
22999 #. type: verbatim
23000 #: ../fish/guestfish-actions.pod:1508
23001 #, no-wrap
23002 msgid ""
23003 " grub-install root device\n"
23004 "\n"
23005 msgstr ""
23006
23007 #. type: =head2
23008 #: ../fish/guestfish-actions.pod:1524
23009 msgid "head"
23010 msgstr ""
23011
23012 #. type: verbatim
23013 #: ../fish/guestfish-actions.pod:1526
23014 #, no-wrap
23015 msgid ""
23016 " head path\n"
23017 "\n"
23018 msgstr ""
23019
23020 #. type: =head2
23021 #: ../fish/guestfish-actions.pod:1534
23022 msgid "head-n"
23023 msgstr ""
23024
23025 #. type: verbatim
23026 #: ../fish/guestfish-actions.pod:1536
23027 #, no-wrap
23028 msgid ""
23029 " head-n nrlines path\n"
23030 "\n"
23031 msgstr ""
23032
23033 #. type: =head2
23034 #: ../fish/guestfish-actions.pod:1549
23035 msgid "hexdump"
23036 msgstr ""
23037
23038 #. type: verbatim
23039 #: ../fish/guestfish-actions.pod:1551
23040 #, no-wrap
23041 msgid ""
23042 " hexdump path\n"
23043 "\n"
23044 msgstr ""
23045
23046 #. type: =head2
23047 #: ../fish/guestfish-actions.pod:1559
23048 msgid "initrd-cat"
23049 msgstr ""
23050
23051 #. type: verbatim
23052 #: ../fish/guestfish-actions.pod:1561
23053 #, no-wrap
23054 msgid ""
23055 " initrd-cat initrdpath filename\n"
23056 "\n"
23057 msgstr ""
23058
23059 #. type: textblock
23060 #: ../fish/guestfish-actions.pod:1573
23061 msgid "See also L</initrd-list>."
23062 msgstr ""
23063
23064 #. type: =head2
23065 #: ../fish/guestfish-actions.pod:1578
23066 msgid "initrd-list"
23067 msgstr ""
23068
23069 #. type: verbatim
23070 #: ../fish/guestfish-actions.pod:1580
23071 #, no-wrap
23072 msgid ""
23073 " initrd-list path\n"
23074 "\n"
23075 msgstr ""
23076
23077 #. type: =head2
23078 #: ../fish/guestfish-actions.pod:1592
23079 msgid "inotify-add-watch"
23080 msgstr ""
23081
23082 #. type: verbatim
23083 #: ../fish/guestfish-actions.pod:1594
23084 #, no-wrap
23085 msgid ""
23086 " inotify-add-watch path mask\n"
23087 "\n"
23088 msgstr ""
23089
23090 #. type: =head2
23091 #: ../fish/guestfish-actions.pod:1606
23092 msgid "inotify-close"
23093 msgstr ""
23094
23095 #. type: verbatim
23096 #: ../fish/guestfish-actions.pod:1608
23097 #, no-wrap
23098 msgid ""
23099 " inotify-close\n"
23100 "\n"
23101 msgstr ""
23102
23103 #. type: =head2
23104 #: ../fish/guestfish-actions.pod:1614
23105 msgid "inotify-files"
23106 msgstr ""
23107
23108 #. type: verbatim
23109 #: ../fish/guestfish-actions.pod:1616
23110 #, no-wrap
23111 msgid ""
23112 " inotify-files\n"
23113 "\n"
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../fish/guestfish-actions.pod:1618
23118 msgid ""
23119 "This function is a helpful wrapper around L</inotify-read> which just "
23120 "returns a list of pathnames of objects that were touched.  The returned "
23121 "pathnames are sorted and deduplicated."
23122 msgstr ""
23123
23124 #. type: =head2
23125 #: ../fish/guestfish-actions.pod:1622
23126 msgid "inotify-init"
23127 msgstr ""
23128
23129 #. type: verbatim
23130 #: ../fish/guestfish-actions.pod:1624
23131 #, no-wrap
23132 msgid ""
23133 " inotify-init maxevents\n"
23134 "\n"
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../fish/guestfish-actions.pod:1630
23139 msgid ""
23140 "C<maxevents> is the maximum number of events which will be queued up between "
23141 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
23142 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
23143 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
23144 "but records the fact that it threw them away by setting a flag "
23145 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../fish/guestfish-actions.pod:1640
23150 msgid ""
23151 "Before any events are generated, you have to add some watches to the "
23152 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
23153 "L</inotify-watch-all>."
23154 msgstr ""
23155
23156 #. type: textblock
23157 #: ../fish/guestfish-actions.pod:1646
23158 msgid ""
23159 "Queued up events should be read periodically by calling L</inotify-read> (or "
23160 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
23161 "If you don't read the events out often enough then you risk the internal "
23162 "queue overflowing."
23163 msgstr ""
23164
23165 #. type: textblock
23166 #: ../fish/guestfish-actions.pod:1653
23167 msgid ""
23168 "The handle should be closed after use by calling L</inotify-close>.  This "
23169 "also removes any watches automatically."
23170 msgstr ""
23171
23172 #. type: =head2
23173 #: ../fish/guestfish-actions.pod:1662
23174 msgid "inotify-read"
23175 msgstr ""
23176
23177 #. type: verbatim
23178 #: ../fish/guestfish-actions.pod:1664
23179 #, no-wrap
23180 msgid ""
23181 " inotify-read\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../fish/guestfish-actions.pod:1677
23187 msgid "inotify-rm-watch"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../fish/guestfish-actions.pod:1679
23192 #, no-wrap
23193 msgid ""
23194 " inotify-rm-watch wd\n"
23195 "\n"
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../fish/guestfish-actions.pod:1681
23200 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23201 msgstr ""
23202
23203 #. type: =head2
23204 #: ../fish/guestfish-actions.pod:1684
23205 msgid "inspect-get-arch"
23206 msgstr ""
23207
23208 #. type: verbatim
23209 #: ../fish/guestfish-actions.pod:1686
23210 #, no-wrap
23211 msgid ""
23212 " inspect-get-arch root\n"
23213 "\n"
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704 ../fish/guestfish-actions.pod:1790 ../fish/guestfish-actions.pod:1826 ../fish/guestfish-actions.pod:1844 ../fish/guestfish-actions.pod:1878 ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1914 ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:2008 ../fish/guestfish-actions.pod:2025 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2103 ../fish/guestfish-actions.pod:2119 ../fish/guestfish-actions.pod:2135 ../fish/guestfish-actions.pod:2148 ../fish/guestfish-actions.pod:2161 ../fish/guestfish-actions.pod:2176
23218 msgid ""
23219 "This function should only be called with a root device string as returned by "
23220 "L</inspect-os>."
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../fish/guestfish-actions.pod:1691
23225 msgid ""
23226 "This returns the architecture of the inspected operating system.  The "
23227 "possible return values are listed under L</file-architecture>."
23228 msgstr ""
23229
23230 #. type: =head2
23231 #: ../fish/guestfish-actions.pod:1700
23232 msgid "inspect-get-distro"
23233 msgstr ""
23234
23235 #. type: verbatim
23236 #: ../fish/guestfish-actions.pod:1702
23237 #, no-wrap
23238 msgid ""
23239 " inspect-get-distro root\n"
23240 "\n"
23241 msgstr ""
23242
23243 #. type: =head2
23244 #: ../fish/guestfish-actions.pod:1786
23245 msgid "inspect-get-drive-mappings"
23246 msgstr ""
23247
23248 #. type: verbatim
23249 #: ../fish/guestfish-actions.pod:1788
23250 #, no-wrap
23251 msgid ""
23252 " inspect-get-drive-mappings root\n"
23253 "\n"
23254 msgstr ""
23255
23256 #. type: textblock
23257 #: ../fish/guestfish-actions.pod:1818
23258 msgid ""
23259 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23260 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
23261 msgstr ""
23262
23263 #. type: =head2
23264 #: ../fish/guestfish-actions.pod:1822
23265 msgid "inspect-get-filesystems"
23266 msgstr ""
23267
23268 #. type: verbatim
23269 #: ../fish/guestfish-actions.pod:1824
23270 #, no-wrap
23271 msgid ""
23272 " inspect-get-filesystems root\n"
23273 "\n"
23274 msgstr ""
23275
23276 #. type: textblock
23277 #: ../fish/guestfish-actions.pod:1837
23278 msgid ""
23279 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23280 "L</inspect-get-mountpoints>."
23281 msgstr ""
23282
23283 #. type: =head2
23284 #: ../fish/guestfish-actions.pod:1840
23285 msgid "inspect-get-format"
23286 msgstr ""
23287
23288 #. type: verbatim
23289 #: ../fish/guestfish-actions.pod:1842
23290 #, no-wrap
23291 msgid ""
23292 " inspect-get-format root\n"
23293 "\n"
23294 msgstr ""
23295
23296 #. type: =head2
23297 #: ../fish/guestfish-actions.pod:1874
23298 msgid "inspect-get-hostname"
23299 msgstr ""
23300
23301 #. type: verbatim
23302 #: ../fish/guestfish-actions.pod:1876
23303 #, no-wrap
23304 msgid ""
23305 " inspect-get-hostname root\n"
23306 "\n"
23307 msgstr ""
23308
23309 #. type: =head2
23310 #: ../fish/guestfish-actions.pod:1889
23311 msgid "inspect-get-major-version"
23312 msgstr ""
23313
23314 #. type: verbatim
23315 #: ../fish/guestfish-actions.pod:1891
23316 #, no-wrap
23317 msgid ""
23318 " inspect-get-major-version root\n"
23319 "\n"
23320 msgstr ""
23321
23322 #. type: =head2
23323 #: ../fish/guestfish-actions.pod:1910
23324 msgid "inspect-get-minor-version"
23325 msgstr ""
23326
23327 #. type: verbatim
23328 #: ../fish/guestfish-actions.pod:1912
23329 #, no-wrap
23330 msgid ""
23331 " inspect-get-minor-version root\n"
23332 "\n"
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../fish/guestfish-actions.pod:1922
23337 msgid ""
23338 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23339 "L</inspect-get-major-version>."
23340 msgstr ""
23341
23342 #. type: =head2
23343 #: ../fish/guestfish-actions.pod:1925
23344 msgid "inspect-get-mountpoints"
23345 msgstr ""
23346
23347 #. type: verbatim
23348 #: ../fish/guestfish-actions.pod:1927
23349 #, no-wrap
23350 msgid ""
23351 " inspect-get-mountpoints root\n"
23352 "\n"
23353 msgstr ""
23354
23355 #. type: textblock
23356 #: ../fish/guestfish-actions.pod:1949
23357 msgid ""
23358 "For operating systems like Windows which still use drive letters, this call "
23359 "will only return an entry for the first drive \"mounted on\" C</>.  For "
23360 "information about the mapping of drive letters to partitions, see "
23361 "L</inspect-get-drive-mappings>."
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../fish/guestfish-actions.pod:1955
23366 msgid ""
23367 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23368 "L</inspect-get-filesystems>."
23369 msgstr ""
23370
23371 #. type: =head2
23372 #: ../fish/guestfish-actions.pod:1958
23373 msgid "inspect-get-package-format"
23374 msgstr ""
23375
23376 #. type: verbatim
23377 #: ../fish/guestfish-actions.pod:1960
23378 #, no-wrap
23379 msgid ""
23380 " inspect-get-package-format root\n"
23381 "\n"
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../fish/guestfish-actions.pod:1965
23386 msgid ""
23387 "This function and L</inspect-get-package-management> return the package "
23388 "format and package management tool used by the inspected operating system.  "
23389 "For example for Fedora these functions would return C<rpm> (package format) "
23390 "and C<yum> (package management)."
23391 msgstr ""
23392
23393 #. type: =head2
23394 #: ../fish/guestfish-actions.pod:1980
23395 msgid "inspect-get-package-management"
23396 msgstr ""
23397
23398 #. type: verbatim
23399 #: ../fish/guestfish-actions.pod:1982
23400 #, no-wrap
23401 msgid ""
23402 " inspect-get-package-management root\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../fish/guestfish-actions.pod:1987
23408 msgid ""
23409 "L</inspect-get-package-format> and this function return the package format "
23410 "and package management tool used by the inspected operating system.  For "
23411 "example for Fedora these functions would return C<rpm> (package format) and "
23412 "C<yum> (package management)."
23413 msgstr ""
23414
23415 #. type: =head2
23416 #: ../fish/guestfish-actions.pod:2004
23417 msgid "inspect-get-product-name"
23418 msgstr ""
23419
23420 #. type: verbatim
23421 #: ../fish/guestfish-actions.pod:2006
23422 #, no-wrap
23423 msgid ""
23424 " inspect-get-product-name root\n"
23425 "\n"
23426 msgstr ""
23427
23428 #. type: =head2
23429 #: ../fish/guestfish-actions.pod:2021
23430 msgid "inspect-get-product-variant"
23431 msgstr ""
23432
23433 #. type: verbatim
23434 #: ../fish/guestfish-actions.pod:2023
23435 #, no-wrap
23436 msgid ""
23437 " inspect-get-product-variant root\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../fish/guestfish-actions.pod:2047
23443 msgid ""
23444 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23445 "L</inspect-get-product-name>, L</inspect-get-major-version>."
23446 msgstr ""
23447
23448 #. type: =head2
23449 #: ../fish/guestfish-actions.pod:2051
23450 msgid "inspect-get-roots"
23451 msgstr ""
23452
23453 #. type: verbatim
23454 #: ../fish/guestfish-actions.pod:2053
23455 #, no-wrap
23456 msgid ""
23457 " inspect-get-roots\n"
23458 "\n"
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../fish/guestfish-actions.pod:2055
23463 msgid ""
23464 "This function is a convenient way to get the list of root devices, as "
23465 "returned from a previous call to L</inspect-os>, but without redoing the "
23466 "whole inspection process."
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../fish/guestfish-actions.pod:2059
23471 msgid ""
23472 "This returns an empty list if either no root devices were found or the "
23473 "caller has not called L</inspect-os>."
23474 msgstr ""
23475
23476 #. type: =head2
23477 #: ../fish/guestfish-actions.pod:2064
23478 msgid "inspect-get-type"
23479 msgstr ""
23480
23481 #. type: verbatim
23482 #: ../fish/guestfish-actions.pod:2066
23483 #, no-wrap
23484 msgid ""
23485 " inspect-get-type root\n"
23486 "\n"
23487 msgstr ""
23488
23489 #. type: =head2
23490 #: ../fish/guestfish-actions.pod:2099
23491 msgid "inspect-get-windows-current-control-set"
23492 msgstr ""
23493
23494 #. type: verbatim
23495 #: ../fish/guestfish-actions.pod:2101
23496 #, no-wrap
23497 msgid ""
23498 " inspect-get-windows-current-control-set root\n"
23499 "\n"
23500 msgstr ""
23501
23502 #. type: =head2
23503 #: ../fish/guestfish-actions.pod:2115
23504 msgid "inspect-get-windows-systemroot"
23505 msgstr ""
23506
23507 #. type: verbatim
23508 #: ../fish/guestfish-actions.pod:2117
23509 #, no-wrap
23510 msgid ""
23511 " inspect-get-windows-systemroot root\n"
23512 "\n"
23513 msgstr ""
23514
23515 #. type: =head2
23516 #: ../fish/guestfish-actions.pod:2131
23517 msgid "inspect-is-live"
23518 msgstr ""
23519
23520 #. type: verbatim
23521 #: ../fish/guestfish-actions.pod:2133
23522 #, no-wrap
23523 msgid ""
23524 " inspect-is-live root\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: textblock
23529 #: ../fish/guestfish-actions.pod:2138
23530 msgid ""
23531 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23532 "then this returns true if a live image was detected on the disk."
23533 msgstr ""
23534
23535 #. type: =head2
23536 #: ../fish/guestfish-actions.pod:2144
23537 msgid "inspect-is-multipart"
23538 msgstr ""
23539
23540 #. type: verbatim
23541 #: ../fish/guestfish-actions.pod:2146
23542 #, no-wrap
23543 msgid ""
23544 " inspect-is-multipart root\n"
23545 "\n"
23546 msgstr ""
23547
23548 #. type: textblock
23549 #: ../fish/guestfish-actions.pod:2151
23550 msgid ""
23551 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23552 "then this returns true if the disk is part of a set."
23553 msgstr ""
23554
23555 #. type: =head2
23556 #: ../fish/guestfish-actions.pod:2157
23557 msgid "inspect-is-netinst"
23558 msgstr ""
23559
23560 #. type: verbatim
23561 #: ../fish/guestfish-actions.pod:2159
23562 #, no-wrap
23563 msgid ""
23564 " inspect-is-netinst root\n"
23565 "\n"
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../fish/guestfish-actions.pod:2164
23570 msgid ""
23571 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23572 "then this returns true if the disk is a network installer, ie. not a "
23573 "self-contained install CD but one which is likely to require network access "
23574 "to complete the install."
23575 msgstr ""
23576
23577 #. type: =head2
23578 #: ../fish/guestfish-actions.pod:2172
23579 msgid "inspect-list-applications"
23580 msgstr ""
23581
23582 #. type: verbatim
23583 #: ../fish/guestfish-actions.pod:2174
23584 #, no-wrap
23585 msgid ""
23586 " inspect-list-applications root\n"
23587 "\n"
23588 msgstr ""
23589
23590 #. type: textblock
23591 #: ../fish/guestfish-actions.pod:2181
23592 msgid ""
23593 "I<Note:> This call works differently from other parts of the inspection "
23594 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
23595 "then mount up the disks, before calling this.  Listing applications is a "
23596 "significantly more difficult operation which requires access to the full "
23597 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
23598 "are just returning data cached in the libguestfs handle, this call actually "
23599 "reads parts of the mounted filesystems during the call."
23600 msgstr ""
23601
23602 #. type: =head2
23603 #: ../fish/guestfish-actions.pod:2271
23604 msgid "inspect-os"
23605 msgstr ""
23606
23607 #. type: verbatim
23608 #: ../fish/guestfish-actions.pod:2273
23609 #, no-wrap
23610 msgid ""
23611 " inspect-os\n"
23612 "\n"
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../fish/guestfish-actions.pod:2288
23617 msgid ""
23618 "You can pass the root string(s) returned to other L</inspect-get-*> "
23619 "functions in order to query further information about each operating system, "
23620 "such as the name and version."
23621 msgstr ""
23622
23623 #. type: textblock
23624 #: ../fish/guestfish-actions.pod:2293
23625 msgid ""
23626 "This function uses other libguestfs features such as L</mount-ro> and "
23627 "L</umount-all> in order to mount and unmount filesystems and look at the "
23628 "contents.  This should be called with no disks currently mounted.  The "
23629 "function may also use Augeas, so any existing Augeas handle will be closed."
23630 msgstr ""
23631
23632 #. type: textblock
23633 #: ../fish/guestfish-actions.pod:2305 ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2527
23634 msgid "See also L</list-filesystems>."
23635 msgstr ""
23636
23637 #. type: =head2
23638 #: ../fish/guestfish-actions.pod:2307
23639 msgid "is-blockdev"
23640 msgstr ""
23641
23642 #. type: verbatim
23643 #: ../fish/guestfish-actions.pod:2309
23644 #, no-wrap
23645 msgid ""
23646 " is-blockdev path\n"
23647 "\n"
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../fish/guestfish-actions.pod:2314 ../fish/guestfish-actions.pod:2332 ../fish/guestfish-actions.pod:2351 ../fish/guestfish-actions.pod:2360 ../fish/guestfish-actions.pod:2370 ../fish/guestfish-actions.pod:2404 ../fish/guestfish-actions.pod:2413
23652 msgid "See also L</stat>."
23653 msgstr ""
23654
23655 #. type: =head2
23656 #: ../fish/guestfish-actions.pod:2316
23657 msgid "is-busy"
23658 msgstr ""
23659
23660 #. type: verbatim
23661 #: ../fish/guestfish-actions.pod:2318
23662 #, no-wrap
23663 msgid ""
23664 " is-busy\n"
23665 "\n"
23666 msgstr ""
23667
23668 #. type: =head2
23669 #: ../fish/guestfish-actions.pod:2325
23670 msgid "is-chardev"
23671 msgstr ""
23672
23673 #. type: verbatim
23674 #: ../fish/guestfish-actions.pod:2327
23675 #, no-wrap
23676 msgid ""
23677 " is-chardev path\n"
23678 "\n"
23679 msgstr ""
23680
23681 #. type: =head2
23682 #: ../fish/guestfish-actions.pod:2334
23683 msgid "is-config"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../fish/guestfish-actions.pod:2336
23688 #, no-wrap
23689 msgid ""
23690 " is-config\n"
23691 "\n"
23692 msgstr ""
23693
23694 #. type: =head2
23695 #: ../fish/guestfish-actions.pod:2343
23696 msgid "is-dir"
23697 msgstr ""
23698
23699 #. type: verbatim
23700 #: ../fish/guestfish-actions.pod:2345
23701 #, no-wrap
23702 msgid ""
23703 " is-dir path\n"
23704 "\n"
23705 msgstr ""
23706
23707 #. type: =head2
23708 #: ../fish/guestfish-actions.pod:2353
23709 msgid "is-fifo"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../fish/guestfish-actions.pod:2355
23714 #, no-wrap
23715 msgid ""
23716 " is-fifo path\n"
23717 "\n"
23718 msgstr ""
23719
23720 #. type: =head2
23721 #: ../fish/guestfish-actions.pod:2362
23722 msgid "is-file"
23723 msgstr ""
23724
23725 #. type: verbatim
23726 #: ../fish/guestfish-actions.pod:2364
23727 #, no-wrap
23728 msgid ""
23729 " is-file path\n"
23730 "\n"
23731 msgstr ""
23732
23733 #. type: =head2
23734 #: ../fish/guestfish-actions.pod:2372
23735 msgid "is-launching"
23736 msgstr ""
23737
23738 #. type: verbatim
23739 #: ../fish/guestfish-actions.pod:2374
23740 #, no-wrap
23741 msgid ""
23742 " is-launching\n"
23743 "\n"
23744 msgstr ""
23745
23746 #. type: =head2
23747 #: ../fish/guestfish-actions.pod:2381
23748 msgid "is-lv"
23749 msgstr ""
23750
23751 #. type: verbatim
23752 #: ../fish/guestfish-actions.pod:2383
23753 #, no-wrap
23754 msgid ""
23755 " is-lv device\n"
23756 "\n"
23757 msgstr ""
23758
23759 #. type: =head2
23760 #: ../fish/guestfish-actions.pod:2388
23761 msgid "is-ready"
23762 msgstr ""
23763
23764 #. type: verbatim
23765 #: ../fish/guestfish-actions.pod:2390
23766 #, no-wrap
23767 msgid ""
23768 " is-ready\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: =head2
23773 #: ../fish/guestfish-actions.pod:2397
23774 msgid "is-socket"
23775 msgstr ""
23776
23777 #. type: verbatim
23778 #: ../fish/guestfish-actions.pod:2399
23779 #, no-wrap
23780 msgid ""
23781 " is-socket path\n"
23782 "\n"
23783 msgstr ""
23784
23785 #. type: =head2
23786 #: ../fish/guestfish-actions.pod:2406
23787 msgid "is-symlink"
23788 msgstr ""
23789
23790 #. type: verbatim
23791 #: ../fish/guestfish-actions.pod:2408
23792 #, no-wrap
23793 msgid ""
23794 " is-symlink path\n"
23795 "\n"
23796 msgstr ""
23797
23798 #. type: =head2
23799 #: ../fish/guestfish-actions.pod:2415
23800 msgid "kill-subprocess"
23801 msgstr ""
23802
23803 #. type: verbatim
23804 #: ../fish/guestfish-actions.pod:2417
23805 #, no-wrap
23806 msgid ""
23807 " kill-subprocess\n"
23808 "\n"
23809 msgstr ""
23810
23811 #. type: =head2
23812 #: ../fish/guestfish-actions.pod:2421
23813 msgid "launch"
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../fish/guestfish-actions.pod:2423
23818 msgid "run"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../fish/guestfish-actions.pod:2425
23823 #, no-wrap
23824 msgid ""
23825 " launch\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../fish/guestfish-actions.pod:2433
23831 msgid "lchown"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../fish/guestfish-actions.pod:2435
23836 #, no-wrap
23837 msgid ""
23838 " lchown owner group path\n"
23839 "\n"
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../fish/guestfish-actions.pod:2437
23844 msgid ""
23845 "Change the file owner to C<owner> and group to C<group>.  This is like "
23846 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
23847 "the target."
23848 msgstr ""
23849
23850 #. type: =head2
23851 #: ../fish/guestfish-actions.pod:2445
23852 msgid "lgetxattr"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../fish/guestfish-actions.pod:2447
23857 #, no-wrap
23858 msgid ""
23859 " lgetxattr path name\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../fish/guestfish-actions.pod:2463
23865 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
23866 msgstr ""
23867
23868 #. type: =head2
23869 #: ../fish/guestfish-actions.pod:2465
23870 msgid "lgetxattrs"
23871 msgstr ""
23872
23873 #. type: verbatim
23874 #: ../fish/guestfish-actions.pod:2467
23875 #, no-wrap
23876 msgid ""
23877 " lgetxattrs path\n"
23878 "\n"
23879 msgstr ""
23880
23881 #. type: textblock
23882 #: ../fish/guestfish-actions.pod:2469
23883 msgid ""
23884 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
23885 "it returns the extended attributes of the link itself."
23886 msgstr ""
23887
23888 #. type: =head2
23889 #: ../fish/guestfish-actions.pod:2473
23890 msgid "list-devices"
23891 msgstr ""
23892
23893 #. type: verbatim
23894 #: ../fish/guestfish-actions.pod:2475
23895 #, no-wrap
23896 msgid ""
23897 " list-devices\n"
23898 "\n"
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../fish/guestfish-actions.pod:2483
23903 msgid "list-filesystems"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../fish/guestfish-actions.pod:2485
23908 #, no-wrap
23909 msgid ""
23910 " list-filesystems\n"
23911 "\n"
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../fish/guestfish-actions.pod:2504
23916 msgid ""
23917 "This command runs other libguestfs commands, which might include L</mount> "
23918 "and L</umount>, and therefore you should use this soon after launch and only "
23919 "when nothing is mounted."
23920 msgstr ""
23921
23922 #. type: textblock
23923 #: ../fish/guestfish-actions.pod:2508
23924 msgid ""
23925 "Not all of the filesystems returned will be mountable.  In particular, swap "
23926 "partitions are returned in the list.  Also this command does not check that "
23927 "each filesystem found is valid and mountable, and some filesystems might be "
23928 "mountable but require special options.  Filesystems may not all belong to a "
23929 "single logical operating system (use L</inspect-os> to look for OSes)."
23930 msgstr ""
23931
23932 #. type: =head2
23933 #: ../fish/guestfish-actions.pod:2516
23934 msgid "list-partitions"
23935 msgstr ""
23936
23937 #. type: verbatim
23938 #: ../fish/guestfish-actions.pod:2518
23939 #, no-wrap
23940 msgid ""
23941 " list-partitions\n"
23942 "\n"
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../fish/guestfish-actions.pod:2524
23947 msgid ""
23948 "This does not return logical volumes.  For that you will need to call "
23949 "L</lvs>."
23950 msgstr ""
23951
23952 #. type: =head2
23953 #: ../fish/guestfish-actions.pod:2529
23954 msgid "ll"
23955 msgstr ""
23956
23957 #. type: verbatim
23958 #: ../fish/guestfish-actions.pod:2531
23959 #, no-wrap
23960 msgid ""
23961 " ll directory\n"
23962 "\n"
23963 msgstr ""
23964
23965 #. type: =head2
23966 #: ../fish/guestfish-actions.pod:2539
23967 msgid "ln"
23968 msgstr ""
23969
23970 #. type: verbatim
23971 #: ../fish/guestfish-actions.pod:2541
23972 #, no-wrap
23973 msgid ""
23974 " ln target linkname\n"
23975 "\n"
23976 msgstr ""
23977
23978 #. type: =head2
23979 #: ../fish/guestfish-actions.pod:2545
23980 msgid "ln-f"
23981 msgstr ""
23982
23983 #. type: verbatim
23984 #: ../fish/guestfish-actions.pod:2547
23985 #, no-wrap
23986 msgid ""
23987 " ln-f target linkname\n"
23988 "\n"
23989 msgstr ""
23990
23991 #. type: =head2
23992 #: ../fish/guestfish-actions.pod:2552
23993 msgid "ln-s"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../fish/guestfish-actions.pod:2554
23998 #, no-wrap
23999 msgid ""
24000 " ln-s target linkname\n"
24001 "\n"
24002 msgstr ""
24003
24004 #. type: =head2
24005 #: ../fish/guestfish-actions.pod:2558
24006 msgid "ln-sf"
24007 msgstr ""
24008
24009 #. type: verbatim
24010 #: ../fish/guestfish-actions.pod:2560
24011 #, no-wrap
24012 msgid ""
24013 " ln-sf target linkname\n"
24014 "\n"
24015 msgstr ""
24016
24017 #. type: =head2
24018 #: ../fish/guestfish-actions.pod:2565
24019 msgid "lremovexattr"
24020 msgstr ""
24021
24022 #. type: verbatim
24023 #: ../fish/guestfish-actions.pod:2567
24024 #, no-wrap
24025 msgid ""
24026 " lremovexattr xattr path\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../fish/guestfish-actions.pod:2569
24032 msgid ""
24033 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
24034 "it removes an extended attribute of the link itself."
24035 msgstr ""
24036
24037 #. type: =head2
24038 #: ../fish/guestfish-actions.pod:2573
24039 msgid "ls"
24040 msgstr ""
24041
24042 #. type: verbatim
24043 #: ../fish/guestfish-actions.pod:2575
24044 #, no-wrap
24045 msgid ""
24046 " ls directory\n"
24047 "\n"
24048 msgstr ""
24049
24050 #. type: textblock
24051 #: ../fish/guestfish-actions.pod:2581
24052 msgid ""
24053 "This command is mostly useful for interactive sessions.  Programs should "
24054 "probably use L</readdir> instead."
24055 msgstr ""
24056
24057 #. type: =head2
24058 #: ../fish/guestfish-actions.pod:2584
24059 msgid "lsetxattr"
24060 msgstr ""
24061
24062 #. type: verbatim
24063 #: ../fish/guestfish-actions.pod:2586
24064 #, no-wrap
24065 msgid ""
24066 " lsetxattr xattr val vallen path\n"
24067 "\n"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../fish/guestfish-actions.pod:2588
24072 msgid ""
24073 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
24074 "sets an extended attribute of the link itself."
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../fish/guestfish-actions.pod:2592
24079 msgid "lstat"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../fish/guestfish-actions.pod:2594
24084 #, no-wrap
24085 msgid ""
24086 " lstat path\n"
24087 "\n"
24088 msgstr ""
24089
24090 #. type: textblock
24091 #: ../fish/guestfish-actions.pod:2598
24092 msgid ""
24093 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
24094 "the link is stat-ed, not the file it refers to."
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../fish/guestfish-actions.pod:2604
24099 msgid "lstatlist"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../fish/guestfish-actions.pod:2606
24104 #, no-wrap
24105 msgid ""
24106 " lstatlist path 'names ...'\n"
24107 "\n"
24108 msgstr ""
24109
24110 #. type: textblock
24111 #: ../fish/guestfish-actions.pod:2608
24112 msgid ""
24113 "This call allows you to perform the L</lstat> operation on multiple files, "
24114 "where all files are in the directory C<path>.  C<names> is the list of files "
24115 "from this directory."
24116 msgstr ""
24117
24118 #. type: textblock
24119 #: ../fish/guestfish-actions.pod:2617
24120 msgid ""
24121 "This call is intended for programs that want to efficiently list a directory "
24122 "contents without making many round-trips.  See also L</lxattrlist> for a "
24123 "similarly efficient call for getting extended attributes.  Very long "
24124 "directory listings might cause the protocol message size to be exceeded, "
24125 "causing this call to fail.  The caller must split up such requests into "
24126 "smaller groups of names."
24127 msgstr ""
24128
24129 #. type: =head2
24130 #: ../fish/guestfish-actions.pod:2625
24131 msgid "luks-add-key"
24132 msgstr ""
24133
24134 #. type: verbatim
24135 #: ../fish/guestfish-actions.pod:2627
24136 #, no-wrap
24137 msgid ""
24138 " luks-add-key device keyslot\n"
24139 "\n"
24140 msgstr ""
24141
24142 #. type: textblock
24143 #: ../fish/guestfish-actions.pod:2634
24144 msgid ""
24145 "Note that if C<keyslot> already contains a key, then this command will "
24146 "fail.  You have to use L</luks-kill-slot> first to remove that key."
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../fish/guestfish-actions.pod:2638 ../fish/guestfish-actions.pod:2660 ../fish/guestfish-actions.pod:2673 ../fish/guestfish-actions.pod:2687 ../fish/guestfish-actions.pod:2710 ../fish/guestfish-actions.pod:2720
24151 msgid ""
24152 "This command has one or more key or passphrase parameters.  Guestfish will "
24153 "prompt for these separately."
24154 msgstr ""
24155
24156 #. type: =head2
24157 #: ../fish/guestfish-actions.pod:2641
24158 msgid "luks-close"
24159 msgstr ""
24160
24161 #. type: verbatim
24162 #: ../fish/guestfish-actions.pod:2643
24163 #, no-wrap
24164 msgid ""
24165 " luks-close device\n"
24166 "\n"
24167 msgstr ""
24168
24169 #. type: textblock
24170 #: ../fish/guestfish-actions.pod:2645
24171 msgid ""
24172 "This closes a LUKS device that was created earlier by L</luks-open> or "
24173 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
24174 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
24175 "underlying block device."
24176 msgstr ""
24177
24178 #. type: =head2
24179 #: ../fish/guestfish-actions.pod:2651
24180 msgid "luks-format"
24181 msgstr ""
24182
24183 #. type: verbatim
24184 #: ../fish/guestfish-actions.pod:2653
24185 #, no-wrap
24186 msgid ""
24187 " luks-format device keyslot\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: =head2
24192 #: ../fish/guestfish-actions.pod:2666
24193 msgid "luks-format-cipher"
24194 msgstr ""
24195
24196 #. type: verbatim
24197 #: ../fish/guestfish-actions.pod:2668
24198 #, no-wrap
24199 msgid ""
24200 " luks-format-cipher device keyslot cipher\n"
24201 "\n"
24202 msgstr ""
24203
24204 #. type: textblock
24205 #: ../fish/guestfish-actions.pod:2670
24206 msgid ""
24207 "This command is the same as L</luks-format> but it also allows you to set "
24208 "the C<cipher> used."
24209 msgstr ""
24210
24211 #. type: =head2
24212 #: ../fish/guestfish-actions.pod:2679
24213 msgid "luks-kill-slot"
24214 msgstr ""
24215
24216 #. type: verbatim
24217 #: ../fish/guestfish-actions.pod:2681
24218 #, no-wrap
24219 msgid ""
24220 " luks-kill-slot device keyslot\n"
24221 "\n"
24222 msgstr ""
24223
24224 #. type: =head2
24225 #: ../fish/guestfish-actions.pod:2690
24226 msgid "luks-open"
24227 msgstr ""
24228
24229 #. type: verbatim
24230 #: ../fish/guestfish-actions.pod:2692
24231 #, no-wrap
24232 msgid ""
24233 " luks-open device mapname\n"
24234 "\n"
24235 msgstr ""
24236
24237 #. type: textblock
24238 #: ../fish/guestfish-actions.pod:2706
24239 msgid ""
24240 "If this block device contains LVM volume groups, then calling L</vgscan> "
24241 "followed by L</vg-activate-all> will make them visible."
24242 msgstr ""
24243
24244 #. type: =head2
24245 #: ../fish/guestfish-actions.pod:2713
24246 msgid "luks-open-ro"
24247 msgstr ""
24248
24249 #. type: verbatim
24250 #: ../fish/guestfish-actions.pod:2715
24251 #, no-wrap
24252 msgid ""
24253 " luks-open-ro device mapname\n"
24254 "\n"
24255 msgstr ""
24256
24257 #. type: textblock
24258 #: ../fish/guestfish-actions.pod:2717
24259 msgid ""
24260 "This is the same as L</luks-open> except that a read-only mapping is "
24261 "created."
24262 msgstr ""
24263
24264 #. type: =head2
24265 #: ../fish/guestfish-actions.pod:2723
24266 msgid "lvcreate"
24267 msgstr ""
24268
24269 #. type: verbatim
24270 #: ../fish/guestfish-actions.pod:2725
24271 #, no-wrap
24272 msgid ""
24273 " lvcreate logvol volgroup mbytes\n"
24274 "\n"
24275 msgstr ""
24276
24277 #. type: =head2
24278 #: ../fish/guestfish-actions.pod:2730
24279 msgid "lvm-canonical-lv-name"
24280 msgstr ""
24281
24282 #. type: verbatim
24283 #: ../fish/guestfish-actions.pod:2732
24284 #, no-wrap
24285 msgid ""
24286 " lvm-canonical-lv-name lvname\n"
24287 "\n"
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../fish/guestfish-actions.pod:2741
24292 msgid "See also L</is-lv>."
24293 msgstr ""
24294
24295 #. type: =head2
24296 #: ../fish/guestfish-actions.pod:2743
24297 msgid "lvm-clear-filter"
24298 msgstr ""
24299
24300 #. type: verbatim
24301 #: ../fish/guestfish-actions.pod:2745
24302 #, no-wrap
24303 msgid ""
24304 " lvm-clear-filter\n"
24305 "\n"
24306 msgstr ""
24307
24308 #. type: textblock
24309 #: ../fish/guestfish-actions.pod:2747
24310 msgid ""
24311 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
24312 "block device."
24313 msgstr ""
24314
24315 #. type: =head2
24316 #: ../fish/guestfish-actions.pod:2753
24317 msgid "lvm-remove-all"
24318 msgstr ""
24319
24320 #. type: verbatim
24321 #: ../fish/guestfish-actions.pod:2755
24322 #, no-wrap
24323 msgid ""
24324 " lvm-remove-all\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: =head2
24329 #: ../fish/guestfish-actions.pod:2763
24330 msgid "lvm-set-filter"
24331 msgstr ""
24332
24333 #. type: verbatim
24334 #: ../fish/guestfish-actions.pod:2765
24335 #, no-wrap
24336 msgid ""
24337 " lvm-set-filter 'devices ...'\n"
24338 "\n"
24339 msgstr ""
24340
24341 #. type: =head2
24342 #: ../fish/guestfish-actions.pod:2790
24343 msgid "lvremove"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../fish/guestfish-actions.pod:2792
24348 #, no-wrap
24349 msgid ""
24350 " lvremove device\n"
24351 "\n"
24352 msgstr ""
24353
24354 #. type: =head2
24355 #: ../fish/guestfish-actions.pod:2800
24356 msgid "lvrename"
24357 msgstr ""
24358
24359 #. type: verbatim
24360 #: ../fish/guestfish-actions.pod:2802
24361 #, no-wrap
24362 msgid ""
24363 " lvrename logvol newlogvol\n"
24364 "\n"
24365 msgstr ""
24366
24367 #. type: =head2
24368 #: ../fish/guestfish-actions.pod:2806
24369 msgid "lvresize"
24370 msgstr ""
24371
24372 #. type: verbatim
24373 #: ../fish/guestfish-actions.pod:2808
24374 #, no-wrap
24375 msgid ""
24376 " lvresize device mbytes\n"
24377 "\n"
24378 msgstr ""
24379
24380 #. type: =head2
24381 #: ../fish/guestfish-actions.pod:2814
24382 msgid "lvresize-free"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../fish/guestfish-actions.pod:2816
24387 #, no-wrap
24388 msgid ""
24389 " lvresize-free lv percent\n"
24390 "\n"
24391 msgstr ""
24392
24393 #. type: =head2
24394 #: ../fish/guestfish-actions.pod:2824
24395 msgid "lvs"
24396 msgstr ""
24397
24398 #. type: verbatim
24399 #: ../fish/guestfish-actions.pod:2826
24400 #, no-wrap
24401 msgid ""
24402 " lvs\n"
24403 "\n"
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../fish/guestfish-actions.pod:2834
24408 msgid "See also L</lvs-full>, L</list-filesystems>."
24409 msgstr ""
24410
24411 #. type: =head2
24412 #: ../fish/guestfish-actions.pod:2836
24413 msgid "lvs-full"
24414 msgstr ""
24415
24416 #. type: verbatim
24417 #: ../fish/guestfish-actions.pod:2838
24418 #, no-wrap
24419 msgid ""
24420 " lvs-full\n"
24421 "\n"
24422 msgstr ""
24423
24424 #. type: =head2
24425 #: ../fish/guestfish-actions.pod:2843
24426 msgid "lvuuid"
24427 msgstr ""
24428
24429 #. type: verbatim
24430 #: ../fish/guestfish-actions.pod:2845
24431 #, no-wrap
24432 msgid ""
24433 " lvuuid device\n"
24434 "\n"
24435 msgstr ""
24436
24437 #. type: =head2
24438 #: ../fish/guestfish-actions.pod:2849
24439 msgid "lxattrlist"
24440 msgstr ""
24441
24442 #. type: verbatim
24443 #: ../fish/guestfish-actions.pod:2851
24444 #, no-wrap
24445 msgid ""
24446 " lxattrlist path 'names ...'\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../fish/guestfish-actions.pod:2867
24452 msgid ""
24453 "This call is intended for programs that want to efficiently list a directory "
24454 "contents without making many round-trips.  See also L</lstatlist> for a "
24455 "similarly efficient call for getting standard stats.  Very long directory "
24456 "listings might cause the protocol message size to be exceeded, causing this "
24457 "call to fail.  The caller must split up such requests into smaller groups of "
24458 "names."
24459 msgstr ""
24460
24461 #. type: =head2
24462 #: ../fish/guestfish-actions.pod:2875
24463 msgid "mkdir"
24464 msgstr ""
24465
24466 #. type: verbatim
24467 #: ../fish/guestfish-actions.pod:2877
24468 #, no-wrap
24469 msgid ""
24470 " mkdir path\n"
24471 "\n"
24472 msgstr ""
24473
24474 #. type: =head2
24475 #: ../fish/guestfish-actions.pod:2881
24476 msgid "mkdir-mode"
24477 msgstr ""
24478
24479 #. type: verbatim
24480 #: ../fish/guestfish-actions.pod:2883
24481 #, no-wrap
24482 msgid ""
24483 " mkdir-mode path mode\n"
24484 "\n"
24485 msgstr ""
24486
24487 #. type: textblock
24488 #: ../fish/guestfish-actions.pod:2892
24489 msgid "See also L</mkdir>, L</umask>"
24490 msgstr ""
24491
24492 #. type: =head2
24493 #: ../fish/guestfish-actions.pod:2894
24494 msgid "mkdir-p"
24495 msgstr ""
24496
24497 #. type: verbatim
24498 #: ../fish/guestfish-actions.pod:2896
24499 #, no-wrap
24500 msgid ""
24501 " mkdir-p path\n"
24502 "\n"
24503 msgstr ""
24504
24505 #. type: =head2
24506 #: ../fish/guestfish-actions.pod:2901
24507 msgid "mkdtemp"
24508 msgstr ""
24509
24510 #. type: verbatim
24511 #: ../fish/guestfish-actions.pod:2903
24512 #, no-wrap
24513 msgid ""
24514 " mkdtemp template\n"
24515 "\n"
24516 msgstr ""
24517
24518 #. type: =head2
24519 #: ../fish/guestfish-actions.pod:2924
24520 msgid "mke2fs-J"
24521 msgstr ""
24522
24523 #. type: verbatim
24524 #: ../fish/guestfish-actions.pod:2926
24525 #, no-wrap
24526 msgid ""
24527 " mke2fs-J fstype blocksize device journal\n"
24528 "\n"
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../fish/guestfish-actions.pod:2934
24533 msgid "See also L</mke2journal>."
24534 msgstr ""
24535
24536 #. type: =head2
24537 #: ../fish/guestfish-actions.pod:2936
24538 msgid "mke2fs-JL"
24539 msgstr ""
24540
24541 #. type: verbatim
24542 #: ../fish/guestfish-actions.pod:2938
24543 #, no-wrap
24544 msgid ""
24545 " mke2fs-JL fstype blocksize device label\n"
24546 "\n"
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../fish/guestfish-actions.pod:2943
24551 msgid "See also L</mke2journal-L>."
24552 msgstr ""
24553
24554 #. type: =head2
24555 #: ../fish/guestfish-actions.pod:2945
24556 msgid "mke2fs-JU"
24557 msgstr ""
24558
24559 #. type: verbatim
24560 #: ../fish/guestfish-actions.pod:2947
24561 #, no-wrap
24562 msgid ""
24563 " mke2fs-JU fstype blocksize device uuid\n"
24564 "\n"
24565 msgstr ""
24566
24567 #. type: textblock
24568 #: ../fish/guestfish-actions.pod:2952
24569 msgid "See also L</mke2journal-U>."
24570 msgstr ""
24571
24572 #. type: =head2
24573 #: ../fish/guestfish-actions.pod:2954
24574 msgid "mke2journal"
24575 msgstr ""
24576
24577 #. type: verbatim
24578 #: ../fish/guestfish-actions.pod:2956
24579 #, no-wrap
24580 msgid ""
24581 " mke2journal blocksize device\n"
24582 "\n"
24583 msgstr ""
24584
24585 #. type: =head2
24586 #: ../fish/guestfish-actions.pod:2963
24587 msgid "mke2journal-L"
24588 msgstr ""
24589
24590 #. type: verbatim
24591 #: ../fish/guestfish-actions.pod:2965
24592 #, no-wrap
24593 msgid ""
24594 " mke2journal-L blocksize label device\n"
24595 "\n"
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../fish/guestfish-actions.pod:2969
24600 msgid "mke2journal-U"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../fish/guestfish-actions.pod:2971
24605 #, no-wrap
24606 msgid ""
24607 " mke2journal-U blocksize uuid device\n"
24608 "\n"
24609 msgstr ""
24610
24611 #. type: =head2
24612 #: ../fish/guestfish-actions.pod:2975
24613 msgid "mkfifo"
24614 msgstr ""
24615
24616 #. type: verbatim
24617 #: ../fish/guestfish-actions.pod:2977
24618 #, no-wrap
24619 msgid ""
24620 " mkfifo mode path\n"
24621 "\n"
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../fish/guestfish-actions.pod:2979
24626 msgid ""
24627 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
24628 "is just a convenient wrapper around L</mknod>."
24629 msgstr ""
24630
24631 #. type: =head2
24632 #: ../fish/guestfish-actions.pod:2985
24633 msgid "mkfs"
24634 msgstr ""
24635
24636 #. type: verbatim
24637 #: ../fish/guestfish-actions.pod:2987
24638 #, no-wrap
24639 msgid ""
24640 " mkfs fstype device\n"
24641 "\n"
24642 msgstr ""
24643
24644 #. type: =head2
24645 #: ../fish/guestfish-actions.pod:2993
24646 msgid "mkfs-b"
24647 msgstr ""
24648
24649 #. type: verbatim
24650 #: ../fish/guestfish-actions.pod:2995
24651 #, no-wrap
24652 msgid ""
24653 " mkfs-b fstype blocksize device\n"
24654 "\n"
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../fish/guestfish-actions.pod:2997
24659 msgid ""
24660 "This call is similar to L</mkfs>, but it allows you to control the block "
24661 "size of the resulting filesystem.  Supported block sizes depend on the "
24662 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
24663 msgstr ""
24664
24665 #. type: =head2
24666 #: ../fish/guestfish-actions.pod:3012
24667 msgid "mkfs-opts"
24668 msgstr ""
24669
24670 #. type: verbatim
24671 #: ../fish/guestfish-actions.pod:3014
24672 #, no-wrap
24673 msgid ""
24674 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
24675 "\n"
24676 msgstr ""
24677
24678 #. type: =head2
24679 #: ../fish/guestfish-actions.pod:3049
24680 msgid "mkmountpoint"
24681 msgstr ""
24682
24683 #. type: verbatim
24684 #: ../fish/guestfish-actions.pod:3051
24685 #, no-wrap
24686 msgid ""
24687 " mkmountpoint exemptpath\n"
24688 "\n"
24689 msgstr ""
24690
24691 #. type: textblock
24692 #: ../fish/guestfish-actions.pod:3053
24693 msgid ""
24694 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
24695 "to create extra mountpoints before mounting the first filesystem."
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../fish/guestfish-actions.pod:3077
24700 msgid ""
24701 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
24702 "unexpected errors if you try to mix these calls.  It is safest to manually "
24703 "unmount filesystems and remove mountpoints after use."
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../fish/guestfish-actions.pod:3081
24708 msgid ""
24709 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
24710 "for this to work for manual mountpoints, you must ensure that the innermost "
24711 "mountpoints have the longest pathnames, as in the example code above."
24712 msgstr ""
24713
24714 #. type: textblock
24715 #: ../fish/guestfish-actions.pod:3088
24716 msgid ""
24717 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
24718 "L</umount-all> to be called when the handle is closed which can also trigger "
24719 "these issues."
24720 msgstr ""
24721
24722 #. type: =head2
24723 #: ../fish/guestfish-actions.pod:3092
24724 msgid "mknod"
24725 msgstr ""
24726
24727 #. type: verbatim
24728 #: ../fish/guestfish-actions.pod:3094
24729 #, no-wrap
24730 msgid ""
24731 " mknod mode devmajor devminor path\n"
24732 "\n"
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../fish/guestfish-actions.pod:3104
24737 msgid ""
24738 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
24739 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
24740 "regular file).  These constants are available in the standard Linux header "
24741 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
24742 "wrappers around this command which bitwise OR in the appropriate constant "
24743 "for you."
24744 msgstr ""
24745
24746 #. type: =head2
24747 #: ../fish/guestfish-actions.pod:3114
24748 msgid "mknod-b"
24749 msgstr ""
24750
24751 #. type: verbatim
24752 #: ../fish/guestfish-actions.pod:3116
24753 #, no-wrap
24754 msgid ""
24755 " mknod-b mode devmajor devminor path\n"
24756 "\n"
24757 msgstr ""
24758
24759 #. type: textblock
24760 #: ../fish/guestfish-actions.pod:3118
24761 msgid ""
24762 "This call creates a block device node called C<path> with mode C<mode> and "
24763 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
24764 "wrapper around L</mknod>."
24765 msgstr ""
24766
24767 #. type: =head2
24768 #: ../fish/guestfish-actions.pod:3124
24769 msgid "mknod-c"
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../fish/guestfish-actions.pod:3126
24774 #, no-wrap
24775 msgid ""
24776 " mknod-c mode devmajor devminor path\n"
24777 "\n"
24778 msgstr ""
24779
24780 #. type: textblock
24781 #: ../fish/guestfish-actions.pod:3128
24782 msgid ""
24783 "This call creates a char device node called C<path> with mode C<mode> and "
24784 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
24785 "wrapper around L</mknod>."
24786 msgstr ""
24787
24788 #. type: =head2
24789 #: ../fish/guestfish-actions.pod:3134
24790 msgid "mkswap"
24791 msgstr ""
24792
24793 #. type: verbatim
24794 #: ../fish/guestfish-actions.pod:3136
24795 #, no-wrap
24796 msgid ""
24797 " mkswap device\n"
24798 "\n"
24799 msgstr ""
24800
24801 #. type: =head2
24802 #: ../fish/guestfish-actions.pod:3140
24803 msgid "mkswap-L"
24804 msgstr ""
24805
24806 #. type: verbatim
24807 #: ../fish/guestfish-actions.pod:3142
24808 #, no-wrap
24809 msgid ""
24810 " mkswap-L label device\n"
24811 "\n"
24812 msgstr ""
24813
24814 #. type: =head2
24815 #: ../fish/guestfish-actions.pod:3150
24816 msgid "mkswap-U"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../fish/guestfish-actions.pod:3152
24821 #, no-wrap
24822 msgid ""
24823 " mkswap-U uuid device\n"
24824 "\n"
24825 msgstr ""
24826
24827 #. type: =head2
24828 #: ../fish/guestfish-actions.pod:3156
24829 msgid "mkswap-file"
24830 msgstr ""
24831
24832 #. type: verbatim
24833 #: ../fish/guestfish-actions.pod:3158
24834 #, no-wrap
24835 msgid ""
24836 " mkswap-file path\n"
24837 "\n"
24838 msgstr ""
24839
24840 #. type: textblock
24841 #: ../fish/guestfish-actions.pod:3162
24842 msgid ""
24843 "This command just writes a swap file signature to an existing file.  To "
24844 "create the file itself, use something like L</fallocate>."
24845 msgstr ""
24846
24847 #. type: =head2
24848 #: ../fish/guestfish-actions.pod:3165
24849 msgid "modprobe"
24850 msgstr ""
24851
24852 #. type: verbatim
24853 #: ../fish/guestfish-actions.pod:3167
24854 #, no-wrap
24855 msgid ""
24856 " modprobe modulename\n"
24857 "\n"
24858 msgstr ""
24859
24860 #. type: =head2
24861 #: ../fish/guestfish-actions.pod:3174
24862 msgid "mount"
24863 msgstr ""
24864
24865 #. type: verbatim
24866 #: ../fish/guestfish-actions.pod:3176
24867 #, no-wrap
24868 msgid ""
24869 " mount device mountpoint\n"
24870 "\n"
24871 msgstr ""
24872
24873 #. type: textblock
24874 #: ../fish/guestfish-actions.pod:3192
24875 msgid ""
24876 "B<Important note:> When you use this call, the filesystem options C<sync> "
24877 "and C<noatime> are set implicitly.  This was originally done because we "
24878 "thought it would improve reliability, but it turns out that I<-o sync> has a "
24879 "very large negative performance impact and negligible effect on "
24880 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
24881 "code that needs performance, and instead use L</mount-options> (use an empty "
24882 "string for the first parameter if you don't want any options)."
24883 msgstr ""
24884
24885 #. type: =head2
24886 #: ../fish/guestfish-actions.pod:3202
24887 msgid "mount-loop"
24888 msgstr ""
24889
24890 #. type: verbatim
24891 #: ../fish/guestfish-actions.pod:3204
24892 #, no-wrap
24893 msgid ""
24894 " mount-loop file mountpoint\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: =head2
24899 #: ../fish/guestfish-actions.pod:3210
24900 msgid "mount-options"
24901 msgstr ""
24902
24903 #. type: verbatim
24904 #: ../fish/guestfish-actions.pod:3212
24905 #, no-wrap
24906 msgid ""
24907 " mount-options options device mountpoint\n"
24908 "\n"
24909 msgstr ""
24910
24911 #. type: textblock
24912 #: ../fish/guestfish-actions.pod:3214
24913 msgid ""
24914 "This is the same as the L</mount> command, but it allows you to set the "
24915 "mount options as for the L<mount(8)> I<-o> flag."
24916 msgstr ""
24917
24918 #. type: =head2
24919 #: ../fish/guestfish-actions.pod:3222
24920 msgid "mount-ro"
24921 msgstr ""
24922
24923 #. type: verbatim
24924 #: ../fish/guestfish-actions.pod:3224
24925 #, no-wrap
24926 msgid ""
24927 " mount-ro device mountpoint\n"
24928 "\n"
24929 msgstr ""
24930
24931 #. type: textblock
24932 #: ../fish/guestfish-actions.pod:3226
24933 msgid ""
24934 "This is the same as the L</mount> command, but it mounts the filesystem with "
24935 "the read-only (I<-o ro>) flag."
24936 msgstr ""
24937
24938 #. type: =head2
24939 #: ../fish/guestfish-actions.pod:3229
24940 msgid "mount-vfs"
24941 msgstr ""
24942
24943 #. type: verbatim
24944 #: ../fish/guestfish-actions.pod:3231
24945 #, no-wrap
24946 msgid ""
24947 " mount-vfs options vfstype device mountpoint\n"
24948 "\n"
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../fish/guestfish-actions.pod:3233
24953 msgid ""
24954 "This is the same as the L</mount> command, but it allows you to set both the "
24955 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
24956 msgstr ""
24957
24958 #. type: =head2
24959 #: ../fish/guestfish-actions.pod:3237
24960 msgid "mountpoints"
24961 msgstr ""
24962
24963 #. type: verbatim
24964 #: ../fish/guestfish-actions.pod:3239
24965 #, no-wrap
24966 msgid ""
24967 " mountpoints\n"
24968 "\n"
24969 msgstr ""
24970
24971 #. type: textblock
24972 #: ../fish/guestfish-actions.pod:3241
24973 msgid ""
24974 "This call is similar to L</mounts>.  That call returns a list of devices.  "
24975 "This one returns a hash table (map) of device name to directory where the "
24976 "device is mounted."
24977 msgstr ""
24978
24979 #. type: =head2
24980 #: ../fish/guestfish-actions.pod:3245
24981 msgid "mounts"
24982 msgstr ""
24983
24984 #. type: verbatim
24985 #: ../fish/guestfish-actions.pod:3247
24986 #, no-wrap
24987 msgid ""
24988 " mounts\n"
24989 "\n"
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../fish/guestfish-actions.pod:3254
24994 msgid "See also: L</mountpoints>"
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../fish/guestfish-actions.pod:3256
24999 msgid "mv"
25000 msgstr ""
25001
25002 #. type: verbatim
25003 #: ../fish/guestfish-actions.pod:3258
25004 #, no-wrap
25005 msgid ""
25006 " mv src dest\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: =head2
25011 #: ../fish/guestfish-actions.pod:3263
25012 msgid "ntfs-3g-probe"
25013 msgstr ""
25014
25015 #. type: verbatim
25016 #: ../fish/guestfish-actions.pod:3265
25017 #, no-wrap
25018 msgid ""
25019 " ntfs-3g-probe true|false device\n"
25020 "\n"
25021 msgstr ""
25022
25023 #. type: =head2
25024 #: ../fish/guestfish-actions.pod:3279
25025 msgid "ntfsresize"
25026 msgstr ""
25027
25028 #. type: verbatim
25029 #: ../fish/guestfish-actions.pod:3281
25030 #, no-wrap
25031 msgid ""
25032 " ntfsresize device\n"
25033 "\n"
25034 msgstr ""
25035
25036 #. type: =head2
25037 #: ../fish/guestfish-actions.pod:3287
25038 msgid "ntfsresize-size"
25039 msgstr ""
25040
25041 #. type: verbatim
25042 #: ../fish/guestfish-actions.pod:3289
25043 #, no-wrap
25044 msgid ""
25045 " ntfsresize-size device size\n"
25046 "\n"
25047 msgstr ""
25048
25049 #. type: textblock
25050 #: ../fish/guestfish-actions.pod:3291
25051 msgid ""
25052 "This command is the same as L</ntfsresize> except that it allows you to "
25053 "specify the new size (in bytes) explicitly."
25054 msgstr ""
25055
25056 #. type: =head2
25057 #: ../fish/guestfish-actions.pod:3294
25058 msgid "part-add"
25059 msgstr ""
25060
25061 #. type: verbatim
25062 #: ../fish/guestfish-actions.pod:3296
25063 #, no-wrap
25064 msgid ""
25065 " part-add device prlogex startsect endsect\n"
25066 "\n"
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../fish/guestfish-actions.pod:3298
25071 msgid ""
25072 "This command adds a partition to C<device>.  If there is no partition table "
25073 "on the device, call L</part-init> first."
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../fish/guestfish-actions.pod:3310
25078 msgid ""
25079 "Creating a partition which covers the whole disk is not so easy.  Use "
25080 "L</part-disk> to do that."
25081 msgstr ""
25082
25083 #. type: =head2
25084 #: ../fish/guestfish-actions.pod:3313
25085 msgid "part-del"
25086 msgstr ""
25087
25088 #. type: verbatim
25089 #: ../fish/guestfish-actions.pod:3315
25090 #, no-wrap
25091 msgid ""
25092 " part-del device partnum\n"
25093 "\n"
25094 msgstr ""
25095
25096 #. type: =head2
25097 #: ../fish/guestfish-actions.pod:3323
25098 msgid "part-disk"
25099 msgstr ""
25100
25101 #. type: verbatim
25102 #: ../fish/guestfish-actions.pod:3325
25103 #, no-wrap
25104 msgid ""
25105 " part-disk device parttype\n"
25106 "\n"
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../fish/guestfish-actions.pod:3327
25111 msgid ""
25112 "This command is simply a combination of L</part-init> followed by "
25113 "L</part-add> to create a single primary partition covering the whole disk."
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../fish/guestfish-actions.pod:3331
25118 msgid ""
25119 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
25120 "possible values are described in L</part-init>."
25121 msgstr ""
25122
25123 #. type: =head2
25124 #: ../fish/guestfish-actions.pod:3337
25125 msgid "part-get-bootable"
25126 msgstr ""
25127
25128 #. type: verbatim
25129 #: ../fish/guestfish-actions.pod:3339
25130 #, no-wrap
25131 msgid ""
25132 " part-get-bootable device partnum\n"
25133 "\n"
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../fish/guestfish-actions.pod:3344
25138 msgid "See also L</part-set-bootable>."
25139 msgstr ""
25140
25141 #. type: =head2
25142 #: ../fish/guestfish-actions.pod:3346
25143 msgid "part-get-mbr-id"
25144 msgstr ""
25145
25146 #. type: verbatim
25147 #: ../fish/guestfish-actions.pod:3348
25148 #, no-wrap
25149 msgid ""
25150 " part-get-mbr-id device partnum\n"
25151 "\n"
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../fish/guestfish-actions.pod:3353 ../fish/guestfish-actions.pod:3491
25156 msgid ""
25157 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
25158 "undefined results for other partition table types (see "
25159 "L</part-get-parttype>)."
25160 msgstr ""
25161
25162 #. type: =head2
25163 #: ../fish/guestfish-actions.pod:3357
25164 msgid "part-get-parttype"
25165 msgstr ""
25166
25167 #. type: verbatim
25168 #: ../fish/guestfish-actions.pod:3359
25169 #, no-wrap
25170 msgid ""
25171 " part-get-parttype device\n"
25172 "\n"
25173 msgstr ""
25174
25175 #. type: textblock
25176 #: ../fish/guestfish-actions.pod:3364
25177 msgid ""
25178 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25179 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25180 "possible, although unusual.  See L</part-init> for a full list."
25181 msgstr ""
25182
25183 #. type: =head2
25184 #: ../fish/guestfish-actions.pod:3369
25185 msgid "part-init"
25186 msgstr ""
25187
25188 #. type: verbatim
25189 #: ../fish/guestfish-actions.pod:3371
25190 #, no-wrap
25191 msgid ""
25192 " part-init device parttype\n"
25193 "\n"
25194 msgstr ""
25195
25196 #. type: textblock
25197 #: ../fish/guestfish-actions.pod:3377
25198 msgid ""
25199 "Initially there are no partitions.  Following this, you should call "
25200 "L</part-add> for each partition required."
25201 msgstr ""
25202
25203 #. type: =head2
25204 #: ../fish/guestfish-actions.pod:3440
25205 msgid "part-list"
25206 msgstr ""
25207
25208 #. type: verbatim
25209 #: ../fish/guestfish-actions.pod:3442
25210 #, no-wrap
25211 msgid ""
25212 " part-list device\n"
25213 "\n"
25214 msgstr ""
25215
25216 #. type: textblock
25217 #: ../fish/guestfish-actions.pod:3457
25218 msgid ""
25219 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25220 "the device's sector size, see L</blockdev-getss>."
25221 msgstr ""
25222
25223 #. type: =head2
25224 #: ../fish/guestfish-actions.pod:3470
25225 msgid "part-set-bootable"
25226 msgstr ""
25227
25228 #. type: verbatim
25229 #: ../fish/guestfish-actions.pod:3472
25230 #, no-wrap
25231 msgid ""
25232 " part-set-bootable device partnum true|false\n"
25233 "\n"
25234 msgstr ""
25235
25236 #. type: =head2
25237 #: ../fish/guestfish-actions.pod:3481
25238 msgid "part-set-mbr-id"
25239 msgstr ""
25240
25241 #. type: verbatim
25242 #: ../fish/guestfish-actions.pod:3483
25243 #, no-wrap
25244 msgid ""
25245 " part-set-mbr-id device partnum idbyte\n"
25246 "\n"
25247 msgstr ""
25248
25249 #. type: =head2
25250 #: ../fish/guestfish-actions.pod:3495
25251 msgid "part-set-name"
25252 msgstr ""
25253
25254 #. type: verbatim
25255 #: ../fish/guestfish-actions.pod:3497
25256 #, no-wrap
25257 msgid ""
25258 " part-set-name device partnum name\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../fish/guestfish-actions.pod:3505
25264 msgid "part-to-dev"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../fish/guestfish-actions.pod:3507
25269 #, no-wrap
25270 msgid ""
25271 " part-to-dev partition\n"
25272 "\n"
25273 msgstr ""
25274
25275 #. type: textblock
25276 #: ../fish/guestfish-actions.pod:3513
25277 msgid ""
25278 "The named partition must exist, for example as a string returned from "
25279 "L</list-partitions>."
25280 msgstr ""
25281
25282 #. type: =head2
25283 #: ../fish/guestfish-actions.pod:3516
25284 msgid "ping-daemon"
25285 msgstr ""
25286
25287 #. type: verbatim
25288 #: ../fish/guestfish-actions.pod:3518
25289 #, no-wrap
25290 msgid ""
25291 " ping-daemon\n"
25292 "\n"
25293 msgstr ""
25294
25295 #. type: =head2
25296 #: ../fish/guestfish-actions.pod:3525
25297 msgid "pread"
25298 msgstr ""
25299
25300 #. type: verbatim
25301 #: ../fish/guestfish-actions.pod:3527
25302 #, no-wrap
25303 msgid ""
25304 " pread path count offset\n"
25305 "\n"
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../fish/guestfish-actions.pod:3535
25310 msgid "See also L</pwrite>, L</pread-device>."
25311 msgstr ""
25312
25313 #. type: =head2
25314 #: ../fish/guestfish-actions.pod:3540
25315 msgid "pread-device"
25316 msgstr ""
25317
25318 #. type: verbatim
25319 #: ../fish/guestfish-actions.pod:3542
25320 #, no-wrap
25321 msgid ""
25322 " pread-device device count offset\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../fish/guestfish-actions.pod:3550
25328 msgid "See also L</pread>."
25329 msgstr ""
25330
25331 #. type: =head2
25332 #: ../fish/guestfish-actions.pod:3555
25333 msgid "pvcreate"
25334 msgstr ""
25335
25336 #. type: verbatim
25337 #: ../fish/guestfish-actions.pod:3557
25338 #, no-wrap
25339 msgid ""
25340 " pvcreate device\n"
25341 "\n"
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../fish/guestfish-actions.pod:3563
25346 msgid "pvremove"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../fish/guestfish-actions.pod:3565
25351 #, no-wrap
25352 msgid ""
25353 " pvremove device\n"
25354 "\n"
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../fish/guestfish-actions.pod:3574
25359 msgid "pvresize"
25360 msgstr ""
25361
25362 #. type: verbatim
25363 #: ../fish/guestfish-actions.pod:3576
25364 #, no-wrap
25365 msgid ""
25366 " pvresize device\n"
25367 "\n"
25368 msgstr ""
25369
25370 #. type: =head2
25371 #: ../fish/guestfish-actions.pod:3581
25372 msgid "pvresize-size"
25373 msgstr ""
25374
25375 #. type: verbatim
25376 #: ../fish/guestfish-actions.pod:3583
25377 #, no-wrap
25378 msgid ""
25379 " pvresize-size device size\n"
25380 "\n"
25381 msgstr ""
25382
25383 #. type: textblock
25384 #: ../fish/guestfish-actions.pod:3585
25385 msgid ""
25386 "This command is the same as L</pvresize> except that it allows you to "
25387 "specify the new size (in bytes) explicitly."
25388 msgstr ""
25389
25390 #. type: =head2
25391 #: ../fish/guestfish-actions.pod:3588
25392 msgid "pvs"
25393 msgstr ""
25394
25395 #. type: verbatim
25396 #: ../fish/guestfish-actions.pod:3590
25397 #, no-wrap
25398 msgid ""
25399 " pvs\n"
25400 "\n"
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../fish/guestfish-actions.pod:3598
25405 msgid "See also L</pvs-full>."
25406 msgstr ""
25407
25408 #. type: =head2
25409 #: ../fish/guestfish-actions.pod:3600
25410 msgid "pvs-full"
25411 msgstr ""
25412
25413 #. type: verbatim
25414 #: ../fish/guestfish-actions.pod:3602
25415 #, no-wrap
25416 msgid ""
25417 " pvs-full\n"
25418 "\n"
25419 msgstr ""
25420
25421 #. type: =head2
25422 #: ../fish/guestfish-actions.pod:3607
25423 msgid "pvuuid"
25424 msgstr ""
25425
25426 #. type: verbatim
25427 #: ../fish/guestfish-actions.pod:3609
25428 #, no-wrap
25429 msgid ""
25430 " pvuuid device\n"
25431 "\n"
25432 msgstr ""
25433
25434 #. type: =head2
25435 #: ../fish/guestfish-actions.pod:3613
25436 msgid "pwrite"
25437 msgstr ""
25438
25439 #. type: verbatim
25440 #: ../fish/guestfish-actions.pod:3615
25441 #, no-wrap
25442 msgid ""
25443 " pwrite path content offset\n"
25444 "\n"
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../fish/guestfish-actions.pod:3626
25449 msgid "See also L</pread>, L</pwrite-device>."
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../fish/guestfish-actions.pod:3631
25454 msgid "pwrite-device"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../fish/guestfish-actions.pod:3633
25459 #, no-wrap
25460 msgid ""
25461 " pwrite-device device content offset\n"
25462 "\n"
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../fish/guestfish-actions.pod:3643
25467 msgid "See also L</pwrite>."
25468 msgstr ""
25469
25470 #. type: =head2
25471 #: ../fish/guestfish-actions.pod:3648
25472 msgid "read-file"
25473 msgstr ""
25474
25475 #. type: verbatim
25476 #: ../fish/guestfish-actions.pod:3650
25477 #, no-wrap
25478 msgid ""
25479 " read-file path\n"
25480 "\n"
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../fish/guestfish-actions.pod:3655
25485 msgid ""
25486 "Unlike L</cat>, this function can correctly handle files that contain "
25487 "embedded ASCII NUL characters.  However unlike L</download>, this function "
25488 "is limited in the total size of file that can be handled."
25489 msgstr ""
25490
25491 #. type: =head2
25492 #: ../fish/guestfish-actions.pod:3663
25493 msgid "read-lines"
25494 msgstr ""
25495
25496 #. type: verbatim
25497 #: ../fish/guestfish-actions.pod:3665
25498 #, no-wrap
25499 msgid ""
25500 " read-lines path\n"
25501 "\n"
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../fish/guestfish-actions.pod:3672
25506 msgid ""
25507 "Note that this function cannot correctly handle binary files (specifically, "
25508 "files containing C<\\0> character which is treated as end of line).  For "
25509 "those you need to use the L</read-file> function which has a more complex "
25510 "interface."
25511 msgstr ""
25512
25513 #. type: =head2
25514 #: ../fish/guestfish-actions.pod:3677
25515 msgid "readdir"
25516 msgstr ""
25517
25518 #. type: verbatim
25519 #: ../fish/guestfish-actions.pod:3679
25520 #, no-wrap
25521 msgid ""
25522 " readdir dir\n"
25523 "\n"
25524 msgstr ""
25525
25526 #. type: textblock
25527 #: ../fish/guestfish-actions.pod:3731
25528 msgid ""
25529 "This function is primarily intended for use by programs.  To get a simple "
25530 "list of names, use L</ls>.  To get a printable directory for human "
25531 "consumption, use L</ll>."
25532 msgstr ""
25533
25534 #. type: =head2
25535 #: ../fish/guestfish-actions.pod:3735
25536 msgid "readlink"
25537 msgstr ""
25538
25539 #. type: verbatim
25540 #: ../fish/guestfish-actions.pod:3737
25541 #, no-wrap
25542 msgid ""
25543 " readlink path\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../fish/guestfish-actions.pod:3741
25549 msgid "readlinklist"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../fish/guestfish-actions.pod:3743
25554 #, no-wrap
25555 msgid ""
25556 " readlinklist path 'names ...'\n"
25557 "\n"
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../fish/guestfish-actions.pod:3767
25562 msgid "realpath"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../fish/guestfish-actions.pod:3769
25567 #, no-wrap
25568 msgid ""
25569 " realpath path\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../fish/guestfish-actions.pod:3774
25575 msgid "removexattr"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../fish/guestfish-actions.pod:3776
25580 #, no-wrap
25581 msgid ""
25582 " removexattr xattr path\n"
25583 "\n"
25584 msgstr ""
25585
25586 #. type: textblock
25587 #: ../fish/guestfish-actions.pod:3781
25588 msgid "See also: L</lremovexattr>, L<attr(5)>."
25589 msgstr ""
25590
25591 #. type: =head2
25592 #: ../fish/guestfish-actions.pod:3783
25593 msgid "resize2fs"
25594 msgstr ""
25595
25596 #. type: verbatim
25597 #: ../fish/guestfish-actions.pod:3785
25598 #, no-wrap
25599 msgid ""
25600 " resize2fs device\n"
25601 "\n"
25602 msgstr ""
25603
25604 #. type: textblock
25605 #: ../fish/guestfish-actions.pod:3790
25606 msgid ""
25607 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
25608 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
25609 "gives an error about this and sometimes not.  In any case, it is always safe "
25610 "to call L</e2fsck-f> before calling this function."
25611 msgstr ""
25612
25613 #. type: =head2
25614 #: ../fish/guestfish-actions.pod:3796
25615 msgid "resize2fs-M"
25616 msgstr ""
25617
25618 #. type: verbatim
25619 #: ../fish/guestfish-actions.pod:3798
25620 #, no-wrap
25621 msgid ""
25622 " resize2fs-M device\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: textblock
25627 #: ../fish/guestfish-actions.pod:3800
25628 msgid ""
25629 "This command is the same as L</resize2fs>, but the filesystem is resized to "
25630 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
25631 "command."
25632 msgstr ""
25633
25634 #. type: textblock
25635 #: ../fish/guestfish-actions.pod:3804
25636 msgid ""
25637 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
25638 "and read the C<Block size> and C<Block count> values.  These two numbers, "
25639 "multiplied together, give the resulting size of the minimal filesystem in "
25640 "bytes."
25641 msgstr ""
25642
25643 #. type: =head2
25644 #: ../fish/guestfish-actions.pod:3809
25645 msgid "resize2fs-size"
25646 msgstr ""
25647
25648 #. type: verbatim
25649 #: ../fish/guestfish-actions.pod:3811
25650 #, no-wrap
25651 msgid ""
25652 " resize2fs-size device size\n"
25653 "\n"
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../fish/guestfish-actions.pod:3813
25658 msgid ""
25659 "This command is the same as L</resize2fs> except that it allows you to "
25660 "specify the new size (in bytes) explicitly."
25661 msgstr ""
25662
25663 #. type: =head2
25664 #: ../fish/guestfish-actions.pod:3816
25665 msgid "rm"
25666 msgstr ""
25667
25668 #. type: verbatim
25669 #: ../fish/guestfish-actions.pod:3818
25670 #, no-wrap
25671 msgid ""
25672 " rm path\n"
25673 "\n"
25674 msgstr ""
25675
25676 #. type: =head2
25677 #: ../fish/guestfish-actions.pod:3822
25678 msgid "rm-rf"
25679 msgstr ""
25680
25681 #. type: verbatim
25682 #: ../fish/guestfish-actions.pod:3824
25683 #, no-wrap
25684 msgid ""
25685 " rm-rf path\n"
25686 "\n"
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../fish/guestfish-actions.pod:3830
25691 msgid "rmdir"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../fish/guestfish-actions.pod:3832
25696 #, no-wrap
25697 msgid ""
25698 " rmdir path\n"
25699 "\n"
25700 msgstr ""
25701
25702 #. type: =head2
25703 #: ../fish/guestfish-actions.pod:3836
25704 msgid "rmmountpoint"
25705 msgstr ""
25706
25707 #. type: verbatim
25708 #: ../fish/guestfish-actions.pod:3838
25709 #, no-wrap
25710 msgid ""
25711 " rmmountpoint exemptpath\n"
25712 "\n"
25713 msgstr ""
25714
25715 #. type: textblock
25716 #: ../fish/guestfish-actions.pod:3840
25717 msgid ""
25718 "This calls removes a mountpoint that was previously created with "
25719 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
25720 msgstr ""
25721
25722 #. type: =head2
25723 #: ../fish/guestfish-actions.pod:3844
25724 msgid "scrub-device"
25725 msgstr ""
25726
25727 #. type: verbatim
25728 #: ../fish/guestfish-actions.pod:3846
25729 #, no-wrap
25730 msgid ""
25731 " scrub-device device\n"
25732 "\n"
25733 msgstr ""
25734
25735 #. type: =head2
25736 #: ../fish/guestfish-actions.pod:3857
25737 msgid "scrub-file"
25738 msgstr ""
25739
25740 #. type: verbatim
25741 #: ../fish/guestfish-actions.pod:3859
25742 #, no-wrap
25743 msgid ""
25744 " scrub-file file\n"
25745 "\n"
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../fish/guestfish-actions.pod:3869
25750 msgid "scrub-freespace"
25751 msgstr ""
25752
25753 #. type: verbatim
25754 #: ../fish/guestfish-actions.pod:3871
25755 #, no-wrap
25756 msgid ""
25757 " scrub-freespace dir\n"
25758 "\n"
25759 msgstr ""
25760
25761 #. type: textblock
25762 #: ../fish/guestfish-actions.pod:3873
25763 msgid ""
25764 "This command creates the directory C<dir> and then fills it with files until "
25765 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
25766 "deletes them.  The intention is to scrub any free space on the partition "
25767 "containing C<dir>."
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../fish/guestfish-actions.pod:3882
25772 msgid "set-append"
25773 msgstr ""
25774
25775 #. type: =head2
25776 #: ../fish/guestfish-actions.pod:3884
25777 msgid "append"
25778 msgstr ""
25779
25780 #. type: verbatim
25781 #: ../fish/guestfish-actions.pod:3886
25782 #, no-wrap
25783 msgid ""
25784 " set-append append\n"
25785 "\n"
25786 msgstr ""
25787
25788 #. type: =head2
25789 #: ../fish/guestfish-actions.pod:3897
25790 msgid "set-attach-method"
25791 msgstr ""
25792
25793 #. type: =head2
25794 #: ../fish/guestfish-actions.pod:3899
25795 msgid "attach-method"
25796 msgstr ""
25797
25798 #. type: verbatim
25799 #: ../fish/guestfish-actions.pod:3901
25800 #, no-wrap
25801 msgid ""
25802 " set-attach-method attachmethod\n"
25803 "\n"
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../fish/guestfish-actions.pod:3923
25808 msgid "set-autosync"
25809 msgstr ""
25810
25811 #. type: =head2
25812 #: ../fish/guestfish-actions.pod:3925
25813 msgid "autosync"
25814 msgstr ""
25815
25816 #. type: verbatim
25817 #: ../fish/guestfish-actions.pod:3927
25818 #, no-wrap
25819 msgid ""
25820 " set-autosync true|false\n"
25821 "\n"
25822 msgstr ""
25823
25824 #. type: =head2
25825 #: ../fish/guestfish-actions.pod:3937
25826 msgid "set-direct"
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../fish/guestfish-actions.pod:3939
25831 msgid "direct"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../fish/guestfish-actions.pod:3941
25836 #, no-wrap
25837 msgid ""
25838 " set-direct true|false\n"
25839 "\n"
25840 msgstr ""
25841
25842 #. type: textblock
25843 #: ../fish/guestfish-actions.pod:3947
25844 msgid ""
25845 "One consequence of this is that log messages aren't caught by the library "
25846 "and handled by L</set-log-message-callback>, but go straight to stdout."
25847 msgstr ""
25848
25849 #. type: =head2
25850 #: ../fish/guestfish-actions.pod:3956
25851 msgid "set-e2label"
25852 msgstr ""
25853
25854 #. type: verbatim
25855 #: ../fish/guestfish-actions.pod:3958
25856 #, no-wrap
25857 msgid ""
25858 " set-e2label device label\n"
25859 "\n"
25860 msgstr ""
25861
25862 #. type: textblock
25863 #: ../fish/guestfish-actions.pod:3964
25864 msgid ""
25865 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
25866 "label on a filesystem."
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../fish/guestfish-actions.pod:3967
25871 msgid "set-e2uuid"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../fish/guestfish-actions.pod:3969
25876 #, no-wrap
25877 msgid ""
25878 " set-e2uuid device uuid\n"
25879 "\n"
25880 msgstr ""
25881
25882 #. type: textblock
25883 #: ../fish/guestfish-actions.pod:3976
25884 msgid ""
25885 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
25886 "UUID of a filesystem."
25887 msgstr ""
25888
25889 #. type: =head2
25890 #: ../fish/guestfish-actions.pod:3979
25891 msgid "set-memsize"
25892 msgstr ""
25893
25894 #. type: =head2
25895 #: ../fish/guestfish-actions.pod:3981
25896 msgid "memsize"
25897 msgstr ""
25898
25899 #. type: verbatim
25900 #: ../fish/guestfish-actions.pod:3983
25901 #, no-wrap
25902 msgid ""
25903 " set-memsize memsize\n"
25904 "\n"
25905 msgstr ""
25906
25907 #. type: textblock
25908 #: ../fish/guestfish-actions.pod:3985
25909 msgid ""
25910 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
25911 "This only has any effect if called before L</launch>."
25912 msgstr ""
25913
25914 #. type: =head2
25915 #: ../fish/guestfish-actions.pod:3996
25916 msgid "set-network"
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../fish/guestfish-actions.pod:3998
25921 msgid "network"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../fish/guestfish-actions.pod:4000
25926 #, no-wrap
25927 msgid ""
25928 " set-network true|false\n"
25929 "\n"
25930 msgstr ""
25931
25932 #. type: textblock
25933 #: ../fish/guestfish-actions.pod:4008
25934 msgid "You must call this before calling L</launch>, otherwise it has no effect."
25935 msgstr ""
25936
25937 #. type: =head2
25938 #: ../fish/guestfish-actions.pod:4011
25939 msgid "set-path"
25940 msgstr ""
25941
25942 #. type: =head2
25943 #: ../fish/guestfish-actions.pod:4013
25944 msgid "path"
25945 msgstr ""
25946
25947 #. type: verbatim
25948 #: ../fish/guestfish-actions.pod:4015
25949 #, no-wrap
25950 msgid ""
25951 " set-path searchpath\n"
25952 "\n"
25953 msgstr ""
25954
25955 #. type: =head2
25956 #: ../fish/guestfish-actions.pod:4024
25957 msgid "set-qemu"
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../fish/guestfish-actions.pod:4026
25962 msgid "qemu"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../fish/guestfish-actions.pod:4028
25967 #, no-wrap
25968 msgid ""
25969 " set-qemu qemu\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: =head2
25974 #: ../fish/guestfish-actions.pod:4048
25975 msgid "set-recovery-proc"
25976 msgstr ""
25977
25978 #. type: =head2
25979 #: ../fish/guestfish-actions.pod:4050
25980 msgid "recovery-proc"
25981 msgstr ""
25982
25983 #. type: verbatim
25984 #: ../fish/guestfish-actions.pod:4052
25985 #, no-wrap
25986 msgid ""
25987 " set-recovery-proc true|false\n"
25988 "\n"
25989 msgstr ""
25990
25991 #. type: textblock
25992 #: ../fish/guestfish-actions.pod:4054
25993 msgid ""
25994 "If this is called with the parameter C<false> then L</launch> does not "
25995 "create a recovery process.  The purpose of the recovery process is to stop "
25996 "runaway qemu processes in the case where the main program aborts abruptly."
25997 msgstr ""
25998
25999 #. type: textblock
26000 #: ../fish/guestfish-actions.pod:4059
26001 msgid ""
26002 "This only has any effect if called before L</launch>, and the default is "
26003 "true."
26004 msgstr ""
26005
26006 #. type: =head2
26007 #: ../fish/guestfish-actions.pod:4068
26008 msgid "set-selinux"
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../fish/guestfish-actions.pod:4070
26013 msgid "selinux"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../fish/guestfish-actions.pod:4072
26018 #, no-wrap
26019 msgid ""
26020 " set-selinux true|false\n"
26021 "\n"
26022 msgstr ""
26023
26024 #. type: =head2
26025 #: ../fish/guestfish-actions.pod:4083
26026 msgid "set-trace"
26027 msgstr ""
26028
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:4085
26031 msgid "trace"
26032 msgstr ""
26033
26034 #. type: verbatim
26035 #: ../fish/guestfish-actions.pod:4087
26036 #, no-wrap
26037 msgid ""
26038 " set-trace true|false\n"
26039 "\n"
26040 msgstr ""
26041
26042 #. type: textblock
26043 #: ../fish/guestfish-actions.pod:4099
26044 msgid ""
26045 "Trace messages are normally sent to C<stderr>, unless you register a "
26046 "callback to send them somewhere else (see L</set-event-callback>)."
26047 msgstr ""
26048
26049 #. type: =head2
26050 #: ../fish/guestfish-actions.pod:4103
26051 msgid "set-verbose"
26052 msgstr ""
26053
26054 #. type: =head2
26055 #: ../fish/guestfish-actions.pod:4105
26056 msgid "verbose"
26057 msgstr ""
26058
26059 #. type: verbatim
26060 #: ../fish/guestfish-actions.pod:4107
26061 #, no-wrap
26062 msgid ""
26063 " set-verbose true|false\n"
26064 "\n"
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../fish/guestfish-actions.pod:4114
26069 msgid ""
26070 "Verbose messages are normally sent to C<stderr>, unless you register a "
26071 "callback to send them somewhere else (see L</set-event-callback>)."
26072 msgstr ""
26073
26074 #. type: =head2
26075 #: ../fish/guestfish-actions.pod:4118
26076 msgid "setcon"
26077 msgstr ""
26078
26079 #. type: verbatim
26080 #: ../fish/guestfish-actions.pod:4120
26081 #, no-wrap
26082 msgid ""
26083 " setcon context\n"
26084 "\n"
26085 msgstr ""
26086
26087 #. type: =head2
26088 #: ../fish/guestfish-actions.pod:4127
26089 msgid "setxattr"
26090 msgstr ""
26091
26092 #. type: verbatim
26093 #: ../fish/guestfish-actions.pod:4129
26094 #, no-wrap
26095 msgid ""
26096 " setxattr xattr val vallen path\n"
26097 "\n"
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../fish/guestfish-actions.pod:4135
26102 msgid "See also: L</lsetxattr>, L<attr(5)>."
26103 msgstr ""
26104
26105 #. type: =head2
26106 #: ../fish/guestfish-actions.pod:4137
26107 msgid "sfdisk"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../fish/guestfish-actions.pod:4139
26112 #, no-wrap
26113 msgid ""
26114 " sfdisk device cyls heads sectors 'lines ...'\n"
26115 "\n"
26116 msgstr ""
26117
26118 #. type: textblock
26119 #: ../fish/guestfish-actions.pod:4161
26120 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
26121 msgstr ""
26122
26123 #. type: =head2
26124 #: ../fish/guestfish-actions.pod:4167
26125 msgid "sfdiskM"
26126 msgstr ""
26127
26128 #. type: verbatim
26129 #: ../fish/guestfish-actions.pod:4169
26130 #, no-wrap
26131 msgid ""
26132 " sfdiskM device 'lines ...'\n"
26133 "\n"
26134 msgstr ""
26135
26136 #. type: textblock
26137 #: ../fish/guestfish-actions.pod:4171
26138 msgid ""
26139 "This is a simplified interface to the L</sfdisk> command, where partition "
26140 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
26141 "you don't need to specify the cyls, heads and sectors parameters which were "
26142 "rarely if ever used anyway."
26143 msgstr ""
26144
26145 #. type: textblock
26146 #: ../fish/guestfish-actions.pod:4177
26147 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
26148 msgstr ""
26149
26150 #. type: =head2
26151 #: ../fish/guestfish-actions.pod:4183
26152 msgid "sfdisk-N"
26153 msgstr ""
26154
26155 #. type: verbatim
26156 #: ../fish/guestfish-actions.pod:4185
26157 #, no-wrap
26158 msgid ""
26159 " sfdisk-N device partnum cyls heads sectors line\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../fish/guestfish-actions.pod:4190
26165 msgid ""
26166 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
26167 "cyls/heads/sectors parameters."
26168 msgstr ""
26169
26170 #. type: textblock
26171 #: ../fish/guestfish-actions.pod:4193
26172 msgid "See also: L</part-add>"
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../fish/guestfish-actions.pod:4198
26177 msgid "sfdisk-disk-geometry"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../fish/guestfish-actions.pod:4200
26182 #, no-wrap
26183 msgid ""
26184 " sfdisk-disk-geometry device\n"
26185 "\n"
26186 msgstr ""
26187
26188 #. type: textblock
26189 #: ../fish/guestfish-actions.pod:4202
26190 msgid ""
26191 "This displays the disk geometry of C<device> read from the partition table.  "
26192 "Especially in the case where the underlying block device has been resized, "
26193 "this can be different from the kernel's idea of the geometry (see "
26194 "L</sfdisk-kernel-geometry>)."
26195 msgstr ""
26196
26197 #. type: =head2
26198 #: ../fish/guestfish-actions.pod:4210
26199 msgid "sfdisk-kernel-geometry"
26200 msgstr ""
26201
26202 #. type: verbatim
26203 #: ../fish/guestfish-actions.pod:4212
26204 #, no-wrap
26205 msgid ""
26206 " sfdisk-kernel-geometry device\n"
26207 "\n"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../fish/guestfish-actions.pod:4219
26212 msgid "sfdisk-l"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../fish/guestfish-actions.pod:4221
26217 #, no-wrap
26218 msgid ""
26219 " sfdisk-l device\n"
26220 "\n"
26221 msgstr ""
26222
26223 #. type: textblock
26224 #: ../fish/guestfish-actions.pod:4227
26225 msgid "See also: L</part-list>"
26226 msgstr ""
26227
26228 #. type: =head2
26229 #: ../fish/guestfish-actions.pod:4229
26230 msgid "sh"
26231 msgstr ""
26232
26233 #. type: verbatim
26234 #: ../fish/guestfish-actions.pod:4231
26235 #, no-wrap
26236 msgid ""
26237 " sh command\n"
26238 "\n"
26239 msgstr ""
26240
26241 #. type: textblock
26242 #: ../fish/guestfish-actions.pod:4236
26243 msgid "This is like L</command>, but passes the command to:"
26244 msgstr ""
26245
26246 #. type: textblock
26247 #: ../fish/guestfish-actions.pod:4244
26248 msgid "All the provisos about L</command> apply to this call."
26249 msgstr ""
26250
26251 #. type: =head2
26252 #: ../fish/guestfish-actions.pod:4246
26253 msgid "sh-lines"
26254 msgstr ""
26255
26256 #. type: verbatim
26257 #: ../fish/guestfish-actions.pod:4248
26258 #, no-wrap
26259 msgid ""
26260 " sh-lines command\n"
26261 "\n"
26262 msgstr ""
26263
26264 #. type: textblock
26265 #: ../fish/guestfish-actions.pod:4250
26266 msgid "This is the same as L</sh>, but splits the result into a list of lines."
26267 msgstr ""
26268
26269 #. type: textblock
26270 #: ../fish/guestfish-actions.pod:4253
26271 msgid "See also: L</command-lines>"
26272 msgstr ""
26273
26274 #. type: =head2
26275 #: ../fish/guestfish-actions.pod:4255
26276 msgid "sleep"
26277 msgstr ""
26278
26279 #. type: verbatim
26280 #: ../fish/guestfish-actions.pod:4257
26281 #, no-wrap
26282 msgid ""
26283 " sleep secs\n"
26284 "\n"
26285 msgstr ""
26286
26287 #. type: =head2
26288 #: ../fish/guestfish-actions.pod:4261
26289 msgid "stat"
26290 msgstr ""
26291
26292 #. type: verbatim
26293 #: ../fish/guestfish-actions.pod:4263
26294 #, no-wrap
26295 msgid ""
26296 " stat path\n"
26297 "\n"
26298 msgstr ""
26299
26300 #. type: =head2
26301 #: ../fish/guestfish-actions.pod:4269
26302 msgid "statvfs"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../fish/guestfish-actions.pod:4271
26307 #, no-wrap
26308 msgid ""
26309 " statvfs path\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../fish/guestfish-actions.pod:4279
26315 msgid "strings"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../fish/guestfish-actions.pod:4281
26320 #, no-wrap
26321 msgid ""
26322 " strings path\n"
26323 "\n"
26324 msgstr ""
26325
26326 #. type: =head2
26327 #: ../fish/guestfish-actions.pod:4289
26328 msgid "strings-e"
26329 msgstr ""
26330
26331 #. type: verbatim
26332 #: ../fish/guestfish-actions.pod:4291
26333 #, no-wrap
26334 msgid ""
26335 " strings-e encoding path\n"
26336 "\n"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../fish/guestfish-actions.pod:4293
26341 msgid ""
26342 "This is like the L</strings> command, but allows you to specify the encoding "
26343 "of strings that are looked for in the source file C<path>."
26344 msgstr ""
26345
26346 #. type: textblock
26347 #: ../fish/guestfish-actions.pod:4303
26348 msgid ""
26349 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
26350 "ISO-8859-X (this is what L</strings> uses)."
26351 msgstr ""
26352
26353 #. type: =head2
26354 #: ../fish/guestfish-actions.pod:4335
26355 msgid "swapoff-device"
26356 msgstr ""
26357
26358 #. type: verbatim
26359 #: ../fish/guestfish-actions.pod:4337
26360 #, no-wrap
26361 msgid ""
26362 " swapoff-device device\n"
26363 "\n"
26364 msgstr ""
26365
26366 #. type: textblock
26367 #: ../fish/guestfish-actions.pod:4339
26368 msgid ""
26369 "This command disables the libguestfs appliance swap device or partition "
26370 "named C<device>.  See L</swapon-device>."
26371 msgstr ""
26372
26373 #. type: =head2
26374 #: ../fish/guestfish-actions.pod:4343
26375 msgid "swapoff-file"
26376 msgstr ""
26377
26378 #. type: verbatim
26379 #: ../fish/guestfish-actions.pod:4345
26380 #, no-wrap
26381 msgid ""
26382 " swapoff-file file\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../fish/guestfish-actions.pod:4349
26388 msgid "swapoff-label"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../fish/guestfish-actions.pod:4351
26393 #, no-wrap
26394 msgid ""
26395 " swapoff-label label\n"
26396 "\n"
26397 msgstr ""
26398
26399 #. type: =head2
26400 #: ../fish/guestfish-actions.pod:4356
26401 msgid "swapoff-uuid"
26402 msgstr ""
26403
26404 #. type: verbatim
26405 #: ../fish/guestfish-actions.pod:4358
26406 #, no-wrap
26407 msgid ""
26408 " swapoff-uuid uuid\n"
26409 "\n"
26410 msgstr ""
26411
26412 #. type: =head2
26413 #: ../fish/guestfish-actions.pod:4363
26414 msgid "swapon-device"
26415 msgstr ""
26416
26417 #. type: verbatim
26418 #: ../fish/guestfish-actions.pod:4365
26419 #, no-wrap
26420 msgid ""
26421 " swapon-device device\n"
26422 "\n"
26423 msgstr ""
26424
26425 #. type: textblock
26426 #: ../fish/guestfish-actions.pod:4367
26427 msgid ""
26428 "This command enables the libguestfs appliance to use the swap device or "
26429 "partition named C<device>.  The increased memory is made available for all "
26430 "commands, for example those run using L</command> or L</sh>."
26431 msgstr ""
26432
26433 #. type: =head2
26434 #: ../fish/guestfish-actions.pod:4379
26435 msgid "swapon-file"
26436 msgstr ""
26437
26438 #. type: verbatim
26439 #: ../fish/guestfish-actions.pod:4381
26440 #, no-wrap
26441 msgid ""
26442 " swapon-file file\n"
26443 "\n"
26444 msgstr ""
26445
26446 #. type: textblock
26447 #: ../fish/guestfish-actions.pod:4383
26448 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
26449 msgstr ""
26450
26451 #. type: =head2
26452 #: ../fish/guestfish-actions.pod:4386
26453 msgid "swapon-label"
26454 msgstr ""
26455
26456 #. type: verbatim
26457 #: ../fish/guestfish-actions.pod:4388
26458 #, no-wrap
26459 msgid ""
26460 " swapon-label label\n"
26461 "\n"
26462 msgstr ""
26463
26464 #. type: textblock
26465 #: ../fish/guestfish-actions.pod:4390
26466 msgid ""
26467 "This command enables swap to a labeled swap partition.  See "
26468 "L</swapon-device> for other notes."
26469 msgstr ""
26470
26471 #. type: =head2
26472 #: ../fish/guestfish-actions.pod:4393
26473 msgid "swapon-uuid"
26474 msgstr ""
26475
26476 #. type: verbatim
26477 #: ../fish/guestfish-actions.pod:4395
26478 #, no-wrap
26479 msgid ""
26480 " swapon-uuid uuid\n"
26481 "\n"
26482 msgstr ""
26483
26484 #. type: textblock
26485 #: ../fish/guestfish-actions.pod:4397
26486 msgid ""
26487 "This command enables swap to a swap partition with the given UUID.  See "
26488 "L</swapon-device> for other notes."
26489 msgstr ""
26490
26491 #. type: =head2
26492 #: ../fish/guestfish-actions.pod:4400
26493 msgid "sync"
26494 msgstr ""
26495
26496 #. type: verbatim
26497 #: ../fish/guestfish-actions.pod:4402
26498 #, no-wrap
26499 msgid ""
26500 " sync\n"
26501 "\n"
26502 msgstr ""
26503
26504 #. type: =head2
26505 #: ../fish/guestfish-actions.pod:4410
26506 msgid "tail"
26507 msgstr ""
26508
26509 #. type: verbatim
26510 #: ../fish/guestfish-actions.pod:4412
26511 #, no-wrap
26512 msgid ""
26513 " tail path\n"
26514 "\n"
26515 msgstr ""
26516
26517 #. type: =head2
26518 #: ../fish/guestfish-actions.pod:4420
26519 msgid "tail-n"
26520 msgstr ""
26521
26522 #. type: verbatim
26523 #: ../fish/guestfish-actions.pod:4422
26524 #, no-wrap
26525 msgid ""
26526 " tail-n nrlines path\n"
26527 "\n"
26528 msgstr ""
26529
26530 #. type: =head2
26531 #: ../fish/guestfish-actions.pod:4435
26532 msgid "tar-in"
26533 msgstr ""
26534
26535 #. type: verbatim
26536 #: ../fish/guestfish-actions.pod:4437
26537 #, no-wrap
26538 msgid ""
26539 " tar-in (tarfile|-) directory\n"
26540 "\n"
26541 msgstr ""
26542
26543 #. type: textblock
26544 #: ../fish/guestfish-actions.pod:4442
26545 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
26546 msgstr ""
26547
26548 #. type: =head2
26549 #: ../fish/guestfish-actions.pod:4447
26550 msgid "tar-out"
26551 msgstr ""
26552
26553 #. type: verbatim
26554 #: ../fish/guestfish-actions.pod:4449
26555 #, no-wrap
26556 msgid ""
26557 " tar-out directory (tarfile|-)\n"
26558 "\n"
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../fish/guestfish-actions.pod:4454
26563 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
26564 msgstr ""
26565
26566 #. type: =head2
26567 #: ../fish/guestfish-actions.pod:4459
26568 msgid "tgz-in"
26569 msgstr ""
26570
26571 #. type: verbatim
26572 #: ../fish/guestfish-actions.pod:4461
26573 #, no-wrap
26574 msgid ""
26575 " tgz-in (tarball|-) directory\n"
26576 "\n"
26577 msgstr ""
26578
26579 #. type: textblock
26580 #: ../fish/guestfish-actions.pod:4466
26581 msgid "To upload an uncompressed tarball, use L</tar-in>."
26582 msgstr ""
26583
26584 #. type: =head2
26585 #: ../fish/guestfish-actions.pod:4470
26586 msgid "tgz-out"
26587 msgstr ""
26588
26589 #. type: verbatim
26590 #: ../fish/guestfish-actions.pod:4472
26591 #, no-wrap
26592 msgid ""
26593 " tgz-out directory (tarball|-)\n"
26594 "\n"
26595 msgstr ""
26596
26597 #. type: textblock
26598 #: ../fish/guestfish-actions.pod:4477
26599 msgid "To download an uncompressed tarball, use L</tar-out>."
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../fish/guestfish-actions.pod:4481
26604 msgid "touch"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../fish/guestfish-actions.pod:4483
26609 #, no-wrap
26610 msgid ""
26611 " touch path\n"
26612 "\n"
26613 msgstr ""
26614
26615 #. type: =head2
26616 #: ../fish/guestfish-actions.pod:4492
26617 msgid "truncate"
26618 msgstr ""
26619
26620 #. type: verbatim
26621 #: ../fish/guestfish-actions.pod:4494
26622 #, no-wrap
26623 msgid ""
26624 " truncate path\n"
26625 "\n"
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../fish/guestfish-actions.pod:4499
26630 msgid "truncate-size"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../fish/guestfish-actions.pod:4501
26635 #, no-wrap
26636 msgid ""
26637 " truncate-size path size\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../fish/guestfish-actions.pod:4506
26643 msgid ""
26644 "If the current file size is less than C<size> then the file is extended to "
26645 "the required size with zero bytes.  This creates a sparse file (ie. disk "
26646 "blocks are not allocated for the file until you write to it).  To create a "
26647 "non-sparse file of zeroes, use L</fallocate64> instead."
26648 msgstr ""
26649
26650 #. type: =head2
26651 #: ../fish/guestfish-actions.pod:4512
26652 msgid "tune2fs-l"
26653 msgstr ""
26654
26655 #. type: verbatim
26656 #: ../fish/guestfish-actions.pod:4514
26657 #, no-wrap
26658 msgid ""
26659 " tune2fs-l device\n"
26660 "\n"
26661 msgstr ""
26662
26663 #. type: =head2
26664 #: ../fish/guestfish-actions.pod:4524
26665 msgid "txz-in"
26666 msgstr ""
26667
26668 #. type: verbatim
26669 #: ../fish/guestfish-actions.pod:4526
26670 #, no-wrap
26671 msgid ""
26672 " txz-in (tarball|-) directory\n"
26673 "\n"
26674 msgstr ""
26675
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:4533
26678 msgid "txz-out"
26679 msgstr ""
26680
26681 #. type: verbatim
26682 #: ../fish/guestfish-actions.pod:4535
26683 #, no-wrap
26684 msgid ""
26685 " txz-out directory (tarball|-)\n"
26686 "\n"
26687 msgstr ""
26688
26689 #. type: =head2
26690 #: ../fish/guestfish-actions.pod:4542
26691 msgid "umask"
26692 msgstr ""
26693
26694 #. type: verbatim
26695 #: ../fish/guestfish-actions.pod:4544
26696 #, no-wrap
26697 msgid ""
26698 " umask mask\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: textblock
26703 #: ../fish/guestfish-actions.pod:4558
26704 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../fish/guestfish-actions.pod:4563
26709 msgid "umount"
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../fish/guestfish-actions.pod:4565
26714 msgid "unmount"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../fish/guestfish-actions.pod:4567
26719 #, no-wrap
26720 msgid ""
26721 " umount pathordevice\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: =head2
26726 #: ../fish/guestfish-actions.pod:4573
26727 msgid "umount-all"
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../fish/guestfish-actions.pod:4575
26732 msgid "unmount-all"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../fish/guestfish-actions.pod:4577
26737 #, no-wrap
26738 msgid ""
26739 " umount-all\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: =head2
26744 #: ../fish/guestfish-actions.pod:4583
26745 msgid "upload"
26746 msgstr ""
26747
26748 #. type: verbatim
26749 #: ../fish/guestfish-actions.pod:4585
26750 #, no-wrap
26751 msgid ""
26752 " upload (filename|-) remotefilename\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../fish/guestfish-actions.pod:4592
26758 msgid "See also L</download>."
26759 msgstr ""
26760
26761 #. type: =head2
26762 #: ../fish/guestfish-actions.pod:4596
26763 msgid "upload-offset"
26764 msgstr ""
26765
26766 #. type: verbatim
26767 #: ../fish/guestfish-actions.pod:4598
26768 #, no-wrap
26769 msgid ""
26770 " upload-offset (filename|-) remotefilename offset\n"
26771 "\n"
26772 msgstr ""
26773
26774 #. type: textblock
26775 #: ../fish/guestfish-actions.pod:4610
26776 msgid ""
26777 "Note that there is no limit on the amount of data that can be uploaded with "
26778 "this call, unlike with L</pwrite>, and this call always writes the full "
26779 "amount unless an error occurs."
26780 msgstr ""
26781
26782 #. type: textblock
26783 #: ../fish/guestfish-actions.pod:4615
26784 msgid "See also L</upload>, L</pwrite>."
26785 msgstr ""
26786
26787 #. type: =head2
26788 #: ../fish/guestfish-actions.pod:4619
26789 msgid "utimens"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../fish/guestfish-actions.pod:4621
26794 #, no-wrap
26795 msgid ""
26796 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: =head2
26801 #: ../fish/guestfish-actions.pod:4640
26802 msgid "version"
26803 msgstr ""
26804
26805 #. type: verbatim
26806 #: ../fish/guestfish-actions.pod:4642
26807 #, no-wrap
26808 msgid ""
26809 " version\n"
26810 "\n"
26811 msgstr ""
26812
26813 #. type: textblock
26814 #: ../fish/guestfish-actions.pod:4669
26815 msgid ""
26816 "I<Note:> Don't use this call to test for availability of features.  In "
26817 "enterprise distributions we backport features from later versions into "
26818 "earlier versions, making this an unreliable way to test for features.  Use "
26819 "L</available> instead."
26820 msgstr ""
26821
26822 #. type: =head2
26823 #: ../fish/guestfish-actions.pod:4675
26824 msgid "vfs-label"
26825 msgstr ""
26826
26827 #. type: verbatim
26828 #: ../fish/guestfish-actions.pod:4677
26829 #, no-wrap
26830 msgid ""
26831 " vfs-label device\n"
26832 "\n"
26833 msgstr ""
26834
26835 #. type: textblock
26836 #: ../fish/guestfish-actions.pod:4684
26837 msgid "To find a filesystem from the label, use L</findfs-label>."
26838 msgstr ""
26839
26840 #. type: =head2
26841 #: ../fish/guestfish-actions.pod:4686
26842 msgid "vfs-type"
26843 msgstr ""
26844
26845 #. type: verbatim
26846 #: ../fish/guestfish-actions.pod:4688
26847 #, no-wrap
26848 msgid ""
26849 " vfs-type device\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: =head2
26854 #: ../fish/guestfish-actions.pod:4698
26855 msgid "vfs-uuid"
26856 msgstr ""
26857
26858 #. type: verbatim
26859 #: ../fish/guestfish-actions.pod:4700
26860 #, no-wrap
26861 msgid ""
26862 " vfs-uuid device\n"
26863 "\n"
26864 msgstr ""
26865
26866 #. type: textblock
26867 #: ../fish/guestfish-actions.pod:4707
26868 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
26869 msgstr ""
26870
26871 #. type: =head2
26872 #: ../fish/guestfish-actions.pod:4709
26873 msgid "vg-activate"
26874 msgstr ""
26875
26876 #. type: verbatim
26877 #: ../fish/guestfish-actions.pod:4711
26878 #, no-wrap
26879 msgid ""
26880 " vg-activate true|false 'volgroups ...'\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../fish/guestfish-actions.pod:4724
26886 msgid "vg-activate-all"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../fish/guestfish-actions.pod:4726
26891 #, no-wrap
26892 msgid ""
26893 " vg-activate-all true|false\n"
26894 "\n"
26895 msgstr ""
26896
26897 #. type: =head2
26898 #: ../fish/guestfish-actions.pod:4736
26899 msgid "vgcreate"
26900 msgstr ""
26901
26902 #. type: verbatim
26903 #: ../fish/guestfish-actions.pod:4738
26904 #, no-wrap
26905 msgid ""
26906 " vgcreate volgroup 'physvols ...'\n"
26907 "\n"
26908 msgstr ""
26909
26910 #. type: =head2
26911 #: ../fish/guestfish-actions.pod:4743
26912 msgid "vglvuuids"
26913 msgstr ""
26914
26915 #. type: verbatim
26916 #: ../fish/guestfish-actions.pod:4745
26917 #, no-wrap
26918 msgid ""
26919 " vglvuuids vgname\n"
26920 "\n"
26921 msgstr ""
26922
26923 #. type: textblock
26924 #: ../fish/guestfish-actions.pod:4750
26925 msgid ""
26926 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
26927 "logical volumes and volume groups."
26928 msgstr ""
26929
26930 #. type: textblock
26931 #: ../fish/guestfish-actions.pod:4753
26932 msgid "See also L</vgpvuuids>."
26933 msgstr ""
26934
26935 #. type: =head2
26936 #: ../fish/guestfish-actions.pod:4755
26937 msgid "vgpvuuids"
26938 msgstr ""
26939
26940 #. type: verbatim
26941 #: ../fish/guestfish-actions.pod:4757
26942 #, no-wrap
26943 msgid ""
26944 " vgpvuuids vgname\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: textblock
26949 #: ../fish/guestfish-actions.pod:4762
26950 msgid ""
26951 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
26952 "physical volumes and volume groups."
26953 msgstr ""
26954
26955 #. type: textblock
26956 #: ../fish/guestfish-actions.pod:4765
26957 msgid "See also L</vglvuuids>."
26958 msgstr ""
26959
26960 #. type: =head2
26961 #: ../fish/guestfish-actions.pod:4767
26962 msgid "vgremove"
26963 msgstr ""
26964
26965 #. type: verbatim
26966 #: ../fish/guestfish-actions.pod:4769
26967 #, no-wrap
26968 msgid ""
26969 " vgremove vgname\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: =head2
26974 #: ../fish/guestfish-actions.pod:4776
26975 msgid "vgrename"
26976 msgstr ""
26977
26978 #. type: verbatim
26979 #: ../fish/guestfish-actions.pod:4778
26980 #, no-wrap
26981 msgid ""
26982 " vgrename volgroup newvolgroup\n"
26983 "\n"
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../fish/guestfish-actions.pod:4782
26988 msgid "vgs"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../fish/guestfish-actions.pod:4784
26993 #, no-wrap
26994 msgid ""
26995 " vgs\n"
26996 "\n"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../fish/guestfish-actions.pod:4792
27001 msgid "See also L</vgs-full>."
27002 msgstr ""
27003
27004 #. type: =head2
27005 #: ../fish/guestfish-actions.pod:4794
27006 msgid "vgs-full"
27007 msgstr ""
27008
27009 #. type: verbatim
27010 #: ../fish/guestfish-actions.pod:4796
27011 #, no-wrap
27012 msgid ""
27013 " vgs-full\n"
27014 "\n"
27015 msgstr ""
27016
27017 #. type: =head2
27018 #: ../fish/guestfish-actions.pod:4801
27019 msgid "vgscan"
27020 msgstr ""
27021
27022 #. type: verbatim
27023 #: ../fish/guestfish-actions.pod:4803
27024 #, no-wrap
27025 msgid ""
27026 " vgscan\n"
27027 "\n"
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../fish/guestfish-actions.pod:4808
27032 msgid "vguuid"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../fish/guestfish-actions.pod:4810
27037 #, no-wrap
27038 msgid ""
27039 " vguuid vgname\n"
27040 "\n"
27041 msgstr ""
27042
27043 #. type: =head2
27044 #: ../fish/guestfish-actions.pod:4814
27045 msgid "wc-c"
27046 msgstr ""
27047
27048 #. type: verbatim
27049 #: ../fish/guestfish-actions.pod:4816
27050 #, no-wrap
27051 msgid ""
27052 " wc-c path\n"
27053 "\n"
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../fish/guestfish-actions.pod:4821
27058 msgid "wc-l"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../fish/guestfish-actions.pod:4823
27063 #, no-wrap
27064 msgid ""
27065 " wc-l path\n"
27066 "\n"
27067 msgstr ""
27068
27069 #. type: =head2
27070 #: ../fish/guestfish-actions.pod:4828
27071 msgid "wc-w"
27072 msgstr ""
27073
27074 #. type: verbatim
27075 #: ../fish/guestfish-actions.pod:4830
27076 #, no-wrap
27077 msgid ""
27078 " wc-w path\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: =head2
27083 #: ../fish/guestfish-actions.pod:4835
27084 msgid "write"
27085 msgstr ""
27086
27087 #. type: verbatim
27088 #: ../fish/guestfish-actions.pod:4837
27089 #, no-wrap
27090 msgid ""
27091 " write path content\n"
27092 "\n"
27093 msgstr ""
27094
27095 #. type: =head2
27096 #: ../fish/guestfish-actions.pod:4845
27097 msgid "write-file"
27098 msgstr ""
27099
27100 #. type: verbatim
27101 #: ../fish/guestfish-actions.pod:4847
27102 #, no-wrap
27103 msgid ""
27104 " write-file path content size\n"
27105 "\n"
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../fish/guestfish-actions.pod:4870
27110 msgid "zegrep"
27111 msgstr ""
27112
27113 #. type: verbatim
27114 #: ../fish/guestfish-actions.pod:4872
27115 #, no-wrap
27116 msgid ""
27117 " zegrep regex path\n"
27118 "\n"
27119 msgstr ""
27120
27121 #. type: =head2
27122 #: ../fish/guestfish-actions.pod:4880
27123 msgid "zegrepi"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../fish/guestfish-actions.pod:4882
27128 #, no-wrap
27129 msgid ""
27130 " zegrepi regex path\n"
27131 "\n"
27132 msgstr ""
27133
27134 #. type: =head2
27135 #: ../fish/guestfish-actions.pod:4890
27136 msgid "zero"
27137 msgstr ""
27138
27139 #. type: verbatim
27140 #: ../fish/guestfish-actions.pod:4892
27141 #, no-wrap
27142 msgid ""
27143 " zero device\n"
27144 "\n"
27145 msgstr ""
27146
27147 #. type: textblock
27148 #: ../fish/guestfish-actions.pod:4900
27149 msgid "See also: L</zero-device>, L</scrub-device>."
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../fish/guestfish-actions.pod:4902
27154 msgid "zero-device"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../fish/guestfish-actions.pod:4904
27159 #, no-wrap
27160 msgid ""
27161 " zero-device device\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../fish/guestfish-actions.pod:4906
27167 msgid ""
27168 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
27169 "which just zeroes the first few blocks of a device."
27170 msgstr ""
27171
27172 #. type: =head2
27173 #: ../fish/guestfish-actions.pod:4913
27174 msgid "zerofree"
27175 msgstr ""
27176
27177 #. type: verbatim
27178 #: ../fish/guestfish-actions.pod:4915
27179 #, no-wrap
27180 msgid ""
27181 " zerofree device\n"
27182 "\n"
27183 msgstr ""
27184
27185 #. type: =head2
27186 #: ../fish/guestfish-actions.pod:4928
27187 msgid "zfgrep"
27188 msgstr ""
27189
27190 #. type: verbatim
27191 #: ../fish/guestfish-actions.pod:4930
27192 #, no-wrap
27193 msgid ""
27194 " zfgrep pattern path\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../fish/guestfish-actions.pod:4938
27200 msgid "zfgrepi"
27201 msgstr ""
27202
27203 #. type: verbatim
27204 #: ../fish/guestfish-actions.pod:4940
27205 #, no-wrap
27206 msgid ""
27207 " zfgrepi pattern path\n"
27208 "\n"
27209 msgstr ""
27210
27211 #. type: =head2
27212 #: ../fish/guestfish-actions.pod:4948
27213 msgid "zfile"
27214 msgstr ""
27215
27216 #. type: verbatim
27217 #: ../fish/guestfish-actions.pod:4950
27218 #, no-wrap
27219 msgid ""
27220 " zfile meth path\n"
27221 "\n"
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../fish/guestfish-actions.pod:4957
27226 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
27227 msgstr ""
27228
27229 #. type: =head2
27230 #: ../fish/guestfish-actions.pod:4967
27231 msgid "zgrep"
27232 msgstr ""
27233
27234 #. type: verbatim
27235 #: ../fish/guestfish-actions.pod:4969
27236 #, no-wrap
27237 msgid ""
27238 " zgrep regex path\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../fish/guestfish-actions.pod:4977
27244 msgid "zgrepi"
27245 msgstr ""
27246
27247 #. type: verbatim
27248 #: ../fish/guestfish-actions.pod:4979
27249 #, no-wrap
27250 msgid ""
27251 " zgrepi regex path\n"
27252 "\n"
27253 msgstr ""
27254
27255 #. type: =head2
27256 #: ../fish/guestfish-commands.pod:1
27257 msgid "alloc"
27258 msgstr ""
27259
27260 #. type: =head2
27261 #: ../fish/guestfish-commands.pod:3
27262 msgid "allocate"
27263 msgstr ""
27264
27265 #. type: verbatim
27266 #: ../fish/guestfish-commands.pod:5
27267 #, no-wrap
27268 msgid ""
27269 " alloc filename size\n"
27270 "\n"
27271 msgstr ""
27272
27273 #. type: textblock
27274 #: ../fish/guestfish-commands.pod:7
27275 msgid ""
27276 "This creates an empty (zeroed) file of the given size, and then adds so it "
27277 "can be further examined."
27278 msgstr ""
27279
27280 #. type: textblock
27281 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
27282 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
27283 msgstr ""
27284
27285 #. type: textblock
27286 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
27287 msgid "Size can be specified using standard suffixes, eg. C<1M>."
27288 msgstr ""
27289
27290 #. type: textblock
27291 #: ../fish/guestfish-commands.pod:14
27292 msgid ""
27293 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
27294 "image, see L</PREPARED DISK IMAGES>."
27295 msgstr ""
27296
27297 #. type: =head2
27298 #: ../fish/guestfish-commands.pod:17
27299 msgid "copy-in"
27300 msgstr ""
27301
27302 #. type: verbatim
27303 #: ../fish/guestfish-commands.pod:19
27304 #, no-wrap
27305 msgid ""
27306 " copy-in local [local ...] /remotedir\n"
27307 "\n"
27308 msgstr ""
27309
27310 #. type: textblock
27311 #: ../fish/guestfish-commands.pod:21
27312 msgid ""
27313 "C<copy-in> copies local files or directories recursively into the disk "
27314 "image, placing them in the directory called C</remotedir> (which must "
27315 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
27316 "other commands as necessary."
27317 msgstr ""
27318
27319 #. type: textblock
27320 #: ../fish/guestfish-commands.pod:26
27321 msgid ""
27322 "Multiple local files and directories can be specified, but the last "
27323 "parameter must always be a remote directory.  Wildcards cannot be used."
27324 msgstr ""
27325
27326 #. type: =head2
27327 #: ../fish/guestfish-commands.pod:30
27328 msgid "copy-out"
27329 msgstr ""
27330
27331 #. type: verbatim
27332 #: ../fish/guestfish-commands.pod:32
27333 #, no-wrap
27334 msgid ""
27335 " copy-out remote [remote ...] localdir\n"
27336 "\n"
27337 msgstr ""
27338
27339 #. type: textblock
27340 #: ../fish/guestfish-commands.pod:34
27341 msgid ""
27342 "C<copy-out> copies remote files or directories recursively out of the disk "
27343 "image, placing them on the host disk in a local directory called C<localdir> "
27344 "(which must exist).  This guestfish meta-command turns into a sequence of "
27345 "L</download>, L</tar-out> and other commands as necessary."
27346 msgstr ""
27347
27348 #. type: textblock
27349 #: ../fish/guestfish-commands.pod:40
27350 msgid ""
27351 "Multiple remote files and directories can be specified, but the last "
27352 "parameter must always be a local directory.  To download to the current "
27353 "directory, use C<.> as in:"
27354 msgstr ""
27355
27356 #. type: verbatim
27357 #: ../fish/guestfish-commands.pod:44
27358 #, no-wrap
27359 msgid ""
27360 " copy-out /home .\n"
27361 "\n"
27362 msgstr ""
27363
27364 #. type: textblock
27365 #: ../fish/guestfish-commands.pod:46
27366 msgid ""
27367 "Wildcards cannot be used in the ordinary command, but you can use them with "
27368 "the help of L</glob> like this:"
27369 msgstr ""
27370
27371 #. type: verbatim
27372 #: ../fish/guestfish-commands.pod:49
27373 #, no-wrap
27374 msgid ""
27375 " glob copy-out /home/* .\n"
27376 "\n"
27377 msgstr ""
27378
27379 #. type: =head2
27380 #: ../fish/guestfish-commands.pod:51
27381 msgid "echo"
27382 msgstr ""
27383
27384 #. type: verbatim
27385 #: ../fish/guestfish-commands.pod:53
27386 #, no-wrap
27387 msgid ""
27388 " echo [params ...]\n"
27389 "\n"
27390 msgstr ""
27391
27392 #. type: textblock
27393 #: ../fish/guestfish-commands.pod:55
27394 msgid "This echos the parameters to the terminal."
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../fish/guestfish-commands.pod:57
27399 msgid "edit"
27400 msgstr ""
27401
27402 #. type: =head2
27403 #: ../fish/guestfish-commands.pod:59
27404 msgid "vi"
27405 msgstr ""
27406
27407 #. type: =head2
27408 #: ../fish/guestfish-commands.pod:61
27409 msgid "emacs"
27410 msgstr ""
27411
27412 #. type: verbatim
27413 #: ../fish/guestfish-commands.pod:63
27414 #, no-wrap
27415 msgid ""
27416 " edit filename\n"
27417 "\n"
27418 msgstr ""
27419
27420 #. type: textblock
27421 #: ../fish/guestfish-commands.pod:65
27422 msgid ""
27423 "This is used to edit a file.  It downloads the file, edits it locally using "
27424 "your editor, then uploads the result."
27425 msgstr ""
27426
27427 #. type: textblock
27428 #: ../fish/guestfish-commands.pod:68
27429 msgid ""
27430 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
27431 "or C<emacs> you will get those corresponding editors."
27432 msgstr ""
27433
27434 #. type: =head2
27435 #: ../fish/guestfish-commands.pod:72
27436 msgid "glob"
27437 msgstr ""
27438
27439 #. type: verbatim
27440 #: ../fish/guestfish-commands.pod:74
27441 #, no-wrap
27442 msgid ""
27443 " glob command args...\n"
27444 "\n"
27445 msgstr ""
27446
27447 #. type: textblock
27448 #: ../fish/guestfish-commands.pod:76
27449 msgid ""
27450 "Expand wildcards in any paths in the args list, and run C<command> "
27451 "repeatedly on each matching path."
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../fish/guestfish-commands.pod:79
27456 msgid "See L</WILDCARDS AND GLOBBING>."
27457 msgstr ""
27458
27459 #. type: =head2
27460 #: ../fish/guestfish-commands.pod:81
27461 msgid "hexedit"
27462 msgstr ""
27463
27464 #. type: verbatim
27465 #: ../fish/guestfish-commands.pod:83
27466 #, no-wrap
27467 msgid ""
27468 " hexedit <filename|device>\n"
27469 " hexedit <filename|device> <max>\n"
27470 " hexedit <filename|device> <start> <max>\n"
27471 "\n"
27472 msgstr ""
27473
27474 #. type: textblock
27475 #: ../fish/guestfish-commands.pod:87
27476 msgid ""
27477 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
27478 "device."
27479 msgstr ""
27480
27481 #. type: textblock
27482 #: ../fish/guestfish-commands.pod:90
27483 msgid ""
27484 "This command works by downloading potentially the whole file or device, "
27485 "editing it locally, then uploading it.  If the file or device is large, you "
27486 "have to specify which part you wish to edit by using C<max> and/or C<start> "
27487 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
27488 "usual modifiers allowed such as C<1M> (1 megabyte)."
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../fish/guestfish-commands.pod:97
27493 msgid "For example to edit the first few sectors of a disk you might do:"
27494 msgstr ""
27495
27496 #. type: verbatim
27497 #: ../fish/guestfish-commands.pod:100
27498 #, no-wrap
27499 msgid ""
27500 " hexedit /dev/sda 1M\n"
27501 "\n"
27502 msgstr ""
27503
27504 #. type: textblock
27505 #: ../fish/guestfish-commands.pod:102
27506 msgid ""
27507 "which would allow you to edit anywhere within the first megabyte of the "
27508 "disk."
27509 msgstr ""
27510
27511 #. type: textblock
27512 #: ../fish/guestfish-commands.pod:105
27513 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
27514 msgstr ""
27515
27516 #. type: verbatim
27517 #: ../fish/guestfish-commands.pod:107
27518 #, no-wrap
27519 msgid ""
27520 " hexedit /dev/sda1 0x400 0x400\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: textblock
27525 #: ../fish/guestfish-commands.pod:109
27526 msgid "(assuming the superblock is in the standard location)."
27527 msgstr ""
27528
27529 #. type: textblock
27530 #: ../fish/guestfish-commands.pod:111
27531 msgid ""
27532 "This command requires the external L<hexedit(1)> program.  You can specify "
27533 "another program to use by setting the C<HEXEDITOR> environment variable."
27534 msgstr ""
27535
27536 #. type: textblock
27537 #: ../fish/guestfish-commands.pod:115
27538 msgid "See also L</hexdump>."
27539 msgstr ""
27540
27541 #. type: =head2
27542 #: ../fish/guestfish-commands.pod:117
27543 msgid "lcd"
27544 msgstr ""
27545
27546 #. type: verbatim
27547 #: ../fish/guestfish-commands.pod:119
27548 #, no-wrap
27549 msgid ""
27550 " lcd directory\n"
27551 "\n"
27552 msgstr ""
27553
27554 #. type: textblock
27555 #: ../fish/guestfish-commands.pod:121
27556 msgid "Change the local directory, ie. the current directory of guestfish itself."
27557 msgstr ""
27558
27559 #. type: textblock
27560 #: ../fish/guestfish-commands.pod:124
27561 msgid "Note that C<!cd> won't do what you might expect."
27562 msgstr ""
27563
27564 #. type: =head2
27565 #: ../fish/guestfish-commands.pod:126
27566 msgid "man"
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../fish/guestfish-commands.pod:128
27571 msgid "manual"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../fish/guestfish-commands.pod:130
27576 #, no-wrap
27577 msgid ""
27578 "  man\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../fish/guestfish-commands.pod:132
27584 msgid "Opens the manual page for guestfish."
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../fish/guestfish-commands.pod:134
27589 msgid "more"
27590 msgstr ""
27591
27592 #. type: =head2
27593 #: ../fish/guestfish-commands.pod:136
27594 msgid "less"
27595 msgstr ""
27596
27597 #. type: verbatim
27598 #: ../fish/guestfish-commands.pod:138
27599 #, no-wrap
27600 msgid ""
27601 " more filename\n"
27602 "\n"
27603 msgstr ""
27604
27605 #. type: verbatim
27606 #: ../fish/guestfish-commands.pod:140
27607 #, no-wrap
27608 msgid ""
27609 " less filename\n"
27610 "\n"
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../fish/guestfish-commands.pod:142
27615 msgid "This is used to view a file."
27616 msgstr ""
27617
27618 #. type: textblock
27619 #: ../fish/guestfish-commands.pod:144
27620 msgid ""
27621 "The default viewer is C<$PAGER>.  However if you use the alternate command "
27622 "C<less> you will get the C<less> command specifically."
27623 msgstr ""
27624
27625 #. type: =head2
27626 #: ../fish/guestfish-commands.pod:147
27627 msgid "reopen"
27628 msgstr ""
27629
27630 #. type: verbatim
27631 #: ../fish/guestfish-commands.pod:149
27632 #, no-wrap
27633 msgid ""
27634 "  reopen\n"
27635 "\n"
27636 msgstr ""
27637
27638 #. type: textblock
27639 #: ../fish/guestfish-commands.pod:151
27640 msgid ""
27641 "Close and reopen the libguestfs handle.  It is not necessary to use this "
27642 "normally, because the handle is closed properly when guestfish exits.  "
27643 "However this is occasionally useful for testing."
27644 msgstr ""
27645
27646 #. type: =head2
27647 #: ../fish/guestfish-commands.pod:155
27648 msgid "sparse"
27649 msgstr ""
27650
27651 #. type: verbatim
27652 #: ../fish/guestfish-commands.pod:157
27653 #, no-wrap
27654 msgid ""
27655 " sparse filename size\n"
27656 "\n"
27657 msgstr ""
27658
27659 #. type: textblock
27660 #: ../fish/guestfish-commands.pod:159
27661 msgid ""
27662 "This creates an empty sparse file of the given size, and then adds so it can "
27663 "be further examined."
27664 msgstr ""
27665
27666 #. type: textblock
27667 #: ../fish/guestfish-commands.pod:162
27668 msgid ""
27669 "In all respects it works the same as the L</alloc> command, except that the "
27670 "image file is allocated sparsely, which means that disk blocks are not "
27671 "assigned to the file until they are needed.  Sparse disk files only use "
27672 "space when written to, but they are slower and there is a danger you could "
27673 "run out of real disk space during a write operation."
27674 msgstr ""
27675
27676 #. type: =head2
27677 #: ../fish/guestfish-commands.pod:172
27678 msgid "supported"
27679 msgstr ""
27680
27681 #. type: verbatim
27682 #: ../fish/guestfish-commands.pod:174
27683 #, no-wrap
27684 msgid ""
27685 " supported\n"
27686 "\n"
27687 msgstr ""
27688
27689 #. type: textblock
27690 #: ../fish/guestfish-commands.pod:176
27691 msgid ""
27692 "This command returns a list of the optional groups known to the daemon, and "
27693 "indicates which ones are supported by this build of the libguestfs "
27694 "appliance."
27695 msgstr ""
27696
27697 #. type: textblock
27698 #: ../fish/guestfish-commands.pod:180
27699 msgid "See also L<guestfs(3)/AVAILABILITY>."
27700 msgstr ""
27701
27702 #. type: =head2
27703 #: ../fish/guestfish-commands.pod:182
27704 msgid "time"
27705 msgstr ""
27706
27707 #. type: verbatim
27708 #: ../fish/guestfish-commands.pod:184
27709 #, no-wrap
27710 msgid ""
27711 " time command args...\n"
27712 "\n"
27713 msgstr ""
27714
27715 #. type: textblock
27716 #: ../fish/guestfish-commands.pod:186
27717 msgid ""
27718 "Run the command as usual, but print the elapsed time afterwards.  This can "
27719 "be useful for benchmarking operations."
27720 msgstr ""
27721
27722 #. type: textblock
27723 #: ../test-tool/libguestfs-test-tool.pod:5
27724 msgid "libguestfs-test-tool - End user tests for libguestfs"
27725 msgstr ""
27726
27727 #. type: verbatim
27728 #: ../test-tool/libguestfs-test-tool.pod:9
27729 #, no-wrap
27730 msgid ""
27731 " libguestfs-test-tool [--options]\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: textblock
27736 #: ../test-tool/libguestfs-test-tool.pod:13
27737 msgid ""
27738 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
27739 "and developers, to allow them to check basic libguestfs functionality is "
27740 "working.  This is needed because libguestfs occasionally breaks for reasons "
27741 "beyond our control: usually because of changes in the underlying qemu or "
27742 "kernel packages, or the host environment."
27743 msgstr ""
27744
27745 #. type: textblock
27746 #: ../test-tool/libguestfs-test-tool.pod:20
27747 msgid "If you suspect a problem in libguestfs, then just run:"
27748 msgstr ""
27749
27750 #. type: verbatim
27751 #: ../test-tool/libguestfs-test-tool.pod:22
27752 #, no-wrap
27753 msgid ""
27754 " libguestfs-test-tool\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../test-tool/libguestfs-test-tool.pod:24
27760 msgid "It will print lots of diagnostic messages."
27761 msgstr ""
27762
27763 #. type: textblock
27764 #: ../test-tool/libguestfs-test-tool.pod:26
27765 msgid "If it runs to completion successfully, you will see this near the end:"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../test-tool/libguestfs-test-tool.pod:28
27770 #, no-wrap
27771 msgid ""
27772 " ===== TEST FINISHED OK =====\n"
27773 "\n"
27774 msgstr ""
27775
27776 #. type: textblock
27777 #: ../test-tool/libguestfs-test-tool.pod:30
27778 msgid "and the test tool will exit with code 0."
27779 msgstr ""
27780
27781 #. type: textblock
27782 #: ../test-tool/libguestfs-test-tool.pod:32
27783 msgid ""
27784 "If it fails (and/or exits with non-zero error code), please paste the "
27785 "B<complete, unedited> output of the test tool into a bug report.  More "
27786 "information about reporting bugs can be found on the "
27787 "L<http://libguestfs.org/> website."
27788 msgstr ""
27789
27790 #. type: =item
27791 #: ../test-tool/libguestfs-test-tool.pod:41
27792 msgid "I<--help>"
27793 msgstr ""
27794
27795 #. type: textblock
27796 #: ../test-tool/libguestfs-test-tool.pod:43
27797 msgid "Display short usage information and exit."
27798 msgstr ""
27799
27800 #. type: =item
27801 #: ../test-tool/libguestfs-test-tool.pod:45
27802 msgid "I<--qemu qemu_binary>"
27803 msgstr ""
27804
27805 #. type: textblock
27806 #: ../test-tool/libguestfs-test-tool.pod:47
27807 msgid ""
27808 "If you have downloaded another qemu binary, point this option at the full "
27809 "path of the binary to try it."
27810 msgstr ""
27811
27812 #. type: =item
27813 #: ../test-tool/libguestfs-test-tool.pod:50
27814 msgid "I<--qemudir qemu_source_dir>"
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../test-tool/libguestfs-test-tool.pod:52
27819 msgid ""
27820 "If you have compiled qemu from source, point this option at the source "
27821 "directory to try it."
27822 msgstr ""
27823
27824 #. type: =item
27825 #: ../test-tool/libguestfs-test-tool.pod:55
27826 msgid "I<--timeout N>"
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../test-tool/libguestfs-test-tool.pod:57
27831 msgid ""
27832 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
27833 "does not usually need to be adjusted unless your machine is very slow."
27834 msgstr ""
27835
27836 #. type: =head1
27837 #: ../test-tool/libguestfs-test-tool.pod:63
27838 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
27839 msgstr ""
27840
27841 #. type: textblock
27842 #: ../test-tool/libguestfs-test-tool.pod:65
27843 msgid ""
27844 "If you have compiled another version of qemu from source and would like to "
27845 "try that, then you can use the I<--qemudir> option to point to the qemu "
27846 "source directory."
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../test-tool/libguestfs-test-tool.pod:69
27851 msgid ""
27852 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
27853 "option to point to the binary."
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../test-tool/libguestfs-test-tool.pod:72
27858 msgid ""
27859 "When using an alternate qemu with libguestfs, usually you would need to "
27860 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
27861 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
27862 "when you use either of the I<--qemudir> or I<--qemu> options."
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../test-tool/libguestfs-test-tool.pod:79
27867 msgid ""
27868 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
27869 "I<1> if there was an error."
27870 msgstr ""
27871
27872 #. type: textblock
27873 #: ../test-tool/libguestfs-test-tool.pod:84
27874 msgid ""
27875 "For the full list of environment variables which may affect libguestfs, "
27876 "please see the L<guestfs(3)> manual page."
27877 msgstr ""
27878
27879 #. type: textblock
27880 #: ../test-tool/libguestfs-test-tool.pod:89
27881 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
27882 msgstr ""
27883
27884 #. type: textblock
27885 #: ../fuse/guestmount.pod:5
27886 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
27887 msgstr ""
27888
27889 #. type: verbatim
27890 #: ../fuse/guestmount.pod:9
27891 #, no-wrap
27892 msgid ""
27893 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
27894 "\n"
27895 msgstr ""
27896
27897 #. type: verbatim
27898 #: ../fuse/guestmount.pod:11
27899 #, no-wrap
27900 msgid ""
27901 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
27902 "\n"
27903 msgstr ""
27904
27905 #. type: verbatim
27906 #: ../fuse/guestmount.pod:13
27907 #, no-wrap
27908 msgid ""
27909 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
27910 "\n"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../fuse/guestmount.pod:17
27915 msgid ""
27916 "You must I<not> use C<guestmount> in read-write mode on live virtual "
27917 "machines.  If you do this, you risk disk corruption in the VM."
27918 msgstr ""
27919
27920 #. type: textblock
27921 #: ../fuse/guestmount.pod:22
27922 msgid ""
27923 "The guestmount program can be used to mount virtual machine filesystems and "
27924 "other disk images on the host.  It uses libguestfs for access to the guest "
27925 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
27926 "a mountable device."
27927 msgstr ""
27928
27929 #. type: textblock
27930 #: ../fuse/guestmount.pod:27
27931 msgid ""
27932 "Along with other options, you have to give at least one device (I<-a> "
27933 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
27934 "option) or use the I<-i> inspection option.  How this works is better "
27935 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
27936 "below."
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../fuse/guestmount.pod:33
27941 msgid ""
27942 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
27943 "by you, and the filesystem will not be visible to any other users unless you "
27944 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
27945 "the filesystem, use the C<fusermount -u> command."
27946 msgstr ""
27947
27948 #. type: textblock
27949 #: ../fuse/guestmount.pod:41
27950 msgid ""
27951 "For a typical Windows guest which has its main filesystem on the first "
27952 "partition:"
27953 msgstr ""
27954
27955 #. type: verbatim
27956 #: ../fuse/guestmount.pod:44
27957 #, no-wrap
27958 msgid ""
27959 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
27960 "\n"
27961 msgstr ""
27962
27963 #. type: textblock
27964 #: ../fuse/guestmount.pod:46
27965 msgid ""
27966 "For a typical Linux guest which has a /boot filesystem on the first "
27967 "partition, and the root filesystem on a logical volume:"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../fuse/guestmount.pod:49
27972 #, no-wrap
27973 msgid ""
27974 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
27975 "\n"
27976 msgstr ""
27977
27978 #. type: textblock
27979 #: ../fuse/guestmount.pod:51
27980 msgid "To get libguestfs to detect guest mountpoints for you:"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../fuse/guestmount.pod:53
27985 #, no-wrap
27986 msgid ""
27987 " guestmount -a guest.img -i --ro /mnt\n"
27988 "\n"
27989 msgstr ""
27990
27991 #. type: textblock
27992 #: ../fuse/guestmount.pod:55
27993 msgid "For a libvirt guest called \"Guest\" you could do:"
27994 msgstr ""
27995
27996 #. type: verbatim
27997 #: ../fuse/guestmount.pod:57
27998 #, no-wrap
27999 msgid ""
28000 " guestmount -d Guest -i --ro /mnt\n"
28001 "\n"
28002 msgstr ""
28003
28004 #. type: textblock
28005 #: ../fuse/guestmount.pod:59
28006 msgid ""
28007 "If you don't know what filesystems are contained in a guest or disk image, "
28008 "use L<virt-filesystems(1)> first:"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../fuse/guestmount.pod:62
28013 #, no-wrap
28014 msgid ""
28015 " virt-filesystems MyGuest\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../fuse/guestmount.pod:64
28021 msgid ""
28022 "If you want to trace the libguestfs calls but without excessive debugging "
28023 "information, we recommend:"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../fuse/guestmount.pod:67
28028 #, no-wrap
28029 msgid ""
28030 " guestmount [...] --trace /mnt\n"
28031 "\n"
28032 msgstr ""
28033
28034 #. type: textblock
28035 #: ../fuse/guestmount.pod:69
28036 msgid "If you want to debug the program, we recommend:"
28037 msgstr ""
28038
28039 #. type: verbatim
28040 #: ../fuse/guestmount.pod:71
28041 #, no-wrap
28042 msgid ""
28043 " guestmount [...] --trace --verbose /mnt\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: =item
28048 #: ../fuse/guestmount.pod:77
28049 msgid "B<-a image> | B<--add image>"
28050 msgstr ""
28051
28052 #. type: textblock
28053 #: ../fuse/guestmount.pod:79
28054 msgid "Add a block device or virtual machine image."
28055 msgstr ""
28056
28057 #. type: =item
28058 #: ../fuse/guestmount.pod:84
28059 msgid "B<-c URI> | B<--connect URI>"
28060 msgstr ""
28061
28062 #. type: =item
28063 #: ../fuse/guestmount.pod:90
28064 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
28065 msgstr ""
28066
28067 #. type: =item
28068 #: ../fuse/guestmount.pod:96
28069 msgid "B<--dir-cache-timeout N>"
28070 msgstr ""
28071
28072 #. type: textblock
28073 #: ../fuse/guestmount.pod:98
28074 msgid ""
28075 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
28076 "seconds.  The readdir cache [actually, there are several semi-independent "
28077 "caches] is populated after a readdir(2) call with the stat and extended "
28078 "attributes of the files in the directory, in anticipation that they will be "
28079 "requested soon after."
28080 msgstr ""
28081
28082 #. type: textblock
28083 #: ../fuse/guestmount.pod:104
28084 msgid ""
28085 "There is also a different attribute cache implemented by FUSE (see the FUSE "
28086 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
28087 "requests, only cache existing ones."
28088 msgstr ""
28089
28090 #. type: =item
28091 #: ../fuse/guestmount.pod:115
28092 msgid "B<--format=raw|qcow2|..> | B<--format>"
28093 msgstr ""
28094
28095 #. type: textblock
28096 #: ../fuse/guestmount.pod:122
28097 msgid ""
28098 "If you have untrusted raw-format guest disk images, you should use this "
28099 "option to specify the disk format.  This avoids a possible security problem "
28100 "with malicious guests (CVE-2010-3851).  See also "
28101 "L<guestfs(3)/guestfs_add_drive_opts>."
28102 msgstr ""
28103
28104 #. type: =item
28105 #: ../fuse/guestmount.pod:127
28106 msgid "B<--fuse-help>"
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../fuse/guestmount.pod:129
28111 msgid "Display help on special FUSE options (see I<-o> below)."
28112 msgstr ""
28113
28114 #. type: textblock
28115 #: ../fuse/guestmount.pod:133
28116 msgid "Display brief help and exit."
28117 msgstr ""
28118
28119 #. type: =item
28120 #: ../fuse/guestmount.pod:135
28121 msgid "B<-i> | B<--inspector>"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../fuse/guestmount.pod:155
28126 msgid ""
28127 "Mount the named partition or logical volume on the given mountpoint B<in the "
28128 "guest> (this has nothing to do with mountpoints in the host)."
28129 msgstr ""
28130
28131 #. type: textblock
28132 #: ../fuse/guestmount.pod:158
28133 msgid ""
28134 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
28135 "something on C</>."
28136 msgstr ""
28137
28138 #. type: =item
28139 #: ../fuse/guestmount.pod:171
28140 msgid "B<-n> | B<--no-sync>"
28141 msgstr ""
28142
28143 #. type: textblock
28144 #: ../fuse/guestmount.pod:173
28145 msgid ""
28146 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
28147 "unmounted.  If you specify this option, then we don't attempt to sync the "
28148 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
28149 msgstr ""
28150
28151 #. type: =item
28152 #: ../fuse/guestmount.pod:178
28153 msgid "B<-o option> | B<--option option>"
28154 msgstr ""
28155
28156 #. type: textblock
28157 #: ../fuse/guestmount.pod:180
28158 msgid "Pass extra options to FUSE."
28159 msgstr ""
28160
28161 #. type: textblock
28162 #: ../fuse/guestmount.pod:182
28163 msgid ""
28164 "To get a list of all the extra options supported by FUSE, use the command "
28165 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
28166 "of them are a good idea."
28167 msgstr ""
28168
28169 #. type: verbatim
28170 #: ../fuse/guestmount.pod:186
28171 #, no-wrap
28172 msgid ""
28173 " guestmount --fuse-help\n"
28174 "\n"
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../fuse/guestmount.pod:188
28179 msgid "Some potentially useful FUSE options:"
28180 msgstr ""
28181
28182 #. type: =item
28183 #: ../fuse/guestmount.pod:192
28184 msgid "B<-o allow_other>"
28185 msgstr ""
28186
28187 #. type: textblock
28188 #: ../fuse/guestmount.pod:194
28189 msgid "Allow other users to see the filesystem."
28190 msgstr ""
28191
28192 #. type: =item
28193 #: ../fuse/guestmount.pod:196
28194 msgid "B<-o attr_timeout=N>"
28195 msgstr ""
28196
28197 #. type: textblock
28198 #: ../fuse/guestmount.pod:198
28199 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28200 msgstr ""
28201
28202 #. type: =item
28203 #: ../fuse/guestmount.pod:200
28204 msgid "B<-o kernel_cache>"
28205 msgstr ""
28206
28207 #. type: textblock
28208 #: ../fuse/guestmount.pod:202
28209 msgid ""
28210 "Allow the kernel to cache files (reduces the number of reads that have to go "
28211 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28212 "afford the extra memory usage."
28213 msgstr ""
28214
28215 #. type: =item
28216 #: ../fuse/guestmount.pod:206
28217 msgid "B<-o uid=N> B<-o gid=N>"
28218 msgstr ""
28219
28220 #. type: textblock
28221 #: ../fuse/guestmount.pod:208
28222 msgid ""
28223 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28224 "the chosen values."
28225 msgstr ""
28226
28227 #. type: =item
28228 #: ../fuse/guestmount.pod:213
28229 msgid "B<-r> | B<--ro>"
28230 msgstr ""
28231
28232 #. type: textblock
28233 #: ../fuse/guestmount.pod:215
28234 msgid ""
28235 "Add devices and mount everything read-only.  Also disallow writes and make "
28236 "the disk appear read-only to FUSE."
28237 msgstr ""
28238
28239 #. type: textblock
28240 #: ../fuse/guestmount.pod:218
28241 msgid ""
28242 "This is highly recommended if you are not going to edit the guest disk.  If "
28243 "the guest is running and this option is I<not> supplied, then there is a "
28244 "strong risk of disk corruption in the guest.  We try to prevent this from "
28245 "happening, but it is not always possible."
28246 msgstr ""
28247
28248 #. type: textblock
28249 #: ../fuse/guestmount.pod:223
28250 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../fuse/guestmount.pod:227
28255 msgid "Enable SELinux support for the guest."
28256 msgstr ""
28257
28258 #. type: =item
28259 #: ../fuse/guestmount.pod:229
28260 msgid "B<-v> | B<--verbose>"
28261 msgstr ""
28262
28263 #. type: textblock
28264 #: ../fuse/guestmount.pod:231
28265 msgid "Enable verbose messages from underlying libguestfs."
28266 msgstr ""
28267
28268 #. type: =item
28269 #: ../fuse/guestmount.pod:233
28270 msgid "B<-V> | B<--version>"
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../fuse/guestmount.pod:235
28275 msgid "Display the program version and exit."
28276 msgstr ""
28277
28278 #. type: =item
28279 #: ../fuse/guestmount.pod:237
28280 msgid "B<-w> | B<--rw>"
28281 msgstr ""
28282
28283 #. type: textblock
28284 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
28285 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28286 msgstr ""
28287
28288 #. type: =item
28289 #: ../fuse/guestmount.pod:244
28290 msgid "B<-x> | B<--trace>"
28291 msgstr ""
28292
28293 #. type: textblock
28294 #: ../fuse/guestmount.pod:246
28295 msgid "Trace libguestfs calls and entry into each FUSE function."
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../fuse/guestmount.pod:248
28300 msgid "This also stops the daemon from forking into the background."
28301 msgstr ""
28302
28303 #. type: textblock
28304 #: ../fuse/guestmount.pod:269
28305 msgid ""
28306 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28307 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
28308 "L<http://fuse.sf.net/>."
28309 msgstr ""
28310
28311 #. type: textblock
28312 #: ../fuse/guestmount.pod:284
28313 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
28314 msgstr ""
28315
28316 #. type: textblock
28317 #: ../tools/virt-edit.pl:34
28318 msgid "virt-edit - Edit a file in a virtual machine"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../tools/virt-edit.pl:38
28323 #, no-wrap
28324 msgid ""
28325 " virt-edit [--options] domname file\n"
28326 "\n"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../tools/virt-edit.pl:40
28331 #, no-wrap
28332 msgid ""
28333 " virt-edit [--options] disk.img [disk.img ...] file\n"
28334 "\n"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../tools/virt-edit.pl:42
28339 #, no-wrap
28340 msgid ""
28341 " virt-edit [domname|disk.img] file -e 'expr'\n"
28342 "\n"
28343 msgstr ""
28344
28345 #. type: textblock
28346 #: ../tools/virt-edit.pl:46
28347 msgid ""
28348 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
28349 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
28350 "doing this, but doesn't catch all cases."
28351 msgstr ""
28352
28353 #. type: textblock
28354 #: ../tools/virt-edit.pl:52
28355 msgid ""
28356 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
28357 "the named virtual machine (or disk image)."
28358 msgstr ""
28359
28360 #. type: textblock
28361 #: ../tools/virt-edit.pl:55
28362 msgid "If you want to just view a file, use L<virt-cat(1)>."
28363 msgstr ""
28364
28365 #. type: textblock
28366 #: ../tools/virt-edit.pl:57
28367 msgid ""
28368 "For more complex cases you should look at the L<guestfish(1)> tool (see "
28369 "L</USING GUESTFISH> below)."
28370 msgstr ""
28371
28372 #. type: textblock
28373 #: ../tools/virt-edit.pl:60
28374 msgid ""
28375 "C<virt-edit> cannot be used to create a new file, nor to edit multiple "
28376 "files.  L<guestfish(1)> can do that and much more."
28377 msgstr ""
28378
28379 #. type: textblock
28380 #: ../tools/virt-edit.pl:65
28381 msgid "Edit the named files interactively:"
28382 msgstr ""
28383
28384 #. type: verbatim
28385 #: ../tools/virt-edit.pl:67
28386 #, no-wrap
28387 msgid ""
28388 " virt-edit mydomain /boot/grub/grub.conf\n"
28389 "\n"
28390 msgstr ""
28391
28392 #. type: verbatim
28393 #: ../tools/virt-edit.pl:69
28394 #, no-wrap
28395 msgid ""
28396 " virt-edit mydomain /etc/passwd\n"
28397 "\n"
28398 msgstr ""
28399
28400 #. type: textblock
28401 #: ../tools/virt-edit.pl:71
28402 msgid "For Windows guests, some Windows paths are understood:"
28403 msgstr ""
28404
28405 #. type: verbatim
28406 #: ../tools/virt-edit.pl:73
28407 #, no-wrap
28408 msgid ""
28409 " virt-edit mywindomain 'c:\\autoexec.bat'\n"
28410 "\n"
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../tools/virt-edit.pl:75
28415 msgid ""
28416 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
28417 "below).  To change the init default level to 5:"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../tools/virt-edit.pl:79
28422 #, no-wrap
28423 msgid ""
28424 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
28425 "\n"
28426 msgstr ""
28427
28428 #. type: textblock
28429 #: ../tools/virt-edit.pl:91 ../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
28430 msgid "Display brief help."
28431 msgstr ""
28432
28433 #. type: textblock
28434 #: ../tools/virt-edit.pl:99 ../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
28435 msgid "Display version number and exit."
28436 msgstr ""
28437
28438 #. type: =item
28439 #: ../tools/virt-edit.pl:105
28440 msgid "B<--backup extension> | B<-b extension>"
28441 msgstr ""
28442
28443 #. type: textblock
28444 #: ../tools/virt-edit.pl:107
28445 msgid ""
28446 "Create a backup of the original file I<in the guest disk image>.  The backup "
28447 "has the original filename with C<extension> added."
28448 msgstr ""
28449
28450 #. type: textblock
28451 #: ../tools/virt-edit.pl:110
28452 msgid ""
28453 "Usually the first character of C<extension> would be a dot C<.> so you would "
28454 "write:"
28455 msgstr ""
28456
28457 #. type: verbatim
28458 #: ../tools/virt-edit.pl:113
28459 #, no-wrap
28460 msgid ""
28461 " virt-edit -b .orig [etc]\n"
28462 "\n"
28463 msgstr ""
28464
28465 #. type: textblock
28466 #: ../tools/virt-edit.pl:115
28467 msgid "By default, no backup file is made."
28468 msgstr ""
28469
28470 #. type: =item
28471 #: ../tools/virt-edit.pl:121 ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
28472 msgid "B<--connect URI> | B<-c URI>"
28473 msgstr ""
28474
28475 #. type: textblock
28476 #: ../tools/virt-edit.pl:123 ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
28477 msgid ""
28478 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
28479 "to the default libvirt hypervisor."
28480 msgstr ""
28481
28482 #. type: textblock
28483 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
28484 msgid ""
28485 "If you specify guest block devices directly, then libvirt is not used at "
28486 "all."
28487 msgstr ""
28488
28489 #. type: =item
28490 #: ../tools/virt-edit.pl:133 ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
28491 msgid "B<--format> raw"
28492 msgstr ""
28493
28494 #. type: textblock
28495 #: ../tools/virt-edit.pl:135 ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
28496 msgid ""
28497 "Specify the format of disk images given on the command line.  If this is "
28498 "omitted then the format is autodetected from the content of the disk image."
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../tools/virt-edit.pl:139 ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
28503 msgid ""
28504 "If disk images are requested from libvirt, then this program asks libvirt "
28505 "for this information.  In this case, the value of the format parameter is "
28506 "ignored."
28507 msgstr ""
28508
28509 #. type: textblock
28510 #: ../tools/virt-edit.pl:143 ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
28511 msgid ""
28512 "If working with untrusted raw-format guest disk images, you should ensure "
28513 "the format is always specified."
28514 msgstr ""
28515
28516 #. type: =item
28517 #: ../tools/virt-edit.pl:150
28518 msgid "B<--expr EXPR> | B<-e EXPR>"
28519 msgstr ""
28520
28521 #. type: textblock
28522 #: ../tools/virt-edit.pl:152
28523 msgid ""
28524 "Instead of launching the external editor, non-interactively apply the Perl "
28525 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
28526 "EDITING> below."
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../tools/virt-edit.pl:156
28531 msgid ""
28532 "Be careful to properly quote the expression to prevent it from being altered "
28533 "by the shell."
28534 msgstr ""
28535
28536 #. type: =head1
28537 #: ../tools/virt-edit.pl:280
28538 msgid "NON-INTERACTIVE EDITING"
28539 msgstr ""
28540
28541 #. type: textblock
28542 #: ../tools/virt-edit.pl:282
28543 msgid ""
28544 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
28545 "administrator can interactively edit the file."
28546 msgstr ""
28547
28548 #. type: textblock
28549 #: ../tools/virt-edit.pl:285
28550 msgid ""
28551 "There are two ways also to use C<virt-edit> from scripts in order to make "
28552 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
28553 "like this, it's less error-prone to write scripts directly using the "
28554 "libguestfs API and Augeas for configuration file editing.)"
28555 msgstr ""
28556
28557 #. type: textblock
28558 #: ../tools/virt-edit.pl:291
28559 msgid ""
28560 "The first method is to temporarily set C<$EDITOR> to any script or program "
28561 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
28562 "update C<tmpfile> in place however it likes."
28563 msgstr ""
28564
28565 #. type: textblock
28566 #: ../tools/virt-edit.pl:295
28567 msgid ""
28568 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
28569 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
28570 "instances of C<foo> with C<bar> in a file:"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../tools/virt-edit.pl:299
28575 #, no-wrap
28576 msgid ""
28577 " virt-edit domname filename -e 's/foo/bar/'\n"
28578 "\n"
28579 msgstr ""
28580
28581 #. type: textblock
28582 #: ../tools/virt-edit.pl:301
28583 msgid ""
28584 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
28585 "For example to delete root's password you could do:"
28586 msgstr ""
28587
28588 #. type: verbatim
28589 #: ../tools/virt-edit.pl:304
28590 #, no-wrap
28591 msgid ""
28592 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
28593 "\n"
28594 msgstr ""
28595
28596 #. type: textblock
28597 #: ../tools/virt-edit.pl:306
28598 msgid ""
28599 "What really happens is that the snippet is evaluated as a Perl expression "
28600 "for each line of the file.  The line, including the final C<\\n>, is passed "
28601 "in C<$_> and the expression should update C<$_> or leave it unchanged."
28602 msgstr ""
28603
28604 #. type: textblock
28605 #: ../tools/virt-edit.pl:311
28606 msgid ""
28607 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
28608 "C<apache> user account from the password file you can do:"
28609 msgstr ""
28610
28611 #. type: verbatim
28612 #: ../tools/virt-edit.pl:314
28613 #, no-wrap
28614 msgid ""
28615 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../tools/virt-edit.pl:316
28621 msgid ""
28622 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
28623 "the end of the file is rather difficult this way since there is no concept "
28624 "of \"last line of the file\" - your expression just doesn't get called "
28625 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
28626 "want to do this."
28627 msgstr ""
28628
28629 #. type: textblock
28630 #: ../tools/virt-edit.pl:322
28631 msgid ""
28632 "The variable C<$lineno> contains the current line number.  As is "
28633 "traditional, the first line in the file is number C<1>."
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../tools/virt-edit.pl:325
28638 msgid ""
28639 "The return value from the expression is ignored, but the expression may call "
28640 "C<die> in order to abort the whole program, leaving the original file "
28641 "untouched."
28642 msgstr ""
28643
28644 #. type: textblock
28645 #: ../tools/virt-edit.pl:329
28646 msgid ""
28647 "Remember when matching the end of a line that C<$_> may contain the final "
28648 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
28649 "newline then neither of these.  Thus to match or substitute some text at the "
28650 "end of a line, use this regular expression:"
28651 msgstr ""
28652
28653 #. type: verbatim
28654 #: ../tools/virt-edit.pl:334
28655 #, no-wrap
28656 msgid ""
28657 " /some text(\\r?\\n)?$/\n"
28658 "\n"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../tools/virt-edit.pl:336
28663 msgid ""
28664 "Alternately, use the perl C<chomp> function, being careful not to chomp "
28665 "C<$_> itself (since that would remove all newlines from the file):"
28666 msgstr ""
28667
28668 #. type: verbatim
28669 #: ../tools/virt-edit.pl:340
28670 #, no-wrap
28671 msgid ""
28672 " my $m = $_; chomp $m; $m =~ /some text$/\n"
28673 "\n"
28674 msgstr ""
28675
28676 #. type: textblock
28677 #: ../tools/virt-edit.pl:344
28678 msgid ""
28679 "C<virt-edit> has a limited ability to understand Windows drive letters and "
28680 "paths (eg. C<E:\\foo\\bar.txt>)."
28681 msgstr ""
28682
28683 #. type: textblock
28684 #: ../tools/virt-edit.pl:347
28685 msgid "If and only if the guest is running Windows then:"
28686 msgstr ""
28687
28688 #. type: textblock
28689 #: ../tools/virt-edit.pl:353
28690 msgid ""
28691 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
28692 "to the correct filesystem."
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../tools/virt-edit.pl:358
28697 msgid ""
28698 "Any backslash (C<\\>) characters in the path are replaced with forward "
28699 "slashes so that libguestfs can process it."
28700 msgstr ""
28701
28702 #. type: textblock
28703 #: ../tools/virt-edit.pl:363
28704 msgid ""
28705 "The path is resolved case insensitively to locate the file that should be "
28706 "edited."
28707 msgstr ""
28708
28709 #. type: textblock
28710 #: ../tools/virt-edit.pl:368
28711 msgid "There are some known shortcomings:"
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../tools/virt-edit.pl:374
28716 msgid "Some NTFS symbolic links may not be followed correctly."
28717 msgstr ""
28718
28719 #. type: textblock
28720 #: ../tools/virt-edit.pl:378
28721 msgid "NTFS junction points that cross filesystems are not followed."
28722 msgstr ""
28723
28724 #. type: =head1
28725 #: ../tools/virt-edit.pl:435
28726 msgid "USING GUESTFISH"
28727 msgstr ""
28728
28729 #. type: textblock
28730 #: ../tools/virt-edit.pl:437
28731 msgid ""
28732 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
28733 "C<virt-edit> doesn't work."
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../tools/virt-edit.pl:440
28738 msgid "Using C<virt-edit> is approximately equivalent to doing:"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../tools/virt-edit.pl:442
28743 #, no-wrap
28744 msgid ""
28745 " guestfish --rw -i -d domname edit /file\n"
28746 "\n"
28747 msgstr ""
28748
28749 #. type: textblock
28750 #: ../tools/virt-edit.pl:444
28751 msgid ""
28752 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
28753 "path to the file."
28754 msgstr ""
28755
28756 #. type: textblock
28757 #: ../tools/virt-edit.pl:447
28758 msgid ""
28759 "The command above uses libguestfs's guest inspection feature and so does not "
28760 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
28761 "disk images that don't contain guests.  To edit a file on a disk image "
28762 "directly, use:"
28763 msgstr ""
28764
28765 #. type: verbatim
28766 #: ../tools/virt-edit.pl:452
28767 #, no-wrap
28768 msgid ""
28769 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
28770 "\n"
28771 msgstr ""
28772
28773 #. type: textblock
28774 #: ../tools/virt-edit.pl:454
28775 msgid ""
28776 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
28777 "the disk image to edit, and C</file> is the full path to the file."
28778 msgstr ""
28779
28780 #. type: textblock
28781 #: ../tools/virt-edit.pl:458
28782 msgid ""
28783 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
28784 "C<write> or C<upload> instead:"
28785 msgstr ""
28786
28787 #. type: verbatim
28788 #: ../tools/virt-edit.pl:461
28789 #, no-wrap
28790 msgid ""
28791 " guestfish --rw -i -d domname touch /newfile\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: verbatim
28796 #: ../tools/virt-edit.pl:463
28797 #, no-wrap
28798 msgid ""
28799 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
28800 "\n"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../tools/virt-edit.pl:465
28805 #, no-wrap
28806 msgid ""
28807 " guestfish --rw -i -d domname upload localfile /newfile\n"
28808 "\n"
28809 msgstr ""
28810
28811 #. type: textblock
28812 #: ../tools/virt-edit.pl:467
28813 msgid "C<virt-edit> cannot edit multiple files, but guestfish can do it like this:"
28814 msgstr ""
28815
28816 #. type: verbatim
28817 #: ../tools/virt-edit.pl:470
28818 #, no-wrap
28819 msgid ""
28820 " guestfish --rw -i -d domname edit /file1 : edit /file2\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: =item
28825 #: ../tools/virt-edit.pl:480
28826 msgid "C<EDITOR>"
28827 msgstr ""
28828
28829 #. type: textblock
28830 #: ../tools/virt-edit.pl:482
28831 msgid ""
28832 "If set, this string is used as the editor.  It may contain arguments, "
28833 "eg. C<\"emacs -nw\">"
28834 msgstr ""
28835
28836 #. type: textblock
28837 #: ../tools/virt-edit.pl:485
28838 msgid "If not set, C<vi> is used."
28839 msgstr ""
28840
28841 #. type: =head1
28842 #: ../tools/virt-edit.pl:489 ../tools/virt-win-reg.pl:559 ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532 ../tools/virt-list-partitions.pl:250
28843 msgid "SHELL QUOTING"
28844 msgstr ""
28845
28846 #. type: textblock
28847 #: ../tools/virt-edit.pl:491 ../tools/virt-win-reg.pl:567 ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:252
28848 msgid ""
28849 "Libvirt guest names can contain arbitrary characters, some of which have "
28850 "meaning to the shell such as C<#> and space.  You may need to quote or "
28851 "escape these characters on the command line.  See the shell manual page "
28852 "L<sh(1)> for details."
28853 msgstr ""
28854
28855 #. type: textblock
28856 #: ../tools/virt-edit.pl:498
28857 msgid ""
28858 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
28859 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28860 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
28861 msgstr ""
28862
28863 #. type: =head1
28864 #: ../tools/virt-edit.pl:510 ../tools/virt-win-reg.pl:598 ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564 ../tools/virt-list-partitions.pl:269
28865 msgid "AUTHOR"
28866 msgstr ""
28867
28868 #. type: textblock
28869 #: ../tools/virt-edit.pl:512 ../tools/virt-win-reg.pl:600 ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566 ../tools/virt-list-partitions.pl:271
28870 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
28871 msgstr ""
28872
28873 #. type: textblock
28874 #: ../tools/virt-edit.pl:516
28875 msgid "Copyright (C) 2009-2011 Red Hat Inc."
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../tools/virt-win-reg.pl:37
28880 msgid ""
28881 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
28882 "guest"
28883 msgstr ""
28884
28885 #. type: verbatim
28886 #: ../tools/virt-win-reg.pl:41
28887 #, no-wrap
28888 msgid ""
28889 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: verbatim
28894 #: ../tools/virt-win-reg.pl:43
28895 #, no-wrap
28896 msgid ""
28897 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
28898 "\n"
28899 msgstr ""
28900
28901 #. type: verbatim
28902 #: ../tools/virt-win-reg.pl:45
28903 #, no-wrap
28904 msgid ""
28905 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
28906 "\n"
28907 msgstr ""
28908
28909 #. type: verbatim
28910 #: ../tools/virt-win-reg.pl:47
28911 #, no-wrap
28912 msgid ""
28913 " virt-win-reg --merge domname [input.reg ...]\n"
28914 "\n"
28915 msgstr ""
28916
28917 #. type: verbatim
28918 #: ../tools/virt-win-reg.pl:49
28919 #, no-wrap
28920 msgid ""
28921 " virt-win-reg [--options] disk.img ... # instead of domname\n"
28922 "\n"
28923 msgstr ""
28924
28925 #. type: textblock
28926 #: ../tools/virt-win-reg.pl:53
28927 msgid ""
28928 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
28929 "virtual machines.  If you do this, you I<will> get irreversible disk "
28930 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
28931 "but doesn't catch all cases."
28932 msgstr ""
28933
28934 #. type: textblock
28935 #: ../tools/virt-win-reg.pl:58
28936 msgid ""
28937 "Modifying the Windows Registry is an inherently risky operation.  The format "
28938 "is deliberately obscure and undocumented, and Registry changes can leave the "
28939 "system unbootable.  Therefore when using the I<--merge> option, make sure "
28940 "you have a reliable backup first."
28941 msgstr ""
28942
28943 #. type: textblock
28944 #: ../tools/virt-win-reg.pl:65
28945 msgid ""
28946 "This program can export and merge Windows Registry entries from a Windows "
28947 "guest."
28948 msgstr ""
28949
28950 #. type: textblock
28951 #: ../tools/virt-win-reg.pl:68
28952 msgid ""
28953 "The first parameter is the libvirt guest name or the raw disk image of a "
28954 "Windows guest."
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../tools/virt-win-reg.pl:71
28959 msgid ""
28960 "If I<--merge> is I<not> specified, then the chosen registry key is "
28961 "displayed/exported (recursively).  For example:"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../tools/virt-win-reg.pl:74
28966 #, no-wrap
28967 msgid ""
28968 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: textblock
28973 #: ../tools/virt-win-reg.pl:76
28974 msgid "You can also display single values from within registry keys, for example:"
28975 msgstr ""
28976
28977 #. type: verbatim
28978 #: ../tools/virt-win-reg.pl:79
28979 #, no-wrap
28980 msgid ""
28981 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
28982 " $ virt-win-reg Windows7 $cvkey ProductName\n"
28983 " Windows 7 Enterprise\n"
28984 "\n"
28985 msgstr ""
28986
28987 #. type: textblock
28988 #: ../tools/virt-win-reg.pl:83
28989 msgid ""
28990 "With I<--merge>, you can merge a textual regedit file into the Windows "
28991 "Registry:"
28992 msgstr ""
28993
28994 #. type: verbatim
28995 #: ../tools/virt-win-reg.pl:86
28996 #, no-wrap
28997 msgid ""
28998 " $ virt-win-reg --merge Windows7 changes.reg\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: =head1
29003 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
29004 msgid "NOTE"
29005 msgstr ""
29006
29007 #. type: textblock
29008 #: ../tools/virt-win-reg.pl:90
29009 msgid ""
29010 "This program is only meant for simple access to the registry.  If you want "
29011 "to do complicated things with the registry, we suggest you download the "
29012 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
29013 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
29014 "L<hivexregedit(1)>."
29015 msgstr ""
29016
29017 #. type: =item
29018 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
29019 msgid "B<--debug>"
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../tools/virt-win-reg.pl:122
29024 msgid "Enable debugging messages."
29025 msgstr ""
29026
29027 #. type: =item
29028 #: ../tools/virt-win-reg.pl:157
29029 msgid "B<--merge>"
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../tools/virt-win-reg.pl:159
29034 msgid ""
29035 "In merge mode, this merges a textual regedit file into the Windows Registry "
29036 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
29037 "displays or exports Registry entries instead."
29038 msgstr ""
29039
29040 #. type: textblock
29041 #: ../tools/virt-win-reg.pl:163
29042 msgid ""
29043 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
29044 "result in disk corruption.  However exporting (without this flag)  is always "
29045 "safe."
29046 msgstr ""
29047
29048 #. type: =item
29049 #: ../tools/virt-win-reg.pl:171
29050 msgid "B<--encoding> UTF-16LE|ASCII"
29051 msgstr ""
29052
29053 #. type: textblock
29054 #: ../tools/virt-win-reg.pl:173
29055 msgid ""
29056 "When merging (only), you may need to specify the encoding for strings to be "
29057 "used in the hive file.  This is explained in detail in "
29058 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
29059 msgstr ""
29060
29061 #. type: textblock
29062 #: ../tools/virt-win-reg.pl:177
29063 msgid ""
29064 "The default is to use UTF-16LE, which should work with recent versions of "
29065 "Windows."
29066 msgstr ""
29067
29068 #. type: =head1
29069 #: ../tools/virt-win-reg.pl:402
29070 msgid "SUPPORTED SYSTEMS"
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../tools/virt-win-reg.pl:404
29075 msgid ""
29076 "The program currently supports Windows NT-derived guests starting with "
29077 "Windows XP through to at least Windows 7."
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../tools/virt-win-reg.pl:407
29082 msgid ""
29083 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
29084 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
29085 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
29086 msgstr ""
29087
29088 #. type: textblock
29089 #: ../tools/virt-win-reg.pl:411
29090 msgid ""
29091 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
29092 "C<HKEY_USERS>."
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../tools/virt-win-reg.pl:414
29097 msgid ""
29098 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
29099 "time."
29100 msgstr ""
29101
29102 #. type: =head1
29103 #: ../tools/virt-win-reg.pl:417
29104 msgid "ENCODING"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../tools/virt-win-reg.pl:419
29109 msgid ""
29110 "C<virt-win-reg> expects that regedit files have already been reencoded in "
29111 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
29112 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
29113 "with Windows-style line endings, you may need to reencode the whole file "
29114 "before or after processing."
29115 msgstr ""
29116
29117 #. type: textblock
29118 #: ../tools/virt-win-reg.pl:425
29119 msgid ""
29120 "To reencode a file from Windows format to Linux (before processing it with "
29121 "the I<--merge> option), you would do something like this:"
29122 msgstr ""
29123
29124 #. type: verbatim
29125 #: ../tools/virt-win-reg.pl:428
29126 #, no-wrap
29127 msgid ""
29128 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../tools/virt-win-reg.pl:430
29134 msgid ""
29135 "To go in the opposite direction, after exporting and before sending the file "
29136 "to a Windows user, do something like this:"
29137 msgstr ""
29138
29139 #. type: verbatim
29140 #: ../tools/virt-win-reg.pl:433
29141 #, no-wrap
29142 msgid ""
29143 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
29144 "\n"
29145 msgstr ""
29146
29147 #. type: textblock
29148 #: ../tools/virt-win-reg.pl:435
29149 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
29150 msgstr ""
29151
29152 #. type: textblock
29153 #: ../tools/virt-win-reg.pl:437
29154 msgid ""
29155 "If you are unsure about the current encoding, use the L<file(1)> command.  "
29156 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
29157 "Windows-style (CRLF) line endings, like this:"
29158 msgstr ""
29159
29160 #. type: verbatim
29161 #: ../tools/virt-win-reg.pl:441
29162 #, no-wrap
29163 msgid ""
29164 " $ file software.reg\n"
29165 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
29166 " with CRLF line terminators\n"
29167 "\n"
29168 msgstr ""
29169
29170 #. type: textblock
29171 #: ../tools/virt-win-reg.pl:445
29172 msgid "This file would need conversion before you could I<--merge> it."
29173 msgstr ""
29174
29175 #. type: =head1
29176 #: ../tools/virt-win-reg.pl:447
29177 msgid "CurrentControlSet etc."
29178 msgstr ""
29179
29180 #. type: textblock
29181 #: ../tools/virt-win-reg.pl:449
29182 msgid ""
29183 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29184 "Registry at the level of the hive file, and therefore you cannot modify "
29185 "these."
29186 msgstr ""
29187
29188 #. type: textblock
29189 #: ../tools/virt-win-reg.pl:453
29190 msgid ""
29191 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29192 "circumstances it might refer to another control set.  The way to find out is "
29193 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../tools/virt-win-reg.pl:457
29198 #, no-wrap
29199 msgid ""
29200 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29201 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29202 " \"Current\"=dword:00000001\n"
29203 " \"Default\"=dword:00000001\n"
29204 " \"Failed\"=dword:00000000\n"
29205 " \"LastKnownGood\"=dword:00000002\n"
29206 "\n"
29207 msgstr ""
29208
29209 #. type: textblock
29210 #: ../tools/virt-win-reg.pl:464
29211 msgid "\"Current\" is the one which Windows will choose when it boots."
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../tools/virt-win-reg.pl:466
29216 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
29217 msgstr ""
29218
29219 #. type: =head1
29220 #: ../tools/virt-win-reg.pl:469
29221 msgid "WINDOWS TIPS"
29222 msgstr ""
29223
29224 #. type: textblock
29225 #: ../tools/virt-win-reg.pl:471
29226 msgid ""
29227 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29228 "be shut off, else you will get disk corruption."
29229 msgstr ""
29230
29231 #. type: =head2
29232 #: ../tools/virt-win-reg.pl:474
29233 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../tools/virt-win-reg.pl:476
29238 msgid ""
29239 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29240 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29241 "is uploaded into C<C:\\>:"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../tools/virt-win-reg.pl:480
29246 #, no-wrap
29247 msgid ""
29248 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29249 "\n"
29250 msgstr ""
29251
29252 #. type: textblock
29253 #: ../tools/virt-win-reg.pl:482
29254 msgid "Prepare a regedit file containing the registry change:"
29255 msgstr ""
29256
29257 #. type: verbatim
29258 #: ../tools/virt-win-reg.pl:484
29259 #, no-wrap
29260 msgid ""
29261 " cat > test.reg <<'EOF'\n"
29262 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29263 " \"Test\"=\"c:\\\\test.bat\"\n"
29264 " EOF\n"
29265 "\n"
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../tools/virt-win-reg.pl:489
29270 msgid ""
29271 "In this example we use the key C<RunOnce> which means that the script will "
29272 "run precisely once when the first user logs in.  If you want it to run every "
29273 "time a user logs in, replace C<RunOnce> with C<Run>."
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../tools/virt-win-reg.pl:493
29278 msgid "Now update the registry:"
29279 msgstr ""
29280
29281 #. type: verbatim
29282 #: ../tools/virt-win-reg.pl:495
29283 #, no-wrap
29284 msgid ""
29285 " virt-win-reg --merge WindowsGuest test.reg\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: =head2
29290 #: ../tools/virt-win-reg.pl:497
29291 msgid "INSTALLING A SERVICE"
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../tools/virt-win-reg.pl:499
29296 msgid ""
29297 "This section assumes you are familiar with Windows services, and you either "
29298 "have a program which handles the Windows Service Control Protocol directly "
29299 "or you want to run any program using a service wrapper like SrvAny or the "
29300 "free RHSrvAny."
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../tools/virt-win-reg.pl:504
29305 msgid ""
29306 "First upload the program and optionally the service wrapper.  In this case "
29307 "the test program is called C<test.exe> and we are using the RHSrvAny "
29308 "wrapper:"
29309 msgstr ""
29310
29311 #. type: verbatim
29312 #: ../tools/virt-win-reg.pl:508
29313 #, no-wrap
29314 msgid ""
29315 " guestfish -i -d WindowsGuest <<EOF\n"
29316 "   upload rhsrvany.exe /rhsrvany.exe\n"
29317 "   upload test.exe /test.exe\n"
29318 " EOF\n"
29319 "\n"
29320 msgstr ""
29321
29322 #. type: textblock
29323 #: ../tools/virt-win-reg.pl:513
29324 msgid ""
29325 "Prepare a regedit file containing the registry changes.  In this example, "
29326 "the first registry change is needed for the service itself or the service "
29327 "wrapper (if used).  The second registry change is only needed because I am "
29328 "using the RHSrvAny service wrapper."
29329 msgstr ""
29330
29331 #. type: verbatim
29332 #: ../tools/virt-win-reg.pl:518
29333 #, no-wrap
29334 msgid ""
29335 " cat > service.reg <<'EOF'\n"
29336 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29337 " \"Type\"=dword:00000010\n"
29338 " \"Start\"=dword:00000002\n"
29339 " \"ErrorControl\"=dword:00000001\n"
29340 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29341 " \"DisplayName\"=\"RHSrvAny\"\n"
29342 " \"ObjectName\"=\"NetworkService\"\n"
29343 " \n"
29344 msgstr ""
29345
29346 #. type: verbatim
29347 #: ../tools/virt-win-reg.pl:527
29348 #, no-wrap
29349 msgid ""
29350 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29351 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29352 " \"PWD\"=\"c:\\\\Temp\"\n"
29353 " EOF\n"
29354 "\n"
29355 msgstr ""
29356
29357 #. type: textblock
29358 #: ../tools/virt-win-reg.pl:538
29359 msgid ""
29360 "For use of C<ControlSet001> see the section above in this manual page.  You "
29361 "may need to adjust this according to the control set that is in use by the "
29362 "guest."
29363 msgstr ""
29364
29365 #. type: textblock
29366 #: ../tools/virt-win-reg.pl:544
29367 msgid ""
29368 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29369 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29370 "privileged account."
29371 msgstr ""
29372
29373 #. type: textblock
29374 #: ../tools/virt-win-reg.pl:550
29375 msgid ""
29376 "For the meaning of the magic numbers, see this Microsoft KB article: "
29377 "L<http://support.microsoft.com/kb/103000>."
29378 msgstr ""
29379
29380 #. type: textblock
29381 #: ../tools/virt-win-reg.pl:555
29382 msgid "Update the registry:"
29383 msgstr ""
29384
29385 #. type: verbatim
29386 #: ../tools/virt-win-reg.pl:557
29387 #, no-wrap
29388 msgid ""
29389 " virt-win-reg --merge WindowsGuest service.reg\n"
29390 "\n"
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../tools/virt-win-reg.pl:561
29395 msgid ""
29396 "Be careful when passing parameters containing C<\\> (backslash) in the "
29397 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29398 "(but not both) to protect them from the shell."
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../tools/virt-win-reg.pl:565
29403 msgid "Paths and value names are case-insensitive."
29404 msgstr ""
29405
29406 #. type: textblock
29407 #: ../tools/virt-win-reg.pl:574
29408 msgid ""
29409 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
29410 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
29411 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
29412 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29413 msgstr ""
29414
29415 #. type: textblock
29416 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
29417 msgid ""
29418 "When reporting bugs, please enable debugging and capture the I<complete> "
29419 "output:"
29420 msgstr ""
29421
29422 #. type: verbatim
29423 #: ../tools/virt-win-reg.pl:592
29424 #, no-wrap
29425 msgid ""
29426 " export LIBGUESTFS_DEBUG=1\n"
29427 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29428 "\n"
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../tools/virt-win-reg.pl:595
29433 msgid ""
29434 "Attach /tmp/virt-win-reg.log to a new bug report at "
29435 "L<https://bugzilla.redhat.com/>"
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
29440 msgid "Copyright (C) 2010 Red Hat Inc."
29441 msgstr ""
29442
29443 #. type: textblock
29444 #: ../tools/virt-list-filesystems.pl:32
29445 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../tools/virt-list-filesystems.pl:36
29450 #, no-wrap
29451 msgid ""
29452 " virt-list-filesystems [--options] domname\n"
29453 "\n"
29454 msgstr ""
29455
29456 #. type: verbatim
29457 #: ../tools/virt-list-filesystems.pl:38
29458 #, no-wrap
29459 msgid ""
29460 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29461 "\n"
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29466 msgid ""
29467 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29468 "replacement."
29469 msgstr ""
29470
29471 #. type: textblock
29472 #: ../tools/virt-list-filesystems.pl:45
29473 msgid ""
29474 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29475 "are contained in a virtual machine or disk image."
29476 msgstr ""
29477
29478 #. type: textblock
29479 #: ../tools/virt-list-filesystems.pl:49
29480 msgid ""
29481 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29482 "functionality.  For more complex cases you should look at the "
29483 "L<guestfish(1)> tool."
29484 msgstr ""
29485
29486 #. type: =item
29487 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29488 msgid "B<-l> | B<--long>"
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../tools/virt-list-filesystems.pl:108
29493 msgid ""
29494 "With this option, C<virt-list-filesystems> displays the type of each "
29495 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29496 msgstr ""
29497
29498 #. type: =item
29499 #: ../tools/virt-list-filesystems.pl:115
29500 msgid "B<-a> | B<--all>"
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../tools/virt-list-filesystems.pl:117
29505 msgid ""
29506 "Normally we only show mountable filesystems.  If this option is given then "
29507 "swap devices are shown too."
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../tools/virt-list-filesystems.pl:191
29512 msgid ""
29513 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
29514 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
29515 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29516 msgstr ""
29517
29518 #. type: textblock
29519 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29520 msgid "Copyright (C) 2009 Red Hat Inc."
29521 msgstr ""
29522
29523 #. type: textblock
29524 #: ../tools/virt-tar.pl:33
29525 msgid "virt-tar - Extract or upload files to a virtual machine"
29526 msgstr ""
29527
29528 #. type: verbatim
29529 #: ../tools/virt-tar.pl:37
29530 #, no-wrap
29531 msgid ""
29532 " virt-tar [--options] -x domname directory tarball\n"
29533 "\n"
29534 msgstr ""
29535
29536 #. type: verbatim
29537 #: ../tools/virt-tar.pl:39
29538 #, no-wrap
29539 msgid ""
29540 " virt-tar [--options] -u domname tarball directory\n"
29541 "\n"
29542 msgstr ""
29543
29544 #. type: verbatim
29545 #: ../tools/virt-tar.pl:41
29546 #, no-wrap
29547 msgid ""
29548 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../tools/virt-tar.pl:43
29554 #, no-wrap
29555 msgid ""
29556 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29557 "\n"
29558 msgstr ""
29559
29560 #. type: textblock
29561 #: ../tools/virt-tar.pl:47
29562 msgid ""
29563 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
29564 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
29565 msgstr ""
29566
29567 #. type: textblock
29568 #: ../tools/virt-tar.pl:52
29569 msgid "Download C</home> from the VM into a local tarball:"
29570 msgstr ""
29571
29572 #. type: verbatim
29573 #: ../tools/virt-tar.pl:54
29574 #, no-wrap
29575 msgid ""
29576 " virt-tar -x domname /home home.tar\n"
29577 "\n"
29578 msgstr ""
29579
29580 #. type: verbatim
29581 #: ../tools/virt-tar.pl:56
29582 #, no-wrap
29583 msgid ""
29584 " virt-tar -zx domname /home home.tar.gz\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../tools/virt-tar.pl:58
29590 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29591 msgstr ""
29592
29593 #. type: verbatim
29594 #: ../tools/virt-tar.pl:60
29595 #, no-wrap
29596 msgid ""
29597 " virt-tar -u domname uploadstuff.tar /tmp\n"
29598 "\n"
29599 msgstr ""
29600
29601 #. type: verbatim
29602 #: ../tools/virt-tar.pl:62
29603 #, no-wrap
29604 msgid ""
29605 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
29606 "\n"
29607 msgstr ""
29608
29609 #. type: textblock
29610 #: ../tools/virt-tar.pl:66
29611 msgid ""
29612 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
29613 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
29614 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
29615 msgstr ""
29616
29617 #. type: textblock
29618 #: ../tools/virt-tar.pl:71
29619 msgid ""
29620 "You can use I<-x> (extract) on live virtual machines, but you might get "
29621 "inconsistent results or errors if there is filesystem activity inside the "
29622 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
29623 "work, but the only way to guarantee consistent results is if the virtual "
29624 "machine is shut down."
29625 msgstr ""
29626
29627 #. type: textblock
29628 #: ../tools/virt-tar.pl:79
29629 msgid ""
29630 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
29631 "parts of a guest filesystem.  There are many possibilities: making backups, "
29632 "uploading data files, snooping on guest activity, fixing or customizing "
29633 "guests, etc."
29634 msgstr ""
29635
29636 #. type: textblock
29637 #: ../tools/virt-tar.pl:84
29638 msgid ""
29639 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
29640 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
29641 "should look at the L<guestfish(1)> tool."
29642 msgstr ""
29643
29644 #. type: textblock
29645 #: ../tools/virt-tar.pl:88
29646 msgid ""
29647 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
29648 "its contents (recursively) from the virtual machine into a local tarball.  "
29649 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
29650 "virtual machine.  You cannot use these two options together."
29651 msgstr ""
29652
29653 #. type: textblock
29654 #: ../tools/virt-tar.pl:94
29655 msgid ""
29656 "In addition, you may need to use the I<-z> (gZip) option to enable "
29657 "compression.  When uploading, you have to specify I<-z> if the upload file "
29658 "is compressed because virt-tar won't detect this on its own."
29659 msgstr ""
29660
29661 #. type: textblock
29662 #: ../tools/virt-tar.pl:98
29663 msgid ""
29664 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
29665 "example it cannot do PKZip files or bzip2 compression.  If you want that "
29666 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
29667 "the L<libguestfs(3)> API)."
29668 msgstr ""
29669
29670 #. type: =item
29671 #: ../tools/virt-tar.pl:156
29672 msgid "B<-x> | B<--extract> | B<--download>"
29673 msgstr ""
29674
29675 #. type: =item
29676 #: ../tools/virt-tar.pl:158
29677 msgid "B<-u> | B<--upload>"
29678 msgstr ""
29679
29680 #. type: textblock
29681 #: ../tools/virt-tar.pl:160
29682 msgid ""
29683 "Use I<-x> to extract (download) a directory from a virtual machine to a "
29684 "local tarball."
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../tools/virt-tar.pl:163
29689 msgid ""
29690 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
29691 "Please read the L</WARNING> section above before using this option."
29692 msgstr ""
29693
29694 #. type: textblock
29695 #: ../tools/virt-tar.pl:167
29696 msgid "You must specify exactly one of these options."
29697 msgstr ""
29698
29699 #. type: =item
29700 #: ../tools/virt-tar.pl:173
29701 msgid "B<-z> | B<--gzip>"
29702 msgstr ""
29703
29704 #. type: textblock
29705 #: ../tools/virt-tar.pl:175
29706 msgid "Specify that the input or output tarball is gzip-compressed."
29707 msgstr ""
29708
29709 #. type: textblock
29710 #: ../tools/virt-tar.pl:288
29711 msgid ""
29712 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29713 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
29714 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
29715 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29716 msgstr ""
29717
29718 #. type: textblock
29719 #: ../tools/virt-make-fs.pl:37
29720 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29721 msgstr ""
29722
29723 #. type: verbatim
29724 #: ../tools/virt-make-fs.pl:41
29725 #, no-wrap
29726 msgid ""
29727 " virt-make-fs [--options] input.tar output.img\n"
29728 "\n"
29729 msgstr ""
29730
29731 #. type: verbatim
29732 #: ../tools/virt-make-fs.pl:43
29733 #, no-wrap
29734 msgid ""
29735 " virt-make-fs [--options] input.tar.gz output.img\n"
29736 "\n"
29737 msgstr ""
29738
29739 #. type: verbatim
29740 #: ../tools/virt-make-fs.pl:45
29741 #, no-wrap
29742 msgid ""
29743 " virt-make-fs [--options] directory output.img\n"
29744 "\n"
29745 msgstr ""
29746
29747 #. type: textblock
29748 #: ../tools/virt-make-fs.pl:49
29749 msgid ""
29750 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29751 "archive or some files in a directory.  It is similar to tools like "
29752 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
29753 "it can create common filesystem types like ext2/3 or NTFS, which can be "
29754 "useful if you want to attach these filesystems to existing virtual machines "
29755 "(eg. to import large amounts of read-only data to a VM)."
29756 msgstr ""
29757
29758 #. type: textblock
29759 #: ../tools/virt-make-fs.pl:57
29760 msgid "Basic usage is:"
29761 msgstr ""
29762
29763 #. type: verbatim
29764 #: ../tools/virt-make-fs.pl:59
29765 #, no-wrap
29766 msgid ""
29767 " virt-make-fs input output\n"
29768 "\n"
29769 msgstr ""
29770
29771 #. type: textblock
29772 #: ../tools/virt-make-fs.pl:61
29773 msgid ""
29774 "where C<input> is either a directory containing files that you want to add, "
29775 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29776 "C<output> is a disk image.  The input type is detected automatically.  The "
29777 "output disk image defaults to a raw ext2 image unless you specify extra "
29778 "flags (see L</OPTIONS> below)."
29779 msgstr ""
29780
29781 #. type: =head2
29782 #: ../tools/virt-make-fs.pl:67
29783 msgid "EXTRA SPACE"
29784 msgstr ""
29785
29786 #. type: textblock
29787 #: ../tools/virt-make-fs.pl:69
29788 msgid ""
29789 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29790 "the files that it contains, but might have extra space.  Depending on how "
29791 "you are going to use the output, you might think this extra space is wasted "
29792 "and want to minimize it, or you might want to leave space so that more files "
29793 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29794 "but you can use the I<--size> flag to leave space in the filesystem if you "
29795 "want it."
29796 msgstr ""
29797
29798 #. type: textblock
29799 #: ../tools/virt-make-fs.pl:77
29800 msgid ""
29801 "An alternative way to leave extra space but not make the output image any "
29802 "bigger is to use an alternative disk image format (instead of the default "
29803 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
29804 "image format (check your hypervisor supports this before using it).  This "
29805 "allows you to choose a large I<--size> but the extra space won't actually be "
29806 "allocated in the image until you try to store something in it."
29807 msgstr ""
29808
29809 #. type: textblock
29810 #: ../tools/virt-make-fs.pl:85
29811 msgid ""
29812 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29813 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
29814 "to build another image from scratch."
29815 msgstr ""
29816
29817 #. type: =head3
29818 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
29819 msgid "EXAMPLE"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../tools/virt-make-fs.pl:91
29824 #, no-wrap
29825 msgid ""
29826 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29827 "\n"
29828 msgstr ""
29829
29830 #. type: =head2
29831 #: ../tools/virt-make-fs.pl:93
29832 msgid "FILESYSTEM TYPE"
29833 msgstr ""
29834
29835 #. type: textblock
29836 #: ../tools/virt-make-fs.pl:95
29837 msgid ""
29838 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
29839 "libguestfs supports can be used (but I<not> read-only formats like "
29840 "ISO9660).  Here are some of the more common choices:"
29841 msgstr ""
29842
29843 #. type: =item
29844 #: ../tools/virt-make-fs.pl:101
29845 msgid "I<ext3>"
29846 msgstr ""
29847
29848 #. type: textblock
29849 #: ../tools/virt-make-fs.pl:103
29850 msgid ""
29851 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29852 "you are not going to use the filesystem in a way that requires the journal, "
29853 "then this is just wasted overhead."
29854 msgstr ""
29855
29856 #. type: =item
29857 #: ../tools/virt-make-fs.pl:107
29858 msgid "I<ntfs> or I<vfat>"
29859 msgstr ""
29860
29861 #. type: textblock
29862 #: ../tools/virt-make-fs.pl:109
29863 msgid "Useful if exporting data to a Windows guest."
29864 msgstr ""
29865
29866 #. type: textblock
29867 #: ../tools/virt-make-fs.pl:111
29868 msgid ""
29869 "I<Note for vfat>: The tar archive or local directory must only contain files "
29870 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29871 "program running within libguestfs is unable to change the ownership of "
29872 "non-root files, since vfat itself does not support this."
29873 msgstr ""
29874
29875 #. type: =item
29876 #: ../tools/virt-make-fs.pl:116
29877 msgid "I<minix>"
29878 msgstr ""
29879
29880 #. type: textblock
29881 #: ../tools/virt-make-fs.pl:118
29882 msgid ""
29883 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29884 "total filesystem size."
29885 msgstr ""
29886
29887 #. type: verbatim
29888 #: ../tools/virt-make-fs.pl:125
29889 #, no-wrap
29890 msgid ""
29891 " virt-make-fs --type=minix input minixfs.img\n"
29892 "\n"
29893 msgstr ""
29894
29895 #. type: =head2
29896 #: ../tools/virt-make-fs.pl:127
29897 msgid "TO PARTITION OR NOT TO PARTITION"
29898 msgstr ""
29899
29900 #. type: textblock
29901 #: ../tools/virt-make-fs.pl:129
29902 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29903 msgstr ""
29904
29905 #. type: textblock
29906 #: ../tools/virt-make-fs.pl:131
29907 msgid ""
29908 "Adding a partition can make the disk image more compatible with certain "
29909 "virtualized operating systems which don't expect to see a filesystem "
29910 "directly located on a block device (Linux doesn't care and will happily "
29911 "handle both types)."
29912 msgstr ""
29913
29914 #. type: textblock
29915 #: ../tools/virt-make-fs.pl:136
29916 msgid ""
29917 "On the other hand, if you have a partition table then the output image is no "
29918 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29919 "directly on a partitioned disk image.  (However libguestfs tools such as "
29920 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29921 msgstr ""
29922
29923 #. type: textblock
29924 #: ../tools/virt-make-fs.pl:144
29925 msgid "Add an MBR partition:"
29926 msgstr ""
29927
29928 #. type: verbatim
29929 #: ../tools/virt-make-fs.pl:146
29930 #, no-wrap
29931 msgid ""
29932 " virt-make-fs --partition -- input disk.img\n"
29933 "\n"
29934 msgstr ""
29935
29936 #. type: textblock
29937 #: ../tools/virt-make-fs.pl:148
29938 msgid ""
29939 "If the output disk image could be terabyte-sized or larger, it's better to "
29940 "use an EFI/GPT-compatible partition table:"
29941 msgstr ""
29942
29943 #. type: verbatim
29944 #: ../tools/virt-make-fs.pl:151
29945 #, no-wrap
29946 msgid ""
29947 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29948 "\n"
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../tools/virt-make-fs.pl:179
29953 msgid "Enable debugging information."
29954 msgstr ""
29955
29956 #. type: =item
29957 #: ../tools/virt-make-fs.pl:185
29958 msgid "B<--size=E<lt>NE<gt>>"
29959 msgstr ""
29960
29961 #. type: =item
29962 #: ../tools/virt-make-fs.pl:187
29963 msgid "B<--size=+E<lt>NE<gt>>"
29964 msgstr ""
29965
29966 #. type: =item
29967 #: ../tools/virt-make-fs.pl:189
29968 msgid "B<-s E<lt>NE<gt>>"
29969 msgstr ""
29970
29971 #. type: =item
29972 #: ../tools/virt-make-fs.pl:191
29973 msgid "B<-s +E<lt>NE<gt>>"
29974 msgstr ""
29975
29976 #. type: textblock
29977 #: ../tools/virt-make-fs.pl:193
29978 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
29979 msgstr ""
29980
29981 #. type: textblock
29982 #: ../tools/virt-make-fs.pl:196
29983 msgid ""
29984 "If this option is I<not> given, then the output image will be just large "
29985 "enough to contain all the files, with not much wasted space."
29986 msgstr ""
29987
29988 #. type: textblock
29989 #: ../tools/virt-make-fs.pl:199
29990 msgid ""
29991 "To choose a fixed size output disk, specify an absolute number followed by "
29992 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29993 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29994 "files, else you will get an error."
29995 msgstr ""
29996
29997 #. type: textblock
29998 #: ../tools/virt-make-fs.pl:204
29999 msgid ""
30000 "To leave extra space, specify C<+> (plus sign) and a number followed by "
30001 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
30002 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
30003 "the input files, and (approximately) an extra 200 MB free space."
30004 msgstr ""
30005
30006 #. type: textblock
30007 #: ../tools/virt-make-fs.pl:210
30008 msgid ""
30009 "Note that virt-make-fs estimates free space, and therefore will not produce "
30010 "filesystems containing precisely the free space requested.  (It is much more "
30011 "expensive and time-consuming to produce a filesystem which has precisely the "
30012 "desired free space)."
30013 msgstr ""
30014
30015 #. type: =item
30016 #: ../tools/virt-make-fs.pl:219
30017 msgid "B<--format=E<lt>fmtE<gt>>"
30018 msgstr ""
30019
30020 #. type: =item
30021 #: ../tools/virt-make-fs.pl:221
30022 msgid "B<-F E<lt>fmtE<gt>>"
30023 msgstr ""
30024
30025 #. type: textblock
30026 #: ../tools/virt-make-fs.pl:223
30027 msgid "Choose the output disk image format."
30028 msgstr ""
30029
30030 #. type: textblock
30031 #: ../tools/virt-make-fs.pl:225
30032 msgid "The default is C<raw> (raw disk image)."
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../tools/virt-make-fs.pl:227
30037 msgid ""
30038 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
30039 "that would really make sense here is C<qcow2>."
30040 msgstr ""
30041
30042 #. type: =item
30043 #: ../tools/virt-make-fs.pl:234
30044 msgid "B<--type=E<lt>fsE<gt>>"
30045 msgstr ""
30046
30047 #. type: =item
30048 #: ../tools/virt-make-fs.pl:236
30049 msgid "B<-t E<lt>fsE<gt>>"
30050 msgstr ""
30051
30052 #. type: textblock
30053 #: ../tools/virt-make-fs.pl:238
30054 msgid "Choose the output filesystem type."
30055 msgstr ""
30056
30057 #. type: textblock
30058 #: ../tools/virt-make-fs.pl:240
30059 msgid "The default is C<ext2>."
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../tools/virt-make-fs.pl:242
30064 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
30065 msgstr ""
30066
30067 #. type: =item
30068 #: ../tools/virt-make-fs.pl:249
30069 msgid "B<--partition>"
30070 msgstr ""
30071
30072 #. type: =item
30073 #: ../tools/virt-make-fs.pl:251
30074 msgid "B<--partition=E<lt>parttypeE<gt>>"
30075 msgstr ""
30076
30077 #. type: textblock
30078 #: ../tools/virt-make-fs.pl:253
30079 msgid ""
30080 "If specified, this flag adds an MBR partition table to the output disk "
30081 "image."
30082 msgstr ""
30083
30084 #. type: textblock
30085 #: ../tools/virt-make-fs.pl:256
30086 msgid ""
30087 "You can change the partition table type, eg. I<--partition=gpt> for large "
30088 "disks."
30089 msgstr ""
30090
30091 #. type: textblock
30092 #: ../tools/virt-make-fs.pl:259
30093 msgid ""
30094 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
30095 "might consider the next parameter to be the partition type.  For example:"
30096 msgstr ""
30097
30098 #. type: verbatim
30099 #: ../tools/virt-make-fs.pl:263
30100 #, no-wrap
30101 msgid ""
30102 " virt-make-fs --partition input.tar ...\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: textblock
30107 #: ../tools/virt-make-fs.pl:265
30108 msgid ""
30109 "would cause virt-make-fs to think you wanted to use a partition type of "
30110 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
30111 "dash) between options and the input file argument:"
30112 msgstr ""
30113
30114 #. type: verbatim
30115 #: ../tools/virt-make-fs.pl:269
30116 #, no-wrap
30117 msgid ""
30118 " virt-make-fs --partition -- input.tar ...\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../tools/virt-make-fs.pl:541
30124 msgid ""
30125 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
30126 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
30127 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
30128 msgstr ""
30129
30130 #. type: verbatim
30131 #: ../tools/virt-make-fs.pl:558
30132 #, no-wrap
30133 msgid ""
30134 " export LIBGUESTFS_DEBUG=1\n"
30135 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
30136 "\n"
30137 msgstr ""
30138
30139 #. type: textblock
30140 #: ../tools/virt-make-fs.pl:561
30141 msgid ""
30142 "Attach /tmp/virt-make-fs.log to a new bug report at "
30143 "L<https://bugzilla.redhat.com/>"
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../tools/virt-list-partitions.pl:32
30148 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
30149 msgstr ""
30150
30151 #. type: verbatim
30152 #: ../tools/virt-list-partitions.pl:36
30153 #, no-wrap
30154 msgid ""
30155 " virt-list-partitions [--options] domname\n"
30156 "\n"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../tools/virt-list-partitions.pl:38
30161 #, no-wrap
30162 msgid ""
30163 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
30164 "\n"
30165 msgstr ""
30166
30167 #. type: textblock
30168 #: ../tools/virt-list-partitions.pl:45
30169 msgid ""
30170 "C<virt-list-partitions> is a command line tool to list the partitions that "
30171 "are contained in a virtual machine or disk image.  It is mainly useful as a "
30172 "first step to using L<virt-resize(1)>."
30173 msgstr ""
30174
30175 #. type: textblock
30176 #: ../tools/virt-list-partitions.pl:50
30177 msgid ""
30178 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30179 "functionality.  For more complex cases you should look at the "
30180 "L<guestfish(1)> tool."
30181 msgstr ""
30182
30183 #. type: =item
30184 #: ../tools/virt-list-partitions.pl:107
30185 msgid "B<-h> | B<--human-readable>"
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../tools/virt-list-partitions.pl:109
30190 msgid "Show sizes in human-readable form (eg. \"1G\")."
30191 msgstr ""
30192
30193 #. type: textblock
30194 #: ../tools/virt-list-partitions.pl:117
30195 msgid ""
30196 "With this option, C<virt-list-partitions> displays the type and size of each "
30197 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30198 msgstr ""
30199
30200 #. type: =item
30201 #: ../tools/virt-list-partitions.pl:124
30202 msgid "B<-t> | B<--total>"
30203 msgstr ""
30204
30205 #. type: textblock
30206 #: ../tools/virt-list-partitions.pl:126
30207 msgid "Display the total size of each block device (as a separate row or rows)."
30208 msgstr ""
30209
30210 #. type: textblock
30211 #: ../tools/virt-list-partitions.pl:259
30212 msgid ""
30213 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
30214 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
30215 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30216 msgstr ""
30217
30218 #. type: textblock
30219 #: ../tools/virt-list-partitions.pl:275
30220 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30221 msgstr ""