Version 1.11.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.11.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-04-22 22:23+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 pipe 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:1087 ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100 ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135 ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165 ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177 ../src/guestfs.pod:1659 ../src/guestfs.pod:1664 ../src/guestfs.pod:1668 ../src/guestfs.pod:1769 ../src/guestfs.pod:1774 ../src/guestfs.pod:1778 ../src/guestfs.pod:1788 ../src/guestfs.pod:2022 ../src/guestfs.pod:2027 ../src/guestfs.pod:2033 ../src/guestfs.pod:2041 ../src/guestfs.pod:2395 ../src/guestfs.pod:2401 ../src/guestfs.pod:2406 ../src/guestfs.pod:2412 ../src/guestfs.pod:2877 ../src/guestfs.pod:2881 ../src/guestfs.pod:2885 ../src/guestfs.pod:2889 ../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:1280 ../src/guestfs.pod:1411 ../src/guestfs.pod:2440
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:1284 ../src/guestfs.pod:1415 ../src/guestfs.pod:2465
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:1421
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 "When modifying a filesystem from C or another language, you B<must> unmount "
1551 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1552 "libguestfs handle.  You can also call:"
1553 msgstr ""
1554
1555 #. type: verbatim
1556 #: ../src/guestfs.pod:782
1557 #, no-wrap
1558 msgid ""
1559 " guestfs_set_autosync (g, 1);\n"
1560 "\n"
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../src/guestfs.pod:784
1565 msgid ""
1566 "to have the unmount/sync done automatically for you when the handle 'g' is "
1567 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
1568 "q.v.)"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../src/guestfs.pod:788
1573 msgid ""
1574 "If you forget to do this, then it is entirely possible that your changes "
1575 "won't be written out, or will be partially written, or (very rarely) that "
1576 "you'll get disk corruption."
1577 msgstr ""
1578
1579 #. type: textblock
1580 #: ../src/guestfs.pod:792
1581 msgid ""
1582 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1583 "guestfish scripts that forget to sync will work just fine, which can make "
1584 "this very puzzling if you are trying to debug a problem."
1585 msgstr ""
1586
1587 #. type: textblock
1588 #: ../src/guestfs.pod:796
1589 msgid ""
1590 "Update: Autosync is enabled by default for all API users starting from "
1591 "libguestfs 1.5.24."
1592 msgstr ""
1593
1594 #. type: =item
1595 #: ../src/guestfs.pod: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 "PROTOCOL LIMITS"
1764 msgstr ""
1765
1766 #. type: textblock
1767 #: ../src/guestfs.pod:884
1768 msgid ""
1769 "Internally libguestfs uses a message-based protocol to pass API calls and "
1770 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
1771 "plenty more detail about this).  The maximum message size used by the "
1772 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
1773 "aware of this limit.  The API calls which may be affected are individually "
1774 "documented, with a link back to this section of the documentation."
1775 msgstr ""
1776
1777 #. type: textblock
1778 #: ../src/guestfs.pod:892
1779 msgid ""
1780 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
1781 "a simple string.  Because this string is at some point internally encoded as "
1782 "a message, the maximum size that it can return is slightly under 4 MB.  If "
1783 "the requested file is larger than this then you will get an error."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../src/guestfs.pod:898
1788 msgid ""
1789 "In order to transfer large files into and out of the guest filesystem, you "
1790 "need to use particular calls that support this.  The sections L</UPLOADING> "
1791 "and L</DOWNLOADING> document how to do this."
1792 msgstr ""
1793
1794 #. type: textblock
1795 #: ../src/guestfs.pod:902
1796 msgid ""
1797 "You might also consider mounting the disk image using our FUSE filesystem "
1798 "support (L<guestmount(1)>)."
1799 msgstr ""
1800
1801 #. type: =head2
1802 #: ../src/guestfs.pod:905
1803 msgid "KEYS AND PASSPHRASES"
1804 msgstr ""
1805
1806 #. type: textblock
1807 #: ../src/guestfs.pod:907
1808 msgid ""
1809 "Certain libguestfs calls take a parameter that contains sensitive key "
1810 "material, passed in as a C string."
1811 msgstr ""
1812
1813 #. type: textblock
1814 #: ../src/guestfs.pod:910
1815 msgid ""
1816 "In the future we would hope to change the libguestfs implementation so that "
1817 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
1818 "swap.  However this is I<not> done at the moment, because of the complexity "
1819 "of such an implementation."
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../src/guestfs.pod:915
1824 msgid ""
1825 "Therefore you should be aware that any key parameter you pass to libguestfs "
1826 "might end up being written out to the swap partition.  If this is a concern, "
1827 "scrub the swap partition or don't use libguestfs on encrypted devices."
1828 msgstr ""
1829
1830 #. type: =head2
1831 #: ../src/guestfs.pod:920
1832 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../src/guestfs.pod:922
1837 msgid ""
1838 "All high-level libguestfs actions are synchronous.  If you want to use "
1839 "libguestfs asynchronously then you must create a thread."
1840 msgstr ""
1841
1842 #. type: textblock
1843 #: ../src/guestfs.pod:925
1844 msgid ""
1845 "Only use the handle from a single thread.  Either use the handle exclusively "
1846 "from one thread, or provide your own mutex so that two threads cannot issue "
1847 "calls on the same handle at the same time."
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../src/guestfs.pod:929
1852 msgid ""
1853 "See the graphical program guestfs-browser for one possible architecture for "
1854 "multithreaded programs using libvirt and libguestfs."
1855 msgstr ""
1856
1857 #. type: =head2
1858 #: ../src/guestfs.pod:932
1859 msgid "PATH"
1860 msgstr ""
1861
1862 #. type: textblock
1863 #: ../src/guestfs.pod:934
1864 msgid ""
1865 "Libguestfs needs a supermin appliance, which it finds by looking along an "
1866 "internal path."
1867 msgstr ""
1868
1869 #. type: textblock
1870 #: ../src/guestfs.pod:937
1871 msgid ""
1872 "By default it looks for these in the directory C<$libdir/guestfs> "
1873 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
1874 msgstr ""
1875
1876 #. type: textblock
1877 #: ../src/guestfs.pod:940
1878 msgid ""
1879 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
1880 "to change the directories that libguestfs will search in.  The value is a "
1881 "colon-separated list of paths.  The current directory is I<not> searched "
1882 "unless the path contains an empty element or C<.>.  For example "
1883 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
1884 "then C</usr/lib/guestfs>."
1885 msgstr ""
1886
1887 #. type: =head2
1888 #: ../src/guestfs.pod:947
1889 msgid "QEMU WRAPPERS"
1890 msgstr ""
1891
1892 #. type: textblock
1893 #: ../src/guestfs.pod:949
1894 msgid ""
1895 "If you want to compile your own qemu, run qemu from a non-standard location, "
1896 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
1897 "around qemu."
1898 msgstr ""
1899
1900 #. type: textblock
1901 #: ../src/guestfs.pod:953
1902 msgid ""
1903 "There is one important rule to remember: you I<must C<exec qemu>> as the "
1904 "last command in the shell script (so that qemu replaces the shell and "
1905 "becomes the direct child of the libguestfs-using program).  If you don't do "
1906 "this, then the qemu process won't be cleaned up correctly."
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../src/guestfs.pod:958
1911 msgid ""
1912 "Here is an example of a wrapper, where I have built my own copy of qemu from "
1913 "source:"
1914 msgstr ""
1915
1916 #. type: verbatim
1917 #: ../src/guestfs.pod:961
1918 #, no-wrap
1919 msgid ""
1920 " #!/bin/sh -\n"
1921 " qemudir=/home/rjones/d/qemu\n"
1922 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
1923 "\"$@\"\n"
1924 "\n"
1925 msgstr ""
1926
1927 #. type: textblock
1928 #: ../src/guestfs.pod:965
1929 msgid ""
1930 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
1931 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
1932 "example:"
1933 msgstr ""
1934
1935 #. type: verbatim
1936 #: ../src/guestfs.pod:969
1937 #, no-wrap
1938 msgid ""
1939 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
1940 "\n"
1941 msgstr ""
1942
1943 #. type: textblock
1944 #: ../src/guestfs.pod:971
1945 msgid ""
1946 "Note that libguestfs also calls qemu with the -help and -version options in "
1947 "order to determine features."
1948 msgstr ""
1949
1950 #. type: =head2
1951 #: ../src/guestfs.pod:974
1952 msgid "ATTACHING TO RUNNING DAEMONS"
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../src/guestfs.pod:976
1957 msgid ""
1958 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
1959 "babies.  Use with caution."
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../src/guestfs.pod:979
1964 msgid ""
1965 "I<Note (2):> This section explains how to attach to a running daemon from a "
1966 "low level perspective.  For most users, simply using virt tools such as "
1967 "L<guestfish(1)> with the I<--live> option will \"just work\"."
1968 msgstr ""
1969
1970 #. type: =head3
1971 #: ../src/guestfs.pod:983
1972 msgid "Using guestfs_set_attach_method"
1973 msgstr ""
1974
1975 #. type: textblock
1976 #: ../src/guestfs.pod:985
1977 msgid ""
1978 "By calling L</guestfs_set_attach_method> you can change how the library "
1979 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
1980 "L</ARCHITECTURE> for some background)."
1981 msgstr ""
1982
1983 #. type: textblock
1984 #: ../src/guestfs.pod:989
1985 msgid ""
1986 "The normal attach method is C<appliance>, where a small appliance is created "
1987 "containing the daemon, and then the library connects to this."
1988 msgstr ""
1989
1990 #. type: textblock
1991 #: ../src/guestfs.pod:992
1992 msgid ""
1993 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
1994 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
1995 "daemon over the Unix domain socket."
1996 msgstr ""
1997
1998 #. type: textblock
1999 #: ../src/guestfs.pod:996
2000 msgid ""
2001 "The normal use for this is to connect to a running virtual machine that "
2002 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2003 "files inside the live virtual machine."
2004 msgstr ""
2005
2006 #. type: =head3
2007 #: ../src/guestfs.pod:1000
2008 msgid "Using guestfs_add_domain with live flag"
2009 msgstr ""
2010
2011 #. type: textblock
2012 #: ../src/guestfs.pod:1002
2013 msgid ""
2014 "L</guestfs_add_domain> provides some help for getting the correct attach "
2015 "method.  If you pass the C<live> option to this function, then (if the "
2016 "virtual machine is running) it will examine the libvirt XML looking for a "
2017 "virtio-serial channel to connect to:"
2018 msgstr ""
2019
2020 #. type: verbatim
2021 #: ../src/guestfs.pod:1008
2022 #, no-wrap
2023 msgid ""
2024 " <domain>\n"
2025 "   ...\n"
2026 "   <devices>\n"
2027 "     ...\n"
2028 "     <channel type='unix'>\n"
2029 "       <source mode='bind' path='/path/to/socket'/>\n"
2030 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2031 "     </channel>\n"
2032 "     ...\n"
2033 "   </devices>\n"
2034 " </domain>\n"
2035 "\n"
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../src/guestfs.pod:1020
2040 msgid ""
2041 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2042 "method to C<unix:/path/to/socket>."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../src/guestfs.pod:1023
2047 msgid ""
2048 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2049 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2050 "to attach to and modify live virtual machines."
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../src/guestfs.pod:1027
2055 msgid ""
2056 "The virtual machine needs to have been set up beforehand so that it has the "
2057 "virtio-serial channel and so that guestfsd is running inside it."
2058 msgstr ""
2059
2060 #. type: =head2
2061 #: ../src/guestfs.pod:1031
2062 msgid "ABI GUARANTEE"
2063 msgstr ""
2064
2065 #. type: textblock
2066 #: ../src/guestfs.pod:1033
2067 msgid ""
2068 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2069 "actions as outlined in this section.  Although we will deprecate some "
2070 "actions, for example if they get replaced by newer calls, we will keep the "
2071 "old actions forever.  This allows you the developer to program in confidence "
2072 "against the libguestfs API."
2073 msgstr ""
2074
2075 #. type: =head2
2076 #: ../src/guestfs.pod:1039
2077 msgid "BLOCK DEVICE NAMING"
2078 msgstr ""
2079
2080 #. type: textblock
2081 #: ../src/guestfs.pod:1041
2082 msgid ""
2083 "In the kernel there is now quite a profusion of schemata for naming block "
2084 "devices (in this context, by I<block device> I mean a physical or virtual "
2085 "hard drive).  The original Linux IDE driver used names starting with "
2086 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
2087 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
2088 "replacement for the old IDE driver (particularly for SATA devices) those "
2089 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
2090 "machines with paravirtualized drivers.  This has created several different "
2091 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
2092 "Xen PV disks."
2093 msgstr ""
2094
2095 #. type: textblock
2096 #: ../src/guestfs.pod:1053
2097 msgid ""
2098 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2099 "Linux kernel to access block devices.  We can run a variety of appliances "
2100 "based on a variety of Linux kernels."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../src/guestfs.pod:1057
2105 msgid ""
2106 "This causes a problem for libguestfs because many API calls use device or "
2107 "partition names.  Working scripts and the recipe (example) scripts that we "
2108 "make available over the internet could fail if the naming scheme changes."
2109 msgstr ""
2110
2111 #. type: textblock
2112 #: ../src/guestfs.pod:1062
2113 msgid ""
2114 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2115 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2116 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2117 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../src/guestfs.pod:1068
2122 msgid ""
2123 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2124 "L</guestfs_list_partitions> and similar calls return the true names of the "
2125 "devices and partitions as known to the appliance."
2126 msgstr ""
2127
2128 #. type: =head3
2129 #: ../src/guestfs.pod:1073
2130 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../src/guestfs.pod:1075
2135 msgid ""
2136 "Usually this translation is transparent.  However in some (very rare)  cases "
2137 "you may need to know the exact algorithm.  Such cases include where you use "
2138 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
2139 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
2140 "devices."
2141 msgstr ""
2142
2143 #. type: textblock
2144 #: ../src/guestfs.pod:1081
2145 msgid ""
2146 "The algorithm is applied only to I<parameters> which are known to be either "
2147 "device or partition names.  Return values from functions such as "
2148 "L</guestfs_list_devices> are never changed."
2149 msgstr ""
2150
2151 #. type: textblock
2152 #: ../src/guestfs.pod:1089
2153 msgid "Is the string a parameter which is a device or partition name?"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../src/guestfs.pod:1093
2158 msgid "Does the string begin with C</dev/sd>?"
2159 msgstr ""
2160
2161 #. type: textblock
2162 #: ../src/guestfs.pod:1097
2163 msgid ""
2164 "Does the named device exist? If so, we use that device.  However if I<not> "
2165 "then we continue with this algorithm."
2166 msgstr ""
2167
2168 #. type: textblock
2169 #: ../src/guestfs.pod:1102
2170 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../src/guestfs.pod:1104
2175 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2176 msgstr ""
2177
2178 #. type: textblock
2179 #: ../src/guestfs.pod:1106
2180 msgid "If that named device exists, use it.  If not, continue."
2181 msgstr ""
2182
2183 #. type: textblock
2184 #: ../src/guestfs.pod:1110
2185 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2186 msgstr ""
2187
2188 #. type: textblock
2189 #: ../src/guestfs.pod:1112
2190 msgid "If that named device exists, use it.  If not, return an error."
2191 msgstr ""
2192
2193 #. type: =head3
2194 #: ../src/guestfs.pod:1116
2195 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2196 msgstr ""
2197
2198 #. type: textblock
2199 #: ../src/guestfs.pod:1118
2200 msgid ""
2201 "Although the standard naming scheme and automatic translation is useful for "
2202 "simple programs and guestfish scripts, for larger programs it is best not to "
2203 "rely on this mechanism."
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../src/guestfs.pod:1122
2208 msgid ""
2209 "Where possible for maximum future portability programs using libguestfs "
2210 "should use these future-proof techniques:"
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../src/guestfs.pod:1129
2215 msgid ""
2216 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2217 "device names, and then use those names directly."
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../src/guestfs.pod:1132
2222 msgid "Since those device names exist by definition, they will never be translated."
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../src/guestfs.pod:1137
2227 msgid ""
2228 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2229 "filesystem labels."
2230 msgstr ""
2231
2232 #. type: =head1
2233 #: ../src/guestfs.pod:1142
2234 msgid "SECURITY"
2235 msgstr ""
2236
2237 #. type: textblock
2238 #: ../src/guestfs.pod:1144
2239 msgid ""
2240 "This section discusses security implications of using libguestfs, "
2241 "particularly with untrusted or malicious guests or disk images."
2242 msgstr ""
2243
2244 #. type: =head2
2245 #: ../src/guestfs.pod:1147
2246 msgid "GENERAL SECURITY CONSIDERATIONS"
2247 msgstr ""
2248
2249 #. type: textblock
2250 #: ../src/guestfs.pod:1149
2251 msgid ""
2252 "Be careful with any files or data that you download from a guest (by "
2253 "\"download\" we mean not just the L</guestfs_download> command but any "
2254 "command that reads files, filenames, directories or anything else from a "
2255 "disk image).  An attacker could manipulate the data to fool your program "
2256 "into doing the wrong thing.  Consider cases such as:"
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../src/guestfs.pod:1159
2261 msgid "the data (file etc) not being present"
2262 msgstr ""
2263
2264 #. type: textblock
2265 #: ../src/guestfs.pod:1163
2266 msgid "being present but empty"
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../src/guestfs.pod:1167
2271 msgid "being much larger than normal"
2272 msgstr ""
2273
2274 #. type: textblock
2275 #: ../src/guestfs.pod:1171
2276 msgid "containing arbitrary 8 bit data"
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../src/guestfs.pod:1175
2281 msgid "being in an unexpected character encoding"
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../src/guestfs.pod:1179
2286 msgid "containing homoglyphs."
2287 msgstr ""
2288
2289 #. type: =head2
2290 #: ../src/guestfs.pod:1183
2291 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2292 msgstr ""
2293
2294 #. type: textblock
2295 #: ../src/guestfs.pod:1185
2296 msgid ""
2297 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2298 "(VFS) module can sometimes be escalated into exploits by deliberately "
2299 "creating a malicious, malformed filesystem.  These exploits are very severe "
2300 "for two reasons.  Firstly there are very many filesystem drivers in the "
2301 "kernel, and many of them are infrequently used and not much developer "
2302 "attention has been paid to the code.  Linux userspace helps potential "
2303 "crackers by detecting the filesystem type and automatically choosing the "
2304 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2305 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2306 "exploit (worse in some ways), giving immediate and total access to the "
2307 "system right down to the hardware level."
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../src/guestfs.pod:1198
2312 msgid ""
2313 "That explains why you should never mount a filesystem from an untrusted "
2314 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2315 "inside a qemu virtual machine, usually running as a non-root user.  The "
2316 "attacker would need to write a filesystem which first exploited the kernel, "
2317 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2318 "the libguestfs protocol, and finally to be as serious as the host kernel "
2319 "exploit it would need to escalate its privileges to root.  This multi-step "
2320 "escalation, performed by a static piece of data, is thought to be extremely "
2321 "hard to do, although we never say 'never' about security issues."
2322 msgstr ""
2323
2324 #. type: textblock
2325 #: ../src/guestfs.pod:1209
2326 msgid ""
2327 "In any case callers can reduce the attack surface by forcing the filesystem "
2328 "type when mounting (use L</guestfs_mount_vfs>)."
2329 msgstr ""
2330
2331 #. type: =head2
2332 #: ../src/guestfs.pod:1212
2333 msgid "PROTOCOL SECURITY"
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../src/guestfs.pod:1214
2338 msgid ""
2339 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2340 "defined upper message size.  However a program that uses libguestfs must "
2341 "also take care - for example you can write a program that downloads a binary "
2342 "from a disk image and executes it locally, and no amount of protocol "
2343 "security will save you from the consequences."
2344 msgstr ""
2345
2346 #. type: =head2
2347 #: ../src/guestfs.pod:1220
2348 msgid "INSPECTION SECURITY"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../src/guestfs.pod:1222
2353 msgid ""
2354 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2355 "directly from the guest, and these could contain any 8 bit data.  Callers "
2356 "should be careful to escape these before printing them to a structured file "
2357 "(for example, use HTML escaping if creating a web page)."
2358 msgstr ""
2359
2360 #. type: textblock
2361 #: ../src/guestfs.pod:1228
2362 msgid ""
2363 "Guest configuration may be altered in unusual ways by the administrator of "
2364 "the virtual machine, and may not reflect reality (particularly for untrusted "
2365 "or actively malicious guests).  For example we parse the hostname from "
2366 "configuration files like C</etc/sysconfig/network> that we find in the "
2367 "guest, but the guest administrator can easily manipulate these files to "
2368 "provide the wrong hostname."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../src/guestfs.pod:1236
2373 msgid ""
2374 "The inspection API parses guest configuration using two external libraries: "
2375 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2376 "designed to be robust in the face of malicious data, although denial of "
2377 "service attacks are still possible, for example with oversized configuration "
2378 "files."
2379 msgstr ""
2380
2381 #. type: =head2
2382 #: ../src/guestfs.pod:1242
2383 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2384 msgstr ""
2385
2386 #. type: textblock
2387 #: ../src/guestfs.pod:1244
2388 msgid ""
2389 "Be very cautious about running commands from the guest.  By running a "
2390 "command in the guest, you are giving CPU time to a binary that you do not "
2391 "control, under the same user account as the library, albeit wrapped in qemu "
2392 "virtualization.  More information and alternatives can be found in the "
2393 "section L</RUNNING COMMANDS>."
2394 msgstr ""
2395
2396 #. type: =head2
2397 #: ../src/guestfs.pod:1250
2398 msgid "CVE-2010-3851"
2399 msgstr ""
2400
2401 #. type: textblock
2402 #: ../src/guestfs.pod:1252
2403 msgid "https://bugzilla.redhat.com/642934"
2404 msgstr ""
2405
2406 #. type: textblock
2407 #: ../src/guestfs.pod:1254
2408 msgid ""
2409 "This security bug concerns the automatic disk format detection that qemu "
2410 "does on disk images."
2411 msgstr ""
2412
2413 #. type: textblock
2414 #: ../src/guestfs.pod:1257
2415 msgid ""
2416 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2417 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2418 "for one of the known headers, and if none is found then assuming the disk "
2419 "image must be raw."
2420 msgstr ""
2421
2422 #. type: textblock
2423 #: ../src/guestfs.pod:1262
2424 msgid ""
2425 "This allows a guest which has been given a raw disk image to write some "
2426 "other header.  At next boot (or when the disk image is accessed by "
2427 "libguestfs) qemu would do autodetection and think the disk image format was, "
2428 "say, qcow2 based on the header written by the guest."
2429 msgstr ""
2430
2431 #. type: textblock
2432 #: ../src/guestfs.pod:1267
2433 msgid ""
2434 "This in itself would not be a problem, but qcow2 offers many features, one "
2435 "of which is to allow a disk image to refer to another image (called the "
2436 "\"backing disk\").  It does this by placing the path to the backing disk "
2437 "into the qcow2 header.  This path is not validated and could point to any "
2438 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2439 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2440 "control of the attacker."
2441 msgstr ""
2442
2443 #. type: textblock
2444 #: ../src/guestfs.pod:1275
2445 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
2446 msgstr ""
2447
2448 #. type: textblock
2449 #: ../src/guestfs.pod:1282
2450 msgid "You have enabled the network or have opened the disk in write mode."
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../src/guestfs.pod:1286
2455 msgid ""
2456 "You are also running untrusted code from the guest (see L</RUNNING "
2457 "COMMANDS>)."
2458 msgstr ""
2459
2460 #. type: textblock
2461 #: ../src/guestfs.pod:1291
2462 msgid ""
2463 "The way to avoid this is to specify the expected disk format when adding "
2464 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2465 "should always do this if the disk is raw format, and it's a good idea for "
2466 "other cases too."
2467 msgstr ""
2468
2469 #. type: textblock
2470 #: ../src/guestfs.pod:1296
2471 msgid ""
2472 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2473 "format is fetched from libvirt and passed through."
2474 msgstr ""
2475
2476 #. type: textblock
2477 #: ../src/guestfs.pod:1299
2478 msgid ""
2479 "For libguestfs tools, use the I<--format> command line parameter as "
2480 "appropriate."
2481 msgstr ""
2482
2483 #. type: =head1
2484 #: ../src/guestfs.pod:1302
2485 msgid "CONNECTION MANAGEMENT"
2486 msgstr ""
2487
2488 #. type: =head2
2489 #: ../src/guestfs.pod:1304
2490 msgid "guestfs_h *"
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../src/guestfs.pod:1306
2495 msgid ""
2496 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2497 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2498 "handle and release all resources used."
2499 msgstr ""
2500
2501 #. type: textblock
2502 #: ../src/guestfs.pod:1310
2503 msgid ""
2504 "For information on using multiple handles and threads, see the section "
2505 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2506 msgstr ""
2507
2508 #. type: =head2
2509 #: ../src/guestfs.pod:1313
2510 msgid "guestfs_create"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../src/guestfs.pod:1315
2515 #, no-wrap
2516 msgid ""
2517 " guestfs_h *guestfs_create (void);\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../src/guestfs.pod:1317
2523 msgid "Create a connection handle."
2524 msgstr ""
2525
2526 #. type: textblock
2527 #: ../src/guestfs.pod:1319
2528 msgid ""
2529 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2530 "on the handle at least once."
2531 msgstr ""
2532
2533 #. type: textblock
2534 #: ../src/guestfs.pod:1322
2535 msgid ""
2536 "This function returns a non-NULL pointer to a handle on success or NULL on "
2537 "error."
2538 msgstr ""
2539
2540 #. type: textblock
2541 #: ../src/guestfs.pod:1325
2542 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2543 msgstr ""
2544
2545 #. type: textblock
2546 #: ../src/guestfs.pod:1327
2547 msgid ""
2548 "You may also want to configure error handling for the handle.  See L</ERROR "
2549 "HANDLING> section below."
2550 msgstr ""
2551
2552 #. type: =head2
2553 #: ../src/guestfs.pod:1330
2554 msgid "guestfs_close"
2555 msgstr ""
2556
2557 #. type: verbatim
2558 #: ../src/guestfs.pod:1332
2559 #, no-wrap
2560 msgid ""
2561 " void guestfs_close (guestfs_h *g);\n"
2562 "\n"
2563 msgstr ""
2564
2565 #. type: textblock
2566 #: ../src/guestfs.pod:1334
2567 msgid "This closes the connection handle and frees up all resources used."
2568 msgstr ""
2569
2570 #. type: =head1
2571 #: ../src/guestfs.pod:1336
2572 msgid "ERROR HANDLING"
2573 msgstr ""
2574
2575 #. type: textblock
2576 #: ../src/guestfs.pod:1338
2577 msgid ""
2578 "API functions can return errors.  For example, almost all functions that "
2579 "return C<int> will return C<-1> to indicate an error."
2580 msgstr ""
2581
2582 #. type: textblock
2583 #: ../src/guestfs.pod:1341
2584 msgid ""
2585 "Additional information is available for errors: an error message string and "
2586 "optionally an error number (errno) if the thing that failed was a system "
2587 "call."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../src/guestfs.pod:1345
2592 msgid ""
2593 "You can get at the additional information about the last error on the handle "
2594 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2595 "up an error handler with L</guestfs_set_error_handler>."
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../src/guestfs.pod:1350
2600 msgid ""
2601 "When the handle is created, a default error handler is installed which "
2602 "prints the error message string to C<stderr>.  For small short-running "
2603 "command line programs it is sufficient to do:"
2604 msgstr ""
2605
2606 #. type: verbatim
2607 #: ../src/guestfs.pod:1354
2608 #, no-wrap
2609 msgid ""
2610 " if (guestfs_launch (g) == -1)\n"
2611 "   exit (EXIT_FAILURE);\n"
2612 "\n"
2613 msgstr ""
2614
2615 #. type: textblock
2616 #: ../src/guestfs.pod:1357
2617 msgid ""
2618 "since the default error handler will ensure that an error message has been "
2619 "printed to C<stderr> before the program exits."
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../src/guestfs.pod:1360
2624 msgid ""
2625 "For other programs the caller will almost certainly want to install an "
2626 "alternate error handler or do error handling in-line like this:"
2627 msgstr ""
2628
2629 #. type: verbatim
2630 #: ../src/guestfs.pod:1363
2631 #, no-wrap
2632 msgid ""
2633 " g = guestfs_create ();\n"
2634 " \n"
2635 msgstr ""
2636
2637 #. type: verbatim
2638 #: ../src/guestfs.pod:1365
2639 #, no-wrap
2640 msgid ""
2641 " /* This disables the default behaviour of printing errors\n"
2642 "    on stderr. */\n"
2643 " guestfs_set_error_handler (g, NULL, NULL);\n"
2644 " \n"
2645 msgstr ""
2646
2647 #. type: verbatim
2648 #: ../src/guestfs.pod:1369
2649 #, no-wrap
2650 msgid ""
2651 " if (guestfs_launch (g) == -1) {\n"
2652 "   /* Examine the error message and print it etc. */\n"
2653 "   char *msg = guestfs_last_error (g);\n"
2654 "   int errnum = guestfs_last_errno (g);\n"
2655 "   fprintf (stderr, \"%s\\n\", msg);\n"
2656 "   /* ... */\n"
2657 "  }\n"
2658 "\n"
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../src/guestfs.pod:1377
2663 msgid ""
2664 "Out of memory errors are handled differently.  The default action is to call "
2665 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
2666 "L</guestfs_set_out_of_memory_handler>."
2667 msgstr ""
2668
2669 #. type: textblock
2670 #: ../src/guestfs.pod:1381
2671 msgid ""
2672 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2673 "because there is no handle if this happens there is no way to get additional "
2674 "error information.  However L</guestfs_create> is supposed to be a "
2675 "lightweight operation which can only fail because of insufficient memory (it "
2676 "returns NULL in this case)."
2677 msgstr ""
2678
2679 #. type: =head2
2680 #: ../src/guestfs.pod:1387
2681 msgid "guestfs_last_error"
2682 msgstr ""
2683
2684 #. type: verbatim
2685 #: ../src/guestfs.pod:1389
2686 #, no-wrap
2687 msgid ""
2688 " const char *guestfs_last_error (guestfs_h *g);\n"
2689 "\n"
2690 msgstr ""
2691
2692 #. type: textblock
2693 #: ../src/guestfs.pod:1391
2694 msgid ""
2695 "This returns the last error message that happened on C<g>.  If there has not "
2696 "been an error since the handle was created, then this returns C<NULL>."
2697 msgstr ""
2698
2699 #. type: textblock
2700 #: ../src/guestfs.pod:1395
2701 msgid ""
2702 "The lifetime of the returned string is until the next error occurs, or "
2703 "L</guestfs_close> is called."
2704 msgstr ""
2705
2706 #. type: =head2
2707 #: ../src/guestfs.pod:1398
2708 msgid "guestfs_last_errno"
2709 msgstr ""
2710
2711 #. type: verbatim
2712 #: ../src/guestfs.pod:1400
2713 #, no-wrap
2714 msgid ""
2715 " int guestfs_last_errno (guestfs_h *g);\n"
2716 "\n"
2717 msgstr ""
2718
2719 #. type: textblock
2720 #: ../src/guestfs.pod:1402
2721 msgid "This returns the last error number (errno) that happened on C<g>."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../src/guestfs.pod:1404
2726 msgid "If successful, an errno integer not equal to zero is returned."
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../src/guestfs.pod:1406
2731 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../src/guestfs.pod:1413
2736 msgid "There has not been any error on the handle."
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../src/guestfs.pod:1417
2741 msgid ""
2742 "There has been an error but the errno was meaningless.  This corresponds to "
2743 "the case where the error did not come from a failed system call, but for "
2744 "some other reason."
2745 msgstr ""
2746
2747 #. type: textblock
2748 #: ../src/guestfs.pod:1423
2749 msgid ""
2750 "There was an error from a failed system call, but for some reason the errno "
2751 "was not captured and returned.  This usually indicates a bug in libguestfs."
2752 msgstr ""
2753
2754 #. type: textblock
2755 #: ../src/guestfs.pod:1429
2756 msgid ""
2757 "Libguestfs tries to convert the errno from inside the applicance into a "
2758 "corresponding errno for the caller (not entirely trivial: the appliance "
2759 "might be running a completely different operating system from the library "
2760 "and error numbers are not standardized across Un*xen).  If this could not be "
2761 "done, then the error is translated to C<EINVAL>.  In practice this should "
2762 "only happen in very rare circumstances."
2763 msgstr ""
2764
2765 #. type: =head2
2766 #: ../src/guestfs.pod:1437
2767 msgid "guestfs_set_error_handler"
2768 msgstr ""
2769
2770 #. type: verbatim
2771 #: ../src/guestfs.pod:1439
2772 #, no-wrap
2773 msgid ""
2774 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
2775 "                                           void *opaque,\n"
2776 "                                           const char *msg);\n"
2777 " void guestfs_set_error_handler (guestfs_h *g,\n"
2778 "                                 guestfs_error_handler_cb cb,\n"
2779 "                                 void *opaque);\n"
2780 "\n"
2781 msgstr ""
2782
2783 #. type: textblock
2784 #: ../src/guestfs.pod:1446
2785 msgid ""
2786 "The callback C<cb> will be called if there is an error.  The parameters "
2787 "passed to the callback are an opaque data pointer and the error message "
2788 "string."
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../src/guestfs.pod:1450
2793 msgid ""
2794 "C<errno> is not passed to the callback.  To get that the callback must call "
2795 "L</guestfs_last_errno>."
2796 msgstr ""
2797
2798 #. type: textblock
2799 #: ../src/guestfs.pod:1453
2800 msgid ""
2801 "Note that the message string C<msg> is freed as soon as the callback "
2802 "function returns, so if you want to stash it somewhere you must make your "
2803 "own copy."
2804 msgstr ""
2805
2806 #. type: textblock
2807 #: ../src/guestfs.pod:1457
2808 msgid "The default handler prints messages on C<stderr>."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../src/guestfs.pod:1459
2813 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
2814 msgstr ""
2815
2816 #. type: =head2
2817 #: ../src/guestfs.pod:1461
2818 msgid "guestfs_get_error_handler"
2819 msgstr ""
2820
2821 #. type: verbatim
2822 #: ../src/guestfs.pod:1463
2823 #, no-wrap
2824 msgid ""
2825 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
2826 "                                                     void **opaque_rtn);\n"
2827 "\n"
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../src/guestfs.pod:1466
2832 msgid "Returns the current error handler callback."
2833 msgstr ""
2834
2835 #. type: =head2
2836 #: ../src/guestfs.pod:1468
2837 msgid "guestfs_set_out_of_memory_handler"
2838 msgstr ""
2839
2840 #. type: verbatim
2841 #: ../src/guestfs.pod:1470
2842 #, no-wrap
2843 msgid ""
2844 " typedef void (*guestfs_abort_cb) (void);\n"
2845 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
2846 "                                        guestfs_abort_cb);\n"
2847 "\n"
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../src/guestfs.pod:1474
2852 msgid ""
2853 "The callback C<cb> will be called if there is an out of memory situation.  "
2854 "I<Note this callback must not return>."
2855 msgstr ""
2856
2857 #. type: textblock
2858 #: ../src/guestfs.pod:1477
2859 msgid "The default is to call L<abort(3)>."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../src/guestfs.pod:1479
2864 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
2865 msgstr ""
2866
2867 #. type: =head2
2868 #: ../src/guestfs.pod:1482
2869 msgid "guestfs_get_out_of_memory_handler"
2870 msgstr ""
2871
2872 #. type: verbatim
2873 #: ../src/guestfs.pod:1484
2874 #, no-wrap
2875 msgid ""
2876 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
2877 "\n"
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../src/guestfs.pod:1486
2882 msgid "This returns the current out of memory handler."
2883 msgstr ""
2884
2885 #. type: =head1
2886 #: ../src/guestfs.pod:1488
2887 msgid "API CALLS"
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../src/guestfs.pod:1490 ../fish/guestfish.pod:1008
2892 msgid "@ACTIONS@"
2893 msgstr ""
2894
2895 #. type: =head1
2896 #: ../src/guestfs.pod:1492
2897 msgid "STRUCTURES"
2898 msgstr ""
2899
2900 #. type: textblock
2901 #: ../src/guestfs.pod:1494
2902 msgid "@STRUCTS@"
2903 msgstr ""
2904
2905 #. type: =head1
2906 #: ../src/guestfs.pod:1496
2907 msgid "AVAILABILITY"
2908 msgstr ""
2909
2910 #. type: =head2
2911 #: ../src/guestfs.pod:1498
2912 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../src/guestfs.pod:1500
2917 msgid ""
2918 "Using L</guestfs_available> you can test availability of the following "
2919 "groups of functions.  This test queries the appliance to see if the "
2920 "appliance you are currently using supports the functionality."
2921 msgstr ""
2922
2923 #. type: textblock
2924 #: ../src/guestfs.pod:1505
2925 msgid "@AVAILABILITY@"
2926 msgstr ""
2927
2928 #. type: =head2
2929 #: ../src/guestfs.pod:1507
2930 msgid "GUESTFISH supported COMMAND"
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../src/guestfs.pod:1509
2935 msgid ""
2936 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
2937 "prints out the available groups and whether they are supported by this build "
2938 "of libguestfs.  Note however that you have to do C<run> first."
2939 msgstr ""
2940
2941 #. type: =head2
2942 #: ../src/guestfs.pod:1514
2943 msgid "SINGLE CALLS AT COMPILE TIME"
2944 msgstr ""
2945
2946 #. type: textblock
2947 #: ../src/guestfs.pod:1516
2948 msgid ""
2949 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
2950 "function, such as:"
2951 msgstr ""
2952
2953 #. type: verbatim
2954 #: ../src/guestfs.pod:1519
2955 #, no-wrap
2956 msgid ""
2957 " #define LIBGUESTFS_HAVE_DD 1\n"
2958 "\n"
2959 msgstr ""
2960
2961 #. type: textblock
2962 #: ../src/guestfs.pod:1521
2963 msgid "if L</guestfs_dd> is available."
2964 msgstr ""
2965
2966 #. type: textblock
2967 #: ../src/guestfs.pod:1523
2968 msgid ""
2969 "Before version 1.5.8, if you needed to test whether a single libguestfs "
2970 "function is available at compile time, we recommended using build tools such "
2971 "as autoconf or cmake.  For example in autotools you could use:"
2972 msgstr ""
2973
2974 #. type: verbatim
2975 #: ../src/guestfs.pod:1528
2976 #, no-wrap
2977 msgid ""
2978 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
2979 " AC_CHECK_FUNCS([guestfs_dd])\n"
2980 "\n"
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../src/guestfs.pod:1531
2985 msgid ""
2986 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
2987 "in your program."
2988 msgstr ""
2989
2990 #. type: =head2
2991 #: ../src/guestfs.pod:1534
2992 msgid "SINGLE CALLS AT RUN TIME"
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../src/guestfs.pod:1536
2997 msgid ""
2998 "Testing at compile time doesn't guarantee that a function really exists in "
2999 "the library.  The reason is that you might be dynamically linked against a "
3000 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3001 "This situation unfortunately results in a segmentation fault, which is a "
3002 "shortcoming of the C dynamic linking system itself."
3003 msgstr ""
3004
3005 #. type: textblock
3006 #: ../src/guestfs.pod:1543
3007 msgid ""
3008 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3009 "in this example program (note that you still need the compile time check as "
3010 "well):"
3011 msgstr ""
3012
3013 #. type: verbatim
3014 #: ../src/guestfs.pod:1547
3015 #, no-wrap
3016 msgid ""
3017 " #include <stdio.h>\n"
3018 " #include <stdlib.h>\n"
3019 " #include <unistd.h>\n"
3020 " #include <dlfcn.h>\n"
3021 " #include <guestfs.h>\n"
3022 " \n"
3023 msgstr ""
3024
3025 #. type: verbatim
3026 #: ../src/guestfs.pod:1553
3027 #, no-wrap
3028 msgid ""
3029 " main ()\n"
3030 " {\n"
3031 " #ifdef LIBGUESTFS_HAVE_DD\n"
3032 "   void *dl;\n"
3033 "   int has_function;\n"
3034 " \n"
3035 msgstr ""
3036
3037 #. type: verbatim
3038 #: ../src/guestfs.pod:1559
3039 #, no-wrap
3040 msgid ""
3041 "   /* Test if the function guestfs_dd is really available. */\n"
3042 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3043 "   if (!dl) {\n"
3044 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3045 "     exit (EXIT_FAILURE);\n"
3046 "   }\n"
3047 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3048 "   dlclose (dl);\n"
3049 " \n"
3050 msgstr ""
3051
3052 #. type: verbatim
3053 #: ../src/guestfs.pod:1568
3054 #, no-wrap
3055 msgid ""
3056 "   if (!has_function)\n"
3057 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3058 "   else {\n"
3059 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3060 "     /* Now it's safe to call\n"
3061 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3062 "     */\n"
3063 "   }\n"
3064 " #else\n"
3065 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3066 " #endif\n"
3067 "  }\n"
3068 "\n"
3069 msgstr ""
3070
3071 #. type: textblock
3072 #: ../src/guestfs.pod:1581
3073 msgid ""
3074 "You may think the above is an awful lot of hassle, and it is.  There are "
3075 "other ways outside of the C linking system to ensure that this kind of "
3076 "incompatibility never arises, such as using package versioning:"
3077 msgstr ""
3078
3079 #. type: verbatim
3080 #: ../src/guestfs.pod:1586
3081 #, no-wrap
3082 msgid ""
3083 " Requires: libguestfs >= 1.0.80\n"
3084 "\n"
3085 msgstr ""
3086
3087 #. type: =head1
3088 #: ../src/guestfs.pod:1588
3089 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3090 msgstr ""
3091
3092 #. type: textblock
3093 #: ../src/guestfs.pod:1590
3094 msgid ""
3095 "A recent feature of the API is the introduction of calls which take optional "
3096 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3097 "takes variable arguments (ie. C<...>), as in this example:"
3098 msgstr ""
3099
3100 #. type: verbatim
3101 #: ../src/guestfs.pod:1595
3102 #, no-wrap
3103 msgid ""
3104 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3105 "\n"
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../src/guestfs.pod:1597
3110 msgid ""
3111 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3112 "call with no optional arguments specified:"
3113 msgstr ""
3114
3115 #. type: verbatim
3116 #: ../src/guestfs.pod:1600
3117 #, no-wrap
3118 msgid ""
3119 " guestfs_add_drive_opts (g, filename, -1);\n"
3120 "\n"
3121 msgstr ""
3122
3123 #. type: textblock
3124 #: ../src/guestfs.pod:1602
3125 msgid "With a single optional argument:"
3126 msgstr ""
3127
3128 #. type: verbatim
3129 #: ../src/guestfs.pod:1604
3130 #, no-wrap
3131 msgid ""
3132 " guestfs_add_drive_opts (g, filename,\n"
3133 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3134 "                         -1);\n"
3135 "\n"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../src/guestfs.pod:1608
3140 msgid "With two:"
3141 msgstr ""
3142
3143 #. type: verbatim
3144 #: ../src/guestfs.pod:1610
3145 #, no-wrap
3146 msgid ""
3147 " guestfs_add_drive_opts (g, filename,\n"
3148 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3149 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3150 "                         -1);\n"
3151 "\n"
3152 msgstr ""
3153
3154 #. type: textblock
3155 #: ../src/guestfs.pod:1615
3156 msgid ""
3157 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3158 "happen!"
3159 msgstr ""
3160
3161 #. type: =head2
3162 #: ../src/guestfs.pod:1618
3163 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../src/guestfs.pod:1620
3168 msgid ""
3169 "The second variant has the same name with the suffix C<_va>, which works the "
3170 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3171 "example function, this is declared:"
3172 msgstr ""
3173
3174 #. type: verbatim
3175 #: ../src/guestfs.pod:1624
3176 #, no-wrap
3177 msgid ""
3178 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3179 "                                va_list args);\n"
3180 "\n"
3181 msgstr ""
3182
3183 #. type: =head2
3184 #: ../src/guestfs.pod:1627
3185 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../src/guestfs.pod:1629
3190 msgid ""
3191 "The third variant is useful where you need to construct these calls.  You "
3192 "pass in a structure where you fill in the optional fields.  The structure "
3193 "has a bitmask as the first element which you must set to indicate which "
3194 "fields you have filled in.  For our example function the structure and call "
3195 "are declared:"
3196 msgstr ""
3197
3198 #. type: verbatim
3199 #: ../src/guestfs.pod:1635
3200 #, no-wrap
3201 msgid ""
3202 " struct guestfs_add_drive_opts_argv {\n"
3203 "   uint64_t bitmask;\n"
3204 "   int readonly;\n"
3205 "   const char *format;\n"
3206 "   /* ... */\n"
3207 " };\n"
3208 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3209 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3210 "\n"
3211 msgstr ""
3212
3213 #. type: textblock
3214 #: ../src/guestfs.pod:1644
3215 msgid "You could call it like this:"
3216 msgstr ""
3217
3218 #. type: verbatim
3219 #: ../src/guestfs.pod:1646
3220 #, no-wrap
3221 msgid ""
3222 " struct guestfs_add_drive_opts_argv optargs = {\n"
3223 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3224 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3225 "   .readonly = 1,\n"
3226 "   .format = \"qcow2\"\n"
3227 " };\n"
3228 " \n"
3229 msgstr ""
3230
3231 #. type: verbatim
3232 #: ../src/guestfs.pod:1653
3233 #, no-wrap
3234 msgid ""
3235 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3236 "\n"
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../src/guestfs.pod:1655 ../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
3241 msgid "Notes:"
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../src/guestfs.pod:1661
3246 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../src/guestfs.pod:1666
3251 msgid "You do not need to fill in all fields of the structure."
3252 msgstr ""
3253
3254 #. type: textblock
3255 #: ../src/guestfs.pod:1670
3256 msgid ""
3257 "There must be a one-to-one correspondence between fields of the structure "
3258 "that are filled in, and bits set in the bitmask."
3259 msgstr ""
3260
3261 #. type: =head2
3262 #: ../src/guestfs.pod:1675
3263 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../src/guestfs.pod:1677
3268 msgid ""
3269 "In other languages, optional arguments are expressed in the way that is "
3270 "natural for that language.  We refer you to the language-specific "
3271 "documentation for more details on that."
3272 msgstr ""
3273
3274 #. type: textblock
3275 #: ../src/guestfs.pod:1681
3276 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3277 msgstr ""
3278
3279 #. type: =head2
3280 #: ../src/guestfs.pod:1683
3281 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3282 msgstr ""
3283
3284 #. type: textblock
3285 #: ../src/guestfs.pod:1685
3286 msgid ""
3287 "B<Note:> This section documents the generic event mechanism introduced in "
3288 "libguestfs 1.10, which you should use in new code if possible.  The old "
3289 "functions C<guestfs_set_log_message_callback>, "
3290 "C<guestfs_set_subprocess_quit_callback>, "
3291 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3292 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3293 "page."
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../src/guestfs.pod:1693
3298 msgid ""
3299 "Handles generate events when certain things happen, such as log messages "
3300 "being generated, progress messages during long-running operations, or the "
3301 "handle being closed.  The API calls described below let you register a "
3302 "callback to be called when events happen.  You can register multiple "
3303 "callbacks (for the same, different or overlapping sets of events), and "
3304 "individually remove callbacks.  If callbacks are not removed, then they "
3305 "remain in force until the handle is closed."
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1701
3310 msgid ""
3311 "In the current implementation, events are only generated synchronously: that "
3312 "means that events (and hence callbacks) can only happen while you are in the "
3313 "middle of making another libguestfs call.  The callback is called in the "
3314 "same thread."
3315 msgstr ""
3316
3317 #. type: textblock
3318 #: ../src/guestfs.pod:1706
3319 msgid ""
3320 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3321 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3322 msgstr ""
3323
3324 #. type: =head3
3325 #: ../src/guestfs.pod:1710
3326 msgid "CLASSES OF EVENTS"
3327 msgstr ""
3328
3329 #. type: =item
3330 #: ../src/guestfs.pod:1714
3331 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../src/guestfs.pod:1717
3336 msgid ""
3337 "The callback function will be called while the handle is being closed "
3338 "(synchronously from L</guestfs_close>)."
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../src/guestfs.pod:1720
3343 msgid ""
3344 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3345 "handles that are open when the program exits.  This means that this callback "
3346 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3347 "problems in higher-level languages (eg. if your HLL interpreter has already "
3348 "been cleaned up by the time this is called, and if your callback then jumps "
3349 "into some HLL function)."
3350 msgstr ""
3351
3352 #. type: textblock
3353 #: ../src/guestfs.pod:1727
3354 msgid ""
3355 "If no callback is registered: the handle is closed without any callback "
3356 "being invoked."
3357 msgstr ""
3358
3359 #. type: =item
3360 #: ../src/guestfs.pod:1730
3361 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3362 msgstr ""
3363
3364 #. type: textblock
3365 #: ../src/guestfs.pod:1733
3366 msgid ""
3367 "The callback function will be called when the child process quits, either "
3368 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3369 "corresponds to a transition from any state to the CONFIG state)."
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../src/guestfs.pod:1737 ../src/guestfs.pod:1746
3374 msgid "If no callback is registered: the event is ignored."
3375 msgstr ""
3376
3377 #. type: =item
3378 #: ../src/guestfs.pod:1739
3379 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../src/guestfs.pod:1742
3384 msgid ""
3385 "The callback function will be called when the child process becomes ready "
3386 "first time after it has been launched.  (This corresponds to a transition "
3387 "from LAUNCHING to the READY state)."
3388 msgstr ""
3389
3390 #. type: =item
3391 #: ../src/guestfs.pod:1748
3392 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3393 msgstr ""
3394
3395 #. type: textblock
3396 #: ../src/guestfs.pod:1751
3397 msgid ""
3398 "Some long-running operations can generate progress messages.  If this "
3399 "callback is registered, then it will be called each time a progress message "
3400 "is generated (usually two seconds after the operation started, and three "
3401 "times per second thereafter until it completes, although the frequency may "
3402 "change in future versions)."
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../src/guestfs.pod:1757
3407 msgid ""
3408 "The callback receives in the payload four unsigned 64 bit numbers which are "
3409 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3410 msgstr ""
3411
3412 #. type: textblock
3413 #: ../src/guestfs.pod:1760
3414 msgid ""
3415 "The units of C<total> are not defined, although for some operations C<total> "
3416 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3417 "or megabytes), and C<position> may be the portion which has been "
3418 "transferred."
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../src/guestfs.pod:1765
3423 msgid "The only defined and stable parts of the API are:"
3424 msgstr ""
3425
3426 #. type: textblock
3427 #: ../src/guestfs.pod:1771
3428 msgid ""
3429 "The callback can display to the user some type of progress bar or indicator "
3430 "which shows the ratio of C<position>:C<total>."
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../src/guestfs.pod:1776
3435 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../src/guestfs.pod:1780
3440 msgid ""
3441 "If any progress notification is sent during a call, then a final progress "
3442 "notification is always sent when C<position> = C<total> (I<unless> the call "
3443 "fails with an error)."
3444 msgstr ""
3445
3446 #. type: textblock
3447 #: ../src/guestfs.pod:1784
3448 msgid ""
3449 "This is to simplify caller code, so callers can easily set the progress "
3450 "indicator to \"100%\" at the end of the operation, without requiring special "
3451 "code to detect this case."
3452 msgstr ""
3453
3454 #. type: textblock
3455 #: ../src/guestfs.pod:1790
3456 msgid ""
3457 "For some calls we are unable to estimate the progress of the call, but we "
3458 "can still generate progress messages to indicate activity.  This is known as "
3459 "\"pulse mode\", and is directly supported by certain progress bar "
3460 "implementations (eg. GtkProgressBar)."
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../src/guestfs.pod:1795
3465 msgid ""
3466 "For these calls, zero or more progress messages are generated with "
3467 "C<position = 0> and C<total = 1>, followed by a final message with "
3468 "C<position = total = 1>."
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../src/guestfs.pod:1799
3473 msgid ""
3474 "As noted above, if the call fails with an error then the final message may "
3475 "not be generated."
3476 msgstr ""
3477
3478 #. type: textblock
3479 #: ../src/guestfs.pod:1804
3480 msgid ""
3481 "The callback also receives the procedure number (C<proc_nr>) and serial "
3482 "number (C<serial>) of the call.  These are only useful for debugging "
3483 "protocol issues, and the callback can normally ignore them.  The callback "
3484 "may want to print these numbers in error messages or debugging messages."
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../src/guestfs.pod:1810
3489 msgid "If no callback is registered: progress messages are discarded."
3490 msgstr ""
3491
3492 #. type: =item
3493 #: ../src/guestfs.pod:1812
3494 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3495 msgstr ""
3496
3497 #. type: textblock
3498 #: ../src/guestfs.pod:1815
3499 msgid ""
3500 "The callback function is called whenever a log message is generated by qemu, "
3501 "the appliance kernel, guestfsd (daemon), or utility programs."
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../src/guestfs.pod:1818
3506 msgid ""
3507 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
3508 "(L</guestfs_launch>) then additional debug messages are generated."
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../src/guestfs.pod:1821 ../src/guestfs.pod:1835
3513 msgid ""
3514 "If no callback is registered: the messages are discarded unless the verbose "
3515 "flag is set in which case they are sent to stderr.  You can override the "
3516 "printing of verbose messages to stderr by setting up a callback."
3517 msgstr ""
3518
3519 #. type: =item
3520 #: ../src/guestfs.pod:1826
3521 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3522 msgstr ""
3523
3524 #. type: textblock
3525 #: ../src/guestfs.pod:1829
3526 msgid ""
3527 "The callback function is called whenever a log message is generated by the "
3528 "library part of libguestfs."
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../src/guestfs.pod:1832
3533 msgid ""
3534 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3535 "messages are generated."
3536 msgstr ""
3537
3538 #. type: =item
3539 #: ../src/guestfs.pod:1840
3540 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3541 msgstr ""
3542
3543 #. type: textblock
3544 #: ../src/guestfs.pod:1843
3545 msgid ""
3546 "The callback function is called whenever a trace message is generated.  This "
3547 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3548 msgstr ""
3549
3550 #. type: textblock
3551 #: ../src/guestfs.pod:1846
3552 msgid ""
3553 "If no callback is registered: the messages are sent to stderr.  You can "
3554 "override the printing of trace messages to stderr by setting up a callback."
3555 msgstr ""
3556
3557 #. type: =head3
3558 #: ../src/guestfs.pod:1852
3559 msgid "guestfs_set_event_callback"
3560 msgstr ""
3561
3562 #. type: verbatim
3563 #: ../src/guestfs.pod:1854
3564 #, no-wrap
3565 msgid ""
3566 " int guestfs_set_event_callback (guestfs_h *g,\n"
3567 "                                 guestfs_event_callback cb,\n"
3568 "                                 uint64_t event_bitmask,\n"
3569 "                                 int flags,\n"
3570 "                                 void *opaque);\n"
3571 "\n"
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../src/guestfs.pod:1860
3576 msgid ""
3577 "This function registers a callback (C<cb>) for all event classes in the "
3578 "C<event_bitmask>."
3579 msgstr ""
3580
3581 #. type: textblock
3582 #: ../src/guestfs.pod:1863
3583 msgid ""
3584 "For example, to register for all log message events, you could call this "
3585 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
3586 "To register a single callback for all possible classes of events, use "
3587 "C<GUESTFS_EVENT_ALL>."
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../src/guestfs.pod:1869
3592 msgid "C<flags> should always be passed as 0."
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../src/guestfs.pod:1871
3597 msgid ""
3598 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
3599 "it for any purpose."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../src/guestfs.pod:1874
3604 msgid ""
3605 "The return value is the event handle (an integer) which you can use to "
3606 "delete the callback (see below)."
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../src/guestfs.pod:1877
3611 msgid ""
3612 "If there is an error, this function returns C<-1>, and sets the error in the "
3613 "handle in the usual way (see L</guestfs_last_error> etc.)"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../src/guestfs.pod:1880
3618 msgid ""
3619 "Callbacks remain in effect until they are deleted, or until the handle is "
3620 "closed."
3621 msgstr ""
3622
3623 #. type: textblock
3624 #: ../src/guestfs.pod:1883
3625 msgid ""
3626 "In the case where multiple callbacks are registered for a particular event "
3627 "class, all of the callbacks are called.  The order in which multiple "
3628 "callbacks are called is not defined."
3629 msgstr ""
3630
3631 #. type: =head3
3632 #: ../src/guestfs.pod:1887
3633 msgid "guestfs_delete_event_callback"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../src/guestfs.pod:1889
3638 #, no-wrap
3639 msgid ""
3640 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
3641 "\n"
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../src/guestfs.pod:1891
3646 msgid ""
3647 "Delete a callback that was previously registered.  C<event_handle> should be "
3648 "the integer that was returned by a previous call to "
3649 "C<guestfs_set_event_callback> on the same handle."
3650 msgstr ""
3651
3652 #. type: =head3
3653 #: ../src/guestfs.pod:1895
3654 msgid "guestfs_event_callback"
3655 msgstr ""
3656
3657 #. type: verbatim
3658 #: ../src/guestfs.pod:1897
3659 #, no-wrap
3660 msgid ""
3661 " typedef void (*guestfs_event_callback) (\n"
3662 "                  guestfs_h *g,\n"
3663 "                  void *opaque,\n"
3664 "                  uint64_t event,\n"
3665 "                  int event_handle,\n"
3666 "                  int flags,\n"
3667 "                  const char *buf, size_t buf_len,\n"
3668 "                  const uint64_t *array, size_t array_len);\n"
3669 "\n"
3670 msgstr ""
3671
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1906
3674 msgid "This is the type of the event callback function that you have to provide."
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../src/guestfs.pod:1909
3679 msgid ""
3680 "The basic parameters are: the handle (C<g>), the opaque user pointer "
3681 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
3682 "handle, and C<flags> which in the current API you should ignore."
3683 msgstr ""
3684
3685 #. type: textblock
3686 #: ../src/guestfs.pod:1913
3687 msgid ""
3688 "The remaining parameters contain the event payload (if any).  Each event may "
3689 "contain a payload, which usually relates to the event class, but for future "
3690 "proofing your code should be written to handle any payload for any event "
3691 "class."
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../src/guestfs.pod:1918
3696 msgid ""
3697 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
3698 "there is no message buffer).  Note that this message buffer can contain "
3699 "arbitrary 8 bit data, including NUL bytes."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../src/guestfs.pod:1922
3704 msgid ""
3705 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
3706 "moment this is only used for progress messages."
3707 msgstr ""
3708
3709 #. type: =head3
3710 #: ../src/guestfs.pod:1925
3711 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
3712 msgstr ""
3713
3714 #. type: textblock
3715 #: ../src/guestfs.pod:1927
3716 msgid ""
3717 "One motivation for the generic event API was to allow GUI programs to "
3718 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
3719 "unconditionally to C<stderr>."
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../src/guestfs.pod:1931
3724 msgid ""
3725 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
3726 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
3727 "messages are not events; you must capture error messages separately)."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../src/guestfs.pod:1936
3732 msgid ""
3733 "Programs have to set up a callback to capture the classes of events of "
3734 "interest:"
3735 msgstr ""
3736
3737 #. type: verbatim
3738 #: ../src/guestfs.pod:1939
3739 #, no-wrap
3740 msgid ""
3741 " int eh =\n"
3742 "   guestfs_set_event_callback\n"
3743 "     (g, message_callback,\n"
3744 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
3745 "      GUESTFS_EVENT_TRACE,\n"
3746 "      0, NULL) == -1)\n"
3747 " if (eh == -1) {\n"
3748 "   // handle error in the usual way\n"
3749 " }\n"
3750 "\n"
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../src/guestfs.pod:1949
3755 msgid ""
3756 "The callback can then direct messages to the appropriate place.  In this "
3757 "example, messages are directed to syslog:"
3758 msgstr ""
3759
3760 #. type: verbatim
3761 #: ../src/guestfs.pod:1952
3762 #, no-wrap
3763 msgid ""
3764 " static void\n"
3765 " message_callback (\n"
3766 "         guestfs_h *g,\n"
3767 "         void *opaque,\n"
3768 "         uint64_t event,\n"
3769 "         int event_handle,\n"
3770 "         int flags,\n"
3771 "         const char *buf, size_t buf_len,\n"
3772 "         const uint64_t *array, size_t array_len)\n"
3773 " {\n"
3774 "   const int priority = LOG_USER|LOG_INFO;\n"
3775 "   if (buf_len > 0)\n"
3776 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
3777 " }\n"
3778 "\n"
3779 msgstr ""
3780
3781 #. type: =head1
3782 #: ../src/guestfs.pod:1967
3783 msgid "PRIVATE DATA AREA"
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../src/guestfs.pod:1969
3788 msgid ""
3789 "You can attach named pieces of private data to the libguestfs handle, fetch "
3790 "them by name, and walk over them, for the lifetime of the handle.  This is "
3791 "called the private data area and is only available from the C API."
3792 msgstr ""
3793
3794 #. type: textblock
3795 #: ../src/guestfs.pod:1974
3796 msgid "To attach a named piece of data, use the following call:"
3797 msgstr ""
3798
3799 #. type: verbatim
3800 #: ../src/guestfs.pod:1976
3801 #, no-wrap
3802 msgid ""
3803 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3804 "\n"
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../src/guestfs.pod:1978
3809 msgid ""
3810 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3811 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3812 "overwritten."
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../src/guestfs.pod:1982
3817 msgid ""
3818 "You can use any C<key> you want, but names beginning with an underscore "
3819 "character are reserved for internal libguestfs purposes (for implementing "
3820 "language bindings).  It is recommended to prefix the name with some unique "
3821 "string to avoid collisions with other users."
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../src/guestfs.pod:1987
3826 msgid "To retrieve the pointer, use:"
3827 msgstr ""
3828
3829 #. type: verbatim
3830 #: ../src/guestfs.pod:1989
3831 #, no-wrap
3832 msgid ""
3833 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3834 "\n"
3835 msgstr ""
3836
3837 #. type: textblock
3838 #: ../src/guestfs.pod:1991
3839 msgid ""
3840 "This function returns C<NULL> if either no data is found associated with "
3841 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3842 "C<NULL>."
3843 msgstr ""
3844
3845 #. type: textblock
3846 #: ../src/guestfs.pod:1995
3847 msgid ""
3848 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3849 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3850 "all.  In particular, libguestfs does I<not> try to free the data when the "
3851 "handle is closed.  If the data must be freed, then the caller must either "
3852 "free it before calling L</guestfs_close> or must set up a close callback to "
3853 "do it (see L</GUESTFS_EVENT_CLOSE>)."
3854 msgstr ""
3855
3856 #. type: textblock
3857 #: ../src/guestfs.pod:2002
3858 msgid "To walk over all entries, use these two functions:"
3859 msgstr ""
3860
3861 #. type: verbatim
3862 #: ../src/guestfs.pod:2004
3863 #, no-wrap
3864 msgid ""
3865 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
3866 "\n"
3867 msgstr ""
3868
3869 #. type: verbatim
3870 #: ../src/guestfs.pod:2006
3871 #, no-wrap
3872 msgid ""
3873 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
3874 "\n"
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../src/guestfs.pod:2008
3879 msgid ""
3880 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
3881 "not have any particular meaning -- keys are not returned in any defined "
3882 "order).  A pointer to the key is returned in C<*key_rtn> and the "
3883 "corresponding data pointer is returned from the function.  C<NULL> is "
3884 "returned if there are no keys stored in the handle."
3885 msgstr ""
3886
3887 #. type: textblock
3888 #: ../src/guestfs.pod:2014
3889 msgid ""
3890 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
3891 "value of this function is also C<NULL> is there are no further entries to "
3892 "return."
3893 msgstr ""
3894
3895 #. type: textblock
3896 #: ../src/guestfs.pod:2018
3897 msgid "Notes about walking over entries:"
3898 msgstr ""
3899
3900 #. type: textblock
3901 #: ../src/guestfs.pod:2024
3902 msgid "You must not call C<guestfs_set_private> while walking over the entries."
3903 msgstr ""
3904
3905 #. type: textblock
3906 #: ../src/guestfs.pod:2029
3907 msgid ""
3908 "The handle maintains an internal iterator which is reset when you call "
3909 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
3910 "call C<guestfs_set_private>."
3911 msgstr ""
3912
3913 #. type: textblock
3914 #: ../src/guestfs.pod:2035
3915 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
3916 msgstr ""
3917
3918 #. type: verbatim
3919 #: ../src/guestfs.pod:2037
3920 #, no-wrap
3921 msgid ""
3922 " guestfs_set_private (g, key, NULL);\n"
3923 "\n"
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../src/guestfs.pod:2039
3928 msgid "then that C<key> is not returned when walking."
3929 msgstr ""
3930
3931 #. type: textblock
3932 #: ../src/guestfs.pod:2043
3933 msgid ""
3934 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
3935 "C<guestfs_next_private> or C<guestfs_set_private>."
3936 msgstr ""
3937
3938 #. type: textblock
3939 #: ../src/guestfs.pod:2049
3940 msgid ""
3941 "The following example code shows how to print all keys and data pointers "
3942 "that are associated with the handle C<g>:"
3943 msgstr ""
3944
3945 #. type: verbatim
3946 #: ../src/guestfs.pod:2052
3947 #, no-wrap
3948 msgid ""
3949 " const char *key;\n"
3950 " void *data = guestfs_first_private (g, &key);\n"
3951 " while (data != NULL)\n"
3952 "   {\n"
3953 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
3954 "     data = guestfs_next_private (g, &key);\n"
3955 "   }\n"
3956 "\n"
3957 msgstr ""
3958
3959 #. type: textblock
3960 #: ../src/guestfs.pod:2060
3961 msgid ""
3962 "More commonly you are only interested in keys that begin with an "
3963 "application-specific prefix C<foo_>.  Modify the loop like so:"
3964 msgstr ""
3965
3966 #. type: verbatim
3967 #: ../src/guestfs.pod:2063
3968 #, no-wrap
3969 msgid ""
3970 " const char *key;\n"
3971 " void *data = guestfs_first_private (g, &key);\n"
3972 " while (data != NULL)\n"
3973 "   {\n"
3974 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
3975 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
3976 "     data = guestfs_next_private (g, &key);\n"
3977 "   }\n"
3978 "\n"
3979 msgstr ""
3980
3981 #. type: textblock
3982 #: ../src/guestfs.pod:2072
3983 msgid ""
3984 "If you need to modify keys while walking, then you have to jump back to the "
3985 "beginning of the loop.  For example, to delete all keys prefixed with "
3986 "C<foo_>:"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../src/guestfs.pod:2076
3991 #, no-wrap
3992 msgid ""
3993 "  const char *key;\n"
3994 "  void *data;\n"
3995 " again:\n"
3996 "  data = guestfs_first_private (g, &key);\n"
3997 "  while (data != NULL)\n"
3998 "    {\n"
3999 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4000 "        {\n"
4001 "          guestfs_set_private (g, key, NULL);\n"
4002 "          /* note that 'key' pointer is now invalid, and so is\n"
4003 "             the internal iterator */\n"
4004 "          goto again;\n"
4005 "        }\n"
4006 "      data = guestfs_next_private (g, &key);\n"
4007 "    }\n"
4008 "\n"
4009 msgstr ""
4010
4011 #. type: textblock
4012 #: ../src/guestfs.pod:2092
4013 msgid ""
4014 "Note that the above loop is guaranteed to terminate because the keys are "
4015 "being deleted, but other manipulations of keys within the loop might not "
4016 "terminate unless you also maintain an indication of which keys have been "
4017 "visited."
4018 msgstr ""
4019
4020 #. type: =end
4021 #: ../src/guestfs.pod:2097 ../src/guestfs.pod:2102
4022 msgid "html"
4023 msgstr ""
4024
4025 #. type: textblock
4026 #: ../src/guestfs.pod:2099
4027 msgid ""
4028 "<!-- old anchor for the next section --> <a "
4029 "name=\"state_machine_and_low_level_event_api\"/>"
4030 msgstr ""
4031
4032 #. type: =head1
4033 #: ../src/guestfs.pod:2104
4034 msgid "ARCHITECTURE"
4035 msgstr ""
4036
4037 #. type: textblock
4038 #: ../src/guestfs.pod:2106
4039 msgid ""
4040 "Internally, libguestfs is implemented by running an appliance (a special "
4041 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4042 "process of the main program."
4043 msgstr ""
4044
4045 #. type: verbatim
4046 #: ../src/guestfs.pod:2110
4047 #, no-wrap
4048 msgid ""
4049 "  ___________________\n"
4050 " /                   \\\n"
4051 " | main program      |\n"
4052 " |                   |\n"
4053 " |                   |           child process / appliance\n"
4054 " |                   |           __________________________\n"
4055 " |                   |          / qemu                     \\\n"
4056 " +-------------------+   RPC    |      +-----------------+ |\n"
4057 " | libguestfs     <--------------------> guestfsd        | |\n"
4058 " |                   |          |      +-----------------+ |\n"
4059 " \\___________________/          |      | Linux kernel    | |\n"
4060 "                                |      +--^--------------+ |\n"
4061 "                                \\_________|________________/\n"
4062 "                                          |\n"
4063 "                                   _______v______\n"
4064 "                                  /              \\\n"
4065 "                                  | Device or    |\n"
4066 "                                  | disk image   |\n"
4067 "                                  \\______________/\n"
4068 "\n"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../src/guestfs.pod:2130
4073 msgid ""
4074 "The library, linked to the main program, creates the child process and hence "
4075 "the appliance in the L</guestfs_launch> function."
4076 msgstr ""
4077
4078 #. type: textblock
4079 #: ../src/guestfs.pod:2133
4080 msgid ""
4081 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4082 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4083 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4084 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4085 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4086 "attached to the qemu process which translates device access by the "
4087 "appliance's Linux kernel into accesses to the image."
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../src/guestfs.pod:2142
4092 msgid ""
4093 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4094 "Although the disk image you are attached to might also be used by some "
4095 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4096 "care if both libguestfs's qemu process and your virtual machine are trying "
4097 "to update the disk image at the same time, since these usually results in "
4098 "massive disk corruption)."
4099 msgstr ""
4100
4101 #. type: =head1
4102 #: ../src/guestfs.pod:2149
4103 msgid "STATE MACHINE"
4104 msgstr ""
4105
4106 #. type: textblock
4107 #: ../src/guestfs.pod:2151
4108 msgid "libguestfs uses a state machine to model the child process:"
4109 msgstr ""
4110
4111 #. type: verbatim
4112 #: ../src/guestfs.pod:2153
4113 #, no-wrap
4114 msgid ""
4115 "                         |\n"
4116 "                    guestfs_create\n"
4117 "                         |\n"
4118 "                         |\n"
4119 "                     ____V_____\n"
4120 "                    /          \\\n"
4121 "                    |  CONFIG  |\n"
4122 "                    \\__________/\n"
4123 "                     ^ ^   ^  \\\n"
4124 "                    /  |    \\  \\ guestfs_launch\n"
4125 "                   /   |    _\\__V______\n"
4126 "                  /    |   /           \\\n"
4127 "                 /     |   | LAUNCHING |\n"
4128 "                /      |   \\___________/\n"
4129 "               /       |       /\n"
4130 "              /        |  guestfs_launch\n"
4131 "             /         |     /\n"
4132 "    ______  /        __|____V\n"
4133 "   /      \\ ------> /        \\\n"
4134 "   | BUSY |         | READY  |\n"
4135 "   \\______/ <------ \\________/\n"
4136 "\n"
4137 msgstr ""
4138
4139 #. type: textblock
4140 #: ../src/guestfs.pod:2175
4141 msgid ""
4142 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4143 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4144 "(3) alternating between READY and BUSY as commands are issued to, and "
4145 "carried out by, the child process."
4146 msgstr ""
4147
4148 #. type: textblock
4149 #: ../src/guestfs.pod:2180
4150 msgid ""
4151 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4152 "asynchronously at any time (eg. due to some internal error), and that causes "
4153 "the state to transition back to CONFIG."
4154 msgstr ""
4155
4156 #. type: textblock
4157 #: ../src/guestfs.pod:2184
4158 msgid ""
4159 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4160 "issued when in the CONFIG state."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../src/guestfs.pod:2187
4165 msgid ""
4166 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4167 "L</guestfs_launch> blocks until the child process is READY to accept "
4168 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4169 "moves the state from CONFIG to LAUNCHING while it is running."
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../src/guestfs.pod:2193
4174 msgid ""
4175 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4176 "state.  These API calls block waiting for the command to be carried out "
4177 "(ie. the state to transition to BUSY and then back to READY).  There are no "
4178 "non-blocking versions, and no way to issue more than one command per handle "
4179 "at the same time."
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../src/guestfs.pod:2199
4184 msgid ""
4185 "Finally, the child process sends asynchronous messages back to the main "
4186 "program, such as kernel log messages.  You can register a callback to "
4187 "receive these messages."
4188 msgstr ""
4189
4190 #. type: =head1
4191 #: ../src/guestfs.pod:2203
4192 msgid "INTERNALS"
4193 msgstr ""
4194
4195 #. type: =head2
4196 #: ../src/guestfs.pod:2205
4197 msgid "COMMUNICATION PROTOCOL"
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../src/guestfs.pod:2207
4202 msgid ""
4203 "Don't rely on using this protocol directly.  This section documents how it "
4204 "currently works, but it may change at any time."
4205 msgstr ""
4206
4207 #. type: textblock
4208 #: ../src/guestfs.pod:2210
4209 msgid ""
4210 "The protocol used to talk between the library and the daemon running inside "
4211 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4212 "1014, RFC 1832, RFC 4506)."
4213 msgstr ""
4214
4215 #. type: textblock
4216 #: ../src/guestfs.pod:2214
4217 msgid ""
4218 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4219 "this file is automatically generated)."
4220 msgstr ""
4221
4222 #. type: textblock
4223 #: ../src/guestfs.pod:2217
4224 msgid ""
4225 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4226 "and C<FileOut> parameters, which are handled with very simple request/reply "
4227 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4228 "parameters, which use the same request and reply messages, but they may also "
4229 "be followed by files sent using a chunked encoding."
4230 msgstr ""
4231
4232 #. type: =head3
4233 #: ../src/guestfs.pod:2224
4234 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../src/guestfs.pod:2226
4239 msgid "For ordinary functions, the request message is:"
4240 msgstr ""
4241
4242 #. type: verbatim
4243 #: ../src/guestfs.pod:2228
4244 #, no-wrap
4245 msgid ""
4246 " total length (header + arguments,\n"
4247 "      but not including the length word itself)\n"
4248 " struct guestfs_message_header (encoded as XDR)\n"
4249 " struct guestfs_<foo>_args (encoded as XDR)\n"
4250 "\n"
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../src/guestfs.pod:2233
4255 msgid ""
4256 "The total length field allows the daemon to allocate a fixed size buffer "
4257 "into which it slurps the rest of the message.  As a result, the total length "
4258 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4259 "effective size of any request is limited to somewhere under this size."
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../src/guestfs.pod:2239
4264 msgid ""
4265 "Note also that many functions don't take any arguments, in which case the "
4266 "C<guestfs_I<foo>_args> is completely omitted."
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../src/guestfs.pod:2242
4271 msgid ""
4272 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4273 "receiver knows what type of args structure to expect, or none at all."
4274 msgstr ""
4275
4276 #. type: textblock
4277 #: ../src/guestfs.pod:2246
4278 msgid ""
4279 "For functions that take optional arguments, the optional arguments are "
4280 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4281 "arguments.  A bitmask in the header indicates which optional arguments are "
4282 "meaningful.  The bitmask is also checked to see if it contains bits set "
4283 "which the daemon does not know about (eg. if more optional arguments were "
4284 "added in a later version of the library), and this causes the call to be "
4285 "rejected."
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../src/guestfs.pod:2254
4290 msgid "The reply message for ordinary functions is:"
4291 msgstr ""
4292
4293 #. type: verbatim
4294 #: ../src/guestfs.pod:2256
4295 #, no-wrap
4296 msgid ""
4297 " total length (header + ret,\n"
4298 "      but not including the length word itself)\n"
4299 " struct guestfs_message_header (encoded as XDR)\n"
4300 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4301 "\n"
4302 msgstr ""
4303
4304 #. type: textblock
4305 #: ../src/guestfs.pod:2261
4306 msgid ""
4307 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4308 "functions that return no formal return values."
4309 msgstr ""
4310
4311 #. type: textblock
4312 #: ../src/guestfs.pod:2264
4313 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4314 msgstr ""
4315
4316 #. type: textblock
4317 #: ../src/guestfs.pod:2267
4318 msgid ""
4319 "In the case of an error, a flag is set in the header, and the reply message "
4320 "is slightly changed:"
4321 msgstr ""
4322
4323 #. type: verbatim
4324 #: ../src/guestfs.pod:2270
4325 #, no-wrap
4326 msgid ""
4327 " total length (header + error,\n"
4328 "      but not including the length word itself)\n"
4329 " struct guestfs_message_header (encoded as XDR)\n"
4330 " struct guestfs_message_error (encoded as XDR)\n"
4331 "\n"
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../src/guestfs.pod:2275
4336 msgid ""
4337 "The C<guestfs_message_error> structure contains the error message as a "
4338 "string."
4339 msgstr ""
4340
4341 #. type: =head3
4342 #: ../src/guestfs.pod:2278
4343 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4344 msgstr ""
4345
4346 #. type: textblock
4347 #: ../src/guestfs.pod:2280
4348 msgid ""
4349 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4350 "The normal request message is sent (see above).  However this is followed by "
4351 "a sequence of file chunks."
4352 msgstr ""
4353
4354 #. type: verbatim
4355 #: ../src/guestfs.pod:2284
4356 #, no-wrap
4357 msgid ""
4358 " total length (header + arguments,\n"
4359 "      but not including the length word itself,\n"
4360 "      and not including the chunks)\n"
4361 " struct guestfs_message_header (encoded as XDR)\n"
4362 " struct guestfs_<foo>_args (encoded as XDR)\n"
4363 " sequence of chunks for FileIn param #0\n"
4364 " sequence of chunks for FileIn param #1 etc.\n"
4365 "\n"
4366 msgstr ""
4367
4368 #. type: textblock
4369 #: ../src/guestfs.pod:2292
4370 msgid "The \"sequence of chunks\" is:"
4371 msgstr ""
4372
4373 #. type: verbatim
4374 #: ../src/guestfs.pod:2294
4375 #, no-wrap
4376 msgid ""
4377 " length of chunk (not including length word itself)\n"
4378 " struct guestfs_chunk (encoded as XDR)\n"
4379 " length of chunk\n"
4380 " struct guestfs_chunk (encoded as XDR)\n"
4381 "   ...\n"
4382 " length of chunk\n"
4383 " struct guestfs_chunk (with data.data_len == 0)\n"
4384 "\n"
4385 msgstr ""
4386
4387 #. type: textblock
4388 #: ../src/guestfs.pod:2302
4389 msgid ""
4390 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4391 "is set in the final chunk to indicate either successful completion or early "
4392 "cancellation."
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../src/guestfs.pod:2306
4397 msgid ""
4398 "At time of writing there are no functions that have more than one FileIn "
4399 "parameter.  However this is (theoretically) supported, by sending the "
4400 "sequence of chunks for each FileIn parameter one after another (from left to "
4401 "right)."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../src/guestfs.pod:2311
4406 msgid ""
4407 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4408 "transfer.  The library does this by sending a chunk with a special flag set "
4409 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4410 "RPC, does I<not> send any reply, and goes back to reading the next request."
4411 msgstr ""
4412
4413 #. type: textblock
4414 #: ../src/guestfs.pod:2317
4415 msgid ""
4416 "The daemon may also cancel.  It does this by writing a special word "
4417 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4418 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4419 "cancel chunk).  The special word is chosen so that even if cancellation "
4420 "happens right at the end of the transfer (after the library has finished "
4421 "writing and has started listening for the reply), the \"spurious\" cancel "
4422 "flag will not be confused with the reply message."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../src/guestfs.pod:2326
4427 msgid ""
4428 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4429 "limit), and also files where the size is not known in advance (eg. from "
4430 "pipes or sockets).  However the chunks are rather small "
4431 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4432 "to keep much in memory."
4433 msgstr ""
4434
4435 #. type: =head3
4436 #: ../src/guestfs.pod:2332
4437 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2334
4442 msgid ""
4443 "The protocol for FileOut parameters is exactly the same as for FileIn "
4444 "parameters, but with the roles of daemon and library reversed."
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../src/guestfs.pod:2337
4449 #, no-wrap
4450 msgid ""
4451 " total length (header + ret,\n"
4452 "      but not including the length word itself,\n"
4453 "      and not including the chunks)\n"
4454 " struct guestfs_message_header (encoded as XDR)\n"
4455 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4456 " sequence of chunks for FileOut param #0\n"
4457 " sequence of chunks for FileOut param #1 etc.\n"
4458 "\n"
4459 msgstr ""
4460
4461 #. type: =head3
4462 #: ../src/guestfs.pod:2345
4463 msgid "INITIAL MESSAGE"
4464 msgstr ""
4465
4466 #. type: textblock
4467 #: ../src/guestfs.pod:2347
4468 msgid ""
4469 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4470 "which indicates that the guest and daemon is alive.  This is what "
4471 "L</guestfs_launch> waits for."
4472 msgstr ""
4473
4474 #. type: =head3
4475 #: ../src/guestfs.pod:2351
4476 msgid "PROGRESS NOTIFICATION MESSAGES"
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../src/guestfs.pod:2353
4481 msgid ""
4482 "The daemon may send progress notification messages at any time.  These are "
4483 "distinguished by the normal length word being replaced by "
4484 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../src/guestfs.pod:2357
4489 msgid ""
4490 "The library turns them into progress callbacks (see "
4491 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
4492 "them if not."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../src/guestfs.pod:2361
4497 msgid ""
4498 "The daemon self-limits the frequency of progress messages it sends (see "
4499 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4500 "messages."
4501 msgstr ""
4502
4503 #. type: =head1
4504 #: ../src/guestfs.pod:2365
4505 msgid "LIBGUESTFS VERSION NUMBERS"
4506 msgstr ""
4507
4508 #. type: textblock
4509 #: ../src/guestfs.pod:2367
4510 msgid ""
4511 "Since April 2010, libguestfs has started to make separate development and "
4512 "stable releases, along with corresponding branches in our git repository.  "
4513 "These separate releases can be identified by version number:"
4514 msgstr ""
4515
4516 #. type: verbatim
4517 #: ../src/guestfs.pod:2372
4518 #, no-wrap
4519 msgid ""
4520 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4521 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4522 "       |\n"
4523 "       v\n"
4524 " 1  .  3  .  5\n"
4525 " ^           ^\n"
4526 " |           |\n"
4527 " |           `-------- sub-version\n"
4528 " |\n"
4529 " `------ always '1' because we don't change the ABI\n"
4530 "\n"
4531 msgstr ""
4532
4533 #. type: textblock
4534 #: ../src/guestfs.pod:2383
4535 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../src/guestfs.pod:2385
4540 msgid ""
4541 "As time passes we cherry pick fixes from the development branch and backport "
4542 "those into the stable branch, the effect being that the stable branch should "
4543 "get more stable and less buggy over time.  So the stable releases are ideal "
4544 "for people who don't need new features but would just like the software to "
4545 "work."
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../src/guestfs.pod:2391
4550 msgid "Our criteria for backporting changes are:"
4551 msgstr ""
4552
4553 #. type: textblock
4554 #: ../src/guestfs.pod:2397
4555 msgid ""
4556 "Documentation changes which don't affect any code are backported unless the "
4557 "documentation refers to a future feature which is not in stable."
4558 msgstr ""
4559
4560 #. type: textblock
4561 #: ../src/guestfs.pod:2403
4562 msgid ""
4563 "Bug fixes which are not controversial, fix obvious problems, and have been "
4564 "well tested are backported."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2408
4569 msgid ""
4570 "Simple rearrangements of code which shouldn't affect how it works get "
4571 "backported.  This is so that the code in the two branches doesn't get too "
4572 "far out of step, allowing us to backport future fixes more easily."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../src/guestfs.pod:2414
4577 msgid ""
4578 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4579 "exceptional case: the new feature is required in order to implement an "
4580 "important bug fix."
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../src/guestfs.pod:2420
4585 msgid ""
4586 "A new stable branch starts when we think the new features in development are "
4587 "substantial and compelling enough over the current stable branch to warrant "
4588 "it.  When that happens we create new stable and development versions 1.N.0 "
4589 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4590 "stable at this point, but by backporting fixes from development, that branch "
4591 "will stabilize over time."
4592 msgstr ""
4593
4594 #. type: =head1
4595 #: ../src/guestfs.pod:2428
4596 msgid "EXTENDING LIBGUESTFS"
4597 msgstr ""
4598
4599 #. type: =head2
4600 #: ../src/guestfs.pod:2430
4601 msgid "ADDING A NEW API ACTION"
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../src/guestfs.pod:2432
4606 msgid ""
4607 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4608 "documentation) are generated, and this makes it easy to extend the "
4609 "libguestfs API."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../src/guestfs.pod:2436
4614 msgid "To add a new API action there are two changes:"
4615 msgstr ""
4616
4617 #. type: textblock
4618 #: ../src/guestfs.pod:2442
4619 msgid ""
4620 "You need to add a description of the call (name, parameters, return type, "
4621 "tests, documentation) to C<generator/generator_actions.ml>."
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../src/guestfs.pod:2445
4626 msgid ""
4627 "There are two sorts of API action, depending on whether the call goes "
4628 "through to the daemon in the appliance, or is serviced entirely by the "
4629 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4630 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4631 "an example of the latter, since a trace flag is maintained in the handle and "
4632 "all tracing is done on the library side."
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../src/guestfs.pod:2453
4637 msgid ""
4638 "Most new actions are of the first type, and get added to the "
4639 "C<daemon_functions> list.  Each function has a unique procedure number used "
4640 "in the RPC protocol which is assigned to that action when we publish "
4641 "libguestfs and cannot be reused.  Take the latest procedure number and "
4642 "increment it."
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../src/guestfs.pod:2459
4647 msgid ""
4648 "For library-only actions of the second type, add to the "
4649 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4650 "library and do not travel over the RPC mechanism to the daemon, these "
4651 "functions do not need a procedure number, and so the procedure number is set "
4652 "to C<-1>."
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../src/guestfs.pod:2467
4657 msgid "Implement the action (in C):"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../src/guestfs.pod:2469
4662 msgid ""
4663 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4664 "C<daemon/> directory."
4665 msgstr ""
4666
4667 #. type: textblock
4668 #: ../src/guestfs.pod:2472
4669 msgid ""
4670 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4671 "(note: double underscore) in the C<src/> directory."
4672 msgstr ""
4673
4674 #. type: textblock
4675 #: ../src/guestfs.pod:2475
4676 msgid "In either case, use another function as an example of what to do."
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../src/guestfs.pod:2479
4681 msgid "After making these changes, use C<make> to compile."
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../src/guestfs.pod:2481
4686 msgid ""
4687 "Note that you don't need to implement the RPC, language bindings, manual "
4688 "pages or anything else.  It's all automatically generated from the OCaml "
4689 "description."
4690 msgstr ""
4691
4692 #. type: =head2
4693 #: ../src/guestfs.pod:2485
4694 msgid "ADDING TESTS FOR AN API ACTION"
4695 msgstr ""
4696
4697 #. type: textblock
4698 #: ../src/guestfs.pod:2487
4699 msgid ""
4700 "You can supply zero or as many tests as you want per API call.  The tests "
4701 "can either be added as part of the API description "
4702 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
4703 "drop a script into C<regressions/>.  Note that adding a script to "
4704 "C<regressions/> is slower, so if possible use the first method."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2493
4709 msgid ""
4710 "The following describes the test environment used when you add an API test "
4711 "in C<generator_actions.ml>."
4712 msgstr ""
4713
4714 #. type: textblock
4715 #: ../src/guestfs.pod:2496
4716 msgid "The test environment has 4 block devices:"
4717 msgstr ""
4718
4719 #. type: =item
4720 #: ../src/guestfs.pod:2500
4721 msgid "C</dev/sda> 500MB"
4722 msgstr ""
4723
4724 #. type: textblock
4725 #: ../src/guestfs.pod:2502
4726 msgid "General block device for testing."
4727 msgstr ""
4728
4729 #. type: =item
4730 #: ../src/guestfs.pod:2504
4731 msgid "C</dev/sdb> 50MB"
4732 msgstr ""
4733
4734 #. type: textblock
4735 #: ../src/guestfs.pod:2506
4736 msgid ""
4737 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4738 "operations."
4739 msgstr ""
4740
4741 #. type: =item
4742 #: ../src/guestfs.pod:2509
4743 msgid "C</dev/sdc> 10MB"
4744 msgstr ""
4745
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2511
4748 msgid "Used in a few tests where two block devices are needed."
4749 msgstr ""
4750
4751 #. type: =item
4752 #: ../src/guestfs.pod:2513
4753 msgid "C</dev/sdd>"
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../src/guestfs.pod:2515
4758 msgid "ISO with fixed content (see C<images/test.iso>)."
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../src/guestfs.pod:2519
4763 msgid ""
4764 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4765 "appliance and block devices are reused between tests.  So don't try testing "
4766 "L</guestfs_kill_subprocess> :-x"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../src/guestfs.pod:2523
4771 msgid ""
4772 "Each test starts with an initial scenario, selected using one of the "
4773 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4774 "initialize the disks mentioned above in a particular way as documented in "
4775 "C<generator_types.ml>.  You should not assume anything about the previous "
4776 "contents of other disks that are not initialized."
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../src/guestfs.pod:2529
4781 msgid ""
4782 "You can add a prerequisite clause to any individual test.  This is a "
4783 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
4784 "if testing a command which might not work on all variations of libguestfs "
4785 "builds.  A test that has prerequisite of C<Always> means to run "
4786 "unconditionally."
4787 msgstr ""
4788
4789 #. type: textblock
4790 #: ../src/guestfs.pod:2535
4791 msgid ""
4792 "In addition, packagers can skip individual tests by setting environment "
4793 "variables before running C<make check>."
4794 msgstr ""
4795
4796 #. type: verbatim
4797 #: ../src/guestfs.pod:2538
4798 #, no-wrap
4799 msgid ""
4800 " SKIP_TEST_<CMD>_<NUM>=1\n"
4801 "\n"
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../src/guestfs.pod:2540
4806 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4807 msgstr ""
4808
4809 #. type: textblock
4810 #: ../src/guestfs.pod:2542
4811 msgid "or:"
4812 msgstr ""
4813
4814 #. type: verbatim
4815 #: ../src/guestfs.pod:2544
4816 #, no-wrap
4817 msgid ""
4818 " SKIP_TEST_<CMD>=1\n"
4819 "\n"
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../src/guestfs.pod:2546
4824 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../src/guestfs.pod:2548
4829 msgid "Packagers can run only certain tests by setting for example:"
4830 msgstr ""
4831
4832 #. type: verbatim
4833 #: ../src/guestfs.pod:2550
4834 #, no-wrap
4835 msgid ""
4836 " TEST_ONLY=\"vfs_type zerofree\"\n"
4837 "\n"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../src/guestfs.pod:2552
4842 msgid ""
4843 "See C<capitests/tests.c> for more details of how these environment variables "
4844 "work."
4845 msgstr ""
4846
4847 #. type: =head2
4848 #: ../src/guestfs.pod:2555
4849 msgid "DEBUGGING NEW API ACTIONS"
4850 msgstr ""
4851
4852 #. type: textblock
4853 #: ../src/guestfs.pod:2557
4854 msgid "Test new actions work before submitting them."
4855 msgstr ""
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2559
4859 msgid "You can use guestfish to try out new commands."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2561
4864 msgid ""
4865 "Debugging the daemon is a problem because it runs inside a minimal "
4866 "environment.  However you can fprintf messages in the daemon to stderr, and "
4867 "they will show up if you use C<guestfish -v>."
4868 msgstr ""
4869
4870 #. type: =head2
4871 #: ../src/guestfs.pod:2565
4872 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../src/guestfs.pod:2567
4877 msgid ""
4878 "Our C source code generally adheres to some basic code-formatting "
4879 "conventions.  The existing code base is not totally consistent on this "
4880 "front, but we do prefer that contributed code be formatted similarly.  In "
4881 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4882 "indentation level, and other than that, follow the K&R style."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../src/guestfs.pod:2573
4887 msgid ""
4888 "If you use Emacs, add the following to one of one of your start-up files "
4889 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
4890 msgstr ""
4891
4892 #. type: verbatim
4893 #: ../src/guestfs.pod:2576
4894 #, no-wrap
4895 msgid ""
4896 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4897 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4898 " (add-hook 'find-file-hook\n"
4899 "     '(lambda () (if (and buffer-file-name\n"
4900 "                          (string-match \"/libguestfs\\\\>\"\n"
4901 "                              (buffer-file-name))\n"
4902 "                          (not (string-equal mode-name \"Change Log\"))\n"
4903 "                          (not (string-equal mode-name \"Makefile\")))\n"
4904 "                     (setq indent-tabs-mode nil))))\n"
4905 " \n"
4906 msgstr ""
4907
4908 #. type: verbatim
4909 #: ../src/guestfs.pod:2586
4910 #, no-wrap
4911 msgid ""
4912 " ;;; When editing C sources in libguestfs, use this style.\n"
4913 " (defun libguestfs-c-mode ()\n"
4914 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4915 "   (interactive)\n"
4916 "   (c-set-style \"K&R\")\n"
4917 "   (setq c-indent-level 2)\n"
4918 "   (setq c-basic-offset 2))\n"
4919 " (add-hook 'c-mode-hook\n"
4920 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4921 "                               (buffer-file-name))\n"
4922 "                           (libguestfs-c-mode))))\n"
4923 "\n"
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../src/guestfs.pod:2598
4928 msgid "Enable warnings when compiling (and fix any problems this finds):"
4929 msgstr ""
4930
4931 #. type: verbatim
4932 #: ../src/guestfs.pod:2601
4933 #, no-wrap
4934 msgid ""
4935 " ./configure --enable-gcc-warnings\n"
4936 "\n"
4937 msgstr ""
4938
4939 #. type: textblock
4940 #: ../src/guestfs.pod:2603
4941 msgid "Useful targets are:"
4942 msgstr ""
4943
4944 #. type: verbatim
4945 #: ../src/guestfs.pod:2605
4946 #, no-wrap
4947 msgid ""
4948 " make syntax-check  # checks the syntax of the C code\n"
4949 " make check         # runs the test suite\n"
4950 "\n"
4951 msgstr ""
4952
4953 #. type: =head2
4954 #: ../src/guestfs.pod:2608
4955 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../src/guestfs.pod:2610
4960 msgid ""
4961 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4962 "which are used to do shell quoting."
4963 msgstr ""
4964
4965 #. type: =item
4966 #: ../src/guestfs.pod:2615
4967 msgid "%Q"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../src/guestfs.pod:2617
4972 msgid ""
4973 "Simple shell quoted string.  Any spaces or other shell characters are "
4974 "escaped for you."
4975 msgstr ""
4976
4977 #. type: =item
4978 #: ../src/guestfs.pod:2620
4979 msgid "%R"
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../src/guestfs.pod:2622
4984 msgid ""
4985 "Same as C<%Q> except the string is treated as a path which is prefixed by "
4986 "the sysroot."
4987 msgstr ""
4988
4989 #. type: textblock
4990 #: ../src/guestfs.pod:2627 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
4991 msgid "For example:"
4992 msgstr ""
4993
4994 #. type: verbatim
4995 #: ../src/guestfs.pod:2629
4996 #, no-wrap
4997 msgid ""
4998 " asprintf (&cmd, \"cat %R\", path);\n"
4999 "\n"
5000 msgstr ""
5001
5002 #. type: textblock
5003 #: ../src/guestfs.pod:2631
5004 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5005 msgstr ""
5006
5007 #. type: textblock
5008 #: ../src/guestfs.pod:2633
5009 msgid ""
5010 "I<Note:> Do I<not> use these when you are passing parameters to the "
5011 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
5012 "because they are not passed via the shell (instead, straight to exec).  You "
5013 "probably want to use the C<sysroot_path()> function however."
5014 msgstr ""
5015
5016 #. type: =head2
5017 #: ../src/guestfs.pod:2639
5018 msgid "SUBMITTING YOUR NEW API ACTIONS"
5019 msgstr ""
5020
5021 #. type: textblock
5022 #: ../src/guestfs.pod:2641
5023 msgid ""
5024 "Submit patches to the mailing list: "
5025 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
5026 "L<rjones@redhat.com>."
5027 msgstr ""
5028
5029 #. type: =head2
5030 #: ../src/guestfs.pod:2645
5031 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5032 msgstr ""
5033
5034 #. type: textblock
5035 #: ../src/guestfs.pod:2647
5036 msgid "We support i18n (gettext anyhow) in the library."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../src/guestfs.pod:2649
5041 msgid ""
5042 "However many messages come from the daemon, and we don't translate those at "
5043 "the moment.  One reason is that the appliance generally has all locale files "
5044 "removed from it, because they take up a lot of space.  So we'd have to readd "
5045 "some of those, as well as copying our PO files into the appliance."
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../src/guestfs.pod:2655
5050 msgid ""
5051 "Debugging messages are never translated, since they are intended for the "
5052 "programmers."
5053 msgstr ""
5054
5055 #. type: =head2
5056 #: ../src/guestfs.pod:2658
5057 msgid "SOURCE CODE SUBDIRECTORIES"
5058 msgstr ""
5059
5060 #. type: =item
5061 #: ../src/guestfs.pod:2662 ../src/guestfs-actions.pod:5814 ../fish/guestfish-actions.pod:3908
5062 msgid "C<appliance>"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../src/guestfs.pod:2664
5067 msgid "The libguestfs appliance, build scripts and so on."
5068 msgstr ""
5069
5070 #. type: =item
5071 #: ../src/guestfs.pod:2666
5072 msgid "C<capitests>"
5073 msgstr ""
5074
5075 #. type: textblock
5076 #: ../src/guestfs.pod:2668
5077 msgid "Automated tests of the C API."
5078 msgstr ""
5079
5080 #. type: =item
5081 #: ../src/guestfs.pod:2670
5082 msgid "C<cat>"
5083 msgstr ""
5084
5085 #. type: textblock
5086 #: ../src/guestfs.pod:2672
5087 msgid ""
5088 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5089 "documentation."
5090 msgstr ""
5091
5092 #. type: =item
5093 #: ../src/guestfs.pod:2675
5094 msgid "C<contrib>"
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../src/guestfs.pod:2677
5099 msgid "Outside contributions, experimental parts."
5100 msgstr ""
5101
5102 #. type: =item
5103 #: ../src/guestfs.pod:2679
5104 msgid "C<daemon>"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../src/guestfs.pod:2681
5109 msgid ""
5110 "The daemon that runs inside the libguestfs appliance and carries out "
5111 "actions."
5112 msgstr ""
5113
5114 #. type: =item
5115 #: ../src/guestfs.pod:2684
5116 msgid "C<df>"
5117 msgstr ""
5118
5119 #. type: textblock
5120 #: ../src/guestfs.pod:2686
5121 msgid "L<virt-df(1)> command and documentation."
5122 msgstr ""
5123
5124 #. type: =item
5125 #: ../src/guestfs.pod:2688
5126 msgid "C<examples>"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../src/guestfs.pod:2690
5131 msgid "C API example code."
5132 msgstr ""
5133
5134 #. type: =item
5135 #: ../src/guestfs.pod:2692
5136 msgid "C<fish>"
5137 msgstr ""
5138
5139 #. type: textblock
5140 #: ../src/guestfs.pod:2694
5141 msgid ""
5142 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5143 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5144 "L<virt-tar-out(1)>."
5145 msgstr ""
5146
5147 #. type: =item
5148 #: ../src/guestfs.pod:2698
5149 msgid "C<fuse>"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../src/guestfs.pod:2700
5154 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5155 msgstr ""
5156
5157 #. type: =item
5158 #: ../src/guestfs.pod:2702
5159 msgid "C<generator>"
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../src/guestfs.pod:2704
5164 msgid ""
5165 "The crucially important generator, used to automatically generate large "
5166 "amounts of boilerplate C code for things like RPC and bindings."
5167 msgstr ""
5168
5169 #. type: =item
5170 #: ../src/guestfs.pod:2707
5171 msgid "C<images>"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2709
5176 msgid "Files used by the test suite."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../src/guestfs.pod:2711
5181 msgid "Some \"phony\" guest images which we test against."
5182 msgstr ""
5183
5184 #. type: =item
5185 #: ../src/guestfs.pod:2713
5186 msgid "C<inspector>"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2715
5191 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5192 msgstr ""
5193
5194 #. type: =item
5195 #: ../src/guestfs.pod:2717
5196 msgid "C<logo>"
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../src/guestfs.pod:2719
5201 msgid "Logo used on the website.  The fish is called Arthur by the way."
5202 msgstr ""
5203
5204 #. type: =item
5205 #: ../src/guestfs.pod:2721
5206 msgid "C<m4>"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../src/guestfs.pod:2723
5211 msgid "M4 macros used by autoconf."
5212 msgstr ""
5213
5214 #. type: =item
5215 #: ../src/guestfs.pod:2725
5216 msgid "C<po>"
5217 msgstr ""
5218
5219 #. type: textblock
5220 #: ../src/guestfs.pod:2727
5221 msgid "Translations of simple gettext strings."
5222 msgstr ""
5223
5224 #. type: =item
5225 #: ../src/guestfs.pod:2729
5226 msgid "C<po-docs>"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2731
5231 msgid ""
5232 "The build infrastructure and PO files for translations of manpages and POD "
5233 "files.  Eventually this will be combined with the C<po> directory, but that "
5234 "is rather complicated."
5235 msgstr ""
5236
5237 #. type: =item
5238 #: ../src/guestfs.pod:2735
5239 msgid "C<regressions>"
5240 msgstr ""
5241
5242 #. type: textblock
5243 #: ../src/guestfs.pod:2737
5244 msgid "Regression tests."
5245 msgstr ""
5246
5247 #. type: =item
5248 #: ../src/guestfs.pod:2739
5249 msgid "C<rescue>"
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../src/guestfs.pod:2741
5254 msgid "L<virt-rescue(1)> command and documentation."
5255 msgstr ""
5256
5257 #. type: =item
5258 #: ../src/guestfs.pod:2743
5259 msgid "C<src>"
5260 msgstr ""
5261
5262 #. type: textblock
5263 #: ../src/guestfs.pod:2745
5264 msgid "Source code to the C library."
5265 msgstr ""
5266
5267 #. type: =item
5268 #: ../src/guestfs.pod:2747
5269 msgid "C<tools>"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../src/guestfs.pod:2749
5274 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5275 msgstr ""
5276
5277 #. type: =item
5278 #: ../src/guestfs.pod:2751
5279 msgid "C<test-tool>"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../src/guestfs.pod:2753
5284 msgid ""
5285 "Test tool for end users to test if their qemu/kernel combination will work "
5286 "with libguestfs."
5287 msgstr ""
5288
5289 #. type: =item
5290 #: ../src/guestfs.pod:2756
5291 msgid "C<csharp>"
5292 msgstr ""
5293
5294 #. type: =item
5295 #: ../src/guestfs.pod:2758
5296 msgid "C<haskell>"
5297 msgstr ""
5298
5299 #. type: =item
5300 #: ../src/guestfs.pod:2760
5301 msgid "C<java>"
5302 msgstr ""
5303
5304 #. type: =item
5305 #: ../src/guestfs.pod:2762
5306 msgid "C<ocaml>"
5307 msgstr ""
5308
5309 #. type: =item
5310 #: ../src/guestfs.pod:2764
5311 msgid "C<php>"
5312 msgstr ""
5313
5314 #. type: =item
5315 #: ../src/guestfs.pod:2766
5316 msgid "C<perl>"
5317 msgstr ""
5318
5319 #. type: =item
5320 #: ../src/guestfs.pod:2768
5321 msgid "C<python>"
5322 msgstr ""
5323
5324 #. type: =item
5325 #: ../src/guestfs.pod:2770
5326 msgid "C<ruby>"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../src/guestfs.pod:2772
5331 msgid "Language bindings."
5332 msgstr ""
5333
5334 #. type: =head1
5335 #: ../src/guestfs.pod:2776 ../fish/guestfish.pod:1015 ../test-tool/libguestfs-test-tool.pod:82 ../tools/virt-edit.pl:476
5336 msgid "ENVIRONMENT VARIABLES"
5337 msgstr ""
5338
5339 #. type: =item
5340 #: ../src/guestfs.pod:2780 ../fish/guestfish.pod:1041
5341 msgid "LIBGUESTFS_APPEND"
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../src/guestfs.pod:2782 ../fish/guestfish.pod:1043
5346 msgid "Pass additional options to the guest kernel."
5347 msgstr ""
5348
5349 #. type: =item
5350 #: ../src/guestfs.pod:2784 ../fish/guestfish.pod:1045
5351 msgid "LIBGUESTFS_DEBUG"
5352 msgstr ""
5353
5354 #. type: textblock
5355 #: ../src/guestfs.pod:2786
5356 msgid ""
5357 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5358 "effect as calling C<guestfs_set_verbose (g, 1)>."
5359 msgstr ""
5360
5361 #. type: =item
5362 #: ../src/guestfs.pod:2789 ../fish/guestfish.pod:1050
5363 msgid "LIBGUESTFS_MEMSIZE"
5364 msgstr ""
5365
5366 #. type: textblock
5367 #: ../src/guestfs.pod:2791 ../fish/guestfish.pod:1052
5368 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
5369 msgstr ""
5370
5371 #. type: verbatim
5372 #: ../src/guestfs.pod:2794 ../fish/guestfish.pod:1055
5373 #, no-wrap
5374 msgid ""
5375 " LIBGUESTFS_MEMSIZE=700\n"
5376 "\n"
5377 msgstr ""
5378
5379 #. type: =item
5380 #: ../src/guestfs.pod:2796 ../fish/guestfish.pod:1057
5381 msgid "LIBGUESTFS_PATH"
5382 msgstr ""
5383
5384 #. type: textblock
5385 #: ../src/guestfs.pod:2798
5386 msgid ""
5387 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5388 "the discussion of paths in section L</PATH> above."
5389 msgstr ""
5390
5391 #. type: =item
5392 #: ../src/guestfs.pod:2801 ../fish/guestfish.pod:1062
5393 msgid "LIBGUESTFS_QEMU"
5394 msgstr ""
5395
5396 #. type: textblock
5397 #: ../src/guestfs.pod:2803 ../fish/guestfish.pod:1064
5398 msgid ""
5399 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5400 "which was found at compile time by the configure script is used."
5401 msgstr ""
5402
5403 #. type: textblock
5404 #: ../src/guestfs.pod:2807
5405 msgid "See also L</QEMU WRAPPERS> above."
5406 msgstr ""
5407
5408 #. type: =item
5409 #: ../src/guestfs.pod:2809 ../fish/guestfish.pod:1068
5410 msgid "LIBGUESTFS_TRACE"
5411 msgstr ""
5412
5413 #. type: textblock
5414 #: ../src/guestfs.pod:2811
5415 msgid ""
5416 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5417 "effect as calling C<guestfs_set_trace (g, 1)>."
5418 msgstr ""
5419
5420 #. type: =item
5421 #: ../src/guestfs.pod:2814 ../fish/guestfish.pod:1077
5422 msgid "TMPDIR"
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../src/guestfs.pod:2816 ../fish/guestfish.pod:1079
5427 msgid ""
5428 "Location of temporary directory, defaults to C</tmp> except for the cached "
5429 "supermin appliance which defaults to C</var/tmp>."
5430 msgstr ""
5431
5432 #. type: textblock
5433 #: ../src/guestfs.pod:2819 ../fish/guestfish.pod:1082
5434 msgid ""
5435 "If libguestfs was compiled to use the supermin appliance then the real "
5436 "appliance is cached in this directory, shared between all handles belonging "
5437 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5438 "use in case C</var/tmp> is not large enough."
5439 msgstr ""
5440
5441 #. type: =head1
5442 #: ../src/guestfs.pod:2827 ../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
5443 msgid "SEE ALSO"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../src/guestfs.pod:2829
5448 msgid ""
5449 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
5450 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
5451 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
5452 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
5453 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
5454 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
5455 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, L<hivex(3)>, "
5456 "L<http://libguestfs.org/>."
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../src/guestfs.pod:2856
5461 msgid ""
5462 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
5463 "L<lvm(8)>, L<disktype(1)>."
5464 msgstr ""
5465
5466 #. type: =head1
5467 #: ../src/guestfs.pod:2863 ../tools/virt-win-reg.pl:587 ../tools/virt-make-fs.pl:553
5468 msgid "BUGS"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../src/guestfs.pod:2865
5473 msgid "To get a list of bugs against libguestfs use this link:"
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../src/guestfs.pod:2867
5478 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../src/guestfs.pod:2869
5483 msgid "To report a new bug against libguestfs use this link:"
5484 msgstr ""
5485
5486 #. type: textblock
5487 #: ../src/guestfs.pod:2871
5488 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../src/guestfs.pod:2873
5493 msgid "When reporting a bug, please check:"
5494 msgstr ""
5495
5496 #. type: textblock
5497 #: ../src/guestfs.pod:2879
5498 msgid "That the bug hasn't been reported already."
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../src/guestfs.pod:2883
5503 msgid "That you are testing a recent version."
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../src/guestfs.pod:2887
5508 msgid "Describe the bug accurately, and give a way to reproduce it."
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../src/guestfs.pod:2891
5513 msgid ""
5514 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5515 "bug report."
5516 msgstr ""
5517
5518 #. type: =head1
5519 #: ../src/guestfs.pod:2896 ../fish/guestfish.pod:1172 ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:278
5520 msgid "AUTHORS"
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../src/guestfs.pod:2898 ../fish/guestfish.pod:1174 ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:280
5525 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5526 msgstr ""
5527
5528 #. type: =head1
5529 #: ../src/guestfs.pod:2900 ../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
5530 msgid "COPYRIGHT"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../src/guestfs.pod:2902 ../fish/guestfish.pod:1178 ../test-tool/libguestfs-test-tool.pod:99
5535 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
5536 msgstr ""
5537
5538 #. type: textblock
5539 #: ../src/guestfs.pod:2905
5540 msgid ""
5541 "This library is free software; you can redistribute it and/or modify it "
5542 "under the terms of the GNU Lesser General Public License as published by the "
5543 "Free Software Foundation; either version 2 of the License, or (at your "
5544 "option) any later version."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../src/guestfs.pod:2910
5549 msgid ""
5550 "This library is distributed in the hope that it will be useful, but WITHOUT "
5551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5553 "for more details."
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../src/guestfs.pod:2915
5558 msgid ""
5559 "You should have received a copy of the GNU Lesser General Public License "
5560 "along with this library; if not, write to the Free Software Foundation, "
5561 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5562 msgstr ""
5563
5564 #. type: =head2
5565 #: ../src/guestfs-actions.pod:1
5566 msgid "guestfs_add_cdrom"
5567 msgstr ""
5568
5569 #. type: verbatim
5570 #: ../src/guestfs-actions.pod:3
5571 #, no-wrap
5572 msgid ""
5573 " int\n"
5574 " guestfs_add_cdrom (guestfs_h *g,\n"
5575 "                    const char *filename);\n"
5576 "\n"
5577 msgstr ""
5578
5579 #. type: textblock
5580 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5581 msgid "This function adds a virtual CD-ROM disk image to the guest."
5582 msgstr ""
5583
5584 #. type: textblock
5585 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5586 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5587 msgstr ""
5588
5589 #. type: textblock
5590 #: ../src/guestfs-actions.pod:17
5591 msgid ""
5592 "This call checks for the existence of C<filename>.  This stops you from "
5593 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5594 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5595 "instead."
5596 msgstr ""
5597
5598 #. type: textblock
5599 #: ../src/guestfs-actions.pod:24
5600 msgid ""
5601 "If you just want to add an ISO file (often you use this as an efficient way "
5602 "to transfer large files into the guest), then you should probably use "
5603 "C<guestfs_add_drive_ro> instead."
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../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
5608 msgid "This function returns 0 on success or -1 on error."
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../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
5613 msgid ""
5614 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5615 "instead."
5616 msgstr ""
5617
5618 #. type: textblock
5619 #: ../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
5620 msgid ""
5621 "Deprecated functions will not be removed from the API, but the fact that "
5622 "they are deprecated indicates that there are problems with correct use of "
5623 "these functions."
5624 msgstr ""
5625
5626 #. type: textblock
5627 #: ../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
5628 msgid "(Added in 0.3)"
5629 msgstr ""
5630
5631 #. type: =head2
5632 #: ../src/guestfs-actions.pod:41
5633 msgid "guestfs_add_domain"
5634 msgstr ""
5635
5636 #. type: verbatim
5637 #: ../src/guestfs-actions.pod:43
5638 #, no-wrap
5639 msgid ""
5640 " int\n"
5641 " guestfs_add_domain (guestfs_h *g,\n"
5642 "                     const char *dom,\n"
5643 "                     ...);\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145 ../src/guestfs-actions.pod:4443
5649 msgid ""
5650 "You may supply a list of optional arguments to this call.  Use zero or more "
5651 "of the following pairs of parameters, and terminate the list with C<-1> on "
5652 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5653 msgstr ""
5654
5655 #. type: verbatim
5656 #: ../src/guestfs-actions.pod:53
5657 #, no-wrap
5658 msgid ""
5659 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5660 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5661 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5662 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
5663 "\n"
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../src/guestfs-actions.pod:58
5668 msgid ""
5669 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5670 "It works by connecting to libvirt, requesting the domain and domain XML from "
5671 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5672 "one."
5673 msgstr ""
5674
5675 #. type: textblock
5676 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
5677 msgid ""
5678 "The number of disks added is returned.  This operation is atomic: if an "
5679 "error is returned, then no disks are added."
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
5684 msgid ""
5685 "This function does some minimal checks to make sure the libvirt domain is "
5686 "not running (unless C<readonly> is true).  In a future version we will try "
5687 "to acquire the libvirt lock on each disk."
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
5692 msgid ""
5693 "Disks must be accessible locally.  This often means that adding disks from a "
5694 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5695 "unless those disks are accessible via the same device path locally too."
5696 msgstr ""
5697
5698 #. type: textblock
5699 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
5700 msgid ""
5701 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5702 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5703 "default libvirt URI (or one set through an environment variable, see the "
5704 "libvirt documentation for full details)."
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
5709 msgid ""
5710 "The optional C<live> flag controls whether this call will try to connect to "
5711 "a running virtual machine C<guestfsd> process if it sees a suitable "
5712 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5713 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5714 "DAEMONS> for more information."
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../src/guestfs-actions.pod:88
5719 msgid ""
5720 "The other optional parameters are passed directly through to "
5721 "C<guestfs_add_drive_opts>."
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../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
5726 msgid "On error this function returns -1."
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../src/guestfs-actions.pod:93
5731 msgid "(Added in 1.7.4)"
5732 msgstr ""
5733
5734 #. type: =head2
5735 #: ../src/guestfs-actions.pod:95
5736 msgid "guestfs_add_domain_va"
5737 msgstr ""
5738
5739 #. type: verbatim
5740 #: ../src/guestfs-actions.pod:97
5741 #, no-wrap
5742 msgid ""
5743 " int\n"
5744 " guestfs_add_domain_va (guestfs_h *g,\n"
5745 "                        const char *dom,\n"
5746 "                        va_list args);\n"
5747 "\n"
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../src/guestfs-actions.pod:102
5752 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../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
5757 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5758 msgstr ""
5759
5760 #. type: =head2
5761 #: ../src/guestfs-actions.pod:106
5762 msgid "guestfs_add_domain_argv"
5763 msgstr ""
5764
5765 #. type: verbatim
5766 #: ../src/guestfs-actions.pod:108
5767 #, no-wrap
5768 msgid ""
5769 " int\n"
5770 " guestfs_add_domain_argv (guestfs_h *g,\n"
5771 "                          const char *dom,\n"
5772 "                          const struct guestfs_add_domain_argv *optargs);\n"
5773 "\n"
5774 msgstr ""
5775
5776 #. type: textblock
5777 #: ../src/guestfs-actions.pod:113
5778 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
5779 msgstr ""
5780
5781 #. type: =head2
5782 #: ../src/guestfs-actions.pod:117
5783 msgid "guestfs_add_drive"
5784 msgstr ""
5785
5786 #. type: verbatim
5787 #: ../src/guestfs-actions.pod:119
5788 #, no-wrap
5789 msgid ""
5790 " int\n"
5791 " guestfs_add_drive (guestfs_h *g,\n"
5792 "                    const char *filename);\n"
5793 "\n"
5794 msgstr ""
5795
5796 #. type: textblock
5797 #: ../src/guestfs-actions.pod:123
5798 msgid ""
5799 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
5800 "optional parameters, so the disk is added writable, with the format being "
5801 "detected automatically."
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../src/guestfs-actions.pod:127
5806 msgid ""
5807 "Automatic detection of the format opens you up to a potential security hole "
5808 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5809 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5810 "you should think about replacing calls to this function with calls to "
5811 "C<guestfs_add_drive_opts>, and specifying the format."
5812 msgstr ""
5813
5814 #. type: =head2
5815 #: ../src/guestfs-actions.pod:138
5816 msgid "guestfs_add_drive_opts"
5817 msgstr ""
5818
5819 #. type: verbatim
5820 #: ../src/guestfs-actions.pod:140
5821 #, no-wrap
5822 msgid ""
5823 " int\n"
5824 " guestfs_add_drive_opts (guestfs_h *g,\n"
5825 "                         const char *filename,\n"
5826 "                         ...);\n"
5827 "\n"
5828 msgstr ""
5829
5830 #. type: verbatim
5831 #: ../src/guestfs-actions.pod:150
5832 #, no-wrap
5833 msgid ""
5834 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
5835 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
5836 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
5837 "\n"
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
5842 msgid ""
5843 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5844 "The first time you call this function, the disk appears as C</dev/sda>, the "
5845 "second time as C</dev/sdb>, and so on."
5846 msgstr ""
5847
5848 #. type: textblock
5849 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
5850 msgid ""
5851 "You don't necessarily need to be root when using libguestfs.  However you "
5852 "obviously do need sufficient permissions to access the filename for whatever "
5853 "operations you want to perform (ie. read access if you just want to read the "
5854 "image or write access if you want to modify the image)."
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
5859 msgid "This call checks that C<filename> exists."
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4454 ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:3019
5864 msgid "The optional arguments are:"
5865 msgstr ""
5866
5867 #. type: =item
5868 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
5869 msgid "C<readonly>"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
5874 msgid ""
5875 "If true then the image is treated as read-only.  Writes are still allowed, "
5876 "but they are stored in a temporary snapshot overlay which is discarded at "
5877 "the end.  The disk that you add is not modified."
5878 msgstr ""
5879
5880 #. type: =item
5881 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
5882 msgid "C<format>"
5883 msgstr ""
5884
5885 #. type: textblock
5886 #: ../src/guestfs-actions.pod:179
5887 msgid ""
5888 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
5889 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
5890 "Possible formats include C<raw> and C<qcow2>."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
5895 msgid ""
5896 "Automatic detection of the format opens you up to a potential security hole "
5897 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5898 "RHBZ#642934.  Specifying the format closes this security hole."
5899 msgstr ""
5900
5901 #. type: =item
5902 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
5903 msgid "C<iface>"
5904 msgstr ""
5905
5906 #. type: textblock
5907 #: ../src/guestfs-actions.pod:190
5908 msgid ""
5909 "This rarely-used option lets you emulate the behaviour of the deprecated "
5910 "C<guestfs_add_drive_with_if> call (q.v.)"
5911 msgstr ""
5912
5913 #. type: textblock
5914 #: ../src/guestfs-actions.pod:197
5915 msgid "(Added in 1.5.23)"
5916 msgstr ""
5917
5918 #. type: =head2
5919 #: ../src/guestfs-actions.pod:199
5920 msgid "guestfs_add_drive_opts_va"
5921 msgstr ""
5922
5923 #. type: verbatim
5924 #: ../src/guestfs-actions.pod:201
5925 #, no-wrap
5926 msgid ""
5927 " int\n"
5928 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
5929 "                            const char *filename,\n"
5930 "                            va_list args);\n"
5931 "\n"
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../src/guestfs-actions.pod:206
5936 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
5937 msgstr ""
5938
5939 #. type: =head2
5940 #: ../src/guestfs-actions.pod:210
5941 msgid "guestfs_add_drive_opts_argv"
5942 msgstr ""
5943
5944 #. type: verbatim
5945 #: ../src/guestfs-actions.pod:212
5946 #, no-wrap
5947 msgid ""
5948 " int\n"
5949 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
5950 "                              const char *filename,\n"
5951 "                              const struct guestfs_add_drive_opts_argv "
5952 "*optargs);\n"
5953 "\n"
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../src/guestfs-actions.pod:217
5958 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
5959 msgstr ""
5960
5961 #. type: =head2
5962 #: ../src/guestfs-actions.pod:221
5963 msgid "guestfs_add_drive_ro"
5964 msgstr ""
5965
5966 #. type: verbatim
5967 #: ../src/guestfs-actions.pod:223
5968 #, no-wrap
5969 msgid ""
5970 " int\n"
5971 " guestfs_add_drive_ro (guestfs_h *g,\n"
5972 "                       const char *filename);\n"
5973 "\n"
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../src/guestfs-actions.pod:227
5978 msgid ""
5979 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
5980 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
5981 "disk is added read-only, with the format being detected automatically."
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../src/guestfs-actions.pod:234
5986 msgid "(Added in 1.0.38)"
5987 msgstr ""
5988
5989 #. type: =head2
5990 #: ../src/guestfs-actions.pod:236
5991 msgid "guestfs_add_drive_ro_with_if"
5992 msgstr ""
5993
5994 #. type: verbatim
5995 #: ../src/guestfs-actions.pod:238
5996 #, no-wrap
5997 msgid ""
5998 " int\n"
5999 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6000 "                               const char *filename,\n"
6001 "                               const char *iface);\n"
6002 "\n"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../src/guestfs-actions.pod:243
6007 msgid ""
6008 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6009 "QEMU interface emulation to use at run time."
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276 ../src/guestfs-actions.pod:2356
6014 msgid "(Added in 1.0.84)"
6015 msgstr ""
6016
6017 #. type: =head2
6018 #: ../src/guestfs-actions.pod:257
6019 msgid "guestfs_add_drive_with_if"
6020 msgstr ""
6021
6022 #. type: verbatim
6023 #: ../src/guestfs-actions.pod:259
6024 #, no-wrap
6025 msgid ""
6026 " int\n"
6027 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6028 "                            const char *filename,\n"
6029 "                            const char *iface);\n"
6030 "\n"
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../src/guestfs-actions.pod:264
6035 msgid ""
6036 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6037 "QEMU interface emulation to use at run time."
6038 msgstr ""
6039
6040 #. type: =head2
6041 #: ../src/guestfs-actions.pod:278
6042 msgid "guestfs_aug_clear"
6043 msgstr ""
6044
6045 #. type: verbatim
6046 #: ../src/guestfs-actions.pod:280
6047 #, no-wrap
6048 msgid ""
6049 " int\n"
6050 " guestfs_aug_clear (guestfs_h *g,\n"
6051 "                    const char *augpath);\n"
6052 "\n"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6057 msgid ""
6058 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6059 "L<augtool(1)> C<clear> command."
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2106
6064 msgid "(Added in 1.3.4)"
6065 msgstr ""
6066
6067 #. type: =head2
6068 #: ../src/guestfs-actions.pod:291
6069 msgid "guestfs_aug_close"
6070 msgstr ""
6071
6072 #. type: verbatim
6073 #: ../src/guestfs-actions.pod:293
6074 #, no-wrap
6075 msgid ""
6076 " int\n"
6077 " guestfs_aug_close (guestfs_h *g);\n"
6078 "\n"
6079 msgstr ""
6080
6081 #. type: textblock
6082 #: ../src/guestfs-actions.pod:296
6083 msgid ""
6084 "Close the current Augeas handle and free up any resources used by it.  After "
6085 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6086 "any other Augeas functions."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../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
6091 msgid "(Added in 0.7)"
6092 msgstr ""
6093
6094 #. type: =head2
6095 #: ../src/guestfs-actions.pod:305
6096 msgid "guestfs_aug_defnode"
6097 msgstr ""
6098
6099 #. type: verbatim
6100 #: ../src/guestfs-actions.pod:307
6101 #, no-wrap
6102 msgid ""
6103 " struct guestfs_int_bool *\n"
6104 " guestfs_aug_defnode (guestfs_h *g,\n"
6105 "                      const char *name,\n"
6106 "                      const char *expr,\n"
6107 "                      const char *val);\n"
6108 "\n"
6109 msgstr ""
6110
6111 #. type: textblock
6112 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6113 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6114 msgstr ""
6115
6116 #. type: textblock
6117 #: ../src/guestfs-actions.pod:316
6118 msgid ""
6119 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6120 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6121 "containing that single node."
6122 msgstr ""
6123
6124 #. type: textblock
6125 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6126 msgid ""
6127 "On success this returns a pair containing the number of nodes in the "
6128 "nodeset, and a boolean flag if a node was created."
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../src/guestfs-actions.pod:324
6133 msgid ""
6134 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6135 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6136 msgstr ""
6137
6138 #. type: =head2
6139 #: ../src/guestfs-actions.pod:330
6140 msgid "guestfs_aug_defvar"
6141 msgstr ""
6142
6143 #. type: verbatim
6144 #: ../src/guestfs-actions.pod:332
6145 #, no-wrap
6146 msgid ""
6147 " int\n"
6148 " guestfs_aug_defvar (guestfs_h *g,\n"
6149 "                     const char *name,\n"
6150 "                     const char *expr);\n"
6151 "\n"
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6156 msgid ""
6157 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6158 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6163 msgid ""
6164 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6165 "evaluates to something which is not a nodeset."
6166 msgstr ""
6167
6168 #. type: =head2
6169 #: ../src/guestfs-actions.pod:348
6170 msgid "guestfs_aug_get"
6171 msgstr ""
6172
6173 #. type: verbatim
6174 #: ../src/guestfs-actions.pod:350
6175 #, no-wrap
6176 msgid ""
6177 " char *\n"
6178 " guestfs_aug_get (guestfs_h *g,\n"
6179 "                  const char *augpath);\n"
6180 "\n"
6181 msgstr ""
6182
6183 #. type: textblock
6184 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6185 msgid ""
6186 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6187 "node, the C<value> is returned."
6188 msgstr ""
6189
6190 #. type: textblock
6191 #: ../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
6192 msgid ""
6193 "This function returns a string, or NULL on error.  I<The caller must free "
6194 "the returned string after use>."
6195 msgstr ""
6196
6197 #. type: =head2
6198 #: ../src/guestfs-actions.pod:362
6199 msgid "guestfs_aug_init"
6200 msgstr ""
6201
6202 #. type: verbatim
6203 #: ../src/guestfs-actions.pod:364
6204 #, no-wrap
6205 msgid ""
6206 " int\n"
6207 " guestfs_aug_init (guestfs_h *g,\n"
6208 "                   const char *root,\n"
6209 "                   int flags);\n"
6210 "\n"
6211 msgstr ""
6212
6213 #. type: textblock
6214 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
6215 msgid ""
6216 "Create a new Augeas handle for editing configuration files.  If there was "
6217 "any previous Augeas handle associated with this guestfs session, then it is "
6218 "closed."
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../src/guestfs-actions.pod:373
6223 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
6228 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
6233 msgid ""
6234 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6235 "logical I<or> of the following integers:"
6236 msgstr ""
6237
6238 #. type: =item
6239 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
6240 msgid "C<AUG_SAVE_BACKUP> = 1"
6241 msgstr ""
6242
6243 #. type: textblock
6244 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
6245 msgid "Keep the original file with a C<.augsave> extension."
6246 msgstr ""
6247
6248 #. type: =item
6249 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
6250 msgid "C<AUG_SAVE_NEWFILE> = 2"
6251 msgstr ""
6252
6253 #. type: textblock
6254 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
6255 msgid ""
6256 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6257 "original.  Overrides C<AUG_SAVE_BACKUP>."
6258 msgstr ""
6259
6260 #. type: =item
6261 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
6262 msgid "C<AUG_TYPE_CHECK> = 4"
6263 msgstr ""
6264
6265 #. type: textblock
6266 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
6267 msgid "Typecheck lenses (can be expensive)."
6268 msgstr ""
6269
6270 #. type: =item
6271 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
6272 msgid "C<AUG_NO_STDINC> = 8"
6273 msgstr ""
6274
6275 #. type: textblock
6276 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
6277 msgid "Do not use standard load path for modules."
6278 msgstr ""
6279
6280 #. type: =item
6281 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
6282 msgid "C<AUG_SAVE_NOOP> = 16"
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
6287 msgid "Make save a no-op, just record what would have been changed."
6288 msgstr ""
6289
6290 #. type: =item
6291 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
6292 msgid "C<AUG_NO_LOAD> = 32"
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../src/guestfs-actions.pod:408
6297 msgid "Do not load the tree in C<guestfs_aug_init>."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../src/guestfs-actions.pod:412
6302 msgid "To close the handle, you can call C<guestfs_aug_close>."
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
6307 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6308 msgstr ""
6309
6310 #. type: =head2
6311 #: ../src/guestfs-actions.pod:420
6312 msgid "guestfs_aug_insert"
6313 msgstr ""
6314
6315 #. type: verbatim
6316 #: ../src/guestfs-actions.pod:422
6317 #, no-wrap
6318 msgid ""
6319 " int\n"
6320 " guestfs_aug_insert (guestfs_h *g,\n"
6321 "                     const char *augpath,\n"
6322 "                     const char *label,\n"
6323 "                     int before);\n"
6324 "\n"
6325 msgstr ""
6326
6327 #. type: textblock
6328 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
6329 msgid ""
6330 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6331 "or after C<path> (depending on the boolean flag C<before>)."
6332 msgstr ""
6333
6334 #. type: textblock
6335 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
6336 msgid ""
6337 "C<path> must match exactly one existing node in the tree, and C<label> must "
6338 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6339 msgstr ""
6340
6341 #. type: =head2
6342 #: ../src/guestfs-actions.pod:440
6343 msgid "guestfs_aug_load"
6344 msgstr ""
6345
6346 #. type: verbatim
6347 #: ../src/guestfs-actions.pod:442
6348 #, no-wrap
6349 msgid ""
6350 " int\n"
6351 " guestfs_aug_load (guestfs_h *g);\n"
6352 "\n"
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
6357 msgid "Load files into the tree."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
6362 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../src/guestfs-actions.pod:454
6367 msgid "guestfs_aug_ls"
6368 msgstr ""
6369
6370 #. type: verbatim
6371 #: ../src/guestfs-actions.pod:456
6372 #, no-wrap
6373 msgid ""
6374 " char **\n"
6375 " guestfs_aug_ls (guestfs_h *g,\n"
6376 "                 const char *augpath);\n"
6377 "\n"
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../src/guestfs-actions.pod:460
6382 msgid ""
6383 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6384 "sorting the resulting nodes into alphabetical order."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../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
6389 msgid ""
6390 "This function returns a NULL-terminated array of strings (like "
6391 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
6392 "strings and the array after use>."
6393 msgstr ""
6394
6395 #. type: textblock
6396 #: ../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
6397 msgid "(Added in 0.8)"
6398 msgstr ""
6399
6400 #. type: =head2
6401 #: ../src/guestfs-actions.pod:469
6402 msgid "guestfs_aug_match"
6403 msgstr ""
6404
6405 #. type: verbatim
6406 #: ../src/guestfs-actions.pod:471
6407 #, no-wrap
6408 msgid ""
6409 " char **\n"
6410 " guestfs_aug_match (guestfs_h *g,\n"
6411 "                    const char *augpath);\n"
6412 "\n"
6413 msgstr ""
6414
6415 #. type: textblock
6416 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
6417 msgid ""
6418 "Returns a list of paths which match the path expression C<path>.  The "
6419 "returned paths are sufficiently qualified so that they match exactly one "
6420 "node in the current tree."
6421 msgstr ""
6422
6423 #. type: =head2
6424 #: ../src/guestfs-actions.pod:485
6425 msgid "guestfs_aug_mv"
6426 msgstr ""
6427
6428 #. type: verbatim
6429 #: ../src/guestfs-actions.pod:487
6430 #, no-wrap
6431 msgid ""
6432 " int\n"
6433 " guestfs_aug_mv (guestfs_h *g,\n"
6434 "                 const char *src,\n"
6435 "                 const char *dest);\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
6441 msgid ""
6442 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6443 "C<dest> is overwritten if it exists."
6444 msgstr ""
6445
6446 #. type: =head2
6447 #: ../src/guestfs-actions.pod:499
6448 msgid "guestfs_aug_rm"
6449 msgstr ""
6450
6451 #. type: verbatim
6452 #: ../src/guestfs-actions.pod:501
6453 #, no-wrap
6454 msgid ""
6455 " int\n"
6456 " guestfs_aug_rm (guestfs_h *g,\n"
6457 "                 const char *augpath);\n"
6458 "\n"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
6463 msgid "Remove C<path> and all of its children."
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
6468 msgid "On success this returns the number of entries which were removed."
6469 msgstr ""
6470
6471 #. type: =head2
6472 #: ../src/guestfs-actions.pod:513
6473 msgid "guestfs_aug_save"
6474 msgstr ""
6475
6476 #. type: verbatim
6477 #: ../src/guestfs-actions.pod:515
6478 #, no-wrap
6479 msgid ""
6480 " int\n"
6481 " guestfs_aug_save (guestfs_h *g);\n"
6482 "\n"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
6487 msgid "This writes all pending changes to disk."
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../src/guestfs-actions.pod:520
6492 msgid ""
6493 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6494 "are saved."
6495 msgstr ""
6496
6497 #. type: =head2
6498 #: ../src/guestfs-actions.pod:527
6499 msgid "guestfs_aug_set"
6500 msgstr ""
6501
6502 #. type: verbatim
6503 #: ../src/guestfs-actions.pod:529
6504 #, no-wrap
6505 msgid ""
6506 " int\n"
6507 " guestfs_aug_set (guestfs_h *g,\n"
6508 "                  const char *augpath,\n"
6509 "                  const char *val);\n"
6510 "\n"
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
6515 msgid "Set the value associated with C<path> to C<val>."
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../src/guestfs-actions.pod:536
6520 msgid ""
6521 "In the Augeas API, it is possible to clear a node by setting the value to "
6522 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6523 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../src/guestfs-actions.pod:545
6528 msgid "guestfs_available"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../src/guestfs-actions.pod:547
6533 #, no-wrap
6534 msgid ""
6535 " int\n"
6536 " guestfs_available (guestfs_h *g,\n"
6537 "                    char *const *groups);\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
6543 msgid ""
6544 "This command is used to check the availability of some groups of "
6545 "functionality in the appliance, which not all builds of the libguestfs "
6546 "appliance will be able to provide."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../src/guestfs-actions.pod:555
6551 msgid ""
6552 "The libguestfs groups, and the functions that those groups correspond to, "
6553 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6554 "runtime by calling C<guestfs_available_all_groups>."
6555 msgstr ""
6556
6557 #. type: textblock
6558 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
6559 msgid ""
6560 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6561 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6562 "and Augeas (configuration file editing) functions."
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
6567 msgid "The command returns no error if I<all> requested groups are available."
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
6572 msgid ""
6573 "It fails with an error if one or more of the requested groups is unavailable "
6574 "in the appliance."
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
6579 msgid ""
6580 "If an unknown group name is included in the list of groups then an error is "
6581 "always returned."
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
6586 msgid "I<Notes:>"
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../src/guestfs-actions.pod:579
6591 msgid "You must call C<guestfs_launch> before calling this function."
6592 msgstr ""
6593
6594 #. type: textblock
6595 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
6596 msgid ""
6597 "The reason is because we don't know what groups are supported by the "
6598 "appliance/daemon until it is running and can be queried."
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
6603 msgid ""
6604 "If a group of functions is available, this does not necessarily mean that "
6605 "they will work.  You still have to check for errors when calling individual "
6606 "API functions even if they are available."
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
6611 msgid ""
6612 "It is usually the job of distro packagers to build complete functionality "
6613 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6614 "with all requirements satisfied, will support everything."
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../src/guestfs-actions.pod:601
6619 msgid ""
6620 "This call was added in version C<1.0.80>.  In previous versions of "
6621 "libguestfs all you could do would be to speculatively execute a command to "
6622 "find out if the daemon implemented it.  See also C<guestfs_version>."
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
6627 msgid "(Added in 1.0.80)"
6628 msgstr ""
6629
6630 #. type: =head2
6631 #: ../src/guestfs-actions.pod:612
6632 msgid "guestfs_available_all_groups"
6633 msgstr ""
6634
6635 #. type: verbatim
6636 #: ../src/guestfs-actions.pod:614
6637 #, no-wrap
6638 msgid ""
6639 " char **\n"
6640 " guestfs_available_all_groups (guestfs_h *g);\n"
6641 "\n"
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../src/guestfs-actions.pod:617
6646 msgid ""
6647 "This command returns a list of all optional groups that this daemon knows "
6648 "about.  Note this returns both supported and unsupported groups.  To find "
6649 "out which ones the daemon can actually support you have to call "
6650 "C<guestfs_available> on each member of the returned list."
6651 msgstr ""
6652
6653 #. type: textblock
6654 #: ../src/guestfs-actions.pod:623
6655 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../src/guestfs-actions.pod:629
6660 msgid "(Added in 1.3.15)"
6661 msgstr ""
6662
6663 #. type: =head2
6664 #: ../src/guestfs-actions.pod:631
6665 msgid "guestfs_base64_in"
6666 msgstr ""
6667
6668 #. type: verbatim
6669 #: ../src/guestfs-actions.pod:633
6670 #, no-wrap
6671 msgid ""
6672 " int\n"
6673 " guestfs_base64_in (guestfs_h *g,\n"
6674 "                    const char *base64file,\n"
6675 "                    const char *filename);\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
6681 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6682 msgstr ""
6683
6684 #. type: textblock
6685 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
6686 msgid "(Added in 1.3.5)"
6687 msgstr ""
6688
6689 #. type: =head2
6690 #: ../src/guestfs-actions.pod:645
6691 msgid "guestfs_base64_out"
6692 msgstr ""
6693
6694 #. type: verbatim
6695 #: ../src/guestfs-actions.pod:647
6696 #, no-wrap
6697 msgid ""
6698 " int\n"
6699 " guestfs_base64_out (guestfs_h *g,\n"
6700 "                     const char *filename,\n"
6701 "                     const char *base64file);\n"
6702 "\n"
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
6707 msgid ""
6708 "This command downloads the contents of C<filename>, writing it out to local "
6709 "file C<base64file> encoded as base64."
6710 msgstr ""
6711
6712 #. type: =head2
6713 #: ../src/guestfs-actions.pod:659
6714 msgid "guestfs_blockdev_flushbufs"
6715 msgstr ""
6716
6717 #. type: verbatim
6718 #: ../src/guestfs-actions.pod:661
6719 #, no-wrap
6720 msgid ""
6721 " int\n"
6722 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
6723 "                             const char *device);\n"
6724 "\n"
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
6729 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../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
6734 msgid "This uses the L<blockdev(8)> command."
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../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
6739 msgid "(Added in 0.9.3)"
6740 msgstr ""
6741
6742 #. type: =head2
6743 #: ../src/guestfs-actions.pod:674
6744 msgid "guestfs_blockdev_getbsz"
6745 msgstr ""
6746
6747 #. type: verbatim
6748 #: ../src/guestfs-actions.pod:676
6749 #, no-wrap
6750 msgid ""
6751 " int\n"
6752 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
6753 "                          const char *device);\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
6759 msgid "This returns the block size of a device."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782 ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
6764 msgid ""
6765 "(Note this is different from both I<size in blocks> and I<filesystem block "
6766 "size>)."
6767 msgstr ""
6768
6769 #. type: =head2
6770 #: ../src/guestfs-actions.pod:691
6771 msgid "guestfs_blockdev_getro"
6772 msgstr ""
6773
6774 #. type: verbatim
6775 #: ../src/guestfs-actions.pod:693
6776 #, no-wrap
6777 msgid ""
6778 " int\n"
6779 " guestfs_blockdev_getro (guestfs_h *g,\n"
6780 "                         const char *device);\n"
6781 "\n"
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
6786 msgid ""
6787 "Returns a boolean indicating if the block device is read-only (true if "
6788 "read-only, false if not)."
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../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
6793 msgid "This function returns a C truth value on success or -1 on error."
6794 msgstr ""
6795
6796 #. type: =head2
6797 #: ../src/guestfs-actions.pod:706
6798 msgid "guestfs_blockdev_getsize64"
6799 msgstr ""
6800
6801 #. type: verbatim
6802 #: ../src/guestfs-actions.pod:708
6803 #, no-wrap
6804 msgid ""
6805 " int64_t\n"
6806 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
6807 "                             const char *device);\n"
6808 "\n"
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
6813 msgid "This returns the size of the device in bytes."
6814 msgstr ""
6815
6816 #. type: textblock
6817 #: ../src/guestfs-actions.pod:714
6818 msgid "See also C<guestfs_blockdev_getsz>."
6819 msgstr ""
6820
6821 #. type: =head2
6822 #: ../src/guestfs-actions.pod:722
6823 msgid "guestfs_blockdev_getss"
6824 msgstr ""
6825
6826 #. type: verbatim
6827 #: ../src/guestfs-actions.pod:724
6828 #, no-wrap
6829 msgid ""
6830 " int\n"
6831 " guestfs_blockdev_getss (guestfs_h *g,\n"
6832 "                         const char *device);\n"
6833 "\n"
6834 msgstr ""
6835
6836 #. type: textblock
6837 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
6838 msgid ""
6839 "This returns the size of sectors on a block device.  Usually 512, but can be "
6840 "larger for modern devices."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../src/guestfs-actions.pod:731
6845 msgid ""
6846 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
6847 "that)."
6848 msgstr ""
6849
6850 #. type: =head2
6851 #: ../src/guestfs-actions.pod:740
6852 msgid "guestfs_blockdev_getsz"
6853 msgstr ""
6854
6855 #. type: verbatim
6856 #: ../src/guestfs-actions.pod:742
6857 #, no-wrap
6858 msgid ""
6859 " int64_t\n"
6860 " guestfs_blockdev_getsz (guestfs_h *g,\n"
6861 "                         const char *device);\n"
6862 "\n"
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
6867 msgid ""
6868 "This returns the size of the device in units of 512-byte sectors (even if "
6869 "the sectorsize isn't 512 bytes ... weird)."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../src/guestfs-actions.pod:749
6874 msgid ""
6875 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
6876 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
6877 msgstr ""
6878
6879 #. type: =head2
6880 #: ../src/guestfs-actions.pod:759
6881 msgid "guestfs_blockdev_rereadpt"
6882 msgstr ""
6883
6884 #. type: verbatim
6885 #: ../src/guestfs-actions.pod:761
6886 #, no-wrap
6887 msgid ""
6888 " int\n"
6889 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
6890 "                            const char *device);\n"
6891 "\n"
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
6896 msgid "Reread the partition table on C<device>."
6897 msgstr ""
6898
6899 #. type: =head2
6900 #: ../src/guestfs-actions.pod:773
6901 msgid "guestfs_blockdev_setbsz"
6902 msgstr ""
6903
6904 #. type: verbatim
6905 #: ../src/guestfs-actions.pod:775
6906 #, no-wrap
6907 msgid ""
6908 " int\n"
6909 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
6910 "                          const char *device,\n"
6911 "                          int blocksize);\n"
6912 "\n"
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
6917 msgid "This sets the block size of a device."
6918 msgstr ""
6919
6920 #. type: =head2
6921 #: ../src/guestfs-actions.pod:791
6922 msgid "guestfs_blockdev_setro"
6923 msgstr ""
6924
6925 #. type: verbatim
6926 #: ../src/guestfs-actions.pod:793
6927 #, no-wrap
6928 msgid ""
6929 " int\n"
6930 " guestfs_blockdev_setro (guestfs_h *g,\n"
6931 "                         const char *device);\n"
6932 "\n"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
6937 msgid "Sets the block device named C<device> to read-only."
6938 msgstr ""
6939
6940 #. type: =head2
6941 #: ../src/guestfs-actions.pod:805
6942 msgid "guestfs_blockdev_setrw"
6943 msgstr ""
6944
6945 #. type: verbatim
6946 #: ../src/guestfs-actions.pod:807
6947 #, no-wrap
6948 msgid ""
6949 " int\n"
6950 " guestfs_blockdev_setrw (guestfs_h *g,\n"
6951 "                         const char *device);\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
6957 msgid "Sets the block device named C<device> to read-write."
6958 msgstr ""
6959
6960 #. type: =head2
6961 #: ../src/guestfs-actions.pod:819
6962 msgid "guestfs_case_sensitive_path"
6963 msgstr ""
6964
6965 #. type: verbatim
6966 #: ../src/guestfs-actions.pod:821
6967 #, no-wrap
6968 msgid ""
6969 " char *\n"
6970 " guestfs_case_sensitive_path (guestfs_h *g,\n"
6971 "                              const char *path);\n"
6972 "\n"
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
6977 msgid ""
6978 "This can be used to resolve case insensitive paths on a filesystem which is "
6979 "case sensitive.  The use case is to resolve paths which you have read from "
6980 "Windows configuration files or the Windows Registry, to the true path."
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
6985 msgid ""
6986 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6987 "(and probably others), which is that although the underlying filesystem is "
6988 "case-insensitive, the driver exports the filesystem to Linux as "
6989 "case-sensitive."
6990 msgstr ""
6991
6992 #. type: textblock
6993 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
6994 msgid ""
6995 "One consequence of this is that special directories such as C<c:\\windows> "
6996 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6997 "precise details of how they were created.  In Windows itself this would not "
6998 "be a problem."
6999 msgstr ""
7000
7001 #. type: textblock
7002 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
7003 msgid ""
7004 "Bug or feature? You decide: "
7005 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
7010 msgid ""
7011 "This function resolves the true case of each element in the path and returns "
7012 "the case-sensitive path."
7013 msgstr ""
7014
7015 #. type: textblock
7016 #: ../src/guestfs-actions.pod:847
7017 msgid ""
7018 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
7019 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7020 "how the directories were originally created under Windows)."
7021 msgstr ""
7022
7023 #. type: textblock
7024 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
7025 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7026 msgstr ""
7027
7028 #. type: textblock
7029 #: ../src/guestfs-actions.pod:855
7030 msgid "See also C<guestfs_realpath>."
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6970
7035 msgid "(Added in 1.0.75)"
7036 msgstr ""
7037
7038 #. type: =head2
7039 #: ../src/guestfs-actions.pod:862
7040 msgid "guestfs_cat"
7041 msgstr ""
7042
7043 #. type: verbatim
7044 #: ../src/guestfs-actions.pod:864
7045 #, no-wrap
7046 msgid ""
7047 " char *\n"
7048 " guestfs_cat (guestfs_h *g,\n"
7049 "              const char *path);\n"
7050 "\n"
7051 msgstr ""
7052
7053 #. type: textblock
7054 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5466 ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3667
7055 msgid "Return the contents of the file named C<path>."
7056 msgstr ""
7057
7058 #. type: textblock
7059 #: ../src/guestfs-actions.pod:870
7060 msgid ""
7061 "Note that this function cannot correctly handle binary files (specifically, "
7062 "files containing C<\\0> character which is treated as end of string).  For "
7063 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7064 "functions which have a more complex interface."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../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
7069 msgid ""
7070 "Because of the message protocol, there is a transfer limit of somewhere "
7071 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7072 msgstr ""
7073
7074 #. type: textblock
7075 #: ../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
7076 msgid "(Added in 0.4)"
7077 msgstr ""
7078
7079 #. type: =head2
7080 #: ../src/guestfs-actions.pod:883
7081 msgid "guestfs_checksum"
7082 msgstr ""
7083
7084 #. type: verbatim
7085 #: ../src/guestfs-actions.pod:885
7086 #, no-wrap
7087 msgid ""
7088 " char *\n"
7089 " guestfs_checksum (guestfs_h *g,\n"
7090 "                   const char *csumtype,\n"
7091 "                   const char *path);\n"
7092 "\n"
7093 msgstr ""
7094
7095 #. type: textblock
7096 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
7097 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7098 msgstr ""
7099
7100 #. type: textblock
7101 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
7102 msgid ""
7103 "The type of checksum to compute is given by the C<csumtype> parameter which "
7104 "must have one of the following values:"
7105 msgstr ""
7106
7107 #. type: =item
7108 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
7109 msgid "C<crc>"
7110 msgstr ""
7111
7112 #. type: textblock
7113 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
7114 msgid ""
7115 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7116 "C<cksum> command."
7117 msgstr ""
7118
7119 #. type: =item
7120 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
7121 msgid "C<md5>"
7122 msgstr ""
7123
7124 #. type: textblock
7125 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
7126 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7127 msgstr ""
7128
7129 #. type: =item
7130 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
7131 msgid "C<sha1>"
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
7136 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7137 msgstr ""
7138
7139 #. type: =item
7140 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
7141 msgid "C<sha224>"
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
7146 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7147 msgstr ""
7148
7149 #. type: =item
7150 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
7151 msgid "C<sha256>"
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
7156 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7157 msgstr ""
7158
7159 #. type: =item
7160 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
7161 msgid "C<sha384>"
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
7166 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7167 msgstr ""
7168
7169 #. type: =item
7170 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
7171 msgid "C<sha512>"
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
7176 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
7181 msgid "The checksum is returned as a printable string."
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../src/guestfs-actions.pod:931
7186 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../src/guestfs-actions.pod:933
7191 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7192 msgstr ""
7193
7194 #. type: textblock
7195 #: ../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
7196 msgid "(Added in 1.0.2)"
7197 msgstr ""
7198
7199 #. type: =head2
7200 #: ../src/guestfs-actions.pod:940
7201 msgid "guestfs_checksum_device"
7202 msgstr ""
7203
7204 #. type: verbatim
7205 #: ../src/guestfs-actions.pod:942
7206 #, no-wrap
7207 msgid ""
7208 " char *\n"
7209 " guestfs_checksum_device (guestfs_h *g,\n"
7210 "                          const char *csumtype,\n"
7211 "                          const char *device);\n"
7212 "\n"
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../src/guestfs-actions.pod:947
7217 msgid ""
7218 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7219 "device named C<device>.  For the types of checksums supported see the "
7220 "C<guestfs_checksum> command."
7221 msgstr ""
7222
7223 #. type: textblock
7224 #: ../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
7225 msgid "(Added in 1.3.2)"
7226 msgstr ""
7227
7228 #. type: =head2
7229 #: ../src/guestfs-actions.pod:956
7230 msgid "guestfs_checksums_out"
7231 msgstr ""
7232
7233 #. type: verbatim
7234 #: ../src/guestfs-actions.pod:958
7235 #, no-wrap
7236 msgid ""
7237 " int\n"
7238 " guestfs_checksums_out (guestfs_h *g,\n"
7239 "                        const char *csumtype,\n"
7240 "                        const char *directory,\n"
7241 "                        const char *sumsfile);\n"
7242 "\n"
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
7247 msgid ""
7248 "This command computes the checksums of all regular files in C<directory> and "
7249 "then emits a list of those checksums to the local output file C<sumsfile>."
7250 msgstr ""
7251
7252 #. type: textblock
7253 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
7254 msgid ""
7255 "This can be used for verifying the integrity of a virtual machine.  However "
7256 "to be properly secure you should pay attention to the output of the checksum "
7257 "command (it uses the ones from GNU coreutils).  In particular when the "
7258 "filename is not printable, coreutils uses a special backslash syntax.  For "
7259 "more information, see the GNU coreutils info file."
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../src/guestfs-actions.pod:978
7264 msgid "(Added in 1.3.7)"
7265 msgstr ""
7266
7267 #. type: =head2
7268 #: ../src/guestfs-actions.pod:980
7269 msgid "guestfs_chmod"
7270 msgstr ""
7271
7272 #. type: verbatim
7273 #: ../src/guestfs-actions.pod:982
7274 #, no-wrap
7275 msgid ""
7276 " int\n"
7277 " guestfs_chmod (guestfs_h *g,\n"
7278 "                int mode,\n"
7279 "                const char *path);\n"
7280 "\n"
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
7285 msgid ""
7286 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7287 "supported."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
7292 msgid ""
7293 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7294 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7295 "C<700>."
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../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
7300 msgid "The mode actually set is affected by the umask."
7301 msgstr ""
7302
7303 #. type: =head2
7304 #: ../src/guestfs-actions.pod:1000
7305 msgid "guestfs_chown"
7306 msgstr ""
7307
7308 #. type: verbatim
7309 #: ../src/guestfs-actions.pod:1002
7310 #, no-wrap
7311 msgid ""
7312 " int\n"
7313 " guestfs_chown (guestfs_h *g,\n"
7314 "                int owner,\n"
7315 "                int group,\n"
7316 "                const char *path);\n"
7317 "\n"
7318 msgstr ""
7319
7320 #. type: textblock
7321 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
7322 msgid "Change the file owner to C<owner> and group to C<group>."
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2441
7327 msgid ""
7328 "Only numeric uid and gid are supported.  If you want to use names, you will "
7329 "need to locate and parse the password file yourself (Augeas support makes "
7330 "this relatively easy)."
7331 msgstr ""
7332
7333 #. type: =head2
7334 #: ../src/guestfs-actions.pod:1018
7335 msgid "guestfs_command"
7336 msgstr ""
7337
7338 #. type: verbatim
7339 #: ../src/guestfs-actions.pod:1020
7340 #, no-wrap
7341 msgid ""
7342 " char *\n"
7343 " guestfs_command (guestfs_h *g,\n"
7344 "                  char *const *arguments);\n"
7345 "\n"
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
7350 msgid ""
7351 "This call runs a command from the guest filesystem.  The filesystem must be "
7352 "mounted, and must contain a compatible operating system (ie. something "
7353 "Linux, with the same or compatible processor architecture)."
7354 msgstr ""
7355
7356 #. type: textblock
7357 #: ../src/guestfs-actions.pod:1029
7358 msgid ""
7359 "The single parameter is an argv-style list of arguments.  The first element "
7360 "is the name of the program to run.  Subsequent elements are parameters.  The "
7361 "list must be non-empty (ie. must contain a program name).  Note that the "
7362 "command runs directly, and is I<not> invoked via the shell (see "
7363 "C<guestfs_sh>)."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
7368 msgid "The return value is anything printed to I<stdout> by the command."
7369 msgstr ""
7370
7371 #. type: textblock
7372 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
7373 msgid ""
7374 "If the command returns a non-zero exit status, then this function returns an "
7375 "error message.  The error message string is the content of I<stderr> from "
7376 "the command."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
7381 msgid ""
7382 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
7383 "C</bin>.  If you require a program from another location, you should provide "
7384 "the full path in the first parameter."
7385 msgstr ""
7386
7387 #. type: textblock
7388 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
7389 msgid ""
7390 "Shared libraries and data files required by the program must be available on "
7391 "filesystems which are mounted in the correct places.  It is the caller's "
7392 "responsibility to ensure all filesystems that are needed are mounted at the "
7393 "right locations."
7394 msgstr ""
7395
7396 #. type: textblock
7397 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:1548
7398 msgid "(Added in 0.9.1)"
7399 msgstr ""
7400
7401 #. type: =head2
7402 #: ../src/guestfs-actions.pod:1062
7403 msgid "guestfs_command_lines"
7404 msgstr ""
7405
7406 #. type: verbatim
7407 #: ../src/guestfs-actions.pod:1064
7408 #, no-wrap
7409 msgid ""
7410 " char **\n"
7411 " guestfs_command_lines (guestfs_h *g,\n"
7412 "                        char *const *arguments);\n"
7413 "\n"
7414 msgstr ""
7415
7416 #. type: textblock
7417 #: ../src/guestfs-actions.pod:1068
7418 msgid ""
7419 "This is the same as C<guestfs_command>, but splits the result into a list of "
7420 "lines."
7421 msgstr ""
7422
7423 #. type: textblock
7424 #: ../src/guestfs-actions.pod:1071
7425 msgid "See also: C<guestfs_sh_lines>"
7426 msgstr ""
7427
7428 #. type: =head2
7429 #: ../src/guestfs-actions.pod:1082
7430 msgid "guestfs_config"
7431 msgstr ""
7432
7433 #. type: verbatim
7434 #: ../src/guestfs-actions.pod:1084
7435 #, no-wrap
7436 msgid ""
7437 " int\n"
7438 " guestfs_config (guestfs_h *g,\n"
7439 "                 const char *qemuparam,\n"
7440 "                 const char *qemuvalue);\n"
7441 "\n"
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
7446 msgid ""
7447 "This can be used to add arbitrary qemu command line parameters of the form "
7448 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7449 "setting some parameters which would interfere with parameters that we use."
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
7454 msgid "The first character of C<param> string must be a C<-> (dash)."
7455 msgstr ""
7456
7457 #. type: textblock
7458 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
7459 msgid "C<value> can be NULL."
7460 msgstr ""
7461
7462 #. type: =head2
7463 #: ../src/guestfs-actions.pod:1102
7464 msgid "guestfs_copy_size"
7465 msgstr ""
7466
7467 #. type: verbatim
7468 #: ../src/guestfs-actions.pod:1104
7469 #, no-wrap
7470 msgid ""
7471 " int\n"
7472 " guestfs_copy_size (guestfs_h *g,\n"
7473 "                    const char *src,\n"
7474 "                    const char *dest,\n"
7475 "                    int64_t size);\n"
7476 "\n"
7477 msgstr ""
7478
7479 #. type: textblock
7480 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
7481 msgid ""
7482 "This command copies exactly C<size> bytes from one source device or file "
7483 "C<src> to another destination device or file C<dest>."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
7488 msgid ""
7489 "Note this will fail if the source is too short or if the destination is not "
7490 "large enough."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../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
7495 msgid ""
7496 "This long-running command can generate progress notification messages so "
7497 "that the caller can display a progress bar or indicator.  To receive these "
7498 "messages, the caller must register a progress event callback.  See "
7499 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
7500 msgstr ""
7501
7502 #. type: textblock
7503 #: ../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
7504 msgid "(Added in 1.0.87)"
7505 msgstr ""
7506
7507 #. type: =head2
7508 #: ../src/guestfs-actions.pod:1125
7509 msgid "guestfs_cp"
7510 msgstr ""
7511
7512 #. type: verbatim
7513 #: ../src/guestfs-actions.pod:1127
7514 #, no-wrap
7515 msgid ""
7516 " int\n"
7517 " guestfs_cp (guestfs_h *g,\n"
7518 "             const char *src,\n"
7519 "             const char *dest);\n"
7520 "\n"
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
7525 msgid ""
7526 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7527 "destination filename or destination directory."
7528 msgstr ""
7529
7530 #. type: textblock
7531 #: ../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
7532 msgid "(Added in 1.0.18)"
7533 msgstr ""
7534
7535 #. type: =head2
7536 #: ../src/guestfs-actions.pod:1139
7537 msgid "guestfs_cp_a"
7538 msgstr ""
7539
7540 #. type: verbatim
7541 #: ../src/guestfs-actions.pod:1141
7542 #, no-wrap
7543 msgid ""
7544 " int\n"
7545 " guestfs_cp_a (guestfs_h *g,\n"
7546 "               const char *src,\n"
7547 "               const char *dest);\n"
7548 "\n"
7549 msgstr ""
7550
7551 #. type: textblock
7552 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
7553 msgid ""
7554 "This copies a file or directory from C<src> to C<dest> recursively using the "
7555 "C<cp -a> command."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../src/guestfs-actions.pod:1153
7560 msgid "guestfs_dd"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../src/guestfs-actions.pod:1155
7565 #, no-wrap
7566 msgid ""
7567 " int\n"
7568 " guestfs_dd (guestfs_h *g,\n"
7569 "             const char *src,\n"
7570 "             const char *dest);\n"
7571 "\n"
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
7576 msgid ""
7577 "This command copies from one source device or file C<src> to another "
7578 "destination device or file C<dest>.  Normally you would use this to copy to "
7579 "or from a device or partition, for example to duplicate a filesystem."
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../src/guestfs-actions.pod:1165
7584 msgid ""
7585 "If the destination is a device, it must be as large or larger than the "
7586 "source file or device, otherwise the copy will fail.  This command cannot do "
7587 "partial copies (see C<guestfs_copy_size>)."
7588 msgstr ""
7589
7590 #. type: =head2
7591 #: ../src/guestfs-actions.pod:1173
7592 msgid "guestfs_df"
7593 msgstr ""
7594
7595 #. type: verbatim
7596 #: ../src/guestfs-actions.pod:1175
7597 #, no-wrap
7598 msgid ""
7599 " char *\n"
7600 " guestfs_df (guestfs_h *g);\n"
7601 "\n"
7602 msgstr ""
7603
7604 #. type: textblock
7605 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
7606 msgid "This command runs the C<df> command to report disk space used."
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
7611 msgid ""
7612 "This command is mostly useful for interactive sessions.  It is I<not> "
7613 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
7614 "from programs."
7615 msgstr ""
7616
7617 #. type: textblock
7618 #: ../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
7619 msgid "(Added in 1.0.54)"
7620 msgstr ""
7621
7622 #. type: =head2
7623 #: ../src/guestfs-actions.pod:1189
7624 msgid "guestfs_df_h"
7625 msgstr ""
7626
7627 #. type: verbatim
7628 #: ../src/guestfs-actions.pod:1191
7629 #, no-wrap
7630 msgid ""
7631 " char *\n"
7632 " guestfs_df_h (guestfs_h *g);\n"
7633 "\n"
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
7638 msgid ""
7639 "This command runs the C<df -h> command to report disk space used in "
7640 "human-readable format."
7641 msgstr ""
7642
7643 #. type: =head2
7644 #: ../src/guestfs-actions.pod:1206
7645 msgid "guestfs_dmesg"
7646 msgstr ""
7647
7648 #. type: verbatim
7649 #: ../src/guestfs-actions.pod:1208
7650 #, no-wrap
7651 msgid ""
7652 " char *\n"
7653 " guestfs_dmesg (guestfs_h *g);\n"
7654 "\n"
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
7659 msgid ""
7660 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7661 "This is sometimes useful for extended debugging of problems."
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../src/guestfs-actions.pod:1215
7666 msgid ""
7667 "Another way to get the same information is to enable verbose messages with "
7668 "C<guestfs_set_verbose> or by setting the environment variable "
7669 "C<LIBGUESTFS_DEBUG=1> before running the program."
7670 msgstr ""
7671
7672 #. type: =head2
7673 #: ../src/guestfs-actions.pod:1225
7674 msgid "guestfs_download"
7675 msgstr ""
7676
7677 #. type: verbatim
7678 #: ../src/guestfs-actions.pod:1227
7679 #, no-wrap
7680 msgid ""
7681 " int\n"
7682 " guestfs_download (guestfs_h *g,\n"
7683 "                   const char *remotefilename,\n"
7684 "                   const char *filename);\n"
7685 "\n"
7686 msgstr ""
7687
7688 #. type: textblock
7689 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257 ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
7690 msgid ""
7691 "Download file C<remotefilename> and save it as C<filename> on the local "
7692 "machine."
7693 msgstr ""
7694
7695 #. type: textblock
7696 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6815 ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4590
7697 msgid "C<filename> can also be a named pipe."
7698 msgstr ""
7699
7700 #. type: textblock
7701 #: ../src/guestfs-actions.pod:1237
7702 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
7703 msgstr ""
7704
7705 #. type: =head2
7706 #: ../src/guestfs-actions.pod:1248
7707 msgid "guestfs_download_offset"
7708 msgstr ""
7709
7710 #. type: verbatim
7711 #: ../src/guestfs-actions.pod:1250
7712 #, no-wrap
7713 msgid ""
7714 " int\n"
7715 " guestfs_download_offset (guestfs_h *g,\n"
7716 "                          const char *remotefilename,\n"
7717 "                          const char *filename,\n"
7718 "                          int64_t offset,\n"
7719 "                          int64_t size);\n"
7720 "\n"
7721 msgstr ""
7722
7723 #. type: textblock
7724 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
7725 msgid ""
7726 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7727 "region must be within the file or device)."
7728 msgstr ""
7729
7730 #. type: textblock
7731 #: ../src/guestfs-actions.pod:1263
7732 msgid ""
7733 "Note that there is no limit on the amount of data that can be downloaded "
7734 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
7735 "full amount unless an error occurs."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:1268
7740 msgid "See also C<guestfs_download>, C<guestfs_pread>."
7741 msgstr ""
7742
7743 #. type: textblock
7744 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6860
7745 msgid "(Added in 1.5.17)"
7746 msgstr ""
7747
7748 #. type: =head2
7749 #: ../src/guestfs-actions.pod:1279
7750 msgid "guestfs_drop_caches"
7751 msgstr ""
7752
7753 #. type: verbatim
7754 #: ../src/guestfs-actions.pod:1281
7755 #, no-wrap
7756 msgid ""
7757 " int\n"
7758 " guestfs_drop_caches (guestfs_h *g,\n"
7759 "                      int whattodrop);\n"
7760 "\n"
7761 msgstr ""
7762
7763 #. type: textblock
7764 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
7765 msgid ""
7766 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7767 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7768 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7769 msgstr ""
7770
7771 #. type: textblock
7772 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
7773 msgid "Setting C<whattodrop> to 3 should drop everything."
7774 msgstr ""
7775
7776 #. type: textblock
7777 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
7778 msgid ""
7779 "This automatically calls L<sync(2)> before the operation, so that the "
7780 "maximum guest memory is freed."
7781 msgstr ""
7782
7783 #. type: =head2
7784 #: ../src/guestfs-actions.pod:1299
7785 msgid "guestfs_du"
7786 msgstr ""
7787
7788 #. type: verbatim
7789 #: ../src/guestfs-actions.pod:1301
7790 #, no-wrap
7791 msgid ""
7792 " int64_t\n"
7793 " guestfs_du (guestfs_h *g,\n"
7794 "             const char *path);\n"
7795 "\n"
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
7800 msgid ""
7801 "This command runs the C<du -s> command to estimate file space usage for "
7802 "C<path>."
7803 msgstr ""
7804
7805 #. type: textblock
7806 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
7807 msgid ""
7808 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7809 "estimate includes the contents of the directory and all subdirectories "
7810 "(recursively)."
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
7815 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7816 msgstr ""
7817
7818 #. type: =head2
7819 #: ../src/guestfs-actions.pod:1324
7820 msgid "guestfs_e2fsck_f"
7821 msgstr ""
7822
7823 #. type: verbatim
7824 #: ../src/guestfs-actions.pod:1326
7825 #, no-wrap
7826 msgid ""
7827 " int\n"
7828 " guestfs_e2fsck_f (guestfs_h *g,\n"
7829 "                   const char *device);\n"
7830 "\n"
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../src/guestfs-actions.pod:1330 ../fish/guestfish-actions.pod:885
7835 msgid ""
7836 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7837 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
7838 "clean (C<-f>)."
7839 msgstr ""
7840
7841 #. type: textblock
7842 #: ../src/guestfs-actions.pod:1334
7843 msgid ""
7844 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
7845 "Normally you should use C<guestfs_fsck>."
7846 msgstr ""
7847
7848 #. type: textblock
7849 #: ../src/guestfs-actions.pod:1339
7850 msgid "(Added in 1.0.29)"
7851 msgstr ""
7852
7853 #. type: =head2
7854 #: ../src/guestfs-actions.pod:1341
7855 msgid "guestfs_echo_daemon"
7856 msgstr ""
7857
7858 #. type: verbatim
7859 #: ../src/guestfs-actions.pod:1343
7860 #, no-wrap
7861 msgid ""
7862 " char *\n"
7863 " guestfs_echo_daemon (guestfs_h *g,\n"
7864 "                      char *const *words);\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:896
7870 msgid ""
7871 "This command concatenates the list of C<words> passed with single spaces "
7872 "between them and returns the resulting string."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:899
7877 msgid "You can use this command to test the connection through to the daemon."
7878 msgstr ""
7879
7880 #. type: textblock
7881 #: ../src/guestfs-actions.pod:1352
7882 msgid "See also C<guestfs_ping_daemon>."
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6059
7887 msgid "(Added in 1.0.69)"
7888 msgstr ""
7889
7890 #. type: =head2
7891 #: ../src/guestfs-actions.pod:1359
7892 msgid "guestfs_egrep"
7893 msgstr ""
7894
7895 #. type: verbatim
7896 #: ../src/guestfs-actions.pod:1361
7897 #, no-wrap
7898 msgid ""
7899 " char **\n"
7900 " guestfs_egrep (guestfs_h *g,\n"
7901 "                const char *regex,\n"
7902 "                const char *path);\n"
7903 "\n"
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../src/guestfs-actions.pod:1366 ../fish/guestfish-actions.pod:907
7908 msgid "This calls the external C<egrep> program and returns the matching lines."
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../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
7913 msgid "(Added in 1.0.66)"
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../src/guestfs-actions.pod:1378
7918 msgid "guestfs_egrepi"
7919 msgstr ""
7920
7921 #. type: verbatim
7922 #: ../src/guestfs-actions.pod:1380
7923 #, no-wrap
7924 msgid ""
7925 " char **\n"
7926 " guestfs_egrepi (guestfs_h *g,\n"
7927 "                 const char *regex,\n"
7928 "                 const char *path);\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:917
7934 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../src/guestfs-actions.pod:1397
7939 msgid "guestfs_equal"
7940 msgstr ""
7941
7942 #. type: verbatim
7943 #: ../src/guestfs-actions.pod:1399
7944 #, no-wrap
7945 msgid ""
7946 " int\n"
7947 " guestfs_equal (guestfs_h *g,\n"
7948 "                const char *file1,\n"
7949 "                const char *file2);\n"
7950 "\n"
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:927
7955 msgid ""
7956 "This compares the two files C<file1> and C<file2> and returns true if their "
7957 "content is exactly equal, or false otherwise."
7958 msgstr ""
7959
7960 #. type: textblock
7961 #: ../src/guestfs-actions.pod:1407 ../fish/guestfish-actions.pod:930
7962 msgid "The external L<cmp(1)> program is used for the comparison."
7963 msgstr ""
7964
7965 #. type: =head2
7966 #: ../src/guestfs-actions.pod:1413
7967 msgid "guestfs_exists"
7968 msgstr ""
7969
7970 #. type: verbatim
7971 #: ../src/guestfs-actions.pod:1415
7972 #, no-wrap
7973 msgid ""
7974 " int\n"
7975 " guestfs_exists (guestfs_h *g,\n"
7976 "                 const char *path);\n"
7977 "\n"
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:936
7982 msgid ""
7983 "This returns C<true> if and only if there is a file, directory (or anything) "
7984 "with the given C<path> name."
7985 msgstr ""
7986
7987 #. type: textblock
7988 #: ../src/guestfs-actions.pod:1422
7989 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../src/guestfs-actions.pod:1428
7994 msgid "guestfs_fallocate"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../src/guestfs-actions.pod:1430
7999 #, no-wrap
8000 msgid ""
8001 " int\n"
8002 " guestfs_fallocate (guestfs_h *g,\n"
8003 "                    const char *path,\n"
8004 "                    int len);\n"
8005 "\n"
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1461 ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
8010 msgid ""
8011 "This command preallocates a file (containing zero bytes) named C<path> of "
8012 "size C<len> bytes.  If the file exists already, it is overwritten."
8013 msgstr ""
8014
8015 #. type: textblock
8016 #: ../src/guestfs-actions.pod:1439 ../fish/guestfish-actions.pod:949
8017 msgid ""
8018 "Do not confuse this with the guestfish-specific C<alloc> command which "
8019 "allocates a file in the host and attaches it as a device."
8020 msgstr ""
8021
8022 #. type: textblock
8023 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:953
8024 msgid ""
8025 "This function is deprecated.  In new code, use the C<fallocate64> call "
8026 "instead."
8027 msgstr ""
8028
8029 #. type: =head2
8030 #: ../src/guestfs-actions.pod:1454
8031 msgid "guestfs_fallocate64"
8032 msgstr ""
8033
8034 #. type: verbatim
8035 #: ../src/guestfs-actions.pod:1456
8036 #, no-wrap
8037 msgid ""
8038 " int\n"
8039 " guestfs_fallocate64 (guestfs_h *g,\n"
8040 "                      const char *path,\n"
8041 "                      int64_t len);\n"
8042 "\n"
8043 msgstr ""
8044
8045 #. type: textblock
8046 #: ../src/guestfs-actions.pod:1465
8047 msgid ""
8048 "Note that this call allocates disk blocks for the file.  To create a sparse "
8049 "file use C<guestfs_truncate_size> instead."
8050 msgstr ""
8051
8052 #. type: textblock
8053 #: ../src/guestfs-actions.pod:1468
8054 msgid ""
8055 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8056 "oversight it only allowed 30 bit lengths to be specified, effectively "
8057 "limiting the maximum size of files created through that call to 1GB."
8058 msgstr ""
8059
8060 #. type: textblock
8061 #: ../src/guestfs-actions.pod:1473 ../fish/guestfish-actions.pod:976
8062 msgid ""
8063 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8064 "commands which create a file in the host and attach it as a device."
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../src/guestfs-actions.pod:1479
8069 msgid "(Added in 1.3.17)"
8070 msgstr ""
8071
8072 #. type: =head2
8073 #: ../src/guestfs-actions.pod:1481
8074 msgid "guestfs_fgrep"
8075 msgstr ""
8076
8077 #. type: verbatim
8078 #: ../src/guestfs-actions.pod:1483
8079 #, no-wrap
8080 msgid ""
8081 " char **\n"
8082 " guestfs_fgrep (guestfs_h *g,\n"
8083 "                const char *pattern,\n"
8084 "                const char *path);\n"
8085 "\n"
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:984
8090 msgid "This calls the external C<fgrep> program and returns the matching lines."
8091 msgstr ""
8092
8093 #. type: =head2
8094 #: ../src/guestfs-actions.pod:1500
8095 msgid "guestfs_fgrepi"
8096 msgstr ""
8097
8098 #. type: verbatim
8099 #: ../src/guestfs-actions.pod:1502
8100 #, no-wrap
8101 msgid ""
8102 " char **\n"
8103 " guestfs_fgrepi (guestfs_h *g,\n"
8104 "                 const char *pattern,\n"
8105 "                 const char *path);\n"
8106 "\n"
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../src/guestfs-actions.pod:1507 ../fish/guestfish-actions.pod:994
8111 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
8112 msgstr ""
8113
8114 #. type: =head2
8115 #: ../src/guestfs-actions.pod:1519
8116 msgid "guestfs_file"
8117 msgstr ""
8118
8119 #. type: verbatim
8120 #: ../src/guestfs-actions.pod:1521
8121 #, no-wrap
8122 msgid ""
8123 " char *\n"
8124 " guestfs_file (guestfs_h *g,\n"
8125 "               const char *path);\n"
8126 "\n"
8127 msgstr ""
8128
8129 #. type: textblock
8130 #: ../src/guestfs-actions.pod:1525 ../fish/guestfish-actions.pod:1004
8131 msgid ""
8132 "This call uses the standard L<file(1)> command to determine the type or "
8133 "contents of the file."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1007
8138 msgid ""
8139 "This call will also transparently look inside various types of compressed "
8140 "file."
8141 msgstr ""
8142
8143 #. type: textblock
8144 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1010
8145 msgid ""
8146 "The exact command which runs is C<file -zb path>.  Note in particular that "
8147 "the filename is not prepended to the output (the C<-b> option)."
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../src/guestfs-actions.pod:1535
8152 msgid ""
8153 "This command can also be used on C</dev/> devices (and partitions, LV "
8154 "names).  You can for example use this to determine if a device contains a "
8155 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8156 msgstr ""
8157
8158 #. type: textblock
8159 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1019
8160 msgid ""
8161 "If the C<path> does not begin with C</dev/> then this command only works for "
8162 "the content of regular files.  For other file types (directory, symbolic "
8163 "link etc) it will just return the string C<directory> etc."
8164 msgstr ""
8165
8166 #. type: =head2
8167 #: ../src/guestfs-actions.pod:1550
8168 msgid "guestfs_file_architecture"
8169 msgstr ""
8170
8171 #. type: verbatim
8172 #: ../src/guestfs-actions.pod:1552
8173 #, no-wrap
8174 msgid ""
8175 " char *\n"
8176 " guestfs_file_architecture (guestfs_h *g,\n"
8177 "                            const char *filename);\n"
8178 "\n"
8179 msgstr ""
8180
8181 #. type: textblock
8182 #: ../src/guestfs-actions.pod:1556 ../fish/guestfish-actions.pod:1028
8183 msgid ""
8184 "This detects the architecture of the binary C<filename>, and returns it if "
8185 "known."
8186 msgstr ""
8187
8188 #. type: textblock
8189 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1031
8190 msgid "Currently defined architectures are:"
8191 msgstr ""
8192
8193 #. type: =item
8194 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1035
8195 msgid "\"i386\""
8196 msgstr ""
8197
8198 #. type: textblock
8199 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1037
8200 msgid ""
8201 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8202 "irrespective of the precise processor requirements of the binary."
8203 msgstr ""
8204
8205 #. type: =item
8206 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1040
8207 msgid "\"x86_64\""
8208 msgstr ""
8209
8210 #. type: textblock
8211 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1042
8212 msgid "64 bit x86-64."
8213 msgstr ""
8214
8215 #. type: =item
8216 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1044
8217 msgid "\"sparc\""
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1046
8222 msgid "32 bit SPARC."
8223 msgstr ""
8224
8225 #. type: =item
8226 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1048
8227 msgid "\"sparc64\""
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1050
8232 msgid "64 bit SPARC V9 and above."
8233 msgstr ""
8234
8235 #. type: =item
8236 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1052
8237 msgid "\"ia64\""
8238 msgstr ""
8239
8240 #. type: textblock
8241 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1054
8242 msgid "Intel Itanium."
8243 msgstr ""
8244
8245 #. type: =item
8246 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1056
8247 msgid "\"ppc\""
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1058
8252 msgid "32 bit Power PC."
8253 msgstr ""
8254
8255 #. type: =item
8256 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1060
8257 msgid "\"ppc64\""
8258 msgstr ""
8259
8260 #. type: textblock
8261 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1062
8262 msgid "64 bit Power PC."
8263 msgstr ""
8264
8265 #. type: textblock
8266 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1066
8267 msgid "Libguestfs may return other architecture strings in future."
8268 msgstr ""
8269
8270 #. type: textblock
8271 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1068
8272 msgid "The function works on at least the following types of files:"
8273 msgstr ""
8274
8275 #. type: textblock
8276 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1074
8277 msgid "many types of Un*x and Linux binary"
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1078
8282 msgid "many types of Un*x and Linux shared library"
8283 msgstr ""
8284
8285 #. type: textblock
8286 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1082
8287 msgid "Windows Win32 and Win64 binaries"
8288 msgstr ""
8289
8290 #. type: textblock
8291 #: ../src/guestfs-actions.pod:1614 ../fish/guestfish-actions.pod:1086
8292 msgid "Windows Win32 and Win64 DLLs"
8293 msgstr ""
8294
8295 #. type: textblock
8296 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1088
8297 msgid "Win32 binaries and DLLs return C<i386>."
8298 msgstr ""
8299
8300 #. type: textblock
8301 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1090
8302 msgid "Win64 binaries and DLLs return C<x86_64>."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1094
8307 msgid "Linux kernel modules"
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1098
8312 msgid "Linux new-style initrd images"
8313 msgstr ""
8314
8315 #. type: textblock
8316 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1102
8317 msgid "some non-x86 Linux vmlinuz kernels"
8318 msgstr ""
8319
8320 #. type: textblock
8321 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1106
8322 msgid "What it can't do currently:"
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1112
8327 msgid "static libraries (libfoo.a)"
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1116
8332 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8333 msgstr ""
8334
8335 #. type: textblock
8336 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1120
8337 msgid "x86 Linux vmlinuz kernels"
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1122
8342 msgid ""
8343 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8344 "compressed code, and are horribly hard to unpack.  If you want to find the "
8345 "architecture of a kernel, use the architecture of the associated initrd or "
8346 "kernel module(s) instead."
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../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
8351 msgid "(Added in 1.5.3)"
8352 msgstr ""
8353
8354 #. type: =head2
8355 #: ../src/guestfs-actions.pod:1662
8356 msgid "guestfs_filesize"
8357 msgstr ""
8358
8359 #. type: verbatim
8360 #: ../src/guestfs-actions.pod:1664
8361 #, no-wrap
8362 msgid ""
8363 " int64_t\n"
8364 " guestfs_filesize (guestfs_h *g,\n"
8365 "                   const char *file);\n"
8366 "\n"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1133
8371 msgid "This command returns the size of C<file> in bytes."
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../src/guestfs-actions.pod:1670
8376 msgid ""
8377 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
8378 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
8379 "devices, use C<guestfs_blockdev_getsize64>."
8380 msgstr ""
8381
8382 #. type: textblock
8383 #: ../src/guestfs-actions.pod:1676
8384 msgid "(Added in 1.0.82)"
8385 msgstr ""
8386
8387 #. type: =head2
8388 #: ../src/guestfs-actions.pod:1678
8389 msgid "guestfs_fill"
8390 msgstr ""
8391
8392 #. type: verbatim
8393 #: ../src/guestfs-actions.pod:1680
8394 #, no-wrap
8395 msgid ""
8396 " int\n"
8397 " guestfs_fill (guestfs_h *g,\n"
8398 "               int c,\n"
8399 "               int len,\n"
8400 "               const char *path);\n"
8401 "\n"
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1143
8406 msgid ""
8407 "This command creates a new file called C<path>.  The initial content of the "
8408 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
8409 "C<[0..255]>."
8410 msgstr ""
8411
8412 #. type: textblock
8413 #: ../src/guestfs-actions.pod:1690
8414 msgid ""
8415 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8416 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
8417 "bytes use C<guestfs_fill_pattern>."
8418 msgstr ""
8419
8420 #. type: textblock
8421 #: ../src/guestfs-actions.pod:1702
8422 msgid "(Added in 1.0.79)"
8423 msgstr ""
8424
8425 #. type: =head2
8426 #: ../src/guestfs-actions.pod:1704
8427 msgid "guestfs_fill_pattern"
8428 msgstr ""
8429
8430 #. type: verbatim
8431 #: ../src/guestfs-actions.pod:1706
8432 #, no-wrap
8433 msgid ""
8434 " int\n"
8435 " guestfs_fill_pattern (guestfs_h *g,\n"
8436 "                       const char *pattern,\n"
8437 "                       int len,\n"
8438 "                       const char *path);\n"
8439 "\n"
8440 msgstr ""
8441
8442 #. type: textblock
8443 #: ../src/guestfs-actions.pod:1712
8444 msgid ""
8445 "This function is like C<guestfs_fill> except that it creates a new file of "
8446 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
8447 "pattern is truncated if necessary to ensure the length of the file is "
8448 "exactly C<len> bytes."
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../src/guestfs-actions.pod:1724
8453 msgid "(Added in 1.3.12)"
8454 msgstr ""
8455
8456 #. type: =head2
8457 #: ../src/guestfs-actions.pod:1726
8458 msgid "guestfs_find"
8459 msgstr ""
8460
8461 #. type: verbatim
8462 #: ../src/guestfs-actions.pod:1728
8463 #, no-wrap
8464 msgid ""
8465 " char **\n"
8466 " guestfs_find (guestfs_h *g,\n"
8467 "               const char *directory);\n"
8468 "\n"
8469 msgstr ""
8470
8471 #. type: textblock
8472 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1165
8473 msgid ""
8474 "This command lists out all files and directories, recursively, starting at "
8475 "C<directory>.  It is essentially equivalent to running the shell command "
8476 "C<find directory -print> but some post-processing happens on the output, "
8477 "described below."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1170
8482 msgid ""
8483 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8484 "structure was:"
8485 msgstr ""
8486
8487 #. type: verbatim
8488 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1173
8489 #, no-wrap
8490 msgid ""
8491 " /tmp/a\n"
8492 " /tmp/b\n"
8493 " /tmp/c/d\n"
8494 "\n"
8495 msgstr ""
8496
8497 #. type: textblock
8498 #: ../src/guestfs-actions.pod:1744
8499 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
8500 msgstr ""
8501
8502 #. type: verbatim
8503 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1180
8504 #, no-wrap
8505 msgid ""
8506 " a\n"
8507 " b\n"
8508 " c\n"
8509 " c/d\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../src/guestfs-actions.pod:1752 ../fish/guestfish-actions.pod:1185
8515 msgid "If C<directory> is not a directory, then this command returns an error."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1188
8520 msgid "The returned list is sorted."
8521 msgstr ""
8522
8523 #. type: textblock
8524 #: ../src/guestfs-actions.pod:1757
8525 msgid "See also C<guestfs_find0>."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:4100 ../src/guestfs-actions.pod:5643
8530 msgid "(Added in 1.0.27)"
8531 msgstr ""
8532
8533 #. type: =head2
8534 #: ../src/guestfs-actions.pod:1768
8535 msgid "guestfs_find0"
8536 msgstr ""
8537
8538 #. type: verbatim
8539 #: ../src/guestfs-actions.pod:1770
8540 #, no-wrap
8541 msgid ""
8542 " int\n"
8543 " guestfs_find0 (guestfs_h *g,\n"
8544 "                const char *directory,\n"
8545 "                const char *files);\n"
8546 "\n"
8547 msgstr ""
8548
8549 #. type: textblock
8550 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1199
8551 msgid ""
8552 "This command lists out all files and directories, recursively, starting at "
8553 "C<directory>, placing the resulting list in the external file called "
8554 "C<files>."
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../src/guestfs-actions.pod:1779
8559 msgid ""
8560 "This command works the same way as C<guestfs_find> with the following "
8561 "exceptions:"
8562 msgstr ""
8563
8564 #. type: textblock
8565 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1210
8566 msgid "The resulting list is written to an external file."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1214
8571 msgid ""
8572 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8573 "L<find(1)> option I<-print0>."
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1219
8578 msgid "This command is not limited in the number of names that it can return."
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1224
8583 msgid "The result list is not sorted."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../src/guestfs-actions.pod:1806
8588 msgid "(Added in 1.0.74)"
8589 msgstr ""
8590
8591 #. type: =head2
8592 #: ../src/guestfs-actions.pod:1808
8593 msgid "guestfs_findfs_label"
8594 msgstr ""
8595
8596 #. type: verbatim
8597 #: ../src/guestfs-actions.pod:1810
8598 #, no-wrap
8599 msgid ""
8600 " char *\n"
8601 " guestfs_findfs_label (guestfs_h *g,\n"
8602 "                       const char *label);\n"
8603 "\n"
8604 msgstr ""
8605
8606 #. type: textblock
8607 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1234
8608 msgid ""
8609 "This command searches the filesystems and returns the one which has the "
8610 "given label.  An error is returned if no such filesystem can be found."
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../src/guestfs-actions.pod:1818
8615 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
8616 msgstr ""
8617
8618 #. type: =head2
8619 #: ../src/guestfs-actions.pod:1825
8620 msgid "guestfs_findfs_uuid"
8621 msgstr ""
8622
8623 #. type: verbatim
8624 #: ../src/guestfs-actions.pod:1827
8625 #, no-wrap
8626 msgid ""
8627 " char *\n"
8628 " guestfs_findfs_uuid (guestfs_h *g,\n"
8629 "                      const char *uuid);\n"
8630 "\n"
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../src/guestfs-actions.pod:1831 ../fish/guestfish-actions.pod:1244
8635 msgid ""
8636 "This command searches the filesystems and returns the one which has the "
8637 "given UUID.  An error is returned if no such filesystem can be found."
8638 msgstr ""
8639
8640 #. type: textblock
8641 #: ../src/guestfs-actions.pod:1835
8642 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
8643 msgstr ""
8644
8645 #. type: =head2
8646 #: ../src/guestfs-actions.pod:1842
8647 msgid "guestfs_fsck"
8648 msgstr ""
8649
8650 #. type: verbatim
8651 #: ../src/guestfs-actions.pod:1844
8652 #, no-wrap
8653 msgid ""
8654 " int\n"
8655 " guestfs_fsck (guestfs_h *g,\n"
8656 "               const char *fstype,\n"
8657 "               const char *device);\n"
8658 "\n"
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../src/guestfs-actions.pod:1849 ../fish/guestfish-actions.pod:1254
8663 msgid ""
8664 "This runs the filesystem checker (fsck) on C<device> which should have "
8665 "filesystem type C<fstype>."
8666 msgstr ""
8667
8668 #. type: textblock
8669 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1257
8670 msgid ""
8671 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8672 "codes from C<fsck>."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1266
8677 msgid "Multiple status codes can be summed together."
8678 msgstr ""
8679
8680 #. type: textblock
8681 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1270
8682 msgid ""
8683 "A non-zero return code can mean \"success\", for example if errors have been "
8684 "corrected on the filesystem."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1275
8689 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8690 msgstr ""
8691
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1280
8694 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8695 msgstr ""
8696
8697 #. type: textblock
8698 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:7339
8699 msgid "(Added in 1.0.16)"
8700 msgstr ""
8701
8702 #. type: =head2
8703 #: ../src/guestfs-actions.pod:1881
8704 msgid "guestfs_get_append"
8705 msgstr ""
8706
8707 #. type: verbatim
8708 #: ../src/guestfs-actions.pod:1883
8709 #, no-wrap
8710 msgid ""
8711 " const char *\n"
8712 " guestfs_get_append (guestfs_h *g);\n"
8713 "\n"
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1286
8718 msgid ""
8719 "Return the additional kernel options which are added to the guest kernel "
8720 "command line."
8721 msgstr ""
8722
8723 #. type: textblock
8724 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1289
8725 msgid "If C<NULL> then no options are added."
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../src/guestfs-actions.pod:1891
8730 msgid ""
8731 "This function returns a string which may be NULL.  There is no way to return "
8732 "an error from this function.  The string is owned by the guest handle and "
8733 "must I<not> be freed."
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../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
8738 msgid "(Added in 1.0.26)"
8739 msgstr ""
8740
8741 #. type: =head2
8742 #: ../src/guestfs-actions.pod:1897
8743 msgid "guestfs_get_attach_method"
8744 msgstr ""
8745
8746 #. type: verbatim
8747 #: ../src/guestfs-actions.pod:1899
8748 #, no-wrap
8749 msgid ""
8750 " char *\n"
8751 " guestfs_get_attach_method (guestfs_h *g);\n"
8752 "\n"
8753 msgstr ""
8754
8755 #. type: textblock
8756 #: ../src/guestfs-actions.pod:1902
8757 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
8758 msgstr ""
8759
8760 #. type: =head2
8761 #: ../src/guestfs-actions.pod:1907
8762 msgid "guestfs_get_autosync"
8763 msgstr ""
8764
8765 #. type: verbatim
8766 #: ../src/guestfs-actions.pod:1909
8767 #, no-wrap
8768 msgid ""
8769 " int\n"
8770 " guestfs_get_autosync (guestfs_h *g);\n"
8771 "\n"
8772 msgstr ""
8773
8774 #. type: textblock
8775 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1301
8776 msgid "Get the autosync flag."
8777 msgstr ""
8778
8779 #. type: =head2
8780 #: ../src/guestfs-actions.pod:1918
8781 msgid "guestfs_get_direct"
8782 msgstr ""
8783
8784 #. type: verbatim
8785 #: ../src/guestfs-actions.pod:1920
8786 #, no-wrap
8787 msgid ""
8788 " int\n"
8789 " guestfs_get_direct (guestfs_h *g);\n"
8790 "\n"
8791 msgstr ""
8792
8793 #. type: textblock
8794 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1307
8795 msgid "Return the direct appliance mode flag."
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:5870
8800 msgid "(Added in 1.0.72)"
8801 msgstr ""
8802
8803 #. type: =head2
8804 #: ../src/guestfs-actions.pod:1929
8805 msgid "guestfs_get_e2label"
8806 msgstr ""
8807
8808 #. type: verbatim
8809 #: ../src/guestfs-actions.pod:1931
8810 #, no-wrap
8811 msgid ""
8812 " char *\n"
8813 " guestfs_get_e2label (guestfs_h *g,\n"
8814 "                      const char *device);\n"
8815 "\n"
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1313
8820 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1316
8825 msgid ""
8826 "This function is deprecated.  In new code, use the C<vfs_label> call "
8827 "instead."
8828 msgstr ""
8829
8830 #. type: textblock
8831 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:5888 ../src/guestfs-actions.pod:5907
8832 msgid "(Added in 1.0.15)"
8833 msgstr ""
8834
8835 #. type: =head2
8836 #: ../src/guestfs-actions.pod:1950
8837 msgid "guestfs_get_e2uuid"
8838 msgstr ""
8839
8840 #. type: verbatim
8841 #: ../src/guestfs-actions.pod:1952
8842 #, no-wrap
8843 msgid ""
8844 " char *\n"
8845 " guestfs_get_e2uuid (guestfs_h *g,\n"
8846 "                     const char *device);\n"
8847 "\n"
8848 msgstr ""
8849
8850 #. type: textblock
8851 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1327
8852 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8853 msgstr ""
8854
8855 #. type: textblock
8856 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1330
8857 msgid "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
8858 msgstr ""
8859
8860 #. type: =head2
8861 #: ../src/guestfs-actions.pod:1971
8862 msgid "guestfs_get_memsize"
8863 msgstr ""
8864
8865 #. type: verbatim
8866 #: ../src/guestfs-actions.pod:1973
8867 #, no-wrap
8868 msgid ""
8869 " int\n"
8870 " guestfs_get_memsize (guestfs_h *g);\n"
8871 "\n"
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1341
8876 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8877 msgstr ""
8878
8879 #. type: textblock
8880 #: ../src/guestfs-actions.pod:1979
8881 msgid ""
8882 "If C<guestfs_set_memsize> was not called on this handle, and if "
8883 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8884 "value for memsize."
8885 msgstr ""
8886
8887 #. type: textblock
8888 #: ../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
8889 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../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
8894 msgid "(Added in 1.0.55)"
8895 msgstr ""
8896
8897 #. type: =head2
8898 #: ../src/guestfs-actions.pod:1990
8899 msgid "guestfs_get_network"
8900 msgstr ""
8901
8902 #. type: verbatim
8903 #: ../src/guestfs-actions.pod:1992
8904 #, no-wrap
8905 msgid ""
8906 " int\n"
8907 " guestfs_get_network (guestfs_h *g);\n"
8908 "\n"
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1355
8913 msgid "This returns the enable network flag."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:5947
8918 msgid "(Added in 1.5.4)"
8919 msgstr ""
8920
8921 #. type: =head2
8922 #: ../src/guestfs-actions.pod:2001
8923 msgid "guestfs_get_path"
8924 msgstr ""
8925
8926 #. type: verbatim
8927 #: ../src/guestfs-actions.pod:2003
8928 #, no-wrap
8929 msgid ""
8930 " const char *\n"
8931 " guestfs_get_path (guestfs_h *g);\n"
8932 "\n"
8933 msgstr ""
8934
8935 #. type: textblock
8936 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1361
8937 msgid "Return the current search path."
8938 msgstr ""
8939
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:2008 ../fish/guestfish-actions.pod:1363
8942 msgid ""
8943 "This is always non-NULL.  If it wasn't set already, then this will return "
8944 "the default path."
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2040
8949 msgid ""
8950 "This function returns a string, or NULL on error.  The string is owned by "
8951 "the guest handle and must I<not> be freed."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../src/guestfs-actions.pod:2016
8956 msgid "guestfs_get_pid"
8957 msgstr ""
8958
8959 #. type: verbatim
8960 #: ../src/guestfs-actions.pod:2018
8961 #, no-wrap
8962 msgid ""
8963 " int\n"
8964 " guestfs_get_pid (guestfs_h *g);\n"
8965 "\n"
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../src/guestfs-actions.pod:2021 ../fish/guestfish-actions.pod:1372
8970 msgid ""
8971 "Return the process ID of the qemu subprocess.  If there is no qemu "
8972 "subprocess, then this will return an error."
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1375
8977 msgid "This is an internal call used for debugging and testing."
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../src/guestfs-actions.pod:2028
8982 msgid "(Added in 1.0.56)"
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../src/guestfs-actions.pod:2030
8987 msgid "guestfs_get_qemu"
8988 msgstr ""
8989
8990 #. type: verbatim
8991 #: ../src/guestfs-actions.pod:2032
8992 #, no-wrap
8993 msgid ""
8994 " const char *\n"
8995 " guestfs_get_qemu (guestfs_h *g);\n"
8996 "\n"
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1381
9001 msgid "Return the current qemu binary."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../src/guestfs-actions.pod:2037 ../fish/guestfish-actions.pod:1383
9006 msgid ""
9007 "This is always non-NULL.  If it wasn't set already, then this will return "
9008 "the default qemu binary name."
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5992
9013 msgid "(Added in 1.0.6)"
9014 msgstr ""
9015
9016 #. type: =head2
9017 #: ../src/guestfs-actions.pod:2045
9018 msgid "guestfs_get_recovery_proc"
9019 msgstr ""
9020
9021 #. type: verbatim
9022 #: ../src/guestfs-actions.pod:2047
9023 #, no-wrap
9024 msgid ""
9025 " int\n"
9026 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9027 "\n"
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../src/guestfs-actions.pod:2050 ../fish/guestfish-actions.pod:1390
9032 msgid "Return the recovery process enabled flag."
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../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
9037 msgid "(Added in 1.0.77)"
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../src/guestfs-actions.pod:2056
9042 msgid "guestfs_get_selinux"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../src/guestfs-actions.pod:2058
9047 #, no-wrap
9048 msgid ""
9049 " int\n"
9050 " guestfs_get_selinux (guestfs_h *g);\n"
9051 "\n"
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../src/guestfs-actions.pod:2061
9056 msgid ""
9057 "This returns the current setting of the selinux flag which is passed to the "
9058 "appliance at boot time.  See C<guestfs_set_selinux>."
9059 msgstr ""
9060
9061 #. type: textblock
9062 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:6035 ../src/guestfs-actions.pod:6093
9063 msgid "(Added in 1.0.67)"
9064 msgstr ""
9065
9066 #. type: =head2
9067 #: ../src/guestfs-actions.pod:2071
9068 msgid "guestfs_get_state"
9069 msgstr ""
9070
9071 #. type: verbatim
9072 #: ../src/guestfs-actions.pod:2073
9073 #, no-wrap
9074 msgid ""
9075 " int\n"
9076 " guestfs_get_state (guestfs_h *g);\n"
9077 "\n"
9078 msgstr ""
9079
9080 #. type: textblock
9081 #: ../src/guestfs-actions.pod:2076 ../fish/guestfish-actions.pod:1406
9082 msgid ""
9083 "This returns the current state as an opaque integer.  This is only useful "
9084 "for printing debug and internal error messages."
9085 msgstr ""
9086
9087 #. type: textblock
9088 #: ../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
9089 msgid "For more information on states, see L<guestfs(3)>."
9090 msgstr ""
9091
9092 #. type: =head2
9093 #: ../src/guestfs-actions.pod:2085
9094 msgid "guestfs_get_trace"
9095 msgstr ""
9096
9097 #. type: verbatim
9098 #: ../src/guestfs-actions.pod:2087
9099 #, no-wrap
9100 msgid ""
9101 " int\n"
9102 " guestfs_get_trace (guestfs_h *g);\n"
9103 "\n"
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
9108 msgid "Return the command trace flag."
9109 msgstr ""
9110
9111 #. type: =head2
9112 #: ../src/guestfs-actions.pod:2096
9113 msgid "guestfs_get_umask"
9114 msgstr ""
9115
9116 #. type: verbatim
9117 #: ../src/guestfs-actions.pod:2098
9118 #, no-wrap
9119 msgid ""
9120 " int\n"
9121 " guestfs_get_umask (guestfs_h *g);\n"
9122 "\n"
9123 msgstr ""
9124
9125 #. type: textblock
9126 #: ../src/guestfs-actions.pod:2101
9127 msgid ""
9128 "Return the current umask.  By default the umask is C<022> unless it has been "
9129 "set by calling C<guestfs_umask>."
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../src/guestfs-actions.pod:2108
9134 msgid "guestfs_get_verbose"
9135 msgstr ""
9136
9137 #. type: verbatim
9138 #: ../src/guestfs-actions.pod:2110
9139 #, no-wrap
9140 msgid ""
9141 " int\n"
9142 " guestfs_get_verbose (guestfs_h *g);\n"
9143 "\n"
9144 msgstr ""
9145
9146 #. type: textblock
9147 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1428
9148 msgid "This returns the verbose messages flag."
9149 msgstr ""
9150
9151 #. type: =head2
9152 #: ../src/guestfs-actions.pod:2119
9153 msgid "guestfs_getcon"
9154 msgstr ""
9155
9156 #. type: verbatim
9157 #: ../src/guestfs-actions.pod:2121
9158 #, no-wrap
9159 msgid ""
9160 " char *\n"
9161 " guestfs_getcon (guestfs_h *g);\n"
9162 "\n"
9163 msgstr ""
9164
9165 #. type: textblock
9166 #: ../src/guestfs-actions.pod:2124 ../fish/guestfish-actions.pod:1434
9167 msgid "This gets the SELinux security context of the daemon."
9168 msgstr ""
9169
9170 #. type: textblock
9171 #: ../src/guestfs-actions.pod:2126
9172 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
9173 msgstr ""
9174
9175 #. type: =head2
9176 #: ../src/guestfs-actions.pod:2134
9177 msgid "guestfs_getxattr"
9178 msgstr ""
9179
9180 #. type: verbatim
9181 #: ../src/guestfs-actions.pod:2136
9182 #, no-wrap
9183 msgid ""
9184 " char *\n"
9185 " guestfs_getxattr (guestfs_h *g,\n"
9186 "                   const char *path,\n"
9187 "                   const char *name,\n"
9188 "                   size_t *size_r);\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../src/guestfs-actions.pod:2142
9194 msgid ""
9195 "Get a single extended attribute from file C<path> named C<name>.  This call "
9196 "follows symlinks.  If you want to lookup an extended attribute for the "
9197 "symlink itself, use C<guestfs_lgetxattr>."
9198 msgstr ""
9199
9200 #. type: textblock
9201 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:3515
9202 msgid ""
9203 "Normally it is better to get all extended attributes from a file in one go "
9204 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
9205 "implementations are buggy and do not provide a way to list out attributes.  "
9206 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
9207 "extended attributes you want in advance and call this function."
9208 msgstr ""
9209
9210 #. type: textblock
9211 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:3522 ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2460
9212 msgid ""
9213 "Extended attribute values are blobs of binary data.  If there is no extended "
9214 "attribute named C<name>, this returns an error."
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../src/guestfs-actions.pod:2156
9219 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../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
9224 msgid ""
9225 "This function returns a buffer, or NULL on error.  The size of the returned "
9226 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
9227 "after use>."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:3531
9232 msgid "(Added in 1.7.24)"
9233 msgstr ""
9234
9235 #. type: =head2
9236 #: ../src/guestfs-actions.pod:2164
9237 msgid "guestfs_getxattrs"
9238 msgstr ""
9239
9240 #. type: verbatim
9241 #: ../src/guestfs-actions.pod:2166
9242 #, no-wrap
9243 msgid ""
9244 " struct guestfs_xattr_list *\n"
9245 " guestfs_getxattrs (guestfs_h *g,\n"
9246 "                    const char *path);\n"
9247 "\n"
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1463
9252 msgid "This call lists the extended attributes of the file or directory C<path>."
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1466
9257 msgid ""
9258 "At the system call level, this is a combination of the L<listxattr(2)> and "
9259 "L<getxattr(2)> calls."
9260 msgstr ""
9261
9262 #. type: textblock
9263 #: ../src/guestfs-actions.pod:2176
9264 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:4194
9269 msgid ""
9270 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
9271 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../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
9276 msgid "(Added in 1.0.59)"
9277 msgstr ""
9278
9279 #. type: =head2
9280 #: ../src/guestfs-actions.pod:2184
9281 msgid "guestfs_glob_expand"
9282 msgstr ""
9283
9284 #. type: verbatim
9285 #: ../src/guestfs-actions.pod:2186
9286 #, no-wrap
9287 msgid ""
9288 " char **\n"
9289 " guestfs_glob_expand (guestfs_h *g,\n"
9290 "                      const char *pattern);\n"
9291 "\n"
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../src/guestfs-actions.pod:2190 ../fish/guestfish-actions.pod:1475
9296 msgid ""
9297 "This command searches for all the pathnames matching C<pattern> according to "
9298 "the wildcard expansion rules used by the shell."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../src/guestfs-actions.pod:2194 ../fish/guestfish-actions.pod:1479
9303 msgid "If no paths match, then this returns an empty list (note: not an error)."
9304 msgstr ""
9305
9306 #. type: textblock
9307 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1482
9308 msgid ""
9309 "It is just a wrapper around the C L<glob(3)> function with flags "
9310 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
9311 msgstr ""
9312
9313 #. type: textblock
9314 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6277 ../src/guestfs-actions.pod:6294
9315 msgid "(Added in 1.0.50)"
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../src/guestfs-actions.pod:2207
9320 msgid "guestfs_grep"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../src/guestfs-actions.pod:2209
9325 #, no-wrap
9326 msgid ""
9327 " char **\n"
9328 " guestfs_grep (guestfs_h *g,\n"
9329 "               const char *regex,\n"
9330 "               const char *path);\n"
9331 "\n"
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1490
9336 msgid "This calls the external C<grep> program and returns the matching lines."
9337 msgstr ""
9338
9339 #. type: =head2
9340 #: ../src/guestfs-actions.pod:2226
9341 msgid "guestfs_grepi"
9342 msgstr ""
9343
9344 #. type: verbatim
9345 #: ../src/guestfs-actions.pod:2228
9346 #, no-wrap
9347 msgid ""
9348 " char **\n"
9349 " guestfs_grepi (guestfs_h *g,\n"
9350 "                const char *regex,\n"
9351 "                const char *path);\n"
9352 "\n"
9353 msgstr ""
9354
9355 #. type: textblock
9356 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1500
9357 msgid "This calls the external C<grep -i> program and returns the matching lines."
9358 msgstr ""
9359
9360 #. type: =head2
9361 #: ../src/guestfs-actions.pod:2245
9362 msgid "guestfs_grub_install"
9363 msgstr ""
9364
9365 #. type: verbatim
9366 #: ../src/guestfs-actions.pod:2247
9367 #, no-wrap
9368 msgid ""
9369 " int\n"
9370 " guestfs_grub_install (guestfs_h *g,\n"
9371 "                       const char *root,\n"
9372 "                       const char *device);\n"
9373 "\n"
9374 msgstr ""
9375
9376 #. type: textblock
9377 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1510
9378 msgid ""
9379 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
9380 "the root directory being C<root>."
9381 msgstr ""
9382
9383 #. type: textblock
9384 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1513
9385 msgid ""
9386 "Note: If grub-install reports the error \"No suitable drive was found in the "
9387 "generated device map.\" it may be that you need to create a "
9388 "C</boot/grub/device.map> file first that contains the mapping between grub "
9389 "device names and Linux device names.  It is usually sufficient to create a "
9390 "file containing:"
9391 msgstr ""
9392
9393 #. type: verbatim
9394 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1520
9395 #, no-wrap
9396 msgid ""
9397 " (hd0) /dev/vda\n"
9398 "\n"
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1522
9403 msgid "replacing C</dev/vda> with the name of the installation device."
9404 msgstr ""
9405
9406 #. type: textblock
9407 #: ../src/guestfs-actions.pod:2268
9408 msgid "(Added in 1.0.17)"
9409 msgstr ""
9410
9411 #. type: =head2
9412 #: ../src/guestfs-actions.pod:2270
9413 msgid "guestfs_head"
9414 msgstr ""
9415
9416 #. type: verbatim
9417 #: ../src/guestfs-actions.pod:2272
9418 #, no-wrap
9419 msgid ""
9420 " char **\n"
9421 " guestfs_head (guestfs_h *g,\n"
9422 "               const char *path);\n"
9423 "\n"
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1528
9428 msgid ""
9429 "This command returns up to the first 10 lines of a file as a list of "
9430 "strings."
9431 msgstr ""
9432
9433 #. type: =head2
9434 #: ../src/guestfs-actions.pod:2288
9435 msgid "guestfs_head_n"
9436 msgstr ""
9437
9438 #. type: verbatim
9439 #: ../src/guestfs-actions.pod:2290
9440 #, no-wrap
9441 msgid ""
9442 " char **\n"
9443 " guestfs_head_n (guestfs_h *g,\n"
9444 "                 int nrlines,\n"
9445 "                 const char *path);\n"
9446 "\n"
9447 msgstr ""
9448
9449 #. type: textblock
9450 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1538
9451 msgid ""
9452 "If the parameter C<nrlines> is a positive number, this returns the first "
9453 "C<nrlines> lines of the file C<path>."
9454 msgstr ""
9455
9456 #. type: textblock
9457 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1541
9458 msgid ""
9459 "If the parameter C<nrlines> is a negative number, this returns lines from "
9460 "the file C<path>, excluding the last C<nrlines> lines."
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4430
9465 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9466 msgstr ""
9467
9468 #. type: =head2
9469 #: ../src/guestfs-actions.pod:2312
9470 msgid "guestfs_hexdump"
9471 msgstr ""
9472
9473 #. type: verbatim
9474 #: ../src/guestfs-actions.pod:2314
9475 #, no-wrap
9476 msgid ""
9477 " char *\n"
9478 " guestfs_hexdump (guestfs_h *g,\n"
9479 "                  const char *path);\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1553
9485 msgid ""
9486 "This runs C<hexdump -C> on the given C<path>.  The result is the "
9487 "human-readable, canonical hex dump of the file."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6413
9492 msgid "(Added in 1.0.22)"
9493 msgstr ""
9494
9495 #. type: =head2
9496 #: ../src/guestfs-actions.pod:2329
9497 msgid "guestfs_initrd_cat"
9498 msgstr ""
9499
9500 #. type: verbatim
9501 #: ../src/guestfs-actions.pod:2331
9502 #, no-wrap
9503 msgid ""
9504 " char *\n"
9505 " guestfs_initrd_cat (guestfs_h *g,\n"
9506 "                     const char *initrdpath,\n"
9507 "                     const char *filename,\n"
9508 "                     size_t *size_r);\n"
9509 "\n"
9510 msgstr ""
9511
9512 #. type: textblock
9513 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1563
9514 msgid ""
9515 "This command unpacks the file C<filename> from the initrd file called "
9516 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9517 "character."
9518 msgstr ""
9519
9520 #. type: textblock
9521 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1567
9522 msgid ""
9523 "For example, in guestfish you could use the following command to examine the "
9524 "boot script (usually called C</init>)  contained in a Linux initrd or "
9525 "initramfs image:"
9526 msgstr ""
9527
9528 #. type: verbatim
9529 #: ../src/guestfs-actions.pod:2345 ../fish/guestfish-actions.pod:1571
9530 #, no-wrap
9531 msgid ""
9532 " initrd-cat /boot/initrd-<version>.img init\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:2347
9538 msgid "See also C<guestfs_initrd_list>."
9539 msgstr ""
9540
9541 #. type: =head2
9542 #: ../src/guestfs-actions.pod:2358
9543 msgid "guestfs_initrd_list"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../src/guestfs-actions.pod:2360
9548 #, no-wrap
9549 msgid ""
9550 " char **\n"
9551 " guestfs_initrd_list (guestfs_h *g,\n"
9552 "                      const char *path);\n"
9553 "\n"
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1582
9558 msgid "This command lists out files contained in an initrd."
9559 msgstr ""
9560
9561 #. type: textblock
9562 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1584
9563 msgid ""
9564 "The files are listed without any initial C</> character.  The files are "
9565 "listed in the order they appear (not necessarily alphabetical).  Directory "
9566 "names are listed as separate items."
9567 msgstr ""
9568
9569 #. type: textblock
9570 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1588
9571 msgid ""
9572 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9573 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9574 "files)."
9575 msgstr ""
9576
9577 #. type: =head2
9578 #: ../src/guestfs-actions.pod:2380
9579 msgid "guestfs_inotify_add_watch"
9580 msgstr ""
9581
9582 #. type: verbatim
9583 #: ../src/guestfs-actions.pod:2382
9584 #, no-wrap
9585 msgid ""
9586 " int64_t\n"
9587 " guestfs_inotify_add_watch (guestfs_h *g,\n"
9588 "                            const char *path,\n"
9589 "                            int mask);\n"
9590 "\n"
9591 msgstr ""
9592
9593 #. type: textblock
9594 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1596
9595 msgid "Watch C<path> for the events listed in C<mask>."
9596 msgstr ""
9597
9598 #. type: textblock
9599 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1598
9600 msgid ""
9601 "Note that if C<path> is a directory then events within that directory are "
9602 "watched, but this does I<not> happen recursively (in subdirectories)."
9603 msgstr ""
9604
9605 #. type: textblock
9606 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1602
9607 msgid ""
9608 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9609 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9610 msgstr ""
9611
9612 #. type: =head2
9613 #: ../src/guestfs-actions.pod:2401
9614 msgid "guestfs_inotify_close"
9615 msgstr ""
9616
9617 #. type: verbatim
9618 #: ../src/guestfs-actions.pod:2403
9619 #, no-wrap
9620 msgid ""
9621 " int\n"
9622 " guestfs_inotify_close (guestfs_h *g);\n"
9623 "\n"
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../src/guestfs-actions.pod:2406 ../fish/guestfish-actions.pod:1610
9628 msgid ""
9629 "This closes the inotify handle which was previously opened by inotify_init.  "
9630 "It removes all watches, throws away any pending events, and deallocates all "
9631 "resources."
9632 msgstr ""
9633
9634 #. type: =head2
9635 #: ../src/guestfs-actions.pod:2414
9636 msgid "guestfs_inotify_files"
9637 msgstr ""
9638
9639 #. type: verbatim
9640 #: ../src/guestfs-actions.pod:2416
9641 #, no-wrap
9642 msgid ""
9643 " char **\n"
9644 " guestfs_inotify_files (guestfs_h *g);\n"
9645 "\n"
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../src/guestfs-actions.pod:2419
9650 msgid ""
9651 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
9652 "returns a list of pathnames of objects that were touched.  The returned "
9653 "pathnames are sorted and deduplicated."
9654 msgstr ""
9655
9656 #. type: =head2
9657 #: ../src/guestfs-actions.pod:2429
9658 msgid "guestfs_inotify_init"
9659 msgstr ""
9660
9661 #. type: verbatim
9662 #: ../src/guestfs-actions.pod:2431
9663 #, no-wrap
9664 msgid ""
9665 " int\n"
9666 " guestfs_inotify_init (guestfs_h *g,\n"
9667 "                       int maxevents);\n"
9668 "\n"
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1626
9673 msgid ""
9674 "This command creates a new inotify handle.  The inotify subsystem can be "
9675 "used to notify events which happen to objects in the guest filesystem."
9676 msgstr ""
9677
9678 #. type: textblock
9679 #: ../src/guestfs-actions.pod:2439
9680 msgid ""
9681 "C<maxevents> is the maximum number of events which will be queued up between "
9682 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
9683 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
9684 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
9685 "throws away events, but records the fact that it threw them away by setting "
9686 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
9687 "C<guestfs_inotify_read>)."
9688 msgstr ""
9689
9690 #. type: textblock
9691 #: ../src/guestfs-actions.pod:2449
9692 msgid ""
9693 "Before any events are generated, you have to add some watches to the "
9694 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
9695 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
9696 msgstr ""
9697
9698 #. type: textblock
9699 #: ../src/guestfs-actions.pod:2455
9700 msgid ""
9701 "Queued up events should be read periodically by calling "
9702 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
9703 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
9704 "often enough then you risk the internal queue overflowing."
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../src/guestfs-actions.pod:2462
9709 msgid ""
9710 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
9711 "This also removes any watches automatically."
9712 msgstr ""
9713
9714 #. type: textblock
9715 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1657
9716 msgid ""
9717 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9718 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9719 "that there is one global inotify handle per libguestfs instance."
9720 msgstr ""
9721
9722 #. type: =head2
9723 #: ../src/guestfs-actions.pod:2475
9724 msgid "guestfs_inotify_read"
9725 msgstr ""
9726
9727 #. type: verbatim
9728 #: ../src/guestfs-actions.pod:2477
9729 #, no-wrap
9730 msgid ""
9731 " struct guestfs_inotify_event_list *\n"
9732 " guestfs_inotify_read (guestfs_h *g);\n"
9733 "\n"
9734 msgstr ""
9735
9736 #. type: textblock
9737 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1666
9738 msgid ""
9739 "Return the complete queue of events that have happened since the previous "
9740 "read call."
9741 msgstr ""
9742
9743 #. type: textblock
9744 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1669
9745 msgid "If no events have happened, this returns an empty list."
9746 msgstr ""
9747
9748 #. type: textblock
9749 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1671
9750 msgid ""
9751 "I<Note>: In order to make sure that all events have been read, you must call "
9752 "this function repeatedly until it returns an empty list.  The reason is that "
9753 "the call will read events up to the maximum appliance-to-host message size "
9754 "and leave remaining events in the queue."
9755 msgstr ""
9756
9757 #. type: textblock
9758 #: ../src/guestfs-actions.pod:2491
9759 msgid ""
9760 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
9761 "there was an error.  I<The caller must call "
9762 "C<guestfs_free_inotify_event_list> after use>."
9763 msgstr ""
9764
9765 #. type: =head2
9766 #: ../src/guestfs-actions.pod:2497
9767 msgid "guestfs_inotify_rm_watch"
9768 msgstr ""
9769
9770 #. type: verbatim
9771 #: ../src/guestfs-actions.pod:2499
9772 #, no-wrap
9773 msgid ""
9774 " int\n"
9775 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
9776 "                           int wd);\n"
9777 "\n"
9778 msgstr ""
9779
9780 #. type: textblock
9781 #: ../src/guestfs-actions.pod:2503
9782 msgid ""
9783 "Remove a previously defined inotify watch.  See "
9784 "C<guestfs_inotify_add_watch>."
9785 msgstr ""
9786
9787 #. type: =head2
9788 #: ../src/guestfs-actions.pod:2510
9789 msgid "guestfs_inspect_get_arch"
9790 msgstr ""
9791
9792 #. type: verbatim
9793 #: ../src/guestfs-actions.pod:2512
9794 #, no-wrap
9795 msgid ""
9796 " char *\n"
9797 " guestfs_inspect_get_arch (guestfs_h *g,\n"
9798 "                           const char *root);\n"
9799 "\n"
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../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
9804 msgid ""
9805 "This function should only be called with a root device string as returned by "
9806 "C<guestfs_inspect_os>."
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../src/guestfs-actions.pod:2519
9811 msgid ""
9812 "This returns the architecture of the inspected operating system.  The "
9813 "possible return values are listed under C<guestfs_file_architecture>."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1695
9818 msgid ""
9819 "If the architecture could not be determined, then the string C<unknown> is "
9820 "returned."
9821 msgstr ""
9822
9823 #. type: textblock
9824 #: ../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
9825 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9826 msgstr ""
9827
9828 #. type: =head2
9829 #: ../src/guestfs-actions.pod:2533
9830 msgid "guestfs_inspect_get_distro"
9831 msgstr ""
9832
9833 #. type: verbatim
9834 #: ../src/guestfs-actions.pod:2535
9835 #, no-wrap
9836 msgid ""
9837 " char *\n"
9838 " guestfs_inspect_get_distro (guestfs_h *g,\n"
9839 "                             const char *root);\n"
9840 "\n"
9841 msgstr ""
9842
9843 #. type: textblock
9844 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1707
9845 msgid "This returns the distro (distribution) of the inspected operating system."
9846 msgstr ""
9847
9848 #. type: textblock
9849 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1710
9850 msgid "Currently defined distros are:"
9851 msgstr ""
9852
9853 #. type: =item
9854 #: ../src/guestfs-actions.pod:2549 ../fish/guestfish-actions.pod:1714
9855 msgid "\"archlinux\""
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1716
9860 msgid "Arch Linux."
9861 msgstr ""
9862
9863 #. type: =item
9864 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1718
9865 msgid "\"centos\""
9866 msgstr ""
9867
9868 #. type: textblock
9869 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1720
9870 msgid "CentOS."
9871 msgstr ""
9872
9873 #. type: =item
9874 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1722
9875 msgid "\"debian\""
9876 msgstr ""
9877
9878 #. type: textblock
9879 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1724
9880 msgid "Debian."
9881 msgstr ""
9882
9883 #. type: =item
9884 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1726
9885 msgid "\"fedora\""
9886 msgstr ""
9887
9888 #. type: textblock
9889 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1728
9890 msgid "Fedora."
9891 msgstr ""
9892
9893 #. type: =item
9894 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1730
9895 msgid "\"gentoo\""
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1732
9900 msgid "Gentoo."
9901 msgstr ""
9902
9903 #. type: =item
9904 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1734
9905 msgid "\"linuxmint\""
9906 msgstr ""
9907
9908 #. type: textblock
9909 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1736
9910 msgid "Linux Mint."
9911 msgstr ""
9912
9913 #. type: =item
9914 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1738
9915 msgid "\"mandriva\""
9916 msgstr ""
9917
9918 #. type: textblock
9919 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1740
9920 msgid "Mandriva."
9921 msgstr ""
9922
9923 #. type: =item
9924 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1742
9925 msgid "\"meego\""
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1744
9930 msgid "MeeGo."
9931 msgstr ""
9932
9933 #. type: =item
9934 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1746
9935 msgid "\"pardus\""
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1748
9940 msgid "Pardus."
9941 msgstr ""
9942
9943 #. type: =item
9944 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1750
9945 msgid "\"redhat-based\""
9946 msgstr ""
9947
9948 #. type: textblock
9949 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1752
9950 msgid "Some Red Hat-derived distro."
9951 msgstr ""
9952
9953 #. type: =item
9954 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1754
9955 msgid "\"rhel\""
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1756
9960 msgid "Red Hat Enterprise Linux."
9961 msgstr ""
9962
9963 #. type: =item
9964 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1758
9965 msgid "\"scientificlinux\""
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1760
9970 msgid "Scientific Linux."
9971 msgstr ""
9972
9973 #. type: =item
9974 #: ../src/guestfs-actions.pod:2597 ../fish/guestfish-actions.pod:1762
9975 msgid "\"slackware\""
9976 msgstr ""
9977
9978 #. type: textblock
9979 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1764
9980 msgid "Slackware."
9981 msgstr ""
9982
9983 #. type: =item
9984 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1766
9985 msgid "\"ubuntu\""
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1768
9990 msgid "Ubuntu."
9991 msgstr ""
9992
9993 #. type: =item
9994 #: ../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
9995 msgid "\"unknown\""
9996 msgstr ""
9997
9998 #. type: textblock
9999 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1772
10000 msgid "The distro could not be determined."
10001 msgstr ""
10002
10003 #. type: =item
10004 #: ../src/guestfs-actions.pod:2609 ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:1774 ../fish/guestfish-actions.pod:2080
10005 msgid "\"windows\""
10006 msgstr ""
10007
10008 #. type: textblock
10009 #: ../src/guestfs-actions.pod:2611 ../fish/guestfish-actions.pod:1776
10010 msgid ""
10011 "Windows does not have distributions.  This string is returned if the OS type "
10012 "is Windows."
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../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
10017 msgid ""
10018 "Future versions of libguestfs may return other strings here.  The caller "
10019 "should be prepared to handle any string."
10020 msgstr ""
10021
10022 #. type: =head2
10023 #: ../src/guestfs-actions.pod:2626
10024 msgid "guestfs_inspect_get_drive_mappings"
10025 msgstr ""
10026
10027 #. type: verbatim
10028 #: ../src/guestfs-actions.pod:2628
10029 #, no-wrap
10030 msgid ""
10031 " char **\n"
10032 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
10033 "                                     const char *root);\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1793
10039 msgid ""
10040 "This call is useful for Windows which uses a primitive system of assigning "
10041 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10042 "Windows Registry to find out how disks/partitions are mapped to drive "
10043 "letters, and returns a hash table as in the example below:"
10044 msgstr ""
10045
10046 #. type: verbatim
10047 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1799
10048 #, no-wrap
10049 msgid ""
10050 " C      =>     /dev/vda2\n"
10051 " E      =>     /dev/vdb1\n"
10052 " F      =>     /dev/vdc1\n"
10053 "\n"
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../src/guestfs-actions.pod:2645 ../fish/guestfish-actions.pod:1803
10058 msgid ""
10059 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10060 "and just contains the drive letter, without the customary colon separator "
10061 "character."
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1807
10066 msgid ""
10067 "In future we may support other operating systems that also used drive "
10068 "letters, but the keys for those might not be case insensitive and might be "
10069 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10070 "C<h1> etc."
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1812
10075 msgid ""
10076 "For Windows guests, currently only hard drive mappings are returned.  "
10077 "Removable disks (eg. DVD-ROMs) are ignored."
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1815
10082 msgid ""
10083 "For guests that do not use drive mappings, or if the drive mappings could "
10084 "not be determined, this returns an empty hash table."
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../src/guestfs-actions.pod:2660
10089 msgid ""
10090 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10091 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
10092 msgstr ""
10093
10094 #. type: textblock
10095 #: ../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
10096 msgid ""
10097 "This function returns a NULL-terminated array of strings, or NULL if there "
10098 "was an error.  The array of strings will always have length C<2n+1>, where "
10099 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
10100 "caller must free the strings and the array after use>."
10101 msgstr ""
10102
10103 #. type: =head2
10104 #: ../src/guestfs-actions.pod:2670
10105 msgid "guestfs_inspect_get_filesystems"
10106 msgstr ""
10107
10108 #. type: verbatim
10109 #: ../src/guestfs-actions.pod:2672
10110 #, no-wrap
10111 msgid ""
10112 " char **\n"
10113 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
10114 "                                  const char *root);\n"
10115 "\n"
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../src/guestfs-actions.pod:2679 ../fish/guestfish-actions.pod:1829
10120 msgid ""
10121 "This returns a list of all the filesystems that we think are associated with "
10122 "this operating system.  This includes the root filesystem, other ordinary "
10123 "filesystems, and non-mounted devices like swap partitions."
10124 msgstr ""
10125
10126 #. type: textblock
10127 #: ../src/guestfs-actions.pod:2684 ../fish/guestfish-actions.pod:1834
10128 msgid ""
10129 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10130 "to be shared between operating systems."
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../src/guestfs-actions.pod:2687
10135 msgid ""
10136 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10137 "C<guestfs_inspect_get_mountpoints>."
10138 msgstr ""
10139
10140 #. type: =head2
10141 #: ../src/guestfs-actions.pod:2696
10142 msgid "guestfs_inspect_get_format"
10143 msgstr ""
10144
10145 #. type: verbatim
10146 #: ../src/guestfs-actions.pod:2698
10147 #, no-wrap
10148 msgid ""
10149 " char *\n"
10150 " guestfs_inspect_get_format (guestfs_h *g,\n"
10151 "                             const char *root);\n"
10152 "\n"
10153 msgstr ""
10154
10155 #. type: textblock
10156 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1847
10157 msgid ""
10158 "This returns the format of the inspected operating system.  You can use it "
10159 "to detect install images, live CDs and similar."
10160 msgstr ""
10161
10162 #. type: textblock
10163 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1850
10164 msgid "Currently defined formats are:"
10165 msgstr ""
10166
10167 #. type: =item
10168 #: ../src/guestfs-actions.pod:2712 ../fish/guestfish-actions.pod:1854
10169 msgid "\"installed\""
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1856
10174 msgid "This is an installed operating system."
10175 msgstr ""
10176
10177 #. type: =item
10178 #: ../src/guestfs-actions.pod:2716 ../fish/guestfish-actions.pod:1858
10179 msgid "\"installer\""
10180 msgstr ""
10181
10182 #. type: textblock
10183 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1860
10184 msgid ""
10185 "The disk image being inspected is not an installed operating system, but a "
10186 "I<bootable> install disk, live CD, or similar."
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../src/guestfs-actions.pod:2723 ../fish/guestfish-actions.pod:1865
10191 msgid "The format of this disk image is not known."
10192 msgstr ""
10193
10194 #. type: =head2
10195 #: ../src/guestfs-actions.pod:2735
10196 msgid "guestfs_inspect_get_hostname"
10197 msgstr ""
10198
10199 #. type: verbatim
10200 #: ../src/guestfs-actions.pod:2737
10201 #, no-wrap
10202 msgid ""
10203 " char *\n"
10204 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
10205 "                               const char *root);\n"
10206 "\n"
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../src/guestfs-actions.pod:2744 ../fish/guestfish-actions.pod:1881
10211 msgid ""
10212 "This function returns the hostname of the operating system as found by "
10213 "inspection of the guest's configuration files."
10214 msgstr ""
10215
10216 #. type: textblock
10217 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1884
10218 msgid ""
10219 "If the hostname could not be determined, then the string C<unknown> is "
10220 "returned."
10221 msgstr ""
10222
10223 #. type: textblock
10224 #: ../src/guestfs-actions.pod:2755
10225 msgid "(Added in 1.7.9)"
10226 msgstr ""
10227
10228 #. type: =head2
10229 #: ../src/guestfs-actions.pod:2757
10230 msgid "guestfs_inspect_get_major_version"
10231 msgstr ""
10232
10233 #. type: verbatim
10234 #: ../src/guestfs-actions.pod:2759
10235 #, no-wrap
10236 msgid ""
10237 " int\n"
10238 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
10239 "                                    const char *root);\n"
10240 "\n"
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1896
10245 msgid "This returns the major version number of the inspected operating system."
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../src/guestfs-actions.pod:2769 ../fish/guestfish-actions.pod:1899
10250 msgid ""
10251 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10252 "popular public names used by the operating system.  Notably the operating "
10253 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10254 "1).  You can find out the real versions corresponding to releases of Windows "
10255 "by consulting Wikipedia or MSDN."
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1906 ../fish/guestfish-actions.pod:1920
10260 msgid "If the version could not be determined, then C<0> is returned."
10261 msgstr ""
10262
10263 #. type: =head2
10264 #: ../src/guestfs-actions.pod:2784
10265 msgid "guestfs_inspect_get_minor_version"
10266 msgstr ""
10267
10268 #. type: verbatim
10269 #: ../src/guestfs-actions.pod:2786
10270 #, no-wrap
10271 msgid ""
10272 " int\n"
10273 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
10274 "                                    const char *root);\n"
10275 "\n"
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../src/guestfs-actions.pod:2793 ../fish/guestfish-actions.pod:1917
10280 msgid "This returns the minor version number of the inspected operating system."
10281 msgstr ""
10282
10283 #. type: textblock
10284 #: ../src/guestfs-actions.pod:2798
10285 msgid ""
10286 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10287 "C<guestfs_inspect_get_major_version>."
10288 msgstr ""
10289
10290 #. type: =head2
10291 #: ../src/guestfs-actions.pod:2805
10292 msgid "guestfs_inspect_get_mountpoints"
10293 msgstr ""
10294
10295 #. type: verbatim
10296 #: ../src/guestfs-actions.pod:2807
10297 #, no-wrap
10298 msgid ""
10299 " char **\n"
10300 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
10301 "                                  const char *root);\n"
10302 "\n"
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../src/guestfs-actions.pod:2814 ../fish/guestfish-actions.pod:1932
10307 msgid ""
10308 "This returns a hash of where we think the filesystems associated with this "
10309 "operating system should be mounted.  Callers should note that this is at "
10310 "best an educated guess made by reading configuration files such as "
10311 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
10312 "are non-existent or not mountable and callers should be prepared to handle "
10313 "or ignore failures if they try to mount them."
10314 msgstr ""
10315
10316 #. type: textblock
10317 #: ../src/guestfs-actions.pod:2823 ../fish/guestfish-actions.pod:1941
10318 msgid ""
10319 "Each element in the returned hashtable has a key which is the path of the "
10320 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10321 "mounted there (eg. C</dev/sda1>)."
10322 msgstr ""
10323
10324 #. type: textblock
10325 #: ../src/guestfs-actions.pod:2828 ../fish/guestfish-actions.pod:1946
10326 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../src/guestfs-actions.pod:2831
10331 msgid ""
10332 "For operating systems like Windows which still use drive letters, this call "
10333 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10334 "information about the mapping of drive letters to partitions, see "
10335 "C<guestfs_inspect_get_drive_mappings>."
10336 msgstr ""
10337
10338 #. type: textblock
10339 #: ../src/guestfs-actions.pod:2837
10340 msgid ""
10341 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10342 "C<guestfs_inspect_get_filesystems>."
10343 msgstr ""
10344
10345 #. type: =head2
10346 #: ../src/guestfs-actions.pod:2848
10347 msgid "guestfs_inspect_get_package_format"
10348 msgstr ""
10349
10350 #. type: verbatim
10351 #: ../src/guestfs-actions.pod:2850
10352 #, no-wrap
10353 msgid ""
10354 " char *\n"
10355 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
10356 "                                     const char *root);\n"
10357 "\n"
10358 msgstr ""
10359
10360 #. type: textblock
10361 #: ../src/guestfs-actions.pod:2857
10362 msgid ""
10363 "This function and C<guestfs_inspect_get_package_management> return the "
10364 "package format and package management tool used by the inspected operating "
10365 "system.  For example for Fedora these functions would return C<rpm> (package "
10366 "format) and C<yum> (package management)."
10367 msgstr ""
10368
10369 #. type: textblock
10370 #: ../src/guestfs-actions.pod:2863 ../fish/guestfish-actions.pod:1971
10371 msgid ""
10372 "This returns the string C<unknown> if we could not determine the package "
10373 "format I<or> if the operating system does not have a real packaging system "
10374 "(eg. Windows)."
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../src/guestfs-actions.pod:2867 ../fish/guestfish-actions.pod:1975
10379 msgid ""
10380 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
10381 "Future versions of libguestfs may return other strings."
10382 msgstr ""
10383
10384 #. type: textblock
10385 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2906
10386 msgid "(Added in 1.7.5)"
10387 msgstr ""
10388
10389 #. type: =head2
10390 #: ../src/guestfs-actions.pod:2877
10391 msgid "guestfs_inspect_get_package_management"
10392 msgstr ""
10393
10394 #. type: verbatim
10395 #: ../src/guestfs-actions.pod:2879
10396 #, no-wrap
10397 msgid ""
10398 " char *\n"
10399 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
10400 "                                         const char *root);\n"
10401 "\n"
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../src/guestfs-actions.pod:2886
10406 msgid ""
10407 "C<guestfs_inspect_get_package_format> and this function return the package "
10408 "format and package management tool used by the inspected operating system.  "
10409 "For example for Fedora these functions would return C<rpm> (package format) "
10410 "and C<yum> (package management)."
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../src/guestfs-actions.pod:2892 ../fish/guestfish-actions.pod:1993
10415 msgid ""
10416 "This returns the string C<unknown> if we could not determine the package "
10417 "management tool I<or> if the operating system does not have a real packaging "
10418 "system (eg. Windows)."
10419 msgstr ""
10420
10421 #. type: textblock
10422 #: ../src/guestfs-actions.pod:2896 ../fish/guestfish-actions.pod:1997
10423 msgid ""
10424 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10425 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
10426 "libguestfs may return other strings."
10427 msgstr ""
10428
10429 #. type: =head2
10430 #: ../src/guestfs-actions.pod:2908
10431 msgid "guestfs_inspect_get_product_name"
10432 msgstr ""
10433
10434 #. type: verbatim
10435 #: ../src/guestfs-actions.pod:2910
10436 #, no-wrap
10437 msgid ""
10438 " char *\n"
10439 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
10440 "                                   const char *root);\n"
10441 "\n"
10442 msgstr ""
10443
10444 #. type: textblock
10445 #: ../src/guestfs-actions.pod:2917 ../fish/guestfish-actions.pod:2011
10446 msgid ""
10447 "This returns the product name of the inspected operating system.  The "
10448 "product name is generally some freeform string which can be displayed to the "
10449 "user, but should not be parsed by programs."
10450 msgstr ""
10451
10452 #. type: textblock
10453 #: ../src/guestfs-actions.pod:2922 ../fish/guestfish-actions.pod:2016
10454 msgid ""
10455 "If the product name could not be determined, then the string C<unknown> is "
10456 "returned."
10457 msgstr ""
10458
10459 #. type: =head2
10460 #: ../src/guestfs-actions.pod:2932
10461 msgid "guestfs_inspect_get_product_variant"
10462 msgstr ""
10463
10464 #. type: verbatim
10465 #: ../src/guestfs-actions.pod:2934
10466 #, no-wrap
10467 msgid ""
10468 " char *\n"
10469 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
10470 "                                      const char *root);\n"
10471 "\n"
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../src/guestfs-actions.pod:2941 ../fish/guestfish-actions.pod:2028
10476 msgid "This returns the product variant of the inspected operating system."
10477 msgstr ""
10478
10479 #. type: textblock
10480 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2031
10481 msgid ""
10482 "For Windows guests, this returns the contents of the Registry key "
10483 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
10484 "which is usually a string such as C<Client> or C<Server> (other values are "
10485 "possible).  This can be used to distinguish consumer and enterprise versions "
10486 "of Windows that have the same version number (for example, Windows 7 and "
10487 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10488 "the latter is C<Server>)."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2040
10493 msgid ""
10494 "For enterprise Linux guests, in future we intend this to return the product "
10495 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10496 "implemented at present."
10497 msgstr ""
10498
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2044
10501 msgid ""
10502 "If the product variant could not be determined, then the string C<unknown> "
10503 "is returned."
10504 msgstr ""
10505
10506 #. type: textblock
10507 #: ../src/guestfs-actions.pod:2960
10508 msgid ""
10509 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
10510 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
10511 msgstr ""
10512
10513 #. type: =head2
10514 #: ../src/guestfs-actions.pod:2967
10515 msgid "guestfs_inspect_get_roots"
10516 msgstr ""
10517
10518 #. type: verbatim
10519 #: ../src/guestfs-actions.pod:2969
10520 #, no-wrap
10521 msgid ""
10522 " char **\n"
10523 " guestfs_inspect_get_roots (guestfs_h *g);\n"
10524 "\n"
10525 msgstr ""
10526
10527 #. type: textblock
10528 #: ../src/guestfs-actions.pod:2972
10529 msgid ""
10530 "This function is a convenient way to get the list of root devices, as "
10531 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
10532 "the whole inspection process."
10533 msgstr ""
10534
10535 #. type: textblock
10536 #: ../src/guestfs-actions.pod:2976
10537 msgid ""
10538 "This returns an empty list if either no root devices were found or the "
10539 "caller has not called C<guestfs_inspect_os>."
10540 msgstr ""
10541
10542 #. type: textblock
10543 #: ../src/guestfs-actions.pod:2985
10544 msgid "(Added in 1.7.3)"
10545 msgstr ""
10546
10547 #. type: =head2
10548 #: ../src/guestfs-actions.pod:2987
10549 msgid "guestfs_inspect_get_type"
10550 msgstr ""
10551
10552 #. type: verbatim
10553 #: ../src/guestfs-actions.pod:2989
10554 #, no-wrap
10555 msgid ""
10556 " char *\n"
10557 " guestfs_inspect_get_type (guestfs_h *g,\n"
10558 "                           const char *root);\n"
10559 "\n"
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../src/guestfs-actions.pod:2996 ../fish/guestfish-actions.pod:2071
10564 msgid ""
10565 "This returns the type of the inspected operating system.  Currently defined "
10566 "types are:"
10567 msgstr ""
10568
10569 #. type: =item
10570 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2076
10571 msgid "\"linux\""
10572 msgstr ""
10573
10574 #. type: textblock
10575 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2078
10576 msgid "Any Linux-based operating system."
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2082
10581 msgid "Any Microsoft Windows operating system."
10582 msgstr ""
10583
10584 #. type: =item
10585 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2084
10586 msgid "\"freebsd\""
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../src/guestfs-actions.pod:3011 ../fish/guestfish-actions.pod:2086
10591 msgid "FreeBSD."
10592 msgstr ""
10593
10594 #. type: textblock
10595 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2090
10596 msgid "The operating system type could not be determined."
10597 msgstr ""
10598
10599 #. type: =head2
10600 #: ../src/guestfs-actions.pod:3029
10601 msgid "guestfs_inspect_get_windows_current_control_set"
10602 msgstr ""
10603
10604 #. type: verbatim
10605 #: ../src/guestfs-actions.pod:3031
10606 #, no-wrap
10607 msgid ""
10608 " char *\n"
10609 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
10610 "                                                  const char *root);\n"
10611 "\n"
10612 msgstr ""
10613
10614 #. type: textblock
10615 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2106
10616 msgid ""
10617 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10618 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../src/guestfs-actions.pod:3041 ../fish/guestfish-actions.pod:2109
10623 msgid ""
10624 "This call assumes that the guest is Windows and that the Registry could be "
10625 "examined by inspection.  If this is not the case then an error is returned."
10626 msgstr ""
10627
10628 #. type: =head2
10629 #: ../src/guestfs-actions.pod:3050
10630 msgid "guestfs_inspect_get_windows_systemroot"
10631 msgstr ""
10632
10633 #. type: verbatim
10634 #: ../src/guestfs-actions.pod:3052
10635 #, no-wrap
10636 msgid ""
10637 " char *\n"
10638 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
10639 "                                         const char *root);\n"
10640 "\n"
10641 msgstr ""
10642
10643 #. type: textblock
10644 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2122
10645 msgid ""
10646 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10647 "is a directory path such as C</WINDOWS>."
10648 msgstr ""
10649
10650 #. type: textblock
10651 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2125
10652 msgid ""
10653 "This call assumes that the guest is Windows and that the systemroot could be "
10654 "determined by inspection.  If this is not the case then an error is "
10655 "returned."
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../src/guestfs-actions.pod:3071
10660 msgid "(Added in 1.5.25)"
10661 msgstr ""
10662
10663 #. type: =head2
10664 #: ../src/guestfs-actions.pod:3073
10665 msgid "guestfs_inspect_is_live"
10666 msgstr ""
10667
10668 #. type: verbatim
10669 #: ../src/guestfs-actions.pod:3075
10670 #, no-wrap
10671 msgid ""
10672 " int\n"
10673 " guestfs_inspect_is_live (guestfs_h *g,\n"
10674 "                          const char *root);\n"
10675 "\n"
10676 msgstr ""
10677
10678 #. type: textblock
10679 #: ../src/guestfs-actions.pod:3082
10680 msgid ""
10681 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10682 "disk), then this returns true if a live image was detected on the disk."
10683 msgstr ""
10684
10685 #. type: =head2
10686 #: ../src/guestfs-actions.pod:3090
10687 msgid "guestfs_inspect_is_multipart"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../src/guestfs-actions.pod:3092
10692 #, no-wrap
10693 msgid ""
10694 " int\n"
10695 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
10696 "                               const char *root);\n"
10697 "\n"
10698 msgstr ""
10699
10700 #. type: textblock
10701 #: ../src/guestfs-actions.pod:3099
10702 msgid ""
10703 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10704 "disk), then this returns true if the disk is part of a set."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../src/guestfs-actions.pod:3107
10709 msgid "guestfs_inspect_is_netinst"
10710 msgstr ""
10711
10712 #. type: verbatim
10713 #: ../src/guestfs-actions.pod:3109
10714 #, no-wrap
10715 msgid ""
10716 " int\n"
10717 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
10718 "                             const char *root);\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../src/guestfs-actions.pod:3116
10724 msgid ""
10725 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
10726 "disk), then this returns true if the disk is a network installer, ie. not a "
10727 "self-contained install CD but one which is likely to require network access "
10728 "to complete the install."
10729 msgstr ""
10730
10731 #. type: =head2
10732 #: ../src/guestfs-actions.pod:3126
10733 msgid "guestfs_inspect_list_applications"
10734 msgstr ""
10735
10736 #. type: verbatim
10737 #: ../src/guestfs-actions.pod:3128
10738 #, no-wrap
10739 msgid ""
10740 " struct guestfs_application_list *\n"
10741 " guestfs_inspect_list_applications (guestfs_h *g,\n"
10742 "                                    const char *root);\n"
10743 "\n"
10744 msgstr ""
10745
10746 #. type: textblock
10747 #: ../src/guestfs-actions.pod:3135 ../fish/guestfish-actions.pod:2179
10748 msgid "Return the list of applications installed in the operating system."
10749 msgstr ""
10750
10751 #. type: textblock
10752 #: ../src/guestfs-actions.pod:3137
10753 msgid ""
10754 "I<Note:> This call works differently from other parts of the inspection "
10755 "API.  You have to call C<guestfs_inspect_os>, then "
10756 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
10757 "this.  Listing applications is a significantly more difficult operation "
10758 "which requires access to the full filesystem.  Also note that unlike the "
10759 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
10760 "the libguestfs handle, this call actually reads parts of the mounted "
10761 "filesystems during the call."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:3147 ../fish/guestfish-actions.pod:2191
10766 msgid ""
10767 "This returns an empty list if the inspection code was not able to determine "
10768 "the list of applications."
10769 msgstr ""
10770
10771 #. type: textblock
10772 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2194
10773 msgid "The application structure contains the following fields:"
10774 msgstr ""
10775
10776 #. type: =item
10777 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2198
10778 msgid "C<app_name>"
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2200
10783 msgid ""
10784 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10785 "guests, this is the package name."
10786 msgstr ""
10787
10788 #. type: =item
10789 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2203
10790 msgid "C<app_display_name>"
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2205
10795 msgid ""
10796 "The display name of the application, sometimes localized to the install "
10797 "language of the guest operating system."
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2208
10802 msgid ""
10803 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10804 "to display something can use C<app_name> instead."
10805 msgstr ""
10806
10807 #. type: =item
10808 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2211
10809 msgid "C<app_epoch>"
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../src/guestfs-actions.pod:3169 ../fish/guestfish-actions.pod:2213
10814 msgid ""
10815 "For package managers which use epochs, this contains the epoch of the "
10816 "package (an integer).  If unavailable, this is returned as C<0>."
10817 msgstr ""
10818
10819 #. type: =item
10820 #: ../src/guestfs-actions.pod:3172 ../fish/guestfish-actions.pod:2216
10821 msgid "C<app_version>"
10822 msgstr ""
10823
10824 #. type: textblock
10825 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2218
10826 msgid ""
10827 "The version string of the application or package.  If unavailable this is "
10828 "returned as an empty string C<\"\">."
10829 msgstr ""
10830
10831 #. type: =item
10832 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2221
10833 msgid "C<app_release>"
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../src/guestfs-actions.pod:3179 ../fish/guestfish-actions.pod:2223
10838 msgid ""
10839 "The release string of the application or package, for package managers that "
10840 "use this.  If unavailable this is returned as an empty string C<\"\">."
10841 msgstr ""
10842
10843 #. type: =item
10844 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2227
10845 msgid "C<app_install_path>"
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2229
10850 msgid ""
10851 "The installation path of the application (on operating systems such as "
10852 "Windows which use installation paths).  This path is in the format used by "
10853 "the guest operating system, it is not a libguestfs path."
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../src/guestfs-actions.pod:3190 ../fish/guestfish-actions.pod:2234
10858 msgid "If unavailable this is returned as an empty string C<\"\">."
10859 msgstr ""
10860
10861 #. type: =item
10862 #: ../src/guestfs-actions.pod:3192 ../fish/guestfish-actions.pod:2236
10863 msgid "C<app_trans_path>"
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2238
10868 msgid ""
10869 "The install path translated into a libguestfs path.  If unavailable this is "
10870 "returned as an empty string C<\"\">."
10871 msgstr ""
10872
10873 #. type: =item
10874 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2241
10875 msgid "C<app_publisher>"
10876 msgstr ""
10877
10878 #. type: textblock
10879 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2243
10880 msgid ""
10881 "The name of the publisher of the application, for package managers that use "
10882 "this.  If unavailable this is returned as an empty string C<\"\">."
10883 msgstr ""
10884
10885 #. type: =item
10886 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2247
10887 msgid "C<app_url>"
10888 msgstr ""
10889
10890 #. type: textblock
10891 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2249
10892 msgid ""
10893 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10894 "returned as an empty string C<\"\">."
10895 msgstr ""
10896
10897 #. type: =item
10898 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2252
10899 msgid "C<app_source_package>"
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2254
10904 msgid ""
10905 "For packaging systems which support this, the name of the source package.  "
10906 "If unavailable this is returned as an empty string C<\"\">."
10907 msgstr ""
10908
10909 #. type: =item
10910 #: ../src/guestfs-actions.pod:3213 ../fish/guestfish-actions.pod:2257
10911 msgid "C<app_summary>"
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2259
10916 msgid ""
10917 "A short (usually one line) description of the application or package.  If "
10918 "unavailable this is returned as an empty string C<\"\">."
10919 msgstr ""
10920
10921 #. type: =item
10922 #: ../src/guestfs-actions.pod:3218 ../fish/guestfish-actions.pod:2262
10923 msgid "C<app_description>"
10924 msgstr ""
10925
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:3220 ../fish/guestfish-actions.pod:2264
10928 msgid ""
10929 "A longer description of the application or package.  If unavailable this is "
10930 "returned as an empty string C<\"\">."
10931 msgstr ""
10932
10933 #. type: textblock
10934 #: ../src/guestfs-actions.pod:3227
10935 msgid ""
10936 "This function returns a C<struct guestfs_application_list *>, or NULL if "
10937 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
10938 "after use>."
10939 msgstr ""
10940
10941 #. type: textblock
10942 #: ../src/guestfs-actions.pod:3231
10943 msgid "(Added in 1.7.8)"
10944 msgstr ""
10945
10946 #. type: =head2
10947 #: ../src/guestfs-actions.pod:3233
10948 msgid "guestfs_inspect_os"
10949 msgstr ""
10950
10951 #. type: verbatim
10952 #: ../src/guestfs-actions.pod:3235
10953 #, no-wrap
10954 msgid ""
10955 " char **\n"
10956 " guestfs_inspect_os (guestfs_h *g);\n"
10957 "\n"
10958 msgstr ""
10959
10960 #. type: textblock
10961 #: ../src/guestfs-actions.pod:3238 ../fish/guestfish-actions.pod:2275
10962 msgid ""
10963 "This function uses other libguestfs functions and certain heuristics to "
10964 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10965 "for operating systems."
10966 msgstr ""
10967
10968 #. type: textblock
10969 #: ../src/guestfs-actions.pod:3242 ../fish/guestfish-actions.pod:2279
10970 msgid "The list returned is empty if no operating systems were found."
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2281
10975 msgid ""
10976 "If one operating system was found, then this returns a list with a single "
10977 "element, which is the name of the root filesystem of this operating system.  "
10978 "It is also possible for this function to return a list containing more than "
10979 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10980 "element being the root filesystem of one of the operating systems."
10981 msgstr ""
10982
10983 #. type: textblock
10984 #: ../src/guestfs-actions.pod:3251
10985 msgid ""
10986 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
10987 "functions in order to query further information about each operating system, "
10988 "such as the name and version."
10989 msgstr ""
10990
10991 #. type: textblock
10992 #: ../src/guestfs-actions.pod:3256
10993 msgid ""
10994 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
10995 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
10996 "the contents.  This should be called with no disks currently mounted.  The "
10997 "function may also use Augeas, so any existing Augeas handle will be closed."
10998 msgstr ""
10999
11000 #. type: textblock
11001 #: ../src/guestfs-actions.pod:3262 ../fish/guestfish-actions.pod:2299
11002 msgid ""
11003 "This function cannot decrypt encrypted disks.  The caller must do that first "
11004 "(supplying the necessary keys) if the disk is encrypted."
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../src/guestfs-actions.pod:3268 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3620
11009 msgid "See also C<guestfs_list_filesystems>."
11010 msgstr ""
11011
11012 #. type: =head2
11013 #: ../src/guestfs-actions.pod:3276
11014 msgid "guestfs_is_blockdev"
11015 msgstr ""
11016
11017 #. type: verbatim
11018 #: ../src/guestfs-actions.pod:3278
11019 #, no-wrap
11020 msgid ""
11021 " int\n"
11022 " guestfs_is_blockdev (guestfs_h *g,\n"
11023 "                      const char *path);\n"
11024 "\n"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../src/guestfs-actions.pod:3282 ../fish/guestfish-actions.pod:2311
11029 msgid ""
11030 "This returns C<true> if and only if there is a block device with the given "
11031 "C<path> name."
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../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
11036 msgid "See also C<guestfs_stat>."
11037 msgstr ""
11038
11039 #. type: textblock
11040 #: ../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
11041 msgid "(Added in 1.5.10)"
11042 msgstr ""
11043
11044 #. type: =head2
11045 #: ../src/guestfs-actions.pod:3291
11046 msgid "guestfs_is_busy"
11047 msgstr ""
11048
11049 #. type: verbatim
11050 #: ../src/guestfs-actions.pod:3293
11051 #, no-wrap
11052 msgid ""
11053 " int\n"
11054 " guestfs_is_busy (guestfs_h *g);\n"
11055 "\n"
11056 msgstr ""
11057
11058 #. type: textblock
11059 #: ../src/guestfs-actions.pod:3296 ../fish/guestfish-actions.pod:2320
11060 msgid ""
11061 "This returns true iff this handle is busy processing a command (in the "
11062 "C<BUSY> state)."
11063 msgstr ""
11064
11065 #. type: =head2
11066 #: ../src/guestfs-actions.pod:3305
11067 msgid "guestfs_is_chardev"
11068 msgstr ""
11069
11070 #. type: verbatim
11071 #: ../src/guestfs-actions.pod:3307
11072 #, no-wrap
11073 msgid ""
11074 " int\n"
11075 " guestfs_is_chardev (guestfs_h *g,\n"
11076 "                     const char *path);\n"
11077 "\n"
11078 msgstr ""
11079
11080 #. type: textblock
11081 #: ../src/guestfs-actions.pod:3311 ../fish/guestfish-actions.pod:2329
11082 msgid ""
11083 "This returns C<true> if and only if there is a character device with the "
11084 "given C<path> name."
11085 msgstr ""
11086
11087 #. type: =head2
11088 #: ../src/guestfs-actions.pod:3320
11089 msgid "guestfs_is_config"
11090 msgstr ""
11091
11092 #. type: verbatim
11093 #: ../src/guestfs-actions.pod:3322
11094 #, no-wrap
11095 msgid ""
11096 " int\n"
11097 " guestfs_is_config (guestfs_h *g);\n"
11098 "\n"
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2338
11103 msgid ""
11104 "This returns true iff this handle is being configured (in the C<CONFIG> "
11105 "state)."
11106 msgstr ""
11107
11108 #. type: =head2
11109 #: ../src/guestfs-actions.pod:3334
11110 msgid "guestfs_is_dir"
11111 msgstr ""
11112
11113 #. type: verbatim
11114 #: ../src/guestfs-actions.pod:3336
11115 #, no-wrap
11116 msgid ""
11117 " int\n"
11118 " guestfs_is_dir (guestfs_h *g,\n"
11119 "                 const char *path);\n"
11120 "\n"
11121 msgstr ""
11122
11123 #. type: textblock
11124 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2347
11125 msgid ""
11126 "This returns C<true> if and only if there is a directory with the given "
11127 "C<path> name.  Note that it returns false for other objects like files."
11128 msgstr ""
11129
11130 #. type: =head2
11131 #: ../src/guestfs-actions.pod:3350
11132 msgid "guestfs_is_fifo"
11133 msgstr ""
11134
11135 #. type: verbatim
11136 #: ../src/guestfs-actions.pod:3352
11137 #, no-wrap
11138 msgid ""
11139 " int\n"
11140 " guestfs_is_fifo (guestfs_h *g,\n"
11141 "                  const char *path);\n"
11142 "\n"
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../src/guestfs-actions.pod:3356 ../fish/guestfish-actions.pod:2357
11147 msgid ""
11148 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11149 "given C<path> name."
11150 msgstr ""
11151
11152 #. type: =head2
11153 #: ../src/guestfs-actions.pod:3365
11154 msgid "guestfs_is_file"
11155 msgstr ""
11156
11157 #. type: verbatim
11158 #: ../src/guestfs-actions.pod:3367
11159 #, no-wrap
11160 msgid ""
11161 " int\n"
11162 " guestfs_is_file (guestfs_h *g,\n"
11163 "                  const char *path);\n"
11164 "\n"
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2366
11169 msgid ""
11170 "This returns C<true> if and only if there is a regular file with the given "
11171 "C<path> name.  Note that it returns false for other objects like "
11172 "directories."
11173 msgstr ""
11174
11175 #. type: =head2
11176 #: ../src/guestfs-actions.pod:3381
11177 msgid "guestfs_is_launching"
11178 msgstr ""
11179
11180 #. type: verbatim
11181 #: ../src/guestfs-actions.pod:3383
11182 #, no-wrap
11183 msgid ""
11184 " int\n"
11185 " guestfs_is_launching (guestfs_h *g);\n"
11186 "\n"
11187 msgstr ""
11188
11189 #. type: textblock
11190 #: ../src/guestfs-actions.pod:3386 ../fish/guestfish-actions.pod:2376
11191 msgid ""
11192 "This returns true iff this handle is launching the subprocess (in the "
11193 "C<LAUNCHING> state)."
11194 msgstr ""
11195
11196 #. type: =head2
11197 #: ../src/guestfs-actions.pod:3395
11198 msgid "guestfs_is_lv"
11199 msgstr ""
11200
11201 #. type: verbatim
11202 #: ../src/guestfs-actions.pod:3397
11203 #, no-wrap
11204 msgid ""
11205 " int\n"
11206 " guestfs_is_lv (guestfs_h *g,\n"
11207 "                const char *device);\n"
11208 "\n"
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../src/guestfs-actions.pod:3401 ../fish/guestfish-actions.pod:2385
11213 msgid ""
11214 "This command tests whether C<device> is a logical volume, and returns true "
11215 "iff this is the case."
11216 msgstr ""
11217
11218 #. type: =head2
11219 #: ../src/guestfs-actions.pod:3408
11220 msgid "guestfs_is_ready"
11221 msgstr ""
11222
11223 #. type: verbatim
11224 #: ../src/guestfs-actions.pod:3410
11225 #, no-wrap
11226 msgid ""
11227 " int\n"
11228 " guestfs_is_ready (guestfs_h *g);\n"
11229 "\n"
11230 msgstr ""
11231
11232 #. type: textblock
11233 #: ../src/guestfs-actions.pod:3413 ../fish/guestfish-actions.pod:2392
11234 msgid ""
11235 "This returns true iff this handle is ready to accept commands (in the "
11236 "C<READY> state)."
11237 msgstr ""
11238
11239 #. type: =head2
11240 #: ../src/guestfs-actions.pod:3422
11241 msgid "guestfs_is_socket"
11242 msgstr ""
11243
11244 #. type: verbatim
11245 #: ../src/guestfs-actions.pod:3424
11246 #, no-wrap
11247 msgid ""
11248 " int\n"
11249 " guestfs_is_socket (guestfs_h *g,\n"
11250 "                    const char *path);\n"
11251 "\n"
11252 msgstr ""
11253
11254 #. type: textblock
11255 #: ../src/guestfs-actions.pod:3428 ../fish/guestfish-actions.pod:2401
11256 msgid ""
11257 "This returns C<true> if and only if there is a Unix domain socket with the "
11258 "given C<path> name."
11259 msgstr ""
11260
11261 #. type: =head2
11262 #: ../src/guestfs-actions.pod:3437
11263 msgid "guestfs_is_symlink"
11264 msgstr ""
11265
11266 #. type: verbatim
11267 #: ../src/guestfs-actions.pod:3439
11268 #, no-wrap
11269 msgid ""
11270 " int\n"
11271 " guestfs_is_symlink (guestfs_h *g,\n"
11272 "                     const char *path);\n"
11273 "\n"
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../src/guestfs-actions.pod:3443 ../fish/guestfish-actions.pod:2410
11278 msgid ""
11279 "This returns C<true> if and only if there is a symbolic link with the given "
11280 "C<path> name."
11281 msgstr ""
11282
11283 #. type: =head2
11284 #: ../src/guestfs-actions.pod:3452
11285 msgid "guestfs_kill_subprocess"
11286 msgstr ""
11287
11288 #. type: verbatim
11289 #: ../src/guestfs-actions.pod:3454
11290 #, no-wrap
11291 msgid ""
11292 " int\n"
11293 " guestfs_kill_subprocess (guestfs_h *g);\n"
11294 "\n"
11295 msgstr ""
11296
11297 #. type: textblock
11298 #: ../src/guestfs-actions.pod:3457 ../fish/guestfish-actions.pod:2419
11299 msgid "This kills the qemu subprocess.  You should never need to call this."
11300 msgstr ""
11301
11302 #. type: =head2
11303 #: ../src/guestfs-actions.pod:3463
11304 msgid "guestfs_launch"
11305 msgstr ""
11306
11307 #. type: verbatim
11308 #: ../src/guestfs-actions.pod:3465
11309 #, no-wrap
11310 msgid ""
11311 " int\n"
11312 " guestfs_launch (guestfs_h *g);\n"
11313 "\n"
11314 msgstr ""
11315
11316 #. type: textblock
11317 #: ../src/guestfs-actions.pod:3468 ../fish/guestfish-actions.pod:2427
11318 msgid ""
11319 "Internally libguestfs is implemented by running a virtual machine using "
11320 "L<qemu(1)>."
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../src/guestfs-actions.pod:3471 ../fish/guestfish-actions.pod:2430
11325 msgid ""
11326 "You should call this after configuring the handle (eg. adding drives) but "
11327 "before performing any actions."
11328 msgstr ""
11329
11330 #. type: =head2
11331 #: ../src/guestfs-actions.pod:3483
11332 msgid "guestfs_lchown"
11333 msgstr ""
11334
11335 #. type: verbatim
11336 #: ../src/guestfs-actions.pod:3485
11337 #, no-wrap
11338 msgid ""
11339 " int\n"
11340 " guestfs_lchown (guestfs_h *g,\n"
11341 "                 int owner,\n"
11342 "                 int group,\n"
11343 "                 const char *path);\n"
11344 "\n"
11345 msgstr ""
11346
11347 #. type: textblock
11348 #: ../src/guestfs-actions.pod:3491
11349 msgid ""
11350 "Change the file owner to C<owner> and group to C<group>.  This is like "
11351 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
11352 "changed, not the target."
11353 msgstr ""
11354
11355 #. type: =head2
11356 #: ../src/guestfs-actions.pod:3503
11357 msgid "guestfs_lgetxattr"
11358 msgstr ""
11359
11360 #. type: verbatim
11361 #: ../src/guestfs-actions.pod:3505
11362 #, no-wrap
11363 msgid ""
11364 " char *\n"
11365 " guestfs_lgetxattr (guestfs_h *g,\n"
11366 "                    const char *path,\n"
11367 "                    const char *name,\n"
11368 "                    size_t *size_r);\n"
11369 "\n"
11370 msgstr ""
11371
11372 #. type: textblock
11373 #: ../src/guestfs-actions.pod:3511 ../fish/guestfish-actions.pod:2449
11374 msgid ""
11375 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11376 "is a symlink, then this call returns an extended attribute from the symlink."
11377 msgstr ""
11378
11379 #. type: textblock
11380 #: ../src/guestfs-actions.pod:3525
11381 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
11382 msgstr ""
11383
11384 #. type: =head2
11385 #: ../src/guestfs-actions.pod:3533
11386 msgid "guestfs_lgetxattrs"
11387 msgstr ""
11388
11389 #. type: verbatim
11390 #: ../src/guestfs-actions.pod:3535
11391 #, no-wrap
11392 msgid ""
11393 " struct guestfs_xattr_list *\n"
11394 " guestfs_lgetxattrs (guestfs_h *g,\n"
11395 "                     const char *path);\n"
11396 "\n"
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../src/guestfs-actions.pod:3539
11401 msgid ""
11402 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
11403 "then it returns the extended attributes of the link itself."
11404 msgstr ""
11405
11406 #. type: =head2
11407 #: ../src/guestfs-actions.pod:3549
11408 msgid "guestfs_list_devices"
11409 msgstr ""
11410
11411 #. type: verbatim
11412 #: ../src/guestfs-actions.pod:3551
11413 #, no-wrap
11414 msgid ""
11415 " char **\n"
11416 " guestfs_list_devices (guestfs_h *g);\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../src/guestfs-actions.pod:3554 ../fish/guestfish-actions.pod:2477
11422 msgid "List all the block devices."
11423 msgstr ""
11424
11425 #. type: textblock
11426 #: ../src/guestfs-actions.pod:3556 ../fish/guestfish-actions.pod:2479
11427 msgid "The full block device names are returned, eg. C</dev/sda>."
11428 msgstr ""
11429
11430 #. type: =head2
11431 #: ../src/guestfs-actions.pod:3566
11432 msgid "guestfs_list_filesystems"
11433 msgstr ""
11434
11435 #. type: verbatim
11436 #: ../src/guestfs-actions.pod:3568
11437 #, no-wrap
11438 msgid ""
11439 " char **\n"
11440 " guestfs_list_filesystems (guestfs_h *g);\n"
11441 "\n"
11442 msgstr ""
11443
11444 #. type: textblock
11445 #: ../src/guestfs-actions.pod:3571 ../fish/guestfish-actions.pod:2487
11446 msgid ""
11447 "This inspection command looks for filesystems on partitions, block devices "
11448 "and logical volumes, returning a list of devices containing filesystems and "
11449 "their type."
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../src/guestfs-actions.pod:3575 ../fish/guestfish-actions.pod:2491
11454 msgid ""
11455 "The return value is a hash, where the keys are the devices containing "
11456 "filesystems, and the values are the filesystem types.  For example:"
11457 msgstr ""
11458
11459 #. type: verbatim
11460 #: ../src/guestfs-actions.pod:3579 ../fish/guestfish-actions.pod:2495
11461 #, no-wrap
11462 msgid ""
11463 " \"/dev/sda1\" => \"ntfs\"\n"
11464 " \"/dev/sda2\" => \"ext2\"\n"
11465 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11466 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11467 "\n"
11468 msgstr ""
11469
11470 #. type: textblock
11471 #: ../src/guestfs-actions.pod:3584 ../fish/guestfish-actions.pod:2500
11472 msgid ""
11473 "The value can have the special value \"unknown\", meaning the content of the "
11474 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../src/guestfs-actions.pod:3588
11479 msgid ""
11480 "This command runs other libguestfs commands, which might include "
11481 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
11482 "soon after launch and only when nothing is mounted."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../src/guestfs-actions.pod:3592
11487 msgid ""
11488 "Not all of the filesystems returned will be mountable.  In particular, swap "
11489 "partitions are returned in the list.  Also this command does not check that "
11490 "each filesystem found is valid and mountable, and some filesystems might be "
11491 "mountable but require special options.  Filesystems may not all belong to a "
11492 "single logical operating system (use C<guestfs_inspect_os> to look for "
11493 "OSes)."
11494 msgstr ""
11495
11496 #. type: textblock
11497 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:5211
11498 msgid "(Added in 1.5.15)"
11499 msgstr ""
11500
11501 #. type: =head2
11502 #: ../src/guestfs-actions.pod:3608
11503 msgid "guestfs_list_partitions"
11504 msgstr ""
11505
11506 #. type: verbatim
11507 #: ../src/guestfs-actions.pod:3610
11508 #, no-wrap
11509 msgid ""
11510 " char **\n"
11511 " guestfs_list_partitions (guestfs_h *g);\n"
11512 "\n"
11513 msgstr ""
11514
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2520
11517 msgid "List all the partitions detected on all block devices."
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../src/guestfs-actions.pod:3615 ../fish/guestfish-actions.pod:2522
11522 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11523 msgstr ""
11524
11525 #. type: textblock
11526 #: ../src/guestfs-actions.pod:3617
11527 msgid ""
11528 "This does not return logical volumes.  For that you will need to call "
11529 "C<guestfs_lvs>."
11530 msgstr ""
11531
11532 #. type: =head2
11533 #: ../src/guestfs-actions.pod:3628
11534 msgid "guestfs_ll"
11535 msgstr ""
11536
11537 #. type: verbatim
11538 #: ../src/guestfs-actions.pod:3630
11539 #, no-wrap
11540 msgid ""
11541 " char *\n"
11542 " guestfs_ll (guestfs_h *g,\n"
11543 "             const char *directory);\n"
11544 "\n"
11545 msgstr ""
11546
11547 #. type: textblock
11548 #: ../src/guestfs-actions.pod:3634 ../fish/guestfish-actions.pod:2533
11549 msgid ""
11550 "List the files in C<directory> (relative to the root directory, there is no "
11551 "cwd) in the format of 'ls -la'."
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../src/guestfs-actions.pod:3637 ../fish/guestfish-actions.pod:2536
11556 msgid ""
11557 "This command is mostly useful for interactive sessions.  It is I<not> "
11558 "intended that you try to parse the output string."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../src/guestfs-actions.pod:3645
11563 msgid "guestfs_ln"
11564 msgstr ""
11565
11566 #. type: verbatim
11567 #: ../src/guestfs-actions.pod:3647
11568 #, no-wrap
11569 msgid ""
11570 " int\n"
11571 " guestfs_ln (guestfs_h *g,\n"
11572 "             const char *target,\n"
11573 "             const char *linkname);\n"
11574 "\n"
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../src/guestfs-actions.pod:3652 ../fish/guestfish-actions.pod:2543
11579 msgid "This command creates a hard link using the C<ln> command."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../src/guestfs-actions.pod:3658
11584 msgid "guestfs_ln_f"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../src/guestfs-actions.pod:3660
11589 #, no-wrap
11590 msgid ""
11591 " int\n"
11592 " guestfs_ln_f (guestfs_h *g,\n"
11593 "               const char *target,\n"
11594 "               const char *linkname);\n"
11595 "\n"
11596 msgstr ""
11597
11598 #. type: textblock
11599 #: ../src/guestfs-actions.pod:3665 ../fish/guestfish-actions.pod:2549
11600 msgid ""
11601 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
11602 "option removes the link (C<linkname>) if it exists already."
11603 msgstr ""
11604
11605 #. type: =head2
11606 #: ../src/guestfs-actions.pod:3672
11607 msgid "guestfs_ln_s"
11608 msgstr ""
11609
11610 #. type: verbatim
11611 #: ../src/guestfs-actions.pod:3674
11612 #, no-wrap
11613 msgid ""
11614 " int\n"
11615 " guestfs_ln_s (guestfs_h *g,\n"
11616 "               const char *target,\n"
11617 "               const char *linkname);\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../src/guestfs-actions.pod:3679 ../fish/guestfish-actions.pod:2556
11623 msgid "This command creates a symbolic link using the C<ln -s> command."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../src/guestfs-actions.pod:3685
11628 msgid "guestfs_ln_sf"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../src/guestfs-actions.pod:3687
11633 #, no-wrap
11634 msgid ""
11635 " int\n"
11636 " guestfs_ln_sf (guestfs_h *g,\n"
11637 "                const char *target,\n"
11638 "                const char *linkname);\n"
11639 "\n"
11640 msgstr ""
11641
11642 #. type: textblock
11643 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2562
11644 msgid ""
11645 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
11646 "option removes the link (C<linkname>) if it exists already."
11647 msgstr ""
11648
11649 #. type: =head2
11650 #: ../src/guestfs-actions.pod:3699
11651 msgid "guestfs_lremovexattr"
11652 msgstr ""
11653
11654 #. type: verbatim
11655 #: ../src/guestfs-actions.pod:3701
11656 #, no-wrap
11657 msgid ""
11658 " int\n"
11659 " guestfs_lremovexattr (guestfs_h *g,\n"
11660 "                       const char *xattr,\n"
11661 "                       const char *path);\n"
11662 "\n"
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../src/guestfs-actions.pod:3706
11667 msgid ""
11668 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
11669 "link, then it removes an extended attribute of the link itself."
11670 msgstr ""
11671
11672 #. type: =head2
11673 #: ../src/guestfs-actions.pod:3714
11674 msgid "guestfs_ls"
11675 msgstr ""
11676
11677 #. type: verbatim
11678 #: ../src/guestfs-actions.pod:3716
11679 #, no-wrap
11680 msgid ""
11681 " char **\n"
11682 " guestfs_ls (guestfs_h *g,\n"
11683 "             const char *directory);\n"
11684 "\n"
11685 msgstr ""
11686
11687 #. type: textblock
11688 #: ../src/guestfs-actions.pod:3720 ../fish/guestfish-actions.pod:2577
11689 msgid ""
11690 "List the files in C<directory> (relative to the root directory, there is no "
11691 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11692 "shown."
11693 msgstr ""
11694
11695 #. type: textblock
11696 #: ../src/guestfs-actions.pod:3724
11697 msgid ""
11698 "This command is mostly useful for interactive sessions.  Programs should "
11699 "probably use C<guestfs_readdir> instead."
11700 msgstr ""
11701
11702 #. type: =head2
11703 #: ../src/guestfs-actions.pod:3733
11704 msgid "guestfs_lsetxattr"
11705 msgstr ""
11706
11707 #. type: verbatim
11708 #: ../src/guestfs-actions.pod:3735
11709 #, no-wrap
11710 msgid ""
11711 " int\n"
11712 " guestfs_lsetxattr (guestfs_h *g,\n"
11713 "                    const char *xattr,\n"
11714 "                    const char *val,\n"
11715 "                    int vallen,\n"
11716 "                    const char *path);\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../src/guestfs-actions.pod:3742
11722 msgid ""
11723 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
11724 "then it sets an extended attribute of the link itself."
11725 msgstr ""
11726
11727 #. type: =head2
11728 #: ../src/guestfs-actions.pod:3750
11729 msgid "guestfs_lstat"
11730 msgstr ""
11731
11732 #. type: verbatim
11733 #: ../src/guestfs-actions.pod:3752
11734 #, no-wrap
11735 msgid ""
11736 " struct guestfs_stat *\n"
11737 " guestfs_lstat (guestfs_h *g,\n"
11738 "                const char *path);\n"
11739 "\n"
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:6314 ../fish/guestfish-actions.pod:2596 ../fish/guestfish-actions.pod:4265
11744 msgid "Returns file information for the given C<path>."
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../src/guestfs-actions.pod:3758
11749 msgid ""
11750 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
11751 "link, then the link is stat-ed, not the file it refers to."
11752 msgstr ""
11753
11754 #. type: textblock
11755 #: ../src/guestfs-actions.pod:3762 ../fish/guestfish-actions.pod:2602
11756 msgid "This is the same as the C<lstat(2)> system call."
11757 msgstr ""
11758
11759 #. type: textblock
11760 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:6318
11761 msgid ""
11762 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
11763 "error.  I<The caller must call C<guestfs_free_stat> after use>."
11764 msgstr ""
11765
11766 #. type: textblock
11767 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6721
11768 msgid "(Added in 0.9.2)"
11769 msgstr ""
11770
11771 #. type: =head2
11772 #: ../src/guestfs-actions.pod:3770
11773 msgid "guestfs_lstatlist"
11774 msgstr ""
11775
11776 #. type: verbatim
11777 #: ../src/guestfs-actions.pod:3772
11778 #, no-wrap
11779 msgid ""
11780 " struct guestfs_stat_list *\n"
11781 " guestfs_lstatlist (guestfs_h *g,\n"
11782 "                    const char *path,\n"
11783 "                    char *const *names);\n"
11784 "\n"
11785 msgstr ""
11786
11787 #. type: textblock
11788 #: ../src/guestfs-actions.pod:3777
11789 msgid ""
11790 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
11791 "files, where all files are in the directory C<path>.  C<names> is the list "
11792 "of files from this directory."
11793 msgstr ""
11794
11795 #. type: textblock
11796 #: ../src/guestfs-actions.pod:3781 ../fish/guestfish-actions.pod:2612
11797 msgid ""
11798 "On return you get a list of stat structs, with a one-to-one correspondence "
11799 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11800 "then the C<ino> field of that structure is set to C<-1>."
11801 msgstr ""
11802
11803 #. type: textblock
11804 #: ../src/guestfs-actions.pod:3786
11805 msgid ""
11806 "This call is intended for programs that want to efficiently list a directory "
11807 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
11808 "for a similarly efficient call for getting extended attributes.  Very long "
11809 "directory listings might cause the protocol message size to be exceeded, "
11810 "causing this call to fail.  The caller must split up such requests into "
11811 "smaller groups of names."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../src/guestfs-actions.pod:3794
11816 msgid ""
11817 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
11818 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
11819 msgstr ""
11820
11821 #. type: =head2
11822 #: ../src/guestfs-actions.pod:3800
11823 msgid "guestfs_luks_add_key"
11824 msgstr ""
11825
11826 #. type: verbatim
11827 #: ../src/guestfs-actions.pod:3802
11828 #, no-wrap
11829 msgid ""
11830 " int\n"
11831 " guestfs_luks_add_key (guestfs_h *g,\n"
11832 "                       const char *device,\n"
11833 "                       const char *key,\n"
11834 "                       const char *newkey,\n"
11835 "                       int keyslot);\n"
11836 "\n"
11837 msgstr ""
11838
11839 #. type: textblock
11840 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2629
11841 msgid ""
11842 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11843 "existing key, and is used to access the device.  C<newkey> is the new key to "
11844 "add.  C<keyslot> is the key slot that will be replaced."
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../src/guestfs-actions.pod:3814
11849 msgid ""
11850 "Note that if C<keyslot> already contains a key, then this command will "
11851 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
11852 msgstr ""
11853
11854 #. type: textblock
11855 #: ../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
11856 msgid ""
11857 "This function takes a key or passphrase parameter which could contain "
11858 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
11859 "information."
11860 msgstr ""
11861
11862 #. type: textblock
11863 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3907
11864 msgid "(Added in 1.5.2)"
11865 msgstr ""
11866
11867 #. type: =head2
11868 #: ../src/guestfs-actions.pod:3826
11869 msgid "guestfs_luks_close"
11870 msgstr ""
11871
11872 #. type: verbatim
11873 #: ../src/guestfs-actions.pod:3828
11874 #, no-wrap
11875 msgid ""
11876 " int\n"
11877 " guestfs_luks_close (guestfs_h *g,\n"
11878 "                     const char *device);\n"
11879 "\n"
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../src/guestfs-actions.pod:3832
11884 msgid ""
11885 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
11886 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
11887 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11888 "underlying block device."
11889 msgstr ""
11890
11891 #. type: textblock
11892 #: ../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
11893 msgid "(Added in 1.5.1)"
11894 msgstr ""
11895
11896 #. type: =head2
11897 #: ../src/guestfs-actions.pod:3842
11898 msgid "guestfs_luks_format"
11899 msgstr ""
11900
11901 #. type: verbatim
11902 #: ../src/guestfs-actions.pod:3844
11903 #, no-wrap
11904 msgid ""
11905 " int\n"
11906 " guestfs_luks_format (guestfs_h *g,\n"
11907 "                      const char *device,\n"
11908 "                      const char *key,\n"
11909 "                      int keyslot);\n"
11910 "\n"
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../src/guestfs-actions.pod:3850 ../fish/guestfish-actions.pod:2655
11915 msgid ""
11916 "This command erases existing data on C<device> and formats the device as a "
11917 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11918 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../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
11923 msgid ""
11924 "B<This command is dangerous.  Without careful use you can easily destroy all "
11925 "your data>."
11926 msgstr ""
11927
11928 #. type: =head2
11929 #: ../src/guestfs-actions.pod:3866
11930 msgid "guestfs_luks_format_cipher"
11931 msgstr ""
11932
11933 #. type: verbatim
11934 #: ../src/guestfs-actions.pod:3868
11935 #, no-wrap
11936 msgid ""
11937 " int\n"
11938 " guestfs_luks_format_cipher (guestfs_h *g,\n"
11939 "                             const char *device,\n"
11940 "                             const char *key,\n"
11941 "                             int keyslot,\n"
11942 "                             const char *cipher);\n"
11943 "\n"
11944 msgstr ""
11945
11946 #. type: textblock
11947 #: ../src/guestfs-actions.pod:3875
11948 msgid ""
11949 "This command is the same as C<guestfs_luks_format> but it also allows you to "
11950 "set the C<cipher> used."
11951 msgstr ""
11952
11953 #. type: =head2
11954 #: ../src/guestfs-actions.pod:3889
11955 msgid "guestfs_luks_kill_slot"
11956 msgstr ""
11957
11958 #. type: verbatim
11959 #: ../src/guestfs-actions.pod:3891
11960 #, no-wrap
11961 msgid ""
11962 " int\n"
11963 " guestfs_luks_kill_slot (guestfs_h *g,\n"
11964 "                         const char *device,\n"
11965 "                         const char *key,\n"
11966 "                         int keyslot);\n"
11967 "\n"
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../src/guestfs-actions.pod:3897 ../fish/guestfish-actions.pod:2683
11972 msgid ""
11973 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11974 "device C<device>.  C<key> must be one of the I<other> keys."
11975 msgstr ""
11976
11977 #. type: =head2
11978 #: ../src/guestfs-actions.pod:3909
11979 msgid "guestfs_luks_open"
11980 msgstr ""
11981
11982 #. type: verbatim
11983 #: ../src/guestfs-actions.pod:3911
11984 #, no-wrap
11985 msgid ""
11986 " int\n"
11987 " guestfs_luks_open (guestfs_h *g,\n"
11988 "                    const char *device,\n"
11989 "                    const char *key,\n"
11990 "                    const char *mapname);\n"
11991 "\n"
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:2694
11996 msgid ""
11997 "This command opens a block device which has been encrypted according to the "
11998 "Linux Unified Key Setup (LUKS) standard."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../src/guestfs-actions.pod:3920 ../fish/guestfish-actions.pod:2697
12003 msgid "C<device> is the encrypted block device or partition."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2699
12008 msgid ""
12009 "The caller must supply one of the keys associated with the LUKS block "
12010 "device, in the C<key> parameter."
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../src/guestfs-actions.pod:3925 ../fish/guestfish-actions.pod:2702
12015 msgid ""
12016 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12017 "writes to this block device are decrypted from and encrypted to the "
12018 "underlying C<device> respectively."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../src/guestfs-actions.pod:3929
12023 msgid ""
12024 "If this block device contains LVM volume groups, then calling "
12025 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
12026 "visible."
12027 msgstr ""
12028
12029 #. type: =head2
12030 #: ../src/guestfs-actions.pod:3941
12031 msgid "guestfs_luks_open_ro"
12032 msgstr ""
12033
12034 #. type: verbatim
12035 #: ../src/guestfs-actions.pod:3943
12036 #, no-wrap
12037 msgid ""
12038 " int\n"
12039 " guestfs_luks_open_ro (guestfs_h *g,\n"
12040 "                       const char *device,\n"
12041 "                       const char *key,\n"
12042 "                       const char *mapname);\n"
12043 "\n"
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../src/guestfs-actions.pod:3949
12048 msgid ""
12049 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
12050 "created."
12051 msgstr ""
12052
12053 #. type: =head2
12054 #: ../src/guestfs-actions.pod:3960
12055 msgid "guestfs_lvcreate"
12056 msgstr ""
12057
12058 #. type: verbatim
12059 #: ../src/guestfs-actions.pod:3962
12060 #, no-wrap
12061 msgid ""
12062 " int\n"
12063 " guestfs_lvcreate (guestfs_h *g,\n"
12064 "                   const char *logvol,\n"
12065 "                   const char *volgroup,\n"
12066 "                   int mbytes);\n"
12067 "\n"
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../src/guestfs-actions.pod:3968 ../fish/guestfish-actions.pod:2727
12072 msgid ""
12073 "This creates an LVM logical volume called C<logvol> on the volume group "
12074 "C<volgroup>, with C<size> megabytes."
12075 msgstr ""
12076
12077 #. type: =head2
12078 #: ../src/guestfs-actions.pod:3975
12079 msgid "guestfs_lvm_canonical_lv_name"
12080 msgstr ""
12081
12082 #. type: verbatim
12083 #: ../src/guestfs-actions.pod:3977
12084 #, no-wrap
12085 msgid ""
12086 " char *\n"
12087 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
12088 "                                const char *lvname);\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2734
12094 msgid ""
12095 "This converts alternative naming schemes for LVs that you might find to the "
12096 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
12097 "C</dev/VG/LV>."
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../src/guestfs-actions.pod:3985 ../fish/guestfish-actions.pod:2738
12102 msgid ""
12103 "This command returns an error if the C<lvname> parameter does not refer to a "
12104 "logical volume."
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../src/guestfs-actions.pod:3988
12109 msgid "See also C<guestfs_is_lv>."
12110 msgstr ""
12111
12112 #. type: textblock
12113 #: ../src/guestfs-actions.pod:3993
12114 msgid "(Added in 1.5.24)"
12115 msgstr ""
12116
12117 #. type: =head2
12118 #: ../src/guestfs-actions.pod:3995
12119 msgid "guestfs_lvm_clear_filter"
12120 msgstr ""
12121
12122 #. type: verbatim
12123 #: ../src/guestfs-actions.pod:3997
12124 #, no-wrap
12125 msgid ""
12126 " int\n"
12127 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
12128 "\n"
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../src/guestfs-actions.pod:4000
12133 msgid ""
12134 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
12135 "see every block device."
12136 msgstr ""
12137
12138 #. type: textblock
12139 #: ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2781
12140 msgid "This command also clears the LVM cache and performs a volume group scan."
12141 msgstr ""
12142
12143 #. type: =head2
12144 #: ../src/guestfs-actions.pod:4010
12145 msgid "guestfs_lvm_remove_all"
12146 msgstr ""
12147
12148 #. type: verbatim
12149 #: ../src/guestfs-actions.pod:4012
12150 #, no-wrap
12151 msgid ""
12152 " int\n"
12153 " guestfs_lvm_remove_all (guestfs_h *g);\n"
12154 "\n"
12155 msgstr ""
12156
12157 #. type: textblock
12158 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2757
12159 msgid ""
12160 "This command removes all LVM logical volumes, volume groups and physical "
12161 "volumes."
12162 msgstr ""
12163
12164 #. type: =head2
12165 #: ../src/guestfs-actions.pod:4025
12166 msgid "guestfs_lvm_set_filter"
12167 msgstr ""
12168
12169 #. type: verbatim
12170 #: ../src/guestfs-actions.pod:4027
12171 #, no-wrap
12172 msgid ""
12173 " int\n"
12174 " guestfs_lvm_set_filter (guestfs_h *g,\n"
12175 "                         char *const *devices);\n"
12176 "\n"
12177 msgstr ""
12178
12179 #. type: textblock
12180 #: ../src/guestfs-actions.pod:4031 ../fish/guestfish-actions.pod:2767
12181 msgid ""
12182 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12183 "block devices in the list C<devices>, and will ignore all other attached "
12184 "block devices."
12185 msgstr ""
12186
12187 #. type: textblock
12188 #: ../src/guestfs-actions.pod:4035 ../fish/guestfish-actions.pod:2771
12189 msgid ""
12190 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12191 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12192 "there are two types of duplication possible: either cloned PVs/VGs which "
12193 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12194 "same name.  In normal operation you cannot create this situation, but you "
12195 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12196 "inside the LVM metadata."
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2784
12201 msgid "You can filter whole block devices or individual partitions."
12202 msgstr ""
12203
12204 #. type: textblock
12205 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2786
12206 msgid ""
12207 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12208 "filesystem), even if you are not filtering out that VG."
12209 msgstr ""
12210
12211 #. type: =head2
12212 #: ../src/guestfs-actions.pod:4058
12213 msgid "guestfs_lvremove"
12214 msgstr ""
12215
12216 #. type: verbatim
12217 #: ../src/guestfs-actions.pod:4060
12218 #, no-wrap
12219 msgid ""
12220 " int\n"
12221 " guestfs_lvremove (guestfs_h *g,\n"
12222 "                   const char *device);\n"
12223 "\n"
12224 msgstr ""
12225
12226 #. type: textblock
12227 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:2794
12228 msgid ""
12229 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12230 "LV, such as C</dev/VG/LV>."
12231 msgstr ""
12232
12233 #. type: textblock
12234 #: ../src/guestfs-actions.pod:4067 ../fish/guestfish-actions.pod:2797
12235 msgid ""
12236 "You can also remove all LVs in a volume group by specifying the VG name, "
12237 "C</dev/VG>."
12238 msgstr ""
12239
12240 #. type: textblock
12241 #: ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:7097
12242 msgid "(Added in 1.0.13)"
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../src/guestfs-actions.pod:4074
12247 msgid "guestfs_lvrename"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../src/guestfs-actions.pod:4076
12252 #, no-wrap
12253 msgid ""
12254 " int\n"
12255 " guestfs_lvrename (guestfs_h *g,\n"
12256 "                   const char *logvol,\n"
12257 "                   const char *newlogvol);\n"
12258 "\n"
12259 msgstr ""
12260
12261 #. type: textblock
12262 #: ../src/guestfs-actions.pod:4081 ../fish/guestfish-actions.pod:2804
12263 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../src/guestfs-actions.pod:4085 ../src/guestfs-actions.pod:7110
12268 msgid "(Added in 1.0.83)"
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../src/guestfs-actions.pod:4087
12273 msgid "guestfs_lvresize"
12274 msgstr ""
12275
12276 #. type: verbatim
12277 #: ../src/guestfs-actions.pod:4089
12278 #, no-wrap
12279 msgid ""
12280 " int\n"
12281 " guestfs_lvresize (guestfs_h *g,\n"
12282 "                   const char *device,\n"
12283 "                   int mbytes);\n"
12284 "\n"
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../src/guestfs-actions.pod:4094 ../fish/guestfish-actions.pod:2810
12289 msgid ""
12290 "This resizes (expands or shrinks) an existing LVM logical volume to "
12291 "C<mbytes>.  When reducing, data in the reduced part is lost."
12292 msgstr ""
12293
12294 #. type: =head2
12295 #: ../src/guestfs-actions.pod:4102
12296 msgid "guestfs_lvresize_free"
12297 msgstr ""
12298
12299 #. type: verbatim
12300 #: ../src/guestfs-actions.pod:4104
12301 #, no-wrap
12302 msgid ""
12303 " int\n"
12304 " guestfs_lvresize_free (guestfs_h *g,\n"
12305 "                        const char *lv,\n"
12306 "                        int percent);\n"
12307 "\n"
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../src/guestfs-actions.pod:4109 ../fish/guestfish-actions.pod:2818
12312 msgid ""
12313 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12314 "remaining free space in the volume group.  Commonly you would call this with "
12315 "pc = 100 which expands the logical volume as much as possible, using all "
12316 "remaining free space in the volume group."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../src/guestfs-actions.pod:4117
12321 msgid "(Added in 1.3.3)"
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../src/guestfs-actions.pod:4119
12326 msgid "guestfs_lvs"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../src/guestfs-actions.pod:4121
12331 #, no-wrap
12332 msgid ""
12333 " char **\n"
12334 " guestfs_lvs (guestfs_h *g);\n"
12335 "\n"
12336 msgstr ""
12337
12338 #. type: textblock
12339 #: ../src/guestfs-actions.pod:4124 ../fish/guestfish-actions.pod:2828
12340 msgid ""
12341 "List all the logical volumes detected.  This is the equivalent of the "
12342 "L<lvs(8)> command."
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../src/guestfs-actions.pod:4127 ../fish/guestfish-actions.pod:2831
12347 msgid ""
12348 "This returns a list of the logical volume device names "
12349 "(eg. C</dev/VolGroup00/LogVol00>)."
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../src/guestfs-actions.pod:4130
12354 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
12355 msgstr ""
12356
12357 #. type: =head2
12358 #: ../src/guestfs-actions.pod:4138
12359 msgid "guestfs_lvs_full"
12360 msgstr ""
12361
12362 #. type: verbatim
12363 #: ../src/guestfs-actions.pod:4140
12364 #, no-wrap
12365 msgid ""
12366 " struct guestfs_lvm_lv_list *\n"
12367 " guestfs_lvs_full (guestfs_h *g);\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../src/guestfs-actions.pod:4143 ../fish/guestfish-actions.pod:2840
12373 msgid ""
12374 "List all the logical volumes detected.  This is the equivalent of the "
12375 "L<lvs(8)> command.  The \"full\" version includes all fields."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../src/guestfs-actions.pod:4146
12380 msgid ""
12381 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
12382 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
12383 "use>."
12384 msgstr ""
12385
12386 #. type: =head2
12387 #: ../src/guestfs-actions.pod:4152
12388 msgid "guestfs_lvuuid"
12389 msgstr ""
12390
12391 #. type: verbatim
12392 #: ../src/guestfs-actions.pod:4154
12393 #, no-wrap
12394 msgid ""
12395 " char *\n"
12396 " guestfs_lvuuid (guestfs_h *g,\n"
12397 "                 const char *device);\n"
12398 "\n"
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:2847
12403 msgid "This command returns the UUID of the LVM LV C<device>."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../src/guestfs-actions.pod:4165
12408 msgid "guestfs_lxattrlist"
12409 msgstr ""
12410
12411 #. type: verbatim
12412 #: ../src/guestfs-actions.pod:4167
12413 #, no-wrap
12414 msgid ""
12415 " struct guestfs_xattr_list *\n"
12416 " guestfs_lxattrlist (guestfs_h *g,\n"
12417 "                     const char *path,\n"
12418 "                     char *const *names);\n"
12419 "\n"
12420 msgstr ""
12421
12422 #. type: textblock
12423 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:2853
12424 msgid ""
12425 "This call allows you to get the extended attributes of multiple files, where "
12426 "all files are in the directory C<path>.  C<names> is the list of files from "
12427 "this directory."
12428 msgstr ""
12429
12430 #. type: textblock
12431 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2857
12432 msgid ""
12433 "On return you get a flat list of xattr structs which must be interpreted "
12434 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12435 "C<attrval> in this struct is zero-length to indicate there was an error "
12436 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12437 "number (the number of following attributes for this file, which could be "
12438 "C<\"0\">).  Then after the first xattr struct are the zero or more "
12439 "attributes for the first named file.  This repeats for the second and "
12440 "subsequent files."
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../src/guestfs-actions.pod:4186
12445 msgid ""
12446 "This call is intended for programs that want to efficiently list a directory "
12447 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
12448 "a similarly efficient call for getting standard stats.  Very long directory "
12449 "listings might cause the protocol message size to be exceeded, causing this "
12450 "call to fail.  The caller must split up such requests into smaller groups of "
12451 "names."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../src/guestfs-actions.pod:4200
12456 msgid "guestfs_mkdir"
12457 msgstr ""
12458
12459 #. type: verbatim
12460 #: ../src/guestfs-actions.pod:4202
12461 #, no-wrap
12462 msgid ""
12463 " int\n"
12464 " guestfs_mkdir (guestfs_h *g,\n"
12465 "                const char *path);\n"
12466 "\n"
12467 msgstr ""
12468
12469 #. type: textblock
12470 #: ../src/guestfs-actions.pod:4206 ../fish/guestfish-actions.pod:2879
12471 msgid "Create a directory named C<path>."
12472 msgstr ""
12473
12474 #. type: =head2
12475 #: ../src/guestfs-actions.pod:4212
12476 msgid "guestfs_mkdir_mode"
12477 msgstr ""
12478
12479 #. type: verbatim
12480 #: ../src/guestfs-actions.pod:4214
12481 #, no-wrap
12482 msgid ""
12483 " int\n"
12484 " guestfs_mkdir_mode (guestfs_h *g,\n"
12485 "                     const char *path,\n"
12486 "                     int mode);\n"
12487 "\n"
12488 msgstr ""
12489
12490 #. type: textblock
12491 #: ../src/guestfs-actions.pod:4219 ../fish/guestfish-actions.pod:2885
12492 msgid ""
12493 "This command creates a directory, setting the initial permissions of the "
12494 "directory to C<mode>."
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../src/guestfs-actions.pod:4222 ../fish/guestfish-actions.pod:2888
12499 msgid ""
12500 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12501 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12502 "other ways."
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../src/guestfs-actions.pod:4226
12507 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
12508 msgstr ""
12509
12510 #. type: =head2
12511 #: ../src/guestfs-actions.pod:4232
12512 msgid "guestfs_mkdir_p"
12513 msgstr ""
12514
12515 #. type: verbatim
12516 #: ../src/guestfs-actions.pod:4234
12517 #, no-wrap
12518 msgid ""
12519 " int\n"
12520 " guestfs_mkdir_p (guestfs_h *g,\n"
12521 "                  const char *path);\n"
12522 "\n"
12523 msgstr ""
12524
12525 #. type: textblock
12526 #: ../src/guestfs-actions.pod:4238 ../fish/guestfish-actions.pod:2898
12527 msgid ""
12528 "Create a directory named C<path>, creating any parent directories as "
12529 "necessary.  This is like the C<mkdir -p> shell command."
12530 msgstr ""
12531
12532 #. type: =head2
12533 #: ../src/guestfs-actions.pod:4245
12534 msgid "guestfs_mkdtemp"
12535 msgstr ""
12536
12537 #. type: verbatim
12538 #: ../src/guestfs-actions.pod:4247
12539 #, no-wrap
12540 msgid ""
12541 " char *\n"
12542 " guestfs_mkdtemp (guestfs_h *g,\n"
12543 "                  const char *template);\n"
12544 "\n"
12545 msgstr ""
12546
12547 #. type: textblock
12548 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2905
12549 msgid ""
12550 "This command creates a temporary directory.  The C<template> parameter "
12551 "should be a full pathname for the temporary directory name with the final "
12552 "six characters being \"XXXXXX\"."
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../src/guestfs-actions.pod:4256 ../fish/guestfish-actions.pod:2910
12557 msgid ""
12558 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12559 "being suitable for Windows filesystems."
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../src/guestfs-actions.pod:4259 ../fish/guestfish-actions.pod:2913
12564 msgid "The name of the temporary directory that was created is returned."
12565 msgstr ""
12566
12567 #. type: textblock
12568 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2916
12569 msgid "The temporary directory is created with mode 0700 and is owned by root."
12570 msgstr ""
12571
12572 #. type: textblock
12573 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2919
12574 msgid ""
12575 "The caller is responsible for deleting the temporary directory and its "
12576 "contents after use."
12577 msgstr ""
12578
12579 #. type: textblock
12580 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2922
12581 msgid "See also: L<mkdtemp(3)>"
12582 msgstr ""
12583
12584 #. type: =head2
12585 #: ../src/guestfs-actions.pod:4275
12586 msgid "guestfs_mke2fs_J"
12587 msgstr ""
12588
12589 #. type: verbatim
12590 #: ../src/guestfs-actions.pod:4277
12591 #, no-wrap
12592 msgid ""
12593 " int\n"
12594 " guestfs_mke2fs_J (guestfs_h *g,\n"
12595 "                   const char *fstype,\n"
12596 "                   int blocksize,\n"
12597 "                   const char *device,\n"
12598 "                   const char *journal);\n"
12599 "\n"
12600 msgstr ""
12601
12602 #. type: textblock
12603 #: ../src/guestfs-actions.pod:4284 ../fish/guestfish-actions.pod:2928
12604 msgid ""
12605 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12606 "C<journal>.  It is equivalent to the command:"
12607 msgstr ""
12608
12609 #. type: verbatim
12610 #: ../src/guestfs-actions.pod:4288 ../fish/guestfish-actions.pod:2932
12611 #, no-wrap
12612 msgid ""
12613 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12614 "\n"
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../src/guestfs-actions.pod:4290
12619 msgid "See also C<guestfs_mke2journal>."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../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
12624 msgid "(Added in 1.0.68)"
12625 msgstr ""
12626
12627 #. type: =head2
12628 #: ../src/guestfs-actions.pod:4296
12629 msgid "guestfs_mke2fs_JL"
12630 msgstr ""
12631
12632 #. type: verbatim
12633 #: ../src/guestfs-actions.pod:4298
12634 #, no-wrap
12635 msgid ""
12636 " int\n"
12637 " guestfs_mke2fs_JL (guestfs_h *g,\n"
12638 "                    const char *fstype,\n"
12639 "                    int blocksize,\n"
12640 "                    const char *device,\n"
12641 "                    const char *label);\n"
12642 "\n"
12643 msgstr ""
12644
12645 #. type: textblock
12646 #: ../src/guestfs-actions.pod:4305 ../fish/guestfish-actions.pod:2940
12647 msgid ""
12648 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12649 "the journal labeled C<label>."
12650 msgstr ""
12651
12652 #. type: textblock
12653 #: ../src/guestfs-actions.pod:4308
12654 msgid "See also C<guestfs_mke2journal_L>."
12655 msgstr ""
12656
12657 #. type: =head2
12658 #: ../src/guestfs-actions.pod:4314
12659 msgid "guestfs_mke2fs_JU"
12660 msgstr ""
12661
12662 #. type: verbatim
12663 #: ../src/guestfs-actions.pod:4316
12664 #, no-wrap
12665 msgid ""
12666 " int\n"
12667 " guestfs_mke2fs_JU (guestfs_h *g,\n"
12668 "                    const char *fstype,\n"
12669 "                    int blocksize,\n"
12670 "                    const char *device,\n"
12671 "                    const char *uuid);\n"
12672 "\n"
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:2949
12677 msgid ""
12678 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12679 "the journal with UUID C<uuid>."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../src/guestfs-actions.pod:4326
12684 msgid "See also C<guestfs_mke2journal_U>."
12685 msgstr ""
12686
12687 #. type: =head2
12688 #: ../src/guestfs-actions.pod:4332
12689 msgid "guestfs_mke2journal"
12690 msgstr ""
12691
12692 #. type: verbatim
12693 #: ../src/guestfs-actions.pod:4334
12694 #, no-wrap
12695 msgid ""
12696 " int\n"
12697 " guestfs_mke2journal (guestfs_h *g,\n"
12698 "                      int blocksize,\n"
12699 "                      const char *device);\n"
12700 "\n"
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../src/guestfs-actions.pod:4339 ../fish/guestfish-actions.pod:2958
12705 msgid ""
12706 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12707 "command:"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../src/guestfs-actions.pod:4342 ../fish/guestfish-actions.pod:2961
12712 #, no-wrap
12713 msgid ""
12714 " mke2fs -O journal_dev -b blocksize device\n"
12715 "\n"
12716 msgstr ""
12717
12718 #. type: =head2
12719 #: ../src/guestfs-actions.pod:4348
12720 msgid "guestfs_mke2journal_L"
12721 msgstr ""
12722
12723 #. type: verbatim
12724 #: ../src/guestfs-actions.pod:4350
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_mke2journal_L (guestfs_h *g,\n"
12729 "                        int blocksize,\n"
12730 "                        const char *label,\n"
12731 "                        const char *device);\n"
12732 "\n"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../src/guestfs-actions.pod:4356 ../fish/guestfish-actions.pod:2967
12737 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12738 msgstr ""
12739
12740 #. type: =head2
12741 #: ../src/guestfs-actions.pod:4362
12742 msgid "guestfs_mke2journal_U"
12743 msgstr ""
12744
12745 #. type: verbatim
12746 #: ../src/guestfs-actions.pod:4364
12747 #, no-wrap
12748 msgid ""
12749 " int\n"
12750 " guestfs_mke2journal_U (guestfs_h *g,\n"
12751 "                        int blocksize,\n"
12752 "                        const char *uuid,\n"
12753 "                        const char *device);\n"
12754 "\n"
12755 msgstr ""
12756
12757 #. type: textblock
12758 #: ../src/guestfs-actions.pod:4370 ../fish/guestfish-actions.pod:2973
12759 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../src/guestfs-actions.pod:4376
12764 msgid "guestfs_mkfifo"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../src/guestfs-actions.pod:4378
12769 #, no-wrap
12770 msgid ""
12771 " int\n"
12772 " guestfs_mkfifo (guestfs_h *g,\n"
12773 "                 int mode,\n"
12774 "                 const char *path);\n"
12775 "\n"
12776 msgstr ""
12777
12778 #. type: textblock
12779 #: ../src/guestfs-actions.pod:4383
12780 msgid ""
12781 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12782 "is just a convenient wrapper around C<guestfs_mknod>."
12783 msgstr ""
12784
12785 #. type: =head2
12786 #: ../src/guestfs-actions.pod:4393
12787 msgid "guestfs_mkfs"
12788 msgstr ""
12789
12790 #. type: verbatim
12791 #: ../src/guestfs-actions.pod:4395
12792 #, no-wrap
12793 msgid ""
12794 " int\n"
12795 " guestfs_mkfs (guestfs_h *g,\n"
12796 "               const char *fstype,\n"
12797 "               const char *device);\n"
12798 "\n"
12799 msgstr ""
12800
12801 #. type: textblock
12802 #: ../src/guestfs-actions.pod:4400 ../fish/guestfish-actions.pod:2989
12803 msgid ""
12804 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12805 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12806 msgstr ""
12807
12808 #. type: =head2
12809 #: ../src/guestfs-actions.pod:4408
12810 msgid "guestfs_mkfs_b"
12811 msgstr ""
12812
12813 #. type: verbatim
12814 #: ../src/guestfs-actions.pod:4410
12815 #, no-wrap
12816 msgid ""
12817 " int\n"
12818 " guestfs_mkfs_b (guestfs_h *g,\n"
12819 "                 const char *fstype,\n"
12820 "                 int blocksize,\n"
12821 "                 const char *device);\n"
12822 "\n"
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../src/guestfs-actions.pod:4416
12827 msgid ""
12828 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
12829 "block size of the resulting filesystem.  Supported block sizes depend on the "
12830 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12831 msgstr ""
12832
12833 #. type: textblock
12834 #: ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3002 ../fish/guestfish-actions.pod:3029
12835 msgid ""
12836 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12837 "cluster size."
12838 msgstr ""
12839
12840 #. type: textblock
12841 #: ../src/guestfs-actions.pod:4426 ../fish/guestfish-actions.pod:3005
12842 msgid ""
12843 "This function is deprecated.  In new code, use the C<mkfs_opts> call "
12844 "instead."
12845 msgstr ""
12846
12847 #. type: =head2
12848 #: ../src/guestfs-actions.pod:4435
12849 msgid "guestfs_mkfs_opts"
12850 msgstr ""
12851
12852 #. type: verbatim
12853 #: ../src/guestfs-actions.pod:4437
12854 #, no-wrap
12855 msgid ""
12856 " int\n"
12857 " guestfs_mkfs_opts (guestfs_h *g,\n"
12858 "                    const char *fstype,\n"
12859 "                    const char *device,\n"
12860 "                    ...);\n"
12861 "\n"
12862 msgstr ""
12863
12864 #. type: verbatim
12865 #: ../src/guestfs-actions.pod:4448
12866 #, no-wrap
12867 msgid ""
12868 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
12869 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
12870 "\n"
12871 msgstr ""
12872
12873 #. type: textblock
12874 #: ../src/guestfs-actions.pod:4451 ../fish/guestfish-actions.pod:3016
12875 msgid ""
12876 "This function creates a filesystem on C<device>.  The filesystem type is "
12877 "C<fstype>, for example C<ext3>."
12878 msgstr ""
12879
12880 #. type: =item
12881 #: ../src/guestfs-actions.pod:4458 ../fish/guestfish-actions.pod:3023
12882 msgid "C<blocksize>"
12883 msgstr ""
12884
12885 #. type: textblock
12886 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:3025
12887 msgid ""
12888 "The filesystem block size.  Supported block sizes depend on the filesystem "
12889 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12890 "filesystems."
12891 msgstr ""
12892
12893 #. type: textblock
12894 #: ../src/guestfs-actions.pod:4467 ../fish/guestfish-actions.pod:3032
12895 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12896 msgstr ""
12897
12898 #. type: =item
12899 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3034
12900 msgid "C<features>"
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../src/guestfs-actions.pod:4471 ../fish/guestfish-actions.pod:3036
12905 msgid "This passes the C<-O> parameter to the external mkfs program."
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3038
12910 msgid ""
12911 "For certain filesystem types, this allows extra filesystem features to be "
12912 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3042
12917 msgid ""
12918 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12919 "type."
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:4484
12924 msgid "(Added in 1.7.19)"
12925 msgstr ""
12926
12927 #. type: =head2
12928 #: ../src/guestfs-actions.pod:4486
12929 msgid "guestfs_mkfs_opts_va"
12930 msgstr ""
12931
12932 #. type: verbatim
12933 #: ../src/guestfs-actions.pod:4488
12934 #, no-wrap
12935 msgid ""
12936 " int\n"
12937 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
12938 "                       const char *fstype,\n"
12939 "                       const char *device,\n"
12940 "                       va_list args);\n"
12941 "\n"
12942 msgstr ""
12943
12944 #. type: textblock
12945 #: ../src/guestfs-actions.pod:4494
12946 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
12947 msgstr ""
12948
12949 #. type: =head2
12950 #: ../src/guestfs-actions.pod:4498
12951 msgid "guestfs_mkfs_opts_argv"
12952 msgstr ""
12953
12954 #. type: verbatim
12955 #: ../src/guestfs-actions.pod:4500
12956 #, no-wrap
12957 msgid ""
12958 " int\n"
12959 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
12960 "                         const char *fstype,\n"
12961 "                         const char *device,\n"
12962 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
12963 "\n"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../src/guestfs-actions.pod:4506
12968 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
12969 msgstr ""
12970
12971 #. type: =head2
12972 #: ../src/guestfs-actions.pod:4510
12973 msgid "guestfs_mkmountpoint"
12974 msgstr ""
12975
12976 #. type: verbatim
12977 #: ../src/guestfs-actions.pod:4512
12978 #, no-wrap
12979 msgid ""
12980 " int\n"
12981 " guestfs_mkmountpoint (guestfs_h *g,\n"
12982 "                       const char *exemptpath);\n"
12983 "\n"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../src/guestfs-actions.pod:4516
12988 msgid ""
12989 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
12990 "that can be used to create extra mountpoints before mounting the first "
12991 "filesystem."
12992 msgstr ""
12993
12994 #. type: textblock
12995 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3057
12996 msgid ""
12997 "These calls are I<only> necessary in some very limited circumstances, mainly "
12998 "the case where you want to mount a mix of unrelated and/or read-only "
12999 "filesystems together."
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../src/guestfs-actions.pod:4524 ../fish/guestfish-actions.pod:3061
13004 msgid ""
13005 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13006 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13007 "inside that.  You can unpack this as follows in guestfish:"
13008 msgstr ""
13009
13010 #. type: verbatim
13011 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:3066
13012 #, no-wrap
13013 msgid ""
13014 " add-ro Fedora-11-i686-Live.iso\n"
13015 " run\n"
13016 " mkmountpoint /cd\n"
13017 " mkmountpoint /sqsh\n"
13018 " mkmountpoint /ext3fs\n"
13019 " mount /dev/sda /cd\n"
13020 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13021 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13022 "\n"
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../src/guestfs-actions.pod:4538 ../fish/guestfish-actions.pod:3075
13027 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13028 msgstr ""
13029
13030 #. type: textblock
13031 #: ../src/guestfs-actions.pod:4540
13032 msgid ""
13033 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
13034 "may get unexpected errors if you try to mix these calls.  It is safest to "
13035 "manually unmount filesystems and remove mountpoints after use."
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:4544
13040 msgid ""
13041 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
13042 "first, so for this to work for manual mountpoints, you must ensure that the "
13043 "innermost mountpoints have the longest pathnames, as in the example code "
13044 "above."
13045 msgstr ""
13046
13047 #. type: textblock
13048 #: ../src/guestfs-actions.pod:4549 ../fish/guestfish-actions.pod:3086
13049 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13050 msgstr ""
13051
13052 #. type: textblock
13053 #: ../src/guestfs-actions.pod:4551
13054 msgid ""
13055 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
13056 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
13057 "can also trigger these issues."
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:5726
13062 msgid "(Added in 1.0.62)"
13063 msgstr ""
13064
13065 #. type: =head2
13066 #: ../src/guestfs-actions.pod:4559
13067 msgid "guestfs_mknod"
13068 msgstr ""
13069
13070 #. type: verbatim
13071 #: ../src/guestfs-actions.pod:4561
13072 #, no-wrap
13073 msgid ""
13074 " int\n"
13075 " guestfs_mknod (guestfs_h *g,\n"
13076 "                int mode,\n"
13077 "                int devmajor,\n"
13078 "                int devminor,\n"
13079 "                const char *path);\n"
13080 "\n"
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../src/guestfs-actions.pod:4568 ../fish/guestfish-actions.pod:3096
13085 msgid ""
13086 "This call creates block or character special devices, or named pipes "
13087 "(FIFOs)."
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../src/guestfs-actions.pod:4571 ../fish/guestfish-actions.pod:3099
13092 msgid ""
13093 "The C<mode> parameter should be the mode, using the standard constants.  "
13094 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13095 "used when creating block and character special devices."
13096 msgstr ""
13097
13098 #. type: textblock
13099 #: ../src/guestfs-actions.pod:4576
13100 msgid ""
13101 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13102 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13103 "regular file).  These constants are available in the standard Linux header "
13104 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
13105 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
13106 "the appropriate constant for you."
13107 msgstr ""
13108
13109 #. type: =head2
13110 #: ../src/guestfs-actions.pod:4590
13111 msgid "guestfs_mknod_b"
13112 msgstr ""
13113
13114 #. type: verbatim
13115 #: ../src/guestfs-actions.pod:4592
13116 #, no-wrap
13117 msgid ""
13118 " int\n"
13119 " guestfs_mknod_b (guestfs_h *g,\n"
13120 "                  int mode,\n"
13121 "                  int devmajor,\n"
13122 "                  int devminor,\n"
13123 "                  const char *path);\n"
13124 "\n"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../src/guestfs-actions.pod:4599
13129 msgid ""
13130 "This call creates a block device node called C<path> with mode C<mode> and "
13131 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13132 "wrapper around C<guestfs_mknod>."
13133 msgstr ""
13134
13135 #. type: =head2
13136 #: ../src/guestfs-actions.pod:4609
13137 msgid "guestfs_mknod_c"
13138 msgstr ""
13139
13140 #. type: verbatim
13141 #: ../src/guestfs-actions.pod:4611
13142 #, no-wrap
13143 msgid ""
13144 " int\n"
13145 " guestfs_mknod_c (guestfs_h *g,\n"
13146 "                  int mode,\n"
13147 "                  int devmajor,\n"
13148 "                  int devminor,\n"
13149 "                  const char *path);\n"
13150 "\n"
13151 msgstr ""
13152
13153 #. type: textblock
13154 #: ../src/guestfs-actions.pod:4618
13155 msgid ""
13156 "This call creates a char device node called C<path> with mode C<mode> and "
13157 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13158 "wrapper around C<guestfs_mknod>."
13159 msgstr ""
13160
13161 #. type: =head2
13162 #: ../src/guestfs-actions.pod:4628
13163 msgid "guestfs_mkswap"
13164 msgstr ""
13165
13166 #. type: verbatim
13167 #: ../src/guestfs-actions.pod:4630
13168 #, no-wrap
13169 msgid ""
13170 " int\n"
13171 " guestfs_mkswap (guestfs_h *g,\n"
13172 "                 const char *device);\n"
13173 "\n"
13174 msgstr ""
13175
13176 #. type: textblock
13177 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3138
13178 msgid "Create a swap partition on C<device>."
13179 msgstr ""
13180
13181 #. type: =head2
13182 #: ../src/guestfs-actions.pod:4640
13183 msgid "guestfs_mkswap_L"
13184 msgstr ""
13185
13186 #. type: verbatim
13187 #: ../src/guestfs-actions.pod:4642
13188 #, no-wrap
13189 msgid ""
13190 " int\n"
13191 " guestfs_mkswap_L (guestfs_h *g,\n"
13192 "                   const char *label,\n"
13193 "                   const char *device);\n"
13194 "\n"
13195 msgstr ""
13196
13197 #. type: textblock
13198 #: ../src/guestfs-actions.pod:4647 ../fish/guestfish-actions.pod:3144
13199 msgid "Create a swap partition on C<device> with label C<label>."
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:4649 ../fish/guestfish-actions.pod:3146
13204 msgid ""
13205 "Note that you cannot attach a swap label to a block device "
13206 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
13207 "the kernel or swap tools."
13208 msgstr ""
13209
13210 #. type: =head2
13211 #: ../src/guestfs-actions.pod:4657
13212 msgid "guestfs_mkswap_U"
13213 msgstr ""
13214
13215 #. type: verbatim
13216 #: ../src/guestfs-actions.pod:4659
13217 #, no-wrap
13218 msgid ""
13219 " int\n"
13220 " guestfs_mkswap_U (guestfs_h *g,\n"
13221 "                   const char *uuid,\n"
13222 "                   const char *device);\n"
13223 "\n"
13224 msgstr ""
13225
13226 #. type: textblock
13227 #: ../src/guestfs-actions.pod:4664 ../fish/guestfish-actions.pod:3154
13228 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13229 msgstr ""
13230
13231 #. type: =head2
13232 #: ../src/guestfs-actions.pod:4670
13233 msgid "guestfs_mkswap_file"
13234 msgstr ""
13235
13236 #. type: verbatim
13237 #: ../src/guestfs-actions.pod:4672
13238 #, no-wrap
13239 msgid ""
13240 " int\n"
13241 " guestfs_mkswap_file (guestfs_h *g,\n"
13242 "                      const char *path);\n"
13243 "\n"
13244 msgstr ""
13245
13246 #. type: textblock
13247 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3160
13248 msgid "Create a swap file."
13249 msgstr ""
13250
13251 #. type: textblock
13252 #: ../src/guestfs-actions.pod:4678
13253 msgid ""
13254 "This command just writes a swap file signature to an existing file.  To "
13255 "create the file itself, use something like C<guestfs_fallocate>."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../src/guestfs-actions.pod:4685
13260 msgid "guestfs_modprobe"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../src/guestfs-actions.pod:4687
13265 #, no-wrap
13266 msgid ""
13267 " int\n"
13268 " guestfs_modprobe (guestfs_h *g,\n"
13269 "                   const char *modulename);\n"
13270 "\n"
13271 msgstr ""
13272
13273 #. type: textblock
13274 #: ../src/guestfs-actions.pod:4691 ../fish/guestfish-actions.pod:3169
13275 msgid "This loads a kernel module in the appliance."
13276 msgstr ""
13277
13278 #. type: textblock
13279 #: ../src/guestfs-actions.pod:4693 ../fish/guestfish-actions.pod:3171
13280 msgid ""
13281 "The kernel module must have been whitelisted when libguestfs was built (see "
13282 "C<appliance/kmod.whitelist.in> in the source)."
13283 msgstr ""
13284
13285 #. type: =head2
13286 #: ../src/guestfs-actions.pod:4700
13287 msgid "guestfs_mount"
13288 msgstr ""
13289
13290 #. type: verbatim
13291 #: ../src/guestfs-actions.pod:4702
13292 #, no-wrap
13293 msgid ""
13294 " int\n"
13295 " guestfs_mount (guestfs_h *g,\n"
13296 "                const char *device,\n"
13297 "                const char *mountpoint);\n"
13298 "\n"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../src/guestfs-actions.pod:4707 ../fish/guestfish-actions.pod:3178
13303 msgid ""
13304 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13305 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13306 "those block devices contain partitions, they will have the usual names "
13307 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13308 msgstr ""
13309
13310 #. type: textblock
13311 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3184
13312 msgid ""
13313 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13314 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13315 "mounted on directories which already exist."
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../src/guestfs-actions.pod:4718 ../fish/guestfish-actions.pod:3189
13320 msgid ""
13321 "The mounted filesystem is writable, if we have sufficient permissions on the "
13322 "underlying device."
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../src/guestfs-actions.pod:4721
13327 msgid ""
13328 "B<Important note:> When you use this call, the filesystem options C<sync> "
13329 "and C<noatime> are set implicitly.  This was originally done because we "
13330 "thought it would improve reliability, but it turns out that I<-o sync> has a "
13331 "very large negative performance impact and negligible effect on "
13332 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
13333 "in any code that needs performance, and instead use C<guestfs_mount_options> "
13334 "(use an empty string for the first parameter if you don't want any options)."
13335 msgstr ""
13336
13337 #. type: =head2
13338 #: ../src/guestfs-actions.pod:4735
13339 msgid "guestfs_mount_loop"
13340 msgstr ""
13341
13342 #. type: verbatim
13343 #: ../src/guestfs-actions.pod:4737
13344 #, no-wrap
13345 msgid ""
13346 " int\n"
13347 " guestfs_mount_loop (guestfs_h *g,\n"
13348 "                     const char *file,\n"
13349 "                     const char *mountpoint);\n"
13350 "\n"
13351 msgstr ""
13352
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:4742 ../fish/guestfish-actions.pod:3206
13355 msgid ""
13356 "This command lets you mount C<file> (a filesystem image in a file) on a "
13357 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13358 "mountpoint>."
13359 msgstr ""
13360
13361 #. type: =head2
13362 #: ../src/guestfs-actions.pod:4750
13363 msgid "guestfs_mount_options"
13364 msgstr ""
13365
13366 #. type: verbatim
13367 #: ../src/guestfs-actions.pod:4752
13368 #, no-wrap
13369 msgid ""
13370 " int\n"
13371 " guestfs_mount_options (guestfs_h *g,\n"
13372 "                        const char *options,\n"
13373 "                        const char *device,\n"
13374 "                        const char *mountpoint);\n"
13375 "\n"
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../src/guestfs-actions.pod:4758
13380 msgid ""
13381 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13382 "the mount options as for the L<mount(8)> I<-o> flag."
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../src/guestfs-actions.pod:4762 ../fish/guestfish-actions.pod:3218
13387 msgid ""
13388 "If the C<options> parameter is an empty string, then no options are passed "
13389 "(all options default to whatever the filesystem uses)."
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4799
13394 msgid "(Added in 1.0.10)"
13395 msgstr ""
13396
13397 #. type: =head2
13398 #: ../src/guestfs-actions.pod:4770
13399 msgid "guestfs_mount_ro"
13400 msgstr ""
13401
13402 #. type: verbatim
13403 #: ../src/guestfs-actions.pod:4772
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_mount_ro (guestfs_h *g,\n"
13408 "                   const char *device,\n"
13409 "                   const char *mountpoint);\n"
13410 "\n"
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:4777
13415 msgid ""
13416 "This is the same as the C<guestfs_mount> command, but it mounts the "
13417 "filesystem with the read-only (I<-o ro>) flag."
13418 msgstr ""
13419
13420 #. type: =head2
13421 #: ../src/guestfs-actions.pod:4784
13422 msgid "guestfs_mount_vfs"
13423 msgstr ""
13424
13425 #. type: verbatim
13426 #: ../src/guestfs-actions.pod:4786
13427 #, no-wrap
13428 msgid ""
13429 " int\n"
13430 " guestfs_mount_vfs (guestfs_h *g,\n"
13431 "                    const char *options,\n"
13432 "                    const char *vfstype,\n"
13433 "                    const char *device,\n"
13434 "                    const char *mountpoint);\n"
13435 "\n"
13436 msgstr ""
13437
13438 #. type: textblock
13439 #: ../src/guestfs-actions.pod:4793
13440 msgid ""
13441 "This is the same as the C<guestfs_mount> command, but it allows you to set "
13442 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
13443 "I<-t> flags."
13444 msgstr ""
13445
13446 #. type: =head2
13447 #: ../src/guestfs-actions.pod:4801
13448 msgid "guestfs_mountpoints"
13449 msgstr ""
13450
13451 #. type: verbatim
13452 #: ../src/guestfs-actions.pod:4803
13453 #, no-wrap
13454 msgid ""
13455 " char **\n"
13456 " guestfs_mountpoints (guestfs_h *g);\n"
13457 "\n"
13458 msgstr ""
13459
13460 #. type: textblock
13461 #: ../src/guestfs-actions.pod:4806
13462 msgid ""
13463 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
13464 "devices.  This one returns a hash table (map) of device name to directory "
13465 "where the device is mounted."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../src/guestfs-actions.pod:4818
13470 msgid "guestfs_mounts"
13471 msgstr ""
13472
13473 #. type: verbatim
13474 #: ../src/guestfs-actions.pod:4820
13475 #, no-wrap
13476 msgid ""
13477 " char **\n"
13478 " guestfs_mounts (guestfs_h *g);\n"
13479 "\n"
13480 msgstr ""
13481
13482 #. type: textblock
13483 #: ../src/guestfs-actions.pod:4823 ../fish/guestfish-actions.pod:3249
13484 msgid ""
13485 "This returns the list of currently mounted filesystems.  It returns the list "
13486 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13487 msgstr ""
13488
13489 #. type: textblock
13490 #: ../src/guestfs-actions.pod:4826 ../fish/guestfish-actions.pod:3252
13491 msgid "Some internal mounts are not shown."
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../src/guestfs-actions.pod:4828
13496 msgid "See also: C<guestfs_mountpoints>"
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../src/guestfs-actions.pod:4836
13501 msgid "guestfs_mv"
13502 msgstr ""
13503
13504 #. type: verbatim
13505 #: ../src/guestfs-actions.pod:4838
13506 #, no-wrap
13507 msgid ""
13508 " int\n"
13509 " guestfs_mv (guestfs_h *g,\n"
13510 "             const char *src,\n"
13511 "             const char *dest);\n"
13512 "\n"
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3260
13517 msgid ""
13518 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13519 "destination filename or destination directory."
13520 msgstr ""
13521
13522 #. type: =head2
13523 #: ../src/guestfs-actions.pod:4850
13524 msgid "guestfs_ntfs_3g_probe"
13525 msgstr ""
13526
13527 #. type: verbatim
13528 #: ../src/guestfs-actions.pod:4852
13529 #, no-wrap
13530 msgid ""
13531 " int\n"
13532 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
13533 "                        int rw,\n"
13534 "                        const char *device);\n"
13535 "\n"
13536 msgstr ""
13537
13538 #. type: textblock
13539 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3267
13540 msgid ""
13541 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13542 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
13543 "read-write, and some cannot be mounted at all)."
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3271
13548 msgid ""
13549 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13550 "can be mounted read-write.  Set it to false if you want to test if the "
13551 "volume can be mounted read-only."
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../src/guestfs-actions.pod:4865 ../fish/guestfish-actions.pod:3275
13556 msgid ""
13557 "The return value is an integer which C<0> if the operation would succeed, or "
13558 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../src/guestfs-actions.pod:4871
13563 msgid "(Added in 1.0.43)"
13564 msgstr ""
13565
13566 #. type: =head2
13567 #: ../src/guestfs-actions.pod:4873
13568 msgid "guestfs_ntfsresize"
13569 msgstr ""
13570
13571 #. type: verbatim
13572 #: ../src/guestfs-actions.pod:4875
13573 #, no-wrap
13574 msgid ""
13575 " int\n"
13576 " guestfs_ntfsresize (guestfs_h *g,\n"
13577 "                     const char *device);\n"
13578 "\n"
13579 msgstr ""
13580
13581 #. type: textblock
13582 #: ../src/guestfs-actions.pod:4879 ../fish/guestfish-actions.pod:3283
13583 msgid ""
13584 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13585 "size of the underlying device.  See also L<ntfsresize(8)>."
13586 msgstr ""
13587
13588 #. type: =head2
13589 #: ../src/guestfs-actions.pod:4887
13590 msgid "guestfs_ntfsresize_size"
13591 msgstr ""
13592
13593 #. type: verbatim
13594 #: ../src/guestfs-actions.pod:4889
13595 #, no-wrap
13596 msgid ""
13597 " int\n"
13598 " guestfs_ntfsresize_size (guestfs_h *g,\n"
13599 "                          const char *device,\n"
13600 "                          int64_t size);\n"
13601 "\n"
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../src/guestfs-actions.pod:4894
13606 msgid ""
13607 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
13608 "to specify the new size (in bytes) explicitly."
13609 msgstr ""
13610
13611 #. type: textblock
13612 #: ../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
13613 msgid "(Added in 1.3.14)"
13614 msgstr ""
13615
13616 #. type: =head2
13617 #: ../src/guestfs-actions.pod:4901
13618 msgid "guestfs_part_add"
13619 msgstr ""
13620
13621 #. type: verbatim
13622 #: ../src/guestfs-actions.pod:4903
13623 #, no-wrap
13624 msgid ""
13625 " int\n"
13626 " guestfs_part_add (guestfs_h *g,\n"
13627 "                   const char *device,\n"
13628 "                   const char *prlogex,\n"
13629 "                   int64_t startsect,\n"
13630 "                   int64_t endsect);\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../src/guestfs-actions.pod:4910
13636 msgid ""
13637 "This command adds a partition to C<device>.  If there is no partition table "
13638 "on the device, call C<guestfs_part_init> first."
13639 msgstr ""
13640
13641 #. type: textblock
13642 #: ../src/guestfs-actions.pod:4913 ../fish/guestfish-actions.pod:3301
13643 msgid ""
13644 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13645 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13646 "C<logical>) and C<e> (or C<extended>) partition types."
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3306
13651 msgid ""
13652 "C<startsect> and C<endsect> are the start and end of the partition in "
13653 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13654 "from the end of the disk (C<-1> is the last sector)."
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../src/guestfs-actions.pod:4922
13659 msgid ""
13660 "Creating a partition which covers the whole disk is not so easy.  Use "
13661 "C<guestfs_part_disk> to do that."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../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
13666 msgid "(Added in 1.0.78)"
13667 msgstr ""
13668
13669 #. type: =head2
13670 #: ../src/guestfs-actions.pod:4929
13671 msgid "guestfs_part_del"
13672 msgstr ""
13673
13674 #. type: verbatim
13675 #: ../src/guestfs-actions.pod:4931
13676 #, no-wrap
13677 msgid ""
13678 " int\n"
13679 " guestfs_part_del (guestfs_h *g,\n"
13680 "                   const char *device,\n"
13681 "                   int partnum);\n"
13682 "\n"
13683 msgstr ""
13684
13685 #. type: textblock
13686 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3317
13687 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3319
13692 msgid ""
13693 "Note that in the case of MBR partitioning, deleting an extended partition "
13694 "also deletes any logical partitions it contains."
13695 msgstr ""
13696
13697 #. type: =head2
13698 #: ../src/guestfs-actions.pod:4946
13699 msgid "guestfs_part_disk"
13700 msgstr ""
13701
13702 #. type: verbatim
13703 #: ../src/guestfs-actions.pod:4948
13704 #, no-wrap
13705 msgid ""
13706 " int\n"
13707 " guestfs_part_disk (guestfs_h *g,\n"
13708 "                    const char *device,\n"
13709 "                    const char *parttype);\n"
13710 "\n"
13711 msgstr ""
13712
13713 #. type: textblock
13714 #: ../src/guestfs-actions.pod:4953
13715 msgid ""
13716 "This command is simply a combination of C<guestfs_part_init> followed by "
13717 "C<guestfs_part_add> to create a single primary partition covering the whole "
13718 "disk."
13719 msgstr ""
13720
13721 #. type: textblock
13722 #: ../src/guestfs-actions.pod:4957
13723 msgid ""
13724 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13725 "possible values are described in C<guestfs_part_init>."
13726 msgstr ""
13727
13728 #. type: =head2
13729 #: ../src/guestfs-actions.pod:4967
13730 msgid "guestfs_part_get_bootable"
13731 msgstr ""
13732
13733 #. type: verbatim
13734 #: ../src/guestfs-actions.pod:4969
13735 #, no-wrap
13736 msgid ""
13737 " int\n"
13738 " guestfs_part_get_bootable (guestfs_h *g,\n"
13739 "                            const char *device,\n"
13740 "                            int partnum);\n"
13741 "\n"
13742 msgstr ""
13743
13744 #. type: textblock
13745 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3341
13746 msgid ""
13747 "This command returns true if the partition C<partnum> on C<device> has the "
13748 "bootable flag set."
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../src/guestfs-actions.pod:4977
13753 msgid "See also C<guestfs_part_set_bootable>."
13754 msgstr ""
13755
13756 #. type: =head2
13757 #: ../src/guestfs-actions.pod:4983
13758 msgid "guestfs_part_get_mbr_id"
13759 msgstr ""
13760
13761 #. type: verbatim
13762 #: ../src/guestfs-actions.pod:4985
13763 #, no-wrap
13764 msgid ""
13765 " int\n"
13766 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
13767 "                          const char *device,\n"
13768 "                          int partnum);\n"
13769 "\n"
13770 msgstr ""
13771
13772 #. type: textblock
13773 #: ../src/guestfs-actions.pod:4990 ../fish/guestfish-actions.pod:3350
13774 msgid ""
13775 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13776 "partition C<partnum>."
13777 msgstr ""
13778
13779 #. type: textblock
13780 #: ../src/guestfs-actions.pod:4993 ../src/guestfs-actions.pod:5169
13781 msgid ""
13782 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13783 "undefined results for other partition table types (see "
13784 "C<guestfs_part_get_parttype>)."
13785 msgstr ""
13786
13787 #. type: =head2
13788 #: ../src/guestfs-actions.pod:5001
13789 msgid "guestfs_part_get_parttype"
13790 msgstr ""
13791
13792 #. type: verbatim
13793 #: ../src/guestfs-actions.pod:5003
13794 #, no-wrap
13795 msgid ""
13796 " char *\n"
13797 " guestfs_part_get_parttype (guestfs_h *g,\n"
13798 "                            const char *device);\n"
13799 "\n"
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3361
13804 msgid ""
13805 "This command examines the partition table on C<device> and returns the "
13806 "partition table type (format) being used."
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../src/guestfs-actions.pod:5010
13811 msgid ""
13812 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13813 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13814 "possible, although unusual.  See C<guestfs_part_init> for a full list."
13815 msgstr ""
13816
13817 #. type: =head2
13818 #: ../src/guestfs-actions.pod:5020
13819 msgid "guestfs_part_init"
13820 msgstr ""
13821
13822 #. type: verbatim
13823 #: ../src/guestfs-actions.pod:5022
13824 #, no-wrap
13825 msgid ""
13826 " int\n"
13827 " guestfs_part_init (guestfs_h *g,\n"
13828 "                    const char *device,\n"
13829 "                    const char *parttype);\n"
13830 "\n"
13831 msgstr ""
13832
13833 #. type: textblock
13834 #: ../src/guestfs-actions.pod:5027 ../fish/guestfish-actions.pod:3373
13835 msgid ""
13836 "This creates an empty partition table on C<device> of one of the partition "
13837 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13838 "(for large disks)."
13839 msgstr ""
13840
13841 #. type: textblock
13842 #: ../src/guestfs-actions.pod:5031
13843 msgid ""
13844 "Initially there are no partitions.  Following this, you should call "
13845 "C<guestfs_part_add> for each partition required."
13846 msgstr ""
13847
13848 #. type: textblock
13849 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3380
13850 msgid "Possible values for C<parttype> are:"
13851 msgstr ""
13852
13853 #. type: =item
13854 #: ../src/guestfs-actions.pod:5038 ../fish/guestfish-actions.pod:3384
13855 msgid "B<efi> | B<gpt>"
13856 msgstr ""
13857
13858 #. type: textblock
13859 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3386
13860 msgid "Intel EFI / GPT partition table."
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3388
13865 msgid ""
13866 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13867 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13868 "the C<mbr> format."
13869 msgstr ""
13870
13871 #. type: =item
13872 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3392
13873 msgid "B<mbr> | B<msdos>"
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../src/guestfs-actions.pod:5048 ../fish/guestfish-actions.pod:3394
13878 msgid ""
13879 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13880 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13881 "TB.  For large disks we recommend using C<gpt>."
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3401
13886 msgid "Other partition table types that may work but are not supported include:"
13887 msgstr ""
13888
13889 #. type: =item
13890 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3406
13891 msgid "B<aix>"
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3408
13896 msgid "AIX disk labels."
13897 msgstr ""
13898
13899 #. type: =item
13900 #: ../src/guestfs-actions.pod:5064 ../fish/guestfish-actions.pod:3410
13901 msgid "B<amiga> | B<rdb>"
13902 msgstr ""
13903
13904 #. type: textblock
13905 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3412
13906 msgid "Amiga \"Rigid Disk Block\" format."
13907 msgstr ""
13908
13909 #. type: =item
13910 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3414
13911 msgid "B<bsd>"
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3416
13916 msgid "BSD disk labels."
13917 msgstr ""
13918
13919 #. type: =item
13920 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3418
13921 msgid "B<dasd>"
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3420
13926 msgid "DASD, used on IBM mainframes."
13927 msgstr ""
13928
13929 #. type: =item
13930 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3422
13931 msgid "B<dvh>"
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3424
13936 msgid "MIPS/SGI volumes."
13937 msgstr ""
13938
13939 #. type: =item
13940 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3426
13941 msgid "B<mac>"
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3428
13946 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13947 msgstr ""
13948
13949 #. type: =item
13950 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3430
13951 msgid "B<pc98>"
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3432
13956 msgid "NEC PC-98 format, common in Japan apparently."
13957 msgstr ""
13958
13959 #. type: =item
13960 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3434
13961 msgid "B<sun>"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3436
13966 msgid "Sun disk labels."
13967 msgstr ""
13968
13969 #. type: =head2
13970 #: ../src/guestfs-actions.pod:5098
13971 msgid "guestfs_part_list"
13972 msgstr ""
13973
13974 #. type: verbatim
13975 #: ../src/guestfs-actions.pod:5100
13976 #, no-wrap
13977 msgid ""
13978 " struct guestfs_partition_list *\n"
13979 " guestfs_part_list (guestfs_h *g,\n"
13980 "                    const char *device);\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../src/guestfs-actions.pod:5104 ../fish/guestfish-actions.pod:3444
13986 msgid ""
13987 "This command parses the partition table on C<device> and returns the list of "
13988 "partitions found."
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3447
13993 msgid "The fields in the returned structure are:"
13994 msgstr ""
13995
13996 #. type: =item
13997 #: ../src/guestfs-actions.pod:5111 ../fish/guestfish-actions.pod:3451
13998 msgid "B<part_num>"
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3453
14003 msgid "Partition number, counting from 1."
14004 msgstr ""
14005
14006 #. type: =item
14007 #: ../src/guestfs-actions.pod:5115 ../fish/guestfish-actions.pod:3455
14008 msgid "B<part_start>"
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../src/guestfs-actions.pod:5117
14013 msgid ""
14014 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14015 "the device's sector size, see C<guestfs_blockdev_getss>."
14016 msgstr ""
14017
14018 #. type: =item
14019 #: ../src/guestfs-actions.pod:5120 ../fish/guestfish-actions.pod:3460
14020 msgid "B<part_end>"
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3462
14025 msgid "End of the partition in bytes."
14026 msgstr ""
14027
14028 #. type: =item
14029 #: ../src/guestfs-actions.pod:5124 ../fish/guestfish-actions.pod:3464
14030 msgid "B<part_size>"
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3466
14035 msgid "Size of the partition in bytes."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../src/guestfs-actions.pod:5130
14040 msgid ""
14041 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
14042 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
14043 "use>."
14044 msgstr ""
14045
14046 #. type: =head2
14047 #: ../src/guestfs-actions.pod:5136
14048 msgid "guestfs_part_set_bootable"
14049 msgstr ""
14050
14051 #. type: verbatim
14052 #: ../src/guestfs-actions.pod:5138
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_part_set_bootable (guestfs_h *g,\n"
14057 "                            const char *device,\n"
14058 "                            int partnum,\n"
14059 "                            int bootable);\n"
14060 "\n"
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../src/guestfs-actions.pod:5144 ../fish/guestfish-actions.pod:3474
14065 msgid ""
14066 "This sets the bootable flag on partition numbered C<partnum> on device "
14067 "C<device>.  Note that partitions are numbered from 1."
14068 msgstr ""
14069
14070 #. type: textblock
14071 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3477
14072 msgid ""
14073 "The bootable flag is used by some operating systems (notably Windows) to "
14074 "determine which partition to boot from.  It is by no means universally "
14075 "recognized."
14076 msgstr ""
14077
14078 #. type: =head2
14079 #: ../src/guestfs-actions.pod:5155
14080 msgid "guestfs_part_set_mbr_id"
14081 msgstr ""
14082
14083 #. type: verbatim
14084 #: ../src/guestfs-actions.pod:5157
14085 #, no-wrap
14086 msgid ""
14087 " int\n"
14088 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
14089 "                          const char *device,\n"
14090 "                          int partnum,\n"
14091 "                          int idbyte);\n"
14092 "\n"
14093 msgstr ""
14094
14095 #. type: textblock
14096 #: ../src/guestfs-actions.pod:5163 ../fish/guestfish-actions.pod:3485
14097 msgid ""
14098 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14099 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14100 "documentation are in fact hexadecimal numbers, but usually documented "
14101 "without any leading \"0x\" which might be confusing."
14102 msgstr ""
14103
14104 #. type: =head2
14105 #: ../src/guestfs-actions.pod:5177
14106 msgid "guestfs_part_set_name"
14107 msgstr ""
14108
14109 #. type: verbatim
14110 #: ../src/guestfs-actions.pod:5179
14111 #, no-wrap
14112 msgid ""
14113 " int\n"
14114 " guestfs_part_set_name (guestfs_h *g,\n"
14115 "                        const char *device,\n"
14116 "                        int partnum,\n"
14117 "                        const char *name);\n"
14118 "\n"
14119 msgstr ""
14120
14121 #. type: textblock
14122 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3499
14123 msgid ""
14124 "This sets the partition name on partition numbered C<partnum> on device "
14125 "C<device>.  Note that partitions are numbered from 1."
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../src/guestfs-actions.pod:5188 ../fish/guestfish-actions.pod:3502
14130 msgid ""
14131 "The partition name can only be set on certain types of partition table.  "
14132 "This works on C<gpt> but not on C<mbr> partitions."
14133 msgstr ""
14134
14135 #. type: =head2
14136 #: ../src/guestfs-actions.pod:5195
14137 msgid "guestfs_part_to_dev"
14138 msgstr ""
14139
14140 #. type: verbatim
14141 #: ../src/guestfs-actions.pod:5197
14142 #, no-wrap
14143 msgid ""
14144 " char *\n"
14145 " guestfs_part_to_dev (guestfs_h *g,\n"
14146 "                      const char *partition);\n"
14147 "\n"
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3509
14152 msgid ""
14153 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14154 "partition number, returning the device name (eg. \"/dev/sdb\")."
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../src/guestfs-actions.pod:5205
14159 msgid ""
14160 "The named partition must exist, for example as a string returned from "
14161 "C<guestfs_list_partitions>."
14162 msgstr ""
14163
14164 #. type: =head2
14165 #: ../src/guestfs-actions.pod:5213
14166 msgid "guestfs_ping_daemon"
14167 msgstr ""
14168
14169 #. type: verbatim
14170 #: ../src/guestfs-actions.pod:5215
14171 #, no-wrap
14172 msgid ""
14173 " int\n"
14174 " guestfs_ping_daemon (guestfs_h *g);\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../src/guestfs-actions.pod:5218 ../fish/guestfish-actions.pod:3520
14180 msgid ""
14181 "This is a test probe into the guestfs daemon running inside the qemu "
14182 "subprocess.  Calling this function checks that the daemon responds to the "
14183 "ping message, without affecting the daemon or attached block device(s) in "
14184 "any other way."
14185 msgstr ""
14186
14187 #. type: =head2
14188 #: ../src/guestfs-actions.pod:5227
14189 msgid "guestfs_pread"
14190 msgstr ""
14191
14192 #. type: verbatim
14193 #: ../src/guestfs-actions.pod:5229
14194 #, no-wrap
14195 msgid ""
14196 " char *\n"
14197 " guestfs_pread (guestfs_h *g,\n"
14198 "                const char *path,\n"
14199 "                int count,\n"
14200 "                int64_t offset,\n"
14201 "                size_t *size_r);\n"
14202 "\n"
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../src/guestfs-actions.pod:5236 ../fish/guestfish-actions.pod:3529
14207 msgid ""
14208 "This command lets you read part of a file.  It reads C<count> bytes of the "
14209 "file, starting at C<offset>, from file C<path>."
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5265 ../fish/guestfish-actions.pod:3532 ../fish/guestfish-actions.pod:3547
14214 msgid ""
14215 "This may read fewer bytes than requested.  For further details see the "
14216 "L<pread(2)> system call."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../src/guestfs-actions.pod:5242
14221 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
14222 msgstr ""
14223
14224 #. type: =head2
14225 #: ../src/guestfs-actions.pod:5253
14226 msgid "guestfs_pread_device"
14227 msgstr ""
14228
14229 #. type: verbatim
14230 #: ../src/guestfs-actions.pod:5255
14231 #, no-wrap
14232 msgid ""
14233 " char *\n"
14234 " guestfs_pread_device (guestfs_h *g,\n"
14235 "                       const char *device,\n"
14236 "                       int count,\n"
14237 "                       int64_t offset,\n"
14238 "                       size_t *size_r);\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:3544
14244 msgid ""
14245 "This command lets you read part of a file.  It reads C<count> bytes of "
14246 "C<device>, starting at C<offset>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../src/guestfs-actions.pod:5268
14251 msgid "See also C<guestfs_pread>."
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../src/guestfs-actions.pod:5277
14256 msgid "(Added in 1.5.21)"
14257 msgstr ""
14258
14259 #. type: =head2
14260 #: ../src/guestfs-actions.pod:5279
14261 msgid "guestfs_pvcreate"
14262 msgstr ""
14263
14264 #. type: verbatim
14265 #: ../src/guestfs-actions.pod:5281
14266 #, no-wrap
14267 msgid ""
14268 " int\n"
14269 " guestfs_pvcreate (guestfs_h *g,\n"
14270 "                   const char *device);\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../src/guestfs-actions.pod:5285 ../fish/guestfish-actions.pod:3559
14276 msgid ""
14277 "This creates an LVM physical volume on the named C<device>, where C<device> "
14278 "should usually be a partition name such as C</dev/sda1>."
14279 msgstr ""
14280
14281 #. type: =head2
14282 #: ../src/guestfs-actions.pod:5293
14283 msgid "guestfs_pvremove"
14284 msgstr ""
14285
14286 #. type: verbatim
14287 #: ../src/guestfs-actions.pod:5295
14288 #, no-wrap
14289 msgid ""
14290 " int\n"
14291 " guestfs_pvremove (guestfs_h *g,\n"
14292 "                   const char *device);\n"
14293 "\n"
14294 msgstr ""
14295
14296 #. type: textblock
14297 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:3567
14298 msgid ""
14299 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14300 "it."
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3570
14305 msgid ""
14306 "The implementation uses the C<pvremove> command which refuses to wipe "
14307 "physical volumes that contain any volume groups, so you have to remove those "
14308 "first."
14309 msgstr ""
14310
14311 #. type: =head2
14312 #: ../src/guestfs-actions.pod:5310
14313 msgid "guestfs_pvresize"
14314 msgstr ""
14315
14316 #. type: verbatim
14317 #: ../src/guestfs-actions.pod:5312
14318 #, no-wrap
14319 msgid ""
14320 " int\n"
14321 " guestfs_pvresize (guestfs_h *g,\n"
14322 "                   const char *device);\n"
14323 "\n"
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3578
14328 msgid ""
14329 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14330 "the new size of the underlying device."
14331 msgstr ""
14332
14333 #. type: =head2
14334 #: ../src/guestfs-actions.pod:5323
14335 msgid "guestfs_pvresize_size"
14336 msgstr ""
14337
14338 #. type: verbatim
14339 #: ../src/guestfs-actions.pod:5325
14340 #, no-wrap
14341 msgid ""
14342 " int\n"
14343 " guestfs_pvresize_size (guestfs_h *g,\n"
14344 "                        const char *device,\n"
14345 "                        int64_t size);\n"
14346 "\n"
14347 msgstr ""
14348
14349 #. type: textblock
14350 #: ../src/guestfs-actions.pod:5330
14351 msgid ""
14352 "This command is the same as C<guestfs_pvresize> except that it allows you to "
14353 "specify the new size (in bytes) explicitly."
14354 msgstr ""
14355
14356 #. type: =head2
14357 #: ../src/guestfs-actions.pod:5337
14358 msgid "guestfs_pvs"
14359 msgstr ""
14360
14361 #. type: verbatim
14362 #: ../src/guestfs-actions.pod:5339
14363 #, no-wrap
14364 msgid ""
14365 " char **\n"
14366 " guestfs_pvs (guestfs_h *g);\n"
14367 "\n"
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3592
14372 msgid ""
14373 "List all the physical volumes detected.  This is the equivalent of the "
14374 "L<pvs(8)> command."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3595
14379 msgid ""
14380 "This returns a list of just the device names that contain PVs "
14381 "(eg. C</dev/sda2>)."
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../src/guestfs-actions.pod:5348
14386 msgid "See also C<guestfs_pvs_full>."
14387 msgstr ""
14388
14389 #. type: =head2
14390 #: ../src/guestfs-actions.pod:5356
14391 msgid "guestfs_pvs_full"
14392 msgstr ""
14393
14394 #. type: verbatim
14395 #: ../src/guestfs-actions.pod:5358
14396 #, no-wrap
14397 msgid ""
14398 " struct guestfs_lvm_pv_list *\n"
14399 " guestfs_pvs_full (guestfs_h *g);\n"
14400 "\n"
14401 msgstr ""
14402
14403 #. type: textblock
14404 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3604
14405 msgid ""
14406 "List all the physical volumes detected.  This is the equivalent of the "
14407 "L<pvs(8)> command.  The \"full\" version includes all fields."
14408 msgstr ""
14409
14410 #. type: textblock
14411 #: ../src/guestfs-actions.pod:5364
14412 msgid ""
14413 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
14414 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
14415 "use>."
14416 msgstr ""
14417
14418 #. type: =head2
14419 #: ../src/guestfs-actions.pod:5370
14420 msgid "guestfs_pvuuid"
14421 msgstr ""
14422
14423 #. type: verbatim
14424 #: ../src/guestfs-actions.pod:5372
14425 #, no-wrap
14426 msgid ""
14427 " char *\n"
14428 " guestfs_pvuuid (guestfs_h *g,\n"
14429 "                 const char *device);\n"
14430 "\n"
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../src/guestfs-actions.pod:5376 ../fish/guestfish-actions.pod:3611
14435 msgid "This command returns the UUID of the LVM PV C<device>."
14436 msgstr ""
14437
14438 #. type: =head2
14439 #: ../src/guestfs-actions.pod:5383
14440 msgid "guestfs_pwrite"
14441 msgstr ""
14442
14443 #. type: verbatim
14444 #: ../src/guestfs-actions.pod:5385
14445 #, no-wrap
14446 msgid ""
14447 " int\n"
14448 " guestfs_pwrite (guestfs_h *g,\n"
14449 "                 const char *path,\n"
14450 "                 const char *content,\n"
14451 "                 size_t content_size,\n"
14452 "                 int64_t offset);\n"
14453 "\n"
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3617
14458 msgid ""
14459 "This command writes to part of a file.  It writes the data buffer C<content> "
14460 "to the file C<path> starting at offset C<offset>."
14461 msgstr ""
14462
14463 #. type: textblock
14464 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3620
14465 msgid ""
14466 "This command implements the L<pwrite(2)> system call, and like that system "
14467 "call it may not write the full data requested.  The return value is the "
14468 "number of bytes that were actually written to the file.  This could even be "
14469 "0, although short writes are unlikely for regular files in ordinary "
14470 "circumstances."
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../src/guestfs-actions.pod:5401
14475 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
14476 msgstr ""
14477
14478 #. type: =head2
14479 #: ../src/guestfs-actions.pod:5410
14480 msgid "guestfs_pwrite_device"
14481 msgstr ""
14482
14483 #. type: verbatim
14484 #: ../src/guestfs-actions.pod:5412
14485 #, no-wrap
14486 msgid ""
14487 " int\n"
14488 " guestfs_pwrite_device (guestfs_h *g,\n"
14489 "                        const char *device,\n"
14490 "                        const char *content,\n"
14491 "                        size_t content_size,\n"
14492 "                        int64_t offset);\n"
14493 "\n"
14494 msgstr ""
14495
14496 #. type: textblock
14497 #: ../src/guestfs-actions.pod:5419 ../fish/guestfish-actions.pod:3635
14498 msgid ""
14499 "This command writes to part of a device.  It writes the data buffer "
14500 "C<content> to C<device> starting at offset C<offset>."
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3638
14505 msgid ""
14506 "This command implements the L<pwrite(2)> system call, and like that system "
14507 "call it may not write the full data requested (although short writes to disk "
14508 "devices and partitions are probably impossible with standard Linux kernels)."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../src/guestfs-actions.pod:5427
14513 msgid "See also C<guestfs_pwrite>."
14514 msgstr ""
14515
14516 #. type: textblock
14517 #: ../src/guestfs-actions.pod:5434
14518 msgid "(Added in 1.5.20)"
14519 msgstr ""
14520
14521 #. type: =head2
14522 #: ../src/guestfs-actions.pod:5436
14523 msgid "guestfs_read_file"
14524 msgstr ""
14525
14526 #. type: verbatim
14527 #: ../src/guestfs-actions.pod:5438
14528 #, no-wrap
14529 msgid ""
14530 " char *\n"
14531 " guestfs_read_file (guestfs_h *g,\n"
14532 "                    const char *path,\n"
14533 "                    size_t *size_r);\n"
14534 "\n"
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../src/guestfs-actions.pod:5443 ../fish/guestfish-actions.pod:3652
14539 msgid "This calls returns the contents of the file C<path> as a buffer."
14540 msgstr ""
14541
14542 #. type: textblock
14543 #: ../src/guestfs-actions.pod:5446
14544 msgid ""
14545 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
14546 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
14547 "function is limited in the total size of file that can be handled."
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../src/guestfs-actions.pod:5458
14552 msgid "(Added in 1.0.63)"
14553 msgstr ""
14554
14555 #. type: =head2
14556 #: ../src/guestfs-actions.pod:5460
14557 msgid "guestfs_read_lines"
14558 msgstr ""
14559
14560 #. type: verbatim
14561 #: ../src/guestfs-actions.pod:5462
14562 #, no-wrap
14563 msgid ""
14564 " char **\n"
14565 " guestfs_read_lines (guestfs_h *g,\n"
14566 "                     const char *path);\n"
14567 "\n"
14568 msgstr ""
14569
14570 #. type: textblock
14571 #: ../src/guestfs-actions.pod:5468 ../fish/guestfish-actions.pod:3669
14572 msgid ""
14573 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14574 "C<CRLF> character sequences are I<not> returned."
14575 msgstr ""
14576
14577 #. type: textblock
14578 #: ../src/guestfs-actions.pod:5471
14579 msgid ""
14580 "Note that this function cannot correctly handle binary files (specifically, "
14581 "files containing C<\\0> character which is treated as end of line).  For "
14582 "those you need to use the C<guestfs_read_file> function which has a more "
14583 "complex interface."
14584 msgstr ""
14585
14586 #. type: =head2
14587 #: ../src/guestfs-actions.pod:5482
14588 msgid "guestfs_readdir"
14589 msgstr ""
14590
14591 #. type: verbatim
14592 #: ../src/guestfs-actions.pod:5484
14593 #, no-wrap
14594 msgid ""
14595 " struct guestfs_dirent_list *\n"
14596 " guestfs_readdir (guestfs_h *g,\n"
14597 "                  const char *dir);\n"
14598 "\n"
14599 msgstr ""
14600
14601 #. type: textblock
14602 #: ../src/guestfs-actions.pod:5488 ../fish/guestfish-actions.pod:3681
14603 msgid "This returns the list of directory entries in directory C<dir>."
14604 msgstr ""
14605
14606 #. type: textblock
14607 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:3683
14608 msgid ""
14609 "All entries in the directory are returned, including C<.> and C<..>.  The "
14610 "entries are I<not> sorted, but returned in the same order as the underlying "
14611 "filesystem."
14612 msgstr ""
14613
14614 #. type: textblock
14615 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3687
14616 msgid ""
14617 "Also this call returns basic file type information about each file.  The "
14618 "C<ftyp> field will contain one of the following characters:"
14619 msgstr ""
14620
14621 #. type: =item
14622 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:3692
14623 msgid "'b'"
14624 msgstr ""
14625
14626 #. type: textblock
14627 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
14628 msgid "Block special"
14629 msgstr ""
14630
14631 #. type: =item
14632 #: ../src/guestfs-actions.pod:5503 ../fish/guestfish-actions.pod:3696
14633 msgid "'c'"
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3698
14638 msgid "Char special"
14639 msgstr ""
14640
14641 #. type: =item
14642 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3700
14643 msgid "'d'"
14644 msgstr ""
14645
14646 #. type: textblock
14647 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3702
14648 msgid "Directory"
14649 msgstr ""
14650
14651 #. type: =item
14652 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3704
14653 msgid "'f'"
14654 msgstr ""
14655
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3706
14658 msgid "FIFO (named pipe)"
14659 msgstr ""
14660
14661 #. type: =item
14662 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3708
14663 msgid "'l'"
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3710
14668 msgid "Symbolic link"
14669 msgstr ""
14670
14671 #. type: =item
14672 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3712
14673 msgid "'r'"
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3714
14678 msgid "Regular file"
14679 msgstr ""
14680
14681 #. type: =item
14682 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3716
14683 msgid "'s'"
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3718
14688 msgid "Socket"
14689 msgstr ""
14690
14691 #. type: =item
14692 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3720
14693 msgid "'u'"
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3722
14698 msgid "Unknown file type"
14699 msgstr ""
14700
14701 #. type: =item
14702 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:3724
14703 msgid "'?'"
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3726
14708 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../src/guestfs-actions.pod:5538
14713 msgid ""
14714 "This function is primarily intended for use by programs.  To get a simple "
14715 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
14716 "consumption, use C<guestfs_ll>."
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../src/guestfs-actions.pod:5542
14721 msgid ""
14722 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
14723 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
14724 "use>."
14725 msgstr ""
14726
14727 #. type: =head2
14728 #: ../src/guestfs-actions.pod:5548
14729 msgid "guestfs_readlink"
14730 msgstr ""
14731
14732 #. type: verbatim
14733 #: ../src/guestfs-actions.pod:5550
14734 #, no-wrap
14735 msgid ""
14736 " char *\n"
14737 " guestfs_readlink (guestfs_h *g,\n"
14738 "                   const char *path);\n"
14739 "\n"
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../src/guestfs-actions.pod:5554 ../fish/guestfish-actions.pod:3739
14744 msgid "This command reads the target of a symbolic link."
14745 msgstr ""
14746
14747 #. type: =head2
14748 #: ../src/guestfs-actions.pod:5561
14749 msgid "guestfs_readlinklist"
14750 msgstr ""
14751
14752 #. type: verbatim
14753 #: ../src/guestfs-actions.pod:5563
14754 #, no-wrap
14755 msgid ""
14756 " char **\n"
14757 " guestfs_readlinklist (guestfs_h *g,\n"
14758 "                       const char *path,\n"
14759 "                       char *const *names);\n"
14760 "\n"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3745
14765 msgid ""
14766 "This call allows you to do a C<readlink> operation on multiple files, where "
14767 "all files are in the directory C<path>.  C<names> is the list of files from "
14768 "this directory."
14769 msgstr ""
14770
14771 #. type: textblock
14772 #: ../src/guestfs-actions.pod:5572 ../fish/guestfish-actions.pod:3749
14773 msgid ""
14774 "On return you get a list of strings, with a one-to-one correspondence to the "
14775 "C<names> list.  Each string is the value of the symbolic link."
14776 msgstr ""
14777
14778 #. type: textblock
14779 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3753
14780 msgid ""
14781 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14782 "result string is the empty string C<\"\">.  However the whole operation is "
14783 "completed even if there were C<readlink(2)> errors, and so you can call this "
14784 "function with names where you don't know if they are symbolic links already "
14785 "(albeit slightly less efficient)."
14786 msgstr ""
14787
14788 #. type: textblock
14789 #: ../src/guestfs-actions.pod:5583 ../fish/guestfish-actions.pod:3760
14790 msgid ""
14791 "This call is intended for programs that want to efficiently list a directory "
14792 "contents without making many round-trips.  Very long directory listings "
14793 "might cause the protocol message size to be exceeded, causing this call to "
14794 "fail.  The caller must split up such requests into smaller groups of names."
14795 msgstr ""
14796
14797 #. type: =head2
14798 #: ../src/guestfs-actions.pod:5596
14799 msgid "guestfs_realpath"
14800 msgstr ""
14801
14802 #. type: verbatim
14803 #: ../src/guestfs-actions.pod:5598
14804 #, no-wrap
14805 msgid ""
14806 " char *\n"
14807 " guestfs_realpath (guestfs_h *g,\n"
14808 "                   const char *path);\n"
14809 "\n"
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../src/guestfs-actions.pod:5602 ../fish/guestfish-actions.pod:3771
14814 msgid ""
14815 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14816 "has no C<.>, C<..> or symbolic link path elements."
14817 msgstr ""
14818
14819 #. type: =head2
14820 #: ../src/guestfs-actions.pod:5610
14821 msgid "guestfs_removexattr"
14822 msgstr ""
14823
14824 #. type: verbatim
14825 #: ../src/guestfs-actions.pod:5612
14826 #, no-wrap
14827 msgid ""
14828 " int\n"
14829 " guestfs_removexattr (guestfs_h *g,\n"
14830 "                      const char *xattr,\n"
14831 "                      const char *path);\n"
14832 "\n"
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../src/guestfs-actions.pod:5617 ../fish/guestfish-actions.pod:3778
14837 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14838 msgstr ""
14839
14840 #. type: textblock
14841 #: ../src/guestfs-actions.pod:5620
14842 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
14843 msgstr ""
14844
14845 #. type: =head2
14846 #: ../src/guestfs-actions.pod:5626
14847 msgid "guestfs_resize2fs"
14848 msgstr ""
14849
14850 #. type: verbatim
14851 #: ../src/guestfs-actions.pod:5628
14852 #, no-wrap
14853 msgid ""
14854 " int\n"
14855 " guestfs_resize2fs (guestfs_h *g,\n"
14856 "                    const char *device);\n"
14857 "\n"
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../src/guestfs-actions.pod:5632 ../fish/guestfish-actions.pod:3787
14862 msgid ""
14863 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14864 "underlying device."
14865 msgstr ""
14866
14867 #. type: textblock
14868 #: ../src/guestfs-actions.pod:5635
14869 msgid ""
14870 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
14871 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
14872 "sometimes gives an error about this and sometimes not.  In any case, it is "
14873 "always safe to call C<guestfs_e2fsck_f> before calling this function."
14874 msgstr ""
14875
14876 #. type: =head2
14877 #: ../src/guestfs-actions.pod:5645
14878 msgid "guestfs_resize2fs_M"
14879 msgstr ""
14880
14881 #. type: verbatim
14882 #: ../src/guestfs-actions.pod:5647
14883 #, no-wrap
14884 msgid ""
14885 " int\n"
14886 " guestfs_resize2fs_M (guestfs_h *g,\n"
14887 "                      const char *device);\n"
14888 "\n"
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../src/guestfs-actions.pod:5651
14893 msgid ""
14894 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
14895 "resized to its minimum size.  This works like the C<-M> option to the "
14896 "C<resize2fs> command."
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../src/guestfs-actions.pod:5655
14901 msgid ""
14902 "To get the resulting size of the filesystem you should call "
14903 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
14904 "These two numbers, multiplied together, give the resulting size of the "
14905 "minimal filesystem in bytes."
14906 msgstr ""
14907
14908 #. type: =head2
14909 #: ../src/guestfs-actions.pod:5662
14910 msgid "guestfs_resize2fs_size"
14911 msgstr ""
14912
14913 #. type: verbatim
14914 #: ../src/guestfs-actions.pod:5664
14915 #, no-wrap
14916 msgid ""
14917 " int\n"
14918 " guestfs_resize2fs_size (guestfs_h *g,\n"
14919 "                         const char *device,\n"
14920 "                         int64_t size);\n"
14921 "\n"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../src/guestfs-actions.pod:5669
14926 msgid ""
14927 "This command is the same as C<guestfs_resize2fs> except that it allows you "
14928 "to specify the new size (in bytes) explicitly."
14929 msgstr ""
14930
14931 #. type: =head2
14932 #: ../src/guestfs-actions.pod:5676
14933 msgid "guestfs_rm"
14934 msgstr ""
14935
14936 #. type: verbatim
14937 #: ../src/guestfs-actions.pod:5678
14938 #, no-wrap
14939 msgid ""
14940 " int\n"
14941 " guestfs_rm (guestfs_h *g,\n"
14942 "             const char *path);\n"
14943 "\n"
14944 msgstr ""
14945
14946 #. type: textblock
14947 #: ../src/guestfs-actions.pod:5682 ../fish/guestfish-actions.pod:3820
14948 msgid "Remove the single file C<path>."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../src/guestfs-actions.pod:5688
14953 msgid "guestfs_rm_rf"
14954 msgstr ""
14955
14956 #. type: verbatim
14957 #: ../src/guestfs-actions.pod:5690
14958 #, no-wrap
14959 msgid ""
14960 " int\n"
14961 " guestfs_rm_rf (guestfs_h *g,\n"
14962 "                const char *path);\n"
14963 "\n"
14964 msgstr ""
14965
14966 #. type: textblock
14967 #: ../src/guestfs-actions.pod:5694 ../fish/guestfish-actions.pod:3826
14968 msgid ""
14969 "Remove the file or directory C<path>, recursively removing the contents if "
14970 "its a directory.  This is like the C<rm -rf> shell command."
14971 msgstr ""
14972
14973 #. type: =head2
14974 #: ../src/guestfs-actions.pod:5702
14975 msgid "guestfs_rmdir"
14976 msgstr ""
14977
14978 #. type: verbatim
14979 #: ../src/guestfs-actions.pod:5704
14980 #, no-wrap
14981 msgid ""
14982 " int\n"
14983 " guestfs_rmdir (guestfs_h *g,\n"
14984 "                const char *path);\n"
14985 "\n"
14986 msgstr ""
14987
14988 #. type: textblock
14989 #: ../src/guestfs-actions.pod:5708 ../fish/guestfish-actions.pod:3834
14990 msgid "Remove the single directory C<path>."
14991 msgstr ""
14992
14993 #. type: =head2
14994 #: ../src/guestfs-actions.pod:5714
14995 msgid "guestfs_rmmountpoint"
14996 msgstr ""
14997
14998 #. type: verbatim
14999 #: ../src/guestfs-actions.pod:5716
15000 #, no-wrap
15001 msgid ""
15002 " int\n"
15003 " guestfs_rmmountpoint (guestfs_h *g,\n"
15004 "                       const char *exemptpath);\n"
15005 "\n"
15006 msgstr ""
15007
15008 #. type: textblock
15009 #: ../src/guestfs-actions.pod:5720
15010 msgid ""
15011 "This calls removes a mountpoint that was previously created with "
15012 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
15013 msgstr ""
15014
15015 #. type: =head2
15016 #: ../src/guestfs-actions.pod:5728
15017 msgid "guestfs_scrub_device"
15018 msgstr ""
15019
15020 #. type: verbatim
15021 #: ../src/guestfs-actions.pod:5730
15022 #, no-wrap
15023 msgid ""
15024 " int\n"
15025 " guestfs_scrub_device (guestfs_h *g,\n"
15026 "                       const char *device);\n"
15027 "\n"
15028 msgstr ""
15029
15030 #. type: textblock
15031 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3848
15032 msgid ""
15033 "This command writes patterns over C<device> to make data retrieval more "
15034 "difficult."
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../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
15039 msgid ""
15040 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15041 "more details."
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../src/guestfs-actions.pod:5745 ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5782
15046 msgid "(Added in 1.0.52)"
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../src/guestfs-actions.pod:5747
15051 msgid "guestfs_scrub_file"
15052 msgstr ""
15053
15054 #. type: verbatim
15055 #: ../src/guestfs-actions.pod:5749
15056 #, no-wrap
15057 msgid ""
15058 " int\n"
15059 " guestfs_scrub_file (guestfs_h *g,\n"
15060 "                     const char *file);\n"
15061 "\n"
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3861
15066 msgid ""
15067 "This command writes patterns over a file to make data retrieval more "
15068 "difficult."
15069 msgstr ""
15070
15071 #. type: textblock
15072 #: ../src/guestfs-actions.pod:5756 ../fish/guestfish-actions.pod:3864
15073 msgid "The file is I<removed> after scrubbing."
15074 msgstr ""
15075
15076 #. type: =head2
15077 #: ../src/guestfs-actions.pod:5765
15078 msgid "guestfs_scrub_freespace"
15079 msgstr ""
15080
15081 #. type: verbatim
15082 #: ../src/guestfs-actions.pod:5767
15083 #, no-wrap
15084 msgid ""
15085 " int\n"
15086 " guestfs_scrub_freespace (guestfs_h *g,\n"
15087 "                          const char *dir);\n"
15088 "\n"
15089 msgstr ""
15090
15091 #. type: textblock
15092 #: ../src/guestfs-actions.pod:5771
15093 msgid ""
15094 "This command creates the directory C<dir> and then fills it with files until "
15095 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
15096 "and deletes them.  The intention is to scrub any free space on the partition "
15097 "containing C<dir>."
15098 msgstr ""
15099
15100 #. type: =head2
15101 #: ../src/guestfs-actions.pod:5784
15102 msgid "guestfs_set_append"
15103 msgstr ""
15104
15105 #. type: verbatim
15106 #: ../src/guestfs-actions.pod:5786
15107 #, no-wrap
15108 msgid ""
15109 " int\n"
15110 " guestfs_set_append (guestfs_h *g,\n"
15111 "                     const char *append);\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../src/guestfs-actions.pod:5790 ../fish/guestfish-actions.pod:3888
15117 msgid ""
15118 "This function is used to add additional options to the guest kernel command "
15119 "line."
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../src/guestfs-actions.pod:5793 ../fish/guestfish-actions.pod:3891
15124 msgid ""
15125 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15126 "environment variable."
15127 msgstr ""
15128
15129 #. type: textblock
15130 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:3894
15131 msgid ""
15132 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15133 "(libguestfs always adds a few of its own)."
15134 msgstr ""
15135
15136 #. type: =head2
15137 #: ../src/guestfs-actions.pod:5803
15138 msgid "guestfs_set_attach_method"
15139 msgstr ""
15140
15141 #. type: verbatim
15142 #: ../src/guestfs-actions.pod:5805
15143 #, no-wrap
15144 msgid ""
15145 " int\n"
15146 " guestfs_set_attach_method (guestfs_h *g,\n"
15147 "                            const char *attachmethod);\n"
15148 "\n"
15149 msgstr ""
15150
15151 #. type: textblock
15152 #: ../src/guestfs-actions.pod:5809 ../fish/guestfish-actions.pod:3903
15153 msgid ""
15154 "Set the method that libguestfs uses to connect to the back end guestfsd "
15155 "daemon.  Possible methods are:"
15156 msgstr ""
15157
15158 #. type: textblock
15159 #: ../src/guestfs-actions.pod:5816 ../fish/guestfish-actions.pod:3910
15160 msgid ""
15161 "Launch an appliance and connect to it.  This is the ordinary method and the "
15162 "default."
15163 msgstr ""
15164
15165 #. type: =item
15166 #: ../src/guestfs-actions.pod:5819 ../fish/guestfish-actions.pod:3913
15167 msgid "C<unix:I<path>>"
15168 msgstr ""
15169
15170 #. type: textblock
15171 #: ../src/guestfs-actions.pod:5821 ../fish/guestfish-actions.pod:3915
15172 msgid "Connect to the Unix domain socket I<path>."
15173 msgstr ""
15174
15175 #. type: textblock
15176 #: ../src/guestfs-actions.pod:5823 ../fish/guestfish-actions.pod:3917
15177 msgid ""
15178 "This method lets you connect to an existing daemon or (using virtio-serial) "
15179 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15180 "RUNNING DAEMONS>."
15181 msgstr ""
15182
15183 #. type: =head2
15184 #: ../src/guestfs-actions.pod:5831
15185 msgid "guestfs_set_autosync"
15186 msgstr ""
15187
15188 #. type: verbatim
15189 #: ../src/guestfs-actions.pod:5833
15190 #, no-wrap
15191 msgid ""
15192 " int\n"
15193 " guestfs_set_autosync (guestfs_h *g,\n"
15194 "                       int autosync);\n"
15195 "\n"
15196 msgstr ""
15197
15198 #. type: textblock
15199 #: ../src/guestfs-actions.pod:5837 ../fish/guestfish-actions.pod:3929
15200 msgid ""
15201 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15202 "effort attempt to make filesystems consistent and synchronized when the "
15203 "handle is closed (also if the program exits without closing handles)."
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../src/guestfs-actions.pod:5842 ../fish/guestfish-actions.pod:3934
15208 msgid ""
15209 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15210 "disabled by default)."
15211 msgstr ""
15212
15213 #. type: =head2
15214 #: ../src/guestfs-actions.pod:5849
15215 msgid "guestfs_set_direct"
15216 msgstr ""
15217
15218 #. type: verbatim
15219 #: ../src/guestfs-actions.pod:5851
15220 #, no-wrap
15221 msgid ""
15222 " int\n"
15223 " guestfs_set_direct (guestfs_h *g,\n"
15224 "                     int direct);\n"
15225 "\n"
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3943
15230 msgid ""
15231 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15232 "passed directly through to the appliance once it is launched."
15233 msgstr ""
15234
15235 #. type: textblock
15236 #: ../src/guestfs-actions.pod:5859
15237 msgid ""
15238 "One consequence of this is that log messages aren't caught by the library "
15239 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
15240 "stdout."
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3951
15245 msgid "You probably don't want to use this unless you know what you are doing."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3954
15250 msgid "The default is disabled."
15251 msgstr ""
15252
15253 #. type: =head2
15254 #: ../src/guestfs-actions.pod:5872
15255 msgid "guestfs_set_e2label"
15256 msgstr ""
15257
15258 #. type: verbatim
15259 #: ../src/guestfs-actions.pod:5874
15260 #, no-wrap
15261 msgid ""
15262 " int\n"
15263 " guestfs_set_e2label (guestfs_h *g,\n"
15264 "                      const char *device,\n"
15265 "                      const char *label);\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3960
15271 msgid ""
15272 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15273 "C<label>.  Filesystem labels are limited to 16 characters."
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../src/guestfs-actions.pod:5883
15278 msgid ""
15279 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
15280 "the existing label on a filesystem."
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../src/guestfs-actions.pod:5890
15285 msgid "guestfs_set_e2uuid"
15286 msgstr ""
15287
15288 #. type: verbatim
15289 #: ../src/guestfs-actions.pod:5892
15290 #, no-wrap
15291 msgid ""
15292 " int\n"
15293 " guestfs_set_e2uuid (guestfs_h *g,\n"
15294 "                     const char *device,\n"
15295 "                     const char *uuid);\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3971
15301 msgid ""
15302 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15303 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15304 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../src/guestfs-actions.pod:5902
15309 msgid ""
15310 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
15311 "the existing UUID of a filesystem."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../src/guestfs-actions.pod:5909
15316 msgid "guestfs_set_memsize"
15317 msgstr ""
15318
15319 #. type: verbatim
15320 #: ../src/guestfs-actions.pod:5911
15321 #, no-wrap
15322 msgid ""
15323 " int\n"
15324 " guestfs_set_memsize (guestfs_h *g,\n"
15325 "                      int memsize);\n"
15326 "\n"
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../src/guestfs-actions.pod:5915
15331 msgid ""
15332 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15333 "This only has any effect if called before C<guestfs_launch>."
15334 msgstr ""
15335
15336 #. type: textblock
15337 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3989
15338 msgid ""
15339 "You can also change this by setting the environment variable "
15340 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15341 msgstr ""
15342
15343 #. type: =head2
15344 #: ../src/guestfs-actions.pod:5930
15345 msgid "guestfs_set_network"
15346 msgstr ""
15347
15348 #. type: verbatim
15349 #: ../src/guestfs-actions.pod:5932
15350 #, no-wrap
15351 msgid ""
15352 " int\n"
15353 " guestfs_set_network (guestfs_h *g,\n"
15354 "                      int network);\n"
15355 "\n"
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../src/guestfs-actions.pod:5936 ../fish/guestfish-actions.pod:4002
15360 msgid ""
15361 "If C<network> is true, then the network is enabled in the libguestfs "
15362 "appliance.  The default is false."
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../src/guestfs-actions.pod:5939 ../fish/guestfish-actions.pod:4005
15367 msgid ""
15368 "This affects whether commands are able to access the network (see "
15369 "L<guestfs(3)/RUNNING COMMANDS>)."
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../src/guestfs-actions.pod:5942
15374 msgid ""
15375 "You must call this before calling C<guestfs_launch>, otherwise it has no "
15376 "effect."
15377 msgstr ""
15378
15379 #. type: =head2
15380 #: ../src/guestfs-actions.pod:5949
15381 msgid "guestfs_set_path"
15382 msgstr ""
15383
15384 #. type: verbatim
15385 #: ../src/guestfs-actions.pod:5951
15386 #, no-wrap
15387 msgid ""
15388 " int\n"
15389 " guestfs_set_path (guestfs_h *g,\n"
15390 "                   const char *searchpath);\n"
15391 "\n"
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../src/guestfs-actions.pod:5955 ../fish/guestfish-actions.pod:4017
15396 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4019
15401 msgid ""
15402 "The default is C<$libdir/guestfs> unless overridden by setting "
15403 "C<LIBGUESTFS_PATH> environment variable."
15404 msgstr ""
15405
15406 #. type: textblock
15407 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:4022
15408 msgid "Setting C<path> to C<NULL> restores the default path."
15409 msgstr ""
15410
15411 #. type: =head2
15412 #: ../src/guestfs-actions.pod:5966
15413 msgid "guestfs_set_qemu"
15414 msgstr ""
15415
15416 #. type: verbatim
15417 #: ../src/guestfs-actions.pod:5968
15418 #, no-wrap
15419 msgid ""
15420 " int\n"
15421 " guestfs_set_qemu (guestfs_h *g,\n"
15422 "                   const char *qemu);\n"
15423 "\n"
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4030
15428 msgid "Set the qemu binary that we will use."
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:4032
15433 msgid "The default is chosen when the library was compiled by the configure script."
15434 msgstr ""
15435
15436 #. type: textblock
15437 #: ../src/guestfs-actions.pod:5977 ../fish/guestfish-actions.pod:4035
15438 msgid ""
15439 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15440 "variable."
15441 msgstr ""
15442
15443 #. type: textblock
15444 #: ../src/guestfs-actions.pod:5980 ../fish/guestfish-actions.pod:4038
15445 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../src/guestfs-actions.pod:5982 ../fish/guestfish-actions.pod:4040
15450 msgid ""
15451 "Note that you should call this function as early as possible after creating "
15452 "the handle.  This is because some pre-launch operations depend on testing "
15453 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15454 "don't retest features, and so you might see inconsistent results.  Using the "
15455 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15456 "the qemu binary at the same time as the handle is created."
15457 msgstr ""
15458
15459 #. type: =head2
15460 #: ../src/guestfs-actions.pod:5994
15461 msgid "guestfs_set_recovery_proc"
15462 msgstr ""
15463
15464 #. type: verbatim
15465 #: ../src/guestfs-actions.pod:5996
15466 #, no-wrap
15467 msgid ""
15468 " int\n"
15469 " guestfs_set_recovery_proc (guestfs_h *g,\n"
15470 "                            int recoveryproc);\n"
15471 "\n"
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:6000
15476 msgid ""
15477 "If this is called with the parameter C<false> then C<guestfs_launch> does "
15478 "not create a recovery process.  The purpose of the recovery process is to "
15479 "stop runaway qemu processes in the case where the main program aborts "
15480 "abruptly."
15481 msgstr ""
15482
15483 #. type: textblock
15484 #: ../src/guestfs-actions.pod:6005
15485 msgid ""
15486 "This only has any effect if called before C<guestfs_launch>, and the default "
15487 "is true."
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../src/guestfs-actions.pod:6008 ../fish/guestfish-actions.pod:4062
15492 msgid ""
15493 "About the only time when you would want to disable this is if the main "
15494 "process will fork itself into the background (\"daemonize\" itself).  In "
15495 "this case the recovery process thinks that the main program has disappeared "
15496 "and so kills qemu, which is not very helpful."
15497 msgstr ""
15498
15499 #. type: =head2
15500 #: ../src/guestfs-actions.pod:6018
15501 msgid "guestfs_set_selinux"
15502 msgstr ""
15503
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:6020
15506 #, no-wrap
15507 msgid ""
15508 " int\n"
15509 " guestfs_set_selinux (guestfs_h *g,\n"
15510 "                      int selinux);\n"
15511 "\n"
15512 msgstr ""
15513
15514 #. type: textblock
15515 #: ../src/guestfs-actions.pod:6024 ../fish/guestfish-actions.pod:4074
15516 msgid ""
15517 "This sets the selinux flag that is passed to the appliance at boot time.  "
15518 "The default is C<selinux=0> (disabled)."
15519 msgstr ""
15520
15521 #. type: textblock
15522 #: ../src/guestfs-actions.pod:6027 ../fish/guestfish-actions.pod:4077
15523 msgid ""
15524 "Note that if SELinux is enabled, it is always in Permissive mode "
15525 "(C<enforcing=0>)."
15526 msgstr ""
15527
15528 #. type: =head2
15529 #: ../src/guestfs-actions.pod:6037
15530 msgid "guestfs_set_trace"
15531 msgstr ""
15532
15533 #. type: verbatim
15534 #: ../src/guestfs-actions.pod:6039
15535 #, no-wrap
15536 msgid ""
15537 " int\n"
15538 " guestfs_set_trace (guestfs_h *g,\n"
15539 "                    int trace);\n"
15540 "\n"
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../src/guestfs-actions.pod:6043 ../fish/guestfish-actions.pod:4089
15545 msgid ""
15546 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15547 "return values are traced."
15548 msgstr ""
15549
15550 #. type: textblock
15551 #: ../src/guestfs-actions.pod:6046 ../fish/guestfish-actions.pod:4092
15552 msgid ""
15553 "If you want to trace C API calls into libguestfs (and other libraries) then "
15554 "possibly a better way is to use the external ltrace(1) command."
15555 msgstr ""
15556
15557 #. type: textblock
15558 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4096
15559 msgid ""
15560 "Command traces are disabled unless the environment variable "
15561 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../src/guestfs-actions.pod:6053
15566 msgid ""
15567 "Trace messages are normally sent to C<stderr>, unless you register a "
15568 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
15569 msgstr ""
15570
15571 #. type: =head2
15572 #: ../src/guestfs-actions.pod:6061
15573 msgid "guestfs_set_verbose"
15574 msgstr ""
15575
15576 #. type: verbatim
15577 #: ../src/guestfs-actions.pod:6063
15578 #, no-wrap
15579 msgid ""
15580 " int\n"
15581 " guestfs_set_verbose (guestfs_h *g,\n"
15582 "                      int verbose);\n"
15583 "\n"
15584 msgstr ""
15585
15586 #. type: textblock
15587 #: ../src/guestfs-actions.pod:6067 ../fish/guestfish-actions.pod:4109
15588 msgid "If C<verbose> is true, this turns on verbose messages."
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:4111
15593 msgid ""
15594 "Verbose messages are disabled unless the environment variable "
15595 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15596 msgstr ""
15597
15598 #. type: textblock
15599 #: ../src/guestfs-actions.pod:6072
15600 msgid ""
15601 "Verbose messages are normally sent to C<stderr>, unless you register a "
15602 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
15603 msgstr ""
15604
15605 #. type: =head2
15606 #: ../src/guestfs-actions.pod:6080
15607 msgid "guestfs_setcon"
15608 msgstr ""
15609
15610 #. type: verbatim
15611 #: ../src/guestfs-actions.pod:6082
15612 #, no-wrap
15613 msgid ""
15614 " int\n"
15615 " guestfs_setcon (guestfs_h *g,\n"
15616 "                 const char *context);\n"
15617 "\n"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../src/guestfs-actions.pod:6086 ../fish/guestfish-actions.pod:4122
15622 msgid ""
15623 "This sets the SELinux security context of the daemon to the string "
15624 "C<context>."
15625 msgstr ""
15626
15627 #. type: textblock
15628 #: ../src/guestfs-actions.pod:6089 ../fish/guestfish-actions.pod:4125
15629 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../src/guestfs-actions.pod:6095
15634 msgid "guestfs_setxattr"
15635 msgstr ""
15636
15637 #. type: verbatim
15638 #: ../src/guestfs-actions.pod:6097
15639 #, no-wrap
15640 msgid ""
15641 " int\n"
15642 " guestfs_setxattr (guestfs_h *g,\n"
15643 "                   const char *xattr,\n"
15644 "                   const char *val,\n"
15645 "                   int vallen,\n"
15646 "                   const char *path);\n"
15647 "\n"
15648 msgstr ""
15649
15650 #. type: textblock
15651 #: ../src/guestfs-actions.pod:6104 ../fish/guestfish-actions.pod:4131
15652 msgid ""
15653 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15654 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../src/guestfs-actions.pod:6108
15659 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
15660 msgstr ""
15661
15662 #. type: =head2
15663 #: ../src/guestfs-actions.pod:6114
15664 msgid "guestfs_sfdisk"
15665 msgstr ""
15666
15667 #. type: verbatim
15668 #: ../src/guestfs-actions.pod:6116
15669 #, no-wrap
15670 msgid ""
15671 " int\n"
15672 " guestfs_sfdisk (guestfs_h *g,\n"
15673 "                 const char *device,\n"
15674 "                 int cyls,\n"
15675 "                 int heads,\n"
15676 "                 int sectors,\n"
15677 "                 char *const *lines);\n"
15678 "\n"
15679 msgstr ""
15680
15681 #. type: textblock
15682 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4141
15683 msgid ""
15684 "This is a direct interface to the L<sfdisk(8)> program for creating "
15685 "partitions on block devices."
15686 msgstr ""
15687
15688 #. type: textblock
15689 #: ../src/guestfs-actions.pod:6127 ../fish/guestfish-actions.pod:4144
15690 msgid "C<device> should be a block device, for example C</dev/sda>."
15691 msgstr ""
15692
15693 #. type: textblock
15694 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4146
15695 msgid ""
15696 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15697 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
15698 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15699 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15700 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15701 "the kernel) cannot work out the right geometry and you will need to tell it."
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4154
15706 msgid ""
15707 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15708 "refer to the L<sfdisk(8)> manpage."
15709 msgstr ""
15710
15711 #. type: textblock
15712 #: ../src/guestfs-actions.pod:6140 ../fish/guestfish-actions.pod:4157
15713 msgid ""
15714 "To create a single partition occupying the whole disk, you would pass "
15715 "C<lines> as a single element list, when the single element being the string "
15716 "C<,> (comma)."
15717 msgstr ""
15718
15719 #. type: textblock
15720 #: ../src/guestfs-actions.pod:6144
15721 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
15722 msgstr ""
15723
15724 #. type: =head2
15725 #: ../src/guestfs-actions.pod:6154
15726 msgid "guestfs_sfdiskM"
15727 msgstr ""
15728
15729 #. type: verbatim
15730 #: ../src/guestfs-actions.pod:6156
15731 #, no-wrap
15732 msgid ""
15733 " int\n"
15734 " guestfs_sfdiskM (guestfs_h *g,\n"
15735 "                  const char *device,\n"
15736 "                  char *const *lines);\n"
15737 "\n"
15738 msgstr ""
15739
15740 #. type: textblock
15741 #: ../src/guestfs-actions.pod:6161
15742 msgid ""
15743 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
15744 "partition sizes are specified in megabytes only (rounded to the nearest "
15745 "cylinder) and you don't need to specify the cyls, heads and sectors "
15746 "parameters which were rarely if ever used anyway."
15747 msgstr ""
15748
15749 #. type: textblock
15750 #: ../src/guestfs-actions.pod:6167
15751 msgid ""
15752 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
15753 "C<guestfs_part_disk>"
15754 msgstr ""
15755
15756 #. type: =head2
15757 #: ../src/guestfs-actions.pod:6177
15758 msgid "guestfs_sfdisk_N"
15759 msgstr ""
15760
15761 #. type: verbatim
15762 #: ../src/guestfs-actions.pod:6179
15763 #, no-wrap
15764 msgid ""
15765 " int\n"
15766 " guestfs_sfdisk_N (guestfs_h *g,\n"
15767 "                   const char *device,\n"
15768 "                   int partnum,\n"
15769 "                   int cyls,\n"
15770 "                   int heads,\n"
15771 "                   int sectors,\n"
15772 "                   const char *line);\n"
15773 "\n"
15774 msgstr ""
15775
15776 #. type: textblock
15777 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4187
15778 msgid ""
15779 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15780 "(note: C<n> counts from 1)."
15781 msgstr ""
15782
15783 #. type: textblock
15784 #: ../src/guestfs-actions.pod:6191
15785 msgid ""
15786 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
15787 "for the cyls/heads/sectors parameters."
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../src/guestfs-actions.pod:6194
15792 msgid "See also: C<guestfs_part_add>"
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../src/guestfs-actions.pod:6203
15797 msgid "guestfs_sfdisk_disk_geometry"
15798 msgstr ""
15799
15800 #. type: verbatim
15801 #: ../src/guestfs-actions.pod:6205
15802 #, no-wrap
15803 msgid ""
15804 " char *\n"
15805 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
15806 "                               const char *device);\n"
15807 "\n"
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../src/guestfs-actions.pod:6209
15812 msgid ""
15813 "This displays the disk geometry of C<device> read from the partition table.  "
15814 "Especially in the case where the underlying block device has been resized, "
15815 "this can be different from the kernel's idea of the geometry (see "
15816 "C<guestfs_sfdisk_kernel_geometry>)."
15817 msgstr ""
15818
15819 #. type: textblock
15820 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6230 ../fish/guestfish-actions.pod:4207 ../fish/guestfish-actions.pod:4216
15821 msgid "The result is in human-readable format, and not designed to be parsed."
15822 msgstr ""
15823
15824 #. type: =head2
15825 #: ../src/guestfs-actions.pod:6222
15826 msgid "guestfs_sfdisk_kernel_geometry"
15827 msgstr ""
15828
15829 #. type: verbatim
15830 #: ../src/guestfs-actions.pod:6224
15831 #, no-wrap
15832 msgid ""
15833 " char *\n"
15834 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
15835 "                                 const char *device);\n"
15836 "\n"
15837 msgstr ""
15838
15839 #. type: textblock
15840 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4214
15841 msgid "This displays the kernel's idea of the geometry of C<device>."
15842 msgstr ""
15843
15844 #. type: =head2
15845 #: ../src/guestfs-actions.pod:6238
15846 msgid "guestfs_sfdisk_l"
15847 msgstr ""
15848
15849 #. type: verbatim
15850 #: ../src/guestfs-actions.pod:6240
15851 #, no-wrap
15852 msgid ""
15853 " char *\n"
15854 " guestfs_sfdisk_l (guestfs_h *g,\n"
15855 "                   const char *device);\n"
15856 "\n"
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../src/guestfs-actions.pod:6244 ../fish/guestfish-actions.pod:4223
15861 msgid ""
15862 "This displays the partition table on C<device>, in the human-readable output "
15863 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../src/guestfs-actions.pod:6248
15868 msgid "See also: C<guestfs_part_list>"
15869 msgstr ""
15870
15871 #. type: =head2
15872 #: ../src/guestfs-actions.pod:6255
15873 msgid "guestfs_sh"
15874 msgstr ""
15875
15876 #. type: verbatim
15877 #: ../src/guestfs-actions.pod:6257
15878 #, no-wrap
15879 msgid ""
15880 " char *\n"
15881 " guestfs_sh (guestfs_h *g,\n"
15882 "             const char *command);\n"
15883 "\n"
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../src/guestfs-actions.pod:6261 ../fish/guestfish-actions.pod:4233
15888 msgid ""
15889 "This call runs a command from the guest filesystem via the guest's "
15890 "C</bin/sh>."
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../src/guestfs-actions.pod:6264
15895 msgid "This is like C<guestfs_command>, but passes the command to:"
15896 msgstr ""
15897
15898 #. type: verbatim
15899 #: ../src/guestfs-actions.pod:6266 ../fish/guestfish-actions.pod:4238
15900 #, no-wrap
15901 msgid ""
15902 " /bin/sh -c \"command\"\n"
15903 "\n"
15904 msgstr ""
15905
15906 #. type: textblock
15907 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4240
15908 msgid ""
15909 "Depending on the guest's shell, this usually results in wildcards being "
15910 "expanded, shell expressions being interpolated and so on."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../src/guestfs-actions.pod:6272
15915 msgid "All the provisos about C<guestfs_command> apply to this call."
15916 msgstr ""
15917
15918 #. type: =head2
15919 #: ../src/guestfs-actions.pod:6279
15920 msgid "guestfs_sh_lines"
15921 msgstr ""
15922
15923 #. type: verbatim
15924 #: ../src/guestfs-actions.pod:6281
15925 #, no-wrap
15926 msgid ""
15927 " char **\n"
15928 " guestfs_sh_lines (guestfs_h *g,\n"
15929 "                   const char *command);\n"
15930 "\n"
15931 msgstr ""
15932
15933 #. type: textblock
15934 #: ../src/guestfs-actions.pod:6285
15935 msgid ""
15936 "This is the same as C<guestfs_sh>, but splits the result into a list of "
15937 "lines."
15938 msgstr ""
15939
15940 #. type: textblock
15941 #: ../src/guestfs-actions.pod:6288
15942 msgid "See also: C<guestfs_command_lines>"
15943 msgstr ""
15944
15945 #. type: =head2
15946 #: ../src/guestfs-actions.pod:6296
15947 msgid "guestfs_sleep"
15948 msgstr ""
15949
15950 #. type: verbatim
15951 #: ../src/guestfs-actions.pod:6298
15952 #, no-wrap
15953 msgid ""
15954 " int\n"
15955 " guestfs_sleep (guestfs_h *g,\n"
15956 "                int secs);\n"
15957 "\n"
15958 msgstr ""
15959
15960 #. type: textblock
15961 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4259
15962 msgid "Sleep for C<secs> seconds."
15963 msgstr ""
15964
15965 #. type: textblock
15966 #: ../src/guestfs-actions.pod:6306
15967 msgid "(Added in 1.0.41)"
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../src/guestfs-actions.pod:6308 ../src/guestfs-structs.pod:109
15972 msgid "guestfs_stat"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../src/guestfs-actions.pod:6310
15977 #, no-wrap
15978 msgid ""
15979 " struct guestfs_stat *\n"
15980 " guestfs_stat (guestfs_h *g,\n"
15981 "               const char *path);\n"
15982 "\n"
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../src/guestfs-actions.pod:6316 ../fish/guestfish-actions.pod:4267
15987 msgid "This is the same as the C<stat(2)> system call."
15988 msgstr ""
15989
15990 #. type: =head2
15991 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-structs.pod:135
15992 msgid "guestfs_statvfs"
15993 msgstr ""
15994
15995 #. type: verbatim
15996 #: ../src/guestfs-actions.pod:6326
15997 #, no-wrap
15998 msgid ""
15999 " struct guestfs_statvfs *\n"
16000 " guestfs_statvfs (guestfs_h *g,\n"
16001 "                  const char *path);\n"
16002 "\n"
16003 msgstr ""
16004
16005 #. type: textblock
16006 #: ../src/guestfs-actions.pod:6330 ../fish/guestfish-actions.pod:4273
16007 msgid ""
16008 "Returns file system statistics for any mounted file system.  C<path> should "
16009 "be a file or directory in the mounted file system (typically it is the mount "
16010 "point itself, but it doesn't need to be)."
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4277
16015 msgid "This is the same as the C<statvfs(2)> system call."
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../src/guestfs-actions.pod:6336
16020 msgid ""
16021 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
16022 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
16023 msgstr ""
16024
16025 #. type: =head2
16026 #: ../src/guestfs-actions.pod:6342
16027 msgid "guestfs_strings"
16028 msgstr ""
16029
16030 #. type: verbatim
16031 #: ../src/guestfs-actions.pod:6344
16032 #, no-wrap
16033 msgid ""
16034 " char **\n"
16035 " guestfs_strings (guestfs_h *g,\n"
16036 "                  const char *path);\n"
16037 "\n"
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../src/guestfs-actions.pod:6348 ../fish/guestfish-actions.pod:4283
16042 msgid ""
16043 "This runs the L<strings(1)> command on a file and returns the list of "
16044 "printable strings found."
16045 msgstr ""
16046
16047 #. type: =head2
16048 #: ../src/guestfs-actions.pod:6360
16049 msgid "guestfs_strings_e"
16050 msgstr ""
16051
16052 #. type: verbatim
16053 #: ../src/guestfs-actions.pod:6362
16054 #, no-wrap
16055 msgid ""
16056 " char **\n"
16057 " guestfs_strings_e (guestfs_h *g,\n"
16058 "                    const char *encoding,\n"
16059 "                    const char *path);\n"
16060 "\n"
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../src/guestfs-actions.pod:6367
16065 msgid ""
16066 "This is like the C<guestfs_strings> command, but allows you to specify the "
16067 "encoding of strings that are looked for in the source file C<path>."
16068 msgstr ""
16069
16070 #. type: textblock
16071 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4297
16072 msgid "Allowed encodings are:"
16073 msgstr ""
16074
16075 #. type: =item
16076 #: ../src/guestfs-actions.pod:6375 ../fish/guestfish-actions.pod:4301
16077 msgid "s"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../src/guestfs-actions.pod:6377
16082 msgid ""
16083 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16084 "ISO-8859-X (this is what C<guestfs_strings> uses)."
16085 msgstr ""
16086
16087 #. type: =item
16088 #: ../src/guestfs-actions.pod:6380 ../fish/guestfish-actions.pod:4306
16089 msgid "S"
16090 msgstr ""
16091
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:6382 ../fish/guestfish-actions.pod:4308
16094 msgid "Single 8-bit-byte characters."
16095 msgstr ""
16096
16097 #. type: =item
16098 #: ../src/guestfs-actions.pod:6384 ../fish/guestfish-actions.pod:4310
16099 msgid "b"
16100 msgstr ""
16101
16102 #. type: textblock
16103 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4312
16104 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16105 msgstr ""
16106
16107 #. type: =item
16108 #: ../src/guestfs-actions.pod:6389 ../fish/guestfish-actions.pod:4315
16109 msgid "l (lower case letter L)"
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../src/guestfs-actions.pod:6391 ../fish/guestfish-actions.pod:4317
16114 msgid ""
16115 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16116 "examining binaries in Windows guests."
16117 msgstr ""
16118
16119 #. type: =item
16120 #: ../src/guestfs-actions.pod:6394 ../fish/guestfish-actions.pod:4320
16121 msgid "B"
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../src/guestfs-actions.pod:6396 ../fish/guestfish-actions.pod:4322
16126 msgid "32-bit big endian such as UCS-4BE."
16127 msgstr ""
16128
16129 #. type: =item
16130 #: ../src/guestfs-actions.pod:6398 ../fish/guestfish-actions.pod:4324
16131 msgid "L"
16132 msgstr ""
16133
16134 #. type: textblock
16135 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4326
16136 msgid "32-bit little endian such as UCS-4LE."
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4330
16141 msgid "The returned strings are transcoded to UTF-8."
16142 msgstr ""
16143
16144 #. type: =head2
16145 #: ../src/guestfs-actions.pod:6415
16146 msgid "guestfs_swapoff_device"
16147 msgstr ""
16148
16149 #. type: verbatim
16150 #: ../src/guestfs-actions.pod:6417
16151 #, no-wrap
16152 msgid ""
16153 " int\n"
16154 " guestfs_swapoff_device (guestfs_h *g,\n"
16155 "                         const char *device);\n"
16156 "\n"
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../src/guestfs-actions.pod:6421
16161 msgid ""
16162 "This command disables the libguestfs appliance swap device or partition "
16163 "named C<device>.  See C<guestfs_swapon_device>."
16164 msgstr ""
16165
16166 #. type: =head2
16167 #: ../src/guestfs-actions.pod:6429
16168 msgid "guestfs_swapoff_file"
16169 msgstr ""
16170
16171 #. type: verbatim
16172 #: ../src/guestfs-actions.pod:6431
16173 #, no-wrap
16174 msgid ""
16175 " int\n"
16176 " guestfs_swapoff_file (guestfs_h *g,\n"
16177 "                       const char *file);\n"
16178 "\n"
16179 msgstr ""
16180
16181 #. type: textblock
16182 #: ../src/guestfs-actions.pod:6435 ../fish/guestfish-actions.pod:4347
16183 msgid "This command disables the libguestfs appliance swap on file."
16184 msgstr ""
16185
16186 #. type: =head2
16187 #: ../src/guestfs-actions.pod:6441
16188 msgid "guestfs_swapoff_label"
16189 msgstr ""
16190
16191 #. type: verbatim
16192 #: ../src/guestfs-actions.pod:6443
16193 #, no-wrap
16194 msgid ""
16195 " int\n"
16196 " guestfs_swapoff_label (guestfs_h *g,\n"
16197 "                        const char *label);\n"
16198 "\n"
16199 msgstr ""
16200
16201 #. type: textblock
16202 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4353
16203 msgid ""
16204 "This command disables the libguestfs appliance swap on labeled swap "
16205 "partition."
16206 msgstr ""
16207
16208 #. type: =head2
16209 #: ../src/guestfs-actions.pod:6454
16210 msgid "guestfs_swapoff_uuid"
16211 msgstr ""
16212
16213 #. type: verbatim
16214 #: ../src/guestfs-actions.pod:6456
16215 #, no-wrap
16216 msgid ""
16217 " int\n"
16218 " guestfs_swapoff_uuid (guestfs_h *g,\n"
16219 "                       const char *uuid);\n"
16220 "\n"
16221 msgstr ""
16222
16223 #. type: textblock
16224 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4360
16225 msgid ""
16226 "This command disables the libguestfs appliance swap partition with the given "
16227 "UUID."
16228 msgstr ""
16229
16230 #. type: =head2
16231 #: ../src/guestfs-actions.pod:6467
16232 msgid "guestfs_swapon_device"
16233 msgstr ""
16234
16235 #. type: verbatim
16236 #: ../src/guestfs-actions.pod:6469
16237 #, no-wrap
16238 msgid ""
16239 " int\n"
16240 " guestfs_swapon_device (guestfs_h *g,\n"
16241 "                        const char *device);\n"
16242 "\n"
16243 msgstr ""
16244
16245 #. type: textblock
16246 #: ../src/guestfs-actions.pod:6473
16247 msgid ""
16248 "This command enables the libguestfs appliance to use the swap device or "
16249 "partition named C<device>.  The increased memory is made available for all "
16250 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
16251 msgstr ""
16252
16253 #. type: textblock
16254 #: ../src/guestfs-actions.pod:6478 ../fish/guestfish-actions.pod:4372
16255 msgid ""
16256 "Note that you should not swap to existing guest swap partitions unless you "
16257 "know what you are doing.  They may contain hibernation information, or other "
16258 "information that the guest doesn't want you to trash.  You also risk leaking "
16259 "information about the host to the guest this way.  Instead, attach a new "
16260 "host device to the guest and swap on that."
16261 msgstr ""
16262
16263 #. type: =head2
16264 #: ../src/guestfs-actions.pod:6489
16265 msgid "guestfs_swapon_file"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../src/guestfs-actions.pod:6491
16270 #, no-wrap
16271 msgid ""
16272 " int\n"
16273 " guestfs_swapon_file (guestfs_h *g,\n"
16274 "                      const char *file);\n"
16275 "\n"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../src/guestfs-actions.pod:6495
16280 msgid ""
16281 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
16282 "notes."
16283 msgstr ""
16284
16285 #. type: =head2
16286 #: ../src/guestfs-actions.pod:6502
16287 msgid "guestfs_swapon_label"
16288 msgstr ""
16289
16290 #. type: verbatim
16291 #: ../src/guestfs-actions.pod:6504
16292 #, no-wrap
16293 msgid ""
16294 " int\n"
16295 " guestfs_swapon_label (guestfs_h *g,\n"
16296 "                       const char *label);\n"
16297 "\n"
16298 msgstr ""
16299
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:6508
16302 msgid ""
16303 "This command enables swap to a labeled swap partition.  See "
16304 "C<guestfs_swapon_device> for other notes."
16305 msgstr ""
16306
16307 #. type: =head2
16308 #: ../src/guestfs-actions.pod:6515
16309 msgid "guestfs_swapon_uuid"
16310 msgstr ""
16311
16312 #. type: verbatim
16313 #: ../src/guestfs-actions.pod:6517
16314 #, no-wrap
16315 msgid ""
16316 " int\n"
16317 " guestfs_swapon_uuid (guestfs_h *g,\n"
16318 "                      const char *uuid);\n"
16319 "\n"
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../src/guestfs-actions.pod:6521
16324 msgid ""
16325 "This command enables swap to a swap partition with the given UUID.  See "
16326 "C<guestfs_swapon_device> for other notes."
16327 msgstr ""
16328
16329 #. type: =head2
16330 #: ../src/guestfs-actions.pod:6528
16331 msgid "guestfs_sync"
16332 msgstr ""
16333
16334 #. type: verbatim
16335 #: ../src/guestfs-actions.pod:6530
16336 #, no-wrap
16337 msgid ""
16338 " int\n"
16339 " guestfs_sync (guestfs_h *g);\n"
16340 "\n"
16341 msgstr ""
16342
16343 #. type: textblock
16344 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4404
16345 msgid ""
16346 "This syncs the disk, so that any writes are flushed through to the "
16347 "underlying disk image."
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../src/guestfs-actions.pod:6536 ../fish/guestfish-actions.pod:4407
16352 msgid ""
16353 "You should always call this if you have modified a disk image, before "
16354 "closing the handle."
16355 msgstr ""
16356
16357 #. type: =head2
16358 #: ../src/guestfs-actions.pod:6543
16359 msgid "guestfs_tail"
16360 msgstr ""
16361
16362 #. type: verbatim
16363 #: ../src/guestfs-actions.pod:6545
16364 #, no-wrap
16365 msgid ""
16366 " char **\n"
16367 " guestfs_tail (guestfs_h *g,\n"
16368 "               const char *path);\n"
16369 "\n"
16370 msgstr ""
16371
16372 #. type: textblock
16373 #: ../src/guestfs-actions.pod:6549 ../fish/guestfish-actions.pod:4414
16374 msgid "This command returns up to the last 10 lines of a file as a list of strings."
16375 msgstr ""
16376
16377 #. type: =head2
16378 #: ../src/guestfs-actions.pod:6561
16379 msgid "guestfs_tail_n"
16380 msgstr ""
16381
16382 #. type: verbatim
16383 #: ../src/guestfs-actions.pod:6563
16384 #, no-wrap
16385 msgid ""
16386 " char **\n"
16387 " guestfs_tail_n (guestfs_h *g,\n"
16388 "                 int nrlines,\n"
16389 "                 const char *path);\n"
16390 "\n"
16391 msgstr ""
16392
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4424
16395 msgid ""
16396 "If the parameter C<nrlines> is a positive number, this returns the last "
16397 "C<nrlines> lines of the file C<path>."
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../src/guestfs-actions.pod:6571 ../fish/guestfish-actions.pod:4427
16402 msgid ""
16403 "If the parameter C<nrlines> is a negative number, this returns lines from "
16404 "the file C<path>, starting with the C<-nrlines>th line."
16405 msgstr ""
16406
16407 #. type: =head2
16408 #: ../src/guestfs-actions.pod:6585
16409 msgid "guestfs_tar_in"
16410 msgstr ""
16411
16412 #. type: verbatim
16413 #: ../src/guestfs-actions.pod:6587
16414 #, no-wrap
16415 msgid ""
16416 " int\n"
16417 " guestfs_tar_in (guestfs_h *g,\n"
16418 "                 const char *tarfile,\n"
16419 "                 const char *directory);\n"
16420 "\n"
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4439
16425 msgid ""
16426 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16427 "tar file) into C<directory>."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../src/guestfs-actions.pod:6595
16432 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6649
16437 msgid "(Added in 1.0.3)"
16438 msgstr ""
16439
16440 #. type: =head2
16441 #: ../src/guestfs-actions.pod:6602
16442 msgid "guestfs_tar_out"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../src/guestfs-actions.pod:6604
16447 #, no-wrap
16448 msgid ""
16449 " int\n"
16450 " guestfs_tar_out (guestfs_h *g,\n"
16451 "                  const char *directory,\n"
16452 "                  const char *tarfile);\n"
16453 "\n"
16454 msgstr ""
16455
16456 #. type: textblock
16457 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4451
16458 msgid ""
16459 "This command packs the contents of C<directory> and downloads it to local "
16460 "file C<tarfile>."
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../src/guestfs-actions.pod:6612
16465 msgid ""
16466 "To download a compressed tarball, use C<guestfs_tgz_out> or "
16467 "C<guestfs_txz_out>."
16468 msgstr ""
16469
16470 #. type: =head2
16471 #: ../src/guestfs-actions.pod:6619
16472 msgid "guestfs_tgz_in"
16473 msgstr ""
16474
16475 #. type: verbatim
16476 #: ../src/guestfs-actions.pod:6621
16477 #, no-wrap
16478 msgid ""
16479 " int\n"
16480 " guestfs_tgz_in (guestfs_h *g,\n"
16481 "                 const char *tarball,\n"
16482 "                 const char *directory);\n"
16483 "\n"
16484 msgstr ""
16485
16486 #. type: textblock
16487 #: ../src/guestfs-actions.pod:6626 ../fish/guestfish-actions.pod:4463
16488 msgid ""
16489 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16490 "tar file) into C<directory>."
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../src/guestfs-actions.pod:6629
16495 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
16496 msgstr ""
16497
16498 #. type: =head2
16499 #: ../src/guestfs-actions.pod:6635
16500 msgid "guestfs_tgz_out"
16501 msgstr ""
16502
16503 #. type: verbatim
16504 #: ../src/guestfs-actions.pod:6637
16505 #, no-wrap
16506 msgid ""
16507 " int\n"
16508 " guestfs_tgz_out (guestfs_h *g,\n"
16509 "                  const char *directory,\n"
16510 "                  const char *tarball);\n"
16511 "\n"
16512 msgstr ""
16513
16514 #. type: textblock
16515 #: ../src/guestfs-actions.pod:6642 ../fish/guestfish-actions.pod:4474
16516 msgid ""
16517 "This command packs the contents of C<directory> and downloads it to local "
16518 "file C<tarball>."
16519 msgstr ""
16520
16521 #. type: textblock
16522 #: ../src/guestfs-actions.pod:6645
16523 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
16524 msgstr ""
16525
16526 #. type: =head2
16527 #: ../src/guestfs-actions.pod:6651
16528 msgid "guestfs_touch"
16529 msgstr ""
16530
16531 #. type: verbatim
16532 #: ../src/guestfs-actions.pod:6653
16533 #, no-wrap
16534 msgid ""
16535 " int\n"
16536 " guestfs_touch (guestfs_h *g,\n"
16537 "                const char *path);\n"
16538 "\n"
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../src/guestfs-actions.pod:6657 ../fish/guestfish-actions.pod:4485
16543 msgid ""
16544 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16545 "timestamps on a file, or, if the file does not exist, to create a new "
16546 "zero-length file."
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4489
16551 msgid ""
16552 "This command only works on regular files, and will fail on other file types "
16553 "such as directories, symbolic links, block special etc."
16554 msgstr ""
16555
16556 #. type: =head2
16557 #: ../src/guestfs-actions.pod:6668
16558 msgid "guestfs_truncate"
16559 msgstr ""
16560
16561 #. type: verbatim
16562 #: ../src/guestfs-actions.pod:6670
16563 #, no-wrap
16564 msgid ""
16565 " int\n"
16566 " guestfs_truncate (guestfs_h *g,\n"
16567 "                   const char *path);\n"
16568 "\n"
16569 msgstr ""
16570
16571 #. type: textblock
16572 #: ../src/guestfs-actions.pod:6674 ../fish/guestfish-actions.pod:4496
16573 msgid ""
16574 "This command truncates C<path> to a zero-length file.  The file must exist "
16575 "already."
16576 msgstr ""
16577
16578 #. type: =head2
16579 #: ../src/guestfs-actions.pod:6681
16580 msgid "guestfs_truncate_size"
16581 msgstr ""
16582
16583 #. type: verbatim
16584 #: ../src/guestfs-actions.pod:6683
16585 #, no-wrap
16586 msgid ""
16587 " int\n"
16588 " guestfs_truncate_size (guestfs_h *g,\n"
16589 "                        const char *path,\n"
16590 "                        int64_t size);\n"
16591 "\n"
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../src/guestfs-actions.pod:6688 ../fish/guestfish-actions.pod:4503
16596 msgid ""
16597 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16598 "already."
16599 msgstr ""
16600
16601 #. type: textblock
16602 #: ../src/guestfs-actions.pod:6691
16603 msgid ""
16604 "If the current file size is less than C<size> then the file is extended to "
16605 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16606 "blocks are not allocated for the file until you write to it).  To create a "
16607 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
16608 msgstr ""
16609
16610 #. type: =head2
16611 #: ../src/guestfs-actions.pod:6701
16612 msgid "guestfs_tune2fs_l"
16613 msgstr ""
16614
16615 #. type: verbatim
16616 #: ../src/guestfs-actions.pod:6703
16617 #, no-wrap
16618 msgid ""
16619 " char **\n"
16620 " guestfs_tune2fs_l (guestfs_h *g,\n"
16621 "                    const char *device);\n"
16622 "\n"
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../src/guestfs-actions.pod:6707 ../fish/guestfish-actions.pod:4516
16627 msgid ""
16628 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16629 "C<device>."
16630 msgstr ""
16631
16632 #. type: textblock
16633 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4519
16634 msgid ""
16635 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16636 "for more details.  The list of fields returned isn't clearly defined, and "
16637 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16638 "and the filesystem itself."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../src/guestfs-actions.pod:6723
16643 msgid "guestfs_txz_in"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../src/guestfs-actions.pod:6725
16648 #, no-wrap
16649 msgid ""
16650 " int\n"
16651 " guestfs_txz_in (guestfs_h *g,\n"
16652 "                 const char *tarball,\n"
16653 "                 const char *directory);\n"
16654 "\n"
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../src/guestfs-actions.pod:6730 ../fish/guestfish-actions.pod:4528
16659 msgid ""
16660 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16661 "tar file) into C<directory>."
16662 msgstr ""
16663
16664 #. type: =head2
16665 #: ../src/guestfs-actions.pod:6737
16666 msgid "guestfs_txz_out"
16667 msgstr ""
16668
16669 #. type: verbatim
16670 #: ../src/guestfs-actions.pod:6739
16671 #, no-wrap
16672 msgid ""
16673 " int\n"
16674 " guestfs_txz_out (guestfs_h *g,\n"
16675 "                  const char *directory,\n"
16676 "                  const char *tarball);\n"
16677 "\n"
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../src/guestfs-actions.pod:6744 ../fish/guestfish-actions.pod:4537
16682 msgid ""
16683 "This command packs the contents of C<directory> and downloads it to local "
16684 "file C<tarball> (as an xz compressed tar archive)."
16685 msgstr ""
16686
16687 #. type: =head2
16688 #: ../src/guestfs-actions.pod:6751
16689 msgid "guestfs_umask"
16690 msgstr ""
16691
16692 #. type: verbatim
16693 #: ../src/guestfs-actions.pod:6753
16694 #, no-wrap
16695 msgid ""
16696 " int\n"
16697 " guestfs_umask (guestfs_h *g,\n"
16698 "                int mask);\n"
16699 "\n"
16700 msgstr ""
16701
16702 #. type: textblock
16703 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4546
16704 msgid ""
16705 "This function sets the mask used for creating new files and device nodes to "
16706 "C<mask & 0777>."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../src/guestfs-actions.pod:6760 ../fish/guestfish-actions.pod:4549
16711 msgid ""
16712 "Typical umask values would be C<022> which creates new files with "
16713 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16714 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16715 msgstr ""
16716
16717 #. type: textblock
16718 #: ../src/guestfs-actions.pod:6765 ../fish/guestfish-actions.pod:4554
16719 msgid ""
16720 "The default umask is C<022>.  This is important because it means that "
16721 "directories and device nodes will be created with C<0644> or C<0755> mode "
16722 "even if you specify C<0777>."
16723 msgstr ""
16724
16725 #. type: textblock
16726 #: ../src/guestfs-actions.pod:6769
16727 msgid ""
16728 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
16729 "C<guestfs_mkdir>."
16730 msgstr ""
16731
16732 #. type: textblock
16733 #: ../src/guestfs-actions.pod:6772 ../fish/guestfish-actions.pod:4561
16734 msgid "This call returns the previous umask."
16735 msgstr ""
16736
16737 #. type: =head2
16738 #: ../src/guestfs-actions.pod:6778
16739 msgid "guestfs_umount"
16740 msgstr ""
16741
16742 #. type: verbatim
16743 #: ../src/guestfs-actions.pod:6780
16744 #, no-wrap
16745 msgid ""
16746 " int\n"
16747 " guestfs_umount (guestfs_h *g,\n"
16748 "                 const char *pathordevice);\n"
16749 "\n"
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4569
16754 msgid ""
16755 "This unmounts the given filesystem.  The filesystem may be specified either "
16756 "by its mountpoint (path) or the device which contains the filesystem."
16757 msgstr ""
16758
16759 #. type: =head2
16760 #: ../src/guestfs-actions.pod:6792
16761 msgid "guestfs_umount_all"
16762 msgstr ""
16763
16764 #. type: verbatim
16765 #: ../src/guestfs-actions.pod:6794
16766 #, no-wrap
16767 msgid ""
16768 " int\n"
16769 " guestfs_umount_all (guestfs_h *g);\n"
16770 "\n"
16771 msgstr ""
16772
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:6797 ../fish/guestfish-actions.pod:4579
16775 msgid "This unmounts all mounted filesystems."
16776 msgstr ""
16777
16778 #. type: textblock
16779 #: ../src/guestfs-actions.pod:6799 ../fish/guestfish-actions.pod:4581
16780 msgid "Some internal mounts are not unmounted by this call."
16781 msgstr ""
16782
16783 #. type: =head2
16784 #: ../src/guestfs-actions.pod:6805
16785 msgid "guestfs_upload"
16786 msgstr ""
16787
16788 #. type: verbatim
16789 #: ../src/guestfs-actions.pod:6807
16790 #, no-wrap
16791 msgid ""
16792 " int\n"
16793 " guestfs_upload (guestfs_h *g,\n"
16794 "                 const char *filename,\n"
16795 "                 const char *remotefilename);\n"
16796 "\n"
16797 msgstr ""
16798
16799 #. type: textblock
16800 #: ../src/guestfs-actions.pod:6812 ../src/guestfs-actions.pod:6836 ../fish/guestfish-actions.pod:4587 ../fish/guestfish-actions.pod:4600
16801 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../src/guestfs-actions.pod:6817
16806 msgid "See also C<guestfs_download>."
16807 msgstr ""
16808
16809 #. type: =head2
16810 #: ../src/guestfs-actions.pod:6828
16811 msgid "guestfs_upload_offset"
16812 msgstr ""
16813
16814 #. type: verbatim
16815 #: ../src/guestfs-actions.pod:6830
16816 #, no-wrap
16817 msgid ""
16818 " int\n"
16819 " guestfs_upload_offset (guestfs_h *g,\n"
16820 "                        const char *filename,\n"
16821 "                        const char *remotefilename,\n"
16822 "                        int64_t offset);\n"
16823 "\n"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4603
16828 msgid ""
16829 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16830 "The intention is to overwrite parts of existing files or devices, although "
16831 "if a non-existant file is specified then it is created with a \"hole\" "
16832 "before C<offset>.  The size of the data written is implicit in the size of "
16833 "the source C<filename>."
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../src/guestfs-actions.pod:6846
16838 msgid ""
16839 "Note that there is no limit on the amount of data that can be uploaded with "
16840 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
16841 "full amount unless an error occurs."
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:6851
16846 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
16847 msgstr ""
16848
16849 #. type: =head2
16850 #: ../src/guestfs-actions.pod:6862
16851 msgid "guestfs_utimens"
16852 msgstr ""
16853
16854 #. type: verbatim
16855 #: ../src/guestfs-actions.pod:6864
16856 #, no-wrap
16857 msgid ""
16858 " int\n"
16859 " guestfs_utimens (guestfs_h *g,\n"
16860 "                  const char *path,\n"
16861 "                  int64_t atsecs,\n"
16862 "                  int64_t atnsecs,\n"
16863 "                  int64_t mtsecs,\n"
16864 "                  int64_t mtnsecs);\n"
16865 "\n"
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4623
16870 msgid "This command sets the timestamps of a file with nanosecond precision."
16871 msgstr ""
16872
16873 #. type: textblock
16874 #: ../src/guestfs-actions.pod:6875 ../fish/guestfish-actions.pod:4626
16875 msgid ""
16876 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16877 "from the epoch."
16878 msgstr ""
16879
16880 #. type: textblock
16881 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4629
16882 msgid ""
16883 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16884 "nanoseconds from the epoch."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../src/guestfs-actions.pod:6881 ../fish/guestfish-actions.pod:4632
16889 msgid ""
16890 "If the C<*nsecs> field contains the special value C<-1> then the "
16891 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16892 "ignored in this case)."
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4636
16897 msgid ""
16898 "If the C<*nsecs> field contains the special value C<-2> then the "
16899 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16900 "in this case)."
16901 msgstr ""
16902
16903 #. type: =head2
16904 #: ../src/guestfs-actions.pod:6893 ../src/guestfs-structs.pod:175
16905 msgid "guestfs_version"
16906 msgstr ""
16907
16908 #. type: verbatim
16909 #: ../src/guestfs-actions.pod:6895
16910 #, no-wrap
16911 msgid ""
16912 " struct guestfs_version *\n"
16913 " guestfs_version (guestfs_h *g);\n"
16914 "\n"
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4644
16919 msgid "Return the libguestfs version number that the program is linked against."
16920 msgstr ""
16921
16922 #. type: textblock
16923 #: ../src/guestfs-actions.pod:6901 ../fish/guestfish-actions.pod:4647
16924 msgid ""
16925 "Note that because of dynamic linking this is not necessarily the version of "
16926 "libguestfs that you compiled against.  You can compile the program, and then "
16927 "at runtime dynamically link against a completely different C<libguestfs.so> "
16928 "library."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../src/guestfs-actions.pod:6906 ../fish/guestfish-actions.pod:4652
16933 msgid ""
16934 "This call was added in version C<1.0.58>.  In previous versions of "
16935 "libguestfs there was no way to get the version number.  From C code you can "
16936 "use dynamic linker functions to find out if this symbol exists (if it "
16937 "doesn't, then it's an earlier version)."
16938 msgstr ""
16939
16940 #. type: textblock
16941 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4658
16942 msgid ""
16943 "The call returns a structure with four elements.  The first three (C<major>, "
16944 "C<minor> and C<release>) are numbers and correspond to the usual version "
16945 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16946 "but may be used for distro-specific information."
16947 msgstr ""
16948
16949 #. type: textblock
16950 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4664
16951 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../src/guestfs-actions.pod:6921 ../fish/guestfish-actions.pod:4667
16956 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16957 msgstr ""
16958
16959 #. type: textblock
16960 #: ../src/guestfs-actions.pod:6923
16961 msgid ""
16962 "I<Note:> Don't use this call to test for availability of features.  In "
16963 "enterprise distributions we backport features from later versions into "
16964 "earlier versions, making this an unreliable way to test for features.  Use "
16965 "C<guestfs_available> instead."
16966 msgstr ""
16967
16968 #. type: textblock
16969 #: ../src/guestfs-actions.pod:6929
16970 msgid ""
16971 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
16972 "error.  I<The caller must call C<guestfs_free_version> after use>."
16973 msgstr ""
16974
16975 #. type: textblock
16976 #: ../src/guestfs-actions.pod:6933
16977 msgid "(Added in 1.0.58)"
16978 msgstr ""
16979
16980 #. type: =head2
16981 #: ../src/guestfs-actions.pod:6935
16982 msgid "guestfs_vfs_label"
16983 msgstr ""
16984
16985 #. type: verbatim
16986 #: ../src/guestfs-actions.pod:6937
16987 #, no-wrap
16988 msgid ""
16989 " char *\n"
16990 " guestfs_vfs_label (guestfs_h *g,\n"
16991 "                    const char *device);\n"
16992 "\n"
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../src/guestfs-actions.pod:6941 ../fish/guestfish-actions.pod:4679
16997 msgid "This returns the filesystem label of the filesystem on C<device>."
16998 msgstr ""
16999
17000 #. type: textblock
17001 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4682
17002 msgid "If the filesystem is unlabeled, this returns the empty string."
17003 msgstr ""
17004
17005 #. type: textblock
17006 #: ../src/guestfs-actions.pod:6946
17007 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
17008 msgstr ""
17009
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:6951 ../src/guestfs-actions.pod:6988
17012 msgid "(Added in 1.3.18)"
17013 msgstr ""
17014
17015 #. type: =head2
17016 #: ../src/guestfs-actions.pod:6953
17017 msgid "guestfs_vfs_type"
17018 msgstr ""
17019
17020 #. type: verbatim
17021 #: ../src/guestfs-actions.pod:6955
17022 #, no-wrap
17023 msgid ""
17024 " char *\n"
17025 " guestfs_vfs_type (guestfs_h *g,\n"
17026 "                   const char *device);\n"
17027 "\n"
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../src/guestfs-actions.pod:6959 ../fish/guestfish-actions.pod:4690
17032 msgid ""
17033 "This command gets the filesystem type corresponding to the filesystem on "
17034 "C<device>."
17035 msgstr ""
17036
17037 #. type: textblock
17038 #: ../src/guestfs-actions.pod:6962 ../fish/guestfish-actions.pod:4693
17039 msgid ""
17040 "For most filesystems, the result is the name of the Linux VFS module which "
17041 "would be used to mount this filesystem if you mounted it without specifying "
17042 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17043 msgstr ""
17044
17045 #. type: =head2
17046 #: ../src/guestfs-actions.pod:6972
17047 msgid "guestfs_vfs_uuid"
17048 msgstr ""
17049
17050 #. type: verbatim
17051 #: ../src/guestfs-actions.pod:6974
17052 #, no-wrap
17053 msgid ""
17054 " char *\n"
17055 " guestfs_vfs_uuid (guestfs_h *g,\n"
17056 "                   const char *device);\n"
17057 "\n"
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4702
17062 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../src/guestfs-actions.pod:6981 ../fish/guestfish-actions.pod:4705
17067 msgid "If the filesystem does not have a UUID, this returns the empty string."
17068 msgstr ""
17069
17070 #. type: textblock
17071 #: ../src/guestfs-actions.pod:6983
17072 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
17073 msgstr ""
17074
17075 #. type: =head2
17076 #: ../src/guestfs-actions.pod:6990
17077 msgid "guestfs_vg_activate"
17078 msgstr ""
17079
17080 #. type: verbatim
17081 #: ../src/guestfs-actions.pod:6992
17082 #, no-wrap
17083 msgid ""
17084 " int\n"
17085 " guestfs_vg_activate (guestfs_h *g,\n"
17086 "                      int activate,\n"
17087 "                      char *const *volgroups);\n"
17088 "\n"
17089 msgstr ""
17090
17091 #. type: textblock
17092 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4713
17093 msgid ""
17094 "This command activates or (if C<activate> is false) deactivates all logical "
17095 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
17096 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
17097 "deactivated, then those devices disappear."
17098 msgstr ""
17099
17100 #. type: textblock
17101 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4719
17102 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../src/guestfs-actions.pod:7005 ../fish/guestfish-actions.pod:4721
17107 msgid ""
17108 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17109 "activated or deactivated."
17110 msgstr ""
17111
17112 #. type: =head2
17113 #: ../src/guestfs-actions.pod:7012
17114 msgid "guestfs_vg_activate_all"
17115 msgstr ""
17116
17117 #. type: verbatim
17118 #: ../src/guestfs-actions.pod:7014
17119 #, no-wrap
17120 msgid ""
17121 " int\n"
17122 " guestfs_vg_activate_all (guestfs_h *g,\n"
17123 "                          int activate);\n"
17124 "\n"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../src/guestfs-actions.pod:7018 ../fish/guestfish-actions.pod:4728
17129 msgid ""
17130 "This command activates or (if C<activate> is false) deactivates all logical "
17131 "volumes in all volume groups.  If activated, then they are made known to the "
17132 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
17133 "those devices disappear."
17134 msgstr ""
17135
17136 #. type: textblock
17137 #: ../src/guestfs-actions.pod:7024 ../fish/guestfish-actions.pod:4734
17138 msgid "This command is the same as running C<vgchange -a y|n>"
17139 msgstr ""
17140
17141 #. type: =head2
17142 #: ../src/guestfs-actions.pod:7030
17143 msgid "guestfs_vgcreate"
17144 msgstr ""
17145
17146 #. type: verbatim
17147 #: ../src/guestfs-actions.pod:7032
17148 #, no-wrap
17149 msgid ""
17150 " int\n"
17151 " guestfs_vgcreate (guestfs_h *g,\n"
17152 "                   const char *volgroup,\n"
17153 "                   char *const *physvols);\n"
17154 "\n"
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../src/guestfs-actions.pod:7037 ../fish/guestfish-actions.pod:4740
17159 msgid ""
17160 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17161 "of physical volumes C<physvols>."
17162 msgstr ""
17163
17164 #. type: =head2
17165 #: ../src/guestfs-actions.pod:7044
17166 msgid "guestfs_vglvuuids"
17167 msgstr ""
17168
17169 #. type: verbatim
17170 #: ../src/guestfs-actions.pod:7046
17171 #, no-wrap
17172 msgid ""
17173 " char **\n"
17174 " guestfs_vglvuuids (guestfs_h *g,\n"
17175 "                    const char *vgname);\n"
17176 "\n"
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../src/guestfs-actions.pod:7050 ../fish/guestfish-actions.pod:4747
17181 msgid ""
17182 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17183 "volumes created in this volume group."
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../src/guestfs-actions.pod:7053
17188 msgid ""
17189 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
17190 "associate logical volumes and volume groups."
17191 msgstr ""
17192
17193 #. type: textblock
17194 #: ../src/guestfs-actions.pod:7056
17195 msgid "See also C<guestfs_vgpvuuids>."
17196 msgstr ""
17197
17198 #. type: =head2
17199 #: ../src/guestfs-actions.pod:7064
17200 msgid "guestfs_vgpvuuids"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../src/guestfs-actions.pod:7066
17205 #, no-wrap
17206 msgid ""
17207 " char **\n"
17208 " guestfs_vgpvuuids (guestfs_h *g,\n"
17209 "                    const char *vgname);\n"
17210 "\n"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../src/guestfs-actions.pod:7070 ../fish/guestfish-actions.pod:4759
17215 msgid ""
17216 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17217 "volumes that this volume group resides on."
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../src/guestfs-actions.pod:7073
17222 msgid ""
17223 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
17224 "associate physical volumes and volume groups."
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../src/guestfs-actions.pod:7076
17229 msgid "See also C<guestfs_vglvuuids>."
17230 msgstr ""
17231
17232 #. type: =head2
17233 #: ../src/guestfs-actions.pod:7084
17234 msgid "guestfs_vgremove"
17235 msgstr ""
17236
17237 #. type: verbatim
17238 #: ../src/guestfs-actions.pod:7086
17239 #, no-wrap
17240 msgid ""
17241 " int\n"
17242 " guestfs_vgremove (guestfs_h *g,\n"
17243 "                   const char *vgname);\n"
17244 "\n"
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../src/guestfs-actions.pod:7090 ../fish/guestfish-actions.pod:4771
17249 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17250 msgstr ""
17251
17252 #. type: textblock
17253 #: ../src/guestfs-actions.pod:7092 ../fish/guestfish-actions.pod:4773
17254 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
17255 msgstr ""
17256
17257 #. type: =head2
17258 #: ../src/guestfs-actions.pod:7099
17259 msgid "guestfs_vgrename"
17260 msgstr ""
17261
17262 #. type: verbatim
17263 #: ../src/guestfs-actions.pod:7101
17264 #, no-wrap
17265 msgid ""
17266 " int\n"
17267 " guestfs_vgrename (guestfs_h *g,\n"
17268 "                   const char *volgroup,\n"
17269 "                   const char *newvolgroup);\n"
17270 "\n"
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../src/guestfs-actions.pod:7106 ../fish/guestfish-actions.pod:4780
17275 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17276 msgstr ""
17277
17278 #. type: =head2
17279 #: ../src/guestfs-actions.pod:7112
17280 msgid "guestfs_vgs"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../src/guestfs-actions.pod:7114
17285 #, no-wrap
17286 msgid ""
17287 " char **\n"
17288 " guestfs_vgs (guestfs_h *g);\n"
17289 "\n"
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4786
17294 msgid ""
17295 "List all the volumes groups detected.  This is the equivalent of the "
17296 "L<vgs(8)> command."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4789
17301 msgid ""
17302 "This returns a list of just the volume group names that were detected "
17303 "(eg. C<VolGroup00>)."
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../src/guestfs-actions.pod:7123
17308 msgid "See also C<guestfs_vgs_full>."
17309 msgstr ""
17310
17311 #. type: =head2
17312 #: ../src/guestfs-actions.pod:7131
17313 msgid "guestfs_vgs_full"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../src/guestfs-actions.pod:7133
17318 #, no-wrap
17319 msgid ""
17320 " struct guestfs_lvm_vg_list *\n"
17321 " guestfs_vgs_full (guestfs_h *g);\n"
17322 "\n"
17323 msgstr ""
17324
17325 #. type: textblock
17326 #: ../src/guestfs-actions.pod:7136 ../fish/guestfish-actions.pod:4798
17327 msgid ""
17328 "List all the volumes groups detected.  This is the equivalent of the "
17329 "L<vgs(8)> command.  The \"full\" version includes all fields."
17330 msgstr ""
17331
17332 #. type: textblock
17333 #: ../src/guestfs-actions.pod:7139
17334 msgid ""
17335 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
17336 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
17337 "use>."
17338 msgstr ""
17339
17340 #. type: =head2
17341 #: ../src/guestfs-actions.pod:7145
17342 msgid "guestfs_vgscan"
17343 msgstr ""
17344
17345 #. type: verbatim
17346 #: ../src/guestfs-actions.pod:7147
17347 #, no-wrap
17348 msgid ""
17349 " int\n"
17350 " guestfs_vgscan (guestfs_h *g);\n"
17351 "\n"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../src/guestfs-actions.pod:7150 ../fish/guestfish-actions.pod:4805
17356 msgid ""
17357 "This rescans all block devices and rebuilds the list of LVM physical "
17358 "volumes, volume groups and logical volumes."
17359 msgstr ""
17360
17361 #. type: =head2
17362 #: ../src/guestfs-actions.pod:7157
17363 msgid "guestfs_vguuid"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../src/guestfs-actions.pod:7159
17368 #, no-wrap
17369 msgid ""
17370 " char *\n"
17371 " guestfs_vguuid (guestfs_h *g,\n"
17372 "                 const char *vgname);\n"
17373 "\n"
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../src/guestfs-actions.pod:7163 ../fish/guestfish-actions.pod:4812
17378 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17379 msgstr ""
17380
17381 #. type: =head2
17382 #: ../src/guestfs-actions.pod:7170
17383 msgid "guestfs_wait_ready"
17384 msgstr ""
17385
17386 #. type: verbatim
17387 #: ../src/guestfs-actions.pod:7172
17388 #, no-wrap
17389 msgid ""
17390 " int\n"
17391 " guestfs_wait_ready (guestfs_h *g);\n"
17392 "\n"
17393 msgstr ""
17394
17395 #. type: textblock
17396 #: ../src/guestfs-actions.pod:7175
17397 msgid "This function is a no op."
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../src/guestfs-actions.pod:7177
17402 msgid ""
17403 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
17404 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
17405 "is no longer necessary because C<guestfs_launch> now does the waiting."
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../src/guestfs-actions.pod:7182
17410 msgid ""
17411 "If you see any calls to this function in code then you can just remove them, "
17412 "unless you want to retain compatibility with older versions of the API."
17413 msgstr ""
17414
17415 #. type: =head2
17416 #: ../src/guestfs-actions.pod:7190
17417 msgid "guestfs_wc_c"
17418 msgstr ""
17419
17420 #. type: verbatim
17421 #: ../src/guestfs-actions.pod:7192
17422 #, no-wrap
17423 msgid ""
17424 " int\n"
17425 " guestfs_wc_c (guestfs_h *g,\n"
17426 "               const char *path);\n"
17427 "\n"
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../src/guestfs-actions.pod:7196 ../fish/guestfish-actions.pod:4818
17432 msgid ""
17433 "This command counts the characters in a file, using the C<wc -c> external "
17434 "command."
17435 msgstr ""
17436
17437 #. type: =head2
17438 #: ../src/guestfs-actions.pod:7203
17439 msgid "guestfs_wc_l"
17440 msgstr ""
17441
17442 #. type: verbatim
17443 #: ../src/guestfs-actions.pod:7205
17444 #, no-wrap
17445 msgid ""
17446 " int\n"
17447 " guestfs_wc_l (guestfs_h *g,\n"
17448 "               const char *path);\n"
17449 "\n"
17450 msgstr ""
17451
17452 #. type: textblock
17453 #: ../src/guestfs-actions.pod:7209 ../fish/guestfish-actions.pod:4825
17454 msgid ""
17455 "This command counts the lines in a file, using the C<wc -l> external "
17456 "command."
17457 msgstr ""
17458
17459 #. type: =head2
17460 #: ../src/guestfs-actions.pod:7216
17461 msgid "guestfs_wc_w"
17462 msgstr ""
17463
17464 #. type: verbatim
17465 #: ../src/guestfs-actions.pod:7218
17466 #, no-wrap
17467 msgid ""
17468 " int\n"
17469 " guestfs_wc_w (guestfs_h *g,\n"
17470 "               const char *path);\n"
17471 "\n"
17472 msgstr ""
17473
17474 #. type: textblock
17475 #: ../src/guestfs-actions.pod:7222 ../fish/guestfish-actions.pod:4832
17476 msgid ""
17477 "This command counts the words in a file, using the C<wc -w> external "
17478 "command."
17479 msgstr ""
17480
17481 #. type: =head2
17482 #: ../src/guestfs-actions.pod:7229
17483 msgid "guestfs_write"
17484 msgstr ""
17485
17486 #. type: verbatim
17487 #: ../src/guestfs-actions.pod:7231
17488 #, no-wrap
17489 msgid ""
17490 " int\n"
17491 " guestfs_write (guestfs_h *g,\n"
17492 "                const char *path,\n"
17493 "                const char *content,\n"
17494 "                size_t content_size);\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4839
17500 msgid ""
17501 "This call creates a file called C<path>.  The content of the file is the "
17502 "string C<content> (which can contain any 8 bit data)."
17503 msgstr ""
17504
17505 #. type: =head2
17506 #: ../src/guestfs-actions.pod:7247
17507 msgid "guestfs_write_file"
17508 msgstr ""
17509
17510 #. type: verbatim
17511 #: ../src/guestfs-actions.pod:7249
17512 #, no-wrap
17513 msgid ""
17514 " int\n"
17515 " guestfs_write_file (guestfs_h *g,\n"
17516 "                     const char *path,\n"
17517 "                     const char *content,\n"
17518 "                     int size);\n"
17519 "\n"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
17524 msgid ""
17525 "This call creates a file called C<path>.  The contents of the file is the "
17526 "string C<content> (which can contain any 8 bit data), with length C<size>."
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../src/guestfs-actions.pod:7259 ../fish/guestfish-actions.pod:4853
17531 msgid ""
17532 "As a special case, if C<size> is C<0> then the length is calculated using "
17533 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4857
17538 msgid ""
17539 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17540 "I<not> work, even if the length is specified."
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../src/guestfs-actions.pod:7271 ../fish/guestfish-actions.pod:4863
17545 msgid "This function is deprecated.  In new code, use the C<write> call instead."
17546 msgstr ""
17547
17548 #. type: =head2
17549 #: ../src/guestfs-actions.pod:7280
17550 msgid "guestfs_zegrep"
17551 msgstr ""
17552
17553 #. type: verbatim
17554 #: ../src/guestfs-actions.pod:7282
17555 #, no-wrap
17556 msgid ""
17557 " char **\n"
17558 " guestfs_zegrep (guestfs_h *g,\n"
17559 "                 const char *regex,\n"
17560 "                 const char *path);\n"
17561 "\n"
17562 msgstr ""
17563
17564 #. type: textblock
17565 #: ../src/guestfs-actions.pod:7287 ../fish/guestfish-actions.pod:4874
17566 msgid "This calls the external C<zegrep> program and returns the matching lines."
17567 msgstr ""
17568
17569 #. type: =head2
17570 #: ../src/guestfs-actions.pod:7299
17571 msgid "guestfs_zegrepi"
17572 msgstr ""
17573
17574 #. type: verbatim
17575 #: ../src/guestfs-actions.pod:7301
17576 #, no-wrap
17577 msgid ""
17578 " char **\n"
17579 " guestfs_zegrepi (guestfs_h *g,\n"
17580 "                  const char *regex,\n"
17581 "                  const char *path);\n"
17582 "\n"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../src/guestfs-actions.pod:7306 ../fish/guestfish-actions.pod:4884
17587 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
17588 msgstr ""
17589
17590 #. type: =head2
17591 #: ../src/guestfs-actions.pod:7318
17592 msgid "guestfs_zero"
17593 msgstr ""
17594
17595 #. type: verbatim
17596 #: ../src/guestfs-actions.pod:7320
17597 #, no-wrap
17598 msgid ""
17599 " int\n"
17600 " guestfs_zero (guestfs_h *g,\n"
17601 "               const char *device);\n"
17602 "\n"
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../src/guestfs-actions.pod:7324 ../fish/guestfish-actions.pod:4894
17607 msgid "This command writes zeroes over the first few blocks of C<device>."
17608 msgstr ""
17609
17610 #. type: textblock
17611 #: ../src/guestfs-actions.pod:7326 ../fish/guestfish-actions.pod:4896
17612 msgid ""
17613 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17614 "securely wipe the device).  It should be sufficient to remove any partition "
17615 "tables, filesystem superblocks and so on."
17616 msgstr ""
17617
17618 #. type: textblock
17619 #: ../src/guestfs-actions.pod:7330
17620 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
17621 msgstr ""
17622
17623 #. type: =head2
17624 #: ../src/guestfs-actions.pod:7341
17625 msgid "guestfs_zero_device"
17626 msgstr ""
17627
17628 #. type: verbatim
17629 #: ../src/guestfs-actions.pod:7343
17630 #, no-wrap
17631 msgid ""
17632 " int\n"
17633 " guestfs_zero_device (guestfs_h *g,\n"
17634 "                      const char *device);\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../src/guestfs-actions.pod:7347
17640 msgid ""
17641 "This command writes zeroes over the entire C<device>.  Compare with "
17642 "C<guestfs_zero> which just zeroes the first few blocks of a device."
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../src/guestfs-actions.pod:7361
17647 msgid "(Added in 1.3.1)"
17648 msgstr ""
17649
17650 #. type: =head2
17651 #: ../src/guestfs-actions.pod:7363
17652 msgid "guestfs_zerofree"
17653 msgstr ""
17654
17655 #. type: verbatim
17656 #: ../src/guestfs-actions.pod:7365
17657 #, no-wrap
17658 msgid ""
17659 " int\n"
17660 " guestfs_zerofree (guestfs_h *g,\n"
17661 "                   const char *device);\n"
17662 "\n"
17663 msgstr ""
17664
17665 #. type: textblock
17666 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4917
17667 msgid ""
17668 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17669 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17670 "possible to compress the filesystem more effectively."
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../src/guestfs-actions.pod:7374 ../fish/guestfish-actions.pod:4922
17675 msgid "You should B<not> run this program if the filesystem is mounted."
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../src/guestfs-actions.pod:7377 ../fish/guestfish-actions.pod:4925
17680 msgid ""
17681 "It is possible that using this program can damage the filesystem or data on "
17682 "the filesystem."
17683 msgstr ""
17684
17685 #. type: =head2
17686 #: ../src/guestfs-actions.pod:7384
17687 msgid "guestfs_zfgrep"
17688 msgstr ""
17689
17690 #. type: verbatim
17691 #: ../src/guestfs-actions.pod:7386
17692 #, no-wrap
17693 msgid ""
17694 " char **\n"
17695 " guestfs_zfgrep (guestfs_h *g,\n"
17696 "                 const char *pattern,\n"
17697 "                 const char *path);\n"
17698 "\n"
17699 msgstr ""
17700
17701 #. type: textblock
17702 #: ../src/guestfs-actions.pod:7391 ../fish/guestfish-actions.pod:4932
17703 msgid "This calls the external C<zfgrep> program and returns the matching lines."
17704 msgstr ""
17705
17706 #. type: =head2
17707 #: ../src/guestfs-actions.pod:7403
17708 msgid "guestfs_zfgrepi"
17709 msgstr ""
17710
17711 #. type: verbatim
17712 #: ../src/guestfs-actions.pod:7405
17713 #, no-wrap
17714 msgid ""
17715 " char **\n"
17716 " guestfs_zfgrepi (guestfs_h *g,\n"
17717 "                  const char *pattern,\n"
17718 "                  const char *path);\n"
17719 "\n"
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../src/guestfs-actions.pod:7410 ../fish/guestfish-actions.pod:4942
17724 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
17725 msgstr ""
17726
17727 #. type: =head2
17728 #: ../src/guestfs-actions.pod:7422
17729 msgid "guestfs_zfile"
17730 msgstr ""
17731
17732 #. type: verbatim
17733 #: ../src/guestfs-actions.pod:7424
17734 #, no-wrap
17735 msgid ""
17736 " char *\n"
17737 " guestfs_zfile (guestfs_h *g,\n"
17738 "                const char *meth,\n"
17739 "                const char *path);\n"
17740 "\n"
17741 msgstr ""
17742
17743 #. type: textblock
17744 #: ../src/guestfs-actions.pod:7429 ../fish/guestfish-actions.pod:4952
17745 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../src/guestfs-actions.pod:7432 ../fish/guestfish-actions.pod:4955
17750 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17751 msgstr ""
17752
17753 #. type: textblock
17754 #: ../src/guestfs-actions.pod:7434
17755 msgid ""
17756 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
17757 "files."
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../src/guestfs-actions.pod:7440 ../fish/guestfish-actions.pod:4960
17762 msgid "This function is deprecated.  In new code, use the C<file> call instead."
17763 msgstr ""
17764
17765 #. type: =head2
17766 #: ../src/guestfs-actions.pod:7449
17767 msgid "guestfs_zgrep"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../src/guestfs-actions.pod:7451
17772 #, no-wrap
17773 msgid ""
17774 " char **\n"
17775 " guestfs_zgrep (guestfs_h *g,\n"
17776 "                const char *regex,\n"
17777 "                const char *path);\n"
17778 "\n"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../src/guestfs-actions.pod:7456 ../fish/guestfish-actions.pod:4971
17783 msgid "This calls the external C<zgrep> program and returns the matching lines."
17784 msgstr ""
17785
17786 #. type: =head2
17787 #: ../src/guestfs-actions.pod:7468
17788 msgid "guestfs_zgrepi"
17789 msgstr ""
17790
17791 #. type: verbatim
17792 #: ../src/guestfs-actions.pod:7470
17793 #, no-wrap
17794 msgid ""
17795 " char **\n"
17796 " guestfs_zgrepi (guestfs_h *g,\n"
17797 "                 const char *regex,\n"
17798 "                 const char *path);\n"
17799 "\n"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../src/guestfs-actions.pod:7475 ../fish/guestfish-actions.pod:4981
17804 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
17805 msgstr ""
17806
17807 #. type: =item
17808 #: ../src/guestfs-availability.pod:3
17809 msgid "B<augeas>"
17810 msgstr ""
17811
17812 #. type: textblock
17813 #: ../src/guestfs-availability.pod:5
17814 msgid ""
17815 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
17816 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
17817 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
17818 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
17819 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
17820 msgstr ""
17821
17822 #. type: =item
17823 #: ../src/guestfs-availability.pod:21
17824 msgid "B<inotify>"
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../src/guestfs-availability.pod:23
17829 msgid ""
17830 "The following functions: L</guestfs_inotify_add_watch> "
17831 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
17832 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
17833 msgstr ""
17834
17835 #. type: =item
17836 #: ../src/guestfs-availability.pod:31
17837 msgid "B<linuxfsuuid>"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../src/guestfs-availability.pod:33
17842 msgid ""
17843 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
17844 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
17845 msgstr ""
17846
17847 #. type: =item
17848 #: ../src/guestfs-availability.pod:40
17849 msgid "B<linuxmodules>"
17850 msgstr ""
17851
17852 #. type: textblock
17853 #: ../src/guestfs-availability.pod:42
17854 msgid "The following functions: L</guestfs_modprobe>"
17855 msgstr ""
17856
17857 #. type: =item
17858 #: ../src/guestfs-availability.pod:45
17859 msgid "B<linuxxattrs>"
17860 msgstr ""
17861
17862 #. type: textblock
17863 #: ../src/guestfs-availability.pod:47
17864 msgid ""
17865 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
17866 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
17867 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
17868 "L</guestfs_setxattr>"
17869 msgstr ""
17870
17871 #. type: =item
17872 #: ../src/guestfs-availability.pod:58
17873 msgid "B<luks>"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../src/guestfs-availability.pod:60
17878 msgid ""
17879 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
17880 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
17881 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
17882 msgstr ""
17883
17884 #. type: =item
17885 #: ../src/guestfs-availability.pod:69
17886 msgid "B<lvm2>"
17887 msgstr ""
17888
17889 #. type: textblock
17890 #: ../src/guestfs-availability.pod:71
17891 msgid ""
17892 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
17893 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
17894 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
17895 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
17896 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
17897 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
17898 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
17899 "L</guestfs_vgs_full>"
17900 msgstr ""
17901
17902 #. type: =item
17903 #: ../src/guestfs-availability.pod:94
17904 msgid "B<mknod>"
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../src/guestfs-availability.pod:96
17909 msgid ""
17910 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
17911 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
17912 msgstr ""
17913
17914 #. type: =item
17915 #: ../src/guestfs-availability.pod:102
17916 msgid "B<ntfs3g>"
17917 msgstr ""
17918
17919 #. type: textblock
17920 #: ../src/guestfs-availability.pod:104
17921 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
17922 msgstr ""
17923
17924 #. type: =item
17925 #: ../src/guestfs-availability.pod:107
17926 msgid "B<ntfsprogs>"
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../src/guestfs-availability.pod:109
17931 msgid "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
17932 msgstr ""
17933
17934 #. type: =item
17935 #: ../src/guestfs-availability.pod:113
17936 msgid "B<realpath>"
17937 msgstr ""
17938
17939 #. type: textblock
17940 #: ../src/guestfs-availability.pod:115
17941 msgid "The following functions: L</guestfs_realpath>"
17942 msgstr ""
17943
17944 #. type: =item
17945 #: ../src/guestfs-availability.pod:118
17946 msgid "B<scrub>"
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../src/guestfs-availability.pod:120
17951 msgid ""
17952 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
17953 "L</guestfs_scrub_freespace>"
17954 msgstr ""
17955
17956 #. type: =item
17957 #: ../src/guestfs-availability.pod:125
17958 msgid "B<selinux>"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../src/guestfs-availability.pod:127
17963 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
17964 msgstr ""
17965
17966 #. type: =item
17967 #: ../src/guestfs-availability.pod:131
17968 msgid "B<xz>"
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../src/guestfs-availability.pod:133
17973 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
17974 msgstr ""
17975
17976 #. type: =item
17977 #: ../src/guestfs-availability.pod:137
17978 msgid "B<zerofree>"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../src/guestfs-availability.pod:139
17983 msgid "The following functions: L</guestfs_zerofree>"
17984 msgstr ""
17985
17986 #. type: =head2
17987 #: ../src/guestfs-structs.pod:1
17988 msgid "guestfs_int_bool"
17989 msgstr ""
17990
17991 #. type: verbatim
17992 #: ../src/guestfs-structs.pod:3
17993 #, no-wrap
17994 msgid ""
17995 " struct guestfs_int_bool {\n"
17996 "   int32_t i;\n"
17997 "   int32_t b;\n"
17998 " };\n"
17999 " \n"
18000 msgstr ""
18001
18002 #. type: verbatim
18003 #: ../src/guestfs-structs.pod:8
18004 #, no-wrap
18005 msgid ""
18006 " struct guestfs_int_bool_list {\n"
18007 "   uint32_t len; /* Number of elements in list. */\n"
18008 "   struct guestfs_int_bool *val; /* Elements. */\n"
18009 " };\n"
18010 " \n"
18011 msgstr ""
18012
18013 #. type: verbatim
18014 #: ../src/guestfs-structs.pod:13
18015 #, no-wrap
18016 msgid ""
18017 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
18018 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
18019 "\n"
18020 msgstr ""
18021
18022 #. type: =head2
18023 #: ../src/guestfs-structs.pod:16
18024 msgid "guestfs_lvm_pv"
18025 msgstr ""
18026
18027 #. type: verbatim
18028 #: ../src/guestfs-structs.pod:18
18029 #, no-wrap
18030 msgid ""
18031 " struct guestfs_lvm_pv {\n"
18032 "   char *pv_name;\n"
18033 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18034 "*/\n"
18035 "   char pv_uuid[32];\n"
18036 "   char *pv_fmt;\n"
18037 "   uint64_t pv_size;\n"
18038 "   uint64_t dev_size;\n"
18039 "   uint64_t pv_free;\n"
18040 "   uint64_t pv_used;\n"
18041 "   char *pv_attr;\n"
18042 "   int64_t pv_pe_count;\n"
18043 "   int64_t pv_pe_alloc_count;\n"
18044 "   char *pv_tags;\n"
18045 "   uint64_t pe_start;\n"
18046 "   int64_t pv_mda_count;\n"
18047 "   uint64_t pv_mda_free;\n"
18048 " };\n"
18049 " \n"
18050 msgstr ""
18051
18052 #. type: verbatim
18053 #: ../src/guestfs-structs.pod:36
18054 #, no-wrap
18055 msgid ""
18056 " struct guestfs_lvm_pv_list {\n"
18057 "   uint32_t len; /* Number of elements in list. */\n"
18058 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
18059 " };\n"
18060 " \n"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../src/guestfs-structs.pod:41
18065 #, no-wrap
18066 msgid ""
18067 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
18068 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
18069 "\n"
18070 msgstr ""
18071
18072 #. type: =head2
18073 #: ../src/guestfs-structs.pod:44
18074 msgid "guestfs_lvm_vg"
18075 msgstr ""
18076
18077 #. type: verbatim
18078 #: ../src/guestfs-structs.pod:46
18079 #, no-wrap
18080 msgid ""
18081 " struct guestfs_lvm_vg {\n"
18082 "   char *vg_name;\n"
18083 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18084 "*/\n"
18085 "   char vg_uuid[32];\n"
18086 "   char *vg_fmt;\n"
18087 "   char *vg_attr;\n"
18088 "   uint64_t vg_size;\n"
18089 "   uint64_t vg_free;\n"
18090 "   char *vg_sysid;\n"
18091 "   uint64_t vg_extent_size;\n"
18092 "   int64_t vg_extent_count;\n"
18093 "   int64_t vg_free_count;\n"
18094 "   int64_t max_lv;\n"
18095 "   int64_t max_pv;\n"
18096 "   int64_t pv_count;\n"
18097 "   int64_t lv_count;\n"
18098 "   int64_t snap_count;\n"
18099 "   int64_t vg_seqno;\n"
18100 "   char *vg_tags;\n"
18101 "   int64_t vg_mda_count;\n"
18102 "   uint64_t vg_mda_free;\n"
18103 " };\n"
18104 " \n"
18105 msgstr ""
18106
18107 #. type: verbatim
18108 #: ../src/guestfs-structs.pod:69
18109 #, no-wrap
18110 msgid ""
18111 " struct guestfs_lvm_vg_list {\n"
18112 "   uint32_t len; /* Number of elements in list. */\n"
18113 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
18114 " };\n"
18115 " \n"
18116 msgstr ""
18117
18118 #. type: verbatim
18119 #: ../src/guestfs-structs.pod:74
18120 #, no-wrap
18121 msgid ""
18122 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
18123 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
18124 "\n"
18125 msgstr ""
18126
18127 #. type: =head2
18128 #: ../src/guestfs-structs.pod:77
18129 msgid "guestfs_lvm_lv"
18130 msgstr ""
18131
18132 #. type: verbatim
18133 #: ../src/guestfs-structs.pod:79
18134 #, no-wrap
18135 msgid ""
18136 " struct guestfs_lvm_lv {\n"
18137 "   char *lv_name;\n"
18138 "   /* The next field is NOT nul-terminated, be careful when printing it: "
18139 "*/\n"
18140 "   char lv_uuid[32];\n"
18141 "   char *lv_attr;\n"
18142 "   int64_t lv_major;\n"
18143 "   int64_t lv_minor;\n"
18144 "   int64_t lv_kernel_major;\n"
18145 "   int64_t lv_kernel_minor;\n"
18146 "   uint64_t lv_size;\n"
18147 "   int64_t seg_count;\n"
18148 "   char *origin;\n"
18149 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18150 "   float snap_percent;\n"
18151 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
18152 "   float copy_percent;\n"
18153 "   char *move_pv;\n"
18154 "   char *lv_tags;\n"
18155 "   char *mirror_log;\n"
18156 "   char *modules;\n"
18157 " };\n"
18158 " \n"
18159 msgstr ""
18160
18161 #. type: verbatim
18162 #: ../src/guestfs-structs.pod:101
18163 #, no-wrap
18164 msgid ""
18165 " struct guestfs_lvm_lv_list {\n"
18166 "   uint32_t len; /* Number of elements in list. */\n"
18167 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
18168 " };\n"
18169 " \n"
18170 msgstr ""
18171
18172 #. type: verbatim
18173 #: ../src/guestfs-structs.pod:106
18174 #, no-wrap
18175 msgid ""
18176 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
18177 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
18178 "\n"
18179 msgstr ""
18180
18181 #. type: verbatim
18182 #: ../src/guestfs-structs.pod:111
18183 #, no-wrap
18184 msgid ""
18185 " struct guestfs_stat {\n"
18186 "   int64_t dev;\n"
18187 "   int64_t ino;\n"
18188 "   int64_t mode;\n"
18189 "   int64_t nlink;\n"
18190 "   int64_t uid;\n"
18191 "   int64_t gid;\n"
18192 "   int64_t rdev;\n"
18193 "   int64_t size;\n"
18194 "   int64_t blksize;\n"
18195 "   int64_t blocks;\n"
18196 "   int64_t atime;\n"
18197 "   int64_t mtime;\n"
18198 "   int64_t ctime;\n"
18199 " };\n"
18200 " \n"
18201 msgstr ""
18202
18203 #. type: verbatim
18204 #: ../src/guestfs-structs.pod:127
18205 #, no-wrap
18206 msgid ""
18207 " struct guestfs_stat_list {\n"
18208 "   uint32_t len; /* Number of elements in list. */\n"
18209 "   struct guestfs_stat *val; /* Elements. */\n"
18210 " };\n"
18211 " \n"
18212 msgstr ""
18213
18214 #. type: verbatim
18215 #: ../src/guestfs-structs.pod:132
18216 #, no-wrap
18217 msgid ""
18218 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
18219 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
18220 "\n"
18221 msgstr ""
18222
18223 #. type: verbatim
18224 #: ../src/guestfs-structs.pod:137
18225 #, no-wrap
18226 msgid ""
18227 " struct guestfs_statvfs {\n"
18228 "   int64_t bsize;\n"
18229 "   int64_t frsize;\n"
18230 "   int64_t blocks;\n"
18231 "   int64_t bfree;\n"
18232 "   int64_t bavail;\n"
18233 "   int64_t files;\n"
18234 "   int64_t ffree;\n"
18235 "   int64_t favail;\n"
18236 "   int64_t fsid;\n"
18237 "   int64_t flag;\n"
18238 "   int64_t namemax;\n"
18239 " };\n"
18240 " \n"
18241 msgstr ""
18242
18243 #. type: verbatim
18244 #: ../src/guestfs-structs.pod:151
18245 #, no-wrap
18246 msgid ""
18247 " struct guestfs_statvfs_list {\n"
18248 "   uint32_t len; /* Number of elements in list. */\n"
18249 "   struct guestfs_statvfs *val; /* Elements. */\n"
18250 " };\n"
18251 " \n"
18252 msgstr ""
18253
18254 #. type: verbatim
18255 #: ../src/guestfs-structs.pod:156
18256 #, no-wrap
18257 msgid ""
18258 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
18259 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
18260 "\n"
18261 msgstr ""
18262
18263 #. type: =head2
18264 #: ../src/guestfs-structs.pod:159
18265 msgid "guestfs_dirent"
18266 msgstr ""
18267
18268 #. type: verbatim
18269 #: ../src/guestfs-structs.pod:161
18270 #, no-wrap
18271 msgid ""
18272 " struct guestfs_dirent {\n"
18273 "   int64_t ino;\n"
18274 "   char ftyp;\n"
18275 "   char *name;\n"
18276 " };\n"
18277 " \n"
18278 msgstr ""
18279
18280 #. type: verbatim
18281 #: ../src/guestfs-structs.pod:167
18282 #, no-wrap
18283 msgid ""
18284 " struct guestfs_dirent_list {\n"
18285 "   uint32_t len; /* Number of elements in list. */\n"
18286 "   struct guestfs_dirent *val; /* Elements. */\n"
18287 " };\n"
18288 " \n"
18289 msgstr ""
18290
18291 #. type: verbatim
18292 #: ../src/guestfs-structs.pod:172
18293 #, no-wrap
18294 msgid ""
18295 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
18296 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
18297 "\n"
18298 msgstr ""
18299
18300 #. type: verbatim
18301 #: ../src/guestfs-structs.pod:177
18302 #, no-wrap
18303 msgid ""
18304 " struct guestfs_version {\n"
18305 "   int64_t major;\n"
18306 "   int64_t minor;\n"
18307 "   int64_t release;\n"
18308 "   char *extra;\n"
18309 " };\n"
18310 " \n"
18311 msgstr ""
18312
18313 #. type: verbatim
18314 #: ../src/guestfs-structs.pod:184
18315 #, no-wrap
18316 msgid ""
18317 " struct guestfs_version_list {\n"
18318 "   uint32_t len; /* Number of elements in list. */\n"
18319 "   struct guestfs_version *val; /* Elements. */\n"
18320 " };\n"
18321 " \n"
18322 msgstr ""
18323
18324 #. type: verbatim
18325 #: ../src/guestfs-structs.pod:189
18326 #, no-wrap
18327 msgid ""
18328 " void guestfs_free_version (struct guestfs_free_version *);\n"
18329 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
18330 "\n"
18331 msgstr ""
18332
18333 #. type: =head2
18334 #: ../src/guestfs-structs.pod:192
18335 msgid "guestfs_xattr"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../src/guestfs-structs.pod:194
18340 #, no-wrap
18341 msgid ""
18342 " struct guestfs_xattr {\n"
18343 "   char *attrname;\n"
18344 "   /* The next two fields describe a byte array. */\n"
18345 "   uint32_t attrval_len;\n"
18346 "   char *attrval;\n"
18347 " };\n"
18348 " \n"
18349 msgstr ""
18350
18351 #. type: verbatim
18352 #: ../src/guestfs-structs.pod:201
18353 #, no-wrap
18354 msgid ""
18355 " struct guestfs_xattr_list {\n"
18356 "   uint32_t len; /* Number of elements in list. */\n"
18357 "   struct guestfs_xattr *val; /* Elements. */\n"
18358 " };\n"
18359 " \n"
18360 msgstr ""
18361
18362 #. type: verbatim
18363 #: ../src/guestfs-structs.pod:206
18364 #, no-wrap
18365 msgid ""
18366 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
18367 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
18368 "\n"
18369 msgstr ""
18370
18371 #. type: =head2
18372 #: ../src/guestfs-structs.pod:209
18373 msgid "guestfs_inotify_event"
18374 msgstr ""
18375
18376 #. type: verbatim
18377 #: ../src/guestfs-structs.pod:211
18378 #, no-wrap
18379 msgid ""
18380 " struct guestfs_inotify_event {\n"
18381 "   int64_t in_wd;\n"
18382 "   uint32_t in_mask;\n"
18383 "   uint32_t in_cookie;\n"
18384 "   char *in_name;\n"
18385 " };\n"
18386 " \n"
18387 msgstr ""
18388
18389 #. type: verbatim
18390 #: ../src/guestfs-structs.pod:218
18391 #, no-wrap
18392 msgid ""
18393 " struct guestfs_inotify_event_list {\n"
18394 "   uint32_t len; /* Number of elements in list. */\n"
18395 "   struct guestfs_inotify_event *val; /* Elements. */\n"
18396 " };\n"
18397 " \n"
18398 msgstr ""
18399
18400 #. type: verbatim
18401 #: ../src/guestfs-structs.pod:223
18402 #, no-wrap
18403 msgid ""
18404 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
18405 " void guestfs_free_inotify_event_list (struct "
18406 "guestfs_free_inotify_event_list *);\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: =head2
18411 #: ../src/guestfs-structs.pod:226
18412 msgid "guestfs_partition"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../src/guestfs-structs.pod:228
18417 #, no-wrap
18418 msgid ""
18419 " struct guestfs_partition {\n"
18420 "   int32_t part_num;\n"
18421 "   uint64_t part_start;\n"
18422 "   uint64_t part_end;\n"
18423 "   uint64_t part_size;\n"
18424 " };\n"
18425 " \n"
18426 msgstr ""
18427
18428 #. type: verbatim
18429 #: ../src/guestfs-structs.pod:235
18430 #, no-wrap
18431 msgid ""
18432 " struct guestfs_partition_list {\n"
18433 "   uint32_t len; /* Number of elements in list. */\n"
18434 "   struct guestfs_partition *val; /* Elements. */\n"
18435 " };\n"
18436 " \n"
18437 msgstr ""
18438
18439 #. type: verbatim
18440 #: ../src/guestfs-structs.pod:240
18441 #, no-wrap
18442 msgid ""
18443 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
18444 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
18445 "\n"
18446 msgstr ""
18447
18448 #. type: =head2
18449 #: ../src/guestfs-structs.pod:243
18450 msgid "guestfs_application"
18451 msgstr ""
18452
18453 #. type: verbatim
18454 #: ../src/guestfs-structs.pod:245
18455 #, no-wrap
18456 msgid ""
18457 " struct guestfs_application {\n"
18458 "   char *app_name;\n"
18459 "   char *app_display_name;\n"
18460 "   int32_t app_epoch;\n"
18461 "   char *app_version;\n"
18462 "   char *app_release;\n"
18463 "   char *app_install_path;\n"
18464 "   char *app_trans_path;\n"
18465 "   char *app_publisher;\n"
18466 "   char *app_url;\n"
18467 "   char *app_source_package;\n"
18468 "   char *app_summary;\n"
18469 "   char *app_description;\n"
18470 " };\n"
18471 " \n"
18472 msgstr ""
18473
18474 #. type: verbatim
18475 #: ../src/guestfs-structs.pod:260
18476 #, no-wrap
18477 msgid ""
18478 " struct guestfs_application_list {\n"
18479 "   uint32_t len; /* Number of elements in list. */\n"
18480 "   struct guestfs_application *val; /* Elements. */\n"
18481 " };\n"
18482 " \n"
18483 msgstr ""
18484
18485 #. type: verbatim
18486 #: ../src/guestfs-structs.pod:265
18487 #, no-wrap
18488 msgid ""
18489 " void guestfs_free_application (struct guestfs_free_application *);\n"
18490 " void guestfs_free_application_list (struct guestfs_free_application_list "
18491 "*);\n"
18492 "\n"
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fish/guestfish.pod:5
18497 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18498 msgstr ""
18499
18500 #. type: verbatim
18501 #: ../fish/guestfish.pod:9
18502 #, no-wrap
18503 msgid ""
18504 " guestfish [--options] [commands]\n"
18505 "\n"
18506 msgstr ""
18507
18508 #. type: verbatim
18509 #: ../fish/guestfish.pod:11
18510 #, no-wrap
18511 msgid ""
18512 " guestfish\n"
18513 "\n"
18514 msgstr ""
18515
18516 #. type: verbatim
18517 #: ../fish/guestfish.pod:13
18518 #, no-wrap
18519 msgid ""
18520 " guestfish [--ro|--rw] -a disk.img\n"
18521 "\n"
18522 msgstr ""
18523
18524 #. type: verbatim
18525 #: ../fish/guestfish.pod:15
18526 #, no-wrap
18527 msgid ""
18528 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18529 "\n"
18530 msgstr ""
18531
18532 #. type: verbatim
18533 #: ../fish/guestfish.pod:17
18534 #, no-wrap
18535 msgid ""
18536 " guestfish -d libvirt-domain\n"
18537 "\n"
18538 msgstr ""
18539
18540 #. type: verbatim
18541 #: ../fish/guestfish.pod:19
18542 #, no-wrap
18543 msgid ""
18544 " guestfish [--ro|--rw] -a disk.img -i\n"
18545 "\n"
18546 msgstr ""
18547
18548 #. type: verbatim
18549 #: ../fish/guestfish.pod:21
18550 #, no-wrap
18551 msgid ""
18552 " guestfish -d libvirt-domain -i\n"
18553 "\n"
18554 msgstr ""
18555
18556 #. type: =head1
18557 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44 ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
18558 msgid "WARNING"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:25
18563 msgid ""
18564 "Using guestfish in read/write mode on live virtual machines can be "
18565 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18566 "option to use guestfish safely if the disk image or virtual machine might be "
18567 "live."
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish.pod:32
18572 msgid ""
18573 "Guestfish is a shell and command-line tool for examining and modifying "
18574 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18575 "functionality of the guestfs API, see L<guestfs(3)>."
18576 msgstr ""
18577
18578 #. type: textblock
18579 #: ../fish/guestfish.pod:36
18580 msgid ""
18581 "Guestfish gives you structured access to the libguestfs API, from shell "
18582 "scripts or the command line or interactively.  If you want to rescue a "
18583 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18584 "command."
18585 msgstr ""
18586
18587 #. type: =head1
18588 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:947 ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:63 ../tools/virt-tar.pl:50
18589 msgid "EXAMPLES"
18590 msgstr ""
18591
18592 #. type: =head2
18593 #: ../fish/guestfish.pod:43
18594 msgid "As an interactive shell"
18595 msgstr ""
18596
18597 #. type: verbatim
18598 #: ../fish/guestfish.pod:45
18599 #, no-wrap
18600 msgid ""
18601 " $ guestfish\n"
18602 " \n"
18603 msgstr ""
18604
18605 #. type: verbatim
18606 #: ../fish/guestfish.pod:47
18607 #, no-wrap
18608 msgid ""
18609 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18610 " editing virtual machine filesystems.\n"
18611 " \n"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../fish/guestfish.pod:50
18616 #, no-wrap
18617 msgid ""
18618 " Type: 'help' for a list of commands\n"
18619 "       'man' to read the manual\n"
18620 "       'quit' to quit the shell\n"
18621 " \n"
18622 msgstr ""
18623
18624 #. type: verbatim
18625 #: ../fish/guestfish.pod:54
18626 #, no-wrap
18627 msgid ""
18628 " ><fs> add-ro disk.img\n"
18629 " ><fs> run\n"
18630 " ><fs> list-filesystems\n"
18631 " /dev/sda1: ext4\n"
18632 " /dev/vg_guest/lv_root: ext4\n"
18633 " /dev/vg_guest/lv_swap: swap\n"
18634 " ><fs> mount /dev/vg_guest/lv_root /\n"
18635 " ><fs> cat /etc/fstab\n"
18636 " # /etc/fstab\n"
18637 " # Created by anaconda\n"
18638 " [...]\n"
18639 " ><fs> exit\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: =head2
18644 #: ../fish/guestfish.pod:67
18645 msgid "From shell scripts"
18646 msgstr ""
18647
18648 #. type: textblock
18649 #: ../fish/guestfish.pod:69
18650 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18651 msgstr ""
18652
18653 #. type: verbatim
18654 #: ../fish/guestfish.pod:71
18655 #, no-wrap
18656 msgid ""
18657 " guestfish <<_EOF_\n"
18658 " add disk.img\n"
18659 " run\n"
18660 " mount /dev/vg_guest/lv_root /\n"
18661 " write /etc/motd \"Welcome, new users\"\n"
18662 " _EOF_\n"
18663 "\n"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../fish/guestfish.pod:78
18668 msgid "List the LVM logical volumes in a disk image:"
18669 msgstr ""
18670
18671 #. type: verbatim
18672 #: ../fish/guestfish.pod:80
18673 #, no-wrap
18674 msgid ""
18675 " guestfish -a disk.img --ro <<_EOF_\n"
18676 " run\n"
18677 " lvs\n"
18678 " _EOF_\n"
18679 "\n"
18680 msgstr ""
18681
18682 #. type: textblock
18683 #: ../fish/guestfish.pod:85
18684 msgid "List all the filesystems in a disk image:"
18685 msgstr ""
18686
18687 #. type: verbatim
18688 #: ../fish/guestfish.pod:87
18689 #, no-wrap
18690 msgid ""
18691 " guestfish -a disk.img --ro <<_EOF_\n"
18692 " run\n"
18693 " list-filesystems\n"
18694 " _EOF_\n"
18695 "\n"
18696 msgstr ""
18697
18698 #. type: =head2
18699 #: ../fish/guestfish.pod:92
18700 msgid "On one command line"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:94
18705 msgid "Update C</etc/resolv.conf> in a guest:"
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/guestfish.pod:96
18710 #, no-wrap
18711 msgid ""
18712 " guestfish \\\n"
18713 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18714 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18715 "\n"
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:100
18720 msgid "Edit C</boot/grub/grub.conf> interactively:"
18721 msgstr ""
18722
18723 #. type: verbatim
18724 #: ../fish/guestfish.pod:102
18725 #, no-wrap
18726 msgid ""
18727 " guestfish --rw --add disk.img \\\n"
18728 "   --mount /dev/vg_guest/lv_root \\\n"
18729 "   --mount /dev/sda1:/boot \\\n"
18730 "   edit /boot/grub/grub.conf\n"
18731 "\n"
18732 msgstr ""
18733
18734 #. type: =head2
18735 #: ../fish/guestfish.pod:107
18736 msgid "Mount disks automatically"
18737 msgstr ""
18738
18739 #. type: textblock
18740 #: ../fish/guestfish.pod:109
18741 msgid ""
18742 "Use the I<-i> option to automatically mount the disks from a virtual "
18743 "machine:"
18744 msgstr ""
18745
18746 #. type: verbatim
18747 #: ../fish/guestfish.pod:112
18748 #, no-wrap
18749 msgid ""
18750 " guestfish --ro -a disk.img -i cat /etc/group\n"
18751 "\n"
18752 msgstr ""
18753
18754 #. type: verbatim
18755 #: ../fish/guestfish.pod:114
18756 #, no-wrap
18757 msgid ""
18758 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18759 "\n"
18760 msgstr ""
18761
18762 #. type: textblock
18763 #: ../fish/guestfish.pod:116
18764 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18765 msgstr ""
18766
18767 #. type: verbatim
18768 #: ../fish/guestfish.pod:118
18769 #, no-wrap
18770 msgid ""
18771 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18772 "\n"
18773 msgstr ""
18774
18775 #. type: =head2
18776 #: ../fish/guestfish.pod:120
18777 msgid "As a script interpreter"
18778 msgstr ""
18779
18780 #. type: textblock
18781 #: ../fish/guestfish.pod:122
18782 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18783 msgstr ""
18784
18785 #. type: verbatim
18786 #: ../fish/guestfish.pod:124
18787 #, no-wrap
18788 msgid ""
18789 " #!/usr/bin/guestfish -f\n"
18790 " sparse test1.img 100M\n"
18791 " run\n"
18792 " part-disk /dev/sda mbr\n"
18793 " mkfs ext2 /dev/sda1\n"
18794 "\n"
18795 msgstr ""
18796
18797 #. type: =head2
18798 #: ../fish/guestfish.pod:130
18799 msgid "Start with a prepared disk"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish.pod:132
18804 msgid ""
18805 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18806 "single ext2-formatted partition:"
18807 msgstr ""
18808
18809 #. type: verbatim
18810 #: ../fish/guestfish.pod:135
18811 #, no-wrap
18812 msgid ""
18813 " guestfish -N fs\n"
18814 "\n"
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/guestfish.pod:137
18819 msgid "To list what is available do:"
18820 msgstr ""
18821
18822 #. type: verbatim
18823 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:938
18824 #, no-wrap
18825 msgid ""
18826 " guestfish -N help | less\n"
18827 "\n"
18828 msgstr ""
18829
18830 #. type: =head2
18831 #: ../fish/guestfish.pod:141
18832 msgid "Remote control"
18833 msgstr ""
18834
18835 #. type: verbatim
18836 #: ../fish/guestfish.pod:143
18837 #, no-wrap
18838 msgid ""
18839 " eval \"`guestfish --listen`\"\n"
18840 " guestfish --remote add-ro disk.img\n"
18841 " guestfish --remote run\n"
18842 " guestfish --remote lvs\n"
18843 "\n"
18844 msgstr ""
18845
18846 #. type: =head1
18847 #: ../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
18848 msgid "OPTIONS"
18849 msgstr ""
18850
18851 #. type: =item
18852 #: ../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
18853 msgid "B<--help>"
18854 msgstr ""
18855
18856 #. type: textblock
18857 #: ../fish/guestfish.pod:154
18858 msgid "Displays general help on options."
18859 msgstr ""
18860
18861 #. type: =item
18862 #: ../fish/guestfish.pod:156
18863 msgid "B<-h>"
18864 msgstr ""
18865
18866 #. type: =item
18867 #: ../fish/guestfish.pod:158
18868 msgid "B<--cmd-help>"
18869 msgstr ""
18870
18871 #. type: textblock
18872 #: ../fish/guestfish.pod:160
18873 msgid "Lists all available guestfish commands."
18874 msgstr ""
18875
18876 #. type: =item
18877 #: ../fish/guestfish.pod:162
18878 msgid "B<-h cmd>"
18879 msgstr ""
18880
18881 #. type: =item
18882 #: ../fish/guestfish.pod:164
18883 msgid "B<--cmd-help cmd>"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:166
18888 msgid "Displays detailed help on a single command C<cmd>."
18889 msgstr ""
18890
18891 #. type: =item
18892 #: ../fish/guestfish.pod:168
18893 msgid "B<-a image>"
18894 msgstr ""
18895
18896 #. type: =item
18897 #: ../fish/guestfish.pod:170
18898 msgid "B<--add image>"
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fish/guestfish.pod:172
18903 msgid "Add a block device or virtual machine image to the shell."
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
18908 msgid ""
18909 "The format of the disk image is auto-detected.  To override this and force a "
18910 "particular format use the I<--format=..> option."
18911 msgstr ""
18912
18913 #. type: textblock
18914 #: ../fish/guestfish.pod:177
18915 msgid ""
18916 "Using this flag is mostly equivalent to using the C<add> command, with "
18917 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18918 "the I<--format=...> flag was given."
18919 msgstr ""
18920
18921 #. type: =item
18922 #: ../fish/guestfish.pod:181
18923 msgid "B<-c URI>"
18924 msgstr ""
18925
18926 #. type: =item
18927 #: ../fish/guestfish.pod:183
18928 msgid "B<--connect URI>"
18929 msgstr ""
18930
18931 #. type: textblock
18932 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
18933 msgid ""
18934 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18935 "URI to use.  The default is to use the default libvirt connection."
18936 msgstr ""
18937
18938 #. type: =item
18939 #: ../fish/guestfish.pod:189
18940 msgid "B<--csh>"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fish/guestfish.pod:191
18945 msgid ""
18946 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18947 "section L</REMOTE CONTROL AND CSH> below."
18948 msgstr ""
18949
18950 #. type: =item
18951 #: ../fish/guestfish.pod:194
18952 msgid "B<-d libvirt-domain>"
18953 msgstr ""
18954
18955 #. type: =item
18956 #: ../fish/guestfish.pod:196
18957 msgid "B<--domain libvirt-domain>"
18958 msgstr ""
18959
18960 #. type: textblock
18961 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
18962 msgid ""
18963 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18964 "used, then any libvirt domain can be used.  However in write mode, only "
18965 "libvirt domains which are shut down can be named here."
18966 msgstr ""
18967
18968 #. type: textblock
18969 #: ../fish/guestfish.pod:202
18970 msgid ""
18971 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18972 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18973 "if the I<--format:...> flag was given."
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:206
18978 msgid "B<-D>"
18979 msgstr ""
18980
18981 #. type: =item
18982 #: ../fish/guestfish.pod:208
18983 msgid "B<--no-dest-paths>"
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:210
18988 msgid ""
18989 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18990 "to hit the tab key to complete paths on the guest filesystem, but this "
18991 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18992 "allow this feature to be disabled."
18993 msgstr ""
18994
18995 #. type: =item
18996 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
18997 msgid "B<--echo-keys>"
18998 msgstr ""
18999
19000 #. type: textblock
19001 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
19002 msgid ""
19003 "When prompting for keys and passphrases, guestfish normally turns echoing "
19004 "off so you cannot see what you are typing.  If you are not worried about "
19005 "Tempest attacks and there is no one else in the room you can specify this "
19006 "flag to see what you are typing."
19007 msgstr ""
19008
19009 #. type: =item
19010 #: ../fish/guestfish.pod:222
19011 msgid "B<-f file>"
19012 msgstr ""
19013
19014 #. type: =item
19015 #: ../fish/guestfish.pod:224
19016 msgid "B<--file file>"
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fish/guestfish.pod:226
19021 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19022 msgstr ""
19023
19024 #. type: verbatim
19025 #: ../fish/guestfish.pod:229
19026 #, no-wrap
19027 msgid ""
19028 " #!/usr/bin/guestfish -f\n"
19029 "\n"
19030 msgstr ""
19031
19032 #. type: =item
19033 #: ../fish/guestfish.pod:231
19034 msgid "B<--format=raw|qcow2|..>"
19035 msgstr ""
19036
19037 #. type: =item
19038 #: ../fish/guestfish.pod:233
19039 msgid "B<--format>"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
19044 msgid ""
19045 "The default for the I<-a> option is to auto-detect the format of the disk "
19046 "image.  Using this forces the disk format for I<-a> options which follow on "
19047 "the command line.  Using I<--format> with no argument switches back to "
19048 "auto-detection for subsequent I<-a> options."
19049 msgstr ""
19050
19051 #. type: verbatim
19052 #: ../fish/guestfish.pod:242
19053 #, no-wrap
19054 msgid ""
19055 " guestfish --format=raw -a disk.img\n"
19056 "\n"
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fish/guestfish.pod:244
19061 msgid "forces raw format (no auto-detection) for C<disk.img>."
19062 msgstr ""
19063
19064 #. type: verbatim
19065 #: ../fish/guestfish.pod:246
19066 #, no-wrap
19067 msgid ""
19068 " guestfish --format=raw -a disk.img --format -a another.img\n"
19069 "\n"
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:248
19074 msgid ""
19075 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
19076 "auto-detection for C<another.img>."
19077 msgstr ""
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:251
19081 msgid ""
19082 "If you have untrusted raw-format guest disk images, you should use this "
19083 "option to specify the disk format.  This avoids a possible security problem "
19084 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19085 msgstr ""
19086
19087 #. type: =item
19088 #: ../fish/guestfish.pod:256
19089 msgid "B<-i>"
19090 msgstr ""
19091
19092 #. type: =item
19093 #: ../fish/guestfish.pod:258
19094 msgid "B<--inspector>"
19095 msgstr ""
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
19099 msgid ""
19100 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19101 "system and mount filesystems as they would be mounted on the real virtual "
19102 "machine."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:264
19107 msgid "Typical usage is either:"
19108 msgstr ""
19109
19110 #. type: verbatim
19111 #: ../fish/guestfish.pod:266
19112 #, no-wrap
19113 msgid ""
19114 " guestfish -d myguest -i\n"
19115 "\n"
19116 msgstr ""
19117
19118 #. type: textblock
19119 #: ../fish/guestfish.pod:268
19120 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19121 msgstr ""
19122
19123 #. type: verbatim
19124 #: ../fish/guestfish.pod:270
19125 #, no-wrap
19126 msgid ""
19127 " guestfish --ro -d myguest -i\n"
19128 "\n"
19129 msgstr ""
19130
19131 #. type: textblock
19132 #: ../fish/guestfish.pod:272
19133 msgid "(for active domains, readonly), or specify the block device directly:"
19134 msgstr ""
19135
19136 #. type: verbatim
19137 #: ../fish/guestfish.pod:274
19138 #, no-wrap
19139 msgid ""
19140 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19141 "\n"
19142 msgstr ""
19143
19144 #. type: textblock
19145 #: ../fish/guestfish.pod:276
19146 msgid ""
19147 "Note that the command line syntax changed slightly over older versions of "
19148 "guestfish.  You can still use the old syntax:"
19149 msgstr ""
19150
19151 #. type: verbatim
19152 #: ../fish/guestfish.pod:279
19153 #, no-wrap
19154 msgid ""
19155 " guestfish [--ro] -i disk.img\n"
19156 "\n"
19157 msgstr ""
19158
19159 #. type: verbatim
19160 #: ../fish/guestfish.pod:281
19161 #, no-wrap
19162 msgid ""
19163 " guestfish [--ro] -i libvirt-domain\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fish/guestfish.pod:283
19169 msgid ""
19170 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19171 "then using other commands to mount the filesystems that were found."
19172 msgstr ""
19173
19174 #. type: =item
19175 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
19176 msgid "B<--keys-from-stdin>"
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
19181 msgid ""
19182 "Read key or passphrase parameters from stdin.  The default is to try to read "
19183 "passphrases from the user by opening C</dev/tty>."
19184 msgstr ""
19185
19186 #. type: =item
19187 #: ../fish/guestfish.pod:292
19188 msgid "B<--listen>"
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:294
19193 msgid ""
19194 "Fork into the background and listen for remote commands.  See section "
19195 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19196 msgstr ""
19197
19198 #. type: =item
19199 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
19200 msgid "B<--live>"
19201 msgstr ""
19202
19203 #. type: textblock
19204 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
19205 msgid ""
19206 "Connect to a live virtual machine.  (Experimental, see "
19207 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
19208 msgstr ""
19209
19210 #. type: =item
19211 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
19212 msgid "B<-m dev[:mountpoint[:options]]>"
19213 msgstr ""
19214
19215 #. type: =item
19216 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
19217 msgid "B<--mount dev[:mountpoint[:options]]>"
19218 msgstr ""
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:306
19222 msgid "Mount the named partition or logical volume on the given mountpoint."
19223 msgstr ""
19224
19225 #. type: textblock
19226 #: ../fish/guestfish.pod:308
19227 msgid "If the mountpoint is omitted, it defaults to C</>."
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:310
19232 msgid "You have to mount something on C</> before most commands will work."
19233 msgstr ""
19234
19235 #. type: textblock
19236 #: ../fish/guestfish.pod:312
19237 msgid ""
19238 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19239 "launched."
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:315
19244 msgid ""
19245 "If you don't know what filesystems a disk image contains, you can either run "
19246 "guestfish without this option, then list the partitions, filesystems and LVs "
19247 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19248 "commands), or you can use the L<virt-filesystems(1)> program."
19249 msgstr ""
19250
19251 #. type: textblock
19252 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
19253 msgid ""
19254 "The third (and rarely used) part of the mount parameter is the list of mount "
19255 "options used to mount the underlying filesystem.  If this is not given, then "
19256 "the mount options are either the empty string or C<ro> (the latter if the "
19257 "I<--ro> flag is used).  By specifying the mount options, you override this "
19258 "default choice.  Probably the only time you would use this is to enable ACLs "
19259 "and/or extended attributes if the filesystem can support them:"
19260 msgstr ""
19261
19262 #. type: verbatim
19263 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
19264 #, no-wrap
19265 msgid ""
19266 " -m /dev/sda1:/:acl,user_xattr\n"
19267 "\n"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:331
19272 msgid "Using this flag is equivalent to using the C<mount-options> command."
19273 msgstr ""
19274
19275 #. type: =item
19276 #: ../fish/guestfish.pod:333
19277 msgid "B<-n>"
19278 msgstr ""
19279
19280 #. type: =item
19281 #: ../fish/guestfish.pod:335
19282 msgid "B<--no-sync>"
19283 msgstr ""
19284
19285 #. type: textblock
19286 #: ../fish/guestfish.pod:337
19287 msgid ""
19288 "Disable autosync.  This is enabled by default.  See the discussion of "
19289 "autosync in the L<guestfs(3)> manpage."
19290 msgstr ""
19291
19292 #. type: =item
19293 #: ../fish/guestfish.pod:340
19294 msgid "B<-N type>"
19295 msgstr ""
19296
19297 #. type: =item
19298 #: ../fish/guestfish.pod:342
19299 msgid "B<--new type>"
19300 msgstr ""
19301
19302 #. type: =item
19303 #: ../fish/guestfish.pod:344
19304 msgid "B<-N help>"
19305 msgstr ""
19306
19307 #. type: textblock
19308 #: ../fish/guestfish.pod:346
19309 msgid ""
19310 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19311 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19312 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19313 "IMAGES> below."
19314 msgstr ""
19315
19316 #. type: =item
19317 #: ../fish/guestfish.pod:351
19318 msgid "B<--progress-bars>"
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:353
19323 msgid "Enable progress bars, even when guestfish is used non-interactively."
19324 msgstr ""
19325
19326 #. type: textblock
19327 #: ../fish/guestfish.pod:355
19328 msgid ""
19329 "Progress bars are enabled by default when guestfish is used as an "
19330 "interactive shell."
19331 msgstr ""
19332
19333 #. type: =item
19334 #: ../fish/guestfish.pod:358
19335 msgid "B<--no-progress-bars>"
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:360
19340 msgid "Disable progress bars."
19341 msgstr ""
19342
19343 #. type: =item
19344 #: ../fish/guestfish.pod:362
19345 msgid "B<--remote[=pid]>"
19346 msgstr ""
19347
19348 #. type: textblock
19349 #: ../fish/guestfish.pod:364
19350 msgid ""
19351 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19352 "CONTROL GUESTFISH OVER A SOCKET> below."
19353 msgstr ""
19354
19355 #. type: =item
19356 #: ../fish/guestfish.pod:367
19357 msgid "B<-r>"
19358 msgstr ""
19359
19360 #. type: =item
19361 #: ../fish/guestfish.pod:369
19362 msgid "B<--ro>"
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fish/guestfish.pod:371
19367 msgid ""
19368 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19369 "mounts are done read-only."
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fish/guestfish.pod:374
19374 msgid ""
19375 "The option must always be used if the disk image or virtual machine might be "
19376 "running, and is generally recommended in cases where you don't need write "
19377 "access to the disk."
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:378
19382 msgid ""
19383 "Note that prepared disk images created with I<-N> are not affected by this "
19384 "option.  Also commands like C<add> are not affected - you have to specify "
19385 "the C<readonly:true> option explicitly if you need it."
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish.pod:382
19390 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19391 msgstr ""
19392
19393 #. type: =item
19394 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
19395 msgid "B<--selinux>"
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish.pod:386
19400 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19401 msgstr ""
19402
19403 #. type: =item
19404 #: ../fish/guestfish.pod:388
19405 msgid "B<-v>"
19406 msgstr ""
19407
19408 #. type: =item
19409 #: ../fish/guestfish.pod:390
19410 msgid "B<--verbose>"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fish/guestfish.pod:392
19415 msgid ""
19416 "Enable very verbose messages.  This is particularly useful if you find a "
19417 "bug."
19418 msgstr ""
19419
19420 #. type: =item
19421 #: ../fish/guestfish.pod:395
19422 msgid "B<-V>"
19423 msgstr ""
19424
19425 #. type: =item
19426 #: ../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
19427 msgid "B<--version>"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:399
19432 msgid "Display the guestfish / libguestfs version number and exit."
19433 msgstr ""
19434
19435 #. type: =item
19436 #: ../fish/guestfish.pod:401
19437 msgid "B<-w>"
19438 msgstr ""
19439
19440 #. type: =item
19441 #: ../fish/guestfish.pod:403
19442 msgid "B<--rw>"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
19447 msgid ""
19448 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19449 "mounts are done read-write."
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:408
19454 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19455 msgstr ""
19456
19457 #. type: =item
19458 #: ../fish/guestfish.pod:410
19459 msgid "B<-x>"
19460 msgstr ""
19461
19462 #. type: textblock
19463 #: ../fish/guestfish.pod:412
19464 msgid "Echo each command before executing it."
19465 msgstr ""
19466
19467 #. type: =head1
19468 #: ../fish/guestfish.pod:416
19469 msgid "COMMANDS ON COMMAND LINE"
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../fish/guestfish.pod:418
19474 msgid "Any additional (non-option) arguments are treated as commands to execute."
19475 msgstr ""
19476
19477 #. type: textblock
19478 #: ../fish/guestfish.pod:421
19479 msgid ""
19480 "Commands to execute should be separated by a colon (C<:>), where the colon "
19481 "is a separate parameter.  Thus:"
19482 msgstr ""
19483
19484 #. type: verbatim
19485 #: ../fish/guestfish.pod:424
19486 #, no-wrap
19487 msgid ""
19488 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19489 "\n"
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:426
19494 msgid ""
19495 "If there are no additional arguments, then we enter a shell, either an "
19496 "interactive shell with a prompt (if the input is a terminal) or a "
19497 "non-interactive shell."
19498 msgstr ""
19499
19500 #. type: textblock
19501 #: ../fish/guestfish.pod:430
19502 msgid ""
19503 "In either command line mode or non-interactive shell, the first command that "
19504 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19505 "prompt) if a command fails, you can continue to enter commands."
19506 msgstr ""
19507
19508 #. type: =head1
19509 #: ../fish/guestfish.pod:435
19510 msgid "USING launch (OR run)"
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:437
19515 msgid ""
19516 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19517 "then launch it, then mount any disks you need, and finally issue "
19518 "actions/commands.  So the general order of the day is:"
19519 msgstr ""
19520
19521 #. type: textblock
19522 #: ../fish/guestfish.pod:445
19523 msgid "add or -a/--add"
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../fish/guestfish.pod:449
19528 msgid "launch (aka run)"
19529 msgstr ""
19530
19531 #. type: textblock
19532 #: ../fish/guestfish.pod:453
19533 msgid "mount or -m/--mount"
19534 msgstr ""
19535
19536 #. type: textblock
19537 #: ../fish/guestfish.pod:457
19538 msgid "any other commands"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../fish/guestfish.pod:461
19543 msgid ""
19544 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19545 "guest before mounting or performing any other commands."
19546 msgstr ""
19547
19548 #. type: textblock
19549 #: ../fish/guestfish.pod:464
19550 msgid ""
19551 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19552 "I<--new> options were given then C<run> is done automatically, simply "
19553 "because guestfish can't perform the action you asked for without doing this."
19554 msgstr ""
19555
19556 #. type: =head1
19557 #: ../fish/guestfish.pod:469
19558 msgid "OPENING DISKS FOR READ AND WRITE"
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../fish/guestfish.pod:471
19563 msgid ""
19564 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19565 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19566 "I<-i> and I<-m> open disk images read-only or for writing."
19567 msgstr ""
19568
19569 #. type: textblock
19570 #: ../fish/guestfish.pod:476
19571 msgid ""
19572 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19573 "opening disk images supplied on the command line for write.  To open a disk "
19574 "image read-only you have to do I<-a image --ro>."
19575 msgstr ""
19576
19577 #. type: textblock
19578 #: ../fish/guestfish.pod:480
19579 msgid ""
19580 "This matters: If you accidentally open a live VM disk image writable then "
19581 "you will cause irreversible disk corruption."
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:483
19586 msgid ""
19587 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
19588 "images will be opened read-only.  You will have to either specify "
19589 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19590 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19591 "access for disk images specified by those other command line options."
19592 msgstr ""
19593
19594 #. type: textblock
19595 #: ../fish/guestfish.pod:490
19596 msgid ""
19597 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19598 "which does nothing (it is already the default).  However it is highly "
19599 "recommended that you use this option to indicate that you need write access, "
19600 "and prepare your scripts for the day when this option will be required for "
19601 "write access."
19602 msgstr ""
19603
19604 #. type: textblock
19605 #: ../fish/guestfish.pod:496
19606 msgid ""
19607 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19608 "other libguestfs program apart from guestfish and guestmount."
19609 msgstr ""
19610
19611 #. type: =head1
19612 #: ../fish/guestfish.pod:499
19613 msgid "QUOTING"
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../fish/guestfish.pod:501
19618 msgid ""
19619 "You can quote ordinary parameters using either single or double quotes.  For "
19620 "example:"
19621 msgstr ""
19622
19623 #. type: verbatim
19624 #: ../fish/guestfish.pod:504
19625 #, no-wrap
19626 msgid ""
19627 " add \"file with a space.img\"\n"
19628 "\n"
19629 msgstr ""
19630
19631 #. type: verbatim
19632 #: ../fish/guestfish.pod:506
19633 #, no-wrap
19634 msgid ""
19635 " rm '/file name'\n"
19636 "\n"
19637 msgstr ""
19638
19639 #. type: verbatim
19640 #: ../fish/guestfish.pod:508
19641 #, no-wrap
19642 msgid ""
19643 " rm '/\"'\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../fish/guestfish.pod:510
19649 msgid ""
19650 "A few commands require a list of strings to be passed.  For these, use a "
19651 "whitespace-separated list, enclosed in quotes.  Strings containing "
19652 "whitespace to be passed through must be enclosed in single quotes.  A "
19653 "literal single quote must be escaped with a backslash."
19654 msgstr ""
19655
19656 #. type: verbatim
19657 #: ../fish/guestfish.pod:515
19658 #, no-wrap
19659 msgid ""
19660 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19661 " command \"/bin/echo 'foo      bar'\"\n"
19662 " command \"/bin/echo \\'foo\\'\"\n"
19663 "\n"
19664 msgstr ""
19665
19666 #. type: =head1
19667 #: ../fish/guestfish.pod:519
19668 msgid "OPTIONAL ARGUMENTS"
19669 msgstr ""
19670
19671 #. type: textblock
19672 #: ../fish/guestfish.pod:521
19673 msgid ""
19674 "Some commands take optional arguments.  These arguments appear in this "
19675 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19676 msgstr ""
19677
19678 #. type: verbatim
19679 #: ../fish/guestfish.pod:525
19680 #, no-wrap
19681 msgid ""
19682 " add-drive-opts filename\n"
19683 "\n"
19684 msgstr ""
19685
19686 #. type: verbatim
19687 #: ../fish/guestfish.pod:527
19688 #, no-wrap
19689 msgid ""
19690 " add-drive-opts filename readonly:true\n"
19691 "\n"
19692 msgstr ""
19693
19694 #. type: verbatim
19695 #: ../fish/guestfish.pod:529
19696 #, no-wrap
19697 msgid ""
19698 " add-drive-opts filename format:qcow2 readonly:false\n"
19699 "\n"
19700 msgstr ""
19701
19702 #. type: textblock
19703 #: ../fish/guestfish.pod:531
19704 msgid ""
19705 "Each optional argument can appear at most once.  All optional arguments must "
19706 "appear after the required ones."
19707 msgstr ""
19708
19709 #. type: =head1
19710 #: ../fish/guestfish.pod:534
19711 msgid "NUMBERS"
19712 msgstr ""
19713
19714 #. type: textblock
19715 #: ../fish/guestfish.pod:536
19716 msgid "This section applies to all commands which can take integers as parameters."
19717 msgstr ""
19718
19719 #. type: =head2
19720 #: ../fish/guestfish.pod:539
19721 msgid "SIZE SUFFIX"
19722 msgstr ""
19723
19724 #. type: textblock
19725 #: ../fish/guestfish.pod:541
19726 msgid ""
19727 "When the command takes a parameter measured in bytes, you can use one of the "
19728 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19729 msgstr ""
19730
19731 #. type: =item
19732 #: ../fish/guestfish.pod:547
19733 msgid "B<k> or B<K> or B<KiB>"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:549
19738 msgid "The size in kilobytes (multiplied by 1024)."
19739 msgstr ""
19740
19741 #. type: =item
19742 #: ../fish/guestfish.pod:551
19743 msgid "B<KB>"
19744 msgstr ""
19745
19746 #. type: textblock
19747 #: ../fish/guestfish.pod:553
19748 msgid "The size in SI 1000 byte units."
19749 msgstr ""
19750
19751 #. type: =item
19752 #: ../fish/guestfish.pod:555
19753 msgid "B<M> or B<MiB>"
19754 msgstr ""
19755
19756 #. type: textblock
19757 #: ../fish/guestfish.pod:557
19758 msgid "The size in megabytes (multiplied by 1048576)."
19759 msgstr ""
19760
19761 #. type: =item
19762 #: ../fish/guestfish.pod:559
19763 msgid "B<MB>"
19764 msgstr ""
19765
19766 #. type: textblock
19767 #: ../fish/guestfish.pod:561
19768 msgid "The size in SI 1000000 byte units."
19769 msgstr ""
19770
19771 #. type: =item
19772 #: ../fish/guestfish.pod:563
19773 msgid "B<G> or B<GiB>"
19774 msgstr ""
19775
19776 #. type: textblock
19777 #: ../fish/guestfish.pod:565
19778 msgid "The size in gigabytes (multiplied by 2**30)."
19779 msgstr ""
19780
19781 #. type: =item
19782 #: ../fish/guestfish.pod:567
19783 msgid "B<GB>"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:569
19788 msgid "The size in SI 10**9 byte units."
19789 msgstr ""
19790
19791 #. type: =item
19792 #: ../fish/guestfish.pod:571
19793 msgid "B<T> or B<TiB>"
19794 msgstr ""
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:573
19798 msgid "The size in terabytes (multiplied by 2**40)."
19799 msgstr ""
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:575
19803 msgid "B<TB>"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:577
19808 msgid "The size in SI 10**12 byte units."
19809 msgstr ""
19810
19811 #. type: =item
19812 #: ../fish/guestfish.pod:579
19813 msgid "B<P> or B<PiB>"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:581
19818 msgid "The size in petabytes (multiplied by 2**50)."
19819 msgstr ""
19820
19821 #. type: =item
19822 #: ../fish/guestfish.pod:583
19823 msgid "B<PB>"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/guestfish.pod:585
19828 msgid "The size in SI 10**15 byte units."
19829 msgstr ""
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:587
19833 msgid "B<E> or B<EiB>"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:589
19838 msgid "The size in exabytes (multiplied by 2**60)."
19839 msgstr ""
19840
19841 #. type: =item
19842 #: ../fish/guestfish.pod:591
19843 msgid "B<EB>"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:593
19848 msgid "The size in SI 10**18 byte units."
19849 msgstr ""
19850
19851 #. type: =item
19852 #: ../fish/guestfish.pod:595
19853 msgid "B<Z> or B<ZiB>"
19854 msgstr ""
19855
19856 #. type: textblock
19857 #: ../fish/guestfish.pod:597
19858 msgid "The size in zettabytes (multiplied by 2**70)."
19859 msgstr ""
19860
19861 #. type: =item
19862 #: ../fish/guestfish.pod:599
19863 msgid "B<ZB>"
19864 msgstr ""
19865
19866 #. type: textblock
19867 #: ../fish/guestfish.pod:601
19868 msgid "The size in SI 10**21 byte units."
19869 msgstr ""
19870
19871 #. type: =item
19872 #: ../fish/guestfish.pod:603
19873 msgid "B<Y> or B<YiB>"
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/guestfish.pod:605
19878 msgid "The size in yottabytes (multiplied by 2**80)."
19879 msgstr ""
19880
19881 #. type: =item
19882 #: ../fish/guestfish.pod:607
19883 msgid "B<YB>"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:609
19888 msgid "The size in SI 10**24 byte units."
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../fish/guestfish.pod:615
19893 #, no-wrap
19894 msgid ""
19895 " truncate-size /file 1G\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:617
19901 msgid "would truncate the file to 1 gigabyte."
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:619
19906 msgid ""
19907 "Be careful because a few commands take sizes in kilobytes or megabytes "
19908 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
19909 "Adding a suffix will probably not do what you expect."
19910 msgstr ""
19911
19912 #. type: =head2
19913 #: ../fish/guestfish.pod:623
19914 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../fish/guestfish.pod:625
19919 msgid ""
19920 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19921 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19922 msgstr ""
19923
19924 #. type: verbatim
19925 #: ../fish/guestfish.pod:628
19926 #, no-wrap
19927 msgid ""
19928 " 1234      decimal number 1234\n"
19929 " 02322     octal number, equivalent to decimal 1234\n"
19930 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19931 "\n"
19932 msgstr ""
19933
19934 #. type: textblock
19935 #: ../fish/guestfish.pod:632
19936 msgid ""
19937 "When using the C<chmod> command, you almost always want to specify an octal "
19938 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19939 "L<chmod(1)> program):"
19940 msgstr ""
19941
19942 #. type: verbatim
19943 #: ../fish/guestfish.pod:636
19944 #, no-wrap
19945 msgid ""
19946 " chmod 0777 /public  # OK\n"
19947 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19948 "\n"
19949 msgstr ""
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:639
19953 msgid ""
19954 "Commands that return numbers usually print them in decimal, but some "
19955 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19956 "octal, preceeded by C<0>)."
19957 msgstr ""
19958
19959 #. type: =head1
19960 #: ../fish/guestfish.pod:643
19961 msgid "WILDCARDS AND GLOBBING"
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:645
19966 msgid ""
19967 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19968 "(globbing) by default.  So for example the following will not do what you "
19969 "expect:"
19970 msgstr ""
19971
19972 #. type: verbatim
19973 #: ../fish/guestfish.pod:649
19974 #, no-wrap
19975 msgid ""
19976 " rm-rf /home/*\n"
19977 "\n"
19978 msgstr ""
19979
19980 #. type: textblock
19981 #: ../fish/guestfish.pod:651
19982 msgid ""
19983 "Assuming you don't have a directory called literally C</home/*> then the "
19984 "above command will return an error."
19985 msgstr ""
19986
19987 #. type: textblock
19988 #: ../fish/guestfish.pod:654
19989 msgid "To perform wildcard expansion, use the C<glob> command."
19990 msgstr ""
19991
19992 #. type: verbatim
19993 #: ../fish/guestfish.pod:656
19994 #, no-wrap
19995 msgid ""
19996 " glob rm-rf /home/*\n"
19997 "\n"
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fish/guestfish.pod:658
20002 msgid ""
20003 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20004 "many times), equivalent to:"
20005 msgstr ""
20006
20007 #. type: verbatim
20008 #: ../fish/guestfish.pod:661
20009 #, no-wrap
20010 msgid ""
20011 " rm-rf /home/jim\n"
20012 " rm-rf /home/joe\n"
20013 " rm-rf /home/mary\n"
20014 "\n"
20015 msgstr ""
20016
20017 #. type: textblock
20018 #: ../fish/guestfish.pod:665
20019 msgid "C<glob> only works on simple guest paths and not on device names."
20020 msgstr ""
20021
20022 #. type: textblock
20023 #: ../fish/guestfish.pod:667
20024 msgid ""
20025 "If you have several parameters, each containing a wildcard, then glob will "
20026 "perform a Cartesian product."
20027 msgstr ""
20028
20029 #. type: =head1
20030 #: ../fish/guestfish.pod:670
20031 msgid "COMMENTS"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:672
20036 msgid ""
20037 "Any line which starts with a I<#> character is treated as a comment and "
20038 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20039 "a command.  For example:"
20040 msgstr ""
20041
20042 #. type: verbatim
20043 #: ../fish/guestfish.pod:676
20044 #, no-wrap
20045 msgid ""
20046 " # this is a comment\n"
20047 "         # this is a comment\n"
20048 " foo # NOT a comment\n"
20049 "\n"
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:680
20054 msgid "Blank lines are also ignored."
20055 msgstr ""
20056
20057 #. type: =head1
20058 #: ../fish/guestfish.pod:682
20059 msgid "RUNNING COMMANDS LOCALLY"
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fish/guestfish.pod:684
20064 msgid ""
20065 "Any line which starts with a I<!> character is treated as a command sent to "
20066 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20067 msgstr ""
20068
20069 #. type: verbatim
20070 #: ../fish/guestfish.pod:688
20071 #, no-wrap
20072 msgid ""
20073 " !mkdir local\n"
20074 " tgz-out /remote local/remote-data.tar.gz\n"
20075 "\n"
20076 msgstr ""
20077
20078 #. type: textblock
20079 #: ../fish/guestfish.pod:691
20080 msgid ""
20081 "will create a directory C<local> on the host, and then export the contents "
20082 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20083 "(See C<tgz-out>)."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../fish/guestfish.pod:695
20088 msgid ""
20089 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20090 "effect, due to the way that subprocesses work in Unix."
20091 msgstr ""
20092
20093 #. type: =head2
20094 #: ../fish/guestfish.pod:698
20095 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:700
20100 msgid ""
20101 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20102 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20103 "and executed as guestfish commands."
20104 msgstr ""
20105
20106 #. type: textblock
20107 #: ../fish/guestfish.pod:704
20108 msgid ""
20109 "Thus you can use shell script to construct arbitrary guestfish commands "
20110 "which are then parsed by guestfish."
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:707
20115 msgid ""
20116 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20117 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20118 "if we use a shell script to create the guestfish commands for us:"
20119 msgstr ""
20120
20121 #. type: verbatim
20122 #: ../fish/guestfish.pod:712
20123 #, no-wrap
20124 msgid ""
20125 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20126 "\n"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fish/guestfish.pod:714
20131 msgid "or with names like C</foo.001>:"
20132 msgstr ""
20133
20134 #. type: verbatim
20135 #: ../fish/guestfish.pod:716
20136 #, no-wrap
20137 msgid ""
20138 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20139 "\n"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:718
20144 msgid ""
20145 "When using guestfish interactively it can be helpful to just run the shell "
20146 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20147 "ordinary I<!> local command), see what guestfish commands it would run, and "
20148 "when you are happy with those prepend the C<E<lt>> character to run the "
20149 "guestfish commands for real."
20150 msgstr ""
20151
20152 #. type: =head1
20153 #: ../fish/guestfish.pod:724
20154 msgid "PIPES"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:726
20159 msgid ""
20160 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20161 "command (a guestfish command) to the second command (any host command).  For "
20162 "example:"
20163 msgstr ""
20164
20165 #. type: verbatim
20166 #: ../fish/guestfish.pod:730
20167 #, no-wrap
20168 msgid ""
20169 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:732
20175 msgid ""
20176 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20177 "program).  The above command would list all accounts in the guest filesystem "
20178 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20179 msgstr ""
20180
20181 #. type: verbatim
20182 #: ../fish/guestfish.pod:737
20183 #, no-wrap
20184 msgid ""
20185 " hexdump /bin/ls | head\n"
20186 " list-devices | tail -1\n"
20187 " tgz-out / - | tar ztf -\n"
20188 "\n"
20189 msgstr ""
20190
20191 #. type: textblock
20192 #: ../fish/guestfish.pod:741
20193 msgid ""
20194 "The space before the pipe symbol is required, any space after the pipe "
20195 "symbol is optional.  Everything after the pipe symbol is just passed "
20196 "straight to the host shell, so it can contain redirections, globs and "
20197 "anything else that makes sense on the host side."
20198 msgstr ""
20199
20200 #. type: textblock
20201 #: ../fish/guestfish.pod:746
20202 msgid ""
20203 "To use a literal argument which begins with a pipe symbol, you have to quote "
20204 "it, eg:"
20205 msgstr ""
20206
20207 #. type: verbatim
20208 #: ../fish/guestfish.pod:749
20209 #, no-wrap
20210 msgid ""
20211 " echo \"|\"\n"
20212 "\n"
20213 msgstr ""
20214
20215 #. type: =head1
20216 #: ../fish/guestfish.pod:751
20217 msgid "HOME DIRECTORIES"
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:753
20222 msgid ""
20223 "If a parameter starts with the character C<~> then the tilde may be expanded "
20224 "as a home directory path (either C<~> for the current user's home directory, "
20225 "or C<~user> for another user)."
20226 msgstr ""
20227
20228 #. type: textblock
20229 #: ../fish/guestfish.pod:757
20230 msgid ""
20231 "Note that home directory expansion happens for users known I<on the host>, "
20232 "not in the guest filesystem."
20233 msgstr ""
20234
20235 #. type: textblock
20236 #: ../fish/guestfish.pod:760
20237 msgid ""
20238 "To use a literal argument which begins with a tilde, you have to quote it, "
20239 "eg:"
20240 msgstr ""
20241
20242 #. type: verbatim
20243 #: ../fish/guestfish.pod:763
20244 #, no-wrap
20245 msgid ""
20246 " echo \"~\"\n"
20247 "\n"
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fish/guestfish.pod:767
20252 msgid ""
20253 "Libguestfs has some support for Linux guests encrypted according to the "
20254 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20255 "disk encryption systems used by modern Linux guests.  Currently only "
20256 "LVM-on-LUKS is supported."
20257 msgstr ""
20258
20259 #. type: textblock
20260 #: ../fish/guestfish.pod:772
20261 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20262 msgstr ""
20263
20264 #. type: verbatim
20265 #: ../fish/guestfish.pod:774
20266 #, no-wrap
20267 msgid ""
20268 " ><fs> vfs-type /dev/sda2\n"
20269 " crypto_LUKS\n"
20270 "\n"
20271 msgstr ""
20272
20273 #. type: textblock
20274 #: ../fish/guestfish.pod:777
20275 msgid ""
20276 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20277 "device called C</dev/mapper/luksdev>."
20278 msgstr ""
20279
20280 #. type: verbatim
20281 #: ../fish/guestfish.pod:780
20282 #, no-wrap
20283 msgid ""
20284 " ><fs> luks-open /dev/sda2 luksdev\n"
20285 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20286 "\n"
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../fish/guestfish.pod:783
20291 msgid ""
20292 "Finally you have to tell LVM to scan for volume groups on the newly created "
20293 "mapper device:"
20294 msgstr ""
20295
20296 #. type: verbatim
20297 #: ../fish/guestfish.pod:786
20298 #, no-wrap
20299 msgid ""
20300 " vgscan\n"
20301 " vg-activate-all true\n"
20302 "\n"
20303 msgstr ""
20304
20305 #. type: textblock
20306 #: ../fish/guestfish.pod:789
20307 msgid "The logical volume(s) can now be mounted in the usual way."
20308 msgstr ""
20309
20310 #. type: textblock
20311 #: ../fish/guestfish.pod:791
20312 msgid ""
20313 "Before closing a LUKS device you must unmount any logical volumes on it and "
20314 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20315 "one.  Then you can close the mapper device:"
20316 msgstr ""
20317
20318 #. type: verbatim
20319 #: ../fish/guestfish.pod:795
20320 #, no-wrap
20321 msgid ""
20322 " vg-activate false /dev/VG\n"
20323 " luks-close /dev/mapper/luksdev\n"
20324 "\n"
20325 msgstr ""
20326
20327 #. type: =head1
20328 #: ../fish/guestfish.pod:798 ../tools/virt-edit.pl:342
20329 msgid "WINDOWS PATHS"
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fish/guestfish.pod:800
20334 msgid ""
20335 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20336 "letters and paths (with some limitations).  The following commands are "
20337 "equivalent:"
20338 msgstr ""
20339
20340 #. type: verbatim
20341 #: ../fish/guestfish.pod:804
20342 #, no-wrap
20343 msgid ""
20344 " file /WINDOWS/system32/config/system.LOG\n"
20345 "\n"
20346 msgstr ""
20347
20348 #. type: verbatim
20349 #: ../fish/guestfish.pod:806
20350 #, no-wrap
20351 msgid ""
20352 " file win:\\windows\\system32\\config\\system.log\n"
20353 "\n"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:808
20358 #, no-wrap
20359 msgid ""
20360 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../fish/guestfish.pod:810
20366 msgid ""
20367 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20368 "where the drive is mounted, prepending that to the path, changing all "
20369 "backslash characters to forward slash, then resolving the result using "
20370 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
20371 "then the parameter might be rewritten like this:"
20372 msgstr ""
20373
20374 #. type: verbatim
20375 #: ../fish/guestfish.pod:816
20376 #, no-wrap
20377 msgid ""
20378 " win:e:\\foo\\bar => /e/FOO/bar\n"
20379 "\n"
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:818
20384 msgid "This only works in argument positions that expect a path."
20385 msgstr ""
20386
20387 #. type: =head1
20388 #: ../fish/guestfish.pod:820
20389 msgid "UPLOADING AND DOWNLOADING FILES"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/guestfish.pod:822
20394 msgid ""
20395 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20396 "others which upload from or download to a local file, you can use the "
20397 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20398 msgstr ""
20399
20400 #. type: verbatim
20401 #: ../fish/guestfish.pod:826
20402 #, no-wrap
20403 msgid ""
20404 " upload - /foo\n"
20405 "\n"
20406 msgstr ""
20407
20408 #. type: textblock
20409 #: ../fish/guestfish.pod:828
20410 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
20411 msgstr ""
20412
20413 #. type: verbatim
20414 #: ../fish/guestfish.pod:831
20415 #, no-wrap
20416 msgid ""
20417 " tar-out /etc - | tar tf -\n"
20418 "\n"
20419 msgstr ""
20420
20421 #. type: textblock
20422 #: ../fish/guestfish.pod:833
20423 msgid ""
20424 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20425 "command (see L</PIPES>)."
20426 msgstr ""
20427
20428 #. type: textblock
20429 #: ../fish/guestfish.pod:836
20430 msgid ""
20431 "When using C<-> to read from stdin, the input is read up to the end of "
20432 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20433 "some arbitrary end marker:"
20434 msgstr ""
20435
20436 #. type: verbatim
20437 #: ../fish/guestfish.pod:840
20438 #, no-wrap
20439 msgid ""
20440 " upload -<<END /foo\n"
20441 " input line 1\n"
20442 " input line 2\n"
20443 " input line 3\n"
20444 " END\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../fish/guestfish.pod:846
20450 msgid ""
20451 "Any string of characters can be used instead of C<END>.  The end marker must "
20452 "appear on a line of its own, without any preceeding or following characters "
20453 "(not even spaces)."
20454 msgstr ""
20455
20456 #. type: textblock
20457 #: ../fish/guestfish.pod:850
20458 msgid ""
20459 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20460 "upload local files (so-called \"FileIn\" parameters in the generator)."
20461 msgstr ""
20462
20463 #. type: =head1
20464 #: ../fish/guestfish.pod:853
20465 msgid "EXIT ON ERROR BEHAVIOUR"
20466 msgstr ""
20467
20468 #. type: textblock
20469 #: ../fish/guestfish.pod:855
20470 msgid ""
20471 "By default, guestfish will ignore any errors when in interactive mode "
20472 "(ie. taking commands from a human over a tty), and will exit on the first "
20473 "error in non-interactive mode (scripts, commands given on the command line)."
20474 msgstr ""
20475
20476 #. type: textblock
20477 #: ../fish/guestfish.pod:860
20478 msgid ""
20479 "If you prefix a command with a I<-> character, then that command will not "
20480 "cause guestfish to exit, even if that (one) command returns an error."
20481 msgstr ""
20482
20483 #. type: =head1
20484 #: ../fish/guestfish.pod:864
20485 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20486 msgstr ""
20487
20488 #. type: textblock
20489 #: ../fish/guestfish.pod:866
20490 msgid ""
20491 "Guestfish can be remote-controlled over a socket.  This is useful "
20492 "particularly in shell scripts where you want to make several different "
20493 "changes to a filesystem, but you don't want the overhead of starting up a "
20494 "guestfish process each time."
20495 msgstr ""
20496
20497 #. type: textblock
20498 #: ../fish/guestfish.pod:871
20499 msgid "Start a guestfish server process using:"
20500 msgstr ""
20501
20502 #. type: verbatim
20503 #: ../fish/guestfish.pod:873
20504 #, no-wrap
20505 msgid ""
20506 " eval \"`guestfish --listen`\"\n"
20507 "\n"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fish/guestfish.pod:875
20512 msgid "and then send it commands by doing:"
20513 msgstr ""
20514
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:877
20517 #, no-wrap
20518 msgid ""
20519 " guestfish --remote cmd [...]\n"
20520 "\n"
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../fish/guestfish.pod:879
20525 msgid "To cause the server to exit, send it the exit command:"
20526 msgstr ""
20527
20528 #. type: verbatim
20529 #: ../fish/guestfish.pod:881
20530 #, no-wrap
20531 msgid ""
20532 " guestfish --remote exit\n"
20533 "\n"
20534 msgstr ""
20535
20536 #. type: textblock
20537 #: ../fish/guestfish.pod:883
20538 msgid ""
20539 "Note that the server will normally exit if there is an error in a command.  "
20540 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20541 "BEHAVIOUR>."
20542 msgstr ""
20543
20544 #. type: =head2
20545 #: ../fish/guestfish.pod:887
20546 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../fish/guestfish.pod:889
20551 msgid ""
20552 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20553 "is how the I<--remote> option knows where to send the commands.  You can "
20554 "have several guestfish listener processes running using:"
20555 msgstr ""
20556
20557 #. type: verbatim
20558 #: ../fish/guestfish.pod:893
20559 #, no-wrap
20560 msgid ""
20561 " eval \"`guestfish --listen`\"\n"
20562 " pid1=$GUESTFISH_PID\n"
20563 " eval \"`guestfish --listen`\"\n"
20564 " pid2=$GUESTFISH_PID\n"
20565 " ...\n"
20566 " guestfish --remote=$pid1 cmd\n"
20567 " guestfish --remote=$pid2 cmd\n"
20568 "\n"
20569 msgstr ""
20570
20571 #. type: =head2
20572 #: ../fish/guestfish.pod:901
20573 msgid "REMOTE CONTROL AND CSH"
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../fish/guestfish.pod:903
20578 msgid ""
20579 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20580 "option:"
20581 msgstr ""
20582
20583 #. type: verbatim
20584 #: ../fish/guestfish.pod:906
20585 #, no-wrap
20586 msgid ""
20587 " eval \"`guestfish --listen --csh`\"\n"
20588 "\n"
20589 msgstr ""
20590
20591 #. type: =head2
20592 #: ../fish/guestfish.pod:908
20593 msgid "REMOTE CONTROL DETAILS"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../fish/guestfish.pod:910
20598 msgid ""
20599 "Remote control happens over a Unix domain socket called "
20600 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
20601 "of the process, and C<$PID> is the process ID of the server."
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:914
20606 msgid "Guestfish client and server versions must match exactly."
20607 msgstr ""
20608
20609 #. type: =head1
20610 #: ../fish/guestfish.pod:916
20611 msgid "PREPARED DISK IMAGES"
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fish/guestfish.pod:918
20616 msgid ""
20617 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20618 "preformatted disk images that guestfish can make for you to save typing.  "
20619 "This is particularly useful for testing purposes.  This option is used "
20620 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20621 "can be mixed with I<-a>)."
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:924
20626 msgid ""
20627 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20628 "the second and so on.  Existing files in the current directory are "
20629 "I<overwritten>."
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../fish/guestfish.pod:928
20634 msgid ""
20635 "The type briefly describes how the disk should be sized, partitioned, how "
20636 "filesystem(s) should be created, and how content should be added.  "
20637 "Optionally the type can be followed by extra parameters, separated by C<:> "
20638 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
20639 "sparsely-allocated disk, containing a single partition, with the partition "
20640 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
20641 "on a 1GB disk instead."
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fish/guestfish.pod:936
20646 msgid "To list the available types and any extra parameters they take, run:"
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../fish/guestfish.pod:940
20651 msgid ""
20652 "Note that the prepared filesystem is not mounted.  You would usually have to "
20653 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20654 msgstr ""
20655
20656 #. type: textblock
20657 #: ../fish/guestfish.pod:944
20658 msgid ""
20659 "If any I<-N> or I<--new> options are given, the guest is automatically "
20660 "launched."
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../fish/guestfish.pod:949
20665 msgid "Create a 100MB disk with an ext4-formatted partition:"
20666 msgstr ""
20667
20668 #. type: verbatim
20669 #: ../fish/guestfish.pod:951
20670 #, no-wrap
20671 msgid ""
20672 " guestfish -N fs:ext4\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: textblock
20677 #: ../fish/guestfish.pod:953
20678 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20679 msgstr ""
20680
20681 #. type: verbatim
20682 #: ../fish/guestfish.pod:955
20683 #, no-wrap
20684 msgid ""
20685 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20686 "\n"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../fish/guestfish.pod:957
20691 msgid "Create a blank 200MB disk:"
20692 msgstr ""
20693
20694 #. type: verbatim
20695 #: ../fish/guestfish.pod:959
20696 #, no-wrap
20697 msgid ""
20698 " guestfish -N disk:200M\n"
20699 "\n"
20700 msgstr ""
20701
20702 #. type: =head1
20703 #: ../fish/guestfish.pod:961
20704 msgid "PROGRESS BARS"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../fish/guestfish.pod:963
20709 msgid ""
20710 "Some (not all) long-running commands send progress notification messages as "
20711 "they are running.  Guestfish turns these messages into progress bars."
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fish/guestfish.pod:967
20716 msgid ""
20717 "When a command that supports progress bars takes longer than two seconds to "
20718 "run, and if progress bars are enabled, then you will see one appearing below "
20719 "the command:"
20720 msgstr ""
20721
20722 #. type: verbatim
20723 #: ../fish/guestfish.pod:971
20724 #, no-wrap
20725 msgid ""
20726 " ><fs> copy-size /large-file /another-file 2048M\n"
20727 " / 10% [#####-----------------------------------------] 00:30\n"
20728 "\n"
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../fish/guestfish.pod:974
20733 msgid ""
20734 "The spinner on the left hand side moves round once for every progress "
20735 "notification received from the backend.  This is a (reasonably) golden "
20736 "assurance that the command is \"doing something\" even if the progress bar "
20737 "is not moving, because the command is able to send the progress "
20738 "notifications.  When the bar reaches 100% and the command finishes, the "
20739 "spinner disappears."
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:981
20744 msgid ""
20745 "Progress bars are enabled by default when guestfish is used interactively.  "
20746 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20747 "and you can disable them completely using I<--no-progress-bars>."
20748 msgstr ""
20749
20750 #. type: =head1
20751 #: ../fish/guestfish.pod:986
20752 msgid "GUESTFISH COMMANDS"
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/guestfish.pod:988
20757 msgid ""
20758 "The commands in this section are guestfish convenience commands, in other "
20759 "words, they are not part of the L<guestfs(3)> API."
20760 msgstr ""
20761
20762 #. type: =head2
20763 #: ../fish/guestfish.pod:991
20764 msgid "help"
20765 msgstr ""
20766
20767 #. type: verbatim
20768 #: ../fish/guestfish.pod:993
20769 #, no-wrap
20770 msgid ""
20771 " help\n"
20772 " help cmd\n"
20773 "\n"
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../fish/guestfish.pod:996
20778 msgid "Without any parameter, this provides general help."
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../fish/guestfish.pod:998
20783 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20784 msgstr ""
20785
20786 #. type: =head2
20787 #: ../fish/guestfish.pod:1000
20788 msgid "quit | exit"
20789 msgstr ""
20790
20791 #. type: textblock
20792 #: ../fish/guestfish.pod:1002
20793 msgid "This exits guestfish.  You can also use C<^D> key."
20794 msgstr ""
20795
20796 #. type: textblock
20797 #: ../fish/guestfish.pod:1004
20798 msgid "@FISH_COMMANDS@"
20799 msgstr ""
20800
20801 #. type: =head1
20802 #: ../fish/guestfish.pod:1006
20803 msgid "COMMANDS"
20804 msgstr ""
20805
20806 #. type: =head1
20807 #: ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:77
20808 msgid "EXIT CODE"
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../fish/guestfish.pod:1012
20813 msgid ""
20814 "guestfish returns 0 if the commands completed without error, or 1 if there "
20815 "was an error."
20816 msgstr ""
20817
20818 #. type: =item
20819 #: ../fish/guestfish.pod:1019
20820 msgid "EDITOR"
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:1021
20825 msgid ""
20826 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20827 "C<vi>."
20828 msgstr ""
20829
20830 #. type: =item
20831 #: ../fish/guestfish.pod:1024
20832 msgid "GUESTFISH_PID"
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../fish/guestfish.pod:1026
20837 msgid ""
20838 "Used with the I<--remote> option to specify the remote guestfish process to "
20839 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20840 msgstr ""
20841
20842 #. type: =item
20843 #: ../fish/guestfish.pod:1030
20844 msgid "HEXEDITOR"
20845 msgstr ""
20846
20847 #. type: textblock
20848 #: ../fish/guestfish.pod:1032
20849 msgid ""
20850 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20851 "not specified, the external L<hexedit(1)> program is used."
20852 msgstr ""
20853
20854 #. type: =item
20855 #: ../fish/guestfish.pod:1036
20856 msgid "HOME"
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../fish/guestfish.pod:1038
20861 msgid ""
20862 "If compiled with GNU readline support, various files in the home directory "
20863 "can be used.  See L</FILES>."
20864 msgstr ""
20865
20866 #. type: textblock
20867 #: ../fish/guestfish.pod:1047
20868 msgid ""
20869 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20870 "effect as using the B<-v> option."
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../fish/guestfish.pod:1059
20875 msgid ""
20876 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20877 "the discussion of paths in L<guestfs(3)>."
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1070
20882 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20883 msgstr ""
20884
20885 #. type: =item
20886 #: ../fish/guestfish.pod:1072
20887 msgid "PAGER"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../fish/guestfish.pod:1074
20892 msgid ""
20893 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20894 "C<more>."
20895 msgstr ""
20896
20897 #. type: =head1
20898 #: ../fish/guestfish.pod:1090 ../fuse/guestmount.pod:252
20899 msgid "FILES"
20900 msgstr ""
20901
20902 #. type: =item
20903 #: ../fish/guestfish.pod:1094 ../fuse/guestmount.pod:256
20904 msgid "$HOME/.libguestfs-tools.rc"
20905 msgstr ""
20906
20907 #. type: =item
20908 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
20909 msgid "/etc/libguestfs-tools.conf"
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
20914 msgid ""
20915 "This configuration file controls the default read-only or read-write mode "
20916 "(I<--ro> or I<--rw>)."
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:1101
20921 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20922 msgstr ""
20923
20924 #. type: =item
20925 #: ../fish/guestfish.pod:1103
20926 msgid "$HOME/.guestfish"
20927 msgstr ""
20928
20929 #. type: textblock
20930 #: ../fish/guestfish.pod:1105
20931 msgid ""
20932 "If compiled with GNU readline support, then the command history is saved in "
20933 "this file."
20934 msgstr ""
20935
20936 #. type: =item
20937 #: ../fish/guestfish.pod:1108
20938 msgid "$HOME/.inputrc"
20939 msgstr ""
20940
20941 #. type: =item
20942 #: ../fish/guestfish.pod:1110
20943 msgid "/etc/inputrc"
20944 msgstr ""
20945
20946 #. type: textblock
20947 #: ../fish/guestfish.pod:1112
20948 msgid ""
20949 "If compiled with GNU readline support, then these files can be used to "
20950 "configure readline.  For further information, please see "
20951 "L<readline(3)/INITIALIZATION FILE>."
20952 msgstr ""
20953
20954 #. type: textblock
20955 #: ../fish/guestfish.pod:1116
20956 msgid "To write rules which only apply to guestfish, use:"
20957 msgstr ""
20958
20959 #. type: verbatim
20960 #: ../fish/guestfish.pod:1118
20961 #, no-wrap
20962 msgid ""
20963 " $if guestfish\n"
20964 " ...\n"
20965 " $endif\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../fish/guestfish.pod:1122
20971 msgid ""
20972 "Variables that you can set in inputrc that change the behaviour of guestfish "
20973 "in useful ways include:"
20974 msgstr ""
20975
20976 #. type: =item
20977 #: ../fish/guestfish.pod:1127
20978 msgid "completion-ignore-case (default: on)"
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../fish/guestfish.pod:1129
20983 msgid ""
20984 "By default, guestfish will ignore case when tab-completing paths on the "
20985 "disk.  Use:"
20986 msgstr ""
20987
20988 #. type: verbatim
20989 #: ../fish/guestfish.pod:1132
20990 #, no-wrap
20991 msgid ""
20992 " set completion-ignore-case off\n"
20993 "\n"
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../fish/guestfish.pod:1134
20998 msgid "to make guestfish case sensitive."
20999 msgstr ""
21000
21001 #. type: =item
21002 #: ../fish/guestfish.pod:1138
21003 msgid "test1.img"
21004 msgstr ""
21005
21006 #. type: =item
21007 #: ../fish/guestfish.pod:1140
21008 msgid "test2.img (etc)"
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../fish/guestfish.pod:1142
21013 msgid ""
21014 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
21015 "will be created in the file C<test1.img> in the current directory.  The "
21016 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
21017 "the same name will be overwritten."
21018 msgstr ""
21019
21020 #. type: textblock
21021 #: ../fish/guestfish.pod:1151
21022 msgid ""
21023 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
21024 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
21025 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
21026 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
21027 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
21028 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<hexedit(1)>."
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../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
21033 msgid ""
21034 "This program is free software; you can redistribute it and/or modify it "
21035 "under the terms of the GNU General Public License as published by the Free "
21036 "Software Foundation; either version 2 of the License, or (at your option) "
21037 "any later version."
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../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
21042 msgid ""
21043 "This program is distributed in the hope that it will be useful, but WITHOUT "
21044 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
21045 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
21046 "more details."
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../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
21051 msgid ""
21052 "You should have received a copy of the GNU General Public License along with "
21053 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
21054 "Ave, Cambridge, MA 02139, USA."
21055 msgstr ""
21056
21057 #. type: =head2
21058 #: ../fish/guestfish-actions.pod:1
21059 msgid "add-cdrom"
21060 msgstr ""
21061
21062 #. type: verbatim
21063 #: ../fish/guestfish-actions.pod:3
21064 #, no-wrap
21065 msgid ""
21066 " add-cdrom filename\n"
21067 "\n"
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../fish/guestfish-actions.pod:15
21072 msgid ""
21073 "This call checks for the existence of C<filename>.  This stops you from "
21074 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21075 "and C<http:> URLs.  To specify those, use the general L</config> call "
21076 "instead."
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../fish/guestfish-actions.pod:22
21081 msgid ""
21082 "If you just want to add an ISO file (often you use this as an efficient way "
21083 "to transfer large files into the guest), then you should probably use "
21084 "L</add-drive-ro> instead."
21085 msgstr ""
21086
21087 #. type: =head2
21088 #: ../fish/guestfish-actions.pod:35
21089 msgid "add-domain"
21090 msgstr ""
21091
21092 #. type: =head2
21093 #: ../fish/guestfish-actions.pod:37
21094 msgid "domain"
21095 msgstr ""
21096
21097 #. type: verbatim
21098 #: ../fish/guestfish-actions.pod:39
21099 #, no-wrap
21100 msgid ""
21101 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
21102 "\n"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../fish/guestfish-actions.pod:41
21107 msgid ""
21108 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21109 "It works by connecting to libvirt, requesting the domain and domain XML from "
21110 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../fish/guestfish-actions.pod:71
21115 msgid ""
21116 "The other optional parameters are passed directly through to "
21117 "L</add-drive-opts>."
21118 msgstr ""
21119
21120 #. type: textblock
21121 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138 ../fish/guestfish-actions.pod:3047
21122 msgid ""
21123 "This command has one or more optional arguments.  See L</OPTIONAL "
21124 "ARGUMENTS>."
21125 msgstr ""
21126
21127 #. type: =head2
21128 #: ../fish/guestfish-actions.pod:76
21129 msgid "add-drive"
21130 msgstr ""
21131
21132 #. type: verbatim
21133 #: ../fish/guestfish-actions.pod:78
21134 #, no-wrap
21135 msgid ""
21136 " add-drive filename\n"
21137 "\n"
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../fish/guestfish-actions.pod:80
21142 msgid ""
21143 "This function is the equivalent of calling L</add-drive-opts> with no "
21144 "optional parameters, so the disk is added writable, with the format being "
21145 "detected automatically."
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../fish/guestfish-actions.pod:84
21150 msgid ""
21151 "Automatic detection of the format opens you up to a potential security hole "
21152 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21153 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21154 "you should think about replacing calls to this function with calls to "
21155 "L</add-drive-opts>, and specifying the format."
21156 msgstr ""
21157
21158 #. type: =head2
21159 #: ../fish/guestfish-actions.pod:91
21160 msgid "add-drive-opts"
21161 msgstr ""
21162
21163 #. type: =head2
21164 #: ../fish/guestfish-actions.pod:93
21165 msgid "add"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fish/guestfish-actions.pod:95
21170 #, no-wrap
21171 msgid ""
21172 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/guestfish-actions.pod:122
21178 msgid ""
21179 "This forces the image format.  If you omit this (or use L</add-drive> or "
21180 "L</add-drive-ro>) then the format is automatically detected.  Possible "
21181 "formats include C<raw> and C<qcow2>."
21182 msgstr ""
21183
21184 #. type: textblock
21185 #: ../fish/guestfish-actions.pod:133
21186 msgid ""
21187 "This rarely-used option lets you emulate the behaviour of the deprecated "
21188 "L</add-drive-with-if> call (q.v.)"
21189 msgstr ""
21190
21191 #. type: =head2
21192 #: ../fish/guestfish-actions.pod:140
21193 msgid "add-drive-ro"
21194 msgstr ""
21195
21196 #. type: =head2
21197 #: ../fish/guestfish-actions.pod:142
21198 msgid "add-ro"
21199 msgstr ""
21200
21201 #. type: verbatim
21202 #: ../fish/guestfish-actions.pod:144
21203 #, no-wrap
21204 msgid ""
21205 " add-drive-ro filename\n"
21206 "\n"
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../fish/guestfish-actions.pod:146
21211 msgid ""
21212 "This function is the equivalent of calling L</add-drive-opts> with the "
21213 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
21214 "is added read-only, with the format being detected automatically."
21215 msgstr ""
21216
21217 #. type: =head2
21218 #: ../fish/guestfish-actions.pod:151
21219 msgid "add-drive-ro-with-if"
21220 msgstr ""
21221
21222 #. type: verbatim
21223 #: ../fish/guestfish-actions.pod:153
21224 #, no-wrap
21225 msgid ""
21226 " add-drive-ro-with-if filename iface\n"
21227 "\n"
21228 msgstr ""
21229
21230 #. type: textblock
21231 #: ../fish/guestfish-actions.pod:155
21232 msgid ""
21233 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
21234 "interface emulation to use at run time."
21235 msgstr ""
21236
21237 #. type: =head2
21238 #: ../fish/guestfish-actions.pod:165
21239 msgid "add-drive-with-if"
21240 msgstr ""
21241
21242 #. type: verbatim
21243 #: ../fish/guestfish-actions.pod:167
21244 #, no-wrap
21245 msgid ""
21246 " add-drive-with-if filename iface\n"
21247 "\n"
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../fish/guestfish-actions.pod:169
21252 msgid ""
21253 "This is the same as L</add-drive> but it allows you to specify the QEMU "
21254 "interface emulation to use at run time."
21255 msgstr ""
21256
21257 #. type: =head2
21258 #: ../fish/guestfish-actions.pod:179
21259 msgid "aug-clear"
21260 msgstr ""
21261
21262 #. type: verbatim
21263 #: ../fish/guestfish-actions.pod:181
21264 #, no-wrap
21265 msgid ""
21266 " aug-clear augpath\n"
21267 "\n"
21268 msgstr ""
21269
21270 #. type: =head2
21271 #: ../fish/guestfish-actions.pod:186
21272 msgid "aug-close"
21273 msgstr ""
21274
21275 #. type: verbatim
21276 #: ../fish/guestfish-actions.pod:188
21277 #, no-wrap
21278 msgid ""
21279 " aug-close\n"
21280 "\n"
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../fish/guestfish-actions.pod:190
21285 msgid ""
21286 "Close the current Augeas handle and free up any resources used by it.  After "
21287 "calling this, you have to call L</aug-init> again before you can use any "
21288 "other Augeas functions."
21289 msgstr ""
21290
21291 #. type: =head2
21292 #: ../fish/guestfish-actions.pod:195
21293 msgid "aug-defnode"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../fish/guestfish-actions.pod:197
21298 #, no-wrap
21299 msgid ""
21300 " aug-defnode name expr val\n"
21301 "\n"
21302 msgstr ""
21303
21304 #. type: textblock
21305 #: ../fish/guestfish-actions.pod:202
21306 msgid ""
21307 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21308 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
21309 "containing that single node."
21310 msgstr ""
21311
21312 #. type: =head2
21313 #: ../fish/guestfish-actions.pod:210
21314 msgid "aug-defvar"
21315 msgstr ""
21316
21317 #. type: verbatim
21318 #: ../fish/guestfish-actions.pod:212
21319 #, no-wrap
21320 msgid ""
21321 " aug-defvar name expr\n"
21322 "\n"
21323 msgstr ""
21324
21325 #. type: =head2
21326 #: ../fish/guestfish-actions.pod:221
21327 msgid "aug-get"
21328 msgstr ""
21329
21330 #. type: verbatim
21331 #: ../fish/guestfish-actions.pod:223
21332 #, no-wrap
21333 msgid ""
21334 " aug-get augpath\n"
21335 "\n"
21336 msgstr ""
21337
21338 #. type: =head2
21339 #: ../fish/guestfish-actions.pod:228
21340 msgid "aug-init"
21341 msgstr ""
21342
21343 #. type: verbatim
21344 #: ../fish/guestfish-actions.pod:230
21345 #, no-wrap
21346 msgid ""
21347 " aug-init root flags\n"
21348 "\n"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../fish/guestfish-actions.pod:236
21353 msgid "You must call this before using any other L</aug-*> commands."
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../fish/guestfish-actions.pod:271
21358 msgid "Do not load the tree in L</aug-init>."
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../fish/guestfish-actions.pod:275
21363 msgid "To close the handle, you can call L</aug-close>."
21364 msgstr ""
21365
21366 #. type: =head2
21367 #: ../fish/guestfish-actions.pod:279
21368 msgid "aug-insert"
21369 msgstr ""
21370
21371 #. type: verbatim
21372 #: ../fish/guestfish-actions.pod:281
21373 #, no-wrap
21374 msgid ""
21375 " aug-insert augpath label true|false\n"
21376 "\n"
21377 msgstr ""
21378
21379 #. type: =head2
21380 #: ../fish/guestfish-actions.pod:291
21381 msgid "aug-load"
21382 msgstr ""
21383
21384 #. type: verbatim
21385 #: ../fish/guestfish-actions.pod:293
21386 #, no-wrap
21387 msgid ""
21388 " aug-load\n"
21389 "\n"
21390 msgstr ""
21391
21392 #. type: =head2
21393 #: ../fish/guestfish-actions.pod:300
21394 msgid "aug-ls"
21395 msgstr ""
21396
21397 #. type: verbatim
21398 #: ../fish/guestfish-actions.pod:302
21399 #, no-wrap
21400 msgid ""
21401 " aug-ls augpath\n"
21402 "\n"
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../fish/guestfish-actions.pod:304
21407 msgid ""
21408 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
21409 "resulting nodes into alphabetical order."
21410 msgstr ""
21411
21412 #. type: =head2
21413 #: ../fish/guestfish-actions.pod:307
21414 msgid "aug-match"
21415 msgstr ""
21416
21417 #. type: verbatim
21418 #: ../fish/guestfish-actions.pod:309
21419 #, no-wrap
21420 msgid ""
21421 " aug-match augpath\n"
21422 "\n"
21423 msgstr ""
21424
21425 #. type: =head2
21426 #: ../fish/guestfish-actions.pod:315
21427 msgid "aug-mv"
21428 msgstr ""
21429
21430 #. type: verbatim
21431 #: ../fish/guestfish-actions.pod:317
21432 #, no-wrap
21433 msgid ""
21434 " aug-mv src dest\n"
21435 "\n"
21436 msgstr ""
21437
21438 #. type: =head2
21439 #: ../fish/guestfish-actions.pod:322
21440 msgid "aug-rm"
21441 msgstr ""
21442
21443 #. type: verbatim
21444 #: ../fish/guestfish-actions.pod:324
21445 #, no-wrap
21446 msgid ""
21447 " aug-rm augpath\n"
21448 "\n"
21449 msgstr ""
21450
21451 #. type: =head2
21452 #: ../fish/guestfish-actions.pod:330
21453 msgid "aug-save"
21454 msgstr ""
21455
21456 #. type: verbatim
21457 #: ../fish/guestfish-actions.pod:332
21458 #, no-wrap
21459 msgid ""
21460 " aug-save\n"
21461 "\n"
21462 msgstr ""
21463
21464 #. type: textblock
21465 #: ../fish/guestfish-actions.pod:336
21466 msgid ""
21467 "The flags which were passed to L</aug-init> affect exactly how files are "
21468 "saved."
21469 msgstr ""
21470
21471 #. type: =head2
21472 #: ../fish/guestfish-actions.pod:339
21473 msgid "aug-set"
21474 msgstr ""
21475
21476 #. type: verbatim
21477 #: ../fish/guestfish-actions.pod:341
21478 #, no-wrap
21479 msgid ""
21480 " aug-set augpath val\n"
21481 "\n"
21482 msgstr ""
21483
21484 #. type: textblock
21485 #: ../fish/guestfish-actions.pod:345
21486 msgid ""
21487 "In the Augeas API, it is possible to clear a node by setting the value to "
21488 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21489 "this call.  Instead you must use the L</aug-clear> call."
21490 msgstr ""
21491
21492 #. type: =head2
21493 #: ../fish/guestfish-actions.pod:350
21494 msgid "available"
21495 msgstr ""
21496
21497 #. type: verbatim
21498 #: ../fish/guestfish-actions.pod:352
21499 #, no-wrap
21500 msgid ""
21501 " available 'groups ...'\n"
21502 "\n"
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../fish/guestfish-actions.pod:358
21507 msgid ""
21508 "The libguestfs groups, and the functions that those groups correspond to, "
21509 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21510 "runtime by calling L</available-all-groups>."
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../fish/guestfish-actions.pod:382
21515 msgid "You must call L</launch> before calling this function."
21516 msgstr ""
21517
21518 #. type: textblock
21519 #: ../fish/guestfish-actions.pod:404
21520 msgid ""
21521 "This call was added in version C<1.0.80>.  In previous versions of "
21522 "libguestfs all you could do would be to speculatively execute a command to "
21523 "find out if the daemon implemented it.  See also L</version>."
21524 msgstr ""
21525
21526 #. type: =head2
21527 #: ../fish/guestfish-actions.pod:411
21528 msgid "available-all-groups"
21529 msgstr ""
21530
21531 #. type: verbatim
21532 #: ../fish/guestfish-actions.pod:413
21533 #, no-wrap
21534 msgid ""
21535 " available-all-groups\n"
21536 "\n"
21537 msgstr ""
21538
21539 #. type: textblock
21540 #: ../fish/guestfish-actions.pod:415
21541 msgid ""
21542 "This command returns a list of all optional groups that this daemon knows "
21543 "about.  Note this returns both supported and unsupported groups.  To find "
21544 "out which ones the daemon can actually support you have to call "
21545 "L</available> on each member of the returned list."
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../fish/guestfish-actions.pod:421
21550 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
21551 msgstr ""
21552
21553 #. type: =head2
21554 #: ../fish/guestfish-actions.pod:423
21555 msgid "base64-in"
21556 msgstr ""
21557
21558 #. type: verbatim
21559 #: ../fish/guestfish-actions.pod:425
21560 #, no-wrap
21561 msgid ""
21562 " base64-in (base64file|-) filename\n"
21563 "\n"
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../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
21568 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
21569 msgstr ""
21570
21571 #. type: =head2
21572 #: ../fish/guestfish-actions.pod:432
21573 msgid "base64-out"
21574 msgstr ""
21575
21576 #. type: verbatim
21577 #: ../fish/guestfish-actions.pod:434
21578 #, no-wrap
21579 msgid ""
21580 " base64-out filename (base64file|-)\n"
21581 "\n"
21582 msgstr ""
21583
21584 #. type: =head2
21585 #: ../fish/guestfish-actions.pod:441
21586 msgid "blockdev-flushbufs"
21587 msgstr ""
21588
21589 #. type: verbatim
21590 #: ../fish/guestfish-actions.pod:443
21591 #, no-wrap
21592 msgid ""
21593 " blockdev-flushbufs device\n"
21594 "\n"
21595 msgstr ""
21596
21597 #. type: =head2
21598 #: ../fish/guestfish-actions.pod:450
21599 msgid "blockdev-getbsz"
21600 msgstr ""
21601
21602 #. type: verbatim
21603 #: ../fish/guestfish-actions.pod:452
21604 #, no-wrap
21605 msgid ""
21606 " blockdev-getbsz device\n"
21607 "\n"
21608 msgstr ""
21609
21610 #. type: =head2
21611 #: ../fish/guestfish-actions.pod:461
21612 msgid "blockdev-getro"
21613 msgstr ""
21614
21615 #. type: verbatim
21616 #: ../fish/guestfish-actions.pod:463
21617 #, no-wrap
21618 msgid ""
21619 " blockdev-getro device\n"
21620 "\n"
21621 msgstr ""
21622
21623 #. type: =head2
21624 #: ../fish/guestfish-actions.pod:470
21625 msgid "blockdev-getsize64"
21626 msgstr ""
21627
21628 #. type: verbatim
21629 #: ../fish/guestfish-actions.pod:472
21630 #, no-wrap
21631 msgid ""
21632 " blockdev-getsize64 device\n"
21633 "\n"
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../fish/guestfish-actions.pod:476
21638 msgid "See also L</blockdev-getsz>."
21639 msgstr ""
21640
21641 #. type: =head2
21642 #: ../fish/guestfish-actions.pod:480
21643 msgid "blockdev-getss"
21644 msgstr ""
21645
21646 #. type: verbatim
21647 #: ../fish/guestfish-actions.pod:482
21648 #, no-wrap
21649 msgid ""
21650 " blockdev-getss device\n"
21651 "\n"
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../fish/guestfish-actions.pod:487
21656 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
21657 msgstr ""
21658
21659 #. type: =head2
21660 #: ../fish/guestfish-actions.pod:492
21661 msgid "blockdev-getsz"
21662 msgstr ""
21663
21664 #. type: verbatim
21665 #: ../fish/guestfish-actions.pod:494
21666 #, no-wrap
21667 msgid ""
21668 " blockdev-getsz device\n"
21669 "\n"
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../fish/guestfish-actions.pod:499
21674 msgid ""
21675 "See also L</blockdev-getss> for the real sector size of the device, and "
21676 "L</blockdev-getsize64> for the more useful I<size in bytes>."
21677 msgstr ""
21678
21679 #. type: =head2
21680 #: ../fish/guestfish-actions.pod:505
21681 msgid "blockdev-rereadpt"
21682 msgstr ""
21683
21684 #. type: verbatim
21685 #: ../fish/guestfish-actions.pod:507
21686 #, no-wrap
21687 msgid ""
21688 " blockdev-rereadpt device\n"
21689 "\n"
21690 msgstr ""
21691
21692 #. type: =head2
21693 #: ../fish/guestfish-actions.pod:513
21694 msgid "blockdev-setbsz"
21695 msgstr ""
21696
21697 #. type: verbatim
21698 #: ../fish/guestfish-actions.pod:515
21699 #, no-wrap
21700 msgid ""
21701 " blockdev-setbsz device blocksize\n"
21702 "\n"
21703 msgstr ""
21704
21705 #. type: =head2
21706 #: ../fish/guestfish-actions.pod:524
21707 msgid "blockdev-setro"
21708 msgstr ""
21709
21710 #. type: verbatim
21711 #: ../fish/guestfish-actions.pod:526
21712 #, no-wrap
21713 msgid ""
21714 " blockdev-setro device\n"
21715 "\n"
21716 msgstr ""
21717
21718 #. type: =head2
21719 #: ../fish/guestfish-actions.pod:532
21720 msgid "blockdev-setrw"
21721 msgstr ""
21722
21723 #. type: verbatim
21724 #: ../fish/guestfish-actions.pod:534
21725 #, no-wrap
21726 msgid ""
21727 " blockdev-setrw device\n"
21728 "\n"
21729 msgstr ""
21730
21731 #. type: =head2
21732 #: ../fish/guestfish-actions.pod:540
21733 msgid "case-sensitive-path"
21734 msgstr ""
21735
21736 #. type: verbatim
21737 #: ../fish/guestfish-actions.pod:542
21738 #, no-wrap
21739 msgid ""
21740 " case-sensitive-path path\n"
21741 "\n"
21742 msgstr ""
21743
21744 #. type: textblock
21745 #: ../fish/guestfish-actions.pod:566
21746 msgid ""
21747 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
21748 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
21749 "how the directories were originally created under Windows)."
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../fish/guestfish-actions.pod:574
21754 msgid "See also L</realpath>."
21755 msgstr ""
21756
21757 #. type: =head2
21758 #: ../fish/guestfish-actions.pod:576
21759 msgid "cat"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../fish/guestfish-actions.pod:578
21764 #, no-wrap
21765 msgid ""
21766 " cat path\n"
21767 "\n"
21768 msgstr ""
21769
21770 #. type: textblock
21771 #: ../fish/guestfish-actions.pod:582
21772 msgid ""
21773 "Note that this function cannot correctly handle binary files (specifically, "
21774 "files containing C<\\0> character which is treated as end of string).  For "
21775 "those you need to use the L</read-file> or L</download> functions which have "
21776 "a more complex interface."
21777 msgstr ""
21778
21779 #. type: =head2
21780 #: ../fish/guestfish-actions.pod:590
21781 msgid "checksum"
21782 msgstr ""
21783
21784 #. type: verbatim
21785 #: ../fish/guestfish-actions.pod:592
21786 #, no-wrap
21787 msgid ""
21788 " checksum csumtype path\n"
21789 "\n"
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../fish/guestfish-actions.pod:635
21794 msgid "To get the checksum for a device, use L</checksum-device>."
21795 msgstr ""
21796
21797 #. type: textblock
21798 #: ../fish/guestfish-actions.pod:637
21799 msgid "To get the checksums for many files, use L</checksums-out>."
21800 msgstr ""
21801
21802 #. type: =head2
21803 #: ../fish/guestfish-actions.pod:639
21804 msgid "checksum-device"
21805 msgstr ""
21806
21807 #. type: verbatim
21808 #: ../fish/guestfish-actions.pod:641
21809 #, no-wrap
21810 msgid ""
21811 " checksum-device csumtype device\n"
21812 "\n"
21813 msgstr ""
21814
21815 #. type: textblock
21816 #: ../fish/guestfish-actions.pod:643
21817 msgid ""
21818 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
21819 "device named C<device>.  For the types of checksums supported see the "
21820 "L</checksum> command."
21821 msgstr ""
21822
21823 #. type: =head2
21824 #: ../fish/guestfish-actions.pod:647
21825 msgid "checksums-out"
21826 msgstr ""
21827
21828 #. type: verbatim
21829 #: ../fish/guestfish-actions.pod:649
21830 #, no-wrap
21831 msgid ""
21832 " checksums-out csumtype directory (sumsfile|-)\n"
21833 "\n"
21834 msgstr ""
21835
21836 #. type: =head2
21837 #: ../fish/guestfish-actions.pod:665
21838 msgid "chmod"
21839 msgstr ""
21840
21841 #. type: verbatim
21842 #: ../fish/guestfish-actions.pod:667
21843 #, no-wrap
21844 msgid ""
21845 " chmod mode path\n"
21846 "\n"
21847 msgstr ""
21848
21849 #. type: =head2
21850 #: ../fish/guestfish-actions.pod:678
21851 msgid "chown"
21852 msgstr ""
21853
21854 #. type: verbatim
21855 #: ../fish/guestfish-actions.pod:680
21856 #, no-wrap
21857 msgid ""
21858 " chown owner group path\n"
21859 "\n"
21860 msgstr ""
21861
21862 #. type: =head2
21863 #: ../fish/guestfish-actions.pod:688
21864 msgid "command"
21865 msgstr ""
21866
21867 #. type: verbatim
21868 #: ../fish/guestfish-actions.pod:690
21869 #, no-wrap
21870 msgid ""
21871 " command 'arguments ...'\n"
21872 "\n"
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../fish/guestfish-actions.pod:697
21877 msgid ""
21878 "The single parameter is an argv-style list of arguments.  The first element "
21879 "is the name of the program to run.  Subsequent elements are parameters.  The "
21880 "list must be non-empty (ie. must contain a program name).  Note that the "
21881 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
21882 msgstr ""
21883
21884 #. type: =head2
21885 #: ../fish/guestfish-actions.pod:725
21886 msgid "command-lines"
21887 msgstr ""
21888
21889 #. type: verbatim
21890 #: ../fish/guestfish-actions.pod:727
21891 #, no-wrap
21892 msgid ""
21893 " command-lines 'arguments ...'\n"
21894 "\n"
21895 msgstr ""
21896
21897 #. type: textblock
21898 #: ../fish/guestfish-actions.pod:729
21899 msgid "This is the same as L</command>, but splits the result into a list of lines."
21900 msgstr ""
21901
21902 #. type: textblock
21903 #: ../fish/guestfish-actions.pod:732
21904 msgid "See also: L</sh-lines>"
21905 msgstr ""
21906
21907 #. type: =head2
21908 #: ../fish/guestfish-actions.pod:737
21909 msgid "config"
21910 msgstr ""
21911
21912 #. type: verbatim
21913 #: ../fish/guestfish-actions.pod:739
21914 #, no-wrap
21915 msgid ""
21916 " config qemuparam qemuvalue\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: =head2
21921 #: ../fish/guestfish-actions.pod:750
21922 msgid "copy-size"
21923 msgstr ""
21924
21925 #. type: verbatim
21926 #: ../fish/guestfish-actions.pod:752
21927 #, no-wrap
21928 msgid ""
21929 " copy-size src dest size\n"
21930 "\n"
21931 msgstr ""
21932
21933 #. type: =head2
21934 #: ../fish/guestfish-actions.pod:760
21935 msgid "cp"
21936 msgstr ""
21937
21938 #. type: verbatim
21939 #: ../fish/guestfish-actions.pod:762
21940 #, no-wrap
21941 msgid ""
21942 " cp src dest\n"
21943 "\n"
21944 msgstr ""
21945
21946 #. type: =head2
21947 #: ../fish/guestfish-actions.pod:767
21948 msgid "cp-a"
21949 msgstr ""
21950
21951 #. type: verbatim
21952 #: ../fish/guestfish-actions.pod:769
21953 #, no-wrap
21954 msgid ""
21955 " cp-a src dest\n"
21956 "\n"
21957 msgstr ""
21958
21959 #. type: =head2
21960 #: ../fish/guestfish-actions.pod:774
21961 msgid "dd"
21962 msgstr ""
21963
21964 #. type: verbatim
21965 #: ../fish/guestfish-actions.pod:776
21966 #, no-wrap
21967 msgid ""
21968 " dd src dest\n"
21969 "\n"
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../fish/guestfish-actions.pod:783
21974 msgid ""
21975 "If the destination is a device, it must be as large or larger than the "
21976 "source file or device, otherwise the copy will fail.  This command cannot do "
21977 "partial copies (see L</copy-size>)."
21978 msgstr ""
21979
21980 #. type: =head2
21981 #: ../fish/guestfish-actions.pod:787
21982 msgid "df"
21983 msgstr ""
21984
21985 #. type: verbatim
21986 #: ../fish/guestfish-actions.pod:789
21987 #, no-wrap
21988 msgid ""
21989 " df\n"
21990 "\n"
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
21995 msgid ""
21996 "This command is mostly useful for interactive sessions.  It is I<not> "
21997 "intended that you try to parse the output string.  Use L</statvfs> from "
21998 "programs."
21999 msgstr ""
22000
22001 #. type: =head2
22002 #: ../fish/guestfish-actions.pod:797
22003 msgid "df-h"
22004 msgstr ""
22005
22006 #. type: verbatim
22007 #: ../fish/guestfish-actions.pod:799
22008 #, no-wrap
22009 msgid ""
22010 " df-h\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: =head2
22015 #: ../fish/guestfish-actions.pod:808
22016 msgid "dmesg"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../fish/guestfish-actions.pod:810
22021 #, no-wrap
22022 msgid ""
22023 " dmesg\n"
22024 "\n"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fish/guestfish-actions.pod:816
22029 msgid ""
22030 "Another way to get the same information is to enable verbose messages with "
22031 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
22032 "before running the program."
22033 msgstr ""
22034
22035 #. type: =head2
22036 #: ../fish/guestfish-actions.pod:821
22037 msgid "download"
22038 msgstr ""
22039
22040 #. type: verbatim
22041 #: ../fish/guestfish-actions.pod:823
22042 #, no-wrap
22043 msgid ""
22044 " download remotefilename (filename|-)\n"
22045 "\n"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../fish/guestfish-actions.pod:830
22050 msgid "See also L</upload>, L</cat>."
22051 msgstr ""
22052
22053 #. type: =head2
22054 #: ../fish/guestfish-actions.pod:834
22055 msgid "download-offset"
22056 msgstr ""
22057
22058 #. type: verbatim
22059 #: ../fish/guestfish-actions.pod:836
22060 #, no-wrap
22061 msgid ""
22062 " download-offset remotefilename (filename|-) offset size\n"
22063 "\n"
22064 msgstr ""
22065
22066 #. type: textblock
22067 #: ../fish/guestfish-actions.pod:844
22068 msgid ""
22069 "Note that there is no limit on the amount of data that can be downloaded "
22070 "with this call, unlike with L</pread>, and this call always reads the full "
22071 "amount unless an error occurs."
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../fish/guestfish-actions.pod:849
22076 msgid "See also L</download>, L</pread>."
22077 msgstr ""
22078
22079 #. type: =head2
22080 #: ../fish/guestfish-actions.pod:853
22081 msgid "drop-caches"
22082 msgstr ""
22083
22084 #. type: verbatim
22085 #: ../fish/guestfish-actions.pod:855
22086 #, no-wrap
22087 msgid ""
22088 " drop-caches whattodrop\n"
22089 "\n"
22090 msgstr ""
22091
22092 #. type: =head2
22093 #: ../fish/guestfish-actions.pod:867
22094 msgid "du"
22095 msgstr ""
22096
22097 #. type: verbatim
22098 #: ../fish/guestfish-actions.pod:869
22099 #, no-wrap
22100 msgid ""
22101 " du path\n"
22102 "\n"
22103 msgstr ""
22104
22105 #. type: =head2
22106 #: ../fish/guestfish-actions.pod:881
22107 msgid "e2fsck-f"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../fish/guestfish-actions.pod:883
22112 #, no-wrap
22113 msgid ""
22114 " e2fsck-f device\n"
22115 "\n"
22116 msgstr ""
22117
22118 #. type: textblock
22119 #: ../fish/guestfish-actions.pod:889
22120 msgid ""
22121 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
22122 "should use L</fsck>."
22123 msgstr ""
22124
22125 #. type: =head2
22126 #: ../fish/guestfish-actions.pod:892
22127 msgid "echo-daemon"
22128 msgstr ""
22129
22130 #. type: verbatim
22131 #: ../fish/guestfish-actions.pod:894
22132 #, no-wrap
22133 msgid ""
22134 " echo-daemon 'words ...'\n"
22135 "\n"
22136 msgstr ""
22137
22138 #. type: textblock
22139 #: ../fish/guestfish-actions.pod:901
22140 msgid "See also L</ping-daemon>."
22141 msgstr ""
22142
22143 #. type: =head2
22144 #: ../fish/guestfish-actions.pod:903
22145 msgid "egrep"
22146 msgstr ""
22147
22148 #. type: verbatim
22149 #: ../fish/guestfish-actions.pod:905
22150 #, no-wrap
22151 msgid ""
22152 " egrep regex path\n"
22153 "\n"
22154 msgstr ""
22155
22156 #. type: =head2
22157 #: ../fish/guestfish-actions.pod:913
22158 msgid "egrepi"
22159 msgstr ""
22160
22161 #. type: verbatim
22162 #: ../fish/guestfish-actions.pod:915
22163 #, no-wrap
22164 msgid ""
22165 " egrepi regex path\n"
22166 "\n"
22167 msgstr ""
22168
22169 #. type: =head2
22170 #: ../fish/guestfish-actions.pod:923
22171 msgid "equal"
22172 msgstr ""
22173
22174 #. type: verbatim
22175 #: ../fish/guestfish-actions.pod:925
22176 #, no-wrap
22177 msgid ""
22178 " equal file1 file2\n"
22179 "\n"
22180 msgstr ""
22181
22182 #. type: =head2
22183 #: ../fish/guestfish-actions.pod:932
22184 msgid "exists"
22185 msgstr ""
22186
22187 #. type: verbatim
22188 #: ../fish/guestfish-actions.pod:934
22189 #, no-wrap
22190 msgid ""
22191 " exists path\n"
22192 "\n"
22193 msgstr ""
22194
22195 #. type: textblock
22196 #: ../fish/guestfish-actions.pod:939
22197 msgid "See also L</is-file>, L</is-dir>, L</stat>."
22198 msgstr ""
22199
22200 #. type: =head2
22201 #: ../fish/guestfish-actions.pod:941
22202 msgid "fallocate"
22203 msgstr ""
22204
22205 #. type: verbatim
22206 #: ../fish/guestfish-actions.pod:943
22207 #, no-wrap
22208 msgid ""
22209 " fallocate path len\n"
22210 "\n"
22211 msgstr ""
22212
22213 #. type: =head2
22214 #: ../fish/guestfish-actions.pod:960
22215 msgid "fallocate64"
22216 msgstr ""
22217
22218 #. type: verbatim
22219 #: ../fish/guestfish-actions.pod:962
22220 #, no-wrap
22221 msgid ""
22222 " fallocate64 path len\n"
22223 "\n"
22224 msgstr ""
22225
22226 #. type: textblock
22227 #: ../fish/guestfish-actions.pod:968
22228 msgid ""
22229 "Note that this call allocates disk blocks for the file.  To create a sparse "
22230 "file use L</truncate-size> instead."
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../fish/guestfish-actions.pod:971
22235 msgid ""
22236 "The deprecated call L</fallocate> does the same, but owing to an oversight "
22237 "it only allowed 30 bit lengths to be specified, effectively limiting the "
22238 "maximum size of files created through that call to 1GB."
22239 msgstr ""
22240
22241 #. type: =head2
22242 #: ../fish/guestfish-actions.pod:980
22243 msgid "fgrep"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../fish/guestfish-actions.pod:982
22248 #, no-wrap
22249 msgid ""
22250 " fgrep pattern path\n"
22251 "\n"
22252 msgstr ""
22253
22254 #. type: =head2
22255 #: ../fish/guestfish-actions.pod:990
22256 msgid "fgrepi"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../fish/guestfish-actions.pod:992
22261 #, no-wrap
22262 msgid ""
22263 " fgrepi pattern path\n"
22264 "\n"
22265 msgstr ""
22266
22267 #. type: =head2
22268 #: ../fish/guestfish-actions.pod:1000
22269 msgid "file"
22270 msgstr ""
22271
22272 #. type: verbatim
22273 #: ../fish/guestfish-actions.pod:1002
22274 #, no-wrap
22275 msgid ""
22276 " file path\n"
22277 "\n"
22278 msgstr ""
22279
22280 #. type: textblock
22281 #: ../fish/guestfish-actions.pod:1014
22282 msgid ""
22283 "This command can also be used on C</dev/> devices (and partitions, LV "
22284 "names).  You can for example use this to determine if a device contains a "
22285 "filesystem, although it's usually better to use L</vfs-type>."
22286 msgstr ""
22287
22288 #. type: =head2
22289 #: ../fish/guestfish-actions.pod:1024
22290 msgid "file-architecture"
22291 msgstr ""
22292
22293 #. type: verbatim
22294 #: ../fish/guestfish-actions.pod:1026
22295 #, no-wrap
22296 msgid ""
22297 " file-architecture filename\n"
22298 "\n"
22299 msgstr ""
22300
22301 #. type: =head2
22302 #: ../fish/guestfish-actions.pod:1129
22303 msgid "filesize"
22304 msgstr ""
22305
22306 #. type: verbatim
22307 #: ../fish/guestfish-actions.pod:1131
22308 #, no-wrap
22309 msgid ""
22310 " filesize file\n"
22311 "\n"
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../fish/guestfish-actions.pod:1135
22316 msgid ""
22317 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
22318 "L</is-file> etc.  To get the size of block devices, use "
22319 "L</blockdev-getsize64>."
22320 msgstr ""
22321
22322 #. type: =head2
22323 #: ../fish/guestfish-actions.pod:1139
22324 msgid "fill"
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../fish/guestfish-actions.pod:1141
22329 #, no-wrap
22330 msgid ""
22331 " fill c len path\n"
22332 "\n"
22333 msgstr ""
22334
22335 #. type: textblock
22336 #: ../fish/guestfish-actions.pod:1147
22337 msgid ""
22338 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
22339 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
22340 "L</fill-pattern>."
22341 msgstr ""
22342
22343 #. type: =head2
22344 #: ../fish/guestfish-actions.pod:1152
22345 msgid "fill-pattern"
22346 msgstr ""
22347
22348 #. type: verbatim
22349 #: ../fish/guestfish-actions.pod:1154
22350 #, no-wrap
22351 msgid ""
22352 " fill-pattern pattern len path\n"
22353 "\n"
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../fish/guestfish-actions.pod:1156
22358 msgid ""
22359 "This function is like L</fill> except that it creates a new file of length "
22360 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
22361 "is truncated if necessary to ensure the length of the file is exactly C<len> "
22362 "bytes."
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../fish/guestfish-actions.pod:1161
22367 msgid "find"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../fish/guestfish-actions.pod:1163
22372 #, no-wrap
22373 msgid ""
22374 " find directory\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../fish/guestfish-actions.pod:1177
22380 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../fish/guestfish-actions.pod:1190
22385 msgid "See also L</find0>."
22386 msgstr ""
22387
22388 #. type: =head2
22389 #: ../fish/guestfish-actions.pod:1195
22390 msgid "find0"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../fish/guestfish-actions.pod:1197
22395 #, no-wrap
22396 msgid ""
22397 " find0 directory (files|-)\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: textblock
22402 #: ../fish/guestfish-actions.pod:1203
22403 msgid "This command works the same way as L</find> with the following exceptions:"
22404 msgstr ""
22405
22406 #. type: =head2
22407 #: ../fish/guestfish-actions.pod:1230
22408 msgid "findfs-label"
22409 msgstr ""
22410
22411 #. type: verbatim
22412 #: ../fish/guestfish-actions.pod:1232
22413 #, no-wrap
22414 msgid ""
22415 " findfs-label label\n"
22416 "\n"
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../fish/guestfish-actions.pod:1238
22421 msgid "To find the label of a filesystem, use L</vfs-label>."
22422 msgstr ""
22423
22424 #. type: =head2
22425 #: ../fish/guestfish-actions.pod:1240
22426 msgid "findfs-uuid"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../fish/guestfish-actions.pod:1242
22431 #, no-wrap
22432 msgid ""
22433 " findfs-uuid uuid\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../fish/guestfish-actions.pod:1248
22439 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
22440 msgstr ""
22441
22442 #. type: =head2
22443 #: ../fish/guestfish-actions.pod:1250
22444 msgid "fsck"
22445 msgstr ""
22446
22447 #. type: verbatim
22448 #: ../fish/guestfish-actions.pod:1252
22449 #, no-wrap
22450 msgid ""
22451 " fsck fstype device\n"
22452 "\n"
22453 msgstr ""
22454
22455 #. type: =head2
22456 #: ../fish/guestfish-actions.pod:1282
22457 msgid "get-append"
22458 msgstr ""
22459
22460 #. type: verbatim
22461 #: ../fish/guestfish-actions.pod:1284
22462 #, no-wrap
22463 msgid ""
22464 " get-append\n"
22465 "\n"
22466 msgstr ""
22467
22468 #. type: =head2
22469 #: ../fish/guestfish-actions.pod:1291
22470 msgid "get-attach-method"
22471 msgstr ""
22472
22473 #. type: verbatim
22474 #: ../fish/guestfish-actions.pod:1293
22475 #, no-wrap
22476 msgid ""
22477 " get-attach-method\n"
22478 "\n"
22479 msgstr ""
22480
22481 #. type: textblock
22482 #: ../fish/guestfish-actions.pod:1295
22483 msgid "Return the current attach method.  See L</set-attach-method>."
22484 msgstr ""
22485
22486 #. type: =head2
22487 #: ../fish/guestfish-actions.pod:1297
22488 msgid "get-autosync"
22489 msgstr ""
22490
22491 #. type: verbatim
22492 #: ../fish/guestfish-actions.pod:1299
22493 #, no-wrap
22494 msgid ""
22495 " get-autosync\n"
22496 "\n"
22497 msgstr ""
22498
22499 #. type: =head2
22500 #: ../fish/guestfish-actions.pod:1303
22501 msgid "get-direct"
22502 msgstr ""
22503
22504 #. type: verbatim
22505 #: ../fish/guestfish-actions.pod:1305
22506 #, no-wrap
22507 msgid ""
22508 " get-direct\n"
22509 "\n"
22510 msgstr ""
22511
22512 #. type: =head2
22513 #: ../fish/guestfish-actions.pod:1309
22514 msgid "get-e2label"
22515 msgstr ""
22516
22517 #. type: verbatim
22518 #: ../fish/guestfish-actions.pod:1311
22519 #, no-wrap
22520 msgid ""
22521 " get-e2label device\n"
22522 "\n"
22523 msgstr ""
22524
22525 #. type: =head2
22526 #: ../fish/guestfish-actions.pod:1323
22527 msgid "get-e2uuid"
22528 msgstr ""
22529
22530 #. type: verbatim
22531 #: ../fish/guestfish-actions.pod:1325
22532 #, no-wrap
22533 msgid ""
22534 " get-e2uuid device\n"
22535 "\n"
22536 msgstr ""
22537
22538 #. type: =head2
22539 #: ../fish/guestfish-actions.pod:1337
22540 msgid "get-memsize"
22541 msgstr ""
22542
22543 #. type: verbatim
22544 #: ../fish/guestfish-actions.pod:1339
22545 #, no-wrap
22546 msgid ""
22547 " get-memsize\n"
22548 "\n"
22549 msgstr ""
22550
22551 #. type: textblock
22552 #: ../fish/guestfish-actions.pod:1344
22553 msgid ""
22554 "If L</set-memsize> was not called on this handle, and if "
22555 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
22556 "value for memsize."
22557 msgstr ""
22558
22559 #. type: =head2
22560 #: ../fish/guestfish-actions.pod:1351
22561 msgid "get-network"
22562 msgstr ""
22563
22564 #. type: verbatim
22565 #: ../fish/guestfish-actions.pod:1353
22566 #, no-wrap
22567 msgid ""
22568 " get-network\n"
22569 "\n"
22570 msgstr ""
22571
22572 #. type: =head2
22573 #: ../fish/guestfish-actions.pod:1357
22574 msgid "get-path"
22575 msgstr ""
22576
22577 #. type: verbatim
22578 #: ../fish/guestfish-actions.pod:1359
22579 #, no-wrap
22580 msgid ""
22581 " get-path\n"
22582 "\n"
22583 msgstr ""
22584
22585 #. type: =head2
22586 #: ../fish/guestfish-actions.pod:1366
22587 msgid "get-pid"
22588 msgstr ""
22589
22590 #. type: =head2
22591 #: ../fish/guestfish-actions.pod:1368
22592 msgid "pid"
22593 msgstr ""
22594
22595 #. type: verbatim
22596 #: ../fish/guestfish-actions.pod:1370
22597 #, no-wrap
22598 msgid ""
22599 " get-pid\n"
22600 "\n"
22601 msgstr ""
22602
22603 #. type: =head2
22604 #: ../fish/guestfish-actions.pod:1377
22605 msgid "get-qemu"
22606 msgstr ""
22607
22608 #. type: verbatim
22609 #: ../fish/guestfish-actions.pod:1379
22610 #, no-wrap
22611 msgid ""
22612 " get-qemu\n"
22613 "\n"
22614 msgstr ""
22615
22616 #. type: =head2
22617 #: ../fish/guestfish-actions.pod:1386
22618 msgid "get-recovery-proc"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../fish/guestfish-actions.pod:1388
22623 #, no-wrap
22624 msgid ""
22625 " get-recovery-proc\n"
22626 "\n"
22627 msgstr ""
22628
22629 #. type: =head2
22630 #: ../fish/guestfish-actions.pod:1392
22631 msgid "get-selinux"
22632 msgstr ""
22633
22634 #. type: verbatim
22635 #: ../fish/guestfish-actions.pod:1394
22636 #, no-wrap
22637 msgid ""
22638 " get-selinux\n"
22639 "\n"
22640 msgstr ""
22641
22642 #. type: textblock
22643 #: ../fish/guestfish-actions.pod:1396
22644 msgid ""
22645 "This returns the current setting of the selinux flag which is passed to the "
22646 "appliance at boot time.  See L</set-selinux>."
22647 msgstr ""
22648
22649 #. type: =head2
22650 #: ../fish/guestfish-actions.pod:1402
22651 msgid "get-state"
22652 msgstr ""
22653
22654 #. type: verbatim
22655 #: ../fish/guestfish-actions.pod:1404
22656 #, no-wrap
22657 msgid ""
22658 " get-state\n"
22659 "\n"
22660 msgstr ""
22661
22662 #. type: =head2
22663 #: ../fish/guestfish-actions.pod:1411
22664 msgid "get-trace"
22665 msgstr ""
22666
22667 #. type: verbatim
22668 #: ../fish/guestfish-actions.pod:1413
22669 #, no-wrap
22670 msgid ""
22671 " get-trace\n"
22672 "\n"
22673 msgstr ""
22674
22675 #. type: =head2
22676 #: ../fish/guestfish-actions.pod:1417
22677 msgid "get-umask"
22678 msgstr ""
22679
22680 #. type: verbatim
22681 #: ../fish/guestfish-actions.pod:1419
22682 #, no-wrap
22683 msgid ""
22684 " get-umask\n"
22685 "\n"
22686 msgstr ""
22687
22688 #. type: textblock
22689 #: ../fish/guestfish-actions.pod:1421
22690 msgid ""
22691 "Return the current umask.  By default the umask is C<022> unless it has been "
22692 "set by calling L</umask>."
22693 msgstr ""
22694
22695 #. type: =head2
22696 #: ../fish/guestfish-actions.pod:1424
22697 msgid "get-verbose"
22698 msgstr ""
22699
22700 #. type: verbatim
22701 #: ../fish/guestfish-actions.pod:1426
22702 #, no-wrap
22703 msgid ""
22704 " get-verbose\n"
22705 "\n"
22706 msgstr ""
22707
22708 #. type: =head2
22709 #: ../fish/guestfish-actions.pod:1430
22710 msgid "getcon"
22711 msgstr ""
22712
22713 #. type: verbatim
22714 #: ../fish/guestfish-actions.pod:1432
22715 #, no-wrap
22716 msgid ""
22717 " getcon\n"
22718 "\n"
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../fish/guestfish-actions.pod:1436
22723 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
22724 msgstr ""
22725
22726 #. type: =head2
22727 #: ../fish/guestfish-actions.pod:1439
22728 msgid "getxattr"
22729 msgstr ""
22730
22731 #. type: verbatim
22732 #: ../fish/guestfish-actions.pod:1441
22733 #, no-wrap
22734 msgid ""
22735 " getxattr path name\n"
22736 "\n"
22737 msgstr ""
22738
22739 #. type: textblock
22740 #: ../fish/guestfish-actions.pod:1443
22741 msgid ""
22742 "Get a single extended attribute from file C<path> named C<name>.  This call "
22743 "follows symlinks.  If you want to lookup an extended attribute for the "
22744 "symlink itself, use L</lgetxattr>."
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2453
22749 msgid ""
22750 "Normally it is better to get all extended attributes from a file in one go "
22751 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
22752 "buggy and do not provide a way to list out attributes.  For these "
22753 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
22754 "attributes you want in advance and call this function."
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../fish/guestfish-actions.pod:1457
22759 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
22760 msgstr ""
22761
22762 #. type: =head2
22763 #: ../fish/guestfish-actions.pod:1459
22764 msgid "getxattrs"
22765 msgstr ""
22766
22767 #. type: verbatim
22768 #: ../fish/guestfish-actions.pod:1461
22769 #, no-wrap
22770 msgid ""
22771 " getxattrs path\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../fish/guestfish-actions.pod:1469
22777 msgid "See also: L</lgetxattrs>, L<attr(5)>."
22778 msgstr ""
22779
22780 #. type: =head2
22781 #: ../fish/guestfish-actions.pod:1471
22782 msgid "glob-expand"
22783 msgstr ""
22784
22785 #. type: verbatim
22786 #: ../fish/guestfish-actions.pod:1473
22787 #, no-wrap
22788 msgid ""
22789 " glob-expand pattern\n"
22790 "\n"
22791 msgstr ""
22792
22793 #. type: =head2
22794 #: ../fish/guestfish-actions.pod:1486
22795 msgid "grep"
22796 msgstr ""
22797
22798 #. type: verbatim
22799 #: ../fish/guestfish-actions.pod:1488
22800 #, no-wrap
22801 msgid ""
22802 " grep regex path\n"
22803 "\n"
22804 msgstr ""
22805
22806 #. type: =head2
22807 #: ../fish/guestfish-actions.pod:1496
22808 msgid "grepi"
22809 msgstr ""
22810
22811 #. type: verbatim
22812 #: ../fish/guestfish-actions.pod:1498
22813 #, no-wrap
22814 msgid ""
22815 " grepi regex path\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: =head2
22820 #: ../fish/guestfish-actions.pod:1506
22821 msgid "grub-install"
22822 msgstr ""
22823
22824 #. type: verbatim
22825 #: ../fish/guestfish-actions.pod:1508
22826 #, no-wrap
22827 msgid ""
22828 " grub-install root device\n"
22829 "\n"
22830 msgstr ""
22831
22832 #. type: =head2
22833 #: ../fish/guestfish-actions.pod:1524
22834 msgid "head"
22835 msgstr ""
22836
22837 #. type: verbatim
22838 #: ../fish/guestfish-actions.pod:1526
22839 #, no-wrap
22840 msgid ""
22841 " head path\n"
22842 "\n"
22843 msgstr ""
22844
22845 #. type: =head2
22846 #: ../fish/guestfish-actions.pod:1534
22847 msgid "head-n"
22848 msgstr ""
22849
22850 #. type: verbatim
22851 #: ../fish/guestfish-actions.pod:1536
22852 #, no-wrap
22853 msgid ""
22854 " head-n nrlines path\n"
22855 "\n"
22856 msgstr ""
22857
22858 #. type: =head2
22859 #: ../fish/guestfish-actions.pod:1549
22860 msgid "hexdump"
22861 msgstr ""
22862
22863 #. type: verbatim
22864 #: ../fish/guestfish-actions.pod:1551
22865 #, no-wrap
22866 msgid ""
22867 " hexdump path\n"
22868 "\n"
22869 msgstr ""
22870
22871 #. type: =head2
22872 #: ../fish/guestfish-actions.pod:1559
22873 msgid "initrd-cat"
22874 msgstr ""
22875
22876 #. type: verbatim
22877 #: ../fish/guestfish-actions.pod:1561
22878 #, no-wrap
22879 msgid ""
22880 " initrd-cat initrdpath filename\n"
22881 "\n"
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../fish/guestfish-actions.pod:1573
22886 msgid "See also L</initrd-list>."
22887 msgstr ""
22888
22889 #. type: =head2
22890 #: ../fish/guestfish-actions.pod:1578
22891 msgid "initrd-list"
22892 msgstr ""
22893
22894 #. type: verbatim
22895 #: ../fish/guestfish-actions.pod:1580
22896 #, no-wrap
22897 msgid ""
22898 " initrd-list path\n"
22899 "\n"
22900 msgstr ""
22901
22902 #. type: =head2
22903 #: ../fish/guestfish-actions.pod:1592
22904 msgid "inotify-add-watch"
22905 msgstr ""
22906
22907 #. type: verbatim
22908 #: ../fish/guestfish-actions.pod:1594
22909 #, no-wrap
22910 msgid ""
22911 " inotify-add-watch path mask\n"
22912 "\n"
22913 msgstr ""
22914
22915 #. type: =head2
22916 #: ../fish/guestfish-actions.pod:1606
22917 msgid "inotify-close"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../fish/guestfish-actions.pod:1608
22922 #, no-wrap
22923 msgid ""
22924 " inotify-close\n"
22925 "\n"
22926 msgstr ""
22927
22928 #. type: =head2
22929 #: ../fish/guestfish-actions.pod:1614
22930 msgid "inotify-files"
22931 msgstr ""
22932
22933 #. type: verbatim
22934 #: ../fish/guestfish-actions.pod:1616
22935 #, no-wrap
22936 msgid ""
22937 " inotify-files\n"
22938 "\n"
22939 msgstr ""
22940
22941 #. type: textblock
22942 #: ../fish/guestfish-actions.pod:1618
22943 msgid ""
22944 "This function is a helpful wrapper around L</inotify-read> which just "
22945 "returns a list of pathnames of objects that were touched.  The returned "
22946 "pathnames are sorted and deduplicated."
22947 msgstr ""
22948
22949 #. type: =head2
22950 #: ../fish/guestfish-actions.pod:1622
22951 msgid "inotify-init"
22952 msgstr ""
22953
22954 #. type: verbatim
22955 #: ../fish/guestfish-actions.pod:1624
22956 #, no-wrap
22957 msgid ""
22958 " inotify-init maxevents\n"
22959 "\n"
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../fish/guestfish-actions.pod:1630
22964 msgid ""
22965 "C<maxevents> is the maximum number of events which will be queued up between "
22966 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
22967 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
22968 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
22969 "but records the fact that it threw them away by setting a flag "
22970 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../fish/guestfish-actions.pod:1640
22975 msgid ""
22976 "Before any events are generated, you have to add some watches to the "
22977 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
22978 "L</inotify-watch-all>."
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../fish/guestfish-actions.pod:1646
22983 msgid ""
22984 "Queued up events should be read periodically by calling L</inotify-read> (or "
22985 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
22986 "If you don't read the events out often enough then you risk the internal "
22987 "queue overflowing."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../fish/guestfish-actions.pod:1653
22992 msgid ""
22993 "The handle should be closed after use by calling L</inotify-close>.  This "
22994 "also removes any watches automatically."
22995 msgstr ""
22996
22997 #. type: =head2
22998 #: ../fish/guestfish-actions.pod:1662
22999 msgid "inotify-read"
23000 msgstr ""
23001
23002 #. type: verbatim
23003 #: ../fish/guestfish-actions.pod:1664
23004 #, no-wrap
23005 msgid ""
23006 " inotify-read\n"
23007 "\n"
23008 msgstr ""
23009
23010 #. type: =head2
23011 #: ../fish/guestfish-actions.pod:1677
23012 msgid "inotify-rm-watch"
23013 msgstr ""
23014
23015 #. type: verbatim
23016 #: ../fish/guestfish-actions.pod:1679
23017 #, no-wrap
23018 msgid ""
23019 " inotify-rm-watch wd\n"
23020 "\n"
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../fish/guestfish-actions.pod:1681
23025 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
23026 msgstr ""
23027
23028 #. type: =head2
23029 #: ../fish/guestfish-actions.pod:1684
23030 msgid "inspect-get-arch"
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../fish/guestfish-actions.pod:1686
23035 #, no-wrap
23036 msgid ""
23037 " inspect-get-arch root\n"
23038 "\n"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../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
23043 msgid ""
23044 "This function should only be called with a root device string as returned by "
23045 "L</inspect-os>."
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../fish/guestfish-actions.pod:1691
23050 msgid ""
23051 "This returns the architecture of the inspected operating system.  The "
23052 "possible return values are listed under L</file-architecture>."
23053 msgstr ""
23054
23055 #. type: =head2
23056 #: ../fish/guestfish-actions.pod:1700
23057 msgid "inspect-get-distro"
23058 msgstr ""
23059
23060 #. type: verbatim
23061 #: ../fish/guestfish-actions.pod:1702
23062 #, no-wrap
23063 msgid ""
23064 " inspect-get-distro root\n"
23065 "\n"
23066 msgstr ""
23067
23068 #. type: =head2
23069 #: ../fish/guestfish-actions.pod:1786
23070 msgid "inspect-get-drive-mappings"
23071 msgstr ""
23072
23073 #. type: verbatim
23074 #: ../fish/guestfish-actions.pod:1788
23075 #, no-wrap
23076 msgid ""
23077 " inspect-get-drive-mappings root\n"
23078 "\n"
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../fish/guestfish-actions.pod:1818
23083 msgid ""
23084 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23085 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
23086 msgstr ""
23087
23088 #. type: =head2
23089 #: ../fish/guestfish-actions.pod:1822
23090 msgid "inspect-get-filesystems"
23091 msgstr ""
23092
23093 #. type: verbatim
23094 #: ../fish/guestfish-actions.pod:1824
23095 #, no-wrap
23096 msgid ""
23097 " inspect-get-filesystems root\n"
23098 "\n"
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../fish/guestfish-actions.pod:1837
23103 msgid ""
23104 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23105 "L</inspect-get-mountpoints>."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../fish/guestfish-actions.pod:1840
23110 msgid "inspect-get-format"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../fish/guestfish-actions.pod:1842
23115 #, no-wrap
23116 msgid ""
23117 " inspect-get-format root\n"
23118 "\n"
23119 msgstr ""
23120
23121 #. type: =head2
23122 #: ../fish/guestfish-actions.pod:1874
23123 msgid "inspect-get-hostname"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../fish/guestfish-actions.pod:1876
23128 #, no-wrap
23129 msgid ""
23130 " inspect-get-hostname root\n"
23131 "\n"
23132 msgstr ""
23133
23134 #. type: =head2
23135 #: ../fish/guestfish-actions.pod:1889
23136 msgid "inspect-get-major-version"
23137 msgstr ""
23138
23139 #. type: verbatim
23140 #: ../fish/guestfish-actions.pod:1891
23141 #, no-wrap
23142 msgid ""
23143 " inspect-get-major-version root\n"
23144 "\n"
23145 msgstr ""
23146
23147 #. type: =head2
23148 #: ../fish/guestfish-actions.pod:1910
23149 msgid "inspect-get-minor-version"
23150 msgstr ""
23151
23152 #. type: verbatim
23153 #: ../fish/guestfish-actions.pod:1912
23154 #, no-wrap
23155 msgid ""
23156 " inspect-get-minor-version root\n"
23157 "\n"
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../fish/guestfish-actions.pod:1922
23162 msgid ""
23163 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23164 "L</inspect-get-major-version>."
23165 msgstr ""
23166
23167 #. type: =head2
23168 #: ../fish/guestfish-actions.pod:1925
23169 msgid "inspect-get-mountpoints"
23170 msgstr ""
23171
23172 #. type: verbatim
23173 #: ../fish/guestfish-actions.pod:1927
23174 #, no-wrap
23175 msgid ""
23176 " inspect-get-mountpoints root\n"
23177 "\n"
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../fish/guestfish-actions.pod:1949
23182 msgid ""
23183 "For operating systems like Windows which still use drive letters, this call "
23184 "will only return an entry for the first drive \"mounted on\" C</>.  For "
23185 "information about the mapping of drive letters to partitions, see "
23186 "L</inspect-get-drive-mappings>."
23187 msgstr ""
23188
23189 #. type: textblock
23190 #: ../fish/guestfish-actions.pod:1955
23191 msgid ""
23192 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23193 "L</inspect-get-filesystems>."
23194 msgstr ""
23195
23196 #. type: =head2
23197 #: ../fish/guestfish-actions.pod:1958
23198 msgid "inspect-get-package-format"
23199 msgstr ""
23200
23201 #. type: verbatim
23202 #: ../fish/guestfish-actions.pod:1960
23203 #, no-wrap
23204 msgid ""
23205 " inspect-get-package-format root\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../fish/guestfish-actions.pod:1965
23211 msgid ""
23212 "This function and L</inspect-get-package-management> return the package "
23213 "format and package management tool used by the inspected operating system.  "
23214 "For example for Fedora these functions would return C<rpm> (package format) "
23215 "and C<yum> (package management)."
23216 msgstr ""
23217
23218 #. type: =head2
23219 #: ../fish/guestfish-actions.pod:1980
23220 msgid "inspect-get-package-management"
23221 msgstr ""
23222
23223 #. type: verbatim
23224 #: ../fish/guestfish-actions.pod:1982
23225 #, no-wrap
23226 msgid ""
23227 " inspect-get-package-management root\n"
23228 "\n"
23229 msgstr ""
23230
23231 #. type: textblock
23232 #: ../fish/guestfish-actions.pod:1987
23233 msgid ""
23234 "L</inspect-get-package-format> and this function return the package format "
23235 "and package management tool used by the inspected operating system.  For "
23236 "example for Fedora these functions would return C<rpm> (package format) and "
23237 "C<yum> (package management)."
23238 msgstr ""
23239
23240 #. type: =head2
23241 #: ../fish/guestfish-actions.pod:2004
23242 msgid "inspect-get-product-name"
23243 msgstr ""
23244
23245 #. type: verbatim
23246 #: ../fish/guestfish-actions.pod:2006
23247 #, no-wrap
23248 msgid ""
23249 " inspect-get-product-name root\n"
23250 "\n"
23251 msgstr ""
23252
23253 #. type: =head2
23254 #: ../fish/guestfish-actions.pod:2021
23255 msgid "inspect-get-product-variant"
23256 msgstr ""
23257
23258 #. type: verbatim
23259 #: ../fish/guestfish-actions.pod:2023
23260 #, no-wrap
23261 msgid ""
23262 " inspect-get-product-variant root\n"
23263 "\n"
23264 msgstr ""
23265
23266 #. type: textblock
23267 #: ../fish/guestfish-actions.pod:2047
23268 msgid ""
23269 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23270 "L</inspect-get-product-name>, L</inspect-get-major-version>."
23271 msgstr ""
23272
23273 #. type: =head2
23274 #: ../fish/guestfish-actions.pod:2051
23275 msgid "inspect-get-roots"
23276 msgstr ""
23277
23278 #. type: verbatim
23279 #: ../fish/guestfish-actions.pod:2053
23280 #, no-wrap
23281 msgid ""
23282 " inspect-get-roots\n"
23283 "\n"
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../fish/guestfish-actions.pod:2055
23288 msgid ""
23289 "This function is a convenient way to get the list of root devices, as "
23290 "returned from a previous call to L</inspect-os>, but without redoing the "
23291 "whole inspection process."
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../fish/guestfish-actions.pod:2059
23296 msgid ""
23297 "This returns an empty list if either no root devices were found or the "
23298 "caller has not called L</inspect-os>."
23299 msgstr ""
23300
23301 #. type: =head2
23302 #: ../fish/guestfish-actions.pod:2064
23303 msgid "inspect-get-type"
23304 msgstr ""
23305
23306 #. type: verbatim
23307 #: ../fish/guestfish-actions.pod:2066
23308 #, no-wrap
23309 msgid ""
23310 " inspect-get-type root\n"
23311 "\n"
23312 msgstr ""
23313
23314 #. type: =head2
23315 #: ../fish/guestfish-actions.pod:2099
23316 msgid "inspect-get-windows-current-control-set"
23317 msgstr ""
23318
23319 #. type: verbatim
23320 #: ../fish/guestfish-actions.pod:2101
23321 #, no-wrap
23322 msgid ""
23323 " inspect-get-windows-current-control-set root\n"
23324 "\n"
23325 msgstr ""
23326
23327 #. type: =head2
23328 #: ../fish/guestfish-actions.pod:2115
23329 msgid "inspect-get-windows-systemroot"
23330 msgstr ""
23331
23332 #. type: verbatim
23333 #: ../fish/guestfish-actions.pod:2117
23334 #, no-wrap
23335 msgid ""
23336 " inspect-get-windows-systemroot root\n"
23337 "\n"
23338 msgstr ""
23339
23340 #. type: =head2
23341 #: ../fish/guestfish-actions.pod:2131
23342 msgid "inspect-is-live"
23343 msgstr ""
23344
23345 #. type: verbatim
23346 #: ../fish/guestfish-actions.pod:2133
23347 #, no-wrap
23348 msgid ""
23349 " inspect-is-live root\n"
23350 "\n"
23351 msgstr ""
23352
23353 #. type: textblock
23354 #: ../fish/guestfish-actions.pod:2138
23355 msgid ""
23356 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23357 "then this returns true if a live image was detected on the disk."
23358 msgstr ""
23359
23360 #. type: =head2
23361 #: ../fish/guestfish-actions.pod:2144
23362 msgid "inspect-is-multipart"
23363 msgstr ""
23364
23365 #. type: verbatim
23366 #: ../fish/guestfish-actions.pod:2146
23367 #, no-wrap
23368 msgid ""
23369 " inspect-is-multipart root\n"
23370 "\n"
23371 msgstr ""
23372
23373 #. type: textblock
23374 #: ../fish/guestfish-actions.pod:2151
23375 msgid ""
23376 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23377 "then this returns true if the disk is part of a set."
23378 msgstr ""
23379
23380 #. type: =head2
23381 #: ../fish/guestfish-actions.pod:2157
23382 msgid "inspect-is-netinst"
23383 msgstr ""
23384
23385 #. type: verbatim
23386 #: ../fish/guestfish-actions.pod:2159
23387 #, no-wrap
23388 msgid ""
23389 " inspect-is-netinst root\n"
23390 "\n"
23391 msgstr ""
23392
23393 #. type: textblock
23394 #: ../fish/guestfish-actions.pod:2164
23395 msgid ""
23396 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
23397 "then this returns true if the disk is a network installer, ie. not a "
23398 "self-contained install CD but one which is likely to require network access "
23399 "to complete the install."
23400 msgstr ""
23401
23402 #. type: =head2
23403 #: ../fish/guestfish-actions.pod:2172
23404 msgid "inspect-list-applications"
23405 msgstr ""
23406
23407 #. type: verbatim
23408 #: ../fish/guestfish-actions.pod:2174
23409 #, no-wrap
23410 msgid ""
23411 " inspect-list-applications root\n"
23412 "\n"
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../fish/guestfish-actions.pod:2181
23417 msgid ""
23418 "I<Note:> This call works differently from other parts of the inspection "
23419 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
23420 "then mount up the disks, before calling this.  Listing applications is a "
23421 "significantly more difficult operation which requires access to the full "
23422 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
23423 "are just returning data cached in the libguestfs handle, this call actually "
23424 "reads parts of the mounted filesystems during the call."
23425 msgstr ""
23426
23427 #. type: =head2
23428 #: ../fish/guestfish-actions.pod:2271
23429 msgid "inspect-os"
23430 msgstr ""
23431
23432 #. type: verbatim
23433 #: ../fish/guestfish-actions.pod:2273
23434 #, no-wrap
23435 msgid ""
23436 " inspect-os\n"
23437 "\n"
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../fish/guestfish-actions.pod:2288
23442 msgid ""
23443 "You can pass the root string(s) returned to other L</inspect-get-*> "
23444 "functions in order to query further information about each operating system, "
23445 "such as the name and version."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../fish/guestfish-actions.pod:2293
23450 msgid ""
23451 "This function uses other libguestfs features such as L</mount-ro> and "
23452 "L</umount-all> in order to mount and unmount filesystems and look at the "
23453 "contents.  This should be called with no disks currently mounted.  The "
23454 "function may also use Augeas, so any existing Augeas handle will be closed."
23455 msgstr ""
23456
23457 #. type: textblock
23458 #: ../fish/guestfish-actions.pod:2305 ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2527
23459 msgid "See also L</list-filesystems>."
23460 msgstr ""
23461
23462 #. type: =head2
23463 #: ../fish/guestfish-actions.pod:2307
23464 msgid "is-blockdev"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../fish/guestfish-actions.pod:2309
23469 #, no-wrap
23470 msgid ""
23471 " is-blockdev path\n"
23472 "\n"
23473 msgstr ""
23474
23475 #. type: textblock
23476 #: ../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
23477 msgid "See also L</stat>."
23478 msgstr ""
23479
23480 #. type: =head2
23481 #: ../fish/guestfish-actions.pod:2316
23482 msgid "is-busy"
23483 msgstr ""
23484
23485 #. type: verbatim
23486 #: ../fish/guestfish-actions.pod:2318
23487 #, no-wrap
23488 msgid ""
23489 " is-busy\n"
23490 "\n"
23491 msgstr ""
23492
23493 #. type: =head2
23494 #: ../fish/guestfish-actions.pod:2325
23495 msgid "is-chardev"
23496 msgstr ""
23497
23498 #. type: verbatim
23499 #: ../fish/guestfish-actions.pod:2327
23500 #, no-wrap
23501 msgid ""
23502 " is-chardev path\n"
23503 "\n"
23504 msgstr ""
23505
23506 #. type: =head2
23507 #: ../fish/guestfish-actions.pod:2334
23508 msgid "is-config"
23509 msgstr ""
23510
23511 #. type: verbatim
23512 #: ../fish/guestfish-actions.pod:2336
23513 #, no-wrap
23514 msgid ""
23515 " is-config\n"
23516 "\n"
23517 msgstr ""
23518
23519 #. type: =head2
23520 #: ../fish/guestfish-actions.pod:2343
23521 msgid "is-dir"
23522 msgstr ""
23523
23524 #. type: verbatim
23525 #: ../fish/guestfish-actions.pod:2345
23526 #, no-wrap
23527 msgid ""
23528 " is-dir path\n"
23529 "\n"
23530 msgstr ""
23531
23532 #. type: =head2
23533 #: ../fish/guestfish-actions.pod:2353
23534 msgid "is-fifo"
23535 msgstr ""
23536
23537 #. type: verbatim
23538 #: ../fish/guestfish-actions.pod:2355
23539 #, no-wrap
23540 msgid ""
23541 " is-fifo path\n"
23542 "\n"
23543 msgstr ""
23544
23545 #. type: =head2
23546 #: ../fish/guestfish-actions.pod:2362
23547 msgid "is-file"
23548 msgstr ""
23549
23550 #. type: verbatim
23551 #: ../fish/guestfish-actions.pod:2364
23552 #, no-wrap
23553 msgid ""
23554 " is-file path\n"
23555 "\n"
23556 msgstr ""
23557
23558 #. type: =head2
23559 #: ../fish/guestfish-actions.pod:2372
23560 msgid "is-launching"
23561 msgstr ""
23562
23563 #. type: verbatim
23564 #: ../fish/guestfish-actions.pod:2374
23565 #, no-wrap
23566 msgid ""
23567 " is-launching\n"
23568 "\n"
23569 msgstr ""
23570
23571 #. type: =head2
23572 #: ../fish/guestfish-actions.pod:2381
23573 msgid "is-lv"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../fish/guestfish-actions.pod:2383
23578 #, no-wrap
23579 msgid ""
23580 " is-lv device\n"
23581 "\n"
23582 msgstr ""
23583
23584 #. type: =head2
23585 #: ../fish/guestfish-actions.pod:2388
23586 msgid "is-ready"
23587 msgstr ""
23588
23589 #. type: verbatim
23590 #: ../fish/guestfish-actions.pod:2390
23591 #, no-wrap
23592 msgid ""
23593 " is-ready\n"
23594 "\n"
23595 msgstr ""
23596
23597 #. type: =head2
23598 #: ../fish/guestfish-actions.pod:2397
23599 msgid "is-socket"
23600 msgstr ""
23601
23602 #. type: verbatim
23603 #: ../fish/guestfish-actions.pod:2399
23604 #, no-wrap
23605 msgid ""
23606 " is-socket path\n"
23607 "\n"
23608 msgstr ""
23609
23610 #. type: =head2
23611 #: ../fish/guestfish-actions.pod:2406
23612 msgid "is-symlink"
23613 msgstr ""
23614
23615 #. type: verbatim
23616 #: ../fish/guestfish-actions.pod:2408
23617 #, no-wrap
23618 msgid ""
23619 " is-symlink path\n"
23620 "\n"
23621 msgstr ""
23622
23623 #. type: =head2
23624 #: ../fish/guestfish-actions.pod:2415
23625 msgid "kill-subprocess"
23626 msgstr ""
23627
23628 #. type: verbatim
23629 #: ../fish/guestfish-actions.pod:2417
23630 #, no-wrap
23631 msgid ""
23632 " kill-subprocess\n"
23633 "\n"
23634 msgstr ""
23635
23636 #. type: =head2
23637 #: ../fish/guestfish-actions.pod:2421
23638 msgid "launch"
23639 msgstr ""
23640
23641 #. type: =head2
23642 #: ../fish/guestfish-actions.pod:2423
23643 msgid "run"
23644 msgstr ""
23645
23646 #. type: verbatim
23647 #: ../fish/guestfish-actions.pod:2425
23648 #, no-wrap
23649 msgid ""
23650 " launch\n"
23651 "\n"
23652 msgstr ""
23653
23654 #. type: =head2
23655 #: ../fish/guestfish-actions.pod:2433
23656 msgid "lchown"
23657 msgstr ""
23658
23659 #. type: verbatim
23660 #: ../fish/guestfish-actions.pod:2435
23661 #, no-wrap
23662 msgid ""
23663 " lchown owner group path\n"
23664 "\n"
23665 msgstr ""
23666
23667 #. type: textblock
23668 #: ../fish/guestfish-actions.pod:2437
23669 msgid ""
23670 "Change the file owner to C<owner> and group to C<group>.  This is like "
23671 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
23672 "the target."
23673 msgstr ""
23674
23675 #. type: =head2
23676 #: ../fish/guestfish-actions.pod:2445
23677 msgid "lgetxattr"
23678 msgstr ""
23679
23680 #. type: verbatim
23681 #: ../fish/guestfish-actions.pod:2447
23682 #, no-wrap
23683 msgid ""
23684 " lgetxattr path name\n"
23685 "\n"
23686 msgstr ""
23687
23688 #. type: textblock
23689 #: ../fish/guestfish-actions.pod:2463
23690 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
23691 msgstr ""
23692
23693 #. type: =head2
23694 #: ../fish/guestfish-actions.pod:2465
23695 msgid "lgetxattrs"
23696 msgstr ""
23697
23698 #. type: verbatim
23699 #: ../fish/guestfish-actions.pod:2467
23700 #, no-wrap
23701 msgid ""
23702 " lgetxattrs path\n"
23703 "\n"
23704 msgstr ""
23705
23706 #. type: textblock
23707 #: ../fish/guestfish-actions.pod:2469
23708 msgid ""
23709 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
23710 "it returns the extended attributes of the link itself."
23711 msgstr ""
23712
23713 #. type: =head2
23714 #: ../fish/guestfish-actions.pod:2473
23715 msgid "list-devices"
23716 msgstr ""
23717
23718 #. type: verbatim
23719 #: ../fish/guestfish-actions.pod:2475
23720 #, no-wrap
23721 msgid ""
23722 " list-devices\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: =head2
23727 #: ../fish/guestfish-actions.pod:2483
23728 msgid "list-filesystems"
23729 msgstr ""
23730
23731 #. type: verbatim
23732 #: ../fish/guestfish-actions.pod:2485
23733 #, no-wrap
23734 msgid ""
23735 " list-filesystems\n"
23736 "\n"
23737 msgstr ""
23738
23739 #. type: textblock
23740 #: ../fish/guestfish-actions.pod:2504
23741 msgid ""
23742 "This command runs other libguestfs commands, which might include L</mount> "
23743 "and L</umount>, and therefore you should use this soon after launch and only "
23744 "when nothing is mounted."
23745 msgstr ""
23746
23747 #. type: textblock
23748 #: ../fish/guestfish-actions.pod:2508
23749 msgid ""
23750 "Not all of the filesystems returned will be mountable.  In particular, swap "
23751 "partitions are returned in the list.  Also this command does not check that "
23752 "each filesystem found is valid and mountable, and some filesystems might be "
23753 "mountable but require special options.  Filesystems may not all belong to a "
23754 "single logical operating system (use L</inspect-os> to look for OSes)."
23755 msgstr ""
23756
23757 #. type: =head2
23758 #: ../fish/guestfish-actions.pod:2516
23759 msgid "list-partitions"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../fish/guestfish-actions.pod:2518
23764 #, no-wrap
23765 msgid ""
23766 " list-partitions\n"
23767 "\n"
23768 msgstr ""
23769
23770 #. type: textblock
23771 #: ../fish/guestfish-actions.pod:2524
23772 msgid ""
23773 "This does not return logical volumes.  For that you will need to call "
23774 "L</lvs>."
23775 msgstr ""
23776
23777 #. type: =head2
23778 #: ../fish/guestfish-actions.pod:2529
23779 msgid "ll"
23780 msgstr ""
23781
23782 #. type: verbatim
23783 #: ../fish/guestfish-actions.pod:2531
23784 #, no-wrap
23785 msgid ""
23786 " ll directory\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: =head2
23791 #: ../fish/guestfish-actions.pod:2539
23792 msgid "ln"
23793 msgstr ""
23794
23795 #. type: verbatim
23796 #: ../fish/guestfish-actions.pod:2541
23797 #, no-wrap
23798 msgid ""
23799 " ln target linkname\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: =head2
23804 #: ../fish/guestfish-actions.pod:2545
23805 msgid "ln-f"
23806 msgstr ""
23807
23808 #. type: verbatim
23809 #: ../fish/guestfish-actions.pod:2547
23810 #, no-wrap
23811 msgid ""
23812 " ln-f target linkname\n"
23813 "\n"
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../fish/guestfish-actions.pod:2552
23818 msgid "ln-s"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../fish/guestfish-actions.pod:2554
23823 #, no-wrap
23824 msgid ""
23825 " ln-s target linkname\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../fish/guestfish-actions.pod:2558
23831 msgid "ln-sf"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../fish/guestfish-actions.pod:2560
23836 #, no-wrap
23837 msgid ""
23838 " ln-sf target linkname\n"
23839 "\n"
23840 msgstr ""
23841
23842 #. type: =head2
23843 #: ../fish/guestfish-actions.pod:2565
23844 msgid "lremovexattr"
23845 msgstr ""
23846
23847 #. type: verbatim
23848 #: ../fish/guestfish-actions.pod:2567
23849 #, no-wrap
23850 msgid ""
23851 " lremovexattr xattr path\n"
23852 "\n"
23853 msgstr ""
23854
23855 #. type: textblock
23856 #: ../fish/guestfish-actions.pod:2569
23857 msgid ""
23858 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
23859 "it removes an extended attribute of the link itself."
23860 msgstr ""
23861
23862 #. type: =head2
23863 #: ../fish/guestfish-actions.pod:2573
23864 msgid "ls"
23865 msgstr ""
23866
23867 #. type: verbatim
23868 #: ../fish/guestfish-actions.pod:2575
23869 #, no-wrap
23870 msgid ""
23871 " ls directory\n"
23872 "\n"
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../fish/guestfish-actions.pod:2581
23877 msgid ""
23878 "This command is mostly useful for interactive sessions.  Programs should "
23879 "probably use L</readdir> instead."
23880 msgstr ""
23881
23882 #. type: =head2
23883 #: ../fish/guestfish-actions.pod:2584
23884 msgid "lsetxattr"
23885 msgstr ""
23886
23887 #. type: verbatim
23888 #: ../fish/guestfish-actions.pod:2586
23889 #, no-wrap
23890 msgid ""
23891 " lsetxattr xattr val vallen path\n"
23892 "\n"
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../fish/guestfish-actions.pod:2588
23897 msgid ""
23898 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
23899 "sets an extended attribute of the link itself."
23900 msgstr ""
23901
23902 #. type: =head2
23903 #: ../fish/guestfish-actions.pod:2592
23904 msgid "lstat"
23905 msgstr ""
23906
23907 #. type: verbatim
23908 #: ../fish/guestfish-actions.pod:2594
23909 #, no-wrap
23910 msgid ""
23911 " lstat path\n"
23912 "\n"
23913 msgstr ""
23914
23915 #. type: textblock
23916 #: ../fish/guestfish-actions.pod:2598
23917 msgid ""
23918 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
23919 "the link is stat-ed, not the file it refers to."
23920 msgstr ""
23921
23922 #. type: =head2
23923 #: ../fish/guestfish-actions.pod:2604
23924 msgid "lstatlist"
23925 msgstr ""
23926
23927 #. type: verbatim
23928 #: ../fish/guestfish-actions.pod:2606
23929 #, no-wrap
23930 msgid ""
23931 " lstatlist path 'names ...'\n"
23932 "\n"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../fish/guestfish-actions.pod:2608
23937 msgid ""
23938 "This call allows you to perform the L</lstat> operation on multiple files, "
23939 "where all files are in the directory C<path>.  C<names> is the list of files "
23940 "from this directory."
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../fish/guestfish-actions.pod:2617
23945 msgid ""
23946 "This call is intended for programs that want to efficiently list a directory "
23947 "contents without making many round-trips.  See also L</lxattrlist> for a "
23948 "similarly efficient call for getting extended attributes.  Very long "
23949 "directory listings might cause the protocol message size to be exceeded, "
23950 "causing this call to fail.  The caller must split up such requests into "
23951 "smaller groups of names."
23952 msgstr ""
23953
23954 #. type: =head2
23955 #: ../fish/guestfish-actions.pod:2625
23956 msgid "luks-add-key"
23957 msgstr ""
23958
23959 #. type: verbatim
23960 #: ../fish/guestfish-actions.pod:2627
23961 #, no-wrap
23962 msgid ""
23963 " luks-add-key device keyslot\n"
23964 "\n"
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../fish/guestfish-actions.pod:2634
23969 msgid ""
23970 "Note that if C<keyslot> already contains a key, then this command will "
23971 "fail.  You have to use L</luks-kill-slot> first to remove that key."
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../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
23976 msgid ""
23977 "This command has one or more key or passphrase parameters.  Guestfish will "
23978 "prompt for these separately."
23979 msgstr ""
23980
23981 #. type: =head2
23982 #: ../fish/guestfish-actions.pod:2641
23983 msgid "luks-close"
23984 msgstr ""
23985
23986 #. type: verbatim
23987 #: ../fish/guestfish-actions.pod:2643
23988 #, no-wrap
23989 msgid ""
23990 " luks-close device\n"
23991 "\n"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../fish/guestfish-actions.pod:2645
23996 msgid ""
23997 "This closes a LUKS device that was created earlier by L</luks-open> or "
23998 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
23999 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
24000 "underlying block device."
24001 msgstr ""
24002
24003 #. type: =head2
24004 #: ../fish/guestfish-actions.pod:2651
24005 msgid "luks-format"
24006 msgstr ""
24007
24008 #. type: verbatim
24009 #: ../fish/guestfish-actions.pod:2653
24010 #, no-wrap
24011 msgid ""
24012 " luks-format device keyslot\n"
24013 "\n"
24014 msgstr ""
24015
24016 #. type: =head2
24017 #: ../fish/guestfish-actions.pod:2666
24018 msgid "luks-format-cipher"
24019 msgstr ""
24020
24021 #. type: verbatim
24022 #: ../fish/guestfish-actions.pod:2668
24023 #, no-wrap
24024 msgid ""
24025 " luks-format-cipher device keyslot cipher\n"
24026 "\n"
24027 msgstr ""
24028
24029 #. type: textblock
24030 #: ../fish/guestfish-actions.pod:2670
24031 msgid ""
24032 "This command is the same as L</luks-format> but it also allows you to set "
24033 "the C<cipher> used."
24034 msgstr ""
24035
24036 #. type: =head2
24037 #: ../fish/guestfish-actions.pod:2679
24038 msgid "luks-kill-slot"
24039 msgstr ""
24040
24041 #. type: verbatim
24042 #: ../fish/guestfish-actions.pod:2681
24043 #, no-wrap
24044 msgid ""
24045 " luks-kill-slot device keyslot\n"
24046 "\n"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../fish/guestfish-actions.pod:2690
24051 msgid "luks-open"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../fish/guestfish-actions.pod:2692
24056 #, no-wrap
24057 msgid ""
24058 " luks-open device mapname\n"
24059 "\n"
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../fish/guestfish-actions.pod:2706
24064 msgid ""
24065 "If this block device contains LVM volume groups, then calling L</vgscan> "
24066 "followed by L</vg-activate-all> will make them visible."
24067 msgstr ""
24068
24069 #. type: =head2
24070 #: ../fish/guestfish-actions.pod:2713
24071 msgid "luks-open-ro"
24072 msgstr ""
24073
24074 #. type: verbatim
24075 #: ../fish/guestfish-actions.pod:2715
24076 #, no-wrap
24077 msgid ""
24078 " luks-open-ro device mapname\n"
24079 "\n"
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../fish/guestfish-actions.pod:2717
24084 msgid ""
24085 "This is the same as L</luks-open> except that a read-only mapping is "
24086 "created."
24087 msgstr ""
24088
24089 #. type: =head2
24090 #: ../fish/guestfish-actions.pod:2723
24091 msgid "lvcreate"
24092 msgstr ""
24093
24094 #. type: verbatim
24095 #: ../fish/guestfish-actions.pod:2725
24096 #, no-wrap
24097 msgid ""
24098 " lvcreate logvol volgroup mbytes\n"
24099 "\n"
24100 msgstr ""
24101
24102 #. type: =head2
24103 #: ../fish/guestfish-actions.pod:2730
24104 msgid "lvm-canonical-lv-name"
24105 msgstr ""
24106
24107 #. type: verbatim
24108 #: ../fish/guestfish-actions.pod:2732
24109 #, no-wrap
24110 msgid ""
24111 " lvm-canonical-lv-name lvname\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../fish/guestfish-actions.pod:2741
24117 msgid "See also L</is-lv>."
24118 msgstr ""
24119
24120 #. type: =head2
24121 #: ../fish/guestfish-actions.pod:2743
24122 msgid "lvm-clear-filter"
24123 msgstr ""
24124
24125 #. type: verbatim
24126 #: ../fish/guestfish-actions.pod:2745
24127 #, no-wrap
24128 msgid ""
24129 " lvm-clear-filter\n"
24130 "\n"
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../fish/guestfish-actions.pod:2747
24135 msgid ""
24136 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
24137 "block device."
24138 msgstr ""
24139
24140 #. type: =head2
24141 #: ../fish/guestfish-actions.pod:2753
24142 msgid "lvm-remove-all"
24143 msgstr ""
24144
24145 #. type: verbatim
24146 #: ../fish/guestfish-actions.pod:2755
24147 #, no-wrap
24148 msgid ""
24149 " lvm-remove-all\n"
24150 "\n"
24151 msgstr ""
24152
24153 #. type: =head2
24154 #: ../fish/guestfish-actions.pod:2763
24155 msgid "lvm-set-filter"
24156 msgstr ""
24157
24158 #. type: verbatim
24159 #: ../fish/guestfish-actions.pod:2765
24160 #, no-wrap
24161 msgid ""
24162 " lvm-set-filter 'devices ...'\n"
24163 "\n"
24164 msgstr ""
24165
24166 #. type: =head2
24167 #: ../fish/guestfish-actions.pod:2790
24168 msgid "lvremove"
24169 msgstr ""
24170
24171 #. type: verbatim
24172 #: ../fish/guestfish-actions.pod:2792
24173 #, no-wrap
24174 msgid ""
24175 " lvremove device\n"
24176 "\n"
24177 msgstr ""
24178
24179 #. type: =head2
24180 #: ../fish/guestfish-actions.pod:2800
24181 msgid "lvrename"
24182 msgstr ""
24183
24184 #. type: verbatim
24185 #: ../fish/guestfish-actions.pod:2802
24186 #, no-wrap
24187 msgid ""
24188 " lvrename logvol newlogvol\n"
24189 "\n"
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../fish/guestfish-actions.pod:2806
24194 msgid "lvresize"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../fish/guestfish-actions.pod:2808
24199 #, no-wrap
24200 msgid ""
24201 " lvresize device mbytes\n"
24202 "\n"
24203 msgstr ""
24204
24205 #. type: =head2
24206 #: ../fish/guestfish-actions.pod:2814
24207 msgid "lvresize-free"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../fish/guestfish-actions.pod:2816
24212 #, no-wrap
24213 msgid ""
24214 " lvresize-free lv percent\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: =head2
24219 #: ../fish/guestfish-actions.pod:2824
24220 msgid "lvs"
24221 msgstr ""
24222
24223 #. type: verbatim
24224 #: ../fish/guestfish-actions.pod:2826
24225 #, no-wrap
24226 msgid ""
24227 " lvs\n"
24228 "\n"
24229 msgstr ""
24230
24231 #. type: textblock
24232 #: ../fish/guestfish-actions.pod:2834
24233 msgid "See also L</lvs-full>, L</list-filesystems>."
24234 msgstr ""
24235
24236 #. type: =head2
24237 #: ../fish/guestfish-actions.pod:2836
24238 msgid "lvs-full"
24239 msgstr ""
24240
24241 #. type: verbatim
24242 #: ../fish/guestfish-actions.pod:2838
24243 #, no-wrap
24244 msgid ""
24245 " lvs-full\n"
24246 "\n"
24247 msgstr ""
24248
24249 #. type: =head2
24250 #: ../fish/guestfish-actions.pod:2843
24251 msgid "lvuuid"
24252 msgstr ""
24253
24254 #. type: verbatim
24255 #: ../fish/guestfish-actions.pod:2845
24256 #, no-wrap
24257 msgid ""
24258 " lvuuid device\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: =head2
24263 #: ../fish/guestfish-actions.pod:2849
24264 msgid "lxattrlist"
24265 msgstr ""
24266
24267 #. type: verbatim
24268 #: ../fish/guestfish-actions.pod:2851
24269 #, no-wrap
24270 msgid ""
24271 " lxattrlist path 'names ...'\n"
24272 "\n"
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../fish/guestfish-actions.pod:2867
24277 msgid ""
24278 "This call is intended for programs that want to efficiently list a directory "
24279 "contents without making many round-trips.  See also L</lstatlist> for a "
24280 "similarly efficient call for getting standard stats.  Very long directory "
24281 "listings might cause the protocol message size to be exceeded, causing this "
24282 "call to fail.  The caller must split up such requests into smaller groups of "
24283 "names."
24284 msgstr ""
24285
24286 #. type: =head2
24287 #: ../fish/guestfish-actions.pod:2875
24288 msgid "mkdir"
24289 msgstr ""
24290
24291 #. type: verbatim
24292 #: ../fish/guestfish-actions.pod:2877
24293 #, no-wrap
24294 msgid ""
24295 " mkdir path\n"
24296 "\n"
24297 msgstr ""
24298
24299 #. type: =head2
24300 #: ../fish/guestfish-actions.pod:2881
24301 msgid "mkdir-mode"
24302 msgstr ""
24303
24304 #. type: verbatim
24305 #: ../fish/guestfish-actions.pod:2883
24306 #, no-wrap
24307 msgid ""
24308 " mkdir-mode path mode\n"
24309 "\n"
24310 msgstr ""
24311
24312 #. type: textblock
24313 #: ../fish/guestfish-actions.pod:2892
24314 msgid "See also L</mkdir>, L</umask>"
24315 msgstr ""
24316
24317 #. type: =head2
24318 #: ../fish/guestfish-actions.pod:2894
24319 msgid "mkdir-p"
24320 msgstr ""
24321
24322 #. type: verbatim
24323 #: ../fish/guestfish-actions.pod:2896
24324 #, no-wrap
24325 msgid ""
24326 " mkdir-p path\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../fish/guestfish-actions.pod:2901
24332 msgid "mkdtemp"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../fish/guestfish-actions.pod:2903
24337 #, no-wrap
24338 msgid ""
24339 " mkdtemp template\n"
24340 "\n"
24341 msgstr ""
24342
24343 #. type: =head2
24344 #: ../fish/guestfish-actions.pod:2924
24345 msgid "mke2fs-J"
24346 msgstr ""
24347
24348 #. type: verbatim
24349 #: ../fish/guestfish-actions.pod:2926
24350 #, no-wrap
24351 msgid ""
24352 " mke2fs-J fstype blocksize device journal\n"
24353 "\n"
24354 msgstr ""
24355
24356 #. type: textblock
24357 #: ../fish/guestfish-actions.pod:2934
24358 msgid "See also L</mke2journal>."
24359 msgstr ""
24360
24361 #. type: =head2
24362 #: ../fish/guestfish-actions.pod:2936
24363 msgid "mke2fs-JL"
24364 msgstr ""
24365
24366 #. type: verbatim
24367 #: ../fish/guestfish-actions.pod:2938
24368 #, no-wrap
24369 msgid ""
24370 " mke2fs-JL fstype blocksize device label\n"
24371 "\n"
24372 msgstr ""
24373
24374 #. type: textblock
24375 #: ../fish/guestfish-actions.pod:2943
24376 msgid "See also L</mke2journal-L>."
24377 msgstr ""
24378
24379 #. type: =head2
24380 #: ../fish/guestfish-actions.pod:2945
24381 msgid "mke2fs-JU"
24382 msgstr ""
24383
24384 #. type: verbatim
24385 #: ../fish/guestfish-actions.pod:2947
24386 #, no-wrap
24387 msgid ""
24388 " mke2fs-JU fstype blocksize device uuid\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../fish/guestfish-actions.pod:2952
24394 msgid "See also L</mke2journal-U>."
24395 msgstr ""
24396
24397 #. type: =head2
24398 #: ../fish/guestfish-actions.pod:2954
24399 msgid "mke2journal"
24400 msgstr ""
24401
24402 #. type: verbatim
24403 #: ../fish/guestfish-actions.pod:2956
24404 #, no-wrap
24405 msgid ""
24406 " mke2journal blocksize device\n"
24407 "\n"
24408 msgstr ""
24409
24410 #. type: =head2
24411 #: ../fish/guestfish-actions.pod:2963
24412 msgid "mke2journal-L"
24413 msgstr ""
24414
24415 #. type: verbatim
24416 #: ../fish/guestfish-actions.pod:2965
24417 #, no-wrap
24418 msgid ""
24419 " mke2journal-L blocksize label device\n"
24420 "\n"
24421 msgstr ""
24422
24423 #. type: =head2
24424 #: ../fish/guestfish-actions.pod:2969
24425 msgid "mke2journal-U"
24426 msgstr ""
24427
24428 #. type: verbatim
24429 #: ../fish/guestfish-actions.pod:2971
24430 #, no-wrap
24431 msgid ""
24432 " mke2journal-U blocksize uuid device\n"
24433 "\n"
24434 msgstr ""
24435
24436 #. type: =head2
24437 #: ../fish/guestfish-actions.pod:2975
24438 msgid "mkfifo"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../fish/guestfish-actions.pod:2977
24443 #, no-wrap
24444 msgid ""
24445 " mkfifo mode path\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../fish/guestfish-actions.pod:2979
24451 msgid ""
24452 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
24453 "is just a convenient wrapper around L</mknod>."
24454 msgstr ""
24455
24456 #. type: =head2
24457 #: ../fish/guestfish-actions.pod:2985
24458 msgid "mkfs"
24459 msgstr ""
24460
24461 #. type: verbatim
24462 #: ../fish/guestfish-actions.pod:2987
24463 #, no-wrap
24464 msgid ""
24465 " mkfs fstype device\n"
24466 "\n"
24467 msgstr ""
24468
24469 #. type: =head2
24470 #: ../fish/guestfish-actions.pod:2993
24471 msgid "mkfs-b"
24472 msgstr ""
24473
24474 #. type: verbatim
24475 #: ../fish/guestfish-actions.pod:2995
24476 #, no-wrap
24477 msgid ""
24478 " mkfs-b fstype blocksize device\n"
24479 "\n"
24480 msgstr ""
24481
24482 #. type: textblock
24483 #: ../fish/guestfish-actions.pod:2997
24484 msgid ""
24485 "This call is similar to L</mkfs>, but it allows you to control the block "
24486 "size of the resulting filesystem.  Supported block sizes depend on the "
24487 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
24488 msgstr ""
24489
24490 #. type: =head2
24491 #: ../fish/guestfish-actions.pod:3012
24492 msgid "mkfs-opts"
24493 msgstr ""
24494
24495 #. type: verbatim
24496 #: ../fish/guestfish-actions.pod:3014
24497 #, no-wrap
24498 msgid ""
24499 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
24500 "\n"
24501 msgstr ""
24502
24503 #. type: =head2
24504 #: ../fish/guestfish-actions.pod:3049
24505 msgid "mkmountpoint"
24506 msgstr ""
24507
24508 #. type: verbatim
24509 #: ../fish/guestfish-actions.pod:3051
24510 #, no-wrap
24511 msgid ""
24512 " mkmountpoint exemptpath\n"
24513 "\n"
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../fish/guestfish-actions.pod:3053
24518 msgid ""
24519 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
24520 "to create extra mountpoints before mounting the first filesystem."
24521 msgstr ""
24522
24523 #. type: textblock
24524 #: ../fish/guestfish-actions.pod:3077
24525 msgid ""
24526 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
24527 "unexpected errors if you try to mix these calls.  It is safest to manually "
24528 "unmount filesystems and remove mountpoints after use."
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../fish/guestfish-actions.pod:3081
24533 msgid ""
24534 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
24535 "for this to work for manual mountpoints, you must ensure that the innermost "
24536 "mountpoints have the longest pathnames, as in the example code above."
24537 msgstr ""
24538
24539 #. type: textblock
24540 #: ../fish/guestfish-actions.pod:3088
24541 msgid ""
24542 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
24543 "L</umount-all> to be called when the handle is closed which can also trigger "
24544 "these issues."
24545 msgstr ""
24546
24547 #. type: =head2
24548 #: ../fish/guestfish-actions.pod:3092
24549 msgid "mknod"
24550 msgstr ""
24551
24552 #. type: verbatim
24553 #: ../fish/guestfish-actions.pod:3094
24554 #, no-wrap
24555 msgid ""
24556 " mknod mode devmajor devminor path\n"
24557 "\n"
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../fish/guestfish-actions.pod:3104
24562 msgid ""
24563 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
24564 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
24565 "regular file).  These constants are available in the standard Linux header "
24566 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
24567 "wrappers around this command which bitwise OR in the appropriate constant "
24568 "for you."
24569 msgstr ""
24570
24571 #. type: =head2
24572 #: ../fish/guestfish-actions.pod:3114
24573 msgid "mknod-b"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../fish/guestfish-actions.pod:3116
24578 #, no-wrap
24579 msgid ""
24580 " mknod-b mode devmajor devminor path\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../fish/guestfish-actions.pod:3118
24586 msgid ""
24587 "This call creates a block device node called C<path> with mode C<mode> and "
24588 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
24589 "wrapper around L</mknod>."
24590 msgstr ""
24591
24592 #. type: =head2
24593 #: ../fish/guestfish-actions.pod:3124
24594 msgid "mknod-c"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../fish/guestfish-actions.pod:3126
24599 #, no-wrap
24600 msgid ""
24601 " mknod-c mode devmajor devminor path\n"
24602 "\n"
24603 msgstr ""
24604
24605 #. type: textblock
24606 #: ../fish/guestfish-actions.pod:3128
24607 msgid ""
24608 "This call creates a char device node called C<path> with mode C<mode> and "
24609 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
24610 "wrapper around L</mknod>."
24611 msgstr ""
24612
24613 #. type: =head2
24614 #: ../fish/guestfish-actions.pod:3134
24615 msgid "mkswap"
24616 msgstr ""
24617
24618 #. type: verbatim
24619 #: ../fish/guestfish-actions.pod:3136
24620 #, no-wrap
24621 msgid ""
24622 " mkswap device\n"
24623 "\n"
24624 msgstr ""
24625
24626 #. type: =head2
24627 #: ../fish/guestfish-actions.pod:3140
24628 msgid "mkswap-L"
24629 msgstr ""
24630
24631 #. type: verbatim
24632 #: ../fish/guestfish-actions.pod:3142
24633 #, no-wrap
24634 msgid ""
24635 " mkswap-L label device\n"
24636 "\n"
24637 msgstr ""
24638
24639 #. type: =head2
24640 #: ../fish/guestfish-actions.pod:3150
24641 msgid "mkswap-U"
24642 msgstr ""
24643
24644 #. type: verbatim
24645 #: ../fish/guestfish-actions.pod:3152
24646 #, no-wrap
24647 msgid ""
24648 " mkswap-U uuid device\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: =head2
24653 #: ../fish/guestfish-actions.pod:3156
24654 msgid "mkswap-file"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../fish/guestfish-actions.pod:3158
24659 #, no-wrap
24660 msgid ""
24661 " mkswap-file path\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../fish/guestfish-actions.pod:3162
24667 msgid ""
24668 "This command just writes a swap file signature to an existing file.  To "
24669 "create the file itself, use something like L</fallocate>."
24670 msgstr ""
24671
24672 #. type: =head2
24673 #: ../fish/guestfish-actions.pod:3165
24674 msgid "modprobe"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../fish/guestfish-actions.pod:3167
24679 #, no-wrap
24680 msgid ""
24681 " modprobe modulename\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: =head2
24686 #: ../fish/guestfish-actions.pod:3174
24687 msgid "mount"
24688 msgstr ""
24689
24690 #. type: verbatim
24691 #: ../fish/guestfish-actions.pod:3176
24692 #, no-wrap
24693 msgid ""
24694 " mount device mountpoint\n"
24695 "\n"
24696 msgstr ""
24697
24698 #. type: textblock
24699 #: ../fish/guestfish-actions.pod:3192
24700 msgid ""
24701 "B<Important note:> When you use this call, the filesystem options C<sync> "
24702 "and C<noatime> are set implicitly.  This was originally done because we "
24703 "thought it would improve reliability, but it turns out that I<-o sync> has a "
24704 "very large negative performance impact and negligible effect on "
24705 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
24706 "code that needs performance, and instead use L</mount-options> (use an empty "
24707 "string for the first parameter if you don't want any options)."
24708 msgstr ""
24709
24710 #. type: =head2
24711 #: ../fish/guestfish-actions.pod:3202
24712 msgid "mount-loop"
24713 msgstr ""
24714
24715 #. type: verbatim
24716 #: ../fish/guestfish-actions.pod:3204
24717 #, no-wrap
24718 msgid ""
24719 " mount-loop file mountpoint\n"
24720 "\n"
24721 msgstr ""
24722
24723 #. type: =head2
24724 #: ../fish/guestfish-actions.pod:3210
24725 msgid "mount-options"
24726 msgstr ""
24727
24728 #. type: verbatim
24729 #: ../fish/guestfish-actions.pod:3212
24730 #, no-wrap
24731 msgid ""
24732 " mount-options options device mountpoint\n"
24733 "\n"
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../fish/guestfish-actions.pod:3214
24738 msgid ""
24739 "This is the same as the L</mount> command, but it allows you to set the "
24740 "mount options as for the L<mount(8)> I<-o> flag."
24741 msgstr ""
24742
24743 #. type: =head2
24744 #: ../fish/guestfish-actions.pod:3222
24745 msgid "mount-ro"
24746 msgstr ""
24747
24748 #. type: verbatim
24749 #: ../fish/guestfish-actions.pod:3224
24750 #, no-wrap
24751 msgid ""
24752 " mount-ro device mountpoint\n"
24753 "\n"
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../fish/guestfish-actions.pod:3226
24758 msgid ""
24759 "This is the same as the L</mount> command, but it mounts the filesystem with "
24760 "the read-only (I<-o ro>) flag."
24761 msgstr ""
24762
24763 #. type: =head2
24764 #: ../fish/guestfish-actions.pod:3229
24765 msgid "mount-vfs"
24766 msgstr ""
24767
24768 #. type: verbatim
24769 #: ../fish/guestfish-actions.pod:3231
24770 #, no-wrap
24771 msgid ""
24772 " mount-vfs options vfstype device mountpoint\n"
24773 "\n"
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../fish/guestfish-actions.pod:3233
24778 msgid ""
24779 "This is the same as the L</mount> command, but it allows you to set both the "
24780 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../fish/guestfish-actions.pod:3237
24785 msgid "mountpoints"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../fish/guestfish-actions.pod:3239
24790 #, no-wrap
24791 msgid ""
24792 " mountpoints\n"
24793 "\n"
24794 msgstr ""
24795
24796 #. type: textblock
24797 #: ../fish/guestfish-actions.pod:3241
24798 msgid ""
24799 "This call is similar to L</mounts>.  That call returns a list of devices.  "
24800 "This one returns a hash table (map) of device name to directory where the "
24801 "device is mounted."
24802 msgstr ""
24803
24804 #. type: =head2
24805 #: ../fish/guestfish-actions.pod:3245
24806 msgid "mounts"
24807 msgstr ""
24808
24809 #. type: verbatim
24810 #: ../fish/guestfish-actions.pod:3247
24811 #, no-wrap
24812 msgid ""
24813 " mounts\n"
24814 "\n"
24815 msgstr ""
24816
24817 #. type: textblock
24818 #: ../fish/guestfish-actions.pod:3254
24819 msgid "See also: L</mountpoints>"
24820 msgstr ""
24821
24822 #. type: =head2
24823 #: ../fish/guestfish-actions.pod:3256
24824 msgid "mv"
24825 msgstr ""
24826
24827 #. type: verbatim
24828 #: ../fish/guestfish-actions.pod:3258
24829 #, no-wrap
24830 msgid ""
24831 " mv src dest\n"
24832 "\n"
24833 msgstr ""
24834
24835 #. type: =head2
24836 #: ../fish/guestfish-actions.pod:3263
24837 msgid "ntfs-3g-probe"
24838 msgstr ""
24839
24840 #. type: verbatim
24841 #: ../fish/guestfish-actions.pod:3265
24842 #, no-wrap
24843 msgid ""
24844 " ntfs-3g-probe true|false device\n"
24845 "\n"
24846 msgstr ""
24847
24848 #. type: =head2
24849 #: ../fish/guestfish-actions.pod:3279
24850 msgid "ntfsresize"
24851 msgstr ""
24852
24853 #. type: verbatim
24854 #: ../fish/guestfish-actions.pod:3281
24855 #, no-wrap
24856 msgid ""
24857 " ntfsresize device\n"
24858 "\n"
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../fish/guestfish-actions.pod:3287
24863 msgid "ntfsresize-size"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../fish/guestfish-actions.pod:3289
24868 #, no-wrap
24869 msgid ""
24870 " ntfsresize-size device size\n"
24871 "\n"
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../fish/guestfish-actions.pod:3291
24876 msgid ""
24877 "This command is the same as L</ntfsresize> except that it allows you to "
24878 "specify the new size (in bytes) explicitly."
24879 msgstr ""
24880
24881 #. type: =head2
24882 #: ../fish/guestfish-actions.pod:3294
24883 msgid "part-add"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../fish/guestfish-actions.pod:3296
24888 #, no-wrap
24889 msgid ""
24890 " part-add device prlogex startsect endsect\n"
24891 "\n"
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../fish/guestfish-actions.pod:3298
24896 msgid ""
24897 "This command adds a partition to C<device>.  If there is no partition table "
24898 "on the device, call L</part-init> first."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../fish/guestfish-actions.pod:3310
24903 msgid ""
24904 "Creating a partition which covers the whole disk is not so easy.  Use "
24905 "L</part-disk> to do that."
24906 msgstr ""
24907
24908 #. type: =head2
24909 #: ../fish/guestfish-actions.pod:3313
24910 msgid "part-del"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../fish/guestfish-actions.pod:3315
24915 #, no-wrap
24916 msgid ""
24917 " part-del device partnum\n"
24918 "\n"
24919 msgstr ""
24920
24921 #. type: =head2
24922 #: ../fish/guestfish-actions.pod:3323
24923 msgid "part-disk"
24924 msgstr ""
24925
24926 #. type: verbatim
24927 #: ../fish/guestfish-actions.pod:3325
24928 #, no-wrap
24929 msgid ""
24930 " part-disk device parttype\n"
24931 "\n"
24932 msgstr ""
24933
24934 #. type: textblock
24935 #: ../fish/guestfish-actions.pod:3327
24936 msgid ""
24937 "This command is simply a combination of L</part-init> followed by "
24938 "L</part-add> to create a single primary partition covering the whole disk."
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../fish/guestfish-actions.pod:3331
24943 msgid ""
24944 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
24945 "possible values are described in L</part-init>."
24946 msgstr ""
24947
24948 #. type: =head2
24949 #: ../fish/guestfish-actions.pod:3337
24950 msgid "part-get-bootable"
24951 msgstr ""
24952
24953 #. type: verbatim
24954 #: ../fish/guestfish-actions.pod:3339
24955 #, no-wrap
24956 msgid ""
24957 " part-get-bootable device partnum\n"
24958 "\n"
24959 msgstr ""
24960
24961 #. type: textblock
24962 #: ../fish/guestfish-actions.pod:3344
24963 msgid "See also L</part-set-bootable>."
24964 msgstr ""
24965
24966 #. type: =head2
24967 #: ../fish/guestfish-actions.pod:3346
24968 msgid "part-get-mbr-id"
24969 msgstr ""
24970
24971 #. type: verbatim
24972 #: ../fish/guestfish-actions.pod:3348
24973 #, no-wrap
24974 msgid ""
24975 " part-get-mbr-id device partnum\n"
24976 "\n"
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../fish/guestfish-actions.pod:3353 ../fish/guestfish-actions.pod:3491
24981 msgid ""
24982 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
24983 "undefined results for other partition table types (see "
24984 "L</part-get-parttype>)."
24985 msgstr ""
24986
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:3357
24989 msgid "part-get-parttype"
24990 msgstr ""
24991
24992 #. type: verbatim
24993 #: ../fish/guestfish-actions.pod:3359
24994 #, no-wrap
24995 msgid ""
24996 " part-get-parttype device\n"
24997 "\n"
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../fish/guestfish-actions.pod:3364
25002 msgid ""
25003 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
25004 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
25005 "possible, although unusual.  See L</part-init> for a full list."
25006 msgstr ""
25007
25008 #. type: =head2
25009 #: ../fish/guestfish-actions.pod:3369
25010 msgid "part-init"
25011 msgstr ""
25012
25013 #. type: verbatim
25014 #: ../fish/guestfish-actions.pod:3371
25015 #, no-wrap
25016 msgid ""
25017 " part-init device parttype\n"
25018 "\n"
25019 msgstr ""
25020
25021 #. type: textblock
25022 #: ../fish/guestfish-actions.pod:3377
25023 msgid ""
25024 "Initially there are no partitions.  Following this, you should call "
25025 "L</part-add> for each partition required."
25026 msgstr ""
25027
25028 #. type: =head2
25029 #: ../fish/guestfish-actions.pod:3440
25030 msgid "part-list"
25031 msgstr ""
25032
25033 #. type: verbatim
25034 #: ../fish/guestfish-actions.pod:3442
25035 #, no-wrap
25036 msgid ""
25037 " part-list device\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../fish/guestfish-actions.pod:3457
25043 msgid ""
25044 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
25045 "the device's sector size, see L</blockdev-getss>."
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../fish/guestfish-actions.pod:3470
25050 msgid "part-set-bootable"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../fish/guestfish-actions.pod:3472
25055 #, no-wrap
25056 msgid ""
25057 " part-set-bootable device partnum true|false\n"
25058 "\n"
25059 msgstr ""
25060
25061 #. type: =head2
25062 #: ../fish/guestfish-actions.pod:3481
25063 msgid "part-set-mbr-id"
25064 msgstr ""
25065
25066 #. type: verbatim
25067 #: ../fish/guestfish-actions.pod:3483
25068 #, no-wrap
25069 msgid ""
25070 " part-set-mbr-id device partnum idbyte\n"
25071 "\n"
25072 msgstr ""
25073
25074 #. type: =head2
25075 #: ../fish/guestfish-actions.pod:3495
25076 msgid "part-set-name"
25077 msgstr ""
25078
25079 #. type: verbatim
25080 #: ../fish/guestfish-actions.pod:3497
25081 #, no-wrap
25082 msgid ""
25083 " part-set-name device partnum name\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: =head2
25088 #: ../fish/guestfish-actions.pod:3505
25089 msgid "part-to-dev"
25090 msgstr ""
25091
25092 #. type: verbatim
25093 #: ../fish/guestfish-actions.pod:3507
25094 #, no-wrap
25095 msgid ""
25096 " part-to-dev partition\n"
25097 "\n"
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../fish/guestfish-actions.pod:3513
25102 msgid ""
25103 "The named partition must exist, for example as a string returned from "
25104 "L</list-partitions>."
25105 msgstr ""
25106
25107 #. type: =head2
25108 #: ../fish/guestfish-actions.pod:3516
25109 msgid "ping-daemon"
25110 msgstr ""
25111
25112 #. type: verbatim
25113 #: ../fish/guestfish-actions.pod:3518
25114 #, no-wrap
25115 msgid ""
25116 " ping-daemon\n"
25117 "\n"
25118 msgstr ""
25119
25120 #. type: =head2
25121 #: ../fish/guestfish-actions.pod:3525
25122 msgid "pread"
25123 msgstr ""
25124
25125 #. type: verbatim
25126 #: ../fish/guestfish-actions.pod:3527
25127 #, no-wrap
25128 msgid ""
25129 " pread path count offset\n"
25130 "\n"
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../fish/guestfish-actions.pod:3535
25135 msgid "See also L</pwrite>, L</pread-device>."
25136 msgstr ""
25137
25138 #. type: =head2
25139 #: ../fish/guestfish-actions.pod:3540
25140 msgid "pread-device"
25141 msgstr ""
25142
25143 #. type: verbatim
25144 #: ../fish/guestfish-actions.pod:3542
25145 #, no-wrap
25146 msgid ""
25147 " pread-device device count offset\n"
25148 "\n"
25149 msgstr ""
25150
25151 #. type: textblock
25152 #: ../fish/guestfish-actions.pod:3550
25153 msgid "See also L</pread>."
25154 msgstr ""
25155
25156 #. type: =head2
25157 #: ../fish/guestfish-actions.pod:3555
25158 msgid "pvcreate"
25159 msgstr ""
25160
25161 #. type: verbatim
25162 #: ../fish/guestfish-actions.pod:3557
25163 #, no-wrap
25164 msgid ""
25165 " pvcreate device\n"
25166 "\n"
25167 msgstr ""
25168
25169 #. type: =head2
25170 #: ../fish/guestfish-actions.pod:3563
25171 msgid "pvremove"
25172 msgstr ""
25173
25174 #. type: verbatim
25175 #: ../fish/guestfish-actions.pod:3565
25176 #, no-wrap
25177 msgid ""
25178 " pvremove device\n"
25179 "\n"
25180 msgstr ""
25181
25182 #. type: =head2
25183 #: ../fish/guestfish-actions.pod:3574
25184 msgid "pvresize"
25185 msgstr ""
25186
25187 #. type: verbatim
25188 #: ../fish/guestfish-actions.pod:3576
25189 #, no-wrap
25190 msgid ""
25191 " pvresize device\n"
25192 "\n"
25193 msgstr ""
25194
25195 #. type: =head2
25196 #: ../fish/guestfish-actions.pod:3581
25197 msgid "pvresize-size"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../fish/guestfish-actions.pod:3583
25202 #, no-wrap
25203 msgid ""
25204 " pvresize-size device size\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../fish/guestfish-actions.pod:3585
25210 msgid ""
25211 "This command is the same as L</pvresize> except that it allows you to "
25212 "specify the new size (in bytes) explicitly."
25213 msgstr ""
25214
25215 #. type: =head2
25216 #: ../fish/guestfish-actions.pod:3588
25217 msgid "pvs"
25218 msgstr ""
25219
25220 #. type: verbatim
25221 #: ../fish/guestfish-actions.pod:3590
25222 #, no-wrap
25223 msgid ""
25224 " pvs\n"
25225 "\n"
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../fish/guestfish-actions.pod:3598
25230 msgid "See also L</pvs-full>."
25231 msgstr ""
25232
25233 #. type: =head2
25234 #: ../fish/guestfish-actions.pod:3600
25235 msgid "pvs-full"
25236 msgstr ""
25237
25238 #. type: verbatim
25239 #: ../fish/guestfish-actions.pod:3602
25240 #, no-wrap
25241 msgid ""
25242 " pvs-full\n"
25243 "\n"
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../fish/guestfish-actions.pod:3607
25248 msgid "pvuuid"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../fish/guestfish-actions.pod:3609
25253 #, no-wrap
25254 msgid ""
25255 " pvuuid device\n"
25256 "\n"
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../fish/guestfish-actions.pod:3613
25261 msgid "pwrite"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../fish/guestfish-actions.pod:3615
25266 #, no-wrap
25267 msgid ""
25268 " pwrite path content offset\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../fish/guestfish-actions.pod:3626
25274 msgid "See also L</pread>, L</pwrite-device>."
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../fish/guestfish-actions.pod:3631
25279 msgid "pwrite-device"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../fish/guestfish-actions.pod:3633
25284 #, no-wrap
25285 msgid ""
25286 " pwrite-device device content offset\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../fish/guestfish-actions.pod:3643
25292 msgid "See also L</pwrite>."
25293 msgstr ""
25294
25295 #. type: =head2
25296 #: ../fish/guestfish-actions.pod:3648
25297 msgid "read-file"
25298 msgstr ""
25299
25300 #. type: verbatim
25301 #: ../fish/guestfish-actions.pod:3650
25302 #, no-wrap
25303 msgid ""
25304 " read-file path\n"
25305 "\n"
25306 msgstr ""
25307
25308 #. type: textblock
25309 #: ../fish/guestfish-actions.pod:3655
25310 msgid ""
25311 "Unlike L</cat>, this function can correctly handle files that contain "
25312 "embedded ASCII NUL characters.  However unlike L</download>, this function "
25313 "is limited in the total size of file that can be handled."
25314 msgstr ""
25315
25316 #. type: =head2
25317 #: ../fish/guestfish-actions.pod:3663
25318 msgid "read-lines"
25319 msgstr ""
25320
25321 #. type: verbatim
25322 #: ../fish/guestfish-actions.pod:3665
25323 #, no-wrap
25324 msgid ""
25325 " read-lines path\n"
25326 "\n"
25327 msgstr ""
25328
25329 #. type: textblock
25330 #: ../fish/guestfish-actions.pod:3672
25331 msgid ""
25332 "Note that this function cannot correctly handle binary files (specifically, "
25333 "files containing C<\\0> character which is treated as end of line).  For "
25334 "those you need to use the L</read-file> function which has a more complex "
25335 "interface."
25336 msgstr ""
25337
25338 #. type: =head2
25339 #: ../fish/guestfish-actions.pod:3677
25340 msgid "readdir"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../fish/guestfish-actions.pod:3679
25345 #, no-wrap
25346 msgid ""
25347 " readdir dir\n"
25348 "\n"
25349 msgstr ""
25350
25351 #. type: textblock
25352 #: ../fish/guestfish-actions.pod:3731
25353 msgid ""
25354 "This function is primarily intended for use by programs.  To get a simple "
25355 "list of names, use L</ls>.  To get a printable directory for human "
25356 "consumption, use L</ll>."
25357 msgstr ""
25358
25359 #. type: =head2
25360 #: ../fish/guestfish-actions.pod:3735
25361 msgid "readlink"
25362 msgstr ""
25363
25364 #. type: verbatim
25365 #: ../fish/guestfish-actions.pod:3737
25366 #, no-wrap
25367 msgid ""
25368 " readlink path\n"
25369 "\n"
25370 msgstr ""
25371
25372 #. type: =head2
25373 #: ../fish/guestfish-actions.pod:3741
25374 msgid "readlinklist"
25375 msgstr ""
25376
25377 #. type: verbatim
25378 #: ../fish/guestfish-actions.pod:3743
25379 #, no-wrap
25380 msgid ""
25381 " readlinklist path 'names ...'\n"
25382 "\n"
25383 msgstr ""
25384
25385 #. type: =head2
25386 #: ../fish/guestfish-actions.pod:3767
25387 msgid "realpath"
25388 msgstr ""
25389
25390 #. type: verbatim
25391 #: ../fish/guestfish-actions.pod:3769
25392 #, no-wrap
25393 msgid ""
25394 " realpath path\n"
25395 "\n"
25396 msgstr ""
25397
25398 #. type: =head2
25399 #: ../fish/guestfish-actions.pod:3774
25400 msgid "removexattr"
25401 msgstr ""
25402
25403 #. type: verbatim
25404 #: ../fish/guestfish-actions.pod:3776
25405 #, no-wrap
25406 msgid ""
25407 " removexattr xattr path\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: textblock
25412 #: ../fish/guestfish-actions.pod:3781
25413 msgid "See also: L</lremovexattr>, L<attr(5)>."
25414 msgstr ""
25415
25416 #. type: =head2
25417 #: ../fish/guestfish-actions.pod:3783
25418 msgid "resize2fs"
25419 msgstr ""
25420
25421 #. type: verbatim
25422 #: ../fish/guestfish-actions.pod:3785
25423 #, no-wrap
25424 msgid ""
25425 " resize2fs device\n"
25426 "\n"
25427 msgstr ""
25428
25429 #. type: textblock
25430 #: ../fish/guestfish-actions.pod:3790
25431 msgid ""
25432 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
25433 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
25434 "gives an error about this and sometimes not.  In any case, it is always safe "
25435 "to call L</e2fsck-f> before calling this function."
25436 msgstr ""
25437
25438 #. type: =head2
25439 #: ../fish/guestfish-actions.pod:3796
25440 msgid "resize2fs-M"
25441 msgstr ""
25442
25443 #. type: verbatim
25444 #: ../fish/guestfish-actions.pod:3798
25445 #, no-wrap
25446 msgid ""
25447 " resize2fs-M device\n"
25448 "\n"
25449 msgstr ""
25450
25451 #. type: textblock
25452 #: ../fish/guestfish-actions.pod:3800
25453 msgid ""
25454 "This command is the same as L</resize2fs>, but the filesystem is resized to "
25455 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
25456 "command."
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../fish/guestfish-actions.pod:3804
25461 msgid ""
25462 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
25463 "and read the C<Block size> and C<Block count> values.  These two numbers, "
25464 "multiplied together, give the resulting size of the minimal filesystem in "
25465 "bytes."
25466 msgstr ""
25467
25468 #. type: =head2
25469 #: ../fish/guestfish-actions.pod:3809
25470 msgid "resize2fs-size"
25471 msgstr ""
25472
25473 #. type: verbatim
25474 #: ../fish/guestfish-actions.pod:3811
25475 #, no-wrap
25476 msgid ""
25477 " resize2fs-size device size\n"
25478 "\n"
25479 msgstr ""
25480
25481 #. type: textblock
25482 #: ../fish/guestfish-actions.pod:3813
25483 msgid ""
25484 "This command is the same as L</resize2fs> except that it allows you to "
25485 "specify the new size (in bytes) explicitly."
25486 msgstr ""
25487
25488 #. type: =head2
25489 #: ../fish/guestfish-actions.pod:3816
25490 msgid "rm"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../fish/guestfish-actions.pod:3818
25495 #, no-wrap
25496 msgid ""
25497 " rm path\n"
25498 "\n"
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../fish/guestfish-actions.pod:3822
25503 msgid "rm-rf"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../fish/guestfish-actions.pod:3824
25508 #, no-wrap
25509 msgid ""
25510 " rm-rf path\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: =head2
25515 #: ../fish/guestfish-actions.pod:3830
25516 msgid "rmdir"
25517 msgstr ""
25518
25519 #. type: verbatim
25520 #: ../fish/guestfish-actions.pod:3832
25521 #, no-wrap
25522 msgid ""
25523 " rmdir path\n"
25524 "\n"
25525 msgstr ""
25526
25527 #. type: =head2
25528 #: ../fish/guestfish-actions.pod:3836
25529 msgid "rmmountpoint"
25530 msgstr ""
25531
25532 #. type: verbatim
25533 #: ../fish/guestfish-actions.pod:3838
25534 #, no-wrap
25535 msgid ""
25536 " rmmountpoint exemptpath\n"
25537 "\n"
25538 msgstr ""
25539
25540 #. type: textblock
25541 #: ../fish/guestfish-actions.pod:3840
25542 msgid ""
25543 "This calls removes a mountpoint that was previously created with "
25544 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../fish/guestfish-actions.pod:3844
25549 msgid "scrub-device"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../fish/guestfish-actions.pod:3846
25554 #, no-wrap
25555 msgid ""
25556 " scrub-device device\n"
25557 "\n"
25558 msgstr ""
25559
25560 #. type: =head2
25561 #: ../fish/guestfish-actions.pod:3857
25562 msgid "scrub-file"
25563 msgstr ""
25564
25565 #. type: verbatim
25566 #: ../fish/guestfish-actions.pod:3859
25567 #, no-wrap
25568 msgid ""
25569 " scrub-file file\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../fish/guestfish-actions.pod:3869
25575 msgid "scrub-freespace"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../fish/guestfish-actions.pod:3871
25580 #, no-wrap
25581 msgid ""
25582 " scrub-freespace dir\n"
25583 "\n"
25584 msgstr ""
25585
25586 #. type: textblock
25587 #: ../fish/guestfish-actions.pod:3873
25588 msgid ""
25589 "This command creates the directory C<dir> and then fills it with files until "
25590 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
25591 "deletes them.  The intention is to scrub any free space on the partition "
25592 "containing C<dir>."
25593 msgstr ""
25594
25595 #. type: =head2
25596 #: ../fish/guestfish-actions.pod:3882
25597 msgid "set-append"
25598 msgstr ""
25599
25600 #. type: =head2
25601 #: ../fish/guestfish-actions.pod:3884
25602 msgid "append"
25603 msgstr ""
25604
25605 #. type: verbatim
25606 #: ../fish/guestfish-actions.pod:3886
25607 #, no-wrap
25608 msgid ""
25609 " set-append append\n"
25610 "\n"
25611 msgstr ""
25612
25613 #. type: =head2
25614 #: ../fish/guestfish-actions.pod:3897
25615 msgid "set-attach-method"
25616 msgstr ""
25617
25618 #. type: =head2
25619 #: ../fish/guestfish-actions.pod:3899
25620 msgid "attach-method"
25621 msgstr ""
25622
25623 #. type: verbatim
25624 #: ../fish/guestfish-actions.pod:3901
25625 #, no-wrap
25626 msgid ""
25627 " set-attach-method attachmethod\n"
25628 "\n"
25629 msgstr ""
25630
25631 #. type: =head2
25632 #: ../fish/guestfish-actions.pod:3923
25633 msgid "set-autosync"
25634 msgstr ""
25635
25636 #. type: =head2
25637 #: ../fish/guestfish-actions.pod:3925
25638 msgid "autosync"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../fish/guestfish-actions.pod:3927
25643 #, no-wrap
25644 msgid ""
25645 " set-autosync true|false\n"
25646 "\n"
25647 msgstr ""
25648
25649 #. type: =head2
25650 #: ../fish/guestfish-actions.pod:3937
25651 msgid "set-direct"
25652 msgstr ""
25653
25654 #. type: =head2
25655 #: ../fish/guestfish-actions.pod:3939
25656 msgid "direct"
25657 msgstr ""
25658
25659 #. type: verbatim
25660 #: ../fish/guestfish-actions.pod:3941
25661 #, no-wrap
25662 msgid ""
25663 " set-direct true|false\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: textblock
25668 #: ../fish/guestfish-actions.pod:3947
25669 msgid ""
25670 "One consequence of this is that log messages aren't caught by the library "
25671 "and handled by L</set-log-message-callback>, but go straight to stdout."
25672 msgstr ""
25673
25674 #. type: =head2
25675 #: ../fish/guestfish-actions.pod:3956
25676 msgid "set-e2label"
25677 msgstr ""
25678
25679 #. type: verbatim
25680 #: ../fish/guestfish-actions.pod:3958
25681 #, no-wrap
25682 msgid ""
25683 " set-e2label device label\n"
25684 "\n"
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../fish/guestfish-actions.pod:3964
25689 msgid ""
25690 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
25691 "label on a filesystem."
25692 msgstr ""
25693
25694 #. type: =head2
25695 #: ../fish/guestfish-actions.pod:3967
25696 msgid "set-e2uuid"
25697 msgstr ""
25698
25699 #. type: verbatim
25700 #: ../fish/guestfish-actions.pod:3969
25701 #, no-wrap
25702 msgid ""
25703 " set-e2uuid device uuid\n"
25704 "\n"
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../fish/guestfish-actions.pod:3976
25709 msgid ""
25710 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
25711 "UUID of a filesystem."
25712 msgstr ""
25713
25714 #. type: =head2
25715 #: ../fish/guestfish-actions.pod:3979
25716 msgid "set-memsize"
25717 msgstr ""
25718
25719 #. type: =head2
25720 #: ../fish/guestfish-actions.pod:3981
25721 msgid "memsize"
25722 msgstr ""
25723
25724 #. type: verbatim
25725 #: ../fish/guestfish-actions.pod:3983
25726 #, no-wrap
25727 msgid ""
25728 " set-memsize memsize\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../fish/guestfish-actions.pod:3985
25734 msgid ""
25735 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
25736 "This only has any effect if called before L</launch>."
25737 msgstr ""
25738
25739 #. type: =head2
25740 #: ../fish/guestfish-actions.pod:3996
25741 msgid "set-network"
25742 msgstr ""
25743
25744 #. type: =head2
25745 #: ../fish/guestfish-actions.pod:3998
25746 msgid "network"
25747 msgstr ""
25748
25749 #. type: verbatim
25750 #: ../fish/guestfish-actions.pod:4000
25751 #, no-wrap
25752 msgid ""
25753 " set-network true|false\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../fish/guestfish-actions.pod:4008
25759 msgid "You must call this before calling L</launch>, otherwise it has no effect."
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../fish/guestfish-actions.pod:4011
25764 msgid "set-path"
25765 msgstr ""
25766
25767 #. type: =head2
25768 #: ../fish/guestfish-actions.pod:4013
25769 msgid "path"
25770 msgstr ""
25771
25772 #. type: verbatim
25773 #: ../fish/guestfish-actions.pod:4015
25774 #, no-wrap
25775 msgid ""
25776 " set-path searchpath\n"
25777 "\n"
25778 msgstr ""
25779
25780 #. type: =head2
25781 #: ../fish/guestfish-actions.pod:4024
25782 msgid "set-qemu"
25783 msgstr ""
25784
25785 #. type: =head2
25786 #: ../fish/guestfish-actions.pod:4026
25787 msgid "qemu"
25788 msgstr ""
25789
25790 #. type: verbatim
25791 #: ../fish/guestfish-actions.pod:4028
25792 #, no-wrap
25793 msgid ""
25794 " set-qemu qemu\n"
25795 "\n"
25796 msgstr ""
25797
25798 #. type: =head2
25799 #: ../fish/guestfish-actions.pod:4048
25800 msgid "set-recovery-proc"
25801 msgstr ""
25802
25803 #. type: =head2
25804 #: ../fish/guestfish-actions.pod:4050
25805 msgid "recovery-proc"
25806 msgstr ""
25807
25808 #. type: verbatim
25809 #: ../fish/guestfish-actions.pod:4052
25810 #, no-wrap
25811 msgid ""
25812 " set-recovery-proc true|false\n"
25813 "\n"
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../fish/guestfish-actions.pod:4054
25818 msgid ""
25819 "If this is called with the parameter C<false> then L</launch> does not "
25820 "create a recovery process.  The purpose of the recovery process is to stop "
25821 "runaway qemu processes in the case where the main program aborts abruptly."
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../fish/guestfish-actions.pod:4059
25826 msgid ""
25827 "This only has any effect if called before L</launch>, and the default is "
25828 "true."
25829 msgstr ""
25830
25831 #. type: =head2
25832 #: ../fish/guestfish-actions.pod:4068
25833 msgid "set-selinux"
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../fish/guestfish-actions.pod:4070
25838 msgid "selinux"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../fish/guestfish-actions.pod:4072
25843 #, no-wrap
25844 msgid ""
25845 " set-selinux true|false\n"
25846 "\n"
25847 msgstr ""
25848
25849 #. type: =head2
25850 #: ../fish/guestfish-actions.pod:4083
25851 msgid "set-trace"
25852 msgstr ""
25853
25854 #. type: =head2
25855 #: ../fish/guestfish-actions.pod:4085
25856 msgid "trace"
25857 msgstr ""
25858
25859 #. type: verbatim
25860 #: ../fish/guestfish-actions.pod:4087
25861 #, no-wrap
25862 msgid ""
25863 " set-trace true|false\n"
25864 "\n"
25865 msgstr ""
25866
25867 #. type: textblock
25868 #: ../fish/guestfish-actions.pod:4099
25869 msgid ""
25870 "Trace messages are normally sent to C<stderr>, unless you register a "
25871 "callback to send them somewhere else (see L</set-event-callback>)."
25872 msgstr ""
25873
25874 #. type: =head2
25875 #: ../fish/guestfish-actions.pod:4103
25876 msgid "set-verbose"
25877 msgstr ""
25878
25879 #. type: =head2
25880 #: ../fish/guestfish-actions.pod:4105
25881 msgid "verbose"
25882 msgstr ""
25883
25884 #. type: verbatim
25885 #: ../fish/guestfish-actions.pod:4107
25886 #, no-wrap
25887 msgid ""
25888 " set-verbose true|false\n"
25889 "\n"
25890 msgstr ""
25891
25892 #. type: textblock
25893 #: ../fish/guestfish-actions.pod:4114
25894 msgid ""
25895 "Verbose messages are normally sent to C<stderr>, unless you register a "
25896 "callback to send them somewhere else (see L</set-event-callback>)."
25897 msgstr ""
25898
25899 #. type: =head2
25900 #: ../fish/guestfish-actions.pod:4118
25901 msgid "setcon"
25902 msgstr ""
25903
25904 #. type: verbatim
25905 #: ../fish/guestfish-actions.pod:4120
25906 #, no-wrap
25907 msgid ""
25908 " setcon context\n"
25909 "\n"
25910 msgstr ""
25911
25912 #. type: =head2
25913 #: ../fish/guestfish-actions.pod:4127
25914 msgid "setxattr"
25915 msgstr ""
25916
25917 #. type: verbatim
25918 #: ../fish/guestfish-actions.pod:4129
25919 #, no-wrap
25920 msgid ""
25921 " setxattr xattr val vallen path\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: textblock
25926 #: ../fish/guestfish-actions.pod:4135
25927 msgid "See also: L</lsetxattr>, L<attr(5)>."
25928 msgstr ""
25929
25930 #. type: =head2
25931 #: ../fish/guestfish-actions.pod:4137
25932 msgid "sfdisk"
25933 msgstr ""
25934
25935 #. type: verbatim
25936 #: ../fish/guestfish-actions.pod:4139
25937 #, no-wrap
25938 msgid ""
25939 " sfdisk device cyls heads sectors 'lines ...'\n"
25940 "\n"
25941 msgstr ""
25942
25943 #. type: textblock
25944 #: ../fish/guestfish-actions.pod:4161
25945 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
25946 msgstr ""
25947
25948 #. type: =head2
25949 #: ../fish/guestfish-actions.pod:4167
25950 msgid "sfdiskM"
25951 msgstr ""
25952
25953 #. type: verbatim
25954 #: ../fish/guestfish-actions.pod:4169
25955 #, no-wrap
25956 msgid ""
25957 " sfdiskM device 'lines ...'\n"
25958 "\n"
25959 msgstr ""
25960
25961 #. type: textblock
25962 #: ../fish/guestfish-actions.pod:4171
25963 msgid ""
25964 "This is a simplified interface to the L</sfdisk> command, where partition "
25965 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
25966 "you don't need to specify the cyls, heads and sectors parameters which were "
25967 "rarely if ever used anyway."
25968 msgstr ""
25969
25970 #. type: textblock
25971 #: ../fish/guestfish-actions.pod:4177
25972 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
25973 msgstr ""
25974
25975 #. type: =head2
25976 #: ../fish/guestfish-actions.pod:4183
25977 msgid "sfdisk-N"
25978 msgstr ""
25979
25980 #. type: verbatim
25981 #: ../fish/guestfish-actions.pod:4185
25982 #, no-wrap
25983 msgid ""
25984 " sfdisk-N device partnum cyls heads sectors line\n"
25985 "\n"
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../fish/guestfish-actions.pod:4190
25990 msgid ""
25991 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
25992 "cyls/heads/sectors parameters."
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../fish/guestfish-actions.pod:4193
25997 msgid "See also: L</part-add>"
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../fish/guestfish-actions.pod:4198
26002 msgid "sfdisk-disk-geometry"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../fish/guestfish-actions.pod:4200
26007 #, no-wrap
26008 msgid ""
26009 " sfdisk-disk-geometry device\n"
26010 "\n"
26011 msgstr ""
26012
26013 #. type: textblock
26014 #: ../fish/guestfish-actions.pod:4202
26015 msgid ""
26016 "This displays the disk geometry of C<device> read from the partition table.  "
26017 "Especially in the case where the underlying block device has been resized, "
26018 "this can be different from the kernel's idea of the geometry (see "
26019 "L</sfdisk-kernel-geometry>)."
26020 msgstr ""
26021
26022 #. type: =head2
26023 #: ../fish/guestfish-actions.pod:4210
26024 msgid "sfdisk-kernel-geometry"
26025 msgstr ""
26026
26027 #. type: verbatim
26028 #: ../fish/guestfish-actions.pod:4212
26029 #, no-wrap
26030 msgid ""
26031 " sfdisk-kernel-geometry device\n"
26032 "\n"
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../fish/guestfish-actions.pod:4219
26037 msgid "sfdisk-l"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../fish/guestfish-actions.pod:4221
26042 #, no-wrap
26043 msgid ""
26044 " sfdisk-l device\n"
26045 "\n"
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../fish/guestfish-actions.pod:4227
26050 msgid "See also: L</part-list>"
26051 msgstr ""
26052
26053 #. type: =head2
26054 #: ../fish/guestfish-actions.pod:4229
26055 msgid "sh"
26056 msgstr ""
26057
26058 #. type: verbatim
26059 #: ../fish/guestfish-actions.pod:4231
26060 #, no-wrap
26061 msgid ""
26062 " sh command\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../fish/guestfish-actions.pod:4236
26068 msgid "This is like L</command>, but passes the command to:"
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../fish/guestfish-actions.pod:4244
26073 msgid "All the provisos about L</command> apply to this call."
26074 msgstr ""
26075
26076 #. type: =head2
26077 #: ../fish/guestfish-actions.pod:4246
26078 msgid "sh-lines"
26079 msgstr ""
26080
26081 #. type: verbatim
26082 #: ../fish/guestfish-actions.pod:4248
26083 #, no-wrap
26084 msgid ""
26085 " sh-lines command\n"
26086 "\n"
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../fish/guestfish-actions.pod:4250
26091 msgid "This is the same as L</sh>, but splits the result into a list of lines."
26092 msgstr ""
26093
26094 #. type: textblock
26095 #: ../fish/guestfish-actions.pod:4253
26096 msgid "See also: L</command-lines>"
26097 msgstr ""
26098
26099 #. type: =head2
26100 #: ../fish/guestfish-actions.pod:4255
26101 msgid "sleep"
26102 msgstr ""
26103
26104 #. type: verbatim
26105 #: ../fish/guestfish-actions.pod:4257
26106 #, no-wrap
26107 msgid ""
26108 " sleep secs\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: =head2
26113 #: ../fish/guestfish-actions.pod:4261
26114 msgid "stat"
26115 msgstr ""
26116
26117 #. type: verbatim
26118 #: ../fish/guestfish-actions.pod:4263
26119 #, no-wrap
26120 msgid ""
26121 " stat path\n"
26122 "\n"
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../fish/guestfish-actions.pod:4269
26127 msgid "statvfs"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../fish/guestfish-actions.pod:4271
26132 #, no-wrap
26133 msgid ""
26134 " statvfs path\n"
26135 "\n"
26136 msgstr ""
26137
26138 #. type: =head2
26139 #: ../fish/guestfish-actions.pod:4279
26140 msgid "strings"
26141 msgstr ""
26142
26143 #. type: verbatim
26144 #: ../fish/guestfish-actions.pod:4281
26145 #, no-wrap
26146 msgid ""
26147 " strings path\n"
26148 "\n"
26149 msgstr ""
26150
26151 #. type: =head2
26152 #: ../fish/guestfish-actions.pod:4289
26153 msgid "strings-e"
26154 msgstr ""
26155
26156 #. type: verbatim
26157 #: ../fish/guestfish-actions.pod:4291
26158 #, no-wrap
26159 msgid ""
26160 " strings-e encoding path\n"
26161 "\n"
26162 msgstr ""
26163
26164 #. type: textblock
26165 #: ../fish/guestfish-actions.pod:4293
26166 msgid ""
26167 "This is like the L</strings> command, but allows you to specify the encoding "
26168 "of strings that are looked for in the source file C<path>."
26169 msgstr ""
26170
26171 #. type: textblock
26172 #: ../fish/guestfish-actions.pod:4303
26173 msgid ""
26174 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
26175 "ISO-8859-X (this is what L</strings> uses)."
26176 msgstr ""
26177
26178 #. type: =head2
26179 #: ../fish/guestfish-actions.pod:4335
26180 msgid "swapoff-device"
26181 msgstr ""
26182
26183 #. type: verbatim
26184 #: ../fish/guestfish-actions.pod:4337
26185 #, no-wrap
26186 msgid ""
26187 " swapoff-device device\n"
26188 "\n"
26189 msgstr ""
26190
26191 #. type: textblock
26192 #: ../fish/guestfish-actions.pod:4339
26193 msgid ""
26194 "This command disables the libguestfs appliance swap device or partition "
26195 "named C<device>.  See L</swapon-device>."
26196 msgstr ""
26197
26198 #. type: =head2
26199 #: ../fish/guestfish-actions.pod:4343
26200 msgid "swapoff-file"
26201 msgstr ""
26202
26203 #. type: verbatim
26204 #: ../fish/guestfish-actions.pod:4345
26205 #, no-wrap
26206 msgid ""
26207 " swapoff-file file\n"
26208 "\n"
26209 msgstr ""
26210
26211 #. type: =head2
26212 #: ../fish/guestfish-actions.pod:4349
26213 msgid "swapoff-label"
26214 msgstr ""
26215
26216 #. type: verbatim
26217 #: ../fish/guestfish-actions.pod:4351
26218 #, no-wrap
26219 msgid ""
26220 " swapoff-label label\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: =head2
26225 #: ../fish/guestfish-actions.pod:4356
26226 msgid "swapoff-uuid"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../fish/guestfish-actions.pod:4358
26231 #, no-wrap
26232 msgid ""
26233 " swapoff-uuid uuid\n"
26234 "\n"
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../fish/guestfish-actions.pod:4363
26239 msgid "swapon-device"
26240 msgstr ""
26241
26242 #. type: verbatim
26243 #: ../fish/guestfish-actions.pod:4365
26244 #, no-wrap
26245 msgid ""
26246 " swapon-device device\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../fish/guestfish-actions.pod:4367
26252 msgid ""
26253 "This command enables the libguestfs appliance to use the swap device or "
26254 "partition named C<device>.  The increased memory is made available for all "
26255 "commands, for example those run using L</command> or L</sh>."
26256 msgstr ""
26257
26258 #. type: =head2
26259 #: ../fish/guestfish-actions.pod:4379
26260 msgid "swapon-file"
26261 msgstr ""
26262
26263 #. type: verbatim
26264 #: ../fish/guestfish-actions.pod:4381
26265 #, no-wrap
26266 msgid ""
26267 " swapon-file file\n"
26268 "\n"
26269 msgstr ""
26270
26271 #. type: textblock
26272 #: ../fish/guestfish-actions.pod:4383
26273 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
26274 msgstr ""
26275
26276 #. type: =head2
26277 #: ../fish/guestfish-actions.pod:4386
26278 msgid "swapon-label"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../fish/guestfish-actions.pod:4388
26283 #, no-wrap
26284 msgid ""
26285 " swapon-label label\n"
26286 "\n"
26287 msgstr ""
26288
26289 #. type: textblock
26290 #: ../fish/guestfish-actions.pod:4390
26291 msgid ""
26292 "This command enables swap to a labeled swap partition.  See "
26293 "L</swapon-device> for other notes."
26294 msgstr ""
26295
26296 #. type: =head2
26297 #: ../fish/guestfish-actions.pod:4393
26298 msgid "swapon-uuid"
26299 msgstr ""
26300
26301 #. type: verbatim
26302 #: ../fish/guestfish-actions.pod:4395
26303 #, no-wrap
26304 msgid ""
26305 " swapon-uuid uuid\n"
26306 "\n"
26307 msgstr ""
26308
26309 #. type: textblock
26310 #: ../fish/guestfish-actions.pod:4397
26311 msgid ""
26312 "This command enables swap to a swap partition with the given UUID.  See "
26313 "L</swapon-device> for other notes."
26314 msgstr ""
26315
26316 #. type: =head2
26317 #: ../fish/guestfish-actions.pod:4400
26318 msgid "sync"
26319 msgstr ""
26320
26321 #. type: verbatim
26322 #: ../fish/guestfish-actions.pod:4402
26323 #, no-wrap
26324 msgid ""
26325 " sync\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: =head2
26330 #: ../fish/guestfish-actions.pod:4410
26331 msgid "tail"
26332 msgstr ""
26333
26334 #. type: verbatim
26335 #: ../fish/guestfish-actions.pod:4412
26336 #, no-wrap
26337 msgid ""
26338 " tail path\n"
26339 "\n"
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../fish/guestfish-actions.pod:4420
26344 msgid "tail-n"
26345 msgstr ""
26346
26347 #. type: verbatim
26348 #: ../fish/guestfish-actions.pod:4422
26349 #, no-wrap
26350 msgid ""
26351 " tail-n nrlines path\n"
26352 "\n"
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../fish/guestfish-actions.pod:4435
26357 msgid "tar-in"
26358 msgstr ""
26359
26360 #. type: verbatim
26361 #: ../fish/guestfish-actions.pod:4437
26362 #, no-wrap
26363 msgid ""
26364 " tar-in (tarfile|-) directory\n"
26365 "\n"
26366 msgstr ""
26367
26368 #. type: textblock
26369 #: ../fish/guestfish-actions.pod:4442
26370 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
26371 msgstr ""
26372
26373 #. type: =head2
26374 #: ../fish/guestfish-actions.pod:4447
26375 msgid "tar-out"
26376 msgstr ""
26377
26378 #. type: verbatim
26379 #: ../fish/guestfish-actions.pod:4449
26380 #, no-wrap
26381 msgid ""
26382 " tar-out directory (tarfile|-)\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: textblock
26387 #: ../fish/guestfish-actions.pod:4454
26388 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
26389 msgstr ""
26390
26391 #. type: =head2
26392 #: ../fish/guestfish-actions.pod:4459
26393 msgid "tgz-in"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../fish/guestfish-actions.pod:4461
26398 #, no-wrap
26399 msgid ""
26400 " tgz-in (tarball|-) directory\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../fish/guestfish-actions.pod:4466
26406 msgid "To upload an uncompressed tarball, use L</tar-in>."
26407 msgstr ""
26408
26409 #. type: =head2
26410 #: ../fish/guestfish-actions.pod:4470
26411 msgid "tgz-out"
26412 msgstr ""
26413
26414 #. type: verbatim
26415 #: ../fish/guestfish-actions.pod:4472
26416 #, no-wrap
26417 msgid ""
26418 " tgz-out directory (tarball|-)\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../fish/guestfish-actions.pod:4477
26424 msgid "To download an uncompressed tarball, use L</tar-out>."
26425 msgstr ""
26426
26427 #. type: =head2
26428 #: ../fish/guestfish-actions.pod:4481
26429 msgid "touch"
26430 msgstr ""
26431
26432 #. type: verbatim
26433 #: ../fish/guestfish-actions.pod:4483
26434 #, no-wrap
26435 msgid ""
26436 " touch path\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../fish/guestfish-actions.pod:4492
26442 msgid "truncate"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../fish/guestfish-actions.pod:4494
26447 #, no-wrap
26448 msgid ""
26449 " truncate path\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../fish/guestfish-actions.pod:4499
26455 msgid "truncate-size"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../fish/guestfish-actions.pod:4501
26460 #, no-wrap
26461 msgid ""
26462 " truncate-size path size\n"
26463 "\n"
26464 msgstr ""
26465
26466 #. type: textblock
26467 #: ../fish/guestfish-actions.pod:4506
26468 msgid ""
26469 "If the current file size is less than C<size> then the file is extended to "
26470 "the required size with zero bytes.  This creates a sparse file (ie. disk "
26471 "blocks are not allocated for the file until you write to it).  To create a "
26472 "non-sparse file of zeroes, use L</fallocate64> instead."
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../fish/guestfish-actions.pod:4512
26477 msgid "tune2fs-l"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../fish/guestfish-actions.pod:4514
26482 #, no-wrap
26483 msgid ""
26484 " tune2fs-l device\n"
26485 "\n"
26486 msgstr ""
26487
26488 #. type: =head2
26489 #: ../fish/guestfish-actions.pod:4524
26490 msgid "txz-in"
26491 msgstr ""
26492
26493 #. type: verbatim
26494 #: ../fish/guestfish-actions.pod:4526
26495 #, no-wrap
26496 msgid ""
26497 " txz-in (tarball|-) directory\n"
26498 "\n"
26499 msgstr ""
26500
26501 #. type: =head2
26502 #: ../fish/guestfish-actions.pod:4533
26503 msgid "txz-out"
26504 msgstr ""
26505
26506 #. type: verbatim
26507 #: ../fish/guestfish-actions.pod:4535
26508 #, no-wrap
26509 msgid ""
26510 " txz-out directory (tarball|-)\n"
26511 "\n"
26512 msgstr ""
26513
26514 #. type: =head2
26515 #: ../fish/guestfish-actions.pod:4542
26516 msgid "umask"
26517 msgstr ""
26518
26519 #. type: verbatim
26520 #: ../fish/guestfish-actions.pod:4544
26521 #, no-wrap
26522 msgid ""
26523 " umask mask\n"
26524 "\n"
26525 msgstr ""
26526
26527 #. type: textblock
26528 #: ../fish/guestfish-actions.pod:4558
26529 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../fish/guestfish-actions.pod:4563
26534 msgid "umount"
26535 msgstr ""
26536
26537 #. type: =head2
26538 #: ../fish/guestfish-actions.pod:4565
26539 msgid "unmount"
26540 msgstr ""
26541
26542 #. type: verbatim
26543 #: ../fish/guestfish-actions.pod:4567
26544 #, no-wrap
26545 msgid ""
26546 " umount pathordevice\n"
26547 "\n"
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../fish/guestfish-actions.pod:4573
26552 msgid "umount-all"
26553 msgstr ""
26554
26555 #. type: =head2
26556 #: ../fish/guestfish-actions.pod:4575
26557 msgid "unmount-all"
26558 msgstr ""
26559
26560 #. type: verbatim
26561 #: ../fish/guestfish-actions.pod:4577
26562 #, no-wrap
26563 msgid ""
26564 " umount-all\n"
26565 "\n"
26566 msgstr ""
26567
26568 #. type: =head2
26569 #: ../fish/guestfish-actions.pod:4583
26570 msgid "upload"
26571 msgstr ""
26572
26573 #. type: verbatim
26574 #: ../fish/guestfish-actions.pod:4585
26575 #, no-wrap
26576 msgid ""
26577 " upload (filename|-) remotefilename\n"
26578 "\n"
26579 msgstr ""
26580
26581 #. type: textblock
26582 #: ../fish/guestfish-actions.pod:4592
26583 msgid "See also L</download>."
26584 msgstr ""
26585
26586 #. type: =head2
26587 #: ../fish/guestfish-actions.pod:4596
26588 msgid "upload-offset"
26589 msgstr ""
26590
26591 #. type: verbatim
26592 #: ../fish/guestfish-actions.pod:4598
26593 #, no-wrap
26594 msgid ""
26595 " upload-offset (filename|-) remotefilename offset\n"
26596 "\n"
26597 msgstr ""
26598
26599 #. type: textblock
26600 #: ../fish/guestfish-actions.pod:4610
26601 msgid ""
26602 "Note that there is no limit on the amount of data that can be uploaded with "
26603 "this call, unlike with L</pwrite>, and this call always writes the full "
26604 "amount unless an error occurs."
26605 msgstr ""
26606
26607 #. type: textblock
26608 #: ../fish/guestfish-actions.pod:4615
26609 msgid "See also L</upload>, L</pwrite>."
26610 msgstr ""
26611
26612 #. type: =head2
26613 #: ../fish/guestfish-actions.pod:4619
26614 msgid "utimens"
26615 msgstr ""
26616
26617 #. type: verbatim
26618 #: ../fish/guestfish-actions.pod:4621
26619 #, no-wrap
26620 msgid ""
26621 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
26622 "\n"
26623 msgstr ""
26624
26625 #. type: =head2
26626 #: ../fish/guestfish-actions.pod:4640
26627 msgid "version"
26628 msgstr ""
26629
26630 #. type: verbatim
26631 #: ../fish/guestfish-actions.pod:4642
26632 #, no-wrap
26633 msgid ""
26634 " version\n"
26635 "\n"
26636 msgstr ""
26637
26638 #. type: textblock
26639 #: ../fish/guestfish-actions.pod:4669
26640 msgid ""
26641 "I<Note:> Don't use this call to test for availability of features.  In "
26642 "enterprise distributions we backport features from later versions into "
26643 "earlier versions, making this an unreliable way to test for features.  Use "
26644 "L</available> instead."
26645 msgstr ""
26646
26647 #. type: =head2
26648 #: ../fish/guestfish-actions.pod:4675
26649 msgid "vfs-label"
26650 msgstr ""
26651
26652 #. type: verbatim
26653 #: ../fish/guestfish-actions.pod:4677
26654 #, no-wrap
26655 msgid ""
26656 " vfs-label device\n"
26657 "\n"
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../fish/guestfish-actions.pod:4684
26662 msgid "To find a filesystem from the label, use L</findfs-label>."
26663 msgstr ""
26664
26665 #. type: =head2
26666 #: ../fish/guestfish-actions.pod:4686
26667 msgid "vfs-type"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../fish/guestfish-actions.pod:4688
26672 #, no-wrap
26673 msgid ""
26674 " vfs-type device\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: =head2
26679 #: ../fish/guestfish-actions.pod:4698
26680 msgid "vfs-uuid"
26681 msgstr ""
26682
26683 #. type: verbatim
26684 #: ../fish/guestfish-actions.pod:4700
26685 #, no-wrap
26686 msgid ""
26687 " vfs-uuid device\n"
26688 "\n"
26689 msgstr ""
26690
26691 #. type: textblock
26692 #: ../fish/guestfish-actions.pod:4707
26693 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
26694 msgstr ""
26695
26696 #. type: =head2
26697 #: ../fish/guestfish-actions.pod:4709
26698 msgid "vg-activate"
26699 msgstr ""
26700
26701 #. type: verbatim
26702 #: ../fish/guestfish-actions.pod:4711
26703 #, no-wrap
26704 msgid ""
26705 " vg-activate true|false 'volgroups ...'\n"
26706 "\n"
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../fish/guestfish-actions.pod:4724
26711 msgid "vg-activate-all"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../fish/guestfish-actions.pod:4726
26716 #, no-wrap
26717 msgid ""
26718 " vg-activate-all true|false\n"
26719 "\n"
26720 msgstr ""
26721
26722 #. type: =head2
26723 #: ../fish/guestfish-actions.pod:4736
26724 msgid "vgcreate"
26725 msgstr ""
26726
26727 #. type: verbatim
26728 #: ../fish/guestfish-actions.pod:4738
26729 #, no-wrap
26730 msgid ""
26731 " vgcreate volgroup 'physvols ...'\n"
26732 "\n"
26733 msgstr ""
26734
26735 #. type: =head2
26736 #: ../fish/guestfish-actions.pod:4743
26737 msgid "vglvuuids"
26738 msgstr ""
26739
26740 #. type: verbatim
26741 #: ../fish/guestfish-actions.pod:4745
26742 #, no-wrap
26743 msgid ""
26744 " vglvuuids vgname\n"
26745 "\n"
26746 msgstr ""
26747
26748 #. type: textblock
26749 #: ../fish/guestfish-actions.pod:4750
26750 msgid ""
26751 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
26752 "logical volumes and volume groups."
26753 msgstr ""
26754
26755 #. type: textblock
26756 #: ../fish/guestfish-actions.pod:4753
26757 msgid "See also L</vgpvuuids>."
26758 msgstr ""
26759
26760 #. type: =head2
26761 #: ../fish/guestfish-actions.pod:4755
26762 msgid "vgpvuuids"
26763 msgstr ""
26764
26765 #. type: verbatim
26766 #: ../fish/guestfish-actions.pod:4757
26767 #, no-wrap
26768 msgid ""
26769 " vgpvuuids vgname\n"
26770 "\n"
26771 msgstr ""
26772
26773 #. type: textblock
26774 #: ../fish/guestfish-actions.pod:4762
26775 msgid ""
26776 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
26777 "physical volumes and volume groups."
26778 msgstr ""
26779
26780 #. type: textblock
26781 #: ../fish/guestfish-actions.pod:4765
26782 msgid "See also L</vglvuuids>."
26783 msgstr ""
26784
26785 #. type: =head2
26786 #: ../fish/guestfish-actions.pod:4767
26787 msgid "vgremove"
26788 msgstr ""
26789
26790 #. type: verbatim
26791 #: ../fish/guestfish-actions.pod:4769
26792 #, no-wrap
26793 msgid ""
26794 " vgremove vgname\n"
26795 "\n"
26796 msgstr ""
26797
26798 #. type: =head2
26799 #: ../fish/guestfish-actions.pod:4776
26800 msgid "vgrename"
26801 msgstr ""
26802
26803 #. type: verbatim
26804 #: ../fish/guestfish-actions.pod:4778
26805 #, no-wrap
26806 msgid ""
26807 " vgrename volgroup newvolgroup\n"
26808 "\n"
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../fish/guestfish-actions.pod:4782
26813 msgid "vgs"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../fish/guestfish-actions.pod:4784
26818 #, no-wrap
26819 msgid ""
26820 " vgs\n"
26821 "\n"
26822 msgstr ""
26823
26824 #. type: textblock
26825 #: ../fish/guestfish-actions.pod:4792
26826 msgid "See also L</vgs-full>."
26827 msgstr ""
26828
26829 #. type: =head2
26830 #: ../fish/guestfish-actions.pod:4794
26831 msgid "vgs-full"
26832 msgstr ""
26833
26834 #. type: verbatim
26835 #: ../fish/guestfish-actions.pod:4796
26836 #, no-wrap
26837 msgid ""
26838 " vgs-full\n"
26839 "\n"
26840 msgstr ""
26841
26842 #. type: =head2
26843 #: ../fish/guestfish-actions.pod:4801
26844 msgid "vgscan"
26845 msgstr ""
26846
26847 #. type: verbatim
26848 #: ../fish/guestfish-actions.pod:4803
26849 #, no-wrap
26850 msgid ""
26851 " vgscan\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: =head2
26856 #: ../fish/guestfish-actions.pod:4808
26857 msgid "vguuid"
26858 msgstr ""
26859
26860 #. type: verbatim
26861 #: ../fish/guestfish-actions.pod:4810
26862 #, no-wrap
26863 msgid ""
26864 " vguuid vgname\n"
26865 "\n"
26866 msgstr ""
26867
26868 #. type: =head2
26869 #: ../fish/guestfish-actions.pod:4814
26870 msgid "wc-c"
26871 msgstr ""
26872
26873 #. type: verbatim
26874 #: ../fish/guestfish-actions.pod:4816
26875 #, no-wrap
26876 msgid ""
26877 " wc-c path\n"
26878 "\n"
26879 msgstr ""
26880
26881 #. type: =head2
26882 #: ../fish/guestfish-actions.pod:4821
26883 msgid "wc-l"
26884 msgstr ""
26885
26886 #. type: verbatim
26887 #: ../fish/guestfish-actions.pod:4823
26888 #, no-wrap
26889 msgid ""
26890 " wc-l path\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../fish/guestfish-actions.pod:4828
26896 msgid "wc-w"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../fish/guestfish-actions.pod:4830
26901 #, no-wrap
26902 msgid ""
26903 " wc-w path\n"
26904 "\n"
26905 msgstr ""
26906
26907 #. type: =head2
26908 #: ../fish/guestfish-actions.pod:4835
26909 msgid "write"
26910 msgstr ""
26911
26912 #. type: verbatim
26913 #: ../fish/guestfish-actions.pod:4837
26914 #, no-wrap
26915 msgid ""
26916 " write path content\n"
26917 "\n"
26918 msgstr ""
26919
26920 #. type: =head2
26921 #: ../fish/guestfish-actions.pod:4845
26922 msgid "write-file"
26923 msgstr ""
26924
26925 #. type: verbatim
26926 #: ../fish/guestfish-actions.pod:4847
26927 #, no-wrap
26928 msgid ""
26929 " write-file path content size\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../fish/guestfish-actions.pod:4870
26935 msgid "zegrep"
26936 msgstr ""
26937
26938 #. type: verbatim
26939 #: ../fish/guestfish-actions.pod:4872
26940 #, no-wrap
26941 msgid ""
26942 " zegrep regex path\n"
26943 "\n"
26944 msgstr ""
26945
26946 #. type: =head2
26947 #: ../fish/guestfish-actions.pod:4880
26948 msgid "zegrepi"
26949 msgstr ""
26950
26951 #. type: verbatim
26952 #: ../fish/guestfish-actions.pod:4882
26953 #, no-wrap
26954 msgid ""
26955 " zegrepi regex path\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../fish/guestfish-actions.pod:4890
26961 msgid "zero"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../fish/guestfish-actions.pod:4892
26966 #, no-wrap
26967 msgid ""
26968 " zero device\n"
26969 "\n"
26970 msgstr ""
26971
26972 #. type: textblock
26973 #: ../fish/guestfish-actions.pod:4900
26974 msgid "See also: L</zero-device>, L</scrub-device>."
26975 msgstr ""
26976
26977 #. type: =head2
26978 #: ../fish/guestfish-actions.pod:4902
26979 msgid "zero-device"
26980 msgstr ""
26981
26982 #. type: verbatim
26983 #: ../fish/guestfish-actions.pod:4904
26984 #, no-wrap
26985 msgid ""
26986 " zero-device device\n"
26987 "\n"
26988 msgstr ""
26989
26990 #. type: textblock
26991 #: ../fish/guestfish-actions.pod:4906
26992 msgid ""
26993 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
26994 "which just zeroes the first few blocks of a device."
26995 msgstr ""
26996
26997 #. type: =head2
26998 #: ../fish/guestfish-actions.pod:4913
26999 msgid "zerofree"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../fish/guestfish-actions.pod:4915
27004 #, no-wrap
27005 msgid ""
27006 " zerofree device\n"
27007 "\n"
27008 msgstr ""
27009
27010 #. type: =head2
27011 #: ../fish/guestfish-actions.pod:4928
27012 msgid "zfgrep"
27013 msgstr ""
27014
27015 #. type: verbatim
27016 #: ../fish/guestfish-actions.pod:4930
27017 #, no-wrap
27018 msgid ""
27019 " zfgrep pattern path\n"
27020 "\n"
27021 msgstr ""
27022
27023 #. type: =head2
27024 #: ../fish/guestfish-actions.pod:4938
27025 msgid "zfgrepi"
27026 msgstr ""
27027
27028 #. type: verbatim
27029 #: ../fish/guestfish-actions.pod:4940
27030 #, no-wrap
27031 msgid ""
27032 " zfgrepi pattern path\n"
27033 "\n"
27034 msgstr ""
27035
27036 #. type: =head2
27037 #: ../fish/guestfish-actions.pod:4948
27038 msgid "zfile"
27039 msgstr ""
27040
27041 #. type: verbatim
27042 #: ../fish/guestfish-actions.pod:4950
27043 #, no-wrap
27044 msgid ""
27045 " zfile meth path\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../fish/guestfish-actions.pod:4957
27051 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
27052 msgstr ""
27053
27054 #. type: =head2
27055 #: ../fish/guestfish-actions.pod:4967
27056 msgid "zgrep"
27057 msgstr ""
27058
27059 #. type: verbatim
27060 #: ../fish/guestfish-actions.pod:4969
27061 #, no-wrap
27062 msgid ""
27063 " zgrep regex path\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../fish/guestfish-actions.pod:4977
27069 msgid "zgrepi"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../fish/guestfish-actions.pod:4979
27074 #, no-wrap
27075 msgid ""
27076 " zgrepi regex path\n"
27077 "\n"
27078 msgstr ""
27079
27080 #. type: =head2
27081 #: ../fish/guestfish-commands.pod:1
27082 msgid "alloc"
27083 msgstr ""
27084
27085 #. type: =head2
27086 #: ../fish/guestfish-commands.pod:3
27087 msgid "allocate"
27088 msgstr ""
27089
27090 #. type: verbatim
27091 #: ../fish/guestfish-commands.pod:5
27092 #, no-wrap
27093 msgid ""
27094 " alloc filename size\n"
27095 "\n"
27096 msgstr ""
27097
27098 #. type: textblock
27099 #: ../fish/guestfish-commands.pod:7
27100 msgid ""
27101 "This creates an empty (zeroed) file of the given size, and then adds so it "
27102 "can be further examined."
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
27107 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
27108 msgstr ""
27109
27110 #. type: textblock
27111 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
27112 msgid "Size can be specified using standard suffixes, eg. C<1M>."
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../fish/guestfish-commands.pod:14
27117 msgid ""
27118 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
27119 "image, see L</PREPARED DISK IMAGES>."
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../fish/guestfish-commands.pod:17
27124 msgid "copy-in"
27125 msgstr ""
27126
27127 #. type: verbatim
27128 #: ../fish/guestfish-commands.pod:19
27129 #, no-wrap
27130 msgid ""
27131 " copy-in local [local ...] /remotedir\n"
27132 "\n"
27133 msgstr ""
27134
27135 #. type: textblock
27136 #: ../fish/guestfish-commands.pod:21
27137 msgid ""
27138 "C<copy-in> copies local files or directories recursively into the disk "
27139 "image, placing them in the directory called C</remotedir> (which must "
27140 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
27141 "other commands as necessary."
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../fish/guestfish-commands.pod:26
27146 msgid ""
27147 "Multiple local files and directories can be specified, but the last "
27148 "parameter must always be a remote directory.  Wildcards cannot be used."
27149 msgstr ""
27150
27151 #. type: =head2
27152 #: ../fish/guestfish-commands.pod:30
27153 msgid "copy-out"
27154 msgstr ""
27155
27156 #. type: verbatim
27157 #: ../fish/guestfish-commands.pod:32
27158 #, no-wrap
27159 msgid ""
27160 " copy-out remote [remote ...] localdir\n"
27161 "\n"
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../fish/guestfish-commands.pod:34
27166 msgid ""
27167 "C<copy-out> copies remote files or directories recursively out of the disk "
27168 "image, placing them on the host disk in a local directory called C<localdir> "
27169 "(which must exist).  This guestfish meta-command turns into a sequence of "
27170 "L</download>, L</tar-out> and other commands as necessary."
27171 msgstr ""
27172
27173 #. type: textblock
27174 #: ../fish/guestfish-commands.pod:40
27175 msgid ""
27176 "Multiple remote files and directories can be specified, but the last "
27177 "parameter must always be a local directory.  To download to the current "
27178 "directory, use C<.> as in:"
27179 msgstr ""
27180
27181 #. type: verbatim
27182 #: ../fish/guestfish-commands.pod:44
27183 #, no-wrap
27184 msgid ""
27185 " copy-out /home .\n"
27186 "\n"
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../fish/guestfish-commands.pod:46
27191 msgid ""
27192 "Wildcards cannot be used in the ordinary command, but you can use them with "
27193 "the help of L</glob> like this:"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../fish/guestfish-commands.pod:49
27198 #, no-wrap
27199 msgid ""
27200 " glob copy-out /home/* .\n"
27201 "\n"
27202 msgstr ""
27203
27204 #. type: =head2
27205 #: ../fish/guestfish-commands.pod:51
27206 msgid "echo"
27207 msgstr ""
27208
27209 #. type: verbatim
27210 #: ../fish/guestfish-commands.pod:53
27211 #, no-wrap
27212 msgid ""
27213 " echo [params ...]\n"
27214 "\n"
27215 msgstr ""
27216
27217 #. type: textblock
27218 #: ../fish/guestfish-commands.pod:55
27219 msgid "This echos the parameters to the terminal."
27220 msgstr ""
27221
27222 #. type: =head2
27223 #: ../fish/guestfish-commands.pod:57
27224 msgid "edit"
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../fish/guestfish-commands.pod:59
27229 msgid "vi"
27230 msgstr ""
27231
27232 #. type: =head2
27233 #: ../fish/guestfish-commands.pod:61
27234 msgid "emacs"
27235 msgstr ""
27236
27237 #. type: verbatim
27238 #: ../fish/guestfish-commands.pod:63
27239 #, no-wrap
27240 msgid ""
27241 " edit filename\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: textblock
27246 #: ../fish/guestfish-commands.pod:65
27247 msgid ""
27248 "This is used to edit a file.  It downloads the file, edits it locally using "
27249 "your editor, then uploads the result."
27250 msgstr ""
27251
27252 #. type: textblock
27253 #: ../fish/guestfish-commands.pod:68
27254 msgid ""
27255 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
27256 "or C<emacs> you will get those corresponding editors."
27257 msgstr ""
27258
27259 #. type: =head2
27260 #: ../fish/guestfish-commands.pod:72
27261 msgid "glob"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../fish/guestfish-commands.pod:74
27266 #, no-wrap
27267 msgid ""
27268 " glob command args...\n"
27269 "\n"
27270 msgstr ""
27271
27272 #. type: textblock
27273 #: ../fish/guestfish-commands.pod:76
27274 msgid ""
27275 "Expand wildcards in any paths in the args list, and run C<command> "
27276 "repeatedly on each matching path."
27277 msgstr ""
27278
27279 #. type: textblock
27280 #: ../fish/guestfish-commands.pod:79
27281 msgid "See L</WILDCARDS AND GLOBBING>."
27282 msgstr ""
27283
27284 #. type: =head2
27285 #: ../fish/guestfish-commands.pod:81
27286 msgid "hexedit"
27287 msgstr ""
27288
27289 #. type: verbatim
27290 #: ../fish/guestfish-commands.pod:83
27291 #, no-wrap
27292 msgid ""
27293 " hexedit <filename|device>\n"
27294 " hexedit <filename|device> <max>\n"
27295 " hexedit <filename|device> <start> <max>\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../fish/guestfish-commands.pod:87
27301 msgid ""
27302 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
27303 "device."
27304 msgstr ""
27305
27306 #. type: textblock
27307 #: ../fish/guestfish-commands.pod:90
27308 msgid ""
27309 "This command works by downloading potentially the whole file or device, "
27310 "editing it locally, then uploading it.  If the file or device is large, you "
27311 "have to specify which part you wish to edit by using C<max> and/or C<start> "
27312 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
27313 "usual modifiers allowed such as C<1M> (1 megabyte)."
27314 msgstr ""
27315
27316 #. type: textblock
27317 #: ../fish/guestfish-commands.pod:97
27318 msgid "For example to edit the first few sectors of a disk you might do:"
27319 msgstr ""
27320
27321 #. type: verbatim
27322 #: ../fish/guestfish-commands.pod:100
27323 #, no-wrap
27324 msgid ""
27325 " hexedit /dev/sda 1M\n"
27326 "\n"
27327 msgstr ""
27328
27329 #. type: textblock
27330 #: ../fish/guestfish-commands.pod:102
27331 msgid ""
27332 "which would allow you to edit anywhere within the first megabyte of the "
27333 "disk."
27334 msgstr ""
27335
27336 #. type: textblock
27337 #: ../fish/guestfish-commands.pod:105
27338 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
27339 msgstr ""
27340
27341 #. type: verbatim
27342 #: ../fish/guestfish-commands.pod:107
27343 #, no-wrap
27344 msgid ""
27345 " hexedit /dev/sda1 0x400 0x400\n"
27346 "\n"
27347 msgstr ""
27348
27349 #. type: textblock
27350 #: ../fish/guestfish-commands.pod:109
27351 msgid "(assuming the superblock is in the standard location)."
27352 msgstr ""
27353
27354 #. type: textblock
27355 #: ../fish/guestfish-commands.pod:111
27356 msgid ""
27357 "This command requires the external L<hexedit(1)> program.  You can specify "
27358 "another program to use by setting the C<HEXEDITOR> environment variable."
27359 msgstr ""
27360
27361 #. type: textblock
27362 #: ../fish/guestfish-commands.pod:115
27363 msgid "See also L</hexdump>."
27364 msgstr ""
27365
27366 #. type: =head2
27367 #: ../fish/guestfish-commands.pod:117
27368 msgid "lcd"
27369 msgstr ""
27370
27371 #. type: verbatim
27372 #: ../fish/guestfish-commands.pod:119
27373 #, no-wrap
27374 msgid ""
27375 " lcd directory\n"
27376 "\n"
27377 msgstr ""
27378
27379 #. type: textblock
27380 #: ../fish/guestfish-commands.pod:121
27381 msgid "Change the local directory, ie. the current directory of guestfish itself."
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../fish/guestfish-commands.pod:124
27386 msgid "Note that C<!cd> won't do what you might expect."
27387 msgstr ""
27388
27389 #. type: =head2
27390 #: ../fish/guestfish-commands.pod:126
27391 msgid "man"
27392 msgstr ""
27393
27394 #. type: =head2
27395 #: ../fish/guestfish-commands.pod:128
27396 msgid "manual"
27397 msgstr ""
27398
27399 #. type: verbatim
27400 #: ../fish/guestfish-commands.pod:130
27401 #, no-wrap
27402 msgid ""
27403 "  man\n"
27404 "\n"
27405 msgstr ""
27406
27407 #. type: textblock
27408 #: ../fish/guestfish-commands.pod:132
27409 msgid "Opens the manual page for guestfish."
27410 msgstr ""
27411
27412 #. type: =head2
27413 #: ../fish/guestfish-commands.pod:134
27414 msgid "more"
27415 msgstr ""
27416
27417 #. type: =head2
27418 #: ../fish/guestfish-commands.pod:136
27419 msgid "less"
27420 msgstr ""
27421
27422 #. type: verbatim
27423 #: ../fish/guestfish-commands.pod:138
27424 #, no-wrap
27425 msgid ""
27426 " more filename\n"
27427 "\n"
27428 msgstr ""
27429
27430 #. type: verbatim
27431 #: ../fish/guestfish-commands.pod:140
27432 #, no-wrap
27433 msgid ""
27434 " less filename\n"
27435 "\n"
27436 msgstr ""
27437
27438 #. type: textblock
27439 #: ../fish/guestfish-commands.pod:142
27440 msgid "This is used to view a file."
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../fish/guestfish-commands.pod:144
27445 msgid ""
27446 "The default viewer is C<$PAGER>.  However if you use the alternate command "
27447 "C<less> you will get the C<less> command specifically."
27448 msgstr ""
27449
27450 #. type: =head2
27451 #: ../fish/guestfish-commands.pod:147
27452 msgid "reopen"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../fish/guestfish-commands.pod:149
27457 #, no-wrap
27458 msgid ""
27459 "  reopen\n"
27460 "\n"
27461 msgstr ""
27462
27463 #. type: textblock
27464 #: ../fish/guestfish-commands.pod:151
27465 msgid ""
27466 "Close and reopen the libguestfs handle.  It is not necessary to use this "
27467 "normally, because the handle is closed properly when guestfish exits.  "
27468 "However this is occasionally useful for testing."
27469 msgstr ""
27470
27471 #. type: =head2
27472 #: ../fish/guestfish-commands.pod:155
27473 msgid "sparse"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../fish/guestfish-commands.pod:157
27478 #, no-wrap
27479 msgid ""
27480 " sparse filename size\n"
27481 "\n"
27482 msgstr ""
27483
27484 #. type: textblock
27485 #: ../fish/guestfish-commands.pod:159
27486 msgid ""
27487 "This creates an empty sparse file of the given size, and then adds so it can "
27488 "be further examined."
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../fish/guestfish-commands.pod:162
27493 msgid ""
27494 "In all respects it works the same as the L</alloc> command, except that the "
27495 "image file is allocated sparsely, which means that disk blocks are not "
27496 "assigned to the file until they are needed.  Sparse disk files only use "
27497 "space when written to, but they are slower and there is a danger you could "
27498 "run out of real disk space during a write operation."
27499 msgstr ""
27500
27501 #. type: =head2
27502 #: ../fish/guestfish-commands.pod:172
27503 msgid "supported"
27504 msgstr ""
27505
27506 #. type: verbatim
27507 #: ../fish/guestfish-commands.pod:174
27508 #, no-wrap
27509 msgid ""
27510 " supported\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: textblock
27515 #: ../fish/guestfish-commands.pod:176
27516 msgid ""
27517 "This command returns a list of the optional groups known to the daemon, and "
27518 "indicates which ones are supported by this build of the libguestfs "
27519 "appliance."
27520 msgstr ""
27521
27522 #. type: textblock
27523 #: ../fish/guestfish-commands.pod:180
27524 msgid "See also L<guestfs(3)/AVAILABILITY>."
27525 msgstr ""
27526
27527 #. type: =head2
27528 #: ../fish/guestfish-commands.pod:182
27529 msgid "time"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../fish/guestfish-commands.pod:184
27534 #, no-wrap
27535 msgid ""
27536 " time command args...\n"
27537 "\n"
27538 msgstr ""
27539
27540 #. type: textblock
27541 #: ../fish/guestfish-commands.pod:186
27542 msgid ""
27543 "Run the command as usual, but print the elapsed time afterwards.  This can "
27544 "be useful for benchmarking operations."
27545 msgstr ""
27546
27547 #. type: textblock
27548 #: ../test-tool/libguestfs-test-tool.pod:5
27549 msgid "libguestfs-test-tool - End user tests for libguestfs"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../test-tool/libguestfs-test-tool.pod:9
27554 #, no-wrap
27555 msgid ""
27556 " libguestfs-test-tool [--options]\n"
27557 "\n"
27558 msgstr ""
27559
27560 #. type: textblock
27561 #: ../test-tool/libguestfs-test-tool.pod:13
27562 msgid ""
27563 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
27564 "and developers, to allow them to check basic libguestfs functionality is "
27565 "working.  This is needed because libguestfs occasionally breaks for reasons "
27566 "beyond our control: usually because of changes in the underlying qemu or "
27567 "kernel packages, or the host environment."
27568 msgstr ""
27569
27570 #. type: textblock
27571 #: ../test-tool/libguestfs-test-tool.pod:20
27572 msgid "If you suspect a problem in libguestfs, then just run:"
27573 msgstr ""
27574
27575 #. type: verbatim
27576 #: ../test-tool/libguestfs-test-tool.pod:22
27577 #, no-wrap
27578 msgid ""
27579 " libguestfs-test-tool\n"
27580 "\n"
27581 msgstr ""
27582
27583 #. type: textblock
27584 #: ../test-tool/libguestfs-test-tool.pod:24
27585 msgid "It will print lots of diagnostic messages."
27586 msgstr ""
27587
27588 #. type: textblock
27589 #: ../test-tool/libguestfs-test-tool.pod:26
27590 msgid "If it runs to completion successfully, you will see this near the end:"
27591 msgstr ""
27592
27593 #. type: verbatim
27594 #: ../test-tool/libguestfs-test-tool.pod:28
27595 #, no-wrap
27596 msgid ""
27597 " ===== TEST FINISHED OK =====\n"
27598 "\n"
27599 msgstr ""
27600
27601 #. type: textblock
27602 #: ../test-tool/libguestfs-test-tool.pod:30
27603 msgid "and the test tool will exit with code 0."
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../test-tool/libguestfs-test-tool.pod:32
27608 msgid ""
27609 "If it fails (and/or exits with non-zero error code), please paste the "
27610 "B<complete, unedited> output of the test tool into a bug report.  More "
27611 "information about reporting bugs can be found on the "
27612 "L<http://libguestfs.org/> website."
27613 msgstr ""
27614
27615 #. type: =item
27616 #: ../test-tool/libguestfs-test-tool.pod:41
27617 msgid "I<--help>"
27618 msgstr ""
27619
27620 #. type: textblock
27621 #: ../test-tool/libguestfs-test-tool.pod:43
27622 msgid "Display short usage information and exit."
27623 msgstr ""
27624
27625 #. type: =item
27626 #: ../test-tool/libguestfs-test-tool.pod:45
27627 msgid "I<--qemu qemu_binary>"
27628 msgstr ""
27629
27630 #. type: textblock
27631 #: ../test-tool/libguestfs-test-tool.pod:47
27632 msgid ""
27633 "If you have downloaded another qemu binary, point this option at the full "
27634 "path of the binary to try it."
27635 msgstr ""
27636
27637 #. type: =item
27638 #: ../test-tool/libguestfs-test-tool.pod:50
27639 msgid "I<--qemudir qemu_source_dir>"
27640 msgstr ""
27641
27642 #. type: textblock
27643 #: ../test-tool/libguestfs-test-tool.pod:52
27644 msgid ""
27645 "If you have compiled qemu from source, point this option at the source "
27646 "directory to try it."
27647 msgstr ""
27648
27649 #. type: =item
27650 #: ../test-tool/libguestfs-test-tool.pod:55
27651 msgid "I<--timeout N>"
27652 msgstr ""
27653
27654 #. type: textblock
27655 #: ../test-tool/libguestfs-test-tool.pod:57
27656 msgid ""
27657 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
27658 "does not usually need to be adjusted unless your machine is very slow."
27659 msgstr ""
27660
27661 #. type: =head1
27662 #: ../test-tool/libguestfs-test-tool.pod:63
27663 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
27664 msgstr ""
27665
27666 #. type: textblock
27667 #: ../test-tool/libguestfs-test-tool.pod:65
27668 msgid ""
27669 "If you have compiled another version of qemu from source and would like to "
27670 "try that, then you can use the I<--qemudir> option to point to the qemu "
27671 "source directory."
27672 msgstr ""
27673
27674 #. type: textblock
27675 #: ../test-tool/libguestfs-test-tool.pod:69
27676 msgid ""
27677 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
27678 "option to point to the binary."
27679 msgstr ""
27680
27681 #. type: textblock
27682 #: ../test-tool/libguestfs-test-tool.pod:72
27683 msgid ""
27684 "When using an alternate qemu with libguestfs, usually you would need to "
27685 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
27686 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
27687 "when you use either of the I<--qemudir> or I<--qemu> options."
27688 msgstr ""
27689
27690 #. type: textblock
27691 #: ../test-tool/libguestfs-test-tool.pod:79
27692 msgid ""
27693 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
27694 "I<1> if there was an error."
27695 msgstr ""
27696
27697 #. type: textblock
27698 #: ../test-tool/libguestfs-test-tool.pod:84
27699 msgid ""
27700 "For the full list of environment variables which may affect libguestfs, "
27701 "please see the L<guestfs(3)> manual page."
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../test-tool/libguestfs-test-tool.pod:89
27706 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
27707 msgstr ""
27708
27709 #. type: textblock
27710 #: ../fuse/guestmount.pod:5
27711 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
27712 msgstr ""
27713
27714 #. type: verbatim
27715 #: ../fuse/guestmount.pod:9
27716 #, no-wrap
27717 msgid ""
27718 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
27719 "\n"
27720 msgstr ""
27721
27722 #. type: verbatim
27723 #: ../fuse/guestmount.pod:11
27724 #, no-wrap
27725 msgid ""
27726 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
27727 "\n"
27728 msgstr ""
27729
27730 #. type: verbatim
27731 #: ../fuse/guestmount.pod:13
27732 #, no-wrap
27733 msgid ""
27734 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
27735 "\n"
27736 msgstr ""
27737
27738 #. type: textblock
27739 #: ../fuse/guestmount.pod:17
27740 msgid ""
27741 "You must I<not> use C<guestmount> in read-write mode on live virtual "
27742 "machines.  If you do this, you risk disk corruption in the VM."
27743 msgstr ""
27744
27745 #. type: textblock
27746 #: ../fuse/guestmount.pod:22
27747 msgid ""
27748 "The guestmount program can be used to mount virtual machine filesystems and "
27749 "other disk images on the host.  It uses libguestfs for access to the guest "
27750 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
27751 "a mountable device."
27752 msgstr ""
27753
27754 #. type: textblock
27755 #: ../fuse/guestmount.pod:27
27756 msgid ""
27757 "Along with other options, you have to give at least one device (I<-a> "
27758 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
27759 "option) or use the I<-i> inspection option.  How this works is better "
27760 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
27761 "below."
27762 msgstr ""
27763
27764 #. type: textblock
27765 #: ../fuse/guestmount.pod:33
27766 msgid ""
27767 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
27768 "by you, and the filesystem will not be visible to any other users unless you "
27769 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
27770 "the filesystem, use the C<fusermount -u> command."
27771 msgstr ""
27772
27773 #. type: textblock
27774 #: ../fuse/guestmount.pod:41
27775 msgid ""
27776 "For a typical Windows guest which has its main filesystem on the first "
27777 "partition:"
27778 msgstr ""
27779
27780 #. type: verbatim
27781 #: ../fuse/guestmount.pod:44
27782 #, no-wrap
27783 msgid ""
27784 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
27785 "\n"
27786 msgstr ""
27787
27788 #. type: textblock
27789 #: ../fuse/guestmount.pod:46
27790 msgid ""
27791 "For a typical Linux guest which has a /boot filesystem on the first "
27792 "partition, and the root filesystem on a logical volume:"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../fuse/guestmount.pod:49
27797 #, no-wrap
27798 msgid ""
27799 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
27800 "\n"
27801 msgstr ""
27802
27803 #. type: textblock
27804 #: ../fuse/guestmount.pod:51
27805 msgid "To get libguestfs to detect guest mountpoints for you:"
27806 msgstr ""
27807
27808 #. type: verbatim
27809 #: ../fuse/guestmount.pod:53
27810 #, no-wrap
27811 msgid ""
27812 " guestmount -a guest.img -i --ro /mnt\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../fuse/guestmount.pod:55
27818 msgid "For a libvirt guest called \"Guest\" you could do:"
27819 msgstr ""
27820
27821 #. type: verbatim
27822 #: ../fuse/guestmount.pod:57
27823 #, no-wrap
27824 msgid ""
27825 " guestmount -d Guest -i --ro /mnt\n"
27826 "\n"
27827 msgstr ""
27828
27829 #. type: textblock
27830 #: ../fuse/guestmount.pod:59
27831 msgid ""
27832 "If you don't know what filesystems are contained in a guest or disk image, "
27833 "use L<virt-filesystems(1)> first:"
27834 msgstr ""
27835
27836 #. type: verbatim
27837 #: ../fuse/guestmount.pod:62
27838 #, no-wrap
27839 msgid ""
27840 " virt-filesystems MyGuest\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../fuse/guestmount.pod:64
27846 msgid ""
27847 "If you want to trace the libguestfs calls but without excessive debugging "
27848 "information, we recommend:"
27849 msgstr ""
27850
27851 #. type: verbatim
27852 #: ../fuse/guestmount.pod:67
27853 #, no-wrap
27854 msgid ""
27855 " guestmount [...] --trace /mnt\n"
27856 "\n"
27857 msgstr ""
27858
27859 #. type: textblock
27860 #: ../fuse/guestmount.pod:69
27861 msgid "If you want to debug the program, we recommend:"
27862 msgstr ""
27863
27864 #. type: verbatim
27865 #: ../fuse/guestmount.pod:71
27866 #, no-wrap
27867 msgid ""
27868 " guestmount [...] --trace --verbose /mnt\n"
27869 "\n"
27870 msgstr ""
27871
27872 #. type: =item
27873 #: ../fuse/guestmount.pod:77
27874 msgid "B<-a image> | B<--add image>"
27875 msgstr ""
27876
27877 #. type: textblock
27878 #: ../fuse/guestmount.pod:79
27879 msgid "Add a block device or virtual machine image."
27880 msgstr ""
27881
27882 #. type: =item
27883 #: ../fuse/guestmount.pod:84
27884 msgid "B<-c URI> | B<--connect URI>"
27885 msgstr ""
27886
27887 #. type: =item
27888 #: ../fuse/guestmount.pod:90
27889 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
27890 msgstr ""
27891
27892 #. type: =item
27893 #: ../fuse/guestmount.pod:96
27894 msgid "B<--dir-cache-timeout N>"
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../fuse/guestmount.pod:98
27899 msgid ""
27900 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
27901 "seconds.  The readdir cache [actually, there are several semi-independent "
27902 "caches] is populated after a readdir(2) call with the stat and extended "
27903 "attributes of the files in the directory, in anticipation that they will be "
27904 "requested soon after."
27905 msgstr ""
27906
27907 #. type: textblock
27908 #: ../fuse/guestmount.pod:104
27909 msgid ""
27910 "There is also a different attribute cache implemented by FUSE (see the FUSE "
27911 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
27912 "requests, only cache existing ones."
27913 msgstr ""
27914
27915 #. type: =item
27916 #: ../fuse/guestmount.pod:115
27917 msgid "B<--format=raw|qcow2|..> | B<--format>"
27918 msgstr ""
27919
27920 #. type: textblock
27921 #: ../fuse/guestmount.pod:122
27922 msgid ""
27923 "If you have untrusted raw-format guest disk images, you should use this "
27924 "option to specify the disk format.  This avoids a possible security problem "
27925 "with malicious guests (CVE-2010-3851).  See also "
27926 "L<guestfs(3)/guestfs_add_drive_opts>."
27927 msgstr ""
27928
27929 #. type: =item
27930 #: ../fuse/guestmount.pod:127
27931 msgid "B<--fuse-help>"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../fuse/guestmount.pod:129
27936 msgid "Display help on special FUSE options (see I<-o> below)."
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../fuse/guestmount.pod:133
27941 msgid "Display brief help and exit."
27942 msgstr ""
27943
27944 #. type: =item
27945 #: ../fuse/guestmount.pod:135
27946 msgid "B<-i> | B<--inspector>"
27947 msgstr ""
27948
27949 #. type: textblock
27950 #: ../fuse/guestmount.pod:155
27951 msgid ""
27952 "Mount the named partition or logical volume on the given mountpoint B<in the "
27953 "guest> (this has nothing to do with mountpoints in the host)."
27954 msgstr ""
27955
27956 #. type: textblock
27957 #: ../fuse/guestmount.pod:158
27958 msgid ""
27959 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
27960 "something on C</>."
27961 msgstr ""
27962
27963 #. type: =item
27964 #: ../fuse/guestmount.pod:171
27965 msgid "B<-n> | B<--no-sync>"
27966 msgstr ""
27967
27968 #. type: textblock
27969 #: ../fuse/guestmount.pod:173
27970 msgid ""
27971 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
27972 "unmounted.  If you specify this option, then we don't attempt to sync the "
27973 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
27974 msgstr ""
27975
27976 #. type: =item
27977 #: ../fuse/guestmount.pod:178
27978 msgid "B<-o option> | B<--option option>"
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../fuse/guestmount.pod:180
27983 msgid "Pass extra options to FUSE."
27984 msgstr ""
27985
27986 #. type: textblock
27987 #: ../fuse/guestmount.pod:182
27988 msgid ""
27989 "To get a list of all the extra options supported by FUSE, use the command "
27990 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
27991 "of them are a good idea."
27992 msgstr ""
27993
27994 #. type: verbatim
27995 #: ../fuse/guestmount.pod:186
27996 #, no-wrap
27997 msgid ""
27998 " guestmount --fuse-help\n"
27999 "\n"
28000 msgstr ""
28001
28002 #. type: textblock
28003 #: ../fuse/guestmount.pod:188
28004 msgid "Some potentially useful FUSE options:"
28005 msgstr ""
28006
28007 #. type: =item
28008 #: ../fuse/guestmount.pod:192
28009 msgid "B<-o allow_other>"
28010 msgstr ""
28011
28012 #. type: textblock
28013 #: ../fuse/guestmount.pod:194
28014 msgid "Allow other users to see the filesystem."
28015 msgstr ""
28016
28017 #. type: =item
28018 #: ../fuse/guestmount.pod:196
28019 msgid "B<-o attr_timeout=N>"
28020 msgstr ""
28021
28022 #. type: textblock
28023 #: ../fuse/guestmount.pod:198
28024 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
28025 msgstr ""
28026
28027 #. type: =item
28028 #: ../fuse/guestmount.pod:200
28029 msgid "B<-o kernel_cache>"
28030 msgstr ""
28031
28032 #. type: textblock
28033 #: ../fuse/guestmount.pod:202
28034 msgid ""
28035 "Allow the kernel to cache files (reduces the number of reads that have to go "
28036 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
28037 "afford the extra memory usage."
28038 msgstr ""
28039
28040 #. type: =item
28041 #: ../fuse/guestmount.pod:206
28042 msgid "B<-o uid=N> B<-o gid=N>"
28043 msgstr ""
28044
28045 #. type: textblock
28046 #: ../fuse/guestmount.pod:208
28047 msgid ""
28048 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
28049 "the chosen values."
28050 msgstr ""
28051
28052 #. type: =item
28053 #: ../fuse/guestmount.pod:213
28054 msgid "B<-r> | B<--ro>"
28055 msgstr ""
28056
28057 #. type: textblock
28058 #: ../fuse/guestmount.pod:215
28059 msgid ""
28060 "Add devices and mount everything read-only.  Also disallow writes and make "
28061 "the disk appear read-only to FUSE."
28062 msgstr ""
28063
28064 #. type: textblock
28065 #: ../fuse/guestmount.pod:218
28066 msgid ""
28067 "This is highly recommended if you are not going to edit the guest disk.  If "
28068 "the guest is running and this option is I<not> supplied, then there is a "
28069 "strong risk of disk corruption in the guest.  We try to prevent this from "
28070 "happening, but it is not always possible."
28071 msgstr ""
28072
28073 #. type: textblock
28074 #: ../fuse/guestmount.pod:223
28075 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28076 msgstr ""
28077
28078 #. type: textblock
28079 #: ../fuse/guestmount.pod:227
28080 msgid "Enable SELinux support for the guest."
28081 msgstr ""
28082
28083 #. type: =item
28084 #: ../fuse/guestmount.pod:229
28085 msgid "B<-v> | B<--verbose>"
28086 msgstr ""
28087
28088 #. type: textblock
28089 #: ../fuse/guestmount.pod:231
28090 msgid "Enable verbose messages from underlying libguestfs."
28091 msgstr ""
28092
28093 #. type: =item
28094 #: ../fuse/guestmount.pod:233
28095 msgid "B<-V> | B<--version>"
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../fuse/guestmount.pod:235
28100 msgid "Display the program version and exit."
28101 msgstr ""
28102
28103 #. type: =item
28104 #: ../fuse/guestmount.pod:237
28105 msgid "B<-w> | B<--rw>"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
28110 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
28111 msgstr ""
28112
28113 #. type: =item
28114 #: ../fuse/guestmount.pod:244
28115 msgid "B<-x> | B<--trace>"
28116 msgstr ""
28117
28118 #. type: textblock
28119 #: ../fuse/guestmount.pod:246
28120 msgid "Trace libguestfs calls and entry into each FUSE function."
28121 msgstr ""
28122
28123 #. type: textblock
28124 #: ../fuse/guestmount.pod:248
28125 msgid "This also stops the daemon from forking into the background."
28126 msgstr ""
28127
28128 #. type: textblock
28129 #: ../fuse/guestmount.pod:269
28130 msgid ""
28131 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
28132 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
28133 "L<http://fuse.sf.net/>."
28134 msgstr ""
28135
28136 #. type: textblock
28137 #: ../fuse/guestmount.pod:284
28138 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
28139 msgstr ""
28140
28141 #. type: textblock
28142 #: ../tools/virt-edit.pl:34
28143 msgid "virt-edit - Edit a file in a virtual machine"
28144 msgstr ""
28145
28146 #. type: verbatim
28147 #: ../tools/virt-edit.pl:38
28148 #, no-wrap
28149 msgid ""
28150 " virt-edit [--options] domname file\n"
28151 "\n"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../tools/virt-edit.pl:40
28156 #, no-wrap
28157 msgid ""
28158 " virt-edit [--options] disk.img [disk.img ...] file\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: verbatim
28163 #: ../tools/virt-edit.pl:42
28164 #, no-wrap
28165 msgid ""
28166 " virt-edit [domname|disk.img] file -e 'expr'\n"
28167 "\n"
28168 msgstr ""
28169
28170 #. type: textblock
28171 #: ../tools/virt-edit.pl:46
28172 msgid ""
28173 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
28174 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
28175 "doing this, but doesn't catch all cases."
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../tools/virt-edit.pl:52
28180 msgid ""
28181 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
28182 "the named virtual machine (or disk image)."
28183 msgstr ""
28184
28185 #. type: textblock
28186 #: ../tools/virt-edit.pl:55
28187 msgid "If you want to just view a file, use L<virt-cat(1)>."
28188 msgstr ""
28189
28190 #. type: textblock
28191 #: ../tools/virt-edit.pl:57
28192 msgid ""
28193 "For more complex cases you should look at the L<guestfish(1)> tool (see "
28194 "L</USING GUESTFISH> below)."
28195 msgstr ""
28196
28197 #. type: textblock
28198 #: ../tools/virt-edit.pl:60
28199 msgid ""
28200 "C<virt-edit> cannot be used to create a new file, nor to edit multiple "
28201 "files.  L<guestfish(1)> can do that and much more."
28202 msgstr ""
28203
28204 #. type: textblock
28205 #: ../tools/virt-edit.pl:65
28206 msgid "Edit the named files interactively:"
28207 msgstr ""
28208
28209 #. type: verbatim
28210 #: ../tools/virt-edit.pl:67
28211 #, no-wrap
28212 msgid ""
28213 " virt-edit mydomain /boot/grub/grub.conf\n"
28214 "\n"
28215 msgstr ""
28216
28217 #. type: verbatim
28218 #: ../tools/virt-edit.pl:69
28219 #, no-wrap
28220 msgid ""
28221 " virt-edit mydomain /etc/passwd\n"
28222 "\n"
28223 msgstr ""
28224
28225 #. type: textblock
28226 #: ../tools/virt-edit.pl:71
28227 msgid "For Windows guests, some Windows paths are understood:"
28228 msgstr ""
28229
28230 #. type: verbatim
28231 #: ../tools/virt-edit.pl:73
28232 #, no-wrap
28233 msgid ""
28234 " virt-edit mywindomain 'c:\\autoexec.bat'\n"
28235 "\n"
28236 msgstr ""
28237
28238 #. type: textblock
28239 #: ../tools/virt-edit.pl:75
28240 msgid ""
28241 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
28242 "below).  To change the init default level to 5:"
28243 msgstr ""
28244
28245 #. type: verbatim
28246 #: ../tools/virt-edit.pl:79
28247 #, no-wrap
28248 msgid ""
28249 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../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
28255 msgid "Display brief help."
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../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
28260 msgid "Display version number and exit."
28261 msgstr ""
28262
28263 #. type: =item
28264 #: ../tools/virt-edit.pl:105
28265 msgid "B<--backup extension> | B<-b extension>"
28266 msgstr ""
28267
28268 #. type: textblock
28269 #: ../tools/virt-edit.pl:107
28270 msgid ""
28271 "Create a backup of the original file I<in the guest disk image>.  The backup "
28272 "has the original filename with C<extension> added."
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../tools/virt-edit.pl:110
28277 msgid ""
28278 "Usually the first character of C<extension> would be a dot C<.> so you would "
28279 "write:"
28280 msgstr ""
28281
28282 #. type: verbatim
28283 #: ../tools/virt-edit.pl:113
28284 #, no-wrap
28285 msgid ""
28286 " virt-edit -b .orig [etc]\n"
28287 "\n"
28288 msgstr ""
28289
28290 #. type: textblock
28291 #: ../tools/virt-edit.pl:115
28292 msgid "By default, no backup file is made."
28293 msgstr ""
28294
28295 #. type: =item
28296 #: ../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
28297 msgid "B<--connect URI> | B<-c URI>"
28298 msgstr ""
28299
28300 #. type: textblock
28301 #: ../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
28302 msgid ""
28303 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
28304 "to the default libvirt hypervisor."
28305 msgstr ""
28306
28307 #. type: textblock
28308 #: ../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
28309 msgid ""
28310 "If you specify guest block devices directly, then libvirt is not used at "
28311 "all."
28312 msgstr ""
28313
28314 #. type: =item
28315 #: ../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
28316 msgid "B<--format> raw"
28317 msgstr ""
28318
28319 #. type: textblock
28320 #: ../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
28321 msgid ""
28322 "Specify the format of disk images given on the command line.  If this is "
28323 "omitted then the format is autodetected from the content of the disk image."
28324 msgstr ""
28325
28326 #. type: textblock
28327 #: ../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
28328 msgid ""
28329 "If disk images are requested from libvirt, then this program asks libvirt "
28330 "for this information.  In this case, the value of the format parameter is "
28331 "ignored."
28332 msgstr ""
28333
28334 #. type: textblock
28335 #: ../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
28336 msgid ""
28337 "If working with untrusted raw-format guest disk images, you should ensure "
28338 "the format is always specified."
28339 msgstr ""
28340
28341 #. type: =item
28342 #: ../tools/virt-edit.pl:150
28343 msgid "B<--expr EXPR> | B<-e EXPR>"
28344 msgstr ""
28345
28346 #. type: textblock
28347 #: ../tools/virt-edit.pl:152
28348 msgid ""
28349 "Instead of launching the external editor, non-interactively apply the Perl "
28350 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
28351 "EDITING> below."
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../tools/virt-edit.pl:156
28356 msgid ""
28357 "Be careful to properly quote the expression to prevent it from being altered "
28358 "by the shell."
28359 msgstr ""
28360
28361 #. type: =head1
28362 #: ../tools/virt-edit.pl:280
28363 msgid "NON-INTERACTIVE EDITING"
28364 msgstr ""
28365
28366 #. type: textblock
28367 #: ../tools/virt-edit.pl:282
28368 msgid ""
28369 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
28370 "administrator can interactively edit the file."
28371 msgstr ""
28372
28373 #. type: textblock
28374 #: ../tools/virt-edit.pl:285
28375 msgid ""
28376 "There are two ways also to use C<virt-edit> from scripts in order to make "
28377 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
28378 "like this, it's less error-prone to write scripts directly using the "
28379 "libguestfs API and Augeas for configuration file editing.)"
28380 msgstr ""
28381
28382 #. type: textblock
28383 #: ../tools/virt-edit.pl:291
28384 msgid ""
28385 "The first method is to temporarily set C<$EDITOR> to any script or program "
28386 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
28387 "update C<tmpfile> in place however it likes."
28388 msgstr ""
28389
28390 #. type: textblock
28391 #: ../tools/virt-edit.pl:295
28392 msgid ""
28393 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
28394 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
28395 "instances of C<foo> with C<bar> in a file:"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../tools/virt-edit.pl:299
28400 #, no-wrap
28401 msgid ""
28402 " virt-edit domname filename -e 's/foo/bar/'\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../tools/virt-edit.pl:301
28408 msgid ""
28409 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
28410 "For example to delete root's password you could do:"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../tools/virt-edit.pl:304
28415 #, no-wrap
28416 msgid ""
28417 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
28418 "\n"
28419 msgstr ""
28420
28421 #. type: textblock
28422 #: ../tools/virt-edit.pl:306
28423 msgid ""
28424 "What really happens is that the snippet is evaluated as a Perl expression "
28425 "for each line of the file.  The line, including the final C<\\n>, is passed "
28426 "in C<$_> and the expression should update C<$_> or leave it unchanged."
28427 msgstr ""
28428
28429 #. type: textblock
28430 #: ../tools/virt-edit.pl:311
28431 msgid ""
28432 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
28433 "C<apache> user account from the password file you can do:"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../tools/virt-edit.pl:314
28438 #, no-wrap
28439 msgid ""
28440 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
28441 "\n"
28442 msgstr ""
28443
28444 #. type: textblock
28445 #: ../tools/virt-edit.pl:316
28446 msgid ""
28447 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
28448 "the end of the file is rather difficult this way since there is no concept "
28449 "of \"last line of the file\" - your expression just doesn't get called "
28450 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
28451 "want to do this."
28452 msgstr ""
28453
28454 #. type: textblock
28455 #: ../tools/virt-edit.pl:322
28456 msgid ""
28457 "The variable C<$lineno> contains the current line number.  As is "
28458 "traditional, the first line in the file is number C<1>."
28459 msgstr ""
28460
28461 #. type: textblock
28462 #: ../tools/virt-edit.pl:325
28463 msgid ""
28464 "The return value from the expression is ignored, but the expression may call "
28465 "C<die> in order to abort the whole program, leaving the original file "
28466 "untouched."
28467 msgstr ""
28468
28469 #. type: textblock
28470 #: ../tools/virt-edit.pl:329
28471 msgid ""
28472 "Remember when matching the end of a line that C<$_> may contain the final "
28473 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
28474 "newline then neither of these.  Thus to match or substitute some text at the "
28475 "end of a line, use this regular expression:"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../tools/virt-edit.pl:334
28480 #, no-wrap
28481 msgid ""
28482 " /some text(\\r?\\n)?$/\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: textblock
28487 #: ../tools/virt-edit.pl:336
28488 msgid ""
28489 "Alternately, use the perl C<chomp> function, being careful not to chomp "
28490 "C<$_> itself (since that would remove all newlines from the file):"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../tools/virt-edit.pl:340
28495 #, no-wrap
28496 msgid ""
28497 " my $m = $_; chomp $m; $m =~ /some text$/\n"
28498 "\n"
28499 msgstr ""
28500
28501 #. type: textblock
28502 #: ../tools/virt-edit.pl:344
28503 msgid ""
28504 "C<virt-edit> has a limited ability to understand Windows drive letters and "
28505 "paths (eg. C<E:\\foo\\bar.txt>)."
28506 msgstr ""
28507
28508 #. type: textblock
28509 #: ../tools/virt-edit.pl:347
28510 msgid "If and only if the guest is running Windows then:"
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../tools/virt-edit.pl:353
28515 msgid ""
28516 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
28517 "to the correct filesystem."
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../tools/virt-edit.pl:358
28522 msgid ""
28523 "Any backslash (C<\\>) characters in the path are replaced with forward "
28524 "slashes so that libguestfs can process it."
28525 msgstr ""
28526
28527 #. type: textblock
28528 #: ../tools/virt-edit.pl:363
28529 msgid ""
28530 "The path is resolved case insensitively to locate the file that should be "
28531 "edited."
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../tools/virt-edit.pl:368
28536 msgid "There are some known shortcomings:"
28537 msgstr ""
28538
28539 #. type: textblock
28540 #: ../tools/virt-edit.pl:374
28541 msgid "Some NTFS symbolic links may not be followed correctly."
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../tools/virt-edit.pl:378
28546 msgid "NTFS junction points that cross filesystems are not followed."
28547 msgstr ""
28548
28549 #. type: =head1
28550 #: ../tools/virt-edit.pl:435
28551 msgid "USING GUESTFISH"
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../tools/virt-edit.pl:437
28556 msgid ""
28557 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
28558 "C<virt-edit> doesn't work."
28559 msgstr ""
28560
28561 #. type: textblock
28562 #: ../tools/virt-edit.pl:440
28563 msgid "Using C<virt-edit> is approximately equivalent to doing:"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../tools/virt-edit.pl:442
28568 #, no-wrap
28569 msgid ""
28570 " guestfish --rw -i -d domname edit /file\n"
28571 "\n"
28572 msgstr ""
28573
28574 #. type: textblock
28575 #: ../tools/virt-edit.pl:444
28576 msgid ""
28577 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
28578 "path to the file."
28579 msgstr ""
28580
28581 #. type: textblock
28582 #: ../tools/virt-edit.pl:447
28583 msgid ""
28584 "The command above uses libguestfs's guest inspection feature and so does not "
28585 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
28586 "disk images that don't contain guests.  To edit a file on a disk image "
28587 "directly, use:"
28588 msgstr ""
28589
28590 #. type: verbatim
28591 #: ../tools/virt-edit.pl:452
28592 #, no-wrap
28593 msgid ""
28594 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
28595 "\n"
28596 msgstr ""
28597
28598 #. type: textblock
28599 #: ../tools/virt-edit.pl:454
28600 msgid ""
28601 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
28602 "the disk image to edit, and C</file> is the full path to the file."
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../tools/virt-edit.pl:458
28607 msgid ""
28608 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
28609 "C<write> or C<upload> instead:"
28610 msgstr ""
28611
28612 #. type: verbatim
28613 #: ../tools/virt-edit.pl:461
28614 #, no-wrap
28615 msgid ""
28616 " guestfish --rw -i -d domname touch /newfile\n"
28617 "\n"
28618 msgstr ""
28619
28620 #. type: verbatim
28621 #: ../tools/virt-edit.pl:463
28622 #, no-wrap
28623 msgid ""
28624 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
28625 "\n"
28626 msgstr ""
28627
28628 #. type: verbatim
28629 #: ../tools/virt-edit.pl:465
28630 #, no-wrap
28631 msgid ""
28632 " guestfish --rw -i -d domname upload localfile /newfile\n"
28633 "\n"
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../tools/virt-edit.pl:467
28638 msgid "C<virt-edit> cannot edit multiple files, but guestfish can do it like this:"
28639 msgstr ""
28640
28641 #. type: verbatim
28642 #: ../tools/virt-edit.pl:470
28643 #, no-wrap
28644 msgid ""
28645 " guestfish --rw -i -d domname edit /file1 : edit /file2\n"
28646 "\n"
28647 msgstr ""
28648
28649 #. type: =item
28650 #: ../tools/virt-edit.pl:480
28651 msgid "C<EDITOR>"
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../tools/virt-edit.pl:482
28656 msgid ""
28657 "If set, this string is used as the editor.  It may contain arguments, "
28658 "eg. C<\"emacs -nw\">"
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../tools/virt-edit.pl:485
28663 msgid "If not set, C<vi> is used."
28664 msgstr ""
28665
28666 #. type: =head1
28667 #: ../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
28668 msgid "SHELL QUOTING"
28669 msgstr ""
28670
28671 #. type: textblock
28672 #: ../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
28673 msgid ""
28674 "Libvirt guest names can contain arbitrary characters, some of which have "
28675 "meaning to the shell such as C<#> and space.  You may need to quote or "
28676 "escape these characters on the command line.  See the shell manual page "
28677 "L<sh(1)> for details."
28678 msgstr ""
28679
28680 #. type: textblock
28681 #: ../tools/virt-edit.pl:498
28682 msgid ""
28683 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
28684 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
28685 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
28686 msgstr ""
28687
28688 #. type: =head1
28689 #: ../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
28690 msgid "AUTHOR"
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../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
28695 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
28696 msgstr ""
28697
28698 #. type: textblock
28699 #: ../tools/virt-edit.pl:516
28700 msgid "Copyright (C) 2009-2011 Red Hat Inc."
28701 msgstr ""
28702
28703 #. type: textblock
28704 #: ../tools/virt-win-reg.pl:37
28705 msgid ""
28706 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
28707 "guest"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../tools/virt-win-reg.pl:41
28712 #, no-wrap
28713 msgid ""
28714 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
28715 "\n"
28716 msgstr ""
28717
28718 #. type: verbatim
28719 #: ../tools/virt-win-reg.pl:43
28720 #, no-wrap
28721 msgid ""
28722 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: verbatim
28727 #: ../tools/virt-win-reg.pl:45
28728 #, no-wrap
28729 msgid ""
28730 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
28731 "\n"
28732 msgstr ""
28733
28734 #. type: verbatim
28735 #: ../tools/virt-win-reg.pl:47
28736 #, no-wrap
28737 msgid ""
28738 " virt-win-reg --merge domname [input.reg ...]\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: verbatim
28743 #: ../tools/virt-win-reg.pl:49
28744 #, no-wrap
28745 msgid ""
28746 " virt-win-reg [--options] disk.img ... # instead of domname\n"
28747 "\n"
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../tools/virt-win-reg.pl:53
28752 msgid ""
28753 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
28754 "virtual machines.  If you do this, you I<will> get irreversible disk "
28755 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
28756 "but doesn't catch all cases."
28757 msgstr ""
28758
28759 #. type: textblock
28760 #: ../tools/virt-win-reg.pl:58
28761 msgid ""
28762 "Modifying the Windows Registry is an inherently risky operation.  The format "
28763 "is deliberately obscure and undocumented, and Registry changes can leave the "
28764 "system unbootable.  Therefore when using the C<--merge> option, make sure "
28765 "you have a reliable backup first."
28766 msgstr ""
28767
28768 #. type: textblock
28769 #: ../tools/virt-win-reg.pl:65
28770 msgid ""
28771 "This program can export and merge Windows Registry entries from a Windows "
28772 "guest."
28773 msgstr ""
28774
28775 #. type: textblock
28776 #: ../tools/virt-win-reg.pl:68
28777 msgid ""
28778 "The first parameter is the libvirt guest name or the raw disk image of a "
28779 "Windows guest."
28780 msgstr ""
28781
28782 #. type: textblock
28783 #: ../tools/virt-win-reg.pl:71
28784 msgid ""
28785 "If C<--merge> is I<not> specified, then the chosen registry key is "
28786 "displayed/exported (recursively).  For example:"
28787 msgstr ""
28788
28789 #. type: verbatim
28790 #: ../tools/virt-win-reg.pl:74
28791 #, no-wrap
28792 msgid ""
28793 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
28794 "\n"
28795 msgstr ""
28796
28797 #. type: textblock
28798 #: ../tools/virt-win-reg.pl:76
28799 msgid "You can also display single values from within registry keys, for example:"
28800 msgstr ""
28801
28802 #. type: verbatim
28803 #: ../tools/virt-win-reg.pl:79
28804 #, no-wrap
28805 msgid ""
28806 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
28807 " $ virt-win-reg Windows7 $cvkey ProductName\n"
28808 " Windows 7 Enterprise\n"
28809 "\n"
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../tools/virt-win-reg.pl:83
28814 msgid ""
28815 "With C<--merge>, you can merge a textual regedit file into the Windows "
28816 "Registry:"
28817 msgstr ""
28818
28819 #. type: verbatim
28820 #: ../tools/virt-win-reg.pl:86
28821 #, no-wrap
28822 msgid ""
28823 " $ virt-win-reg --merge Windows7 changes.reg\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: =head1
28828 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
28829 msgid "NOTE"
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../tools/virt-win-reg.pl:90
28834 msgid ""
28835 "This program is only meant for simple access to the registry.  If you want "
28836 "to do complicated things with the registry, we suggest you download the "
28837 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
28838 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
28839 "L<hivexregedit(1)>."
28840 msgstr ""
28841
28842 #. type: =item
28843 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
28844 msgid "B<--debug>"
28845 msgstr ""
28846
28847 #. type: textblock
28848 #: ../tools/virt-win-reg.pl:122
28849 msgid "Enable debugging messages."
28850 msgstr ""
28851
28852 #. type: =item
28853 #: ../tools/virt-win-reg.pl:157
28854 msgid "B<--merge>"
28855 msgstr ""
28856
28857 #. type: textblock
28858 #: ../tools/virt-win-reg.pl:159
28859 msgid ""
28860 "In merge mode, this merges a textual regedit file into the Windows Registry "
28861 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
28862 "displays or exports Registry entries instead."
28863 msgstr ""
28864
28865 #. type: textblock
28866 #: ../tools/virt-win-reg.pl:163
28867 msgid ""
28868 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
28869 "result in disk corruption.  However exporting (without this flag)  is always "
28870 "safe."
28871 msgstr ""
28872
28873 #. type: =item
28874 #: ../tools/virt-win-reg.pl:171
28875 msgid "B<--encoding> UTF-16LE|ASCII"
28876 msgstr ""
28877
28878 #. type: textblock
28879 #: ../tools/virt-win-reg.pl:173
28880 msgid ""
28881 "When merging (only), you may need to specify the encoding for strings to be "
28882 "used in the hive file.  This is explained in detail in "
28883 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
28884 msgstr ""
28885
28886 #. type: textblock
28887 #: ../tools/virt-win-reg.pl:177
28888 msgid ""
28889 "The default is to use UTF-16LE, which should work with recent versions of "
28890 "Windows."
28891 msgstr ""
28892
28893 #. type: =head1
28894 #: ../tools/virt-win-reg.pl:402
28895 msgid "SUPPORTED SYSTEMS"
28896 msgstr ""
28897
28898 #. type: textblock
28899 #: ../tools/virt-win-reg.pl:404
28900 msgid ""
28901 "The program currently supports Windows NT-derived guests starting with "
28902 "Windows XP through to at least Windows 7."
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../tools/virt-win-reg.pl:407
28907 msgid ""
28908 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, "
28909 "C<HKEY_LOCAL_MACHINE\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, "
28910 "C<HKEY_LOCAL_MACHINE\\SYSTEM> and C<HKEY_USERS\\.DEFAULT>."
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../tools/virt-win-reg.pl:411
28915 msgid ""
28916 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
28917 "C<HKEY_USERS>."
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../tools/virt-win-reg.pl:414
28922 msgid ""
28923 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
28924 "time."
28925 msgstr ""
28926
28927 #. type: =head1
28928 #: ../tools/virt-win-reg.pl:417
28929 msgid "ENCODING"
28930 msgstr ""
28931
28932 #. type: textblock
28933 #: ../tools/virt-win-reg.pl:419
28934 msgid ""
28935 "C<virt-win-reg> expects that regedit files have already been reencoded in "
28936 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
28937 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
28938 "with Windows-style line endings, you may need to reencode the whole file "
28939 "before or after processing."
28940 msgstr ""
28941
28942 #. type: textblock
28943 #: ../tools/virt-win-reg.pl:425
28944 msgid ""
28945 "To reencode a file from Windows format to Linux (before processing it with "
28946 "the C<--merge> option), you would do something like this:"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../tools/virt-win-reg.pl:428
28951 #, no-wrap
28952 msgid ""
28953 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
28954 "\n"
28955 msgstr ""
28956
28957 #. type: textblock
28958 #: ../tools/virt-win-reg.pl:430
28959 msgid ""
28960 "To go in the opposite direction, after exporting and before sending the file "
28961 "to a Windows user, do something like this:"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../tools/virt-win-reg.pl:433
28966 #, no-wrap
28967 msgid ""
28968 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
28969 "\n"
28970 msgstr ""
28971
28972 #. type: textblock
28973 #: ../tools/virt-win-reg.pl:435
28974 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../tools/virt-win-reg.pl:437
28979 msgid ""
28980 "If you are unsure about the current encoding, use the L<file(1)> command.  "
28981 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
28982 "Windows-style (CRLF) line endings, like this:"
28983 msgstr ""
28984
28985 #. type: verbatim
28986 #: ../tools/virt-win-reg.pl:441
28987 #, no-wrap
28988 msgid ""
28989 " $ file software.reg\n"
28990 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
28991 " with CRLF line terminators\n"
28992 "\n"
28993 msgstr ""
28994
28995 #. type: textblock
28996 #: ../tools/virt-win-reg.pl:445
28997 msgid "This file would need conversion before you could C<--merge> it."
28998 msgstr ""
28999
29000 #. type: =head1
29001 #: ../tools/virt-win-reg.pl:447
29002 msgid "CurrentControlSet etc."
29003 msgstr ""
29004
29005 #. type: textblock
29006 #: ../tools/virt-win-reg.pl:449
29007 msgid ""
29008 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
29009 "Registry at the level of the hive file, and therefore you cannot modify "
29010 "these."
29011 msgstr ""
29012
29013 #. type: textblock
29014 #: ../tools/virt-win-reg.pl:453
29015 msgid ""
29016 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
29017 "circumstances it might refer to another control set.  The way to find out is "
29018 "to look at the C<HKLM\\SYSTEM\\Select> key:"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../tools/virt-win-reg.pl:457
29023 #, no-wrap
29024 msgid ""
29025 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
29026 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
29027 " \"Current\"=dword:00000001\n"
29028 " \"Default\"=dword:00000001\n"
29029 " \"Failed\"=dword:00000000\n"
29030 " \"LastKnownGood\"=dword:00000002\n"
29031 "\n"
29032 msgstr ""
29033
29034 #. type: textblock
29035 #: ../tools/virt-win-reg.pl:464
29036 msgid "\"Current\" is the one which Windows will choose when it boots."
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../tools/virt-win-reg.pl:466
29041 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
29042 msgstr ""
29043
29044 #. type: =head1
29045 #: ../tools/virt-win-reg.pl:469
29046 msgid "WINDOWS TIPS"
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../tools/virt-win-reg.pl:471
29051 msgid ""
29052 "Note that some of these tips modify the guest disk image.  The guest I<must> "
29053 "be shut off, else you will get disk corruption."
29054 msgstr ""
29055
29056 #. type: =head2
29057 #: ../tools/virt-win-reg.pl:474
29058 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
29059 msgstr ""
29060
29061 #. type: textblock
29062 #: ../tools/virt-win-reg.pl:476
29063 msgid ""
29064 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
29065 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
29066 "is uploaded into C<C:\\>:"
29067 msgstr ""
29068
29069 #. type: verbatim
29070 #: ../tools/virt-win-reg.pl:480
29071 #, no-wrap
29072 msgid ""
29073 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../tools/virt-win-reg.pl:482
29079 msgid "Prepare a regedit file containing the registry change:"
29080 msgstr ""
29081
29082 #. type: verbatim
29083 #: ../tools/virt-win-reg.pl:484
29084 #, no-wrap
29085 msgid ""
29086 " cat > test.reg <<'EOF'\n"
29087 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
29088 " \"Test\"=\"c:\\\\test.bat\"\n"
29089 " EOF\n"
29090 "\n"
29091 msgstr ""
29092
29093 #. type: textblock
29094 #: ../tools/virt-win-reg.pl:489
29095 msgid ""
29096 "In this example we use the key C<RunOnce> which means that the script will "
29097 "run precisely once when the first user logs in.  If you want it to run every "
29098 "time a user logs in, replace C<RunOnce> with C<Run>."
29099 msgstr ""
29100
29101 #. type: textblock
29102 #: ../tools/virt-win-reg.pl:493
29103 msgid "Now update the registry:"
29104 msgstr ""
29105
29106 #. type: verbatim
29107 #: ../tools/virt-win-reg.pl:495
29108 #, no-wrap
29109 msgid ""
29110 " virt-win-reg --merge WindowsGuest test.reg\n"
29111 "\n"
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../tools/virt-win-reg.pl:497
29116 msgid "INSTALLING A SERVICE"
29117 msgstr ""
29118
29119 #. type: textblock
29120 #: ../tools/virt-win-reg.pl:499
29121 msgid ""
29122 "This section assumes you are familiar with Windows services, and you either "
29123 "have a program which handles the Windows Service Control Protocol directly "
29124 "or you want to run any program using a service wrapper like SrvAny or the "
29125 "free RHSrvAny."
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../tools/virt-win-reg.pl:504
29130 msgid ""
29131 "First upload the program and optionally the service wrapper.  In this case "
29132 "the test program is called C<test.exe> and we are using the RHSrvAny "
29133 "wrapper:"
29134 msgstr ""
29135
29136 #. type: verbatim
29137 #: ../tools/virt-win-reg.pl:508
29138 #, no-wrap
29139 msgid ""
29140 " guestfish -i -d WindowsGuest <<EOF\n"
29141 "   upload rhsrvany.exe /rhsrvany.exe\n"
29142 "   upload test.exe /test.exe\n"
29143 " EOF\n"
29144 "\n"
29145 msgstr ""
29146
29147 #. type: textblock
29148 #: ../tools/virt-win-reg.pl:513
29149 msgid ""
29150 "Prepare a regedit file containing the registry changes.  In this example, "
29151 "the first registry change is needed for the service itself or the service "
29152 "wrapper (if used).  The second registry change is only needed because I am "
29153 "using the RHSrvAny service wrapper."
29154 msgstr ""
29155
29156 #. type: verbatim
29157 #: ../tools/virt-win-reg.pl:518
29158 #, no-wrap
29159 msgid ""
29160 " cat > service.reg <<'EOF'\n"
29161 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
29162 " \"Type\"=dword:00000010\n"
29163 " \"Start\"=dword:00000002\n"
29164 " \"ErrorControl\"=dword:00000001\n"
29165 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
29166 " \"DisplayName\"=\"RHSrvAny\"\n"
29167 " \"ObjectName\"=\"NetworkService\"\n"
29168 " \n"
29169 msgstr ""
29170
29171 #. type: verbatim
29172 #: ../tools/virt-win-reg.pl:527
29173 #, no-wrap
29174 msgid ""
29175 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
29176 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
29177 " \"PWD\"=\"c:\\\\Temp\"\n"
29178 " EOF\n"
29179 "\n"
29180 msgstr ""
29181
29182 #. type: textblock
29183 #: ../tools/virt-win-reg.pl:538
29184 msgid ""
29185 "For use of C<ControlSet001> see the section above in this manual page.  You "
29186 "may need to adjust this according to the control set that is in use by the "
29187 "guest."
29188 msgstr ""
29189
29190 #. type: textblock
29191 #: ../tools/virt-win-reg.pl:544
29192 msgid ""
29193 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
29194 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
29195 "privileged account."
29196 msgstr ""
29197
29198 #. type: textblock
29199 #: ../tools/virt-win-reg.pl:550
29200 msgid ""
29201 "For the meaning of the magic numbers, see this Microsoft KB article: "
29202 "L<http://support.microsoft.com/kb/103000>."
29203 msgstr ""
29204
29205 #. type: textblock
29206 #: ../tools/virt-win-reg.pl:555
29207 msgid "Update the registry:"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../tools/virt-win-reg.pl:557
29212 #, no-wrap
29213 msgid ""
29214 " virt-win-reg --merge WindowsGuest service.reg\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../tools/virt-win-reg.pl:561
29220 msgid ""
29221 "Be careful when passing parameters containing C<\\> (backslash) in the "
29222 "shell.  Usually you will have to use 'single quotes' or double backslashes "
29223 "(but not both) to protect them from the shell."
29224 msgstr ""
29225
29226 #. type: textblock
29227 #: ../tools/virt-win-reg.pl:565
29228 msgid "Paths and value names are case-insensitive."
29229 msgstr ""
29230
29231 #. type: textblock
29232 #: ../tools/virt-win-reg.pl:574
29233 msgid ""
29234 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
29235 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
29236 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
29237 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
29242 msgid ""
29243 "When reporting bugs, please enable debugging and capture the I<complete> "
29244 "output:"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../tools/virt-win-reg.pl:592
29249 #, no-wrap
29250 msgid ""
29251 " export LIBGUESTFS_DEBUG=1\n"
29252 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../tools/virt-win-reg.pl:595
29258 msgid ""
29259 "Attach /tmp/virt-win-reg.log to a new bug report at "
29260 "L<https://bugzilla.redhat.com/>"
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
29265 msgid "Copyright (C) 2010 Red Hat Inc."
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../tools/virt-list-filesystems.pl:32
29270 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
29271 msgstr ""
29272
29273 #. type: verbatim
29274 #: ../tools/virt-list-filesystems.pl:36
29275 #, no-wrap
29276 msgid ""
29277 " virt-list-filesystems [--options] domname\n"
29278 "\n"
29279 msgstr ""
29280
29281 #. type: verbatim
29282 #: ../tools/virt-list-filesystems.pl:38
29283 #, no-wrap
29284 msgid ""
29285 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
29286 "\n"
29287 msgstr ""
29288
29289 #. type: textblock
29290 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
29291 msgid ""
29292 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
29293 "replacement."
29294 msgstr ""
29295
29296 #. type: textblock
29297 #: ../tools/virt-list-filesystems.pl:45
29298 msgid ""
29299 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
29300 "are contained in a virtual machine or disk image."
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../tools/virt-list-filesystems.pl:49
29305 msgid ""
29306 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
29307 "functionality.  For more complex cases you should look at the "
29308 "L<guestfish(1)> tool."
29309 msgstr ""
29310
29311 #. type: =item
29312 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
29313 msgid "B<-l> | B<--long>"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../tools/virt-list-filesystems.pl:108
29318 msgid ""
29319 "With this option, C<virt-list-filesystems> displays the type of each "
29320 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
29321 msgstr ""
29322
29323 #. type: =item
29324 #: ../tools/virt-list-filesystems.pl:115
29325 msgid "B<-a> | B<--all>"
29326 msgstr ""
29327
29328 #. type: textblock
29329 #: ../tools/virt-list-filesystems.pl:117
29330 msgid ""
29331 "Normally we only show mountable filesystems.  If this option is given then "
29332 "swap devices are shown too."
29333 msgstr ""
29334
29335 #. type: textblock
29336 #: ../tools/virt-list-filesystems.pl:191
29337 msgid ""
29338 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
29339 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
29340 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29341 msgstr ""
29342
29343 #. type: textblock
29344 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
29345 msgid "Copyright (C) 2009 Red Hat Inc."
29346 msgstr ""
29347
29348 #. type: textblock
29349 #: ../tools/virt-tar.pl:33
29350 msgid "virt-tar - Extract or upload files to a virtual machine"
29351 msgstr ""
29352
29353 #. type: verbatim
29354 #: ../tools/virt-tar.pl:37
29355 #, no-wrap
29356 msgid ""
29357 " virt-tar [--options] -x domname directory tarball\n"
29358 "\n"
29359 msgstr ""
29360
29361 #. type: verbatim
29362 #: ../tools/virt-tar.pl:39
29363 #, no-wrap
29364 msgid ""
29365 " virt-tar [--options] -u domname tarball directory\n"
29366 "\n"
29367 msgstr ""
29368
29369 #. type: verbatim
29370 #: ../tools/virt-tar.pl:41
29371 #, no-wrap
29372 msgid ""
29373 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
29374 "\n"
29375 msgstr ""
29376
29377 #. type: verbatim
29378 #: ../tools/virt-tar.pl:43
29379 #, no-wrap
29380 msgid ""
29381 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
29382 "\n"
29383 msgstr ""
29384
29385 #. type: textblock
29386 #: ../tools/virt-tar.pl:47
29387 msgid ""
29388 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
29389 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
29390 msgstr ""
29391
29392 #. type: textblock
29393 #: ../tools/virt-tar.pl:52
29394 msgid "Download C</home> from the VM into a local tarball:"
29395 msgstr ""
29396
29397 #. type: verbatim
29398 #: ../tools/virt-tar.pl:54
29399 #, no-wrap
29400 msgid ""
29401 " virt-tar -x domname /home home.tar\n"
29402 "\n"
29403 msgstr ""
29404
29405 #. type: verbatim
29406 #: ../tools/virt-tar.pl:56
29407 #, no-wrap
29408 msgid ""
29409 " virt-tar -zx domname /home home.tar.gz\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../tools/virt-tar.pl:58
29415 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../tools/virt-tar.pl:60
29420 #, no-wrap
29421 msgid ""
29422 " virt-tar -u domname uploadstuff.tar /tmp\n"
29423 "\n"
29424 msgstr ""
29425
29426 #. type: verbatim
29427 #: ../tools/virt-tar.pl:62
29428 #, no-wrap
29429 msgid ""
29430 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
29431 "\n"
29432 msgstr ""
29433
29434 #. type: textblock
29435 #: ../tools/virt-tar.pl:66
29436 msgid ""
29437 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
29438 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
29439 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
29440 msgstr ""
29441
29442 #. type: textblock
29443 #: ../tools/virt-tar.pl:71
29444 msgid ""
29445 "You can use C<-x> (extract) on live virtual machines, but you might get "
29446 "inconsistent results or errors if there is filesystem activity inside the "
29447 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
29448 "work, but the only way to guarantee consistent results is if the virtual "
29449 "machine is shut down."
29450 msgstr ""
29451
29452 #. type: textblock
29453 #: ../tools/virt-tar.pl:79
29454 msgid ""
29455 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
29456 "parts of a guest filesystem.  There are many possibilities: making backups, "
29457 "uploading data files, snooping on guest activity, fixing or customizing "
29458 "guests, etc."
29459 msgstr ""
29460
29461 #. type: textblock
29462 #: ../tools/virt-tar.pl:84
29463 msgid ""
29464 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
29465 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
29466 "should look at the L<guestfish(1)> tool."
29467 msgstr ""
29468
29469 #. type: textblock
29470 #: ../tools/virt-tar.pl:88
29471 msgid ""
29472 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
29473 "its contents (recursively) from the virtual machine into a local tarball.  "
29474 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
29475 "virtual machine.  You cannot use these two options together."
29476 msgstr ""
29477
29478 #. type: textblock
29479 #: ../tools/virt-tar.pl:94
29480 msgid ""
29481 "In addition, you may need to use the C<-z> (gZip) option to enable "
29482 "compression.  When uploading, you have to specify C<-z> if the upload file "
29483 "is compressed because virt-tar won't detect this on its own."
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../tools/virt-tar.pl:98
29488 msgid ""
29489 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
29490 "example it cannot do PKZip files or bzip2 compression.  If you want that "
29491 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
29492 "the L<libguestfs(3)> API)."
29493 msgstr ""
29494
29495 #. type: =item
29496 #: ../tools/virt-tar.pl:156
29497 msgid "B<-x> | B<--extract> | B<--download>"
29498 msgstr ""
29499
29500 #. type: =item
29501 #: ../tools/virt-tar.pl:158
29502 msgid "B<-u> | B<--upload>"
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../tools/virt-tar.pl:160
29507 msgid ""
29508 "Use C<-x> to extract (download) a directory from a virtual machine to a "
29509 "local tarball."
29510 msgstr ""
29511
29512 #. type: textblock
29513 #: ../tools/virt-tar.pl:163
29514 msgid ""
29515 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
29516 "Please read the L</WARNING> section above before using this option."
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../tools/virt-tar.pl:167
29521 msgid "You must specify exactly one of these options."
29522 msgstr ""
29523
29524 #. type: =item
29525 #: ../tools/virt-tar.pl:173
29526 msgid "B<-z> | B<--gzip>"
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../tools/virt-tar.pl:175
29531 msgid "Specify that the input or output tarball is gzip-compressed."
29532 msgstr ""
29533
29534 #. type: textblock
29535 #: ../tools/virt-tar.pl:288
29536 msgid ""
29537 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
29538 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
29539 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
29540 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
29541 msgstr ""
29542
29543 #. type: textblock
29544 #: ../tools/virt-make-fs.pl:37
29545 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../tools/virt-make-fs.pl:41
29550 #, no-wrap
29551 msgid ""
29552 " virt-make-fs [--options] input.tar output.img\n"
29553 "\n"
29554 msgstr ""
29555
29556 #. type: verbatim
29557 #: ../tools/virt-make-fs.pl:43
29558 #, no-wrap
29559 msgid ""
29560 " virt-make-fs [--options] input.tar.gz output.img\n"
29561 "\n"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../tools/virt-make-fs.pl:45
29566 #, no-wrap
29567 msgid ""
29568 " virt-make-fs [--options] directory output.img\n"
29569 "\n"
29570 msgstr ""
29571
29572 #. type: textblock
29573 #: ../tools/virt-make-fs.pl:49
29574 msgid ""
29575 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
29576 "archive or some files in a directory.  It is similar to tools like "
29577 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
29578 "it can create common filesystem types like ext2/3 or NTFS, which can be "
29579 "useful if you want to attach these filesystems to existing virtual machines "
29580 "(eg. to import large amounts of read-only data to a VM)."
29581 msgstr ""
29582
29583 #. type: textblock
29584 #: ../tools/virt-make-fs.pl:57
29585 msgid "Basic usage is:"
29586 msgstr ""
29587
29588 #. type: verbatim
29589 #: ../tools/virt-make-fs.pl:59
29590 #, no-wrap
29591 msgid ""
29592 " virt-make-fs input output\n"
29593 "\n"
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../tools/virt-make-fs.pl:61
29598 msgid ""
29599 "where C<input> is either a directory containing files that you want to add, "
29600 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
29601 "C<output> is a disk image.  The input type is detected automatically.  The "
29602 "output disk image defaults to a raw ext2 image unless you specify extra "
29603 "flags (see L</OPTIONS> below)."
29604 msgstr ""
29605
29606 #. type: =head2
29607 #: ../tools/virt-make-fs.pl:67
29608 msgid "EXTRA SPACE"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../tools/virt-make-fs.pl:69
29613 msgid ""
29614 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
29615 "the files that it contains, but might have extra space.  Depending on how "
29616 "you are going to use the output, you might think this extra space is wasted "
29617 "and want to minimize it, or you might want to leave space so that more files "
29618 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
29619 "but you can use the C<--size> flag to leave space in the filesystem if you "
29620 "want it."
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../tools/virt-make-fs.pl:77
29625 msgid ""
29626 "An alternative way to leave extra space but not make the output image any "
29627 "bigger is to use an alternative disk image format (instead of the default "
29628 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
29629 "image format (check your hypervisor supports this before using it).  This "
29630 "allows you to choose a large C<--size> but the extra space won't actually be "
29631 "allocated in the image until you try to store something in it."
29632 msgstr ""
29633
29634 #. type: textblock
29635 #: ../tools/virt-make-fs.pl:85
29636 msgid ""
29637 "Don't forget that you can also use local commands including L<resize2fs(8)> "
29638 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
29639 "to build another image from scratch."
29640 msgstr ""
29641
29642 #. type: =head3
29643 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
29644 msgid "EXAMPLE"
29645 msgstr ""
29646
29647 #. type: verbatim
29648 #: ../tools/virt-make-fs.pl:91
29649 #, no-wrap
29650 msgid ""
29651 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
29652 "\n"
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../tools/virt-make-fs.pl:93
29657 msgid "FILESYSTEM TYPE"
29658 msgstr ""
29659
29660 #. type: textblock
29661 #: ../tools/virt-make-fs.pl:95
29662 msgid ""
29663 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
29664 "libguestfs supports can be used (but I<not> read-only formats like "
29665 "ISO9660).  Here are some of the more common choices:"
29666 msgstr ""
29667
29668 #. type: =item
29669 #: ../tools/virt-make-fs.pl:101
29670 msgid "I<ext3>"
29671 msgstr ""
29672
29673 #. type: textblock
29674 #: ../tools/virt-make-fs.pl:103
29675 msgid ""
29676 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
29677 "you are not going to use the filesystem in a way that requires the journal, "
29678 "then this is just wasted overhead."
29679 msgstr ""
29680
29681 #. type: =item
29682 #: ../tools/virt-make-fs.pl:107
29683 msgid "I<ntfs> or I<vfat>"
29684 msgstr ""
29685
29686 #. type: textblock
29687 #: ../tools/virt-make-fs.pl:109
29688 msgid "Useful if exporting data to a Windows guest."
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../tools/virt-make-fs.pl:111
29693 msgid ""
29694 "I<Note for vfat>: The tar archive or local directory must only contain files "
29695 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
29696 "program running within libguestfs is unable to change the ownership of "
29697 "non-root files, since vfat itself does not support this."
29698 msgstr ""
29699
29700 #. type: =item
29701 #: ../tools/virt-make-fs.pl:116
29702 msgid "I<minix>"
29703 msgstr ""
29704
29705 #. type: textblock
29706 #: ../tools/virt-make-fs.pl:118
29707 msgid ""
29708 "Lower overhead than C<ext2>, but certain limitations on filename length and "
29709 "total filesystem size."
29710 msgstr ""
29711
29712 #. type: verbatim
29713 #: ../tools/virt-make-fs.pl:125
29714 #, no-wrap
29715 msgid ""
29716 " virt-make-fs --type=minix input minixfs.img\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../tools/virt-make-fs.pl:127
29722 msgid "TO PARTITION OR NOT TO PARTITION"
29723 msgstr ""
29724
29725 #. type: textblock
29726 #: ../tools/virt-make-fs.pl:129
29727 msgid "Optionally virt-make-fs can add a partition table to the output disk."
29728 msgstr ""
29729
29730 #. type: textblock
29731 #: ../tools/virt-make-fs.pl:131
29732 msgid ""
29733 "Adding a partition can make the disk image more compatible with certain "
29734 "virtualized operating systems which don't expect to see a filesystem "
29735 "directly located on a block device (Linux doesn't care and will happily "
29736 "handle both types)."
29737 msgstr ""
29738
29739 #. type: textblock
29740 #: ../tools/virt-make-fs.pl:136
29741 msgid ""
29742 "On the other hand, if you have a partition table then the output image is no "
29743 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
29744 "directly on a partitioned disk image.  (However libguestfs tools such as "
29745 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
29746 msgstr ""
29747
29748 #. type: textblock
29749 #: ../tools/virt-make-fs.pl:144
29750 msgid "Add an MBR partition:"
29751 msgstr ""
29752
29753 #. type: verbatim
29754 #: ../tools/virt-make-fs.pl:146
29755 #, no-wrap
29756 msgid ""
29757 " virt-make-fs --partition -- input disk.img\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../tools/virt-make-fs.pl:148
29763 msgid ""
29764 "If the output disk image could be terabyte-sized or larger, it's better to "
29765 "use an EFI/GPT-compatible partition table:"
29766 msgstr ""
29767
29768 #. type: verbatim
29769 #: ../tools/virt-make-fs.pl:151
29770 #, no-wrap
29771 msgid ""
29772 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
29773 "\n"
29774 msgstr ""
29775
29776 #. type: textblock
29777 #: ../tools/virt-make-fs.pl:179
29778 msgid "Enable debugging information."
29779 msgstr ""
29780
29781 #. type: =item
29782 #: ../tools/virt-make-fs.pl:185
29783 msgid "B<--size=E<lt>NE<gt>>"
29784 msgstr ""
29785
29786 #. type: =item
29787 #: ../tools/virt-make-fs.pl:187
29788 msgid "B<--size=+E<lt>NE<gt>>"
29789 msgstr ""
29790
29791 #. type: =item
29792 #: ../tools/virt-make-fs.pl:189
29793 msgid "B<-s E<lt>NE<gt>>"
29794 msgstr ""
29795
29796 #. type: =item
29797 #: ../tools/virt-make-fs.pl:191
29798 msgid "B<-s +E<lt>NE<gt>>"
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../tools/virt-make-fs.pl:193
29803 msgid "Use the C<--size> (or C<-s>) option to choose the size of the output image."
29804 msgstr ""
29805
29806 #. type: textblock
29807 #: ../tools/virt-make-fs.pl:196
29808 msgid ""
29809 "If this option is I<not> given, then the output image will be just large "
29810 "enough to contain all the files, with not much wasted space."
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../tools/virt-make-fs.pl:199
29815 msgid ""
29816 "To choose a fixed size output disk, specify an absolute number followed by "
29817 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29818 "Petabytes or Exabytes.  This must be large enough to contain all the input "
29819 "files, else you will get an error."
29820 msgstr ""
29821
29822 #. type: textblock
29823 #: ../tools/virt-make-fs.pl:204
29824 msgid ""
29825 "To leave extra space, specify C<+> (plus sign) and a number followed by "
29826 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
29827 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
29828 "the input files, and (approximately) an extra 200 MB free space."
29829 msgstr ""
29830
29831 #. type: textblock
29832 #: ../tools/virt-make-fs.pl:210
29833 msgid ""
29834 "Note that virt-make-fs estimates free space, and therefore will not produce "
29835 "filesystems containing precisely the free space requested.  (It is much more "
29836 "expensive and time-consuming to produce a filesystem which has precisely the "
29837 "desired free space)."
29838 msgstr ""
29839
29840 #. type: =item
29841 #: ../tools/virt-make-fs.pl:219
29842 msgid "B<--format=E<lt>fmtE<gt>>"
29843 msgstr ""
29844
29845 #. type: =item
29846 #: ../tools/virt-make-fs.pl:221
29847 msgid "B<-F E<lt>fmtE<gt>>"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../tools/virt-make-fs.pl:223
29852 msgid "Choose the output disk image format."
29853 msgstr ""
29854
29855 #. type: textblock
29856 #: ../tools/virt-make-fs.pl:225
29857 msgid "The default is C<raw> (raw disk image)."
29858 msgstr ""
29859
29860 #. type: textblock
29861 #: ../tools/virt-make-fs.pl:227
29862 msgid ""
29863 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
29864 "that would really make sense here is C<qcow2>."
29865 msgstr ""
29866
29867 #. type: =item
29868 #: ../tools/virt-make-fs.pl:234
29869 msgid "B<--type=E<lt>fsE<gt>>"
29870 msgstr ""
29871
29872 #. type: =item
29873 #: ../tools/virt-make-fs.pl:236
29874 msgid "B<-t E<lt>fsE<gt>>"
29875 msgstr ""
29876
29877 #. type: textblock
29878 #: ../tools/virt-make-fs.pl:238
29879 msgid "Choose the output filesystem type."
29880 msgstr ""
29881
29882 #. type: textblock
29883 #: ../tools/virt-make-fs.pl:240
29884 msgid "The default is C<ext2>."
29885 msgstr ""
29886
29887 #. type: textblock
29888 #: ../tools/virt-make-fs.pl:242
29889 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
29890 msgstr ""
29891
29892 #. type: =item
29893 #: ../tools/virt-make-fs.pl:249
29894 msgid "B<--partition>"
29895 msgstr ""
29896
29897 #. type: =item
29898 #: ../tools/virt-make-fs.pl:251
29899 msgid "B<--partition=E<lt>parttypeE<gt>>"
29900 msgstr ""
29901
29902 #. type: textblock
29903 #: ../tools/virt-make-fs.pl:253
29904 msgid ""
29905 "If specified, this flag adds an MBR partition table to the output disk "
29906 "image."
29907 msgstr ""
29908
29909 #. type: textblock
29910 #: ../tools/virt-make-fs.pl:256
29911 msgid ""
29912 "You can change the partition table type, eg. C<--partition=gpt> for large "
29913 "disks."
29914 msgstr ""
29915
29916 #. type: textblock
29917 #: ../tools/virt-make-fs.pl:259
29918 msgid ""
29919 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
29920 "might consider the next parameter to be the partition type.  For example:"
29921 msgstr ""
29922
29923 #. type: verbatim
29924 #: ../tools/virt-make-fs.pl:263
29925 #, no-wrap
29926 msgid ""
29927 " virt-make-fs --partition input.tar ...\n"
29928 "\n"
29929 msgstr ""
29930
29931 #. type: textblock
29932 #: ../tools/virt-make-fs.pl:265
29933 msgid ""
29934 "would cause virt-make-fs to think you wanted to use a partition type of "
29935 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
29936 "dash) between options and the input file argument:"
29937 msgstr ""
29938
29939 #. type: verbatim
29940 #: ../tools/virt-make-fs.pl:269
29941 #, no-wrap
29942 msgid ""
29943 " virt-make-fs --partition -- input.tar ...\n"
29944 "\n"
29945 msgstr ""
29946
29947 #. type: textblock
29948 #: ../tools/virt-make-fs.pl:541
29949 msgid ""
29950 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
29951 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
29952 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
29953 msgstr ""
29954
29955 #. type: verbatim
29956 #: ../tools/virt-make-fs.pl:558
29957 #, no-wrap
29958 msgid ""
29959 " export LIBGUESTFS_DEBUG=1\n"
29960 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: textblock
29965 #: ../tools/virt-make-fs.pl:561
29966 msgid ""
29967 "Attach /tmp/virt-make-fs.log to a new bug report at "
29968 "L<https://bugzilla.redhat.com/>"
29969 msgstr ""
29970
29971 #. type: textblock
29972 #: ../tools/virt-list-partitions.pl:32
29973 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../tools/virt-list-partitions.pl:36
29978 #, no-wrap
29979 msgid ""
29980 " virt-list-partitions [--options] domname\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: verbatim
29985 #: ../tools/virt-list-partitions.pl:38
29986 #, no-wrap
29987 msgid ""
29988 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
29989 "\n"
29990 msgstr ""
29991
29992 #. type: textblock
29993 #: ../tools/virt-list-partitions.pl:45
29994 msgid ""
29995 "C<virt-list-partitions> is a command line tool to list the partitions that "
29996 "are contained in a virtual machine or disk image.  It is mainly useful as a "
29997 "first step to using L<virt-resize(1)>."
29998 msgstr ""
29999
30000 #. type: textblock
30001 #: ../tools/virt-list-partitions.pl:50
30002 msgid ""
30003 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
30004 "functionality.  For more complex cases you should look at the "
30005 "L<guestfish(1)> tool."
30006 msgstr ""
30007
30008 #. type: =item
30009 #: ../tools/virt-list-partitions.pl:107
30010 msgid "B<-h> | B<--human-readable>"
30011 msgstr ""
30012
30013 #. type: textblock
30014 #: ../tools/virt-list-partitions.pl:109
30015 msgid "Show sizes in human-readable form (eg. \"1G\")."
30016 msgstr ""
30017
30018 #. type: textblock
30019 #: ../tools/virt-list-partitions.pl:117
30020 msgid ""
30021 "With this option, C<virt-list-partitions> displays the type and size of each "
30022 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
30023 msgstr ""
30024
30025 #. type: =item
30026 #: ../tools/virt-list-partitions.pl:124
30027 msgid "B<-t> | B<--total>"
30028 msgstr ""
30029
30030 #. type: textblock
30031 #: ../tools/virt-list-partitions.pl:126
30032 msgid "Display the total size of each block device (as a separate row or rows)."
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../tools/virt-list-partitions.pl:259
30037 msgid ""
30038 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
30039 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
30040 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../tools/virt-list-partitions.pl:275
30045 msgid "Copyright (C) 2009-2010 Red Hat Inc."
30046 msgstr ""